From 5fa17a3537e7d47bd18320018056dbc0ccc0e2bd Mon Sep 17 00:00:00 2001 From: Pop John Date: Fri, 12 Jul 2024 15:27:56 +0300 Subject: [PATCH] app performance optimization --- .../modelsmith-build/3rdpartylicenses.txt | 154 +++++++++--------- .../browser/chunk-2E3XMRVQ.js | 1 - .../browser/chunk-2FJ2YO2M.js | 1 + .../{chunk-ES2PX4IE.js => chunk-2JZ6V3QN.js} | 2 +- .../browser/chunk-3GNVUME3.js | 1 + .../browser/chunk-3RQYPCLL.js | 1 + .../browser/chunk-3S6QBQVM.js | 1 + .../browser/chunk-4EAU6CO5.js | 2 + .../browser/chunk-4KWEJN4U.js | 1 - .../browser/chunk-4RL3OKAB.js | 11 -- .../browser/chunk-6A35GAJL.js | 4 - .../browser/chunk-7HZCFN6L.js | 1 - .../browser/chunk-7IMKJ6YK.js | 1 + .../browser/chunk-AIAH5BT5.js | 52 ------ .../browser/chunk-AK2HCVXD.js | 1 - .../browser/chunk-C37KAU6A.js | 1 - .../browser/chunk-C3C4GFAG.js | 1 + .../browser/chunk-C72SHGY6.js | 1 - .../{chunk-OWZJXMSU.js => chunk-D2Y5ESR4.js} | 2 +- .../browser/chunk-DQ7AOZDA.js | 1 + .../browser/chunk-EGVUKFEW.js | 1 + .../browser/chunk-FAKCSLDT.js | 4 + .../browser/chunk-FB4UOAYL.js | 1 - .../browser/chunk-G267DK6J.js | 1 + .../browser/chunk-GMIVG7ET.js | 38 +++++ .../browser/chunk-GRATYYX3.js | 11 ++ .../browser/chunk-GRXBCACP.js | 1 - .../browser/chunk-GSC3HYC7.js | 1 + .../browser/chunk-GU66N7RS.js | 1 + .../browser/chunk-H5CB7PWT.js | 1 - .../browser/chunk-HG2O7P4S.js | 4 + .../{chunk-BBURJRCW.js => chunk-ITIPNJR4.js} | 6 +- .../browser/chunk-JZLUCDH7.js | 1 - .../browser/chunk-KR5OA5AZ.js | 1 + .../browser/chunk-KXYM3VZW.js | 1 + .../browser/chunk-LBD5Y7YA.js | 1 + .../browser/chunk-MJO2RBYE.js | 1 + .../browser/chunk-MPLQ54VQ.js | 2 - .../browser/chunk-MVEKSYQT.js | 1 - .../browser/chunk-NG4KGRDN.js | 1 + .../browser/chunk-NI65ARYN.js | 1 + .../browser/chunk-NIXKNBGC.js | 1 - .../browser/chunk-NO2PD4LU.js | 1 - .../browser/chunk-NPZHNGVX.js | 11 ++ .../browser/chunk-NT2MTW7W.js | 1 + .../browser/chunk-PNGDI5FF.js | 4 - .../browser/chunk-PP7DOJYP.js | 1 + .../browser/chunk-PSFPSLKI.js | 2 + .../browser/chunk-PTRGCVO5.js | 1 - .../browser/chunk-QBB4CRI5.js | 4 + .../{chunk-VN6ZKIV6.js => chunk-QVZ2CSJP.js} | 6 +- .../browser/chunk-QWPZ5EFE.js | 1 + .../browser/chunk-R5J4FM6S.js | 1 + .../browser/chunk-RAX4D5PF.js | 1 - .../browser/chunk-SMKHMGDE.js | 1 + .../browser/chunk-TO7IPVMR.js | 1 + .../browser/chunk-TTPGYBAP.js | 1 + .../browser/chunk-URO2J7UO.js | 1 + .../browser/chunk-V6EH3YHO.js | 1 + .../browser/chunk-VUPIOU6P.js | 1 + .../browser/chunk-W2GP6GR3.js | 1 + .../browser/chunk-W4U3FJPJ.js | 1 + .../browser/chunk-WEPUEGKY.js | 1 - .../browser/chunk-WFJKEUUC.js | 1 - .../browser/chunk-WHP5P3DQ.js | 1 + .../browser/chunk-XD2XL32D.js | 1 + .../browser/chunk-YG4M2IQW.js | 1 - .../browser/chunk-ZNUYT5NW.js | 1 + .../modelsmith-build/browser/index.html | 2 +- .../modelsmith-build/browser/main-AJYPV54S.js | 1 - .../modelsmith-build/browser/main-YHQFGFTY.js | 1 + 71 files changed, 195 insertions(+), 178 deletions(-) delete mode 100644 frontend/server/modelsmith-build/browser/chunk-2E3XMRVQ.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-2FJ2YO2M.js rename frontend/server/modelsmith-build/browser/{chunk-ES2PX4IE.js => chunk-2JZ6V3QN.js} (99%) create mode 100644 frontend/server/modelsmith-build/browser/chunk-3GNVUME3.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-3RQYPCLL.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-3S6QBQVM.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-4EAU6CO5.js delete mode 100644 frontend/server/modelsmith-build/browser/chunk-4KWEJN4U.js delete mode 100644 frontend/server/modelsmith-build/browser/chunk-4RL3OKAB.js delete mode 100644 frontend/server/modelsmith-build/browser/chunk-6A35GAJL.js delete mode 100644 frontend/server/modelsmith-build/browser/chunk-7HZCFN6L.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-7IMKJ6YK.js delete mode 100644 frontend/server/modelsmith-build/browser/chunk-AIAH5BT5.js delete mode 100644 frontend/server/modelsmith-build/browser/chunk-AK2HCVXD.js delete mode 100644 frontend/server/modelsmith-build/browser/chunk-C37KAU6A.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-C3C4GFAG.js delete mode 100644 frontend/server/modelsmith-build/browser/chunk-C72SHGY6.js rename frontend/server/modelsmith-build/browser/{chunk-OWZJXMSU.js => chunk-D2Y5ESR4.js} (67%) create mode 100644 frontend/server/modelsmith-build/browser/chunk-DQ7AOZDA.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-EGVUKFEW.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-FAKCSLDT.js delete mode 100644 frontend/server/modelsmith-build/browser/chunk-FB4UOAYL.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-G267DK6J.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-GMIVG7ET.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-GRATYYX3.js delete mode 100644 frontend/server/modelsmith-build/browser/chunk-GRXBCACP.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-GSC3HYC7.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-GU66N7RS.js delete mode 100644 frontend/server/modelsmith-build/browser/chunk-H5CB7PWT.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-HG2O7P4S.js rename frontend/server/modelsmith-build/browser/{chunk-BBURJRCW.js => chunk-ITIPNJR4.js} (77%) delete mode 100644 frontend/server/modelsmith-build/browser/chunk-JZLUCDH7.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-KR5OA5AZ.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-KXYM3VZW.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-LBD5Y7YA.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-MJO2RBYE.js delete mode 100644 frontend/server/modelsmith-build/browser/chunk-MPLQ54VQ.js delete mode 100644 frontend/server/modelsmith-build/browser/chunk-MVEKSYQT.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-NG4KGRDN.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-NI65ARYN.js delete mode 100644 frontend/server/modelsmith-build/browser/chunk-NIXKNBGC.js delete mode 100644 frontend/server/modelsmith-build/browser/chunk-NO2PD4LU.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-NPZHNGVX.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-NT2MTW7W.js delete mode 100644 frontend/server/modelsmith-build/browser/chunk-PNGDI5FF.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-PP7DOJYP.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-PSFPSLKI.js delete mode 100644 frontend/server/modelsmith-build/browser/chunk-PTRGCVO5.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-QBB4CRI5.js rename frontend/server/modelsmith-build/browser/{chunk-VN6ZKIV6.js => chunk-QVZ2CSJP.js} (98%) create mode 100644 frontend/server/modelsmith-build/browser/chunk-QWPZ5EFE.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-R5J4FM6S.js delete mode 100644 frontend/server/modelsmith-build/browser/chunk-RAX4D5PF.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-SMKHMGDE.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-TO7IPVMR.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-TTPGYBAP.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-URO2J7UO.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-V6EH3YHO.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-VUPIOU6P.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-W2GP6GR3.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-W4U3FJPJ.js delete mode 100644 frontend/server/modelsmith-build/browser/chunk-WEPUEGKY.js delete mode 100644 frontend/server/modelsmith-build/browser/chunk-WFJKEUUC.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-WHP5P3DQ.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-XD2XL32D.js delete mode 100644 frontend/server/modelsmith-build/browser/chunk-YG4M2IQW.js create mode 100644 frontend/server/modelsmith-build/browser/chunk-ZNUYT5NW.js delete mode 100644 frontend/server/modelsmith-build/browser/main-AJYPV54S.js create mode 100644 frontend/server/modelsmith-build/browser/main-YHQFGFTY.js diff --git a/frontend/server/modelsmith-build/3rdpartylicenses.txt b/frontend/server/modelsmith-build/3rdpartylicenses.txt index 9026ee73..2e9f31b8 100644 --- a/frontend/server/modelsmith-build/3rdpartylicenses.txt +++ b/frontend/server/modelsmith-build/3rdpartylicenses.txt @@ -25,6 +25,58 @@ Package: ngx-colors License: "MIT" +-------------------------------------------------------------------------------- +Package: @angular/cdk +License: "MIT" + +The MIT License + +Copyright (c) 2024 Google LLC. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +-------------------------------------------------------------------------------- +Package: @angular/material +License: "MIT" + +The MIT License + +Copyright (c) 2024 Google LLC. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + -------------------------------------------------------------------------------- Package: hammerjs License: "MIT" @@ -199,6 +251,16 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +-------------------------------------------------------------------------------- +Package: @angular/animations +License: "MIT" + + +-------------------------------------------------------------------------------- +Package: @angular/platform-browser +License: "MIT" + + -------------------------------------------------------------------------------- Package: @ngrx/store-devtools License: "MIT" @@ -229,16 +291,6 @@ This repository includes a file "debounceSync.ts" originially copied from https://github.com/cartant/rxjs-etc by Nicholas Jamieson, MIT licensed. See the file header for details. --------------------------------------------------------------------------------- -Package: @angular/animations -License: "MIT" - - --------------------------------------------------------------------------------- -Package: @angular/platform-browser -License: "MIT" - - -------------------------------------------------------------------------------- Package: ngrx-store-localstorage License: "MIT" @@ -341,6 +393,11 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +-------------------------------------------------------------------------------- +Package: @ngneat/until-destroy +License: "MIT" + + -------------------------------------------------------------------------------- Package: @angular/core License: "MIT" @@ -574,6 +631,16 @@ Package: @angular/common License: "MIT" +-------------------------------------------------------------------------------- +Package: @angular/router +License: "MIT" + + +-------------------------------------------------------------------------------- +Package: @angular/forms +License: "MIT" + + -------------------------------------------------------------------------------- Package: @ngrx/store License: "MIT" @@ -634,73 +701,6 @@ This repository includes a file "debounceSync.ts" originially copied from https://github.com/cartant/rxjs-etc by Nicholas Jamieson, MIT licensed. See the file header for details. --------------------------------------------------------------------------------- -Package: @angular/router -License: "MIT" - - --------------------------------------------------------------------------------- -Package: @angular/cdk -License: "MIT" - -The MIT License - -Copyright (c) 2024 Google LLC. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - --------------------------------------------------------------------------------- -Package: @angular/material -License: "MIT" - -The MIT License - -Copyright (c) 2024 Google LLC. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - --------------------------------------------------------------------------------- -Package: @angular/forms -License: "MIT" - - --------------------------------------------------------------------------------- -Package: @ngneat/until-destroy -License: "MIT" - - -------------------------------------------------------------------------------- Package: zone.js License: "MIT" diff --git a/frontend/server/modelsmith-build/browser/chunk-2E3XMRVQ.js b/frontend/server/modelsmith-build/browser/chunk-2E3XMRVQ.js deleted file mode 100644 index d1b97e93..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-2E3XMRVQ.js +++ /dev/null @@ -1 +0,0 @@ -import{Na as l,Oa as o,T as m,Ua as d,ja as a,wa as i,xa as s,ya as c}from"./chunk-AIAH5BT5.js";var u=(()=>{let e=class e{constructor(){this.title="",this.message=""}};e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=m({type:e,selectors:[["ms-empty-state"]],inputs:{title:"title",message:"message"},standalone:!0,features:[d],decls:6,vars:2,consts:[["src","assets/icons/empty-state.svg"],[1,"heading-section-title"],[1,"paragraph-regular-p2-large"]],template:function(t,r){t&1&&(i(0,"div"),c(1,"img",0),i(2,"div",1),l(3),s(),i(4,"div",2),l(5),s()()),t&2&&(a(3),o(r.title),a(2),o(r.message))},styles:["[_nghost-%COMP%]{display:flex;justify-content:center;align-items:center;height:100%;width:100%;text-align:center}div[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px}img[_ngcontent-%COMP%]{max-width:100%;height:auto}"]});let n=e;return n})();export{u as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-2FJ2YO2M.js b/frontend/server/modelsmith-build/browser/chunk-2FJ2YO2M.js new file mode 100644 index 00000000..e3d96fce --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-2FJ2YO2M.js @@ -0,0 +1 @@ +import{$ as c,Bb as p,Fa as s,Kd as i,Ua as l,aa as n,bc as f,ha as o,ia as m,mb as u,nb as g}from"./chunk-NPZHNGVX.js";var h=["*"];var v=new n("MAT_CARD_CONFIG"),E=(()=>{let t=class t{constructor(r){this.appearance=r?.appearance||"raised"}};t.\u0275fac=function(a){return new(a||t)(s(v,8))},t.\u0275cmp=o({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(a,d){a&2&&l("mat-mdc-card-outlined",d.appearance==="outlined")("mdc-card--outlined",d.appearance==="outlined")},inputs:{appearance:"appearance"},exportAs:["matCard"],standalone:!0,features:[p],ngContentSelectors:h,decls:1,vars:0,template:function(a,d){a&1&&(u(),g(0))},styles:['.mat-mdc-card{display:flex;flex-direction:column;box-sizing:border-box;position:relative;border-style:solid;border-width:0;background-color:var(--mdc-elevated-card-container-color);border-color:var(--mdc-elevated-card-container-color);border-radius:var(--mdc-elevated-card-container-shape);box-shadow:var(--mdc-elevated-card-container-elevation)}.mat-mdc-card::after{position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px rgba(0,0,0,0);content:"";display:block;pointer-events:none;box-sizing:border-box;border-radius:var(--mdc-elevated-card-container-shape)}.mat-mdc-card-outlined{background-color:var(--mdc-outlined-card-container-color);border-radius:var(--mdc-outlined-card-container-shape);border-width:var(--mdc-outlined-card-outline-width);border-color:var(--mdc-outlined-card-outline-color);box-shadow:var(--mdc-outlined-card-container-elevation)}.mat-mdc-card-outlined::after{border:none}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mat-mdc-card-actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font);line-height:var(--mat-card-title-text-line-height);font-size:var(--mat-card-title-text-size);letter-spacing:var(--mat-card-title-text-tracking);font-weight:var(--mat-card-title-text-weight)}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color);font-family:var(--mat-card-subtitle-text-font);line-height:var(--mat-card-subtitle-text-line-height);font-size:var(--mat-card-subtitle-text-size);letter-spacing:var(--mat-card-subtitle-text-tracking);font-weight:var(--mat-card-subtitle-text-weight)}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0});let e=t;return e})();var L=(()=>{let t=class t{};t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=m({type:t}),t.\u0275inj=c({imports:[i,f,i]});let e=t;return e})();export{E as a,L as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-ES2PX4IE.js b/frontend/server/modelsmith-build/browser/chunk-2JZ6V3QN.js similarity index 99% rename from frontend/server/modelsmith-build/browser/chunk-ES2PX4IE.js rename to frontend/server/modelsmith-build/browser/chunk-2JZ6V3QN.js index 5799f38f..af270095 100644 --- a/frontend/server/modelsmith-build/browser/chunk-ES2PX4IE.js +++ b/frontend/server/modelsmith-build/browser/chunk-2JZ6V3QN.js @@ -1,4 +1,4 @@ -import{p as Ss,q as ua}from"./chunk-NO2PD4LU.js";import{Ad as ha,B as qn,C as Gr,Ja as Zn,Ka as Qn,La as Jn,Md as fa,O as Ee,P as qr,R as ys,T as Kr,Ta as ra,U as Zr,Ua as aa,V as Qr,Y as vs,a as xs,b as _s,d as Uf,e as Yf,ea as Jr,fa as Kn,h as Gn,i as Mi,ja as ta,ka as ce,m as $r,oa as ea,rd as la,sa as ia,sd as qe,wa as sa,wd as ca,xa as na,ya as oa,yd as he}from"./chunk-AIAH5BT5.js";var Gh=Uf((MT,Fn)=>{"use strict";(function(e,i,t,s){"use strict";var n=["","webkit","Moz","MS","ms","o"],o=i.createElement("div"),r="function",a=Math.round,l=Math.abs,c=Date.now;function h(d,g,x){return setTimeout(S(d,x),g)}function f(d,g,x){return Array.isArray(d)?(u(d,x[g],x),!0):!1}function u(d,g,x){var v;if(d)if(d.forEach)d.forEach(g,x);else if(d.length!==s)for(v=0;v{"use strict";(function(e,i,t,s){"use strict";var n=["","webkit","Moz","MS","ms","o"],o=i.createElement("div"),r="function",a=Math.round,l=Math.abs,c=Date.now;function h(d,g,x){return setTimeout(S(d,x),g)}function f(d,g,x){return Array.isArray(d)?(u(d,x[g],x),!0):!1}function u(d,g,x){var v;if(d)if(d.forEach)d.forEach(g,x);else if(d.length!==s)for(v=0;v\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",B=e.console&&(e.console.warn||e.console.log);return B&&B.call(e.console,v,k),d.apply(this,arguments)}}var m;typeof Object.assign!="function"?m=function(g){if(g===s||g===null)throw new TypeError("Cannot convert undefined or null to object");for(var x=Object(g),v=1;v-1}function D(d){return d.trim().split(/\s+/g)}function I(d,g,x){if(d.indexOf&&!x)return d.indexOf(g);for(var v=0;vht[g]}):v=v.sort()),v}function Q(d,g){for(var x,v,P=g[0].toUpperCase()+g.slice(1),k=0;k1&&!x.firstMultiple?x.firstMultiple=kr(g):P===1&&(x.firstMultiple=!1);var k=x.firstInput,B=x.firstMultiple,nt=B?B.center:k.center,at=g.center=Dr(v);g.timeStamp=c(),g.deltaTime=g.timeStamp-k.timeStamp,g.angle=Nn(nt,at),g.distance=hs(nt,at),yf(x,g),g.offsetDirection=Ir(g.deltaX,g.deltaY);var ht=Er(g.deltaTime,g.deltaX,g.deltaY);g.overallVelocityX=ht.x,g.overallVelocityY=ht.y,g.overallVelocity=l(ht.x)>l(ht.y)?ht.x:ht.y,g.scale=B?Cf(B.pointers,v):1,g.rotation=B?Sf(B.pointers,v):0,g.maxPointers=x.prevInput?g.pointers.length>x.prevInput.maxPointers?g.pointers.length:x.prevInput.maxPointers:g.pointers.length,vf(x,g);var Ft=d.element;A(g.srcEvent.target,Ft)&&(Ft=g.srcEvent.target),g.target=Ft}function yf(d,g){var x=g.center,v=d.offsetDelta||{},P=d.prevDelta||{},k=d.prevInput||{};(g.eventType===K||k.eventType===et)&&(P=d.prevDelta={x:k.deltaX||0,y:k.deltaY||0},v=d.offsetDelta={x:x.x,y:x.y}),g.deltaX=P.x+(x.x-v.x),g.deltaY=P.y+(x.y-v.y)}function vf(d,g){var x=d.lastInterval||g,v=g.timeStamp-x.timeStamp,P,k,B,nt;if(g.eventType!=gt&&(v>Oe||x.velocity===s)){var at=g.deltaX-x.deltaX,ht=g.deltaY-x.deltaY,Ft=Er(v,at,ht);k=Ft.x,B=Ft.y,P=l(Ft.x)>l(Ft.y)?Ft.x:Ft.y,nt=Ir(at,ht),d.lastInterval=g}else P=x.velocity,k=x.velocityX,B=x.velocityY,nt=x.direction;g.velocity=P,g.velocityX=k,g.velocityY=B,g.direction=nt}function kr(d){for(var g=[],x=0;x=l(g)?d<0?xi:_i:g<0?yi:vi}function hs(d,g,x){x||(x=Ar);var v=g[x[0]]-d[x[0]],P=g[x[1]]-d[x[1]];return Math.sqrt(v*v+P*P)}function Nn(d,g,x){x||(x=Ar);var v=g[x[0]]-d[x[0]],P=g[x[1]]-d[x[1]];return Math.atan2(P,v)*180/Math.PI}function Sf(d,g){return Nn(g[1],g[0],cs)+Nn(d[1],d[0],cs)}function Cf(d,g){return hs(g[0],g[1],cs)/hs(d[0],d[1],cs)}var Tf={mousedown:K,mousemove:Ae,mouseup:et},Mf="mousedown",Pf="mousemove mouseup";function fs(){this.evEl=Mf,this.evWin=Pf,this.pressed=!1,St.apply(this,arguments)}y(fs,St,{handler:function(g){var x=Tf[g.type];x&K&&g.button===0&&(this.pressed=!0),x&Ae&&g.which!==1&&(x=et),this.pressed&&(x&et&&(this.pressed=!1),this.callback(this.manager,x,{pointers:[g],changedPointers:[g],pointerType:Ut,srcEvent:g}))}});var wf={pointerdown:K,pointermove:Ae,pointerup:et,pointercancel:gt,pointerout:gt},Of={2:It,3:ae,4:Ut,5:Yt},Lr="pointerdown",Rr="pointermove pointerup pointercancel";e.MSPointerEvent&&!e.PointerEvent&&(Lr="MSPointerDown",Rr="MSPointerMove MSPointerUp MSPointerCancel");function Bn(){this.evEl=Lr,this.evWin=Rr,St.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}y(Bn,St,{handler:function(g){var x=this.store,v=!1,P=g.type.toLowerCase().replace("ms",""),k=wf[P],B=Of[g.pointerType]||g.pointerType,nt=B==It,at=I(x,g.pointerId,"pointerId");k&K&&(g.button===0||nt)?at<0&&(x.push(g),at=x.length-1):k&(et|gt)&&(v=!0),!(at<0)&&(x[at]=g,this.callback(this.manager,k,{pointers:x,changedPointers:[g],pointerType:B,srcEvent:g}),v&&x.splice(at,1))}});var Af={touchstart:K,touchmove:Ae,touchend:et,touchcancel:gt},kf="touchstart",Df="touchstart touchmove touchend touchcancel";function Fr(){this.evTarget=kf,this.evWin=Df,this.started=!1,St.apply(this,arguments)}y(Fr,St,{handler:function(g){var x=Af[g.type];if(x===K&&(this.started=!0),!!this.started){var v=Ef.call(this,g,x);x&(et|gt)&&v[0].length-v[1].length===0&&(this.started=!1),this.callback(this.manager,x,{pointers:v[0],changedPointers:v[1],pointerType:It,srcEvent:g})}}});function Ef(d,g){var x=R(d.touches),v=R(d.changedTouches);return g&(et|gt)&&(x=z(x.concat(v),"identifier",!0)),[x,v]}var If={touchstart:K,touchmove:Ae,touchend:et,touchcancel:gt},Lf="touchstart touchmove touchend touchcancel";function us(){this.evTarget=Lf,this.targetIds={},St.apply(this,arguments)}y(us,St,{handler:function(g){var x=If[g.type],v=Rf.call(this,g,x);v&&this.callback(this.manager,x,{pointers:v[0],changedPointers:v[1],pointerType:It,srcEvent:g})}});function Rf(d,g){var x=R(d.touches),v=this.targetIds;if(g&(K|Ae)&&x.length===1)return v[x[0].identifier]=!0,[x,x];var P,k,B=R(d.changedTouches),nt=[],at=this.target;if(k=x.filter(function(ht){return A(ht.target,at)}),g===K)for(P=0;P-1&&v.splice(k,1)};setTimeout(P,Ff)}}function Nf(d){for(var g=d.srcEvent.clientX,x=d.srcEvent.clientY,v=0;v-1&&this.requireFail.splice(g,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(d){return!!this.simultaneous[d.id]},emit:function(d){var g=this,x=this.state;function v(P){g.manager.emit(P,d)}x=le&&v(g.options.event+Hr(x))},tryEmit:function(d){if(this.canEmit())return this.emit(d);this.state=Rt},canEmit:function(){for(var d=0;dg.threshold&&P&g.direction},attrTest:function(d){return Pt.prototype.attrTest.call(this,d)&&(this.state&Ct||!(this.state&Ct)&&this.directionTest(d))},emit:function(d){this.pX=d.deltaX,this.pY=d.deltaY;var g=Ur(d.direction);g&&(d.additionalEvent=this.options.event+g),this._super.emit.call(this,d)}});function Hn(){Pt.apply(this,arguments)}y(Hn,Pt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[De]},attrTest:function(d){return this._super.attrTest.call(this,d)&&(Math.abs(d.scale-1)>this.options.threshold||this.state&Ct)},emit:function(d){if(d.scale!==1){var g=d.scale<1?"in":"out";d.additionalEvent=this.options.event+g}this._super.emit.call(this,d)}});function Un(){$t.apply(this,arguments),this._timer=null,this._input=null}y(Un,$t,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[jr]},process:function(d){var g=this.options,x=d.pointers.length===g.pointers,v=d.distanceg.time;if(this._input=d,!v||!x||d.eventType&(et|gt)&&!P)this.reset();else if(d.eventType&K)this.reset(),this._timer=h(function(){this.state=Xt,this.tryEmit()},g.time,this);else if(d.eventType&et)return Xt;return Rt},reset:function(){clearTimeout(this._timer)},emit:function(d){this.state===Xt&&(d&&d.eventType&et?this.manager.emit(this.options.event+"up",d):(this._input.timeStamp=c(),this.manager.emit(this.options.event,this._input)))}});function Yn(){Pt.apply(this,arguments)}y(Yn,Pt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[De]},attrTest:function(d){return this._super.attrTest.call(this,d)&&(Math.abs(d.rotation)>this.options.threshold||this.state&Ct)}});function Xn(){Pt.apply(this,arguments)}y(Xn,Pt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Lt|ke,pointers:1},getTouchAction:function(){return ms.prototype.getTouchAction.call(this)},attrTest:function(d){var g=this.options.direction,x;return g&(Lt|ke)?x=d.overallVelocity:g&Lt?x=d.overallVelocityX:g&ke&&(x=d.overallVelocityY),this._super.attrTest.call(this,d)&&g&d.offsetDirection&&d.distance>this.options.threshold&&d.maxPointers==this.options.pointers&&l(x)>this.options.velocity&&d.eventType&et},emit:function(d){var g=Ur(d.offsetDirection);g&&this.manager.emit(this.options.event+g,d),this.manager.emit(this.options.event,d)}});function bs(){$t.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}y(bs,$t,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Wn]},process:function(d){var g=this.options,x=d.pointers.length===g.pointers,v=d.distance{let i=class i{get toggleZoom$(){return this._toggleZoomSubject.asObservable()}set toggleZoom(s){this._toggleZoomSubject.next(s)}get toggleTooltips$(){return this._toggleTooltipsSubject.asObservable()}set toggleTooltips(s){this._toggleTooltipsSubject.next(s)}constructor(){this._toggleTooltipsSubject=new Mi(!1),this._toggleZoomSubject=new Mi(!1)}};i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=Ee({token:i,factory:i.\u0275fac});let e=i;return e})();function Oi(e){return e+.5|0}var fe=(e,i,t)=>Math.max(Math.min(e,t),i);function Pi(e){return fe(Oi(e*2.55),0,255)}function ue(e){return fe(Oi(e*255),0,255)}function qt(e){return fe(Oi(e/2.55)/100,0,1)}function pa(e){return fe(Oi(e*100),0,100)}var Tt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},io=[..."0123456789ABCDEF"],$f=e=>io[e&15],Gf=e=>io[(e&240)>>4]+io[e&15],Cs=e=>(e&240)>>4===(e&15),qf=e=>Cs(e.r)&&Cs(e.g)&&Cs(e.b)&&Cs(e.a);function Kf(e){var i=e.length,t;return e[0]==="#"&&(i===4||i===5?t={r:255&Tt[e[1]]*17,g:255&Tt[e[2]]*17,b:255&Tt[e[3]]*17,a:i===5?Tt[e[4]]*17:255}:(i===7||i===9)&&(t={r:Tt[e[1]]<<4|Tt[e[2]],g:Tt[e[3]]<<4|Tt[e[4]],b:Tt[e[5]]<<4|Tt[e[6]],a:i===9?Tt[e[7]]<<4|Tt[e[8]]:255})),t}var Zf=(e,i)=>e<255?i(e):"";function Qf(e){var i=qf(e)?$f:Gf;return e?"#"+i(e.r)+i(e.g)+i(e.b)+Zf(e.a,i):void 0}var Jf=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function xa(e,i,t){let s=i*Math.min(t,1-t),n=(o,r=(o+e/30)%12)=>t-s*Math.max(Math.min(r-3,9-r,1),-1);return[n(0),n(8),n(4)]}function tu(e,i,t){let s=(n,o=(n+e/60)%6)=>t-t*i*Math.max(Math.min(o,4-o,1),0);return[s(5),s(3),s(1)]}function eu(e,i,t){let s=xa(e,1,.5),n;for(i+t>1&&(n=1/(i+t),i*=n,t*=n),n=0;n<3;n++)s[n]*=1-i-t,s[n]+=i;return s}function iu(e,i,t,s,n){return e===n?(i-t)/s+(i.5?h/(2-o-r):h/(o+r),l=iu(t,s,n,h,o),l=l*60+.5),[l|0,c||0,a]}function no(e,i,t,s){return(Array.isArray(i)?e(i[0],i[1],i[2]):e(i,t,s)).map(ue)}function oo(e,i,t){return no(xa,e,i,t)}function su(e,i,t){return no(eu,e,i,t)}function nu(e,i,t){return no(tu,e,i,t)}function _a(e){return(e%360+360)%360}function ou(e){let i=Jf.exec(e),t=255,s;if(!i)return;i[5]!==s&&(t=i[6]?Pi(+i[5]):ue(+i[5]));let n=_a(+i[2]),o=+i[3]/100,r=+i[4]/100;return i[1]==="hwb"?s=su(n,o,r):i[1]==="hsv"?s=nu(n,o,r):s=oo(n,o,r),{r:s[0],g:s[1],b:s[2],a:t}}function ru(e,i){var t=so(e);t[0]=_a(t[0]+i),t=oo(t),e.r=t[0],e.g=t[1],e.b=t[2]}function au(e){if(!e)return;let i=so(e),t=i[0],s=pa(i[1]),n=pa(i[2]);return e.a<255?`hsla(${t}, ${s}%, ${n}%, ${qt(e.a)})`:`hsl(${t}, ${s}%, ${n}%)`}var ga={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},ma={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function lu(){let e={},i=Object.keys(ma),t=Object.keys(ga),s,n,o,r,a;for(s=0;s>16&255,o>>8&255,o&255]}return e}var Ts;function cu(e){Ts||(Ts=lu(),Ts.transparent=[0,0,0,0]);let i=Ts[e.toLowerCase()];return i&&{r:i[0],g:i[1],b:i[2],a:i.length===4?i[3]:255}}var hu=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function fu(e){let i=hu.exec(e),t=255,s,n,o;if(i){if(i[7]!==s){let r=+i[7];t=i[8]?Pi(r):fe(r*255,0,255)}return s=+i[1],n=+i[3],o=+i[5],s=255&(i[2]?Pi(s):fe(s,0,255)),n=255&(i[4]?Pi(n):fe(n,0,255)),o=255&(i[6]?Pi(o):fe(o,0,255)),{r:s,g:n,b:o,a:t}}}function uu(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${qt(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}var eo=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Ke=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function du(e,i,t){let s=Ke(qt(e.r)),n=Ke(qt(e.g)),o=Ke(qt(e.b));return{r:ue(eo(s+t*(Ke(qt(i.r))-s))),g:ue(eo(n+t*(Ke(qt(i.g))-n))),b:ue(eo(o+t*(Ke(qt(i.b))-o))),a:e.a+t*(i.a-e.a)}}function Ms(e,i,t){if(e){let s=so(e);s[i]=Math.max(0,Math.min(s[i]+s[i]*t,i===0?360:1)),s=oo(s),e.r=s[0],e.g=s[1],e.b=s[2]}}function ya(e,i){return e&&Object.assign(i||{},e)}function ba(e){var i={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(i={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(i.a=ue(e[3]))):(i=ya(e,{r:0,g:0,b:0,a:1}),i.a=ue(i.a)),i}function pu(e){return e.charAt(0)==="r"?fu(e):ou(e)}var wi=class e{constructor(i){if(i instanceof e)return i;let t=typeof i,s;t==="object"?s=ba(i):t==="string"&&(s=Kf(i)||cu(i)||pu(i)),this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var i=ya(this._rgb);return i&&(i.a=qt(i.a)),i}set rgb(i){this._rgb=ba(i)}rgbString(){return this._valid?uu(this._rgb):void 0}hexString(){return this._valid?Qf(this._rgb):void 0}hslString(){return this._valid?au(this._rgb):void 0}mix(i,t){if(i){let s=this.rgb,n=i.rgb,o,r=t===o?.5:t,a=2*r-1,l=s.a-n.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,s.r=255&c*s.r+o*n.r+.5,s.g=255&c*s.g+o*n.g+.5,s.b=255&c*s.b+o*n.b+.5,s.a=r*s.a+(1-r)*n.a,this.rgb=s}return this}interpolate(i,t){return i&&(this._rgb=du(this._rgb,i._rgb,t)),this}clone(){return new e(this.rgb)}alpha(i){return this._rgb.a=ue(i),this}clearer(i){let t=this._rgb;return t.a*=1-i,this}greyscale(){let i=this._rgb,t=Oi(i.r*.3+i.g*.59+i.b*.11);return i.r=i.g=i.b=t,this}opaquer(i){let t=this._rgb;return t.a*=1+i,this}negate(){let i=this._rgb;return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,this}lighten(i){return Ms(this._rgb,2,i),this}darken(i){return Ms(this._rgb,2,-i),this}saturate(i){return Ms(this._rgb,1,i),this}desaturate(i){return Ms(this._rgb,1,-i),this}rotate(i){return ru(this._rgb,i),this}};function At(){}var co=(()=>{let e=0;return()=>e++})();function V(e){return e===null||typeof e>"u"}function H(e){if(Array.isArray&&Array.isArray(e))return!0;let i=Object.prototype.toString.call(e);return i.slice(0,7)==="[object"&&i.slice(-6)==="Array]"}function N(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function G(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function dt(e,i){return G(e)?e:i}function E(e,i){return typeof e>"u"?i:e}var ho=(e,i)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/i,Ds=(e,i)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*i:+e;function L(e,i,t){if(e&&typeof e.call=="function")return e.apply(t,i)}function F(e,i,t,s){let n,o,r;if(H(e))if(o=e.length,s)for(n=o-1;n>=0;n--)i.call(t,e[n],n);else for(n=0;ne,x:e=>e.x,y:e=>e.y};function Ia(e){let i=e.split("."),t=[],s="";for(let n of i)s+=n,s.endsWith("\\")?s=s.slice(0,-1)+".":(t.push(s),s="");return t}function gu(e){let i=Ia(e);return t=>{for(let s of i){if(s==="")break;t=t&&t[s]}return t}}function Bt(e,i){return(va[i]||(va[i]=gu(i)))(e)}function Ii(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ze=e=>typeof e<"u",zt=e=>typeof e=="function",Es=(e,i)=>{if(e.size!==i.size)return!1;for(let t of e)if(!i.has(t))return!1;return!0};function fo(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}var U=Math.PI,Y=2*U,La=Y+U,Di=Number.POSITIVE_INFINITY,Ra=U/180,Z=U/2,de=U/4,ao=U*2/3,Nt=Math.log10,ut=Math.sign;function Ne(e,i,t){return Math.abs(e-i)n-o).pop(),i}function ge(e){return!isNaN(parseFloat(e))&&isFinite(e)}function po(e,i){let t=Math.round(e);return t-i<=e&&t+i>=e}function Ls(e,i,t){let s,n,o;for(s=0,n=e.length;sl&&c=Math.min(i,t)-s&&e<=Math.max(i,t)+s}function Ri(e,i,t){t=t||(r=>e[r]1;)o=n+s>>1,t(o)?n=o:s=o;return{lo:n,hi:s}}var wt=(e,i,t,s)=>Ri(e,t,s?n=>{let o=e[n][i];return oe[n][i]Ri(e,t,s=>e[s][i]>=t);function bo(e,i,t){let s=0,n=e.length;for(;ss&&e[n-1]>t;)n--;return s>0||n{let s="_onData"+Ii(t),n=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...o){let r=n.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[s]=="function"&&a[s](...o)}),r}})})}function zs(e,i){let t=e._chartjs;if(!t)return;let s=t.listeners,n=s.indexOf(i);n!==-1&&s.splice(n,1),!(s.length>0)&&(za.forEach(o=>{delete e[o]}),delete e._chartjs)}function Ns(e){let i=new Set(e);return i.size===e.length?e:Array.from(i)}var Bs=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function Vs(e,i){let t=[],s=!1;return function(...n){t=n,s||(s=!0,Bs.call(window,()=>{s=!1,e.apply(i,t)}))}}function _o(e,i){let t;return function(...s){return i?(clearTimeout(t),t=setTimeout(e,i,s)):e.apply(this,s),i}}var Fi=e=>e==="start"?"left":e==="end"?"right":"center",ot=(e,i,t)=>e==="start"?i:e==="end"?t:(i+t)/2,yo=(e,i,t,s)=>e===(s?"left":"right")?t:e==="center"?(i+t)/2:i;function Ws(e,i,t){let s=i.length,n=0,o=s;if(e._sorted){let{iScale:r,_parsed:a}=e,l=r.axis,{min:c,max:h,minDefined:f,maxDefined:u}=r.getUserBounds();f&&(n=it(Math.min(wt(a,l,c).lo,t?s:wt(i,l,r.getPixelForValue(c)).lo),0,s-1)),u?o=it(Math.max(wt(a,r.axis,h,!0).hi+1,t?0:wt(i,l,r.getPixelForValue(h),!0).hi+1),n,s)-n:o=s-n}return{start:n,count:o}}function js(e){let{xScale:i,yScale:t,_scaleRanges:s}=e,n={xmin:i.min,xmax:i.max,ymin:t.min,ymax:t.max};if(!s)return e._scaleRanges=n,!0;let o=s.xmin!==i.min||s.xmax!==i.max||s.ymin!==t.min||s.ymax!==t.max;return Object.assign(s,n),o}var Ps=e=>e===0||e===1,Sa=(e,i,t)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-i)*Y/t)),Ca=(e,i,t)=>Math.pow(2,-10*e)*Math.sin((e-i)*Y/t)+1,Ie={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Z)+1,easeOutSine:e=>Math.sin(e*Z),easeInOutSine:e=>-.5*(Math.cos(U*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Ps(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Ps(e)?e:Sa(e,.075,.3),easeOutElastic:e=>Ps(e)?e:Ca(e,.075,.3),easeInOutElastic(e){return Ps(e)?e:e<.5?.5*Sa(e*2,.1125,.45):.5+.5*Ca(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let i=1.70158;return(e/=.5)<1?.5*(e*e*(((i*=1.525)+1)*e-i)):.5*((e-=2)*e*(((i*=1.525)+1)*e+i)+2)},easeInBounce:e=>1-Ie.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Ie.easeInBounce(e*2)*.5:Ie.easeOutBounce(e*2-1)*.5+.5};function Hs(e){if(e&&typeof e=="object"){let i=e.toString();return i==="[object CanvasPattern]"||i==="[object CanvasGradient]"}return!1}function Us(e){return Hs(e)?e:new wi(e)}function As(e){return Hs(e)?e:new wi(e).saturate(.5).darken(.1).hexString()}var mu=["x","y","borderWidth","radius","tension"],bu=["color","borderColor","backgroundColor"];function xu(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:i=>i!=="onProgress"&&i!=="onComplete"&&i!=="fn"}),e.set("animations",{colors:{type:"color",properties:bu},numbers:{type:"number",properties:mu}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:i=>i|0}}}})}function _u(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var Ta=new Map;function yu(e,i){i=i||{};let t=e+JSON.stringify(i),s=Ta.get(t);return s||(s=new Intl.NumberFormat(e,i),Ta.set(t,s)),s}function Ve(e,i,t){return yu(i,t).format(e)}var Na={values(e){return H(e)?e:""+e},numeric(e,i,t){if(e===0)return"0";let s=this.chart.options.locale,n,o=e;if(t.length>1){let c=Math.max(Math.abs(t[0].value),Math.abs(t[t.length-1].value));(c<1e-4||c>1e15)&&(n="scientific"),o=vu(e,t)}let r=Nt(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:n,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Ve(e,s,l)},logarithmic(e,i,t){if(e===0)return"0";let s=t[i].significand||e/Math.pow(10,Math.floor(Nt(e)));return[1,2,3,5,10,15].includes(s)||i>.8*t.length?Na.numeric.call(this,e,i,t):""}};function vu(e,i){let t=i.length>3?i[2].value-i[1].value:i[1].value-i[0].value;return Math.abs(t)>=1&&e!==Math.floor(e)&&(t=e-Math.floor(e)),t}var zi={formatters:Na};function Su(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(i,t)=>t.lineWidth,tickColor:(i,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:zi.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:i=>!i.startsWith("before")&&!i.startsWith("after")&&i!=="callback"&&i!=="parser",_indexable:i=>i!=="borderDash"&&i!=="tickBorderDash"&&i!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:i=>i!=="backdropPadding"&&i!=="callback",_indexable:i=>i!=="backdropPadding"})}var me=Object.create(null),Ys=Object.create(null);function Ai(e,i){if(!i)return e;let t=i.split(".");for(let s=0,n=t.length;ss.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(s,n)=>As(n.backgroundColor),this.hoverBorderColor=(s,n)=>As(n.borderColor),this.hoverColor=(s,n)=>As(n.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(i),this.apply(t)}set(i,t){return ro(this,i,t)}get(i){return Ai(this,i)}describe(i,t){return ro(Ys,i,t)}override(i,t){return ro(me,i,t)}route(i,t,s,n){let o=Ai(this,i),r=Ai(this,s),a="_"+t;Object.defineProperties(o,{[a]:{value:o[t],writable:!0},[t]:{enumerable:!0,get(){let l=this[a],c=r[n];return N(l)?Object.assign({},c,l):E(l,c)},set(l){this[a]=l}}})}apply(i){i.forEach(t=>t(this))}},X=new lo({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[xu,_u,Su]);function Ba(e){return!e||V(e.size)||V(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Ze(e,i,t,s,n){let o=i[n];return o||(o=i[n]=e.measureText(n).width,t.push(n)),o>s&&(s=o),s}function vo(e,i,t,s){s=s||{};let n=s.data=s.data||{},o=s.garbageCollect=s.garbageCollect||[];s.font!==i&&(n=s.data={},o=s.garbageCollect=[],s.font=i),e.save(),e.font=i;let r=0,a=t.length,l,c,h,f,u;for(l=0;lt.length){for(l=0;l0&&e.stroke()}}function Ot(e,i,t){return t=t||.5,!i||e&&e.x>i.left-t&&e.xi.top-t&&e.y0&&o.strokeColor!=="",l,c;for(e.save(),e.font=n.string,Cu(e,o),l=0;l+e||0;function Bi(e,i){let t={},s=N(i),n=s?Object.keys(i):i,o=N(e)?s?r=>E(e[r],e[i[r]]):r=>e[r]:()=>e;for(let r of n)t[r]=Ou(o(r));return t}function Gs(e){return Bi(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Jt(e){return Bi(e,["topLeft","topRight","bottomLeft","bottomRight"])}function rt(e){let i=Gs(e);return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function J(e,i){e=e||{},i=i||X.font;let t=E(e.size,i.size);typeof t=="string"&&(t=parseInt(t,10));let s=E(e.style,i.style);s&&!(""+s).match(wu)&&(console.warn('Invalid font style specified: "'+s+'"'),s=void 0);let n={family:E(e.family,i.family),lineHeight:Va(E(e.lineHeight,i.lineHeight),t),size:t,style:s,weight:E(e.weight,i.weight),string:""};return n.string=Ba(n),n}function je(e,i,t,s){let n=!0,o,r,a;for(o=0,r=e.length;ot&&a===0?0:a+l;return{min:r(s,-Math.abs(o)),max:r(n,o)}}function Vt(e,i){return Object.assign(Object.create(e),i)}function Vi(e,i=[""],t,s,n=()=>e[0]){let o=t||e;typeof s>"u"&&(s=Ha("_fallback",e));let r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:s,_getTarget:n,override:a=>Vi([a,...e],i,o,s)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return Wa(a,l,()=>Fu(l,i,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return Pa(a).includes(l)},ownKeys(a){return Pa(a)},set(a,l,c){let h=a._storage||(a._storage=n());return a[l]=h[l]=c,delete a._keys,!0}})}function pe(e,i,t,s){let n={_cacheable:!1,_proxy:e,_context:i,_subProxy:t,_stack:new Set,_descriptors:qs(e,s),setContext:o=>pe(e,o,t,s),override:o=>pe(e.override(o),i,t,s)};return new Proxy(n,{deleteProperty(o,r){return delete o[r],delete e[r],!0},get(o,r,a){return Wa(o,r,()=>ku(o,r,a))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,r){return Reflect.has(e,r)},ownKeys(){return Reflect.ownKeys(e)},set(o,r,a){return e[r]=a,delete o[r],!0}})}function qs(e,i={scriptable:!0,indexable:!0}){let{_scriptable:t=i.scriptable,_indexable:s=i.indexable,_allKeys:n=i.allKeys}=e;return{allKeys:n,scriptable:t,indexable:s,isScriptable:zt(t)?t:()=>t,isIndexable:zt(s)?s:()=>s}}var Au=(e,i)=>e?e+Ii(i):i,Mo=(e,i)=>N(i)&&e!=="adapters"&&(Object.getPrototypeOf(i)===null||i.constructor===Object);function Wa(e,i,t){if(Object.prototype.hasOwnProperty.call(e,i))return e[i];let s=t();return e[i]=s,s}function ku(e,i,t){let{_proxy:s,_context:n,_subProxy:o,_descriptors:r}=e,a=s[i];return zt(a)&&r.isScriptable(i)&&(a=Du(i,a,e,t)),H(a)&&a.length&&(a=Eu(i,a,e,r.isIndexable)),Mo(i,a)&&(a=pe(a,n,o&&o[i],r)),a}function Du(e,i,t,s){let{_proxy:n,_context:o,_subProxy:r,_stack:a}=t;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=i(o,r||s);return a.delete(e),Mo(e,l)&&(l=Po(n._scopes,n,e,l)),l}function Eu(e,i,t,s){let{_proxy:n,_context:o,_subProxy:r,_descriptors:a}=t;if(typeof o.index<"u"&&s(e))return i[o.index%i.length];if(N(i[0])){let l=i,c=n._scopes.filter(h=>h!==l);i=[];for(let h of l){let f=Po(c,n,e,h);i.push(pe(f,o,r&&r[e],a))}}return i}function ja(e,i,t){return zt(e)?e(i,t):e}var Iu=(e,i)=>e===!0?i:typeof e=="string"?Bt(i,e):void 0;function Lu(e,i,t,s,n){for(let o of i){let r=Iu(t,o);if(r){e.add(r);let a=ja(r._fallback,t,n);if(typeof a<"u"&&a!==t&&a!==s)return a}else if(r===!1&&typeof s<"u"&&t!==s)return null}return!1}function Po(e,i,t,s){let n=i._rootScopes,o=ja(i._fallback,t,s),r=[...e,...n],a=new Set;a.add(s);let l=Ma(a,r,t,o||t,s);return l===null||typeof o<"u"&&o!==t&&(l=Ma(a,r,o,l,s),l===null)?!1:Vi(Array.from(a),[""],n,o,()=>Ru(i,t,s))}function Ma(e,i,t,s,n){for(;t;)t=Lu(e,i,t,s,n);return t}function Ru(e,i,t){let s=e._getTarget();i in s||(s[i]={});let n=s[i];return H(n)&&N(t)?t:n||{}}function Fu(e,i,t,s){let n;for(let o of i)if(n=Ha(Au(o,e),t),typeof n<"u")return Mo(e,n)?Po(t,s,e,n):n}function Ha(e,i){for(let t of i){if(!t)continue;let s=t[e];if(typeof s<"u")return s}}function Pa(e){let i=e._keys;return i||(i=e._keys=zu(e._scopes)),i}function zu(e){let i=new Set;for(let t of e)for(let s of Object.keys(t).filter(n=>!n.startsWith("_")))i.add(s);return Array.from(i)}function Ks(e,i,t,s){let{iScale:n}=e,{key:o="r"}=this._parsing,r=new Array(s),a,l,c,h;for(a=0,l=s;aie==="x"?"y":"x";function Ya(e,i,t,s){let n=e.skip?i:e,o=i,r=t.skip?i:t,a=Ei(o,n),l=Ei(r,o),c=a/(a+l),h=l/(a+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;let f=s*c,u=s*h;return{previous:{x:o.x-f*(r.x-n.x),y:o.y-f*(r.y-n.y)},next:{x:o.x+u*(r.x-n.x),y:o.y+u*(r.y-n.y)}}}function Bu(e,i,t){let s=e.length,n,o,r,a,l,c=Qe(e,0);for(let h=0;h!c.skip)),i.cubicInterpolationMode==="monotone")Xa(e,n);else{let c=s?e[e.length-1]:e[0];for(o=0,r=e.length;oe.ownerDocument.defaultView.getComputedStyle(e,null);function $a(e,i){return Zs(e).getPropertyValue(i)}var ju=["top","right","bottom","left"];function Le(e,i,t){let s={};t=t?"-"+t:"";for(let n=0;n<4;n++){let o=ju[n];s[o]=parseFloat(e[i+"-"+o+t])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}var Hu=(e,i,t)=>(e>0||i>0)&&(!t||!t.shadowRoot);function Uu(e,i){let t=e.touches,s=t&&t.length?t[0]:e,{offsetX:n,offsetY:o}=s,r=!1,a,l;if(Hu(n,o,e.target))a=n,l=o;else{let c=i.getBoundingClientRect();a=s.clientX-c.left,l=s.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function vt(e,i){if("native"in e)return e;let{canvas:t,currentDevicePixelRatio:s}=i,n=Zs(t),o=n.boxSizing==="border-box",r=Le(n,"padding"),a=Le(n,"border","width"),{x:l,y:c,box:h}=Uu(e,t),f=r.left+(h&&a.left),u=r.top+(h&&a.top),{width:p,height:m}=i;return o&&(p-=r.width+a.width,m-=r.height+a.height),{x:Math.round((l-f)/p*t.width/s),y:Math.round((c-u)/m*t.height/s)}}function Yu(e,i,t){let s,n;if(i===void 0||t===void 0){let o=ji(e);if(!o)i=e.clientWidth,t=e.clientHeight;else{let r=o.getBoundingClientRect(),a=Zs(o),l=Le(a,"border","width"),c=Le(a,"padding");i=r.width-c.width-l.width,t=r.height-c.height-l.height,s=ks(a.maxWidth,o,"clientWidth"),n=ks(a.maxHeight,o,"clientHeight")}}return{width:i,height:t,maxWidth:s||Di,maxHeight:n||Di}}var Os=e=>Math.round(e*10)/10;function Oo(e,i,t,s){let n=Zs(e),o=Le(n,"margin"),r=ks(n.maxWidth,e,"clientWidth")||Di,a=ks(n.maxHeight,e,"clientHeight")||Di,l=Yu(e,i,t),{width:c,height:h}=l;if(n.boxSizing==="content-box"){let u=Le(n,"border","width"),p=Le(n,"padding");c-=p.width+u.width,h-=p.height+u.height}return c=Math.max(0,c-o.width),h=Math.max(0,s?c/s:h-o.height),c=Os(Math.min(c,r,l.maxWidth)),h=Os(Math.min(h,a,l.maxHeight)),c&&!h&&(h=Os(c/2)),(i!==void 0||t!==void 0)&&s&&l.height&&h>l.height&&(h=l.height,c=Os(Math.floor(h*s))),{width:c,height:h}}function Qs(e,i,t){let s=i||1,n=Math.floor(e.height*s),o=Math.floor(e.width*s);e.height=Math.floor(e.height),e.width=Math.floor(e.width);let r=e.canvas;return r.style&&(t||!r.style.height&&!r.style.width)&&(r.style.height=`${e.height}px`,r.style.width=`${e.width}px`),e.currentDevicePixelRatio!==s||r.height!==n||r.width!==o?(e.currentDevicePixelRatio=s,r.height=n,r.width=o,e.ctx.setTransform(s,0,0,s,0,0),!0):!1}var Ao=function(){let e=!1;try{let i={get passive(){return e=!0,!1}};Wi()&&(window.addEventListener("test",null,i),window.removeEventListener("test",null,i))}catch{}return e}();function Js(e,i){let t=$a(e,i),s=t&&t.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function Kt(e,i,t,s){return{x:e.x+t*(i.x-e.x),y:e.y+t*(i.y-e.y)}}function ko(e,i,t,s){return{x:e.x+t*(i.x-e.x),y:s==="middle"?t<.5?e.y:i.y:s==="after"?t<1?e.y:i.y:t>0?i.y:e.y}}function Do(e,i,t,s){let n={x:e.cp2x,y:e.cp2y},o={x:i.cp1x,y:i.cp1y},r=Kt(e,n,t),a=Kt(n,o,t),l=Kt(o,i,t),c=Kt(r,a,t),h=Kt(a,l,t);return Kt(c,h,t)}var Xu=function(e,i){return{x(t){return e+e+i-t},setWidth(t){i=t},textAlign(t){return t==="center"?t:t==="right"?"left":"right"},xPlus(t,s){return t-s},leftForLtr(t,s){return t-s}}},$u=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,i){return e+i},leftForLtr(e,i){return e}}};function be(e,i,t){return e?Xu(i,t):$u()}function tn(e,i){let t,s;(i==="ltr"||i==="rtl")&&(t=e.canvas.style,s=[t.getPropertyValue("direction"),t.getPropertyPriority("direction")],t.setProperty("direction",i,"important"),e.prevTextDirection=s)}function en(e,i){i!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",i[0],i[1]))}function Ga(e){return e==="angle"?{between:Be,compare:Fa,normalize:ft}:{between:kt,compare:(i,t)=>i-t,normalize:i=>i}}function wa({start:e,end:i,count:t,loop:s,style:n}){return{start:e%t,end:i%t,loop:s&&(i-e+1)%t===0,style:n}}function Gu(e,i,t){let{property:s,start:n,end:o}=t,{between:r,normalize:a}=Ga(s),l=i.length,{start:c,end:h,loop:f}=e,u,p;if(f){for(c+=l,h+=l,u=0,p=l;ul(n,T,y)&&a(n,T)!==0,C=()=>a(o,y)===0||l(o,T,y),M=()=>b||w(),A=()=>!b||C();for(let O=h,D=h;O<=f;++O)S=i[O%r],!S.skip&&(y=c(S[s]),y!==T&&(b=l(y,n,o),_===null&&M()&&(_=a(y,n)===0?O:D),_!==null&&A()&&(m.push(wa({start:_,end:O,loop:u,count:r,style:p})),_=null),D=O,T=y));return _!==null&&m.push(wa({start:_,end:f,loop:u,count:r,style:p})),m}function nn(e,i){let t=[],s=e.segments;for(let n=0;nn&&e[o%i].skip;)o--;return o%=i,{start:n,end:o}}function Ku(e,i,t,s){let n=e.length,o=[],r=i,a=e[i],l;for(l=i+1;l<=t;++l){let c=e[l%n];c.skip||c.stop?a.skip||(s=!1,o.push({start:i%n,end:(l-1)%n,loop:s}),i=r=c.stop?l:null):(r=l,a.skip&&(i=l)),a=c}return r!==null&&o.push({start:i%n,end:r%n,loop:s}),o}function Eo(e,i){let t=e.points,s=e.options.spanGaps,n=t.length;if(!n)return[];let o=!!e._loop,{start:r,end:a}=qu(t,n,o,s);if(s===!0)return Oa(e,[{start:r,end:a,loop:o}],t,i);let l=aa({chart:i,initial:t.initial,numSteps:r,currentStep:Math.min(s-t.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=Bs.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(i=Date.now()){let t=0;this._charts.forEach((s,n)=>{if(!s.running||!s.items.length)return;let o=s.items,r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>s.duration&&(s.duration=l._total),l.tick(i),a=!0):(o[r]=o[o.length-1],o.pop());a&&(n.draw(),this._notify(n,s,i,"progress")),o.length||(s.running=!1,this._notify(n,s,i,"complete"),s.initial=!1),t+=o.length}),this._lastDate=i,t===0&&(this._running=!1)}_getAnims(i){let t=this._charts,s=t.get(i);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(i,s)),s}listen(i,t,s){this._getAnims(i).listeners[t].push(s)}add(i,t){!t||!t.length||this._getAnims(i).items.push(...t)}has(i){return this._getAnims(i).items.length>0}start(i){let t=this._charts.get(i);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((s,n)=>Math.max(s,n._duration),0),this._refresh())}running(i){if(!this._running)return!1;let t=this._charts.get(i);return!(!t||!t.running||!t.items.length)}stop(i){let t=this._charts.get(i);if(!t||!t.items.length)return;let s=t.items,n=s.length-1;for(;n>=0;--n)s[n].cancel();t.items=[],this._notify(i,t,Date.now(),"complete")}remove(i){return this._charts.delete(i)}},te=new jo,qa="transparent",Ju={boolean(e,i,t){return t>.5?i:e},color(e,i,t){let s=Us(e||qa),n=s.valid&&Us(i||qa);return n&&n.valid?n.mix(s,t).hexString():i},number(e,i,t){return e+(i-e)*t}},Ho=class{constructor(i,t,s,n){let o=t[s];n=je([i.to,n,o,i.from]);let r=je([i.from,o,n]);this._active=!0,this._fn=i.fn||Ju[i.type||typeof r],this._easing=Ie[i.easing]||Ie.linear,this._start=Math.floor(Date.now()+(i.delay||0)),this._duration=this._total=Math.floor(i.duration),this._loop=!!i.loop,this._target=t,this._prop=s,this._from=r,this._to=n,this._promises=void 0}active(){return this._active}update(i,t,s){if(this._active){this._notify(!1);let n=this._target[this._prop],o=s-this._start,r=this._duration-o;this._start=s,this._duration=Math.floor(Math.max(r,i.duration)),this._total+=o,this._loop=!!i.loop,this._to=je([i.to,t,n,i.from]),this._from=je([i.from,n,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(i){let t=i-this._start,s=this._duration,n=this._prop,o=this._from,r=this._loop,a=this._to,l;if(this._active=o!==a&&(r||t1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[n]=this._fn(o,a,l)}wait(){let i=this._promises||(this._promises=[]);return new Promise((t,s)=>{i.push({res:t,rej:s})})}_notify(i){let t=i?"res":"rej",s=this._promises||[];for(let n=0;n{let o=i[n];if(!N(o))return;let r={};for(let a of t)r[a]=o[a];(H(o.properties)&&o.properties||[n]).forEach(a=>{(a===n||!s.has(a))&&s.set(a,r)})})}_animateOptions(i,t){let s=t.options,n=ed(i,s);if(!n)return[];let o=this._createAnimations(n,s);return s.$shared&&td(i.options.$animations,s).then(()=>{i.options=s},()=>{}),o}_createAnimations(i,t){let s=this._properties,n=[],o=i.$animations||(i.$animations={}),r=Object.keys(t),a=Date.now(),l;for(l=r.length-1;l>=0;--l){let c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){n.push(...this._animateOptions(i,t));continue}let h=t[c],f=o[c],u=s.get(c);if(f)if(u&&f.active()){f.update(u,h,a);continue}else f.cancel();if(!u||!u.duration){i[c]=h;continue}o[c]=f=new Ho(u,i,c,h),n.push(f)}return n}update(i,t){if(this._properties.size===0){Object.assign(i,t);return}let s=this._createAnimations(i,t);if(s.length)return te.add(this._chart,s),!0}};function td(e,i){let t=[],s=Object.keys(i);for(let n=0;n0||!t&&o<0)return n.index}return null}function tl(e,i){let{chart:t,_cachedMeta:s}=e,n=t._stacks||(t._stacks={}),{iScale:o,vScale:r,index:a}=s,l=o.axis,c=r.axis,h=od(o,r,s),f=i.length,u;for(let p=0;pt[s].axis===i).shift()}function ld(e,i){return Vt(e,{active:!1,dataset:void 0,datasetIndex:i,index:i,mode:"default",type:"dataset"})}function cd(e,i,t){return Vt(e,{active:!1,dataIndex:i,parsed:void 0,raw:void 0,element:t,index:i,mode:"default",type:"data"})}function Hi(e,i){let t=e.controller.index,s=e.vScale&&e.vScale.axis;if(s){i=i||e._parsed;for(let n of i){let o=n._stacks;if(!o||o[s]===void 0||o[s][t]===void 0)return;delete o[s][t],o[s]._visualValues!==void 0&&o[s]._visualValues[t]!==void 0&&delete o[s]._visualValues[t]}}}var Lo=e=>e==="reset"||e==="none",el=(e,i)=>i?e:Object.assign({},e),hd=(e,i,t)=>e&&!i.hidden&&i._stacked&&{keys:Kl(t,!0),values:null},_e=(()=>{class e{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,s){this.chart=t,this._ctx=t.ctx,this.index=s,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Qa(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Hi(this._cachedMeta),this.index=t}linkScales(){let t=this.chart,s=this._cachedMeta,n=this.getDataset(),o=(u,p,m,b)=>u==="x"?p:u==="r"?b:m,r=s.xAxisID=E(n.xAxisID,Io(t,"x")),a=s.yAxisID=E(n.yAxisID,Io(t,"y")),l=s.rAxisID=E(n.rAxisID,Io(t,"r")),c=s.indexAxis,h=s.iAxisID=o(c,r,a,l),f=s.vAxisID=o(c,a,r,l);s.xScale=this.getScaleForId(r),s.yScale=this.getScaleForId(a),s.rScale=this.getScaleForId(l),s.iScale=this.getScaleForId(h),s.vScale=this.getScaleForId(f)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){let s=this._cachedMeta;return t===s.iScale?s.vScale:s.iScale}reset(){this._update("reset")}_destroy(){let t=this._cachedMeta;this._data&&zs(this._data,this),t._stacked&&Hi(t)}_dataCheck(){let t=this.getDataset(),s=t.data||(t.data=[]),n=this._data;if(N(s))this._data=nd(s);else if(n!==s){if(n){zs(n,this);let o=this._cachedMeta;Hi(o),o._parsed=[]}s&&Object.isExtensible(s)&&xo(s,this),this._syncList=[],this._data=s}}addElements(){let t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){let s=this._cachedMeta,n=this.getDataset(),o=!1;this._dataCheck();let r=s._stacked;s._stacked=Qa(s.vScale,s),s.stack!==n.stack&&(o=!0,Hi(s),s.stack=n.stack),this._resyncElements(t),(o||r!==s._stacked)&&tl(this,s._parsed)}configure(){let t=this.chart.config,s=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),s,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,s){let{_cachedMeta:n,_data:o}=this,{iScale:r,_stacked:a}=n,l=r.axis,c=t===0&&s===o.length?!0:n._sorted,h=t>0&&n._parsed[t-1],f,u,p;if(this._parsing===!1)n._parsed=o,n._sorted=!0,p=o;else{H(o[t])?p=this.parseArrayData(n,o,t,s):N(o[t])?p=this.parseObjectData(n,o,t,s):p=this.parsePrimitiveData(n,o,t,s);let m=()=>u[l]===null||h&&u[l]_||u<_}for(p=0;p=0;--p)if(!b()){this.updateRangeFromParsed(h,t,m,c);break}}return h}getAllParsedValues(t){let s=this._cachedMeta._parsed,n=[],o,r,a;for(o=0,r=s.length;o=0&&tthis.getContext(n,o,s),_=h.resolveNamedOptions(p,m,b,u);return _.$shared&&(_.$shared=c,r[a]=Object.freeze(el(_,c))),_}_resolveAnimations(t,s,n){let o=this.chart,r=this._cachedDataOpts,a=`animation-${s}`,l=r[a];if(l)return l;let c;if(o.options.animation!==!1){let f=this.chart.config,u=f.datasetAnimationScopeKeys(this._type,s),p=f.getOptionScopes(this.getDataset(),u);c=f.createResolver(p,this.getContext(t,n,s))}let h=new pn(o,c&&c.animations);return c&&c._cacheable&&(r[a]=Object.freeze(h)),h}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,s){return!s||Lo(t)||this.chart._animationsDisabled}_getSharedOptions(t,s){let n=this.resolveDataElementOptions(t,s),o=this._sharedOptions,r=this.getSharedOptions(n),a=this.includeOptions(s,r)||r!==o;return this.updateSharedOptions(r,s,n),{sharedOptions:r,includeOptions:a}}updateElement(t,s,n,o){Lo(o)?Object.assign(t,n):this._resolveAnimations(s,o).update(t,n)}updateSharedOptions(t,s,n){t&&!Lo(s)&&this._resolveAnimations(void 0,s).update(t,n)}_setStyle(t,s,n,o){t.active=o;let r=this.getStyle(s,o);this._resolveAnimations(s,n,o).update(t,{options:!o&&this.getSharedOptions(r)||r})}removeHoverStyle(t,s,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,s,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){let s=this._data,n=this._cachedMeta.data;for(let[l,c,h]of this._syncList)this[l](c,h);this._syncList=[];let o=n.length,r=s.length,a=Math.min(r,o);a&&this.parse(0,a),r>o?this._insertElements(o,r-o,t):r{for(h.length+=s,l=h.length-1;l>=a;l--)h[l]=h[l-s]};for(c(r),l=t;ln-o))}return e._cache.$bar}function ud(e){let i=e.iScale,t=fd(i,e.type),s=i._length,n,o,r,a,l=()=>{r===32767||r===-32768||(ze(a)&&(s=Math.min(s,Math.abs(r-a)||s)),a=r)};for(n=0,o=t.length;n0?n[e-1]:null,a=eMath.abs(a)&&(l=a,c=r),i[t.axis]=c,i._custom={barStart:l,barEnd:c,start:n,end:o,min:r,max:a}}function Zl(e,i,t,s){return H(e)?gd(e,i,t,s):i[t.axis]=t.parse(e,s),i}function il(e,i,t,s){let n=e.iScale,o=e.vScale,r=n.getLabels(),a=n===o,l=[],c,h,f,u;for(c=t,h=t+s;c=t?1:-1)}function bd(e){let i,t,s,n,o;return e.horizontal?(i=e.base>e.x,t="left",s="right"):(i=e.base{class e extends _e{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,s,n,o){return il(t,s,n,o)}parseArrayData(t,s,n,o){return il(t,s,n,o)}parseObjectData(t,s,n,o){let{iScale:r,vScale:a}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,h=r.axis==="x"?l:c,f=a.axis==="x"?l:c,u=[],p,m,b,_;for(p=n,m=n+o;pc.controller.options.grouped),r=n.options.stacked,a=[],l=c=>{let h=c.controller.getParsed(s),f=h&&h[c.vScale.axis];if(V(f)||isNaN(f))return!0};for(let c of o)if(!(s!==void 0&&l(c))&&((r===!1||a.indexOf(c.stack)===-1||r===void 0&&c.stack===void 0)&&a.push(c.stack),c.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,s,n){let o=this._getStacks(t,n),r=s!==void 0?o.indexOf(s):-1;return r===-1?o.length-1:r}_getRuler(){let t=this.options,s=this._cachedMeta,n=s.iScale,o=[],r,a;for(r=0,a=s.data.length;r{class e extends _e{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,s,n,o){let r=super.parsePrimitiveData(t,s,n,o);for(let a=0;a=0;--n)s=Math.max(s,t[n].size(this.resolveDataElementOptions(n))/2);return s>0&&s}getLabelAndValue(t){let s=this._cachedMeta,n=this.chart.data.labels||[],{xScale:o,yScale:r}=s,a=this.getParsed(t),l=o.getLabelForValue(a.x),c=r.getLabelForValue(a.y),h=a._custom;return{label:n[t]||"",value:"("+l+", "+c+(h?", "+h:"")+")"}}update(t){let s=this._cachedMeta.data;this.updateElements(s,0,s.length,t)}updateElements(t,s,n,o){let r=o==="reset",{iScale:a,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:h}=this._getSharedOptions(s,o),f=a.axis,u=l.axis;for(let p=s;pBe(T,a,l,!0)?1:Math.max(w,w*t,C,C*t),m=(T,w,C)=>Be(T,a,l,!0)?-1:Math.min(w,w*t,C,C*t),b=p(0,c,f),_=p(Z,h,u),y=m(U,c,f),S=m(U+Z,h,u);s=(b-y)/2,n=(_-S)/2,o=-(b+y)/2,r=-(_+S)/2}return{ratioX:s,ratioY:n,offsetX:o,offsetY:r}}var cr=(()=>{class e extends _e{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let s=t.data;if(s.labels.length&&s.datasets.length){let{labels:{pointStyle:n,color:o}}=t.legend.options;return s.labels.map((r,a)=>{let c=t.getDatasetMeta(0).controller.getStyle(a);return{text:r,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:o,lineWidth:c.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,s,n){n.chart.toggleDataVisibility(s.index),n.chart.update()}}}};constructor(t,s){super(t,s),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,s){let n=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=n;else{let r=c=>+n[c];if(N(n[t])){let{key:c="value"}=this._parsing;r=h=>+Bt(n[h],c)}let a,l;for(a=t,l=t+s;a0&&!isNaN(t)?Y*(Math.abs(t)/s):0}getLabelAndValue(t){let s=this._cachedMeta,n=this.chart,o=n.data.labels||[],r=Ve(s._parsed[t],n.options.locale);return{label:o[t]||"",value:r}}getMaxBorderWidth(t){let s=0,n=this.chart,o,r,a,l,c;if(!t){for(o=0,r=n.data.datasets.length;o{class e extends _e{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){let s=this._cachedMeta,{dataset:n,data:o=[],_dataset:r}=s,a=this.chart._animationsDisabled,{start:l,count:c}=Ws(s,o,a);this._drawStart=l,this._drawCount=c,js(s)&&(l=0,c=o.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=o;let h=this.resolveDatasetElementOptions(t);this.options.showLine||(h.borderWidth=0),h.segment=this.options.segment,this.updateElement(n,void 0,{animated:!a,options:h},t),this.updateElements(o,l,c,t)}updateElements(t,s,n,o){let r=o==="reset",{iScale:a,vScale:l,_stacked:c,_dataset:h}=this._cachedMeta,{sharedOptions:f,includeOptions:u}=this._getSharedOptions(s,o),p=a.axis,m=l.axis,{spanGaps:b,segment:_}=this.options,y=ge(b)?b:Number.POSITIVE_INFINITY,S=this.chart._animationsDisabled||r||o==="none",T=s+n,w=t.length,C=s>0&&this.getParsed(s-1);for(let M=0;M=T){O.skip=!0;continue}let D=this.getParsed(M),I=V(D[m]),R=O[p]=a.getPixelForValue(D[p],M),z=O[m]=r||I?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,D,c):D[m],M);O.skip=isNaN(R)||isNaN(z)||I,O.stop=M>0&&Math.abs(D[p]-C[p])>y,_&&(O.parsed=D,O.raw=h.data[M]),u&&(O.options=f||this.resolveDataElementOptions(M,A.active?"active":o)),S||this.updateElement(A,M,O,o),C=D}}getMaxOverflow(){let t=this._cachedMeta,s=t.dataset,n=s.options&&s.options.borderWidth||0,o=t.data||[];if(!o.length)return n;let r=o[0].size(this.resolveDataElementOptions(0)),a=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(n,r,a)/2}draw(){let t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}return e})(),Ql=(()=>{class e extends _e{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let s=t.data;if(s.labels.length&&s.datasets.length){let{labels:{pointStyle:n,color:o}}=t.legend.options;return s.labels.map((r,a)=>{let c=t.getDatasetMeta(0).controller.getStyle(a);return{text:r,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:o,lineWidth:c.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,s,n){n.chart.toggleDataVisibility(s.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,s){super(t,s),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){let s=this._cachedMeta,n=this.chart,o=n.data.labels||[],r=Ve(s._parsed[t].r,n.options.locale);return{label:o[t]||"",value:r}}parseObjectData(t,s,n,o){return Ks.bind(this)(t,s,n,o)}update(t){let s=this._cachedMeta.data;this._updateRadius(),this.updateElements(s,0,s.length,t)}getMinMax(){let t=this._cachedMeta,s={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((n,o)=>{let r=this.getParsed(o).r;!isNaN(r)&&this.chart.getDataVisibility(o)&&(rs.max&&(s.max=r))}),s}_updateRadius(){let t=this.chart,s=t.chartArea,n=t.options,o=Math.min(s.right-s.left,s.bottom-s.top),r=Math.max(o/2,0),a=Math.max(n.cutoutPercentage?r/100*n.cutoutPercentage:1,0),l=(r-a)/t.getVisibleDatasetCount();this.outerRadius=r-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(t,s,n,o){let r=o==="reset",a=this.chart,c=a.options.animation,h=this._cachedMeta.rScale,f=h.xCenter,u=h.yCenter,p=h.getIndexAngle(0)-.5*U,m=p,b,_=360/this.countVisibleElements();for(b=0;b{!isNaN(this.getParsed(o).r)&&this.chart.getDataVisibility(o)&&s++}),s}_computeAngle(t,s,n){return this.chart.getDataVisibility(t)?yt(this.resolveDataElementOptions(t,s).angle||n):0}}return e})(),Md=(()=>{class e extends cr{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}return e})(),Pd=(()=>{class e extends _e{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){let s=this._cachedMeta.vScale,n=this.getParsed(t);return{label:s.getLabels()[t],value:""+s.getLabelForValue(n[s.axis])}}parseObjectData(t,s,n,o){return Ks.bind(this)(t,s,n,o)}update(t){let s=this._cachedMeta,n=s.dataset,o=s.data||[],r=s.iScale.getLabels();if(n.points=o,t!=="resize"){let a=this.resolveDatasetElementOptions(t);this.options.showLine||(a.borderWidth=0);let l={_loop:!0,_fullLoop:r.length===o.length,options:a};this.updateElement(n,void 0,l,t)}this.updateElements(o,0,o.length,t)}updateElements(t,s,n,o){let r=this._cachedMeta.rScale,a=o==="reset";for(let l=s;l{class e extends _e{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){let s=this._cachedMeta,n=this.chart.data.labels||[],{xScale:o,yScale:r}=s,a=this.getParsed(t),l=o.getLabelForValue(a.x),c=r.getLabelForValue(a.y);return{label:n[t]||"",value:"("+l+", "+c+")"}}update(t){let s=this._cachedMeta,{data:n=[]}=s,o=this.chart._animationsDisabled,{start:r,count:a}=Ws(s,n,o);if(this._drawStart=r,this._drawCount=a,js(s)&&(r=0,a=n.length),this.options.showLine){this.datasetElementType||this.addElements();let{dataset:l,_dataset:c}=s;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=n;let h=this.resolveDatasetElementOptions(t);h.segment=this.options.segment,this.updateElement(l,void 0,{animated:!o,options:h},t)}else this.datasetElementType&&(delete s.dataset,this.datasetElementType=!1);this.updateElements(n,r,a,t)}addElements(){let{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,s,n,o){let r=o==="reset",{iScale:a,vScale:l,_stacked:c,_dataset:h}=this._cachedMeta,f=this.resolveDataElementOptions(s,o),u=this.getSharedOptions(f),p=this.includeOptions(o,u),m=a.axis,b=l.axis,{spanGaps:_,segment:y}=this.options,S=ge(_)?_:Number.POSITIVE_INFINITY,T=this.chart._animationsDisabled||r||o==="none",w=s>0&&this.getParsed(s-1);for(let C=s;C0&&Math.abs(A[m]-w[m])>S,y&&(O.parsed=A,O.raw=h.data[C]),p&&(O.options=u||this.resolveDataElementOptions(C,M.active?"active":o)),T||this.updateElement(M,C,O,o),w=A}this.updateSharedOptions(u,o,f)}getMaxOverflow(){let t=this._cachedMeta,s=t.data||[];if(!this.options.showLine){let l=0;for(let c=s.length-1;c>=0;--c)l=Math.max(l,s[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}let n=t.dataset,o=n.options&&n.options.borderWidth||0;if(!s.length)return o;let r=s[0].size(this.resolveDataElementOptions(0)),a=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(o,r,a)/2}}return e})(),Od=Object.freeze({__proto__:null,BarController:vd,BubbleController:Sd,DoughnutController:cr,LineController:Td,PieController:Md,PolarAreaController:Ql,RadarController:Pd,ScatterController:wd});function He(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var Uo=class e{static override(i){Object.assign(e.prototype,i)}options;constructor(i){this.options=i||{}}init(){}formats(){return He()}parse(){return He()}format(){return He()}add(){return He()}diff(){return He()}startOf(){return He()}endOf(){return He()}},Ad={_date:Uo};function kd(e,i,t,s){let{controller:n,data:o,_sorted:r}=e,a=n._cachedMeta.iScale;if(a&&i===a.axis&&i!=="r"&&r&&o.length){let l=a._reversePixels?mo:wt;if(s){if(n._sharedOptions){let c=o[0],h=typeof c.getRange=="function"&&c.getRange(i);if(h){let f=l(o,i,t-h),u=l(o,i,t+h);return{lo:f.lo,hi:u.hi}}}}else return l(o,i,t)}return{lo:0,hi:o.length-1}}function Ji(e,i,t,s,n){let o=e.getSortedVisibleDatasetMetas(),r=t[i];for(let a=0,l=o.length;a{l[r](i[t],n)&&(o.push({element:l,datasetIndex:c,index:h}),a=a||l.inRange(i.x,i.y,n))}),s&&!a?[]:o}var Ld={evaluateInteractionItems:Ji,modes:{index(e,i,t,s){let n=vt(i,e),o=t.axis||"x",r=t.includeInvisible||!1,a=t.intersect?Fo(e,n,o,s,r):zo(e,n,o,!1,s,r),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{let h=a[0].index,f=c.data[h];f&&!f.skip&&l.push({element:f,datasetIndex:c.index,index:h})}),l):[]},dataset(e,i,t,s){let n=vt(i,e),o=t.axis||"xy",r=t.includeInvisible||!1,a=t.intersect?Fo(e,n,o,s,r):zo(e,n,o,!1,s,r);if(a.length>0){let l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let h=0;ht.pos===i)}function rl(e,i){return e.filter(t=>Jl.indexOf(t.pos)===-1&&t.box.axis===i)}function Yi(e,i){return e.sort((t,s)=>{let n=i?s:t,o=i?t:s;return n.weight===o.weight?n.index-o.index:n.weight-o.weight})}function Rd(e){let i=[],t,s,n,o,r,a;for(t=0,s=(e||[]).length;tc.box.fullSize),!0),s=Yi(Ui(i,"left"),!0),n=Yi(Ui(i,"right")),o=Yi(Ui(i,"top"),!0),r=Yi(Ui(i,"bottom")),a=rl(i,"x"),l=rl(i,"y");return{fullSize:t,leftAndTop:s.concat(o),rightAndBottom:n.concat(l).concat(r).concat(a),chartArea:Ui(i,"chartArea"),vertical:s.concat(n).concat(l),horizontal:o.concat(r).concat(a)}}function al(e,i,t,s){return Math.max(e[t],i[t])+Math.max(e[s],i[s])}function tc(e,i){e.top=Math.max(e.top,i.top),e.left=Math.max(e.left,i.left),e.bottom=Math.max(e.bottom,i.bottom),e.right=Math.max(e.right,i.right)}function Bd(e,i,t,s){let{pos:n,box:o}=t,r=e.maxPadding;if(!N(n)){t.size&&(e[n]-=t.size);let f=s[t.stack]||{size:0,count:1};f.size=Math.max(f.size,t.horizontal?o.height:o.width),t.size=f.size/f.count,e[n]+=t.size}o.getPadding&&tc(r,o.getPadding());let a=Math.max(0,i.outerWidth-al(r,e,"left","right")),l=Math.max(0,i.outerHeight-al(r,e,"top","bottom")),c=a!==e.w,h=l!==e.h;return e.w=a,e.h=l,t.horizontal?{same:c,other:h}:{same:h,other:c}}function Vd(e){let i=e.maxPadding;function t(s){let n=Math.max(i[s]-e[s],0);return e[s]+=n,n}e.y+=t("top"),e.x+=t("left"),t("right"),t("bottom")}function Wd(e,i){let t=i.maxPadding;function s(n){let o={left:0,top:0,right:0,bottom:0};return n.forEach(r=>{o[r]=Math.max(i[r],t[r])}),o}return s(e?["left","right"]:["top","bottom"])}function Gi(e,i,t,s){let n=[],o,r,a,l,c,h;for(o=0,r=e.length,c=0;o{typeof b.beforeLayout=="function"&&b.beforeLayout()});let h=l.reduce((b,_)=>_.box.options&&_.box.options.display===!1?b:b+1,0)||1,f=Object.freeze({outerWidth:i,outerHeight:t,padding:n,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/h,hBoxMaxHeight:r/2}),u=Object.assign({},n);tc(u,rt(s));let p=Object.assign({maxPadding:u,w:o,h:r,x:n.left,y:n.top},n),m=zd(l.concat(c),f);Gi(a.fullSize,p,f,m),Gi(l,p,f,m),Gi(c,p,f,m)&&Gi(l,p,f,m),Vd(p),ll(a.leftAndTop,p,f,m),p.x+=p.w,p.y+=p.h,ll(a.rightAndBottom,p,f,m),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},F(a.chartArea,b=>{let _=b.box;Object.assign(_,e.chartArea),_.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}},gn=class{acquireContext(i,t){}releaseContext(i){return!1}addEventListener(i,t,s){}removeEventListener(i,t,s){}getDevicePixelRatio(){return 1}getMaximumSize(i,t,s,n){return t=Math.max(0,t||i.width),s=s||i.height,{width:t,height:Math.max(0,n?Math.floor(t/n):s)}}isAttached(i){return!0}updateConfig(i){}},Yo=class extends gn{acquireContext(i){return i&&i.getContext&&i.getContext("2d")||null}updateConfig(i){i.options.animation=!1}},un="$chartjs",jd={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},cl=e=>e===null||e==="";function Hd(e,i){let t=e.style,s=e.getAttribute("height"),n=e.getAttribute("width");if(e[un]={initial:{height:s,width:n,style:{display:t.display,height:t.height,width:t.width}}},t.display=t.display||"block",t.boxSizing=t.boxSizing||"border-box",cl(n)){let o=Js(e,"width");o!==void 0&&(e.width=o)}if(cl(s))if(e.style.height==="")e.height=e.width/(i||2);else{let o=Js(e,"height");o!==void 0&&(e.height=o)}return e}var ec=Ao?{passive:!0}:!1;function Ud(e,i,t){e.addEventListener(i,t,ec)}function Yd(e,i,t){e.canvas.removeEventListener(i,t,ec)}function Xd(e,i){let t=jd[e.type]||e.type,{x:s,y:n}=vt(e,i);return{type:t,chart:i,native:e,x:s!==void 0?s:null,y:n!==void 0?n:null}}function mn(e,i){for(let t of e)if(t===i||t.contains(i))return!0}function $d(e,i,t){let s=e.canvas,n=new MutationObserver(o=>{let r=!1;for(let a of o)r=r||mn(a.addedNodes,s),r=r&&!mn(a.removedNodes,s);r&&t()});return n.observe(document,{childList:!0,subtree:!0}),n}function Gd(e,i,t){let s=e.canvas,n=new MutationObserver(o=>{let r=!1;for(let a of o)r=r||mn(a.removedNodes,s),r=r&&!mn(a.addedNodes,s);r&&t()});return n.observe(document,{childList:!0,subtree:!0}),n}var Ki=new Map,hl=0;function ic(){let e=window.devicePixelRatio;e!==hl&&(hl=e,Ki.forEach((i,t)=>{t.currentDevicePixelRatio!==e&&i()}))}function qd(e,i){Ki.size||window.addEventListener("resize",ic),Ki.set(e,i)}function Kd(e){Ki.delete(e),Ki.size||window.removeEventListener("resize",ic)}function Zd(e,i,t){let s=e.canvas,n=s&&ji(s);if(!n)return;let o=Vs((a,l)=>{let c=n.clientWidth;t(a,l),c{let l=a[0],c=l.contentRect.width,h=l.contentRect.height;c===0&&h===0||o(c,h)});return r.observe(n),qd(e,o),r}function No(e,i,t){t&&t.disconnect(),i==="resize"&&Kd(e)}function Qd(e,i,t){let s=e.canvas,n=Vs(o=>{e.ctx!==null&&t(Xd(o,e))},e);return Ud(s,i,n),n}var Xo=class extends gn{acquireContext(i,t){let s=i&&i.getContext&&i.getContext("2d");return s&&s.canvas===i?(Hd(i,t),s):null}releaseContext(i){let t=i.canvas;if(!t[un])return!1;let s=t[un].initial;["height","width"].forEach(o=>{let r=s[o];V(r)?t.removeAttribute(o):t.setAttribute(o,r)});let n=s.style||{};return Object.keys(n).forEach(o=>{t.style[o]=n[o]}),t.width=t.width,delete t[un],!0}addEventListener(i,t,s){this.removeEventListener(i,t);let n=i.$proxies||(i.$proxies={}),r={attach:$d,detach:Gd,resize:Zd}[t]||Qd;n[t]=r(i,t,s)}removeEventListener(i,t){let s=i.$proxies||(i.$proxies={}),n=s[t];if(!n)return;({attach:No,detach:No,resize:No}[t]||Yd)(i,t,n),s[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(i,t,s,n){return Oo(i,t,s,n)}isAttached(i){let t=ji(i);return!!(t&&t.isConnected)}};function Jd(e){return!Wi()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Yo:Xo}var Dt=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(i){let{x:t,y:s}=this.getProps(["x","y"],i);return{x:t,y:s}}hasValue(){return ge(this.x)&&ge(this.y)}getProps(i,t){let s=this.$animations;if(!t||!s)return this;let n={};return i.forEach(o=>{n[o]=s[o]&&s[o].active()?s[o]._to:this[o]}),n}};function tp(e,i){let t=e.options.ticks,s=ep(e),n=Math.min(t.maxTicksLimit||s,s),o=t.major.enabled?sp(i):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>n)return np(i,c,o,r/n),c;let h=ip(o,i,n);if(r>0){let f,u,p=r>1?Math.round((l-a)/(r-1)):null;for(rn(i,c,h,V(p)?0:a-p,a),f=0,u=r-1;fn)return l}return Math.max(n,1)}function sp(e){let i=[],t,s;for(t=0,s=e.length;te==="left"?"right":e==="right"?"left":e,fl=(e,i,t)=>i==="top"||i==="left"?e[i]+t:e[i]-t,ul=(e,i)=>Math.min(i||e,e);function dl(e,i){let t=[],s=e.length/i,n=e.length,o=0;for(;or+a)))return l}function lp(e,i){F(e,t=>{let s=t.gc,n=s.length/2,o;if(n>i){for(o=0;os?s:t,s=n&&t>s?t:s,{min:dt(t,dt(s,t)),max:dt(s,dt(t,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let i=this.chart.data;return this.options.labels||(this.isHorizontal()?i.xLabels:i.yLabels)||i.labels||[]}getLabelItems(i=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(i))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){L(this.options.beforeUpdate,[this])}update(i,t,s){let{beginAtZero:n,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=i,this.maxHeight=t,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=To(this,o,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let l=a=o||s<=1||!this.isHorizontal()){this.labelRotation=n;return}let h=this._getLabelSizes(),f=h.widest.width,u=h.highest.height,p=it(this.chart.width-f,0,this.maxWidth);a=i.offset?this.maxWidth/s:p/(s-1),f+6>a&&(a=p/(s-(i.offset?.5:1)),l=this.maxHeight-Xi(i.grid)-t.padding-pl(i.title,this.chart.options.font),c=Math.sqrt(f*f+u*u),r=Li(Math.min(Math.asin(it((h.highest.height+6)/a,-1,1)),Math.asin(it(l/c,-1,1))-Math.asin(it(u/c,-1,1)))),r=Math.max(n,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){L(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){L(this.options.beforeFit,[this])}fit(){let i={width:0,height:0},{chart:t,options:{ticks:s,title:n,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){let l=pl(n,t.options.font);if(a?(i.width=this.maxWidth,i.height=Xi(o)+l):(i.height=this.maxHeight,i.width=Xi(o)+l),s.display&&this.ticks.length){let{first:c,last:h,widest:f,highest:u}=this._getLabelSizes(),p=s.padding*2,m=yt(this.labelRotation),b=Math.cos(m),_=Math.sin(m);if(a){let y=s.mirror?0:_*f.width+b*u.height;i.height=Math.min(this.maxHeight,i.height+y+p)}else{let y=s.mirror?0:b*f.width+_*u.height;i.width=Math.min(this.maxWidth,i.width+y+p)}this._calculatePadding(c,h,_,b)}}this._handleMargins(),a?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=i.height):(this.width=i.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(i,t,s,n){let{ticks:{align:o,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){let h=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1),u=0,p=0;l?c?(u=n*i.width,p=s*t.height):(u=s*i.height,p=n*t.width):o==="start"?p=t.width:o==="end"?u=i.width:o!=="inner"&&(u=i.width/2,p=t.width/2),this.paddingLeft=Math.max((u-h+r)*this.width/(this.width-h),0),this.paddingRight=Math.max((p-f+r)*this.width/(this.width-f),0)}else{let h=t.height/2,f=i.height/2;o==="start"?(h=0,f=i.height):o==="end"&&(h=t.height,f=0),this.paddingTop=h+r,this.paddingBottom=f+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){L(this.options.afterFit,[this])}isHorizontal(){let{axis:i,position:t}=this.options;return t==="top"||t==="bottom"||i==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(i){this.beforeTickToLabelConversion(),this.generateTickLabels(i);let t,s;for(t=0,s=i.length;t({width:r[D]||0,height:a[D]||0});return{first:O(0),last:O(t-1),widest:O(M),highest:O(A),widths:r,heights:a}}getLabelForValue(i){return i}getPixelForValue(i,t){return NaN}getValueForPixel(i){}getPixelForTick(i){let t=this.ticks;return i<0||i>t.length-1?null:this.getPixelForValue(t[i].value)}getPixelForDecimal(i){this._reversePixels&&(i=1-i);let t=this._startPixel+i*this._length;return go(this._alignToPixels?Zt(this.chart,t,0):t)}getDecimalForPixel(i){let t=(i-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:i,max:t}=this;return i<0&&t<0?t:i>0&&t>0?i:0}getContext(i){let t=this.ticks||[];if(i>=0&&ia*n?a/s:l/n:l*n0}_computeGridLineItems(i){let t=this.axis,s=this.chart,n=this.options,{grid:o,position:r,border:a}=n,l=o.offset,c=this.isHorizontal(),f=this.ticks.length+(l?1:0),u=Xi(o),p=[],m=a.setContext(this.getContext()),b=m.display?m.width:0,_=b/2,y=function(j){return Zt(s,j,b)},S,T,w,C,M,A,O,D,I,R,z,Q;if(r==="top")S=y(this.bottom),A=this.bottom-u,D=S-_,R=y(i.top)+_,Q=i.bottom;else if(r==="bottom")S=y(this.top),R=i.top,Q=y(i.bottom)-_,A=S+_,D=this.top+u;else if(r==="left")S=y(this.right),M=this.right-u,O=S-_,I=y(i.left)+_,z=i.right;else if(r==="right")S=y(this.left),I=i.left,z=y(i.right)-_,M=S+_,O=this.left+u;else if(t==="x"){if(r==="center")S=y((i.top+i.bottom)/2+.5);else if(N(r)){let j=Object.keys(r)[0],q=r[j];S=y(this.chart.scales[j].getPixelForValue(q))}R=i.top,Q=i.bottom,A=S+_,D=A+u}else if(t==="y"){if(r==="center")S=y((i.left+i.right)/2);else if(N(r)){let j=Object.keys(r)[0],q=r[j];S=y(this.chart.scales[j].getPixelForValue(q))}M=S-_,O=M-u,I=i.left,z=i.right}let ct=E(n.ticks.maxTicksLimit,f),W=Math.max(1,Math.ceil(f/ct));for(T=0;T0&&(K-=Yt/2);break}It={left:K,top:Oe,width:Yt+ae.width,height:Ut+ae.height,color:W.backdropColor}}_.push({label:w,font:D,textOffset:z,options:{rotation:b,color:q,strokeColor:pt,strokeWidth:st,textAlign:re,textBaseline:Q,translation:[C,M],backdrop:It}})}return _}_getXAxisLabelAlignment(){let{position:i,ticks:t}=this.options;if(-yt(this.labelRotation))return i==="top"?"left":"right";let n="center";return t.align==="start"?n="left":t.align==="end"?n="right":t.align==="inner"&&(n="inner"),n}_getYAxisLabelAlignment(i){let{position:t,ticks:{crossAlign:s,mirror:n,padding:o}}=this.options,r=this._getLabelSizes(),a=i+o,l=r.widest.width,c,h;return t==="left"?n?(h=this.right+o,s==="near"?c="left":s==="center"?(c="center",h+=l/2):(c="right",h+=l)):(h=this.right-a,s==="near"?c="right":s==="center"?(c="center",h-=l/2):(c="left",h=this.left)):t==="right"?n?(h=this.left+o,s==="near"?c="right":s==="center"?(c="center",h-=l/2):(c="left",h-=l)):(h=this.left+a,s==="near"?c="left":s==="center"?(c="center",h+=l/2):(c="right",h=this.right)):c="right",{textAlign:c,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;let i=this.chart,t=this.options.position;if(t==="left"||t==="right")return{top:0,left:this.left,bottom:i.height,right:this.right};if(t==="top"||t==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:i.width}}drawBackground(){let{ctx:i,options:{backgroundColor:t},left:s,top:n,width:o,height:r}=this;t&&(i.save(),i.fillStyle=t,i.fillRect(s,n,o,r),i.restore())}getLineWidthForValue(i){let t=this.options.grid;if(!this._isVisible()||!t.display)return 0;let n=this.ticks.findIndex(o=>o.value===i);return n>=0?t.setContext(this.getContext(n)).lineWidth:0}drawGrid(i){let t=this.options.grid,s=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(i)),o,r,a=(l,c,h)=>{!h.width||!h.color||(s.save(),s.lineWidth=h.width,s.strokeStyle=h.color,s.setLineDash(h.borderDash||[]),s.lineDashOffset=h.borderDashOffset,s.beginPath(),s.moveTo(l.x,l.y),s.lineTo(c.x,c.y),s.stroke(),s.restore())};if(t.display)for(o=0,r=n.length;o{this.draw(o)}}]:[{z:s,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:t,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(i){let t=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",n=[],o,r;for(o=0,r=t.length;o{let s=t.split("."),n=s.pop(),o=[e].concat(s).join("."),r=i[t].split("."),a=r.pop(),l=r.join(".");X.route(o,n,l,a)})}function gp(e){return"id"in e&&"defaults"in e}var $o=class{constructor(){this.controllers=new si(_e,"datasets",!0),this.elements=new si(Dt,"elements"),this.plugins=new si(Object,"plugins"),this.scales=new si(Ye,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...i){this._each("register",i)}remove(...i){this._each("unregister",i)}addControllers(...i){this._each("register",i,this.controllers)}addElements(...i){this._each("register",i,this.elements)}addPlugins(...i){this._each("register",i,this.plugins)}addScales(...i){this._each("register",i,this.scales)}getController(i){return this._get(i,this.controllers,"controller")}getElement(i){return this._get(i,this.elements,"element")}getPlugin(i){return this._get(i,this.plugins,"plugin")}getScale(i){return this._get(i,this.scales,"scale")}removeControllers(...i){this._each("unregister",i,this.controllers)}removeElements(...i){this._each("unregister",i,this.elements)}removePlugins(...i){this._each("unregister",i,this.plugins)}removeScales(...i){this._each("unregister",i,this.scales)}_each(i,t,s){[...t].forEach(n=>{let o=s||this._getRegistryForType(n);s||o.isForType(n)||o===this.plugins&&n.id?this._exec(i,o,n):F(n,r=>{let a=s||this._getRegistryForType(r);this._exec(i,a,r)})})}_exec(i,t,s){let n=Ii(i);L(s["before"+n],[],s),t[i](s),L(s["after"+n],[],s)}_getRegistryForType(i){for(let t=0;to.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(n(t,s),i,"stop"),this._notify(n(s,t),i,"start")}};function mp(e){let i={},t=[],s=Object.keys(jt.plugins.items);for(let o=0;o1&&gl(e[0].toLowerCase());if(s)return s}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function ml(e,i,t){if(t[i+"AxisID"]===e)return{axis:i}}function Cp(e,i){if(i.data&&i.data.datasets){let t=i.data.datasets.filter(s=>s.xAxisID===e||s.yAxisID===e);if(t.length)return ml(e,"x",t[0])||ml(e,"y",t[0])}return{}}function Tp(e,i){let t=me[e.type]||{scales:{}},s=i.scales||{},n=qo(e.type,i),o=Object.create(null);return Object.keys(s).forEach(r=>{let a=s[r];if(!N(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);let l=Ko(r,a,Cp(r,e),X.scales[a.type]),c=vp(l,n),h=t.scales||{};o[r]=Fe(Object.create(null),[{axis:l},a,h[l],h[c]])}),e.data.datasets.forEach(r=>{let a=r.type||e.type,l=r.indexAxis||qo(a,i),h=(me[a]||{}).scales||{};Object.keys(h).forEach(f=>{let u=yp(f,l),p=r[u+"AxisID"]||u;o[p]=o[p]||Object.create(null),Fe(o[p],[{axis:u},s[p],h[f]])})}),Object.keys(o).forEach(r=>{let a=o[r];Fe(a,[X.scales[a.type],X.scale])}),o}function sc(e){let i=e.options||(e.options={});i.plugins=E(i.plugins,{}),i.scales=Tp(e,i)}function nc(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function Mp(e){return e=e||{},e.data=nc(e.data),sc(e),e}var bl=new Map,oc=new Set;function an(e,i){let t=bl.get(e);return t||(t=i(),bl.set(e,t),oc.add(t)),t}var $i=(e,i,t)=>{let s=Bt(i,t);s!==void 0&&e.add(s)},Zo=class{constructor(i){this._config=Mp(i),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(i){this._config.type=i}get data(){return this._config.data}set data(i){this._config.data=nc(i)}get options(){return this._config.options}set options(i){this._config.options=i}get plugins(){return this._config.plugins}update(){let i=this._config;this.clearCache(),sc(i)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(i){return an(i,()=>[[`datasets.${i}`,""]])}datasetAnimationScopeKeys(i,t){return an(`${i}.transition.${t}`,()=>[[`datasets.${i}.transitions.${t}`,`transitions.${t}`],[`datasets.${i}`,""]])}datasetElementScopeKeys(i,t){return an(`${i}-${t}`,()=>[[`datasets.${i}.elements.${t}`,`datasets.${i}`,`elements.${t}`,""]])}pluginScopeKeys(i){let t=i.id,s=this.type;return an(`${s}-plugin-${t}`,()=>[[`plugins.${t}`,...i.additionalOptionScopes||[]]])}_cachedScopes(i,t){let s=this._scopeCache,n=s.get(i);return(!n||t)&&(n=new Map,s.set(i,n)),n}getOptionScopes(i,t,s){let{options:n,type:o}=this,r=this._cachedScopes(i,s),a=r.get(t);if(a)return a;let l=new Set;t.forEach(h=>{i&&(l.add(i),h.forEach(f=>$i(l,i,f))),h.forEach(f=>$i(l,n,f)),h.forEach(f=>$i(l,me[o]||{},f)),h.forEach(f=>$i(l,X,f)),h.forEach(f=>$i(l,Ys,f))});let c=Array.from(l);return c.length===0&&c.push(Object.create(null)),oc.has(t)&&r.set(t,c),c}chartOptionScopes(){let{options:i,type:t}=this;return[i,me[t]||{},X.datasets[t]||{},{type:t},X,Ys]}resolveNamedOptions(i,t,s,n=[""]){let o={$shared:!0},{resolver:r,subPrefixes:a}=xl(this._resolverCache,i,n),l=r;if(wp(r,t)){o.$shared=!1,s=zt(s)?s():s;let c=this.createResolver(i,s,a);l=pe(r,s,c)}for(let c of t)o[c]=l[c];return o}createResolver(i,t,s=[""],n){let{resolver:o}=xl(this._resolverCache,i,s);return N(t)?pe(o,t,void 0,n):o}};function xl(e,i,t){let s=e.get(i);s||(s=new Map,e.set(i,s));let n=t.join(),o=s.get(n);return o||(o={resolver:Vi(i,t),subPrefixes:t.filter(a=>!a.toLowerCase().includes("hover"))},s.set(n,o)),o}var Pp=e=>N(e)&&Object.getOwnPropertyNames(e).some(i=>zt(e[i]));function wp(e,i){let{isScriptable:t,isIndexable:s}=qs(e);for(let n of i){let o=t(n),r=s(n),a=(r||o)&&e[n];if(o&&(zt(a)||Pp(a))||r&&H(a))return!0}return!1}var Op="4.4.1",Ap=["top","bottom","left","right","chartArea"];function _l(e,i){return e==="top"||e==="bottom"||Ap.indexOf(e)===-1&&i==="x"}function yl(e,i){return function(t,s){return t[e]===s[e]?t[i]-s[i]:t[e]-s[e]}}function vl(e){let i=e.chart,t=i.options.animation;i.notifyPlugins("afterRender"),L(t&&t.onComplete,[e],i)}function kp(e){let i=e.chart,t=i.options.animation;L(t&&t.onProgress,[e],i)}function rc(e){return Wi()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var dn={},Sl=e=>{let i=rc(e);return Object.values(dn).filter(t=>t.canvas===i).pop()};function Dp(e,i,t){let s=Object.keys(e);for(let n of s){let o=+n;if(o>=i){let r=e[n];delete e[n],(t>0||o>i)&&(e[o+t]=r)}}}function Ep(e,i,t,s){return!t||e.type==="mouseout"?null:s?i:e}function ln(e,i,t){return e.options.clip?e[t]:i[t]}function Ip(e,i){let{xScale:t,yScale:s}=e;return t&&s?{left:ln(t,i,"left"),right:ln(t,i,"right"),top:ln(s,i,"top"),bottom:ln(s,i,"bottom")}:i}var Et=(()=>{class e{static defaults=X;static instances=dn;static overrides=me;static registry=jt;static version=Op;static getChart=Sl;static register(...t){jt.add(...t),Cl()}static unregister(...t){jt.remove(...t),Cl()}constructor(t,s){let n=this.config=new Zo(s),o=rc(t),r=Sl(o);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");let a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||Jd(o)),this.platform.updateConfig(n);let l=this.platform.acquireContext(o,a.aspectRatio),c=l&&l.canvas,h=c&&c.height,f=c&&c.width;if(this.id=co(),this.ctx=l,this.canvas=c,this.width=f,this.height=h,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Go,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=_o(u=>this.update(u),a.resizeDelay||0),this._dataChanges=[],dn[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}te.listen(this,"complete",vl),te.listen(this,"progress",kp),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:t,maintainAspectRatio:s},width:n,height:o,_aspectRatio:r}=this;return V(t)?s&&r?r:o?n/o:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return jt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Qs(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Xs(this.canvas,this.ctx),this}stop(){return te.stop(this),this}resize(t,s){te.running(this)?this._resizeBeforeDraw={width:t,height:s}:this._resize(t,s)}_resize(t,s){let n=this.options,o=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(o,t,s,r),l=n.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Qs(this,l,!0)&&(this.notifyPlugins("resize",{size:a}),L(n.onResize,[this,a],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){let s=this.options.scales||{};F(s,(n,o)=>{n.id=o})}buildOrUpdateScales(){let t=this.options,s=t.scales,n=this.scales,o=Object.keys(n).reduce((a,l)=>(a[l]=!1,a),{}),r=[];s&&(r=r.concat(Object.keys(s).map(a=>{let l=s[a],c=Ko(a,l),h=c==="r",f=c==="x";return{options:l,dposition:h?"chartArea":f?"bottom":"left",dtype:h?"radialLinear":f?"category":"linear"}}))),F(r,a=>{let l=a.options,c=l.id,h=Ko(c,l),f=E(l.type,a.dtype);(l.position===void 0||_l(l.position,h)!==_l(a.dposition))&&(l.position=a.dposition),o[c]=!0;let u=null;if(c in n&&n[c].type===f)u=n[c];else{let p=jt.getScale(f);u=new p({id:c,type:f,ctx:this.ctx,chart:this}),n[u.id]=u}u.init(l,t)}),F(o,(a,l)=>{a||delete n[l]}),F(n,a=>{lt.configure(this,a,a.options),lt.addBox(this,a)})}_updateMetasets(){let t=this._metasets,s=this.data.datasets.length,n=t.length;if(t.sort((o,r)=>o.index-r.index),n>s){for(let o=s;os.length&&delete this._stacks,t.forEach((n,o)=>{s.filter(r=>r===n._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){let t=[],s=this.data.datasets,n,o;for(this._removeUnreferencedMetasets(),n=0,o=s.length;n{this.getDatasetMeta(s).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){let s=this.config;s.update();let n=this._options=s.createResolver(s.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;let r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let h=0,f=this.data.datasets.length;h{h.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(yl("z","_idx"));let{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){F(this.scales,t=>{lt.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let t=this.options,s=new Set(Object.keys(this._listeners)),n=new Set(t.events);(!Es(s,n)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:t}=this,s=this._getUniformDataChanges()||[];for(let{method:n,start:o,count:r}of s){let a=n==="_removeElements"?-r:r;Dp(t,o,a)}}_getUniformDataChanges(){let t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];let s=this.data.datasets.length,n=r=>new Set(t.filter(a=>a[0]===r).map((a,l)=>l+","+a.splice(1).join(","))),o=n(0);for(let r=1;rr.split(",")).map(r=>({method:r[1],start:+r[2],count:+r[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;lt.update(this,this.width,this.height,t);let s=this.chartArea,n=s.width<=0||s.height<=0;this._layers=[],F(this.boxes,o=>{n&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,r)=>{o._idx=r}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let s=0,n=this.data.datasets.length;s=0;--s)this._drawDataset(t[s]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){let s=this.ctx,n=t._clip,o=!n.disabled,r=Ip(t,this.chartArea),a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(o&&ti(s,{left:n.left===!1?0:r.left-n.left,right:n.right===!1?this.width:r.right+n.right,top:n.top===!1?0:r.top-n.top,bottom:n.bottom===!1?this.height:r.bottom+n.bottom}),t.controller.draw(),o&&ei(s),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return Ot(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,s,n,o){let r=Ld.modes[s];return typeof r=="function"?r(this,t,n,o):[]}getDatasetMeta(t){let s=this.data.datasets[t],n=this._metasets,o=n.filter(r=>r&&r._dataset===s).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:s&&s.order||0,index:t,_dataset:s,_parsed:[],_sorted:!1},n.push(o)),o}getContext(){return this.$context||(this.$context=Vt(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){let s=this.data.datasets[t];if(!s)return!1;let n=this.getDatasetMeta(t);return typeof n.hidden=="boolean"?!n.hidden:!s.hidden}setDatasetVisibility(t,s){let n=this.getDatasetMeta(t);n.hidden=!s}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,s,n){let o=n?"show":"hide",r=this.getDatasetMeta(t),a=r.controller._resolveAnimations(void 0,o);ze(s)?(r.data[s].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),a.update(r,{visible:n}),this.update(l=>l.datasetIndex===t?o:void 0))}hide(t,s){this._updateVisibility(t,s,!1)}show(t,s){this._updateVisibility(t,s,!0)}_destroyDatasetMeta(t){let s=this._metasets[t];s&&s.controller&&s.controller._destroy(),delete this._metasets[t]}_stop(){let t,s;for(this.stop(),te.remove(this),t=0,s=this.data.datasets.length;t{s.addEventListener(this,r,a),t[r]=a},o=(r,a,l)=>{r.offsetX=a,r.offsetY=l,this._eventHandler(r)};F(this.options.events,r=>n(r,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let t=this._responsiveListeners,s=this.platform,n=(c,h)=>{s.addEventListener(this,c,h),t[c]=h},o=(c,h)=>{t[c]&&(s.removeEventListener(this,c,h),delete t[c])},r=(c,h)=>{this.canvas&&this.resize(c,h)},a,l=()=>{o("attach",l),this.attached=!0,this.resize(),n("resize",r),n("detach",a)};a=()=>{this.attached=!1,o("resize",r),this._stop(),this._resize(0,0),n("attach",l)},s.isAttached(this.canvas)?l():a()}unbindEvents(){F(this._listeners,(t,s)=>{this.platform.removeEventListener(this,s,t)}),this._listeners={},F(this._responsiveListeners,(t,s)=>{this.platform.removeEventListener(this,s,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,s,n){let o=n?"set":"remove",r,a,l,c;for(s==="dataset"&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+o+"DatasetHoverStyle"]()),l=0,c=t.length;l{let l=this.getDatasetMeta(r);if(!l)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:l.data[a],index:a}});!Je(n,s)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,s))}notifyPlugins(t,s,n){return this._plugins.notify(this,t,s,n)}isPluginEnabled(t){return this._plugins._cache.filter(s=>s.plugin.id===t).length===1}_updateHoverStyles(t,s,n){let o=this.options.hover,r=(c,h)=>c.filter(f=>!h.some(u=>f.datasetIndex===u.datasetIndex&&f.index===u.index)),a=r(s,t),l=n?t:r(t,s);a.length&&this.updateHoverStyle(a,o.mode,!1),l.length&&o.mode&&this.updateHoverStyle(l,o.mode,!0)}_eventHandler(t,s){let n={event:t,replay:s,cancelable:!0,inChartArea:this.isPointInArea(t)},o=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",n,o)===!1)return;let r=this._handleEvent(t,s,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,o),(r||n.changed)&&this.render(),this}_handleEvent(t,s,n){let{_active:o=[],options:r}=this,a=s,l=this._getActiveElements(t,o,n,a),c=fo(t),h=Ep(t,this._lastEvent,n,c);n&&(this._lastEvent=null,L(r.onHover,[t,l,this],this),c&&L(r.onClick,[t,l,this],this));let f=!Je(l,o);return(f||s)&&(this._active=l,this._updateHoverStyles(l,o,s)),this._lastEvent=h,f}_getActiveElements(t,s,n,o){if(t.type==="mouseout")return[];if(!n)return s;let r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,o)}}return e})();function Cl(){return F(Et.instances,e=>e._plugins.invalidate())}function Lp(e,i,t){let{startAngle:s,pixelMargin:n,x:o,y:r,outerRadius:a,innerRadius:l}=i,c=n/a;e.beginPath(),e.arc(o,r,a,s-c,t+c),l>n?(c=n/l,e.arc(o,r,l,t+c,s-c,!0)):e.arc(o,r,n,t+Z,s-Z),e.closePath(),e.clip()}function Rp(e){return Bi(e,["outerStart","outerEnd","innerStart","innerEnd"])}function Fp(e,i,t,s){let n=Rp(e.options.borderRadius),o=(t-i)/2,r=Math.min(o,s*i/2),a=l=>{let c=(t-Math.min(o,l))*s/2;return it(l,0,Math.min(o,c))};return{outerStart:a(n.outerStart),outerEnd:a(n.outerEnd),innerStart:it(n.innerStart,0,r),innerEnd:it(n.innerEnd,0,r)}}function ii(e,i,t,s){return{x:t+e*Math.cos(i),y:s+e*Math.sin(i)}}function bn(e,i,t,s,n,o){let{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:h}=i,f=Math.max(i.outerRadius+s+t-c,0),u=h>0?h+s+t+c:0,p=0,m=n-l;if(s){let W=h>0?h-s:0,j=f>0?f-s:0,q=(W+j)/2,pt=q!==0?m*q/(q+s):m;p=(m-pt)/2}let b=Math.max(.001,m*f-t/U)/f,_=(m-b)/2,y=l+_+p,S=n-_-p,{outerStart:T,outerEnd:w,innerStart:C,innerEnd:M}=Fp(i,u,f,S-y),A=f-T,O=f-w,D=y+T/A,I=S-w/O,R=u+C,z=u+M,Q=y+C/R,ct=S-M/z;if(e.beginPath(),o){let W=(D+I)/2;if(e.arc(r,a,f,D,W),e.arc(r,a,f,W,I),w>0){let st=ii(O,I,r,a);e.arc(st.x,st.y,w,I,S+Z)}let j=ii(z,S,r,a);if(e.lineTo(j.x,j.y),M>0){let st=ii(z,ct,r,a);e.arc(st.x,st.y,M,S+Z,ct+Math.PI)}let q=(S-M/u+(y+C/u))/2;if(e.arc(r,a,u,S-M/u,q,!0),e.arc(r,a,u,q,y+C/u,!0),C>0){let st=ii(R,Q,r,a);e.arc(st.x,st.y,C,Q+Math.PI,y-Z)}let pt=ii(A,y,r,a);if(e.lineTo(pt.x,pt.y),T>0){let st=ii(A,D,r,a);e.arc(st.x,st.y,T,y-Z,D)}}else{e.moveTo(r,a);let W=Math.cos(D)*f+r,j=Math.sin(D)*f+a;e.lineTo(W,j);let q=Math.cos(I)*f+r,pt=Math.sin(I)*f+a;e.lineTo(q,pt)}e.closePath()}function zp(e,i,t,s,n){let{fullCircles:o,startAngle:r,circumference:a}=i,l=i.endAngle;if(o){bn(e,i,t,s,l,n);for(let c=0;ci!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(i){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,i&&Object.assign(this,i)}inRange(i,t,s){let n=this.getProps(["x","y"],s),{angle:o,distance:r}=Fs(n,{x:i,y:t}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:h,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),u=(this.options.spacing+this.options.borderWidth)/2,m=E(f,l-a)>=Y||Be(o,a,l),b=kt(r,c+u,h+u);return m&&b}getCenterPoint(i){let{x:t,y:s,startAngle:n,endAngle:o,innerRadius:r,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],i),{offset:l,spacing:c}=this.options,h=(n+o)/2,f=(r+a+c+l)/2;return{x:t+Math.cos(h)*f,y:s+Math.sin(h)*f}}tooltipPosition(i){return this.getCenterPoint(i)}draw(i){let{options:t,circumference:s}=this,n=(t.offset||0)/4,o=(t.spacing||0)/2,r=t.circular;if(this.pixelMargin=t.borderAlign==="inner"?.33:0,this.fullCircles=s>Y?Math.floor(s/Y):0,s===0||this.innerRadius<0||this.outerRadius<0)return;i.save();let a=(this.startAngle+this.endAngle)/2;i.translate(Math.cos(a)*n,Math.sin(a)*n);let l=1-Math.sin(Math.min(U,s||0)),c=n*l;i.fillStyle=t.backgroundColor,i.strokeStyle=t.borderColor,zp(i,this,c,o,r),Np(i,this,c,o,r),i.restore()}};function ac(e,i,t=i){e.lineCap=E(t.borderCapStyle,i.borderCapStyle),e.setLineDash(E(t.borderDash,i.borderDash)),e.lineDashOffset=E(t.borderDashOffset,i.borderDashOffset),e.lineJoin=E(t.borderJoinStyle,i.borderJoinStyle),e.lineWidth=E(t.borderWidth,i.borderWidth),e.strokeStyle=E(t.borderColor,i.borderColor)}function Bp(e,i,t){e.lineTo(t.x,t.y)}function Vp(e){return e.stepped?So:e.tension||e.cubicInterpolationMode==="monotone"?Co:Bp}function lc(e,i,t={}){let s=e.length,{start:n=0,end:o=s-1}=t,{start:r,end:a}=i,l=Math.max(n,r),c=Math.min(o,a),h=na&&o>a;return{count:s,start:l,loop:i.loop,ilen:c(r+(c?a-w:w))%o,T=()=>{b!==_&&(e.lineTo(h,_),e.lineTo(h,b),e.lineTo(h,y))};for(l&&(p=n[S(0)],e.moveTo(p.x,p.y)),u=0;u<=a;++u){if(p=n[S(u)],p.skip)continue;let w=p.x,C=p.y,M=w|0;M===m?(C_&&(_=C),h=(f*h+w)/++f):(T(),e.lineTo(w,C),m=M,f=0,b=_=C),y=C}T()}function Jo(e){let i=e.options,t=i.borderDash&&i.borderDash.length;return!e._decimated&&!e._loop&&!i.tension&&i.cubicInterpolationMode!=="monotone"&&!i.stepped&&!t?jp:Wp}function Hp(e){return e.stepped?ko:e.tension||e.cubicInterpolationMode==="monotone"?Do:Kt}function Up(e,i,t,s){let n=i._path;n||(n=i._path=new Path2D,i.path(n,t,s)&&n.closePath()),ac(e,i.options),e.stroke(n)}function Yp(e,i,t,s){let{segments:n,options:o}=i,r=Jo(i);for(let a of n)ac(e,o,a.style),e.beginPath(),r(e,i,a,{start:t,end:t+s-1})&&e.closePath(),e.stroke()}var Xp=typeof Path2D=="function";function $p(e,i,t,s){Xp&&!i.options.segment?Up(e,i,t,s):Yp(e,i,t,s)}var yn=(()=>{class e extends Dt{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,s){let n=this.options;if((n.tension||n.cubicInterpolationMode==="monotone")&&!n.stepped&&!this._pointsUpdated){let o=n.spanGaps?this._loop:this._fullLoop;wo(this._points,n,t,o,s),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Eo(this,this.options.segment))}first(){let t=this.segments,s=this.points;return t.length&&s[t[0].start]}last(){let t=this.segments,s=this.points,n=t.length;return n&&s[t[n-1].end]}interpolate(t,s){let n=this.options,o=t[s],r=this.points,a=nn(this,{property:s,start:o,end:o});if(!a.length)return;let l=[],c=Hp(n),h,f;for(h=0,f=a.length;h{class e extends Dt{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,s,n){let o=this.options,{x:r,y:a}=this.getProps(["x","y"],n);return Math.pow(t-r,2)+Math.pow(s-a,2)e.replace("rgb(","rgba(").replace(")",", 0.5)"));function hc(e){return er[e%er.length]}function fc(e){return Ml[e%Ml.length]}function eg(e,i){return e.borderColor=hc(i),e.backgroundColor=fc(i),++i}function ig(e,i){return e.backgroundColor=e.data.map(()=>hc(i++)),i}function sg(e,i){return e.backgroundColor=e.data.map(()=>fc(i++)),i}function ng(e){let i=0;return(t,s)=>{let n=e.getDatasetMeta(s).controller;n instanceof cr?i=ig(t,i):n instanceof Ql?i=sg(t,i):n&&(i=eg(t,i))}}function Pl(e){let i;for(i in e)if(e[i].borderColor||e[i].backgroundColor)return!0;return!1}function og(e){return e&&(e.borderColor||e.backgroundColor)}var rg={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,i,t){if(!t.enabled)return;let{data:{datasets:s},options:n}=e.config,{elements:o}=n;if(!t.forceOverride&&(Pl(s)||og(n)||o&&Pl(o)))return;let r=ng(e);s.forEach(r)}};function ag(e,i,t,s,n){let o=n.samples||s;if(o>=t)return e.slice(i,i+t);let r=[],a=(t-2)/(o-2),l=0,c=i+t-1,h=i,f,u,p,m,b;for(r[l++]=e[h],f=0;fp&&(p=m,u=e[S],b=S);r[l++]=u,h=b}return r[l++]=e[c],r}function lg(e,i,t,s){let n=0,o=0,r,a,l,c,h,f,u,p,m,b,_=[],y=i+t-1,S=e[i].x,w=e[y].x-S;for(r=i;rb&&(b=c,u=r),n=(o*n+a.x)/++o;else{let M=r-1;if(!V(f)&&!V(u)){let A=Math.min(f,u),O=Math.max(f,u);A!==p&&A!==M&&_.push(_s(xs({},e[A]),{x:n})),O!==p&&O!==M&&_.push(_s(xs({},e[O]),{x:n}))}r>0&&M!==p&&_.push(e[M]),_.push(a),h=C,o=0,m=b=c,f=u=p=r}}return _}function uc(e){if(e._decimated){let i=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:i})}}function wl(e){e.data.datasets.forEach(i=>{uc(i)})}function cg(e,i){let t=i.length,s=0,n,{iScale:o}=e,{min:r,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(s=it(wt(i,o.axis,r).lo,0,t-1)),c?n=it(wt(i,o.axis,a).hi+1,s,t)-s:n=t-s,{start:s,count:n}}var hg={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,i,t)=>{if(!t.enabled){wl(e);return}let s=e.width;e.data.datasets.forEach((n,o)=>{let{_data:r,indexAxis:a}=n,l=e.getDatasetMeta(o),c=r||n.data;if(je([a,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;let h=e.scales[l.xAxisID];if(h.type!=="linear"&&h.type!=="time"||e.options.parsing)return;let{start:f,count:u}=cg(l,c),p=t.threshold||4*s;if(u<=p){uc(n);return}V(r)&&(n._data=c,delete n.data,Object.defineProperty(n,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(b){this._data=b}}));let m;switch(t.algorithm){case"lttb":m=ag(c,f,u,s,t);break;case"min-max":m=lg(c,f,u,s);break;default:throw new Error(`Unsupported decimation algorithm '${t.algorithm}'`)}n._decimated=m})},destroy(e){wl(e)}};function fg(e,i,t){let s=e.segments,n=e.points,o=i.points,r=[];for(let a of s){let{start:l,end:c}=a;c=hr(l,c,n);let h=ir(t,n[l],n[c],a.loop);if(!i.segments){r.push({source:a,target:h,start:n[l],end:n[c]});continue}let f=nn(i,h);for(let u of f){let p=ir(t,o[u.start],o[u.end],u.loop),m=sn(a,n,p);for(let b of m)r.push({source:b,target:u,start:{[t]:Ol(h,p,"start",Math.max)},end:{[t]:Ol(h,p,"end",Math.min)}})}}return r}function ir(e,i,t,s){if(s)return;let n=i[e],o=t[e];return e==="angle"&&(n=ft(n),o=ft(o)),{property:e,start:n,end:o}}function ug(e,i){let{x:t=null,y:s=null}=e||{},n=i.points,o=[];return i.segments.forEach(({start:r,end:a})=>{a=hr(r,a,n);let l=n[r],c=n[a];s!==null?(o.push({x:l.x,y:s}),o.push({x:c.x,y:s})):t!==null&&(o.push({x:t,y:l.y}),o.push({x:t,y:c.y}))}),o}function hr(e,i,t){for(;i>e;i--){let s=t[i];if(!isNaN(s.x)&&!isNaN(s.y))break}return i}function Ol(e,i,t,s){return e&&i?s(e[t],i[t]):e?e[t]:i?i[t]:0}function dc(e,i){let t=[],s=!1;return H(e)?(s=!0,t=e):t=ug(e,i),t.length?new yn({points:t,options:{tension:0},_loop:s,_fullLoop:s}):null}function Al(e){return e&&e.fill!==!1}function dg(e,i,t){let n=e[i].fill,o=[i],r;if(!t)return n;for(;n!==!1&&o.indexOf(n)===-1;){if(!G(n))return n;if(r=e[n],!r)return!1;if(r.visible)return n;o.push(n),n=r.fill}return!1}function pg(e,i,t){let s=xg(e);if(N(s))return isNaN(s.value)?!1:s;let n=parseFloat(s);return G(n)&&Math.floor(n)===n?gg(s[0],i,n,t):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function gg(e,i,t,s){return(e==="-"||e==="+")&&(t=i+t),t===i||t<0||t>=s?!1:t}function mg(e,i){let t=null;return e==="start"?t=i.bottom:e==="end"?t=i.top:N(e)?t=i.getPixelForValue(e.value):i.getBasePixel&&(t=i.getBasePixel()),t}function bg(e,i,t){let s;return e==="start"?s=t:e==="end"?s=i.options.reverse?i.min:i.max:N(e)?s=e.value:s=i.getBaseValue(),s}function xg(e){let i=e.options,t=i.fill,s=E(t&&t.target,t);return s===void 0&&(s=!!i.backgroundColor),s===!1||s===null?!1:s===!0?"origin":s}function _g(e){let{scale:i,index:t,line:s}=e,n=[],o=s.segments,r=s.points,a=yg(i,t);a.push(dc({x:null,y:i.bottom},s));for(let l=0;l=0;--r){let a=n[r].$filler;a&&(a.line.updateControlPoints(o,a.axis),s&&a.fill&&Wo(e.ctx,a,o))}},beforeDatasetsDraw(e,i,t){if(t.drawTime!=="beforeDatasetsDraw")return;let s=e.getSortedVisibleDatasetMetas();for(let n=s.length-1;n>=0;--n){let o=s[n].$filler;Al(o)&&Wo(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,i,t){let s=i.meta.$filler;!Al(s)||t.drawTime!=="beforeDatasetDraw"||Wo(e.ctx,s,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},Il=(e,i)=>{let{boxHeight:t=i,boxWidth:s=i}=e;return e.usePointStyle&&(t=Math.min(t,i),s=e.pointStyleWidth||Math.min(s,i)),{boxWidth:s,boxHeight:t,itemHeight:Math.max(i,t)}},Dg=(e,i)=>e!==null&&i!==null&&e.datasetIndex===i.datasetIndex&&e.index===i.index,_n=class extends Dt{constructor(i){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=i.chart,this.options=i.options,this.ctx=i.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(i,t,s){this.maxWidth=i,this.maxHeight=t,this._margins=s,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let i=this.options.labels||{},t=L(i.generateLabels,[this.chart],this)||[];i.filter&&(t=t.filter(s=>i.filter(s,this.chart.data))),i.sort&&(t=t.sort((s,n)=>i.sort(s,n,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){let{options:i,ctx:t}=this;if(!i.display){this.width=this.height=0;return}let s=i.labels,n=J(s.font),o=n.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Il(s,o),c,h;t.font=n.string,this.isHorizontal()?(c=this.maxWidth,h=this._fitRows(r,o,a,l)+10):(h=this.maxHeight,c=this._fitCols(r,n,a,l)+10),this.width=Math.min(c,i.maxWidth||this.maxWidth),this.height=Math.min(h,i.maxHeight||this.maxHeight)}_fitRows(i,t,s,n){let{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],h=n+a,f=i;o.textAlign="left",o.textBaseline="middle";let u=-1,p=-h;return this.legendItems.forEach((m,b)=>{let _=s+t/2+o.measureText(m.text).width;(b===0||c[c.length-1]+_+2*a>r)&&(f+=h,c[c.length-(b>0?0:1)]=0,p+=h,u++),l[b]={left:0,top:p,row:u,width:_,height:n},c[c.length-1]+=_+a}),f}_fitCols(i,t,s,n){let{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],h=r-i,f=a,u=0,p=0,m=0,b=0;return this.legendItems.forEach((_,y)=>{let{itemWidth:S,itemHeight:T}=Eg(s,t,o,_,n);y>0&&p+T+2*a>h&&(f+=u+a,c.push({width:u,height:p}),m+=u+a,b++,u=p=0),l[y]={left:m,top:p,col:b,width:S,height:T},u=Math.max(u,S),p+=T+a}),f+=u,c.push({width:u,height:p}),f}adjustHitBoxes(){if(!this.options.display)return;let i=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:s,labels:{padding:n},rtl:o}}=this,r=be(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=ot(s,this.left+n,this.right-this.lineWidths[a]);for(let c of t)a!==c.row&&(a=c.row,l=ot(s,this.left+n,this.right-this.lineWidths[a])),c.top+=this.top+i+n,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+n}else{let a=0,l=ot(s,this.top+i+n,this.bottom-this.columnSizes[a].height);for(let c of t)c.col!==a&&(a=c.col,l=ot(s,this.top+i+n,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+n,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+n}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let i=this.ctx;ti(i,this),this._draw(),ei(i)}}_draw(){let{options:i,columnSizes:t,lineWidths:s,ctx:n}=this,{align:o,labels:r}=i,a=X.color,l=be(i.rtl,this.left,this.width),c=J(r.font),{padding:h}=r,f=c.size,u=f/2,p;this.drawTitle(),n.textAlign=l.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=c.string;let{boxWidth:m,boxHeight:b,itemHeight:_}=Il(r,f),y=function(M,A,O){if(isNaN(m)||m<=0||isNaN(b)||b<0)return;n.save();let D=E(O.lineWidth,1);if(n.fillStyle=E(O.fillStyle,a),n.lineCap=E(O.lineCap,"butt"),n.lineDashOffset=E(O.lineDashOffset,0),n.lineJoin=E(O.lineJoin,"miter"),n.lineWidth=D,n.strokeStyle=E(O.strokeStyle,a),n.setLineDash(E(O.lineDash,[])),r.usePointStyle){let I={radius:b*Math.SQRT2/2,pointStyle:O.pointStyle,rotation:O.rotation,borderWidth:D},R=l.xPlus(M,m/2),z=A+u;$s(n,I,R,z,r.pointStyleWidth&&m)}else{let I=A+Math.max((f-b)/2,0),R=l.leftForLtr(M,m),z=Jt(O.borderRadius);n.beginPath(),Object.values(z).some(Q=>Q!==0)?We(n,{x:R,y:I,w:m,h:b,radius:z}):n.rect(R,I,m,b),n.fill(),D!==0&&n.stroke()}n.restore()},S=function(M,A,O){Qt(n,O.text,M,A+_/2,c,{strikethrough:O.hidden,textAlign:l.textAlign(O.textAlign)})},T=this.isHorizontal(),w=this._computeTitleHeight();T?p={x:ot(o,this.left+h,this.right-s[0]),y:this.top+h+w,line:0}:p={x:this.left+h,y:ot(o,this.top+w+h,this.bottom-t[0].height),line:0},tn(this.ctx,i.textDirection);let C=_+h;this.legendItems.forEach((M,A)=>{n.strokeStyle=M.fontColor,n.fillStyle=M.fontColor;let O=n.measureText(M.text).width,D=l.textAlign(M.textAlign||(M.textAlign=r.textAlign)),I=m+u+O,R=p.x,z=p.y;l.setWidth(this.width),T?A>0&&R+I+h>this.right&&(z=p.y+=C,p.line++,R=p.x=ot(o,this.left+h,this.right-s[p.line])):A>0&&z+C>this.bottom&&(R=p.x=R+t[p.line].width+h,p.line++,z=p.y=ot(o,this.top+w+h,this.bottom-t[p.line].height));let Q=l.x(R);if(y(Q,z,M),R=yo(D,R+m+u,T?R+I:this.right,i.rtl),S(l.x(R),z,M),T)p.x+=I+h;else if(typeof M.text!="string"){let ct=c.lineHeight;p.y+=pc(M,ct)+h}else p.y+=C}),en(this.ctx,i.textDirection)}drawTitle(){let i=this.options,t=i.title,s=J(t.font),n=rt(t.padding);if(!t.display)return;let o=be(i.rtl,this.left,this.width),r=this.ctx,a=t.position,l=s.size/2,c=n.top+l,h,f=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),h=this.top+c,f=ot(i.align,f,this.right-u);else{let m=this.columnSizes.reduce((b,_)=>Math.max(b,_.height),0);h=c+ot(i.align,this.top,this.bottom-m-i.labels.padding-this._computeTitleHeight())}let p=ot(a,f,f+u);r.textAlign=o.textAlign(Fi(a)),r.textBaseline="middle",r.strokeStyle=t.color,r.fillStyle=t.color,r.font=s.string,Qt(r,t.text,p,h,s)}_computeTitleHeight(){let i=this.options.title,t=J(i.font),s=rt(i.padding);return i.display?t.lineHeight+s.height:0}_getLegendItemAt(i,t){let s,n,o;if(kt(i,this.left,this.right)&&kt(t,this.top,this.bottom)){for(o=this.legendHitBoxes,s=0;so.length>r.length?o:r)),i+t.size/2+s.measureText(n).width}function Lg(e,i,t){let s=e;return typeof i.text!="string"&&(s=pc(i,t)),s}function pc(e,i){let t=e.text?e.text.length:0;return i*t}function Rg(e,i){return!!((e==="mousemove"||e==="mouseout")&&(i.onHover||i.onLeave)||i.onClick&&(e==="click"||e==="mouseup"))}var Fg={id:"legend",_element:_n,start(e,i,t){let s=e.legend=new _n({ctx:e.ctx,options:t,chart:e});lt.configure(e,s,t),lt.addBox(e,s)},stop(e){lt.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,i,t){let s=e.legend;lt.configure(e,s,t),s.options=t},afterUpdate(e){let i=e.legend;i.buildLabels(),i.adjustHitBoxes()},afterEvent(e,i){i.replay||e.legend.handleEvent(i.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,i,t){let s=i.datasetIndex,n=t.chart;n.isDatasetVisible(s)?(n.hide(s),i.hidden=!0):(n.show(s),i.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){let i=e.data.datasets,{labels:{usePointStyle:t,pointStyle:s,textAlign:n,color:o,useBorderRadius:r,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{let c=l.controller.getStyle(t?0:void 0),h=rt(c.borderWidth);return{text:i[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:c.borderColor,pointStyle:s||c.pointStyle,rotation:c.rotation,textAlign:n||c.textAlign,borderRadius:r&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}},Zi=class extends Dt{constructor(i){super(),this.chart=i.chart,this.options=i.options,this.ctx=i.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(i,t){let s=this.options;if(this.left=0,this.top=0,!s.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=i,this.height=this.bottom=t;let n=H(s.text)?s.text.length:1;this._padding=rt(s.padding);let o=n*J(s.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){let i=this.options.position;return i==="top"||i==="bottom"}_drawArgs(i){let{top:t,left:s,bottom:n,right:o,options:r}=this,a=r.align,l=0,c,h,f;return this.isHorizontal()?(h=ot(a,s,o),f=t+i,c=o-s):(r.position==="left"?(h=s+i,f=ot(a,n,t),l=U*-.5):(h=o-i,f=ot(a,t,n),l=U*.5),c=n-t),{titleX:h,titleY:f,maxWidth:c,rotation:l}}draw(){let i=this.ctx,t=this.options;if(!t.display)return;let s=J(t.font),o=s.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);Qt(i,t.text,0,0,s,{color:t.color,maxWidth:l,rotation:c,textAlign:Fi(t.align),textBaseline:"middle",translation:[r,a]})}};function zg(e,i){let t=new Zi({ctx:e.ctx,options:i,chart:e});lt.configure(e,t,i),lt.addBox(e,t),e.titleBlock=t}var Ng={id:"title",_element:Zi,start(e,i,t){zg(e,t)},stop(e){let i=e.titleBlock;lt.removeBox(e,i),delete e.titleBlock},beforeUpdate(e,i,t){let s=e.titleBlock;lt.configure(e,s,t),s.options=t},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},cn=new WeakMap,Bg={id:"subtitle",start(e,i,t){let s=new Zi({ctx:e.ctx,options:t,chart:e});lt.configure(e,s,t),lt.addBox(e,s),cn.set(e,s)},stop(e){lt.removeBox(e,cn.get(e)),cn.delete(e)},beforeUpdate(e,i,t){let s=cn.get(e);lt.configure(e,s,t),s.options=t},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},qi={average(e){if(!e.length)return!1;let i,t,s=0,n=0,o=0;for(i=0,t=e.length;i-1?e.split(` diff --git a/frontend/server/modelsmith-build/browser/chunk-3GNVUME3.js b/frontend/server/modelsmith-build/browser/chunk-3GNVUME3.js new file mode 100644 index 00000000..b283fdcf --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-3GNVUME3.js @@ -0,0 +1 @@ +import{Bb as d,Ea as a,ab as i,bb as s,cb as c,ha as m,ub as l,vb as o}from"./chunk-NPZHNGVX.js";var u=(()=>{let e=class e{constructor(){this.title="",this.message=""}};e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=m({type:e,selectors:[["ms-empty-state"]],inputs:{title:"title",message:"message"},standalone:!0,features:[d],decls:6,vars:2,consts:[["src","assets/icons/empty-state.svg"],[1,"heading-section-title"],[1,"paragraph-regular-p2-large"]],template:function(t,r){t&1&&(i(0,"div"),c(1,"img",0),i(2,"div",1),l(3),s(),i(4,"div",2),l(5),s()()),t&2&&(a(3),o(r.title),a(2),o(r.message))},styles:["[_nghost-%COMP%]{display:flex;justify-content:center;align-items:center;height:100%;width:100%;text-align:center}div[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px}img[_ngcontent-%COMP%]{max-width:100%;height:auto}"]});let n=e;return n})();export{u as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-3RQYPCLL.js b/frontend/server/modelsmith-build/browser/chunk-3RQYPCLL.js new file mode 100644 index 00000000..8527aaf4 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-3RQYPCLL.js @@ -0,0 +1 @@ +import{a as N}from"./chunk-QWPZ5EFE.js";import{a as I}from"./chunk-R5J4FM6S.js";import"./chunk-DQ7AOZDA.js";import"./chunk-3S6QBQVM.js";import"./chunk-D2Y5ESR4.js";import"./chunk-TO7IPVMR.js";import{a as Nt,b as It}from"./chunk-G267DK6J.js";import"./chunk-GSC3HYC7.js";import"./chunk-VUPIOU6P.js";import"./chunk-PP7DOJYP.js";import{a as _,b as Et,c as Rt,d as B}from"./chunk-QVZ2CSJP.js";import"./chunk-WHP5P3DQ.js";import"./chunk-SMKHMGDE.js";import{b as g,d as Q,e as Tt,g as f,k as Mt,p as Ot}from"./chunk-W4U3FJPJ.js";import{a as Pt,b as _t}from"./chunk-2FJ2YO2M.js";import{a as O,b as P,d as bt,k as Gt}from"./chunk-PSFPSLKI.js";import{a as F,b as d}from"./chunk-GMIVG7ET.js";import"./chunk-NT2MTW7W.js";import{h as At,i as Ft}from"./chunk-HG2O7P4S.js";import{$ as v,Ab as ot,E as y,Ea as n,Fa as c,I as q,J as x,L as Z,Q as J,Qa as j,Sa as a,Tb as nt,Td as lt,Ud as pt,a as R,ab as m,b as L,bb as s,bc as at,be as ct,cb as D,ce as u,da as W,db as X,dd as st,eb as Y,ee as ht,fe as T,gb as tt,ge as M,ha as C,ia as A,ie as ft,jb as K,me as dt,ne as ut,oc as mt,p as S,pa as w,pe as gt,qa as k,qb as et,rb as it,sb as rt,sc as V,se as St,te as yt,ub as h,ue as vt,wb as U,x as $,xe as Ct}from"./chunk-NPZHNGVX.js";function Dt(r,t){if(r&1&&(m(0,"mat-option",8),h(1),s()),r&2){let e=t.$implicit;a("value",e.key),n(),U(" ",e.value," ")}}function Kt(r,t){if(r&1&&(m(0,"mat-option",8),h(1),s()),r&2){let e=t.$implicit;a("value",e.key),n(),U(" ",e.value," ")}}var l,b=(l=class{get parentFormGroup(){return this.controlContainer.control}get algorithmFormGroup(){return this.parentFormGroup.get(this.controlKey)}get algorithmFormControl(){return this.algorithmFormGroup?.get(this.ALGORITHM_CONTROL_NAME)}constructor(t,e){this.controlContainer=t,this.scriptFacadeService=e,this.controlKey="",this.pruningAlgorithmsList=Et,this.quantAlgorithmsList=Rt,this.ALGORITHM_CONTROL_NAME="alg"}ngOnInit(){this.initForm(),this.listenToScriptStateChanges(),this.loadInitialData()}loadInitialData(){this.scriptFacadeService.scriptDetails$.pipe(J(1),x(1),y(t=>!Tt(t?.algKey))).subscribe(t=>{let e=t.type,o=e===f.PRUNING||e===f.QUANTIZATION?t.algKey:B;this.algorithmFormControl?.setValue(o)}),this.scriptFacadeService.dispatch(O.getCurrentOrLastActiveScriptDetails())}initForm(){this.parentFormGroup.addControl(this.controlKey,new M({[this.ALGORITHM_CONTROL_NAME]:new ft(B,ct.required)}))}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(d(this)).subscribe(t=>{g(t)?this.algorithmFormGroup.disable():this.algorithmFormGroup.enable()})}trackByAlgorithmKey(t,e){return e.key}ngOnDestroy(){this.parentFormGroup.removeControl(this.controlKey)}},l.\u0275fac=function(e){return new(e||l)(c(u),c(P))},l.\u0275cmp=C({type:l,selectors:[["ms-panel-algorithm"]],inputs:{controlKey:"controlKey"},features:[ot([],[{provide:u,useFactory:()=>W(u,{skipSelf:!0})}])],decls:10,vars:6,consts:[[1,"ms-card","algorithm-card"],[1,"heading-sub-section-title"],[1,"form-field-container",3,"formGroupName"],["appearance","outline","subscriptSizing","dynamic"],[3,"formControlName"],["label","Pruning"],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],["label","Quantization"],[3,"value"]],template:function(e,i){e&1&&(m(0,"mat-card",0)(1,"p",1),h(2,"Algorithm"),s(),m(3,"div",2)(4,"mat-form-field",3)(5,"mat-select",4)(6,"mat-optgroup",5),j(7,Dt,2,2,"mat-option",6),s(),m(8,"mat-optgroup",7),j(9,Kt,2,2,"mat-option",6),s()()()()()),e&2&&(n(3),a("formGroupName",i.controlKey),n(2),a("formControlName",i.ALGORITHM_CONTROL_NAME),n(2),a("ngForOf",i.pruningAlgorithmsList)("ngForTrackBy",i.trackByAlgorithmKey),n(2),a("ngForOf",i.quantAlgorithmsList)("ngForTrackBy",i.trackByAlgorithmKey))},dependencies:[nt,Pt,At,Nt,pt,lt,ht,T,gt,ut]}),l);b=S([F()],b);var H="custommodel";function Lt(r){let t=r.replace(/[^a-zA-Z0-9_]/g,"_");return/^[0-9_]/.test(t)&&(t="file_"+t),/.py$/.test(t)||(t+=".py"),t}var Vt=["panelParameters"],p,G=(p=class{constructor(t,e,i,o){this.scriptFacadeService=t,this.fileService=e,this.snackbarService=i,this.router=o,this.form=new M({}),this.AlgorithmType=f,this.isScriptActive=!1,this.isQuantAlgorithmSelected=!1,this.selectedAlgorithm=Mt.IMP,this.selectedAlgorithmType=f.PRUNING}ngOnInit(){this.listenToAlgorithmPanelChanges(),this.listenToScriptStateChanges()}listenToAlgorithmPanelChanges(){this.form.valueChanges.pipe(q(50),$(()=>{let t=this.form.getRawValue();return t.algorithm&&t.algorithm.alg}),Z(),y(t=>!Q(t)),d(this)).subscribe(t=>{this.selectedAlgorithm=t,this.selectedAlgorithmType=Ot(t)})}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(d(this)).subscribe(t=>{this.isScriptActive=g(t),g(t)?this.form.disable():this.form.enable()})}submit(){if(Q(this.selectedAlgorithm)){this.snackbarService.showError("Select an algorithm before running a script.");return}let{algorithm:t,model:e}=this.form.getRawValue(),{model:i}=e;if(i===H&&!this.fileService.isFileLoaded){this.snackbarService.showError("Please select a predefined model or upload a custom file.");return}let o=i===H?Lt(this.fileService?.file.name):i,E=L(R({},t),{params:L(R({},this.panelParametersComponent.parametersFormatted),{arch:o})});this.scriptFacadeService.dispatch(O.callScript({configs:E}))}goToChartPage(){this.router.navigate([st.RUNNING.ROOT])}},p.\u0275fac=function(e){return new(e||p)(c(P),c(Gt),c(bt),c(mt))},p.\u0275cmp=C({type:p,selectors:[["ms-machine-unlearning"]],viewQuery:function(e,i){if(e&1&&et(Vt,5),e&2){let o;it(o=rt())&&(i.panelParametersComponent=o.first)}},decls:17,vars:5,consts:[["panelAlgorithm",""],["panelParameters",""],[1,"heading-primary-title","title"],[1,"page-wrapper",3,"formGroup"],[1,"left"],[3,"formGroup"],["controlKey","algorithm"],["controlKey","model",3,"algorithmType"],["controlKey","params",3,"algorithm"],["mat-raised-button","","color","primary",3,"click","disabled"],["mat-raised-button","","color","primary",1,"ml-2",3,"click"],[1,"right"]],template:function(e,i){if(e&1){let o=tt();m(0,"p",2),h(1,"Model Compression"),s(),m(2,"div",3)(3,"div",4),X(4,5),D(5,"ms-panel-algorithm",6,0)(7,"ms-panel-model",7)(8,"ms-panel-parameters",8,1),Y(),m(10,"div")(11,"button",9),K("click",function(){return w(o),k(i.submit())}),h(12," Run "),s(),m(13,"button",10),K("click",function(){return w(o),k(i.goToChartPage())}),h(14,"View Chart"),s()()(),m(15,"div",11),D(16,"ms-terminal"),s()()}e&2&&(n(2),a("formGroup",i.form),n(2),a("formGroup",i.form),n(3),a("algorithmType",i.selectedAlgorithmType),n(),a("algorithm",i.selectedAlgorithm),n(3),a("disabled",i.isScriptActive||i.form.invalid))},dependencies:[_,N,I,T,dt,vt,b],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),p);G=S([F()],G);var Qt=[{path:"",component:G}],wt=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=A({type:t}),t.\u0275inj=v({imports:[V.forChild(Qt),V]});let r=t;return r})();var He=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=A({type:t}),t.\u0275inj=v({imports:[at,wt,_,N,I,_t,Ft,It,St,yt,Ct]});let r=t;return r})();export{He as ModelCompressionModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-3S6QBQVM.js b/frontend/server/modelsmith-build/browser/chunk-3S6QBQVM.js new file mode 100644 index 00000000..a5b05c1e --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-3S6QBQVM.js @@ -0,0 +1 @@ +import{$ as v,Ba as C,Bb as W,Ea as a,Fa as l,Ib as P,Kd as B,Ob as _,Pa as T,Qa as x,Ra as n,Sa as p,Ta as g,Ua as E,Wa as z,Zb as N,aa as y,ab as o,bb as m,bc as D,cb as f,fb as u,ha as b,ia as k,lb as I,qb as M,ra as h,rb as O,sa as w,sb as A,tb as R,xa as S}from"./chunk-NPZHNGVX.js";var F=["determinateSpinner"];function L(c,i){if(c&1&&(h(),o(0,"svg",11),f(1,"circle",12),m()),c&2){let d=I();n("viewBox",d._viewBox()),a(),g("stroke-dasharray",d._strokeCircumference(),"px")("stroke-dashoffset",d._strokeCircumference()/2,"px")("stroke-width",d._circleStrokeWidth(),"%"),n("r",d._circleRadius())}}var V=new y("mat-progress-spinner-default-options",{providedIn:"root",factory:G});function G(){return{diameter:j}}var j=100,Q=10,tr=(()=>{let i=class i{get color(){return this._color||this._defaultColor}set color(e){this._color=e}constructor(e,t,r){this._elementRef=e,this._defaultColor="primary",this._value=0,this._diameter=j,this._noopAnimations=t==="NoopAnimations"&&!!r&&!r._forceAnimations,this.mode=e.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",r&&(r.color&&(this.color=this._defaultColor=r.color),r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_circleRadius(){return(this.diameter-Q)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}};i.\u0275fac=function(t){return new(t||i)(l(S),l(C,8),l(V))},i.\u0275cmp=b({type:i,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(t,r){if(t&1&&M(F,5),t&2){let s;O(s=A())&&(r._determinateCircle=s.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(t,r){t&2&&(n("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),z("mat-"+r.color),g("width",r.diameter,"px")("height",r.diameter,"px")("--mdc-circular-progress-size",r.diameter+"px")("--mdc-circular-progress-active-indicator-width",r.diameter+"px"),E("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",_],diameter:[2,"diameter","diameter",_],strokeWidth:[2,"strokeWidth","strokeWidth",_]},exportAs:["matProgressSpinner"],standalone:!0,features:[T,W],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(t,r){if(t&1&&(x(0,L,2,8,"ng-template",null,0,P),o(2,"div",2,1),h(),o(4,"svg",3),f(5,"circle",4),m()(),w(),o(6,"div",5)(7,"div",6)(8,"div",7),u(9,8),m(),o(10,"div",9),u(11,8),m(),o(12,"div",10),u(13,8),m()()()),t&2){let s=R(1);a(4),n("viewBox",r._viewBox()),a(),g("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),n("r",r._circleRadius()),a(4),p("ngTemplateOutlet",s),a(2),p("ngTemplateOutlet",s),a(2),p("ngTemplateOutlet",s)}},dependencies:[N],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0});let c=i;return c})();var cr=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=k({type:i}),i.\u0275inj=v({imports:[D,B]});let c=i;return c})();export{tr as a,cr as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-4EAU6CO5.js b/frontend/server/modelsmith-build/browser/chunk-4EAU6CO5.js new file mode 100644 index 00000000..8968014f --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-4EAU6CO5.js @@ -0,0 +1,2 @@ +import{b as D}from"./chunk-HG2O7P4S.js";import{Bb as C,Ea as m,Fa as i,Na as f,Qa as d,Sa as p,T as a,Ub as I,ab as u,bb as h,bc as x,de as _,ha as c,j as s,ja as l,jb as g,lb as y,ub as E,wb as v}from"./chunk-NPZHNGVX.js";function F(e,t){if(e&1&&(u(0,"mat-error",1),E(1),h()),e&2){let R=y();m(),v(" ",R.text,` +`)}}var b=(()=>{let t=class t{constructor(){}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=c({type:t,selectors:[["ms-error-message"]],inputs:{text:"text"},standalone:!0,features:[C],decls:1,vars:1,consts:[["class","error-message",4,"ngIf"],[1,"error-message"]],template:function(r,o){r&1&&d(0,F,2,1,"mat-error",0),r&2&&p("ngIf",o.text)},dependencies:[x,I,D],styles:[".error-message[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fade-in-translate .3s}@keyframes _ngcontent-%COMP%_fade-in-translate{0%{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translateY(0)}}"]});let e=t;return e})();var M="onlyDigits";function O(e){if(!e)return;let t=Object.keys(e)[0];switch(t){case"required":return"Field required";case"email":return"Email required";case M:return"Only numeric characters allowed";default:return t}}var q=(()=>{let t=class t{constructor(n,r){this.control=n,this.vcr=r,this._destroyed$=new s}onBlur(){this.control.invalid&&!this.control.disabled&&this.insertErrorComponent()}ngOnInit(){this.control.touched&&this.control.invalid&&!this.control.disabled&&this.insertErrorComponent(),this.control?.statusChanges?.pipe(a(this._destroyed$)).subscribe(()=>{this.control.touched&&this.control.invalid&&!this.control.disabled&&this.insertErrorComponent(),(this.control.valid||this.control.disabled)&&this.destroyErrorComponent()})}insertErrorComponent(){if(!this.componentRef){this.componentRef=this.vcr.createComponent(b);let n=this.componentRef.location.nativeElement;n.parentElement?.parentElement?.parentElement?.parentElement?.getElementsByClassName("mat-mdc-form-field-subscript-wrapper")[0]?.getElementsByClassName("mat-mdc-form-field-hint-wrapper")[0]?.getElementsByClassName("mat-mdc-form-field-hint-spacer")[0].appendChild(n)}this.componentRef.instance&&(this.componentRef.instance.text=O(this.control.errors))}destroyErrorComponent(){this.componentRef&&(this.vcr.remove(),this.componentRef.destroy(),this.componentRef=void 0)}ngOnDestroy(){this.destroyErrorComponent(),this._destroyed$.next(),this._destroyed$.complete()}};t.\u0275fac=function(r){return new(r||t)(i(_),i(f))},t.\u0275dir=l({type:t,selectors:[["","msErrorDisplay",""]],hostBindings:function(r,o){r&1&&g("blur",function(){return o.onBlur()})},standalone:!0});let e=t;return e})();export{q as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-4KWEJN4U.js b/frontend/server/modelsmith-build/browser/chunk-4KWEJN4U.js deleted file mode 100644 index 45226dc4..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-4KWEJN4U.js +++ /dev/null @@ -1 +0,0 @@ -import{Ab as l,Bb as a,Cd as o,Kb as u,Lb as c,O as n,R as d,bc as i,zb as e}from"./chunk-AIAH5BT5.js";var h=l({source:"[Models]",events:{"Get Models List":e(),"Get Models List Success":e(),"Get Models List Failure":e(),"Get Current Or Previous Selected Model":e(),"Get Current Or Previous Selected Model Success":e(),"Get Current Or Previous Selected Model Failure":e(),"Get Model Metadata":e(),"Get Model Metadata Success":e(),"Get Model Metadata Failure":e()}});var A=l({source:"[Core -> Terminal]",events:{"Get Latest Messages":a(),"Get Latest Messages Success":e(),"Get Latest Messages Failure":e(),"Post Clear History":a(),"Post Clear History Success":a(),"Post Clear History Failure":e()}});var M=s=>c(i,t=>{switch(s){case o.QUANTIZATION:return t.models.quantizationModels;case o.PRUNING:return t.models.pruningModels;case o.MACHINE_UNLEARNING:return t.models.machineUnlearningModels;case o.AWQ:return t.models.awqModels;default:return}}),m=c(i,s=>s.models.currentModel),p=c(i,s=>s.models.modelMetadata);var v=(()=>{let t=class t{constructor(r){this.store=r,this.currentModel$=this.store.select(m),this.modelMetadata$=this.store.select(p)}getModelsByType(r){return this.store.select(M(r))}dispatch(r){this.store.dispatch(r)}};t.\u0275fac=function(f){return new(f||t)(d(u))},t.\u0275prov=n({token:t,factory:t.\u0275fac});let s=t;return s})();export{h as a,A as b,v as c}; diff --git a/frontend/server/modelsmith-build/browser/chunk-4RL3OKAB.js b/frontend/server/modelsmith-build/browser/chunk-4RL3OKAB.js deleted file mode 100644 index 0220a85f..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-4RL3OKAB.js +++ /dev/null @@ -1,11 +0,0 @@ -import{a as ct,e as pt,g as Hi,h as Oe,i as Ie}from"./chunk-ES2PX4IE.js";import{a as ji,b as mt,c as Gi}from"./chunk-MVEKSYQT.js";import{a as lt}from"./chunk-2E3XMRVQ.js";import{a as Xi,b as Yi}from"./chunk-RAX4D5PF.js";import{a as Li,b as de,c as zi,d as st,e as Pe}from"./chunk-H5CB7PWT.js";import"./chunk-NO2PD4LU.js";import{b as Vi}from"./chunk-MPLQ54VQ.js";import{$ as Ge,$a as K,$c as xi,A as xe,Aa as w,Ab as ai,Ad as rt,Ae as Ni,Bd as Bt,Ca as E,Cc as Ci,Cd as I,Da as C,Ea as m,Ec as _i,G as Et,Hc as Te,I as Dt,Ja as ne,Ka as re,Kb as si,La as oe,Lb as Ue,Lc as vi,Ma as j,Mb as li,Mc as kt,N as Yt,Na as d,Nb as ci,O as U,Oa as A,Ob as Ee,Oc as q,Od as yi,P as we,Pa as F,Pb as pi,Pc as Pt,Qa as ae,Qb as Mt,Qc as Ot,Qd as Ae,R as H,Ra as se,Rb as mi,Rc as ze,S as Wt,Sa as le,Sb as At,Sc as It,T,Ta as be,Tb as di,U as ye,V as Ne,W as je,Wa as Tt,Wc as tt,Y as $t,Ya as b,Z as _,Za as S,Zb as Rt,Zc as it,Zd as bi,_ as v,_a as Jt,a as O,aa as Ut,ab as ei,b as z,ca as Kt,cb as Ye,cd as wi,de as me,ea as Ve,ec as Ke,ed as nt,ee as Re,fa as B,fb as Y,fc as Qe,fe as ke,gb as Q,ge as Si,ha as Qt,hb as ti,he as ot,i as wt,ia as Ft,ib as ii,ic as hi,ja as s,jb as ni,jc as ui,je as Ei,ka as f,kb as We,kc as fe,ke as at,la as qt,lc as Le,le as Di,m as ie,mb as Se,nb as ri,nc as ce,o as yt,ob as oi,oc as De,pb as $e,pc as qe,qa as u,qe as Fi,rc as gi,rd as pe,re as Ti,s as bt,sa as p,sc as Ze,sd as N,se as Mi,ta as X,te as Ai,ua as Xe,uc as Je,ue as Ri,va as Zt,vc as fi,ve as ki,w as Gt,wa as l,we as Pi,x as St,xa as c,xc as Fe,xe as Oi,ya as g,yd as Me,ye as Ii,z as Xt,za as x,zb as ge,zc as et,ze as Bi}from"./chunk-AIAH5BT5.js";var Cn=["hueSlider"],_n=["alphaSlider"];function vn(n,i){if(n&1){let e=E();l(0,"div",10),C("newValue",function(r){_(e);let o=m();return v(o.onSliderChange("saturation-lightness",r))}),l(1,"div",11),g(2,"div"),c()()}if(n&2){let e=m();X("background-color",e.hueSliderColor),p("rgX",1)("rgY",1),s(),X("top",e.slider==null?null:e.slider.v,"px")("left",e.slider==null?null:e.slider.s,"px")}}function xn(n,i){if(n&1&&(l(0,"div",12),g(1,"div",13)(2,"div",14),c()),n&2){let e=m();s(2),X("background-color",e.selectedColor)}}function wn(n,i){if(n&1){let e=E();l(0,"div",15,1),C("newValue",function(r){_(e);let o=m();return v(o.onSliderChange("hue",r))}),l(2,"div",16)(3,"div"),g(4,"div"),c()()()}if(n&2){let e=m();p("rgX",1),s(2),X("left",e.slider==null?null:e.slider.h,"px")}}function yn(n,i){if(n&1){let e=E();l(0,"div",17,2),C("newValue",function(r){_(e);let o=m();return v(o.onSliderChange("alpha",r))}),g(2,"div",18),l(3,"div",16)(4,"div"),g(5,"div"),c()()()}if(n&2){let e=m();p("rgX",1),s(2),p("ngStyle",e.getBackgroundColor(e.alphaSliderColor)),s(),X("left",e.slider==null?null:e.slider.a,"px")}}var bn=["dialog"],Ui=n=>({background:n});function Sn(n,i){n&1&&g(0,"div",12)}function En(n,i){if(n&1){let e=E();x(0),l(1,"div",9)(2,"div",10),C("click",function(){let r=_(e).$implicit,o=m(2);return v(o.onColorClick(r))}),u(3,Sn,1,0,"div",11),c()(),w()}if(n&2){let e=i.$implicit,t=i.index,r=m(2);s(2),Xe("colornull",!e),p("ngStyle",r.getBackgroundColor(e)),s(),p("ngIf",t==r.indexSeleccionado)}}function Dn(n,i){if(n&1&&g(0,"div",18),n&2){let e=m(3);p("ngStyle",e.getBackgroundColor(e.color))}}function Fn(n,i){if(n&1){let e=E();l(0,"div",13),C("click",function(){_(e);let r=m(2);return v(r.addColor())}),u(1,Dn,1,1,"div",14),Ge(),l(2,"svg",15),g(3,"path",16)(4,"path",17),c()()}if(n&2){let e=m(2);s(),p("ngIf",e.indexSeleccionado===void 0)}}function Tn(n,i){if(n&1){let e=E();l(0,"color-picker",19),C("colorChange",function(r){_(e);let o=m(2);return v(o.onChangeColorPicker(r))})("onAlphaChange",function(r){_(e);let o=m(2);return v(o.onAlphaChange(r))}),c()}if(n&2){let e=m(2);p("controls",e.colorPickerControls)("color",e.hsva)}}function Mn(n,i){if(n&1&&(x(0),l(1,"div",5),u(2,En,4,4,"ng-container",6)(3,Fn,5,1,"div",7)(4,Tn,1,2,"color-picker",8),c(),w()),n&2){let e=m();s(),p("@colorsAnimation",e.colorsAnimationEffect),s(),p("ngForOf",e.palette),s(),p("ngIf",!e.hideColorPicker&&e.colorPickerControls!="only-alpha"),s(),p("ngIf",!e.hideColorPicker&&e.colorPickerControls=="only-alpha")}}function An(n,i){n&1&&g(0,"div",12)}function Rn(n,i){if(n&1){let e=E();x(0),l(1,"div",9)(2,"div",25),C("click",function(){let r=_(e).$implicit,o=m(2);return v(o.changeColor(r))}),u(3,An,1,0,"div",11),c()(),w()}if(n&2){let e=i.$implicit,t=m(2);s(2),Xe("colornull",!e),p("ngStyle",Tt(4,Ui,e)),s(),p("ngIf",t.isSelected(e))}}function kn(n,i){if(n&1){let e=E();x(0),l(1,"div",5)(2,"div",20)(3,"div",21),C("click",function(){_(e);let r=m();return v(r.onClickBack())}),Ge(),l(4,"svg",22),g(5,"path",23)(6,"path",24),c()()(),u(7,Rn,4,6,"ng-container",6),c(),w()}if(n&2){let e=m();s(),p("@colorsAnimation",e.colorsAnimationEffect),s(6),p("ngForOf",e.variants)}}function Pn(n,i){if(n&1){let e=E();x(0),l(1,"div",26)(2,"div",27),C("click",function(){_(e);let r=m();return v(r.onClickBack())}),Ge(),l(3,"svg",22),g(4,"path",23)(5,"path",24),c()(),Ut(),l(6,"button",28),C("click",function(){_(e);let r=m();return v(r.emitClose("cancel"))}),d(7),c(),l(8,"button",28),C("click",function(){_(e);let r=m();return v(r.emitClose("accept"))}),d(9),c()(),l(10,"div",29)(11,"color-picker",30),C("sliderChange",function(r){_(e);let o=m();return v(o.onChangeColorPicker(r))}),c()(),w()}if(n&2){let e=m();s(7),F(" ",e.cancelLabel," "),s(2),F(" ",e.acceptLabel," "),s(2),p("controls",e.colorPickerControls)("color",e.hsva)}}function On(n,i){if(n&1){let e=E();l(0,"div",31)(1,"p",32),C("click",function(){_(e);let r=m();return v(r.nextFormat())}),d(2),c(),l(3,"div",33)(4,"input",34,1),C("keyup",function(){_(e);let r=j(5),o=m();return v(o.changeColorManual(r.value))})("keydown.enter",function(){_(e);let r=m();return v(r.emitClose("accept"))}),c()()()}if(n&2){let e=m();s(2),A(e.colorFormats[e.format]),s(2),X("font-size",e.color&&e.color.length>23?9:10,"px")("letter-spacing",e.color&&e.color.length>16?0:1.5,"px"),p("placeholder",e.placeholder)("value",e.color)}}var Nt=["hex","rgba","hsla","cmyk"],R=function(n){return n[n.HEX=0]="HEX",n[n.RGBA=1]="RGBA",n[n.HSLA=2]="HSLA",n[n.CMYK=3]="CMYK",n}(R||{}),Wi=[{color:"rojo",preview:"#E57373",variants:["#FFEBEE","#FFCDD2","#EF9A9A","#E57373","#EF5350","#F44336","#E53935","#D32F2F","#C62828"]},{color:"rosa",preview:"#F06292",variants:["#FCE4EC","#F8BBD0","#F48FB1","#F06292","#EC407A","#E91E63","#D81B60","#C2185B","#AD1457"]},{color:"purpura",preview:"#BA68C8",variants:["#F3E5F5","#E1BEE7","#CE93D8","#BA68C8","#AB47BC","#9C27B0","#8E24AA","#7B1FA2","#6A1B9A"]},{color:"purpura oscuro",preview:"#9575CD",variants:["#EDE7F6","#D1C4E9","#B39DDB","#9575CD","#7E57C2","#673AB7","#5E35B1","#512DA8","#4527A0"]},{color:"indigo",preview:"#7986CB",variants:["#E8EAF6","#C5CAE9","#9FA8DA","#7986CB","#5C6BC0","#3F51B5","#3949AB","#303F9F","#283593"]},{color:"azul",preview:"#64B5F6",variants:["#E3F2FD","#BBDEFB","#90CAF9","#64B5F6","#42A5F5","#2196F3","#1E88E5","#1976D2","#1565C0"]},{color:"celeste",preview:"#4FC3F7",variants:["#E1F5FE","#B3E5FC","#81D4FA","#4FC3F7","#29B6F6","#03A9F4","#039BE5","#0288D1","#0277BD"]},{color:"cyan",preview:"#4DD0E1",variants:["#E0F7FA","#B2EBF2","#80DEEA","#4DD0E1","#26C6DA","#00BCD4","#00ACC1","#0097A7","#00838F"]},{color:"color",preview:"#4DB6AC",variants:["#E0F2F1","#B2DFDB","#80CBC4","#4DB6AC","#26A69A","#009688","#00897B","#00796B","#00695C"]},{color:"verde",preview:"#81C784",variants:["#E8F5E9","#C8E6C9","#A5D6A7","#81C784","#66BB6A","#4CAF50","#43A047","#388E3C","#2E7D32"]},{color:"verde claro",preview:"#AED581",variants:["#F1F8E9","#DCEDC8","#C5E1A5","#AED581","#9CCC65","#8BC34A","#7CB342","#689F38","#558B2F"]},{color:"lima",preview:"#DCE775",variants:["#F9FBE7","#F0F4C3","#E6EE9C","#DCE775","#D4E157","#CDDC39","#C0CA33","#AFB42B","#9E9D24"]},{color:"amarillo",preview:"#FFF176",variants:["#FFFDE7","#FFF9C4","#FFF59D","#FFF176","#FFEE58","#FFEB3B","#FDD835","#FBC02D","#F9A825"]},{color:"ambar",preview:"#FFD54F",variants:["#FFF8E1","#FFECB3","#FFE082","#FFD54F","#FFCA28","#FFC107","#FFB300","#FFA000","#FF8F00"]},{color:"naranja",preview:"#FFB74D",variants:["#FFF3E0","#FFE0B2","#FFCC80","#FFB74D","#FFA726","#FF9800","#FB8C00","#F57C00","#EF6C00"]},{color:"naranja oscuro",preview:"#FF8A65",variants:["#FBE9E7","#FFCCBC","#FFAB91","#FF8A65","#FF7043","#FF5722","#F4511E","#E64A19","#D84315"]},{color:"marron",preview:"#A1887F",variants:["#EFEBE9","#D7CCC8","#BCAAA4","#A1887F","#8D6E63","#795548","#6D4C41","#5D4037","#4E342E"]},{color:"escala de grises",preview:"#E0E0E0",variants:["#FFFFFF","#FAFAFA","#F5F5F5","#EEEEEE","#E0E0E0","#BDBDBD","#9E9E9E","#757575","#616161","#424242","#000000"]},{color:"azul gris",preview:"#90A4AE",variants:["#ECEFF1","#CFD8DC","#B0BEC5","#90A4AE","#78909C","#607D8B","#546E7A","#455A64","#37474F"]}],W=class{constructor(i,e,t,r){this.r=i,this.g=e,this.b=t,this.a=r}denormalize(){return this.r=Math.round(this.r*255),this.g=Math.round(this.g*255),this.b=Math.round(this.b*255),this}toString(){return this.denormalize(),"rgb"+(this.a!=1?"a(":"(")+this.r+", "+this.g+", "+this.b+(this.a!=1?", "+this.a.toPrecision(2)+")":")")}},G=class{constructor(i,e,t,r){this.h=i,this.s=e,this.v=t,this.a=r,this.onChange=new B(!0)}onColorChange(i){this.s=i.s/i.rgX,this.v=i.v/i.rgY}onHueChange(i){this.h=i.v/i.rgX}onValueChange(i){this.v=i.v/i.rgX}onAlphaChange(i){this.a=i.v/i.rgX}},Ce=class{constructor(i,e,t,r){this.h=i,this.s=e,this.l=t,this.a=r}denormalize(){return this.h=Math.round(this.h*360),this.s=Math.round(this.s*100),this.l=Math.round(this.l*100),this}toString(){return"hsl"+(this.a!=1?"a(":"(")+this.h+", "+this.s+"%, "+this.l+"%"+(this.a!=1?", "+this.a.toPrecision(2)+")":")")}},he=class{constructor(i,e,t,r,o=1){this.c=i,this.m=e,this.y=t,this.k=r,this.a=o}denormalize(){return this.c=Math.round(this.c*100),this.m=Math.round(this.m*100),this.y=Math.round(this.y*100),this.k=Math.round(this.k*100),this}toString(){return this.denormalize(),"cmyk("+this.c+", "+this.m+", "+this.y+", "+this.k+")"}},Vt=class{constructor(i){i&&(this.preview=i.preview,this.variants=i.variants)}},ut=(()=>{class n{constructor(){}toFormat(e,t){var r="";if(e)switch(t){case R.HEX:var a=this.hsvaToRgba(e);a.denormalize();var r=this.rgbaToHex(a,!0);break;case R.HSLA:var o=this.hsva2hsla(e);o.denormalize();var r=o.toString();break;case R.RGBA:var a=this.hsvaToRgba(e),r=a.toString();break;case R.CMYK:var h=this.hsvaToCmyk(e),r=h.toString();break}return r}stringToFormat(e,t){var r=this.stringToHsva(e,!0);return this.toFormat(r,t)}hsva2hsla(e){let t=e.h,r=e.s,o=e.v,a=e.a;if(o===0)return new Ce(t,0,0,a);if(r===0&&o===1)return new Ce(t,1,1,a);{let h=o*(2-r)/2;return new Ce(t,o*r/(1-Math.abs(2*h-1)),h,a)}}hsla2hsva(e){let t=Math.min(e.h,1),r=Math.min(e.s,1),o=Math.min(e.l,1),a=Math.min(e.a,1);if(o===0)return new G(t,0,0,a);{let h=o+r*(1-Math.abs(2*o-1))/2;return new G(t,2*(h-o)/h,h,a)}}hsvaToRgba(e){let t,r,o,a=e.h,h=e.s,y=e.v,D=e.a,$=Math.floor(a*6),ve=a*6-$,P=y*(1-h),Be=y*(1-ve*h),ue=y*(1-(1-ve)*h);switch($%6){case 0:t=y,r=ue,o=P;break;case 1:t=Be,r=y,o=P;break;case 2:t=P,r=y,o=ue;break;case 3:t=P,r=Be,o=y;break;case 4:t=ue,r=P,o=y;break;case 5:t=y,r=P,o=Be;break;default:t=0,r=0,o=0}return new W(t,r,o,D)}cmykToRgb(e){let t=(1-e.c)*(1-e.k),r=(1-e.m)*(1-e.k),o=(1-e.y)*(1-e.k);return new W(t,r,o,e.a)}rgbaToCmyk(e){let t=1-Math.max(e.r,e.g,e.b);if(t===1)return new he(0,0,0,1,e.a);{let r=(1-e.r-t)/(1-t),o=(1-e.g-t)/(1-t),a=(1-e.b-t)/(1-t);return new he(r,o,a,t,e.a)}}hsvaToCmyk(e){let t=this.hsvaToRgba(e);return this.rgbaToCmyk(t)}rgbaToHsva(e){let t,r,o=Math.min(e.r,1),a=Math.min(e.g,1),h=Math.min(e.b,1),y=Math.min(e.a,1),D=Math.max(o,a,h),$=Math.min(o,a,h),ve=D,P=D-$;if(r=D===0?0:P/D,D===$)t=0;else{switch(D){case o:t=(a-h)/P+(a{class n{mouseDown(e){this.start(e)}touchStart(e){this.start(e)}constructor(e){this.elRef=e,this.dragEnd=new B,this.dragStart=new B,this.newValue=new B,this.listenerMove=t=>this.move(t),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 t=this.elRef.nativeElement.getBoundingClientRect();return(e.pageX!==void 0?e.pageX:e.touches[0].pageX)-t.left-window.pageXOffset}getY(e){let t=this.elRef.nativeElement.getBoundingClientRect();return(e.pageY!==void 0?e.pageY:e.touches[0].pageY)-t.top-window.pageYOffset}setCursor(e){let t=this.elRef.nativeElement.offsetWidth,r=this.elRef.nativeElement.offsetHeight,o=Math.max(0,Math.min(this.getX(e),t)),a=Math.max(0,Math.min(this.getY(e),r));this.rgX!==void 0&&this.rgY!==void 0?this.newValue.emit({s:o/t,v:1-a/r,rgX:this.rgX,rgY:this.rgY}):this.rgX===void 0&&this.rgY!==void 0?this.newValue.emit({v:a/r,rgY:this.rgY}):this.rgX!==void 0&&this.rgY===void 0&&this.newValue.emit({v:o/t,rgX:this.rgX})}}return n.\u0275fac=function(e){return new(e||n)(f(Ve))},n.\u0275dir=Ne({type:n,selectors:[["","slider",""]],hostBindings:function(e,t){e&1&&C("mousedown",function(o){return t.mouseDown(o)})("touchstart",function(o){return t.touchStart(o)})},inputs:{rgX:"rgX",rgY:"rgY",slider:"slider"},outputs:{dragEnd:"dragEnd",dragStart:"dragStart",newValue:"newValue"}}),n})(),Bn=(()=>{class n{constructor(e,t){this.service=e,this.cdr=t,this.color=new G(0,1,1,1),this.controls="default",this.sliderChange=new B(!1),this.onAlphaChange=new B(!1),this.hsva=new G(0,1,1,1),this.selectedColor="#000000",this.fallbackColor="#000000"}ngOnInit(){this.color||(this.color=new G(0,1,1,1)),this.slider=new dt(0,0,0,0),this.update()}ngOnDestroy(){}ngOnChanges(e){e.color&&this.color&&this.update()}ngAfterViewInit(){let e=this.hueSlider?.nativeElement.offsetWidth||140,t=this.alphaSlider?.nativeElement.offsetWidth||140;this.sliderDimMax=new Lt(e,220,130,t),this.update()}onSliderChange(e,t){switch(e){case"saturation-lightness":this.hsva.onColorChange(t);break;case"hue":this.hsva.onHueChange(t);break;case"alpha":this.hsva.onAlphaChange(t),this.onAlphaChange.emit(t);break;case"value":this.hsva.onValueChange(t);break}this.update(),this.setColor(this.outputColor)}setColor(e){this.color=e,this.sliderChange.emit(this.color)}getBackgroundColor(e){return{background:"linear-gradient(90deg, rgba(36,0,0,0) 0%, "+e+" 100%)"}}update(){if(this.hsva=this.color,this.sliderDimMax){let e=this.service.hsvaToRgba(this.hsva).denormalize(),t=this.service.hsvaToRgba(new G(this.hsva.h,1,1,1)).denormalize();this.hueSliderColor="rgb("+t.r+","+t.g+","+t.b+")",this.alphaSliderColor="rgb("+e.r+","+e.g+","+e.b+")",this.outputColor=this.hsva,this.selectedColor=this.service.hsvaToRgba(this.hsva).toString(),this.slider=new dt(this.hsva.h*this.sliderDimMax.h-5,this.hsva.s*this.sliderDimMax.s-8,(1-this.hsva.v)*this.sliderDimMax.v-8,this.hsva.a*this.sliderDimMax.a-5),this.cdr.detectChanges()}}}return n.\u0275fac=function(e){return new(e||n)(f(ut),f(Ye))},n.\u0275cmp=T({type:n,selectors:[["color-picker"]],viewQuery:function(e,t){if(e&1&&(ne(Cn,5),ne(_n,5)),e&2){let r;re(r=oe())&&(t.hueSlider=r.first),re(r=oe())&&(t.alphaSlider=r.first)}},inputs:{color:"color",controls:"controls"},outputs:{sliderChange:"sliderChange",onAlphaChange:"onAlphaChange"},features:[$t],decls:8,vars:4,consts:[["dialogPopup",""],["hueSlider",""],["alphaSlider",""],[1,"color-picker",3,"click"],["class","saturation-lightness",3,"slider","rgX","rgY","background-color","newValue",4,"ngIf"],[1,"hue-alpha","box"],["class","left",4,"ngIf"],[1,"right"],["class","hue",3,"slider","rgX","newValue",4,"ngIf"],["class","alpha",3,"slider","rgX","newValue",4,"ngIf"],[1,"saturation-lightness",3,"newValue","slider","rgX","rgY"],[1,"cursor"],[1,"left"],[1,"selected-color-background"],[1,"selected-color"],[1,"hue",3,"newValue","slider","rgX"],[1,"sliderCursor"],[1,"alpha",3,"newValue","slider","rgX"],[1,"alpha-gradient",3,"ngStyle"]],template:function(e,t){if(e&1){let r=E();l(0,"div",3,0),C("click",function(a){return _(r),v(a.stopPropagation())}),u(2,vn,3,8,"div",4),l(3,"div",5),u(4,xn,3,2,"div",6),l(5,"div",7),u(6,wn,5,3,"div",8)(7,yn,6,4,"div",9),c()()()}e&2&&(s(2),p("ngIf",t.controls!="only-alpha"),s(2),p("ngIf",t.controls!="only-alpha"),s(2),p("ngIf",t.controls!="only-alpha"),s(),p("ngIf",t.controls!="no-alpha"))},dependencies:[Q,We,In],styles:[`.color-picker{position:relative;z-index:1000;width:220px;height:auto;cursor:default;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:none}.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 .sliderCursor{width:10px;border-radius:5px;position:absolute;margin-top:-3px;border:1px solid black}.color-picker .sliderCursor>div{border:2px solid white;border-radius:5px}.color-picker .sliderCursor>div>div{border-radius:5px;border:1px solid black;height:24px}.color-picker .cursor{position:absolute;width:21px;border:3px solid black;border-radius:100%;margin:-2px 0 0 -2px}.color-picker .cursor>div{height:15px;border:3px solid white;border-radius:100%}.color-picker .box{display:flex;padding:4px 8px}.color-picker .left{position:relative;padding:16px 8px}.color-picker .right{flex:1 1 auto;display:flex;flex-direction:column;gap:10px;padding:12px 8px}.color-picker .hue-alpha{display:flex;align-items:center;margin-bottom:3px}.color-picker .hue{direction:ltr;width:100%;height:24px;border:none;border-radius:5px;position:relative;cursor:pointer;background-size:100% 100%;background:linear-gradient(to right,red 0%,#ff0 17%,lime 33%,cyan 50%,blue 66%,#f0f 83%,red 100%)}.color-picker .alpha{direction:ltr;position:relative;width:100%;height:24px;border:none;border-radius:5px;cursor:pointer;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0px}.color-picker .alpha-gradient{width:100%;height:100%;border-radius:5px;position:absolute}.color-picker .selected-color{position:absolute;top:16px;left:8px;width:40px;height:40px;box-shadow:0 1px 1px 1px #00000026;border-radius:50%}.color-picker .selected-color-background{width:40px;height:40px;border-radius:50%;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0px}.color-picker .saturation-lightness{direction:ltr;cursor:crosshair;width:100%;position:relative;height:130px;border:none;touch-action:manipulation;background-image:linear-gradient(to top,#000 0%,transparent 100%),linear-gradient(to right,#fff 0%,transparent 100%)} -`],encapsulation:2}),n})(),Nn=(()=>{class n{click(e){this.isOutside(e)&&this.emitClose("cancel")}onScroll(){this.onScreenMovement()}onResize(){this.onScreenMovement()}constructor(e,t){this.service=e,this.cdr=t,this.color="#000000",this.previewColor="#000000",this.hsva=new G(0,1,1,1),this.colorsAnimationEffect="slide-in",this.palette=Wi,this.variants=[],this.userFormats=[],this.colorFormats=Nt,this.format=R.HEX,this.formatMap={hex:R.HEX,rgba:R.RGBA,hsla:R.HSLA,cmyk:R.CMYK},this.canChangeFormat=!0,this.menu=1,this.hideColorPicker=!1,this.hideTextInput=!1,this.colorPickerControls="default",this.placeholder="#FFFFFF"}ngOnInit(){this.setPosition(),this.hsva=this.service.stringToHsva(this.color),this.indexSeleccionado=this.findIndexSelectedColor(this.palette)}ngAfterViewInit(){this.setPositionY()}onScreenMovement(){this.setPosition(),this.setPositionY(),this.panelRef.nativeElement.style.transition||(this.panelRef.nativeElement.style.transition="transform 0.5s ease-out")}findIndexSelectedColor(e){let t;if(this.color)for(let r=0;rNt.includes(fn))&&(this.colorFormats=ue),h?this.colorFormats.includes(h)?(this.format=this.colorFormats.indexOf(h.toLowerCase()),this.canChangeFormat=!1,this.service.getFormatByString(this.color)!=h.toLowerCase()&&this.setColor(this.service.stringToHsva(this.color))):(console.error("Format provided is invalid, using HEX"),this.format=R.HEX):(this.format=this.colorFormats.indexOf(this.service.getFormatByString(this.color)),this.format<0&&(this.format=0)),this.previewColor=this.color,this.palette=o??Wi,this.colorsAnimationEffect=a,Be=="top"){let jt=this.TriggerBBox.nativeElement.getBoundingClientRect();this.positionString="transform: translateY(calc( -100% - "+jt.height+"px ))"}}setPosition(){if(this.TriggerBBox){let t=this.TriggerBBox.nativeElement.getBoundingClientRect();this.top=t.top+t.height,t.left+250>window.innerWidth?this.left=t.right<250?window.innerWidth/2-250/2:t.right-250:this.left=t.left}}setPositionY(){let e=this.TriggerBBox.nativeElement.getBoundingClientRect(),t=this.panelRef.nativeElement.getBoundingClientRect(),r=t.height;e.bottom+r>window.innerHeight?this.positionString=e.topt.toUpperCase()==this.previewColor.toUpperCase()):!1}isSelected(e){return this.previewColor?typeof e=="string"&&e.toUpperCase()==this.previewColor.toUpperCase():!1}getBackgroundColor(e){return typeof e=="string"?{background:e}:{background:e?.preview}}onAlphaChange(e){this.palette=this.ChangeAlphaOnPalette(e,this.palette)}ChangeAlphaOnPalette(e,t){var r=[];for(let o=0;o slide-in",[ze(":enter",q({opacity:0}),{optional:!0}),ze(":enter",It("10ms",[kt(".3s ease-in",Pt([q({opacity:0,transform:"translatex(-50%)",offset:0}),q({opacity:.5,transform:"translatex(-10px) scale(1.1)",offset:.3}),q({opacity:1,transform:"translatex(0)",offset:1})]))]),{optional:!0})]),Ot("void => popup",[ze(":enter",q({opacity:0,transform:"scale(0)"}),{optional:!0}),ze(":enter",It("10ms",[kt("500ms ease-out",Pt([q({opacity:.5,transform:"scale(.5)",offset:.3}),q({opacity:1,transform:"scale(1.1)",offset:.8}),q({opacity:1,transform:"scale(1)",offset:1})]))]),{optional:!0})])])]}}),n})(),$i={position:"fixed",height:"100%",width:"100%","z-index":2e3,top:0,left:0},Ki=(()=>{class n{constructor(e,t,r){this.resolver=e,this.applicationRef=t,this.injector=r}createPanel(e,t){this.componentRef!=null&&this.removePanel();let r=this.resolver.resolveComponentFactory(Nn);this.componentRef=r.create(this.injector),this.applicationRef.attachView(this.componentRef.hostView);let o=this.componentRef.hostView.rootNodes[0];return this.overlay=document.createElement("div"),this.overlay.id="ngx-colors-overlay",this.overlay.classList.add("ngx-colors-overlay"),this.overlay.classList.add(t),Object.keys($i).forEach(a=>{this.overlay.style[a]=$i[a]}),e?document.getElementById(e).appendChild(this.overlay):document.body.appendChild(this.overlay),this.overlay.appendChild(o),this.componentRef}removePanel(){this.applicationRef.detachView(this.componentRef.hostView),this.componentRef.destroy(),this.overlay.remove()}}return n.\u0275fac=function(e){return new(e||n)(H(qt),H(ei),H(Kt))},n.\u0275prov=U({token:n,factory:n.\u0275fac}),n})(),zt=(()=>{class n{onClick(){this.openPanel()}constructor(e,t,r){this.triggerRef=e,this.panelFactory=t,this.service=r,this.color="",this.colorsAnimation="slide-in",this.position="bottom",this.attachTo=void 0,this.overlayClassName=void 0,this.colorPickerControls="default",this.acceptLabel="ACCEPT",this.cancelLabel="CANCEL",this.change=new B,this.input=new B,this.slider=new B,this.close=new B,this.open=new B,this.isDisabled=!1,this.onTouchedCallback=()=>{},this.onChangeCallback=()=>{}}ngOnDestroy(){this.panelRef&&this.panelFactory.removePanel()}openPanel(){this.isDisabled||(this.panelRef=this.panelFactory.createPanel(this.attachTo,this.overlayClassName),this.panelRef.instance.iniciate(this,this.triggerRef,this.color,this.palette,this.colorsAnimation,this.format,this.hideTextInput,this.hideColorPicker,this.acceptLabel,this.cancelLabel,this.colorPickerControls,this.position,this.formats)),this.open.emit(this.color)}closePanel(){this.panelFactory.removePanel(),this.onTouchedCallback(),this.close.emit(this.color)}setDisabledState(e){this.isDisabled=e,this.triggerRef.nativeElement.style.opacity=e?.5:1}setColor(e,t=""){this.writeValue(e,t),this.onChangeCallback(e),this.input.emit(e)}sliderChange(e){this.slider.emit(e)}get value(){return this.color}set value(e){this.setColor(e),this.onChangeCallback(e)}writeValue(e,t=""){if(e!==this.color){if(this.format){let o=Nt.indexOf(this.format.toLowerCase());e=this.service.stringToFormat(e,o)}this.color=e;let r=!1;e&&e.startsWith("cmyk")&&(r=!0,t||(t=this.service.stringToFormat(e,R.RGBA))),this.change.emit(r?t:e)}}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}}return n.\u0275fac=function(e){return new(e||n)(f(Ve),f(Ki),f(ut))},n.\u0275dir=Ne({type:n,selectors:[["","ngx-colors-trigger",""]],hostBindings:function(e,t){e&1&&C("click",function(){return t.onClick()})},inputs:{colorsAnimation:"colorsAnimation",palette:"palette",format:"format",formats:"formats",position:"position",hideTextInput:"hideTextInput",hideColorPicker:"hideColorPicker",attachTo:"attachTo",overlayClassName:"overlayClassName",colorPickerControls:"colorPickerControls",acceptLabel:"acceptLabel",cancelLabel:"cancelLabel"},outputs:{change:"change",input:"input",slider:"slider",close:"close",open:"open"},features:[be([{provide:hi,useExisting:Yt(()=>n),multi:!0}])]}),n})(),Qi=(()=>{class n{constructor(e,t){this.cdRef=e,this.triggerDirective=t,this.triggerDirectiveColorChangeSubscription=null,this.color=this.triggerDirective.color}ngOnInit(){this.triggerDirectiveColorChangeSubscription=this.triggerDirective.change.subscribe(e=>{this.color=e,this.cdRef.markForCheck()})}ngOnDestroy(){this.triggerDirectiveColorChangeSubscription&&this.triggerDirectiveColorChangeSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(f(Ye),f(zt,1))},n.\u0275cmp=T({type:n,selectors:[["ngx-colors"]],decls:4,vars:5,consts:[[1,"app-color-picker"],[1,"preview"],[1,"preview-background"],[1,"circle",3,"ngStyle"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"div",1)(2,"div",2),g(3,"div",3),c()()()),e&2&&(s(3),Xe("colornull",!t.color),p("ngStyle",Tt(3,Ui,t.color)))},dependencies:[We],styles:["[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%]{line-height:1px;font-family:sans-serif}[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%]{margin:2px;display:inline-block;box-sizing:border-box;border-radius:100%;background:white;cursor:pointer;padding:3px;box-shadow:0 1px 1px #0003,0 1px 1px 1px #00000024,0 1px 1px 1px #0000001f}[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] .preview-background[_ngcontent-%COMP%]{background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0px;border-radius:100%}[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] .circle[_ngcontent-%COMP%]{height:20px;width:20px;box-sizing:border-box;border-radius:100%;cursor:pointer}[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] .circle.colornull[_ngcontent-%COMP%]{background:linear-gradient(135deg,rgba(236,236,236,.7) 0%,rgba(236,236,236,.7) 45%,#de0f00 50%,rgba(236,236,236,.7) 55%,rgba(236,236,236,.7) 100%)}[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] .noselected[_ngcontent-%COMP%]{background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0px}"]}),n})(),qi=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=we({providers:[ut,Ki],imports:[$e]}),n})();var M=ai({source:"[Run Records -> Records]",events:{"Get Run Records Filenames":ge(),"Get Run Records Filenames Success":ge(),"Get Run Records Filenames Failure":ge(),"Get Run Record Summarized Data":ge(),"Get Run Record Summarized Data Success":ge(),"Get Run Record Summarized Data Failure":ge()}});var gt=class extends nt{constructor(i){super(`run-records-filenames/${i}`,void 0,void 0,!1)}};var ft=class extends nt{constructor(i,e){super(`run-records-summarized-data/${i}/${e}`,void 0,void 0,!1)}};var Zi=(()=>{let i=class i{constructor(t,r){this.apiClient=t,this.actions$=r,this.getRunRecordsFilenames$=Mt(()=>this.actions$.pipe(At(M.getRunRecordsFilenames),Dt(o=>{let{algorithmType:a}=o;return this.apiClient.serviceCall(new gt(a)).pipe(bt(h=>M.getRunRecordsFilenamesSuccess({files:h})),St(h=>yt(M.getRunRecordsFilenamesFailure({error:h}))))}))),this.getRunRecordSummarizedData$=Mt(()=>this.actions$.pipe(At(M.getRunRecordSummarizedData),Dt(o=>{let{algorithmType:a,filename:h}=o;return this.apiClient.serviceCall(new ft(a,h)).pipe(bt(y=>M.getRunRecordSummarizedDataSuccess({record:y})),St(y=>yt(M.getRunRecordSummarizedDataFailure({error:y}))))})))}};i.\u0275fac=function(r){return new(r||i)(H(wi),H(mi))},i.\u0275prov=U({token:i,factory:i.\u0275fac});let n=i;return n})();var Ln={filenames:[],summarizedRecord:{},error:""},Ji=pi(Ln,Ee(M.getRunRecordsFilenamesSuccess,(n,{files:i})=>z(O({},n),{filenames:i,error:null})),Ee(M.getRunRecordsFilenamesFailure,(n,{error:i})=>z(O({},n),{error:i})),Ee(M.getRunRecordSummarizedData,n=>z(O({},n),{loading:!0,error:null})),Ee(M.getRunRecordSummarizedDataSuccess,(n,{record:i})=>z(O({},n),{summarizedRecord:i,error:null})),Ee(M.getRunRecordSummarizedDataFailure,(n,{error:i})=>z(O({},n),{error:i})));var en=li("runRecords");var tn=Ue(en,n=>n.records),nn=Ue(tn,n=>n.filenames),rn=Ue(tn,n=>n.summarizedRecord);var on={records:Ji};var an=(()=>{let i=class i{get lineClamp(){return this.maxEllipsisLines}onMouseEnter(){this.isTextOverflowing?this.tooltip.show():this.tooltip.hide()}onMouseLeave(){this.tooltip.hide()}constructor(t,r){this.tooltip=t,this.elementRef=r,this.maxEllipsisLines=2,this.display="-webkit-box",this.overflow="hidden",this.boxOrient="vertical",this.textOverflow="ellipsis",this.whiteSpace="normal",this.wordBreak="break-all"}ngAfterViewInit(){setTimeout(()=>{this.tooltip.message=this.elementRef.nativeElement.textContent.trim(),this.tooltip.position="above"},0)}get isTextOverflowing(){let t=parseInt(window.getComputedStyle(this.elementRef.nativeElement).lineHeight),r=this.maxEllipsisLines*t;return this.elementRef.nativeElement.scrollHeight>r}};i.\u0275fac=function(r){return new(r||i)(f(Ae),f(Ve))},i.\u0275dir=Ne({type:i,selectors:[["","msUseEllipsis",""]],hostVars:14,hostBindings:function(r,o){r&1&&C("mouseenter",function(){return o.onMouseEnter()})("mouseleave",function(){return o.onMouseLeave()}),r&2&&X("display",o.display)("overflow",o.overflow)("-webkit-box-orient",o.boxOrient)("-webkit-line-clamp",o.lineClamp)("text-overflow",o.textOverflow)("white-space",o.whiteSpace)("word-break",o.wordBreak)},inputs:{maxEllipsisLines:"maxEllipsisLines"},standalone:!0,features:[be([Ae])]});let n=i;return n})();var sn=(()=>{let i=class i{transform(t){return typeof t=="string"&&t&&t!="None"||typeof t=="number"&&!isNaN(t)?t.toString():"-"}};i.\u0275fac=function(r){return new(r||i)},i.\u0275pipe=je({name:"emptyTableField",type:i,pure:!0,standalone:!0});let n=i;return n})();var ln=(()=>{let i=class i{transform(t){return t&&typeof t=="object"&&Object.keys(t).length>0}};i.\u0275fac=function(r){return new(r||i)},i.\u0275pipe=je({name:"hasKeys",type:i,pure:!0,standalone:!0});let n=i;return n})();var V=function(n){return n.ADD="add",n.EDIT="edit",n.VIEW="view",n}(V||{});var Ct=(()=>{let i=class i{constructor(t){this.store=t,this.filenames$=this.store.select(nn),this.summarizedRecord$=this.store.select(rn)}dispatch(t){this.store.dispatch(t)}};i.\u0275fac=function(r){return new(r||i)(H(si))},i.\u0275prov=U({token:i,factory:i.\u0275fac});let n=i;return n})();var L=(()=>{let i=class i{get algorithmType(){return this._algorithmType.value}get algorithmType$(){return this._algorithmType.asObservable()}set algorithmType(t){this._recordsMap.set(this._algorithmType.value,this._records.value),this._algorithmType.next(t);let r=this._recordsMap.get(t)||[];this._records.next(r)}get records(){return this._records.value}get records$(){return this._records.asObservable()}addRecord(t){this.stopTooltips();let o=[...this._records.value,t];this._records.next(o),this._recordsMap.set(this._algorithmType.value,o)}updateRecord(t,r){this.stopTooltips();let o=this._records.value;if(t>=0&&t=0&&th!==t);this._records.next(o),this._recordsMap.set(this._algorithmType.value,o)}}stopTooltips(){this.chartToolsGlobalSignalsService.toggleTooltips=!1,this.chartToolsGlobalSignalsService.toggleZoom=!1}constructor(t){this.chartToolsGlobalSignalsService=t,this._recordsMap=new Map,this._records=new wt([]),this._algorithmType=new wt(I.PRUNING)}};i.\u0275fac=function(r){return new(r||i)(H(Oe))},i.\u0275prov=U({token:i,factory:i.\u0275fac});let n=i;return n})();var pn=(()=>{let i=class i{get parentFormGroup(){return this.controlContainer.control}get chartFormGroup(){return this.parentFormGroup.get(this.controlKey)}get borderColorControl(){return this.chartFormGroup.get(this.CHART_BODER_COLOR_CONTROL_NAME)}get backgroundColorControl(){return this.chartFormGroup.get(this.CHART_BACKGROUND_COLOR_CONTROL_NAME)}constructor(t){this.controlContainer=t,this.controlKey="",this.CHART_BODER_COLOR_CONTROL_NAME="borderColor",this.CHART_BACKGROUND_COLOR_CONTROL_NAME="backgroundColor"}ngOnInit(){}};i.\u0275fac=function(r){return new(r||i)(f(Le))},i.\u0275cmp=T({type:i,selectors:[["ms-chart-colors-form-controls"]],inputs:{controlKey:"controlKey"},features:[be([],[{provide:Le,useFactory:()=>Wt(Le,{skipSelf:!0})}])],decls:15,vars:5,consts:[[3,"formGroupName"],[1,"form-field-container"],[1,"flex","items-center"],[1,"mr-2"],["ngx-colors-trigger","",3,"formControlName"]],template:function(r,o){r&1&&(x(0,0),l(1,"div",1)(2,"mat-label"),d(3,"Chart border color"),c(),l(4,"div",2)(5,"div",3),g(6,"ngx-colors",4),c(),d(7),c()(),l(8,"div",1)(9,"mat-label"),d(10,"Chart background color"),c(),l(11,"div",2)(12,"div",3),g(13,"ngx-colors",4),c(),d(14),c()(),w()),r&2&&(p("formGroupName",o.controlKey),s(6),p("formControlName",o.CHART_BODER_COLOR_CONTROL_NAME),s(),F(" ",o.borderColorControl==null?null:o.borderColorControl.value," "),s(6),p("formControlName",o.CHART_BACKGROUND_COLOR_CONTROL_NAME),s(),F(" ",o.backgroundColorControl==null?null:o.backgroundColorControl.value," "))},dependencies:[Qi,zt,tt,ce,De,Fe,fi]});let n=i;return n})();function Jn(n,i){if(n&1&&(l(0,"mat-option",14),d(1),c()),n&2){let e=m();s(),F(" No algorithm was yet run. Please run a ",e.algorithmTypeLabel," algorithm. ")}}function er(n,i){if(n&1&&(l(0,"mat-option",16),d(1),c()),n&2){let e=i.$implicit;p("value",e.name)("disabled",e.disabled),s(),F(" ",e.name," ")}}function tr(n,i){if(n&1&&(x(0),u(1,er,2,3,"mat-option",15),w()),n&2){let e=m();s(),p("ngForOf",e.files)}}function ir(n,i){n&1&&(l(0,"div")(1,"div",17),g(2,"mat-spinner",18),c()())}function nr(n,i){if(n&1&&(x(0),d(1),b(2,"readableDuration"),w()),n&2){let e=m().$implicit;s(),A(S(2,1,e.value))}}function rr(n,i){if(n&1&&(x(0),d(1),w()),n&2){let e=m().$implicit;s(),A(e.value)}}function or(n,i){n&1&&(l(0,"div",33),g(1,"mat-divider"),c())}function ar(n,i){if(n&1&&(l(0,"div",25)(1,"div",26)(2,"div",27),d(3),b(4,"parametersLabel"),c(),l(5,"div",28),x(6,29),u(7,nr,3,3,"ng-container",30)(8,rr,2,1,"ng-container",31),w(),c()(),u(9,or,2,0,"div",32),c()),n&2){let e=i.$implicit,t=i.last;s(3),F("",S(4,4,e.key),":"),s(3),p("ngSwitch",e.key),s(),p("ngSwitchCase","duration_seconds"),s(2),p("ngIf",!t)}}function sr(n,i){if(n&1&&(x(0),u(1,ar,10,6,"div",24),w()),n&2){let e=i.ngIf;s(),p("ngForOf",e)}}function lr(n,i){n&1&&(l(0,"div",34),d(1,"No data available"),c())}function cr(n,i){if(n&1&&(x(0),d(1),b(2,"adaptiveFileSize"),w()),n&2){let e=m().$implicit;s(),A(S(2,1,e.value))}}function pr(n,i){if(n&1&&(x(0),d(1),b(2,"date"),w()),n&2){let e=m().$implicit;s(),A(Jt(2,1,e.value,"medium"))}}function mr(n,i){if(n&1&&(x(0),d(1),b(2,"readableDuration"),w()),n&2){let e=m().$implicit;s(),A(S(2,1,e.value))}}function dr(n,i){if(n&1&&(x(0),d(1),w()),n&2){let e=m().$implicit;s(),A(e.value)}}function hr(n,i){n&1&&(l(0,"div",33),g(1,"mat-divider"),c())}function ur(n,i){if(n&1&&(l(0,"div",25)(1,"div",26)(2,"div",27),d(3),b(4,"parametersLabel"),c(),l(5,"div",28),x(6,29),u(7,cr,3,3,"ng-container",30)(8,pr,3,4,"ng-container",30)(9,mr,3,3,"ng-container",30)(10,dr,2,1,"ng-container",31),w(),c()(),u(11,hr,2,0,"div",32),c()),n&2){let e=i.$implicit,t=i.last;s(3),F("",S(4,6,e.key),":"),s(3),p("ngSwitch",e.key),s(),p("ngSwitchCase","file_size_bytes"),s(),p("ngSwitchCase","creation_date"),s(),p("ngSwitchCase","training_duration_seconds"),s(2),p("ngIf",!t)}}function gr(n,i){if(n&1&&(x(0),u(1,ur,12,8,"div",24),b(2,"keyvalue"),w()),n&2){let e=m(3);s(),p("ngForOf",S(2,1,e.summarizedRecord==null?null:e.summarizedRecord.modelTrainingDetails))}}function fr(n,i){n&1&&(l(0,"div",34),d(1,"No data available"),c())}function Cr(n,i){n&1&&(l(0,"div",33),g(1,"mat-divider"),c())}function _r(n,i){if(n&1&&(l(0,"div",25)(1,"div",26)(2,"div",27),d(3),b(4,"parametersLabel"),c(),l(5,"div",28),d(6),c()(),u(7,Cr,2,0,"div",32),c()),n&2){let e=i.$implicit,t=i.last;s(3),F("",S(4,3,e.key),":"),s(3),A(e.value),s(),p("ngIf",!t)}}function vr(n,i){if(n&1&&(x(0),u(1,_r,8,5,"div",24),w()),n&2){let e=i.ngIf;s(),p("ngForOf",e)}}function xr(n,i){n&1&&(l(0,"div",34),d(1,"No data available"),c())}function wr(n,i){if(n&1&&(x(0),g(1,"ms-chart-colors-form-controls",35)(2,"ms-line-chart",36),w()),n&2){let e=m(3);s(2),p("data",e.lastRunAccuracyTestingChartData)("settings",e.testingAccuracyChartDisplaySettings)}}function yr(n,i){n&1&&(l(0,"div",34),d(1,"No data available"),c())}function br(n,i){if(n&1){let e=E();x(0),g(1,"mat-divider"),l(2,"div",19)(3,"mat-label"),d(4,"Set run name"),c(),l(5,"mat-form-field",9),g(6,"input",20),c()(),l(7,"mat-accordion",21)(8,"mat-expansion-panel",22),le("expandedChange",function(r){_(e);let o=m(2);return se(o.panelStates.statistics,r)||(o.panelStates.statistics=r),v(r)}),l(9,"mat-expansion-panel-header")(10,"mat-panel-title",23),d(11," Statistics "),c()(),u(12,sr,2,1,"ng-container",13),b(13,"keyvalue"),u(14,lr,2,0,"ng-template",null,2,K),c(),l(16,"mat-expansion-panel",22),le("expandedChange",function(r){_(e);let o=m(2);return se(o.panelStates.modelTrainingDetails,r)||(o.panelStates.modelTrainingDetails=r),v(r)}),l(17,"mat-expansion-panel-header")(18,"mat-panel-title",23),d(19," Model training details "),c()(),u(20,gr,3,3,"ng-container",13),b(21,"hasKeys"),u(22,fr,2,0,"ng-template",null,3,K),c(),l(24,"mat-expansion-panel",22),le("expandedChange",function(r){_(e);let o=m(2);return se(o.panelStates.parameters,r)||(o.panelStates.parameters=r),v(r)}),l(25,"mat-expansion-panel-header")(26,"mat-panel-title",23),d(27," Parameters "),c()(),u(28,vr,2,1,"ng-container",13),b(29,"keyvalue"),u(30,xr,2,0,"ng-template",null,4,K),c(),l(32,"mat-expansion-panel",22),le("expandedChange",function(r){_(e);let o=m(2);return se(o.panelStates.accuracy,r)||(o.panelStates.accuracy=r),v(r)}),l(33,"mat-expansion-panel-header")(34,"mat-panel-title",23),d(35," Last Accuracy Test Run "),c()(),u(36,wr,3,2,"ng-container",13),b(37,"keyvalue"),u(38,yr,2,0,"ng-template",null,5,K),c()(),w()}if(n&2){let e=j(15),t=j(23),r=j(31),o=j(39),a=m(2);s(8),ae("expanded",a.panelStates.statistics),s(4),p("ngIf",S(13,12,a.summarizedRecord==null?null:a.summarizedRecord.statistics))("ngIfElse",e),s(4),ae("expanded",a.panelStates.modelTrainingDetails),s(4),p("ngIf",S(21,14,a.summarizedRecord==null?null:a.summarizedRecord.modelTrainingDetails))("ngIfElse",t),s(4),ae("expanded",a.panelStates.parameters),s(4),p("ngIf",S(29,16,a.summarizedRecord==null?null:a.summarizedRecord.parameters))("ngIfElse",r),s(4),ae("expanded",a.panelStates.accuracy),s(4),p("ngIf",S(37,18,a.summarizedRecord==null?null:a.summarizedRecord.parameters))("ngIfElse",o)}}function Sr(n,i){if(n&1&&u(0,br,40,20,"ng-container",13),n&2){let e=m(),t=j(14);p("ngIf",!!e.summarizedRecord)("ngIfElse",t)}}function Er(n,i){n&1&&g(0,"ms-empty-state",37)}var Z,_e=(Z=class{get chartFormGroup(){return this.form.get("chart")}get selectRunFormControl(){return this.form.get("selectRun")}get runNameFormControl(){return this.form.get("runName")}constructor(i,e,t,r,o,a){this.drawerRef=i,this.drawerConfig=e,this.fb=t,this.recordsFacadeService=r,this.recordsDataService=o,this.customAPILoadingService=a,this.panelStates={statistics:!0,parameters:!0,accuracy:!0,modelTrainingDetails:!0},this.form=new qe({}),this.algorithmTypeLabel="",this.files=[],this.isSummarizedRecordLoading$=this.customAPILoadingService.getLoadingObservableForKey(Xi.RUN_RECORDS_SUMMARIZED_DATA),this.testingAccuracyChartDisplaySettings={},this.lastRunAccuracyTestingChartData=[]}ngAfterViewInit(){this.restorePanelStates()}ngOnInit(){switch(this.initForm(),this.initChartDisplaySettings(),this.listenToChartColorChanges(),this.algorithmTypeLabel=this.getAlgorithmTypeString(),this.drawerConfig.actionType){case V.ADD:{this.loadData(),this.configureAddTypeActions();break}case V.EDIT:case V.VIEW:{this.configureEditOrViewTypeActions();break}}}getAlgorithmTypeString(){switch(this.recordsDataService.algorithmType){case I.PRUNING:return"pruning";case I.QUANTIZATION:return"quantization";case I.MACHINE_UNLEARNING:return"machine unlearning";default:return"specified"}}initChartDisplaySettings(){let i=0;switch(this.recordsDataService.algorithmType){case I.PRUNING:{i=100;break}case I.QUANTIZATION:{i=79;break}case I.MACHINE_UNLEARNING:{i=36;break}default:break}this.testingAccuracyChartDisplaySettings={yAxisMinimumValue:0,yAxisTickInterval:20,chartDataStructure:pt.SINGLE_PHASE_X_AXIS,xAxisDataPointsCount:i,yAxisMaximumValue:100,isXAxisVisible:!0,isXAxisDynamic:!0,areTooltipsEnabled:!0,xAxisInitialLabelValue:1,xAxisLabelPrefix:"Step:",datasetLabelPrefix:"Test:",isChartWithCustomColorSettings:!0,customChartColors:{datasetColors:[{backgroundColor:"rgba(241, 196, 15, 0.2)",borderColor:"#f1c40f"}]}}}listenToChartColorChanges(){this.chartFormGroup.valueChanges.pipe(Xt(300),N(this)).subscribe(i=>{if(Me(i))return;let{backgroundColor:e,borderColor:t}=i;this.testingAccuracyChartDisplaySettings=z(O({},this.testingAccuracyChartDisplaySettings),{customChartColors:{datasetColors:[{backgroundColor:e,borderColor:t}]}}),this.lastRunAccuracyTestingChartData=[...this.lastRunAccuracyTestingChartData]})}configureEditOrViewTypeActions(){let{recordName:i,recordFilename:e,record:t,chartColors:r}=this.drawerConfig.data;this.drawerConfig.actionType===V.VIEW?this.form.disable():this.drawerConfig.actionType===V.EDIT&&this.selectRunFormControl.disable(),this.files=[{name:e,disabled:!0}],this.form.patchValue({selectRun:e,runName:i,chart:{borderColor:r.borderColor,backgroundColor:r.backgroundColor}}),this.summarizedRecord=t,this.lastRunAccuracyTestingChartData=this.configureChartDataset(t),this.testingAccuracyChartDisplaySettings=z(O({},this.testingAccuracyChartDisplaySettings),{hasCustomDatasetsLabels:!0,customDatasetsLabels:[i],customChartColors:{datasetColors:[{backgroundColor:r.backgroundColor||"rgba(241, 196, 15, 0.2)",borderColor:r.borderColor||"#f1c40f"}]}})}configureAddTypeActions(){this.listenToSelectRunFormValueChanges(),this.listenToSummarizedRecordChanges()}listenToSelectRunFormValueChanges(){this.selectRunFormControl.valueChanges.pipe(N(this),Gt(i=>!rt(i))).subscribe(i=>{this.runNameFormControl.reset(),this.recordsFacadeService.dispatch(M.getRunRecordSummarizedData({algorithmType:this.recordsDataService.algorithmType,filename:i}))})}listenToSummarizedRecordChanges(){this.recordsFacadeService.summarizedRecord$.pipe(N(this),Et(1)).subscribe(i=>{this.summarizedRecord=i,this.lastRunAccuracyTestingChartData=this.configureChartDataset(i);let e=this.summarizedRecord?.statistics.algorithm_key,t=this.summarizedRecord?.parameters.arch;!rt(e)&&!rt(t)&&this.runNameFormControl.setValue(`${e}_${t}`),this.savePanelStates(),this.restorePanelStates()})}configureChartDataset(i){return[{datasetIndex:0,values:i.lastRunTestingAccuracyData||[]}]}loadData(){this.recordsFacadeService.dispatch(M.getRunRecordsFilenames({algorithmType:this.recordsDataService.algorithmType})),this.recordsFacadeService.filenames$.pipe(Et(1),xe(1)).subscribe(i=>{let e=new Set(this.recordsDataService.records.map(t=>t.recordFilename));this.files=i.map(t=>({name:t,disabled:e.has(t)}))})}initForm(){let i=this.getDefaultChartColors();this.form=this.fb.group({selectRun:[null,fe.required],runName:[null,fe.required],chart:this.fb.group({borderColor:[i.borderColor,fe.required],backgroundColor:[i.backgroundColor,fe.required]})})}getDefaultChartColors(){let i=Math.max(this.recordsDataService.records.length,0),e=Hi[ct.YELLOW].datasetColors[i];return{borderColor:e.borderColor,backgroundColor:e.backgroundColor}}save(i){if(i!==de.SAVE)return;let{backgroundColor:e,borderColor:t}=this.form.get("chart")?.getRawValue();this.drawerRef.close({result:{recordName:this.runNameFormControl.value,recordFilename:this.selectRunFormControl.value,record:this.summarizedRecord,chartColors:{backgroundColor:e,borderColor:t}},status:i})}close(){this.drawerRef.close()}savePanelStates(){this.panels.forEach((i,e)=>{this.panelStates[e]=i.expanded})}restorePanelStates(){this.panels.forEach((i,e)=>{this.panelStates[e]!==void 0&&(i.expanded=this.panelStates[e])})}},Z.\u0275fac=function(e){return new(e||Z)(f(zi),f(Li),f(et),f(Ct),f(L),f(Yi))},Z.\u0275cmp=T({type:Z,selectors:[["ms-run-drawer-actions"]],viewQuery:function(e,t){if(e&1&&ne(me,5),e&2){let r;re(r=oe())&&(t.panels=r)}},decls:15,vars:8,consts:[["content",""],["noData",""],["noStatisticsData",""],["noModelTrainingDetailsData",""],["noParametersData",""],["noAccuracyData",""],[3,"actionEvent","isSaveDisabled"],[3,"formGroup"],[1,"form-field-container"],["appearance","outline"],["formControlName","selectRun","placeholder","Select a run record"],["disabled","",4,"ngIf"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["disabled",""],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],[1,"spinner-wrapper","mt-4"],["diameter","80"],[1,"form-field-container","mt-4"],["matInput","","formControlName","runName","placeholder","Set run name"],["multi",""],[3,"expandedChange","expanded"],[1,"paragraph-bold-p3-small-bold"],["class","key-value-container single",4,"ngFor","ngForOf"],[1,"key-value-container","single"],[1,"key-value-pair","space-between"],[1,"key-value-key"],[1,"key-value-value"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","pt-2",4,"ngIf"],[1,"pt-2"],[1,"no-data-container"],["controlKey","chart"],[3,"data","settings"],["title","Awaiting Run Record Selection","message","Select a run record from the dropdown to view details and statistics."]],template:function(e,t){if(e&1){let r=E();l(0,"ms-drawer",6),C("actionEvent",function(a){return _(r),v(t.save(a))}),l(1,"form",7)(2,"div",8)(3,"mat-label"),d(4,"Select run record"),c(),l(5,"mat-form-field",9)(6,"mat-select",10),u(7,Jn,2,1,"mat-option",11)(8,tr,2,1,"ng-container",12),c()()(),u(9,ir,3,0,"div",13),b(10,"async"),u(11,Sr,1,2,"ng-template",null,0,K),c()(),u(13,Er,1,0,"ng-template",null,1,K)}if(e&2){let r=j(12);p("isSaveDisabled",t.form.invalid),s(),p("formGroup",t.form),s(6),p("ngIf",t.files.length===0),s(),p("ngIf",t.files.length>0),s(),p("ngIf",S(10,6,t.isSummarizedRecordLoading$))("ngIfElse",r)}},dependencies:[Y,Q,ti,ii,ni,st,Qe,xi,it,tt,ot,Ke,yi,Si,me,Re,ke,Ze,ui,ce,De,Je,Fe,Ie,lt,pn,Se,ri,oi,Gi,mt,ji,ln],styles:[".spinner-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}"]}),Z);_e=ie([pe()],_e);function Fr(n,i){if(n&1){let e=E();l(0,"mat-card",3)(1,"div",4)(2,"div",5),d(3),c(),l(4,"div",6)(5,"button",7),C("click",function(){let r=_(e).$implicit,o=m(2);return v(o.viewRecord(r))}),g(6,"mat-icon",8),c(),l(7,"button",7),C("click",function(){let r=_(e),o=r.$implicit,a=r.index,h=m(2);return v(h.editRecord(a,o))}),g(8,"mat-icon",9),c(),l(9,"button",10),C("click",function(){let r=_(e).index,o=m(2);return v(o.removeRecord(r))}),l(10,"mat-icon",11),d(11,"delete"),c()()()()()}if(n&2){let e=i.$implicit;s(3),A(e.recordName)}}function Tr(n,i){if(n&1&&(x(0),u(1,Fr,12,1,"mat-card",2),w()),n&2){let e=i.ngIf;s(),p("ngForOf",e)}}var un=(()=>{let i=class i{constructor(t,r){this.recordsDataService=t,this.drawerService=r}removeRecord(t){this.recordsDataService.removeRecord(t)}viewRecord(t){this.drawerService.open(_e,{title:"View Run",showSaveButton:!1,showCloseButton:!0,closeButtonLabel:"Close",actionType:V.VIEW,data:t})}editRecord(t,r){this.drawerService.open(_e,{title:"Edit Run",saveButtonLabel:"Update",showCloseButton:!0,closeButtonLabel:"Close",actionType:V.EDIT,data:r}).afterClosed().pipe(xe(1)).subscribe(a=>{let{status:h}=a;if(h===de.DISMISS||h===de.CLOSE)return;let{result:y}=a;Me(y)||this.recordsDataService.updateRecord(t,y)})}};i.\u0275fac=function(r){return new(r||i)(f(L),f(Pe))},i.\u0275cmp=T({type:i,selectors:[["ms-algorithm-comparison-list"]],decls:3,vars:3,consts:[[1,"items-wrapper"],[4,"ngIf"],["class","ms-card comparison-item",4,"ngFor","ngForOf"],[1,"ms-card","comparison-item"],[1,"item-wrapper"],["msUseEllipsis",""],[1,"record-summary-buttons-wrapper"],["mat-icon-button","","color","primary",3,"click"],["fontSet","ms","fontIcon","icon-Eye",1,"mat-primary"],["fontSet","ms","fontIcon","icon-PencilSimple",1,"mat-primary"],["mat-icon-button","","color","error",3,"click"],[1,"mat-error"]],template:function(r,o){r&1&&(l(0,"div",0),u(1,Tr,2,1,"ng-container",1),b(2,"async"),c()),r&2&&(s(),p("ngIf",S(2,1,o.recordsDataService.records$)))},dependencies:[Y,Q,_i,Te,bi,an,Se],styles:[".items-wrapper[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));grid-gap:20px;padding:20px 0}.items-wrapper[_ngcontent-%COMP%] .ms-card[_ngcontent-%COMP%]:hover{box-shadow:0 8px 16px #0003}.items-wrapper[_ngcontent-%COMP%] .comparison-item[_ngcontent-%COMP%] .item-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.items-wrapper[_ngcontent-%COMP%] .comparison-item[_ngcontent-%COMP%] .item-wrapper[_ngcontent-%COMP%] .record-summary-buttons-wrapper[_ngcontent-%COMP%]{display:flex}"]});let n=i;return n})();var J,_t=(J=class{constructor(i,e){this.recordsDataService=i,this.chartToolsGlobalSignalsService=e,this.testingAccuracyChartDisplaySettings={yAxisMinimumValue:0,yAxisMaximumValue:100,yAxisTickInterval:20,chartDataStructure:pt.SINGLE_PHASE_X_AXIS,datasetColorSettingsKey:ct.YELLOW,isXAxisVisible:!0,xAxisLabelPrefix:"Step:",zoomRangeLimits:{min:0,max:100},isXAxisDynamic:!0,hasCustomDatasetsLabels:!0},this.lastRunsAccuracyTestingChartData=[],this.enableTooltips=!1,this.enableZoom=!1}ngOnInit(){this.listenToRecordsChanges(),this.subscribeToChartToolsSignals()}listenToRecordsChanges(){this.recordsDataService.records$.pipe(N(this)).subscribe(i=>{Bt(i)||(this.lastRunsAccuracyTestingChartData=this.configureChartDatasets(i),this.testingAccuracyChartDisplaySettings=z(O({},this.testingAccuracyChartDisplaySettings),{customDatasetsLabels:i.map(e=>e.recordName),xAxisDataPointsCount:i[0].record.lastRunTestingAccuracyData.length,isChartWithCustomColorSettings:!0,customChartColors:{datasetColors:i.map(e=>e.chartColors)}}))})}subscribeToChartToolsSignals(){this.chartToolsGlobalSignalsService.toggleTooltips$.pipe(N(this)).subscribe(i=>{this.enableTooltips=i}),this.chartToolsGlobalSignalsService.toggleZoom$.pipe(N(this)).subscribe(i=>{this.enableZoom=i})}configureChartDatasets(i){let e=[];return i.forEach((t,r)=>{let{record:o}=t;e.push({datasetIndex:r,values:o.lastRunTestingAccuracyData||[]})}),e}toggleTooltip(i){this.chartToolsGlobalSignalsService.toggleTooltips=i.checked}toggleZoom(i){this.chartToolsGlobalSignalsService.toggleZoom=i.checked}},J.\u0275fac=function(e){return new(e||J)(f(L),f(Oe))},J.\u0275cmp=T({type:J,selectors:[["ms-algorithm-comparison-chart"]],decls:14,vars:4,consts:[["expanded","true"],[1,"paragraph-bold-p3-small-bold"],[1,"mt-2","flex"],["color","primary",3,"ngModelChange","change","ngModel"],[1,"flex"],["color","primary",1,"ml-2",3,"ngModelChange","change","ngModel"],[1,"ml-1"],["fontSet","ms","fontIcon","icon-Info","matTooltip","Use mouse wheel or touchpad pinch to zoom in/out. Drag to select an area for specific zoom, or use touchpad gestures to navigate."],[3,"data","settings"]],template:function(e,t){e&1&&(l(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title",1),d(3," Last Accuracy Test Run "),c()(),l(4,"div",2)(5,"div")(6,"mat-slide-toggle",3),le("ngModelChange",function(o){return se(t.enableTooltips,o)||(t.enableTooltips=o),o}),C("change",function(o){return t.toggleTooltip(o)}),d(7," Enable tooltips "),c()(),l(8,"div",4)(9,"mat-slide-toggle",5),le("ngModelChange",function(o){return se(t.enableZoom,o)||(t.enableZoom=o),o}),C("change",function(o){return t.toggleZoom(o)}),d(10," Enable zoom "),c(),l(11,"div",6),g(12,"mat-icon",7),c()()(),g(13,"ms-line-chart",8),c()),e&2&&(s(6),ae("ngModel",t.enableTooltips),s(3),ae("ngModel",t.enableZoom),s(4),p("data",t.lastRunsAccuracyTestingChartData)("settings",t.testingAccuracyChartDisplaySettings))},dependencies:[Te,Ae,Ei,me,Re,ke,ce,gi,Ie]}),J);_t=ie([pe()],_t);function Rr(n,i){n&1&&(l(0,"th",10),d(1,"Record Name"),c())}function kr(n,i){if(n&1&&(l(0,"td",11),d(1),c()),n&2){let e=i.$implicit;s(),A(e.recordName)}}function Pr(n,i){if(n&1&&(l(0,"th",10),d(1),b(2,"parametersLabel"),c()),n&2){let e=m().$implicit;s(),F(" ",S(2,1,e)," ")}}function Or(n,i){if(n&1&&(l(0,"td",11),d(1),b(2,"emptyTableField"),c()),n&2){let e=i.$implicit,t=m().$implicit;s(),F(" ",S(2,1,e[t])," ")}}function Ir(n,i){if(n&1&&(x(0,12),u(1,Pr,3,3,"th",5)(2,Or,3,3,"td",6),w()),n&2){let e=i.$implicit;p("matColumnDef",e)}}function Br(n,i){n&1&&g(0,"tr",13)}function Nr(n,i){n&1&&g(0,"tr",14)}var ee,vt=(ee=class{constructor(i){this.recordsDataService=i,this.dataSource=new Ni,this.displayedColumns=[]}ngOnInit(){this.recordsDataService.records$.pipe(N(this)).subscribe(i=>{this.updateDisplayedColumns(i),this.updateDataSource(i)})}ngAfterViewInit(){Me(this.sort)||setTimeout(()=>{this.dataSource.sort=this.sort},1200)}updateDisplayedColumns(i){let e=new Set;i.forEach(t=>{Object.keys(t.record.parameters).forEach(r=>{r!=="save_dir"&&r!=="data"&&e.add(r)})}),this.displayedColumns=["recordName",...Array.from(e)]}updateDataSource(i){let e=i.map(t=>{let r=t.record.parameters;return O({recordName:t.recordName},r)});this.dataSource.data=e}},ee.\u0275fac=function(e){return new(e||ee)(f(L))},ee.\u0275cmp=T({type:ee,selectors:[["ms-algorithm-comparison-table"]],viewQuery:function(e,t){if(e&1&&ne(at,5),e&2){let r;re(r=oe())&&(t.sort=r.first)}},decls:12,vars:4,consts:[["expanded","true"],[1,"paragraph-bold-p3-small-bold"],[1,"table-container"],["mat-table","","matSort","",1,"mat-table",3,"dataSource"],["matColumnDef","recordName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],[3,"matColumnDef",4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","hover-highlight",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"matColumnDef"],["mat-header-row",""],["mat-row","",1,"hover-highlight"]],template:function(e,t){e&1&&(l(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title",1),d(3," Parameters "),c()(),l(4,"div",2)(5,"table",3),x(6,4),u(7,Rr,2,0,"th",5)(8,kr,2,1,"td",6),w(),u(9,Ir,3,1,"ng-container",7)(10,Br,1,0,"tr",8)(11,Nr,1,0,"tr",9),c()()()),e&2&&(s(5),p("dataSource",t.dataSource),s(4),p("ngForOf",t.displayedColumns.slice(1)),s(),p("matHeaderRowDef",t.displayedColumns),s(),p("matRowDefColumns",t.displayedColumns))},dependencies:[Y,Fi,Mi,Pi,Ai,Ti,Oi,Ri,ki,Ii,Bi,at,Di,me,Re,ke,mt,sn],styles:[".table-container[_ngcontent-%COMP%]{overflow:auto}.hover-highlight[_ngcontent-%COMP%]:hover{background-color:var(--backgrounds-80)}.mat-column-disable_8bit_head_stem[_ngcontent-%COMP%]{min-width:200px}.mat-column-workers[_ngcontent-%COMP%], .mat-column-n_bits_w[_ngcontent-%COMP%], .mat-column-channel_wise[_ngcontent-%COMP%], .mat-column-n_bits_a[_ngcontent-%COMP%]{min-width:160px}.mat-column-act_quant[_ngcontent-%COMP%]{min-width:180px}.mat-column-num_samples[_ngcontent-%COMP%], .mat-column-iters_w[_ngcontent-%COMP%]{min-width:160px}.mat-column-keep_cpu[_ngcontent-%COMP%], .mat-column-awq[_ngcontent-%COMP%]{min-width:180px}.mat-column-aaq[_ngcontent-%COMP%], .mat-column-init_wmode[_ngcontent-%COMP%], .mat-column-init_amode[_ngcontent-%COMP%]{min-width:200px}.mat-column-num_indexes_to_replace[_ngcontent-%COMP%]{min-width:185px}.mat-column-unlearn_lr[_ngcontent-%COMP%], .mat-column-alpha[_ngcontent-%COMP%], .mat-column-unlearn_epochs[_ngcontent-%COMP%], .mat-column-train_seed[_ngcontent-%COMP%], .mat-column-class_to_replace[_ngcontent-%COMP%], .mat-column-indexes_to_replace[_ngcontent-%COMP%], .mat-column-no_aug[_ngcontent-%COMP%]{min-width:200px}.mat-column-imagenet_arch[_ngcontent-%COMP%]{min-width:220px}.mat-column-num_workers[_ngcontent-%COMP%]{min-width:180px}"]}),ee);vt=ie([pe()],vt);function Lr(n,i){if(n&1&&(l(0,"mat-option",13),d(1),c()),n&2){let e=i.$implicit;p("value",e.key),s(),F(" ",e.value," ")}}function zr(n,i){n&1&&(x(0),g(1,"ms-algorithm-comparison-list"),l(2,"div",8),g(3,"mat-divider"),c(),g(4,"ms-algorithm-comparison-table"),l(5,"div",8),g(6,"mat-divider"),c(),g(7,"ms-algorithm-comparison-chart"),w())}function Hr(n,i){n&1&&(l(0,"div",14),g(1,"ms-empty-state",15),c())}var te,xt=(te=class{get algorithmTypeFormControl(){return this.form.get(this.ALGORITHM_TYPE_CONTROL_NAME)}constructor(i,e,t){this.drawerService=i,this.recordsDataService=e,this.fb=t,this.form=new qe({}),this.algorithmTypesOptions=[{key:I.QUANTIZATION,value:"Quantization"},{key:I.PRUNING,value:"Pruning"},{key:I.MACHINE_UNLEARNING,value:"Machine Unlearning"}],this.ALGORITHM_TYPE_CONTROL_NAME="algorithmType"}openAddRunDrawer(){this.drawerService.open(_e,{title:"Add Run",saveButtonLabel:"Add",showCloseButton:!0,closeButtonLabel:"Close",actionType:V.ADD}).afterClosed().pipe(xe(1)).subscribe(e=>{let{status:t}=e;if(t===de.DISMISS||t===de.CLOSE)return;let{result:r}=e;this.recordsDataService.addRecord(r)})}ngOnInit(){this.initForm(),this.listenToAlgorithmTypeChanges()}initForm(){this.form=this.fb.group({[this.ALGORITHM_TYPE_CONTROL_NAME]:[this.recordsDataService.algorithmType,fe.required]})}listenToAlgorithmTypeChanges(){this.algorithmTypeFormControl.valueChanges.pipe(N(this)).subscribe(i=>{this.recordsDataService.algorithmType=i})}trackByAlgorithmType(i,e){return e.key}},te.\u0275fac=function(e){return new(e||te)(f(Pe),f(L),f(et))},te.\u0275cmp=T({type:te,selectors:[["ms-algorithm-comparison"]],decls:19,vars:8,consts:[["noData",""],[1,"title-wrapper"],[1,"heading-primary-title","title"],[1,"ml-2",3,"formGroup"],[1,"form-field-container","w-56","mt-2"],["appearance","outline"],["placeholder","Select a run record",3,"formControlName"],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],[1,"mt-4","mb-4"],["mat-stroked-button","","color","primary",3,"click"],["fontSet","ms","fontIcon","icon-Plus"],[1,"mt-4"],[4,"ngIf","ngIfElse"],[3,"value"],[1,"no-data-wrapper"],["title","No data selected"]],template:function(e,t){if(e&1){let r=E();l(0,"div",1)(1,"p",2),d(2,"Algorithm Comparison for"),c(),l(3,"form",3)(4,"div",4)(5,"mat-form-field",5)(6,"mat-select",6),u(7,Lr,2,2,"mat-option",7),c()()()()(),l(8,"div",8),g(9,"mat-divider"),c(),l(10,"button",9),C("click",function(){return _(r),v(t.openAddRunDrawer())}),g(11,"mat-icon",10),d(12,` Add run -`),c(),l(13,"div",11),g(14,"mat-divider"),c(),u(15,zr,8,0,"ng-container",12),b(16,"async"),u(17,Hr,2,0,"ng-template",null,0,K)}if(e&2){let r=j(18);s(3),p("formGroup",t.form),s(3),p("formControlName",t.ALGORITHM_TYPE_CONTROL_NAME),s(),p("ngForOf",t.algorithmTypesOptions)("ngForTrackBy",t.trackByAlgorithmType),s(8),p("ngIf",S(16,6,t.recordsDataService.records$).length>0)("ngIfElse",r)}},dependencies:[Y,Q,Qe,Ci,Te,it,ot,Ke,Ze,ce,De,Je,Fe,lt,un,_t,vt,Se],styles:[".no-data-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.title-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center}"]}),te);xt=ie([pe()],xt);var jr=[{path:"",component:xt}],gn=(()=>{let i=class i{};i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=ye({type:i}),i.\u0275inj=we({imports:[Rt.forChild(jr),Rt]});let n=i;return n})();var Hs=(()=>{let i=class i{};i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=ye({type:i}),i.\u0275inj=we({providers:[Pe,Ct,L,Oe],imports:[$e,gn,st,qi,Vi,ci.forFeature("runRecords",on),di.forFeature([Zi]),Ie]});let n=i;return n})();export{Hs as AlgorithmComparisonModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-6A35GAJL.js b/frontend/server/modelsmith-build/browser/chunk-6A35GAJL.js deleted file mode 100644 index ac4e83ab..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-6A35GAJL.js +++ /dev/null @@ -1,4 +0,0 @@ -import{a as _}from"./chunk-AK2HCVXD.js";import{a as G,e as I,f as ee}from"./chunk-VN6ZKIV6.js";import"./chunk-4KWEJN4U.js";import"./chunk-NO2PD4LU.js";import{b as J}from"./chunk-MPLQ54VQ.js";import{Cc as v,Da as c,Ed as z,Gd as N,Hc as C,Md as K,Na as r,O as F,P as j,R as H,T as h,U as q,Va as y,Vb as S,Wb as Y,Xb as g,Zb as x,_b as O,be as E,ce as P,ja as d,ka as p,m as Q,pb as W,rd as V,sa as u,sd as Z,ud as $,wa as i,wd as X,xa as o,ya as f}from"./chunk-AIAH5BT5.js";var s={PRETRAINED_MODEL:"pretrained-model",PRUNING_TIME:"pruning-time",PTQ_TIME:"ptq-time",SIMILAR_ACCURACY:"similar-accuracy",HIGHER_ACCURACY:"higher-accuracy",RECOMMENDED_BASIC_PTQ:"recommended-basic-ptq",RECOMMENDED_BRECQ:"recommended-brecq",RECOMMENDED_GRASP:"recommended-grasp",RECOMMENDED_ITERATIVE:"recommended-iterative",RECOMMENDED_ITERATIVE_ONE_SHOT:"recommended-iterative-one-shot",RECOMMENDED_MINMAX:"recommended-minmax"};var he=()=>["Yes","No"],te=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.RECOMMENDED_BASIC_PTQ],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.RECOMMENDED_BRECQ],{relativeTo:this.route.parent})}goToPreviousPage(){this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-higher-accuracy"]],decls:14,vars:3,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you need relatively higher accuracy?"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Post-training quantization "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(6," Short PTQ time "),o()(),i(7,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(8,"div",4)(9,"button",5),c("click",function(){return t.goToPreviousPage()}),f(10,"mat-icon",6),r(11," Previous "),o(),i(12,"button",7),c("click",function(){return t.handleSelection()}),r(13,"Next"),o()()),n&2&&(d(7),u("options",y(2,he)),d(5),u("disabled",!t.selectedOption))},dependencies:[v,C,E,P,_]});let l=e;return l})();var _e=()=>["Yes","No"],ie=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.PRUNING_TIME],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-pretrained-model"]],decls:6,vars:3,consts:[[1,"heading-primary-title"],[3,"selectedOption","options"],[1,"mt-4"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you have a pre-trained model?"),o(),i(2,"ms-card-selector",1),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(3,"div",2)(4,"button",3),c("click",function(){return t.handleSelection()}),r(5,"Next"),o()()),n&2&&(d(2),u("options",y(2,_e)),d(2),u("disabled",!t.selectedOption))},dependencies:[v,_]});let l=e;return l})();var fe=()=>["Yes","No"],oe=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.wizardSteps=s,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.RECOMMENDED_ITERATIVE],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.SIMILAR_ACCURACY],{relativeTo:this.route.parent})}goToPreviousPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-pruning-time"]],decls:14,vars:3,consts:[[1,"heading-primary-title"],[1,"paragraph-regular-p3-default","text-hint"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you tolerate long pruning time?"),o(),i(2,"p",1),r(3,` The model pruning phase may require a similar or even longer duration compared to the model training period. -`),o(),i(4,"mat-chip-set",2)(5,"mat-chip",3),c("click",function(){return t.goToPreviousPage()}),r(6," Pruning "),o()(),i(7,"ms-card-selector",4),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(8,"div",5)(9,"button",6),c("click",function(){return t.goToPreviousPage()}),f(10,"mat-icon",7),r(11," Previous "),o(),i(12,"button",8),c("click",function(){return t.handleSelection()}),r(13,"Next"),o()()),n&2&&(d(7),u("options",y(2,fe)),d(5),u("disabled",!t.selectedOption))},dependencies:[v,C,E,P,_]});let l=e;return l})();var Se=()=>["Yes","No"],ne=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.RECOMMENDED_MINMAX],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.HIGHER_ACCURACY],{relativeTo:this.route.parent})}goToPreviousPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-ptq-time"]],decls:14,vars:3,consts:[[1,"heading-primary-title"],[1,"paragraph-regular-p3-default","text-hint"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you tolerate long PTQ time?"),o(),i(2,"p",1),r(3,` Our system supports processing times ranging from minutes (short) to several hours (long), ensuring consistent efficiency and reliability for tasks of any duration. -`),o(),i(4,"mat-chip-set",2)(5,"mat-chip",3),c("click",function(){return t.goToPreviousPage()}),r(6," Post-training quantization "),o()(),i(7,"ms-card-selector",4),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(8,"div",5)(9,"button",6),c("click",function(){return t.goToPreviousPage()}),f(10,"mat-icon",7),r(11," Previous "),o(),i(12,"button",8),c("click",function(){return t.handleSelection()}),r(13,"Next"),o()()),n&2&&(d(7),u("options",y(2,Se)),d(5),u("disabled",!t.selectedOption))},dependencies:[v,C,E,P,_]});let l=e;return l})();var D,R=(D=class{constructor(e){this.scriptFacadeService=e,this.isScriptActive=!1,this.listenToScriptStateChanges()}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(Z(this)).subscribe(e=>{this.isScriptActive=X(e)})}ctaCallScript(e){if(!e)return;let L=ee(e);L&&this.scriptFacadeService.dispatch($.callScript({configs:{alg:L}}))}},D.\u0275fac=function(L){return new(L||D)(H(K))},D.\u0275prov=F({token:D,factory:D.\u0275fac}),D);R=Q([V()],R);var re=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=I([z.BPTQ])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.HIGHER_ACCURACY],{relativeTo:this.route.parent})}goToPTQPage(){this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${O.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(R))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-basic-ptq"]],decls:18,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Post-training quantization "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPTQPage()}),r(6," Short PTQ time "),o(),i(7,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(8," High Accuracy "),o()(),i(9,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(10,"div",4)(11,"button",5),c("click",function(){return t.goToPreviousPage()}),f(12,"mat-icon",6),r(13," Previous "),o(),i(14,"button",7),c("click",function(){return t.handleSelection()}),r(15," Run "),o(),i(16,"button",8),c("click",function(){return t.goToChartPage()}),r(17,"View Chart"),o()()),n&2&&(d(9),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[v,C,E,P,_]});let l=e;return l})();var ce=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=I([z.BRECQ])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.HIGHER_ACCURACY],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToPTQPage(){this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${O.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(R))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-brecq"]],decls:18,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Post-training quantization "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPTQPage()}),r(6," Short PTQ time "),o(),i(7,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(8," Low Accuracy "),o()(),i(9,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(10,"div",4)(11,"button",5),c("click",function(){return t.goToPreviousPage()}),f(12,"mat-icon",6),r(13," Previous "),o(),i(14,"button",7),c("click",function(){return t.handleSelection()}),r(15," Run "),o(),i(16,"button",8),c("click",function(){return t.goToChartPage()}),r(17,"View Chart"),o()()),n&2&&(d(9),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[v,C,E,P,_]});let l=e;return l})();var ae=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=I([N.IPG,N.IPR,N.IPM])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.SIMILAR_ACCURACY],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToPruningTimePage(){this.router.navigate([s.PRUNING_TIME],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${O.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(R))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-grasp"]],decls:18,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Pruning "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPruningTimePage()}),r(6," Short pruning time "),o(),i(7,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(8," Init pruning "),o()(),i(9,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(10,"div",4)(11,"button",5),c("click",function(){return t.goToPreviousPage()}),f(12,"mat-icon",6),r(13," Previous "),o(),i(14,"button",7),c("click",function(){return t.handleSelection()}),r(15," Run "),o(),i(16,"button",8),c("click",function(){return t.goToChartPage()}),r(17,"View Chart"),o()()),n&2&&(d(9),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[v,C,E,P,_]});let l=e;return l})();var me=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=I([N.IMP,N.OMP])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.SIMILAR_ACCURACY],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToPruningTimePage(){this.router.navigate([s.PRUNING_TIME],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${O.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(R))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-iterative-one-shot"]],decls:18,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Pruning "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPruningTimePage()}),r(6," Long pruning time "),o(),i(7,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(8," Higher accuracy "),o()(),i(9,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(10,"div",4)(11,"button",5),c("click",function(){return t.goToPreviousPage()}),f(12,"mat-icon",6),r(13," Previous "),o(),i(14,"button",7),c("click",function(){return t.handleSelection()}),r(15," Run "),o(),i(16,"button",8),c("click",function(){return t.goToChartPage()}),r(17,"View Chart"),o()()),n&2&&(d(9),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[v,C,E,P,_]});let l=e;return l})();var se=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=I([N.IMP])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.PRUNING_TIME],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${O.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(R))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-iterative"]],decls:16,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Pruning "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(6," Long pruning time "),o()(),i(7,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(8,"div",4)(9,"button",5),c("click",function(){return t.goToPreviousPage()}),f(10,"mat-icon",6),r(11," Previous "),o(),i(12,"button",7),c("click",function(){return t.handleSelection()}),r(13," Run "),o(),i(14,"button",8),c("click",function(){return t.goToChartPage()}),r(15,"View Chart"),o()()),n&2&&(d(7),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[v,C,E,P,_]});let l=e;return l})();var le=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=I([z.MINMAXPTQ])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${O.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(R))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-minmax"]],decls:16,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Post-training quantization "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(6," Long PTQ time "),o()(),i(7,"ms-card-selector",3),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(8,"div",4)(9,"button",5),c("click",function(){return t.goToPreviousPage()}),f(10,"mat-icon",6),r(11," Previous "),o(),i(12,"button",7),c("click",function(){return t.handleSelection()}),r(13," Run "),o(),i(14,"button",8),c("click",function(){return t.goToChartPage()}),r(15,"View Chart"),o()()),n&2&&(d(7),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[v,C,E,P,_]});let l=e;return l})();var ge=()=>["Yes","No"],pe=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.RECOMMENDED_ITERATIVE_ONE_SHOT],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.RECOMMENDED_GRASP],{relativeTo:this.route.parent})}goToPreviousPage(){this.router.navigate([s.PRUNING_TIME],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-similar-accuracy"]],decls:16,vars:3,consts:[[1,"heading-primary-title"],[1,"paragraph-regular-p3-default","text-hint"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you want to have a similar or higher accuracy?\xA0"),o(),i(2,"p",1),r(3,` Expectations for compressed model performance: Anticipate achieving comparable or enhanced accuracy relative to the original model. -`),o(),i(4,"mat-chip-set",2)(5,"mat-chip",3),c("click",function(){return t.goToPretrainedPage()}),r(6," Pruning "),o(),i(7,"mat-chip",3),c("click",function(){return t.goToPreviousPage()}),r(8," Short pruning time "),o()(),i(9,"ms-card-selector",4),c("selectedOption",function(T){return t.trackSelection(T)}),o(),i(10,"div",5)(11,"button",6),c("click",function(){return t.goToPreviousPage()}),f(12,"mat-icon",7),r(13," Previous "),o(),i(14,"button",8),c("click",function(){return t.handleSelection()}),r(15,"Next"),o()()),n&2&&(d(9),u("options",y(2,ge)),d(5),u("disabled",!t.selectedOption))},dependencies:[v,C,E,P,_]});let l=e;return l})();var de=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=h({type:e,selectors:[["ms-wizard"]],decls:5,vars:0,consts:[[1,"wizard-layout"],[1,"left"],[1,"right"]],template:function(n,t){n&1&&(i(0,"div",0)(1,"div",1),f(2,"router-outlet"),o(),i(3,"div",2),f(4,"ms-terminal"),o()())},dependencies:[Y,G],styles:[".wizard-layout[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:20px;height:100%}.wizard-layout[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:45%;gap:20px}.wizard-layout[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{width:55%}"]});let l=e;return l})();var ve=[{path:"",component:de,children:[{path:"",redirectTo:s.PRETRAINED_MODEL,pathMatch:"full"},{path:s.PRETRAINED_MODEL,component:ie},{path:s.PRUNING_TIME,component:oe},{path:s.PTQ_TIME,component:ne},{path:s.SIMILAR_ACCURACY,component:pe},{path:s.HIGHER_ACCURACY,component:te},{path:s.RECOMMENDED_BASIC_PTQ,component:re},{path:s.RECOMMENDED_BRECQ,component:ce},{path:s.RECOMMENDED_GRASP,component:ae},{path:s.RECOMMENDED_ITERATIVE,component:se},{path:s.RECOMMENDED_MINMAX,component:le},{path:s.RECOMMENDED_ITERATIVE_ONE_SHOT,component:me}]}],ue=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=q({type:e}),e.\u0275inj=j({imports:[x.forChild(ve),x]});let l=e;return l})();var ci=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=q({type:e}),e.\u0275inj=j({providers:[R],imports:[W,J,ue,G,_]});let l=e;return l})();export{ci as WizardModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-7HZCFN6L.js b/frontend/server/modelsmith-build/browser/chunk-7HZCFN6L.js deleted file mode 100644 index 1eb293f8..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-7HZCFN6L.js +++ /dev/null @@ -1 +0,0 @@ -import{a as ue}from"./chunk-OWZJXMSU.js";import{d as fe}from"./chunk-VN6ZKIV6.js";import{j as de}from"./chunk-NO2PD4LU.js";import{$a as N,$c as Z,$d as pe,Aa as C,Bc as q,Ea as f,G as M,Ha as _,Hc as z,Ic as J,Ma as T,Md as ie,Na as s,Oa as g,Pa as b,Qd as ae,Rd as oe,S,T as I,Ta as E,Ua as A,Wc as Q,Y as P,Yc as W,Zc as X,Zd as ne,_b as D,_c as Y,_d as me,ad as ee,ae as le,ec as K,fb as O,gb as G,he as se,ie as ce,ja as i,jc as $,ka as c,lc as u,m as y,nc as k,oc as L,pb as w,pc as R,qa as d,rd as te,s as x,sa as n,sd as F,vc as V,wa as m,wc as j,wd as re,xa as o,xc as U,ya as v,yc as B,za as h,zc as H}from"./chunk-AIAH5BT5.js";function _e(r,t){if(r&1&&(m(0,"div",10)(1,"mat-label"),s(2),o(),m(3,"mat-form-field",11),v(4,"input",12)(5,"mat-icon",13),o()()),r&2){let e=f(),a=e.$implicit,p=e.index;i(2),g(a.label),i(2),n("formControlName",p)("placeholder",a.placeholder)("type",a.inputType),i(),_("matTooltip",a.help)}}function ge(r,t){if(r&1&&(m(0,"mat-option",16),s(1),o()),r&2){let e=t.$implicit;n("value",e.value),i(),b(" ",e.viewValue," ")}}function he(r,t){if(r&1&&(m(0,"div",10)(1,"mat-label"),s(2),o(),m(3,"mat-form-field",11)(4,"mat-select",14),d(5,ge,2,2,"mat-option",15),o(),v(6,"mat-icon",13),o()()),r&2){let e=f(),a=e.$implicit,p=e.index;i(2),g(a.label),i(2),n("formControlName",p),i(),n("ngForOf",a.options),i(),_("matTooltip",a.help)}}function Ce(r,t){if(r&1&&(m(0,"div",17)(1,"mat-checkbox",14),s(2),o(),m(3,"div",18),v(4,"mat-icon",19),o()()),r&2){let e=f(),a=e.$implicit,p=e.index;i(),n("formControlName",p),i(),g(a.label),i(2),_("matTooltip",a.help)}}function Fe(r,t){if(r&1&&(h(0),d(1,_e,6,5,"div",8)(2,he,7,4,"div",8)(3,Ce,5,3,"div",9),C()),r&2){let e=t.$implicit;i(),n("ngIf",e.inputType==="text"||e.inputType==="number"),i(),n("ngIf",e.inputType==="select"),i(),n("ngIf",e.inputType==="checkbox")}}function ye(r,t){if(r&1&&(m(0,"div",4),h(1,5),m(2,"div",6),d(3,Fe,4,3,"ng-container",7),o(),C(),o()),r&2){let e=f();i(),n("formGroupName",e.controlKey),i(2),n("ngForOf",e.parameters)}}function xe(r,t){r&1&&(m(0,"p",20),s(1,"No parameters configured."),o())}var l,ve=(l=class{ngOnChanges(t){t.algorithm&&t.algorithm.currentValue&&(this.alg=t.algorithm.currentValue,this.loadParametersForAlgorithm(this.alg))}get parentFormGroup(){return this.controlContainer.control}get paramsFormGroup(){return this.parentFormGroup.get(this.controlKey)}get parametersFormArray(){return this.paramsFormGroup.get("parametersArray")}constructor(t,e,a,p){this.fb=t,this.controlContainer=e,this.parametersFacadeService=a,this.scriptFacadeService=p,this.controlKey="",this.RoutesList=D,this.alg=fe,this.isScriptActive=!1,this.parameters=[]}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}initForm(){this.parentFormGroup.addControl(this.controlKey,new R({parametersArray:new B([])}))}loadParametersForAlgorithm(t){this.parametersFacadeService.dispatch(ue.loadParameters({arg:t})),this.parametersFacadeService.parameters$.pipe(x(e=>e[t]?.data||[]),M(1),F(this)).subscribe(e=>{this.buildFormArray(e)})}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(F(this)).subscribe(t=>{this.isScriptActive=re(t)})}buildFormArray(t){this.parametersFormArray.clear(),t.forEach(e=>{this.parametersFormArray.push(this.fb.control(e.defaultValue))}),this.isScriptActive?this.paramsFormGroup.disable():this.paramsFormGroup.enable(),this.parameters=t}get parametersFormatted(){let t={},e=this.parametersFormArray.getRawValue();return this.parameters.forEach((a,p)=>{t[a.argName]=e[p]}),t}ngOnDestroy(){this.parentFormGroup.removeControl(this.controlKey)}},l.\u0275fac=function(e){return new(e||l)(c(H),c(u),c(de),c(ie))},l.\u0275cmp=I({type:l,selectors:[["ms-panel-parameters"]],inputs:{controlKey:"controlKey",algorithm:"algorithm"},standalone:!0,features:[E([],[{provide:u,useFactory:()=>S(u,{skipSelf:!0})}]),P,A],decls:6,vars:2,consts:[["noParametersTemplate",""],[1,"ms-card","parameters-card"],[1,"heading-sub-section-title"],["class","parameters-wrapper",4,"ngIf","ngIfElse"],[1,"parameters-wrapper"],[3,"formGroupName"],["formArrayName","parametersArray"],[4,"ngFor","ngForOf"],["class","form-field-container",4,"ngIf"],["class","form-field-container inline-container mb-[22px]",4,"ngIf"],[1,"form-field-container"],["appearance","outline"],["matInput","",3,"formControlName","placeholder","type"],["fontSet","ms","fontIcon","icon-Info","matSuffix","",3,"matTooltip"],[3,"formControlName"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"form-field-container","inline-container","mb-[22px]"],[1,"ml-2"],["fontSet","ms","fontIcon","icon-Info",3,"matTooltip"],[1,"no-parameters-message"]],template:function(e,a){if(e&1&&(m(0,"mat-card",1)(1,"p",2),s(2,"Parameters"),o(),d(3,ye,4,2,"div",3)(4,xe,2,0,"ng-template",null,0,N),o()),e&2){let p=T(5);i(3),n("ngIf",a.parameters.length)("ngIfElse",p)}},dependencies:[w,O,G,ee,Z,X,Q,W,q,$,k,L,U,V,j,me,ne,Y,ce,se,K,oe,ae,le,pe,J,z],styles:[".parameters-card[_ngcontent-%COMP%] .parameters-wrapper[_ngcontent-%COMP%]{max-height:400px;overflow:auto;padding-right:20px}.parameters-card[_ngcontent-%COMP%] .parameters-wrapper[_ngcontent-%COMP%] .parameter-divider[_ngcontent-%COMP%]{margin-bottom:20px}"]}),l);ve=y([te()],ve);export{ve as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-7IMKJ6YK.js b/frontend/server/modelsmith-build/browser/chunk-7IMKJ6YK.js new file mode 100644 index 00000000..5521e0bf --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-7IMKJ6YK.js @@ -0,0 +1 @@ +import{a as y,b as u}from"./chunk-VUPIOU6P.js";import{Bb as h,Ea as o,Qa as g,Sa as l,Sb as d,Ub as c,ab as n,bb as i,bc as M,cb as m,ha as s,ub as f,wb as p}from"./chunk-NPZHNGVX.js";function _(t,e){t&1&&m(0,"div",8)}function P(t,e){t&1&&m(0,"div",8)}var b=(()=>{let e=class e{constructor(){this.styleMode="fullWidth",this.currentYear=new Date().getFullYear()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=s({type:e,selectors:[["ms-footer"]],inputs:{styleMode:"styleMode"},standalone:!0,features:[h],decls:14,vars:4,consts:[[1,"footer-wrapper"],[1,"mb-4"],[1,"grid","grid-cols-12"],["class","col-span-1",4,"ngIf"],[1,"footer-content",3,"ngClass"],[1,"left"],[1,"right"],[1,"mr-4"],[1,"col-span-1"]],template:function(r,a){r&1&&(n(0,"div",0)(1,"div",1),m(2,"mat-divider"),i(),n(3,"footer",2),g(4,_,1,0,"div",3),n(5,"div",4)(6,"div",5),f(7),i(),n(8,"div",6)(9,"a",7),f(10,"Privacy Policy"),i(),n(11,"a"),f(12,"Terms of Service"),i()()(),g(13,P,1,0,"div",3),i()()),r&2&&(o(4),l("ngIf",a.styleMode!=="mainLayout"),o(),l("ngClass",a.styleMode==="mainLayout"?"col-span-12":"col-span-10"),o(2),p("\xA9 ",a.currentYear," Cisco Systems, Inc"),o(6),l("ngIf",a.styleMode!=="mainLayout"))},dependencies:[M,d,c,u,y],styles:["html[_ngcontent-%COMP%]{color:var(--foregrounds-800)}.text-hint[_ngcontent-%COMP%]{color:var(--foregrounds-700)}.heading-primary-title[_ngcontent-%COMP%]{font-family:Montserrat;font-weight:700;font-size:1.5rem;line-height:2.125rem}.heading-section-title[_ngcontent-%COMP%]{font-weight:700;font-size:1.125rem;line-height:1.5em}.paragraph-bold-p4-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.75rem;line-height:1.125em}.paragraph-monospace-p2-large[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:400}.heading-sub-section-title[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:700}.paragraph-regular-p3-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875;line-height:1.25rem}.paragraph-bold-p3-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p2-large-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1rem;line-height:1.375rem}.paragraph-semibold-p1-xlarge-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1.125rem;line-height:1.5rem}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p3-default-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-regular-p4-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.75rem;line-height:1.125rem}.paragraph-semibold-p3-small-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400}.paragraph-semibold-p4-xSmall-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:600}.paragraph-regular-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400;color:var(--foregrounds-750)}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-size:.875rem;line-height:1.25rem;font-weight:400}.paragraph-regular-p2-large[_ngcontent-%COMP%]{font-family:Inter;font-size:1rem;font-weight:400;line-height:1.375rem}.footer-wrapper[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px}footer[_ngcontent-%COMP%] .footer-content[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.75rem;line-height:1.125rem;display:flex;justify-content:space-between}[styleMode=fullWidth][_nghost-%COMP%] .footer-wrapper[_ngcontent-%COMP%]{width:100%;position:absolute;bottom:30px}[styleMode=mainLayout][_nghost-%COMP%] .footer-wrapper[_ngcontent-%COMP%]{position:relative;bottom:0}"]});let t=e;return t})();export{b as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-AIAH5BT5.js b/frontend/server/modelsmith-build/browser/chunk-AIAH5BT5.js deleted file mode 100644 index 254cb4c1..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-AIAH5BT5.js +++ /dev/null @@ -1,52 +0,0 @@ -var Gk=Object.create;var Of=Object.defineProperty,Wk=Object.defineProperties,qk=Object.getOwnPropertyDescriptor,Yk=Object.getOwnPropertyDescriptors,Zk=Object.getOwnPropertyNames,tl=Object.getOwnPropertySymbols,Qk=Object.getPrototypeOf,Nf=Object.prototype.hasOwnProperty,j_=Object.prototype.propertyIsEnumerable;var L_=(t,e,r)=>e in t?Of(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e||={})Nf.call(e,r)&&L_(t,r,e[r]);if(tl)for(var r of tl(e))j_.call(e,r)&&L_(t,r,e[r]);return t},Q=(t,e)=>Wk(t,Yk(e));var Kk=(t,e)=>{var r={};for(var i in t)Nf.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&tl)for(var i of tl(t))e.indexOf(i)<0&&j_.call(t,i)&&(r[i]=t[i]);return r};var d3=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Xk=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Zk(e))!Nf.call(t,n)&&n!==r&&Of(t,n,{get:()=>e[n],enumerable:!(i=qk(e,n))||i.enumerable});return t};var u3=(t,e,r)=>(r=t!=null?Gk(Qk(t)):{},Xk(e||!t||!t.__esModule?Of(r,"default",{value:t,enumerable:!0}):r,t));var Bo=(t,e,r)=>new Promise((i,n)=>{var o=c=>{try{a(r.next(c))}catch(l){n(l)}},s=c=>{try{a(r.throw(c))}catch(l){n(l)}},a=c=>c.done?i(c.value):Promise.resolve(c.value).then(o,s);a((r=r.apply(t,e)).next())});function V_(t,e){return Object.is(t,e)}var Dt=null,oa=!1,il=1,an=Symbol("SIGNAL");function Te(t){let e=Dt;return Dt=t,e}function B_(){return Dt}function Jk(){return oa}var zo={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function jf(t){if(oa)throw new Error("");if(Dt===null)return;Dt.consumerOnSignalRead(t);let e=Dt.nextProducerIndex++;if(cl(Dt),et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function ol(t){cl(t);for(let e=0;e0}function cl(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function W_(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function q_(t){return t.producerNode!==void 0}function Y_(t){let e=Object.create(tT);e.computation=t;let r=()=>{if(z_(e),jf(e),e.value===nl)throw e.error;return e.value};return r[an]=e,r}var Ff=Symbol("UNSET"),Pf=Symbol("COMPUTING"),nl=Symbol("ERRORED"),tT=Q(w({},zo),{value:Ff,dirty:!0,error:null,equal:V_,producerMustRecompute(t){return t.value===Ff||t.value===Pf},producerRecomputeValue(t){if(t.value===Pf)throw new Error("Detected cycle in computations.");let e=t.value;t.value=Pf;let r=aa(t),i;try{i=t.computation()}catch(n){i=nl,t.error=n}finally{rl(t,r)}if(e!==Ff&&e!==nl&&i!==nl&&t.equal(e,i)){t.value=e;return}t.value=i,t.version++}});function iT(){throw new Error}var Z_=iT;function Q_(){Z_()}function K_(t){Z_=t}var nT=null;function X_(t){let e=Object.create(ey);e.value=t;let r=()=>(jf(e),e.value);return r[an]=e,r}function Vf(t,e){H_()||Q_(),t.equal(t.value,e)||(t.value=e,rT(t))}function J_(t,e){H_()||Q_(),Vf(t,e(t.value))}var ey=Q(w({},zo),{equal:V_,value:void 0});function rT(t){t.version++,eT(),U_(t),nT?.()}function ty(t,e,r){let i=Object.create(oT);r&&(i.consumerAllowSignalWrites=!0),i.fn=t,i.schedule=e;let n=c=>{i.cleanupFn=c};function o(c){return c.fn===null&&c.schedule===null}function s(c){o(c)||(sl(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=Lf)}let a=()=>{if(i.fn===null)return;if(Jk())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(i.dirty=!1,i.hasRun&&!ol(i))return;i.hasRun=!0;let c=aa(i);try{i.cleanupFn(),i.cleanupFn=Lf,i.fn(n)}finally{rl(i,c)}};return i.ref={notify:()=>$_(i),run:a,cleanup:()=>i.cleanupFn(),destroy:()=>s(i),[an]:i},i.ref}var Lf=()=>{},oT=Q(w({},zo),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule!==null&&t.schedule(t.ref)},hasRun:!1,cleanupFn:Lf});function ce(t){return typeof t=="function"}function lr(t){let r=t(i=>{Error.call(i),i.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var ll=lr(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: -${r.map((i,n)=>`${n+1}) ${i.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=r});function Hr(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var ne=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let o of r)o.remove(this);else r.remove(this);let{initialTeardown:i}=this;if(ce(i))try{i()}catch(o){e=o instanceof ll?o.errors:[o]}let{_finalizers:n}=this;if(n){this._finalizers=null;for(let o of n)try{iy(o)}catch(s){e=e??[],s instanceof ll?e=[...e,...s.errors]:e.push(s)}}if(e)throw new ll(e)}}add(e){var r;if(e&&e!==this)if(this.closed)iy(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&Hr(r,e)}remove(e){let{_finalizers:r}=this;r&&Hr(r,e),e instanceof t&&e._removeParent(this)}};ne.EMPTY=(()=>{let t=new ne;return t.closed=!0,t})();var Bf=ne.EMPTY;function dl(t){return t instanceof ne||t&&"closed"in t&&ce(t.remove)&&ce(t.add)&&ce(t.unsubscribe)}function iy(t){ce(t)?t():t.unsubscribe()}var Hi={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Uo={setTimeout(t,e,...r){let{delegate:i}=Uo;return i?.setTimeout?i.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=Uo;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function ul(t){Uo.setTimeout(()=>{let{onUnhandledError:e}=Hi;if(e)e(t);else throw t})}function Un(){}var ny=zf("C",void 0,void 0);function ry(t){return zf("E",void 0,t)}function oy(t){return zf("N",t,void 0)}function zf(t,e,r){return{kind:t,value:e,error:r}}var $r=null;function Ho(t){if(Hi.useDeprecatedSynchronousErrorHandling){let e=!$r;if(e&&($r={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:i}=$r;if($r=null,r)throw i}}else t()}function sy(t){Hi.useDeprecatedSynchronousErrorHandling&&$r&&($r.errorThrown=!0,$r.error=t)}var Gr=class extends ne{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,dl(e)&&e.add(this)):this.destination=cT}static create(e,r,i){return new $i(e,r,i)}next(e){this.isStopped?Hf(oy(e),this):this._next(e)}error(e){this.isStopped?Hf(ry(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Hf(ny,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},sT=Function.prototype.bind;function Uf(t,e){return sT.call(t,e)}var $f=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(i){hl(i)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(i){hl(i)}else hl(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){hl(r)}}},$i=class extends Gr{constructor(e,r,i){super();let n;if(ce(e)||!e)n={next:e??void 0,error:r??void 0,complete:i??void 0};else{let o;this&&Hi.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),n={next:e.next&&Uf(e.next,o),error:e.error&&Uf(e.error,o),complete:e.complete&&Uf(e.complete,o)}):n=e}this.destination=new $f(n)}};function hl(t){Hi.useDeprecatedSynchronousErrorHandling?sy(t):ul(t)}function aT(t){throw t}function Hf(t,e){let{onStoppedNotification:r}=Hi;r&&Uo.setTimeout(()=>r(t,e))}var cT={closed:!0,next:Un,error:aT,complete:Un};var $o=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Nt(t){return t}function Gf(...t){return Wf(t)}function Wf(t){return t.length===0?Nt:t.length===1?t[0]:function(r){return t.reduce((i,n)=>n(i),r)}}var oe=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let i=new t;return i.source=this,i.operator=r,i}subscribe(r,i,n){let o=dT(r)?r:new $i(r,i,n);return Ho(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(r){try{return this._subscribe(r)}catch(i){r.error(i)}}forEach(r,i){return i=ay(i),new i((n,o)=>{let s=new $i({next:a=>{try{r(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:n});this.subscribe(s)})}_subscribe(r){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(r)}[$o](){return this}pipe(...r){return Wf(r)(this)}toPromise(r){return r=ay(r),new r((i,n)=>{let o;this.subscribe(s=>o=s,s=>n(s),()=>i(o))})}}return t.create=e=>new t(e),t})();function ay(t){var e;return(e=t??Hi.Promise)!==null&&e!==void 0?e:Promise}function lT(t){return t&&ce(t.next)&&ce(t.error)&&ce(t.complete)}function dT(t){return t&&t instanceof Gr||lT(t)&&dl(t)}function qf(t){return ce(t?.lift)}function J(t){return e=>{if(qf(e))return e.lift(function(r){try{return t(r,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function X(t,e,r,i,n){return new ca(t,e,r,i,n)}var ca=class extends Gr{constructor(e,r,i,n,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(c){e.error(c)}}:super._next,this._error=n?function(a){try{n(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function Go(){return J((t,e)=>{let r=null;t._refCount++;let i=X(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let n=t._connection,o=r;r=null,n&&(!o||n===o)&&n.unsubscribe(),e.unsubscribe()});t.subscribe(i),i.closed||(r=t.connect())})}var dr=class extends oe{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,qf(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new ne;let r=this.getSubject();e.add(this.source.subscribe(X(r,void 0,()=>{this._teardown(),r.complete()},i=>{this._teardown(),r.error(i)},()=>this._teardown()))),e.closed&&(this._connection=null,e=ne.EMPTY)}return e}refCount(){return Go()(this)}};var Wo={schedule(t){let e=requestAnimationFrame,r=cancelAnimationFrame,{delegate:i}=Wo;i&&(e=i.requestAnimationFrame,r=i.cancelAnimationFrame);let n=e(o=>{r=void 0,t(o)});return new ne(()=>r?.(n))},requestAnimationFrame(...t){let{delegate:e}=Wo;return(e?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:e}=Wo;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var cy=lr(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var C=(()=>{class t extends oe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let i=new fl(this,this);return i.operator=r,i}_throwIfClosed(){if(this.closed)throw new cy}next(r){Ho(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let i of this.currentObservers)i.next(r)}})}error(r){Ho(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:i}=this;for(;i.length;)i.shift().error(r)}})}complete(){Ho(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:i,isStopped:n,observers:o}=this;return i||n?Bf:(this.currentObservers=null,o.push(r),new ne(()=>{this.currentObservers=null,Hr(o,r)}))}_checkFinalizedStatuses(r){let{hasError:i,thrownError:n,isStopped:o}=this;i?r.error(n):o&&r.complete()}asObservable(){let r=new oe;return r.source=this,r}}return t.create=(e,r)=>new fl(e,r),t})(),fl=class extends C{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,e)}error(e){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&i!==void 0?i:Bf}};var Pe=class extends C{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:i}=this;if(e)throw r;return this._throwIfClosed(),i}next(e){super.next(this._value=e)}};var la={now(){return(la.delegate||Date).now()},delegate:void 0};var Wr=class extends C{constructor(e=1/0,r=1/0,i=la){super(),this._bufferSize=e,this._windowTime=r,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=r===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,r)}next(e){let{isStopped:r,_buffer:i,_infiniteTimeWindow:n,_timestampProvider:o,_windowTime:s}=this;r||(i.push(e),!n&&i.push(o.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let r=this._innerSubscribe(e),{_infiniteTimeWindow:i,_buffer:n}=this,o=n.slice();for(let s=0;sly(e)&&t()),e},clearImmediate(t){ly(t)}};var{setImmediate:hT,clearImmediate:fT}=dy,ua={setImmediate(...t){let{delegate:e}=ua;return(e?.setImmediate||hT)(...t)},clearImmediate(t){let{delegate:e}=ua;return(e?.clearImmediate||fT)(t)},delegate:void 0};var ml=class extends cn{constructor(e,r){super(e,r),this.scheduler=e,this.work=r}requestAsyncId(e,r,i=0){return i!==null&&i>0?super.requestAsyncId(e,r,i):(e.actions.push(this),e._scheduled||(e._scheduled=ua.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,r,i=0){var n;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(e,r,i);let{actions:o}=e;r!=null&&((n=o[o.length-1])===null||n===void 0?void 0:n.id)!==r&&(ua.clearImmediate(r),e._scheduled===r&&(e._scheduled=void 0))}};var qo=class t{constructor(e,r=t.now){this.schedulerActionCtor=e,this.now=r}schedule(e,r=0,i){return new this.schedulerActionCtor(this,e).schedule(i,r)}};qo.now=la.now;var ln=class extends qo{constructor(e,r=qo.now){super(e,r),this.actions=[],this._active=!1}flush(e){let{actions:r}=this;if(this._active){r.push(e);return}let i;this._active=!0;do if(i=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,i){for(;e=r.shift();)e.unsubscribe();throw i}}};var gl=class extends ln{flush(e){this._active=!0;let r=this._scheduled;this._scheduled=void 0;let{actions:i}=this,n;e=e||i.shift();do if(n=e.execute(e.state,e.delay))break;while((e=i[0])&&e.id===r&&i.shift());if(this._active=!1,n){for(;(e=i[0])&&e.id===r&&i.shift();)e.unsubscribe();throw n}}};var ha=new gl(ml);var Gi=new ln(cn),uy=Gi;var vl=class extends cn{constructor(e,r){super(e,r),this.scheduler=e,this.work=r}schedule(e,r=0){return r>0?super.schedule(e,r):(this.delay=r,this.state=e,this.scheduler.flush(this),this)}execute(e,r){return r>0||this.closed?super.execute(e,r):this._execute(e,r)}requestAsyncId(e,r,i=0){return i!=null&&i>0||i==null&&this.delay>0?super.requestAsyncId(e,r,i):(e.flush(this),0)}};var bl=class extends ln{};var Qf=new bl(vl);var _l=class extends cn{constructor(e,r){super(e,r),this.scheduler=e,this.work=r}requestAsyncId(e,r,i=0){return i!==null&&i>0?super.requestAsyncId(e,r,i):(e.actions.push(this),e._scheduled||(e._scheduled=Wo.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,r,i=0){var n;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(e,r,i);let{actions:o}=e;r!=null&&((n=o[o.length-1])===null||n===void 0?void 0:n.id)!==r&&(Wo.cancelAnimationFrame(r),e._scheduled=void 0)}};var yl=class extends ln{flush(e){this._active=!0;let r=this._scheduled;this._scheduled=void 0;let{actions:i}=this,n;e=e||i.shift();do if(n=e.execute(e.state,e.delay))break;while((e=i[0])&&e.id===r&&i.shift());if(this._active=!1,n){for(;(e=i[0])&&e.id===r&&i.shift();)e.unsubscribe();throw n}}};var wl=new yl(_l);var ct=new oe(t=>t.complete());function xl(t){return t&&ce(t.schedule)}function Kf(t){return t[t.length-1]}function Yo(t){return ce(Kf(t))?t.pop():void 0}function dn(t){return xl(Kf(t))?t.pop():void 0}function hy(t,e){return typeof Kf(t)=="number"?t.pop():e}function py(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o}function my(t,e,r,i){function n(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(d){try{l(i.next(d))}catch(u){s(u)}}function c(d){try{l(i.throw(d))}catch(u){s(u)}}function l(d){d.done?o(d.value):n(d.value).then(a,c)}l((i=i.apply(t,e||[])).next())})}function fy(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function qr(t){return this instanceof qr?(this.v=t,this):new qr(t)}function gy(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r.apply(t,e||[]),n,o=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(f){i[f]&&(n[f]=function(p){return new Promise(function(v,S){o.push([f,p,v,S])>1||a(f,p)})})}function a(f,p){try{c(i[f](p))}catch(v){u(o[0][3],v)}}function c(f){f.value instanceof qr?Promise.resolve(f.value.v).then(l,d):u(o[0][2],f)}function l(f){a("next",f)}function d(f){a("throw",f)}function u(f,p){f(p),o.shift(),o.length&&a(o[0][0],o[0][1])}}function vy(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof fy=="function"?fy(t):t[Symbol.iterator](),r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(o){r[o]=t[o]&&function(s){return new Promise(function(a,c){s=t[o](s),n(a,c,s.done,s.value)})}}function n(o,s,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},s)}}var Zo=t=>t&&typeof t.length=="number"&&typeof t!="function";function Dl(t){return ce(t?.then)}function Cl(t){return ce(t[$o])}function El(t){return Symbol.asyncIterator&&ce(t?.[Symbol.asyncIterator])}function Il(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function pT(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Sl=pT();function Ml(t){return ce(t?.[Sl])}function kl(t){return gy(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:i,done:n}=yield qr(r.read());if(n)return yield qr(void 0);yield yield qr(i)}}finally{r.releaseLock()}})}function Tl(t){return ce(t?.getReader)}function Ee(t){if(t instanceof oe)return t;if(t!=null){if(Cl(t))return mT(t);if(Zo(t))return gT(t);if(Dl(t))return vT(t);if(El(t))return by(t);if(Ml(t))return bT(t);if(Tl(t))return _T(t)}throw Il(t)}function mT(t){return new oe(e=>{let r=t[$o]();if(ce(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function gT(t){return new oe(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,ul)})}function bT(t){return new oe(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function by(t){return new oe(e=>{yT(t,e).catch(r=>e.error(r))})}function _T(t){return by(kl(t))}function yT(t,e){var r,i,n,o;return my(this,void 0,void 0,function*(){try{for(r=vy(t);i=yield r.next(),!i.done;){let s=i.value;if(e.next(s),e.closed)return}}catch(s){n={error:s}}finally{try{i&&!i.done&&(o=r.return)&&(yield o.call(r))}finally{if(n)throw n.error}}e.complete()})}function Bt(t,e,r,i=0,n=!1){let o=e.schedule(function(){r(),n?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!n)return o}function Yr(t,e=0){return J((r,i)=>{r.subscribe(X(i,n=>Bt(i,t,()=>i.next(n),e),()=>Bt(i,t,()=>i.complete(),e),n=>Bt(i,t,()=>i.error(n),e)))})}function Rl(t,e=0){return J((r,i)=>{i.add(t.schedule(()=>r.subscribe(i),e))})}function _y(t,e){return Ee(t).pipe(Rl(e),Yr(e))}function yy(t,e){return Ee(t).pipe(Rl(e),Yr(e))}function wy(t,e){return new oe(r=>{let i=0;return e.schedule(function(){i===t.length?r.complete():(r.next(t[i++]),r.closed||this.schedule())})})}function xy(t,e){return new oe(r=>{let i;return Bt(r,e,()=>{i=t[Sl](),Bt(r,e,()=>{let n,o;try{({value:n,done:o}=i.next())}catch(s){r.error(s);return}o?r.complete():r.next(n)},0,!0)}),()=>ce(i?.return)&&i.return()})}function Al(t,e){if(!t)throw new Error("Iterable cannot be null");return new oe(r=>{Bt(r,e,()=>{let i=t[Symbol.asyncIterator]();Bt(r,e,()=>{i.next().then(n=>{n.done?r.complete():r.next(n.value)})},0,!0)})})}function Dy(t,e){return Al(kl(t),e)}function Cy(t,e){if(t!=null){if(Cl(t))return _y(t,e);if(Zo(t))return wy(t,e);if(Dl(t))return yy(t,e);if(El(t))return Al(t,e);if(Ml(t))return xy(t,e);if(Tl(t))return Dy(t,e)}throw Il(t)}function He(t,e){return e?Cy(t,e):Ee(t)}function V(...t){let e=dn(t);return He(t,e)}function un(t,e){let r=ce(t)?t:()=>t,i=n=>n.error(r());return new oe(e?n=>e.schedule(i,0,n):i)}var ur=class t{constructor(e,r,i){this.kind=e,this.value=r,this.error=i,this.hasValue=e==="N"}observe(e){return Xf(this,e)}do(e,r,i){let{kind:n,value:o,error:s}=this;return n==="N"?e?.(o):n==="E"?r?.(s):i?.()}accept(e,r,i){var n;return ce((n=e)===null||n===void 0?void 0:n.next)?this.observe(e):this.do(e,r,i)}toObservable(){let{kind:e,value:r,error:i}=this,n=e==="N"?V(r):e==="E"?un(()=>i):e==="C"?ct:0;if(!n)throw new TypeError(`Unexpected notification kind ${e}`);return n}static createNext(e){return new t("N",e)}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}};ur.completeNotification=new ur("C");function Xf(t,e){var r,i,n;let{kind:o,value:s,error:a}=t;if(typeof o!="string")throw new TypeError('Invalid notification, missing "kind"');o==="N"?(r=e.next)===null||r===void 0||r.call(e,s):o==="E"?(i=e.error)===null||i===void 0||i.call(e,a):(n=e.complete)===null||n===void 0||n.call(e)}function Zr(t){return!!t&&(t instanceof oe||ce(t.lift)&&ce(t.subscribe))}var Wi=lr(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function wT(t,e){let r=typeof e=="object";return new Promise((i,n)=>{let o=new $i({next:s=>{i(s),o.unsubscribe()},error:n,complete:()=>{r?i(e.defaultValue):n(new Wi)}});t.subscribe(o)})}function Ol(t){return t instanceof Date&&!isNaN(t)}var xT=lr(t=>function(r=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=r});function DT(t,e){let{first:r,each:i,with:n=CT,scheduler:o=e??Gi,meta:s=null}=Ol(t)?{first:t}:typeof t=="number"?{each:t}:t;if(r==null&&i==null)throw new TypeError("No timeout provided.");return J((a,c)=>{let l,d,u=null,f=0,p=v=>{d=Bt(c,o,()=>{try{l.unsubscribe(),Ee(n({meta:s,lastValue:u,seen:f})).subscribe(c)}catch(S){c.error(S)}},v)};l=a.subscribe(X(c,v=>{d?.unsubscribe(),f++,c.next(u=v),i>0&&p(i)},void 0,void 0,()=>{d?.closed||d?.unsubscribe(),u=null})),!f&&p(r!=null?typeof r=="number"?r:+r-o.now():i)})}function CT(t){throw new xT(t)}function P(t,e){return J((r,i)=>{let n=0;r.subscribe(X(i,o=>{i.next(t.call(e,o,n++))}))})}var{isArray:ET}=Array;function IT(t,e){return ET(e)?t(...e):t(e)}function Qo(t){return P(e=>IT(t,e))}var{isArray:ST}=Array,{getPrototypeOf:MT,prototype:kT,keys:TT}=Object;function Nl(t){if(t.length===1){let e=t[0];if(ST(e))return{args:e,keys:null};if(RT(e)){let r=TT(e);return{args:r.map(i=>e[i]),keys:r}}}return{args:t,keys:null}}function RT(t){return t&&typeof t=="object"&&MT(t)===kT}function Fl(t,e){return t.reduce((r,i,n)=>(r[i]=e[n],r),{})}function qi(...t){let e=dn(t),r=Yo(t),{args:i,keys:n}=Nl(t);if(i.length===0)return He([],e);let o=new oe(AT(i,e,n?s=>Fl(n,s):Nt));return r?o.pipe(Qo(r)):o}function AT(t,e,r=Nt){return i=>{Ey(e,()=>{let{length:n}=t,o=new Array(n),s=n,a=n;for(let c=0;c{let l=He(t[c],e),d=!1;l.subscribe(X(i,u=>{o[c]=u,d||(d=!0,a--),a||i.next(r(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}function Ey(t,e,r){t?Bt(r,t,e):e()}function Iy(t,e,r,i,n,o,s,a){let c=[],l=0,d=0,u=!1,f=()=>{u&&!c.length&&!l&&e.complete()},p=S=>l{o&&e.next(S),l++;let E=!1;Ee(r(S,d++)).subscribe(X(e,R=>{n?.(R),o?p(R):e.next(R)},()=>{E=!0},void 0,()=>{if(E)try{for(l--;c.length&&lv(R)):v(R)}f()}catch(R){e.error(R)}}))};return t.subscribe(X(e,p,()=>{u=!0,f()})),()=>{a?.()}}function Fe(t,e,r=1/0){return ce(e)?Fe((i,n)=>P((o,s)=>e(i,o,n,s))(Ee(t(i,n))),r):(typeof e=="number"&&(r=e),J((i,n)=>Iy(i,n,t,r)))}function hn(t=1/0){return Fe(Nt,t)}function Sy(){return hn(1)}function fn(...t){return Sy()(He(t,dn(t)))}function Qr(t){return new oe(e=>{Ee(t()).subscribe(e)})}function fa(...t){let e=Yo(t),{args:r,keys:i}=Nl(t),n=new oe(o=>{let{length:s}=r;if(!s){o.complete();return}let a=new Array(s),c=s,l=s;for(let d=0;d{u||(u=!0,l--),a[d]=f},()=>c--,void 0,()=>{(!c||!u)&&(l||o.next(i?Fl(i,a):a),o.complete())}))}});return e?n.pipe(Qo(e)):n}var OT=["addListener","removeListener"],NT=["addEventListener","removeEventListener"],FT=["on","off"];function Ko(t,e,r,i){if(ce(r)&&(i=r,r=void 0),i)return Ko(t,e,r).pipe(Qo(i));let[n,o]=jT(t)?NT.map(s=>a=>t[s](e,a,r)):PT(t)?OT.map(My(t,e)):LT(t)?FT.map(My(t,e)):[];if(!n&&Zo(t))return Fe(s=>Ko(s,e,r))(Ee(t));if(!n)throw new TypeError("Invalid event target");return new oe(s=>{let a=(...c)=>s.next(1o(a)})}function My(t,e){return r=>i=>t[r](e,i)}function PT(t){return ce(t.addListener)&&ce(t.removeListener)}function LT(t){return ce(t.on)&&ce(t.off)}function jT(t){return ce(t.addEventListener)&&ce(t.removeEventListener)}function Kr(t=0,e,r=uy){let i=-1;return e!=null&&(xl(e)?r=e:i=e),new oe(n=>{let o=Ol(t)?+t-r.now():t;o<0&&(o=0);let s=0;return r.schedule(function(){n.closed||(n.next(s++),0<=i?this.schedule(void 0,i):n.complete())},o)})}function Jf(t=0,e=Gi){return t<0&&(t=0),Kr(t,t,e)}function Ze(...t){let e=dn(t),r=hy(t,1/0),i=t;return i.length?i.length===1?Ee(i[0]):hn(r)(He(i,e)):ct}function ge(t,e){return J((r,i)=>{let n=0;r.subscribe(X(i,o=>t.call(e,o,n++)&&i.next(o)))})}function ky(t){return J((e,r)=>{let i=!1,n=null,o=null,s=!1,a=()=>{if(o?.unsubscribe(),o=null,i){i=!1;let l=n;n=null,r.next(l)}s&&r.complete()},c=()=>{o=null,s&&r.complete()};e.subscribe(X(r,l=>{i=!0,n=l,o||Ee(t(l)).subscribe(o=X(r,a,c))},()=>{s=!0,(!i||!o||o.closed)&&r.complete()}))})}function Pl(t,e=Gi){return ky(()=>Kr(t,e))}function ut(t){return J((e,r)=>{let i=null,n=!1,o;i=e.subscribe(X(r,void 0,void 0,s=>{o=Ee(t(s,ut(t)(e))),i?(i.unsubscribe(),i=null,o.subscribe(r)):n=!0})),n&&(i.unsubscribe(),i=null,o.subscribe(r))})}function Ty(t,e,r,i,n){return(o,s)=>{let a=r,c=e,l=0;o.subscribe(X(s,d=>{let u=l++;c=a?t(c,d,u):(a=!0,d),i&&s.next(c)},n&&(()=>{a&&s.next(c),s.complete()})))}}function pn(t,e){return ce(e)?Fe(t,e,1):Fe(t,1)}function Xo(t,e=Gi){return J((r,i)=>{let n=null,o=null,s=null,a=()=>{if(n){n.unsubscribe(),n=null;let l=o;o=null,i.next(l)}};function c(){let l=s+t,d=e.now();if(d{o=l,s=e.now(),n||(n=e.schedule(c,t),i.add(n))},()=>{a(),i.complete()},void 0,()=>{o=n=null}))})}function hr(t){return J((e,r)=>{let i=!1;e.subscribe(X(r,n=>{i=!0,r.next(n)},()=>{i||r.next(t),r.complete()}))})}function We(t){return t<=0?()=>ct:J((e,r)=>{let i=0;e.subscribe(X(r,n=>{++i<=t&&(r.next(n),t<=i&&r.complete())}))})}function pa(){return J((t,e)=>{t.subscribe(X(e,Un))})}function ma(t){return P(()=>t)}function ep(t,e){return e?r=>fn(e.pipe(We(1),pa()),r.pipe(ep(t))):Fe((r,i)=>Ee(t(r,i)).pipe(We(1),ma(r)))}function ga(t,e=Gi){let r=Kr(t,e);return ep(()=>r)}function tp(){return J((t,e)=>{t.subscribe(X(e,r=>Xf(r,e)))})}function Yi(t,e=Nt){return t=t??VT,J((r,i)=>{let n,o=!0;r.subscribe(X(i,s=>{let a=e(s);(o||!t(n,a))&&(o=!1,n=a,i.next(s))}))})}function VT(t,e){return t===e}function Ll(t=BT){return J((e,r)=>{let i=!1;e.subscribe(X(r,n=>{i=!0,r.next(n)},()=>i?r.complete():r.error(t())))})}function BT(){return new Wi}function jl(t,e){return e?r=>r.pipe(jl((i,n)=>Ee(t(i,n)).pipe(P((o,s)=>e(i,o,n,s))))):J((r,i)=>{let n=0,o=null,s=!1;r.subscribe(X(i,a=>{o||(o=X(i,void 0,()=>{o=null,s&&i.complete()}),Ee(t(a,n++)).subscribe(o))},()=>{s=!0,!o&&i.complete()}))})}function Si(t){return J((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function mn(t,e){let r=arguments.length>=2;return i=>i.pipe(t?ge((n,o)=>t(n,o,i)):Nt,We(1),r?hr(e):Ll(()=>new Wi))}function Vl(t,e,r,i){return J((n,o)=>{let s;!e||typeof e=="function"?s=e:{duration:r,element:s,connector:i}=e;let a=new Map,c=v=>{a.forEach(v),v(o)},l=v=>c(S=>S.error(v)),d=0,u=!1,f=new ca(o,v=>{try{let S=t(v),E=a.get(S);if(!E){a.set(S,E=i?i():new C);let R=p(S,E);if(o.next(R),r){let he=X(E,()=>{E.complete(),he?.unsubscribe()},void 0,void 0,()=>a.delete(S));f.add(Ee(r(R)).subscribe(he))}}E.next(s?s(v):v)}catch(S){l(S)}},()=>c(v=>v.complete()),l,()=>a.clear(),()=>(u=!0,d===0));n.subscribe(f);function p(v,S){let E=new oe(R=>{d++;let he=S.subscribe(R);return()=>{he.unsubscribe(),--d===0&&u&&f.unsubscribe()}});return E.key=v,E}})}function Jo(t){return t<=0?()=>ct:J((e,r)=>{let i=[];e.subscribe(X(r,n=>{i.push(n),t{for(let n of i)r.next(n);r.complete()},void 0,()=>{i=null}))})}function ip(t,e){let r=arguments.length>=2;return i=>i.pipe(t?ge((n,o)=>t(n,o,i)):Nt,Jo(1),r?hr(e):Ll(()=>new Wi))}function np(){return J((t,e)=>{t.subscribe(X(e,r=>{e.next(ur.createNext(r))},()=>{e.next(ur.createComplete()),e.complete()},r=>{e.next(ur.createError(r)),e.complete()}))})}function rp(...t){let e=t.length;if(e===0)throw new Error("list of properties cannot be empty.");return P(r=>{let i=r;for(let n=0;n=2,!0))}function ba(t={}){let{connector:e=()=>new C,resetOnError:r=!0,resetOnComplete:i=!0,resetOnRefCountZero:n=!0}=t;return o=>{let s,a,c,l=0,d=!1,u=!1,f=()=>{a?.unsubscribe(),a=void 0},p=()=>{f(),s=c=void 0,d=u=!1},v=()=>{let S=s;p(),S?.unsubscribe()};return J((S,E)=>{l++,!u&&!d&&f();let R=c=c??e();E.add(()=>{l--,l===0&&!u&&!d&&(a=op(v,n))}),R.subscribe(E),!s&&l>0&&(s=new $i({next:he=>R.next(he),error:he=>{u=!0,f(),a=op(p,r,he),R.error(he)},complete:()=>{d=!0,f(),a=op(p,i),R.complete()}}),Ee(S).subscribe(s))})(o)}}function op(t,e,...r){if(e===!0){t();return}if(e===!1)return;let i=new $i({next:()=>{i.unsubscribe(),t()}});return Ee(e(...r)).subscribe(i)}function Bl(t,e,r){let i,n=!1;return t&&typeof t=="object"?{bufferSize:i=1/0,windowTime:e=1/0,refCount:n=!1,scheduler:r}=t:i=t??1/0,ba({connector:()=>new Wr(i,e,r),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:n})}function fr(t){return ge((e,r)=>t<=r)}function Qe(...t){let e=dn(t);return J((r,i)=>{(e?fn(t,r,e):fn(t,r)).subscribe(i)})}function Oe(t,e){return J((r,i)=>{let n=null,o=0,s=!1,a=()=>s&&!n&&i.complete();r.subscribe(X(i,c=>{n?.unsubscribe();let l=0,d=o++;Ee(t(c,d)).subscribe(n=X(i,u=>i.next(e?e(c,u,d,l++):u),()=>{n=null,a()}))},()=>{s=!0,a()}))})}function te(t){return J((e,r)=>{Ee(t).subscribe(X(r,()=>r.complete(),Un)),!r.closed&&e.subscribe(r)})}function sp(t,e=!1){return J((r,i)=>{let n=0;r.subscribe(X(i,o=>{let s=t(o,n++);(s||e)&&i.next(o),!s&&i.complete()}))})}function je(t,e,r){let i=ce(t)||e||r?{next:t,error:e,complete:r}:t;return i?J((n,o)=>{var s;(s=i.subscribe)===null||s===void 0||s.call(i);let a=!0;n.subscribe(X(o,c=>{var l;(l=i.next)===null||l===void 0||l.call(i,c),o.next(c)},()=>{var c;a=!1,(c=i.complete)===null||c===void 0||c.call(i),o.complete()},c=>{var l;a=!1,(l=i.error)===null||l===void 0||l.call(i,c),o.error(c)},()=>{var c,l;a&&((c=i.unsubscribe)===null||c===void 0||c.call(i)),(l=i.finalize)===null||l===void 0||l.call(i)}))}):Nt}function _a(...t){let e=Yo(t);return J((r,i)=>{let n=t.length,o=new Array(n),s=t.map(()=>!1),a=!1;for(let c=0;c{o[c]=l,!a&&!s[c]&&(s[c]=!0,(a=s.every(Nt))&&(s=null))},Un));r.subscribe(X(i,c=>{if(a){let l=[c,...o];i.next(e?e(...l):l)}}))})}var C0="https://g.co/ng/security#xss",G=class extends Error{constructor(e,r){super(Md(e,r)),this.code=e}};function Md(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function Ta(t){return{toString:t}.toString()}var zl="__parameters__";function zT(t){return function(...r){if(t){let i=t(...r);for(let n in i)this[n]=i[n]}}}function Nm(t,e,r){return Ta(()=>{let i=zT(e);function n(...o){if(this instanceof n)return i.apply(this,o),this;let s=new n(...o);return a.annotation=s,a;function a(c,l,d){let u=c.hasOwnProperty(zl)?c[zl]:Object.defineProperty(c,zl,{value:[]})[zl];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(s),c}}return r&&(n.prototype=Object.create(r.prototype)),n.prototype.ngMetadataName=t,n.annotationCls=n,n})}var ht=globalThis;function Ke(t){for(let e in t)if(t[e]===Ke)return e;throw Error("Could not find renamed property on target object.")}function UT(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Jt(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(Jt).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(` -`);return r===-1?e:e.substring(0,r)}function xp(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var HT=Ke({__forward_ref__:Ke});function lt(t){return t.__forward_ref__=lt,t.toString=function(){return Jt(this())},t}function Qt(t){return E0(t)?t():t}function E0(t){return typeof t=="function"&&t.hasOwnProperty(HT)&&t.__forward_ref__===lt}function D(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function A(t){return{providers:t.providers||[],imports:t.imports||[]}}function kd(t){return Ry(t,S0)||Ry(t,M0)}function I0(t){return kd(t)!==null}function Ry(t,e){return t.hasOwnProperty(e)?t[e]:null}function $T(t){let e=t&&(t[S0]||t[M0]);return e||null}function Ay(t){return t&&(t.hasOwnProperty(Oy)||t.hasOwnProperty(GT))?t[Oy]:null}var S0=Ke({\u0275prov:Ke}),Oy=Ke({\u0275inj:Ke}),M0=Ke({ngInjectableDef:Ke}),GT=Ke({ngInjectorDef:Ke}),g=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=D({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function k0(t){return t&&!!t.\u0275providers}var WT=Ke({\u0275cmp:Ke}),qT=Ke({\u0275dir:Ke}),Fm=Ke({\u0275pipe:Ke}),YT=Ke({\u0275mod:Ke}),td=Ke({\u0275fac:Ke}),ya=Ke({__NG_ELEMENT_ID__:Ke}),Ny=Ke({__NG_ENV_ID__:Ke});function Td(t){return typeof t=="string"?t:t==null?"":String(t)}function ZT(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Td(t)}function QT(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new G(-200,t)}function Pm(t,e){throw new G(-201,!1)}var Ie=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(Ie||{}),Dp;function T0(){return Dp}function ci(t){let e=Dp;return Dp=t,e}function R0(t,e,r){let i=kd(t);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(r&Ie.Optional)return null;if(e!==void 0)return e;Pm(t,"Injector")}var KT={},xa=KT,Cp="__NG_DI_FLAG__",id="ngTempTokenPath",XT="ngTokenPath",JT=/\n/gm,eR="\u0275",Fy="__source",ns;function tR(){return ns}function pr(t){let e=ns;return ns=t,e}function iR(t,e=Ie.Default){if(ns===void 0)throw new G(-203,!1);return ns===null?R0(t,void 0,e):ns.get(t,e&Ie.Optional?null:void 0,e)}function m(t,e=Ie.Default){return(T0()||iR)(Qt(t),e)}function b(t,e=Ie.Default){return m(t,Rd(e))}function Rd(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Ep(t){let e=[];for(let r=0;r ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):Jt(a)))}n=`{${o.join(", ")}}`}return`${r}${i?"("+i+")":""}[${n}]: ${t.replace(JT,` - `)}`}var jm=Lm(Nm("Inject",t=>({token:t})),-1),xn=Lm(Nm("Optional"),8);var Yn=Lm(Nm("SkipSelf"),4);function to(t,e){let r=t.hasOwnProperty(td);return r?t[td]:null}function sR(t,e,r){if(t.length!==e.length)return!1;for(let i=0;iArray.isArray(r)?Vm(r,e):e(r))}function A0(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function nd(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function cR(t,e){let r=[];for(let i=0;ie;){let o=n-2;t[n]=t[o],n--}t[e]=r,t[e+1]=i}}function Ra(t,e,r){let i=Aa(t,e);return i>=0?t[i|1]=r:(i=~i,lR(t,i,e,r)),i}function ap(t,e){let r=Aa(t,e);if(r>=0)return t[r|1]}function Aa(t,e){return dR(t,e,1)}function dR(t,e,r){let i=0,n=t.length>>r;for(;n!==i;){let o=i+(n-i>>1),s=t[o<e?n=o:i=o+1}return~(n<e){s=o-1;break}}}for(;o-1){let o;for(;++no?u="":u=n[d+1].toLowerCase(),i&2&&l!==u){if(Zi(i))return!1;s=!0}}}}return Zi(i)||s}function Zi(t){return(t&1)===0}function gR(t,e,r,i){if(e===null)return-1;let n=0;if(i||!r){let o=!1;for(;n-1)for(r++;r0?'="'+a+'"':"")+"]"}else i&8?n+="."+s:i&4&&(n+=" "+s);else n!==""&&!Zi(s)&&(e+=Ly(o,n),n=""),i=s,o=o||!Zi(i);r++}return n!==""&&(e+=Ly(o,n)),e}function xR(t){return t.map(wR).join(",")}function DR(t){let e=[],r=[],i=1,n=2;for(;i{let e=H0(t),r=Q(w({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===F0.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||bn.Emulated,styles:t.styles||Kt,_:null,schemas:t.schemas||null,tView:null,id:""});$0(r);let i=t.dependencies;return r.directiveDefs=Vy(i,!1),r.pipeDefs=Vy(i,!0),r.id=IR(r),r})}function CR(t){return $n(t)||V0(t)}function ER(t){return t!==null}function O(t){return Ta(()=>({type:t.type,bootstrap:t.bootstrap||Kt,declarations:t.declarations||Kt,imports:t.imports||Kt,exports:t.exports||Kt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function jy(t,e){if(t==null)return os;let r={};for(let i in t)if(t.hasOwnProperty(i)){let n=t[i],o,s,a=vr.None;Array.isArray(n)?(a=n[0],o=n[1],s=n[2]??o):(o=n,s=n),e?(r[o]=a!==vr.None?[i,a]:i,e[o]=s):r[o]=i}return r}function I(t){return Ta(()=>{let e=H0(t);return $0(e),e})}function Ad(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function $n(t){return t[WT]||null}function V0(t){return t[qT]||null}function B0(t){return t[Fm]||null}function z0(t){let e=$n(t)||V0(t)||B0(t);return e!==null?e.standalone:!1}function U0(t,e){let r=t[YT]||null;if(!r&&e===!0)throw new Error(`Type ${Jt(t)} does not have '\u0275mod' property.`);return r}function H0(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||os,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Kt,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:jy(t.inputs,e),outputs:jy(t.outputs),debugInfo:null}}function $0(t){t.features?.forEach(e=>e(t))}function Vy(t,e){if(!t)return null;let r=e?B0:CR;return()=>(typeof t=="function"?t():t).map(i=>r(i)).filter(ER)}function IR(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let n of r)e=Math.imul(31,e)+n.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function gs(t){return{\u0275providers:t}}function SR(...t){return{\u0275providers:G0(!0,t),\u0275fromNgModule:!0}}function G0(t,...e){let r=[],i=new Set,n,o=s=>{r.push(s)};return Vm(e,s=>{let a=s;Sp(a,o,[],i)&&(n||=[],n.push(a))}),n!==void 0&&W0(n,o),r}function W0(t,e){for(let r=0;r{e(o,i)})}}function Sp(t,e,r,i){if(t=Qt(t),!t)return!1;let n=null,o=Ay(t),s=!o&&$n(t);if(!o&&!s){let c=t.ngModule;if(o=Ay(c),o)n=c;else return!1}else{if(s&&!s.standalone)return!1;n=t}let a=i.has(n);if(s){if(a)return!1;if(i.add(n),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)Sp(l,e,r,i)}}else if(o){if(o.imports!=null&&!a){i.add(n);let l;try{Vm(o.imports,d=>{Sp(d,e,r,i)&&(l||=[],l.push(d))})}finally{}l!==void 0&&W0(l,e)}if(!a){let l=to(n)||(()=>new n);e({provide:n,useFactory:l,deps:Kt},n),e({provide:N0,useValue:n,multi:!0},n),e({provide:gr,useValue:()=>m(n),multi:!0},n)}let c=o.providers;if(c!=null&&!a){let l=t;zm(c,d=>{e(d,l)})}}else return!1;return n!==t&&t.providers!==void 0}function zm(t,e){for(let r of t)k0(r)&&(r=r.\u0275providers),Array.isArray(r)?zm(r,e):e(r)}var MR=Ke({provide:String,useValue:Ke});function q0(t){return t!==null&&typeof t=="object"&&MR in t}function kR(t){return!!(t&&t.useExisting)}function TR(t){return!!(t&&t.useFactory)}function ss(t){return typeof t=="function"}function RR(t){return!!t.useClass}var Od=new g(""),Yl={},AR={},cp;function Nd(){return cp===void 0&&(cp=new rd),cp}var _t=class{},Ca=class extends _t{get destroyed(){return this._destroyed}constructor(e,r,i,n){super(),this.parent=r,this.source=i,this.scopes=n,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,kp(e,s=>this.processProvider(s)),this.records.set(O0,es(void 0,this)),n.has("environment")&&this.records.set(_t,es(void 0,this));let o=this.records.get(Od);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(N0,Kt,Ie.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=Te(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of r)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Te(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=pr(this),i=ci(void 0),n;try{return e()}finally{pr(r),ci(i)}}get(e,r=xa,i=Ie.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Ny))return e[Ny](this);i=Rd(i);let n,o=pr(this),s=ci(void 0);try{if(!(i&Ie.SkipSelf)){let c=this.records.get(e);if(c===void 0){let l=LR(e)&&kd(e);l&&this.injectableDefInScope(l)?c=es(Mp(e),Yl):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let a=i&Ie.Self?Nd():this.parent;return r=i&Ie.Optional&&r===xa?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[id]=a[id]||[]).unshift(Jt(e)),o)throw a;return rR(a,e,"R3InjectorError",this.source)}else throw a}finally{ci(s),pr(o)}}resolveInjectorInitializers(){let e=Te(null),r=pr(this),i=ci(void 0),n;try{let o=this.get(gr,Kt,Ie.Self);for(let s of o)s()}finally{pr(r),ci(i),Te(e)}}toString(){let e=[],r=this.records;for(let i of r.keys())e.push(Jt(i));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new G(205,!1)}processProvider(e){e=Qt(e);let r=ss(e)?e:Qt(e&&e.provide),i=NR(e);if(!ss(e)&&e.multi===!0){let n=this.records.get(r);n||(n=es(void 0,Yl,!0),n.factory=()=>Ep(n.multi),this.records.set(r,n)),r=e,n.multi.push(e)}this.records.set(r,i)}hydrate(e,r){let i=Te(null);try{return r.value===Yl&&(r.value=AR,r.value=r.factory()),typeof r.value=="object"&&r.value&&PR(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{Te(i)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=Qt(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function Mp(t){let e=kd(t),r=e!==null?e.factory:to(t);if(r!==null)return r;if(t instanceof g)throw new G(204,!1);if(t instanceof Function)return OR(t);throw new G(204,!1)}function OR(t){if(t.length>0)throw new G(204,!1);let r=$T(t);return r!==null?()=>r.factory(t):()=>new t}function NR(t){if(q0(t))return es(void 0,t.useValue);{let e=Y0(t);return es(e,Yl)}}function Y0(t,e,r){let i;if(ss(t)){let n=Qt(t);return to(n)||Mp(n)}else if(q0(t))i=()=>Qt(t.useValue);else if(TR(t))i=()=>t.useFactory(...Ep(t.deps||[]));else if(kR(t))i=()=>m(Qt(t.useExisting));else{let n=Qt(t&&(t.useClass||t.provide));if(FR(t))i=()=>new n(...Ep(t.deps));else return to(n)||Mp(n)}return i}function es(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function FR(t){return!!t.deps}function PR(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function LR(t){return typeof t=="function"||typeof t=="object"&&t instanceof g}function kp(t,e){for(let r of t)Array.isArray(r)?kp(r,e):r&&k0(r)?kp(r.\u0275providers,e):e(r)}function pi(t,e){t instanceof Ca&&t.assertNotDestroyed();let r,i=pr(t),n=ci(void 0);try{return e()}finally{pr(i),ci(n)}}function Z0(){return T0()!==void 0||tR()!=null}function Oa(t){if(!Z0())throw new G(-203,!1)}function jR(t){let e=ht.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function VR(t){return typeof t=="function"}var Dn=0,fe=1,ve=2,Ut=3,Qi=4,li=5,as=6,od=7,St=8,cs=9,_n=10,nt=11,Ea=12,By=13,vs=14,ui=15,io=16,ts=17,Gn=18,Na=19,Q0=20,mr=21,Zl=22,ki=23,ft=25,Um=1;var no=7,sd=8,ls=9,zt=10,ad=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(ad||{});function Hn(t){return Array.isArray(t)&&typeof t[Um]=="object"}function Zn(t){return Array.isArray(t)&&t[Um]===!0}function Hm(t){return(t.flags&4)!==0}function Fd(t){return t.componentOffset>-1}function Pd(t){return(t.flags&1)===1}function Wn(t){return!!t.template}function Tp(t){return(t[ve]&512)!==0}var Rp=class{constructor(e,r,i){this.previousValue=e,this.currentValue=r,this.firstChange=i}isFirstChange(){return this.firstChange}};function K0(t,e,r,i){e!==null?e.applyValueToInputSignal(e,i):t[r]=i}function Me(){return X0}function X0(t){return t.type.prototype.ngOnChanges&&(t.setInput=zR),BR}Me.ngInherit=!0;function BR(){let t=ew(this),e=t?.current;if(e){let r=t.previous;if(r===os)t.previous=e;else for(let i in e)r[i]=e[i];t.current=null,this.ngOnChanges(e)}}function zR(t,e,r,i,n){let o=this.declaredInputs[i],s=ew(t)||UR(t,{previous:os,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[o];a[o]=new Rp(l&&l.currentValue,r,c===os),K0(t,e,n,r)}var J0="__ngSimpleChanges__";function ew(t){return t[J0]||null}function UR(t,e){return t[J0]=e}var zy=null;var gn=function(t,e,r){zy?.(t,e,r)},tw="svg",HR="math";function hi(t){for(;Array.isArray(t);)t=t[Dn];return t}function $R(t){for(;Array.isArray(t);){if(typeof t[Um]=="object")return t;t=t[Dn]}return null}function iw(t,e){return hi(e[t])}function Ti(t,e){return hi(e[t.index])}function $m(t,e){return t.data[e]}function Gm(t,e){return t[e]}function yn(t,e){let r=e[t];return Hn(r)?r:r[Dn]}function GR(t){return(t[ve]&4)===4}function Wm(t){return(t[ve]&128)===128}function WR(t){return Zn(t[Ut])}function br(t,e){return e==null?null:t[e]}function nw(t){t[ts]=0}function rw(t){t[ve]&1024||(t[ve]|=1024,Wm(t)&&Ld(t))}function qR(t,e){for(;t>0;)e=e[vs],t--;return e}function Ia(t){return!!(t[ve]&9216||t[ki]?.dirty)}function Ap(t){t[_n].changeDetectionScheduler?.notify(7),t[ve]&64&&(t[ve]|=1024),Ia(t)&&Ld(t)}function Ld(t){t[_n].changeDetectionScheduler?.notify(0);let e=ro(t);for(;e!==null&&!(e[ve]&8192||(e[ve]|=8192,!Wm(e)));)e=ro(e)}function ow(t,e){if((t[ve]&256)===256)throw new G(911,!1);t[mr]===null&&(t[mr]=[]),t[mr].push(e)}function YR(t,e){if(t[mr]===null)return;let r=t[mr].indexOf(e);r!==-1&&t[mr].splice(r,1)}function ro(t){let e=t[Ut];return Zn(e)?e[Ut]:e}var xe={lFrame:mw(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var sw=!1;function ZR(){return xe.lFrame.elementDepthCount}function QR(){xe.lFrame.elementDepthCount++}function KR(){xe.lFrame.elementDepthCount--}function aw(){return xe.bindingsEnabled}function cw(){return xe.skipHydrationRootTNode!==null}function XR(t){return xe.skipHydrationRootTNode===t}function JR(){xe.skipHydrationRootTNode=null}function me(){return xe.lFrame.lView}function et(){return xe.lFrame.tView}function be(t){return xe.lFrame.contextLView=t,t[St]}function _e(t){return xe.lFrame.contextLView=null,t}function Mt(){let t=lw();for(;t!==null&&t.type===64;)t=t.parent;return t}function lw(){return xe.lFrame.currentTNode}function eA(){let t=xe.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function ho(t,e){let r=xe.lFrame;r.currentTNode=t,r.isParent=e}function qm(){return xe.lFrame.isParent}function Ym(){xe.lFrame.isParent=!1}function tA(){return xe.lFrame.contextLView}function dw(){return sw}function Uy(t){sw=t}function Fa(){let t=xe.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function iA(t){return xe.lFrame.bindingIndex=t}function yr(){return xe.lFrame.bindingIndex++}function uw(t){let e=xe.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function nA(){return xe.lFrame.inI18n}function rA(t,e){let r=xe.lFrame;r.bindingIndex=r.bindingRootIndex=t,Op(e)}function oA(){return xe.lFrame.currentDirectiveIndex}function Op(t){xe.lFrame.currentDirectiveIndex=t}function Zm(t){let e=xe.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function hw(){return xe.lFrame.currentQueryIndex}function Qm(t){xe.lFrame.currentQueryIndex=t}function sA(t){let e=t[fe];return e.type===2?e.declTNode:e.type===1?t[li]:null}function fw(t,e,r){if(r&Ie.SkipSelf){let n=e,o=t;for(;n=n.parent,n===null&&!(r&Ie.Host);)if(n=sA(o),n===null||(o=o[vs],n.type&10))break;if(n===null)return!1;e=n,t=o}let i=xe.lFrame=pw();return i.currentTNode=e,i.lView=t,!0}function Km(t){let e=pw(),r=t[fe];xe.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function pw(){let t=xe.lFrame,e=t===null?null:t.child;return e===null?mw(t):e}function mw(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function gw(){let t=xe.lFrame;return xe.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var vw=gw;function Xm(){let t=gw();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function aA(t){return(xe.lFrame.contextLView=qR(t,xe.lFrame.contextLView))[St]}function wr(){return xe.lFrame.selectedIndex}function oo(t){xe.lFrame.selectedIndex=t}function bs(){let t=xe.lFrame;return $m(t.tView,t.selectedIndex)}function di(){xe.lFrame.currentNamespace=tw}function jd(){cA()}function cA(){xe.lFrame.currentNamespace=null}function lA(){return xe.lFrame.currentNamespace}var bw=!0;function Vd(){return bw}function Bd(t){bw=t}function dA(t,e,r){let{ngOnChanges:i,ngOnInit:n,ngDoCheck:o}=e.type.prototype;if(i){let s=X0(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}n&&(r.preOrderHooks??=[]).push(0-t,n),o&&((r.preOrderHooks??=[]).push(t,o),(r.preOrderCheckHooks??=[]).push(t,o))}function zd(t,e){for(let r=e.directiveStart,i=e.directiveEnd;r=i)break}else e[c]<0&&(t[ts]+=65536),(a>14>16&&(t[ve]&3)===e&&(t[ve]+=16384,Hy(a,o)):Hy(a,o)}var rs=-1,so=class{constructor(e,r,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=i}};function hA(t){return t instanceof so}function fA(t){return(t.flags&8)!==0}function pA(t){return(t.flags&16)!==0}var dp={},Np=class{constructor(e,r){this.injector=e,this.parentInjector=r}get(e,r,i){i=Rd(i);let n=this.injector.get(e,dp,i);return n!==dp||r===dp?n:this.parentInjector.get(e,r,i)}};function yw(t){return t!==rs}function cd(t){return t&32767}function mA(t){return t>>16}function ld(t,e){let r=mA(t),i=e;for(;r>0;)i=i[vs],r--;return i}var Fp=!0;function dd(t){let e=Fp;return Fp=t,e}var gA=256,ww=gA-1,xw=5,vA=0,vn={};function bA(t,e,r){let i;typeof r=="string"?i=r.charCodeAt(0)||0:r.hasOwnProperty(ya)&&(i=r[ya]),i==null&&(i=r[ya]=vA++);let n=i&ww,o=1<>xw)]|=o}function ud(t,e){let r=Dw(t,e);if(r!==-1)return r;let i=e[fe];i.firstCreatePass&&(t.injectorIndex=e.length,up(i.data,t),up(e,null),up(i.blueprint,null));let n=Jm(t,e),o=t.injectorIndex;if(yw(n)){let s=cd(n),a=ld(n,e),c=a[fe].data;for(let l=0;l<8;l++)e[o+l]=a[s+l]|c[s+l]}return e[o+8]=n,o}function up(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Dw(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Jm(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,i=null,n=e;for(;n!==null;){if(i=Mw(n),i===null)return rs;if(r++,n=n[vs],i.injectorIndex!==-1)return i.injectorIndex|r<<16}return rs}function Pp(t,e,r){bA(t,e,r)}function _A(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let i=r.length,n=0;for(;n>20,u=i?a:a+d,f=n?a+d:l;for(let p=u;p=c&&v.type===r)return p}if(n){let p=s[c];if(p&&Wn(p)&&p.type===r)return c}return null}function ao(t,e,r,i){let n=t[r],o=e.data;if(hA(n)){let s=n;s.resolving&&QT(ZT(o[r]));let a=dd(s.canSeeViewProviders);s.resolving=!0;let c,l=s.injectImpl?ci(s.injectImpl):null,d=fw(t,i,Ie.Default);try{n=t[r]=s.factory(void 0,o,t,i),e.firstCreatePass&&r>=i.directiveStart&&dA(r,o[r],e)}finally{l!==null&&ci(l),dd(a),s.resolving=!1,vw()}}return n}function wA(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(ya)?t[ya]:void 0;return typeof e=="number"?e>=0?e&ww:xA:e}function $y(t,e,r){let i=1<>xw)]&i)}function Gy(t,e){return!(t&Ie.Self)&&!(t&Ie.Host&&e)}var eo=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,i){return Iw(this._tNode,this._lView,e,Rd(i),r)}};function xA(){return new eo(Mt(),me())}function qe(t){return Ta(()=>{let e=t.prototype.constructor,r=e[td]||Lp(e),i=Object.prototype,n=Object.getPrototypeOf(t.prototype).constructor;for(;n&&n!==i;){let o=n[td]||Lp(n);if(o&&o!==r)return o;n=Object.getPrototypeOf(n)}return o=>new o})}function Lp(t){return E0(t)?()=>{let e=Lp(Qt(t));return e&&e()}:to(t)}function DA(t,e,r,i,n){let o=t,s=e;for(;o!==null&&s!==null&&s[ve]&2048&&!(s[ve]&512);){let a=Sw(o,s,r,i|Ie.Self,vn);if(a!==vn)return a;let c=o.parent;if(!c){let l=s[Q0];if(l){let d=l.get(r,vn,i);if(d!==vn)return d}c=Mw(s),s=s[vs]}o=c}return n}function Mw(t){let e=t[fe],r=e.type;return r===2?e.declTNode:r===1?t[li]:null}function pt(t){return _A(Mt(),t)}function Wy(t,e=null,r=null,i){let n=kw(t,e,r,i);return n.resolveInjectorInitializers(),n}function kw(t,e=null,r=null,i,n=new Set){let o=[r||Kt,SR(t)];return i=i||(typeof t=="object"?void 0:Jt(t)),new Ca(o,e||Nd(),i||null,n)}var Jr=class Jr{static create(e,r){if(Array.isArray(e))return Wy({name:""},r,e,"");{let i=e.name??"";return Wy({name:i},e.parent,e.providers,i)}}};Jr.THROW_IF_NOT_FOUND=xa,Jr.NULL=new rd,Jr.\u0275prov=D({token:Jr,providedIn:"any",factory:()=>m(O0)}),Jr.__NG_ELEMENT_ID__=-1;var Se=Jr;var CA=new g("");CA.__NG_ELEMENT_ID__=t=>{let e=Mt();if(e===null)throw new G(204,!1);if(e.type&2)return e.value;if(t&Ie.Optional)return null;throw new G(204,!1)};var EA="ngOriginalError";function hp(t){return t[EA]}var Ft=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&hp(e);for(;r&&hp(r);)r=hp(r);return r||null}},Tw=new g("",{providedIn:"root",factory:()=>b(Ft).handleError.bind(void 0)}),fo=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=IA,e.__NG_ENV_ID__=i=>i;let t=e;return t})(),jp=class extends fo{constructor(e){super(),this._lView=e}onDestroy(e){return ow(this._lView,e),()=>YR(this._lView,e)}};function IA(){return new jp(me())}function SA(){return _s(Mt(),me())}function _s(t,e){return new N(Ti(t,e))}var N=(()=>{let e=class e{constructor(i){this.nativeElement=i}};e.__NG_ELEMENT_ID__=SA;let t=e;return t})();function MA(t){return t instanceof N?t.nativeElement:t}var Cn=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Pe(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let i=this.taskId++;return this.pendingTasks.add(i),i}remove(i){this.pendingTasks.delete(i),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var Vp=class extends C{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,Z0()&&(this.destroyRef=b(fo,{optional:!0})??void 0,this.pendingTasks=b(Cn,{optional:!0})??void 0)}emit(e){let r=Te(null);try{super.next(e)}finally{Te(r)}}subscribe(e,r,i){let n=e,o=r||(()=>null),s=i;if(e&&typeof e=="object"){let c=e;n=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=this.wrapInTimeout(o),n&&(n=this.wrapInTimeout(n)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:n,error:o,complete:s});return e instanceof ne&&e.add(a),a}wrapInTimeout(e){return r=>{let i=this.pendingTasks?.add();setTimeout(()=>{e(r),i!==void 0&&this.pendingTasks?.remove(i)})}}},B=Vp;function kA(){return this._results[Symbol.iterator]()}var Pt=class t{get changes(){return this._changes??=new B}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let r=t.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=kA)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let i=aR(e);(this._changesDetected=!sR(this._results,i,r))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function Rw(t){return(t.flags&128)===128}var eg=new Map,TA=0;function RA(){return TA++}function AA(t){eg.set(t[Na],t)}function Aw(t){return eg.get(t)||null}function OA(t){eg.delete(t[Na])}var Bp=class{get lView(){return Aw(this.lViewId)}constructor(e,r,i){this.lViewId=e,this.nodeIndex=r,this.native=i}};function Ow(t){let e=fp(t);if(e){if(Hn(e)){let r=e,i,n,o;if(Nw(t)){if(i=PA(r,t),i==-1)throw new Error("The provided component was not found in the application");n=t}else if(NA(t)){if(i=LA(r,t),i==-1)throw new Error("The provided directive was not found in the application");o=jA(i,r)}else if(i=Yy(r,t),i==-1)return null;let s=hi(r[i]),a=fp(s),c=a&&!Array.isArray(a)?a:qy(r,i,s);if(n&&c.component===void 0&&(c.component=n,Mi(c.component,c)),o&&c.directives===void 0){c.directives=o;for(let l=0;l=0){let a=hi(o[s]),c=qy(o,s,a);Mi(a,c),e=c;break}}}}return e||null}function qy(t,e,r){return new Bp(t[Na],e,r)}var zp="__ngContext__";function Mi(t,e){Hn(e)?(t[zp]=e[Na],AA(e)):t[zp]=e}function fp(t){let e=t[zp];return typeof e=="number"?Aw(e):e||null}function Nw(t){return t&&t.constructor&&t.constructor.\u0275cmp}function NA(t){return t&&t.constructor&&t.constructor.\u0275dir}function Yy(t,e){let r=t[fe];for(let i=ft;iBA}),BA="ng",tg=new g(""),Ri=new g("",{providedIn:"platform",factory:()=>"unknown"});var rt=new g(""),Pa=new g("",{providedIn:"root",factory:()=>VA().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var zA="h",UA="b";var HA=()=>null;function ig(t,e,r=!1){return HA(t,e,r)}var Vw=!1,$A=new g("",{providedIn:"root",factory:()=>Vw});var Ul;function GA(){if(Ul===void 0&&(Ul=null,ht.trustedTypes))try{Ul=ht.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ul}function Ud(t){return GA()?.createHTML(t)||t}var Hl;function WA(){if(Hl===void 0&&(Hl=null,ht.trustedTypes))try{Hl=ht.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Hl}function Zy(t){return WA()?.createScriptURL(t)||t}var qn=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${C0})`}},Hp=class extends qn{getTypeName(){return"HTML"}},$p=class extends qn{getTypeName(){return"Style"}},Gp=class extends qn{getTypeName(){return"Script"}},Wp=class extends qn{getTypeName(){return"URL"}},qp=class extends qn{getTypeName(){return"ResourceURL"}};function Ai(t){return t instanceof qn?t.changingThisBreaksApplicationSecurity:t}function xr(t,e){let r=qA(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${C0})`)}return r===e}function qA(t){return t instanceof qn&&t.getTypeName()||null}function Bw(t){return new Hp(t)}function zw(t){return new $p(t)}function Uw(t){return new Gp(t)}function Hw(t){return new Wp(t)}function $w(t){return new qp(t)}function YA(t){let e=new Zp(t);return ZA()?new Yp(e):e}var Yp=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let r=new window.DOMParser().parseFromString(Ud(e),"text/html").body;return r===null?this.inertDocumentHelper.getInertBodyElement(e):(r.removeChild(r.firstChild),r)}catch{return null}}},Zp=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let r=this.inertDocument.createElement("template");return r.innerHTML=Ud(e),r}};function ZA(){try{return!!new window.DOMParser().parseFromString(Ud(""),"text/html")}catch{return!1}}var QA=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Hd(t){return t=String(t),t.match(QA)?t:"unsafe:"+t}function Qn(t){let e={};for(let r of t.split(","))e[r]=!0;return e}function La(...t){let e={};for(let r of t)for(let i in r)r.hasOwnProperty(i)&&(e[i]=!0);return e}var Gw=Qn("area,br,col,hr,img,wbr"),Ww=Qn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),qw=Qn("rp,rt"),KA=La(qw,Ww),XA=La(Ww,Qn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),JA=La(qw,Qn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Qy=La(Gw,XA,JA,KA),Yw=Qn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),e1=Qn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),t1=Qn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),i1=La(Yw,e1,t1),n1=Qn("script,style,template"),Qp=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let r=e.firstChild,i=!0,n=[];for(;r;){if(r.nodeType===Node.ELEMENT_NODE?i=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,i&&r.firstChild){n.push(r),r=s1(r);continue}for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let o=o1(r);if(o){r=o;break}r=n.pop()}}return this.buf.join("")}startElement(e){let r=Ky(e).toLowerCase();if(!Qy.hasOwnProperty(r))return this.sanitizedSomething=!0,!n1.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);let i=e.attributes;for(let n=0;n"),!0}endElement(e){let r=Ky(e).toLowerCase();Qy.hasOwnProperty(r)&&!Gw.hasOwnProperty(r)&&(this.buf.push(""))}chars(e){this.buf.push(Xy(e))}};function r1(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function o1(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw Zw(e);return e}function s1(t){let e=t.firstChild;if(e&&r1(t,e))throw Zw(e);return e}function Ky(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function Zw(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var a1=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c1=/([^\#-~ |!])/g;function Xy(t){return t.replace(/&/g,"&").replace(a1,function(e){let r=e.charCodeAt(0),i=e.charCodeAt(1);return"&#"+((r-55296)*1024+(i-56320)+65536)+";"}).replace(c1,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var $l;function Qw(t,e){let r=null;try{$l=$l||YA(t);let i=e?String(e):"";r=$l.getInertBodyElement(i);let n=5,o=i;do{if(n===0)throw new Error("Failed to sanitize html because the input is unstable");n--,i=o,o=r.innerHTML,r=$l.getInertBodyElement(i)}while(i!==o);let a=new Qp().sanitizeChildren(Jy(r)||r);return Ud(a)}finally{if(r){let i=Jy(r)||r;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Jy(t){return"content"in t&&l1(t)?t.content:null}function l1(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Ht=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ht||{});function d1(t){let e=Xw();return e?e.sanitize(Ht.URL,t)||"":xr(t,"URL")?Ai(t):Hd(Td(t))}function u1(t){let e=Xw();if(e)return Zy(e.sanitize(Ht.RESOURCE_URL,t)||"");if(xr(t,"ResourceURL"))return Zy(Ai(t));throw new G(904,!1)}function h1(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?u1:d1}function Kw(t,e,r){return h1(e,r)(t)}function Xw(){let t=me();return t&&t[_n].sanitizer}var f1=/^>|^->||--!>|)/g,m1="\u200B$1\u200B";function g1(t){return t.replace(f1,e=>e.replace(p1,m1))}function FY(t){return t.ownerDocument.defaultView}function PY(t){return t.ownerDocument}function Jw(t){return t instanceof Function?t():t}function ex(t){return(t??b(Se)).get(Ri)==="browser"}var wn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(wn||{}),v1;function ng(t,e){return v1(t,e)}function is(t,e,r,i,n){if(i!=null){let o,s=!1;Zn(i)?o=i:Hn(i)&&(s=!0,i=i[Dn]);let a=hi(i);t===0&&r!==null?n==null?ox(e,r,a):hd(e,r,a,n||null,!0):t===1&&r!==null?hd(e,r,a,n||null,!0):t===2?A1(e,a,s):t===3&&e.destroyNode(a),o!=null&&N1(e,t,o,r,n)}}function b1(t,e){return t.createText(e)}function _1(t,e,r){t.setValue(e,r)}function y1(t,e){return t.createComment(g1(e))}function tx(t,e,r){return t.createElement(e,r)}function w1(t,e){ix(t,e),e[Dn]=null,e[li]=null}function x1(t,e,r,i,n,o){i[Dn]=n,i[li]=e,Wd(t,i,r,1,n,o)}function ix(t,e){e[_n].changeDetectionScheduler?.notify(8),Wd(t,e,e[nt],2,null,null)}function D1(t){let e=t[Ea];if(!e)return pp(t[fe],t);for(;e;){let r=null;if(Hn(e))r=e[Ea];else{let i=e[zt];i&&(r=i)}if(!r){for(;e&&!e[Qi]&&e!==t;)Hn(e)&&pp(e[fe],e),e=e[Ut];e===null&&(e=t),Hn(e)&&pp(e[fe],e),r=e&&e[Qi]}e=r}}function C1(t,e,r,i){let n=zt+i,o=r.length;i>0&&(r[n-1][Qi]=e),i0&&(t[r-1][Qi]=i[Qi]);let o=nd(t,zt+e);w1(i[fe],i);let s=o[Gn];s!==null&&s.detachView(o[fe]),i[Ut]=null,i[Qi]=null,i[ve]&=-129}return i}function $d(t,e){if(!(e[ve]&256)){let r=e[nt];r.destroyNode&&Wd(t,e,r,3,null,null),D1(e)}}function pp(t,e){if(e[ve]&256)return;let r=Te(null);try{e[ve]&=-129,e[ve]|=256,e[ki]&&sl(e[ki]),I1(t,e),E1(t,e),e[fe].type===1&&e[nt].destroy();let i=e[io];if(i!==null&&Zn(e[Ut])){i!==e[Ut]&&rg(i,e);let n=e[Gn];n!==null&&n.detachView(t)}OA(e)}finally{Te(r)}}function E1(t,e){let r=t.cleanup,i=e[od];if(r!==null)for(let o=0;o=0?i[s]():i[-s].unsubscribe(),o+=2}else{let s=i[r[o+1]];r[o].call(s)}i!==null&&(e[od]=null);let n=e[mr];if(n!==null){e[mr]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[i.directiveStart+n];if(o===bn.None||o===bn.Emulated)return null}return Ti(i,r)}}function hd(t,e,r,i,n){t.insertBefore(e,r,i,n)}function ox(t,e,r){t.appendChild(e,r)}function e0(t,e,r,i,n){i!==null?hd(t,e,r,i,n):ox(t,e,r)}function M1(t,e,r,i){t.removeChild(e,r,i)}function og(t,e){return t.parentNode(e)}function k1(t,e){return t.nextSibling(e)}function sx(t,e,r){return R1(t,e,r)}function T1(t,e,r){return t.type&40?Ti(t,r):null}var R1=T1,t0;function Gd(t,e,r,i){let n=rx(t,i,e),o=e[nt],s=i.parent||e[li],a=sx(s,i,e);if(n!=null)if(Array.isArray(r))for(let c=0;cft&&ux(t,e,ft,!1),gn(s?2:0,n),r(i,n)}finally{oo(o),gn(s?3:1,n)}}function ag(t,e,r){if(Hm(e)){let i=Te(null);try{let n=e.directiveStart,o=e.directiveEnd;for(let s=n;snull;function H1(t,e,r,i){let n=yx(e);n.push(r),t.firstCreatePass&&wx(t).push(i,n.length-1)}function $1(t,e,r,i,n,o){let s=e?e.injectorIndex:-1,a=0;return cw()&&(a|=128),{type:r,index:i,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:n,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function i0(t,e,r,i,n){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;i??={};let a,c=vr.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let l=o;if(n!==null){if(!n.hasOwnProperty(o))continue;l=n[o]}t===0?n0(i,r,l,a,c):n0(i,r,l,a)}return i}function n0(t,e,r,i,n){let o;t.hasOwnProperty(r)?(o=t[r]).push(e,i):o=t[r]=[e,i],n!==void 0&&o.push(n)}function G1(t,e,r){let i=e.directiveStart,n=e.directiveEnd,o=t.data,s=e.attrs,a=[],c=null,l=null;for(let d=i;d0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function Q1(t,e,r,i){let n=r.directiveStart,o=r.directiveEnd;Fd(r)&&nO(e,r,t.data[n+r.componentOffset]),t.firstCreatePass||ud(r,e),Mi(i,e);let s=r.initialInputs;for(let a=n;a{Ld(t.lView)},consumerOnSignalRead(){this.lView[ki]=this}});function vO(t){let e=t[ki]??Object.create(bO);return e.lView=t,e}var bO=Q(w({},zo),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=ro(t.lView);for(;e&&!Sx(e[fe]);)e=ro(e);e&&rw(e)},consumerOnSignalRead(){this.lView[ki]=this}});function Sx(t){return t.type!==2}var _O=100;function Mx(t,e=!0,r=0){let i=t[_n],n=i.rendererFactory,o=!1;o||n.begin?.();try{yO(t,r)}catch(s){throw e&&Dx(t,s),s}finally{o||(n.end?.(),i.inlineEffectRunner?.flush())}}function yO(t,e){let r=dw();try{Uy(!0),em(t,e);let i=0;for(;Ia(t);){if(i===_O)throw new G(103,!1);i++,em(t,1)}}finally{Uy(r)}}function wO(t,e,r,i){let n=e[ve];if((n&256)===256)return;let o=!1,s=!1;!o&&e[_n].inlineEffectRunner?.flush(),Km(e);let a=!0,c=null,l=null;o||(Sx(t)?(l=fO(e),c=aa(l)):B_()===null?(a=!1,l=vO(e),c=aa(l)):e[ki]&&(sl(e[ki]),e[ki]=null));try{nw(e),iA(t.bindingStartIndex),r!==null&&px(t,e,r,2,i);let d=(n&3)===3;if(!o)if(d){let p=t.preOrderCheckHooks;p!==null&&Ql(e,p,null)}else{let p=t.preOrderHooks;p!==null&&Kl(e,p,0,null),lp(e,0)}if(s||xO(e),kx(e,0),t.contentQueries!==null&&_x(t,e),!o)if(d){let p=t.contentCheckHooks;p!==null&&Ql(e,p)}else{let p=t.contentHooks;p!==null&&Kl(e,p,1),lp(e,1)}L1(t,e);let u=t.components;u!==null&&Rx(e,u,0);let f=t.viewQuery;if(f!==null&&Jp(2,f,i),!o)if(d){let p=t.viewCheckHooks;p!==null&&Ql(e,p)}else{let p=t.viewHooks;p!==null&&Kl(e,p,2),lp(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Zl]){for(let p of e[Zl])p();e[Zl]=null}o||(e[ve]&=-73)}catch(d){throw o||Ld(e),d}finally{l!==null&&(rl(l,c),a&&mO(l)),Xm()}}function kx(t,e){for(let r=Fw(t);r!==null;r=Pw(r))for(let i=zt;i-1&&(Sa(e,i),nd(r,i))}this._attachedToViewContainer=!1}$d(this._lView[fe],this._lView)}onDestroy(e){ow(this._lView,e)}markForCheck(){pg(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[ve]&=-129}reattach(){Ap(this._lView),this._lView[ve]|=128}detectChanges(){this._lView[ve]|=1024,Mx(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new G(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Tp(this._lView),r=this._lView[io];r!==null&&!e&&rg(r,this._lView),ix(this._lView[fe],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new G(902,!1);this._appRef=e;let r=Tp(this._lView),i=this._lView[io];i!==null&&!r&&nx(i,this._lView),Ap(this._lView)}},Re=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=IO;let t=e;return t})(),CO=Re,EO=class extends CO{constructor(e,r,i){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,i){let n=Ba(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:i});return new co(n)}};function IO(){return Zd(Mt(),me())}function Zd(t,e){return t.type&4?new EO(e,t,_s(t,e)):null}var jY=new RegExp(`^(\\d+)*(${UA}|${zA})*(.*)`);var SO=()=>null;function us(t,e){return SO(t,e)}var hs=class{},Ax=new g("",{providedIn:"root",factory:()=>!1});var Ox=new g(""),tm=class{},pd=class{};function MO(t){let e=Error(`No component factory found for ${Jt(t)}.`);return e[kO]=t,e}var kO="ngComponent";var im=class{resolveComponentFactory(e){throw MO(e)}},Rg=class Rg{};Rg.NULL=new im;var Ki=Rg,fs=class{},En=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>TO();let t=e;return t})();function TO(){let t=me(),e=Mt(),r=yn(e.index,t);return(Hn(r)?r:t)[nt]}var RO=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();var r0=new Set;function In(t){r0.has(t)||(r0.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function Nx(t){let e=!0;return setTimeout(()=>{e&&(e=!1,t())}),typeof ht.requestAnimationFrame=="function"&&ht.requestAnimationFrame(()=>{e&&(e=!1,t())}),()=>{e=!1}}function o0(t){let e=!0;return queueMicrotask(()=>{e&&t()}),()=>{e=!1}}function s0(...t){}var F=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new B(!1),this.onMicrotaskEmpty=new B(!1),this.onStable=new B(!1),this.onError=new B(!1),typeof Zone>"u")throw new G(908,!1);Zone.assertZonePatched();let n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=!i&&r,n.shouldCoalesceRunChangeDetection=i,n.callbackScheduled=!1,NO(n)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new G(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new G(909,!1)}run(e,r,i){return this._inner.run(e,r,i)}runTask(e,r,i,n){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+n,e,AO,s0,s0);try{return o.runTask(s,r,i)}finally{o.cancelTask(s)}}runGuarded(e,r,i){return this._inner.runGuarded(e,r,i)}runOutsideAngular(e){return this._outer.run(e)}},AO={};function mg(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function OO(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{Nx(()=>{t.callbackScheduled=!1,nm(t),t.isCheckStableRunning=!0,mg(t),t.isCheckStableRunning=!1})}),nm(t))}function NO(t){let e=()=>{OO(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,i,n,o,s,a)=>{if(FO(a))return r.invokeTask(n,o,s,a);try{return a0(t),r.invokeTask(n,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),c0(t)}},onInvoke:(r,i,n,o,s,a,c)=>{try{return a0(t),r.invoke(n,o,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!PO(a)&&e(),c0(t)}},onHasTask:(r,i,n,o)=>{r.hasTask(n,o),i===n&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,nm(t),mg(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,i,n,o)=>(r.handleError(n,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function nm(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function a0(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function c0(t){t._nesting--,mg(t)}var md=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new B,this.onMicrotaskEmpty=new B,this.onStable=new B,this.onError=new B}run(e,r,i){return e.apply(r,i)}runGuarded(e,r,i){return e.apply(r,i)}runOutsideAngular(e){return e()}runTask(e,r,i,n){return e.apply(r,i)}};function FO(t){return Fx(t,"__ignore_ng_zone__")}function PO(t){return Fx(t,"__scheduler_tick__")}function Fx(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}function LO(t="zone.js",e){return t==="noop"?new md:t==="zone.js"?new F(e):t}var Xt=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Xt||{}),Px={destroy(){}};function Ua(t,e){!e&&Oa(Ua);let r=e?.injector??b(Se);return ex(r)?(In("NgAfterRender"),Lx(t,r,!1,e?.phase??Xt.MixedReadWrite)):Px}function $t(t,e){!e&&Oa($t);let r=e?.injector??b(Se);return ex(r)?(In("NgAfterNextRender"),Lx(t,r,!0,e?.phase??Xt.MixedReadWrite)):Px}function jO(t,e){if(t instanceof Function)switch(e){case Xt.EarlyRead:return{earlyRead:t};case Xt.Write:return{write:t};case Xt.MixedReadWrite:return{mixedReadWrite:t};case Xt.Read:return{read:t}}return t}function Lx(t,e,r,i){let n=jO(t,i),o=e.get(gg),s=o.handler??=new om,a=[],c=[],l=()=>{for(let f of c)s.unregister(f);d()},d=e.get(fo).onDestroy(l),u=(f,p)=>{if(!p)return;let v=r?(...E)=>{l(),p(...E)}:p,S=pi(e,()=>new rm(f,a,v));s.register(S),c.push(S)};return u(Xt.EarlyRead,n.earlyRead),u(Xt.Write,n.write),u(Xt.MixedReadWrite,n.mixedReadWrite),u(Xt.Read,n.read),{destroy:l}}var rm=class{constructor(e,r,i){this.phase=e,this.pipelinedArgs=r,this.callbackFn=i,this.zone=b(F),this.errorHandler=b(Ft,{optional:!0}),b(hs,{optional:!0})?.notify(6)}invoke(){try{let e=this.zone.runOutsideAngular(()=>this.callbackFn.apply(null,this.pipelinedArgs));this.pipelinedArgs.splice(0,this.pipelinedArgs.length,e)}catch(e){this.errorHandler?.handleError(e)}}},om=class{constructor(){this.executingCallbacks=!1,this.buckets={[Xt.EarlyRead]:new Set,[Xt.Write]:new Set,[Xt.MixedReadWrite]:new Set,[Xt.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let r of e)r.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},gg=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let i=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let n of i)n()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function gd(t,e,r){let i=r?t.styles:null,n=r?t.classes:null,o=0;if(e!==null)for(let s=0;s0&&lx(t,r,o.join(" "))}}function GO(t,e,r){let i=t.projection=[];for(let n=0;n{let e=class e{};e.__NG_ELEMENT_ID__=qO;let t=e;return t})();function qO(){let t=Mt();return Vx(t,me())}var YO=Ve,jx=class extends YO{constructor(e,r,i){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=i}get element(){return _s(this._hostTNode,this._hostLView)}get injector(){return new eo(this._hostTNode,this._hostLView)}get parentInjector(){let e=Jm(this._hostTNode,this._hostLView);if(yw(e)){let r=ld(e,this._hostLView),i=cd(e),n=r[fe].data[i+8];return new eo(n,r)}else return new eo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=d0(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-zt}createEmbeddedView(e,r,i){let n,o;typeof i=="number"?n=i:i!=null&&(n=i.index,o=i.injector);let s=us(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,n,ds(this._hostTNode,s)),a}createComponent(e,r,i,n,o){let s=e&&!VR(e),a;if(s)a=r;else{let v=r||{};a=v.index,i=v.injector,n=v.projectableNodes,o=v.environmentInjector||v.ngModuleRef}let c=s?e:new lo($n(e)),l=i||this.parentInjector;if(!o&&c.ngModule==null){let S=(s?l:this.parentInjector).get(_t,null);S&&(o=S)}let d=$n(c.componentType??{}),u=us(this._lContainer,d?.id??null),f=u?.firstChild??null,p=c.create(l,n,f,o);return this.insertImpl(p.hostView,a,ds(this._hostTNode,u)),p}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,i){let n=e._lView;if(WR(n)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=n[Ut],l=new jx(c,c[li],c[Ut]);l.detach(l.indexOf(e))}}let o=this._adjustIndex(r),s=this._lContainer;return za(s,n,o,i),e.attachToViewContainerRef(),A0(mp(s),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=d0(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),i=Sa(this._lContainer,r);i&&(nd(mp(this._lContainer),r),$d(i[fe],i))}detach(e){let r=this._adjustIndex(e,-1),i=Sa(this._lContainer,r);return i&&nd(mp(this._lContainer),r)!=null?new co(i):null}_adjustIndex(e,r=0){return e??this.length+r}};function d0(t){return t[sd]}function mp(t){return t[sd]||(t[sd]=[])}function Vx(t,e){let r,i=e[t.index];return Zn(i)?r=i:(r=bx(i,e,null,t),e[t.index]=r,Yd(e,r)),QO(r,e,t,i),new jx(r,t,e)}function ZO(t,e){let r=t[nt],i=r.createComment(""),n=Ti(e,t),o=og(r,n);return hd(r,o,i,k1(r,n),!1),i}var QO=JO,KO=()=>!1;function XO(t,e,r){return KO(t,e,r)}function JO(t,e,r,i){if(t[no])return;let n;r.type&8?n=hi(i):n=ZO(e,r),t[no]=n}var am=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},cm=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let i=e.contentQueries!==null?e.contentQueries[0]:r.length,n=[];for(let o=0;o0)i.push(s[a/2]);else{let l=o[a+1],d=e[-c];for(let u=zt;ue.trim())}function Ux(t,e,r){t.queries===null&&(t.queries=new lm),t.queries.track(new dm(e,r))}function cN(t,e){let r=t.contentQueries||(t.contentQueries=[]),i=r.length?r[r.length-1]:-1;e!==i&&r.push(t.queries.length-1,e)}function vg(t,e){return t.queries.getByIndex(e)}function lN(t,e){let r=t[fe],i=vg(r,e);return i.crossesNgTemplate?um(r,t,e,[]):Bx(r,t,i,e)}function Qd(t){return typeof t=="function"&&t[an]!==void 0}function Ni(t,e){In("NgSignals");let r=X_(t),i=r[an];return e?.equal&&(i.equal=e.equal),r.set=n=>Vf(i,n),r.update=n=>J_(i,n),r.asReadonly=dN.bind(r),r}function dN(){let t=this[an];if(t.readonlyFn===void 0){let e=()=>this();e[an]=t,t.readonlyFn=e}return t.readonlyFn}function Hx(t){return Qd(t)&&typeof t.set=="function"}function uN(t){let e=[],r=new Map;function i(n){let o=r.get(n);if(!o){let s=t(n);r.set(n,o=s.then(mN))}return o}return _d.forEach((n,o)=>{let s=[];n.templateUrl&&s.push(i(n.templateUrl).then(l=>{n.template=l}));let a=typeof n.styles=="string"?[n.styles]:n.styles||[];if(n.styles=a,n.styleUrl&&n.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(n.styleUrls?.length){let l=n.styles.length,d=n.styleUrls;n.styleUrls.forEach((u,f)=>{a.push(""),s.push(i(u).then(p=>{a[l+f]=p,d.splice(d.indexOf(u),1),d.length==0&&(n.styleUrls=void 0)}))})}else n.styleUrl&&s.push(i(n.styleUrl).then(l=>{a.push(l),n.styleUrl=void 0}));let c=Promise.all(s).then(()=>gN(o));e.push(c)}),fN(),Promise.all(e).then(()=>{})}var _d=new Map,hN=new Set;function fN(){let t=_d;return _d=new Map,t}function pN(){return _d.size===0}function mN(t){return typeof t=="string"?t:t.text()}function gN(t){hN.delete(t)}function vN(t){return Object.getPrototypeOf(t.prototype).constructor}function ae(t){let e=vN(t.type),r=!0,i=[t];for(;e;){let n;if(Wn(t))n=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new G(903,!1);n=e.\u0275dir}if(n){if(r){i.push(n);let s=t;s.inputs=Gl(t.inputs),s.inputTransforms=Gl(t.inputTransforms),s.declaredInputs=Gl(t.declaredInputs),s.outputs=Gl(t.outputs);let a=n.hostBindings;a&&xN(t,a);let c=n.viewQuery,l=n.contentQueries;if(c&&yN(t,c),l&&wN(t,l),bN(t,n),UT(t.outputs,n.outputs),Wn(n)&&n.data.animation){let d=t.data;d.animation=(d.animation||[]).concat(n.data.animation)}}let o=n.features;if(o)for(let s=0;s=0;i--){let n=t[i];n.hostVars=e+=n.hostVars,n.hostAttrs=Da(n.hostAttrs,r=Da(r,n.hostAttrs))}}function Gl(t){return t===os?{}:t===Kt?[]:t}function yN(t,e){let r=t.viewQuery;r?t.viewQuery=(i,n)=>{e(i,n),r(i,n)}:t.viewQuery=e}function wN(t,e){let r=t.contentQueries;r?t.contentQueries=(i,n,o)=>{e(i,n,o),r(i,n,o)}:t.contentQueries=e}function xN(t,e){let r=t.hostBindings;r?t.hostBindings=(i,n)=>{e(i,n),r(i,n)}:t.hostBindings=e}function re(t){let e=t.inputConfig,r={};for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];Array.isArray(n)&&n[3]&&(r[i]=n[3])}t.inputTransforms=r}var _r=class{},Ma=class{};var yd=class extends _r{constructor(e,r,i){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new vd(this);let n=U0(e);this._bootstrapComponents=Jw(n.bootstrap),this._r3Injector=kw(e,r,[{provide:_r,useValue:this},{provide:Ki,useValue:this.componentFactoryResolver},...i],Jt(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},wd=class extends Ma{constructor(e){super(),this.moduleType=e}create(e){return new yd(this.moduleType,e,[])}};function DN(t,e,r){return new yd(t,e,r)}var hm=class extends _r{constructor(e){super(),this.componentFactoryResolver=new vd(this),this.instance=null;let r=new Ca([...e.providers,{provide:_r,useValue:this},{provide:Ki,useValue:this.componentFactoryResolver}],e.parent||Nd(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Kd(t,e,r=null){return new hm({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}function $x(t){return bg(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function CN(t,e){if(Array.isArray(t))for(let r=0;r>17&32767}function RN(t){return(t&2)==2}function AN(t,e){return t&131071|e<<17}function fm(t){return t|2}function ps(t){return(t&131068)>>2}function gp(t,e){return t&-131069|e<<2}function ON(t){return(t&1)===1}function pm(t){return t|1}function NN(t,e,r,i,n,o){let s=o?e.classBindings:e.styleBindings,a=uo(s),c=ps(s);t[i]=r;let l=!1,d;if(Array.isArray(r)){let u=r;d=u[1],(d===null||Aa(u,d)>0)&&(l=!0)}else d=r;if(n)if(c!==0){let f=uo(t[a+1]);t[i+1]=Wl(f,a),f!==0&&(t[f+1]=gp(t[f+1],i)),t[a+1]=AN(t[a+1],i)}else t[i+1]=Wl(a,0),a!==0&&(t[a+1]=gp(t[a+1],i)),a=i;else t[i+1]=Wl(c,0),a===0?a=i:t[c+1]=gp(t[c+1],i),c=i;l&&(t[i+1]=fm(t[i+1])),u0(t,d,i,!0),u0(t,d,i,!1),FN(e,d,t,i,o),s=Wl(a,c),o?e.classBindings=s:e.styleBindings=s}function FN(t,e,r,i,n){let o=n?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&Aa(o,e)>=0&&(r[i+1]=pm(r[i+1]))}function u0(t,e,r,i){let n=t[r+1],o=e===null,s=i?uo(n):ps(n),a=!1;for(;s!==0&&(a===!1||o);){let c=t[s],l=t[s+1];PN(c,e)&&(a=!0,t[s+1]=i?pm(l):fm(l)),s=i?uo(l):ps(l)}a&&(t[r+1]=i?fm(n):pm(n))}function PN(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Aa(t,e)>=0:!1}var Ct={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Gx(t){return t.substring(Ct.key,Ct.keyEnd)}function LN(t){return t.substring(Ct.value,Ct.valueEnd)}function jN(t){return Yx(t),Wx(t,ms(t,0,Ct.textEnd))}function Wx(t,e){let r=Ct.textEnd;return r===e?-1:(e=Ct.keyEnd=BN(t,Ct.key=e,r),ms(t,e,r))}function VN(t){return Yx(t),qx(t,ms(t,0,Ct.textEnd))}function qx(t,e){let r=Ct.textEnd,i=Ct.key=ms(t,e,r);return r===i?-1:(i=Ct.keyEnd=zN(t,i,r),i=h0(t,i,r,58),i=Ct.value=ms(t,i,r),i=Ct.valueEnd=UN(t,i,r),h0(t,i,r,59))}function Yx(t){Ct.key=0,Ct.keyEnd=0,Ct.value=0,Ct.valueEnd=0,Ct.textEnd=t.length}function ms(t,e,r){for(;e32;)e++;return e}function zN(t,e,r){let i;for(;e=65&&(i&-33)<=90||i>=48&&i<=57);)e++;return e}function h0(t,e,r,i){return e=ms(t,e,r),e32&&(a=s),o=n,n=i,i=c&-33}return a}function f0(t,e,r,i){let n=-1,o=r;for(;o=0;r=qx(e,r))Jx(t,Gx(e),LN(e))}function kt(t){wg(ZN,Zx,t,!0)}function Zx(t,e){for(let r=jN(e);r>=0;r=Wx(e,r))Ra(t,Gx(e),!0)}function Qx(t,e,r,i){let n=me(),o=et(),s=uw(2);if(o.firstUpdatePass&&Xx(o,t,s,i),e!==Oi&&fi(n,s,e)){let a=o.data[wr()];eD(o,a,n,n[nt],t,n[s+1]=KN(e,r),i,s)}}function wg(t,e,r,i){let n=et(),o=uw(2);n.firstUpdatePass&&Xx(n,null,o,i);let s=me();if(r!==Oi&&fi(s,o,r)){let a=n.data[wr()];if(tD(a,i)&&!Kx(n,o)){let c=i?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(r=xp(c,r||"")),mm(n,a,s,r,i)}else QN(n,a,s,s[nt],s[o+1],s[o+1]=YN(t,e,r),i,o)}}function Kx(t,e){return e>=t.expandoStartIndex}function Xx(t,e,r,i){let n=t.data;if(n[r+1]===null){let o=n[wr()],s=Kx(t,r);tD(o,i)&&e===null&&!s&&(e=!1),e=$N(n,o,e,i),NN(n,o,e,r,s,i)}}function $N(t,e,r,i){let n=Zm(t),o=i?e.residualClasses:e.residualStyles;if(n===null)(i?e.classBindings:e.styleBindings)===0&&(r=vp(null,t,e,r,i),r=ka(r,e.attrs,i),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==n)if(r=vp(n,t,e,r,i),o===null){let c=GN(t,e,i);c!==void 0&&Array.isArray(c)&&(c=vp(null,t,e,c[1],i),c=ka(c,e.attrs,i),WN(t,e,i,c))}else o=qN(t,e,i)}return o!==void 0&&(i?e.residualClasses=o:e.residualStyles=o),r}function GN(t,e,r){let i=r?e.classBindings:e.styleBindings;if(ps(i)!==0)return t[uo(i)]}function WN(t,e,r,i){let n=r?e.classBindings:e.styleBindings;t[uo(n)]=i}function qN(t,e,r){let i,n=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let c=t[n],l=Array.isArray(c),d=l?c[1]:c,u=d===null,f=r[n+1];f===Oi&&(f=u?Kt:void 0);let p=u?ap(f,i):d===i?f:void 0;if(l&&!Dd(p)&&(p=ap(c,i)),Dd(p)&&(a=p,s))return a;let v=t[n+1];n=s?uo(v):ps(v)}if(e!==null){let c=o?e.residualClasses:e.residualStyles;c!=null&&(a=ap(c,i))}return a}function Dd(t){return t!==void 0}function KN(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=Jt(Ai(t)))),t}function tD(t,e){return(t.flags&(e?8:16))!==0}function Xd(t,e,r){let i=me(),n=yg(i,t,e,r);wg(Ra,Zx,n,!0)}var gm=class{destroy(e){}updateValue(e,r){}swap(e,r){let i=Math.min(e,r),n=Math.max(e,r),o=this.detach(n);if(n-i>1){let s=this.detach(i);this.attach(i,o),this.attach(n,s)}else this.attach(i,o)}move(e,r){this.attach(r,this.detach(e))}};function bp(t,e,r,i,n){return t===r&&Object.is(e,i)?1:Object.is(n(t,e),n(r,i))?-1:0}function XN(t,e,r){let i,n,o=0,s=t.length-1,a=void 0;if(Array.isArray(e)){let c=e.length-1;for(;o<=s&&o<=c;){let l=t.at(o),d=e[o],u=bp(o,l,o,d,r);if(u!==0){u<0&&t.updateValue(o,d),o++;continue}let f=t.at(s),p=e[c],v=bp(s,f,c,p,r);if(v!==0){v<0&&t.updateValue(s,p),s--,c--;continue}let S=r(o,l),E=r(s,f),R=r(o,d);if(Object.is(R,E)){let he=r(c,p);Object.is(he,S)?(t.swap(o,s),t.updateValue(s,p),c--,s--):t.move(s,o),t.updateValue(o,d),o++;continue}if(i??=new Cd,n??=g0(t,o,s,r),vm(t,i,o,R))t.updateValue(o,d),o++,s++;else if(n.has(R))i.set(S,t.detach(o)),s--;else{let he=t.create(o,e[o]);t.attach(o,he),o++,s++}}for(;o<=c;)m0(t,i,r,o,e[o]),o++}else if(e!=null){let c=e[Symbol.iterator](),l=c.next();for(;!l.done&&o<=s;){let d=t.at(o),u=l.value,f=bp(o,d,o,u,r);if(f!==0)f<0&&t.updateValue(o,u),o++,l=c.next();else{i??=new Cd,n??=g0(t,o,s,r);let p=r(o,u);if(vm(t,i,o,p))t.updateValue(o,u),o++,s++,l=c.next();else if(!n.has(p))t.attach(o,t.create(o,u)),o++,s++,l=c.next();else{let v=r(o,d);i.set(v,t.detach(o)),s--}}}for(;!l.done;)m0(t,i,r,t.length,l.value),l=c.next()}for(;o<=s;)t.destroy(t.detach(s--));i?.forEach(c=>{t.destroy(c)})}function vm(t,e,r,i){return e!==void 0&&e.has(i)?(t.attach(r,e.get(i)),e.delete(i),!0):!1}function m0(t,e,r,i,n){if(vm(t,e,i,r(i,n)))t.updateValue(i,n);else{let o=t.create(i,n);t.attach(i,o)}}function g0(t,e,r,i){let n=new Set;for(let o=e;o<=r;o++)n.add(i(o,t.at(o)));return n}var Cd=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let r=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(r)?(this.kvMap.set(e,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,r){if(this.kvMap.has(e)){let i=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let n=this._vMap;for(;n.has(i);)i=n.get(i);n.set(i,r)}else this.kvMap.set(e,r)}forEach(e){for(let[r,i]of this.kvMap)if(e(i,r),this._vMap!==void 0){let n=this._vMap;for(;n.has(i);)i=n.get(i),e(i,r)}}};function le(t,e){In("NgControlFlow");let r=me(),i=yr(),n=r[i]!==Oi?r[i]:-1,o=n!==-1?Ed(r,ft+n):void 0,s=0;if(fi(r,i,t)){let a=Te(null);try{if(o!==void 0&&Ex(o,s),t!==-1){let c=ft+t,l=Ed(r,c),d=wm(r[fe],c),u=us(l,d.tView.ssrId),f=Ba(r,d,e,{dehydratedView:u});za(l,f,s,ds(d,u))}}finally{Te(a)}}else if(o!==void 0){let a=Cx(o,s);a!==void 0&&(a[St]=e)}}var bm=class{constructor(e,r,i){this.lContainer=e,this.$implicit=r,this.$index=i}get $count(){return this.lContainer.length-zt}};function Jd(t,e){return e}var _m=class{constructor(e,r,i){this.hasEmptyBlock=e,this.trackByFn=r,this.liveCollection=i}};function eu(t,e,r,i,n,o,s,a,c,l,d,u,f){In("NgControlFlow");let p=me(),v=et(),S=c!==void 0,E=me(),R=a?s.bind(E[ui][St]):s,he=new _m(S,R);E[ft+t]=he,xd(p,v,t+1,e,r,i,n,br(v.consts,o)),S&&xd(p,v,t+2,c,l,d,u,br(v.consts,f))}var ym=class extends gm{constructor(e,r,i){super(),this.lContainer=e,this.hostLView=r,this.templateTNode=i,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-zt}at(e){return this.getLView(e)[St].$implicit}attach(e,r){let i=r[as];this.needsIndexUpdate||=e!==this.length,za(this.lContainer,r,e,ds(this.templateTNode,i))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,JN(this.lContainer,e)}create(e,r){let i=us(this.lContainer,this.templateTNode.tView.ssrId),n=Ba(this.hostLView,this.templateTNode,new bm(this.lContainer,r,e),{dehydratedView:i});return this.operationsCounter?.recordCreate(),n}destroy(e){$d(e[fe],e),this.operationsCounter?.recordDestroy()}updateValue(e,r){this.getLView(e)[St].$implicit=r}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(Bd(!0),tx(i,n,lA()));function nF(t,e,r,i,n){let o=e.consts,s=br(o,i),a=ws(e,t,8,"ng-container",s);s!==null&&gd(a,s,!0);let c=br(o,n);return ug(e,r,a,c),e.queries!==null&&e.queries.elementStart(e,a),a}function Dr(t,e,r){let i=me(),n=et(),o=t+ft,s=n.firstCreatePass?nF(o,n,i,e,r):n.data[o];ho(s,!0);let a=rF(n,i,s,t);return i[o]=a,Vd()&&Gd(n,i,a,s),Mi(a,i),Pd(s)&&(cg(n,i,s),ag(n,s,i)),r!=null&&lg(i,s),Dr}function Cr(){let t=Mt(),e=et();return qm()?Ym():(t=t.parent,ho(t,!1)),e.firstCreatePass&&(zd(e,t),Hm(t)&&e.queries.elementEnd(t)),Cr}function tt(t,e,r){return Dr(t,e,r),Cr(),tt}var rF=(t,e,r,i)=>(Bd(!0),y1(e[nt],""));function Ye(){return me()}function yt(t,e,r){let i=me(),n=yr();if(fi(i,n,e)){let o=et(),s=bs();Va(o,s,i,t,e,i[nt],r,!0)}return yt}function xg(t,e,r){let i=me(),n=yr();if(fi(i,n,e)){let o=et(),s=bs(),a=Zm(o.data),c=xx(a,s,i);Va(o,s,i,t,e,c,r,!0)}return xg}var Xr=void 0;function oF(t){let e=t,r=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return r===1&&i===0?1:5}var sF=["en",[["a","p"],["AM","PM"],Xr],[["AM","PM"],Xr,Xr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Xr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Xr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Xr,"{1} 'at' {0}",Xr],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",oF],_p={};function Fi(t){let e=aF(t),r=v0(e);if(r)return r;let i=e.split("-")[0];if(r=v0(i),r)return r;if(i==="en")return sF;throw new G(701,!1)}function v0(t){return t in _p||(_p[t]=ht.ng&&ht.ng.common&&ht.ng.common.locales&&ht.ng.common.locales[t]),_p[t]}var mt=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(mt||{});function aF(t){return t.toLowerCase().replace(/_/g,"-")}var Id="en-US";var cF=Id;function lF(t){typeof t=="string"&&(cF=t.toLowerCase().replace(/_/g,"-"))}var dF=(t,e,r)=>{};function Z(t,e,r,i){let n=me(),o=et(),s=Mt();return Cg(o,n,n[nt],s,t,e,i),Z}function Dg(t,e){let r=Mt(),i=me(),n=et(),o=Zm(n.data),s=xx(o,r,i);return Cg(n,i,s,r,t,e),Dg}function uF(t,e,r,i){let n=t.cleanup;if(n!=null)for(let o=0;oc?a[c]:null}typeof s=="string"&&(o+=2)}return null}function Cg(t,e,r,i,n,o,s){let a=Pd(i),l=t.firstCreatePass&&wx(t),d=e[St],u=yx(e),f=!0;if(i.type&3||s){let S=Ti(i,e),E=s?s(S):S,R=u.length,he=s?Ue=>s(hi(Ue[i.index])):i.index,Ne=null;if(!s&&a&&(Ne=uF(t,e,n,i.index)),Ne!==null){let Ue=Ne.__ngLastListenerFn__||Ne;Ue.__ngNextListenerFn__=o,Ne.__ngLastListenerFn__=o,f=!1}else{o=_0(i,e,d,o),dF(S,n,o);let Ue=r.listen(E,n,o);u.push(o,Ue),l&&l.push(n,he,R,R+1)}}else o=_0(i,e,d,o);let p=i.outputs,v;if(f&&p!==null&&(v=p[n])){let S=v.length;if(S)for(let E=0;E-1?yn(t.index,e):e;pg(s,5);let a=b0(e,r,i,o),c=n.__ngNextListenerFn__;for(;c;)a=b0(e,r,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function $(t=1){return aA(t)}function hF(t,e){let r=null,i=vR(t);for(let n=0;n=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=i}function gt(t){let e=tA();return Gm(e,ft+t)}function we(t,e=""){let r=me(),i=et(),n=t+ft,o=i.firstCreatePass?ws(i,n,1,e,null):i.data[n],s=gF(i,r,o,e,t);r[n]=s,Vd()&&Gd(i,r,s,o),ho(o,!1)}var gF=(t,e,r,i,n)=>(Bd(!0),b1(e[nt],i));function at(t){return Lt("",t,""),at}function Lt(t,e,r){let i=me(),n=yg(i,t,e,r);return n!==Oi&&cO(i,wr(),n),Lt}function vF(t,e,r){Hx(e)&&(e=e());let i=me(),n=yr();if(fi(i,n,e)){let o=et(),s=bs();Va(o,s,i,t,e,i[nt],r,!1)}return vF}function zY(t,e){let r=Hx(t);return r&&t.set(e),r}function bF(t,e){let r=me(),i=et(),n=Mt();return Cg(i,r,r[nt],n,t,e),bF}function _F(t,e,r){let i=et();if(i.firstCreatePass){let n=Wn(t);xm(r,i.data,i.blueprint,n,!0),xm(e,i.data,i.blueprint,n,!1)}}function xm(t,e,r,i,n){if(t=Qt(t),Array.isArray(t))for(let o=0;o>20;if(ss(t)||!t.multi){let p=new so(l,n,h),v=wp(c,e,n?d:d+f,u);v===-1?(Pp(ud(a,s),o,c),yp(o,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,n&&(a.providerIndexes+=1048576),r.push(p),s.push(p)):(r[v]=p,s[v]=p)}else{let p=wp(c,e,d+f,u),v=wp(c,e,d,d+f),S=p>=0&&r[p],E=v>=0&&r[v];if(n&&!E||!n&&!S){Pp(ud(a,s),o,c);let R=xF(n?wF:yF,r.length,n,i,l);!n&&E&&(r[v].providerFactory=R),yp(o,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,n&&(a.providerIndexes+=1048576),r.push(R),s.push(R)}else{let R=nD(r[n?v:p],l,!n&&i);yp(o,t,p>-1?p:v,R)}!n&&i&&E&&r[v].componentProviders++}}}function yp(t,e,r,i){let n=ss(e),o=RR(e);if(n||o){let c=(o?Qt(e.useClass):e).prototype.ngOnDestroy;if(c){let l=t.destroyHooks||(t.destroyHooks=[]);if(!n&&e.multi){let d=l.indexOf(r);d===-1?l.push(r,[i,c]):l[d+1].push(i,c)}else l.push(r,c)}}}function nD(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function wp(t,e,r,i){for(let n=r;n{r.providersResolver=(i,n)=>_F(i,n?n(t):t,e)}}var DF=(()=>{let e=class e{constructor(i){this._injector=i,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(i){if(!i.standalone)return null;if(!this.cachedInjectors.has(i)){let n=G0(!1,i.type),o=n.length>0?Kd([n],this._injector,`Standalone[${i.type.name}]`):null;this.cachedInjectors.set(i,o)}return this.cachedInjectors.get(i)}ngOnDestroy(){try{for(let i of this.cachedInjectors.values())i!==null&&i.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=D({token:e,providedIn:"environment",factory:()=>new e(m(_t))});let t=e;return t})();function Y(t){In("NgStandalone"),t.getStandaloneInjector=e=>e.get(DF).getOrCreateStandaloneInjector(t)}function UY(t,e,r){let i=Fa()+t,n=me();return n[i]===Oi?_g(n,i,r?e.call(r):e()):EN(n,i)}function Eg(t,e,r,i){return oD(me(),Fa(),t,e,r,i)}function Ha(t,e,r,i,n){return sD(me(),Fa(),t,e,r,i,n)}function rD(t,e){let r=t[e];return r===Oi?void 0:r}function oD(t,e,r,i,n,o){let s=e+r;return fi(t,s,n)?_g(t,s+1,o?i.call(o,n):i(n)):rD(t,s+1)}function sD(t,e,r,i,n,o,s){let a=e+r;return IN(t,a,n,o)?_g(t,a+2,s?i.call(s,n,o):i(n,o)):rD(t,a+2)}function iu(t,e){let r=et(),i,n=t+ft;r.firstCreatePass?(i=CF(e,r.pipeRegistry),r.data[n]=i,i.onDestroy&&(r.destroyHooks??=[]).push(n,i.onDestroy)):i=r.data[n];let o=i.factory||(i.factory=to(i.type,!0)),s,a=ci(h);try{let c=dd(!1),l=o();return dd(c),mF(r,me(),n,l),l}finally{ci(a)}}function CF(t,e){if(e)for(let r=e.length-1;r>=0;r--){let i=e[r];if(t===i.name)return i}}function nu(t,e,r){let i=t+ft,n=me(),o=Gm(n,i);return aD(n,i)?oD(n,Fa(),e,o.transform,r,o):o.transform(r)}function HY(t,e,r,i){let n=t+ft,o=me(),s=Gm(o,n);return aD(o,n)?sD(o,Fa(),e,s.transform,r,i,s):s.transform(r,i)}function aD(t,e){return t[fe].data[e].pure}function Er(t,e){return Zd(t,e)}var ql=null;function EF(t){ql!==null&&(t.defaultEncapsulation!==ql.defaultEncapsulation||t.preserveWhitespaces!==ql.preserveWhitespaces)||(ql=t)}var ru=(()=>{let e=class e{log(i){console.log(i)}warn(i){console.warn(i)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var Ig=new g(""),$a=new g(""),ou=(()=>{let e=class e{constructor(i,n,o){this._ngZone=i,this.registry=n,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Sg||(IF(o),o.addToWindow(n)),this._watchAngularEvents(),i.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{F.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let i=this._callbacks.pop();clearTimeout(i.timeoutId),i.doneCb()}});else{let i=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>n.updateCb&&n.updateCb(i)?(clearTimeout(n.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(i=>({source:i.source,creationLocation:i.creationLocation,data:i.data})):[]}addCallback(i,n,o){let s=-1;n&&n>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),i()},n)),this._callbacks.push({doneCb:i,timeoutId:s,updateCb:o})}whenStable(i,n,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(i,n,o),this._runCallbacksIfReady()}registerApplication(i){this.registry.registerApplication(i,this)}unregisterApplication(i){this.registry.unregisterApplication(i)}findProviders(i,n,o){return[]}};e.\u0275fac=function(n){return new(n||e)(m(F),m(su),m($a))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),su=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(i,n){this._applications.set(i,n)}unregisterApplication(i){this._applications.delete(i)}unregisterAllApplications(){this._applications.clear()}getTestability(i){return this._applications.get(i)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(i,n=!0){return Sg?.findTestabilityInTree(this,i,n)??null}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function IF(t){Sg=t}var Sg;function Ir(t){return!!t&&typeof t.then=="function"}function Mg(t){return!!t&&typeof t.subscribe=="function"}var au=new g(""),cD=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,n)=>{this.resolve=i,this.reject=n}),this.appInits=b(au,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let i=[];for(let o of this.appInits){let s=o();if(Ir(s))i.push(s);else if(Mg(s)){let a=new Promise((c,l)=>{s.subscribe({complete:c,error:l})});i.push(a)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(i).then(()=>{n()}).catch(o=>{this.reject(o)}),i.length===0&&n(),this.initialized=!0}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),cu=new g("");function SF(){K_(()=>{throw new G(600,!1)})}function MF(t){return t.isBoundToModule}var kF=10;function TF(t,e,r){try{let i=r();return Ir(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}function lD(t,e){return Array.isArray(e)?e.reduce(lD,t):w(w({},t),e)}var mi=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=b(Tw),this.afterRenderEffectManager=b(gg),this.zonelessEnabled=b(Ax),this.externalTestViews=new Set,this.beforeRender=new C,this.afterTick=new C,this.componentTypes=[],this.components=[],this.isStable=b(Cn).hasPendingTasks.pipe(P(i=>!i)),this._injector=b(_t)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(i,n){let o=i instanceof pd;if(!this._injector.get(cD).done){let p=!o&&z0(i),v=!1;throw new G(405,v)}let a;o?a=i:a=this._injector.get(Ki).resolveComponentFactory(i),this.componentTypes.push(a.componentType);let c=MF(a)?void 0:this._injector.get(_r),l=n||a.selector,d=a.create(Se.NULL,[],l,c),u=d.location.nativeElement,f=d.injector.get(Ig,null);return f?.registerApplication(u),d.onDestroy(()=>{this.detachView(d.hostView),ed(this.components,d),f?.unregisterApplication(u)}),this._loadComponent(d),d}tick(){this._tick(!0)}_tick(i){if(this._runningTick)throw new G(101,!1);let n=Te(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(i)}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,Te(n),this.afterTick.next()}}detectChangesInAttachedViews(i){let n=null;this._injector.destroyed||(n=this._injector.get(fs,null,{optional:!0}));let o=0,s=this.afterRenderEffectManager;for(;oIa(c))&&(s.execute(),!this.allViews.some(({_lView:c})=>Ia(c))))break}}attachView(i){let n=i;this._views.push(n),n.attachToAppRef(this)}detachView(i){let n=i;ed(this._views,n),n.detachFromAppRef()}_loadComponent(i){this.attachView(i.hostView),this.tick(),this.components.push(i);let n=this._injector.get(cu,[]);[...this._bootstrapListeners,...n].forEach(o=>o(i))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(i=>i()),this._views.slice().forEach(i=>i.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(i){return this._destroyListeners.push(i),()=>ed(this._destroyListeners,i)}destroy(){if(this._destroyed)throw new G(406,!1);let i=this._injector;i.destroy&&!i.destroyed&&i.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ed(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function RF(t,e,r,i){if(!r&&!Ia(t))return;Mx(t,e,r&&!i?0:1)}var Cm=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},lu=(()=>{let e=class e{compileModuleSync(i){return new wd(i)}compileModuleAsync(i){return Promise.resolve(this.compileModuleSync(i))}compileModuleAndAllComponentsSync(i){let n=this.compileModuleSync(i),o=U0(i),s=Jw(o.declarations).reduce((a,c)=>{let l=$n(c);return l&&a.push(new lo(l)),a},[]);return new Cm(n,s)}compileModuleAndAllComponentsAsync(i){return Promise.resolve(this.compileModuleAndAllComponentsSync(i))}clearCache(){}clearCacheFor(i){}getModuleId(i){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),AF=new g("");function OF(t,e,r){let i=new wd(r);return Promise.resolve(i)}function y0(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var NF=(()=>{let e=class e{constructor(){this.zone=b(F),this.changeDetectionScheduler=b(hs),this.applicationRef=b(mi)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function FF({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??=()=>new F(dD()),[{provide:F,useFactory:t},{provide:gr,multi:!0,useFactory:()=>{let r=b(NF,{optional:!0});return()=>r.initialize()}},{provide:gr,multi:!0,useFactory:()=>{let r=b(LF);return()=>{r.initialize()}}},{provide:Tw,useFactory:PF},e===!0?{provide:Ox,useValue:!0}:[]]}function PF(){let t=b(F),e=b(Ft);return r=>t.runOutsideAngular(()=>e.handleError(r))}function dD(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var LF=(()=>{let e=class e{constructor(){this.subscription=new ne,this.initialized=!1,this.zone=b(F),this.pendingTasks=b(Cn)}initialize(){if(this.initialized)return;this.initialized=!0;let i=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(i=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{F.assertNotInAngularZone(),queueMicrotask(()=>{i!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(i),i=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{F.assertInAngularZone(),i??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var jF=(()=>{let e=class e{constructor(){this.appRef=b(mi),this.taskService=b(Cn),this.ngZone=b(F),this.zonelessEnabled=b(Ax),this.disableScheduling=b(Ox,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new ne,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof md||!this.zoneIsDefined)}notify(i){if(!this.zonelessEnabled&&i===5)return;switch(i){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let n=this.useMicrotaskScheduler?o0:Nx;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=n(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=n(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&F.isInAngularZone())}tick(i){if(this.runningTick||this.appRef.destroyed)return;let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(i)},void 0,this.schedulerTickApplyArgs)}catch(o){throw this.taskService.remove(n),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,o0(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let i=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(i)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function VF(){return typeof $localize<"u"&&$localize.locale||Id}var Ga=new g("",{providedIn:"root",factory:()=>b(Ga,Ie.Optional|Ie.SkipSelf)||VF()});var uD=new g(""),hD=(()=>{let e=class e{constructor(i){this._injector=i,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(i,n){let o=LO(n?.ngZone,dD({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing}));return o.run(()=>{let s=n?.ignoreChangesOutsideZone,a=DN(i.moduleType,this.injector,[...FF({ngZoneFactory:()=>o,ignoreChangesOutsideZone:s}),{provide:hs,useExisting:jF}]),c=a.injector.get(Ft,null);return o.runOutsideAngular(()=>{let l=o.onError.subscribe({next:d=>{c.handleError(d)}});a.onDestroy(()=>{ed(this._modules,a),l.unsubscribe()})}),TF(c,o,()=>{let l=a.injector.get(cD);return l.runInitializers(),l.donePromise.then(()=>{let d=a.injector.get(Ga,Id);return lF(d||Id),this._moduleDoBootstrap(a),a})})})}bootstrapModule(i,n=[]){let o=lD({},n);return OF(this.injector,o,i).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(i){let n=i.injector.get(mi);if(i._bootstrapComponents.length>0)i._bootstrapComponents.forEach(o=>n.bootstrap(o));else if(i.instance.ngDoBootstrap)i.instance.ngDoBootstrap(n);else throw new G(-403,!1);this._modules.push(i)}onDestroy(i){this._destroyListeners.push(i)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new G(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let i=this._injector.get(uD,null);i&&(i.forEach(n=>n()),i.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(n){return new(n||e)(m(Se))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),wa=null,fD=new g("");function BF(t){if(wa&&!wa.get(fD,!1))throw new G(400,!1);SF(),wa=t;let e=t.get(hD);return HF(t),e}function kg(t,e,r=[]){let i=`Platform: ${e}`,n=new g(i);return(o=[])=>{let s=pD();if(!s||s.injector.get(fD,!1)){let a=[...r,...o,{provide:n,useValue:!0}];t?t(a):BF(zF(a,i))}return UF(n)}}function zF(t=[],e){return Se.create({name:e,providers:[{provide:Od,useValue:"platform"},{provide:uD,useValue:new Set([()=>wa=null])},...t]})}function UF(t){let e=pD();if(!e)throw new G(401,!1);return e}function pD(){return wa?.get(hD)??null}function HF(t){t.get(tg,null)?.forEach(r=>r())}function Tg(){return!1}var ue=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=$F;let t=e;return t})();function $F(t){return GF(Mt(),me(),(t&16)===16)}function GF(t,e,r){if(Fd(t)&&!r){let i=yn(t.index,e);return new co(i,i)}else if(t.type&175){let i=e[ui];return new co(i,e)}return null}var Em=class{constructor(){}supports(e){return $x(e)}create(e){return new Im(e)}},WF=(t,e)=>e,Im=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||WF}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,i=this._removalsHead,n=0,o=null;for(;r||i;){let s=!i||r&&r.currentIndex{s=this._trackByFn(n,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,n),i=!0):(i&&(r=this._verifyReinsertion(r,a,s,n)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,n++}),this.length=n;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,i,n){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,o,n)):(e=this._linkedRecords===null?null:this._linkedRecords.get(i,n),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,o,n)):e=this._addAfter(new Sm(r,i),o,n)),e}_verifyReinsertion(e,r,i,n){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return o!==null?e=this._reinsertAfter(o,e._prev,n):e.currentIndex!=n&&(e.currentIndex=n,this._addToMoves(e,n)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let n=e._prevRemoved,o=e._nextRemoved;return n===null?this._removalsHead=o:n._nextRemoved=o,o===null?this._removalsTail=n:o._prevRemoved=n,this._insertAfter(e,r,i),this._addToMoves(e,i),e}_moveAfter(e,r,i){return this._unlink(e),this._insertAfter(e,r,i),this._addToMoves(e,i),e}_addAfter(e,r,i){return this._insertAfter(e,r,i),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,i){let n=r===null?this._itHead:r._next;return e._next=n,e._prev=r,n===null?this._itTail=e:n._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new Sd),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,i=e._next;return r===null?this._itHead=i:r._next=i,i===null?this._itTail=r:i._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Sd),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Sm=class{constructor(e,r){this.item=e,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Mm=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let i;for(i=this._head;i!==null;i=i._nextDup)if((r===null||r<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){let r=e._prevDup,i=e._nextDup;return r===null?this._head=i:r._nextDup=i,i===null?this._tail=r:i._prevDup=r,this._head===null}},Sd=class{constructor(){this.map=new Map}put(e){let r=e.trackById,i=this.map.get(r);i||(i=new Mm,this.map.set(r,i)),i.add(e)}get(e,r){let i=e,n=this.map.get(i);return n?n.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function w0(t,e,r){let i=t.previousIndex;if(i===null)return i;let n=0;return r&&i{if(r&&r.key===n)this._maybeAddToChanges(r,i),this._appendAfter=r,r=r._next;else{let o=this._getOrCreateRecordForKey(n,i);r=this._insertBeforeOrAppend(r,o)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let i=r;i!==null;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,r){if(e){let i=e._prev;return r._next=e,r._prev=i,e._prev=r,i&&(i._next=r),e===this._mapHead&&(this._mapHead=r),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(e,r){if(this._records.has(e)){let n=this._records.get(e);this._maybeAddToChanges(n,r);let o=n._prev,s=n._next;return o&&(o._next=s),s&&(s._prev=o),n._next=null,n._prev=null,n}let i=new Rm(e);return this._records.set(e,i),i.currentValue=r,this._addToAdditions(i),i}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,r){Object.is(r,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=r,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,r){e instanceof Map?e.forEach(r):Object.keys(e).forEach(i=>r(e[i],i))}},Rm=class{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function x0(){return new Sn([new Em])}var Sn=(()=>{let e=class e{constructor(i){this.factories=i}static create(i,n){if(n!=null){let o=n.factories.slice();i=i.concat(o)}return new e(i)}static extend(i){return{provide:e,useFactory:n=>e.create(i,n||x0()),deps:[[e,new Yn,new xn]]}}find(i){let n=this.factories.find(o=>o.supports(i));if(n!=null)return n;throw new G(901,!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:x0});let t=e;return t})();function D0(){return new du([new km])}var du=(()=>{let e=class e{constructor(i){this.factories=i}static create(i,n){if(n){let o=n.factories.slice();i=i.concat(o)}return new e(i)}static extend(i){return{provide:e,useFactory:n=>e.create(i,n||D0()),deps:[[e,new Yn,new xn]]}}find(i){let n=this.factories.find(o=>o.supports(i));if(n)return n;throw new G(901,!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:D0});let t=e;return t})();var mD=kg(null,"core",[]),gD=(()=>{let e=class e{constructor(i){}};e.\u0275fac=function(n){return new(n||e)(m(mi))},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})();var vD=new g("");function T(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function dt(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}function Mn(t,e){In("NgSignals");let r=Y_(t);return e?.equal&&(r[an].equal=e.equal),r}function ti(t){let e=Te(null);try{return t()}finally{Te(e)}}var qF=new g("",{providedIn:"root",factory:()=>b(YF)}),YF=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new Am});let t=e;return t})(),Am=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=b(Cn),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),this.taskId===null){let r=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(r),this.taskId=null})}}enqueue(e){let r=e.creationZone;this.queues.has(r)||this.queues.set(r,new Set);let i=this.queues.get(r);i.has(e)||(this.queuedEffectCount++,i.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,r]of this.queues)e===null?this.flushQueue(r):e.run(()=>this.flushQueue(r))}flushQueue(e){for(let r of e)e.delete(r),this.queuedEffectCount--,r.run()}},Om=class{constructor(e,r,i,n,o,s){this.scheduler=e,this.effectFn=r,this.creationZone=i,this.injector=o,this.watcher=ty(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=n?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(r){this.injector.get(Ft,null,{optional:!0})?.handleError(r)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function uu(t,e){In("NgSignals"),!e?.injector&&Oa(uu);let r=e?.injector??b(Se),i=e?.manualCleanup!==!0?r.get(fo):null,n=new Om(r.get(qF),t,typeof Zone>"u"?null:Zone.current,i,r,e?.allowSignalWrites??!1),o=r.get(ue,null,{optional:!0});return!o||!(o._lView[ve]&8)?n.watcher.notify():(o._lView[Zl]??=[]).push(n.watcher.notify),n}function bD(t,e){let r=$n(t),i=e.elementInjector||Nd();return new lo(r).create(i,e.projectableNodes,e.hostElement,e.environmentInjector)}function _D(t){let e=$n(t);if(!e)return null;let r=new lo(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var SD=null;function kn(){return SD}function MD(t){SD??=t}var yu=class{};var K=new g(""),Ug=(()=>{let e=class e{historyGo(i){throw new Error("")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:()=>b(QF),providedIn:"platform"});let t=e;return t})(),kD=new g(""),QF=(()=>{let e=class e extends Ug{constructor(){super(),this._doc=b(K),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return kn().getBaseHref(this._doc)}onPopState(i){let n=kn().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",i,!1),()=>n.removeEventListener("popstate",i)}onHashChange(i){let n=kn().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",i,!1),()=>n.removeEventListener("hashchange",i)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(i){this._location.pathname=i}pushState(i,n,o){this._history.pushState(i,n,o)}replaceState(i,n,o){this._history.replaceState(i,n,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(i=0){this._history.go(i)}getState(){return this._history.state}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function Hg(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function yD(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,i=r-(t[r-1]==="/"?1:0);return t.slice(0,i)+t.slice(r)}function Xn(t){return t&&t[0]!=="?"?"?"+t:t}var er=(()=>{let e=class e{historyGo(i){throw new Error("")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:()=>b($g),providedIn:"root"});let t=e;return t})(),TD=new g(""),$g=(()=>{let e=class e extends er{constructor(i,n){super(),this._platformLocation=i,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??b(K).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(i){this._removeListenerFns.push(this._platformLocation.onPopState(i),this._platformLocation.onHashChange(i))}getBaseHref(){return this._baseHref}prepareExternalUrl(i){return Hg(this._baseHref,i)}path(i=!1){let n=this._platformLocation.pathname+Xn(this._platformLocation.search),o=this._platformLocation.hash;return o&&i?`${n}${o}`:n}pushState(i,n,o,s){let a=this.prepareExternalUrl(o+Xn(s));this._platformLocation.pushState(i,n,a)}replaceState(i,n,o,s){let a=this.prepareExternalUrl(o+Xn(s));this._platformLocation.replaceState(i,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(i=0){this._platformLocation.historyGo?.(i)}};e.\u0275fac=function(n){return new(n||e)(m(Ug),m(TD,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),RD=(()=>{let e=class e extends er{constructor(i,n){super(),this._platformLocation=i,this._baseHref="",this._removeListenerFns=[],n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(i){this._removeListenerFns.push(this._platformLocation.onPopState(i),this._platformLocation.onHashChange(i))}getBaseHref(){return this._baseHref}path(i=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(i){let n=Hg(this._baseHref,i);return n.length>0?"#"+n:n}pushState(i,n,o,s){let a=this.prepareExternalUrl(o+Xn(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(i,n,a)}replaceState(i,n,o,s){let a=this.prepareExternalUrl(o+Xn(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(i,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(i=0){this._platformLocation.historyGo?.(i)}};e.\u0275fac=function(n){return new(n||e)(m(Ug),m(TD,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Mr=(()=>{let e=class e{constructor(i){this._subject=new B,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=i;let n=this._locationStrategy.getBaseHref();this._basePath=JF(yD(wD(n))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(i=!1){return this.normalize(this._locationStrategy.path(i))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(i,n=""){return this.path()==this.normalize(i+Xn(n))}normalize(i){return e.stripTrailingSlash(XF(this._basePath,wD(i)))}prepareExternalUrl(i){return i&&i[0]!=="/"&&(i="/"+i),this._locationStrategy.prepareExternalUrl(i)}go(i,n="",o=null){this._locationStrategy.pushState(o,"",i,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(i+Xn(n)),o)}replaceState(i,n="",o=null){this._locationStrategy.replaceState(o,"",i,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(i+Xn(n)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(i=0){this._locationStrategy.historyGo?.(i)}onUrlChange(i){return this._urlChangeListeners.push(i),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(i);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(i="",n){this._urlChangeListeners.forEach(o=>o(i,n))}subscribe(i,n,o){return this._subject.subscribe({next:i,error:n,complete:o})}};e.normalizeQueryParams=Xn,e.joinWithSlash=Hg,e.stripTrailingSlash=yD,e.\u0275fac=function(n){return new(n||e)(m(er))},e.\u0275prov=D({token:e,factory:()=>KF(),providedIn:"root"});let t=e;return t})();function KF(){return new Mr(m(er))}function XF(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function wD(t){return t.replace(/\/index.html$/,"")}function JF(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}var ii=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(ii||{}),Xe=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(Xe||{}),gi=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(gi||{}),Sr={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function eP(t){return Fi(t)[mt.LocaleId]}function tP(t,e,r){let i=Fi(t),n=[i[mt.DayPeriodsFormat],i[mt.DayPeriodsStandalone]],o=Pi(n,e);return Pi(o,r)}function iP(t,e,r){let i=Fi(t),n=[i[mt.DaysFormat],i[mt.DaysStandalone]],o=Pi(n,e);return Pi(o,r)}function nP(t,e,r){let i=Fi(t),n=[i[mt.MonthsFormat],i[mt.MonthsStandalone]],o=Pi(n,e);return Pi(o,r)}function rP(t,e){let i=Fi(t)[mt.Eras];return Pi(i,e)}function hu(t,e){let r=Fi(t);return Pi(r[mt.DateFormat],e)}function fu(t,e){let r=Fi(t);return Pi(r[mt.TimeFormat],e)}function pu(t,e){let i=Fi(t)[mt.DateTimeFormat];return Pi(i,e)}function Cu(t,e){let r=Fi(t),i=r[mt.NumberSymbols][e];if(typeof i>"u"){if(e===Sr.CurrencyDecimal)return r[mt.NumberSymbols][Sr.Decimal];if(e===Sr.CurrencyGroup)return r[mt.NumberSymbols][Sr.Group]}return i}function AD(t){if(!t[mt.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[mt.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function oP(t){let e=Fi(t);return AD(e),(e[mt.ExtraData][2]||[]).map(i=>typeof i=="string"?Ag(i):[Ag(i[0]),Ag(i[1])])}function sP(t,e,r){let i=Fi(t);AD(i);let n=[i[mt.ExtraData][0],i[mt.ExtraData][1]],o=Pi(n,e)||[];return Pi(o,r)||[]}function Pi(t,e){for(let r=e;r>-1;r--)if(typeof t[r]<"u")return t[r];throw new Error("Locale data API: locale data undefined")}function Ag(t){let[e,r]=t.split(":");return{hours:+e,minutes:+r}}var aP=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,mu={},cP=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Jn=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(Jn||{}),ze=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(ze||{}),Be=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(Be||{});function lP(t,e,r,i){let n=bP(t);e=Kn(r,e)||e;let s=[],a;for(;e;)if(a=cP.exec(e),a){s=s.concat(a.slice(1));let d=s.pop();if(!d)break;e=d}else{s.push(e);break}let c=n.getTimezoneOffset();i&&(c=ND(i,c),n=vP(n,i,!0));let l="";return s.forEach(d=>{let u=mP(d);l+=u?u(n,r,c):d==="''"?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function wu(t,e,r){let i=new Date(0);return i.setFullYear(t,e,r),i.setHours(0,0,0),i}function Kn(t,e){let r=eP(t);if(mu[r]??={},mu[r][e])return mu[r][e];let i="";switch(e){case"shortDate":i=hu(t,gi.Short);break;case"mediumDate":i=hu(t,gi.Medium);break;case"longDate":i=hu(t,gi.Long);break;case"fullDate":i=hu(t,gi.Full);break;case"shortTime":i=fu(t,gi.Short);break;case"mediumTime":i=fu(t,gi.Medium);break;case"longTime":i=fu(t,gi.Long);break;case"fullTime":i=fu(t,gi.Full);break;case"short":let n=Kn(t,"shortTime"),o=Kn(t,"shortDate");i=gu(pu(t,gi.Short),[n,o]);break;case"medium":let s=Kn(t,"mediumTime"),a=Kn(t,"mediumDate");i=gu(pu(t,gi.Medium),[s,a]);break;case"long":let c=Kn(t,"longTime"),l=Kn(t,"longDate");i=gu(pu(t,gi.Long),[c,l]);break;case"full":let d=Kn(t,"fullTime"),u=Kn(t,"fullDate");i=gu(pu(t,gi.Full),[d,u]);break}return i&&(mu[r][e]=i),i}function gu(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(r,i){return e!=null&&i in e?e[i]:r})),t}function Xi(t,e,r="-",i,n){let o="";(t<0||n&&t<=0)&&(n?t=-t+1:(t=-t,o=r));let s=String(t);for(;s.length0||a>-r)&&(a+=r),t===ze.Hours)a===0&&r===-12&&(a=12);else if(t===ze.FractionalSeconds)return dP(a,e);let c=Cu(s,Sr.MinusSign);return Xi(a,e,c,i,n)}}function uP(t,e){switch(t){case ze.FullYear:return e.getFullYear();case ze.Month:return e.getMonth();case ze.Date:return e.getDate();case ze.Hours:return e.getHours();case ze.Minutes:return e.getMinutes();case ze.Seconds:return e.getSeconds();case ze.FractionalSeconds:return e.getMilliseconds();case ze.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function it(t,e,r=ii.Format,i=!1){return function(n,o){return hP(n,o,t,e,r,i)}}function hP(t,e,r,i,n,o){switch(r){case Be.Months:return nP(e,n,i)[t.getMonth()];case Be.Days:return iP(e,n,i)[t.getDay()];case Be.DayPeriods:let s=t.getHours(),a=t.getMinutes();if(o){let l=oP(e),d=sP(e,n,i),u=l.findIndex(f=>{if(Array.isArray(f)){let[p,v]=f,S=s>=p.hours&&a>=p.minutes,E=s0?Math.floor(n/60):Math.ceil(n/60);switch(t){case Jn.Short:return(n>=0?"+":"")+Xi(s,2,o)+Xi(Math.abs(n%60),2,o);case Jn.ShortGMT:return"GMT"+(n>=0?"+":"")+Xi(s,1,o);case Jn.Long:return"GMT"+(n>=0?"+":"")+Xi(s,2,o)+":"+Xi(Math.abs(n%60),2,o);case Jn.Extended:return i===0?"Z":(n>=0?"+":"")+Xi(s,2,o)+":"+Xi(Math.abs(n%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}var fP=0,_u=4;function pP(t){let e=wu(t,fP,1).getDay();return wu(t,0,1+(e<=_u?_u:_u+7)-e)}function OD(t){let e=t.getDay(),r=e===0?-3:_u-e;return wu(t.getFullYear(),t.getMonth(),t.getDate()+r)}function Og(t,e=!1){return function(r,i){let n;if(e){let o=new Date(r.getFullYear(),r.getMonth(),1).getDay()-1,s=r.getDate();n=1+Math.floor((s+o)/7)}else{let o=OD(r),s=pP(o.getFullYear()),a=o.getTime()-s.getTime();n=1+Math.round(a/6048e5)}return Xi(n,t,Cu(i,Sr.MinusSign))}}function bu(t,e=!1){return function(r,i){let o=OD(r).getFullYear();return Xi(o,t,Cu(i,Sr.MinusSign),e)}}var Ng={};function mP(t){if(Ng[t])return Ng[t];let e;switch(t){case"G":case"GG":case"GGG":e=it(Be.Eras,Xe.Abbreviated);break;case"GGGG":e=it(Be.Eras,Xe.Wide);break;case"GGGGG":e=it(Be.Eras,Xe.Narrow);break;case"y":e=wt(ze.FullYear,1,0,!1,!0);break;case"yy":e=wt(ze.FullYear,2,0,!0,!0);break;case"yyy":e=wt(ze.FullYear,3,0,!1,!0);break;case"yyyy":e=wt(ze.FullYear,4,0,!1,!0);break;case"Y":e=bu(1);break;case"YY":e=bu(2,!0);break;case"YYY":e=bu(3);break;case"YYYY":e=bu(4);break;case"M":case"L":e=wt(ze.Month,1,1);break;case"MM":case"LL":e=wt(ze.Month,2,1);break;case"MMM":e=it(Be.Months,Xe.Abbreviated);break;case"MMMM":e=it(Be.Months,Xe.Wide);break;case"MMMMM":e=it(Be.Months,Xe.Narrow);break;case"LLL":e=it(Be.Months,Xe.Abbreviated,ii.Standalone);break;case"LLLL":e=it(Be.Months,Xe.Wide,ii.Standalone);break;case"LLLLL":e=it(Be.Months,Xe.Narrow,ii.Standalone);break;case"w":e=Og(1);break;case"ww":e=Og(2);break;case"W":e=Og(1,!0);break;case"d":e=wt(ze.Date,1);break;case"dd":e=wt(ze.Date,2);break;case"c":case"cc":e=wt(ze.Day,1);break;case"ccc":e=it(Be.Days,Xe.Abbreviated,ii.Standalone);break;case"cccc":e=it(Be.Days,Xe.Wide,ii.Standalone);break;case"ccccc":e=it(Be.Days,Xe.Narrow,ii.Standalone);break;case"cccccc":e=it(Be.Days,Xe.Short,ii.Standalone);break;case"E":case"EE":case"EEE":e=it(Be.Days,Xe.Abbreviated);break;case"EEEE":e=it(Be.Days,Xe.Wide);break;case"EEEEE":e=it(Be.Days,Xe.Narrow);break;case"EEEEEE":e=it(Be.Days,Xe.Short);break;case"a":case"aa":case"aaa":e=it(Be.DayPeriods,Xe.Abbreviated);break;case"aaaa":e=it(Be.DayPeriods,Xe.Wide);break;case"aaaaa":e=it(Be.DayPeriods,Xe.Narrow);break;case"b":case"bb":case"bbb":e=it(Be.DayPeriods,Xe.Abbreviated,ii.Standalone,!0);break;case"bbbb":e=it(Be.DayPeriods,Xe.Wide,ii.Standalone,!0);break;case"bbbbb":e=it(Be.DayPeriods,Xe.Narrow,ii.Standalone,!0);break;case"B":case"BB":case"BBB":e=it(Be.DayPeriods,Xe.Abbreviated,ii.Format,!0);break;case"BBBB":e=it(Be.DayPeriods,Xe.Wide,ii.Format,!0);break;case"BBBBB":e=it(Be.DayPeriods,Xe.Narrow,ii.Format,!0);break;case"h":e=wt(ze.Hours,1,-12);break;case"hh":e=wt(ze.Hours,2,-12);break;case"H":e=wt(ze.Hours,1);break;case"HH":e=wt(ze.Hours,2);break;case"m":e=wt(ze.Minutes,1);break;case"mm":e=wt(ze.Minutes,2);break;case"s":e=wt(ze.Seconds,1);break;case"ss":e=wt(ze.Seconds,2);break;case"S":e=wt(ze.FractionalSeconds,1);break;case"SS":e=wt(ze.FractionalSeconds,2);break;case"SSS":e=wt(ze.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=vu(Jn.Short);break;case"ZZZZZ":e=vu(Jn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=vu(Jn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=vu(Jn.Long);break;default:return null}return Ng[t]=e,e}function ND(t,e){t=t.replace(/:/g,"");let r=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(r)?e:r}function gP(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function vP(t,e,r){let i=r?-1:1,n=t.getTimezoneOffset(),o=ND(e,n);return gP(t,i*(o-n))}function bP(t){if(xD(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[n,o=1,s=1]=t.split("-").map(a=>+a);return wu(n,o-1,s)}let r=parseFloat(t);if(!isNaN(t-r))return new Date(r);let i;if(i=t.match(aP))return _P(i)}let e=new Date(t);if(!xD(e))throw new Error(`Unable to convert "${t}" into a date`);return e}function _P(t){let e=new Date(0),r=0,i=0,n=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(r=Number(t[9]+t[10]),i=Number(t[9]+t[11])),n.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-r,a=Number(t[5]||0)-i,c=Number(t[6]||0),l=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(e,s,a,c,l),e}function xD(t){return t instanceof Date&&!isNaN(t.valueOf())}function Eu(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let i=r.indexOf("="),[n,o]=i==-1?[r,""]:[r.slice(0,i),r.slice(i+1)];if(n.trim()===e)return decodeURIComponent(o)}return null}var Fg=/\s+/,DD=[],Ds=(()=>{let e=class e{constructor(i,n){this._ngEl=i,this._renderer=n,this.initialClasses=DD,this.stateMap=new Map}set klass(i){this.initialClasses=i!=null?i.trim().split(Fg):DD}set ngClass(i){this.rawClass=typeof i=="string"?i.trim().split(Fg):i}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let i=this.rawClass;if(Array.isArray(i)||i instanceof Set)for(let n of i)this._updateState(n,!0);else if(i!=null)for(let n of Object.keys(i))this._updateState(n,!!i[n]);this._applyStateDiff()}_updateState(i,n){let o=this.stateMap.get(i);o!==void 0?(o.enabled!==n&&(o.changed=!0,o.enabled=n),o.touched=!0):this.stateMap.set(i,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let i of this.stateMap){let n=i[0],o=i[1];o.changed?(this._toggleClass(n,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),o.touched=!1}}_toggleClass(i,n){i=i.trim(),i.length>0&&i.split(Fg).forEach(o=>{n?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(n){return new(n||e)(h(N),h(En))},e.\u0275dir=I({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var Pg=class{constructor(e,r,i,n){this.$implicit=e,this.ngForOf=r,this.index=i,this.count=n}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},FD=(()=>{let e=class e{set ngForOf(i){this._ngForOf=i,this._ngForOfDirty=!0}set ngForTrackBy(i){this._trackByFn=i}get ngForTrackBy(){return this._trackByFn}constructor(i,n,o){this._viewContainer=i,this._template=n,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(i){i&&(this._template=i)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let i=this._ngForOf;if(!this._differ&&i)if(0)try{}catch{}else this._differ=this._differs.find(i).create(this.ngForTrackBy)}if(this._differ){let i=this._differ.diff(this._ngForOf);i&&this._applyChanges(i)}}_applyChanges(i){let n=this._viewContainer;i.forEachOperation((o,s,a)=>{if(o.previousIndex==null)n.createEmbeddedView(this._template,new Pg(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)n.remove(s===null?void 0:s);else if(s!==null){let c=n.get(s);n.move(c,a),CD(c,o)}});for(let o=0,s=n.length;o{let s=n.get(o.currentIndex);CD(s,o)})}static ngTemplateContextGuard(i,n){return!0}};e.\u0275fac=function(n){return new(n||e)(h(Ve),h(Re),h(Sn))},e.\u0275dir=I({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function CD(t,e){t.context.$implicit=e.item}var kr=(()=>{let e=class e{constructor(i,n){this._viewContainer=i,this._context=new Lg,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(i){this._context.$implicit=this._context.ngIf=i,this._updateView()}set ngIfThen(i){ED("ngIfThen",i),this._thenTemplateRef=i,this._thenViewRef=null,this._updateView()}set ngIfElse(i){ED("ngIfElse",i),this._elseTemplateRef=i,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(i,n){return!0}};e.\u0275fac=function(n){return new(n||e)(h(Ve),h(Re))},e.\u0275dir=I({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),Lg=class{constructor(){this.$implicit=null,this.ngIf=null}};function ED(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${Jt(e)}'.`)}var xu=class{constructor(e,r){this._viewContainerRef=e,this._templateRef=r,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}},Iu=(()=>{let e=class e{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(i){this._ngSwitch=i,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(i){this._defaultViews.push(i)}_matchCase(i){let n=i===this._ngSwitch;return this._lastCasesMatched||=n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(i){if(this._defaultViews.length>0&&i!==this._defaultUsed){this._defaultUsed=i;for(let n of this._defaultViews)n.enforceState(i)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});let t=e;return t})(),PD=(()=>{let e=class e{constructor(i,n,o){this.ngSwitch=o,o._addCase(),this._view=new xu(i,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}};e.\u0275fac=function(n){return new(n||e)(h(Ve),h(Re),h(Iu,9))},e.\u0275dir=I({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});let t=e;return t})(),lZ=(()=>{let e=class e{constructor(i,n,o){o._addDefault(new xu(i,n))}};e.\u0275fac=function(n){return new(n||e)(h(Ve),h(Re),h(Iu,9))},e.\u0275dir=I({type:e,selectors:[["","ngSwitchDefault",""]],standalone:!0});let t=e;return t})();var dZ=(()=>{let e=class e{constructor(i,n,o){this._ngEl=i,this._differs=n,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(i){this._ngStyle=i,!this._differ&&i&&(this._differ=this._differs.find(i).create())}ngDoCheck(){if(this._differ){let i=this._differ.diff(this._ngStyle);i&&this._applyChanges(i)}}_setStyle(i,n){let[o,s]=i.split("."),a=o.indexOf("-")===-1?void 0:wn.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,s?`${n}${s}`:n,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(i){i.forEachRemovedItem(n=>this._setStyle(n.key,null)),i.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),i.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}};e.\u0275fac=function(n){return new(n||e)(h(N),h(du),h(En))},e.\u0275dir=I({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let t=e;return t})(),po=(()=>{let e=class e{constructor(i){this._viewContainerRef=i,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(i){if(this._shouldRecreateView(i)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(i){return!!i.ngTemplateOutlet||!!i.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(i,n,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,o):!1,get:(i,n,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,o)}})}};e.\u0275fac=function(n){return new(n||e)(h(Ve))},e.\u0275dir=I({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Me]});let t=e;return t})();function LD(t,e){return new G(2100,!1)}var jg=class{createSubscription(e,r){return ti(()=>e.subscribe({next:r,error:i=>{throw i}}))}dispose(e){ti(()=>e.unsubscribe())}},Vg=class{createSubscription(e,r){return e.then(r,i=>{throw i})}dispose(e){}},yP=new Vg,wP=new jg,Su=(()=>{let e=class e{constructor(i){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=i}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(i){if(!this._obj){if(i)try{this.markForCheckOnValueUpdate=!1,this._subscribe(i)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return i!==this._obj?(this._dispose(),this.transform(i)):this._latestValue}_subscribe(i){this._obj=i,this._strategy=this._selectStrategy(i),this._subscription=this._strategy.createSubscription(i,n=>this._updateLatestValue(i,n))}_selectStrategy(i){if(Ir(i))return yP;if(Mg(i))return wP;throw LD(e,i)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(i,n){i===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(n){return new(n||e)(h(ue,16))},e.\u0275pipe=Ad({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var xP="mediumDate",DP=new g(""),CP=new g(""),uZ=(()=>{let e=class e{constructor(i,n,o){this.locale=i,this.defaultTimezone=n,this.defaultOptions=o}transform(i,n,o,s){if(i==null||i===""||i!==i)return null;try{let a=n??this.defaultOptions?.dateFormat??xP,c=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return lP(i,a,s||this.locale,c)}catch(a){throw LD(e,a.message)}}};e.\u0275fac=function(n){return new(n||e)(h(Ga,16),h(DP,24),h(CP,24))},e.\u0275pipe=Ad({name:"date",type:e,pure:!0,standalone:!0});let t=e;return t})();function EP(t,e){return{key:t,value:e}}var hZ=(()=>{let e=class e{constructor(i){this.differs=i,this.keyValues=[],this.compareFn=ID}transform(i,n=ID){if(!i||!(i instanceof Map)&&typeof i!="object")return null;this.differ??=this.differs.find(i).create();let o=this.differ.diff(i),s=n!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(EP(a.key,a.currentValue))})),(o||s)&&(this.keyValues.sort(n),this.compareFn=n),this.keyValues}};e.\u0275fac=function(n){return new(n||e)(h(du,16))},e.\u0275pipe=Ad({name:"keyvalue",type:e,pure:!1,standalone:!0});let t=e;return t})();function ID(t,e){let r=t.key,i=e.key;if(r===i)return 0;if(r===void 0)return 1;if(i===void 0)return-1;if(r===null)return 1;if(i===null)return-1;if(typeof r=="string"&&typeof i=="string")return r{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})(),Gg="browser",IP="server";function Wg(t){return t===Gg}function Mu(t){return t===IP}var jD=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>Wg(b(Ri))?new Bg(b(K),window):new zg});let t=e;return t})(),Bg=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let r=SP(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),i=r.left+this.window.pageXOffset,n=r.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],n-o[1])}};function SP(t,e){let r=t.getElementById(e)||t.getElementsByName(e)[0];if(r)return r;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),n=i.currentNode;for(;n;){let o=n.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}n=i.nextNode()}}return null}var zg=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},xs=class{};var qa=class{},Tu=class{},tr=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` -`).forEach(r=>{let i=r.indexOf(":");if(i>0){let n=r.slice(0,i),o=n.toLowerCase(),s=r.slice(i+1).trim();this.maybeSetNormalizedName(n,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,i)=>{this.setHeaderEntries(i,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,i])=>{this.setHeaderEntries(r,i)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let i=e.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(e.name,r);let n=(e.op==="a"?this.headers.get(r):void 0)||[];n.push(...i),this.headers.set(r,n);break;case"d":let o=e.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(e,r){let i=(Array.isArray(r)?r:[r]).map(o=>o.toString()),n=e.toLowerCase();this.headers.set(n,i),this.maybeSetNormalizedName(e,n)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var Yg=class{encodeKey(e){return VD(e)}encodeValue(e){return VD(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function MP(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(n=>{let o=n.indexOf("="),[s,a]=o==-1?[e.decodeKey(n),""]:[e.decodeKey(n.slice(0,o)),e.decodeValue(n.slice(o+1))],c=r.get(s)||[];c.push(a),r.set(s,c)}),r}var kP=/%(\d[a-f0-9])/gi,TP={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function VD(t){return encodeURIComponent(t).replace(kP,(e,r)=>TP[r]??e)}function ku(t){return`${t}`}var Tn=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Yg,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=MP(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let i=e.fromObject[r],n=Array.isArray(i)?i.map(ku):[ku(i)];this.map.set(r,n)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(i=>{let n=e[i];Array.isArray(n)?n.forEach(o=>{r.push({param:i,value:o,op:"a"})}):r.push({param:i,value:n,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(i=>r+"="+this.encoder.encodeValue(i)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(ku(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let i=this.map.get(e.param)||[],n=i.indexOf(ku(e.value));n!==-1&&i.splice(n,1),i.length>0?this.map.set(e.param,i):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var Zg=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function RP(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function BD(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function zD(t){return typeof Blob<"u"&&t instanceof Blob}function UD(t){return typeof FormData<"u"&&t instanceof FormData}function AP(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Wa=class t{constructor(e,r,i,n){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(RP(this.method)||n?(this.body=i!==void 0?i:null,o=n):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new tr,this.context??=new Zg,!this.params)this.params=new Tn,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),c=a===-1?"?":af.set(p,e.setHeaders[p]),l)),e.setParams&&(d=Object.keys(e.setParams).reduce((f,p)=>f.set(p,e.setParams[p]),d)),new t(r,i,s,{params:d,headers:l,context:u,reportProgress:c,responseType:n,withCredentials:a,transferCache:o})}},Ar=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Ar||{}),Ya=class{constructor(e,r=200,i="OK"){this.headers=e.headers||new tr,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Ru=class t extends Ya{constructor(e={}){super(e),this.type=Ar.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Za=class t extends Ya{constructor(e={}){super(e),this.type=Ar.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Rr=class extends Ya{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},qD=200,OP=204;function qg(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Xg=(()=>{let e=class e{constructor(i){this.handler=i}request(i,n,o={}){let s;if(i instanceof Wa)s=i;else{let l;o.headers instanceof tr?l=o.headers:l=new tr(o.headers);let d;o.params&&(o.params instanceof Tn?d=o.params:d=new Tn({fromObject:o.params})),s=new Wa(i,n,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:d,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=V(s).pipe(pn(l=>this.handler.handle(l)));if(i instanceof Wa||o.observe==="events")return a;let c=a.pipe(ge(l=>l instanceof Za));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(P(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return c.pipe(P(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return c.pipe(P(l=>{if(l.body!==null&&typeof l.body!="string")throw new Error("Response is not a string.");return l.body}));case"json":default:return c.pipe(P(l=>l.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(i,n={}){return this.request("DELETE",i,n)}get(i,n={}){return this.request("GET",i,n)}head(i,n={}){return this.request("HEAD",i,n)}jsonp(i,n){return this.request("JSONP",i,{params:new Tn().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(i,n={}){return this.request("OPTIONS",i,n)}patch(i,n,o={}){return this.request("PATCH",i,qg(o,n))}post(i,n,o={}){return this.request("POST",i,qg(o,n))}put(i,n,o={}){return this.request("PUT",i,qg(o,n))}};e.\u0275fac=function(n){return new(n||e)(m(qa))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),NP=/^\)\]\}',?\n/,FP="X-Request-URL";function HD(t){if(t.url)return t.url;let e=FP.toLocaleLowerCase();return t.headers.get(e)}var PP=(()=>{let e=class e{constructor(){this.fetchImpl=b(Qg,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=b(F)}handle(i){return new oe(n=>{let o=new AbortController;return this.doRequest(i,o.signal,n).then(Kg,s=>n.error(new Rr({error:s}))),()=>o.abort()})}doRequest(i,n,o){return Bo(this,null,function*(){let s=this.createRequestInit(i),a;try{let v=this.ngZone.runOutsideAngular(()=>this.fetchImpl(i.urlWithParams,w({signal:n},s)));LP(v),o.next({type:Ar.Sent}),a=yield v}catch(v){o.error(new Rr({error:v,status:v.status??0,statusText:v.statusText,url:i.urlWithParams,headers:v.headers}));return}let c=new tr(a.headers),l=a.statusText,d=HD(a)??i.urlWithParams,u=a.status,f=null;if(i.reportProgress&&o.next(new Ru({headers:c,status:u,statusText:l,url:d})),a.body){let v=a.headers.get("content-length"),S=[],E=a.body.getReader(),R=0,he,Ne,Ue=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Bo(this,null,function*(){for(;;){let{done:xt,value:Ii}=yield E.read();if(xt)break;if(S.push(Ii),R+=Ii.length,i.reportProgress){Ne=i.responseType==="text"?(Ne??"")+(he??=new TextDecoder).decode(Ii,{stream:!0}):void 0;let Vo=()=>o.next({type:Ar.DownloadProgress,total:v?+v:void 0,loaded:R,partialText:Ne});Ue?Ue.run(Vo):Vo()}}}));let Ei=this.concatChunks(S,R);try{let xt=a.headers.get("Content-Type")??"";f=this.parseBody(i,Ei,xt)}catch(xt){o.error(new Rr({error:xt,headers:new tr(a.headers),status:a.status,statusText:a.statusText,url:HD(a)??i.urlWithParams}));return}}u===0&&(u=f?qD:0),u>=200&&u<300?(o.next(new Za({body:f,headers:c,status:u,statusText:l,url:d})),o.complete()):o.error(new Rr({error:f,headers:c,status:u,statusText:l,url:d}))})}parseBody(i,n,o){switch(i.responseType){case"json":let s=new TextDecoder().decode(n).replace(NP,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(n);case"blob":return new Blob([n],{type:o});case"arraybuffer":return n.buffer}}createRequestInit(i){let n={},o=i.withCredentials?"include":void 0;if(i.headers.forEach((s,a)=>n[s]=a.join(",")),i.headers.has("Accept")||(n.Accept="application/json, text/plain, */*"),!i.headers.has("Content-Type")){let s=i.detectContentTypeHeader();s!==null&&(n["Content-Type"]=s)}return{body:i.serializeBody(),method:i.method,headers:n,credentials:o}}concatChunks(i,n){let o=new Uint8Array(n),s=0;for(let a of i)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Qg=class{};function Kg(){}function LP(t){t.then(Kg,Kg)}function YD(t,e){return e(t)}function jP(t,e){return(r,i)=>e.intercept(r,{handle:n=>t(n,i)})}function VP(t,e,r){return(i,n)=>pi(r,()=>e(i,o=>t(o,n)))}var BP=new g(""),Jg=new g(""),zP=new g(""),ZD=new g("",{providedIn:"root",factory:()=>!0});function UP(){let t=null;return(e,r)=>{t===null&&(t=(b(BP,{optional:!0})??[]).reduceRight(jP,YD));let i=b(Cn);if(b(ZD)){let o=i.add();return t(e,r).pipe(Si(()=>i.remove(o)))}else return t(e,r)}}var $D=(()=>{let e=class e extends qa{constructor(i,n){super(),this.backend=i,this.injector=n,this.chain=null,this.pendingTasks=b(Cn),this.contributeToStability=b(ZD)}handle(i){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(Jg),...this.injector.get(zP,[])]));this.chain=n.reduceRight((o,s)=>VP(o,s,this.injector),YD)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(i,o=>this.backend.handle(o)).pipe(Si(()=>this.pendingTasks.remove(n)))}else return this.chain(i,n=>this.backend.handle(n))}};e.\u0275fac=function(n){return new(n||e)(m(Tu),m(_t))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var HP=/^\)\]\}',?\n/;function $P(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var GD=(()=>{let e=class e{constructor(i){this.xhrFactory=i}handle(i){if(i.method==="JSONP")throw new G(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?He(n.\u0275loadImpl()):V(null)).pipe(Oe(()=>new oe(s=>{let a=n.build();if(a.open(i.method,i.urlWithParams),i.withCredentials&&(a.withCredentials=!0),i.headers.forEach((E,R)=>a.setRequestHeader(E,R.join(","))),i.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!i.headers.has("Content-Type")){let E=i.detectContentTypeHeader();E!==null&&a.setRequestHeader("Content-Type",E)}if(i.responseType){let E=i.responseType.toLowerCase();a.responseType=E!=="json"?E:"text"}let c=i.serializeBody(),l=null,d=()=>{if(l!==null)return l;let E=a.statusText||"OK",R=new tr(a.getAllResponseHeaders()),he=$P(a)||i.url;return l=new Ru({headers:R,status:a.status,statusText:E,url:he}),l},u=()=>{let{headers:E,status:R,statusText:he,url:Ne}=d(),Ue=null;R!==OP&&(Ue=typeof a.response>"u"?a.responseText:a.response),R===0&&(R=Ue?qD:0);let Ei=R>=200&&R<300;if(i.responseType==="json"&&typeof Ue=="string"){let xt=Ue;Ue=Ue.replace(HP,"");try{Ue=Ue!==""?JSON.parse(Ue):null}catch(Ii){Ue=xt,Ei&&(Ei=!1,Ue={error:Ii,text:Ue})}}Ei?(s.next(new Za({body:Ue,headers:E,status:R,statusText:he,url:Ne||void 0})),s.complete()):s.error(new Rr({error:Ue,headers:E,status:R,statusText:he,url:Ne||void 0}))},f=E=>{let{url:R}=d(),he=new Rr({error:E,status:a.status||0,statusText:a.statusText||"Unknown Error",url:R||void 0});s.error(he)},p=!1,v=E=>{p||(s.next(d()),p=!0);let R={type:Ar.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(R.total=E.total),i.responseType==="text"&&a.responseText&&(R.partialText=a.responseText),s.next(R)},S=E=>{let R={type:Ar.UploadProgress,loaded:E.loaded};E.lengthComputable&&(R.total=E.total),s.next(R)};return a.addEventListener("load",u),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),i.reportProgress&&(a.addEventListener("progress",v),c!==null&&a.upload&&a.upload.addEventListener("progress",S)),a.send(c),s.next({type:Ar.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",u),a.removeEventListener("timeout",f),i.reportProgress&&(a.removeEventListener("progress",v),c!==null&&a.upload&&a.upload.removeEventListener("progress",S)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(n){return new(n||e)(m(xs))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),QD=new g(""),GP="XSRF-TOKEN",WP=new g("",{providedIn:"root",factory:()=>GP}),qP="X-XSRF-TOKEN",YP=new g("",{providedIn:"root",factory:()=>qP}),Au=class{},ZP=(()=>{let e=class e{constructor(i,n,o){this.doc=i,this.platform=n,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let i=this.doc.cookie||"";return i!==this.lastCookieString&&(this.parseCount++,this.lastToken=Eu(i,this.cookieName),this.lastCookieString=i),this.lastToken}};e.\u0275fac=function(n){return new(n||e)(m(K),m(Ri),m(WP))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function QP(t,e){let r=t.url.toLowerCase();if(!b(QD)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let i=b(Au).getToken(),n=b(YP);return i!=null&&!t.headers.has(n)&&(t=t.clone({headers:t.headers.set(n,i)})),e(t)}var KD=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(KD||{});function KP(t,e){return{\u0275kind:t,\u0275providers:e}}function EZ(...t){let e=[Xg,GD,$D,{provide:qa,useExisting:$D},{provide:Tu,useFactory:()=>b(PP,{optional:!0})??b(GD)},{provide:Jg,useValue:QP,multi:!0},{provide:QD,useValue:!0},{provide:Au,useClass:ZP}];for(let r of t)e.push(...r.\u0275providers);return gs(e)}var WD=new g("");function IZ(){return KP(KD.LegacyInterceptors,[{provide:WD,useFactory:UP},{provide:Jg,useExisting:WD,multi:!0}])}var iv=class extends yu{constructor(){super(...arguments),this.supportsDOMEvents=!0}},nv=class t extends iv{static makeCurrent(){MD(new t)}onAndCancel(e,r,i){return e.addEventListener(r,i),()=>{e.removeEventListener(r,i)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=JP();return r==null?null:eL(r)}resetBaseElement(){Qa=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Eu(document.cookie,e)}},Qa=null;function JP(){return Qa=Qa||document.querySelector("base"),Qa?Qa.getAttribute("href"):null}function eL(t){return new URL(t,document.baseURI).pathname}var rv=class{addToWindow(e){ht.getAngularTestability=(i,n=!0)=>{let o=e.findTestabilityInTree(i,n);if(o==null)throw new G(5103,!1);return o},ht.getAllAngularTestabilities=()=>e.getAllTestabilities(),ht.getAllAngularRootElements=()=>e.getAllRootElements();let r=i=>{let n=ht.getAllAngularTestabilities(),o=n.length,s=function(){o--,o==0&&i()};n.forEach(a=>{a.whenStable(s)})};ht.frameworkStabilizers||(ht.frameworkStabilizers=[]),ht.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,i){if(r==null)return null;let n=e.getTestability(r);return n??(i?kn().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},tL=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Ou=new g(""),tC=(()=>{let e=class e{constructor(i,n){this._zone=n,this._eventNameToPlugin=new Map,i.forEach(o=>{o.manager=this}),this._plugins=i.slice().reverse()}addEventListener(i,n,o){return this._findPluginFor(n).addEventListener(i,n,o)}getZone(){return this._zone}_findPluginFor(i){let n=this._eventNameToPlugin.get(i);if(n)return n;if(n=this._plugins.find(s=>s.supports(i)),!n)throw new G(5101,!1);return this._eventNameToPlugin.set(i,n),n}};e.\u0275fac=function(n){return new(n||e)(m(Ou),m(F))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Ka=class{constructor(e){this._doc=e}},ev="ng-app-id",iC=(()=>{let e=class e{constructor(i,n,o,s={}){this.doc=i,this.appId=n,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Mu(s),this.resetHostNodes()}addStyles(i){for(let n of i)this.changeUsageCount(n,1)===1&&this.onStyleAdded(n)}removeStyles(i){for(let n of i)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){let i=this.styleNodesInDOM;i&&(i.forEach(n=>n.remove()),i.clear());for(let n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(i){this.hostNodes.add(i);for(let n of this.getAllStyles())this.addStyleToHost(i,n)}removeHost(i){this.hostNodes.delete(i)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(i){for(let n of this.hostNodes)this.addStyleToHost(n,i)}onStyleRemoved(i){let n=this.styleRef;n.get(i)?.elements?.forEach(o=>o.remove()),n.delete(i)}collectServerRenderedStyles(){let i=this.doc.head?.querySelectorAll(`style[${ev}="${this.appId}"]`);if(i?.length){let n=new Map;return i.forEach(o=>{o.textContent!=null&&n.set(o.textContent,o)}),n}return null}changeUsageCount(i,n){let o=this.styleRef;if(o.has(i)){let s=o.get(i);return s.usage+=n,s.usage}return o.set(i,{usage:n,elements:[]}),n}getStyleElement(i,n){let o=this.styleNodesInDOM,s=o?.get(n);if(s?.parentNode===i)return o.delete(n),s.removeAttribute(ev),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=n,this.platformIsServer&&a.setAttribute(ev,this.appId),i.appendChild(a),a}}addStyleToHost(i,n){let o=this.getStyleElement(i,n),s=this.styleRef,a=s.get(n)?.elements;a?a.push(o):s.set(n,{elements:[o],usage:1})}resetHostNodes(){let i=this.hostNodes;i.clear(),i.add(this.doc.head)}};e.\u0275fac=function(n){return new(n||e)(m(K),m(ys),m(Pa,8),m(Ri))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),tv={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},sv=/%COMP%/g,nC="%COMP%",iL=`_nghost-${nC}`,nL=`_ngcontent-${nC}`,rL=!0,oL=new g("",{providedIn:"root",factory:()=>rL});function sL(t){return nL.replace(sv,t)}function aL(t){return iL.replace(sv,t)}function rC(t,e){return e.map(r=>r.replace(sv,t))}var XD=(()=>{let e=class e{constructor(i,n,o,s,a,c,l,d=null){this.eventManager=i,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=l,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=Mu(c),this.defaultRenderer=new Xa(i,a,l,this.platformIsServer)}createRenderer(i,n){if(!i||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===bn.ShadowDom&&(n=Q(w({},n),{encapsulation:bn.Emulated}));let o=this.getOrCreateRenderer(i,n);return o instanceof Nu?o.applyToHost(i):o instanceof Ja&&o.applyStyles(),o}getOrCreateRenderer(i,n){let o=this.rendererByCompId,s=o.get(n.id);if(!s){let a=this.doc,c=this.ngZone,l=this.eventManager,d=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(n.encapsulation){case bn.Emulated:s=new Nu(l,d,n,this.appId,u,a,c,f);break;case bn.ShadowDom:return new ov(l,d,i,n,a,c,this.nonce,f);default:s=new Ja(l,d,n,u,a,c,f);break}o.set(n.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(n){return new(n||e)(m(tC),m(iC),m(ys),m(oL),m(K),m(Ri),m(F),m(Pa))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Xa=class{constructor(e,r,i,n){this.eventManager=e,this.doc=r,this.ngZone=i,this.platformIsServer=n,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(tv[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(JD(e)?e.content:e).appendChild(r)}insertBefore(e,r,i){e&&(JD(e)?e.content:e).insertBefore(r,i)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let i=typeof e=="string"?this.doc.querySelector(e):e;if(!i)throw new G(-5104,!1);return r||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,i,n){if(n){r=n+":"+r;let o=tv[n];o?e.setAttributeNS(o,r,i):e.setAttribute(r,i)}else e.setAttribute(r,i)}removeAttribute(e,r,i){if(i){let n=tv[i];n?e.removeAttributeNS(n,r):e.removeAttribute(`${i}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,i,n){n&(wn.DashCase|wn.Important)?e.style.setProperty(r,i,n&wn.Important?"important":""):e.style[r]=i}removeStyle(e,r,i){i&wn.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,i){e!=null&&(e[r]=i)}setValue(e,r){e.nodeValue=r}listen(e,r,i){if(typeof e=="string"&&(e=kn().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(i))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function JD(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var ov=class extends Xa{constructor(e,r,i,n,o,s,a,c){super(e,o,s,c),this.sharedStylesHost=r,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=rC(n.id,n.styles);for(let d of l){let u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,i){return super.insertBefore(this.nodeOrShadowRoot(e),r,i)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ja=class extends Xa{constructor(e,r,i,n,o,s,a,c){super(e,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=n,this.styles=c?rC(c,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Nu=class extends Ja{constructor(e,r,i,n,o,s,a,c){let l=n+"-"+i.id;super(e,r,i,o,s,a,c,l),this.contentAttr=sL(l),this.hostAttr=aL(l)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let i=super.createElement(e,r);return super.setAttribute(i,this.contentAttr,""),i}},cL=(()=>{let e=class e extends Ka{constructor(i){super(i)}supports(i){return!0}addEventListener(i,n,o){return i.addEventListener(n,o,!1),()=>this.removeEventListener(i,n,o)}removeEventListener(i,n,o){return i.removeEventListener(n,o)}};e.\u0275fac=function(n){return new(n||e)(m(K))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),lL=(()=>{let e=class e extends Ka{constructor(i){super(i),this.delegate=b(vD,{optional:!0})}supports(i){return this.delegate?this.delegate.supports(i):!1}addEventListener(i,n,o){return this.delegate.addEventListener(i,n,o)}removeEventListener(i,n,o){return this.delegate.removeEventListener(i,n,o)}};e.\u0275fac=function(n){return new(n||e)(m(K))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),eC=["alt","control","meta","shift"],dL={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},uL={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},hL=(()=>{let e=class e extends Ka{constructor(i){super(i)}supports(i){return e.parseEventName(i)!=null}addEventListener(i,n,o){let s=e.parseEventName(n),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>kn().onAndCancel(i,s.domEventName,a))}static parseEventName(i){let n=i.toLowerCase().split("."),o=n.shift();if(n.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(n.pop()),a="",c=n.indexOf("code");if(c>-1&&(n.splice(c,1),a="code."),eC.forEach(d=>{let u=n.indexOf(d);u>-1&&(n.splice(u,1),a+=d+".")}),a+=s,n.length!=0||s.length===0)return null;let l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(i,n){let o=dL[i.key]||i.key,s="";return n.indexOf("code.")>-1&&(o=i.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),eC.forEach(a=>{if(a!==o){let c=uL[a];c(i)&&(s+=a+".")}}),s+=o,s===n)}static eventCallback(i,n,o){return s=>{e.matchEventFullKeyCode(s,i)&&o.runGuarded(()=>n(s))}}static _normalizeKey(i){return i==="esc"?"escape":i}};e.\u0275fac=function(n){return new(n||e)(m(K))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function fL(){nv.makeCurrent()}function pL(){return new Ft}function mL(){return jw(document),document}var gL=[{provide:Ri,useValue:Gg},{provide:tg,useValue:fL,multi:!0},{provide:K,useFactory:mL,deps:[]}],BZ=kg(mD,"browser",gL),vL=new g(""),bL=[{provide:$a,useClass:rv,deps:[]},{provide:Ig,useClass:ou,deps:[F,su,$a]},{provide:ou,useClass:ou,deps:[F,su,$a]}],_L=[{provide:Od,useValue:"root"},{provide:Ft,useFactory:pL,deps:[]},{provide:Ou,useClass:cL,multi:!0,deps:[K,F,Ri]},{provide:Ou,useClass:hL,multi:!0,deps:[K]},{provide:Ou,useClass:lL,multi:!0},XD,iC,tC,{provide:fs,useExisting:XD},{provide:xs,useClass:tL,deps:[]},[]],zZ=(()=>{let e=class e{constructor(i){}static withServerTransition(i){return{ngModule:e,providers:[{provide:ys,useValue:i.appId}]}}};e.\u0275fac=function(n){return new(n||e)(m(vL,12))},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[..._L,...bL],imports:[Gt,gD]});let t=e;return t})();var oC=(()=>{let e=class e{constructor(i){this._doc=i}getTitle(){return this._doc.title}setTitle(i){this._doc.title=i||""}};e.\u0275fac=function(n){return new(n||e)(m(K))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var av=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:function(n){let o=null;return n?o=new(n||e):o=m(yL),o},providedIn:"root"});let t=e;return t})(),yL=(()=>{let e=class e extends av{constructor(i){super(),this._doc=i}sanitize(i,n){if(n==null)return null;switch(i){case Ht.NONE:return n;case Ht.HTML:return xr(n,"HTML")?Ai(n):Qw(this._doc,String(n)).toString();case Ht.STYLE:return xr(n,"Style")?Ai(n):n;case Ht.SCRIPT:if(xr(n,"Script"))return Ai(n);throw new G(5200,!1);case Ht.URL:return xr(n,"URL")?Ai(n):Hd(String(n));case Ht.RESOURCE_URL:if(xr(n,"ResourceURL"))return Ai(n);throw new G(5201,!1);default:throw new G(5202,!1)}}bypassSecurityTrustHtml(i){return Bw(i)}bypassSecurityTrustStyle(i){return zw(i)}bypassSecurityTrustScript(i){return Uw(i)}bypassSecurityTrustUrl(i){return Hw(i)}bypassSecurityTrustResourceUrl(i){return $w(i)}};e.\u0275fac=function(n){return new(n||e)(m(K))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function cv(t,e){let r=!e?.manualCleanup;r&&!e?.injector&&Oa(cv);let i=r?e?.injector?.get(fo)??b(fo):null,n=wL(e?.equal),o;e?.requireSync?o=Ni({kind:0},{equal:n}):o=Ni({kind:1,value:e?.initialValue},{equal:n});let s=t.subscribe({next:a=>o.set({kind:1,value:a}),error:a=>{if(e?.rejectErrors)throw a;o.set({kind:2,error:a})}});return i?.onDestroy(s.unsubscribe.bind(s)),Mn(()=>{let a=o();switch(a.kind){case 1:return a.value;case 2:throw a.error;case 0:throw new G(601,"`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.")}},{equal:e?.equal})}function wL(t=Object.is){return(e,r)=>e.kind===1&&r.kind===1&&t(e.value,r.value)}var hv={};function gv(t,e){if(hv[t]=(hv[t]||0)+1,typeof e=="function")return lv(t,(...i)=>Q(w({},e(...i)),{type:t}));switch(e?e._as:"empty"){case"empty":return lv(t,()=>({type:t}));case"props":return lv(t,i=>Q(w({},i),{type:t}));default:throw new Error("Unexpected config.")}}function Tt(){return{_as:"props",_p:void 0}}function lv(t,e){return Object.defineProperty(e,"type",{value:t,writable:!1})}function xL(t){return t.charAt(0).toUpperCase()+t.substring(1)}function DL(t){return t.charAt(0).toLowerCase()+t.substring(1)}function Cs(t){let{source:e,events:r}=t;return Object.keys(r).reduce((i,n)=>Q(w({},i),{[CL(n)]:gv(EL(e,n),r[n])}),{})}function ir(){return Tt()}function CL(t){return t.trim().split(" ").map((e,r)=>r===0?DL(e):xL(e)).join("")}function EL(t,e){return`[${t}] ${e}`}var xC="@ngrx/store/init",Es=(()=>{let e=class e extends Pe{constructor(){super({type:xC})}next(i){if(typeof i=="function")throw new TypeError(` - Dispatch expected an object, instead it received a function. - If you're using the createAction function, make sure to invoke the function - before dispatching the action. For example, someAction should be someAction().`);if(typeof i>"u")throw new TypeError("Actions must be objects");if(typeof i.type>"u")throw new TypeError("Actions must have a type property");super.next(i)}complete(){}ngOnDestroy(){super.complete()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),IL=[Es],DC=new g("@ngrx/store Internal Root Guard"),aC=new g("@ngrx/store Internal Initial State"),vv=new g("@ngrx/store Initial State"),CC=new g("@ngrx/store Reducer Factory"),cC=new g("@ngrx/store Internal Reducer Factory Provider"),EC=new g("@ngrx/store Initial Reducers"),dv=new g("@ngrx/store Internal Initial Reducers"),lC=new g("@ngrx/store Store Features"),dC=new g("@ngrx/store Internal Store Reducers"),uv=new g("@ngrx/store Internal Feature Reducers"),uC=new g("@ngrx/store Internal Feature Configs"),IC=new g("@ngrx/store Internal Store Features"),hC=new g("@ngrx/store Internal Feature Reducers Token"),SC=new g("@ngrx/store Feature Reducers"),fC=new g("@ngrx/store User Provided Meta Reducers"),Fu=new g("@ngrx/store Meta Reducers"),pC=new g("@ngrx/store Internal Resolved Meta Reducers"),mC=new g("@ngrx/store User Runtime Checks Config"),gC=new g("@ngrx/store Internal User Runtime Checks Config"),ec=new g("@ngrx/store Internal Runtime Checks"),bv=new g("@ngrx/store Check if Action types are unique"),SL=new g("@ngrx/store Root Store Provider"),ML=new g("@ngrx/store Feature State Provider");function _v(t,e={}){let r=Object.keys(t),i={};for(let o=0;or!==e).reduce((r,i)=>Object.assign(r,{[i]:t[i]}),{})}function MC(...t){return function(e){if(t.length===0)return e;let r=t[t.length-1];return t.slice(0,-1).reduceRight((n,o)=>o(n),r(e))}}function kC(t,e){return Array.isArray(e)&&e.length>0&&(t=MC.apply(null,[...e,t])),(r,i)=>{let n=t(r);return(o,s)=>(o=o===void 0?i:o,n(o,s))}}function TL(t){let e=Array.isArray(t)&&t.length>0?MC(...t):r=>r;return(r,i)=>(r=e(r),(n,o)=>(n=n===void 0?i:n,r(n,o)))}var tc=class extends oe{},Pu=class extends Es{},RL="@ngrx/store/update-reducers",Lu=(()=>{let e=class e extends Pe{get currentReducers(){return this.reducers}constructor(i,n,o,s){super(s(o,n)),this.dispatcher=i,this.initialState=n,this.reducers=o,this.reducerFactory=s}addFeature(i){this.addFeatures([i])}addFeatures(i){let n=i.reduce((o,{reducers:s,reducerFactory:a,metaReducers:c,initialState:l,key:d})=>{let u=typeof s=="function"?TL(c)(s,l):kC(a,c)(s,l);return o[d]=u,o},{});this.addReducers(n)}removeFeature(i){this.removeFeatures([i])}removeFeatures(i){this.removeReducers(i.map(n=>n.key))}addReducer(i,n){this.addReducers({[i]:n})}addReducers(i){this.reducers=w(w({},this.reducers),i),this.updateReducers(Object.keys(i))}removeReducer(i){this.removeReducers([i])}removeReducers(i){i.forEach(n=>{this.reducers=kL(this.reducers,n)}),this.updateReducers(i)}updateReducers(i){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:RL,features:i})}ngOnDestroy(){this.complete()}};e.\u0275fac=function(n){return new(n||e)(m(Pu),m(vv),m(EC),m(CC))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),AL=[Lu,{provide:tc,useExisting:Lu},{provide:Pu,useExisting:Es}],ic=(()=>{let e=class e extends C{ngOnDestroy(){this.complete()}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),OL=[ic],ju=class extends oe{},vC=(()=>{let e=class e extends Pe{constructor(i,n,o,s){super(s);let c=i.pipe(Yr(Qf)).pipe(_a(n)),l={state:s},d=c.pipe(va(NL,l));this.stateSubscription=d.subscribe(({state:u,action:f})=>{this.next(u),o.next(f)}),this.state=cv(this,{manualCleanup:!0,requireSync:!0})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}};e.INIT=xC,e.\u0275fac=function(n){return new(n||e)(m(Es),m(tc),m(ic),m(vv))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function NL(t={state:void 0},[e,r]){let{state:i}=t;return{state:r(i,e),action:e}}var FL=[vC,{provide:ju,useExisting:vC}],ni=(()=>{let e=class e extends oe{constructor(i,n,o){super(),this.actionsObserver=n,this.reducerManager=o,this.source=i,this.state=i.state}select(i,...n){return LL.call(null,i,...n)(this)}selectSignal(i,n){return Mn(()=>i(this.state()),n)}lift(i){let n=new e(this,this.actionsObserver,this.reducerManager);return n.operator=i,n}dispatch(i){this.actionsObserver.next(i)}next(i){this.actionsObserver.next(i)}error(i){this.actionsObserver.error(i)}complete(){this.actionsObserver.complete()}addReducer(i,n){this.reducerManager.addReducer(i,n)}removeReducer(i){this.reducerManager.removeReducer(i)}};e.\u0275fac=function(n){return new(n||e)(m(ju),m(Es),m(Lu))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),PL=[ni];function LL(t,e,...r){return function(n){let o;if(typeof t=="string"){let s=[e,...r].filter(Boolean);o=n.pipe(rp(t,...s))}else if(typeof t=="function")o=n.pipe(P(s=>t(s,e)));else throw new TypeError(`Unexpected type '${typeof t}' in select operator, expected 'string' or 'function'`);return o.pipe(Yi())}}var yv="https://ngrx.io/guide/store/configuration/runtime-checks";function bC(t){return t===void 0}function _C(t){return t===null}function TC(t){return Array.isArray(t)}function jL(t){return typeof t=="string"}function VL(t){return typeof t=="boolean"}function BL(t){return typeof t=="number"}function RC(t){return typeof t=="object"&&t!==null}function zL(t){return RC(t)&&!TC(t)}function UL(t){if(!zL(t))return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null}function fv(t){return typeof t=="function"}function HL(t){return fv(t)&&t.hasOwnProperty("\u0275cmp")}function $L(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var GL=!1;function WL(){return GL}function yC(t,e){return t===e}function qL(t,e,r){for(let i=0;is(t));return i.memoized.apply(null,o)}let n=e.map(o=>o(t,r));return i.memoized.apply(null,[...n,r])}function ZL(t,e={stateFn:YL}){return function(...r){let i=r;if(Array.isArray(i[0])){let[d,...u]=i;i=[...d,...u]}else i.length===1&&QL(i[0])&&(i=KL(i[0]));let n=i.slice(0,i.length-1),o=i[i.length-1],s=n.filter(d=>d.release&&typeof d.release=="function"),a=t(function(...d){return o.apply(null,d)}),c=AC(function(d,u){return e.stateFn.apply(null,[d,n,u,a])});function l(){c.reset(),a.reset(),s.forEach(d=>d.release())}return Object.assign(c.memoized,{release:l,projector:a.memoized,setResult:c.setResult,clearResult:c.clearResult})}}function OC(t){return Rn(e=>{let r=e[t];return!WL()&&Tg()&&!(t in e)&&console.warn(`@ngrx/store: The feature name "${t}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${t}', ...) or StoreModule.forFeature('${t}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),r},e=>e)}function QL(t){return!!t&&typeof t=="object"&&Object.values(t).every(e=>typeof e=="function")}function KL(t){let e=Object.values(t),r=Object.keys(t),i=(...n)=>r.reduce((o,s,a)=>Q(w({},o),{[s]:n[a]}),{});return[...e,i]}function XL(t){return t instanceof g?b(t):t}function JL(t,e){return e.map((r,i)=>{if(t[i]instanceof g){let n=b(t[i]);return{key:r.key,reducerFactory:n.reducerFactory?n.reducerFactory:_v,metaReducers:n.metaReducers?n.metaReducers:[],initialState:n.initialState}}return r})}function ej(t){return t.map(e=>e instanceof g?b(e):e)}function NC(t){return typeof t=="function"?t():t}function tj(t,e){return t.concat(e)}function ij(){if(b(ni,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function nj(t,e){return function(r,i){let n=e.action(i)?pv(i):i,o=t(r,n);return e.state()?pv(o):o}}function pv(t){Object.freeze(t);let e=fv(t);return Object.getOwnPropertyNames(t).forEach(r=>{if(!r.startsWith("\u0275")&&$L(t,r)&&(!e||r!=="caller"&&r!=="callee"&&r!=="arguments")){let i=t[r];(RC(i)||fv(i))&&!Object.isFrozen(i)&&pv(i)}}),t}function rj(t,e){return function(r,i){if(e.action(i)){let o=mv(i);wC(o,"action")}let n=t(r,i);if(e.state()){let o=mv(n);wC(o,"state")}return n}}function mv(t,e=[]){return(bC(t)||_C(t))&&e.length===0?{path:["root"],value:t}:Object.keys(t).reduce((i,n)=>{if(i)return i;let o=t[n];return HL(o)?i:bC(o)||_C(o)||BL(o)||VL(o)||jL(o)||TC(o)?!1:UL(o)?mv(o,[...e,n]):{path:[...e,n],value:o}},!1)}function wC(t,e){if(t===!1)return;let r=t.path.join("."),i=new Error(`Detected unserializable ${e} at "${r}". ${yv}#strict${e}serializability`);throw i.value=t.value,i.unserializablePath=r,i}function oj(t,e){return function(r,i){if(e.action(i)&&!F.isInAngularZone())throw new Error(`Action '${i.type}' running outside NgZone. ${yv}#strictactionwithinngzone`);return t(r,i)}}function sj(t){return Tg()?w({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},t):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function aj({strictActionSerializability:t,strictStateSerializability:e}){return r=>t||e?rj(r,{action:i=>t&&!wv(i),state:()=>e}):r}function cj({strictActionImmutability:t,strictStateImmutability:e}){return r=>t||e?nj(r,{action:i=>t&&!wv(i),state:()=>e}):r}function wv(t){return t.type.startsWith("@ngrx")}function lj({strictActionWithinNgZone:t}){return e=>t?oj(e,{action:r=>t&&!wv(r)}):e}function dj(t){return[{provide:gC,useValue:t},{provide:mC,useFactory:uj,deps:[gC]},{provide:ec,deps:[mC],useFactory:sj},{provide:Fu,multi:!0,deps:[ec],useFactory:cj},{provide:Fu,multi:!0,deps:[ec],useFactory:aj},{provide:Fu,multi:!0,deps:[ec],useFactory:lj}]}function FC(){return[{provide:bv,multi:!0,deps:[ec],useFactory:hj}]}function uj(t){return t}function hj(t){if(!t.strictActionTypeUniqueness)return;let e=Object.entries(hv).filter(([,r])=>r>1).map(([r])=>r);if(e.length)throw new Error(`Action types are registered more than once, ${e.map(r=>`"${r}"`).join(", ")}. ${yv}#strictactiontypeuniqueness`)}function fj(t={},e={}){return[{provide:DC,useFactory:ij},{provide:aC,useValue:e.initialState},{provide:vv,useFactory:NC,deps:[aC]},{provide:dv,useValue:t},{provide:dC,useExisting:t instanceof g?t:dv},{provide:EC,deps:[dv,[new jm(dC)]],useFactory:XL},{provide:fC,useValue:e.metaReducers?e.metaReducers:[]},{provide:pC,deps:[Fu,fC],useFactory:tj},{provide:cC,useValue:e.reducerFactory?e.reducerFactory:_v},{provide:CC,deps:[cC,pC],useFactory:kC},IL,AL,OL,FL,PL,dj(e.runtimeChecks),FC()]}function pj(t,e,r={}){return[{provide:uC,multi:!0,useValue:t instanceof Object?{}:r},{provide:lC,multi:!0,useValue:{key:t instanceof Object?t.name:t,reducerFactory:!(r instanceof g)&&r.reducerFactory?r.reducerFactory:_v,metaReducers:!(r instanceof g)&&r.metaReducers?r.metaReducers:[],initialState:!(r instanceof g)&&r.initialState?r.initialState:void 0}},{provide:IC,deps:[uC,lC],useFactory:JL},{provide:uv,multi:!0,useValue:t instanceof Object?t.reducer:e},{provide:hC,multi:!0,useExisting:e instanceof g?e:uv},{provide:SC,multi:!0,deps:[uv,[new jm(hC)]],useFactory:ej},FC()]}var nc=(()=>{let e=class e{constructor(i,n,o,s,a,c){}};e.\u0275fac=function(n){return new(n||e)(m(Es),m(tc),m(ic),m(ni),m(DC,8),m(bv,8))},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})(),Vu=(()=>{let e=class e{constructor(i,n,o,s,a){this.features=i,this.featureReducers=n,this.reducerManager=o;let c=i.map((l,d)=>{let f=n.shift()[d];return Q(w({},l),{reducers:f,initialState:NC(l.initialState)})});o.addFeatures(c)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}};e.\u0275fac=function(n){return new(n||e)(m(IC),m(SC),m(Lu),m(nc),m(bv,8))},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})(),eQ=(()=>{let e=class e{static forRoot(i,n){return{ngModule:nc,providers:[...fj(i,n)]}}static forFeature(i,n,o={}){return{ngModule:Vu,providers:[...pj(i,n,o)]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})();function Wt(...t){let e=t.pop(),r=t.map(i=>i.type);return{reducer:e,types:r}}function Bu(t,...e){let r=new Map;for(let i of e)for(let n of i.types){let o=r.get(n);if(o){let s=(a,c)=>i.reducer(o(a,c),c);r.set(n,s)}else r.set(n,i.reducer)}return function(i=t,n){let o=r.get(n.type);return o?o(i,n):i}}var mj={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},Uu="__@ngrx/effects_create__";function An(t,e={}){let r=e.functional?t:t(),i=w(w({},mj),e);return Object.defineProperty(r,Uu,{value:i}),r}function gj(t){return Object.getOwnPropertyNames(t).filter(i=>t[i]&&t[i].hasOwnProperty(Uu)?t[i][Uu].hasOwnProperty("dispatch"):!1).map(i=>{let n=t[i][Uu];return w({propertyName:i},n)})}function vj(t){return gj(t)}function VC(t){return Object.getPrototypeOf(t)}function bj(t){return!!t.constructor&&t.constructor.name!=="Object"&&t.constructor.name!=="Function"}function BC(t){return typeof t=="function"}function PC(t){return t.filter(BC)}function _j(t){return t instanceof g||BC(t)}function yj(t,e,r){let i=VC(t),o=!!i&&i.constructor.name!=="Object"?i.constructor.name:null,s=vj(t).map(({propertyName:a,dispatch:c,useEffectsErrorHandler:l})=>{let d=typeof t[a]=="function"?t[a]():t[a],u=l?r(d,e):d;return c===!1?u.pipe(pa()):u.pipe(np()).pipe(P(p=>({effect:t[a],notification:p,propertyName:a,sourceName:o,sourceInstance:t})))});return Ze(...s)}var wj=10;function zC(t,e,r=wj){return t.pipe(ut(i=>(e&&e.handleError(i),r<=1?t:zC(t,e,r-1))))}var Hu=(()=>{let e=class e extends oe{constructor(i){super(),i&&(this.source=i)}lift(i){let n=new e;return n.source=this,n.operator=i,n}};e.\u0275fac=function(n){return new(n||e)(m(ic))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function On(...t){return ge(e=>t.some(r=>typeof r=="string"?r===e.type:r.type===e.type))}var UC=new g("@ngrx/effects Internal Root Guard"),zu=new g("@ngrx/effects User Provided Effects"),xv=new g("@ngrx/effects Internal Root Effects"),HC=new g("@ngrx/effects Internal Root Effects Instances"),LC=new g("@ngrx/effects Internal Feature Effects"),$C=new g("@ngrx/effects Internal Feature Effects Instance Groups"),xj=new g("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>zC}),GC="@ngrx/effects/init",dQ=gv(GC);function Dj(t,e){if(t.notification.kind==="N"){let r=t.notification.value;!Cj(r)&&e.handleError(new Error(`Effect ${Ej(t)} dispatched an invalid action: ${Ij(r)}`))}}function Cj(t){return typeof t!="function"&&t&&t.type&&typeof t.type=="string"}function Ej({propertyName:t,sourceInstance:e,sourceName:r}){let i=typeof e[t]=="function";return!!r?`"${r}.${String(t)}${i?"()":""}"`:`"${String(t)}()"`}function Ij(t){try{return JSON.stringify(t)}catch{return t}}var Sj="ngrxOnIdentifyEffects";function Mj(t){return Dv(t,Sj)}var kj="ngrxOnRunEffects";function Tj(t){return Dv(t,kj)}var Rj="ngrxOnInitEffects";function Aj(t){return Dv(t,Rj)}function Dv(t,e){return t&&e in t&&typeof t[e]=="function"}var WC=(()=>{let e=class e extends C{constructor(i,n){super(),this.errorHandler=i,this.effectsErrorHandler=n}addEffects(i){this.next(i)}toActions(){return this.pipe(Vl(i=>bj(i)?VC(i):i),Fe(i=>i.pipe(Vl(Oj))),Fe(i=>{let n=i.pipe(jl(s=>Nj(this.errorHandler,this.effectsErrorHandler)(s)),P(s=>(Dj(s,this.errorHandler),s.notification)),ge(s=>s.kind==="N"&&s.value!=null),tp()),o=i.pipe(We(1),ge(Aj),P(s=>s.ngrxOnInitEffects()));return Ze(n,o)}))}};e.\u0275fac=function(n){return new(n||e)(m(Ft),m(xj))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Oj(t){return Mj(t)?t.ngrxOnIdentifyEffects():""}function Nj(t,e){return r=>{let i=yj(r,t,e);return Tj(r)?r.ngrxOnRunEffects(i):i}}var qC=(()=>{let e=class e{get isStarted(){return!!this.effectsSubscription}constructor(i,n){this.effectSources=i,this.store=n,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}};e.\u0275fac=function(n){return new(n||e)(m(WC),m(ni))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),YC=(()=>{let e=class e{constructor(i,n,o,s,a,c,l){this.sources=i,n.start();for(let d of s)i.addEffects(d);o.dispatch({type:GC})}addEffects(i){this.sources.addEffects(i)}};e.\u0275fac=function(n){return new(n||e)(m(WC),m(qC),m(ni),m(HC),m(nc,8),m(Vu,8),m(UC,8))},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})(),Fj=(()=>{let e=class e{constructor(i,n,o,s){let a=n.flat();for(let c of a)i.addEffects(c)}};e.\u0275fac=function(n){return new(n||e)(m(YC),m($C),m(nc,8),m(Vu,8))},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})(),uQ=(()=>{let e=class e{static forFeature(...i){let n=i.flat(),o=PC(n);return{ngModule:Fj,providers:[o,{provide:LC,multi:!0,useValue:n},{provide:zu,multi:!0,useValue:[]},{provide:$C,multi:!0,useFactory:jC,deps:[LC,zu]}]}}static forRoot(...i){let n=i.flat(),o=PC(n);return{ngModule:YC,providers:[o,{provide:xv,useValue:[n]},{provide:UC,useFactory:Pj},{provide:zu,multi:!0,useValue:[]},{provide:HC,useFactory:jC,deps:[xv,zu]}]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})();function jC(t,e){let r=[];for(let i of t)r.push(...i);for(let i of e)r.push(...i);return r.map(i=>_j(i)?b(i):i)}function Pj(){let t=b(qC,{optional:!0,skipSelf:!0}),e=b(xv,{self:!0});if(!(e.length===1&&e[0].length===0)&&t)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}var Ce="primary",bc=Symbol("RouteTitle"),Mv=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function Rs(t){return new Mv(t)}function Lj(t,e,r){let i=r.path.split("/");if(i.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||i.lengthi[o]===n)}else return t===e}function aE(t){return t.length>0?t[t.length-1]:null}function Nr(t){return Zr(t)?t:Ir(t)?He(Promise.resolve(t)):V(t)}var Vj={exact:lE,subset:dE},cE={exact:Bj,subset:zj,ignored:()=>!0};function QC(t,e,r){return Vj[r.paths](t.root,e.root,r.matrixParams)&&cE[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function Bj(t,e){return Nn(t,e)}function lE(t,e,r){if(!go(t.segments,e.segments)||!Wu(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let i in e.children)if(!t.children[i]||!lE(t.children[i],e.children[i],r))return!1;return!0}function zj(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>sE(t[r],e[r]))}function dE(t,e,r){return uE(t,e,e.segments,r)}function uE(t,e,r,i){if(t.segments.length>r.length){let n=t.segments.slice(0,r.length);return!(!go(n,r)||e.hasChildren()||!Wu(n,r,i))}else if(t.segments.length===r.length){if(!go(t.segments,r)||!Wu(t.segments,r,i))return!1;for(let n in e.children)if(!t.children[n]||!dE(t.children[n],e.children[n],i))return!1;return!0}else{let n=r.slice(0,t.segments.length),o=r.slice(t.segments.length);return!go(t.segments,n)||!Wu(t.segments,n,i)||!t.children[Ce]?!1:uE(t.children[Ce],e,o,i)}}function Wu(t,e,r){return e.every((i,n)=>cE[r](t[n].parameters,i.parameters))}var rr=class{constructor(e=new $e([],{}),r={},i=null){this.root=e,this.queryParams=r,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Rs(this.queryParams),this._queryParamMap}toString(){return $j.serialize(this)}},$e=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return qu(this)}},mo=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=Rs(this.parameters),this._parameterMap}toString(){return fE(this)}};function Uj(t,e){return go(t,e)&&t.every((r,i)=>Nn(r.parameters,e[i].parameters))}function go(t,e){return t.length!==e.length?!1:t.every((r,i)=>r.path===e[i].path)}function Hj(t,e){let r=[];return Object.entries(t.children).forEach(([i,n])=>{i===Ce&&(r=r.concat(e(n,i)))}),Object.entries(t.children).forEach(([i,n])=>{i!==Ce&&(r=r.concat(e(n,i)))}),r}var _c=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:()=>new As,providedIn:"root"});let t=e;return t})(),As=class{parse(e){let r=new Rv(e);return new rr(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${oc(e.root,!0)}`,i=qj(e.queryParams),n=typeof e.fragment=="string"?`#${Gj(e.fragment)}`:"";return`${r}${i}${n}`}},$j=new As;function qu(t){return t.segments.map(e=>fE(e)).join("/")}function oc(t,e){if(!t.hasChildren())return qu(t);if(e){let r=t.children[Ce]?oc(t.children[Ce],!1):"",i=[];return Object.entries(t.children).forEach(([n,o])=>{n!==Ce&&i.push(`${n}:${oc(o,!1)}`)}),i.length>0?`${r}(${i.join("//")})`:r}else{let r=Hj(t,(i,n)=>n===Ce?[oc(t.children[Ce],!1)]:[`${n}:${oc(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[Ce]!=null?`${qu(t)}/${r[0]}`:`${qu(t)}/(${r.join("//")})`}}function hE(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function $u(t){return hE(t).replace(/%3B/gi,";")}function Gj(t){return encodeURI(t)}function Tv(t){return hE(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Yu(t){return decodeURIComponent(t)}function KC(t){return Yu(t.replace(/\+/g,"%20"))}function fE(t){return`${Tv(t.path)}${Wj(t.parameters)}`}function Wj(t){return Object.entries(t).map(([e,r])=>`;${Tv(e)}=${Tv(r)}`).join("")}function qj(t){let e=Object.entries(t).map(([r,i])=>Array.isArray(i)?i.map(n=>`${$u(r)}=${$u(n)}`).join("&"):`${$u(r)}=${$u(i)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var Yj=/^[^\/()?;#]+/;function Cv(t){let e=t.match(Yj);return e?e[0]:""}var Zj=/^[^\/()?;=#]+/;function Qj(t){let e=t.match(Zj);return e?e[0]:""}var Kj=/^[^=?&#]+/;function Xj(t){let e=t.match(Kj);return e?e[0]:""}var Jj=/^[^&#]+/;function e2(t){let e=t.match(Jj);return e?e[0]:""}var Rv=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new $e([],{}):new $e([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(i[Ce]=new $e(e,r)),i}parseSegment(){let e=Cv(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new G(4009,!1);return this.capture(e),new mo(Yu(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=Qj(this.remaining);if(!r)return;this.capture(r);let i="";if(this.consumeOptional("=")){let n=Cv(this.remaining);n&&(i=n,this.capture(i))}e[Yu(r)]=Yu(i)}parseQueryParam(e){let r=Xj(this.remaining);if(!r)return;this.capture(r);let i="";if(this.consumeOptional("=")){let s=e2(this.remaining);s&&(i=s,this.capture(i))}let n=KC(r),o=KC(i);if(e.hasOwnProperty(n)){let s=e[n];Array.isArray(s)||(s=[s],e[n]=s),s.push(o)}else e[n]=o}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=Cv(this.remaining),n=this.remaining[i.length];if(n!=="/"&&n!==")"&&n!==";")throw new G(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=Ce);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[Ce]:new $e([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new G(4011,!1)}};function pE(t){return t.segments.length>0?new $e([],{[Ce]:t}):t}function mE(t){let e={};for(let[i,n]of Object.entries(t.children)){let o=mE(n);if(i===Ce&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[i]=o)}let r=new $e(t.segments,e);return t2(r)}function t2(t){if(t.numberOfChildren===1&&t.children[Ce]){let e=t.children[Ce];return new $e(t.segments.concat(e.segments),e.children)}return t}function vo(t){return t instanceof rr}function i2(t,e,r=null,i=null){let n=gE(t);return vE(n,e,r,i)}function gE(t){let e;function r(o){let s={};for(let c of o.children){let l=r(c);s[c.outlet]=l}let a=new $e(o.url,s);return o===t&&(e=a),a}let i=r(t.root),n=pE(i);return e??n}function vE(t,e,r,i){let n=t;for(;n.parent;)n=n.parent;if(e.length===0)return Ev(n,n,n,r,i);let o=n2(e);if(o.toRoot())return Ev(n,n,new $e([],{}),r,i);let s=r2(o,n,t),a=s.processChildren?cc(s.segmentGroup,s.index,o.commands):_E(s.segmentGroup,s.index,o.commands);return Ev(n,s.segmentGroup,a,r,i)}function Zu(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function uc(t){return typeof t=="object"&&t!=null&&t.outlets}function Ev(t,e,r,i,n){let o={};i&&Object.entries(i).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(d=>`${d}`):`${l}`});let s;t===e?s=r:s=bE(t,e,r);let a=pE(mE(s));return new rr(a,o,n)}function bE(t,e,r){let i={};return Object.entries(t.children).forEach(([n,o])=>{o===e?i[n]=r:i[n]=bE(o,e,r)}),new $e(t.segments,i)}var Qu=class{constructor(e,r,i){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=i,e&&i.length>0&&Zu(i[0]))throw new G(4003,!1);let n=i.find(uc);if(n&&n!==aE(i))throw new G(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function n2(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Qu(!0,0,t);let e=0,r=!1,i=t.reduce((n,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...n,{outlets:a}]}if(o.segmentPath)return[...n,o.segmentPath]}return typeof o!="string"?[...n,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?r=!0:a===".."?e++:a!=""&&n.push(a))}),n):[...n,o]},[]);return new Qu(r,e,i)}var Ms=class{constructor(e,r,i){this.segmentGroup=e,this.processChildren=r,this.index=i}};function r2(t,e,r){if(t.isAbsolute)return new Ms(e,!0,0);if(!r)return new Ms(e,!1,NaN);if(r.parent===null)return new Ms(r,!0,0);let i=Zu(t.commands[0])?0:1,n=r.segments.length-1+i;return o2(r,n,t.numberOfDoubleDots)}function o2(t,e,r){let i=t,n=e,o=r;for(;o>n;){if(o-=n,i=i.parent,!i)throw new G(4005,!1);n=i.segments.length}return new Ms(i,!1,n-o)}function s2(t){return uc(t[0])?t[0].outlets:{[Ce]:t}}function _E(t,e,r){if(t??=new $e([],{}),t.segments.length===0&&t.hasChildren())return cc(t,e,r);let i=a2(t,e,r),n=r.slice(i.commandIndex);if(i.match&&i.pathIndexo!==Ce)&&t.children[Ce]&&t.numberOfChildren===1&&t.children[Ce].segments.length===0){let o=cc(t.children[Ce],e,r);return new $e(t.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(n[o]=_E(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{i[o]===void 0&&(n[o]=s)}),new $e(t.segments,n)}}function a2(t,e,r){let i=0,n=e,o={match:!1,pathIndex:0,commandIndex:0};for(;n=r.length)return o;let s=t.segments[n],a=r[i];if(uc(a))break;let c=`${a}`,l=i0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!JC(c,l,s))return o;i+=2}else{if(!JC(c,{},s))return o;i++}n++}return{match:!0,pathIndex:n,commandIndex:i}}function Av(t,e,r){let i=t.segments.slice(0,e),n=0;for(;n{typeof i=="string"&&(i=[i]),i!==null&&(e[r]=Av(new $e([],{}),0,i))}),e}function XC(t){let e={};return Object.entries(t).forEach(([r,i])=>e[r]=`${i}`),e}function JC(t,e,r){return t==r.path&&Nn(e,r.parameters)}var lc="imperative",Rt=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Rt||{}),Li=class{constructor(e,r){this.id=e,this.url=r}},Os=class extends Li{constructor(e,r,i="imperative",n=null){super(e,r),this.type=Rt.NavigationStart,this.navigationTrigger=i,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},en=class extends Li{constructor(e,r,i){super(e,r),this.urlAfterRedirects=i,this.type=Rt.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},bi=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(bi||{}),Ku=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Ku||{}),nr=class extends Li{constructor(e,r,i,n){super(e,r),this.reason=i,this.code=n,this.type=Rt.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Or=class extends Li{constructor(e,r,i,n){super(e,r),this.reason=i,this.code=n,this.type=Rt.NavigationSkipped}},hc=class extends Li{constructor(e,r,i,n){super(e,r),this.error=i,this.target=n,this.type=Rt.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Xu=class extends Li{constructor(e,r,i,n){super(e,r),this.urlAfterRedirects=i,this.state=n,this.type=Rt.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ov=class extends Li{constructor(e,r,i,n){super(e,r),this.urlAfterRedirects=i,this.state=n,this.type=Rt.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Nv=class extends Li{constructor(e,r,i,n,o){super(e,r),this.urlAfterRedirects=i,this.state=n,this.shouldActivate=o,this.type=Rt.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Fv=class extends Li{constructor(e,r,i,n){super(e,r),this.urlAfterRedirects=i,this.state=n,this.type=Rt.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Pv=class extends Li{constructor(e,r,i,n){super(e,r),this.urlAfterRedirects=i,this.state=n,this.type=Rt.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Lv=class{constructor(e){this.route=e,this.type=Rt.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},jv=class{constructor(e){this.route=e,this.type=Rt.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Vv=class{constructor(e){this.snapshot=e,this.type=Rt.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Bv=class{constructor(e){this.snapshot=e,this.type=Rt.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},zv=class{constructor(e){this.snapshot=e,this.type=Rt.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Uv=class{constructor(e){this.snapshot=e,this.type=Rt.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ju=class{constructor(e,r,i){this.routerEvent=e,this.position=r,this.anchor=i,this.type=Rt.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},fc=class{},Ns=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};function l2(t,e){return t.providers&&!t._injector&&(t._injector=Kd(t.providers,e,`Route: ${t.path}`)),t._injector??e}function Ji(t){return t.outlet||Ce}function d2(t,e){let r=t.filter(i=>Ji(i)===e);return r.push(...t.filter(i=>Ji(i)!==e)),r}function yc(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var Hv=class{get injector(){return yc(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new wc(this.rootInjector),this.attachRef=null}},wc=(()=>{let e=class e{constructor(i){this.rootInjector=i,this.contexts=new Map}onChildOutletCreated(i,n){let o=this.getOrCreateContext(i);o.outlet=n,this.contexts.set(i,o)}onChildOutletDestroyed(i){let n=this.getContext(i);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let i=this.contexts;return this.contexts=new Map,i}onOutletReAttached(i){this.contexts=i}getOrCreateContext(i){let n=this.getContext(i);return n||(n=new Hv(this.rootInjector),this.contexts.set(i,n)),n}getContext(i){return this.contexts.get(i)||null}};e.\u0275fac=function(n){return new(n||e)(m(_t))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),eh=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=$v(e,this._root);return r?r.children.map(i=>i.value):[]}firstChild(e){let r=$v(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=Gv(e,this._root);return r.length<2?[]:r[r.length-2].children.map(n=>n.value).filter(n=>n!==e)}pathFromRoot(e){return Gv(e,this._root).map(r=>r.value)}};function $v(t,e){if(t===e.value)return e;for(let r of e.children){let i=$v(t,r);if(i)return i}return null}function Gv(t,e){if(t===e.value)return[e];for(let r of e.children){let i=Gv(t,r);if(i.length)return i.unshift(e),i}return[]}var vi=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function Ss(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var th=class extends eh{constructor(e,r){super(e),this.snapshot=r,eb(this,e)}toString(){return this.snapshot.toString()}};function yE(t){let e=u2(t),r=new Pe([new mo("",{})]),i=new Pe({}),n=new Pe({}),o=new Pe({}),s=new Pe(""),a=new bo(r,i,o,s,n,Ce,t,e.root);return a.snapshot=e.root,new th(new vi(a,[]),e)}function u2(t){let e={},r={},i={},n="",o=new ks([],e,i,n,r,Ce,t,null,{});return new nh("",new vi(o,[]))}var bo=class{constructor(e,r,i,n,o,s,a,c){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=i,this.fragmentSubject=n,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(P(l=>l[bc]))??V(void 0),this.url=e,this.params=r,this.queryParams=i,this.fragment=n,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(P(e=>Rs(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(P(e=>Rs(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function ih(t,e,r="emptyOnly"){let i,{routeConfig:n}=t;return e!==null&&(r==="always"||n?.path===""||!e.component&&!e.routeConfig?.loadComponent)?i={params:w(w({},e.params),t.params),data:w(w({},e.data),t.data),resolve:w(w(w(w({},t.data),e.data),n?.data),t._resolvedData)}:i={params:w({},t.params),data:w({},t.data),resolve:w(w({},t.data),t._resolvedData??{})},n&&xE(n)&&(i.resolve[bc]=n.title),i}var ks=class{get title(){return this.data?.[bc]}constructor(e,r,i,n,o,s,a,c,l){this.url=e,this.params=r,this.queryParams=i,this.fragment=n,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Rs(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Rs(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(i=>i.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},nh=class extends eh{constructor(e,r){super(r),this.url=e,eb(this,r)}toString(){return wE(this._root)}};function eb(t,e){e.value._routerState=t,e.children.forEach(r=>eb(t,r))}function wE(t){let e=t.children.length>0?` { ${t.children.map(wE).join(", ")} } `:"";return`${t.value}${e}`}function Iv(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,Nn(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),Nn(e.params,r.params)||t.paramsSubject.next(r.params),jj(e.url,r.url)||t.urlSubject.next(r.url),Nn(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Wv(t,e){let r=Nn(t.params,e.params)&&Uj(t.url,e.url),i=!t.parent!=!e.parent;return r&&!i&&(!t.parent||Wv(t.parent,e.parent))}function xE(t){return typeof t.title=="string"||t.title===null}var tb=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ce,this.activateEvents=new B,this.deactivateEvents=new B,this.attachEvents=new B,this.detachEvents=new B,this.parentContexts=b(wc),this.location=b(Ve),this.changeDetector=b(ue),this.inputBinder=b(lh,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(i){if(i.name){let{firstChange:n,previousValue:o}=i.name;if(n)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(i){return this.parentContexts.getContext(i)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let i=this.parentContexts.getContext(this.name);i?.route&&(i.attachRef?this.attach(i.attachRef,i.route):this.activateWith(i.route,i.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new G(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new G(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new G(4012,!1);this.location.detach();let i=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(i.instance),i}attach(i,n){this.activated=i,this._activatedRoute=n,this.location.insert(i.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(i.instance)}deactivate(){if(this.activated){let i=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(i)}}activateWith(i,n){if(this.isActivated)throw new G(4013,!1);this._activatedRoute=i;let o=this.location,a=i.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new qv(i,c,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Me]});let t=e;return t})(),qv=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,r,i){this.route=e,this.childContexts=r,this.parent=i}get(e,r){return e===bo?this.route:e===wc?this.childContexts:this.parent.get(e,r)}},lh=new g(""),eE=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(i){this.unsubscribeFromRouteData(i),this.subscribeToRouteData(i)}unsubscribeFromRouteData(i){this.outletDataSubscriptions.get(i)?.unsubscribe(),this.outletDataSubscriptions.delete(i)}subscribeToRouteData(i){let{activatedRoute:n}=i,o=qi([n.queryParams,n.params,n.data]).pipe(Oe(([s,a,c],l)=>(c=w(w(w({},s),a),c),l===0?V(c):Promise.resolve(c)))).subscribe(s=>{if(!i.isActivated||!i.activatedComponentRef||i.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(i);return}let a=_D(n.component);if(!a){this.unsubscribeFromRouteData(i);return}for(let{templateName:c}of a.inputs)i.activatedComponentRef.setInput(c,s[c])});this.outletDataSubscriptions.set(i,o)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function h2(t,e,r){let i=pc(t,e._root,r?r._root:void 0);return new th(i,e)}function pc(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let i=r.value;i._futureSnapshot=e.value;let n=f2(t,e,r);return new vi(i,n)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>pc(t,a)),s}}let i=p2(e.value),n=e.children.map(o=>pc(t,o));return new vi(i,n)}}function f2(t,e,r){return e.children.map(i=>{for(let n of r.children)if(t.shouldReuseRoute(i.value,n.value.snapshot))return pc(t,i,n);return pc(t,i)})}function p2(t){return new bo(new Pe(t.url),new Pe(t.params),new Pe(t.queryParams),new Pe(t.fragment),new Pe(t.data),t.outlet,t.component,t)}var mc=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},DE="ngNavigationCancelingError";function rh(t,e){let{redirectTo:r,navigationBehaviorOptions:i}=vo(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,n=CE(!1,bi.Redirect);return n.url=r,n.navigationBehaviorOptions=i,n}function CE(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[DE]=!0,r.cancellationCode=e,r}function m2(t){return EE(t)&&vo(t.url)}function EE(t){return!!t&&t[DE]}var g2=(t,e,r,i)=>P(n=>(new Yv(e,n.targetRouterState,n.currentRouterState,r,i).activate(t),n)),Yv=class{constructor(e,r,i,n,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=i,this.forwardEvent=n,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,i,e),Iv(this.futureState.root),this.activateChildRoutes(r,i,e)}deactivateChildRoutes(e,r,i){let n=Ss(r);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,n[s],i),delete n[s]}),Object.values(n).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(e,r,i){let n=e.value,o=r?r.value:null;if(n===o)if(n.component){let s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,i);else o&&this.deactivateRouteAndItsChildren(r,i)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let i=r.getContext(e.value.outlet),n=i&&e.value.component?i.children:r,o=Ss(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,n);if(i&&i.outlet){let s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let i=r.getContext(e.value.outlet),n=i&&e.value.component?i.children:r,o=Ss(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,n);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(e,r,i){let n=Ss(r);e.children.forEach(o=>{this.activateRoutes(o,n[o.value.outlet],i),this.forwardEvent(new Uv(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Bv(e.value.snapshot))}activateRoutes(e,r,i){let n=e.value,o=r?r.value:null;if(Iv(n),n===o)if(n.component){let s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,i);else if(n.component){let s=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){let a=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Iv(a.route.value),this.activateChildRoutes(e,null,s.children)}else s.attachRef=null,s.route=n,s.outlet&&s.outlet.activateWith(n,s.injector),this.activateChildRoutes(e,null,s.children)}else this.activateChildRoutes(e,null,i)}},oh=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Ts=class{constructor(e,r){this.component=e,this.route=r}};function v2(t,e,r){let i=t._root,n=e?e._root:null;return sc(i,n,r,[i.value])}function b2(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Ps(t,e){let r=Symbol(),i=e.get(t,r);return i===r?typeof t=="function"&&!I0(t)?t:e.get(t):i}function sc(t,e,r,i,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=Ss(e);return t.children.forEach(s=>{_2(s,o[s.value.outlet],r,i.concat([s.value]),n),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>dc(a,r.getContext(s),n)),n}function _2(t,e,r,i,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=y2(s,o,o.routeConfig.runGuardsAndResolvers);c?n.canActivateChecks.push(new oh(i)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?sc(t,e,a?a.children:null,i,n):sc(t,e,r,i,n),c&&a&&a.outlet&&a.outlet.isActivated&&n.canDeactivateChecks.push(new Ts(a.outlet.component,s))}else s&&dc(e,a,n),n.canActivateChecks.push(new oh(i)),o.component?sc(t,null,a?a.children:null,i,n):sc(t,null,r,i,n);return n}function y2(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!go(t.url,e.url);case"pathParamsOrQueryParamsChange":return!go(t.url,e.url)||!Nn(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Wv(t,e)||!Nn(t.queryParams,e.queryParams);case"paramsChange":default:return!Wv(t,e)}}function dc(t,e,r){let i=Ss(t),n=t.value;Object.entries(i).forEach(([o,s])=>{n.component?e?dc(s,e.children.getContext(o),r):dc(s,null,r):dc(s,e,r)}),n.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new Ts(e.outlet.component,n)):r.canDeactivateChecks.push(new Ts(null,n)):r.canDeactivateChecks.push(new Ts(null,n))}function xc(t){return typeof t=="function"}function w2(t){return typeof t=="boolean"}function x2(t){return t&&xc(t.canLoad)}function D2(t){return t&&xc(t.canActivate)}function C2(t){return t&&xc(t.canActivateChild)}function E2(t){return t&&xc(t.canDeactivate)}function I2(t){return t&&xc(t.canMatch)}function IE(t){return t instanceof Wi||t?.name==="EmptyError"}var Gu=Symbol("INITIAL_VALUE");function Fs(){return Oe(t=>qi(t.map(e=>e.pipe(We(1),Qe(Gu)))).pipe(P(e=>{for(let r of e)if(r!==!0){if(r===Gu)return Gu;if(r===!1||S2(r))return r}return!0}),ge(e=>e!==Gu),We(1)))}function S2(t){return vo(t)||t instanceof mc}function M2(t,e){return Fe(r=>{let{targetSnapshot:i,currentSnapshot:n,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?V(Q(w({},r),{guardsResult:!0})):k2(s,i,n,t).pipe(Fe(a=>a&&w2(a)?T2(i,o,t,e):V(a)),P(a=>Q(w({},r),{guardsResult:a})))})}function k2(t,e,r,i){return He(t).pipe(Fe(n=>F2(n.component,n.route,r,e,i)),mn(n=>n!==!0,!0))}function T2(t,e,r,i){return He(e).pipe(pn(n=>fn(A2(n.route.parent,i),R2(n.route,i),N2(t,n.path,r),O2(t,n.route,r))),mn(n=>n!==!0,!0))}function R2(t,e){return t!==null&&e&&e(new zv(t)),V(!0)}function A2(t,e){return t!==null&&e&&e(new Vv(t)),V(!0)}function O2(t,e,r){let i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||i.length===0)return V(!0);let n=i.map(o=>Qr(()=>{let s=yc(e)??r,a=Ps(o,s),c=D2(a)?a.canActivate(e,t):pi(s,()=>a(e,t));return Nr(c).pipe(mn())}));return V(n).pipe(Fs())}function N2(t,e,r){let i=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>b2(s)).filter(s=>s!==null).map(s=>Qr(()=>{let a=s.guards.map(c=>{let l=yc(s.node)??r,d=Ps(c,l),u=C2(d)?d.canActivateChild(i,t):pi(l,()=>d(i,t));return Nr(u).pipe(mn())});return V(a).pipe(Fs())}));return V(o).pipe(Fs())}function F2(t,e,r,i,n){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return V(!0);let s=o.map(a=>{let c=yc(e)??n,l=Ps(a,c),d=E2(l)?l.canDeactivate(t,e,r,i):pi(c,()=>l(t,e,r,i));return Nr(d).pipe(mn())});return V(s).pipe(Fs())}function P2(t,e,r,i){let n=e.canLoad;if(n===void 0||n.length===0)return V(!0);let o=n.map(s=>{let a=Ps(s,t),c=x2(a)?a.canLoad(e,r):pi(t,()=>a(e,r));return Nr(c)});return V(o).pipe(Fs(),SE(i))}function SE(t){return Gf(je(e=>{if(typeof e!="boolean")throw rh(t,e)}),P(e=>e===!0))}function L2(t,e,r,i){let n=e.canMatch;if(!n||n.length===0)return V(!0);let o=n.map(s=>{let a=Ps(s,t),c=I2(a)?a.canMatch(e,r):pi(t,()=>a(e,r));return Nr(c)});return V(o).pipe(Fs(),SE(i))}var gc=class{constructor(e){this.segmentGroup=e||null}},vc=class extends Error{constructor(e){super(),this.urlTree=e}};function Is(t){return un(new gc(t))}function j2(t){return un(new G(4e3,!1))}function V2(t){return un(CE(!1,bi.GuardRejected))}var Zv=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let i=[],n=r.root;for(;;){if(i=i.concat(n.segments),n.numberOfChildren===0)return V(i);if(n.numberOfChildren>1||!n.children[Ce])return j2(`${e.redirectTo}`);n=n.children[Ce]}}applyRedirectCommands(e,r,i,n,o){if(typeof r!="string"){let a=r,{queryParams:c,fragment:l,routeConfig:d,url:u,outlet:f,params:p,data:v,title:S}=n,E=pi(o,()=>a({params:p,data:v,queryParams:c,fragment:l,routeConfig:d,url:u,outlet:f,title:S}));if(E instanceof rr)throw new vc(E);r=E}let s=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,i);if(r[0]==="/")throw new vc(s);return s}applyRedirectCreateUrlTree(e,r,i,n){let o=this.createSegmentGroup(e,r.root,i,n);return new rr(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let i={};return Object.entries(e).forEach(([n,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);i[n]=r[a]}else i[n]=o}),i}createSegmentGroup(e,r,i,n){let o=this.createSegments(e,r.segments,i,n),s={};return Object.entries(r.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(e,c,i,n)}),new $e(o,s)}createSegments(e,r,i,n){return r.map(o=>o.path[0]===":"?this.findPosParam(e,o,n):this.findOrReturn(o,i))}findPosParam(e,r,i){let n=i[r.path.substring(1)];if(!n)throw new G(4001,!1);return n}findOrReturn(e,r){let i=0;for(let n of r){if(n.path===e.path)return r.splice(i),n;i++}return e}},Qv={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function B2(t,e,r,i,n){let o=ib(t,e,r);return o.matched?(i=l2(e,i),L2(i,e,r,n).pipe(P(s=>s===!0?o:w({},Qv)))):V(o)}function ib(t,e,r){if(e.path==="**")return z2(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?w({},Qv):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let n=(e.matcher||Lj)(r,t,e);if(!n)return w({},Qv);let o={};Object.entries(n.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=n.consumed.length>0?w(w({},o),n.consumed[n.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:n.consumed,remainingSegments:r.slice(n.consumed.length),parameters:s,positionalParamSegments:n.posParams??{}}}function z2(t){return{matched:!0,parameters:t.length>0?aE(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function tE(t,e,r,i){return r.length>0&&$2(t,r,i)?{segmentGroup:new $e(e,H2(i,new $e(r,t.children))),slicedSegments:[]}:r.length===0&&G2(t,r,i)?{segmentGroup:new $e(t.segments,U2(t,r,i,t.children)),slicedSegments:r}:{segmentGroup:new $e(t.segments,t.children),slicedSegments:r}}function U2(t,e,r,i){let n={};for(let o of r)if(dh(t,e,o)&&!i[Ji(o)]){let s=new $e([],{});n[Ji(o)]=s}return w(w({},i),n)}function H2(t,e){let r={};r[Ce]=e;for(let i of t)if(i.path===""&&Ji(i)!==Ce){let n=new $e([],{});r[Ji(i)]=n}return r}function $2(t,e,r){return r.some(i=>dh(t,e,i)&&Ji(i)!==Ce)}function G2(t,e,r){return r.some(i=>dh(t,e,i))}function dh(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function W2(t,e,r,i){return Ji(t)!==i&&(i===Ce||!dh(e,r,t))?!1:ib(e,t,r).matched}function q2(t,e,r){return e.length===0&&!t.children[r]}var Kv=class{};function Y2(t,e,r,i,n,o,s="emptyOnly"){return new Xv(t,e,r,i,n,s,o).recognize()}var Z2=31,Xv=class{constructor(e,r,i,n,o,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=i,this.config=n,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Zv(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new G(4002,`'${e.segmentGroup}'`)}recognize(){let e=tE(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(P(({children:r,rootSnapshot:i})=>{let n=new vi(i,r),o=new nh("",n),s=i2(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(e){let r=new ks([],Object.freeze({}),Object.freeze(w({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Ce,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,Ce,r).pipe(P(i=>({children:i,rootSnapshot:r})),ut(i=>{if(i instanceof vc)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof gc?this.noMatchError(i):i}))}processSegmentGroup(e,r,i,n,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(e,r,i,o):this.processSegment(e,r,i,i.segments,n,!0,o).pipe(P(s=>s instanceof vi?[s]:[]))}processChildren(e,r,i,n){let o=[];for(let s of Object.keys(i.children))s==="primary"?o.unshift(s):o.push(s);return He(o).pipe(pn(s=>{let a=i.children[s],c=d2(r,s);return this.processSegmentGroup(e,c,a,s,n)}),va((s,a)=>(s.push(...a),s)),hr(null),ip(),Fe(s=>{if(s===null)return Is(i);let a=ME(s);return Q2(a),V(a)}))}processSegment(e,r,i,n,o,s,a){return He(r).pipe(pn(c=>this.processSegmentAgainstRoute(c._injector??e,r,c,i,n,o,s,a).pipe(ut(l=>{if(l instanceof gc)return V(null);throw l}))),mn(c=>!!c),ut(c=>{if(IE(c))return q2(i,n,o)?V(new Kv):Is(i);throw c}))}processSegmentAgainstRoute(e,r,i,n,o,s,a,c){return W2(i,n,o,s)?i.redirectTo===void 0?this.matchSegmentAgainstRoute(e,n,i,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,n,r,i,o,s,c):Is(n):Is(n)}expandSegmentAgainstRouteUsingRedirect(e,r,i,n,o,s,a){let{matched:c,parameters:l,consumedSegments:d,positionalParamSegments:u,remainingSegments:f}=ib(r,n,o);if(!c)return Is(r);typeof n.redirectTo=="string"&&n.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Z2&&(this.allowRedirects=!1));let p=new ks(o,l,Object.freeze(w({},this.urlTree.queryParams)),this.urlTree.fragment,iE(n),Ji(n),n.component??n._loadedComponent??null,n,nE(n)),v=ih(p,a,this.paramsInheritanceStrategy);p.params=Object.freeze(v.params),p.data=Object.freeze(v.data);let S=this.applyRedirects.applyRedirectCommands(d,n.redirectTo,u,p,e);return this.applyRedirects.lineralizeSegments(n,S).pipe(Fe(E=>this.processSegment(e,i,r,E.concat(f),s,!1,a)))}matchSegmentAgainstRoute(e,r,i,n,o,s){let a=B2(r,i,n,e,this.urlSerializer);return i.path==="**"&&(r.children={}),a.pipe(Oe(c=>c.matched?(e=i._injector??e,this.getChildConfig(e,i,n).pipe(Oe(({routes:l})=>{let d=i._loadedInjector??e,{parameters:u,consumedSegments:f,remainingSegments:p}=c,v=new ks(f,u,Object.freeze(w({},this.urlTree.queryParams)),this.urlTree.fragment,iE(i),Ji(i),i.component??i._loadedComponent??null,i,nE(i)),S=ih(v,s,this.paramsInheritanceStrategy);v.params=Object.freeze(S.params),v.data=Object.freeze(S.data);let{segmentGroup:E,slicedSegments:R}=tE(r,f,p,l);if(R.length===0&&E.hasChildren())return this.processChildren(d,l,E,v).pipe(P(Ne=>new vi(v,Ne)));if(l.length===0&&R.length===0)return V(new vi(v,[]));let he=Ji(i)===o;return this.processSegment(d,l,E,R,he?Ce:o,!0,v).pipe(P(Ne=>new vi(v,Ne instanceof vi?[Ne]:[])))}))):Is(r)))}getChildConfig(e,r,i){return r.children?V({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?V({routes:r._loadedRoutes,injector:r._loadedInjector}):P2(e,r,i,this.urlSerializer).pipe(Fe(n=>n?this.configLoader.loadChildren(e,r).pipe(je(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):V2(r))):V({routes:[],injector:e})}};function Q2(t){t.sort((e,r)=>e.value.outlet===Ce?-1:r.value.outlet===Ce?1:e.value.outlet.localeCompare(r.value.outlet))}function K2(t){let e=t.value.routeConfig;return e&&e.path===""}function ME(t){let e=[],r=new Set;for(let i of t){if(!K2(i)){e.push(i);continue}let n=e.find(o=>i.value.routeConfig===o.value.routeConfig);n!==void 0?(n.children.push(...i.children),r.add(n)):e.push(i)}for(let i of r){let n=ME(i.children);e.push(new vi(i.value,n))}return e.filter(i=>!r.has(i))}function iE(t){return t.data||{}}function nE(t){return t.resolve||{}}function X2(t,e,r,i,n,o){return Fe(s=>Y2(t,e,r,i,s.extractedUrl,n,o).pipe(P(({state:a,tree:c})=>Q(w({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function J2(t,e){return Fe(r=>{let{targetSnapshot:i,guards:{canActivateChecks:n}}=r;if(!n.length)return V(r);let o=new Set(n.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let l of kE(c))s.add(l);let a=0;return He(s).pipe(pn(c=>o.has(c)?eV(c,i,t,e):(c.data=ih(c,c.parent,t).resolve,V(void 0))),je(()=>a++),Jo(1),Fe(c=>a===s.size?V(r):ct))})}function kE(t){let e=t.children.map(r=>kE(r)).flat();return[t,...e]}function eV(t,e,r,i){let n=t.routeConfig,o=t._resolve;return n?.title!==void 0&&!xE(n)&&(o[bc]=n.title),tV(o,t,e,i).pipe(P(s=>(t._resolvedData=s,t.data=ih(t,t.parent,r).resolve,null)))}function tV(t,e,r,i){let n=kv(t);if(n.length===0)return V({});let o={};return He(n).pipe(Fe(s=>iV(t[s],e,r,i).pipe(mn(),je(a=>{if(a instanceof mc)throw rh(new As,a);o[s]=a}))),Jo(1),ma(o),ut(s=>IE(s)?ct:un(s)))}function iV(t,e,r,i){let n=yc(e)??i,o=Ps(t,n),s=o.resolve?o.resolve(e,r):pi(n,()=>o(e,r));return Nr(s)}function Sv(t){return Oe(e=>{let r=t(e);return r?He(r).pipe(P(()=>e)):V(e)})}var TE=(()=>{let e=class e{buildTitle(i){let n,o=i.root;for(;o!==void 0;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(s=>s.outlet===Ce);return n}getResolvedTitleForRoute(i){return i.data[bc]}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:()=>b(nV),providedIn:"root"});let t=e;return t})(),nV=(()=>{let e=class e extends TE{constructor(i){super(),this.title=i}updateTitle(i){let n=this.buildTitle(i);n!==void 0&&this.title.setTitle(n)}};e.\u0275fac=function(n){return new(n||e)(m(oC))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Dc=new g("",{providedIn:"root",factory:()=>({})}),rV=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["ng-component"]],standalone:!0,features:[Y],decls:1,vars:0,template:function(n,o){n&1&&k(0,"router-outlet")},dependencies:[tb],encapsulation:2});let t=e;return t})();function nb(t){let e=t.children&&t.children.map(nb),r=e?Q(w({},t),{children:e}):w({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==Ce&&(r.component=rV),r}var sh=new g(""),rb=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=b(lu)}loadComponent(i){if(this.componentLoaders.get(i))return this.componentLoaders.get(i);if(i._loadedComponent)return V(i._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(i);let n=Nr(i.loadComponent()).pipe(P(RE),je(s=>{this.onLoadEndListener&&this.onLoadEndListener(i),i._loadedComponent=s}),Si(()=>{this.componentLoaders.delete(i)})),o=new dr(n,()=>new C).pipe(Go());return this.componentLoaders.set(i,o),o}loadChildren(i,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return V({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let s=oV(n,this.compiler,i,this.onLoadEndListener).pipe(Si(()=>{this.childrenLoaders.delete(n)})),a=new dr(s,()=>new C).pipe(Go());return this.childrenLoaders.set(n,a),a}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function oV(t,e,r,i){return Nr(t.loadChildren()).pipe(P(RE),Fe(n=>n instanceof Ma||Array.isArray(n)?V(n):He(e.compileModuleAsync(n))),P(n=>{i&&i(t);let o,s,a=!1;return Array.isArray(n)?(s=n,a=!0):(o=n.create(r).injector,s=o.get(sh,[],{optional:!0,self:!0}).flat()),{routes:s.map(nb),injector:o}}))}function sV(t){return t&&typeof t=="object"&&"default"in t}function RE(t){return sV(t)?t.default:t}var ob=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:()=>b(aV),providedIn:"root"});let t=e;return t})(),aV=(()=>{let e=class e{shouldProcessUrl(i){return!0}extract(i){return i}merge(i,n){return i}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),AE=new g(""),OE=new g("");function cV(t,e,r){let i=t.get(OE),n=t.get(K);return t.get(F).runOutsideAngular(()=>{if(!n.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(l=>setTimeout(l));let o,s=new Promise(l=>{o=l}),a=n.startViewTransition(()=>(o(),lV(t))),{onViewTransitionCreated:c}=i;return c&&pi(t,()=>c({transition:a,from:e,to:r})),s})}function lV(t){return new Promise(e=>{$t({read:()=>setTimeout(e)},{injector:t})})}var dV=new g(""),sb=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new C,this.transitionAbortSubject=new C,this.configLoader=b(rb),this.environmentInjector=b(_t),this.urlSerializer=b(_c),this.rootContexts=b(wc),this.location=b(Mr),this.inputBindingEnabled=b(lh,{optional:!0})!==null,this.titleStrategy=b(TE),this.options=b(Dc,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=b(ob),this.createViewTransition=b(AE,{optional:!0}),this.navigationErrorHandler=b(dV,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>V(void 0),this.rootComponentType=null;let i=o=>this.events.next(new Lv(o)),n=o=>this.events.next(new jv(o));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=i}complete(){this.transitions?.complete()}handleNavigationRequest(i){let n=++this.navigationId;this.transitions?.next(Q(w(w({},this.transitions.value),i),{id:n}))}setupNavigations(i,n,o){return this.transitions=new Pe({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:lc,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ge(s=>s.id!==0),P(s=>Q(w({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),Oe(s=>{let a=!1,c=!1;return V(s).pipe(Oe(l=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",bi.SupersededByNewNavigation),ct;this.currentTransition=s,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?Q(w({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let d=!i.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=l.extras.onSameUrlNavigation??i.onSameUrlNavigation;if(!d&&u!=="reload"){let f="";return this.events.next(new Or(l.id,this.urlSerializer.serialize(l.rawUrl),f,Ku.IgnoredSameUrlNavigation)),l.resolve(!1),ct}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return V(l).pipe(Oe(f=>{let p=this.transitions?.getValue();return this.events.next(new Os(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),p!==this.transitions?.getValue()?ct:Promise.resolve(f)}),X2(this.environmentInjector,this.configLoader,this.rootComponentType,i.config,this.urlSerializer,this.paramsInheritanceStrategy),je(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=Q(w({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let p=new Xu(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(p)}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:f,extractedUrl:p,source:v,restoredState:S,extras:E}=l,R=new Os(f,this.urlSerializer.serialize(p),v,S);this.events.next(R);let he=yE(this.rootComponentType).snapshot;return this.currentTransition=s=Q(w({},l),{targetSnapshot:he,urlAfterRedirects:p,extras:Q(w({},E),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=p,V(s)}else{let f="";return this.events.next(new Or(l.id,this.urlSerializer.serialize(l.extractedUrl),f,Ku.IgnoredByUrlHandlingStrategy)),l.resolve(!1),ct}}),je(l=>{let d=new Ov(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),P(l=>(this.currentTransition=s=Q(w({},l),{guards:v2(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),s)),M2(this.environmentInjector,l=>this.events.next(l)),je(l=>{if(s.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw rh(this.urlSerializer,l.guardsResult);let d=new Nv(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(d)}),ge(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",bi.GuardRejected),!1)),Sv(l=>{if(l.guards.canActivateChecks.length)return V(l).pipe(je(d=>{let u=new Fv(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}),Oe(d=>{let u=!1;return V(d).pipe(J2(this.paramsInheritanceStrategy,this.environmentInjector),je({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(d,"",bi.NoDataFromResolver)}}))}),je(d=>{let u=new Pv(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}))}),Sv(l=>{let d=u=>{let f=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(u.routeConfig).pipe(je(p=>{u.component=p}),P(()=>{})));for(let p of u.children)f.push(...d(p));return f};return qi(d(l.targetSnapshot.root)).pipe(hr(null),We(1))}),Sv(()=>this.afterPreactivation()),Oe(()=>{let{currentSnapshot:l,targetSnapshot:d}=s,u=this.createViewTransition?.(this.environmentInjector,l.root,d.root);return u?He(u).pipe(P(()=>s)):V(s)}),P(l=>{let d=h2(i.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s=Q(w({},l),{targetRouterState:d}),this.currentNavigation.targetRouterState=d,s}),je(()=>{this.events.next(new fc)}),g2(this.rootContexts,i.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),We(1),je({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new en(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),te(this.transitionAbortSubject.pipe(je(l=>{throw l}))),Si(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",bi.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),ut(l=>{if(c=!0,EE(l))this.events.next(new nr(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),m2(l)?this.events.next(new Ns(l.url,l.navigationBehaviorOptions)):s.resolve(!1);else{let d=new hc(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0);try{let u=pi(this.environmentInjector,()=>this.navigationErrorHandler?.(d));if(u instanceof mc){let{message:f,cancellationCode:p}=rh(this.urlSerializer,u);this.events.next(new nr(s.id,this.urlSerializer.serialize(s.extractedUrl),f,p)),this.events.next(new Ns(u.redirectTo,u.navigationBehaviorOptions))}else{this.events.next(d);let f=i.errorHandler(l);s.resolve(!!f)}}catch(u){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(u)}}return ct}))}))}cancelNavigationTransition(i,n,o){let s=new nr(i.id,this.urlSerializer.serialize(i.extractedUrl),n,o);this.events.next(s),i.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let i=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return i.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function uV(t){return t!==lc}var hV=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:()=>b(fV),providedIn:"root"});let t=e;return t})(),Jv=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},fV=(()=>{let e=class e extends Jv{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),NE=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:()=>b(pV),providedIn:"root"});let t=e;return t})(),pV=(()=>{let e=class e extends NE{constructor(){super(...arguments),this.location=b(Mr),this.urlSerializer=b(_c),this.options=b(Dc,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=b(ob),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new rr,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=yE(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(i){return this.location.subscribe(n=>{n.type==="popstate"&&i(n.url,n.state)})}handleRouterEvent(i,n){if(i instanceof Os)this.stateMemento=this.createStateMemento();else if(i instanceof Or)this.rawUrlTree=n.initialUrl;else if(i instanceof Xu){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(n.targetBrowserUrl??o,n)}}else i instanceof fc?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(n.targetBrowserUrl??this.rawUrlTree,n)):i instanceof nr&&(i.code===bi.GuardRejected||i.code===bi.NoDataFromResolver)?this.restoreHistory(n):i instanceof hc?this.restoreHistory(n,!0):i instanceof en&&(this.lastSuccessfulId=i.id,this.currentPageId=this.browserPageId)}setBrowserUrl(i,n){let o=i instanceof rr?this.urlSerializer.serialize(i):i;if(this.location.isCurrentPathEqualTo(o)||n.extras.replaceUrl){let s=this.browserPageId,a=w(w({},n.extras.state),this.generateNgRouterState(n.id,s));this.location.replaceState(o,"",a)}else{let s=w(w({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(i,n=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===i.finalUrl&&s===0&&(this.resetState(i),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(i),this.resetUrlToCurrentUrlTree())}resetState(i){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(i,n){return this.canceledNavigationResolution==="computed"?{navigationId:i,\u0275routerPageId:n}:{navigationId:i}}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ac=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(ac||{});function FE(t,e){t.events.pipe(ge(r=>r instanceof en||r instanceof nr||r instanceof hc||r instanceof Or),P(r=>r instanceof en||r instanceof Or?ac.COMPLETE:(r instanceof nr?r.code===bi.Redirect||r.code===bi.SupersededByNewNavigation:!1)?ac.REDIRECTING:ac.FAILED),ge(r=>r!==ac.REDIRECTING),We(1)).subscribe(()=>{e()})}function mV(t){throw t}var gV={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},vV={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},_i=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=b(ru),this.stateManager=b(NE),this.options=b(Dc,{optional:!0})||{},this.pendingTasks=b(Cn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=b(sb),this.urlSerializer=b(_c),this.location=b(Mr),this.urlHandlingStrategy=b(ob),this._events=new C,this.errorHandler=this.options.errorHandler||mV,this.navigated=!1,this.routeReuseStrategy=b(hV),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=b(sh,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!b(lh,{optional:!0}),this.eventsSubscription=new ne,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:i=>{this.console.warn(i)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let i=this.navigationTransitions.events.subscribe(n=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(n,s),n instanceof nr&&n.code!==bi.Redirect&&n.code!==bi.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof en)this.navigated=!0;else if(n instanceof Ns){let a=n.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),l=w({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||uV(o.source)},a);this.scheduleNavigation(c,lc,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}_V(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(i)}resetRootComponentType(i){this.routerState.root.component=i,this.navigationTransitions.rootComponentType=i}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),lc,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((i,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(i,"popstate",n)},0)})}navigateToSyncWithBrowser(i,n,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let l=w({},o);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(s.state=l)}let c=this.parseUrl(i);this.scheduleNavigation(c,n,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(i){this.config=i.map(nb),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(i,n={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:l}=n,d=l?this.currentUrlTree.fragment:a,u=null;switch(c){case"merge":u=w(w({},this.currentUrlTree.queryParams),s);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=s||null}u!==null&&(u=this.removeEmptyProps(u));let f;try{let p=o?o.snapshot:this.routerState.snapshot.root;f=gE(p)}catch{(typeof i[0]!="string"||i[0][0]!=="/")&&(i=[]),f=this.currentUrlTree.root}return vE(f,i,u,d??null)}navigateByUrl(i,n={skipLocationChange:!1}){let o=vo(i)?i:this.parseUrl(i),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,lc,null,n)}navigate(i,n={skipLocationChange:!1}){return bV(i),this.navigateByUrl(this.createUrlTree(i,n),n)}serializeUrl(i){return this.urlSerializer.serialize(i)}parseUrl(i){try{return this.urlSerializer.parse(i)}catch{return this.urlSerializer.parse("/")}}isActive(i,n){let o;if(n===!0?o=w({},gV):n===!1?o=w({},vV):o=n,vo(i))return QC(this.currentUrlTree,i,o);let s=this.parseUrl(i);return QC(this.currentUrlTree,s,o)}removeEmptyProps(i){return Object.entries(i).reduce((n,[o,s])=>(s!=null&&(n[o]=s),n),{})}scheduleNavigation(i,n,o,s,a){if(this.disposed)return Promise.resolve(!1);let c,l,d;a?(c=a.resolve,l=a.reject,d=a.promise):d=new Promise((f,p)=>{c=f,l=p});let u=this.pendingTasks.add();return FE(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:i,extras:s,resolve:c,reject:l,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(f=>Promise.reject(f))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function bV(t){for(let e=0;e{let e=class e{constructor(i,n,o,s,a,c){this.router=i,this.route=n,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=c,this.href=null,this.onChanges=new C,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area",this.isAnchorElement?this.subscription=i.events.subscribe(d=>{d instanceof en&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(i){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",i)}ngOnChanges(i){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(i){i==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(vo(i)?this.routerLinkInput=i:this.routerLinkInput=Array.isArray(i)?i:[i],this.setTabIndexIfNotOnNativeEl("0"))}onClick(i,n,o,s,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(i!==0||n||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,l),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let i=this.urlTree;this.href=i!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(i)):null;let n=this.href===null?null:Kw(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(i,n){let o=this.renderer,s=this.el.nativeElement;n!==null?o.setAttribute(s,i,n):o.removeAttribute(s,i)}get urlTree(){return this.routerLinkInput===null?null:vo(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(n){return new(n||e)(h(_i),h(bo),pt("tabindex"),h(En),h(N),h(er))},e.\u0275dir=I({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,o){n&1&&Z("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&q("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",T],skipLocationChange:[2,"skipLocationChange","skipLocationChange",T],replaceUrl:[2,"replaceUrl","replaceUrl",T],routerLink:"routerLink"},standalone:!0,features:[re,Me]});let t=e;return t})(),PE=(()=>{let e=class e{get isActive(){return this._isActive}constructor(i,n,o,s,a){this.router=i,this.element=n,this.renderer=o,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new B,this.routerEventsSubscription=i.events.subscribe(c=>{c instanceof en&&this.update()})}ngAfterContentInit(){V(this.links.changes,V(null)).pipe(hn()).subscribe(i=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let i=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=He(i).pipe(hn()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(i){let n=Array.isArray(i)?i:i.split(" ");this.classes=n.filter(o=>!!o)}ngOnChanges(i){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let i=this.hasActiveLinks();this.classes.forEach(n=>{i?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),i&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==i&&(this._isActive=i,this.cdr.markForCheck(),this.isActiveChange.emit(i))})}isLinkActive(i){let n=yV(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let s=o.urlTree;return s?i.isActive(s,n):!1}}hasActiveLinks(){let i=this.isLinkActive(this.router);return this.link&&i(this.link)||this.links.some(i)}};e.\u0275fac=function(n){return new(n||e)(h(_i),h(N),h(En),h(ue),h(ah,8))},e.\u0275dir=I({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(n,o,s){if(n&1&&pe(s,ah,5),n&2){let a;L(a=j())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Me]});let t=e;return t})();function yV(t){return!!t.paths}var ch=class{};var wV=(()=>{let e=class e{constructor(i,n,o,s,a){this.router=i,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(ge(i=>i instanceof en),pn(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(i,n){let o=[];for(let s of n){s.providers&&!s._injector&&(s._injector=Kd(s.providers,i,`Route: ${s.path}`));let a=s._injector??i,c=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(c,s.children??s._loadedRoutes))}return He(o).pipe(hn())}preloadConfig(i,n){return this.preloadingStrategy.preload(n,()=>{let o;n.loadChildren&&n.canLoad===void 0?o=this.loader.loadChildren(i,n):o=V(null);let s=o.pipe(Fe(a=>a===null?V(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,this.processRoutes(a.injector??i,a.routes))));if(n.loadComponent&&!n._loadedComponent){let a=this.loader.loadComponent(n);return He([s,a]).pipe(hn())}else return s})}};e.\u0275fac=function(n){return new(n||e)(m(_i),m(lu),m(_t),m(ch),m(rb))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),LE=new g(""),xV=(()=>{let e=class e{constructor(i,n,o,s,a={}){this.urlSerializer=i,this.transitions=n,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=b(_t),a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(i=>{i instanceof Os?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=i.navigationTrigger,this.restoredId=i.restoredState?i.restoredState.navigationId:0):i instanceof en?(this.lastId=i.id,this.scheduleScrollEvent(i,this.urlSerializer.parse(i.urlAfterRedirects).fragment)):i instanceof Or&&i.code===Ku.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(i,this.urlSerializer.parse(i.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(i=>{i instanceof Ju&&(i.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(i.position):i.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(i.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(i,n){this.zone.runOutsideAngular(()=>Bo(this,null,function*(){yield new Promise(o=>{setTimeout(()=>{o()}),$t(()=>{o()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new Ju(i,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(n){ja()},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function DV(t){return t.routerState.root}function Cc(t,e){return{\u0275kind:t,\u0275providers:e}}function CV(){let t=b(Se);return e=>{let r=t.get(mi);if(e!==r.components[0])return;let i=t.get(_i),n=t.get(jE);t.get(ab)===1&&i.initialNavigation(),t.get(VE,null,Ie.Optional)?.setUpPreloading(),t.get(LE,null,Ie.Optional)?.init(),i.resetRootComponentType(r.componentTypes[0]),n.closed||(n.next(),n.complete(),n.unsubscribe())}}var jE=new g("",{factory:()=>new C}),ab=new g("",{providedIn:"root",factory:()=>1});function EV(){return Cc(2,[{provide:ab,useValue:0},{provide:au,multi:!0,deps:[Se],useFactory:e=>{let r=e.get(kD,Promise.resolve());return()=>r.then(()=>new Promise(i=>{let n=e.get(_i),o=e.get(jE);FE(n,()=>{i(!0)}),e.get(sb).afterPreactivation=()=>(i(!0),o.closed?V(void 0):o),n.initialNavigation()}))}}])}function IV(){return Cc(3,[{provide:au,multi:!0,useFactory:()=>{let e=b(_i);return()=>{e.setUpLocationChangeListener()}}},{provide:ab,useValue:2}])}var VE=new g("");function SV(t){return Cc(0,[{provide:VE,useExisting:wV},{provide:ch,useExisting:t}])}function MV(){return Cc(8,[eE,{provide:lh,useExisting:eE}])}function kV(t){let e=[{provide:AE,useValue:cV},{provide:OE,useValue:w({skipNextTransition:!!t?.skipInitialTransition},t)}];return Cc(9,e)}var rE=new g("ROUTER_FORROOT_GUARD"),TV=[Mr,{provide:_c,useClass:As},_i,wc,{provide:bo,useFactory:DV,deps:[_i]},rb,[]],kQ=(()=>{let e=class e{constructor(i){}static forRoot(i,n){return{ngModule:e,providers:[TV,[],{provide:sh,multi:!0,useValue:i},{provide:rE,useFactory:NV,deps:[[_i,new xn,new Yn]]},{provide:Dc,useValue:n||{}},n?.useHash?AV():OV(),RV(),n?.preloadingStrategy?SV(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?FV(n):[],n?.bindToComponentInputs?MV().\u0275providers:[],n?.enableViewTransitions?kV().\u0275providers:[],PV()]}}static forChild(i){return{ngModule:e,providers:[{provide:sh,multi:!0,useValue:i}]}}};e.\u0275fac=function(n){return new(n||e)(m(rE,8))},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})();function RV(){return{provide:LE,useFactory:()=>{let t=b(jD),e=b(F),r=b(Dc),i=b(sb),n=b(_c);return r.scrollOffset&&t.setOffset(r.scrollOffset),new xV(n,i,t,e,r)}}}function AV(){return{provide:er,useClass:RD}}function OV(){return{provide:er,useClass:$g}}function NV(t){return"guarded"}function FV(t){return[t.initialNavigation==="disabled"?IV().\u0275providers:[],t.initialNavigation==="enabledBlocking"?EV().\u0275providers:[]]}var oE=new g("");function PV(){return[{provide:oE,useFactory:CV},{provide:cu,multi:!0,useExisting:oE}]}var qt={AUTH:{ROOT:"auth",LOGIN:"login"},MODE_SELECT:{ROOT:"mode-select"},WIZARD:{ROOT:"wizard"},MODEL_COMPRESSION:{ROOT:"project-settings"},MACHINE_UNLEARNING:{ROOT:"machine-unlearning"},RUNNING:{ROOT:"running"},MODEL_TRAINING:{ROOT:"model-training"},ALGORITHM_COMPARISON:{ROOT:"algorithm-comparison"},MULTI_MODAL:{ROOT:"multi-modal"},MODEL_SPECIALIZATION:{ROOT:"model-specialization"},AWQ:{ROOT:"awq"},DEMO:{ROOT:"demo",BUTTONS:"buttons",FORM_FIELDS:"form-fields",TABLE:"table",TYPOGRAPHY:"typography",ICONS:"icons",MENU:"menu",CARDS:"cards",WIZARD:"wizard",CHIPS:"chips",CHECKBOXES:"checkboxes",NOTIFICATIONS:"notifications",DRAWER:"drawer"}};var cb=Cs({source:"[Core -> Configs]",events:{"Set Default Mode":Tt(),"Set Current Mode":Tt()}});var Ls=function(t){return t.GUIDED="guided",t.EXPERT="expert",t}(Ls||{});var or=OC("core");var BE=Rn(or,t=>t.configs.defaultMode),zE=Rn(or,t=>t.configs.currentMode);var UE=(()=>{let e=class e{constructor(i){this.store=i,this.defaultMode$=this.store.select(BE),this.currentMode$=this.store.select(zE)}dispatch(i){this.store.dispatch(i)}};e.\u0275fac=function(n){return new(n||e)(m(ni))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var db;try{db=typeof Intl<"u"&&Intl.v8BreakIterator}catch{db=!1}var Ae=(()=>{let e=class e{constructor(i){this._platformId=i,this.isBrowser=this._platformId?Wg(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||db)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(n){return new(n||e)(m(Ri))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var js,HE=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function ub(){if(js)return js;if(typeof document!="object"||!document)return js=new Set(HE),js;let t=document.createElement("input");return js=new Set(HE.filter(e=>(t.setAttribute("type",e),t.type===e))),js}var Ec;function jV(){if(Ec==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ec=!0}))}finally{Ec=Ec||!1}return Ec}function jt(t){return jV()?t:!!t.capture}var _o;function $E(){if(_o==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return _o=!1,_o;if("scrollBehavior"in document.documentElement.style)_o=!0;else{let t=Element.prototype.scrollTo;t?_o=!/\{\s*\[native code\]\s*\}/.test(t.toString()):_o=!1}}return _o}var lb;function VV(){if(lb==null){let t=typeof document<"u"?document.head:null;lb=!!(t&&(t.createShadowRoot||t.attachShadow))}return lb}function Ic(t){if(VV()){let e=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function hb(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function At(t){return t.composedPath?t.composedPath()[0]:t.target}function Sc(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Vt(t,...e){return e.length?e.some(r=>t[r]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function yi(t){return t!=null&&`${t}`!="false"}function yo(t,e=0){return fb(t)?Number(t):e}function fb(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function wo(t){return Array.isArray(t)?t:[t]}function vt(t){return t==null?"":typeof t=="string"?t:`${t}px`}function ot(t){return t instanceof N?t.nativeElement:t}var BV=(()=>{let e=class e{create(i){return typeof MutationObserver>"u"?null:new MutationObserver(i)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var hh=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[BV]});let t=e;return t})();var GE=new Set,xo,zV=(()=>{let e=class e{constructor(i,n){this._platform=i,this._nonce=n,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):HV}matchMedia(i){return(this._platform.WEBKIT||this._platform.BLINK)&&UV(i,this._nonce),this._matchMedia(i)}};e.\u0275fac=function(n){return new(n||e)(m(Ae),m(Pa,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function UV(t,e){if(!GE.has(t))try{xo||(xo=document.createElement("style"),e&&xo.setAttribute("nonce",e),xo.setAttribute("type","text/css"),document.head.appendChild(xo)),xo.sheet&&(xo.sheet.insertRule(`@media ${t} {body{ }}`,0),GE.add(t))}catch(r){console.error(r)}}function HV(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var fh=(()=>{let e=class e{constructor(i,n){this._mediaMatcher=i,this._zone=n,this._queries=new Map,this._destroySubject=new C}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(i){return WE(wo(i)).some(o=>this._registerQuery(o).mql.matches)}observe(i){let o=WE(wo(i)).map(a=>this._registerQuery(a).observable),s=qi(o);return s=fn(s.pipe(We(1)),s.pipe(fr(1),Xo(0))),s.pipe(P(a=>{let c={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:d})=>{c.matches=c.matches||l,c.breakpoints[d]=l}),c}))}_registerQuery(i){if(this._queries.has(i))return this._queries.get(i);let n=this._mediaMatcher.matchMedia(i),s={observable:new oe(a=>{let c=l=>this._zone.run(()=>a.next(l));return n.addListener(c),()=>{n.removeListener(c)}}).pipe(Qe(n),P(({matches:a})=>({query:i,matches:a})),te(this._destroySubject)),mql:n};return this._queries.set(i,s),s}};e.\u0275fac=function(n){return new(n||e)(m(zV),m(F))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function WE(t){return t.map(e=>e.split(",")).reduce((e,r)=>e.concat(r)).map(e=>e.trim())}var qE={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var KE=" ";function bb(t,e,r){let i=vh(t,e);r=r.trim(),!i.some(n=>n.trim()===r)&&(i.push(r),t.setAttribute(e,i.join(KE)))}function yh(t,e,r){let i=vh(t,e);r=r.trim();let n=i.filter(o=>o!==r);n.length?t.setAttribute(e,n.join(KE)):t.removeAttribute(e)}function vh(t,e){return t.getAttribute(e)?.match(/\S+/g)??[]}var XE="cdk-describedby-message",ph="cdk-describedby-host",gb=0,wh=(()=>{let e=class e{constructor(i,n){this._platform=n,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${gb++}`,this._document=i,this._id=b(ys)+"-"+gb++}describe(i,n,o){if(!this._canBeDescribed(i,n))return;let s=pb(n,o);typeof n!="string"?(YE(n,this._id),this._messageRegistry.set(s,{messageElement:n,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(n,o),this._isElementDescribedByMessage(i,s)||this._addMessageReference(i,s)}removeDescription(i,n,o){if(!n||!this._isElementNode(i))return;let s=pb(n,o);if(this._isElementDescribedByMessage(i,s)&&this._removeMessageReference(i,s),typeof n=="string"){let a=this._messageRegistry.get(s);a&&a.referenceCount===0&&this._deleteMessageElement(s)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let i=this._document.querySelectorAll(`[${ph}="${this._id}"]`);for(let n=0;no.indexOf(XE)!=0);i.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(i,n){let o=this._messageRegistry.get(n);bb(i,"aria-describedby",o.messageElement.id),i.setAttribute(ph,this._id),o.referenceCount++}_removeMessageReference(i,n){let o=this._messageRegistry.get(n);o.referenceCount--,yh(i,"aria-describedby",o.messageElement.id),i.removeAttribute(ph)}_isElementDescribedByMessage(i,n){let o=vh(i,"aria-describedby"),s=this._messageRegistry.get(n),a=s&&s.messageElement.id;return!!a&&o.indexOf(a)!=-1}_canBeDescribed(i,n){if(!this._isElementNode(i))return!1;if(n&&typeof n=="object")return!0;let o=n==null?"":`${n}`.trim(),s=i.getAttribute("aria-label");return o?!s||s.trim()!==o:!1}_isElementNode(i){return i.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(n){return new(n||e)(m(K),m(Ae))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function pb(t,e){return typeof t=="string"?`${e||""}/${t}`:t}function YE(t,e){t.id||(t.id=`${XE}-${e}-${gb++}`)}var bh=class{constructor(e,r){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new C,this._typeaheadSubscription=ne.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=i=>i.disabled,this._pressedLetters=[],this.tabOut=new C,this.change=new C,e instanceof Pt?this._itemChangesSubscription=e.changes.subscribe(i=>this._itemsChanged(i.toArray())):Qd(e)&&(this._effectRef=uu(()=>this._itemsChanged(e()),{injector:r}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(je(r=>this._pressedLetters.push(r)),Xo(e),ge(()=>this._pressedLetters.length>0),P(()=>this._pressedLetters.join(""))).subscribe(r=>{let i=this._getItemsArray();for(let n=1;n!e[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(r){case 9:this.tabOut.next();return;case 40:if(this._vertical&&n){this.setNextItemActive();break}else return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&n){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&n){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&n){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&n){let o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&r<=90||r>=48&&r<=57)&&this._letterKeyStream.next(String.fromCharCode(r)));return}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){let r=this._getItemsArray(),i=typeof e=="number"?e:r.indexOf(e),n=r[i];this._activeItem=n??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let r=this._getItemsArray();for(let i=1;i<=r.length;i++){let n=(this._activeItemIndex+e*i+r.length)%r.length,o=r[n];if(!this._skipPredicateFn(o)){this.setActiveItem(n);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,r){let i=this._getItemsArray();if(i[e]){for(;this._skipPredicateFn(i[e]);)if(e+=r,!i[e])return;this.setActiveItem(e)}}_getItemsArray(){return Qd(this._items)?this._items():this._items instanceof Pt?this._items.toArray():this._items}_itemsChanged(e){if(this._activeItem){let r=e.indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}},_h=class extends bh{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}},Fn=class extends bh{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};function Mo(t){return t.buttons===0||t.detail===0}function ko(t){let e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var rB=new g("cdk-input-modality-detector-options"),oB={ignoreKeys:[18,17,224,91,16]},JE=650,Vs=jt({passive:!0,capture:!0}),sB=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(i,n,o,s){this._platform=i,this._mostRecentTarget=null,this._modality=new Pe(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(c=>c===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=At(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs{if(ko(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=At(a)},this._options=w(w({},oB),s),this.modalityDetected=this._modality.pipe(fr(1)),this.modalityChanged=this.modalityDetected.pipe(Yi()),i.isBrowser&&n.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Vs),o.addEventListener("mousedown",this._onMousedown,Vs),o.addEventListener("touchstart",this._onTouchstart,Vs)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Vs),document.removeEventListener("mousedown",this._onMousedown,Vs),document.removeEventListener("touchstart",this._onTouchstart,Vs))}};e.\u0275fac=function(n){return new(n||e)(m(Ae),m(F),m(K),m(rB,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),aB=new g("liveAnnouncerElement",{providedIn:"root",factory:cB});function cB(){return null}var lB=new g("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),dB=0,xh=(()=>{let e=class e{constructor(i,n,o,s){this._ngZone=n,this._defaultOptions=s,this._document=o,this._liveElement=i||this._createLiveElement()}announce(i,...n){let o=this._defaultOptions,s,a;return n.length===1&&typeof n[0]=="number"?a=n[0]:[s,a]=n,this.clear(),clearTimeout(this._previousTimeout),s||(s=o&&o.politeness?o.politeness:"polite"),a==null&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",s),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=i,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let i="cdk-live-announcer-element",n=this._document.getElementsByClassName(i),o=this._document.createElement("div");for(let s=0;s .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let e=class e{constructor(i,n,o,s,a){this._ngZone=i,this._platform=n,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new C,this._rootNodeFocusAndBlurListener=c=>{let l=At(c);for(let d=l;d;d=d.parentElement)c.type==="focus"?this._onFocus(c,d):this._onBlur(c,d)},this._document=s,this._detectionMode=a?.detectionMode||gh.IMMEDIATE}monitor(i,n=!1){let o=ot(i);if(!this._platform.isBrowser||o.nodeType!==1)return V();let s=Ic(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return n&&(a.checkChildren=!0),a.subject;let c={checkChildren:n,subject:new C,rootNode:s};return this._elementInfo.set(o,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(i){let n=ot(i),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o))}focusVia(i,n,o){let s=ot(i),a=this._getDocument().activeElement;s===a?this._getClosestElementsInfo(s).forEach(([c,l])=>this._originChanged(c,n,l)):(this._setOrigin(n),typeof s.focus=="function"&&s.focus(o))}ngOnDestroy(){this._elementInfo.forEach((i,n)=>this.stopMonitoring(n))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(i){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(i)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:i&&this._isLastInteractionFromInputLabel(i)?"mouse":"program"}_shouldBeAttributedToTouch(i){return this._detectionMode===gh.EVENTUAL||!!i?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(i,n){i.classList.toggle("cdk-focused",!!n),i.classList.toggle("cdk-touch-focused",n==="touch"),i.classList.toggle("cdk-keyboard-focused",n==="keyboard"),i.classList.toggle("cdk-mouse-focused",n==="mouse"),i.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(i,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=i,this._originFromTouchInteraction=i==="touch"&&n,this._detectionMode===gh.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?JE:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(i,n){let o=this._elementInfo.get(n),s=At(i);!o||!o.checkChildren&&n!==s||this._originChanged(n,this._getFocusOrigin(s),o)}_onBlur(i,n){let o=this._elementInfo.get(n);!o||o.checkChildren&&i.relatedTarget instanceof Node&&n.contains(i.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,null))}_emitOrigin(i,n){i.subject.observers.length&&this._ngZone.run(()=>i.subject.next(n))}_registerGlobalListeners(i){if(!this._platform.isBrowser)return;let n=i.rootNode,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,mh),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,mh)}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(te(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(i){let n=i.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let o=this._rootNodeFocusListenerCount.get(n);o>1?this._rootNodeFocusListenerCount.set(n,o-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,mh),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,mh),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(i,n,o){this._setClasses(i,n),this._emitOrigin(o,n),this._lastFocusOrigin=n}_getClosestElementsInfo(i){let n=[];return this._elementInfo.forEach((o,s)=>{(s===i||o.checkChildren&&s.contains(i))&&n.push([s,o])}),n}_isLastInteractionFromInputLabel(i){let{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!n||n===i||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA"||i.disabled)return!1;let s=i.labels;if(s){for(let a=0;a{let e=class e{constructor(i,n){this._platform=i,this._document=n,this._breakpointSubscription=b(fh).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Do.NONE;let i=this._document.createElement("div");i.style.backgroundColor="rgb(1,2,3)",i.style.position="absolute",this._document.body.appendChild(i);let n=this._document.defaultView||window,o=n&&n.getComputedStyle?n.getComputedStyle(i):null,s=(o&&o.backgroundColor||"").replace(/ /g,"");switch(i.remove(),s){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Do.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Do.BLACK_ON_WHITE}return Do.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let i=this._document.body.classList;i.remove(mb,ZE,QE),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===Do.BLACK_ON_WHITE?i.add(mb,ZE):n===Do.WHITE_ON_BLACK&&i.add(mb,QE)}}};e.\u0275fac=function(n){return new(n||e)(m(Ae),m(K))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),eI=(()=>{let e=class e{constructor(i){i._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(n){return new(n||e)(m(_b))},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[hh]});let t=e;return t})();var hB=new g("cdk-dir-doc",{providedIn:"root",factory:fB});function fB(){return b(K)}var pB=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function mB(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?pB.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var bt=(()=>{let e=class e{constructor(i){if(this.value="ltr",this.change=new B,i){let n=i.body?i.body.dir:null,o=i.documentElement?i.documentElement.dir:null;this.value=mB(n||o||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(n){return new(n||e)(m(hB,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Pn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})();var gB=["*",[["mat-option"],["ng-container"]]],vB=["*","mat-option, ng-container"],bB=["text"],_B=[[["mat-icon"]],"*"],yB=["mat-icon","*"];function wB(t,e){if(t&1&&k(0,"mat-pseudo-checkbox",1),t&2){let r=$();M("disabled",r.disabled)("state",r.selected?"checked":"unchecked")}}function xB(t,e){if(t&1&&k(0,"mat-pseudo-checkbox",3),t&2){let r=$();M("disabled",r.disabled)}}function DB(t,e){if(t&1&&(_(0,"span",4),we(1),y()),t&2){let r=$();x(),Lt("(",r.group.label,")")}}var CB=["mat-internal-form-field",""],EB=["*"];var lI=(()=>{let e=class e{};e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";let t=e;return t})(),dI=(()=>{let e=class e{};e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms";let t=e;return t})();function IB(){return!0}var SB=new g("mat-sanity-checks",{providedIn:"root",factory:IB}),ee=(()=>{let e=class e{constructor(i,n,o){this._sanityChecks=n,this._document=o,this._hasDoneGlobalChecks=!1,i._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(i){return Sc()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[i]}};e.\u0275fac=function(n){return new(n||e)(m(_b),m(SB,8),m(K))},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[Pn,Pn]});let t=e;return t})();var To=class{constructor(e,r,i,n,o){this._defaultMatcher=e,this.ngControl=r,this._parentFormGroup=i,this._parentForm=n,this._stateChanges=o,this.errorState=!1}updateErrorState(){let e=this.errorState,r=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,n=this.ngControl?this.ngControl.control:null,o=i?.isErrorState(n,r)??!1;o!==e&&(this.errorState=o,this._stateChanges.next())}};var nn=(()=>{let e=class e{isErrorState(i,n){return!!(i&&i.invalid&&(i.touched||n&&n.submitted))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Vi=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(Vi||{}),xb=class{constructor(e,r,i,n=!1){this._renderer=e,this.element=r,this.config=i,this._animationForciblyDisabledThroughCss=n,this.state=Vi.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},tI=jt({passive:!0,capture:!0}),Db=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let r=At(e);r&&this._events.get(e.type)?.forEach((i,n)=>{(n===r||n.contains(r))&&i.forEach(o=>o.handleEvent(e))})}}addHandler(e,r,i,n){let o=this._events.get(r);if(o){let s=o.get(i);s?s.add(n):o.set(i,new Set([n]))}else this._events.set(r,new Map([[i,new Set([n])]])),e.runOutsideAngular(()=>{document.addEventListener(r,this._delegateEventHandler,tI)})}removeHandler(e,r,i){let n=this._events.get(e);if(!n)return;let o=n.get(r);o&&(o.delete(i),o.size===0&&n.delete(r),n.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,tI)))}},iI={enterDuration:225,exitDuration:150},MB=800,nI=jt({passive:!0,capture:!0}),rI=["mousedown","touchstart"],oI=["mouseup","mouseleave","touchend","touchcancel"],Mc=class Mc{constructor(e,r,i,n){this._target=e,this._ngZone=r,this._platform=n,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=ot(i))}fadeInRipple(e,r,i={}){let n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=w(w({},iI),i.animation);i.centered&&(e=n.left+n.width/2,r=n.top+n.height/2);let s=i.radius||kB(e,r,n),a=e-n.left,c=r-n.top,l=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=`${a-s}px`,d.style.top=`${c-s}px`,d.style.height=`${s*2}px`,d.style.width=`${s*2}px`,i.color!=null&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(d);let u=window.getComputedStyle(d),f=u.transitionProperty,p=u.transitionDuration,v=f==="none"||p==="0s"||p==="0s, 0s"||n.width===0&&n.height===0,S=new xb(this,d,i,v);d.style.transform="scale3d(1, 1, 1)",S.state=Vi.FADING_IN,i.persistent||(this._mostRecentTransientRipple=S);let E=null;return!v&&(l||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let R=()=>{E&&(E.fallbackTimer=null),clearTimeout(Ne),this._finishRippleTransition(S)},he=()=>this._destroyRipple(S),Ne=setTimeout(he,l+100);d.addEventListener("transitionend",R),d.addEventListener("transitioncancel",he),E={onTransitionEnd:R,onTransitionCancel:he,fallbackTimer:Ne}}),this._activeRipples.set(S,E),(v||!l)&&this._finishRippleTransition(S),S}fadeOutRipple(e){if(e.state===Vi.FADING_OUT||e.state===Vi.HIDDEN)return;let r=e.element,i=w(w({},iI),e.config.animation);r.style.transitionDuration=`${i.exitDuration}ms`,r.style.opacity="0",e.state=Vi.FADING_OUT,(e._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let r=ot(e);!this._platform.isBrowser||!r||r===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=r,rI.forEach(i=>{Mc._eventManager.addHandler(this._ngZone,i,r,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{oI.forEach(r=>{this._triggerElement.addEventListener(r,this,nI)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===Vi.FADING_IN?this._startFadeOutTransition(e):e.state===Vi.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let r=e===this._mostRecentTransientRipple,{persistent:i}=e.config;e.state=Vi.VISIBLE,!i&&(!r||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let r=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=Vi.HIDDEN,r!==null&&(e.element.removeEventListener("transitionend",r.onTransitionEnd),e.element.removeEventListener("transitioncancel",r.onTransitionCancel),r.fallbackTimer!==null&&clearTimeout(r.fallbackTimer)),e.element.remove()}_onMousedown(e){let r=Mo(e),i=this._lastTouchStartEvent&&Date.now(){let r=e.state===Vi.VISIBLE||e.config.terminateOnPointerUp&&e.state===Vi.FADING_IN;!e.config.persistent&&r&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(rI.forEach(r=>Mc._eventManager.removeHandler(r,e,this)),this._pointerUpEventsRegistered&&(oI.forEach(r=>e.removeEventListener(r,this,nI)),this._pointerUpEventsRegistered=!1))}};Mc._eventManager=new Db;var Cb=Mc;function kB(t,e,r){let i=Math.max(Math.abs(t-r.left),Math.abs(t-r.right)),n=Math.max(Math.abs(e-r.top),Math.abs(e-r.bottom));return Math.sqrt(i*i+n*n)}var Ch=new g("mat-ripple-global-options"),xi=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(i){i&&this.fadeOutAllNonPersistent(),this._disabled=i,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(i){this._trigger=i,this._setupTriggerEventsIfEnabled()}constructor(i,n,o,s,a){this._elementRef=i,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new Cb(this,n,i,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:w(w(w({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(i,n=0,o){return typeof i=="number"?this._rippleRenderer.fadeInRipple(i,n,w(w({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,w(w({},this.rippleConfig),i))}};e.\u0275fac=function(n){return new(n||e)(h(N),h(F),h(Ae),h(Ch,8),h(rt,8))},e.\u0275dir=I({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,o){n&2&&H("mat-ripple-unbounded",o.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let t=e;return t})(),rn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,ee]});let t=e;return t})(),Ib=(()=>{let e=class e{constructor(i){this._animationMode=i,this.state="unchecked",this.disabled=!1,this.appearance="full"}};e.\u0275fac=function(n){return new(n||e)(h(rt,8))},e.\u0275cmp=z({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,o){n&2&&H("mat-pseudo-checkbox-indeterminate",o.state==="indeterminate")("mat-pseudo-checkbox-checked",o.state==="checked")("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal",o.appearance==="minimal")("mat-pseudo-checkbox-full",o.appearance==="full")("_mat-animation-noopable",o._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[Y],decls:0,vars:0,template:function(n,o){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0});let t=e;return t})(),TB=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee]});let t=e;return t})(),Eh=new g("MAT_OPTION_PARENT_COMPONENT"),RB=0,Ih=new g("MatOptgroup"),ZK=(()=>{let e=class e{constructor(i){this.disabled=!1,this._labelId=`mat-optgroup-label-${RB++}`,this._inert=i?.inertGroups??!1}};e.\u0275fac=function(n){return new(n||e)(h(Eh,8))},e.\u0275cmp=z({type:e,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(n,o){n&2&&q("role",o._inert?null:"group")("aria-disabled",o._inert?null:o.disabled.toString())("aria-labelledby",o._inert?null:o._labelId)},inputs:{label:"label",disabled:[2,"disabled","disabled",T]},exportAs:["matOptgroup"],standalone:!0,features:[se([{provide:Ih,useExisting:e}]),re,Y],ngContentSelectors:vB,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(n,o){n&1&&(ye(gB),_(0,"span",0)(1,"span",1),we(2),W(3),y()(),W(4,1)),n&2&&(H("mdc-list-item--disabled",o.disabled),M("id",o._labelId),x(2),Lt("",o.label," "))},styles:[".mat-mdc-optgroup{color:var(--mat-optgroup-label-text-color);font-family:var(--mat-optgroup-label-text-font);line-height:var(--mat-optgroup-label-text-line-height);font-size:var(--mat-optgroup-label-text-size);letter-spacing:var(--mat-optgroup-label-text-tracking);font-weight:var(--mat-optgroup-label-text-weight)}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;outline:none}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal}"],encapsulation:2,changeDetection:0});let t=e;return t})(),AB=0,Eb=class{constructor(e,r=!1){this.source=e,this.isUserInput=r}},uI=(()=>{let e=class e{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(i){this._disabled=i}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(i,n,o,s){this._element=i,this._changeDetectorRef=n,this._parent=o,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${AB++}`,this.onSelectionChange=new B,this._stateChanges=new C}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(i=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),i&&this._emitSelectionChangeEvent())}deselect(i=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),i&&this._emitSelectionChangeEvent())}focus(i,n){let o=this._getHostElement();typeof o.focus=="function"&&o.focus(n)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(i){(i.keyCode===13||i.keyCode===32)&&!Vt(i)&&(this._selectViaInteraction(),i.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let i=this.viewValue;i!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=i)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(i=!1){this.onSelectionChange.emit(new Eb(this,i))}};e.\u0275fac=function(n){return new(n||e)(h(N),h(ue),h(Eh,8),h(Ih,8))},e.\u0275cmp=z({type:e,selectors:[["mat-option"]],viewQuery:function(n,o){if(n&1&&De(bB,7),n&2){let s;L(s=j())&&(o._text=s.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,o){n&1&&Z("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(yt("id",o.id),q("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),H("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",T]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[re,Y],ngContentSelectors:yB,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){n&1&&(ye(_B),U(0,wB,1,2,"mat-pseudo-checkbox",1),W(1),_(2,"span",2,0),W(4,1),y(),U(5,xB,1,1,"mat-pseudo-checkbox",3)(6,DB,2,1,"span",4),k(7,"div",5)),n&2&&(le(o.multiple?0:-1),x(5),le(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),x(),le(o.group&&o.group._inert?6:-1),x(),M("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[Ib,xi],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight)}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color);outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let t=e;return t})();function hI(t,e,r){if(r.length){let i=e.toArray(),n=r.toArray(),o=0;for(let s=0;sr+i?Math.max(0,t-i+e):r}var Sb=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[rn,ee,TB]});let t=e;return t})(),sI={capture:!0},aI=["focus","mousedown","mouseenter","touchstart"],yb="mat-ripple-loader-uninitialized",wb="mat-ripple-loader-class-name",cI="mat-ripple-loader-centered",Dh="mat-ripple-loader-disabled",Sh=(()=>{let e=class e{constructor(){this._document=b(K,{optional:!0}),this._animationMode=b(rt,{optional:!0}),this._globalRippleOptions=b(Ch,{optional:!0}),this._platform=b(Ae),this._ngZone=b(F),this._hosts=new Map,this._onInteraction=i=>{let n=At(i);if(n instanceof HTMLElement){let o=n.closest(`[${yb}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}},this._ngZone.runOutsideAngular(()=>{for(let i of aI)this._document?.addEventListener(i,this._onInteraction,sI)})}ngOnDestroy(){let i=this._hosts.keys();for(let n of i)this.destroyRipple(n);for(let n of aI)this._document?.removeEventListener(n,this._onInteraction,sI)}configureRipple(i,n){i.setAttribute(yb,this._globalRippleOptions?.namespace??""),(n.className||!i.hasAttribute(wb))&&i.setAttribute(wb,n.className||""),n.centered&&i.setAttribute(cI,""),n.disabled&&i.setAttribute(Dh,"")}getRipple(i){return this._hosts.get(i)||this._createRipple(i)}setDisabled(i,n){let o=this._hosts.get(i);if(o){o.disabled=n;return}n?i.setAttribute(Dh,""):i.removeAttribute(Dh)}_createRipple(i){if(!this._document)return;let n=this._hosts.get(i);if(n)return n;i.querySelector(".mat-ripple")?.remove();let o=this._document.createElement("span");o.classList.add("mat-ripple",i.getAttribute(wb)),i.append(o);let s=new xi(new N(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return s._isInitialized=!0,s.trigger=i,s.centered=i.hasAttribute(cI),s.disabled=i.hasAttribute(Dh),this.attachRipple(i,s),s}attachRipple(i,n){i.removeAttribute(yb),this._hosts.set(i,n)}destroyRipple(i){let n=this._hosts.get(i);n&&(n.ngOnDestroy(),this._hosts.delete(i))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Mh=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,o){n&2&&H("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[Y],attrs:CB,ngContentSelectors:EB,decls:1,vars:0,template:function(n,o){n&1&&(ye(),W(0))},styles:[".mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0});let t=e;return t})();var kh=(()=>{let e=class e{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(i){this._vertical=yi(i)}get inset(){return this._inset}set inset(i){this._inset=yi(i)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(n,o){n&2&&(q("aria-orientation",o.vertical?"vertical":"horizontal"),H("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},standalone:!0,features:[Y],decls:0,vars:0,template:function(n,o){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0});let t=e;return t})(),pI=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,ee]});let t=e;return t})();function OB(t,e){t&1&&k(0,"div",8)}function NB(t,e){t&1&&k(0,"div",8)}var gI=(()=>{let e=class e{constructor(){this.styleMode="fullWidth",this.currentYear=new Date().getFullYear()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["ms-footer"]],inputs:{styleMode:"styleMode"},decls:14,vars:4,consts:[[1,"footer-wrapper"],[1,"mb-4"],[1,"grid","grid-cols-12"],["class","col-span-1",4,"ngIf"],[1,"footer-content",3,"ngClass"],[1,"left"],[1,"right"],[1,"mr-4"],[1,"col-span-1"]],template:function(n,o){n&1&&(_(0,"div",0)(1,"div",1),k(2,"mat-divider"),y(),_(3,"footer",2),U(4,OB,1,0,"div",3),_(5,"div",4)(6,"div",5),we(7),y(),_(8,"div",6)(9,"a",7),we(10,"Privacy Policy"),y(),_(11,"a"),we(12,"Terms of Service"),y()()(),U(13,NB,1,0,"div",3),y()()),n&2&&(x(4),M("ngIf",o.styleMode!=="mainLayout"),x(),M("ngClass",o.styleMode==="mainLayout"?"col-span-12":"col-span-10"),x(2),Lt("\xA9 ",o.currentYear," Cisco Systems, Inc"),x(6),M("ngIf",o.styleMode!=="mainLayout"))},dependencies:[Ds,kr,kh],styles:["html[_ngcontent-%COMP%]{color:var(--foregrounds-800)}.text-hint[_ngcontent-%COMP%]{color:var(--foregrounds-700)}.heading-primary-title[_ngcontent-%COMP%]{font-family:Montserrat;font-weight:700;font-size:1.5rem;line-height:2.125rem}.heading-section-title[_ngcontent-%COMP%]{font-weight:700;font-size:1.125rem;line-height:1.5em}.paragraph-bold-p4-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.75rem;line-height:1.125em}.paragraph-monospace-p2-large[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:400}.heading-sub-section-title[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:700}.paragraph-regular-p3-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875;line-height:1.25rem}.paragraph-bold-p3-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p2-large-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1rem;line-height:1.375rem}.paragraph-semibold-p1-xlarge-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1.125rem;line-height:1.5rem}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p3-default-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-regular-p4-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.75rem;line-height:1.125rem}.paragraph-semibold-p3-small-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400}.paragraph-semibold-p4-xSmall-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:600}.paragraph-regular-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400;color:var(--foregrounds-750)}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-size:.875rem;line-height:1.25rem;font-weight:400}.paragraph-regular-p2-large[_ngcontent-%COMP%]{font-family:Inter;font-size:1rem;font-weight:400;line-height:1.375rem}.footer-wrapper[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px}footer[_ngcontent-%COMP%] .footer-content[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.75rem;line-height:1.125rem;display:flex;justify-content:space-between}[styleMode=fullWidth][_nghost-%COMP%] .footer-wrapper[_ngcontent-%COMP%]{width:100%;position:absolute;bottom:30px}[styleMode=mainLayout][_nghost-%COMP%] .footer-wrapper[_ngcontent-%COMP%]{position:relative;bottom:0}"]});let t=e;return t})();var CI=(()=>{let e=class e{constructor(i,n){this._renderer=i,this._elementRef=n,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(i,n){this._renderer.setProperty(this._elementRef.nativeElement,i,n)}registerOnTouched(i){this.onTouched=i}registerOnChange(i){this.onChange=i}setDisabledState(i){this.setProperty("disabled",i)}};e.\u0275fac=function(n){return new(n||e)(h(En),h(N))},e.\u0275dir=I({type:e});let t=e;return t})(),PB=(()=>{let e=class e extends CI{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,features:[ae]});let t=e;return t})(),jn=new g("");var LB={provide:jn,useExisting:lt(()=>jh),multi:!0};function jB(){let t=kn()?kn().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var VB=new g(""),jh=(()=>{let e=class e extends CI{constructor(i,n,o){super(i,n),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!jB())}writeValue(i){let n=i??"";this.setProperty("value",n)}_handleInput(i){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(i)}_compositionStart(){this._composing=!0}_compositionEnd(i){this._composing=!1,this._compositionMode&&this.onChange(i)}};e.\u0275fac=function(n){return new(n||e)(h(En),h(N),h(VB,8))},e.\u0275dir=I({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,o){n&1&&Z("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[se([LB]),ae]});let t=e;return t})();function Fr(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function EI(t){return t!=null&&typeof t.length=="number"}var on=new g(""),Ao=new g(""),BB=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Us=class{static min(e){return zB(e)}static max(e){return UB(e)}static required(e){return HB(e)}static requiredTrue(e){return $B(e)}static email(e){return GB(e)}static minLength(e){return WB(e)}static maxLength(e){return qB(e)}static pattern(e){return YB(e)}static nullValidator(e){return II(e)}static compose(e){return AI(e)}static composeAsync(e){return OI(e)}};function zB(t){return e=>{if(Fr(e.value)||Fr(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r{if(Fr(e.value)||Fr(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>t?{max:{max:t,actual:e.value}}:null}}function HB(t){return Fr(t.value)?{required:!0}:null}function $B(t){return t.value===!0?null:{required:!0}}function GB(t){return Fr(t.value)||BB.test(t.value)?null:{email:!0}}function WB(t){return e=>Fr(e.value)||!EI(e.value)?null:e.value.lengthEI(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function YB(t){if(!t)return II;let e,r;return typeof t=="string"?(r="",t.charAt(0)!=="^"&&(r+="^"),r+=t,t.charAt(t.length-1)!=="$"&&(r+="$"),e=new RegExp(r)):(r=t.toString(),e=t),i=>{if(Fr(i.value))return null;let n=i.value;return e.test(n)?null:{pattern:{requiredPattern:r,actualValue:n}}}}function II(t){return null}function SI(t){return t!=null}function MI(t){return Ir(t)?He(t):t}function kI(t){let e={};return t.forEach(r=>{e=r!=null?w(w({},e),r):e}),Object.keys(e).length===0?null:e}function TI(t,e){return e.map(r=>r(t))}function ZB(t){return!t.validate}function RI(t){return t.map(e=>ZB(e)?e:r=>e.validate(r))}function AI(t){if(!t)return null;let e=t.filter(SI);return e.length==0?null:function(r){return kI(TI(r,e))}}function Nb(t){return t!=null?AI(RI(t)):null}function OI(t){if(!t)return null;let e=t.filter(SI);return e.length==0?null:function(r){let i=TI(r,e).map(MI);return fa(i).pipe(P(kI))}}function Fb(t){return t!=null?OI(RI(t)):null}function vI(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function NI(t){return t._rawValidators}function FI(t){return t._rawAsyncValidators}function kb(t){return t?Array.isArray(t)?t:[t]:[]}function Rh(t,e){return Array.isArray(t)?t.includes(e):t===e}function bI(t,e){let r=kb(e);return kb(t).forEach(n=>{Rh(r,n)||r.push(n)}),r}function _I(t,e){return kb(e).filter(r=>!Rh(t,r))}var Ah=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Nb(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Fb(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},oi=class extends Ah{get formDirective(){return null}get path(){return null}},Di=class extends Ah{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Oh=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},QB={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},pX=Q(w({},QB),{"[class.ng-submitted]":"isSubmitted"}),PI=(()=>{let e=class e extends Oh{constructor(i){super(i)}};e.\u0275fac=function(n){return new(n||e)(h(Di,2))},e.\u0275dir=I({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&H("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[ae]});let t=e;return t})(),mX=(()=>{let e=class e extends Oh{constructor(i){super(i)}};e.\u0275fac=function(n){return new(n||e)(h(oi,10))},e.\u0275dir=I({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&H("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[ae]});let t=e;return t})();var kc="VALID",Th="INVALID",Bs="PENDING",Tc="DISABLED",Pr=class{},Nh=class extends Pr{constructor(e,r){super(),this.value=e,this.source=r}},Ac=class extends Pr{constructor(e,r){super(),this.pristine=e,this.source=r}},Oc=class extends Pr{constructor(e,r){super(),this.touched=e,this.source=r}},zs=class extends Pr{constructor(e,r){super(),this.status=e,this.source=r}},Tb=class extends Pr{constructor(e){super(),this.source=e}},Rb=class extends Pr{constructor(e){super(),this.source=e}};function Pb(t){return(Vh(t)?t.validators:t)||null}function KB(t){return Array.isArray(t)?Nb(t):t||null}function Lb(t,e){return(Vh(e)?e.asyncValidators:t)||null}function XB(t){return Array.isArray(t)?Fb(t):t||null}function Vh(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function LI(t,e,r){let i=t.controls;if(!(e?Object.keys(i):i).length)throw new G(1e3,"");if(!i[r])throw new G(1001,"")}function jI(t,e,r){t._forEachChild((i,n)=>{if(r[n]===void 0)throw new G(1002,"")})}var Hs=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Mn(()=>this.statusReactive()),this.statusReactive=Ni(void 0),this._pristine=Mn(()=>this.pristineReactive()),this.pristineReactive=Ni(!0),this._touched=Mn(()=>this.touchedReactive()),this.touchedReactive=Ni(!1),this._events=new C,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return ti(this.statusReactive)}set status(e){ti(()=>this.statusReactive.set(e))}get valid(){return this.status===kc}get invalid(){return this.status===Th}get pending(){return this.status==Bs}get disabled(){return this.status===Tc}get enabled(){return this.status!==Tc}get pristine(){return ti(this.pristineReactive)}set pristine(e){ti(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return ti(this.touchedReactive)}set touched(e){ti(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(bI(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(bI(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(_I(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(_I(e,this._rawAsyncValidators))}hasValidator(e){return Rh(this._rawValidators,e)}hasAsyncValidator(e){return Rh(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let r=this.touched===!1;this.touched=!0;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(Q(w({},e),{sourceControl:i})),r&&e.emitEvent!==!1&&this._events.next(new Oc(!0,i))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(r=>r.markAllAsTouched(e))}markAsUntouched(e={}){let r=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=e.sourceControl??this;this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:i})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i),r&&e.emitEvent!==!1&&this._events.next(new Oc(!1,i))}markAsDirty(e={}){let r=this.pristine===!0;this.pristine=!1;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(Q(w({},e),{sourceControl:i})),r&&e.emitEvent!==!1&&this._events.next(new Ac(!1,i))}markAsPristine(e={}){let r=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=e.sourceControl??this;this._forEachChild(n=>{n.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),r&&e.emitEvent!==!1&&this._events.next(new Ac(!0,i))}markAsPending(e={}){this.status=Bs;let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new zs(this.status,r)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(Q(w({},e),{sourceControl:r}))}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=Tc,this.errors=null,this._forEachChild(n=>{n.disable(Q(w({},e),{onlySelf:!0}))}),this._updateValue();let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Nh(this.value,i)),this._events.next(new zs(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Q(w({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(n=>n(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=kc,this._forEachChild(i=>{i.enable(Q(w({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Q(w({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e,r){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},r),this._parent._updateTouched({},r))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===kc||this.status===Bs)&&this._runAsyncValidator(i,e.emitEvent)}let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Nh(this.value,r)),this._events.next(new zs(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(Q(w({},e),{sourceControl:r}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Tc:kc}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,r){if(this.asyncValidator){this.status=Bs,this._hasOwnPendingAsyncValidator={emitEvent:r!==!1};let i=MI(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(n=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(n,{emitEvent:r,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1,this,r.shouldHaveEmitted)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((i,n)=>i&&i._find(n),this)}getError(e,r){let i=r?this.get(r):this;return i&&i.errors?i.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,r,i){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||i)&&this._events.next(new zs(this.status,r)),this._parent&&this._parent._updateControlsErrors(e,r,i)}_initObservables(){this.valueChanges=new B,this.statusChanges=new B}_calculateStatus(){return this._allControlsDisabled()?Tc:this.errors?Th:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Bs)?Bs:this._anyControlsHaveStatus(Th)?Th:kc}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,r){let i=!this._anyControlsDirty(),n=this.pristine!==i;this.pristine=i,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),n&&this._events.next(new Ac(this.pristine,r))}_updateTouched(e={},r){this.touched=this._anyControlsTouched(),this._events.next(new Oc(this.touched,r)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Vh(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=KB(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=XB(this._rawAsyncValidators)}},$s=class extends Hs{constructor(e,r,i){super(Pb(r),Lb(i,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,i={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){jI(this,!0,e),Object.keys(e).forEach(i=>{LI(this,!0,i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(i=>{let n=this.controls[i];n&&n.patchValue(e[i],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((i,n)=>{i.reset(e?e[n]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,i)=>(e[i]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,i)=>i._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let i=this.controls[r];i&&e(i,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,i]of Object.entries(this.controls))if(this.contains(r)&&e(i))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,i,n)=>((i.enabled||this.disabled)&&(r[n]=i.value),r))}_reduceChildren(e,r){let i=e;return this._forEachChild((n,o)=>{i=r(i,n,o)}),i}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Ab=class extends $s{};var Gs=new g("CallSetDisabledState",{providedIn:"root",factory:()=>Bh}),Bh="always";function zh(t,e){return[...e.path,t]}function Nc(t,e,r=Bh){jb(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),ez(t,e),iz(t,e),tz(t,e),JB(t,e)}function Fh(t,e,r=!0){let i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),Lh(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Ph(t,e){t.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function JB(t,e){if(e.valueAccessor.setDisabledState){let r=i=>{e.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(r),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(r)})}}function jb(t,e){let r=NI(t);e.validator!==null?t.setValidators(vI(r,e.validator)):typeof r=="function"&&t.setValidators([r]);let i=FI(t);e.asyncValidator!==null?t.setAsyncValidators(vI(i,e.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let n=()=>t.updateValueAndValidity();Ph(e._rawValidators,n),Ph(e._rawAsyncValidators,n)}function Lh(t,e){let r=!1;if(t!==null){if(e.validator!==null){let n=NI(t);if(Array.isArray(n)&&n.length>0){let o=n.filter(s=>s!==e.validator);o.length!==n.length&&(r=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let n=FI(t);if(Array.isArray(n)&&n.length>0){let o=n.filter(s=>s!==e.asyncValidator);o.length!==n.length&&(r=!0,t.setAsyncValidators(o))}}}let i=()=>{};return Ph(e._rawValidators,i),Ph(e._rawAsyncValidators,i),r}function ez(t,e){e.valueAccessor.registerOnChange(r=>{t._pendingValue=r,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&VI(t,e)})}function tz(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&VI(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function VI(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function iz(t,e){let r=(i,n)=>{e.valueAccessor.writeValue(i),n&&e.viewToModelUpdate(i)};t.registerOnChange(r),e._registerOnDestroy(()=>{t._unregisterOnChange(r)})}function BI(t,e){t==null,jb(t,e)}function nz(t,e){return Lh(t,e)}function Vb(t,e){if(!t.hasOwnProperty("model"))return!1;let r=t.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function rz(t){return Object.getPrototypeOf(t.constructor)===PB}function zI(t,e){t._syncPendingControls(),e.forEach(r=>{let i=r.control;i.updateOn==="submit"&&i._pendingChange&&(r.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function Bb(t,e){if(!e)return null;Array.isArray(e);let r,i,n;return e.forEach(o=>{o.constructor===jh?r=o:rz(o)?i=o:n=o}),n||i||r||null}function oz(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}var sz={provide:oi,useExisting:lt(()=>Fc)},Rc=Promise.resolve(),Fc=(()=>{let e=class e extends oi{get submitted(){return ti(this.submittedReactive)}constructor(i,n,o){super(),this.callSetDisabledState=o,this._submitted=Mn(()=>this.submittedReactive()),this.submittedReactive=Ni(!1),this._directives=new Set,this.ngSubmit=new B,this.form=new $s({},Nb(i),Fb(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(i){Rc.then(()=>{let n=this._findContainer(i.path);i.control=n.registerControl(i.name,i.control),Nc(i.control,i,this.callSetDisabledState),i.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(i)})}getControl(i){return this.form.get(i.path)}removeControl(i){Rc.then(()=>{let n=this._findContainer(i.path);n&&n.removeControl(i.name),this._directives.delete(i)})}addFormGroup(i){Rc.then(()=>{let n=this._findContainer(i.path),o=new $s({});BI(o,i),n.registerControl(i.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(i){Rc.then(()=>{let n=this._findContainer(i.path);n&&n.removeControl(i.name)})}getFormGroup(i){return this.form.get(i.path)}updateModel(i,n){Rc.then(()=>{this.form.get(i.path).setValue(n)})}setValue(i){this.control.setValue(i)}onSubmit(i){return this.submittedReactive.set(!0),zI(this.form,this._directives),this.ngSubmit.emit(i),i?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(i=void 0){this.form.reset(i),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(i){return i.pop(),i.length?this.form.get(i):this.form}};e.\u0275fac=function(n){return new(n||e)(h(on,10),h(Ao,10),h(Gs,8))},e.\u0275dir=I({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&Z("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[se([sz]),ae]});let t=e;return t})();function yI(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function wI(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Ro=class extends Hs{constructor(e=null,r,i){super(Pb(r),Lb(i,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Vh(r)&&(r.nonNullable||r.initialValueIsDefault)&&(wI(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){yI(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){yI(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){wI(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var az=t=>t instanceof Ro,cz=(()=>{let e=class e extends oi{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return zh(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,features:[ae]});let t=e;return t})();var lz={provide:Di,useExisting:lt(()=>dz)},xI=Promise.resolve(),dz=(()=>{let e=class e extends Di{constructor(i,n,o,s,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new Ro,this._registered=!1,this.name="",this.update=new B,this._parent=i,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=Bb(this,s)}ngOnChanges(i){if(this._checkForErrors(),!this._registered||"name"in i){if(this._registered&&(this._checkName(),this.formDirective)){let n=i.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in i&&this._updateDisabled(i),Vb(i,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Nc(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(i){xI.then(()=>{this.control.setValue(i,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(i){let n=i.isDisabled.currentValue,o=n!==0&&T(n);xI.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(i){return this._parent?zh(i,this._parent):[i]}};e.\u0275fac=function(n){return new(n||e)(h(oi,9),h(on,10),h(Ao,10),h(jn,10),h(ue,8),h(Gs,8))},e.\u0275dir=I({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[se([lz]),ae,Me]});let t=e;return t})(),vX=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})();var zb=new g(""),uz={provide:Di,useExisting:lt(()=>Ub)},Ub=(()=>{let e=class e extends Di{set isDisabled(i){}constructor(i,n,o,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new B,this._ngModelWarningSent=!1,this._setValidators(i),this._setAsyncValidators(n),this.valueAccessor=Bb(this,o)}ngOnChanges(i){if(this._isControlChanged(i)){let n=i.form.previousValue;n&&Fh(n,this,!1),Nc(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Vb(i,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Fh(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}_isControlChanged(i){return i.hasOwnProperty("form")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(n){return new(n||e)(h(on,10),h(Ao,10),h(jn,10),h(zb,8),h(Gs,8))},e.\u0275dir=I({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[se([uz]),ae,Me]});let t=e;return t})(),hz={provide:oi,useExisting:lt(()=>Ws)},Ws=(()=>{let e=class e extends oi{get submitted(){return ti(this._submittedReactive)}set submitted(i){this._submittedReactive.set(i)}constructor(i,n,o){super(),this.callSetDisabledState=o,this._submitted=Mn(()=>this._submittedReactive()),this._submittedReactive=Ni(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new B,this._setValidators(i),this._setAsyncValidators(n)}ngOnChanges(i){this._checkFormPresent(),i.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Lh(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(i){let n=this.form.get(i.path);return Nc(n,i,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(i),n}getControl(i){return this.form.get(i.path)}removeControl(i){Fh(i.control||null,i,!1),oz(this.directives,i)}addFormGroup(i){this._setUpFormContainer(i)}removeFormGroup(i){this._cleanUpFormContainer(i)}getFormGroup(i){return this.form.get(i.path)}addFormArray(i){this._setUpFormContainer(i)}removeFormArray(i){this._cleanUpFormContainer(i)}getFormArray(i){return this.form.get(i.path)}updateModel(i,n){this.form.get(i.path).setValue(n)}onSubmit(i){return this._submittedReactive.set(!0),zI(this.form,this.directives),this.ngSubmit.emit(i),this.form._events.next(new Tb(this.control)),i?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(i=void 0){this.form.reset(i),this._submittedReactive.set(!1),this.form._events.next(new Rb(this.form))}_updateDomValue(){this.directives.forEach(i=>{let n=i.control,o=this.form.get(i.path);n!==o&&(Fh(n||null,i),az(o)&&(Nc(o,i,this.callSetDisabledState),i.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(i){let n=this.form.get(i.path);BI(n,i),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(i){if(this.form){let n=this.form.get(i.path);n&&nz(n,i)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){jb(this.form,this),this._oldForm&&Lh(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(n){return new(n||e)(h(on,10),h(Ao,10),h(Gs,8))},e.\u0275dir=I({type:e,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&Z("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[se([hz]),ae,Me]});let t=e;return t})(),fz={provide:oi,useExisting:lt(()=>UI)},UI=(()=>{let e=class e extends cz{constructor(i,n,o){super(),this.name=null,this._parent=i,this._setValidators(n),this._setAsyncValidators(o)}_checkParentType(){$I(this._parent)}};e.\u0275fac=function(n){return new(n||e)(h(oi,13),h(on,10),h(Ao,10))},e.\u0275dir=I({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[se([fz]),ae]});let t=e;return t})(),pz={provide:oi,useExisting:lt(()=>HI)},HI=(()=>{let e=class e extends oi{constructor(i,n,o){super(),this.name=null,this._parent=i,this._setValidators(n),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return zh(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){$I(this._parent)}};e.\u0275fac=function(n){return new(n||e)(h(oi,13),h(on,10),h(Ao,10))},e.\u0275dir=I({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[se([pz]),ae]});let t=e;return t})();function $I(t){return!(t instanceof UI)&&!(t instanceof Ws)&&!(t instanceof HI)}var mz={provide:Di,useExisting:lt(()=>gz)},gz=(()=>{let e=class e extends Di{set isDisabled(i){}constructor(i,n,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new B,this._ngModelWarningSent=!1,this._parent=i,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=Bb(this,s)}ngOnChanges(i){this._added||this._setUpControl(),Vb(i,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}get path(){return zh(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(n){return new(n||e)(h(oi,13),h(on,10),h(Ao,10),h(jn,10),h(zb,8))},e.\u0275dir=I({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[se([mz]),ae,Me]});let t=e;return t})();var GI=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})(),Ob=class extends Hs{constructor(e,r,i){super(Pb(r),Lb(i,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,r={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}insert(e,r,i={}){this.controls.splice(e,0,r),this._registerControl(r),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(e,r={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:r.emitEvent})}setControl(e,r,i={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),r&&(this.controls.splice(n,0,r),this._registerControl(r)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,r={}){jI(this,!1,e),e.forEach((i,n)=>{LI(this,!1,n),this.at(n).setValue(i,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(e.forEach((i,n)=>{this.at(n)&&this.at(n).patchValue(i,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e=[],r={}){this._forEachChild((i,n)=>{i.reset(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(r=>r._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((r,i)=>i._syncPendingControls()?!0:r,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((r,i)=>{e(r,i)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(r=>r.enabled&&e(r))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};function DI(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var bX=(()=>{let e=class e{constructor(){this.useNonNullable=!1}get nonNullable(){let i=new e;return i.useNonNullable=!0,i}group(i,n=null){let o=this._reduceControls(i),s={};return DI(n)?s=n:n!==null&&(s.validators=n.validator,s.asyncValidators=n.asyncValidator),new $s(o,s)}record(i,n=null){let o=this._reduceControls(i);return new Ab(o,n)}control(i,n,o){let s={};return this.useNonNullable?(DI(n)?s=n:(s.validators=n,s.asyncValidators=o),new Ro(i,Q(w({},s),{nonNullable:!0}))):new Ro(i,n,o)}array(i,n,o){let s=i.map(a=>this._createControl(a));return new Ob(s,n,o)}_reduceControls(i){let n={};return Object.keys(i).forEach(o=>{n[o]=this._createControl(i[o])}),n}_createControl(i){if(i instanceof Ro)return i;if(i instanceof Hs)return i;if(Array.isArray(i)){let n=i[0],o=i.length>1?i[1]:null,s=i.length>2?i[2]:null;return this.control(n,o,s)}else return this.control(i)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var _X=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:[{provide:Gs,useValue:i.callSetDisabledState??Bh}]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[GI]});let t=e;return t})(),yX=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:[{provide:zb,useValue:i.warnOnNgModelWithFormControl??"always"},{provide:Gs,useValue:i.callSetDisabledState??Bh}]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[GI]});let t=e;return t})();var WI=["mat-button",""],qI=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],YI=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],vz='.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.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)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-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)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-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[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{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.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)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-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)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-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[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{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.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)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-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)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-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:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.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)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * 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)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-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)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-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[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-button-base{text-decoration:none}.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;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',ZI=".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}";var bz=["mat-icon-button",""],_z=["*"];var yz=new g("MAT_BUTTON_CONFIG");var wz=[{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"]}],$b=(()=>{let e=class e{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(i){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,i)}get disableRipple(){return this._disableRipple}set disableRipple(i){this._disableRipple=i,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(i){this._disabled=i,this._updateRippleDisabled()}constructor(i,n,o,s){this._elementRef=i,this._platform=n,this._ngZone=o,this._animationMode=s,this._focusMonitor=b(Et),this._rippleLoader=b(Sh),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let a=b(yz,{optional:!0}),c=i.nativeElement,l=c.classList;this.disabledInteractive=a?.disabledInteractive??!1,this._rippleLoader?.configureRipple(c,{className:"mat-mdc-button-ripple"});for(let{attribute:d,mdcClasses:u}of wz)c.hasAttribute(d)&&l.add(...u)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(i="program",n){i?this._focusMonitor.focusVia(this._elementRef.nativeElement,i,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)}};e.\u0275fac=function(n){ja()},e.\u0275dir=I({type:e,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",T],disabled:[2,"disabled","disabled",T],ariaDisabled:[2,"aria-disabled","ariaDisabled",T],disabledInteractive:[2,"disabledInteractive","disabledInteractive",T]},features:[re]});let t=e;return t})();var xz=(()=>{let e=class e extends $b{constructor(i,n,o,s){super(i,n,o,s),this._haltDisabledEvents=a=>{this.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_getAriaDisabled(){return this.ariaDisabled==null?this.disabled:this.ariaDisabled}};e.\u0275fac=function(n){ja()},e.\u0275dir=I({type:e,inputs:{tabIndex:[2,"tabIndex","tabIndex",i=>i==null?void 0:dt(i)]},features:[re,ae]});let t=e;return t})(),Uh=(()=>{let e=class e extends $b{constructor(i,n,o,s){super(i,n,o,s)}};e.\u0275fac=function(n){return new(n||e)(h(N),h(Ae),h(F),h(rt,8))},e.\u0275cmp=z({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(n,o){n&2&&(q("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),kt(o.color?"mat-"+o.color:""),H("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[ae,Y],attrs:WI,ngContentSelectors:YI,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,o){n&1&&(ye(qI),k(0,"span",0),W(1),_(2,"span",1),W(3,1),y(),W(4,2),k(5,"span",2)(6,"span",3)),n&2&&H("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.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)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-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)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-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[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{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.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)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-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)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-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[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{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.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)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-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)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-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:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.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)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * 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)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-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)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-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[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-button-base{text-decoration:none}.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;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0});let t=e;return t})(),OX=(()=>{let e=class e extends xz{constructor(i,n,o,s){super(i,n,o,s)}};e.\u0275fac=function(n){return new(n||e)(h(N),h(Ae),h(F),h(rt,8))},e.\u0275cmp=z({type:e,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(n,o){n&2&&(q("disabled",o._getDisabledAttribute())("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-disabled",o._getDisabledAttribute()),kt(o.color?"mat-"+o.color:""),H("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[ae,Y],attrs:WI,ngContentSelectors:YI,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,o){n&1&&(ye(qI),k(0,"span",0),W(1),_(2,"span",1),W(3,1),y(),W(4,2),k(5,"span",2)(6,"span",3)),n&2&&H("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[vz,ZI],encapsulation:2,changeDetection:0});let t=e;return t})();var QI=(()=>{let e=class e extends $b{constructor(i,n,o,s){super(i,n,o,s),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};e.\u0275fac=function(n){return new(n||e)(h(N),h(Ae),h(F),h(rt,8))},e.\u0275cmp=z({type:e,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(n,o){n&2&&(q("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),kt(o.color?"mat-"+o.color:""),H("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[ae,Y],attrs:bz,ngContentSelectors:_z,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(ye(),k(0,"span",0),W(1),k(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',ZI],encapsulation:2,changeDetection:0});let t=e;return t})();var Hh=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,rn,ee]});let t=e;return t})();var Dz=["*"],$h;function Cz(){if($h===void 0&&($h=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&($h=t.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return $h}function Pc(t){return Cz()?.createHTML(t)||t}function XI(t){return Error(`Unable to find icon with the name "${t}"`)}function Ez(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function JI(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function eS(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var sr=class{constructor(e,r,i){this.url=e,this.svgText=r,this.options=i}},Iz=(()=>{let e=class e{constructor(i,n,o,s){this._httpClient=i,this._sanitizer=n,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=o}addSvgIcon(i,n,o){return this.addSvgIconInNamespace("",i,n,o)}addSvgIconLiteral(i,n,o){return this.addSvgIconLiteralInNamespace("",i,n,o)}addSvgIconInNamespace(i,n,o,s){return this._addSvgIconConfig(i,n,new sr(o,null,s))}addSvgIconResolver(i){return this._resolvers.push(i),this}addSvgIconLiteralInNamespace(i,n,o,s){let a=this._sanitizer.sanitize(Ht.HTML,o);if(!a)throw eS(o);let c=Pc(a);return this._addSvgIconConfig(i,n,new sr("",c,s))}addSvgIconSet(i,n){return this.addSvgIconSetInNamespace("",i,n)}addSvgIconSetLiteral(i,n){return this.addSvgIconSetLiteralInNamespace("",i,n)}addSvgIconSetInNamespace(i,n,o){return this._addSvgIconSetConfig(i,new sr(n,null,o))}addSvgIconSetLiteralInNamespace(i,n,o){let s=this._sanitizer.sanitize(Ht.HTML,n);if(!s)throw eS(n);let a=Pc(s);return this._addSvgIconSetConfig(i,new sr("",a,o))}registerFontClassAlias(i,n=i){return this._fontCssClassesByAlias.set(i,n),this}classNameForFontAlias(i){return this._fontCssClassesByAlias.get(i)||i}setDefaultFontSetClass(...i){return this._defaultFontSetClass=i,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(i){let n=this._sanitizer.sanitize(Ht.RESOURCE_URL,i);if(!n)throw JI(i);let o=this._cachedIconsByUrl.get(n);return o?V(Gh(o)):this._loadSvgIconFromConfig(new sr(i,null)).pipe(je(s=>this._cachedIconsByUrl.set(n,s)),P(s=>Gh(s)))}getNamedSvgIcon(i,n=""){let o=tS(n,i),s=this._svgIconConfigs.get(o);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(n,i),s)return this._svgIconConfigs.set(o,s),this._getSvgFromConfig(s);let a=this._iconSetConfigs.get(n);return a?this._getSvgFromIconSetConfigs(i,a):un(XI(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(i){return i.svgText?V(Gh(this._svgElementFromConfig(i))):this._loadSvgIconFromConfig(i).pipe(P(n=>Gh(n)))}_getSvgFromIconSetConfigs(i,n){let o=this._extractIconWithNameFromAnySet(i,n);if(o)return V(o);let s=n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(ut(c=>{let d=`Loading icon set URL: ${this._sanitizer.sanitize(Ht.RESOURCE_URL,a.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(d)),V(null)})));return fa(s).pipe(P(()=>{let a=this._extractIconWithNameFromAnySet(i,n);if(!a)throw XI(i);return a}))}_extractIconWithNameFromAnySet(i,n){for(let o=n.length-1;o>=0;o--){let s=n[o];if(s.svgText&&s.svgText.toString().indexOf(i)>-1){let a=this._svgElementFromConfig(s),c=this._extractSvgIconFromSet(a,i,s.options);if(c)return c}}return null}_loadSvgIconFromConfig(i){return this._fetchIcon(i).pipe(je(n=>i.svgText=n),P(()=>this._svgElementFromConfig(i)))}_loadSvgIconSetFromConfig(i){return i.svgText?V(null):this._fetchIcon(i).pipe(je(n=>i.svgText=n))}_extractSvgIconFromSet(i,n,o){let s=i.querySelector(`[id="${n}"]`);if(!s)return null;let a=s.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,o);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),o);let c=this._svgElementFromString(Pc(""));return c.appendChild(a),this._setSvgAttributes(c,o)}_svgElementFromString(i){let n=this._document.createElement("DIV");n.innerHTML=i;let o=n.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(i){let n=this._svgElementFromString(Pc("")),o=i.attributes;for(let s=0;sPc(d)),Si(()=>this._inProgressUrlFetches.delete(a)),ba());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(i,n,o){return this._svgIconConfigs.set(tS(i,n),o),this}_addSvgIconSetConfig(i,n){let o=this._iconSetConfigs.get(i);return o?o.push(n):this._iconSetConfigs.set(i,[n]),this}_svgElementFromConfig(i){if(!i.svgElement){let n=this._svgElementFromString(i.svgText);this._setSvgAttributes(n,i.options),i.svgElement=n}return i.svgElement}_getIconConfigFromResolvers(i,n){for(let o=0;oe?e.pathname+e.search:""}}var iS=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Rz=iS.map(t=>`[${t}]`).join(", "),Az=/^url\(['"]?#(.*?)['"]?\)$/,Bi=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(i){this._color=i}get svgIcon(){return this._svgIcon}set svgIcon(i){i!==this._svgIcon&&(i?this._updateSvgIcon(i):this._svgIcon&&this._clearSvgElement(),this._svgIcon=i)}get fontSet(){return this._fontSet}set fontSet(i){let n=this._cleanupFontValue(i);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(i){let n=this._cleanupFontValue(i);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}constructor(i,n,o,s,a,c){this._elementRef=i,this._iconRegistry=n,this._location=s,this._errorHandler=a,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=ne.EMPTY,c&&(c.color&&(this.color=this._defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),o||i.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(i){if(!i)return["",""];let n=i.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${i}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let i=this._elementsWithExternalReferences;if(i&&i.size){let n=this._location.getPathname();n!==this._previousPath&&(this._previousPath=n,this._prependPathToReferences(n))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(i){this._clearSvgElement();let n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(i),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(i)}_clearSvgElement(){let i=this._elementRef.nativeElement,n=i.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){let o=i.childNodes[n];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let i=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>i.classList.remove(o)),n.forEach(o=>i.classList.add(o)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&i.classList.remove(this._previousFontIconClass),this.fontIcon&&i.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(i){return typeof i=="string"?i.trim().split(" ")[0]:i}_prependPathToReferences(i){let n=this._elementsWithExternalReferences;n&&n.forEach((o,s)=>{o.forEach(a=>{s.setAttribute(a.name,`url('${i}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(i){let n=i.querySelectorAll(Rz),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{let c=n[s],l=c.getAttribute(a),d=l?l.match(Az):null;if(d){let u=o.get(c);u||(u=[],o.set(c,u)),u.push({name:a,value:d[1]})}})}_updateSvgIcon(i){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),i){let[n,o]=this._splitIconName(i);n&&(this._svgNamespace=n),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,n).pipe(We(1)).subscribe(s=>this._setSvgElement(s),s=>{let a=`Error retrieving icon ${n}:${o}! ${s.message}`;this._errorHandler.handleError(new Error(a))})}}};e.\u0275fac=function(n){return new(n||e)(h(N),h(Iz),pt("aria-hidden"),h(kz),h(Ft),h(Mz,8))},e.\u0275cmp=z({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(n,o){n&2&&(q("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),kt(o.color?"mat-"+o.color:""),H("mat-icon-inline",o.inline)("mat-icon-no-color",o.color!=="primary"&&o.color!=="accent"&&o.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",T],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[re,Y],ngContentSelectors:Dz,decls:1,vars:0,template:function(n,o){n&1&&(ye(),W(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0});let t=e;return t})(),Wh=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,ee]});let t=e;return t})();var zi=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(zi||{}),qX="*";function st(t,e){return{type:zi.Trigger,name:t,definitions:e,options:{}}}function Ge(t,e=null){return{type:zi.Animate,styles:e,timings:t}}function Gb(t,e=null){return{type:zi.Group,steps:t,options:e}}function YX(t,e=null){return{type:zi.Sequence,steps:t,options:e}}function de(t){return{type:zi.Style,styles:t,offset:null}}function ke(t,e,r){return{type:zi.State,name:t,styles:e,options:r}}function jc(t){return{type:zi.Keyframes,steps:t}}function Le(t,e,r=null){return{type:zi.Transition,expr:t,animation:e,options:r}}function Oo(t=null){return{type:zi.AnimateChild,options:t}}function No(t,e,r=null){return{type:zi.Query,selector:t,animation:e,options:r}}function ZX(t,e){return{type:zi.Stagger,timings:t,animation:e}}var nS=class{constructor(e=0,r=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+r}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let r=e=="start"?this._onStartFns:this._onDoneFns;r.forEach(i=>i()),r.length=0}},rS=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let r=0,i=0,n=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++r==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++n==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let r=e*this.totalTime;this.players.forEach(i=>{let n=i.totalTime?Math.min(1,r/i.totalTime):1;i.setPosition(n)})}getPosition(){let e=this.players.reduce((r,i)=>r===null||i.totalTime>r.totalTime?i:r,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let r=e=="start"?this._onStartFns:this._onDoneFns;r.forEach(i=>i()),r.length=0}},QX="!";var Wb=class{constructor(e){this._box=e,this._destroyed=new C,this._resizeSubject=new C,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(r=>this._resizeSubject.next(r)))}observe(e){return this._elementObservables.has(e)||this._elementObservables.set(e,new oe(r=>{let i=this._resizeSubject.subscribe(r);return this._resizeObserver?.observe(e,{box:this._box}),()=>{this._resizeObserver?.unobserve(e),i.unsubscribe(),this._elementObservables.delete(e)}}).pipe(ge(r=>r.some(i=>i.target===e)),Bl({bufferSize:1,refCount:!0}),te(this._destroyed))),this._elementObservables.get(e)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},oS=(()=>{let e=class e{constructor(){this._observers=new Map,this._ngZone=b(F),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,i]of this._observers)i.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(i,n){let o=n?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new Wb(o)),this._observers.get(o).observe(i)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Oz=["notch"],Nz=["matFormFieldNotchedOutline",""],Fz=["*"],Pz=["textField"],Lz=["iconPrefixContainer"],jz=["textPrefixContainer"],Vz=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Bz=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function zz(t,e){t&1&&k(0,"span",19)}function Uz(t,e){if(t&1&&(_(0,"label",18),W(1,1),U(2,zz,1,0,"span",19),y()),t&2){let r=$(2);M("floating",r._shouldLabelFloat())("monitorResize",r._hasOutline())("id",r._labelId),q("for",r._control.disableAutomaticLabeling?null:r._control.id),x(2),le(!r.hideRequiredMarker&&r._control.required?2:-1)}}function Hz(t,e){if(t&1&&U(0,Uz,3,5,"label",18),t&2){let r=$();le(r._hasFloatingLabel()?0:-1)}}function $z(t,e){t&1&&k(0,"div",5)}function Gz(t,e){}function Wz(t,e){if(t&1&&U(0,Gz,0,0,"ng-template",11),t&2){$(2);let r=gt(1);M("ngTemplateOutlet",r)}}function qz(t,e){if(t&1&&(_(0,"div",7),U(1,Wz,1,1,null,11),y()),t&2){let r=$();M("matFormFieldNotchedOutlineOpen",r._shouldLabelFloat()),x(),le(r._forceDisplayInfixLabel()?-1:1)}}function Yz(t,e){t&1&&(_(0,"div",8,2),W(2,2),y())}function Zz(t,e){t&1&&(_(0,"div",9,3),W(2,3),y())}function Qz(t,e){}function Kz(t,e){if(t&1&&U(0,Qz,0,0,"ng-template",11),t&2){$();let r=gt(1);M("ngTemplateOutlet",r)}}function Xz(t,e){t&1&&(_(0,"div",12),W(1,4),y())}function Jz(t,e){t&1&&(_(0,"div",13),W(1,5),y())}function eU(t,e){t&1&&k(0,"div",14)}function tU(t,e){if(t&1&&(_(0,"div",16),W(1,6),y()),t&2){let r=$();M("@transitionMessages",r._subscriptAnimationState)}}function iU(t,e){if(t&1&&(_(0,"mat-hint",20),we(1),y()),t&2){let r=$(2);M("id",r._hintLabelId),x(),at(r.hintLabel)}}function nU(t,e){if(t&1&&(_(0,"div",17),U(1,iU,2,2,"mat-hint",20),W(2,7),k(3,"div",21),W(4,8),y()),t&2){let r=$();M("@transitionMessages",r._subscriptAnimationState),x(),le(r.hintLabel?1:-1)}}var sS=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["mat-label"]],standalone:!0});let t=e;return t})(),rU=0,mS=new g("MatError"),CJ=(()=>{let e=class e{constructor(i,n){this.id=`mat-mdc-error-${rU++}`,i||n.nativeElement.setAttribute("aria-live","polite")}};e.\u0275fac=function(n){return new(n||e)(pt("aria-live"),h(N))},e.\u0275dir=I({type:e,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(n,o){n&2&&yt("id",o.id)},inputs:{id:"id"},standalone:!0,features:[se([{provide:mS,useExisting:e}])]});let t=e;return t})(),oU=0,aS=(()=>{let e=class e{constructor(){this.align="start",this.id=`mat-mdc-hint-${oU++}`}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,o){n&2&&(yt("id",o.id),q("align",null),H("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0});let t=e;return t})(),gS=new g("MatPrefix"),vS=(()=>{let e=class e{constructor(){this._isText=!1}set _isTextSelector(i){this._isText=!0}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},standalone:!0,features:[se([{provide:gS,useExisting:e}])]});let t=e;return t})(),bS=new g("MatSuffix"),EJ=(()=>{let e=class e{constructor(){this._isText=!1}set _isTextSelector(i){this._isText=!0}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[se([{provide:bS,useExisting:e}])]});let t=e;return t})(),_S=new g("FloatingLabelParent"),cS=(()=>{let e=class e{get floating(){return this._floating}set floating(i){this._floating=i,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(i){this._monitorResize=i,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(i){this._elementRef=i,this._floating=!1,this._monitorResize=!1,this._resizeObserver=b(oS),this._ngZone=b(F),this._parent=b(_S),this._resizeSubscription=new ne}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return sU(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}};e.\u0275fac=function(n){return new(n||e)(h(N))},e.\u0275dir=I({type:e,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,o){n&2&&H("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0});let t=e;return t})();function sU(t){let e=t;if(e.offsetParent!==null)return e.scrollWidth;let r=e.cloneNode(!0);r.style.setProperty("position","absolute"),r.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(r);let i=r.scrollWidth;return r.remove(),i}var lS="mdc-line-ripple--active",qh="mdc-line-ripple--deactivating",dS=(()=>{let e=class e{constructor(i,n){this._elementRef=i,this._handleTransitionEnd=o=>{let s=this._elementRef.nativeElement.classList,a=s.contains(qh);o.propertyName==="opacity"&&a&&s.remove(lS,qh)},n.runOutsideAngular(()=>{i.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let i=this._elementRef.nativeElement.classList;i.remove(qh),i.add(lS)}deactivate(){this._elementRef.nativeElement.classList.add(qh)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}};e.\u0275fac=function(n){return new(n||e)(h(N),h(F))},e.\u0275dir=I({type:e,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0});let t=e;return t})(),uS=(()=>{let e=class e{constructor(i,n){this._elementRef=i,this._ngZone=n,this.open=!1}ngAfterViewInit(){let i=this._elementRef.nativeElement.querySelector(".mdc-floating-label");i?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(i.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>i.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(i){!this.open||!i?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${i}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}};e.\u0275fac=function(n){return new(n||e)(h(N),h(F))},e.\u0275cmp=z({type:e,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,o){if(n&1&&De(Oz,5),n&2){let s;L(s=j())&&(o._notch=s.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,o){n&2&&H("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[Y],attrs:Nz,ngContentSelectors:Fz,decls:5,vars:0,consts:[["notch",""],[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(n,o){n&1&&(ye(),k(0,"div",1),_(1,"div",2,0),W(3),y(),k(4,"div",3))},encapsulation:2,changeDetection:0});let t=e;return t})(),aU={transitionMessages:st("transitionMessages",[ke("enter",de({opacity:1,transform:"translateY(0%)"})),Le("void => enter",[de({opacity:0,transform:"translateY(-5px)"}),Ge("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Vc=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e});let t=e;return t})();var Bc=new g("MatFormField"),qb=new g("MAT_FORM_FIELD_DEFAULT_OPTIONS"),hS=0,fS="fill",cU="auto",pS="fixed",lU="translateY(-50%)",yS=(()=>{let e=class e{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(i){this._hideRequiredMarker=yi(i)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||cU}set floatLabel(i){i!==this._floatLabel&&(this._floatLabel=i,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(i){let n=this._appearance,o=i||this._defaults?.appearance||fS;this._appearance=o,this._appearance==="outline"&&this._appearance!==n&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||pS}set subscriptSizing(i){this._subscriptSizing=i||this._defaults?.subscriptSizing||pS}get hintLabel(){return this._hintLabel}set hintLabel(i){this._hintLabel=i,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(i){this._explicitFormFieldControl=i}constructor(i,n,o,s,a,c,l,d){this._elementRef=i,this._changeDetectorRef=n,this._dir=s,this._platform=a,this._defaults=c,this._animationMode=l,this._hideRequiredMarker=!1,this.color="primary",this._appearance=fS,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${hS++}`,this._hintLabelId=`mat-mdc-hint-${hS++}`,this._subscriptAnimationState="",this._destroyed=new C,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._injector=b(Se),c&&(c.appearance&&(this.appearance=c.appearance),this._hideRequiredMarker=!!c?.hideRequiredMarker,c.color&&(this.color=c.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){let i=this._control;i.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${i.controlType}`),i.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),i.ngControl&&i.ngControl.valueChanges&&i.ngControl.valueChanges.pipe(te(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(i=>!i._isText),this._hasTextPrefix=!!this._prefixChildren.find(i=>i._isText),this._hasIconSuffix=!!this._suffixChildren.find(i=>!i._isText),this._hasTextSuffix=!!this._suffixChildren.find(i=>i._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),Ze(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),Ua(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(te(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(i){let n=this._control?this._control.ngControl:null;return n&&n[i]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let i=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&i.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let n=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,o=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;n?i.push(n.id):this._hintLabel&&i.push(this._hintLabelId),o&&i.push(o.id)}else this._errorChildren&&i.push(...this._errorChildren.map(n=>n.id));this._control.setDescribedByIds(i)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let i=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){i.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let n=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,s=n?.getBoundingClientRect().width??0,a=o?.getBoundingClientRect().width??0,c=this._dir.value==="rtl"?"-1":"1",l=`${s+a}px`,u=`calc(${c} * (${l} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;i.style.transform=`var( - --mat-mdc-form-field-label-transform, - ${lU} translateX(${u}) - )`}_isAttachedToDom(){let i=this._elementRef.nativeElement;if(i.getRootNode){let n=i.getRootNode();return n&&n!==i}return document.documentElement.contains(i)}};e.\u0275fac=function(n){return new(n||e)(h(N),h(ue),h(F),h(bt),h(Ae),h(qb,8),h(rt,8),h(K))},e.\u0275cmp=z({type:e,selectors:[["mat-form-field"]],contentQueries:function(n,o,s){if(n&1&&(pe(s,sS,5),pe(s,sS,7),pe(s,Vc,5),pe(s,gS,5),pe(s,bS,5),pe(s,mS,5),pe(s,aS,5)),n&2){let a;L(a=j())&&(o._labelChildNonStatic=a.first),L(a=j())&&(o._labelChildStatic=a.first),L(a=j())&&(o._formFieldControl=a.first),L(a=j())&&(o._prefixChildren=a),L(a=j())&&(o._suffixChildren=a),L(a=j())&&(o._errorChildren=a),L(a=j())&&(o._hintChildren=a)}},viewQuery:function(n,o){if(n&1&&(De(Pz,5),De(Lz,5),De(jz,5),De(cS,5),De(uS,5),De(dS,5)),n&2){let s;L(s=j())&&(o._textField=s.first),L(s=j())&&(o._iconPrefixContainer=s.first),L(s=j())&&(o._textPrefixContainer=s.first),L(s=j())&&(o._floatingLabel=s.first),L(s=j())&&(o._notchedOutline=s.first),L(s=j())&&(o._lineRipple=s.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(n,o){n&2&&H("mat-mdc-form-field-label-always-float",o._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",o._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",o._hasIconSuffix)("mat-form-field-invalid",o._control.errorState)("mat-form-field-disabled",o._control.disabled)("mat-form-field-autofilled",o._control.autofilled)("mat-form-field-no-animations",o._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("mat-focused",o._control.focused)("mat-primary",o.color!=="accent"&&o.color!=="warn")("mat-accent",o.color==="accent")("mat-warn",o.color==="warn")("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[se([{provide:Bc,useExisting:e},{provide:_S,useExisting:e}]),Y],ngContentSelectors:Bz,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],[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,o){if(n&1){let s=Ye();ye(Vz),U(0,Hz,1,1,"ng-template",null,0,Er),_(2,"div",4,1),Z("click",function(c){return be(s),_e(o._control.onContainerClick(c))}),U(4,$z,1,0,"div",5),_(5,"div",6),U(6,qz,2,2,"div",7)(7,Yz,3,0,"div",8)(8,Zz,3,0,"div",9),_(9,"div",10),U(10,Kz,1,1,null,11),W(11),y(),U(12,Xz,2,0,"div",12)(13,Jz,2,0,"div",13),y(),U(14,eU,1,0,"div",14),y(),_(15,"div",15),U(16,tU,2,1,"div",16)(17,nU,5,2,"div",17),y()}if(n&2){let s;x(2),H("mdc-text-field--filled",!o._hasOutline())("mdc-text-field--outlined",o._hasOutline())("mdc-text-field--no-label",!o._hasFloatingLabel())("mdc-text-field--disabled",o._control.disabled)("mdc-text-field--invalid",o._control.errorState),x(2),le(!o._hasOutline()&&!o._control.disabled?4:-1),x(2),le(o._hasOutline()?6:-1),x(),le(o._hasIconPrefix?7:-1),x(),le(o._hasTextPrefix?8:-1),x(2),le(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),x(2),le(o._hasTextSuffix?12:-1),x(),le(o._hasIconSuffix?13:-1),x(),le(o._hasOutline()?-1:14),x(),H("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic"),x(),le((s=o._getDisplayedMessages())==="error"?16:s==="hint"?17:-1)}},dependencies:[cS,uS,po,dS,aS],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined.mdc-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-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 96px/0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px*2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.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:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-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--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-hover-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-hover-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.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)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.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)}.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)}.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.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.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)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.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:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-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--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-hover-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-hover-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.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)}}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(.75*var(--mdc-outlined-text-field-label-text-size))}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mdc-outlined-text-field-label-text-size)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.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-text-field-wrapper::before{content:none}.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)}.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);line-height:var(--mat-form-field-subscript-text-line-height);font-size:var(--mat-form-field-subscript-text-size);letter-spacing:var(--mat-form-field-subscript-text-tracking);font-weight:var(--mat-form-field-subscript-text-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)}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-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)}[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)}.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);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-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)}.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)}.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)}.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)}.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)}.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 .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.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:[aU.transitionMessages]},changeDetection:0});let t=e;return t})(),zc=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,Gt,hh,ee]});let t=e;return t})();var wS=jt({passive:!0}),xS=(()=>{let e=class e{constructor(i,n){this._platform=i,this._ngZone=n,this._monitoredElements=new Map}monitor(i){if(!this._platform.isBrowser)return ct;let n=ot(i),o=this._monitoredElements.get(n);if(o)return o.subject;let s=new C,a="cdk-text-field-autofilled",c=l=>{l.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(a)?(n.classList.add(a),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!0}))):l.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{n.addEventListener("animationstart",c,wS),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:s,unlisten:()=>{n.removeEventListener("animationstart",c,wS)}}),s}stopMonitoring(i){let n=ot(i),o=this._monitoredElements.get(n);o&&(o.unlisten(),o.subject.complete(),n.classList.remove("cdk-text-field-autofill-monitored"),n.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(n))}ngOnDestroy(){this._monitoredElements.forEach((i,n)=>this.stopMonitoring(n))}};e.\u0275fac=function(n){return new(n||e)(m(Ae),m(F))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var DS=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})();var hU=new g("MAT_INPUT_VALUE_ACCESSOR"),fU=["button","checkbox","file","hidden","image","radio","range","reset","submit"],pU=0,CS=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(i){this._disabled=yi(i),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(i){this._id=i||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Us.required)??!1}set required(i){this._required=yi(i)}get type(){return this._type}set type(i){this._type=i||"text",this._validateType(),!this._isTextarea&&ub().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(i){this._errorStateTracker.matcher=i}get value(){return this._inputValueAccessor.value}set value(i){i!==this.value&&(this._inputValueAccessor.value=i,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(i){this._readonly=yi(i)}get errorState(){return this._errorStateTracker.errorState}set errorState(i){this._errorStateTracker.errorState=i}constructor(i,n,o,s,a,c,l,d,u,f){this._elementRef=i,this._platform=n,this.ngControl=o,this._autofillMonitor=d,this._formField=f,this._uid=`mat-input-${pU++}`,this.focused=!1,this.stateChanges=new C,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(S=>ub().has(S)),this._iOSKeyupListener=S=>{let E=S.target;!E.value&&E.selectionStart===0&&E.selectionEnd===0&&(E.setSelectionRange(1,1),E.setSelectionRange(0,0))};let p=this._elementRef.nativeElement,v=p.nodeName.toLowerCase();this._inputValueAccessor=l||p,this._previousNativeValue=this.value,this.id=this.id,n.IOS&&u.runOutsideAngular(()=>{i.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new To(c,o,a,s,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=v==="select",this._isTextarea=v==="textarea",this._isInFormField=!!f,this._isNativeSelect&&(this.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(i=>{this.autofilled=i.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(i){this._elementRef.nativeElement.focus(i)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(i){i!==this.focused&&(this.focused=i,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let i=this._elementRef.nativeElement.value;this._previousNativeValue!==i&&(this._previousNativeValue=i,this.stateChanges.next())}_dirtyCheckPlaceholder(){let i=this._getPlaceholder();if(i!==this._previousPlaceholder){let n=this._elementRef.nativeElement;this._previousPlaceholder=i,i?n.setAttribute("placeholder",i):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){fU.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let i=this._elementRef.nativeElement.validity;return i&&i.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let i=this._elementRef.nativeElement,n=i.options[0];return this.focused||i.multiple||!this.empty||!!(i.selectedIndex>-1&&n&&n.label)}else return this.focused||!this.empty}setDescribedByIds(i){i.length?this._elementRef.nativeElement.setAttribute("aria-describedby",i.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let i=this._elementRef.nativeElement;return this._isNativeSelect&&(i.multiple||i.size>1)}};e.\u0275fac=function(n){return new(n||e)(h(N),h(Ae),h(Di,10),h(Fc,8),h(Ws,8),h(nn),h(hU,10),h(xS),h(F),h(Bc,8))},e.\u0275dir=I({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(n,o){n&1&&Z("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),n&2&&(yt("id",o.id)("disabled",o.disabled)("required",o.required),q("name",o.name||null)("readonly",o.readonly&&!o._isNativeSelect||null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),H("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mdc-text-field__input",o._isInFormField)("mat-mdc-native-select-inline",o._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:[se([{provide:Vc,useExisting:e}]),Me]});let t=e;return t})(),ES=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,zc,zc,DS,ee]});let t=e;return t})();var Yt=Cs({source:"[Core -> Auth]",events:{Login:Tt(),"Login Success":Tt(),"Login Failure":Tt(),Logout:ir(),"Logout Success":ir(),"Logout Failure":Tt()}});var Yh=new g("CLIENT");var Yb={production:!0,apiUrl:"rest",backendBaseUrl:"http://localhost:3000",websocketUrl:"ws://localhost:3000"};var Uc=class{get getMock(){return this.mock}get getMockDelay(){return this.mockDelay}get getMethod(){return this.method}get getUrl(){return this.url}get getParams(){return this.params}get getBody(){return this.body}get getOptions(){return this.options}constructor(e,r,i,n,o){this.mockDelay=0,this.options={},this.method=e,this.params=i,this.options=n||{},o&&(this.mock=o),this.url="",this.mock?this.url=`/mock/${r}`:this.url=`${Yb.backendBaseUrl}/${Yb.apiUrl}/${r}`}},qs=class extends Uc{constructor(e,r,i,n=!0){let o=new Tn;r&&(o=r),super("GET",e,o,i,n)}},Lr=class extends Uc{constructor(e,r,i=!0){super("POST",e,void 0,void 0,i),this.body=r}},Zh=class extends Uc{constructor(e,r=!0){super("PUT",e,void 0,void 0,r)}};var Qh=class extends Lr{constructor(e){super("login/authenticate",w({},e)),this.mock&&(this.url+="/post-response-body-200.json")}};var Kh=class extends Zh{constructor(){super("user/logout"),this.mock&&(this.url+="/put-response-body-200.json")}};var Xh=Rn(or,t=>t.auth.isAuthenticated),IS=Rn(or,t=>t.auth.user);var fee=(()=>{let e=class e{constructor(i,n,o,s){this.apiClient=i,this.actions$=n,this.store=o,this.router=s,this.login$=An(()=>this.actions$.pipe(On(Yt.login),_a(this.store.select(Xh)),ge(([a,c])=>!c),Fe(([a,c])=>this.apiClient.serviceCall(new Qh({email:a.email,password:a.password})).pipe(P(l=>Yt.loginSuccess({user:l})),ut(l=>[Yt.loginFailure({error:l})]))))),this.loginRedirect$=An(()=>this.actions$.pipe(On(Yt.loginSuccess),je(()=>this.router.navigate([`${qt.MODE_SELECT.ROOT}`]))),{dispatch:!1}),this.logout$=An(()=>this.actions$.pipe(On(Yt.logout),Fe(()=>this.apiClient.serviceCall(new Kh).pipe(P(()=>Yt.logoutSuccess()),ut(a=>[Yt.logoutFailure({error:a})]))))),this.logoutRedirect$=An(()=>this.actions$.pipe(On(Yt.logoutSuccess),je(()=>this.router.navigate([`${qt.AUTH.ROOT}`]))),{dispatch:!1})}};e.\u0275fac=function(n){return new(n||e)(m(Yh),m(Hu),m(ni),m(_i))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var gU={isAuthenticated:!1,user:{},error:null},vee=Bu(gU,Wt(Yt.loginSuccess,(t,{user:e})=>Q(w({},t),{isAuthenticated:!0,user:w({},e),error:null})),Wt(Yt.loginFailure,(t,{error:e})=>Q(w({},t),{error:e})),Wt(Yt.logoutSuccess,()=>({isAuthenticated:!1,user:{},token:null,error:null})),Wt(Yt.logoutFailure,(t,{error:e})=>Q(w({},t),{error:e})));var SS=(()=>{let e=class e{constructor(i){this.store=i,this.isAuthenticated$=this.store.select(Xh),this.user$=this.store.select(IS)}dispatch(i){this.store.dispatch(i)}};e.\u0275fac=function(n){return new(n||e)(m(ni))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var Hc=class{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},jr=class extends Hc{constructor(e,r,i,n,o){super(),this.component=e,this.viewContainerRef=r,this.injector=i,this.componentFactoryResolver=n,this.projectableNodes=o}},Ci=class extends Hc{constructor(e,r,i,n){super(),this.templateRef=e,this.viewContainerRef=r,this.context=i,this.injector=n}get origin(){return this.templateRef.elementRef}attach(e,r=this.context){return this.context=r,super.attach(e)}detach(){return this.context=void 0,super.detach()}},Zb=class extends Hc{constructor(e){super(),this.element=e instanceof N?e.nativeElement:e}},Ys=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof jr)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Ci)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof Zb)return this._attachedPortal=e,this.attachDomPortal(e)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var $c=class extends Ys{constructor(e,r,i,n,o){super(),this.outletElement=e,this._componentFactoryResolver=r,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=s=>{this._document;let a=s.element;a.parentNode;let c=this._document.createComment("dom-portal");a.parentNode.insertBefore(c,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=o}attachComponentPortal(e){let i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),n;return e.viewContainerRef?(n=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>n.destroy())):(n=i.create(e.injector||this._defaultInjector||Se.NULL),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=e,n}attachTemplatePortal(e){let r=e.viewContainerRef,i=r.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return i.rootNodes.forEach(n=>this.outletElement.appendChild(n)),i.detectChanges(),this.setDisposeFn(()=>{let n=r.indexOf(i);n!==-1&&r.remove(n)}),this._attachedPortal=e,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var Fo=(()=>{let e=class e extends Ys{constructor(i,n,o){super(),this._componentFactoryResolver=i,this._viewContainerRef=n,this._isInitialized=!1,this.attached=new B,this.attachDomPortal=s=>{this._document;let a=s.element;a.parentNode;let c=this._document.createComment("dom-portal");s.setAttachedHost(this),a.parentNode.insertBefore(c,a),this._getRootNode().appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=o}get portal(){return this._attachedPortal}set portal(i){this.hasAttached()&&!i&&!this._isInitialized||(this.hasAttached()&&super.detach(),i&&super.attach(i),this._attachedPortal=i||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(i){i.setAttachedHost(this);let n=i.viewContainerRef!=null?i.viewContainerRef:this._viewContainerRef,s=(i.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(i.component),a=n.createComponent(s,n.length,i.injector||n.injector,i.projectableNodes||void 0);return n!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=i,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(i){i.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=i,this._attachedRef=n,this.attached.emit(n),n}_getRootNode(){let i=this._viewContainerRef.element.nativeElement;return i.nodeType===i.ELEMENT_NODE?i:i.parentNode}};e.\u0275fac=function(n){return new(n||e)(h(Ki),h(Ve),h(K))},e.\u0275dir=I({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[ae]});let t=e;return t})();var Vr=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})();var Jh=class{};function ef(t){return t&&typeof t.connect=="function"&&!(t instanceof dr)}var Zs=function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t}(Zs||{}),Gc=new g("_ViewRepeater"),Qs=class{applyChanges(e,r,i,n,o){e.forEachOperation((s,a,c)=>{let l,d;if(s.previousIndex==null){let u=i(s,a,c);l=r.createEmbeddedView(u.templateRef,u.context,u.index),d=Zs.INSERTED}else c==null?(r.remove(a),d=Zs.REMOVED):(l=r.get(a),r.move(l,c),d=Zs.MOVED);o&&o({context:l?.context,operation:d,record:s})})}detach(){}};var Ks=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(e=!1,r,i=!0,n){this._multiple=e,this._emitChanges=i,this.compareWith=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new C,r&&r.length&&(e?r.forEach(o=>this._markSelected(o)):this._markSelected(r[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(i=>this._markSelected(i));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}deselect(...e){this._verifyValueAssignment(e),e.forEach(i=>this._unmarkSelected(i));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}setSelection(...e){this._verifyValueAssignment(e);let r=this.selected,i=new Set(e);e.forEach(o=>this._markSelected(o)),r.filter(o=>!i.has(this._getConcreteValue(o,i))).forEach(o=>this._unmarkSelected(o));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let r=this._hasQueuedChanges();return e&&this._emitChangeEvent(),r}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,r){if(this.compareWith){r=r??this._selection;for(let i of r)if(this.compareWith(e,i))return i;return e}else return e}};var tf=(()=>{let e=class e{constructor(){this._listeners=[]}notify(i,n){for(let o of this._listeners)o(i,n)}listen(i){return this._listeners.push(i),()=>{this._listeners=this._listeners.filter(n=>i!==n)}}ngOnDestroy(){this._listeners=[]}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var bU=20,Xs=(()=>{let e=class e{constructor(i,n,o){this._ngZone=i,this._platform=n,this._scrolled=new C,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(i){this.scrollContainers.has(i)||this.scrollContainers.set(i,i.elementScrolled().subscribe(()=>this._scrolled.next(i)))}deregister(i){let n=this.scrollContainers.get(i);n&&(n.unsubscribe(),this.scrollContainers.delete(i))}scrolled(i=bU){return this._platform.isBrowser?new oe(n=>{this._globalSubscription||this._addGlobalListener();let o=i>0?this._scrolled.pipe(Pl(i)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):V()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((i,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(i,n){let o=this.getAncestorScrollContainers(i);return this.scrolled(n).pipe(ge(s=>!s||o.indexOf(s)>-1))}getAncestorScrollContainers(i){let n=[];return this.scrollContainers.forEach((o,s)=>{this._scrollableContainsElement(s,i)&&n.push(s)}),n}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(i,n){let o=ot(n),s=i.getElementRef().nativeElement;do if(o==s)return!0;while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let i=this._getWindow();return Ko(i.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};e.\u0275fac=function(n){return new(n||e)(m(F),m(Ae),m(K,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var _U=20,Bn=(()=>{let e=class e{constructor(i,n,o){this._platform=i,this._change=new C,this._changeListener=s=>{this._change.next(s)},this._document=o,n.runOutsideAngular(()=>{if(i.isBrowser){let s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let i=this._getWindow();i.removeEventListener("resize",this._changeListener),i.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let i={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),i}getViewportRect(){let i=this.getViewportScrollPosition(),{width:n,height:o}=this.getViewportSize();return{top:i.top,left:i.left,bottom:i.top+o,right:i.left+n,height:o,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let i=this._document,n=this._getWindow(),o=i.documentElement,s=o.getBoundingClientRect(),a=-s.top||i.body.scrollTop||n.scrollY||o.scrollTop||0,c=-s.left||i.body.scrollLeft||n.scrollX||o.scrollLeft||0;return{top:a,left:c}}change(i=_U){return i>0?this._change.pipe(Pl(i)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let i=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:i.innerWidth,height:i.innerHeight}:{width:0,height:0}}};e.\u0275fac=function(n){return new(n||e)(m(Ae),m(F),m(K,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Vn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})(),Wc=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[Pn,Vn,Pn,Vn]});let t=e;return t})();var kS=$E(),Qb=class{constructor(e,r){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=r}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=vt(-this._previousScrollPosition.left),e.style.top=vt(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,r=this._document.body,i=e.style,n=r.style,o=i.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),kS&&(i.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),kS&&(i.scrollBehavior=o,n.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let r=this._document.body,i=this._viewportRuler.getViewportSize();return r.scrollHeight>i.height||r.scrollWidth>i.width}};var Kb=class{constructor(e,r,i,n){this._scrollDispatcher=e,this._ngZone=r,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(ge(r=>!r||!this._overlayRef.overlayElement.contains(r.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let r=this._viewportRuler.getViewportScrollPosition().top;Math.abs(r-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},rf=class{enable(){}disable(){}attach(){}};function Xb(t,e){return e.some(r=>{let i=t.bottomr.bottom,o=t.rightr.right;return i||n||o||s})}function TS(t,e){return e.some(r=>{let i=t.topr.bottom,o=t.leftr.right;return i||n||o||s})}var Jb=class{constructor(e,r,i,n){this._scrollDispatcher=e,this._viewportRuler=r,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let r=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:n}=this._viewportRuler.getViewportSize();Xb(r,[{width:i,height:n,bottom:n,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},yU=(()=>{let e=class e{constructor(i,n,o,s){this._scrollDispatcher=i,this._viewportRuler=n,this._ngZone=o,this.noop=()=>new rf,this.close=a=>new Kb(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new Qb(this._viewportRuler,this._document),this.reposition=a=>new Jb(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=s}};e.\u0275fac=function(n){return new(n||e)(m(Xs),m(Bn),m(F),m(K))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Br=class{constructor(e){if(this.scrollStrategy=new rf,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){let r=Object.keys(e);for(let i of r)e[i]!==void 0&&(this[i]=e[i])}}};var e_=class{constructor(e,r){this.connectionPair=e,this.scrollableViewProperties=r}};var PS=(()=>{let e=class e{constructor(i){this._attachedOverlays=[],this._document=i}ngOnDestroy(){this.detach()}add(i){this.remove(i),this._attachedOverlays.push(i)}remove(i){let n=this._attachedOverlays.indexOf(i);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach()}};e.\u0275fac=function(n){return new(n||e)(m(K))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),wU=(()=>{let e=class e extends PS{constructor(i,n){super(i),this._ngZone=n,this._keydownListener=o=>{let s=this._attachedOverlays;for(let a=s.length-1;a>-1;a--)if(s[a]._keydownEvents.observers.length>0){let c=s[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>c.next(o)):c.next(o);break}}}add(i){super.add(i),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)}};e.\u0275fac=function(n){return new(n||e)(m(K),m(F,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),xU=(()=>{let e=class e extends PS{constructor(i,n,o){super(i),this._platform=n,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=At(s)},this._clickListener=s=>{let a=At(s),c=s.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;let l=this._attachedOverlays.slice();for(let d=l.length-1;d>-1;d--){let u=l[d];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(RS(u.overlayElement,a)||RS(u.overlayElement,c))break;let f=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>f.next(s)):f.next(s)}}}add(i){if(super.add(i),!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 i=this._document.body;i.removeEventListener("pointerdown",this._pointerDownListener,!0),i.removeEventListener("click",this._clickListener,!0),i.removeEventListener("auxclick",this._clickListener,!0),i.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(i.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(i){i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0)}};e.\u0275fac=function(n){return new(n||e)(m(K),m(Ae),m(F,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function RS(t,e){let r=typeof ShadowRoot<"u"&&ShadowRoot,i=e;for(;i;){if(i===t)return!0;i=r&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var LS=(()=>{let e=class e{constructor(i,n){this._platform=n,this._document=i}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let i="cdk-overlay-container";if(this._platform.isBrowser||Sc()){let o=this._document.querySelectorAll(`.${i}[platform="server"], .${i}[platform="test"]`);for(let s=0;sthis._backdropClick.next(f),this._backdropTransitionendHandler=f=>{this._disposeBackdrop(f.target)},this._keydownEvents=new C,this._outsidePointerEvents=new C,this._renders=new C,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy,this._afterRenderRef=ti(()=>Ua(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let r=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),$t(()=>{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 r?.onDestroy=="function"&&r.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),r}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,e&&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(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=w(w({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Q(w({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=vt(this._config.width),e.height=vt(this._config.height),e.minWidth=vt(this._config.minWidth),e.minHeight=vt(this._config.minHeight),e.maxWidth=vt(this._config.maxWidth),e.maxHeight=vt(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="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(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e=this._backdropElement;if(e){if(this._animationsDisabled){this._disposeBackdrop(e);return}e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,r,i){let n=wo(r||[]).filter(o=>!!o);n.length&&(i?e.classList.add(...n):e.classList.remove(...n))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(te(Ze(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()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},AS="cdk-overlay-connected-position-bounding-box",DU=/([A-Za-z%]+)$/,i_=class{get positions(){return this._preferredPositions}constructor(e,r,i,n,o){this._viewportRuler=r,this._document=i,this._platform=n,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 C,this._resizeSubscription=ne.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(AS),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.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 e=this._originRect,r=this._overlayRect,i=this._viewportRect,n=this._containerRect,o=[],s;for(let a of this._preferredPositions){let c=this._getOriginPoint(e,n,a),l=this._getOverlayPoint(c,r,a),d=this._getOverlayFit(l,r,i,a);if(d.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,c);return}if(this._canFitWithFlexibleDimensions(d,l,i)){o.push({position:a,origin:c,overlayRect:r,boundingBoxRect:this._calculateBoundingBoxRect(c,a)});continue}(!s||s.overlayFit.visibleAreac&&(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&&Po(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(AS),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let r=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,r)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,r,i){let n;if(i.originX=="center")n=e.left+e.width/2;else{let s=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;n=i.originX=="start"?s:a}r.left<0&&(n-=r.left);let o;return i.originY=="center"?o=e.top+e.height/2:o=i.originY=="top"?e.top:e.bottom,r.top<0&&(o-=r.top),{x:n,y:o}}_getOverlayPoint(e,r,i){let n;i.overlayX=="center"?n=-r.width/2:i.overlayX==="start"?n=this._isRtl()?-r.width:0:n=this._isRtl()?0:-r.width;let o;return i.overlayY=="center"?o=-r.height/2:o=i.overlayY=="top"?0:-r.height,{x:e.x+n,y:e.y+o}}_getOverlayFit(e,r,i,n){let o=NS(r),{x:s,y:a}=e,c=this._getOffset(n,"x"),l=this._getOffset(n,"y");c&&(s+=c),l&&(a+=l);let d=0-s,u=s+o.width-i.width,f=0-a,p=a+o.height-i.height,v=this._subtractOverflows(o.width,d,u),S=this._subtractOverflows(o.height,f,p),E=v*S;return{visibleArea:E,isCompletelyWithinViewport:o.width*o.height===E,fitsInViewportVertically:S===o.height,fitsInViewportHorizontally:v==o.width}}_canFitWithFlexibleDimensions(e,r,i){if(this._hasFlexibleDimensions){let n=i.bottom-r.y,o=i.right-r.x,s=OS(this._overlayRef.getConfig().minHeight),a=OS(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportVertically||s!=null&&s<=n,l=e.fitsInViewportHorizontally||a!=null&&a<=o;return c&&l}return!1}_pushOverlayOnScreen(e,r,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let n=NS(r),o=this._viewportRect,s=Math.max(e.x+n.width-o.width,0),a=Math.max(e.y+n.height-o.height,0),c=Math.max(o.top-i.top-e.y,0),l=Math.max(o.left-i.left-e.x,0),d=0,u=0;return n.width<=o.width?d=l||-s:d=e.xv&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-v/2)}let c=r.overlayX==="start"&&!n||r.overlayX==="end"&&n,l=r.overlayX==="end"&&!n||r.overlayX==="start"&&n,d,u,f;if(l)f=i.width-e.x+this._viewportMargin*2,d=e.x-this._viewportMargin;else if(c)u=e.x,d=i.right-e.x;else{let p=Math.min(i.right-e.x+i.left,e.x),v=this._lastBoundingBoxSize.width;d=p*2,u=e.x-p,d>v&&!this._isInitialRender&&!this._growAfterOpen&&(u=e.x-v/2)}return{top:s,left:u,bottom:a,right:f,width:d,height:o}}_setBoundingBoxStyles(e,r){let i=this._calculateBoundingBoxRect(e,r);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=vt(i.height),n.top=vt(i.top),n.bottom=vt(i.bottom),n.width=vt(i.width),n.left=vt(i.left),n.right=vt(i.right),r.overlayX==="center"?n.alignItems="center":n.alignItems=r.overlayX==="end"?"flex-end":"flex-start",r.overlayY==="center"?n.justifyContent="center":n.justifyContent=r.overlayY==="bottom"?"flex-end":"flex-start",o&&(n.maxHeight=vt(o)),s&&(n.maxWidth=vt(s))}this._lastBoundingBoxSize=i,Po(this._boundingBox.style,n)}_resetBoundingBoxStyles(){Po(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Po(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,r){let i={},n=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(n){let d=this._viewportRuler.getViewportScrollPosition();Po(i,this._getExactOverlayY(r,e,d)),Po(i,this._getExactOverlayX(r,e,d))}else i.position="static";let a="",c=this._getOffset(r,"x"),l=this._getOffset(r,"y");c&&(a+=`translateX(${c}px) `),l&&(a+=`translateY(${l}px)`),i.transform=a.trim(),s.maxHeight&&(n?i.maxHeight=vt(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(n?i.maxWidth=vt(s.maxWidth):o&&(i.maxWidth="")),Po(this._pane.style,i)}_getExactOverlayY(e,r,i){let n={top:"",bottom:""},o=this._getOverlayPoint(r,this._overlayRect,e);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),e.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;n.bottom=`${s-(o.y+this._overlayRect.height)}px`}else n.top=vt(o.y);return n}_getExactOverlayX(e,r,i){let n={left:"",right:""},o=this._getOverlayPoint(r,this._overlayRect,e);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let s;if(this._isRtl()?s=e.overlayX==="end"?"left":"right":s=e.overlayX==="end"?"right":"left",s==="right"){let a=this._document.documentElement.clientWidth;n.right=`${a-(o.x+this._overlayRect.width)}px`}else n.left=vt(o.x);return n}_getScrollVisibility(){let e=this._getOriginRect(),r=this._pane.getBoundingClientRect(),i=this._scrollables.map(n=>n.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:TS(e,i),isOriginOutsideView:Xb(e,i),isOverlayClipped:TS(r,i),isOverlayOutsideView:Xb(r,i)}}_subtractOverflows(e,...r){return r.reduce((i,n)=>i-Math.max(n,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,r=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+r-this._viewportMargin,width:e-2*this._viewportMargin,height:r-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,r){return r==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&wo(e).forEach(r=>{r!==""&&this._appliedPanelClasses.indexOf(r)===-1&&(this._appliedPanelClasses.push(r),this._pane.classList.add(r))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof N)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let r=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+r,height:i,width:r}}};function Po(t,e){for(let r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}function OS(t){if(typeof t!="number"&&t!=null){let[e,r]=t.split(DU);return!r||r==="px"?parseFloat(e):null}return t||null}function NS(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function CU(t,e){return t===e?!0:t.isOriginClipped===e.isOriginClipped&&t.isOriginOutsideView===e.isOriginOutsideView&&t.isOverlayClipped===e.isOverlayClipped&&t.isOverlayOutsideView===e.isOverlayOutsideView}var FS="cdk-global-overlay-wrapper",n_=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){let r=e.getConfig();this._overlayRef=e,this._width&&!r.width&&e.updateSize({width:this._width}),this._height&&!r.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(FS),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,r=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:o,maxWidth:s,maxHeight:a}=i,c=(n==="100%"||n==="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",p="",v="",S="";c?S="flex-start":d==="center"?(S="center",f?v=u:p=u):f?d==="left"||d==="end"?(S="flex-end",p=u):(d==="right"||d==="start")&&(S="flex-start",v=u):d==="left"||d==="start"?(S="flex-start",p=u):(d==="right"||d==="end")&&(S="flex-end",v=u),e.position=this._cssPosition,e.marginLeft=c?"0":p,e.marginTop=l?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=c?"0":v,r.justifyContent=S,r.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,r=this._overlayRef.hostElement,i=r.style;r.classList.remove(FS),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},EU=(()=>{let e=class e{constructor(i,n,o,s){this._viewportRuler=i,this._document=n,this._platform=o,this._overlayContainer=s}global(){return new n_}flexibleConnectedTo(i){return new i_(i,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};e.\u0275fac=function(n){return new(n||e)(m(Bn),m(K),m(Ae),m(LS))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),IU=0,It=(()=>{let e=class e{constructor(i,n,o,s,a,c,l,d,u,f,p,v){this.scrollStrategies=i,this._overlayContainer=n,this._componentFactoryResolver=o,this._positionBuilder=s,this._keyboardDispatcher=a,this._injector=c,this._ngZone=l,this._document=d,this._directionality=u,this._location=f,this._outsideClickDispatcher=p,this._animationsModuleType=v}create(i){let n=this._createHostElement(),o=this._createPaneElement(n),s=this._createPortalOutlet(o),a=new Br(i);return a.direction=a.direction||this._directionality.value,new t_(s,n,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(_t))}position(){return this._positionBuilder}_createPaneElement(i){let n=this._document.createElement("div");return n.id=`cdk-overlay-${IU++}`,n.classList.add("cdk-overlay-pane"),i.appendChild(n),n}_createHostElement(){let i=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalOutlet(i){return this._appRef||(this._appRef=this._injector.get(mi)),new $c(i,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};e.\u0275fac=function(n){return new(n||e)(m(yU),m(LS),m(Ki),m(EU),m(wU),m(Se),m(F),m(K),m(bt),m(Mr),m(xU),m(rt,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),SU=[{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"}],jS=new g("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=b(It);return()=>t.scrollStrategies.reposition()}}),qc=(()=>{let e=class e{constructor(i){this.elementRef=i}};e.\u0275fac=function(n){return new(n||e)(h(N))},e.\u0275dir=I({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0});let t=e;return t})(),r_=(()=>{let e=class e{get offsetX(){return this._offsetX}set offsetX(i){this._offsetX=i,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(i){this._offsetY=i,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(i){this._disposeOnNavigation=i}constructor(i,n,o,s,a){this._overlay=i,this._dir=a,this._backdropSubscription=ne.EMPTY,this._attachSubscription=ne.EMPTY,this._detachSubscription=ne.EMPTY,this._positionSubscription=ne.EMPTY,this._disposeOnNavigation=!1,this._ngZone=b(F),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 B,this.positionChange=new B,this.attach=new B,this.detach=new B,this.overlayKeydown=new B,this.overlayOutsideClick=new B,this._templatePortal=new Ci(n,o),this._scrollStrategyFactory=s,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(i){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),i.origin&&this.open&&this._position.apply()),i.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=SU);let i=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=i.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=i.detachments().subscribe(()=>this.detach.emit()),i.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),n.keyCode===27&&!this.disableClose&&!Vt(n)&&(n.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let o=this._getOriginElement(),s=At(n);(!o||o!==s&&!o.contains(s))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let i=this._position=this.positionStrategy||this._createPositionStrategy(),n=new Br({direction:this._dir,positionStrategy:i,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(i){let n=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return i.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 i=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(i),i}_getOrigin(){return this.origin instanceof qc?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof qc?this.origin.elementRef.nativeElement:this.origin instanceof N?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(i=>{this.backdropClick.emit(i)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(sp(()=>this.positionChange.observers.length>0)).subscribe(i=>{this._ngZone.run(()=>this.positionChange.emit(i)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)(h(It),h(Re),h(Ve),h(jS),h(bt,8))},e.\u0275dir=I({type:e,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",T],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",T],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",T],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",T],push:[2,"cdkConnectedOverlayPush","push",T],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",T]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[re,Me]});let t=e;return t})();function MU(t){return()=>t.scrollStrategies.reposition()}var kU={provide:jS,deps:[It],useFactory:MU},zr=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[It,kU],imports:[Pn,Vr,Wc,Wc]});let t=e;return t})();var TU=["mat-menu-item",""],RU=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],AU=["mat-icon, [matMenuItemIcon]","*"];function OU(t,e){t&1&&(di(),_(0,"svg",2),k(1,"polygon",3),y())}var NU=["*"];function FU(t,e){if(t&1){let r=Ye();_(0,"div",0),Z("keydown",function(n){be(r);let o=$();return _e(o._handleKeydown(n))})("click",function(){be(r);let n=$();return _e(n.closed.emit("click"))})("@transformMenu.start",function(n){be(r);let o=$();return _e(o._onAnimationStart(n))})("@transformMenu.done",function(n){be(r);let o=$();return _e(o._onAnimationDone(n))}),_(1,"div",1),W(2),y()()}if(t&2){let r=$();kt(r._classList),M("id",r.panelId)("@transformMenu",r._panelAnimationState),q("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby||null)("aria-describedby",r.ariaDescribedby||null)}}var s_=new g("MAT_MENU_PANEL"),Zc=(()=>{let e=class e{constructor(i,n,o,s,a){this._elementRef=i,this._document=n,this._focusMonitor=o,this._parentMenu=s,this._changeDetectorRef=a,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new C,this._focused=new C,this._highlighted=!1,this._triggersSubmenu=!1,s?.addItem?.(this)}focus(i,n){this._focusMonitor&&i?this._focusMonitor.focusVia(this._getHostElement(),i,n):this._getHostElement().focus(n),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(i){this.disabled&&(i.preventDefault(),i.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons");for(let o=0;o enter",Ge("120ms cubic-bezier(0, 0, 0.2, 1)",de({opacity:1,transform:"scale(1)"}))),Le("* => void",Ge("100ms 25ms linear",de({opacity:0})))]),fadeInItems:st("fadeInItems",[ke("showing",de({opacity:1})),Le("void => *",[de({opacity:0}),Ge("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Fte=of.fadeInItems,Pte=of.transformMenu,LU=0,jU=new g("mat-menu-default-options",{providedIn:"root",factory:VU});function VU(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}var Js=(()=>{let e=class e{get xPosition(){return this._xPosition}set xPosition(i){this._xPosition=i,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(i){this._yPosition=i,this.setPositionClasses()}set panelClass(i){let n=this._previousPanelClass,o=w({},this._classList);n&&n.length&&n.split(" ").forEach(s=>{o[s]=!1}),this._previousPanelClass=i,i&&i.length&&(i.split(" ").forEach(s=>{o[s]=!0}),this._elementRef.nativeElement.className=""),this._classList=o}get classList(){return this.panelClass}set classList(i){this.panelClass=i}constructor(i,n,o,s){this._elementRef=i,this._changeDetectorRef=s,this._elevationPrefix="mat-elevation-z",this._baseElevation=null,this._directDescendantItems=new Pt,this._classList={},this._panelAnimationState="void",this._animationDone=new C,this.closed=new B,this.close=this.closed,this.panelId=`mat-menu-panel-${LU++}`,this._injector=b(Se),this.overlayPanelClass=o.overlayPanelClass||"",this._xPosition=o.xPosition,this._yPosition=o.yPosition,this.backdropClass=o.backdropClass,this.overlapTrigger=o.overlapTrigger,this.hasBackdrop=o.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Fn(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Qe(this._directDescendantItems),Oe(i=>Ze(...i.map(n=>n._focused)))).subscribe(i=>this._keyManager.updateActiveItem(i)),this._directDescendantItems.changes.subscribe(i=>{let n=this._keyManager;if(this._panelAnimationState==="enter"&&n.activeItem?._hasFocus()){let o=i.toArray(),s=Math.max(0,Math.min(o.length-1,n.activeItemIndex||0));o[s]&&!o[s].disabled?n.setActiveItem(s):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe(Qe(this._directDescendantItems),Oe(n=>Ze(...n.map(o=>o._hovered))))}addItem(i){}removeItem(i){}_handleKeydown(i){let n=i.keyCode,o=this._keyManager;switch(n){case 27:Vt(i)||(i.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(n===38||n===40)&&o.setFocusOrigin("keyboard"),o.onKeydown(i);return}i.stopPropagation()}focusFirstItem(i="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=$t(()=>{let n=null;if(this._directDescendantItems.length&&(n=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!n||!n.contains(document.activeElement)){let o=this._keyManager;o.setFocusOrigin(i).setFirstItemActive(),!o.activeItem&&n&&n.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(i){if(this._baseElevation===null){let c=(typeof getComputedStyle=="function"?getComputedStyle(this._elementRef.nativeElement):null)?.getPropertyValue("--mat-menu-base-elevation-level")||"8";this._baseElevation=parseInt(c)}let n=Math.min(this._baseElevation+i,24),o=`${this._elevationPrefix}${n}`,s=Object.keys(this._classList).find(a=>a.startsWith(this._elevationPrefix));if(!s||s===this._previousElevation){let a=w({},this._classList);this._previousElevation&&(a[this._previousElevation]=!1),a[o]=!0,this._previousElevation=o,this._classList=a}}setPositionClasses(i=this.xPosition,n=this.yPosition){this._classList=Q(w({},this._classList),{"mat-menu-before":i==="before","mat-menu-after":i==="after","mat-menu-above":n==="above","mat-menu-below":n==="below"}),this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(i){this._animationDone.next(i),this._isAnimating=!1}_onAnimationStart(i){this._isAnimating=!0,i.toState==="enter"&&this._keyManager.activeItemIndex===0&&(i.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Qe(this._allItems)).subscribe(i=>{this._directDescendantItems.reset(i.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}};e.\u0275fac=function(n){return new(n||e)(h(N),h(F),h(jU),h(ue))},e.\u0275cmp=z({type:e,selectors:[["mat-menu"]],contentQueries:function(n,o,s){if(n&1&&(pe(s,PU,5),pe(s,Zc,5),pe(s,Zc,4)),n&2){let a;L(a=j())&&(o.lazyContent=a.first),L(a=j())&&(o._allItems=a),L(a=j())&&(o.items=a)}},viewQuery:function(n,o){if(n&1&&De(Re,5),n&2){let s;L(s=j())&&(o.templateRef=s.first)}},hostVars:3,hostBindings:function(n,o){n&2&&q("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",T],hasBackdrop:[2,"hasBackdrop","hasBackdrop",i=>i==null?null:T(i)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[se([{provide:s_,useExisting:e}]),re,Y],ngContentSelectors:NU,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id"],[1,"mat-mdc-menu-content"]],template:function(n,o){n&1&&(ye(),U(0,FU,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.mat-mdc-menu-panel.ng-animating:has(.mat-mdc-menu-content:empty){display:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color);margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}[dir=rtl] .mat-mdc-menu-item{padding-right:var(--mat-menu-item-leading-spacing);padding-left:var(--mat-menu-item-trailing-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-right:var(--mat-menu-item-with-icon-leading-spacing);padding-left:var(--mat-menu-item-with-icon-trailing-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[of.transformMenu,of.fadeInItems]},changeDetection:0});let t=e;return t})(),BS=new g("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=b(It);return()=>t.scrollStrategies.reposition()}});function BU(t){return()=>t.scrollStrategies.reposition()}var zU={provide:BS,deps:[It],useFactory:BU},VS=jt({passive:!0});var zS=(()=>{let e=class e{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(i){this.menu=i}get menu(){return this._menu}set menu(i){i!==this._menu&&(this._menu=i,this._menuCloseSubscription.unsubscribe(),i&&(this._parentMaterialMenu,this._menuCloseSubscription=i.close.subscribe(n=>{this._destroyMenu(n),(n==="click"||n==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(i,n,o,s,a,c,l,d,u){this._overlay=i,this._element=n,this._viewContainerRef=o,this._menuItemInstance=c,this._dir=l,this._focusMonitor=d,this._ngZone=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=ne.EMPTY,this._hoverSubscription=ne.EMPTY,this._menuCloseSubscription=ne.EMPTY,this._changeDetectorRef=b(ue),this._handleTouchStart=f=>{ko(f)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new B,this.onMenuOpen=this.menuOpened,this.menuClosed=new B,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=a instanceof Js?a:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,VS)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,VS),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){let i=this.menu;if(this._menuOpen||!i)return;let n=this._createOverlay(i),o=n.getConfig(),s=o.positionStrategy;this._setPosition(i,s),o.hasBackdrop=i.hasBackdrop==null?!this.triggersSubmenu():i.hasBackdrop,n.attach(this._getPortal(i)),i.lazyContent&&i.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(i),i instanceof Js&&(i._startAnimation(),i._directDescendantItems.changes.pipe(te(i.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(i,n){this._focusMonitor&&i?this._focusMonitor.focusVia(this._element,i,n):this._element.nativeElement.focus(n)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(i){if(!this._overlayRef||!this.menuOpen)return;let n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&(i==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,n instanceof Js?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(ge(o=>o.toState==="void"),We(1),te(n.lazyContent._attached)).subscribe({next:()=>n.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n?.lazyContent?.detach())}_initMenu(i){i.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,i.direction=this.dir,this._setMenuElevation(i),i.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(i){if(i.setElevation){let n=0,o=i.parentMenu;for(;o;)n++,o=o.parentMenu;i.setElevation(n)}}_setIsMenuOpen(i){i!==this._menuOpen&&(this._menuOpen=i,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(i),this._changeDetectorRef.markForCheck())}_createOverlay(i){if(!this._overlayRef){let n=this._getOverlayConfig(i);this._subscribeToPositions(i,n.positionStrategy),this._overlayRef=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(i){return new Br({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:i.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:i.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(i,n){i.setPositionClasses&&n.positionChanges.subscribe(o=>{let s=o.connectionPair.overlayX==="start"?"after":"before",a=o.connectionPair.overlayY==="top"?"below":"above";this._ngZone?this._ngZone.run(()=>i.setPositionClasses(s,a)):i.setPositionClasses(s,a)})}_setPosition(i,n){let[o,s]=i.xPosition==="before"?["end","start"]:["start","end"],[a,c]=i.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,d]=[a,c],[u,f]=[o,s],p=0;if(this.triggersSubmenu()){if(f=o=i.xPosition==="before"?"start":"end",s=u=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let v=this._parentMaterialMenu.items.first;this._parentInnerPadding=v?v._getHostElement().offsetTop:0}p=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else i.overlapTrigger||(l=a==="top"?"bottom":"top",d=c==="top"?"bottom":"top");n.withPositions([{originX:o,originY:l,overlayX:u,overlayY:a,offsetY:p},{originX:s,originY:l,overlayX:f,overlayY:a,offsetY:p},{originX:o,originY:d,overlayX:u,overlayY:c,offsetY:-p},{originX:s,originY:d,overlayX:f,overlayY:c,offsetY:-p}])}_menuClosingActions(){let i=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:V(),s=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(ge(a=>a!==this._menuItemInstance),ge(()=>this._menuOpen)):V();return Ze(i,o,s,n)}_handleMousedown(i){Mo(i)||(this._openedBy=i.button===0?"mouse":void 0,this.triggersSubmenu()&&i.preventDefault())}_handleKeydown(i){let n=i.keyCode;(n===13||n===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(n===39&&this.dir==="ltr"||n===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(i){this.triggersSubmenu()?(i.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(ge(i=>i===this._menuItemInstance&&!i.disabled),ga(0,ha)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Js&&this.menu._isAnimating?this.menu._animationDone.pipe(We(1),ga(0,ha),te(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(i){return(!this._portal||this._portal.templateRef!==i.templateRef)&&(this._portal=new Ci(i.templateRef,this._viewContainerRef)),this._portal}};e.\u0275fac=function(n){return new(n||e)(h(It),h(N),h(Ve),h(BS),h(s_,8),h(Zc,10),h(bt,8),h(Et),h(F))},e.\u0275dir=I({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,o){n&1&&Z("click",function(a){return o._handleClick(a)})("mousedown",function(a){return o._handleMousedown(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&q("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0});let t=e;return t})(),US=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[zU],imports:[Gt,rn,ee,zr,Vn,ee]});let t=e;return t})();function HU(t,e){if(t&1&&(_(0,"div",12)(1,"div",13),we(2),y(),_(3,"div",14),we(4),y()()),t&2){let r=e.ngIf;x(2),at(r.name),x(2),at(r.role)}}var HS=(()=>{let e=class e{constructor(i){this.authFacadeService=i,this.RoutesList=qt,this.user$=this.authFacadeService.user$}logout(){this.authFacadeService.dispatch(Yt.logout())}};e.\u0275fac=function(n){return new(n||e)(h(SS))},e.\u0275cmp=z({type:e,selectors:[["ms-user-navigation"]],decls:14,vars:6,consts:[["menuTrigger","matMenuTrigger"],["menu","matMenu"],["mat-button","",3,"matMenuTriggerFor"],[1,"user-navigation-content-wrapper","flex","items-center","gap-2"],[1,"content-1","flex","items-center"],["fontSet","ms","fontIcon","icon-User",1,"mat-white"],["class","content-2 right text-left ml-2",4,"ngIf"],[1,"content-3"],["fontSet","ms","fontIcon","icon-CaretDown",1,"mat-white","rotate-icon","text-base"],[1,"ms-mat-menu"],["mat-menu-item","",3,"click"],["fontSet","ms","fontIcon","icon-SignOut"],[1,"content-2","right","text-left","ml-2"],[1,"paragraph-semibold-p3-default-emphasis"],[1,"paragraph-regular-p3-default"]],template:function(n,o){if(n&1){let s=Ye();_(0,"button",2,0)(2,"div",3)(3,"div",4),k(4,"mat-icon",5),y(),U(5,HU,5,2,"div",6),iu(6,"async"),_(7,"div",7),k(8,"mat-icon",8),y()()(),_(9,"mat-menu",9,1)(11,"button",10),Z("click",function(){return be(s),_e(o.logout())}),k(12,"mat-icon",11),we(13," Logout "),y()()}if(n&2){let s=gt(1),a=gt(10);M("matMenuTriggerFor",a),x(5),M("ngIf",nu(6,4,o.user$)),x(3),ei("transform",s.menuOpen?"rotate(180deg)":"rotate(0)")}},dependencies:[kr,Uh,Bi,Js,Zc,zS,Su],styles:[".rotate-icon[_ngcontent-%COMP%]{transition:transform .2s ease-in-out}.content-2[_ngcontent-%COMP%]{color:var(--backgrounds-50)}"]});let t=e;return t})();var $S=(()=>{let e=class e{constructor(){this.search=new Ro}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["ms-header"]],decls:24,vars:1,consts:[[1,"header-wrapper"],[1,"left","flex","justify-center","items-center"],[1,"icon"],["mat-icon-button",""],["fontSet","ms","fontIcon","icon-Nav",1,"mat-white"],[1,"logo","ml-4"],["src","./assets/logo/logo-header.svg","alt",""],[1,"right","flex","justify-center","items-center","gap-1"],[1,"form-field-container","ms-white-form-field"],["subscriptSizing","dynamic","floatLabel","auto"],["matInput","","placeholder","Search",3,"formControl"],["matPrefix","","fontSet","ms","fontIcon","icon-MagnifyingGlass",1,"mat-white"],["fontSet","ms","fontIcon","icon-Question",1,"mat-white"],["fontSet","ms","fontIcon","icon-Bell",1,"mat-white"],[1,"vertical-divider","h-9"],[1,"icon","cursor-pointer"]],template:function(n,o){n&1&&(_(0,"header",0)(1,"div",1)(2,"div",2)(3,"button",3),k(4,"mat-icon",4),y()(),_(5,"div",5),k(6,"img",6),y()(),_(7,"div",7)(8,"div",8)(9,"mat-form-field",9),k(10,"input",10)(11,"mat-icon",11),y()(),_(12,"div")(13,"button",3),k(14,"mat-icon",12),y()(),_(15,"div")(16,"button",3),k(17,"mat-icon",13),y()(),k(18,"div",14),_(19,"div"),k(20,"ms-user-navigation"),y(),_(21,"div",15)(22,"button",3),k(23,"mat-icon",4),y()()()()),n&2&&(x(10),M("formControl",o.search))},dependencies:[QI,Bi,CS,yS,vS,jh,PI,Ub,HS],styles:[".header-wrapper[_ngcontent-%COMP%]{height:56px;padding:0 10px;background:linear-gradient(to right,var(--header-left),var(--header-right));display:flex;justify-content:space-between}"]});let t=e;return t})();var WU=Fm;function qU(t){return!!t[WU]}var YU=Symbol("__destroy"),YS=Symbol("__decoratorApplied");function ZS(t){return typeof t=="string"?Symbol(`__destroy__${t}`):YU}function ZU(t){t.prototype[YS]=!0}function QS(t,e){t[e]||(t[e]=new C)}function KS(t,e){t[e]&&(t[e].next(),t[e].complete(),t[e]=null)}function XS(t){t instanceof ne&&t.unsubscribe()}function QU(t){Array.isArray(t)&&t.forEach(XS)}function JS(t,e){return function(){if(t&&t.call(this),KS(this,ZS()),e.arrayName&&QU(this[e.arrayName]),e.checkProperties)for(let r in this)e.blackList?.includes(r)||XS(this[r])}}function KU(t,e){t.prototype.ngOnDestroy=JS(t.prototype.ngOnDestroy,e)}function XU(t,e){let r=t.\u0275pipe;r.onDestroy=JS(r.onDestroy,e)}function eM(t={}){return e=>{qU(e)?XU(e,t):KU(e,t),ZU(e)}}var GS=7,WS=Symbol("CheckerHasBeenSet");function JU(t,e){t[WS]||eH()||(qS(()=>He(Promise.resolve()).pipe(Fe(()=>{let r;try{r=Ow(t)}catch{r=null}let i=r?.lView;if(i==null)return ct;let n=i[GS]||(i[GS]=[]),o=new C;return n.push(function(){qS(()=>{o.next(),o.complete()})}),o}),Fe(()=>Promise.resolve())).subscribe(()=>{(e.observed??e.observers.length>0)&&console.warn(tH(t))})),t[WS]=!0)}function eH(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"}function qS(t){let e=ht.Zone;return!!e&&typeof e.root?.run=="function"?e.root.run(t):t()}function tH(t){return` - The ${t.constructor.name} still has subscriptions that haven't been unsubscribed. - This may happen if the class extends another class decorated with @UntilDestroy(). - The child class implements its own ngOnDestroy() method but doesn't call super.ngOnDestroy(). - Let's look at the following example: - @UntilDestroy() - @Directive() - export abstract class BaseDirective {} - @Component({ template: '' }) - export class ConcreteComponent extends BaseDirective implements OnDestroy { - constructor() { - super(); - someObservable$.pipe(untilDestroyed(this)).subscribe(); - } - ngOnDestroy(): void { - // Some logic here... - } - } - The BaseDirective.ngOnDestroy() will not be called since Angular will call ngOnDestroy() - on the ConcreteComponent, but not on the BaseDirective. - One of the solutions is to declare an empty ngOnDestroy method on the BaseDirective: - @UntilDestroy() - @Directive() - export abstract class BaseDirective { - ngOnDestroy(): void {} - } - @Component({ template: '' }) - export class ConcreteComponent extends BaseDirective implements OnDestroy { - constructor() { - super(); - someObservable$.pipe(untilDestroyed(this)).subscribe(); - } - ngOnDestroy(): void { - // Some logic here... - super.ngOnDestroy(); - } - } - `}var a_=!1;function iH(t,e,r){let i=t[e];if(a_&&typeof i!="function")throw new Error(`${t.constructor.name} is using untilDestroyed but doesn't implement ${e}`);QS(t,r),t[e]=function(){i.apply(this,arguments),KS(this,r),t[e]=i}}function tM(t,e){return r=>{let i=ZS(e);typeof e=="string"?iH(t,e,i):(a_&&nH(t),QS(t,i));let n=t[i];return a_&&JU(t,n),r.pipe(te(n))}}function nH(t){let e=Object.getPrototypeOf(t);if(!(YS in e))throw new Error("untilDestroyed operator cannot be used inside directives or components or providers that are not decorated with UntilDestroy decorator")}var si=function(t){return t.MODEL_COMPRESSION="MODEL_COMPRESSION",t.MACHINE_UNLEARNING="MACHINE_UNLEARNING",t.MODEL_TRAINING="MODEL_TRAINING",t.AWQ="AWQ",t.MODEL_SPECIALIZATION="MODEL_SPECIALIZATION",t.NONE="NONE",t}(si||{});var Je=Cs({source:"[Core -> Script]",events:{"Call Script":Tt(),"Call Script Success":ir(),"Call Script Failure":Tt(),"Fetch Script Status":ir(),"Update Script Status":Tt(),"Fetch Script Status Success":Tt(),"Fetch Script Status Failure":Tt(),"Stop Script":ir(),"Stop Script Success":ir(),"Stop Script Failure":Tt(),"Get Current or Last Active Script Details":ir(),"Get Current or Last Active Script Details Success":Tt(),"Get Current or Last Active Script Details Failure":Tt()}});var zn=function(t){return t.RUNNING="running",t.NOT_RUNNING="not_running",t.STOPPING="stopping",t.ERROR="error",t}(zn||{});function Yte(t){return t?t===zn.RUNNING||t===zn.STOPPING:!1}var sf=class extends qs{constructor(){super("current-or-last-active-script-details",void 0,void 0,!1)}};var af=class extends qs{constructor(){super("script-status",void 0,void 0,!1)}};var cf=class extends Lr{constructor(e){super("run-script",e,!1)}};var lf=class extends Lr{constructor(){super("stop-script",{},!1)}};var hie=(()=>{let e=class e{constructor(i,n){this.apiClient=i,this.actions$=n,this.callScript$=An(()=>this.actions$.pipe(On(Je.callScript),Oe(({configs:o})=>this.apiClient.serviceCall(new cf(o)).pipe(Oe(()=>[Je.callScriptSuccess(),Je.fetchScriptStatus()]),ut(s=>V(Je.callScriptFailure({error:s}))))))),this.fetchScriptStatus$=An(()=>this.actions$.pipe(On(Je.fetchScriptStatus),Oe(()=>this.apiClient.serviceCall(new af).pipe(P(o=>{let{status:s}=o;return Je.fetchScriptStatusSuccess({status:s})}),ut(o=>V(Je.fetchScriptStatusFailure({error:o}))))))),this.getCurrentOrLastActiveScriptDetails$=An(()=>this.actions$.pipe(On(Je.getCurrentOrLastActiveScriptDetails),Oe(()=>this.apiClient.serviceCall(new sf).pipe(P(o=>Je.getCurrentOrLastActiveScriptDetailsSuccess({scriptDetails:o})),ut(o=>V(Je.fetchScriptStatusFailure({error:o}))))))),this.stopScript$=An(()=>this.actions$.pipe(On(Je.stopScript),Oe(()=>this.apiClient.serviceCall(new lf).pipe(P(()=>Je.stopScriptSuccess()),ut(o=>V(Je.stopScriptFailure({error:o})))))))}};e.\u0275fac=function(n){return new(n||e)(m(Yh),m(Hu))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var rH={scriptStatus:zn.NOT_RUNNING,scriptDetails:{},error:""},vie=Bu(rH,Wt(Je.callScriptSuccess,t=>Q(w({},t),{error:null})),Wt(Je.callScriptFailure,(t,{error:e})=>Q(w({},t),{error:e})),Wt(Je.getCurrentOrLastActiveScriptDetailsSuccess,(t,{scriptDetails:e})=>Q(w({},t),{scriptDetails:e,error:null})),Wt(Je.getCurrentOrLastActiveScriptDetailsFailure,(t,{error:e})=>Q(w({},t),{error:e})),Wt(Je.fetchScriptStatusSuccess,(t,{status:e})=>Q(w({},t),{scriptStatus:e,error:null})),Wt(Je.fetchScriptStatusFailure,(t,{error:e})=>Q(w({},t),{error:e})),Wt(Je.updateScriptStatus,(t,{status:e})=>Q(w({},t),{scriptStatus:e,error:null})),Wt(Je.stopScript,t=>Q(w({},t),{error:null})),Wt(Je.stopScriptSuccess,t=>Q(w({},t),{error:null})),Wt(Je.stopScriptFailure,(t,{error:e})=>Q(w({},t),{error:e})));var iM=Rn(or,t=>t.script.scriptStatus),nM=Rn(or,t=>t.script.scriptDetails);function kie(t){return(t===void 0||Object.prototype.toString.call(t)==="[object Object]")&&Object.keys(t||{}).length===0}function Tie(t){return t==null}function rM(t){return t==null||t===""}function Rie(t){return Array.isArray(t)&&t.length===0}var oM=t=>t.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ");var Ot=function(t){return t.QUANTIZATION="quantization",t.PRUNING="pruning",t.MACHINE_UNLEARNING="machine_unlearning",t.AWQ="awq",t.MULTIFLOW="multiflow",t.TRAIN="train",t}(Ot||{}),Nie=Object.entries(Ot).map(([t,e])=>({key:e,value:oM(t)})),sM=function(t){return t.BPTQ="BPTQ",t.BRECQ="BRECQ",t.MINMAXPTQ="MINMAXPTQ",t}(sM||{}),aM=function(t){return t.MULTIFLOW_PRUNE="MULTIFLOW_PRUNE",t}(aM||{}),cM=function(t){return t.IPG="IPG",t.IPM="IPM",t.IPR="IPR",t.IMP="IMP",t.OMP="OMP",t.IPS="IPS",t.IPSY="IPSY",t.IPMB="IPMB",t}(cM||{}),lM=function(t){return t.MU="MU",t}(lM||{}),dM=function(t){return t.AWQ_QUANTIZATION="AWQ_Q",t}(dM||{}),Qc=function(t){return t.QUANTIZATION_TRAIN="Q_TRAIN",t.PRUNING_TRAIN="P_TRAIN",t.MACHINE_UNLEARNING_TRAIN="MU_TRAIN",t}(Qc||{}),Fie={[Ot.MACHINE_UNLEARNING]:Qc.MACHINE_UNLEARNING_TRAIN,[Ot.PRUNING]:Qc.PRUNING_TRAIN,[Ot.QUANTIZATION]:Qc.QUANTIZATION_TRAIN};function Pie(t){return Object.values(cM).includes(t)?Ot.PRUNING:Object.values(sM).includes(t)?Ot.QUANTIZATION:Object.values(lM).includes(t)?Ot.MACHINE_UNLEARNING:Object.values(dM).includes(t)?Ot.AWQ:Object.values(Qc).includes(t)?Ot.TRAIN:Object.values(aM).includes(t)?Ot.MULTIFLOW:null}var uM=(()=>{let e=class e{constructor(i){this.store=i,this.scriptStatus$=this.store.select(iM),this.scriptDetails$=this.store.select(nM)}dispatch(i){this.store.dispatch(i)}};e.\u0275fac=function(n){return new(n||e)(m(ni))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var hM=(()=>{let e=class e{get currentRunningPage$(){return this._currentRunningPage.asObservable()}constructor(i){this.scriptFacadeService=i,this._currentRunningPage=new Pe(si.NONE)}trackCurrentRunningPage(){this.scriptFacadeService.scriptStatus$.pipe(ge(i=>i===zn.RUNNING||i===zn.STOPPING),je(()=>this.scriptFacadeService.dispatch(Je.getCurrentOrLastActiveScriptDetails())),Oe(()=>this.scriptFacadeService.scriptDetails$.pipe(fr(1),We(1),ge(i=>!rM(i?.algKey)))),P(i=>i.type)).subscribe(i=>{switch(i){case Ot.PRUNING:case Ot.QUANTIZATION:this._currentRunningPage.next(si.MODEL_COMPRESSION);break;case Ot.MACHINE_UNLEARNING:{this._currentRunningPage.next(si.MACHINE_UNLEARNING);break}case Ot.AWQ:{this._currentRunningPage.next(si.AWQ);break}case Ot.TRAIN:{this._currentRunningPage.next(si.MODEL_TRAINING);break}case Ot.MULTIFLOW:{this._currentRunningPage.next(si.MODEL_SPECIALIZATION);break}default:{this._currentRunningPage.next(si.NONE);break}}}),this.scriptFacadeService.scriptStatus$.subscribe(i=>{i!==zn.RUNNING&&i!==zn.STOPPING&&this._currentRunningPage.next(si.NONE)})}};e.\u0275fac=function(n){return new(n||e)(m(uM))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var aH=["determinateSpinner"];function cH(t,e){if(t&1&&(di(),_(0,"svg",11),k(1,"circle",12),y()),t&2){let r=$();q("viewBox",r._viewBox()),x(),ei("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeCircumference()/2,"px")("stroke-width",r._circleStrokeWidth(),"%"),q("r",r._circleRadius())}}var lH=new g("mat-progress-spinner-default-options",{providedIn:"root",factory:dH});function dH(){return{diameter:fM}}var fM=100,uH=10,pM=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(i){this._color=i}constructor(i,n,o){this._elementRef=i,this._defaultColor="primary",this._value=0,this._diameter=fM,this._noopAnimations=n==="NoopAnimations"&&!!o&&!o._forceAnimations,this.mode=i.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",o&&(o.color&&(this.color=this._defaultColor=o.color),o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get value(){return this.mode==="determinate"?this._value:0}set value(i){this._value=Math.max(0,Math.min(100,i||0))}get diameter(){return this._diameter}set diameter(i){this._diameter=i||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(i){this._strokeWidth=i||0}_circleRadius(){return(this.diameter-uH)/2}_viewBox(){let i=this._circleRadius()*2+this.strokeWidth;return`0 0 ${i} ${i}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}};e.\u0275fac=function(n){return new(n||e)(h(N),h(rt,8),h(lH))},e.\u0275cmp=z({type:e,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,o){if(n&1&&De(aH,5),n&2){let s;L(s=j())&&(o._determinateCircle=s.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,o){n&2&&(q("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),kt("mat-"+o.color),ei("width",o.diameter,"px")("height",o.diameter,"px")("--mdc-circular-progress-size",o.diameter+"px")("--mdc-circular-progress-active-indicator-width",o.diameter+"px"),H("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",dt],diameter:[2,"diameter","diameter",dt],strokeWidth:[2,"strokeWidth","strokeWidth",dt]},exportAs:["matProgressSpinner"],standalone:!0,features:[re,Y],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(n,o){if(n&1&&(U(0,cH,2,8,"ng-template",null,0,Er),_(2,"div",2,1),di(),_(4,"svg",3),k(5,"circle",4),y()(),jd(),_(6,"div",5)(7,"div",6)(8,"div",7),tt(9,8),y(),_(10,"div",9),tt(11,8),y(),_(12,"div",10),tt(13,8),y()()()),n&2){let s=gt(1);x(4),q("viewBox",o._viewBox()),x(),ei("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),q("r",o._circleRadius()),x(4),M("ngTemplateOutlet",s),x(2),M("ngTemplateOutlet",s),x(2),M("ngTemplateOutlet",s)}},dependencies:[po],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0});let t=e;return t})();var df=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[Gt,ee]});let t=e;return t})();var fH=["tooltip"],vM=20;var bM=new g("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=b(It);return()=>t.scrollStrategies.reposition({scrollThrottle:vM})}});function pH(t){return()=>t.scrollStrategies.reposition({scrollThrottle:vM})}var mH={provide:bM,deps:[It],useFactory:pH};function gH(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var vH=new g("mat-tooltip-default-options",{providedIn:"root",factory:gH});var mM="tooltip-panel",gM=jt({passive:!0}),bH=8,_H=8,yH=24,wH=200,_M=(()=>{let e=class e{get position(){return this._position}set position(i){i!==this._position&&(this._position=i,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(i){this._positionAtOrigin=yi(i),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(i){this._disabled=yi(i),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(i){this._showDelay=yo(i)}get hideDelay(){return this._hideDelay}set hideDelay(i){this._hideDelay=yo(i),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(i){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=i!=null?String(i).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(i){this._tooltipClass=i,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(i,n,o,s,a,c,l,d,u,f,p,v){this._overlay=i,this._elementRef=n,this._scrollDispatcher=o,this._viewContainerRef=s,this._ngZone=a,this._platform=c,this._ariaDescriber=l,this._focusMonitor=d,this._dir=f,this._defaultOptions=p,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=xH,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new C,this._injector=b(Se),this._scrollStrategy=u,this._document=v,p&&(this._showDelay=p.showDelay,this._hideDelay=p.hideDelay,p.position&&(this.position=p.position),p.positionAtOrigin&&(this.positionAtOrigin=p.positionAtOrigin),p.touchGestures&&(this.touchGestures=p.touchGestures)),f.change.pipe(te(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=bH}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(te(this._destroyed)).subscribe(i=>{i?i==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let i=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([n,o])=>{i.removeEventListener(n,o,gM)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(i,this.message,"tooltip"),this._focusMonitor.stopMonitoring(i)}show(i=this.showDelay,n){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let o=this._createOverlay(n);this._detach(),this._portal=this._portal||new jr(this._tooltipComponent,this._viewContainerRef);let s=this._tooltipInstance=o.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe(te(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.show(i)}hide(i=this.hideDelay){let n=this._tooltipInstance;n&&(n.isVisible()?n.hide(i):(n._cancelPendingAnimations(),this._detach()))}toggle(i){this._isTooltipVisible()?this.hide():this.show(void 0,i)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(i){if(this._overlayRef){let s=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!i)&&s._origin instanceof N)return this._overlayRef;this._detach()}let n=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?i||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n);return o.positionChanges.pipe(te(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${mM}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(te(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(te(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(te(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&s.keyCode===27&&!Vt(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(i){let n=i.getConfig().positionStrategy,o=this._getOrigin(),s=this._getOverlayPosition();n.withPositions([this._addOffset(w(w({},o.main),s.main)),this._addOffset(w(w({},o.fallback),s.fallback))])}_addOffset(i){let n=_H,o=!this._dir||this._dir.value=="ltr";return i.originY==="top"?i.offsetY=-n:i.originY==="bottom"?i.offsetY=n:i.originX==="start"?i.offsetX=o?-n:n:i.originX==="end"&&(i.offsetX=o?n:-n),i}_getOrigin(){let i=!this._dir||this._dir.value=="ltr",n=this.position,o;n=="above"||n=="below"?o={originX:"center",originY:n=="above"?"top":"bottom"}:n=="before"||n=="left"&&i||n=="right"&&!i?o={originX:"start",originY:"center"}:(n=="after"||n=="right"&&i||n=="left"&&!i)&&(o={originX:"end",originY:"center"});let{x:s,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:s,originY:a}}}_getOverlayPosition(){let i=!this._dir||this._dir.value=="ltr",n=this.position,o;n=="above"?o={overlayX:"center",overlayY:"bottom"}:n=="below"?o={overlayX:"center",overlayY:"top"}:n=="before"||n=="left"&&i||n=="right"&&!i?o={overlayX:"end",overlayY:"center"}:(n=="after"||n=="right"&&i||n=="left"&&!i)&&(o={overlayX:"start",overlayY:"center"});let{x:s,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:s,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),$t(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(i){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=i,this._tooltipInstance._markForCheck())}_invertPosition(i,n){return this.position==="above"||this.position==="below"?n==="top"?n="bottom":n==="bottom"&&(n="top"):i==="end"?i="start":i==="start"&&(i="end"),{x:i,y:n}}_updateCurrentPositionClass(i){let{overlayY:n,originX:o,originY:s}=i,a;if(n==="center"?this._dir&&this._dir.value==="rtl"?a=o==="end"?"left":"right":a=o==="start"?"left":"right":a=n==="bottom"&&s==="top"?"above":"below",a!==this._currentPosition){let c=this._overlayRef;if(c){let l=`${this._cssClassPrefix}-${mM}-`;c.removePanelClass(l+this._currentPosition),c.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",i=>{this._setupPointerExitEventsIfNeeded();let n;i.x!==void 0&&i.y!==void 0&&(n=i),this.show(void 0,n)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",i=>{let n=i.targetTouches?.[0],o=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout);let s=500;this._touchstartTimeout=setTimeout(()=>this.show(void 0,o),this._defaultOptions.touchLongPressShowDelay??s)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let i=[];if(this._platformSupportsMouseEvents())i.push(["mouseleave",n=>{let o=n.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",n=>this._wheelListener(n)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let n=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};i.push(["touchend",n],["touchcancel",n])}this._addListeners(i),this._passiveListeners.push(...i)}_addListeners(i){i.forEach(([n,o])=>{this._elementRef.nativeElement.addEventListener(n,o,gM)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(i){if(this._isTooltipVisible()){let n=this._document.elementFromPoint(i.clientX,i.clientY),o=this._elementRef.nativeElement;n!==o&&!o.contains(n)&&this.hide()}}_disableNativeGesturesIfNecessary(){let i=this.touchGestures;if(i!=="off"){let n=this._elementRef.nativeElement,o=n.style;(i==="on"||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(i==="on"||!n.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}};e.\u0275fac=function(n){return new(n||e)(h(It),h(N),h(Xs),h(Ve),h(F),h(Ae),h(wh),h(Et),h(bM),h(bt),h(vH,8),h(K))},e.\u0275dir=I({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,o){n&2&&H("mat-mdc-tooltip-disabled",o.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0});let t=e;return t})(),xH=(()=>{let e=class e{constructor(i,n,o){this._changeDetectorRef=i,this._elementRef=n,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new C,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=o==="NoopAnimations"}show(i){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},i)}hide(i){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},i)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:i}){(!i||!this._triggerElement.contains(i))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let i=this._elementRef.nativeElement.getBoundingClientRect();return i.height>yH&&i.width>=wH}_handleAnimationEnd({animationName:i}){(i===this._showAnimation||i===this._hideAnimation)&&this._finalizeAnimation(i===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(i){i?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(i){let n=this._tooltip.nativeElement,o=this._showAnimation,s=this._hideAnimation;if(n.classList.remove(i?s:o),n.classList.add(i?o:s),this._isVisible!==i&&(this._isVisible=i,this._changeDetectorRef.markForCheck()),i&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(n);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}i&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(i))}};e.\u0275fac=function(n){return new(n||e)(h(ue),h(N),h(rt,8))},e.\u0275cmp=z({type:e,selectors:[["mat-tooltip-component"]],viewQuery:function(n,o){if(n&1&&De(fH,7),n&2){let s;L(s=j())&&(o._tooltip=s.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(n,o){n&1&&Z("mouseleave",function(a){return o._handleMouseLeave(a)}),n&2&&ei("zoom",o.isVisible()?1:null)},standalone:!0,features:[Y],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(n,o){if(n&1){let s=Ye();_(0,"div",1,0),Z("animationend",function(c){return be(s),_e(o._handleAnimationEnd(c))}),_(2,"div",2),we(3),y()()}n&2&&(H("mdc-tooltip--multiline",o._isMultiline),M("ngClass",o.tooltipClass),x(3),at(o.message))},dependencies:[Ds],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color);color:var(--mdc-plain-tooltip-supporting-text-color);border-radius:var(--mdc-plain-tooltip-container-shape);font-family:var(--mdc-plain-tooltip-supporting-text-font);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0});let t=e;return t})();var uf=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[mH],imports:[eI,Gt,zr,ee,ee,Vn]});let t=e;return t})();var yM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["ms-spining-indicator"]],standalone:!0,features:[Y],decls:1,vars:1,consts:[["matTooltip","Task in progress",3,"diameter"]],template:function(n,o){n&1&&k(0,"mat-spinner",0),n&2&&M("diameter",25)},dependencies:[df,pM,uf,_M]});let t=e;return t})();function EH(t,e){if(t&1&&(_(0,"div")(1,"div",6),we(2),y()()),t&2){let r=$();x(2),Lt(" ",r.item.label," ")}}function IH(t,e){t&1&&(_(0,"div"),k(1,"ms-spining-indicator"),y())}function SH(t,e){if(t&1&&(Dr(0),U(1,IH,2,0,"div",4),Cr()),t&2){let r=e.ngIf,i=$();x(),M("ngIf",i.isExpanded&&r===(i.item==null?null:i.item.key))}}var wM=(()=>{let e=class e{constructor(i){this.pageRunningScriptSpiningIndicatorService=i,this.itemStyle="accent",this.isExpanded=!0}};e.\u0275fac=function(n){return new(n||e)(h(hM))},e.\u0275cmp=z({type:e,selectors:[["ms-sidenav-item"]],inputs:{item:"item",itemStyle:"itemStyle",isExpanded:"isExpanded"},decls:8,vars:6,consts:[["routerLinkActive","active-route",1,"sidenav-item",3,"routerLink"],[1,"left-side"],[1,"item-icon"],["fontSet","ms",3,"fontIcon"],[4,"ngIf"],[1,"right-side"],[1,"item-label","paragraph-semibold-p3-small-emphasis"]],template:function(n,o){n&1&&(_(0,"div",0)(1,"div",1)(2,"div",2),k(3,"mat-icon",3),y(),U(4,EH,3,1,"div",4),y(),_(5,"div",5),U(6,SH,2,1,"ng-container",4),iu(7,"async"),y()()),n&2&&(M("routerLink",o.item.route),x(3),M("fontIcon",o.item.icon),x(),M("ngIf",o.isExpanded),x(2),M("ngIf",nu(7,4,o.pageRunningScriptSpiningIndicatorService.currentRunningPage$)))},dependencies:[kr,ah,PE,Bi,yM,Su],styles:["html[_ngcontent-%COMP%]{color:var(--foregrounds-800)}.text-hint[_ngcontent-%COMP%]{color:var(--foregrounds-700)}.heading-primary-title[_ngcontent-%COMP%]{font-family:Montserrat;font-weight:700;font-size:1.5rem;line-height:2.125rem}.heading-section-title[_ngcontent-%COMP%]{font-weight:700;font-size:1.125rem;line-height:1.5em}.paragraph-bold-p4-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.75rem;line-height:1.125em}.paragraph-monospace-p2-large[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:400}.heading-sub-section-title[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:700}.paragraph-regular-p3-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875;line-height:1.25rem}.paragraph-bold-p3-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p2-large-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1rem;line-height:1.375rem}.paragraph-semibold-p1-xlarge-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1.125rem;line-height:1.5rem}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p3-default-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-regular-p4-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.75rem;line-height:1.125rem}.paragraph-semibold-p3-small-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400}.paragraph-semibold-p4-xSmall-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:600}.paragraph-regular-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400;color:var(--foregrounds-750)}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-size:.875rem;line-height:1.25rem;font-weight:400}.paragraph-regular-p2-large[_ngcontent-%COMP%]{font-family:Inter;font-size:1rem;font-weight:400;line-height:1.375rem}.sidenav-item[_ngcontent-%COMP%]{padding:8px;cursor:pointer;display:flex;align-items:center;justify-content:space-between}.sidenav-item[_ngcontent-%COMP%] .left-side[_ngcontent-%COMP%], .sidenav-item[_ngcontent-%COMP%] .item-icon[_ngcontent-%COMP%]{display:flex;align-items:center}.sidenav-item[_ngcontent-%COMP%] .item-label[_ngcontent-%COMP%]{margin-left:10px;white-space:nowrap}.sidenav-item.active-route[_ngcontent-%COMP%] .item-label[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem}[itemStyle=grey][_nghost-%COMP%] .sidenav-item[_ngcontent-%COMP%]{color:var(--foregrounds-750)}[itemStyle=grey][_nghost-%COMP%] .sidenav-item.active-route[_ngcontent-%COMP%]{background-color:var(--foregrounds-150);border-radius:8px}[itemStyle=grey][_nghost-%COMP%] .sidenav-item.active-route[_ngcontent-%COMP%] .item-label[_ngcontent-%COMP%]{color:var(--foregrounds-800)}[itemStyle=accent][_nghost-%COMP%] .sidenav-item[_ngcontent-%COMP%]{color:var(--accent-400)}"]});let t=e;return t})();var kH=[{route:"admin",label:"Admin",icon:"icon-Admin"}],TH=[{route:qt.WIZARD.ROOT,label:"Wizard",icon:"icon-Question"}],RH=[{route:qt.MODEL_COMPRESSION.ROOT,label:"Model Compression",icon:"icon-GearSix",key:si.MODEL_COMPRESSION},{route:qt.MACHINE_UNLEARNING.ROOT,label:"Machine Unlearning",icon:"icon-Systems-Manager",key:si.MACHINE_UNLEARNING},{route:qt.AWQ.ROOT,label:"LLM Quantization",icon:"icon-Lightning",key:si.AWQ},{route:qt.MULTI_MODAL.ROOT,label:"Multi-modal",icon:"icon-Environmental",key:si.MODEL_SPECIALIZATION},{route:qt.MODEL_SPECIALIZATION.ROOT,label:"Model Specialization",icon:"icon-MapTrifold"},{route:qt.ALGORITHM_COMPARISON.ROOT,label:"Algorithm Comparison",icon:"icon-Rocket"}],xM={guided:TH,expert:RH,common:kH};function AH(t,e){if(t&1&&(_(0,"div",15)(1,"div",16),we(2),y(),_(3,"div",17),we(4),k(5,"mat-icon",18),y()()),t&2){let r=$();x(2),Lt(" ",r.currentMode===r.Modes.GUIDED?"Guided mode":"Expert mode"," "),x(2),Lt(" ",r.currentMode===r.Modes.GUIDED?"Switch to expert mode":"Switch to guided mode"," ")}}function OH(t,e){if(t&1&&(_(0,"div",19),k(1,"ms-sidenav-item",20),y()),t&2){let r=e.$implicit,i=$(2);x(),M("item",r)("isExpanded",i.isExpanded)}}function NH(t,e){if(t&1&&(Dr(0),U(1,OH,2,2,"div",10),Cr()),t&2){let r=$();x(),M("ngForOf",r.SidenavConstants.guided)("ngForTrackBy",r.trackByRoute)}}function FH(t,e){if(t&1&&(_(0,"div",19),k(1,"ms-sidenav-item",20),y()),t&2){let r=e.$implicit,i=$(2);x(),M("item",r)("isExpanded",i.isExpanded)}}function PH(t,e){if(t&1&&U(0,FH,2,2,"div",10),t&2){let r=$();M("ngForOf",r.SidenavConstants.expert)("ngForTrackBy",r.trackByRoute)}}function LH(t,e){if(t&1&&(_(0,"div",19),k(1,"ms-sidenav-item",21),y()),t&2){let r=e.$implicit,i=$();x(),M("item",r)("isExpanded",i.isExpanded)}}function jH(t,e){t&1&&(_(0,"span",22),we(1,"Collapse"),y())}var ar,hf=(ar=class{constructor(e,r){this.router=e,this.configFacadeService=r,this.SidenavConstants=xM,this.Modes=Ls,this.isExpanded=!0}ngOnInit(){this.listenToCurrentModeChanges()}listenToCurrentModeChanges(){this.configFacadeService.currentMode$.pipe(tM(this)).subscribe(e=>{this.currentMode=e})}toggleMode(){this.currentMode===Ls.GUIDED?(this.router.navigate([`/${qt.MODEL_COMPRESSION.ROOT}`]),this.configFacadeService.dispatch(cb.setCurrentMode({mode:Ls.EXPERT}))):(this.router.navigate([`/${qt.WIZARD.ROOT}`]),this.configFacadeService.dispatch(cb.setCurrentMode({mode:Ls.GUIDED})))}toggleSidebar(){this.isExpanded=!this.isExpanded}trackByRoute(e,r){return r.route}},ar.\u0275fac=function(r){return new(r||ar)(h(_i),h(UE))},ar.\u0275cmp=z({type:ar,selectors:[["ms-sidenav"]],decls:21,vars:8,consts:[["expertModeBlock",""],[1,"sidenav-wrapper"],[1,"top-section-items"],[1,"switch",3,"click"],[1,"left"],["fontSet","ms","fontIcon","icon-User"],["class","right",4,"ngIf"],[1,"mt-3"],[4,"ngIf","ngIfElse"],[1,"mt-5"],["class","sidenav-items-wrapper",4,"ngFor","ngForOf","ngForTrackBy"],[1,"mt-2","mb-4"],[1,"bottom-section-items"],[1,"sidebar-toggle",3,"click"],["class","paragraph-semibold-p3-small-emphasis",4,"ngIf"],[1,"right"],[1,"paragraph-semibold-p3-default-emphasis","text-container"],[1,"paragraph-regular-p4-small","switch-button","text-container"],["fontSet","ms","fontIcon","icon-ArrowRight",1,"switch-icon"],[1,"sidenav-items-wrapper"],["itemStyle","grey",3,"item","isExpanded"],["itemStyle","accent",3,"item","isExpanded"],[1,"paragraph-semibold-p3-small-emphasis"]],template:function(r,i){if(r&1){let n=Ye();_(0,"div",1)(1,"div",2)(2,"div",3),Z("click",function(){return be(n),_e(i.toggleMode())}),_(3,"div",4),k(4,"mat-icon",5),y(),U(5,AH,6,2,"div",6),y(),_(6,"div",7),k(7,"mat-divider"),y(),U(8,NH,2,2,"ng-container",8)(9,PH,1,2,"ng-template",null,0,Er),_(11,"div",9),k(12,"mat-divider"),y(),U(13,LH,2,2,"div",10),y(),_(14,"div",11),k(15,"mat-divider"),y(),_(16,"div",12)(17,"div",13),Z("click",function(){return be(n),_e(i.toggleSidebar())}),_(18,"mat-icon"),we(19),y(),U(20,jH,2,0,"span",14),y()()()}if(r&2){let n=gt(10);M("@expandCollapse",i.isExpanded?"expanded":"collapsed"),x(5),M("ngIf",i.isExpanded),x(3),M("ngIf",i.currentMode===i.Modes.GUIDED)("ngIfElse",n),x(5),M("ngForOf",i.SidenavConstants.common)("ngForTrackBy",i.trackByRoute),x(6),at(i.isExpanded?"chevron_left":"chevron_right"),x(),M("ngIf",i.isExpanded)}},dependencies:[FD,kr,kh,Bi,wM],styles:["[_nghost-%COMP%]{height:100%}.sidenav-wrapper[_ngcontent-%COMP%]{padding:0 12px;display:flex;flex-direction:column;justify-content:space-between}.sidenav-wrapper[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%]{display:flex;cursor:pointer;height:38px}.sidenav-wrapper[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;align-items:center;color:var(--foregrounds-600);margin-left:8px}.sidenav-wrapper[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{margin-left:10px}.sidenav-wrapper[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .switch-button[_ngcontent-%COMP%]{display:flex;align-items:center;color:var(--foregrounds-750)}.sidenav-wrapper[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .switch-button[_ngcontent-%COMP%] .switch-icon[_ngcontent-%COMP%]{margin-left:5px;font-size:16px;width:16px;height:16px}.sidenav-wrapper[_ngcontent-%COMP%] .sidenav-items-wrapper[_ngcontent-%COMP%]{margin-top:10px}.sidenav-wrapper[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center;padding:6px;cursor:pointer;transition:background-color .3s ease;color:var(--foregrounds-750)}.sidenav-wrapper[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]:hover{color:var(--foregrounds-800);background-color:var(--foregrounds-150);border-radius:8px}.sidenav-wrapper[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px;color:var(--foregrounds-750)}.text-container[_ngcontent-%COMP%]{width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],data:{animation:[st("expandCollapse",[ke("expanded",de({width:"230px"})),ke("collapsed",de({width:"40px"})),Le("expanded <=> collapsed",Ge("300ms ease-in-out"))])]}}),ar);hf=py([eM()],hf);var Pne=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["ms-main-layout"]],decls:9,vars:0,consts:[[1,"container"],[1,"body"],[1,"content"],[1,"router-outlet"],[1,"footer"],["styleMode","mainLayout"]],template:function(n,o){n&1&&(_(0,"div",0),k(1,"ms-header"),_(2,"div",1),k(3,"ms-sidenav"),_(4,"div",2)(5,"div",3),k(6,"router-outlet"),y(),_(7,"div",4),k(8,"ms-footer",5),y()()()())},dependencies:[tb,gI,$S,hf],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-height:100vh;overflow-x:hidden;max-width:100vw}.body[_ngcontent-%COMP%]{flex:1;display:flex;margin-top:20px}.content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;margin:0 10px;overflow-x:hidden}.router-outlet[_ngcontent-%COMP%]{flex:1;padding:0 2px}ms-footer[_ngcontent-%COMP%]{height:60px}ms-header[_ngcontent-%COMP%], ms-sidenav[_ngcontent-%COMP%]{overflow-x:hidden}"]});let t=e;return t})();var c_=function(t){return t.SUCCESS="success",t.ERROR="error",t.INFO="info",t.WARNING="warning",t}(c_||{});function BH(t,e){if(t&1){let r=Ye();_(0,"div",1)(1,"button",2),Z("click",function(){be(r);let n=$();return _e(n.action())}),we(2),y()()}if(t&2){let r=$();x(2),Lt(" ",r.data.action," ")}}var zH=["label"];function UH(t,e){}var HH=Math.pow(2,31)-1,Lo=class{constructor(e,r){this._overlayRef=r,this._afterDismissed=new C,this._afterOpened=new C,this._onAction=new C,this._dismissedByAction=!1,this.containerInstance=e,e._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(e){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(e,HH))}_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}},ff=new g("MatSnackBarData"),ea=class{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}},$H=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0});let t=e;return t})(),GH=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0});let t=e;return t})(),WH=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0});let t=e;return t})(),DM=(()=>{let e=class e{constructor(i,n){this.snackBarRef=i,this.data=n}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}};e.\u0275fac=function(n){return new(n||e)(h(Lo),h(ff))},e.\u0275cmp=z({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[Y],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(n,o){n&1&&(_(0,"div",0),we(1),y(),U(2,BH,3,1,"div",1)),n&2&&(x(),Lt(" ",o.data.message,` -`),x(),le(o.hasAction?2:-1))},dependencies:[Uh,$H,GH,WH],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0});let t=e;return t})(),qH={snackBarState:st("state",[ke("void, hidden",de({transform:"scale(0.8)",opacity:0})),ke("visible",de({transform:"scale(1)",opacity:1})),Le("* => visible",Ge("150ms cubic-bezier(0, 0, 0.2, 1)")),Le("* => void, * => hidden",Ge("75ms cubic-bezier(0.4, 0.0, 1, 1)",de({opacity:0})))])},YH=0,ZH=(()=>{let e=class e extends Ys{constructor(i,n,o,s,a){super(),this._ngZone=i,this._elementRef=n,this._changeDetectorRef=o,this._platform=s,this.snackBarConfig=a,this._document=b(K),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new C,this._onExit=new C,this._onEnter=new C,this._animationState="void",this._liveElementId=`mat-snack-bar-container-live-${YH++}`,this.attachDomPortal=c=>{this._assertNotAttached();let l=this._portalOutlet.attachDomPortal(c);return this._afterPortalAttached(),l},a.politeness==="assertive"&&!a.announcementMessage?this._live="assertive":a.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(i){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(i);return this._afterPortalAttached(),n}attachTemplatePortal(i){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(i);return this._afterPortalAttached(),n}onAnimationEnd(i){let{fromState:n,toState:o}=i;if((o==="void"&&n!=="void"||o==="hidden")&&this._completeExit(),o==="visible"){let s=this._onEnter;this._ngZone.run(()=>{s.next(),s.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 i=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(a=>i.classList.add(a)):i.classList.add(n)),this._exposeToModals();let o=this._label.nativeElement,s="mdc-snackbar__label";o.classList.toggle(s,!o.querySelector(`.${s}`))}_exposeToModals(){let i=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let n=i.getAttribute("aria-owns");if(n){let o=n.replace(this._liveElementId,"").trim();o.length>0?i.setAttribute("aria-owns",o):i.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{let i=this._elementRef.nativeElement.querySelector("[aria-hidden]"),n=this._elementRef.nativeElement.querySelector("[aria-live]");if(i&&n){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&i.contains(document.activeElement)&&(o=document.activeElement),i.removeAttribute("aria-hidden"),n.appendChild(i),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}};e.\u0275fac=function(n){return new(n||e)(h(F),h(N),h(ue),h(Ae),h(ea))},e.\u0275cmp=z({type:e,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,o){if(n&1&&(De(Fo,7),De(zH,7)),n&2){let s;L(s=j())&&(o._portalOutlet=s.first),L(s=j())&&(o._label=s.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(n,o){n&1&&Dg("@state.done",function(a){return o.onAnimationEnd(a)}),n&2&&xg("@state",o._animationState)},standalone:!0,features:[ae,Y],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,o){n&1&&(_(0,"div",1)(1,"div",2,0)(3,"div",3),U(4,UH,0,0,"ng-template",4),y(),k(5,"div"),y()()),n&2&&(x(5),q("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[Fo],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);border-radius:var(--mdc-snackbar-container-shape);background-color:var(--mdc-snackbar-container-color)}.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);font-size:var(--mdc-snackbar-supporting-text-size);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-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){color:var(--mat-snack-bar-button-color);--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}"],encapsulation:2,data:{animation:[qH.snackBarState]}});let t=e;return t})();function QH(){return new ea}var KH=new g("mat-snack-bar-default-options",{providedIn:"root",factory:QH}),XH=(()=>{let e=class e{get _openedSnackBarRef(){let i=this._parentSnackBar;return i?i._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(i){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=i:this._snackBarRefAtThisLevel=i}constructor(i,n,o,s,a,c){this._overlay=i,this._live=n,this._injector=o,this._breakpointObserver=s,this._parentSnackBar=a,this._defaultConfig=c,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=DM,this.snackBarContainerComponent=ZH,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(i,n){return this._attach(i,n)}openFromTemplate(i,n){return this._attach(i,n)}open(i,n="",o){let s=w(w({},this._defaultConfig),o);return s.data={message:i,action:n},s.announcementMessage===i&&(s.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,s)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(i,n){let o=n&&n.viewContainerRef&&n.viewContainerRef.injector,s=Se.create({parent:o||this._injector,providers:[{provide:ea,useValue:n}]}),a=new jr(this.snackBarContainerComponent,n.viewContainerRef,s),c=i.attach(a);return c.instance.snackBarConfig=n,c.instance}_attach(i,n){let o=w(w(w({},new ea),this._defaultConfig),n),s=this._createOverlay(o),a=this._attachSnackBarContainer(s,o),c=new Lo(a,s);if(i instanceof Re){let l=new Ci(i,null,{$implicit:o.data,snackBarRef:c});c.instance=a.attachTemplatePortal(l)}else{let l=this._createInjector(o,c),d=new jr(i,void 0,l),u=a.attachComponentPortal(d);c.instance=u.instance}return this._breakpointObserver.observe(qE.HandsetPortrait).pipe(te(s.detachments())).subscribe(l=>{s.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(c,o),this._openedSnackBarRef=c,this._openedSnackBarRef}_animateSnackBar(i,n){i.afterDismissed().subscribe(()=>{this._openedSnackBarRef==i&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{i.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):i.containerInstance.enter(),n.duration&&n.duration>0&&i.afterOpened().subscribe(()=>i._dismissAfter(n.duration))}_createOverlay(i){let n=new Br;n.direction=i.direction;let o=this._overlay.position().global(),s=i.direction==="rtl",a=i.horizontalPosition==="left"||i.horizontalPosition==="start"&&!s||i.horizontalPosition==="end"&&s,c=!a&&i.horizontalPosition!=="center";return a?o.left("0"):c?o.right("0"):o.centerHorizontally(),i.verticalPosition==="top"?o.top("0"):o.bottom("0"),n.positionStrategy=o,this._overlay.create(n)}_createInjector(i,n){let o=i&&i.viewContainerRef&&i.viewContainerRef.injector;return Se.create({parent:o||this._injector,providers:[{provide:Lo,useValue:n},{provide:ff,useValue:i.data}]})}};e.\u0275fac=function(n){return new(n||e)(m(It),m(xh),m(Se),m(fh),m(e,12),m(KH))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var CM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[XH],imports:[zr,Vr,Hh,ee,DM,ee]});let t=e;return t})();function e$(t,e){t&1&&k(0,"mat-icon",7)}function t$(t,e){t&1&&k(0,"mat-icon",8)}function i$(t,e){t&1&&(_(0,"mat-icon",9),we(1,"error_outline"),y())}function n$(t,e){t&1&&(_(0,"mat-icon",10),we(1,"warning"),y())}var cre=(()=>{let e=class e{constructor(i,n){this.bannerRef=i,this.data=n,this.NotificationTypes=c_}};e.\u0275fac=function(n){return new(n||e)(h(Lo),h(ff))},e.\u0275cmp=z({type:e,selectors:[["ms-banner"]],decls:13,vars:6,consts:[[1,"banner"],[1,"banner-left-container"],[1,"banner-content",3,"ngSwitch"],[3,"ngSwitchCase"],[1,"banner-middle-container"],[1,"banner-right-container"],[1,"mat-gray",3,"click"],["fontSet","ms","fontIcon","icon-CheckCircle",1,"mat-success"],["fontSet","ms","fontIcon","icon-Info",1,"mat-primary"],[1,"mat-error"],[1,"mat-warn"]],template:function(n,o){n&1&&(_(0,"div",0)(1,"div",1)(2,"div",2),U(3,e$,1,0,"ng-template",3)(4,t$,1,0,"ng-template",3)(5,i$,2,0,"ng-template",3)(6,n$,2,0,"ng-template",3),y()(),_(7,"div",4)(8,"div"),we(9),y()(),_(10,"div",5)(11,"mat-icon",6),Z("click",function(){return o.bannerRef.dismiss()}),we(12,"clear"),y()()()),n&2&&(x(2),M("ngSwitch",o.data.notificationType),x(),M("ngSwitchCase",o.NotificationTypes.SUCCESS),x(),M("ngSwitchCase",o.NotificationTypes.INFO),x(),M("ngSwitchCase",o.NotificationTypes.ERROR),x(),M("ngSwitchCase",o.NotificationTypes.WARNING),x(3),at(o.data.message))},dependencies:[Iu,PD,Bi],styles:[".banner[_ngcontent-%COMP%]{display:flex;width:100%}.banner[_ngcontent-%COMP%] .banner-left-container[_ngcontent-%COMP%]{flex:0 1 5%}.banner[_ngcontent-%COMP%] .banner-middle-container[_ngcontent-%COMP%]{flex:0 1 90%;margin:2px 10px}.banner[_ngcontent-%COMP%] .banner-right-container[_ngcontent-%COMP%]{flex:0 1 5%}.banner[_ngcontent-%COMP%] .banner-right-container[_ngcontent-%COMP%]:hover{cursor:pointer}"]});let t=e;return t})();var r$=["button"],o$=["*"];function s$(t,e){if(t&1&&k(0,"mat-pseudo-checkbox",3),t&2){let r=$();M("disabled",r.disabled)}}function a$(t,e){if(t&1&&k(0,"mat-pseudo-checkbox",3),t&2){let r=$();M("disabled",r.disabled)}}var EM=new g("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:c$});function c$(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1}}var IM=new g("MatButtonToggleGroup"),l$={provide:jn,useExisting:lt(()=>d$),multi:!0},SM=0,pf=class{constructor(e,r){this.source=e,this.value=r}},d$=(()=>{let e=class e{get name(){return this._name}set name(i){this._name=i,this._markButtonsForCheck()}get value(){let i=this._selectionModel?this._selectionModel.selected:[];return this.multiple?i.map(n=>n.value):i[0]?i[0].value:void 0}set value(i){this._setSelectionByValue(i),this.valueChange.emit(this.value)}get selected(){let i=this._selectionModel?this._selectionModel.selected:[];return this.multiple?i:i[0]||null}get multiple(){return this._multiple}set multiple(i){this._multiple=i,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(i){this._disabled=i,this._markButtonsForCheck()}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(i){this._hideSingleSelectionIndicator=i,this._markButtonsForCheck()}get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(i){this._hideMultipleSelectionIndicator=i,this._markButtonsForCheck()}constructor(i,n,o){this._changeDetector=i,this._dir=o,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name=`mat-button-toggle-group-${SM++}`,this.valueChange=new B,this.change=new B,this.appearance=n&&n.appearance?n.appearance:"standard",this.hideSingleSelectionIndicator=n?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=n?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new Ks(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(i=>i.checked)),this.multiple||this._initializeTabIndex()}writeValue(i){this.value=i,this._changeDetector.markForCheck()}registerOnChange(i){this._controlValueAccessorChangeFn=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this.disabled=i}_keydown(i){if(this.multiple||this.disabled)return;let o=i.target.id,s=this._buttonToggles.toArray().findIndex(c=>c.buttonId===o),a=null;switch(i.keyCode){case 32:case 13:a=this._buttonToggles.get(s)||null;break;case 38:a=this._getNextButton(s,-1);break;case 37:a=this._getNextButton(s,this.dir==="ltr"?-1:1);break;case 40:a=this._getNextButton(s,1);break;case 39:a=this._getNextButton(s,this.dir==="ltr"?1:-1);break;default:return}a&&(i.preventDefault(),a._onButtonClick(),a.focus())}_emitChangeEvent(i){let n=new pf(i,this.value);this._rawValue=n.value,this._controlValueAccessorChangeFn(n.value),this.change.emit(n)}_syncButtonToggle(i,n,o=!1,s=!1){!this.multiple&&this.selected&&!i.checked&&(this.selected.checked=!1),this._selectionModel?n?this._selectionModel.select(i):this._selectionModel.deselect(i):s=!0,s?Promise.resolve().then(()=>this._updateModelValue(i,o)):this._updateModelValue(i,o)}_isSelected(i){return this._selectionModel&&this._selectionModel.isSelected(i)}_isPrechecked(i){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(n=>i.value!=null&&n===i.value):i.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(i=>{i.tabIndex=-1}),this.selected)this.selected.tabIndex=0;else for(let i=0;ithis._selectValue(n))):(this._clearSelection(),this._selectValue(i)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(i=>{i.checked=!1,this.multiple||(i.tabIndex=-1)})}_selectValue(i){let n=this._buttonToggles.find(o=>o.value!=null&&o.value===i);n&&(n.checked=!0,this._selectionModel.select(n),this.multiple||(n.tabIndex=0))}_updateModelValue(i,n){n&&this._emitChangeEvent(i),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(i=>i._markForCheck())}};e.\u0275fac=function(n){return new(n||e)(h(ue),h(EM,8),h(bt,8))},e.\u0275dir=I({type:e,selectors:[["mat-button-toggle-group"]],contentQueries:function(n,o,s){if(n&1&&pe(s,MM,5),n&2){let a;L(a=j())&&(o._buttonToggles=a)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(n,o){n&1&&Z("keydown",function(a){return o._keydown(a)}),n&2&&(q("role",o.multiple?"group":"radiogroup")("aria-disabled",o.disabled),H("mat-button-toggle-vertical",o.vertical)("mat-button-toggle-group-appearance-standard",o.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",T],value:"value",multiple:[2,"multiple","multiple",T],disabled:[2,"disabled","disabled",T],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",T],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",T]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],standalone:!0,features:[se([l$,{provide:IM,useExisting:e}]),re]});let t=e;return t})(),MM=(()=>{let e=class e{get buttonId(){return`${this.id}-button`}get tabIndex(){return this._tabIndex}set tabIndex(i){this._tabIndex=i,this._markForCheck()}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(i){this._appearance=i}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(i){i!==this._checked&&(this._checked=i,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(i){this._disabled=i}constructor(i,n,o,s,a,c){this._changeDetectorRef=n,this._elementRef=o,this._focusMonitor=s,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new B;let l=Number(a);this.tabIndex=l||l===0?l:null,this.buttonToggleGroup=i,this.appearance=c&&c.appearance?c.appearance:"standard"}ngOnInit(){let i=this.buttonToggleGroup;this.id=this.id||`mat-button-toggle-${SM++}`,i&&(i._isPrechecked(this)?this.checked=!0:i._isSelected(this)!==this._checked&&i._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let i=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),i&&i._isSelected(this)&&i._syncButtonToggle(this,!1,!1,!0)}focus(i){this._buttonElement.nativeElement.focus(i)}_onButtonClick(){let i=this.isSingleSelector()?!0:!this._checked;if(i!==this._checked&&(this._checked=i,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let n=this.buttonToggleGroup._buttonToggles.find(o=>o.tabIndex===0);n&&(n.tabIndex=-1),this.tabIndex=0}this.change.emit(new pf(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}};e.\u0275fac=function(n){return new(n||e)(h(IM,8),h(ue),h(N),h(Et),pt("tabindex"),h(EM,8))},e.\u0275cmp=z({type:e,selectors:[["mat-button-toggle"]],viewQuery:function(n,o){if(n&1&&De(r$,5),n&2){let s;L(s=j())&&(o._buttonElement=s.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(n,o){n&1&&Z("focus",function(){return o.focus()}),n&2&&(q("aria-label",null)("aria-labelledby",null)("id",o.id)("name",null),H("mat-button-toggle-standalone",!o.buttonToggleGroup)("mat-button-toggle-checked",o.checked)("mat-button-toggle-disabled",o.disabled)("mat-button-toggle-appearance-standard",o.appearance==="standard"))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",T],appearance:"appearance",checked:[2,"checked","checked",T],disabled:[2,"disabled","disabled",T]},outputs:{change:"change"},exportAs:["matButtonToggle"],standalone:!0,features:[re,Y],ngContentSelectors:o$,decls:8,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-label-content"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){if(n&1){let s=Ye();ye(),_(0,"button",1,0),Z("click",function(){return be(s),_e(o._onButtonClick())}),_(2,"span",2),U(3,s$,1,1,"mat-pseudo-checkbox",3)(4,a$,1,1,"mat-pseudo-checkbox",3),W(5),y()(),k(6,"span",4)(7,"span",5)}if(n&2){let s=gt(1);M("id",o.buttonId)("disabled",o.disabled||null),q("role",o.isSingleSelector()?"radio":"button")("tabindex",o.disabled?-1:o.tabIndex)("aria-pressed",o.isSingleSelector()?null:o.checked)("aria-checked",o.isSingleSelector()?o.checked:null)("name",o._getButtonName())("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),x(3),le(o.buttonToggleGroup&&o.checked&&!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator?3:-1),x(),le(o.buttonToggleGroup&&o.checked&&o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator?4:-1),x(3),M("matRippleTrigger",s)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[xi,Ib],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0);border-radius:var(--mat-legacy-button-toggle-shape)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-standard-button-toggle-shape);border:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var( --mat-standard-button-toggle-selected-state-text-color )}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-legacy-button-toggle-text-color);font-family:var(--mat-legacy-button-toggle-label-text-font);font-size:var(--mat-legacy-button-toggle-label-text-size);line-height:var(--mat-legacy-button-toggle-label-text-line-height);font-weight:var(--mat-legacy-button-toggle-label-text-weight);letter-spacing:var(--mat-legacy-button-toggle-label-text-tracking);--mat-minimal-pseudo-checkbox-selected-checkmark-color: var( --mat-legacy-button-toggle-selected-state-text-color )}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-legacy-button-toggle-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle .mat-pseudo-checkbox{margin-right:12px}[dir=rtl] .mat-button-toggle .mat-pseudo-checkbox{margin-right:0;margin-left:12px}.mat-button-toggle-checked{color:var(--mat-legacy-button-toggle-selected-state-text-color);background-color:var(--mat-legacy-button-toggle-selected-state-background-color)}.mat-button-toggle-disabled{color:var(--mat-legacy-button-toggle-disabled-state-text-color);background-color:var(--mat-legacy-button-toggle-disabled-state-background-color);--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var( --mat-legacy-button-toggle-disabled-state-text-color )}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-legacy-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard{color:var(--mat-standard-button-toggle-text-color);background-color:var(--mat-standard-button-toggle-background-color);font-family:var(--mat-standard-button-toggle-label-text-font);font-size:var(--mat-standard-button-toggle-label-text-size);line-height:var(--mat-standard-button-toggle-label-text-line-height);font-weight:var(--mat-standard-button-toggle-label-text-weight);letter-spacing:var(--mat-standard-button-toggle-label-text-tracking)}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-standard-button-toggle-divider-color)}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-selected-state-text-color);background-color:var(--mat-standard-button-toggle-selected-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-standard-button-toggle-disabled-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var( --mat-standard-button-toggle-disabled-selected-state-text-color )}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-disabled-selected-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-standard-button-toggle-state-layer-color)}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-hover-state-layer-opacity)}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-focus-state-layer-opacity)}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-legacy-button-toggle-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-standard-button-toggle-height)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-legacy-button-toggle-state-layer-color)}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius:var(--mat-standard-button-toggle-shape)}.mat-button-toggle-group-appearance-standard .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-standard-button-toggle-shape);border-bottom-right-radius:var(--mat-standard-button-toggle-shape)}.mat-button-toggle-group-appearance-standard .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-standard-button-toggle-shape);border-bottom-left-radius:var(--mat-standard-button-toggle-shape)}"],encapsulation:2,changeDetection:0});let t=e;return t})(),kM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,rn,MM,ee]});let t=e;return t})();var u$=["*"];var h$=new g("MAT_CARD_CONFIG"),jre=(()=>{let e=class e{constructor(i){this.appearance=i?.appearance||"raised"}};e.\u0275fac=function(n){return new(n||e)(h(h$,8))},e.\u0275cmp=z({type:e,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(n,o){n&2&&H("mat-mdc-card-outlined",o.appearance==="outlined")("mdc-card--outlined",o.appearance==="outlined")},inputs:{appearance:"appearance"},exportAs:["matCard"],standalone:!0,features:[Y],ngContentSelectors:u$,decls:1,vars:0,template:function(n,o){n&1&&(ye(),W(0))},styles:['.mat-mdc-card{display:flex;flex-direction:column;box-sizing:border-box;position:relative;border-style:solid;border-width:0;background-color:var(--mdc-elevated-card-container-color);border-color:var(--mdc-elevated-card-container-color);border-radius:var(--mdc-elevated-card-container-shape);box-shadow:var(--mdc-elevated-card-container-elevation)}.mat-mdc-card::after{position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px rgba(0,0,0,0);content:"";display:block;pointer-events:none;box-sizing:border-box;border-radius:var(--mdc-elevated-card-container-shape)}.mat-mdc-card-outlined{background-color:var(--mdc-outlined-card-container-color);border-radius:var(--mdc-outlined-card-container-shape);border-width:var(--mdc-outlined-card-outline-width);border-color:var(--mdc-outlined-card-outline-color);box-shadow:var(--mdc-outlined-card-container-elevation)}.mat-mdc-card-outlined::after{border:none}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mat-mdc-card-actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font);line-height:var(--mat-card-title-text-line-height);font-size:var(--mat-card-title-text-size);letter-spacing:var(--mat-card-title-text-tracking);font-weight:var(--mat-card-title-text-weight)}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color);font-family:var(--mat-card-subtitle-text-font);line-height:var(--mat-card-subtitle-text-line-height);font-size:var(--mat-card-subtitle-text-size);letter-spacing:var(--mat-card-subtitle-text-tracking);font-weight:var(--mat-card-subtitle-text-weight)}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0});let t=e;return t})();var TM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,Gt,ee]});let t=e;return t})();var p$=["input"],m$=["label"],g$=["*"],v$=new g("mat-checkbox-default-options",{providedIn:"root",factory:AM});function AM(){return{color:"accent",clickAction:"check-indeterminate"}}var Zt=function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t}(Zt||{}),b$={provide:jn,useExisting:lt(()=>OM),multi:!0},l_=class{},_$=0,RM=AM(),OM=(()=>{let e=class e{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(i){let n=new l_;return n.source=this,n.checked=i,n}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(i,n,o,s,a,c){this._elementRef=i,this._changeDetectorRef=n,this._ngZone=o,this._animationMode=a,this._options=c,this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new B,this.indeterminateChange=new B,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=Zt.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||RM,this.color=this._options.color||RM.color,this.tabIndex=parseInt(s)||0,this.id=this._uniqueId=`mat-mdc-checkbox-${++_$}`}ngOnChanges(i){i.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(i){i!=this.checked&&(this._checked=i,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(i){i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(i){let n=i!=this._indeterminate;this._indeterminate=i,n&&(this._indeterminate?this._transitionCheckState(Zt.Indeterminate):this._transitionCheckState(this.checked?Zt.Checked:Zt.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(i){this.checked=!!i}registerOnChange(i){this._controlValueAccessorChangeFn=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this.disabled=i}validate(i){return this.required&&i.value!==!0?{required:!0}:null}registerOnValidatorChange(i){this._validatorChangeFn=i}_transitionCheckState(i){let n=this._currentCheckState,o=this._getAnimationTargetElement();if(!(n===i||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,i),this._currentCheckState=i,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let s=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(s)},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 i=this._options?.clickAction;!this.disabled&&i!=="noop"?(this.indeterminate&&i!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?Zt.Checked:Zt.Unchecked),this._emitChangeEvent()):!this.disabled&&i==="noop"&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(i){i.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(i,n){if(this._animationMode==="NoopAnimations")return"";switch(i){case Zt.Init:if(n===Zt.Checked)return this._animationClasses.uncheckedToChecked;if(n==Zt.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Zt.Unchecked:return n===Zt.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Zt.Checked:return n===Zt.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Zt.Indeterminate:return n===Zt.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(i){let n=this._inputElement;n&&(n.nativeElement.indeterminate=i)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(i){i.target&&this._labelElement.nativeElement.contains(i.target)&&i.stopPropagation()}};e.\u0275fac=function(n){return new(n||e)(h(N),h(ue),h(F),pt("tabindex"),h(rt,8),h(v$,8))},e.\u0275cmp=z({type:e,selectors:[["mat-checkbox"]],viewQuery:function(n,o){if(n&1&&(De(p$,5),De(m$,5),De(xi,5)),n&2){let s;L(s=j())&&(o._inputElement=s.first),L(s=j())&&(o._labelElement=s.first),L(s=j())&&(o.ripple=s.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(n,o){n&2&&(yt("id",o.id),q("tabindex",null)("aria-label",null)("aria-labelledby",null),kt(o.color?"mat-"+o.color:"mat-accent"),H("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mdc-checkbox--disabled",o.disabled)("mat-mdc-checkbox-disabled",o.disabled)("mat-mdc-checkbox-checked",o.checked))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],id:"id",required:[2,"required","required",T],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",T],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?void 0:dt(i)],color:"color",checked:[2,"checked","checked",T],disabled:[2,"disabled","disabled",T],indeterminate:[2,"indeterminate","indeterminate",T]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[se([b$,{provide:on,useExisting:e,multi:!0}]),re,Me,Y],ngContentSelectors:g$,decls:15,vars:19,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,o){if(n&1){let s=Ye();ye(),_(0,"div",3),Z("click",function(c){return be(s),_e(o._preventBubblingFromLabel(c))}),_(1,"div",4,0)(3,"div",5),Z("click",function(){return be(s),_e(o._onTouchTargetClick())}),y(),_(4,"input",6,1),Z("blur",function(){return be(s),_e(o._onBlur())})("click",function(){return be(s),_e(o._onInputClick())})("change",function(c){return be(s),_e(o._onInteractionEvent(c))}),y(),k(6,"div",7),_(7,"div",8),di(),_(8,"svg",9),k(9,"path",10),y(),jd(),k(10,"div",11),y(),k(11,"div",12),y(),_(12,"label",13,2),W(14),y()()}if(n&2){let s=gt(2);M("labelPosition",o.labelPosition),x(4),H("mdc-checkbox--selected",o.checked),M("checked",o.checked)("indeterminate",o.indeterminate)("disabled",o.disabled)("id",o.inputId)("required",o.required)("tabIndex",o.disabled?-1:o.tabIndex),q("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("name",o.name)("value",o.value),x(7),M("matRippleTrigger",s)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),x(),M("for",o.inputId)}},dependencies:[xi,Mh],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);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.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)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.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)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.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)}.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}.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);border-color:var(--mdc-checkbox-unselected-icon-color);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);background-color:var(--mdc-checkbox-selected-icon-color)}.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);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);background-color:var(--mdc-checkbox-selected-hover-icon-color)}.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)}.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);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.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)}.mdc-checkbox--disabled .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.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)}.cdk-high-contrast-active .mdc-checkbox__mixedmark{margin:0 1px}.mdc-checkbox--disabled .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.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 .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color);font-family:var(--mat-checkbox-label-text-font);line-height:var(--mat-checkbox-label-text-line-height);font-size:var(--mat-checkbox-label-text-size);letter-spacing:var(--mat-checkbox-label-text-tracking);font-weight:var(--mat-checkbox-label-text-weight)}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color)}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-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});let t=e;return t})();var NM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[OM,ee,ee]});let t=e;return t})();var y$=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],w$=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function x$(t,e){t&1&&(_(0,"span",3),W(1,1),y())}function D$(t,e){t&1&&(_(0,"span",6),W(1,2),y())}var C$=["*"];var E$=new g("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),FM=new g("MatChipAvatar"),PM=new g("MatChipTrailingIcon"),LM=new g("MatChipRemove"),VM=new g("MatChip"),jM=(()=>{let e=class e{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(i){this._disabled=i}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(i,n){this._elementRef=i,this._parentChip=n,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this.tabIndex=-1,this._allowFocusWhenDisabled=!1,i.nativeElement.nodeName==="BUTTON"&&i.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(i){!this.disabled&&this.isInteractive&&this._isPrimary&&(i.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(i){(i.keyCode===13||i.keyCode===32)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(i.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}};e.\u0275fac=function(n){return new(n||e)(h(N),h(VM))},e.\u0275dir=I({type:e,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(n,o){n&1&&Z("click",function(a){return o._handleClick(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(q("tabindex",o._getTabindex())("disabled",o._getDisabledAttribute())("aria-disabled",o.disabled),H("mdc-evolution-chip__action--primary",o._isPrimary)("mdc-evolution-chip__action--presentational",!o.isInteractive)("mdc-evolution-chip__action--trailing",!o._isPrimary))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",T],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?-1:dt(i)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},standalone:!0,features:[re]});let t=e;return t})();var I$=0,S$=(()=>{let e=class e{_hasFocus(){return this._hasFocusInternal}get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(i){this._value=i}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(i){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,i)}constructor(i,n,o,s,a,c,l,d){this._changeDetectorRef=i,this._elementRef=n,this._ngZone=o,this._focusMonitor=s,this._globalRippleOptions=l,this._onFocus=new C,this._onBlur=new C,this.role=null,this._hasFocusInternal=!1,this.id=`mat-mdc-chip-${I$++}`,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this.removable=!0,this.highlighted=!1,this.disableRipple=!1,this.disabled=!1,this.tabIndex=-1,this.removed=new B,this.destroyed=new B,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=b(Sh),this._injector=b(Se),this._document=a,this._animationsDisabled=c==="NoopAnimations",d!=null&&(this.tabIndex=parseInt(d)??-1),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){let i=this._elementRef.nativeElement;this._isBasicChip=i.hasAttribute(this.basicChipAttrName)||i.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=Ze(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(i){(i.keyCode===8&&!i.repeat||i.keyCode===46)&&(i.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(i){return this._getActions().find(n=>{let o=n._elementRef.nativeElement;return o===i||o.contains(i)})}_getActions(){let i=[];return this.primaryAction&&i.push(this.primaryAction),this.removeIcon&&i.push(this.removeIcon),this.trailingIcon&&i.push(this.trailingIcon),i}_handlePrimaryActionInteraction(){}_getTabIndex(){return this.role?this.disabled?-1:this.tabIndex:null}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(i=>{let n=i!==null;n!==this._hasFocusInternal&&(this._hasFocusInternal=n,n?this._onFocus.next({chip:this}):$t(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})),{injector:this._injector}))})}};e.\u0275fac=function(n){return new(n||e)(h(ue),h(N),h(F),h(Et),h(K),h(rt,8),h(Ch,8),pt("tabindex"))},e.\u0275cmp=z({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(n,o,s){if(n&1&&(pe(s,FM,5),pe(s,PM,5),pe(s,LM,5),pe(s,FM,5),pe(s,PM,5),pe(s,LM,5)),n&2){let a;L(a=j())&&(o.leadingIcon=a.first),L(a=j())&&(o.trailingIcon=a.first),L(a=j())&&(o.removeIcon=a.first),L(a=j())&&(o._allLeadingIcons=a),L(a=j())&&(o._allTrailingIcons=a),L(a=j())&&(o._allRemoveIcons=a)}},viewQuery:function(n,o){if(n&1&&De(jM,5),n&2){let s;L(s=j())&&(o.primaryAction=s.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:32,hostBindings:function(n,o){n&1&&Z("keydown",function(a){return o._handleKeydown(a)}),n&2&&(yt("id",o.id),q("role",o.role)("tabindex",o._getTabIndex())("aria-label",o.ariaLabel),kt("mat-"+(o.color||"primary")),H("mdc-evolution-chip",!o._isBasicChip)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-basic-chip",o._isBasicChip)("mat-mdc-standard-chip",!o._isBasicChip)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon())("_mat-animation-noopable",o._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",T],highlighted:[2,"highlighted","highlighted",T],disableRipple:[2,"disableRipple","disableRipple",T],disabled:[2,"disabled","disabled",T],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?void 0:dt(i)]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],standalone:!0,features:[se([{provide:VM,useExisting:e}]),re,Y],ngContentSelectors:w$,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,o){n&1&&(ye(y$),k(0,"span",0),_(1,"span",1)(2,"span",2),U(3,x$,2,0,"span",3),_(4,"span",4),W(5),k(6,"span",5),y()()(),U(7,D$,2,0,"span",6)),n&2&&(x(2),M("isInteractive",!1),x(),le(o.leadingIcon?3:-1),x(4),le(o._hasTrailingIcon()?7:-1))},dependencies:[jM],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width);border-radius:var(--mdc-chip-container-shape-radius);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color)}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size);height:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.cdk-high-contrast-active .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius);width:var(--mdc-chip-with-icon-icon-size);height:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color);--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color);--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color);--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color)}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color)}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color);opacity:var(--mdc-chip-hover-state-layer-opacity)}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color);opacity:var(--mdc-chip-selected-hover-state-layer-opacity)}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color);opacity:var(--mdc-chip-selected-focus-state-layer-opacity)}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color)}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity)}.mat-mdc-chip-remove::after{background:var(--mat-chip-trailing-action-state-layer-color)}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity)}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity)}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background:var(--mat-chip-selected-trailing-action-state-layer-color)}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-2px;bottom:-2px;left:6px;right:6px;border-radius:50%}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let t=e;return t})();var Doe=(()=>{let e=class e{get chipFocusChanges(){return this._getChipStream(i=>i._onFocus)}get chipDestroyedChanges(){return this._getChipStream(i=>i.destroyed)}get chipRemovedChanges(){return this._getChipStream(i=>i.removed)}get disabled(){return this._disabled}set disabled(i){this._disabled=i,this._syncChipsState()}get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(i){this._explicitRole=i}get focused(){return this._hasFocusedChip()}constructor(i,n,o){this._elementRef=i,this._changeDetectorRef=n,this._dir=o,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new C,this._defaultRole="presentation",this._disabled=!1,this.tabIndex=0,this._explicitRole=null,this._chipActions=new Pt}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(i=>i._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(i=>{i.disabled=this._disabled,i._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(i){this._originatesFromChip(i)&&this._keyManager.onKeydown(i)}_isValidIndex(i){return i>=0&&i{this.tabIndex=i,this._changeDetectorRef.markForCheck()})}}_getChipStream(i){return this._chips.changes.pipe(Qe(null),Oe(()=>Ze(...this._chips.map(i))))}_originatesFromChip(i){let n=i.target;for(;n&&n!==this._elementRef.nativeElement;){if(n.classList.contains("mat-mdc-chip"))return!0;n=n.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(Qe(this._chips)).subscribe(i=>{let n=[];i.forEach(o=>o._getActions().forEach(s=>n.push(s))),this._chipActions.reset(n),this._chipActions.notifyOnChanges()}),this._keyManager=new Fn(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(i=>this._skipPredicate(i)),this.chipFocusChanges.pipe(te(this._destroyed)).subscribe(({chip:i})=>{let n=i._getSourceAction(document.activeElement);n&&this._keyManager.updateActiveItem(n)}),this._dir?.change.pipe(te(this._destroyed)).subscribe(i=>this._keyManager.withHorizontalOrientation(i))}_skipPredicate(i){return!i.isInteractive||i.disabled}_trackChipSetChanges(){this._chips.changes.pipe(Qe(null),te(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(te(this._destroyed)).subscribe(i=>{let o=this._chips.toArray().indexOf(i.chip);this._isValidIndex(o)&&i.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let i=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),n=this._chips.toArray()[i];n.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():n.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}};e.\u0275fac=function(n){return new(n||e)(h(N),h(ue),h(bt,8))},e.\u0275cmp=z({type:e,selectors:[["mat-chip-set"]],contentQueries:function(n,o,s){if(n&1&&pe(s,S$,5),n&2){let a;L(a=j())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(n,o){n&1&&Z("keydown",function(a){return o._handleKeydown(a)}),n&2&&q("role",o.role)},inputs:{disabled:[2,"disabled","disabled",T],role:"role",tabIndex:[2,"tabIndex","tabIndex",i=>i==null?0:dt(i)]},standalone:!0,features:[re,Y],ngContentSelectors:C$,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(ye(),_(0,"div",0),W(1),y())},styles:[".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0});let t=e;return t})();var BM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[nn,{provide:E$,useValue:{separatorKeyCodes:[13]}}],imports:[ee,rn,ee]});let t=e;return t})();var M$=0,d_=new g("CdkAccordion"),zM=(()=>{let e=class e{constructor(){this._stateChanges=new C,this._openCloseAllActions=new C,this.id=`cdk-accordion-${M$++}`,this.multi=!1}openAll(){this.multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(i){this._stateChanges.next(i)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",T]},exportAs:["cdkAccordion"],standalone:!0,features:[se([{provide:d_,useExisting:e}]),re,Me]});let t=e;return t})(),k$=0,UM=(()=>{let e=class e{get expanded(){return this._expanded}set expanded(i){if(this._expanded!==i){if(this._expanded=i,this.expandedChange.emit(i),i){this.opened.emit();let n=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,n)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}constructor(i,n,o){this.accordion=i,this._changeDetectorRef=n,this._expansionDispatcher=o,this._openCloseAllSubscription=ne.EMPTY,this.closed=new B,this.opened=new B,this.destroyed=new B,this.expandedChange=new B,this.id=`cdk-accordion-child-${k$++}`,this._expanded=!1,this.disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=o.listen((s,a)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===a&&this.id!==s&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(i=>{this.disabled||(this.expanded=i)})}};e.\u0275fac=function(n){return new(n||e)(h(d_,12),h(ue),h(tf))},e.\u0275dir=I({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",T],disabled:[2,"disabled","disabled",T]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],standalone:!0,features:[se([{provide:d_,useValue:void 0}]),re]});let t=e;return t})(),HM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({});let t=e;return t})();var T$=["body"],R$=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],A$=["mat-expansion-panel-header","*","mat-action-row"];function O$(t,e){}var N$=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],F$=["mat-panel-title","mat-panel-description","*"];function P$(t,e){if(t&1&&(_(0,"span",1),di(),_(1,"svg",2),k(2,"path",3),y()()),t&2){let r=$();M("@indicatorRotate",r._getExpandedState())}}var u_=new g("MAT_ACCORDION"),$M="225ms cubic-bezier(0.4,0.0,0.2,1)",WM={indicatorRotate:st("indicatorRotate",[ke("collapsed, void",de({transform:"rotate(0deg)"})),ke("expanded",de({transform:"rotate(180deg)"})),Le("expanded <=> collapsed, void => collapsed",Ge($M))]),bodyExpansion:st("bodyExpansion",[ke("collapsed, void",de({height:"0px",visibility:"hidden"})),ke("expanded",de({height:"*",visibility:""})),Le("expanded <=> collapsed, void => collapsed",Ge($M))])},qM=new g("MAT_EXPANSION_PANEL"),L$=(()=>{let e=class e{constructor(i,n){this._template=i,this._expansionPanel=n}};e.\u0275fac=function(n){return new(n||e)(h(Re),h(qM,8))},e.\u0275dir=I({type:e,selectors:[["ng-template","matExpansionPanelContent",""]],standalone:!0});let t=e;return t})(),j$=0,YM=new g("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),V$=(()=>{let e=class e extends UM{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(i){this._hideToggle=i}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(i){this._togglePosition=i}constructor(i,n,o,s,a,c,l){super(i,n,o),this._viewContainerRef=s,this._animationMode=c,this._hideToggle=!1,this.afterExpand=new B,this.afterCollapse=new B,this._inputChanges=new C,this._headerId=`mat-expansion-panel-header-${j$++}`,this.accordion=i,this._document=a,this._animationsDisabled=c==="NoopAnimations",l&&(this.hideToggle=l.hideToggle)}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(Qe(null),ge(()=>this.expanded&&!this._portal),We(1)).subscribe(()=>{this._portal=new Ci(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(i){this._inputChanges.next(i)}ngOnDestroy(){super.ngOnDestroy(),this._inputChanges.complete()}_containsFocus(){if(this._body){let i=this._document.activeElement,n=this._body.nativeElement;return i===n||n.contains(i)}return!1}_animationStarted(i){!GM(i)&&!this._animationsDisabled&&this._body&&this._body?.nativeElement.setAttribute("inert","")}_animationDone(i){GM(i)||(i.toState==="expanded"?this.afterExpand.emit():i.toState==="collapsed"&&this.afterCollapse.emit(),!this._animationsDisabled&&this._body&&this._body.nativeElement.removeAttribute("inert"))}};e.\u0275fac=function(n){return new(n||e)(h(u_,12),h(ue),h(tf),h(Ve),h(K),h(rt,8),h(YM,8))},e.\u0275cmp=z({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(n,o,s){if(n&1&&pe(s,L$,5),n&2){let a;L(a=j())&&(o._lazyContent=a.first)}},viewQuery:function(n,o){if(n&1&&De(T$,5),n&2){let s;L(s=j())&&(o._body=s.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(n,o){n&2&&H("mat-expanded",o.expanded)("_mat-animation-noopable",o._animationsDisabled)("mat-expansion-panel-spacing",o._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",T],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],standalone:!0,features:[se([{provide:u_,useValue:void 0},{provide:qM,useExisting:e}]),re,ae,Me,Y],ngContentSelectors:A$,decls:7,vars:4,consts:[["body",""],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(n,o){if(n&1){let s=Ye();ye(R$),W(0),_(1,"div",1,0),Z("@bodyExpansion.start",function(c){return be(s),_e(o._animationStarted(c))})("@bodyExpansion.done",function(c){return be(s),_e(o._animationDone(c))}),_(3,"div",2),W(4,1),U(5,O$,0,0,"ng-template",3),y(),W(6,2),y()}n&2&&(x(),M("@bodyExpansion",o._getExpandedState())("id",o.id),q("aria-labelledby",o._headerId),x(4),M("cdkPortalOutlet",o._portal))},dependencies:[Fo],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color)}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[WM.bodyExpansion]},changeDetection:0});let t=e;return t})();function GM(t){return t.fromState==="void"}var B$=(()=>{let e=class e{constructor(i,n,o,s,a,c,l){this.panel=i,this._element=n,this._focusMonitor=o,this._changeDetectorRef=s,this._animationMode=c,this._parentChangeSubscription=ne.EMPTY,this.tabIndex=0;let d=i.accordion?i.accordion._stateChanges.pipe(ge(u=>!!(u.hideToggle||u.togglePosition))):ct;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=Ze(i.opened,i.closed,d,i._inputChanges.pipe(ge(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),i.closed.pipe(ge(()=>i._containsFocus())).subscribe(()=>o.focusVia(n,"program")),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){let i=this._isExpanded();return i&&this.expandedHeight?this.expandedHeight:!i&&this.collapsedHeight?this.collapsedHeight:null}_keydown(i){switch(i.keyCode){case 32:case 13:Vt(i)||(i.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(i);return}}focus(i,n){i?this._focusMonitor.focusVia(this._element,i,n):this._element.nativeElement.focus(n)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(i=>{i&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}};e.\u0275fac=function(n){return new(n||e)(h(V$,1),h(N),h(Et),h(ue),h(YM,8),h(rt,8),pt("tabindex"))},e.\u0275cmp=z({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(n,o){n&1&&Z("click",function(){return o._toggle()})("keydown",function(a){return o._keydown(a)}),n&2&&(q("id",o.panel._headerId)("tabindex",o.disabled?-1:o.tabIndex)("aria-controls",o._getPanelId())("aria-expanded",o._isExpanded())("aria-disabled",o.panel.disabled),ei("height",o._getHeaderHeight()),H("mat-expanded",o._isExpanded())("mat-expansion-toggle-indicator-after",o._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",o._getTogglePosition()==="before")("_mat-animation-noopable",o._animationMode==="NoopAnimations"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",i=>i==null?0:dt(i)]},standalone:!0,features:[re,Y],ngContentSelectors:F$,decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 -960 960 960","aria-hidden","true","focusable","false"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(n,o){n&1&&(ye(N$),_(0,"span",0),W(1),W(2,1),W(3,2),y(),U(4,P$,3,1,"span",1)),n&2&&(H("mat-content-hide-toggle",!o._showToggle()),x(4),le(o._showToggle()?4:-1))},styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color)}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color);display:inline-block;display:var(--mat-expansion-legacy-header-indicator-display, inline-block)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color);display:none;display:var(--mat-expansion-header-indicator-display, none)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[WM.indicatorRotate]},changeDetection:0});let t=e;return t})();var sse=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=I({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"],standalone:!0});let t=e;return t})(),ase=(()=>{let e=class e extends zM{constructor(){super(...arguments),this._ownHeaders=new Pt,this.hideToggle=!1,this.displayMode="default",this.togglePosition="after"}ngAfterContentInit(){this._headers.changes.pipe(Qe(this._headers)).subscribe(i=>{this._ownHeaders.reset(i.filter(n=>n.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Fn(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(i){this._keyManager.onKeydown(i)}_handleHeaderFocus(i){this._keyManager.updateActiveItem(i)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["mat-accordion"]],contentQueries:function(n,o,s){if(n&1&&pe(s,B$,5),n&2){let a;L(a=j())&&(o._headers=a)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(n,o){n&2&&H("mat-accordion-multi",o.multi)},inputs:{hideToggle:[2,"hideToggle","hideToggle",T],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],standalone:!0,features:[se([{provide:u_,useExisting:e}]),re,ae]});let t=e;return t})(),ZM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,HM,Vr]});let t=e;return t})();var z$=["trigger"],U$=["panel"],H$=[[["mat-select-trigger"]],"*"],$$=["mat-select-trigger","*"];function G$(t,e){if(t&1&&(_(0,"span",4),we(1),y()),t&2){let r=$();x(),at(r.placeholder)}}function W$(t,e){t&1&&W(0)}function q$(t,e){if(t&1&&(_(0,"span",11),we(1),y()),t&2){let r=$(2);x(),at(r.triggerValue)}}function Y$(t,e){if(t&1&&(_(0,"span",5),U(1,W$,1,0)(2,q$,2,1,"span",11),y()),t&2){let r=$();x(),le(r.customTrigger?1:2)}}function Z$(t,e){if(t&1){let r=Ye();_(0,"div",12,1),Z("@transformPanel.done",function(n){be(r);let o=$();return _e(o._panelDoneAnimatingStream.next(n.toState))})("keydown",function(n){be(r);let o=$();return _e(o._handleKeydown(n))}),W(2,1),y()}if(t&2){let r=$();Xd("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",r._getPanelTheme(),""),M("ngClass",r.panelClass)("@transformPanel","showing"),q("id",r.id+"-panel")("aria-multiselectable",r.multiple)("aria-label",r.ariaLabel||null)("aria-labelledby",r._getPanelAriaLabelledby())}}var Q$={transformPanelWrap:st("transformPanelWrap",[Le("* => void",No("@transformPanel",[Oo()],{optional:!0}))]),transformPanel:st("transformPanel",[ke("void",de({opacity:0,transform:"scale(1, 0.8)"})),Le("void => showing",Ge("120ms cubic-bezier(0, 0, 0.2, 1)",de({opacity:1,transform:"scale(1, 1)"}))),Le("* => void",Ge("100ms linear",de({opacity:0})))])};var QM=0,KM=new g("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=b(It);return()=>t.scrollStrategies.reposition()}});function K$(t){return()=>t.scrollStrategies.reposition()}var X$=new g("MAT_SELECT_CONFIG"),J$={provide:KM,deps:[It],useFactory:K$},e5=new g("MatSelectTrigger"),h_=class{constructor(e,r){this.source=e,this.value=r}},Pse=(()=>{let e=class e{_scrollOptionIntoView(i){let n=this.options.toArray()[i];if(n){let o=this.panel.nativeElement,s=hI(i,this.options,this.optionGroups),a=n._getHostElement();i===0&&s===1?o.scrollTop=0:o.scrollTop=fI(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(i){return new h_(this,i)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(i){this._hideSingleSelectionIndicator=i,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(i){this._placeholder=i,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Us.required)??!1}set required(i){this._required=i,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(i){this._selectionModel,this._multiple=i}get compareWith(){return this._compareWith}set compareWith(i){this._compareWith=i,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(i){this._assignValue(i)&&this._onChange(i)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(i){this._errorStateTracker.matcher=i}get id(){return this._id}set id(i){this._id=i||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(i){this._errorStateTracker.errorState=i}constructor(i,n,o,s,a,c,l,d,u,f,p,v,S,E){this._viewportRuler=i,this._changeDetectorRef=n,this._elementRef=a,this._dir=c,this._parentFormField=u,this.ngControl=f,this._liveAnnouncer=S,this._defaultOptions=E,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=(R,he)=>R===he,this._uid=`mat-select-${QM++}`,this._triggerAriaLabelledBy=null,this._destroy=new C,this.stateChanges=new C,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${QM++}`,this._panelDoneAnimatingStream=new C,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 C,this.optionSelectionChanges=Qr(()=>{let R=this.options;return R?R.changes.pipe(Qe(R),Oe(()=>Ze(...R.map(he=>he.onSelectionChange)))):this._initialized.pipe(Oe(()=>this.optionSelectionChanges))}),this.openedChange=new B,this._openedStream=this.openedChange.pipe(ge(R=>R),P(()=>{})),this._closedStream=this.openedChange.pipe(ge(R=>!R),P(()=>{})),this.selectionChange=new B,this.valueChange=new B,this._trackedModal=null,this._skipPredicate=R=>this.panelOpen?!1:R.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),E?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=E.typeaheadDebounceInterval),this._errorStateTracker=new To(s,f,d,l,this.stateChanges),this._scrollStrategyFactory=v,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(p)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Ks(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Yi(),te(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(te(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(te(this._destroy)).subscribe(i=>{i.added.forEach(n=>n.select()),i.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(Qe(null),te(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let i=this._getTriggerAriaLabelledby(),n=this.ngControl;if(i!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=i,i?o.setAttribute("aria-labelledby",i):o.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(i){(i.disabled||i.userAriaDescribedBy)&&this.stateChanges.next(),i.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 i=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!i)return;let n=`${this.id}-panel`;this._trackedModal&&yh(this._trackedModal,"aria-owns",n),bb(i,"aria-owns",n),this._trackedModal=i}_clearFromModal(){if(!this._trackedModal)return;let i=`${this.id}-panel`;yh(this._trackedModal,"aria-owns",i),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(i){this._assignValue(i)}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this.disabled=i,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 i=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&i.reverse(),i.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(i){this.disabled||(this.panelOpen?this._handleOpenKeydown(i):this._handleClosedKeydown(i))}_handleClosedKeydown(i){let n=i.keyCode,o=n===40||n===38||n===37||n===39,s=n===13||n===32,a=this._keyManager;if(!a.isTyping()&&s&&!Vt(i)||(this.multiple||i.altKey)&&o)i.preventDefault(),this.open();else if(!this.multiple){let c=this.selected;a.onKeydown(i);let l=this.selected;l&&c!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(i){let n=this._keyManager,o=i.keyCode,s=o===40||o===38,a=n.isTyping();if(s&&i.altKey)i.preventDefault(),this.close();else if(!a&&(o===13||o===32)&&n.activeItem&&!Vt(i))i.preventDefault(),n.activeItem._selectViaInteraction();else if(!a&&this._multiple&&o===65&&i.ctrlKey){i.preventDefault();let c=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(c?l.select():l.deselect())})}else{let c=n.activeItemIndex;n.onKeydown(i),this._multiple&&s&&i.shiftKey&&n.activeItem&&n.activeItemIndex!==c&&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(We(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(i){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&i)Array.isArray(i),i.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{let n=this._selectOptionByValue(i);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(i){let n=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return o.value!=null&&this._compareWith(o.value,i)}catch{return!1}});return n&&this._selectionModel.select(n),n}_assignValue(i){return i!==this._value||this._multiple&&Array.isArray(i)?(this.options&&this._setSelectionByValue(i),this._value=i,!0):!1}_getOverlayWidth(i){return this.panelWidth==="auto"?(i instanceof qc?i.elementRef:i||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let i of this.options)i._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new _h(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 i=Ze(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(te(i)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Ze(...this.options.map(n=>n._stateChanges)).pipe(te(i)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(i,n){let o=this._selectionModel.isSelected(i);i.value==null&&!this._multiple?(i.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(i.value)):(o!==i.selected&&(i.selected?this._selectionModel.select(i):this._selectionModel.deselect(i)),n&&this._keyManager.setActiveItem(i),this.multiple&&(this._sortValues(),n&&this.focus())),o!==this._selectionModel.isSelected(i)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let i=this.options.toArray();this._selectionModel.sort((n,o)=>this.sortComparator?this.sortComparator(n,o,i):i.indexOf(n)-i.indexOf(o)),this.stateChanges.next()}}_propagateChanges(i){let n;this.multiple?n=this.selected.map(o=>o.value):n=this.selected?this.selected.value:i,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 i=-1;for(let n=0;n0}focus(i){this._elementRef.nativeElement.focus(i)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let i=this._parentFormField?.getLabelId(),n=i?i+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:i}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let i=this._parentFormField?.getLabelId(),n=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(i){this.openedChange.emit(i)}setDescribedByIds(i){i.length?this._elementRef.nativeElement.setAttribute("aria-describedby",i.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}};e.\u0275fac=function(n){return new(n||e)(h(Bn),h(ue),h(F),h(nn),h(N),h(bt,8),h(Fc,8),h(Ws,8),h(Bc,8),h(Di,10),pt("tabindex"),h(KM),h(xh),h(X$,8))},e.\u0275cmp=z({type:e,selectors:[["mat-select"]],contentQueries:function(n,o,s){if(n&1&&(pe(s,e5,5),pe(s,uI,5),pe(s,Ih,5)),n&2){let a;L(a=j())&&(o.customTrigger=a.first),L(a=j())&&(o.options=a),L(a=j())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&(De(z$,5),De(U$,5),De(r_,5)),n&2){let s;L(s=j())&&(o.trigger=s.first),L(s=j())&&(o.panel=s.first),L(s=j())&&(o._overlayDir=s.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(n,o){n&1&&Z("keydown",function(a){return o._handleKeydown(a)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),n&2&&(q("id",o.id)("tabindex",o.disabled?-1:o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-activedescendant",o._getAriaActiveDescendant()),H("mat-mdc-select-disabled",o.disabled)("mat-mdc-select-invalid",o.errorState)("mat-mdc-select-required",o.required)("mat-mdc-select-empty",o.empty)("mat-mdc-select-multiple",o.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",T],disableRipple:[2,"disableRipple","disableRipple",T],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?0:dt(i)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",T],placeholder:"placeholder",required:[2,"required","required",T],multiple:[2,"multiple","multiple",T],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",T],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",dt],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[se([{provide:Vc,useExisting:e},{provide:Eh,useExisting:e}]),re,Me,Y],ngContentSelectors:$$,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,o){if(n&1){let s=Ye();ye(H$),_(0,"div",2,0),Z("click",function(){return be(s),_e(o.open())}),_(3,"div",3),U(4,G$,2,1,"span",4)(5,Y$,3,1,"span",5),y(),_(6,"div",6)(7,"div",7),di(),_(8,"svg",8),k(9,"path",9),y()()()(),U(10,Z$,3,9,"ng-template",10),Z("backdropClick",function(){return be(s),_e(o.close())})("attach",function(){return be(s),_e(o._onAttached())})("detach",function(){return be(s),_e(o.close())})}if(n&2){let s=gt(1);x(3),q("id",o._valueId),x(),le(o.empty?4:5),x(6),M("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||s)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)}},dependencies:[qc,r_,Ds],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);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-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)}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.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)}.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)}._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:[Q$.transformPanel]},changeDetection:0});let t=e;return t})();var XM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[J$],imports:[Gt,zr,Sb,ee,Vn,zc,Sb,ee]});let t=e;return t})();var t5=["switch"],i5=["*"];function n5(t,e){t&1&&(_(0,"div",10),di(),_(1,"svg",12),k(2,"path",13),y(),_(3,"svg",14),k(4,"path",15),y()())}var r5=new g("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),o5={provide:jn,useExisting:lt(()=>JM),multi:!0},mf=class{constructor(e,r){this.source=e,this.checked=r}},s5=0,JM=(()=>{let e=class e{_createChangeEvent(i){return new mf(this,i)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(i){this._checked=i,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(i,n,o,s,a,c){this._elementRef=i,this._focusMonitor=n,this._changeDetectorRef=o,this.defaults=a,this._onChange=l=>{},this._onTouched=()=>{},this._validatorOnChange=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new B,this.toggleChange=new B,this.tabIndex=parseInt(s)||0,this.color=a.color||"accent",this._noopAnimations=c==="NoopAnimations",this.id=this._uniqueId=`mat-mdc-slide-toggle-${++s5}`,this.hideIcon=a.hideIcon??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(i=>{i==="keyboard"||i==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):i||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(i){i.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(i){this.checked=!!i}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}validate(i){return this.required&&i.value!==!0?{required:!0}:null}registerOnValidatorChange(i){this._validatorOnChange=i}setDisabledState(i){this.disabled=i,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new mf(this,this.checked)))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}};e.\u0275fac=function(n){return new(n||e)(h(N),h(Et),h(ue),pt("tabindex"),h(r5),h(rt,8))},e.\u0275cmp=z({type:e,selectors:[["mat-slide-toggle"]],viewQuery:function(n,o){if(n&1&&De(t5,5),n&2){let s;L(s=j())&&(o._switchElement=s.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(n,o){n&2&&(yt("id",o.id),q("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),kt(o.color?"mat-"+o.color:""),H("mat-mdc-slide-toggle-focused",o._focused)("mat-mdc-slide-toggle-checked",o.checked)("_mat-animation-noopable",o._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",T],color:"color",disabled:[2,"disabled","disabled",T],disableRipple:[2,"disableRipple","disableRipple",T],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?0:dt(i)],checked:[2,"checked","checked",T],hideIcon:[2,"hideIcon","hideIcon",T]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[se([o5,{provide:on,useExisting:e,multi:!0}]),re,Me,Y],ngContentSelectors:i5,decls:13,vars:24,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(n,o){if(n&1){let s=Ye();ye(),_(0,"div",1)(1,"button",2,0),Z("click",function(){return be(s),_e(o._handleClick())}),k(3,"div",3),_(4,"div",4)(5,"div",5)(6,"div",6),k(7,"div",7),y(),_(8,"div",8),k(9,"div",9),y(),U(10,n5,5,0,"div",10),y()()(),_(11,"label",11),Z("click",function(c){return be(s),_e(c.stopPropagation())}),W(12),y()()}if(n&2){let s=gt(2);M("labelPosition",o.labelPosition),x(),H("mdc-switch--selected",o.checked)("mdc-switch--unselected",!o.checked)("mdc-switch--checked",o.checked)("mdc-switch--disabled",o.disabled),M("tabIndex",o.disabled?-1:o.tabIndex)("disabled",o.disabled),q("id",o.buttonId)("name",o.name)("aria-label",o.ariaLabel)("aria-labelledby",o._getAriaLabelledBy())("aria-describedby",o.ariaDescribedby)("aria-required",o.required||null)("aria-checked",o.checked),x(8),M("matRippleTrigger",s)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),x(),le(o.hideIcon?-1:10),x(),M("for",o.buttonId),q("id",o._labelId)}},dependencies:[xi,Mh],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-switch-label-text-color);font-family:var(--mat-switch-label-text-font);line-height:var(--mat-switch-label-text-line-height);font-size:var(--mat-switch-label-text-size);letter-spacing:var(--mat-switch-label-text-tracking);font-weight:var(--mat-switch-label-text-weight)}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}.mdc-switch{width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color)}.mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color)}.mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation)}.mdc-switch .mdc-switch__focus-ring-wrapper,.mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height)}.mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape)}.mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width)}.mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width))}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size)}.mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size);width:var(--mdc-switch-state-layer-size)}.mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height)}.mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color)}.mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color)}.mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mdc-switch__handle{transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size);height:var(--mat-switch-unselected-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size);height:var(--mat-switch-selected-handle-size)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size);height:var(--mat-switch-with-icon-handle-size)}.mat-mdc-slide-toggle:active .mdc-switch:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size);height:var(--mat-switch-pressed-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{margin:var(--mat-switch-selected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{margin:var(--mat-switch-unselected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--selected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--unselected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin)}.mdc-switch__track::after,.mdc-switch__track::before{border-width:var(--mat-switch-track-outline-width);border-color:var(--mat-switch-track-outline-color)}.mdc-switch--selected .mdc-switch__track::after,.mdc-switch--selected .mdc-switch__track::before{border-width:var(--mat-switch-selected-track-outline-width);border-color:var(--mat-switch-selected-track-outline-color)}.mdc-switch--disabled .mdc-switch__track::after,.mdc-switch--disabled .mdc-switch__track::before{border-width:var(--mat-switch-disabled-unselected-track-outline-width);border-color:var(--mat-switch-disabled-unselected-track-outline-color)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity)}'],encapsulation:2,changeDetection:0});let t=e;return t})();var ek=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[JM,ee,ee]});let t=e;return t})();var a5=["mat-sort-header",""],c5=["*"];function l5(t,e){if(t&1){let r=Ye();_(0,"div",2),Z("@arrowPosition.start",function(){be(r);let n=$();return _e(n._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){be(r);let n=$();return _e(n._disableViewStateAnimation=!1)}),k(1,"div",3),_(2,"div",4),k(3,"div",5)(4,"div",6)(5,"div",7),y()()}if(t&2){let r=$();M("@arrowOpacity",r._getArrowViewState())("@arrowPosition",r._getArrowViewState())("@allowChildren",r._getArrowDirectionState()),x(2),M("@indicator",r._getArrowDirectionState()),x(),M("@leftPointer",r._getArrowDirectionState()),x(),M("@rightPointer",r._getArrowDirectionState())}}var tk=new g("MAT_SORT_DEFAULT_OPTIONS"),d5=(()=>{let e=class e{get direction(){return this._direction}set direction(i){this._direction=i}constructor(i){this._defaultOptions=i,this._initializedStream=new Wr(1),this.sortables=new Map,this._stateChanges=new C,this.start="asc",this._direction="",this.disabled=!1,this.sortChange=new B,this.initialized=this._initializedStream}register(i){this.sortables.set(i.id,i)}deregister(i){this.sortables.delete(i.id)}sort(i){this.active!=i.id?(this.active=i.id,this.direction=i.start?i.start:this.start):this.direction=this.getNextSortDirection(i),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(i){if(!i)return"";let n=i?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=u5(i.start||this.start,n),s=o.indexOf(this.direction)+1;return s>=o.length&&(s=0),o[s]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}};e.\u0275fac=function(n){return new(n||e)(h(tk,8))},e.\u0275dir=I({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",T],disabled:[2,"matSortDisabled","disabled",T]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],standalone:!0,features:[re,Me]});let t=e;return t})();function u5(t,e){let r=["asc","desc"];return t=="desc"&&r.reverse(),e||r.push(""),r}var Ur=dI.ENTERING+" "+lI.STANDARD_CURVE,ta={indicator:st("indicator",[ke("active-asc, asc",de({transform:"translateY(0px)"})),ke("active-desc, desc",de({transform:"translateY(10px)"})),Le("active-asc <=> active-desc",Ge(Ur))]),leftPointer:st("leftPointer",[ke("active-asc, asc",de({transform:"rotate(-45deg)"})),ke("active-desc, desc",de({transform:"rotate(45deg)"})),Le("active-asc <=> active-desc",Ge(Ur))]),rightPointer:st("rightPointer",[ke("active-asc, asc",de({transform:"rotate(45deg)"})),ke("active-desc, desc",de({transform:"rotate(-45deg)"})),Le("active-asc <=> active-desc",Ge(Ur))]),arrowOpacity:st("arrowOpacity",[ke("desc-to-active, asc-to-active, active",de({opacity:1})),ke("desc-to-hint, asc-to-hint, hint",de({opacity:.54})),ke("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",de({opacity:0})),Le("* => asc, * => desc, * => active, * => hint, * => void",Ge("0ms")),Le("* <=> *",Ge(Ur))]),arrowPosition:st("arrowPosition",[Le("* => desc-to-hint, * => desc-to-active",Ge(Ur,jc([de({transform:"translateY(-25%)"}),de({transform:"translateY(0)"})]))),Le("* => hint-to-desc, * => active-to-desc",Ge(Ur,jc([de({transform:"translateY(0)"}),de({transform:"translateY(25%)"})]))),Le("* => asc-to-hint, * => asc-to-active",Ge(Ur,jc([de({transform:"translateY(25%)"}),de({transform:"translateY(0)"})]))),Le("* => hint-to-asc, * => active-to-asc",Ge(Ur,jc([de({transform:"translateY(0)"}),de({transform:"translateY(-25%)"})]))),ke("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",de({transform:"translateY(0)"})),ke("hint-to-desc, active-to-desc, desc",de({transform:"translateY(-25%)"})),ke("hint-to-asc, active-to-asc, asc",de({transform:"translateY(25%)"}))]),allowChildren:st("allowChildren",[Le("* <=> *",[No("@*",Oo(),{optional:!0})])])},gf=(()=>{let e=class e{constructor(){this.changes=new C}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function h5(t){return t||new gf}var f5={provide:gf,deps:[[new xn,new Yn,gf]],useFactory:h5},hae=(()=>{let e=class e{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(i){this._updateSortActionDescription(i)}constructor(i,n,o,s,a,c,l,d){this._intl=i,this._changeDetectorRef=n,this._sort=o,this._columnDef=s,this._focusMonitor=a,this._elementRef=c,this._ariaDescriber=l,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this.disabled=!1,this._sortActionDescription="Sort",d?.arrowPosition&&(this.arrowPosition=d?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(i=>{let n=!!i;n!==this._showIndicatorHint&&(this._setIndicatorHintVisible(n),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_setIndicatorHintVisible(i){this._isDisabled()&&i||(this._showIndicatorHint=i,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(i){this._viewState=i||{},this._disableViewStateAnimation&&(this._viewState={toState:i.toState})}_toggleOnInteraction(){this._sort.sort(this),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(i){!this._isDisabled()&&(i.keyCode===32||i.keyCode===13)&&(i.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){let i=this._viewState.fromState;return(i?`${i}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(i){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,i)),this._sortActionDescription=i}_handleStateChanges(){this._rerenderSubscription=Ze(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&this._viewState.toState==="active"&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}};e.\u0275fac=function(n){return new(n||e)(h(gf),h(ue),h(d5,8),h("MAT_SORT_HEADER_COLUMN_DEF",8),h(Et),h(N),h(wh,8),h(tk,8))},e.\u0275cmp=z({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(n,o){n&1&&Z("click",function(){return o._handleClick()})("keydown",function(a){return o._handleKeydown(a)})("mouseenter",function(){return o._setIndicatorHintVisible(!0)})("mouseleave",function(){return o._setIndicatorHintVisible(!1)}),n&2&&(q("aria-sort",o._getAriaSortAttribute()),H("mat-sort-header-disabled",o._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",T],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",T]},exportAs:["matSortHeader"],standalone:!0,features:[re,Y],attrs:a5,ngContentSelectors:c5,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(n,o){n&1&&(ye(),_(0,"div",0)(1,"div",1),W(2),y(),U(3,l5,6,6,"div",2),y()),n&2&&(H("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before"),q("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),x(3),le(o._renderArrow()?3:-1))},styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;color:var(--mat-sort-arrow-color);opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[ta.indicator,ta.leftPointer,ta.rightPointer,ta.arrowOpacity,ta.arrowPosition,ta.allowChildren]},changeDetection:0});let t=e;return t})(),ik=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[f5],imports:[ee]});let t=e;return t})();var p5=["*"];function m5(t,e){t&1&&W(0)}var f_=(()=>{let e=class e{constructor(i){this._elementRef=i}focus(){this._elementRef.nativeElement.focus()}};e.\u0275fac=function(n){return new(n||e)(h(N))},e.\u0275dir=I({type:e,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"],standalone:!0});let t=e;return t})(),p_=(()=>{let e=class e{constructor(i){this.template=i}};e.\u0275fac=function(n){return new(n||e)(h(Re))},e.\u0275dir=I({type:e,selectors:[["","cdkStepLabel",""]],standalone:!0});let t=e;return t})(),g5=0;var cr={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},Kc=new g("STEPPER_GLOBAL_OPTIONS"),vf=(()=>{let e=class e{get completed(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride}set completed(i){this._completedOverride=i}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError==null?this._getDefaultError():this._customError}set hasError(i){this._customError=i}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(i,n){this._stepper=i,this.interacted=!1,this.interactedStream=new B,this.editable=!0,this.optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=n||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this.interacted=!1,this._completedOverride!=null&&(this._completedOverride=!1),this._customError!=null&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError!=null}};e.\u0275fac=function(n){return new(n||e)(h(lt(()=>ia)),h(Kc,8))},e.\u0275cmp=z({type:e,selectors:[["cdk-step"]],contentQueries:function(n,o,s){if(n&1&&pe(s,p_,5),n&2){let a;L(a=j())&&(o.stepLabel=a.first)}},viewQuery:function(n,o){if(n&1&&De(Re,7),n&2){let s;L(s=j())&&(o.content=s.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",T],optional:[2,"optional","optional",T],completed:[2,"completed","completed",T],hasError:[2,"hasError","hasError",T]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],standalone:!0,features:[re,Me,Y],ngContentSelectors:p5,decls:1,vars:0,template:function(n,o){n&1&&(ye(),U(0,m5,1,0,"ng-template"))},encapsulation:2,changeDetection:0});let t=e;return t})(),ia=(()=>{let e=class e{get selectedIndex(){return this._selectedIndex}set selectedIndex(i){this.steps&&this._steps?(this._isValidIndex(i),this.selected?._markAsInteracted(),this._selectedIndex!==i&&!this._anyControlsInvalidOrPending(i)&&(i>=this._selectedIndex||this.steps.toArray()[i].editable)&&this._updateSelectedItemIndex(i)):this._selectedIndex=i}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(i){this.selectedIndex=i&&this.steps?this.steps.toArray().indexOf(i):-1}get orientation(){return this._orientation}set orientation(i){this._orientation=i,this._keyManager&&this._keyManager.withVerticalOrientation(i==="vertical")}constructor(i,n,o){this._dir=i,this._changeDetectorRef=n,this._elementRef=o,this._destroyed=new C,this.steps=new Pt,this._sortedHeaders=new Pt,this.linear=!1,this._selectedIndex=0,this.selectionChange=new B,this.selectedIndexChange=new B,this._orientation="horizontal",this._groupId=g5++}ngAfterContentInit(){this._steps.changes.pipe(Qe(this._steps),te(this._destroyed)).subscribe(i=>{this.steps.reset(i.filter(n=>n._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(Qe(this._stepHeader),te(this._destroyed)).subscribe(i=>{this._sortedHeaders.reset(i.toArray().sort((n,o)=>n._elementRef.nativeElement.compareDocumentPosition(o._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new Fn(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),(this._dir?this._dir.change:V()).pipe(Qe(this._layoutDirection()),te(this._destroyed)).subscribe(i=>this._keyManager.withHorizontalOrientation(i)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(i=>i.reset()),this._stateChanged()}_getStepLabelId(i){return`cdk-step-label-${this._groupId}-${i}`}_getStepContentId(i){return`cdk-step-content-${this._groupId}-${i}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(i){let n=i-this._selectedIndex;return n<0?this._layoutDirection()==="rtl"?"next":"previous":n>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getIndicatorType(i,n=cr.NUMBER){let o=this.steps.toArray()[i],s=this._isCurrentStep(i);return o._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(o,s):this._getGuidelineLogic(o,s,n)}_getDefaultIndicatorLogic(i,n){return i._showError()&&i.hasError&&!n?cr.ERROR:!i.completed||n?cr.NUMBER:i.editable?cr.EDIT:cr.DONE}_getGuidelineLogic(i,n,o=cr.NUMBER){return i._showError()&&i.hasError&&!n?cr.ERROR:i.completed&&!n?cr.DONE:i.completed&&n?o:i.editable&&n?cr.EDIT:o}_isCurrentStep(i){return this._selectedIndex===i}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(i){let n=this.steps.toArray();this.selectionChange.emit({selectedIndex:i,previouslySelectedIndex:this._selectedIndex,selectedStep:n[i],previouslySelectedStep:n[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(i):this._keyManager.updateActiveItem(i),this._selectedIndex=i,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(i){let n=Vt(i),o=i.keyCode,s=this._keyManager;s.activeItemIndex!=null&&!n&&(o===32||o===13)?(this.selectedIndex=s.activeItemIndex,i.preventDefault()):s.setFocusOrigin("keyboard").onKeydown(i)}_anyControlsInvalidOrPending(i){return this.linear&&i>=0?this.steps.toArray().slice(0,i).some(n=>{let o=n.stepControl;return(o?o.invalid||o.pending||!n.interacted:!n.completed)&&!n.optional&&!n._completedOverride}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let i=this._elementRef.nativeElement,n=hb();return i===n||i.contains(n)}_isValidIndex(i){return i>-1&&(!this.steps||i{let e=class e{constructor(i){this._stepper=i,this.type="submit"}};e.\u0275fac=function(n){return new(n||e)(h(ia))},e.\u0275dir=I({type:e,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(n,o){n&1&&Z("click",function(){return o._stepper.next()}),n&2&&yt("type",o.type)},inputs:{type:"type"},standalone:!0});let t=e;return t})(),rk=(()=>{let e=class e{constructor(i){this._stepper=i,this.type="button"}};e.\u0275fac=function(n){return new(n||e)(h(ia))},e.\u0275dir=I({type:e,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(n,o){n&1&&Z("click",function(){return o._stepper.previous()}),n&2&&yt("type",o.type)},inputs:{type:"type"},standalone:!0});let t=e;return t})(),ok=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[Pn]});let t=e;return t})();function v5(t,e){if(t&1&&tt(0,2),t&2){let r=$();M("ngTemplateOutlet",r.iconOverrides[r.state])("ngTemplateOutletContext",r._getIconContext())}}function b5(t,e){if(t&1&&(_(0,"span",7),we(1),y()),t&2){let r=$(2);x(),at(r._getDefaultTextForState(r.state))}}function _5(t,e){if(t&1&&(_(0,"span",8),we(1),y()),t&2){let r=$(3);x(),at(r._intl.completedLabel)}}function y5(t,e){if(t&1&&(_(0,"span",8),we(1),y()),t&2){let r=$(3);x(),at(r._intl.editableLabel)}}function w5(t,e){if(t&1&&(U(0,_5,2,1,"span",8)(1,y5,2,1,"span",8),_(2,"mat-icon",7),we(3),y()),t&2){let r=$(2);le(r.state==="done"?0:r.state==="edit"?1:-1),x(3),at(r._getDefaultTextForState(r.state))}}function x5(t,e){if(t&1&&U(0,b5,2,1,"span",7)(1,w5,4,2,"mat-icon",7),t&2){let r,i=$();le((r=i.state)==="number"?0:1)}}function D5(t,e){t&1&&(_(0,"div",4),tt(1,9),y()),t&2&&(x(),M("ngTemplateOutlet",e.template))}function C5(t,e){if(t&1&&(_(0,"div",4),we(1),y()),t&2){let r=$();x(),at(r.label)}}function E5(t,e){if(t&1&&(_(0,"div",5),we(1),y()),t&2){let r=$();x(),at(r._intl.optionalLabel)}}function I5(t,e){if(t&1&&(_(0,"div",6),we(1),y()),t&2){let r=$();x(),at(r.errorMessage)}}var ak=["*"];function S5(t,e){}function M5(t,e){if(t&1&&(W(0),U(1,S5,0,0,"ng-template",0)),t&2){let r=$();x(),M("cdkPortalOutlet",r._portal)}}var ck=(t,e)=>({step:t,i:e}),lk=t=>({animationDuration:t}),dk=(t,e)=>({value:t,params:e});function k5(t,e){t&1&&W(0)}function T5(t,e){t&1&&k(0,"div",6)}function R5(t,e){if(t&1&&(tt(0,5),U(1,T5,1,0,"div",6)),t&2){let r=e.$implicit,i=e.$index,n=e.$count;$(2);let o=gt(4);M("ngTemplateOutlet",o)("ngTemplateOutletContext",Ha(3,ck,r,i)),x(),le(i!==n-1?1:-1)}}function A5(t,e){if(t&1){let r=Ye();_(0,"div",7),Z("@horizontalStepTransition.done",function(n){be(r);let o=$(2);return _e(o._animationDone.next(n))}),tt(1,8),y()}if(t&2){let r=e.$implicit,i=e.$index,n=$(2);H("mat-horizontal-stepper-content-inactive",n.selectedIndex!==i),M("@horizontalStepTransition",Ha(8,dk,n._getAnimationDirection(i),Eg(6,lk,n._getAnimationDuration())))("id",n._getStepContentId(i)),q("aria-labelledby",n._getStepLabelId(i)),x(),M("ngTemplateOutlet",r.content)}}function O5(t,e){if(t&1&&(_(0,"div",1)(1,"div",2),eu(2,R5,2,6,null,null,Jd),y(),_(4,"div",3),eu(5,A5,2,11,"div",4,Jd),y()()),t&2){let r=$();x(2),tu(r.steps),x(3),tu(r.steps)}}function N5(t,e){if(t&1){let r=Ye();_(0,"div",9),tt(1,5),_(2,"div",10)(3,"div",11),Z("@verticalStepTransition.done",function(n){be(r);let o=$(2);return _e(o._animationDone.next(n))}),_(4,"div",12),tt(5,8),y()()()()}if(t&2){let r=e.$implicit,i=e.$index,n=e.$count,o=$(2),s=gt(4);x(),M("ngTemplateOutlet",s)("ngTemplateOutletContext",Ha(10,ck,r,i)),x(),H("mat-stepper-vertical-line",i!==n-1),x(),H("mat-vertical-stepper-content-inactive",o.selectedIndex!==i),M("@verticalStepTransition",Ha(15,dk,o._getAnimationDirection(i),Eg(13,lk,o._getAnimationDuration())))("id",o._getStepContentId(i)),q("aria-labelledby",o._getStepLabelId(i)),x(2),M("ngTemplateOutlet",r.content)}}function F5(t,e){if(t&1&&eu(0,N5,6,18,"div",9,Jd),t&2){let r=$();tu(r.steps)}}function P5(t,e){if(t&1){let r=Ye();_(0,"mat-step-header",13),Z("click",function(){let n=be(r).step;return _e(n.select())})("keydown",function(n){be(r);let o=$();return _e(o._onKeydown(n))}),y()}if(t&2){let r=e.step,i=e.i,n=$();H("mat-horizontal-stepper-header",n.orientation==="horizontal")("mat-vertical-stepper-header",n.orientation==="vertical"),M("tabIndex",n._getFocusIndex()===i?0:-1)("id",n._getStepLabelId(i))("index",i)("state",n._getIndicatorType(i,r.state))("label",r.stepLabel||r.label)("selected",n.selectedIndex===i)("active",n._stepIsNavigable(i,r))("optional",r.optional)("errorMessage",r.errorMessage)("iconOverrides",n._iconOverrides)("disableRipple",n.disableRipple||!n._stepIsNavigable(i,r))("color",r.color||n.color),q("aria-posinset",i+1)("aria-setsize",n.steps.length)("aria-controls",n._getStepContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",r.ariaLabel||null)("aria-labelledby",!r.ariaLabel&&r.ariaLabelledby?r.ariaLabelledby:null)("aria-disabled",n._stepIsNavigable(i,r)?null:!0)}}var m_=(()=>{let e=class e extends p_{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["","matStepLabel",""]],standalone:!0,features:[ae]});let t=e;return t})(),bf=(()=>{let e=class e{constructor(){this.changes=new C,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function L5(t){return t||new bf}var j5={provide:bf,deps:[[new xn,new Yn,bf]],useFactory:L5},g_=(()=>{let e=class e extends f_{constructor(i,n,o,s){super(o),this._intl=i,this._focusMonitor=n,this._intlSubscription=i.changes.subscribe(()=>s.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(i,n){i?this._focusMonitor.focusVia(this._elementRef,i,n):this._elementRef.nativeElement.focus(n)}_stringLabel(){return this.label instanceof m_?null:this.label}_templateLabel(){return this.label instanceof m_?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(i){return i=="number"?`${this.index+1}`:i=="edit"?"create":i=="error"?"warning":i}};e.\u0275fac=function(n){return new(n||e)(h(bf),h(Et),h(N),h(ue))},e.\u0275cmp=z({type:e,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(n,o){n&2&&kt("mat-"+(o.color||"primary"))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},standalone:!0,features:[ae,Y],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(n,o){if(n&1&&(k(0,"div",0),_(1,"div")(2,"div",1),U(3,v5,1,2,"ng-container",2)(4,x5,2,1),y()(),_(5,"div",3),U(6,D5,2,1,"div",4)(7,C5,2,1,"div",4)(8,E5,2,1,"div",5)(9,I5,2,1,"div",6),y()),n&2){let s;M("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disableRipple),x(),Xd("mat-step-icon-state-",o.state," mat-step-icon"),H("mat-step-icon-selected",o.selected),x(2),le(o.iconOverrides&&o.iconOverrides[o.state]?3:4),x(2),H("mat-step-label-active",o.active)("mat-step-label-selected",o.selected)("mat-step-label-error",o.state=="error"),x(),le((s=o._templateLabel())?6:o._stringLabel()?7:-1,s),x(2),le(o.optional&&o.state!="error"?8:-1),x(),le(o.state==="error"?9:-1)}},dependencies:[xi,po,Bi],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color);border-radius:var(--mat-stepper-header-hover-state-layer-shape)}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color);border-radius:var(--mat-stepper-header-focus-state-layer-shape)}@media(hover: none){.mat-step-header:hover{background:none}}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color)}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color);background-color:var(--mat-stepper-header-icon-background-color)}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color);color:var(--mat-stepper-header-error-state-icon-foreground-color)}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font);font-size:var(--mat-stepper-header-label-text-size);font-weight:var(--mat-stepper-header-label-text-weight);color:var(--mat-stepper-header-label-text-color)}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color)}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color);font-size:var(--mat-stepper-header-error-state-label-text-size)}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size);font-weight:var(--mat-stepper-header-selected-state-label-text-weight)}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color);color:var(--mat-stepper-header-selected-state-icon-foreground-color)}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color);color:var(--mat-stepper-header-edit-state-icon-foreground-color)}'],encapsulation:2,changeDetection:0});let t=e;return t})(),uk="500ms",hk="225ms",sk={horizontalStepTransition:st("horizontalStepTransition",[ke("previous",de({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),ke("current",de({transform:"none",visibility:"inherit"})),ke("next",de({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),Le("* => *",Gb([Ge("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),No("@*",Oo(),{optional:!0})]),{params:{animationDuration:uk}})]),verticalStepTransition:st("verticalStepTransition",[ke("previous",de({height:"0px",visibility:"hidden"})),ke("next",de({height:"0px",visibility:"hidden"})),ke("current",de({height:"*",visibility:"inherit"})),Le("* <=> current",Gb([Ge("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),No("@*",Oo(),{optional:!0})]),{params:{animationDuration:hk}})])},V5=(()=>{let e=class e{constructor(i){this.templateRef=i}};e.\u0275fac=function(n){return new(n||e)(h(Re))},e.\u0275dir=I({type:e,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]},standalone:!0});let t=e;return t})(),B5=(()=>{let e=class e{constructor(i){this._template=i}};e.\u0275fac=function(n){return new(n||e)(h(Re))},e.\u0275dir=I({type:e,selectors:[["ng-template","matStepContent",""]],standalone:!0});let t=e;return t})(),z5=(()=>{let e=class e extends vf{constructor(i,n,o,s){super(i,s),this._errorStateMatcher=n,this._viewContainerRef=o,this._isSelected=ne.EMPTY,this.stepLabel=void 0}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(Oe(()=>this._stepper.selectionChange.pipe(P(i=>i.selectedStep===this),Qe(this._stepper.selected===this)))).subscribe(i=>{i&&this._lazyContent&&!this._portal&&(this._portal=new Ci(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(i,n){let o=this._errorStateMatcher.isErrorState(i,n),s=!!(i&&i.invalid&&this.interacted);return o||s}};e.\u0275fac=function(n){return new(n||e)(h(lt(()=>fk)),h(nn,4),h(Ve),h(Kc,8))},e.\u0275cmp=z({type:e,selectors:[["mat-step"]],contentQueries:function(n,o,s){if(n&1&&(pe(s,m_,5),pe(s,B5,5)),n&2){let a;L(a=j())&&(o.stepLabel=a.first),L(a=j())&&(o._lazyContent=a.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],standalone:!0,features:[se([{provide:nn,useExisting:e},{provide:vf,useExisting:e}]),ae,Y],ngContentSelectors:ak,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(n,o){n&1&&(ye(),U(0,M5,2,1,"ng-template"))},dependencies:[Fo],encapsulation:2,changeDetection:0});let t=e;return t})(),fk=(()=>{let e=class e extends ia{get animationDuration(){return this._animationDuration}set animationDuration(i){this._animationDuration=/^\d+$/.test(i)?i+"ms":i}constructor(i,n,o){super(i,n,o),this._stepHeader=void 0,this._steps=void 0,this.steps=new Pt,this.animationDone=new B,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new C,this._animationDuration="",this._isServer=!b(Ae).isBrowser;let s=o.nativeElement.nodeName.toLowerCase();this.orientation=s==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:i,templateRef:n})=>this._iconOverrides[i]=n),this.steps.changes.pipe(te(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(Yi((i,n)=>i.fromState===n.fromState&&i.toState===n.toState),te(this._destroyed)).subscribe(i=>{i.toState==="current"&&this.animationDone.emit()})}_stepIsNavigable(i,n){return n.completed||this.selectedIndex===i||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:this.orientation==="horizontal"?uk:hk}};e.\u0275fac=function(n){return new(n||e)(h(bt,8),h(ue),h(N))},e.\u0275cmp=z({type:e,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(n,o,s){if(n&1&&(pe(s,z5,5),pe(s,V5,5)),n&2){let a;L(a=j())&&(o._steps=a),L(a=j())&&(o._icons=a)}},viewQuery:function(n,o){if(n&1&&De(g_,5),n&2){let s;L(s=j())&&(o._stepHeader=s)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(n,o){n&2&&(q("aria-orientation",o.orientation),H("mat-stepper-horizontal",o.orientation==="horizontal")("mat-stepper-vertical",o.orientation==="vertical")("mat-stepper-label-position-end",o.orientation==="horizontal"&&o.labelPosition=="end")("mat-stepper-label-position-bottom",o.orientation==="horizontal"&&o.labelPosition=="bottom")("mat-stepper-header-position-bottom",o.headerPosition==="bottom"))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],standalone:!0,features:[se([{provide:ia,useExisting:e}]),ae,Y],ngContentSelectors:ak,decls:5,vars:2,consts:[["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","mat-horizontal-stepper-content-inactive"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(n,o){if(n&1&&(ye(),U(0,k5,1,0)(1,O5,7,0,"div",1)(2,F5,2,0)(3,P5,1,23,"ng-template",null,0,Er)),n&2){let s;le(o._isServer?0:-1),x(),le((s=o.orientation)==="horizontal"?1:s==="vertical"?2:-1)}},dependencies:[po,g_],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font);background:var(--mat-stepper-container-color)}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color);top:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[sk.horizontalStepTransition,sk.verticalStepTransition]},changeDetection:0});let t=e;return t})(),ice=(()=>{let e=class e extends nk{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(n,o){n&2&&yt("type",o.type)},standalone:!0,features:[ae]});let t=e;return t})(),nce=(()=>{let e=class e extends rk{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(n,o){n&2&&yt("type",o.type)},standalone:!0,features:[ae]});let t=e;return t})(),pk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[j5,nn],imports:[ee,Gt,Vr,ok,Wh,rn,fk,g_,ee]});let t=e;return t})();var H5=[[["caption"]],[["colgroup"],["col"]],"*"],$5=["caption","colgroup, col","*"];function G5(t,e){t&1&&W(0,2)}function W5(t,e){t&1&&(_(0,"thead",0),tt(1,1),y(),_(2,"tbody",0),tt(3,2)(4,3),y(),_(5,"tfoot",0),tt(6,4),y())}function q5(t,e){t&1&&tt(0,1)(1,2)(2,3)(3,4)}var sn=new g("CDK_TABLE");var Cf=(()=>{let e=class e{constructor(i){this.template=i}};e.\u0275fac=function(n){return new(n||e)(h(Re))},e.\u0275dir=I({type:e,selectors:[["","cdkCellDef",""]],standalone:!0});let t=e;return t})(),Ef=(()=>{let e=class e{constructor(i){this.template=i}};e.\u0275fac=function(n){return new(n||e)(h(Re))},e.\u0275dir=I({type:e,selectors:[["","cdkHeaderCellDef",""]],standalone:!0});let t=e;return t})(),vk=(()=>{let e=class e{constructor(i){this.template=i}};e.\u0275fac=function(n){return new(n||e)(h(Re))},e.\u0275dir=I({type:e,selectors:[["","cdkFooterCellDef",""]],standalone:!0});let t=e;return t})(),na=(()=>{let e=class e{get name(){return this._name}set name(i){this._setNameInput(i)}get sticky(){return this._sticky}set sticky(i){i!==this._sticky&&(this._sticky=i,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(i){i!==this._stickyEnd&&(this._stickyEnd=i,this._hasStickyChanged=!0)}constructor(i){this._table=i,this._hasStickyChanged=!1,this._sticky=!1,this._stickyEnd=!1}hasStickyChanged(){let i=this._hasStickyChanged;return this.resetStickyChanged(),i}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(i){i&&(this._name=i,this.cssClassFriendlyName=i.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}};e.\u0275fac=function(n){return new(n||e)(h(sn,8))},e.\u0275dir=I({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,o,s){if(n&1&&(pe(s,Cf,5),pe(s,Ef,5),pe(s,vk,5)),n&2){let a;L(a=j())&&(o.cell=a.first),L(a=j())&&(o.headerCell=a.first),L(a=j())&&(o.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",T],stickyEnd:[2,"stickyEnd","stickyEnd",T]},standalone:!0,features:[se([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),re]});let t=e;return t})(),yf=class{constructor(e,r){r.nativeElement.classList.add(...e._columnCssClassName)}},bk=(()=>{let e=class e extends yf{constructor(i,n){super(i,n)}};e.\u0275fac=function(n){return new(n||e)(h(na),h(N))},e.\u0275dir=I({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[ae]});let t=e;return t})();var _k=(()=>{let e=class e extends yf{constructor(i,n){super(i,n);let o=i._table?._getCellRole();o&&n.nativeElement.setAttribute("role",o)}};e.\u0275fac=function(n){return new(n||e)(h(na),h(N))},e.\u0275dir=I({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[ae]});let t=e;return t})(),wf=class{constructor(){this.tasks=[],this.endTasks=[]}},xf=new g("_COALESCED_STYLE_SCHEDULER"),b_=(()=>{let e=class e{constructor(i){this._currentSchedule=null,this._ngZone=b(F)}schedule(i){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(i)}scheduleEnd(i){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(i)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new wf,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let i=this._currentSchedule;this._currentSchedule=new wf;for(let n of i.tasks)n();for(let n of i.endTasks)n()}this._currentSchedule=null})))}};e.\u0275fac=function(n){return new(n||e)(m(F))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var __=(()=>{let e=class e{constructor(i,n){this.template=i,this._differs=n}ngOnChanges(i){if(!this._columnsDiffer){let n=i.columns&&i.columns.currentValue||[];this._columnsDiffer=this._differs.find(n).create(),this._columnsDiffer.diff(n)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(i){return this instanceof Xc?i.headerCell.template:this instanceof y_?i.footerCell.template:i.cell.template}};e.\u0275fac=function(n){return new(n||e)(h(Re),h(Sn))},e.\u0275dir=I({type:e,features:[Me]});let t=e;return t})(),Xc=(()=>{let e=class e extends __{get sticky(){return this._sticky}set sticky(i){i!==this._sticky&&(this._sticky=i,this._hasStickyChanged=!0)}constructor(i,n,o){super(i,n),this._table=o,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(i){super.ngOnChanges(i)}hasStickyChanged(){let i=this._hasStickyChanged;return this.resetStickyChanged(),i}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(n){return new(n||e)(h(Re),h(Sn),h(sn,8))},e.\u0275dir=I({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",T]},standalone:!0,features:[re,ae,Me]});let t=e;return t})(),y_=(()=>{let e=class e extends __{get sticky(){return this._sticky}set sticky(i){i!==this._sticky&&(this._sticky=i,this._hasStickyChanged=!0)}constructor(i,n,o){super(i,n),this._table=o,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(i){super.ngOnChanges(i)}hasStickyChanged(){let i=this._hasStickyChanged;return this.resetStickyChanged(),i}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(n){return new(n||e)(h(Re),h(Sn),h(sn,8))},e.\u0275dir=I({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",T]},standalone:!0,features:[re,ae,Me]});let t=e;return t})(),If=(()=>{let e=class e extends __{constructor(i,n,o){super(i,n),this._table=o}};e.\u0275fac=function(n){return new(n||e)(h(Re),h(Sn),h(sn,8))},e.\u0275dir=I({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},standalone:!0,features:[ae]});let t=e;return t})(),jo=(()=>{let e=class e{constructor(i){this._viewContainer=i,e.mostRecentCellOutlet=this}ngOnDestroy(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}};e.mostRecentCellOutlet=null,e.\u0275fac=function(n){return new(n||e)(h(Ve))},e.\u0275dir=I({type:e,selectors:[["","cdkCellOutlet",""]],standalone:!0});let t=e;return t})(),w_=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[Y],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&tt(0,0)},dependencies:[jo],encapsulation:2});let t=e;return t})();var x_=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[Y],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&tt(0,0)},dependencies:[jo],encapsulation:2});let t=e;return t})(),yk=(()=>{let e=class e{constructor(i){this.templateRef=i,this._contentClassName="cdk-no-data-row"}};e.\u0275fac=function(n){return new(n||e)(h(Re))},e.\u0275dir=I({type:e,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0});let t=e;return t})(),mk=["top","bottom","left","right"],v_=class{constructor(e,r,i,n,o=!0,s=!0,a){this._isNativeHtmlTable=e,this._stickCellCss=r,this.direction=i,this._coalescedStyleScheduler=n,this._isBrowser=o,this._needsPositionStickyOnElement=s,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${r}-border-elem-top`,bottom:`${r}-border-elem-bottom`,left:`${r}-border-elem-left`,right:`${r}-border-elem-right`}}clearStickyPositioning(e,r){let i=[];for(let n of e)if(n.nodeType===n.ELEMENT_NODE){i.push(n);for(let o=0;o{for(let n of i)this._removeStickyStyle(n,r)})}updateStickyColumns(e,r,i,n=!0){if(!e.length||!this._isBrowser||!(r.some(o=>o)||i.some(o=>o))){this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}));return}this._coalescedStyleScheduler.schedule(()=>{let o=e[0],s=o.children.length,a=this._getCellWidths(o,n),c=this._getStickyStartColumnPositions(a,r),l=this._getStickyEndColumnPositions(a,i),d=r.lastIndexOf(!0),u=i.indexOf(!0),f=this.direction==="rtl",p=f?"right":"left",v=f?"left":"right";for(let S of e)for(let E=0;Er[E]?S:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:u===-1?[]:a.slice(u).map((S,E)=>i[E+u]?S:null).reverse()}))})}stickRows(e,r,i){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{let n=i==="bottom"?e.slice().reverse():e,o=i==="bottom"?r.slice().reverse():r,s=[],a=[],c=[];for(let d=0,u=0;d{let i=e.querySelector("tfoot");i&&(r.some(n=>!n)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1))})}_removeStickyStyle(e,r){for(let n of r)e.style[n]="",e.classList.remove(this._borderCellCss[n]);mk.some(n=>r.indexOf(n)===-1&&e.style[n])?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}_addStickyStyle(e,r,i,n){e.classList.add(this._stickCellCss),n&&e.classList.add(this._borderCellCss[r]),e.style[r]=`${i}px`,e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(e){let r={top:100,bottom:10,left:1,right:1},i=0;for(let n of mk)e.style[n]&&(i+=r[n]);return i?`${i}`:""}_getCellWidths(e,r=!0){if(!r&&this._cachedCellWidths.length)return this._cachedCellWidths;let i=[],n=e.children;for(let o=0;o0;o--)r[o]&&(i[o]=n,n+=e[o]);return i}};var Df=new g("CDK_SPL");var D_=(()=>{let e=class e{constructor(i,n){this.viewContainer=i,this.elementRef=n;let o=b(sn);o._rowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(h(Ve),h(N))},e.\u0275dir=I({type:e,selectors:[["","rowOutlet",""]],standalone:!0});let t=e;return t})(),C_=(()=>{let e=class e{constructor(i,n){this.viewContainer=i,this.elementRef=n;let o=b(sn);o._headerRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(h(Ve),h(N))},e.\u0275dir=I({type:e,selectors:[["","headerRowOutlet",""]],standalone:!0});let t=e;return t})(),E_=(()=>{let e=class e{constructor(i,n){this.viewContainer=i,this.elementRef=n;let o=b(sn);o._footerRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(h(Ve),h(N))},e.\u0275dir=I({type:e,selectors:[["","footerRowOutlet",""]],standalone:!0});let t=e;return t})(),I_=(()=>{let e=class e{constructor(i,n){this.viewContainer=i,this.elementRef=n;let o=b(sn);o._noDataRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(h(Ve),h(N))},e.\u0275dir=I({type:e,selectors:[["","noDataRowOutlet",""]],standalone:!0});let t=e;return t})();var S_=(()=>{let e=class e{_getCellRole(){if(this._cellRoleInternal===void 0){let i=this._elementRef.nativeElement.getAttribute("role"),n=i==="grid"||i==="treegrid"?"gridcell":"cell";this._cellRoleInternal=this._isNativeHtmlTable&&n==="cell"?null:n}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(i){this._trackByFn=i}get dataSource(){return this._dataSource}set dataSource(i){this._dataSource!==i&&this._switchDataSource(i)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(i){this._multiTemplateDataRows=i,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(i){this._fixedLayout=i,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(i,n,o,s,a,c,l,d,u,f,p,v){this._differs=i,this._changeDetectorRef=n,this._elementRef=o,this._dir=a,this._platform=l,this._viewRepeater=d,this._coalescedStyleScheduler=u,this._viewportRuler=f,this._stickyPositioningListener=p,this._onDestroy=new C,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._hasAllOutlets=!1,this._hasInitialized=!1,this._cellRoleInternal=void 0,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new B,this.viewChange=new Pe({start:0,end:Number.MAX_VALUE}),this._injector=b(Se),s||o.nativeElement.setAttribute("role","table"),this._document=c,this._isServer=!l.isBrowser,this._isNativeHtmlTable=o.nativeElement.nodeName==="TABLE"}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((i,n)=>this.trackBy?this.trackBy(n.dataIndex,n.data):n),this._viewportRuler.change().pipe(te(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(i=>{i?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),ef(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let i=this._dataDiffer.diff(this._renderRows);if(!i){this._updateNoDataRow(),this.contentChanged.next();return}let n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(i,n,(o,s,a)=>this._getEmbeddedViewArgs(o.item,a),o=>o.item.data,o=>{o.operation===Zs.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),i.forEachIdentityChange(o=>{let s=n.get(o.currentIndex);s.context.$implicit=o.item.data}),this._updateNoDataRow(),$t(()=>{this.updateStickyColumnStyles()},{injector:this._injector}),this.contentChanged.next()}addColumnDef(i){this._customColumnDefs.add(i)}removeColumnDef(i){this._customColumnDefs.delete(i)}addRowDef(i){this._customRowDefs.add(i)}removeRowDef(i){this._customRowDefs.delete(i)}addHeaderRowDef(i){this._customHeaderRowDefs.add(i),this._headerRowDefChanged=!0}removeHeaderRowDef(i){this._customHeaderRowDefs.delete(i),this._headerRowDefChanged=!0}addFooterRowDef(i){this._customFooterRowDefs.add(i),this._footerRowDefChanged=!0}removeFooterRowDef(i){this._customFooterRowDefs.delete(i),this._footerRowDefChanged=!0}setNoDataRow(i){this._customNoDataRow=i}updateStickyHeaderRowStyles(){let i=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=gk(this._headerRowOutlet,"thead");o&&(o.style.display=i.length?"":"none")}let n=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(i,["top"]),this._stickyStyler.stickRows(i,n,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let i=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=gk(this._footerRowOutlet,"tfoot");o&&(o.style.display=i.length?"":"none")}let n=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(i,["bottom"]),this._stickyStyler.stickRows(i,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let i=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...i,...n,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),i.forEach((s,a)=>{this._addStickyColumnStyles([s],this._headerRowDefs[a])}),this._rowDefs.forEach(s=>{let a=[];for(let c=0;c{this._addStickyColumnStyles([s],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(s=>s.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let n=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||n,this._forceRecalculateCellWidths=n,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){let i=[],n=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o{let c=o&&o.has(a)?o.get(a):[];if(c.length){let l=c.shift();return l.dataIndex=n,l}else return{data:i,rowDef:a,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),_f(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=_f(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=_f(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=_f(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let i=this._rowDefs.filter(n=>!n.when);!this.multiTemplateDataRows&&i.length>1,this._defaultRowDef=i[0]}_renderUpdatedColumns(){let i=(a,c)=>a||!!c.getColumnsDiff(),n=this._rowDefs.reduce(i,!1);n&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(i,!1);o&&this._forceRenderHeaderRows();let s=this._footerRowDefs.reduce(i,!1);return s&&this._forceRenderFooterRows(),n||o||s}_switchDataSource(i){this._data=[],ef(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),i||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=i}_observeRenderChanges(){if(!this.dataSource)return;let i;ef(this.dataSource)?i=this.dataSource.connect(this):Zr(this.dataSource)?i=this.dataSource:Array.isArray(this.dataSource)&&(i=V(this.dataSource)),this._renderChangeSubscription=i.pipe(te(this._onDestroy)).subscribe(n=>{this._data=n||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((i,n)=>this._renderRow(this._headerRowOutlet,i,n)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((i,n)=>this._renderRow(this._footerRowOutlet,i,n)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(i,n){let o=Array.from(n.columns||[]).map(c=>{let l=this._columnDefsByName.get(c);return l}),s=o.map(c=>c.sticky),a=o.map(c=>c.stickyEnd);this._stickyStyler.updateStickyColumns(i,s,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(i){let n=[];for(let o=0;o!s.when||s.when(n,i));else{let s=this._rowDefs.find(a=>a.when&&a.when(n,i))||this._defaultRowDef;s&&o.push(s)}return o.length,o}_getEmbeddedViewArgs(i,n){let o=i.rowDef,s={$implicit:i.data};return{templateRef:o.template,context:s,index:n}}_renderRow(i,n,o,s={}){let a=i.viewContainer.createEmbeddedView(n.template,s,o);return this._renderCellTemplateForItem(n,s),a}_renderCellTemplateForItem(i,n){for(let o of this._getCellTemplates(i))jo.mostRecentCellOutlet&&jo.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let i=this._rowOutlet.viewContainer;for(let n=0,o=i.length;n{let o=this._columnDefsByName.get(n);return i.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let i=(n,o)=>n||o.hasStickyChanged();this._headerRowDefs.reduce(i,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(i,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(i,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let i=this._dir?this._dir.value:"ltr";this._stickyStyler=new v_(this._isNativeHtmlTable,this.stickyCssClass,i,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:V()).pipe(te(this._onDestroy)).subscribe(n=>{this._stickyStyler.direction=n,this.updateStickyColumnStyles()})}_getOwnDefs(i){return i.filter(n=>!n._table||n._table===this)}_updateNoDataRow(){let i=this._customNoDataRow||this._noDataRow;if(!i)return;let n=this._rowOutlet.viewContainer.length===0;if(n===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(n){let s=o.createEmbeddedView(i.templateRef),a=s.rootNodes[0];s.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(i._contentClassName))}else o.clear();this._isShowingNoDataRow=n,this._changeDetectorRef.markForCheck()}};e.\u0275fac=function(n){return new(n||e)(h(Sn),h(ue),h(N),pt("role"),h(bt,8),h(K),h(Ae),h(Gc),h(xf),h(Bn),h(Df,12),h(F,8))},e.\u0275cmp=z({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(n,o,s){if(n&1&&(pe(s,yk,5),pe(s,na,5),pe(s,If,5),pe(s,Xc,5),pe(s,y_,5)),n&2){let a;L(a=j())&&(o._noDataRow=a.first),L(a=j())&&(o._contentColumnDefs=a),L(a=j())&&(o._contentRowDefs=a),L(a=j())&&(o._contentHeaderRowDefs=a),L(a=j())&&(o._contentFooterRowDefs=a)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(n,o){n&2&&H("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",T],fixedLayout:[2,"fixedLayout","fixedLayout",T]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[se([{provide:sn,useExisting:e},{provide:Gc,useClass:Qs},{provide:xf,useClass:b_},{provide:Df,useValue:null}]),re,Y],ngContentSelectors:$5,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(ye(H5),W(0),W(1,1),U(2,G5,1,0)(3,W5,7,0)(4,q5,4,0)),n&2&&(x(2),le(o._isServer?2:-1),x(),le(o._isNativeHtmlTable?3:4))},dependencies:[C_,D_,I_,E_],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2});let t=e;return t})();function _f(t,e){return t.concat(Array.from(e))}function gk(t,e){let r=e.toUpperCase(),i=t.viewContainer.element.nativeElement;for(;i;){let n=i.nodeType===1?i.nodeName:null;if(n===r)return i;if(n==="TABLE")break;i=i.parentNode}return null}var wk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[Wc]});let t=e;return t})();var Y5=[[["caption"]],[["colgroup"],["col"]],"*"],Z5=["caption","colgroup, col","*"];function Q5(t,e){t&1&&W(0,2)}function K5(t,e){t&1&&(_(0,"thead",0),tt(1,1),y(),_(2,"tbody",2),tt(3,3)(4,4),y(),_(5,"tfoot",0),tt(6,5),y())}function X5(t,e){t&1&&tt(0,1)(1,3)(2,4)(3,5)}var $ce=(()=>{let e=class e extends S_{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275cmp=z({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(n,o){n&2&&H("mdc-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],standalone:!0,features:[se([{provide:S_,useExisting:e},{provide:sn,useExisting:e},{provide:xf,useClass:b_},{provide:Gc,useClass:Qs},{provide:Df,useValue:null}]),ae,Y],ngContentSelectors:Z5,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(ye(Y5),W(0),W(1,1),U(2,Q5,1,0)(3,K5,7,0)(4,X5,4,0)),n&2&&(x(2),le(o._isServer?2:-1),x(),le(o._isNativeHtmlTable?3:4))},dependencies:[C_,D_,I_,E_],styles:[".mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2});let t=e;return t})(),Gce=(()=>{let e=class e extends Cf{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["","matCellDef",""]],standalone:!0,features:[se([{provide:Cf,useExisting:e}]),ae]});let t=e;return t})(),Wce=(()=>{let e=class e extends Ef{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["","matHeaderCellDef",""]],standalone:!0,features:[se([{provide:Ef,useExisting:e}]),ae]});let t=e;return t})();var qce=(()=>{let e=class e extends na{get name(){return this._name}set name(i){this._setNameInput(i)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},standalone:!0,features:[se([{provide:na,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),ae]});let t=e;return t})(),Yce=(()=>{let e=class e extends bk{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],standalone:!0,features:[ae]});let t=e;return t})();var Zce=(()=>{let e=class e extends _k{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[ae]});let t=e;return t})();var Qce=(()=>{let e=class e extends Xc{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",T]},standalone:!0,features:[se([{provide:Xc,useExisting:e}]),re,ae]});let t=e;return t})();var Kce=(()=>{let e=class e extends If{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275dir=I({type:e,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},standalone:!0,features:[se([{provide:If,useExisting:e}]),ae]});let t=e;return t})(),Xce=(()=>{let e=class e extends w_{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275cmp=z({type:e,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],standalone:!0,features:[se([{provide:w_,useExisting:e}]),ae,Y],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&tt(0,0)},dependencies:[jo],encapsulation:2});let t=e;return t})();var Jce=(()=>{let e=class e extends x_{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=qe(e)))(o||e)}})(),e.\u0275cmp=z({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[se([{provide:x_,useExisting:e}]),ae,Y],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&tt(0,0)},dependencies:[jo],encapsulation:2});let t=e;return t})();var M_=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({imports:[ee,wk,ee]});let t=e;return t})(),J5=9007199254740991,xk=class extends Jh{get data(){return this._data.value}set data(e){e=Array.isArray(e)?e:[],this._data.next(e),this._renderChangesSubscription||this._filterData(e)}get filter(){return this._filter.value}set filter(e){this._filter.next(e),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(e){this._sort=e,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(e){this._paginator=e,this._updateChangeSubscription()}constructor(e=[]){super(),this._renderData=new Pe([]),this._filter=new Pe(""),this._internalPageChanges=new C,this._renderChangesSubscription=null,this.sortingDataAccessor=(r,i)=>{let n=r[i];if(fb(n)){let o=Number(n);return o{let n=i.active,o=i.direction;return!n||o==""?r:r.sort((s,a)=>{let c=this.sortingDataAccessor(s,n),l=this.sortingDataAccessor(a,n),d=typeof c,u=typeof l;d!==u&&(d==="number"&&(c+=""),u==="number"&&(l+=""));let f=0;return c!=null&&l!=null?c>l?f=1:c{let n=Object.keys(r).reduce((s,a)=>s+r[a]+"\u25EC","").toLowerCase(),o=i.trim().toLowerCase();return n.indexOf(o)!=-1},this._data=new Pe(e),this._updateChangeSubscription()}_updateChangeSubscription(){let e=this._sort?Ze(this._sort.sortChange,this._sort.initialized):V(null),r=this._paginator?Ze(this._paginator.page,this._internalPageChanges,this._paginator.initialized):V(null),i=this._data,n=qi([i,this._filter]).pipe(P(([a])=>this._filterData(a))),o=qi([n,e]).pipe(P(([a])=>this._orderData(a))),s=qi([o,r]).pipe(P(([a])=>this._pageData(a)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=s.subscribe(a=>this._renderData.next(a))}_filterData(e){return this.filteredData=this.filter==null||this.filter===""?e:e.filter(r=>this.filterPredicate(r,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(e){return this.sort?this.sortData(e.slice(),this.sort):e}_pageData(e){if(!this.paginator)return e;let r=this.paginator.pageIndex*this.paginator.pageSize;return e.slice(r,r+this.paginator.pageSize)}_updatePaginator(e){Promise.resolve().then(()=>{let r=this.paginator;if(r&&(r.length=e,r.pageIndex>0)){let i=Math.ceil(r.length/r.pageSize)-1||0,n=Math.min(r.pageIndex,i);n!==r.pageIndex&&(r.pageIndex=n,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};function Lk(t){let e=t.cloneNode(!0),r=e.querySelectorAll("[id]"),i=t.nodeName.toLowerCase();e.removeAttribute("id");for(let n=0;n=i&&r<=n&&e>=o&&e<=s}function el(t,e,r){t.top+=e,t.bottom=t.top+t.height,t.left+=r,t.right=t.left+t.width}function Ik(t,e,r,i){let{top:n,right:o,bottom:s,left:a,width:c,height:l}=t,d=c*e,u=l*e;return i>n-u&&ia-d&&r{this.positions.set(r,{scrollPosition:{top:r.scrollTop,left:r.scrollLeft},clientRect:F_(r)})})}handleScroll(e){let r=At(e),i=this.positions.get(r);if(!i)return null;let n=i.scrollPosition,o,s;if(r===this._document){let l=this.getViewportScrollPosition();o=l.top,s=l.left}else o=r.scrollTop,s=r.scrollLeft;let a=n.top-o,c=n.left-s;return this.positions.forEach((l,d)=>{l.clientRect&&r!==d&&r.contains(d)&&el(l.clientRect,a,c)}),n.top=o,n.left=s,{top:a,left:c}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function jk(t,e){let r=t.rootNodes;if(r.length===1&&r[0].nodeType===e.ELEMENT_NODE)return r[0];let i=e.createElement("div");return r.forEach(n=>i.appendChild(n)),i}function P_(t,e,r){for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];n?t.setProperty(i,n,r?.has(i)?"important":""):t.removeProperty(i)}return t}function ra(t,e){let r=e?"":"none";P_(t.style,{"touch-action":e?"":"none","-webkit-user-drag":e?"":"none","-webkit-tap-highlight-color":e?"":"transparent","user-select":r,"-ms-user-select":r,"-webkit-user-select":r,"-moz-user-select":r})}function Sk(t,e,r){P_(t.style,{position:e?"":"fixed",top:e?"":"0",opacity:e?"":"0",left:e?"":"-999em"},r)}function Rf(t,e){return e&&e!="none"?t+" "+e:t}function Mk(t,e){t.style.width=`${e.width}px`,t.style.height=`${e.height}px`,t.style.transform=Af(e.left,e.top)}function Af(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function kk(t){let e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function t3(t){let e=getComputedStyle(t),r=k_(e,"transition-property"),i=r.find(a=>a==="transform"||a==="all");if(!i)return 0;let n=r.indexOf(i),o=k_(e,"transition-duration"),s=k_(e,"transition-delay");return kk(o[n])+kk(s[n])}function k_(t,e){return t.getPropertyValue(e).split(",").map(i=>i.trim())}var i3=new Set(["position"]),R_=class{constructor(e,r,i,n,o,s,a,c,l){this._document=e,this._rootElement=r,this._direction=i,this._initialDomRect=n,this._previewTemplate=o,this._previewClass=s,this._pickupPositionOnPage=a,this._initialTransform=c,this._zIndex=l}attach(e){this._preview=this._createPreview(),e.appendChild(this._preview),"showPopover"in this._preview&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(e){this._preview.style.transform=e}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(e){this._preview.classList.add(e)}getTransitionDuration(){return t3(this._preview)}addEventListener(e,r){this._preview.addEventListener(e,r)}removeEventListener(e,r){this._preview.removeEventListener(e,r)}_createPreview(){let e=this._previewTemplate,r=this._previewClass,i=e?e.template:null,n;if(i&&e){let o=e.matchSize?this._initialDomRect:null,s=e.viewContainer.createEmbeddedView(i,e.context);s.detectChanges(),n=jk(s,this._document),this._previewEmbeddedView=s,e.matchSize?Mk(n,o):n.style.transform=Af(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else n=Lk(this._rootElement),Mk(n,this._initialDomRect),this._initialTransform&&(n.style.transform=this._initialTransform);return P_(n.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},i3),ra(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("popover","manual"),n.setAttribute("dir",this._direction),r&&(Array.isArray(r)?r.forEach(o=>n.classList.add(o)):n.classList.add(r)),n}},Tk=jt({passive:!0}),Sf=jt({passive:!1}),Rk=jt({passive:!1,capture:!0}),n3=800,Ak=new Set(["position"]),A_=class{get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(e){e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(r=>ra(r,e)))}constructor(e,r,i,n,o,s){this._config=r,this._document=i,this._ngZone=n,this._viewportRuler=o,this._dragDropRegistry=s,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=Ni(!1),this._moveEvents=new C,this._pointerMoveSubscription=ne.EMPTY,this._pointerUpSubscription=ne.EMPTY,this._scrollSubscription=ne.EMPTY,this._resizeSubscription=ne.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new C,this.started=new C,this.released=new C,this.ended=new C,this.entered=new C,this.exited=new C,this.dropped=new C,this.moved=this._moveEvents,this._pointerDown=a=>{if(this.beforeStarted.next(),this._handles.length){let c=this._getTargetHandle(a);c&&!this._disabledHandles.has(c)&&!this.disabled&&this._initializeDragSequence(c,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{let c=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging()){let d=Math.abs(c.x-this._pickupPositionOnPage.x),u=Math.abs(c.y-this._pickupPositionOnPage.y);if(d+u>=this._config.dragStartThreshold){let p=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),v=this._dropContainer;if(!p){this._endDragSequence(a);return}(!v||!v.isDragging()&&!v.isReceiving())&&(a.cancelable&&a.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(a)))}return}a.cancelable&&a.preventDefault();let l=this._getConstrainedPointerPosition(c);if(this._hasMoved=!0,this._lastKnownPointerPosition=c,this._updatePointerDirectionDelta(l),this._dropContainer)this._updateActiveDropContainer(l,c);else{let d=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,u=this._activeTransform;u.x=l.x-d.x+this._passiveTransform.x,u.y=l.y-d.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:l,event:a,distance:this._getDragDistance(l),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this._nativeDragStart=a=>{if(this._handles.length){let c=this._getTargetHandle(a);c&&!this._disabledHandles.has(c)&&!this.disabled&&a.preventDefault()}else this.disabled||a.preventDefault()},this.withRootElement(e).withParent(r.parentDragRef||null),this._parentPositions=new Tf(i),s.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(e){this._handles=e.map(i=>ot(i)),this._handles.forEach(i=>ra(i,this.disabled)),this._toggleNativeDragInteractions();let r=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&r.add(i)}),this._disabledHandles=r,this}withPreviewTemplate(e){return this._previewTemplate=e,this}withPlaceholderTemplate(e){return this._placeholderTemplate=e,this}withRootElement(e){let r=ot(e);return r!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{r.addEventListener("mousedown",this._pointerDown,Sf),r.addEventListener("touchstart",this._pointerDown,Tk),r.addEventListener("dragstart",this._nativeDragStart,Sf)}),this._initialTransform=void 0,this._rootElement=r),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(e){return this._boundaryElement=e?ot(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(e){return this._parentDragRef=e,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),ra(e,!0))}enableHandle(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),ra(e,this.disabled))}withDirection(e){return this._direction=e,this}_withDropContainer(e){this._dropContainer=e}getFreeDragPosition(){let e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}setFreeDragPosition(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}withPreviewContainer(e){return this._previewContainer=e,this}_sortFromLastPointerPosition(){let e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._getShadowRoot()?.removeEventListener("selectstart",Nk,Rk)}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(e){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:e}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(e),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let r=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(r),dropPoint:r,event:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(e){Jc(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let r=this._getShadowRoot(),i=this._dropContainer;if(r&&this._ngZone.runOutsideAngular(()=>{r.addEventListener("selectstart",Nk,Rk)}),i){let n=this._rootElement,o=n.parentNode,s=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment("");o.insertBefore(a,n),this._initialTransform=n.style.transform||"",this._preview=new R_(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3),this._preview.attach(this._getPreviewInsertionPoint(o,r)),Sk(n,!1,Ak),this._document.body.appendChild(o.replaceChild(s,n)),this.started.next({source:this,event:e}),i.start(),this._initialContainer=i,this._initialIndex=i.getItemIndex(this)}else this.started.next({source:this,event:e}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(i?i.getScrollableParents():[])}_initializeDragSequence(e,r){this._parentDragRef&&r.stopPropagation();let i=this.isDragging(),n=Jc(r),o=!n&&r.button!==0,s=this._rootElement,a=At(r),c=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+n3>Date.now(),l=n?ko(r):Mo(r);if(a&&a.draggable&&r.type==="mousedown"&&r.preventDefault(),i||o||c||l)return;if(this._handles.length){let f=s.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=F_(this._boundaryElement));let d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,e,r);let u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(r);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,r)}_cleanupDragArtifacts(e){Sk(this._rootElement,!0,Ak),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let r=this._dropContainer,i=r.getItemIndex(this),n=this._getPointerPositionOnPage(e),o=this._getDragDistance(n),s=r._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:o,dropPoint:n,event:e}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:r,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:o,dropPoint:n,event:e}),r.drop(this,i,this._initialIndex,this._initialContainer,s,o,n,e),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:e,y:r},{x:i,y:n}){let o=this._initialContainer._getSiblingContainerFromPosition(this,e,r);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(e,r)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,e,r,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,e,r,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(e,r):this._applyPreviewTransform(e-this._pickupPositionInElement.x,r-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let e=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(e.left,e.top);let r=this._preview.getTransitionDuration();return r===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{let n=s=>{(!s||At(s)===this._preview&&s.propertyName==="transform")&&(this._preview?.removeEventListener("transitionend",n),i(),clearTimeout(o))},o=setTimeout(n,r*1.5);this._preview.addEventListener("transitionend",n)}))}_createPlaceholderElement(){let e=this._placeholderTemplate,r=e?e.template:null,i;return r?(this._placeholderRef=e.viewContainer.createEmbeddedView(r,e.context),this._placeholderRef.detectChanges(),i=jk(this._placeholderRef,this._document)):i=Lk(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(e,r,i){let n=r===this._rootElement?null:r,o=n?n.getBoundingClientRect():e,s=Jc(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition(),c=s.pageX-o.left-a.left,l=s.pageY-o.top-a.top;return{x:o.left-e.left+c,y:o.top-e.top+l}}_getPointerPositionOnPage(e){let r=this._getViewportScrollPosition(),i=Jc(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,n=i.pageX-r.left,o=i.pageY-r.top;if(this._ownerSVGElement){let s=this._ownerSVGElement.getScreenCTM();if(s){let a=this._ownerSVGElement.createSVGPoint();return a.x=n,a.y=o,a.matrixTransform(s.inverse())}}return{x:n,y:o}}_getConstrainedPointerPosition(e){let r=this._dropContainer?this._dropContainer.lockAxis:null,{x:i,y:n}=this.constrainPosition?this.constrainPosition(e,this,this._initialDomRect,this._pickupPositionInElement):e;if(this.lockAxis==="x"||r==="x"?n=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||r==="y")&&(i=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:o,y:s}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,a=this._boundaryRect,{width:c,height:l}=this._getPreviewRect(),d=a.top+s,u=a.bottom-(l-s),f=a.left+o,p=a.right-(c-o);i=Ok(i,f,p),n=Ok(n,d,u)}return{x:i,y:n}}_updatePointerDirectionDelta(e){let{x:r,y:i}=e,n=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,s=Math.abs(r-o.x),a=Math.abs(i-o.y);return s>this._config.pointerDirectionChangeThreshold&&(n.x=r>o.x?1:-1,o.x=r),a>this._config.pointerDirectionChangeThreshold&&(n.y=i>o.y?1:-1,o.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,ra(this._rootElement,e))}_removeRootElementListeners(e){e.removeEventListener("mousedown",this._pointerDown,Sf),e.removeEventListener("touchstart",this._pointerDown,Tk),e.removeEventListener("dragstart",this._nativeDragStart,Sf)}_applyRootElementTransform(e,r){let i=Af(e,r),n=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=n.transform&&n.transform!="none"?n.transform:""),n.transform=Rf(i,this._initialTransform)}_applyPreviewTransform(e,r){let i=this._previewTemplate?.template?void 0:this._initialTransform,n=Af(e,r);this._preview.setTransform(Rf(n,i))}_getDragDistance(e){let r=this._pickupPositionOnPage;return r?{x:e.x-r.x,y:e.y-r.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:e,y:r}=this._passiveTransform;if(e===0&&r===0||this.isDragging()||!this._boundaryElement)return;let i=this._rootElement.getBoundingClientRect(),n=this._boundaryElement.getBoundingClientRect();if(n.width===0&&n.height===0||i.width===0&&i.height===0)return;let o=n.left-i.left,s=i.right-n.right,a=n.top-i.top,c=i.bottom-n.bottom;n.width>i.width?(o>0&&(e+=o),s>0&&(e-=s)):e=0,n.height>i.height?(a>0&&(r+=a),c>0&&(r-=c)):r=0,(e!==this._passiveTransform.x||r!==this._passiveTransform.y)&&this.setFreeDragPosition({y:r,x:e})}_getDragStartDelay(e){let r=this.dragStartDelay;return typeof r=="number"?r:Jc(e)?r.touch:r?r.mouse:0}_updateOnScroll(e){let r=this._parentPositions.handleScroll(e);if(r){let i=At(e);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&el(this._boundaryRect,r.top,r.left),this._pickupPositionOnPage.x+=r.left,this._pickupPositionOnPage.y+=r.top,this._dropContainer||(this._activeTransform.x-=r.left,this._activeTransform.y-=r.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=Ic(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(e,r){let i=this._previewContainer||"global";if(i==="parent")return e;if(i==="global"){let n=this._document;return r||n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement||n.body}return ot(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_getTargetHandle(e){return this._handles.find(r=>e.target&&(e.target===r||r.contains(e.target)))}};function Ok(t,e,r){return Math.max(e,Math.min(r,t))}function Jc(t){return t.type[0]==="t"}function Nk(t){t.preventDefault()}function r3(t,e,r){let i=Fk(e,t.length-1),n=Fk(r,t.length-1);if(i===n)return;let o=t[i],s=n0)return null;let a=this.orientation==="horizontal",c=o.findIndex(E=>E.drag===e),l=o[s],d=o[c].clientRect,u=l.clientRect,f=c>s?1:-1,p=this._getItemOffsetPx(d,u,f),v=this._getSiblingOffsetPx(c,o,f),S=o.slice();return r3(o,c,s),o.forEach((E,R)=>{if(S[R]===E)return;let he=E.drag===e,Ne=he?p:v,Ue=he?e.getPlaceholderElement():E.drag.getRootElement();E.offset+=Ne,a?(Ue.style.transform=Rf(`translate3d(${Math.round(E.offset)}px, 0, 0)`,E.initialTransform),el(E.clientRect,0,Ne)):(Ue.style.transform=Rf(`translate3d(0, ${Math.round(E.offset)}px, 0)`,E.initialTransform),el(E.clientRect,Ne,0))}),this._previousSwap.overlaps=T_(u,r,i),this._previousSwap.drag=l.drag,this._previousSwap.delta=a?n.x:n.y,{previousIndex:c,currentIndex:s}}enter(e,r,i,n){let o=n==null||n<0?this._getItemIndexFromPointerPosition(e,r,i):n,s=this._activeDraggables,a=s.indexOf(e),c=e.getPlaceholderElement(),l=s[o];if(l===e&&(l=s[o+1]),!l&&(o==null||o===-1||o-1&&s.splice(a,1),l&&!this._dragDropRegistry.isDragging(l)){let d=l.getRootElement();d.parentElement.insertBefore(c,d),s.splice(o,0,e)}else ot(this._element).appendChild(c),s.push(e);c.style.transform="",this._cacheItemPositions()}withItems(e){this._activeDraggables=e.slice(),this._cacheItemPositions()}withSortPredicate(e){this._sortPredicate=e}reset(){this._activeDraggables.forEach(e=>{let r=e.getRootElement();if(r){let i=this._itemPositions.find(n=>n.drag===e)?.initialTransform;r.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(e){return(this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===e)}updateOnScroll(e,r){this._itemPositions.forEach(({clientRect:i})=>{el(i,e,r)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}_cacheItemPositions(){let e=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(r=>{let i=r.getVisibleElement();return{drag:r,offset:0,initialTransform:i.style.transform||"",clientRect:F_(i)}}).sort((r,i)=>e?r.clientRect.left-i.clientRect.left:r.clientRect.top-i.clientRect.top)}_getItemOffsetPx(e,r,i){let n=this.orientation==="horizontal",o=n?r.left-e.left:r.top-e.top;return i===-1&&(o+=n?r.width-e.width:r.height-e.height),o}_getSiblingOffsetPx(e,r,i){let n=this.orientation==="horizontal",o=r[e].clientRect,s=r[e+i*-1],a=o[n?"width":"height"]*i;if(s){let c=n?"left":"top",l=n?"right":"bottom";i===-1?a-=s.clientRect[c]-o[l]:a+=o[c]-s.clientRect[l]}return a}_shouldEnterAsFirstChild(e,r){if(!this._activeDraggables.length)return!1;let i=this._itemPositions,n=this.orientation==="horizontal";if(i[0].drag!==this._activeDraggables[0]){let s=i[i.length-1].clientRect;return n?e>=s.right:r>=s.bottom}else{let s=i[0].clientRect;return n?e<=s.left:r<=s.top}}_getItemIndexFromPointerPosition(e,r,i,n){let o=this.orientation==="horizontal",s=this._itemPositions.findIndex(({drag:a,clientRect:c})=>{if(a===e)return!1;if(n){let l=o?n.x:n.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&l===this._previousSwap.delta)return!1}return o?r>=Math.floor(c.left)&&r=Math.floor(c.top)&&i!0,this.sortPredicate=()=>!0,this.beforeStarted=new C,this.entered=new C,this.exited=new C,this.dropped=new C,this.sorted=new C,this.receivingStarted=new C,this.receivingStopped=new C,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=ne.EMPTY,this._verticalScrollDirection=Ui.NONE,this._horizontalScrollDirection=ai.NONE,this._stopScrollTimers=new C,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),Jf(0,wl).pipe(te(this._stopScrollTimers)).subscribe(()=>{let s=this._scrollNode,a=this.autoScrollStep;this._verticalScrollDirection===Ui.UP?s.scrollBy(0,-a):this._verticalScrollDirection===Ui.DOWN&&s.scrollBy(0,a),this._horizontalScrollDirection===ai.LEFT?s.scrollBy(-a,0):this._horizontalScrollDirection===ai.RIGHT&&s.scrollBy(a,0)})},this.element=ot(e),this._document=i,this.withScrollableParents([this.element]),r.registerDropContainer(this),this._parentPositions=new Tf(i),this._sortStrategy=new O_(this.element,r),this._sortStrategy.withSortPredicate((s,a)=>this.sortPredicate(s,a,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(e,r,i,n){this._draggingStarted(),n==null&&this.sortingDisabled&&(n=this._draggables.indexOf(e)),this._sortStrategy.enter(e,r,i,n),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}exit(e){this._reset(),this.exited.next({item:e,container:this})}drop(e,r,i,n,o,s,a,c={}){this._reset(),this.dropped.next({item:e,currentIndex:r,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:o,distance:s,dropPoint:a,event:c})}withItems(e){let r=this._draggables;return this._draggables=e,e.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(r.filter(n=>n.isDragging()).every(n=>e.indexOf(n)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(e){return this._sortStrategy.direction=e,this}connectedTo(e){return this._siblings=e.slice(),this}withOrientation(e){return this._sortStrategy.orientation=e,this}withScrollableParents(e){let r=ot(this.element);return this._scrollableElements=e.indexOf(r)===-1?[r,...e]:e.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(e){return this._isDragging?this._sortStrategy.getItemIndex(e):this._draggables.indexOf(e)}isReceiving(){return this._activeSiblings.size>0}_sortItem(e,r,i,n){if(this.sortingDisabled||!this._domRect||!Ik(this._domRect,Pk,r,i))return;let o=this._sortStrategy.sort(e,r,i,n);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:e})}_startScrollingIfNecessary(e,r){if(this.autoScrollDisabled)return;let i,n=Ui.NONE,o=ai.NONE;if(this._parentPositions.positions.forEach((s,a)=>{a===this._document||!s.clientRect||i||Ik(s.clientRect,Pk,e,r)&&([n,o]=o3(a,s.clientRect,this._sortStrategy.direction,e,r),(n||o)&&(i=a))}),!n&&!o){let{width:s,height:a}=this._viewportRuler.getViewportSize(),c={width:s,height:a,top:0,right:s,bottom:a,left:0};n=Bk(c,r),o=zk(c,e),i=window}i&&(n!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=n,this._horizontalScrollDirection=o,this._scrollNode=i,(n||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let e=ot(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){let e=ot(this.element);this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(e).clientRect}_reset(){this._isDragging=!1;let e=ot(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(r=>r._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(e,r){return this._domRect!=null&&T_(this._domRect,e,r)}_getSiblingContainerFromPosition(e,r,i){return this._siblings.find(n=>n._canReceive(e,r,i))}_canReceive(e,r,i){if(!this._domRect||!T_(this._domRect,r,i)||!this.enterPredicate(e,this))return!1;let n=this._getShadowRoot().elementFromPoint(r,i);if(!n)return!1;let o=ot(this.element);return n===o||o.contains(n)}_startReceiving(e,r){let i=this._activeSiblings;!i.has(e)&&r.every(n=>this.enterPredicate(n,this)||this._draggables.indexOf(n)>-1)&&(i.add(e),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:e,receiver:this,items:r}))}_stopReceiving(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:e,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(e=>{if(this.isDragging()){let r=this._parentPositions.handleScroll(e);r&&this._sortStrategy.updateOnScroll(r.top,r.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let e=Ic(ot(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let e=this._sortStrategy.getActiveItemsSnapshot().filter(r=>r.isDragging());this._siblings.forEach(r=>r._startReceiving(this,e))}};function Bk(t,e){let{top:r,bottom:i,height:n}=t,o=n*Vk;return e>=r-o&&e<=r+o?Ui.UP:e>=i-o&&e<=i+o?Ui.DOWN:Ui.NONE}function zk(t,e){let{left:r,right:i,width:n}=t,o=n*Vk;return e>=r-o&&e<=r+o?ai.LEFT:e>=i-o&&e<=i+o?ai.RIGHT:ai.NONE}function o3(t,e,r,i,n){let o=Bk(e,n),s=zk(e,i),a=Ui.NONE,c=ai.NONE;if(o){let l=t.scrollTop;o===Ui.UP?l>0&&(a=Ui.UP):t.scrollHeight-l>t.clientHeight&&(a=Ui.DOWN)}if(s){let l=t.scrollLeft;r==="rtl"?s===ai.RIGHT?l<0&&(c=ai.RIGHT):t.scrollWidth+l>t.clientWidth&&(c=ai.LEFT):s===ai.LEFT?l>0&&(c=ai.LEFT):t.scrollWidth-l>t.clientWidth&&(c=ai.RIGHT)}return[a,c]}var Mf=jt({passive:!1,capture:!0}),kf=new Set,s3=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=z({type:e,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],standalone:!0,features:[Y],decls:0,vars:0,template:function(n,o){},styles:["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit}}"],encapsulation:2,changeDetection:0});let t=e;return t})(),a3=(()=>{let e=class e{constructor(i,n){this._ngZone=i,this._appRef=b(mi),this._environmentInjector=b(_t),this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=Ni([]),this._globalListeners=new Map,this._draggingPredicate=o=>o.isDragging(),this.pointerMove=new C,this.pointerUp=new C,this.scroll=new C,this._preventDefaultWhileDragging=o=>{this._activeDragInstances().length>0&&o.preventDefault()},this._persistentTouchmoveListener=o=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&o.preventDefault(),this.pointerMove.next(o))},this._document=n}registerDropContainer(i){this._dropInstances.has(i)||this._dropInstances.add(i)}registerDragItem(i){this._dragInstances.add(i),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Mf)})}removeDropContainer(i){this._dropInstances.delete(i)}removeDragItem(i){this._dragInstances.delete(i),this.stopDragging(i),this._dragInstances.size===0&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Mf)}startDragging(i,n){if(!(this._activeDragInstances().indexOf(i)>-1)&&(this._loadResets(),this._activeDragInstances.update(o=>[...o,i]),this._activeDragInstances().length===1)){let o=n.type.startsWith("touch");this._globalListeners.set(o?"touchend":"mouseup",{handler:s=>this.pointerUp.next(s),options:!0}).set("scroll",{handler:s=>this.scroll.next(s),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Mf}),o||this._globalListeners.set("mousemove",{handler:s=>this.pointerMove.next(s),options:Mf}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((s,a)=>{this._document.addEventListener(a,s.handler,s.options)})})}}stopDragging(i){this._activeDragInstances.update(n=>{let o=n.indexOf(i);return o>-1?(n.splice(o,1),[...n]):n}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(i){return this._activeDragInstances().indexOf(i)>-1}scrolled(i){let n=[this.scroll];return i&&i!==this._document&&n.push(new oe(o=>this._ngZone.runOutsideAngular(()=>{let a=c=>{this._activeDragInstances().length&&o.next(c)};return i.addEventListener("scroll",a,!0),()=>{i.removeEventListener("scroll",a,!0)}}))),Ze(...n)}ngOnDestroy(){this._dragInstances.forEach(i=>this.removeDragItem(i)),this._dropInstances.forEach(i=>this.removeDropContainer(i)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((i,n)=>{this._document.removeEventListener(n,i.handler,i.options)}),this._globalListeners.clear()}_loadResets(){if(!kf.has(this._appRef)){kf.add(this._appRef);let i=bD(s3,{environmentInjector:this._environmentInjector});this._appRef.onDestroy(()=>{kf.delete(this._appRef),kf.size===0&&i.destroy()})}}};e.\u0275fac=function(n){return new(n||e)(m(F),m(K))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),c3={dragStartThreshold:5,pointerDirectionChangeThreshold:5},l3=(()=>{let e=class e{constructor(i,n,o,s){this._document=i,this._ngZone=n,this._viewportRuler=o,this._dragDropRegistry=s}createDrag(i,n=c3){return new A_(i,n,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(i){return new N_(i,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}};e.\u0275fac=function(n){return new(n||e)(m(K),m(F),m(Bn),m(a3))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Uk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[l3],imports:[Vn]});let t=e;return t})();var Hle=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=O({type:e}),e.\u0275inj=A({providers:[{provide:qb,useValue:{floatLabel:"always",appearance:"outline",density:"cozy"}},{provide:Kc,useValue:{displayDefaultIndicatorType:!0,showError:!1}}],imports:[pI,Hh,kM,Wh,M_,TM,ES,XM,pk,BM,NM,US,CM,uf,M_,ik,ek,Uk,df,ZM]});let t=e;return t})();export{w as a,Q as b,Kk as c,d3 as d,u3 as e,Bo as f,oe as g,C as h,Pe as i,Wr as j,Qf as k,ct as l,py as m,Yr as n,V as o,un as p,wT as q,DT as r,P as s,qi as t,Kr as u,Ze as v,ge as w,ut as x,pn as y,Xo as z,We as A,ga as B,Yi as C,Si as D,va as E,ba as F,fr as G,Qe as H,Oe as I,te as J,je as K,_a as L,G as M,lt as N,D as O,A as P,g as Q,m as R,b as S,z as T,O as U,I as V,Ad as W,gs as X,Me as Y,be as Z,_e as _,di as $,jd as aa,qe as ba,Se as ca,Ft as da,N as ea,B as fa,rt as ga,FY as ha,PY as ia,x as ja,h as ka,Ki as la,fs as ma,En as na,F as oa,Ve as pa,U as qa,q as ra,M as sa,ei as ta,H as ua,BY as va,_ as wa,y as xa,k as ya,Dr as za,Cr as Aa,tt as Ba,Ye as Ca,Z as Da,$ as Ea,ye as Fa,W as Ga,pF as Ha,pe as Ia,De as Ja,L as Ka,j as La,gt as Ma,we as Na,at as Oa,Lt as Pa,vF as Qa,zY as Ra,bF as Sa,se as Ta,Y as Ua,UY as Va,Eg as Wa,Ha as Xa,iu as Ya,nu as Za,HY as _a,Er as $a,mi as ab,Tg as bb,ue as cb,K as db,Ds as eb,FD as fb,kr as gb,Iu as hb,PD as ib,lZ as jb,dZ as kb,po as lb,Su as mb,uZ as nb,hZ as ob,Gt as pb,tr as qb,Xg as rb,BP as sb,EZ as tb,IZ as ub,XD as vb,BZ as wb,zZ as xb,cv as yb,Tt as zb,Cs as Ab,ir as Bb,xC as Cb,Es as Db,vv as Eb,tc as Fb,Pu as Gb,RL as Hb,ic as Ib,ju as Jb,ni as Kb,Rn as Lb,OC as Mb,eQ as Nb,Wt as Ob,Bu as Pb,An as Qb,Hu as Rb,On as Sb,uQ as Tb,en as Ub,bo as Vb,tb as Wb,_i as Xb,ah as Yb,kQ as Zb,qt as _b,cb as $b,Ls as ac,or as bc,UE as cc,ZK as dc,uI as ec,kh as fc,pI as gc,gI as hc,jn as ic,jh as jc,Us as kc,oi as lc,Di as mc,PI as nc,mX as oc,$s as pc,Ro as qc,dz as rc,vX as sc,Ub as tc,Ws as uc,UI as vc,HI as wc,gz as xc,Ob as yc,bX as zc,_X as Ac,yX as Bc,Uh as Cc,OX as Dc,QI as Ec,Hh as Fc,Iz as Gc,Bi as Hc,Wh as Ic,zi as Jc,qX as Kc,st as Lc,Ge as Mc,YX as Nc,de as Oc,jc as Pc,Le as Qc,No as Rc,ZX as Sc,nS as Tc,rS as Uc,QX as Vc,sS as Wc,CJ as Xc,EJ as Yc,yS as Zc,zc as _c,CS as $c,ES as ad,Yt as bd,Yh as cd,Yb as dd,qs as ed,Lr as fd,fee as gd,vee as hd,SS as id,jr as jd,Ks as kd,Bn as ld,It as md,Zc as nd,Js as od,zS as pd,$S as qd,eM as rd,tM as sd,si as td,Je as ud,hie as vd,Yte as wd,vie as xd,kie as yd,Tie as zd,rM as Ad,Rie as Bd,Ot as Cd,Nie as Dd,sM as Ed,aM as Fd,cM as Gd,lM as Hd,dM as Id,Qc as Jd,Fie as Kd,Pie as Ld,uM as Md,hM as Nd,pM as Od,df as Pd,_M as Qd,uf as Rd,yM as Sd,Pne as Td,XH as Ud,c_ as Vd,cre as Wd,d$ as Xd,MM as Yd,jre as Zd,TM as _d,OM as $d,NM as ae,S$ as be,Doe as ce,V$ as de,B$ as ee,sse as fe,ase as ge,Pse as he,XM as ie,JM as je,d5 as ke,hae as le,z5 as me,fk as ne,ice as oe,nce as pe,$ce as qe,Gce as re,Wce as se,qce as te,Yce as ue,Zce as ve,Qce as we,Kce as xe,Xce as ye,Jce as ze,xk as Ae,Hle as Be}; diff --git a/frontend/server/modelsmith-build/browser/chunk-AK2HCVXD.js b/frontend/server/modelsmith-build/browser/chunk-AK2HCVXD.js deleted file mode 100644 index 0fe233a4..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-AK2HCVXD.js +++ /dev/null @@ -1 +0,0 @@ -import{Ca as v,Da as g,Ea as d,Na as h,Oa as x,T as l,Ua as y,Z as p,Zd as k,_ as m,_d as F,fa as u,fb as O,ja as a,qa as f,sa as C,ua as _,wa as c,xa as s}from"./chunk-AIAH5BT5.js";function M(n,t){if(n&1){let r=v();c(0,"mat-card",2),g("click",function(){let i=p(r).$implicit,o=d();return m(o.selectCard(i))}),c(1,"span",3),h(2),s()()}if(n&2){let r=t.$implicit,e=d();_("selected",e.activeCard===r),a(2),x(r)}}var P=(()=>{let t=class t{constructor(){this.options=[],this.selectedOption=new u,this.activeCard=null}selectCard(e){this.activeCard=this.activeCard===e?null:e,this.selectedOption.emit(this.activeCard)}trackByOption(e,i){return i}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=l({type:t,selectors:[["ms-card-selector"]],inputs:{options:"options"},outputs:{selectedOption:"selectedOption"},standalone:!0,features:[y],decls:2,vars:2,consts:[[1,"cards-section"],["class","ms-card action-card",3,"selected","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ms-card","action-card",3,"click"],[1,"heading-sub-section-title"]],template:function(i,o){i&1&&(c(0,"div",0),f(1,M,3,3,"mat-card",1),s()),i&2&&(a(),C("ngForOf",o.options)("ngForTrackBy",o.trackByOption))},dependencies:[O,F,k],styles:[".cards-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}"]});let n=t;return n})();export{P as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-C37KAU6A.js b/frontend/server/modelsmith-build/browser/chunk-C37KAU6A.js deleted file mode 100644 index 36a5ee6e..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-C37KAU6A.js +++ /dev/null @@ -1 +0,0 @@ -import{Fa as a,Ga as c,T as r,Ua as d,wa as i,xa as o}from"./chunk-AIAH5BT5.js";var l=["*"],p=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=r({type:e,selectors:[["ms-background-gradient"]],standalone:!0,features:[d],ngContentSelectors:l,decls:2,vars:0,consts:[[1,"full-page-gradient"]],template:function(n,g){n&1&&(a(),i(0,"div",0),c(1),o())},styles:[".full-page-gradient[_ngcontent-%COMP%]{height:100vh;width:100vw;background:linear-gradient(to right,var(--header-left),var(--header-right))}"]});let t=e;return t})();export{p as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-C3C4GFAG.js b/frontend/server/modelsmith-build/browser/chunk-C3C4GFAG.js new file mode 100644 index 00000000..289b5428 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-C3C4GFAG.js @@ -0,0 +1 @@ +import{a as u}from"./chunk-R5J4FM6S.js";import"./chunk-D2Y5ESR4.js";import"./chunk-TO7IPVMR.js";import"./chunk-G267DK6J.js";import"./chunk-GSC3HYC7.js";import"./chunk-PP7DOJYP.js";import{a as f}from"./chunk-QVZ2CSJP.js";import"./chunk-WHP5P3DQ.js";import"./chunk-SMKHMGDE.js";import{b as S,g as x,j as y}from"./chunk-W4U3FJPJ.js";import"./chunk-2FJ2YO2M.js";import{a as q,b as K}from"./chunk-PSFPSLKI.js";import{a as G,b as L}from"./chunk-GMIVG7ET.js";import"./chunk-NT2MTW7W.js";import"./chunk-HG2O7P4S.js";import{$ as p,Ea as n,Fa as g,Sa as s,a as h,ab as a,b as F,bb as c,bc as D,cb as v,db as E,eb as P,fe as U,gb as I,ha as w,ia as l,jb as N,me as V,p as b,pa as A,qa as T,qb as O,rb as R,re as _,sb as j,sc as C,se as Q,te as k,ub as M,ue as B,xe as W}from"./chunk-NPZHNGVX.js";var z=["panelParameters"],r,d=(r=class{constructor(t,i){this.fb=t,this.scriptFacadeService=i,this.AlgorithmType=x,this.MultiflowAlgorithmsEnum=y,this.isScriptActive=!1}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}initForm(){this.form=this.fb.group({algorithm:this.fb.group({alg:[]})}),setTimeout(()=>{this.form.get("algorithm.alg")?.setValue(y.MULTIFLOW_PRUNE)},0)}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(L(this)).subscribe(t=>{this.isScriptActive=S(t),S(t)?this.form.disable():this.form.enable()})}submit(){if(this.isScriptActive)return;let{algorithm:t}=this.form.getRawValue(),i=F(h({},t),{params:h({},this.panelParametersComponent.parametersFormatted)});this.scriptFacadeService.dispatch(q.callScript({configs:i}))}},r.\u0275fac=function(i){return new(i||r)(g(_),g(K))},r.\u0275cmp=w({type:r,selectors:[["ms-multi-modal"]],viewQuery:function(i,e){if(i&1&&O(z,5),i&2){let o;R(o=j())&&(e.panelParametersComponent=o.first)}},decls:12,vars:4,consts:[["panelParameters",""],[1,"heading-primary-title","title"],[1,"page-wrapper",3,"formGroup"],[1,"left"],[3,"formGroup"],["controlKey","params",3,"algorithm"],["mat-raised-button","","color","primary",3,"click","disabled"],[1,"right"]],template:function(i,e){if(i&1){let o=I();a(0,"p",1),M(1,"Multi-modal"),c(),a(2,"div",2)(3,"div",3),E(4,4),v(5,"ms-panel-parameters",5,0),P(),a(7,"div")(8,"button",6),N("click",function(){return A(o),T(e.submit())}),M(9," Run "),c()()(),a(10,"div",7),v(11,"ms-terminal"),c()()}i&2&&(n(2),s("formGroup",e.form),n(2),s("formGroup",e.form),n(),s("algorithm",e.MultiflowAlgorithmsEnum.MULTIFLOW_PRUNE),n(3),s("disabled",e.isScriptActive||e.form.invalid))},dependencies:[u,f,U,V,B],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),r);d=b([G()],d);var H=[{path:"",component:d}],$=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[C.forChild(H),C]});let m=t;return m})();var yt=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[D,u,f,$,Q,k,W]});let m=t;return m})();export{yt as MultiModalModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-C72SHGY6.js b/frontend/server/modelsmith-build/browser/chunk-C72SHGY6.js deleted file mode 100644 index 5dc1e80d..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-C72SHGY6.js +++ /dev/null @@ -1 +0,0 @@ -import{b as fe,c as ge}from"./chunk-JZLUCDH7.js";import{a as F,c as ue}from"./chunk-4KWEJN4U.js";import{Aa as g,Ad as oe,Bc as H,Bd as ne,Ea as M,H as I,Hc as J,Ic as Q,Md as re,Na as c,Nd as ae,Pa as x,Pd as se,S as O,Sd as le,T as P,Ta as E,Ua as L,Wa as R,Y as N,Ya as S,Yb as w,Za as y,Zc as Y,Zd as me,_b as A,_c as Z,_d as pe,dc as B,ec as k,fb as G,gb as V,he as ce,ie as de,ja as n,ka as p,kc as j,lc as d,m as T,mb as D,nc as $,oc as z,pb as K,pc as X,qa as l,qc as v,rd as ee,s as _,sa as r,sd as h,tc as q,td as te,vc as U,w as b,wa as m,wd as ie,xa as a,xc as W,ya as u,za as f}from"./chunk-AIAH5BT5.js";var Ce=o=>[o];function _e(o,e){o&1&&(f(0),u(1,"ms-spining-indicator",12),g())}function Se(o,e){if(o&1&&(f(0),l(1,_e,2,0,"ng-container",9),g()),o&2){let t=e.ngIf,i=M(2);n(),r("ngIf",t===i.PageKey.MODEL_TRAINING)}}function ye(o,e){if(o&1&&(m(0,"div",10)(1,"a",11),c(2,"Train models"),a(),l(3,Se,2,1,"ng-container",9),S(4,"async"),a()),o&2){let t=M();n(),r("routerLink",R(4,Ce,"/"+t.RoutesList.MODEL_TRAINING.ROOT)),n(2),r("ngIf",y(4,2,t.pageRunningScriptSpiningIndicatorService.currentRunningPage$))}}function ve(o,e){o&1&&u(0,"mat-icon",17)}function Fe(o,e){if(o&1&&(m(0,"mat-option",15),c(1),l(2,ve,1,0,"mat-icon",16),a()),o&2){let t=e.$implicit;r("value",t.name)("disabled",!t.isTrained),n(),x(" ",t.name," "),n(),r("ngIf",!t.isTrained)}}function Te(o,e){o&1&&(m(0,"mat-option",18),c(1,"No results found"),a())}function be(o,e){if(o&1&&(f(0),l(1,Fe,3,4,"mat-option",13)(2,Te,2,0,"mat-option",14),g()),o&2){let t=e.ngIf,i=M();n(),r("ngForOf",t)("ngForTrackBy",i.trackByModel),n(),r("ngIf",t.length===0)}}var s,Me=(s=class{ngOnChanges(e){e.algorithmType&&e.algorithmType.currentValue&&this.configureModels(e.algorithmType.currentValue)}get parentFormGroup(){return this.controlContainer.control}get modelFormGroup(){return this.parentFormGroup.get(this.controlKey)}get modelControl(){return this.modelFormGroup?.get(this.MODEL_CONTROL_NAME)}constructor(e,t,i,C){this.controlContainer=e,this.modelsFacadeService=t,this.scriptFacadeService=i,this.pageRunningScriptSpiningIndicatorService=C,this.controlKey="",this.isTrainModelsPageRouteVisible=!0,this.PageKey=te,this.RoutesList=A,this.searchModel=new v,this.models=[],this.MODEL_CONTROL_NAME="model"}ngOnInit(){this.initializeForm(),this.listenToScriptStateChanges(),this.listenToSearchModelValueChanges(),this.configureModels(this.algorithmType)}configureModels(e){e&&(this.getModelsByTypeSubscription?.unsubscribe(),this.getModelsByTypeSubscription=this.subscribeToModelsListChanges(e),this.modelsFacadeService.dispatch(F.getModelsList({algorithmType:e})),this.modelsFacadeService.dispatch(F.getCurrentOrPreviousSelectedModel({algorithmType:e})))}listenToCurrentModelChanges(){this.modelsFacadeService.currentModel$.pipe(h(this)).subscribe(e=>{if(oe(e))return;let t=this.models.find(i=>i.name===e);t&&t.isTrained&&this.modelControl?.patchValue(e)})}subscribeToModelsListChanges(e){let t=!1;return this.modelsFacadeService.getModelsByType(e).pipe(b(i=>!ne(i)),_(i=>[...i].sort((C,he)=>Number(he.isTrained)-Number(C.isTrained)))).subscribe(i=>{this.models=i,this.searchModel.setValue(""),t||(this.listenToCurrentModelChanges(),t=!0)})}initializeForm(){this.parentFormGroup.addControl(this.controlKey,new X({[this.MODEL_CONTROL_NAME]:new v("",j.required)}))}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(h(this)).subscribe(e=>{ie(e)?this.modelFormGroup.disable():this.modelFormGroup.enable()})}listenToSearchModelValueChanges(){this.filteredModels=this.searchModel.valueChanges.pipe(h(this),I(""),_(e=>this.filterModels(e)))}filterModels(e){let t=e.toLowerCase();return this.models.filter(i=>i.name.toLowerCase().includes(t))}trackByModel(e,t){return t.name}ngOnDestroy(){this.parentFormGroup.removeControl(this.controlKey)}},s.\u0275fac=function(t){return new(t||s)(p(d),p(ue),p(re),p(ae))},s.\u0275cmp=P({type:s,selectors:[["ms-panel-model"]],inputs:{controlKey:"controlKey",algorithmType:"algorithmType",isTrainModelsPageRouteVisible:"isTrainModelsPageRouteVisible"},standalone:!0,features:[E([],[{provide:d,useFactory:()=>O(d,{skipSelf:!0})}]),N,L],decls:13,vars:6,consts:[[1,"ms-card","model-card"],[1,"panel-title-wrapper"],[1,"heading-sub-section-title"],["class","train-models",4,"ngIf"],[1,"form-field-container",3,"formGroupName"],["appearance","outline","subscriptSizing","dynamic"],["formControlName","model","placeholder","Select a model..."],["label","Predefined Models"],[3,"formControl"],[4,"ngIf"],[1,"train-models"],[3,"routerLink"],[1,"ml-2"],[3,"value","disabled",4,"ngFor","ngForOf","ngForTrackBy"],["disabled","",4,"ngIf"],[3,"value","disabled"],["class","mat-error","fontSet","ms","fontIcon","icon-X",4,"ngIf"],["fontSet","ms","fontIcon","icon-X",1,"mat-error"],["disabled",""]],template:function(t,i){t&1&&(m(0,"mat-card",0)(1,"div",1)(2,"div",2),c(3,"Model"),a(),l(4,ye,5,6,"div",3),a(),m(5,"div",4)(6,"mat-form-field",5)(7,"mat-select",6)(8,"mat-optgroup",7)(9,"mat-option"),u(10,"ngx-mat-select-search",8),a(),l(11,be,3,3,"ng-container",9),S(12,"async"),a()()()()()),t&2&&(n(4),r("ngIf",i.isTrainModelsPageRouteVisible),n(),r("formGroupName",i.controlKey),n(5),r("formControl",i.searchModel),n(),r("ngIf",y(12,4,i.filteredModels)))},dependencies:[H,$,z,q,W,U,pe,me,Z,Y,de,ce,k,B,Q,J,K,G,V,D,ge,fe,w,se,le],styles:[".panel-title-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:12px}.panel-title-wrapper[_ngcontent-%COMP%] .train-models[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}"]}),s);Me=T([ee()],Me);export{Me as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-OWZJXMSU.js b/frontend/server/modelsmith-build/browser/chunk-D2Y5ESR4.js similarity index 67% rename from frontend/server/modelsmith-build/browser/chunk-OWZJXMSU.js rename to frontend/server/modelsmith-build/browser/chunk-D2Y5ESR4.js index 9ccc6781..67235d8f 100644 --- a/frontend/server/modelsmith-build/browser/chunk-OWZJXMSU.js +++ b/frontend/server/modelsmith-build/browser/chunk-D2Y5ESR4.js @@ -1 +1 @@ -import{Ab as r,zb as e}from"./chunk-AIAH5BT5.js";var o=r({source:"[Core -> Parameter]",events:{"Load Parameters":e(),"Load Parameters Success":e(),"Load Parameters Failure":e()}});export{o as a}; +import{Kc as e,Lc as r}from"./chunk-NPZHNGVX.js";var o=r({source:"[Core -> Parameter]",events:{"Load Parameters":e(),"Load Parameters Success":e(),"Load Parameters Failure":e()}});export{o as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-DQ7AOZDA.js b/frontend/server/modelsmith-build/browser/chunk-DQ7AOZDA.js new file mode 100644 index 00000000..672f00eb --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-DQ7AOZDA.js @@ -0,0 +1 @@ +import{a as w,b as F}from"./chunk-3S6QBQVM.js";import{a as He}from"./chunk-G267DK6J.js";import{a as Ve,b as je}from"./chunk-GSC3HYC7.js";import{a as Me,b as ye}from"./chunk-VUPIOU6P.js";import{a as L,b as R}from"./chunk-SMKHMGDE.js";import{a as E,e as Le,g as f}from"./chunk-W4U3FJPJ.js";import{a as Fe,b as Re}from"./chunk-PSFPSLKI.js";import{o as we}from"./chunk-NT2MTW7W.js";import{h as Te}from"./chunk-HG2O7P4S.js";import{$ as te,$d as Oe,Ab as pe,Ae as De,Bb as he,E as y,Ea as c,Eb as me,Fa as d,Fb as ue,Gb as de,Ib as G,J as A,K as q,Lb as ge,Q as J,Qa as b,R as X,Ra as ae,S as I,Sa as s,Sb as fe,T as h,Ub as _e,Ud as be,V as O,Z as Y,_ as ee,_b as Se,_d as Ie,aa as ie,ab as g,bb as m,bc as Ce,ca as ne,cb as M,ee as ve,gb as T,ha as N,ia as oe,ie as xe,j as K,ja as j,jb as P,k,lb as u,le as Ee,mb as se,nb as D,pa as S,pb as W,qa as C,qb as Q,rb as v,s as Z,sb as x,tb as $,te as ke,ub as B,vb as le,wb as ce,we as Ae,x as _,xa as H,xe as Ne,y as z,ya as re,ze as Pe}from"./chunk-NPZHNGVX.js";var ct=(()=>{let n=class n{};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=N({type:n,selectors:[["ms-spining-indicator"]],standalone:!0,features:[he],decls:1,vars:1,consts:[["matTooltip","Task in progress",3,"diameter"]],template:function(o,r){o&1&&M(0,"mat-spinner",0),o&2&&s("diameter",25)},dependencies:[F,w,R,L]});let i=n;return i})();var p=function(i){return i.MODEL_COMPRESSION="MODEL_COMPRESSION",i.MACHINE_UNLEARNING="MACHINE_UNLEARNING",i.MODEL_TRAINING="MODEL_TRAINING",i.AWQ="AWQ",i.MODEL_SPECIALIZATION="MODEL_SPECIALIZATION",i.NONE="NONE",i}(p||{});var Ct=(()=>{let n=class n{get currentRunningPage$(){return this._currentRunningPage.asObservable()}constructor(t){this.scriptFacadeService=t,this._currentRunningPage=new k(p.NONE)}trackCurrentRunningPage(){this.scriptFacadeService.scriptStatus$.pipe(y(t=>t===E.RUNNING||t===E.STOPPING),O(()=>this.scriptFacadeService.dispatch(Fe.getCurrentOrLastActiveScriptDetails())),I(()=>this.scriptFacadeService.scriptDetails$.pipe(J(1),A(1),y(t=>!Le(t?.algKey)))),_(t=>t.type)).subscribe(t=>{switch(t){case f.PRUNING:case f.QUANTIZATION:this._currentRunningPage.next(p.MODEL_COMPRESSION);break;case f.MACHINE_UNLEARNING:{this._currentRunningPage.next(p.MACHINE_UNLEARNING);break}case f.AWQ:{this._currentRunningPage.next(p.AWQ);break}case f.TRAIN:{this._currentRunningPage.next(p.MODEL_TRAINING);break}case f.MULTIFLOW:{this._currentRunningPage.next(p.MODEL_SPECIALIZATION);break}default:{this._currentRunningPage.next(p.NONE);break}}}),this.scriptFacadeService.scriptStatus$.subscribe(t=>{t!==E.RUNNING&&t!==E.STOPPING&&this._currentRunningPage.next(p.NONE)})}};n.\u0275fac=function(o){return new(o||n)(ne(Re))},n.\u0275prov=ee({token:n,factory:n.\u0275fac});let i=n;return i})();var Be=["searchSelectInput"],Ge=["innerSelectSearch"],Ue=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],Ke=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"],Ze=(i,n)=>({"mat-select-search-inner-multiple":i,"mat-select-search-inner-toggle-all":n});function ze(i,n){if(i&1){let e=T();g(0,"mat-checkbox",12),P("change",function(o){S(e);let r=u();return C(r._emitSelectAllBooleanToParent(o.checked))}),m()}if(i&2){let e=u();s("color",e.matFormField==null?null:e.matFormField.color)("checked",e.toggleAllCheckboxChecked)("indeterminate",e.toggleAllCheckboxIndeterminate)("matTooltip",e.toggleAllCheckboxTooltipMessage)("matTooltipPosition",e.toggleAllCheckboxTooltipPosition)}}function qe(i,n){i&1&&M(0,"mat-spinner",13)}function Je(i,n){i&1&&D(0,1,["*ngIf","clearIcon; else defaultIcon"])}function Xe(i,n){if(i&1&&(g(0,"mat-icon",16),B(1),m()),i&2){let e=u(2);s("svgIcon",e.closeSvgIcon),c(),ce(" ",e.closeSvgIcon?null:e.closeIcon," ")}}function Ye(i,n){if(i&1){let e=T();g(0,"button",14),P("click",function(){S(e);let o=u();return C(o._reset(!0))}),b(1,Je,1,0,"ng-content",15)(2,Xe,2,2,"ng-template",null,2,G),m()}if(i&2){let e=$(3),t=u();c(),s("ngIf",t.clearIcon)("ngIfElse",e)}}function et(i,n){i&1&&D(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function tt(i,n){if(i&1&&B(0),i&2){let e=u(2);le(e.noEntriesFoundLabel)}}function it(i,n){if(i&1&&(g(0,"div",17),b(1,et,1,0,"ng-content",15)(2,tt,1,1,"ng-template",null,3,G),m()),i&2){let e=$(3),t=u();c(),s("ngIf",t.noEntriesFound)("ngIfElse",e)}}var nt=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=j({type:i,selectors:[["","ngxMatSelectSearchClear",""]]}),i})(),ot=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],rt=new ie("mat-selectsearch-default-options"),at=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=j({type:i,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),i})(),ci=(()=>{class i{constructor(e,t,o,r=null,a=null,U){this.matSelect=e,this.changeDetectorRef=t,this._viewportRuler=o,this.matOption=r,this.matFormField=a,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toggleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new re,this.onTouched=l=>{},this._options$=new k(null),this.optionsList$=this._options$.pipe(I(l=>l?l.changes.pipe(_(V=>V.toArray()),X(l.toArray())):Z(null))),this.optionsLength$=this.optionsList$.pipe(_(l=>l?l.length:0)),this._formControl=new xe(""),this._showNoEntriesFound$=z([this._formControl.valueChanges,this.optionsLength$]).pipe(_(([l,V])=>this.noEntriesFoundLabel&&l&&V===this.getOptionsLengthOffset())),this._onDestroy=new K,this.applyDefaultOptions(U)}get value(){return this._formControl.value}set _options(e){this._options$.next(e)}get _options(){return this._options$.getValue()}applyDefaultOptions(e){if(e)for(let t of ot)e.hasOwnProperty(t)&&(this[t]=e[t])}ngOnInit(){this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("aria-hidden","true")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe(q(1),h(this._onDestroy)).subscribe(e=>{e?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(A(1),I(e=>{this._options=this.matSelect.options;let t=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(O(()=>{setTimeout(()=>{let o=this._options.toArray(),r=o[this.getOptionsLengthOffset()],a=this.matSelect._keyManager;a&&this.matSelect.panelOpen&&r&&((!t||!this.matSelect.compareWith(t.value,r.value)||!a.activeItem||!o.find(l=>this.matSelect.compareWith(l.value,a.activeItem.value)))&&a.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),t=r})}))})).pipe(h(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(h(this._onDestroy)).subscribe(e=>{this.matOption&&(e?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe(h(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(h(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(e){this.toggleAll.emit(e)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(e){(e.key&&e.key.length===1||e.keyCode>=65&&e.keyCode<=90||e.keyCode>=48&&e.keyCode<=57||e.keyCode===32||this.preventHomeEndKeyPropagation&&(e.keyCode===36||e.keyCode===35))&&e.stopPropagation(),this.matSelect.multiple&&e.key&&e.keyCode===13&&setTimeout(()=>this._focus()),this.enableClearOnEscapePressed===!0&&e.keyCode===27&&this.value&&(this._reset(!0),e.stopPropagation())}_handleKeyup(e){if(e.keyCode===38||e.keyCode===40){let t=this.matSelect._getAriaActiveDescendant(),o=this._options.toArray().findIndex(r=>r.id===t);o!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[o]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",t))}}writeValue(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(e){this._formControl.valueChanges.pipe(y(t=>t!==this._lastExternalInputValue),O(()=>this._lastExternalInputValue=void 0),h(this._onDestroy)).subscribe(e)}registerOnTouched(e){this.onTouched=e}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;let e=this.matSelect.panel.nativeElement,t=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=t}_reset(e){this._formControl.setValue(""),e&&this._focus()}initMultipleHandling(){if(!this.matSelect.ngControl){this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true");return}this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe(h(this._onDestroy)).subscribe(e=>{let t=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!e||!Array.isArray(e))&&(e=[]);let o=this.matSelect.options.map(r=>r.value);this.previousSelectedValues.forEach(r=>{!e.some(a=>this.matSelect.compareWith(a,r))&&!o.some(a=>this.matSelect.compareWith(a,r))&&(e.push(r),t=!0)})}this.previousSelectedValues=e,t&&this.matSelect._onChange(e)})}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let e=this.innerSelectSearch.nativeElement,t;for(;e=e.parentElement;)if(e.classList.contains("mat-select-panel")){t=e;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}}return i.\u0275fac=function(e){return new(e||i)(d(He),d(ge),d(we),d(be,8),d(Te,8),d(rt,8))},i.\u0275cmp=N({type:i,selectors:[["ngx-mat-select-search"]],contentQueries:function(e,t,o){if(e&1&&(W(o,nt,5),W(o,at,5)),e&2){let r;v(r=x())&&(t.clearIcon=r.first),v(r=x())&&(t.noEntriesFound=r.first)}},viewQuery:function(e,t){if(e&1&&(Q(Be,7,H),Q(Ge,7,H)),e&2){let o;v(o=x())&&(t.searchSelectInput=o.first),v(o=x())&&(t.innerSelectSearch=o.first)}},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toggleAllCheckboxTooltipPosition:"toggleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[pe([{provide:Ie,useExisting:Y(()=>i),multi:!0}])],ngContentSelectors:Ke,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["defaultIcon",""],["defaultNoEntriesFound",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],[1,"mat-select-search-inner-row"],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"]],template:function(e,t){if(e&1){let o=T();se(Ue),M(0,"input",4),g(1,"div",5,0)(3,"div",6),b(4,ze,1,5,"mat-checkbox",7),g(5,"input",8,1),P("keydown",function(a){return S(o),C(t._handleKeydown(a))})("keyup",function(a){return S(o),C(t._handleKeyup(a))})("blur",function(){return S(o),C(t.onBlur())}),m(),b(7,qe,1,0,"mat-spinner",9)(8,Ye,4,2,"button",10),D(9),m(),M(10,"mat-divider"),m(),b(11,it,4,2,"div",11),ue(12,"async")}e&2&&(c(),s("ngClass",me(11,Ze,t.matSelect.multiple,t._isToggleAllCheckboxVisible())),c(3),s("ngIf",t._isToggleAllCheckboxVisible()),c(),s("type",t.type)("formControl",t._formControl)("placeholder",t.placeholderLabel),ae("aria-label",t.ariaLabel),c(2),s("ngIf",t.searching),c(),s("ngIf",!t.hideClearSearchButton&&t.value&&!t.searching),c(3),s("ngIf",de(12,9,t._showNoEntriesFound$)))},dependencies:[fe,_e,Oe,ve,Ee,Ae,Ve,Pe,w,L,Me,Se],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:100;font-size:inherit;box-shadow:none;background-color:var(--mat-select-panel-background-color)}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-inner-row[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-input[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;border:none;font-family:inherit;font-size:inherit;color:currentColor;outline:none;background-color:var(--mat-select-panel-background-color);padding:0 44px 0 16px;height:calc(3em - 1px);line-height:calc(3em - 1px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-left:5px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding-top:8px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:0}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px} .mat-mdc-option[aria-disabled=true].contains-mat-select-search{position:sticky;top:-8px;z-index:1;opacity:1;margin-top:-8px;pointer-events:all} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-mdc-option[aria-disabled=true].contains-mat-select-search mat-pseudo-checkbox{display:none} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mdc-list-item__primary-text{opacity:1}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}"],changeDetection:0}),i})();var pi=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=oe({type:i}),i.\u0275inj=te({imports:[Ce,ke,Ne,je,De,F,R,ye]}),i})();export{ct as a,p as b,Ct as c,rt as d,ci as e,pi as f}; diff --git a/frontend/server/modelsmith-build/browser/chunk-EGVUKFEW.js b/frontend/server/modelsmith-build/browser/chunk-EGVUKFEW.js new file mode 100644 index 00000000..4f69b6a0 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-EGVUKFEW.js @@ -0,0 +1 @@ +import{a as d}from"./chunk-QWPZ5EFE.js";import{a as u}from"./chunk-R5J4FM6S.js";import"./chunk-DQ7AOZDA.js";import"./chunk-3S6QBQVM.js";import"./chunk-D2Y5ESR4.js";import"./chunk-TO7IPVMR.js";import"./chunk-G267DK6J.js";import"./chunk-GSC3HYC7.js";import"./chunk-VUPIOU6P.js";import"./chunk-PP7DOJYP.js";import{a as f}from"./chunk-QVZ2CSJP.js";import"./chunk-WHP5P3DQ.js";import"./chunk-SMKHMGDE.js";import{b as A,g as K,m as T}from"./chunk-W4U3FJPJ.js";import"./chunk-2FJ2YO2M.js";import{a as q,b as Z}from"./chunk-PSFPSLKI.js";import{a as G,b as W}from"./chunk-GMIVG7ET.js";import"./chunk-NT2MTW7W.js";import"./chunk-HG2O7P4S.js";import{$ as p,Ea as m,Fa as y,Sa as a,a as g,ab as s,b as v,bb as c,bc as j,cb as C,db as w,eb as I,fe as z,gb as N,ha as Q,ia as l,jb as E,me as D,p as b,pa as F,qa as P,qb as V,rb as L,re as O,sb as R,sc as M,se as _,te as U,ub as S,ue as k,xe as B}from"./chunk-NPZHNGVX.js";var H=["panelParameters"],r,h=(r=class{constructor(t,i){this.fb=t,this.scriptFacadeService=i,this.AlgorithmType=K,this.AWQAlgorithmsEnum=T,this.isScriptActive=!1}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(W(this)).subscribe(t=>{this.isScriptActive=A(t),A(t)?this.form.disable():this.form.enable()})}initForm(){this.form=this.fb.group({algorithm:this.fb.group({alg:[]})}),setTimeout(()=>{this.form.get("algorithm.alg")?.setValue(T.AWQ_QUANTIZATION)},0)}submit(){if(this.isScriptActive)return;let{algorithm:t,model:i}=this.form.getRawValue(),{model:e}=i,o=v(g({},t),{params:v(g({},this.panelParametersComponent.parametersFormatted),{model:e})});this.scriptFacadeService.dispatch(q.callScript({configs:o}))}},r.\u0275fac=function(i){return new(i||r)(y(O),y(Z))},r.\u0275cmp=Q({type:r,selectors:[["ms-llm-quantization"]],viewQuery:function(i,e){if(i&1&&V(H,5),i&2){let o;L(o=R())&&(e.panelParametersComponent=o.first)}},decls:13,vars:6,consts:[["panelParameters",""],[1,"heading-primary-title","title"],[1,"page-wrapper",3,"formGroup"],[1,"left"],[3,"formGroup"],["controlKey","model",3,"algorithmType","isTrainModelsPageRouteVisible"],["controlKey","params",3,"algorithm"],["mat-raised-button","","color","primary",3,"click","disabled"],[1,"right"]],template:function(i,e){if(i&1){let o=N();s(0,"p",1),S(1,"LLM Quantization"),c(),s(2,"div",2)(3,"div",3),w(4,4),C(5,"ms-panel-model",5)(6,"ms-panel-parameters",6,0),I(),s(8,"div")(9,"button",7),E("click",function(){return F(o),P(e.submit())}),S(10," Run "),c()()(),s(11,"div",8),C(12,"ms-terminal"),c()()}i&2&&(m(2),a("formGroup",e.form),m(2),a("formGroup",e.form),m(),a("algorithmType",e.AlgorithmType.AWQ)("isTrainModelsPageRouteVisible",!1),m(),a("algorithm",e.AWQAlgorithmsEnum.AWQ_QUANTIZATION),m(3),a("disabled",e.isScriptActive||e.form.invalid))},dependencies:[d,u,f,z,D,k],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),r);h=b([G()],h);var J=[{path:"",component:h}],x=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[M.forChild(J),M]});let n=t;return n})();var bt=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[j,x,d,u,f,U,_,B]});let n=t;return n})();export{bt as LlmQuantizationModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-FAKCSLDT.js b/frontend/server/modelsmith-build/browser/chunk-FAKCSLDT.js new file mode 100644 index 00000000..68d645a0 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-FAKCSLDT.js @@ -0,0 +1,4 @@ +import{a as Ci,b as wi,c as Mi,d as Di,e as yi,f as Ii,g as Oi,h as ki,i as Ti,j as Pi,k as Ai,l as Ri,m as O,n as Fi,o as k,p as w,q as Ge}from"./chunk-MJO2RBYE.js";import{a as fi,b as hi}from"./chunk-W2GP6GR3.js";import{a as vi,b as bi,c as Si,d as ct,e as pt,f as xi,g as _i,h as Ei}from"./chunk-NI65ARYN.js";import{a as ri}from"./chunk-4EAU6CO5.js";import{a as ii,b as ni,c as oi,d as ai}from"./chunk-URO2J7UO.js";import{a as di,b as ci,c as pi,d as ce}from"./chunk-TTPGYBAP.js";import{a as ui,b as gi}from"./chunk-G267DK6J.js";import{a as li,b as mi}from"./chunk-GSC3HYC7.js";import{a as b,b as Wt}from"./chunk-VUPIOU6P.js";import{a as je,b as Zt}from"./chunk-PP7DOJYP.js";import{a as de,b as si}from"./chunk-2FJ2YO2M.js";import{d as Ni}from"./chunk-PSFPSLKI.js";import{a as Bt}from"./chunk-GMIVG7ET.js";import{c as Jt,e as ei,f as ti,l as He}from"./chunk-NT2MTW7W.js";import{a as ze,b as Xt,h as Ve,i as Yt}from"./chunk-HG2O7P4S.js";import{$ as G,$a as De,$d as Ae,Ab as be,Ac as te,Ae as We,Bb as oe,Cb as ae,Cc as mt,Db as D,Dc as st,Ea as d,Eb as Se,Ec as dt,Ed as Oe,Fa as u,Ga as tt,Gd as ke,Ib as re,J as q,Kd as me,L as xt,Lb as le,Md as _e,Na as Ot,Nb as j,Oa as Y,Od as Te,Pa as it,Pd as Pe,Qa as x,Qd as zt,R as _t,Ra as z,S as Et,Sa as p,T as Je,Tb as Ft,Ua as N,Ud as Vt,Wa as kt,Xa as Tt,Ya as P,Z as Ee,Za as we,Zb as ot,_ as Ct,_a as Me,_d as jt,aa as et,ab as t,bb as e,bc as Ie,be as $,cb as l,da as wt,db as ge,dd as y,ea as Mt,eb as fe,ee as se,fa as Dt,fb as Z,fe as Re,g as vt,gb as T,ge as Ht,ha as g,hb as nt,ia as U,j as Ze,ja as Q,jb as f,je as Gt,ke as Fe,lb as v,ld as qt,mb as he,me as Ne,nb as ve,nc as Nt,p as bt,pa as E,pb as J,pc as Lt,pe as Le,qa as C,qb as ye,rb as V,re as Be,sb as W,sc as xe,se as Ut,ta as Ce,tb as _,te as Qt,ua as yt,ub as i,ue as I,vb as B,vc as at,ve as $t,wb as R,wc as rt,we as qe,x as St,xa as ue,xb as Pt,xc as lt,xe as Kt,ya as ne,yb as At,za as It,zb as Rt,zc as ee,ze as F}from"./chunk-NPZHNGVX.js";var Tn=["button"],Pn=["*"];function An(r,n){if(r&1&&l(0,"mat-pseudo-checkbox",3),r&2){let s=v();p("disabled",s.disabled)}}function Rn(r,n){if(r&1&&l(0,"mat-pseudo-checkbox",3),r&2){let s=v();p("disabled",s.disabled)}}var Li=new et("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:Fn});function Fn(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1}}var Bi=new et("MatButtonToggleGroup"),Nn={provide:jt,useExisting:Ee(()=>ut),multi:!0},qi=0,Ue=class{constructor(n,s){this.source=n,this.value=s}},ut=(()=>{let n=class n{get name(){return this._name}set name(o){this._name=o,this._markButtonsForCheck()}get value(){let o=this._selectionModel?this._selectionModel.selected:[];return this.multiple?o.map(a=>a.value):o[0]?o[0].value:void 0}set value(o){this._setSelectionByValue(o),this.valueChange.emit(this.value)}get selected(){let o=this._selectionModel?this._selectionModel.selected:[];return this.multiple?o:o[0]||null}get multiple(){return this._multiple}set multiple(o){this._multiple=o,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(o){this._disabled=o,this._markButtonsForCheck()}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(o){this._hideSingleSelectionIndicator=o,this._markButtonsForCheck()}get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(o){this._hideMultipleSelectionIndicator=o,this._markButtonsForCheck()}constructor(o,a,m){this._changeDetector=o,this._dir=m,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name=`mat-button-toggle-group-${qi++}`,this.valueChange=new ne,this.change=new ne,this.appearance=a&&a.appearance?a.appearance:"standard",this.hideSingleSelectionIndicator=a?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=a?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new He(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(o=>o.checked)),this.multiple||this._initializeTabIndex()}writeValue(o){this.value=o,this._changeDetector.markForCheck()}registerOnChange(o){this._controlValueAccessorChangeFn=o}registerOnTouched(o){this._onTouched=o}setDisabledState(o){this.disabled=o}_keydown(o){if(this.multiple||this.disabled)return;let m=o.target.id,c=this._buttonToggles.toArray().findIndex(M=>M.buttonId===m),h=null;switch(o.keyCode){case 32:case 13:h=this._buttonToggles.get(c)||null;break;case 38:h=this._getNextButton(c,-1);break;case 37:h=this._getNextButton(c,this.dir==="ltr"?-1:1);break;case 40:h=this._getNextButton(c,1);break;case 39:h=this._getNextButton(c,this.dir==="ltr"?1:-1);break;default:return}h&&(o.preventDefault(),h._onButtonClick(),h.focus())}_emitChangeEvent(o){let a=new Ue(o,this.value);this._rawValue=a.value,this._controlValueAccessorChangeFn(a.value),this.change.emit(a)}_syncButtonToggle(o,a,m=!1,c=!1){!this.multiple&&this.selected&&!o.checked&&(this.selected.checked=!1),this._selectionModel?a?this._selectionModel.select(o):this._selectionModel.deselect(o):c=!0,c?Promise.resolve().then(()=>this._updateModelValue(o,m)):this._updateModelValue(o,m)}_isSelected(o){return this._selectionModel&&this._selectionModel.isSelected(o)}_isPrechecked(o){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(a=>o.value!=null&&a===o.value):o.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(o=>{o.tabIndex=-1}),this.selected)this.selected.tabIndex=0;else for(let o=0;othis._selectValue(a))):(this._clearSelection(),this._selectValue(o)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(o=>{o.checked=!1,this.multiple||(o.tabIndex=-1)})}_selectValue(o){let a=this._buttonToggles.find(m=>m.value!=null&&m.value===o);a&&(a.checked=!0,this._selectionModel.select(a),this.multiple||(a.tabIndex=0))}_updateModelValue(o,a){a&&this._emitChangeEvent(o),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(o=>o._markForCheck())}};n.\u0275fac=function(a){return new(a||n)(u(le),u(Li,8),u(ke,8))},n.\u0275dir=Q({type:n,selectors:[["mat-button-toggle-group"]],contentQueries:function(a,m,c){if(a&1&&J(c,Qe,5),a&2){let h;V(h=W())&&(m._buttonToggles=h)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(a,m){a&1&&f("keydown",function(h){return m._keydown(h)}),a&2&&(z("role",m.multiple?"group":"radiogroup")("aria-disabled",m.disabled),N("mat-button-toggle-vertical",m.vertical)("mat-button-toggle-group-appearance-standard",m.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",j],value:"value",multiple:[2,"multiple","multiple",j],disabled:[2,"disabled","disabled",j],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",j],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",j]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],standalone:!0,features:[be([Nn,{provide:Bi,useExisting:n}]),it]});let r=n;return r})(),Qe=(()=>{let n=class n{get buttonId(){return`${this.id}-button`}get tabIndex(){return this._tabIndex}set tabIndex(o){this._tabIndex=o,this._markForCheck()}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(o){this._appearance=o}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(o){o!==this._checked&&(this._checked=o,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(o){this._disabled=o}constructor(o,a,m,c,h,M){this._changeDetectorRef=a,this._elementRef=m,this._focusMonitor=c,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new ne;let pe=Number(h);this.tabIndex=pe||pe===0?pe:null,this.buttonToggleGroup=o,this.appearance=M&&M.appearance?M.appearance:"standard"}ngOnInit(){let o=this.buttonToggleGroup;this.id=this.id||`mat-button-toggle-${qi++}`,o&&(o._isPrechecked(this)?this.checked=!0:o._isSelected(this)!==this._checked&&o._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let o=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),o&&o._isSelected(this)&&o._syncButtonToggle(this,!1,!1,!0)}focus(o){this._buttonElement.nativeElement.focus(o)}_onButtonClick(){let o=this.isSingleSelector()?!0:!this._checked;if(o!==this._checked&&(this._checked=o,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let a=this.buttonToggleGroup._buttonToggles.find(m=>m.tabIndex===0);a&&(a.tabIndex=-1),this.tabIndex=0}this.change.emit(new Ue(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}};n.\u0275fac=function(a){return new(a||n)(u(Bi,8),u(le),u(ue),u(Oe),yt("tabindex"),u(Li,8))},n.\u0275cmp=g({type:n,selectors:[["mat-button-toggle"]],viewQuery:function(a,m){if(a&1&&ye(Tn,5),a&2){let c;V(c=W())&&(m._buttonElement=c.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(a,m){a&1&&f("focus",function(){return m.focus()}),a&2&&(z("aria-label",null)("aria-labelledby",null)("id",m.id)("name",null),N("mat-button-toggle-standalone",!m.buttonToggleGroup)("mat-button-toggle-checked",m.checked)("mat-button-toggle-disabled",m.disabled)("mat-button-toggle-appearance-standard",m.appearance==="standard"))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",j],appearance:"appearance",checked:[2,"checked","checked",j],disabled:[2,"disabled","disabled",j]},outputs:{change:"change"},exportAs:["matButtonToggle"],standalone:!0,features:[it,oe],ngContentSelectors:Pn,decls:8,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-label-content"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(a,m){if(a&1){let c=T();he(),t(0,"button",1,0),f("click",function(){return E(c),C(m._onButtonClick())}),t(2,"span",2),x(3,An,1,1,"mat-pseudo-checkbox",3)(4,Rn,1,1,"mat-pseudo-checkbox",3),ve(5),e()(),l(6,"span",4)(7,"span",5)}if(a&2){let c=_(1);p("id",m.buttonId)("disabled",m.disabled||null),z("role",m.isSingleSelector()?"radio":"button")("tabindex",m.disabled?-1:m.tabIndex)("aria-pressed",m.isSingleSelector()?null:m.checked)("aria-checked",m.isSingleSelector()?m.checked:null)("name",m._getButtonName())("aria-label",m.ariaLabel)("aria-labelledby",m.ariaLabelledby),d(3),P(m.buttonToggleGroup&&m.checked&&!m.buttonToggleGroup.multiple&&!m.buttonToggleGroup.hideSingleSelectionIndicator?3:-1),d(),P(m.buttonToggleGroup&&m.checked&&m.buttonToggleGroup.multiple&&!m.buttonToggleGroup.hideMultipleSelectionIndicator?4:-1),d(3),p("matRippleTrigger",c)("matRippleDisabled",m.disableRipple||m.disabled)}},dependencies:[Te,zt],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0);border-radius:var(--mat-legacy-button-toggle-shape)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-standard-button-toggle-shape);border:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var( --mat-standard-button-toggle-selected-state-text-color )}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-legacy-button-toggle-text-color);font-family:var(--mat-legacy-button-toggle-label-text-font);font-size:var(--mat-legacy-button-toggle-label-text-size);line-height:var(--mat-legacy-button-toggle-label-text-line-height);font-weight:var(--mat-legacy-button-toggle-label-text-weight);letter-spacing:var(--mat-legacy-button-toggle-label-text-tracking);--mat-minimal-pseudo-checkbox-selected-checkmark-color: var( --mat-legacy-button-toggle-selected-state-text-color )}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-legacy-button-toggle-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle .mat-pseudo-checkbox{margin-right:12px}[dir=rtl] .mat-button-toggle .mat-pseudo-checkbox{margin-right:0;margin-left:12px}.mat-button-toggle-checked{color:var(--mat-legacy-button-toggle-selected-state-text-color);background-color:var(--mat-legacy-button-toggle-selected-state-background-color)}.mat-button-toggle-disabled{color:var(--mat-legacy-button-toggle-disabled-state-text-color);background-color:var(--mat-legacy-button-toggle-disabled-state-background-color);--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var( --mat-legacy-button-toggle-disabled-state-text-color )}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-legacy-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard{color:var(--mat-standard-button-toggle-text-color);background-color:var(--mat-standard-button-toggle-background-color);font-family:var(--mat-standard-button-toggle-label-text-font);font-size:var(--mat-standard-button-toggle-label-text-size);line-height:var(--mat-standard-button-toggle-label-text-line-height);font-weight:var(--mat-standard-button-toggle-label-text-weight);letter-spacing:var(--mat-standard-button-toggle-label-text-tracking)}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-standard-button-toggle-divider-color)}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-selected-state-text-color);background-color:var(--mat-standard-button-toggle-selected-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-standard-button-toggle-disabled-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var( --mat-standard-button-toggle-disabled-selected-state-text-color )}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-disabled-selected-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-standard-button-toggle-state-layer-color)}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-hover-state-layer-opacity)}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-focus-state-layer-opacity)}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-legacy-button-toggle-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-standard-button-toggle-height)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-legacy-button-toggle-state-layer-color)}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius:var(--mat-standard-button-toggle-shape)}.mat-button-toggle-group-appearance-standard .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-standard-button-toggle-shape);border-bottom-right-radius:var(--mat-standard-button-toggle-shape)}.mat-button-toggle-group-appearance-standard .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-standard-button-toggle-shape);border-bottom-left-radius:var(--mat-standard-button-toggle-shape)}"],encapsulation:2,changeDetection:0});let r=n;return r})(),zi=(()=>{let n=class n{};n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=U({type:n}),n.\u0275inj=G({imports:[me,Pe,Qe,me]});let r=n;return r})();function qn(r,n){if(r&1&&Z(0,2),r&2){let s=v();p("ngTemplateOutlet",s.iconOverrides[s.state])("ngTemplateOutletContext",s._getIconContext())}}function zn(r,n){if(r&1&&(t(0,"span",7),i(1),e()),r&2){let s=v(2);d(),B(s._getDefaultTextForState(s.state))}}function Vn(r,n){if(r&1&&(t(0,"span",8),i(1),e()),r&2){let s=v(3);d(),B(s._intl.completedLabel)}}function Wn(r,n){if(r&1&&(t(0,"span",8),i(1),e()),r&2){let s=v(3);d(),B(s._intl.editableLabel)}}function jn(r,n){if(r&1&&(x(0,Vn,2,1,"span",8)(1,Wn,2,1,"span",8),t(2,"mat-icon",7),i(3),e()),r&2){let s=v(2);P(s.state==="done"?0:s.state==="edit"?1:-1),d(3),B(s._getDefaultTextForState(s.state))}}function Hn(r,n){if(r&1&&x(0,zn,2,1,"span",7)(1,jn,4,2,"mat-icon",7),r&2){let s,o=v();P((s=o.state)==="number"?0:1)}}function Gn(r,n){r&1&&(t(0,"div",4),Z(1,9),e()),r&2&&(d(),p("ngTemplateOutlet",n.template))}function Un(r,n){if(r&1&&(t(0,"div",4),i(1),e()),r&2){let s=v();d(),B(s.label)}}function Qn(r,n){if(r&1&&(t(0,"div",5),i(1),e()),r&2){let s=v();d(),B(s._intl.optionalLabel)}}function $n(r,n){if(r&1&&(t(0,"div",6),i(1),e()),r&2){let s=v();d(),B(s.errorMessage)}}var Wi=["*"];function Kn(r,n){}function Xn(r,n){if(r&1&&(ve(0),x(1,Kn,0,0,"ng-template",0)),r&2){let s=v();d(),p("cdkPortalOutlet",s._portal)}}var ji=(r,n)=>({step:r,i:n}),Hi=r=>({animationDuration:r}),Gi=(r,n)=>({value:r,params:n});function Yn(r,n){r&1&&ve(0)}function Zn(r,n){r&1&&l(0,"div",6)}function Jn(r,n){if(r&1&&(Z(0,5),x(1,Zn,1,0,"div",6)),r&2){let s=n.$implicit,o=n.$index,a=n.$count;v(2);let m=_(4);p("ngTemplateOutlet",m)("ngTemplateOutletContext",Se(3,ji,s,o)),d(),P(o!==a-1?1:-1)}}function eo(r,n){if(r&1){let s=T();t(0,"div",7),f("@horizontalStepTransition.done",function(a){E(s);let m=v(2);return C(m._animationDone.next(a))}),Z(1,8),e()}if(r&2){let s=n.$implicit,o=n.$index,a=v(2);N("mat-horizontal-stepper-content-inactive",a.selectedIndex!==o),p("@horizontalStepTransition",Se(8,Gi,a._getAnimationDirection(o),D(6,Hi,a._getAnimationDuration())))("id",a._getStepContentId(o)),z("aria-labelledby",a._getStepLabelId(o)),d(),p("ngTemplateOutlet",s.content)}}function to(r,n){if(r&1&&(t(0,"div",1)(1,"div",2),Me(2,Jn,2,6,null,null,we),e(),t(4,"div",3),Me(5,eo,2,11,"div",4,we),e()()),r&2){let s=v();d(2),De(s.steps),d(3),De(s.steps)}}function io(r,n){if(r&1){let s=T();t(0,"div",9),Z(1,5),t(2,"div",10)(3,"div",11),f("@verticalStepTransition.done",function(a){E(s);let m=v(2);return C(m._animationDone.next(a))}),t(4,"div",12),Z(5,8),e()()()()}if(r&2){let s=n.$implicit,o=n.$index,a=n.$count,m=v(2),c=_(4);d(),p("ngTemplateOutlet",c)("ngTemplateOutletContext",Se(10,ji,s,o)),d(),N("mat-stepper-vertical-line",o!==a-1),d(),N("mat-vertical-stepper-content-inactive",m.selectedIndex!==o),p("@verticalStepTransition",Se(15,Gi,m._getAnimationDirection(o),D(13,Hi,m._getAnimationDuration())))("id",m._getStepContentId(o)),z("aria-labelledby",m._getStepLabelId(o)),d(2),p("ngTemplateOutlet",s.content)}}function no(r,n){if(r&1&&Me(0,io,6,18,"div",9,we),r&2){let s=v();De(s.steps)}}function oo(r,n){if(r&1){let s=T();t(0,"mat-step-header",13),f("click",function(){let a=E(s).step;return C(a.select())})("keydown",function(a){E(s);let m=v();return C(m._onKeydown(a))}),e()}if(r&2){let s=n.step,o=n.i,a=v();N("mat-horizontal-stepper-header",a.orientation==="horizontal")("mat-vertical-stepper-header",a.orientation==="vertical"),p("tabIndex",a._getFocusIndex()===o?0:-1)("id",a._getStepLabelId(o))("index",o)("state",a._getIndicatorType(o,s.state))("label",s.stepLabel||s.label)("selected",a.selectedIndex===o)("active",a._stepIsNavigable(o,s))("optional",s.optional)("errorMessage",s.errorMessage)("iconOverrides",a._iconOverrides)("disableRipple",a.disableRipple||!a._stepIsNavigable(o,s))("color",s.color||a.color),z("aria-posinset",o+1)("aria-setsize",a.steps.length)("aria-controls",a._getStepContentId(o))("aria-selected",a.selectedIndex==o)("aria-label",s.ariaLabel||null)("aria-labelledby",!s.ariaLabel&&s.ariaLabelledby?s.ariaLabelledby:null)("aria-disabled",a._stepIsNavigable(o,s)?null:!0)}}var gt=(()=>{let n=class n extends bi{};n.\u0275fac=(()=>{let o;return function(m){return(o||(o=Ce(n)))(m||n)}})(),n.\u0275dir=Q({type:n,selectors:[["","matStepLabel",""]],standalone:!0,features:[Y]});let r=n;return r})(),$e=(()=>{let n=class n{constructor(){this.changes=new Ze,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}};n.\u0275fac=function(a){return new(a||n)},n.\u0275prov=Ct({token:n,factory:n.\u0275fac,providedIn:"root"});let r=n;return r})();function ao(r){return r||new $e}var ro={provide:$e,deps:[[new Mt,new Dt,$e]],useFactory:ao},ft=(()=>{let n=class n extends vi{constructor(o,a,m,c){super(m),this._intl=o,this._focusMonitor=a,this._intlSubscription=o.changes.subscribe(()=>c.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(o,a){o?this._focusMonitor.focusVia(this._elementRef,o,a):this._elementRef.nativeElement.focus(a)}_stringLabel(){return this.label instanceof gt?null:this.label}_templateLabel(){return this.label instanceof gt?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(o){return o=="number"?`${this.index+1}`:o=="edit"?"create":o=="error"?"warning":o}};n.\u0275fac=function(a){return new(a||n)(u($e),u(Oe),u(ue),u(le))},n.\u0275cmp=g({type:n,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(a,m){a&2&&kt("mat-"+(m.color||"primary"))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},standalone:!0,features:[Y,oe],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(a,m){if(a&1&&(l(0,"div",0),t(1,"div")(2,"div",1),x(3,qn,1,2,"ng-container",2)(4,Hn,2,1),e()(),t(5,"div",3),x(6,Gn,2,1,"div",4)(7,Un,2,1,"div",4)(8,Qn,2,1,"div",5)(9,$n,2,1,"div",6),e()),a&2){let c;p("matRippleTrigger",m._getHostElement())("matRippleDisabled",m.disableRipple),d(),Tt("mat-step-icon-state-",m.state," mat-step-icon"),N("mat-step-icon-selected",m.selected),d(2),P(m.iconOverrides&&m.iconOverrides[m.state]?3:4),d(2),N("mat-step-label-active",m.active)("mat-step-label-selected",m.selected)("mat-step-label-error",m.state=="error"),d(),P((c=m._templateLabel())?6:m._stringLabel()?7:-1,c),d(2),P(m.optional&&m.state!="error"?8:-1),d(),P(m.state==="error"?9:-1)}},dependencies:[Te,ot,F],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color);border-radius:var(--mat-stepper-header-hover-state-layer-shape)}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color);border-radius:var(--mat-stepper-header-focus-state-layer-shape)}@media(hover: none){.mat-step-header:hover{background:none}}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color)}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color);background-color:var(--mat-stepper-header-icon-background-color)}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color);color:var(--mat-stepper-header-error-state-icon-foreground-color)}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font);font-size:var(--mat-stepper-header-label-text-size);font-weight:var(--mat-stepper-header-label-text-weight);color:var(--mat-stepper-header-label-text-color)}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color)}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color);font-size:var(--mat-stepper-header-error-state-label-text-size)}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size);font-weight:var(--mat-stepper-header-selected-state-label-text-weight)}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color);color:var(--mat-stepper-header-selected-state-icon-foreground-color)}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color);color:var(--mat-stepper-header-edit-state-icon-foreground-color)}'],encapsulation:2,changeDetection:0});let r=n;return r})(),Ui="500ms",Qi="225ms",Vi={horizontalStepTransition:at("horizontalStepTransition",[te("previous",ee({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),te("current",ee({transform:"none",visibility:"inherit"})),te("next",ee({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),mt("* => *",lt([rt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),dt("@*",st(),{optional:!0})]),{params:{animationDuration:Ui}})]),verticalStepTransition:at("verticalStepTransition",[te("previous",ee({height:"0px",visibility:"hidden"})),te("next",ee({height:"0px",visibility:"hidden"})),te("current",ee({height:"*",visibility:"inherit"})),mt("* <=> current",lt([rt("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),dt("@*",st(),{optional:!0})]),{params:{animationDuration:Qi}})])},lo=(()=>{let n=class n{constructor(o){this.templateRef=o}};n.\u0275fac=function(a){return new(a||n)(u(tt))},n.\u0275dir=Q({type:n,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]},standalone:!0});let r=n;return r})(),mo=(()=>{let n=class n{constructor(o){this._template=o}};n.\u0275fac=function(a){return new(a||n)(u(tt))},n.\u0275dir=Q({type:n,selectors:[["ng-template","matStepContent",""]],standalone:!0});let r=n;return r})(),ht=(()=>{let n=class n extends ct{constructor(o,a,m,c){super(o,c),this._errorStateMatcher=a,this._viewContainerRef=m,this._isSelected=vt.EMPTY,this.stepLabel=void 0}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(Et(()=>this._stepper.selectionChange.pipe(St(o=>o.selectedStep===this),_t(this._stepper.selected===this)))).subscribe(o=>{o&&this._lazyContent&&!this._portal&&(this._portal=new Jt(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(o,a){let m=this._errorStateMatcher.isErrorState(o,a),c=!!(o&&o.invalid&&this.interacted);return m||c}};n.\u0275fac=function(a){return new(a||n)(u(Ee(()=>Ke)),u(_e,4),u(Ot),u(Si,8))},n.\u0275cmp=g({type:n,selectors:[["mat-step"]],contentQueries:function(a,m,c){if(a&1&&(J(c,gt,5),J(c,mo,5)),a&2){let h;V(h=W())&&(m.stepLabel=h.first),V(h=W())&&(m._lazyContent=h.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],standalone:!0,features:[be([{provide:_e,useExisting:n},{provide:ct,useExisting:n}]),Y,oe],ngContentSelectors:Wi,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(a,m){a&1&&(he(),x(0,Xn,2,1,"ng-template"))},dependencies:[ei],encapsulation:2,changeDetection:0});let r=n;return r})(),Ke=(()=>{let n=class n extends pt{get animationDuration(){return this._animationDuration}set animationDuration(o){this._animationDuration=/^\d+$/.test(o)?o+"ms":o}constructor(o,a,m){super(o,a,m),this._stepHeader=void 0,this._steps=void 0,this.steps=new It,this.animationDone=new ne,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new Ze,this._animationDuration="",this._isServer=!wt(qt).isBrowser;let c=m.nativeElement.nodeName.toLowerCase();this.orientation=c==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:o,templateRef:a})=>this._iconOverrides[o]=a),this.steps.changes.pipe(Je(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(xt((o,a)=>o.fromState===a.fromState&&o.toState===a.toState),Je(this._destroyed)).subscribe(o=>{o.toState==="current"&&this.animationDone.emit()})}_stepIsNavigable(o,a){return a.completed||this.selectedIndex===o||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:this.orientation==="horizontal"?Ui:Qi}};n.\u0275fac=function(a){return new(a||n)(u(ke,8),u(le),u(ue))},n.\u0275cmp=g({type:n,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(a,m,c){if(a&1&&(J(c,ht,5),J(c,lo,5)),a&2){let h;V(h=W())&&(m._steps=h),V(h=W())&&(m._icons=h)}},viewQuery:function(a,m){if(a&1&&ye(ft,5),a&2){let c;V(c=W())&&(m._stepHeader=c)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(a,m){a&2&&(z("aria-orientation",m.orientation),N("mat-stepper-horizontal",m.orientation==="horizontal")("mat-stepper-vertical",m.orientation==="vertical")("mat-stepper-label-position-end",m.orientation==="horizontal"&&m.labelPosition=="end")("mat-stepper-label-position-bottom",m.orientation==="horizontal"&&m.labelPosition=="bottom")("mat-stepper-header-position-bottom",m.headerPosition==="bottom"))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],standalone:!0,features:[be([{provide:pt,useExisting:n}]),Y,oe],ngContentSelectors:Wi,decls:5,vars:2,consts:[["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","mat-horizontal-stepper-content-inactive"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(a,m){if(a&1&&(he(),x(0,Yn,1,0)(1,to,7,0,"div",1)(2,no,2,0)(3,oo,1,23,"ng-template",null,0,re)),a&2){let c;P(m._isServer?0:-1),d(),P((c=m.orientation)==="horizontal"?1:c==="vertical"?2:-1)}},dependencies:[ot,ft],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font);background:var(--mat-stepper-container-color)}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color);top:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[Vi.horizontalStepTransition,Vi.verticalStepTransition]},changeDetection:0});let r=n;return r})(),$i=(()=>{let n=class n extends xi{};n.\u0275fac=(()=>{let o;return function(m){return(o||(o=Ce(n)))(m||n)}})(),n.\u0275dir=Q({type:n,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(a,m){a&2&&nt("type",m.type)},standalone:!0,features:[Y]});let r=n;return r})(),Ki=(()=>{let n=class n extends _i{};n.\u0275fac=(()=>{let o;return function(m){return(o||(o=Ce(n)))(m||n)}})(),n.\u0275dir=Q({type:n,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(a,m){a&2&&nt("type",m.type)},standalone:!0,features:[Y]});let r=n;return r})(),Xi=(()=>{let n=class n{};n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=U({type:n}),n.\u0275inj=G({providers:[ro,_e],imports:[me,Ie,ti,Ei,We,Pe,Ke,ft,me]});let r=n;return r})();var Yi=(()=>{let n=class n{};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,selectors:[["ms-buttons-demo"]],decls:220,vars:0,consts:[[1,"line"],[1,"section"],[1,"parent","items-per-row-6"],["mat-button",""],["mat-button","","color","primary"],["mat-button","","color","accent"],["mat-button","","color","warn"],["mat-button","","disabled",""],["mat-button","","href","https://www.google.com/","target","_blank"],["mat-raised-button",""],["mat-raised-button","","color","primary"],["mat-raised-button","","color","accent"],["mat-raised-button","","color","warn"],["mat-raised-button","","disabled","","color","accent"],["mat-raised-button","","href","https://www.google.com/","target","_blank"],[1,"parent","items-per-row-7"],["mat-stroked-button",""],["mat-stroked-button","",1,"ms-white-stroked-button"],["mat-stroked-button","","color","primary"],["mat-stroked-button","","color","accent"],["mat-stroked-button","","color","warn"],["mat-stroked-button","","disabled","","color","accent"],["mat-stroked-button","","href","https://www.google.com/","target","_blank"],["mat-flat-button",""],["mat-flat-button","","color","primary"],["mat-flat-button","","color","accent"],["mat-flat-button","","color","warn"],["mat-flat-button","","disabled","","color","primary"],["mat-flat-button","","href","https://www.google.com/","target","_blank"],[2,"grid-column","span 2"],["mat-icon-button",""],["mat-icon-button","","color","primary"],["mat-icon-button","","color","accent"],["mat-icon-button","","color","warn"],["mat-icon-button","","disabled","","color","accent"],[1,"parent","items-per-row-5"],["checked",""],["color","primary","checked",""],["color","accent","checked",""],["color","warn","checked",""],["disabled",""]],template:function(a,m){a&1&&(t(0,"h1"),i(1,"Buttons"),e(),t(2,"div",0),l(3,"mat-divider"),e(),t(4,"div",1)(5,"h2"),i(6,"Default"),e(),t(7,"div",2)(8,"div"),i(9,"Basic"),e(),t(10,"div"),i(11,"Primary"),e(),t(12,"div"),i(13,"Accent"),e(),t(14,"div"),i(15,"Warn"),e(),t(16,"div"),i(17,"Disabled"),e(),t(18,"div"),i(19,"Link"),e(),t(20,"div")(21,"button",3),i(22,"Lorem Ipsum"),e()(),t(23,"div")(24,"button",4),i(25,"Lorem Ipsum"),e()(),t(26,"div")(27,"button",5),i(28,"Lorem Ipsum"),e()(),t(29,"div")(30,"button",6),i(31,"Lorem Ipsum"),e()(),t(32,"div")(33,"button",7),i(34,"Lorem Ipsum"),e()(),t(35,"div")(36,"a",8),i(37,"Link"),e()()(),t(38,"div",0),l(39,"mat-divider"),e()(),t(40,"div",1)(41,"h2"),i(42,"Raised buttons"),e(),t(43,"div",2)(44,"div"),i(45,"Basic"),e(),t(46,"div"),i(47,"Primary"),e(),t(48,"div"),i(49,"Accent"),e(),t(50,"div"),i(51,"Warn"),e(),t(52,"div"),i(53,"Disabled"),e(),t(54,"div"),i(55,"Link"),e(),t(56,"div")(57,"button",9),i(58,"Lorem Ipsum"),e()(),t(59,"div")(60,"button",10),i(61,"Lorem Ipsum"),e()(),t(62,"div")(63,"button",11),i(64,"Lorem Ipsum"),e()(),t(65,"div")(66,"button",12),i(67,"Lorem Ipsum"),e()(),t(68,"div")(69,"button",13),i(70,"Lorem Ipsum"),e()(),t(71,"div")(72,"a",14),i(73,"Link"),e()()(),t(74,"div",0),l(75,"mat-divider"),e()(),t(76,"div",1)(77,"h2"),i(78,"Stroked buttons"),e(),t(79,"div",15)(80,"div"),i(81,"Basic"),e(),t(82,"div"),i(83,"Basic White"),e(),t(84,"div"),i(85,"Primary"),e(),t(86,"div"),i(87,"Accent"),e(),t(88,"div"),i(89,"Warn"),e(),t(90,"div"),i(91,"Disabled"),e(),t(92,"div"),i(93,"Link"),e(),t(94,"div")(95,"button",16),i(96,"Lorem Ipsum"),e()(),t(97,"div")(98,"button",17),i(99,"Lorem Ipsum"),e()(),t(100,"div")(101,"button",18),i(102,"Lorem Ipsum"),e()(),t(103,"div")(104,"button",19),i(105,"Lorem Ipsum"),e()(),t(106,"div")(107,"button",20),i(108,"Lorem Ipsum"),e()(),t(109,"div")(110,"button",21),i(111,"Lorem Ipsum"),e()(),t(112,"div")(113,"a",22),i(114,"Link"),e()()(),t(115,"div",0),l(116,"mat-divider"),e()(),t(117,"div",1)(118,"h2"),i(119,"Flat buttons"),e(),t(120,"div",2)(121,"div"),i(122,"Basic"),e(),t(123,"div"),i(124,"Primary"),e(),t(125,"div"),i(126,"Accent"),e(),t(127,"div"),i(128,"Warn"),e(),t(129,"div"),i(130,"Disabled"),e(),t(131,"div"),i(132,"Link"),e(),t(133,"div")(134,"button",23),i(135,"Lorem Ipsum"),e()(),t(136,"div")(137,"button",24),i(138,"Lorem Ipsum"),e()(),t(139,"div")(140,"button",25),i(141,"Lorem Ipsum"),e()(),t(142,"div")(143,"button",26),i(144,"Lorem Ipsum"),e()(),t(145,"div")(146,"button",27),i(147,"Lorem Ipsum"),e()(),t(148,"div")(149,"a",28),i(150,"Link"),e()()(),t(151,"div",0),l(152,"mat-divider"),e()(),t(153,"div",1)(154,"h2"),i(155,"Icon buttons"),e(),t(156,"div",2)(157,"div"),i(158,"Basic"),e(),t(159,"div"),i(160,"Primary"),e(),t(161,"div"),i(162,"Accent"),e(),t(163,"div"),i(164,"Warn"),e(),t(165,"div",29),i(166,"Disabled"),e(),t(167,"div")(168,"button",30)(169,"mat-icon"),i(170,"more_vert"),e()()(),t(171,"div")(172,"button",31)(173,"mat-icon"),i(174,"home"),e()()(),t(175,"div")(176,"button",32)(177,"mat-icon"),i(178,"menu"),e()()(),t(179,"div")(180,"button",33)(181,"mat-icon"),i(182,"favorite"),e()()(),t(183,"div",29)(184,"button",34)(185,"mat-icon"),i(186,"open_in_new"),e()()()(),t(187,"div",0),l(188,"mat-divider"),e()(),t(189,"div",1)(190,"h2"),i(191,"Slide toggle buttons"),e(),t(192,"div",35)(193,"div"),i(194,"Basic"),e(),t(195,"div"),i(196,"Primary"),e(),t(197,"div"),i(198,"Accent"),e(),t(199,"div"),i(200,"Warn"),e(),t(201,"div"),i(202,"Disabled"),e(),t(203,"div")(204,"mat-slide-toggle",36),i(205,"Slide me!"),e()(),t(206,"div")(207,"mat-slide-toggle",37),i(208,"Slide me!"),e()(),t(209,"div")(210,"mat-slide-toggle",38),i(211,"Slide me!"),e()(),t(212,"div")(213,"mat-slide-toggle",39),i(214,"Slide me!"),e()(),t(215,"div")(216,"mat-slide-toggle",40),i(217,"Slide me!"),e()()()(),t(218,"div",0),l(219,"mat-divider"),e())},dependencies:[F,b,$t,I,qe,fi],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0});let r=n;return r})();var po=()=>["Option 1","Option 2","Option 3"],Ji=(()=>{let n=class n{constructor(){}ngOnInit(){}handleSelected(o){console.log("Selected option:",o)}};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,selectors:[["ag-cards-demo"]],decls:39,vars:2,consts:[[1,"line"],[1,"section"],[1,"ms-card"],[1,"heading-sub-section-title"],[1,"key-value-container","single"],[1,"key-value-pair"],[1,"key-value-key","paragraph-semibold-p4-xSmall-emphasis"],[1,"key-value-value","paragraph-regular-p4-xSmall"],[3,"selectedOption","options"]],template:function(a,m){a&1&&(t(0,"h1"),i(1,"Cards"),e(),t(2,"div",0),l(3,"mat-divider"),e(),t(4,"h2"),i(5,"Basic cards"),e(),t(6,"div",1)(7,"mat-card",2)(8,"p",3),i(9,"Card with text"),e(),t(10,"p"),i(11," Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce et cursus eros, a ultricies massa. Morbi commodo sapien magna, vitae facilisis erat blandit ac. Praesent vulputate nulla quis nibh consectetur euismod. Nulla justo dolor, molestie vitae ultricies id, malesuada id tortor. Ut rutrum nisi enim. Pellentesque sed blandit tortor, id fringilla turpis. In vel arcu nec urna dictum mollis ac sed sem. Integer orci eros, hendrerit a dui nec, auctor mattis mi. Curabitur quis tempor ex. "),e()()(),l(12,"br"),t(13,"div",1)(14,"mat-card",2)(15,"p",3),i(16,"Key Value Card"),e(),t(17,"div",4)(18,"div",5)(19,"div",6),i(20,"Key 1"),e(),t(21,"div",7),i(22,"Value 1"),e()(),l(23,"mat-divider"),t(24,"div",5)(25,"div",6),i(26,"Key 2"),e(),t(27,"div",7),i(28,"Value 2"),e()(),l(29,"mat-divider"),t(30,"div",5)(31,"div",6),i(32,"Key 1"),e(),t(33,"div",7),i(34,"Value 1"),e()()()()(),l(35,"br"),t(36,"h2"),i(37,"Option Card Selector"),e(),t(38,"ms-card-selector",8),f("selectedOption",function(h){return m.handleSelected(h)}),e()),a&2&&(d(38),p("options",ae(1,po)))},dependencies:[ce,b,de],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"]});let r=n;return r})();function uo(r,n){if(r&1){let s=T();t(0,"li")(1,"mat-checkbox",6),Rt("ngModelChange",function(a){let m=E(s).$implicit;return At(m.completed,a)||(m.completed=a),C(a)}),f("ngModelChange",function(){E(s);let a=v();return C(a.updateAllComplete())}),i(2),e()()}if(r&2){let s=n.$implicit;d(),Pt("ngModel",s.completed),p("color",s.color),d(),R(" ",s.name," ")}}var tn=(()=>{let n=class n{updateAllComplete(){this.allComplete=this.task.subtasks!=null&&this.task.subtasks.every(o=>o.completed)}someComplete(){return this.task.subtasks==null?!1:this.task.subtasks.filter(o=>o.completed).length>0&&!this.allComplete}setAll(o){this.allComplete=o,this.task.subtasks!=null&&this.task.subtasks.forEach(a=>a.completed=o)}constructor(){this.task={name:"Indeterminate",completed:!1,color:"primary",subtasks:[{name:"Primary",completed:!1,color:"primary"},{name:"Accent",completed:!1,color:"accent"},{name:"Warn",completed:!1,color:"warn"}]},this.allComplete=!1}ngOnInit(){}};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,selectors:[["ms-checkboxes-demo"]],decls:17,vars:6,consts:[[1,"line"],[1,"ms-card"],[3,"disabled"],[3,"change","checked","color","indeterminate"],[1,"list-none"],[4,"ngFor","ngForOf"],[3,"ngModelChange","ngModel","color"]],template:function(a,m){a&1&&(t(0,"h1"),i(1,"Checkboxes"),e(),t(2,"div",0),l(3,"mat-divider"),e(),t(4,"mat-card",1)(5,"section")(6,"mat-checkbox"),i(7,"Check me!"),e(),t(8,"mat-checkbox",2),i(9,"Disabled"),e()(),t(10,"section")(11,"span")(12,"mat-checkbox",3),f("change",function(h){return m.setAll(h.checked)}),i(13),e()(),t(14,"span")(15,"ul",4),x(16,uo,3,3,"li",5),e()()()()),a&2&&(d(8),p("disabled",!0),d(4),p("checked",m.allComplete)("color",m.task.color)("indeterminate",m.someComplete()),d(),R(" ",m.task.name," "),d(3),p("ngForOf",m.task.subtasks))},dependencies:[Ft,b,se,Gt,de,li],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"]});let r=n;return r})();var nn=(()=>{let n=class n{constructor(){}ngOnInit(){}};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,selectors:[["ms-chips-demo"]],decls:17,vars:0,consts:[[1,"line"],[1,"section"],[1,"ms-chip"],["color","primary",1,"ms-chip"],["color","accent",1,"ms-chip"],["color","warn",1,"ms-chip"]],template:function(a,m){a&1&&(t(0,"h1"),i(1,"Chips"),e(),t(2,"div",0),l(3,"mat-divider"),e(),t(4,"div",1)(5,"h2"),i(6,"Basic Chips"),e(),t(7,"div")(8,"mat-chip-set")(9,"mat-chip",2),i(10," Default "),e(),t(11,"mat-chip",3),i(12," Primary "),e(),t(13,"mat-chip",4),i(14," Accent "),e(),t(15,"mat-chip",5),i(16," Warn "),e()()()())},dependencies:[b,di,ci],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}.mat-standard-chip[_ngcontent-%COMP%]{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px} .mat-chip-list-wrapper .mat-chip.mat-standard-chip{margin:4px}.example-box.cdk-drag-animating[_ngcontent-%COMP%], .example-chip[_ngcontent-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.example-chip-list[_ngcontent-%COMP%]{width:100%}mat-chip[_ngcontent-%COMP%]{max-width:200px}"]});let r=n;return r})();var A=r=>[r],on=(()=>{let n=class n{constructor(){this.RoutesList=y}};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,selectors:[["ms-demo"]],decls:31,vars:39,consts:[[1,"main-container"],[1,"content","routes"],["vertical","true"],[3,"routerLink"],["mat-raised-button","","color","primary",1,"mt-2",3,"routerLink"],[1,"content"]],template:function(a,m){a&1&&(t(0,"div",0)(1,"div",1)(2,"mat-button-toggle-group",2)(3,"mat-button-toggle",3),i(4," Buttons "),e(),t(5,"mat-button-toggle",3),i(6," Typograpghy "),e(),t(7,"mat-button-toggle",3),i(8," Form Fields "),e(),t(9,"mat-button-toggle",3),i(10," Checkboxes "),e(),t(11,"mat-button-toggle",3),i(12," Menu "),e(),t(13,"mat-button-toggle",3),i(14," Tables "),e(),t(15,"mat-button-toggle",3),i(16," Icons "),e(),t(17,"mat-button-toggle",3),i(18," Cards "),e(),t(19,"mat-button-toggle",3),i(20," Chips "),e(),t(21,"mat-button-toggle",3),i(22," Notifications "),e(),t(23,"mat-button-toggle",3),i(24," Wizard "),e(),t(25,"mat-button-toggle",3),i(26," Drawer "),e()(),t(27,"button",4),i(28," Back to login "),e()(),t(29,"div",5),l(30,"router-outlet"),e()()),a&2&&(d(3),p("routerLink",D(13,A,m.RoutesList.DEMO)),d(2),p("routerLink",D(15,A,m.RoutesList.DEMO.TYPOGRAPHY)),d(2),p("routerLink",D(17,A,m.RoutesList.DEMO.FORM_FIELDS)),d(2),p("routerLink",D(19,A,m.RoutesList.DEMO.CHECKBOXES)),d(2),p("routerLink",D(21,A,m.RoutesList.DEMO.MENU)),d(2),p("routerLink",D(23,A,m.RoutesList.DEMO.TABLE)),d(2),p("routerLink",D(25,A,m.RoutesList.DEMO.ICONS)),d(2),p("routerLink",D(27,A,m.RoutesList.DEMO.CARDS)),d(2),p("routerLink",D(29,A,m.RoutesList.DEMO.CHIPS)),d(2),p("routerLink",D(31,A,m.RoutesList.DEMO.NOTIFICATIONS)),d(2),p("routerLink",D(33,A,m.RoutesList.DEMO.WIZARD)),d(2),p("routerLink",D(35,A,m.RoutesList.DEMO.DRAWER)),d(2),p("routerLink",D(37,A,"/"+m.RoutesList.AUTH.ROOT)))},dependencies:[Nt,Lt,I,ut,Qe],styles:[".main-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(12,1fr)}.main-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0;align-self:flex-start;grid-column:span 11;padding:14px 20px 0;width:90%}.main-container[_ngcontent-%COMP%] .routes[_ngcontent-%COMP%]{grid-column:span 1}.mat-button-toggle[_ngcontent-%COMP%]{display:flex;height:40px}"],changeDetection:0});let r=n;return r})();var an=(()=>{let n=class n{constructor(o,a){this.drawerRef=o,this.drawerConfig=a}ngOnInit(){}close(){this.drawerRef.close()}};n.\u0275fac=function(a){return new(a||n)(u(k),u(O))},n.\u0275cmp=g({type:n,selectors:[["ms-run-drawer-actions"]],decls:2,vars:0,template:function(a,m){a&1&&(t(0,"ms-drawer"),i(1,` Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. Curabitur purus lectus, sollicitudin eu aliquet in, imperdiet nec sapien. Nullam posuere erat nisl, sit amet consectetur dui aliquet consectetur. Sed mollis nibh et dolor maximus consectetur. Cras quam ex, efficitur eu lacus eu, dignissim pellentesque massa. Fusce nibh elit, iaculis ut neque at, finibus ornare libero. Duis maximus rutrum urna gravida posuere. Fusce tristique mollis venenatis. In mi augue, ullamcorper nec urna et, pellentesque pellentesque magna. Aenean porttitor ultrices efficitur. Vestibulum pellentesque tempus est, eget luctus ligula porta et. Donec interdum ante ut quam sagittis, tristique rutrum ipsum tempus. Ut posuere urna lorem. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Donec elementum vestibulum risus, et molestie sapien malesuada at. Donec malesuada vestibulum iaculis. Donec porttitor malesuada metus, vel tempor nulla gravida ut. Cras cursus felis vitae magna laoreet porta. Sed non leo tristique, rhoncus sapien et, consectetur lectus. Suspendisse potenti. Nam finibus, sapien eu tristique porttitor, ante eros pretium mauris, sed hendrerit risus eros ac lacus. Proin consectetur ligula aliquet velit vestibulum placerat. Vivamus et orci id augue tempor molestie. Morbi id nisl vitae lacus porta gravida ut vitae ante. In posuere ultrices arcu. Aliquam a finibus arcu. Sed consequat libero mi, eu fermentum arcu aliquet quis. Vestibulum iaculis rhoncus neque, quis congue justo egestas at. Ut placerat diam quis risus dapibus convallis. Donec non tempor nisl. Donec vulputate malesuada tempor. Pellentesque ac lectus eu massa tristique placerat. Proin suscipit ante risus, at elementum quam euismod eget. Nunc sollicitudin pretium eros, quis imperdiet metus aliquet at. Maecenas sit amet felis vitae nunc dignissim varius. Vivamus nibh orci, volutpat vitae rutrum eu, pharetra ac enim. Ut orci metus, luctus sed lacus vel, bibendum dapibus nulla. Nulla nisl ex, hendrerit ut pretium rhoncus, posuere vitae est. Fusce accumsan ac lorem imperdiet convallis. Etiam vehicula sapien vitae dignissim efficitur. Morbi finibus lacus in felis condimentum tristique. Maecenas aliquam ipsum facilisis sapien lobortis pellentesque.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. Curabitur purus lectus, sollicitudin eu aliquet in, imperdiet nec sapien. Nullam posuere erat nisl, sit amet consectetur dui aliquet consectetur. Sed mollis nibh et dolor maximus consectetur. Cras quam ex, efficitur eu lacus eu, dignissim pellentesque massa. Fusce nibh elit, iaculis ut neque at, finibus ornare libero. Duis maximus rutrum urna gravida posuere. Fusce tristique mollis venenatis. In mi augue, ullamcorper nec urna et, pellentesque pellentesque magna. Aenean porttitor ultrices efficitur. Vestibulum pellentesque tempus est, eget luctus ligula porta et. Donec interdum ante ut quam sagittis, tristique rutrum ipsum tempus. Ut posuere urna lorem. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Donec elementum vestibulum risus, et molestie sapien malesuada at. Donec malesuada vestibulum iaculis. Donec porttitor malesuada metus, vel tempor nulla gravida ut. Cras cursus felis vitae magna laoreet porta. Sed non leo tristique, rhoncus sapien et, consectetur lectus. Suspendisse potenti. Nam finibus, sapien eu tristique porttitor, ante eros pretium mauris, sed hendrerit risus eros ac lacus. Proin consectetur ligula aliquet velit vestibulum placerat. Vivamus et orci id augue tempor molestie. Morbi id nisl vitae lacus porta gravida ut vitae ante. In posuere ultrices arcu. Aliquam a finibus arcu. Sed consequat libero mi, eu fermentum arcu aliquet quis. Vestibulum iaculis rhoncus neque, quis congue justo egestas at. Ut placerat diam quis risus dapibus convallis. Donec non tempor nisl. Donec vulputate malesuada tempor. Pellentesque ac lectus eu massa tristique placerat. Proin suscipit ante risus, at elementum quam euismod eget. Nunc sollicitudin pretium eros, quis imperdiet metus aliquet at. Maecenas sit amet felis vitae nunc dignissim varius. Vivamus nibh orci, volutpat vitae rutrum eu, pharetra ac enim. Ut orci metus, luctus sed lacus vel, bibendum dapibus nulla. Nulla nisl ex, hendrerit ut pretium rhoncus, posuere vitae est. Fusce accumsan ac lorem imperdiet convallis. Etiam vehicula sapien vitae dignissim efficitur. Morbi finibus lacus in felis condimentum tristique. Maecenas aliquam ipsum facilisis sapien lobortis pellentesque. +`),e())},dependencies:[w],changeDetection:0});let r=n;return r})();function go(r,n){if(r&1){let s=T();t(0,"div",2)(1,"button",3),f("click",function(){E(s);let a=v();return C(a.onDismiss())}),i(2,"Button 1"),e(),t(3,"button",4),f("click",function(){E(s);let a=v();return C(a.onDismiss())}),i(4,"Button 2"),e(),t(5,"button",5),f("click",function(){E(s);let a=v();return C(a.onDismiss())}),i(6,"Button 3"),e()()}}var rn=(()=>{let n=class n{constructor(o,a){this.drawerRef=o,this.drawerConfig=a}ngOnInit(){}onDismiss(){this.drawerRef.close()}};n.\u0275fac=function(a){return new(a||n)(u(k),u(O))},n.\u0275cmp=g({type:n,selectors:[["ms-drawer-with-alternative-actions-template"]],decls:4,vars:1,consts:[["alternativeActions",""],[3,"actionsTemplate"],[1,"buttons-wrapper"],["mat-raised-button","","color","primary",3,"click"],["mat-flat-button","","color","accent",3,"click"],["mat-stroked-button","","color","primary",3,"click"]],template:function(a,m){if(a&1&&(t(0,"ms-drawer",1),i(1,`Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. +`),e(),x(2,go,7,0,"ng-template",null,0,re)),a&2){let c=_(3);p("actionsTemplate",c)}},dependencies:[w,I],styles:[".buttons-wrapper[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:first-child){margin-left:20px}"]});let r=n;return r})();function fo(r,n){if(r&1){let s=T();t(0,"div",2)(1,"div",3)(2,"button",4),f("click",function(){E(s);let a=v();return C(a.close())}),l(3,"mat-icon",5),e()(),t(4,"h3",6),i(5,"Different Header Style"),e()()}}var ln=(()=>{let n=class n{constructor(o,a){this.drawerRef=o,this.drawerConfig=a}ngOnInit(){}close(){this.drawerRef.close()}};n.\u0275fac=function(a){return new(a||n)(u(k),u(O))},n.\u0275cmp=g({type:n,selectors:[["ms-drawer-with-alternative-header-template"]],decls:4,vars:1,consts:[["alternativeHeader",""],[3,"headerTemplate"],[1,"header-wrapper"],[1,"close-icon"],["mat-icon-button","",3,"click"],["fontIcon","icon-close-one"],[2,"color","red"]],template:function(a,m){if(a&1&&(t(0,"ms-drawer",1),i(1,`Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. +`),e(),x(2,fo,6,0,"ng-template",null,0,re)),a&2){let c=_(3);p("headerTemplate",c)}},dependencies:[w,F,qe],styles:[".header-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:32px}"],changeDetection:0});let r=n;return r})();var mn=(()=>{let n=class n{constructor(o,a,m){this.drawerRef=o,this.drawerConfig=a,this.fb=m}ngOnInit(){this.form=this.fb.group({name:["",[$.required]],address:["",[$.required]]})}save(o){o===Fi.SAVE&&this.drawerRef.close({result:this.form.getRawValue(),status:o})}};n.\u0275fac=function(a){return new(a||n)(u(k),u(O),u(Be))},n.\u0275cmp=g({type:n,selectors:[["ms-drawer-with-buttons-actions"]],decls:12,vars:2,consts:[[3,"actionEvent","isSaveDisabled"],[3,"formGroup"],[1,"form-field-container"],["appearance","outline"],["agErrorDisplay","","matInput","","placeholder","Name","formControlName","name"],["agErrorDisplay","","matInput","","placeholder","Address","formControlName","address"]],template:function(a,m){a&1&&(t(0,"ms-drawer",0),f("actionEvent",function(h){return m.save(h)}),t(1,"form",1)(2,"div",2)(3,"mat-label"),i(4,"Name"),e(),t(5,"mat-form-field",3),l(6,"input",4),e()(),t(7,"div",2)(8,"mat-label"),i(9,"Address"),e(),t(10,"mat-form-field",3),l(11,"input",5),e()()()()),a&2&&(p("isSaveDisabled",m.form.invalid),d(),p("formGroup",m.form))},dependencies:[w,Fe,Ae,se,Re,Ne,Le,Ve,ze,je]});let r=n;return r})();var sn=(()=>{let n=class n{constructor(o,a){this.drawerRef=o,this.drawerConfig=a}ngOnInit(){}};n.\u0275fac=function(a){return new(a||n)(u(k),u(O))},n.\u0275cmp=g({type:n,selectors:[["ms-drawer-with-customizable-width"]],decls:1,vars:0,template:function(a,m){a&1&&l(0,"ms-drawer")},dependencies:[w]});let r=n;return r})();var dn=(()=>{let n=class n{constructor(o,a){this.drawerRef=o,this.drawerConfig=a,this.isSaveDisabled=!0}ngOnInit(){}};n.\u0275fac=function(a){return new(a||n)(u(k),u(O))},n.\u0275cmp=g({type:n,selectors:[["ms-drawer-with-disabled-buttons-actions"]],decls:3,vars:2,consts:[[3,"isSaveDisabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(a,m){a&1&&(t(0,"ms-drawer",0)(1,"button",1),f("click",function(){return m.isSaveDisabled=!m.isSaveDisabled}),i(2),e()()),a&2&&(p("isSaveDisabled",m.isSaveDisabled),d(2),R(" Click here to ",m.isSaveDisabled?"enable":"disable"," button "))},dependencies:[w,I]});let r=n;return r})();var cn=(()=>{let n=class n{constructor(o,a){this.drawerRef=o,this.drawerData=a}ngOnInit(){}};n.\u0275fac=function(a){return new(a||n)(u(k),u(O))},n.\u0275cmp=g({type:n,selectors:[["ms-drawer-with-injected-data"]],decls:5,vars:2,template:function(a,m){a&1&&(t(0,"ms-drawer")(1,"p"),i(2),e(),t(3,"p"),i(4),e()()),a&2&&(d(2),R("Field 1: ",m.drawerData.data.field1,""),d(2),R("Field 2: ",m.drawerData.data.field2,""))},dependencies:[w],changeDetection:0});let r=n;return r})();var pn=(()=>{let n=class n{constructor(o,a){this.drawerRef=o,this.drawerData=a}ngOnInit(){}};n.\u0275fac=function(a){return new(a||n)(u(k),u(O))},n.\u0275cmp=g({type:n,selectors:[["ms-drawer-with-only-one-button"]],decls:1,vars:0,template:function(a,m){a&1&&l(0,"ms-drawer")},dependencies:[w],changeDetection:0});let r=n;return r})();var un=(()=>{let n=class n{constructor(o){this.drawerService=o}ngOnInit(){}openDrawer(){this.drawerService.open(an,{title:"Lorem Ipsum"}).afterClosed().pipe(q(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithInjectedData(){let o={field1:"value1",field2:"value2"};this.drawerService.open(cn,{title:"Drawer with injected data",data:o}).afterClosed().pipe(q(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithAlternativeHeader(){this.drawerService.open(ln).afterClosed().pipe(q(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithOnlyOneButton(){this.drawerService.open(pn,{title:"Only one button",showSaveButton:!1,closeButtonLabel:"Close"}).afterClosed().pipe(q(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithAlternativeActions(){this.drawerService.open(rn,{title:"Alternative Footer"}).afterClosed().pipe(q(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithDisabledButtons(){this.drawerService.open(dn,{title:"Disabled buttons"}).afterClosed().pipe(q(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithButtonsActions(){this.drawerService.open(mn,{title:"Buttons Actions"}).afterClosed().pipe(q(1)).subscribe(a=>{alert(`Clicked on ${a.status}, name = ${a.result.name}, address = ${a.result.address}`)})}openDrawerWithCustomizableWidth(){this.drawerService.open(sn,{title:"Drawer With Customizable Width",width:500}).afterClosed().pipe(q(1)).subscribe(()=>{console.log("Drawer closed!")})}};n.\u0275fac=function(a){return new(a||n)(u(Ge))},n.\u0275cmp=g({type:n,selectors:[["ms-drawer-demo"]],decls:112,vars:0,consts:[[1,"section"],[1,"parent","items-per-row-5"],["mat-raised-button","",3,"click"],[1,"line"]],template:function(a,m){a&1&&(t(0,"h1"),i(1,"Drawer"),e(),t(2,"div",0)(3,"h2"),i(4,"Description:"),e(),t(5,"p"),i(6,"Drawer Dialog it's opened using the drawer service. (ex. this.drawerService.open(COMPONENT, customData)"),e(),t(7,"p"),i(8," Those are the custom data available for "),t(9,"b"),i(10,"drawer config:"),e(),l(11,"br"),t(12,"b"),i(13,"data?: any;"),e(),i(14," | Custom data that you would need to add from outside inside the dialog. "),l(15,"br"),t(16,"b"),i(17,"title?: string;"),e(),i(18," | Dialog title "),l(19,"br"),t(20,"b"),i(21,"showSaveButton?: boolean;"),e(),i(22," | Option to configure the show/hide of the save button. "),l(23,"br"),t(24,"b"),i(25,"showDismissButton?: boolean;"),e(),i(26," | Option to configure the show/hide of the dismiss button. "),l(27,"br"),t(28,"b"),i(29,"saveButtonLabel?: string;"),e(),i(30," | Option to configure the save button label."),l(31,"br"),t(32,"b"),i(33,"dismissButtonLabel?: string;"),e(),i(34," | Option to configure the dismiss button label."),l(35,"br"),e(),t(36,"p"),i(37," On each drawer action an event it's emitted: If you click on the X icon, the event emitted it's DrawerStatus.CLOSE, if you click on save the event emitted is DrawerStatus.SAVE, if you click on dismiss the event it's DrawerStatus.DISMISS. By using this action on the actionEvent output event emitter, you can bind your function and listen to events for your custom functionality. "),e(),t(38,"p"),i(39,' Additionaly, you can change the templates of the header and footer and provide a totally custom implementation as you would need it. Check the "alternative templates" examples '),e()(),t(40,"div",0)(41,"h2"),i(42,"Basic Drawers"),e(),t(43,"div",1)(44,"div"),i(45,"Open simple drawer"),e(),t(46,"div"),i(47,"Open Drawer with Injected Data"),e(),t(48,"div"),i(49,"Open Drawer with Only One Button"),e(),t(50,"div"),i(51,"Open Drawer with Disabled Buttons"),e(),t(52,"div"),i(53,"Open Drawer with Customizable Width"),e(),t(54,"div")(55,"button",2),f("click",function(){return m.openDrawer()}),i(56,"Open Drawer"),e()(),t(57,"div")(58,"button",2),f("click",function(){return m.openDrawerWithInjectedData()}),i(59,"Open Drawer"),e()(),t(60,"div")(61,"button",2),f("click",function(){return m.openDrawerWithOnlyOneButton()}),i(62,"Open Drawer"),e()(),t(63,"div")(64,"button",2),f("click",function(){return m.openDrawerWithDisabledButtons()}),i(65,"Open Drawer"),e()(),t(66,"div")(67,"button",2),f("click",function(){return m.openDrawerWithCustomizableWidth()}),i(68,"Open Drawer"),e()()(),t(69,"div",3),l(70,"mat-divider"),e()(),t(71,"div",0)(72,"h2"),i(73,"Alternative templates examples"),e(),t(74,"div",1)(75,"div"),i(76,"Open Drawer with Alternative Header Template"),e(),t(77,"div"),i(78,"Open Drawer with Alternative Actions Template"),e(),l(79,"div")(80,"div")(81,"div"),t(82,"div")(83,"button",2),f("click",function(){return m.openDrawerWithAlternativeHeader()}),i(84,"Open Drawer"),e()(),t(85,"div")(86,"button",2),f("click",function(){return m.openDrawerWithAlternativeActions()}),i(87,"Open Drawer"),e()(),l(88,"div")(89,"div")(90,"div"),e(),t(91,"div",3),l(92,"mat-divider"),e()(),t(93,"div",0)(94,"h2"),i(95,"Drawers With Buttons Actions Check"),e(),t(96,"div",1)(97,"div"),i(98,"Open Drawer with Buttons Actions"),e(),l(99,"div")(100,"div")(101,"div")(102,"div"),t(103,"div")(104,"button",2),f("click",function(){return m.openDrawerWithButtonsActions()}),i(105,"Open Drawer"),e()(),l(106,"div")(107,"div")(108,"div")(109,"div"),e(),t(110,"div",3),l(111,"mat-divider"),e()())},dependencies:[b,I],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0});let r=n;return r})();var H,Ye=(H=class{constructor(n){this.fb=n,this.form=new Ht({})}ngOnInit(){this.form=this.fb.group({default:[null],searchBar:[null],prefilled:["Lorem Ipsum"],disabled:[{value:null,disabled:!0}],prefilledDisabled:[{value:"Lorem Ipsum",disabled:!0}],error:[null,[$.required]],icon:[null],iconPrefilled:["Lorem Ipsum"],iconDisabled:[{value:null,disabled:!0}],iconPrefilledDisabled:[{value:"Lorem Ipsum",disabled:!0}],iconError:[null,[$.required]],required:[null,[$.required]],textarea:[null],textareaPrefilled:["Lorem Ipsum"],textareaDisabled:[{value:null,disabled:!0}],textareaPrefilledAndDisabled:[{value:"Lorem Ipsum",disabled:!0}],textareaError:[null,[$.required]],dropdown:[null],dropdownPreselected:["option1"],dropdownDisabled:[{value:null,disabled:!0}],dropdownPreselectedAndDisabled:[{value:"option1",disabled:!0}]})}},H.\u0275fac=function(s){return new(s||H)(u(Be))},H.\u0275cmp=g({type:H,selectors:[["ms-form-fields-demo"]],decls:255,vars:1,consts:[[1,"line"],[3,"formGroup"],[1,"section"],[1,"parent","items-per-row-5"],[1,"form-field-container"],["msErrorDisplay","","matInput","","formControlName","default"],[1,"form-field-container","ms-white-form-field"],["msErrorDisplay","","matInput","","formControlName","prefilled"],["msErrorDisplay","","matInput","","formControlName","disabled"],["msErrorDisplay","","matInput","","formControlName","prefilledDisabled"],["msErrorDisplay","","matInput","","formControlName","error"],["appearance","outline"],["matInput","","msErrorDisplay","","placeholder","Default","formControlName","default"],["matInput","","msErrorDisplay","","placeholder","Prefilled","formControlName","prefilled"],["matInput","","msErrorDisplay","","placeholder","Disabled","formControlName","disabled"],["matInput","","msErrorDisplay","","placeholder","Prefilled and Disabled","formControlName","prefilledDisabled"],["matInput","","placeholder","Error","formControlName","error"],["appearance","fill","floatLabel","always"],["appearance","outline","floatLabel","auto"],["floatLabel","always"],["msErrorDisplay","","matInput","","formControlName","required"],["rows","4","matInput","","formControlName","textarea","msErrorDisplay",""],["rows","4","matInput","","formControlName","textareaPrefilled","msErrorDisplay",""],["rows","4","matInput","","formControlName","textareaDisabled","msErrorDisplay",""],["rows","4","matInput","","formControlName","textareaPrefilledAndDisabled","msErrorDisplay",""],["rows","4","matInput","","formControlName","textareaError","msErrorDisplay",""],["formControlName","dropdown","placeholder","Select a value"],["value","option1"],["value","option2"],["value","option3"],["value","option4"],["value","option5"],["formControlName","dropdownPreselected","placeholder","Select a value"],["formControlName","dropdownDisabled","placeholder","Select a value"],["formControlName","dropdownPreselectedAndDisabled"],[1,"parent","items-per-row-6"],["matInput","","msPasswordToggle","","msErrorDisplay","","placeholder","Default","formControlName","default"]],template:function(s,o){s&1&&(t(0,"h1"),i(1,"Form Fields"),e(),t(2,"div",0),l(3,"mat-divider"),e(),t(4,"form",1)(5,"div",2)(6,"div",2)(7,"h2"),i(8,"Default"),e(),t(9,"div",3)(10,"div",4)(11,"mat-label"),i(12," Default "),e(),t(13,"mat-form-field"),l(14,"input",5),e()(),t(15,"div",6)(16,"mat-label"),i(17," Default White "),e(),t(18,"mat-form-field"),l(19,"input",5),e()(),t(20,"div",4)(21,"mat-label"),i(22," Prefilled "),e(),t(23,"mat-form-field"),l(24,"input",7),e()(),t(25,"div",4)(26,"mat-label"),i(27," Disabled "),e(),t(28,"mat-form-field"),l(29,"input",8),e()(),t(30,"div",4)(31,"mat-label"),i(32," Prefilled & disabled "),e(),t(33,"mat-form-field"),l(34,"input",9),e()(),t(35,"div",4)(36,"mat-label"),i(37," Error "),e(),t(38,"mat-form-field"),l(39,"input",10),e()()(),t(40,"div",0),l(41,"mat-divider"),e()(),t(42,"h2"),i(43,"Appearance Outline"),e(),t(44,"div",3)(45,"div",4)(46,"mat-form-field",11)(47,"mat-label"),i(48,"Default"),e(),l(49,"input",12),e()(),t(50,"div",4)(51,"mat-form-field",11)(52,"mat-label"),i(53," Prefilled "),e(),l(54,"input",13),e()(),t(55,"div",4)(56,"mat-form-field",11)(57,"mat-label"),i(58," Disabled "),e(),l(59,"input",14),e()(),t(60,"div",4)(61,"mat-form-field",11)(62,"mat-label"),i(63," Prefilled & disabled "),e(),l(64,"input",15),e()(),t(65,"div",4)(66,"mat-form-field",11)(67,"mat-label"),i(68," Error "),e(),l(69,"input",16),t(70,"mat-error"),i(71,"Test"),e()()()(),t(72,"div",0),l(73,"mat-divider"),e()(),t(74,"div",2)(75,"h2"),i(76,"Appearance Fill & Float Label"),e(),t(77,"div",3)(78,"div",4)(79,"mat-form-field",17)(80,"mat-label"),i(81," Default "),e(),l(82,"input",5),e()(),t(83,"div")(84,"mat-form-field",17)(85,"mat-label"),i(86," Prefilled "),e(),l(87,"input",7),e()(),t(88,"div",4)(89,"mat-form-field",17)(90,"mat-label"),i(91," Disabled "),e(),l(92,"input",8),e()(),t(93,"div",4)(94,"mat-form-field",17)(95,"mat-label"),i(96," Prefilled & disabled "),e(),l(97,"input",9),e()(),t(98,"div",4)(99,"mat-form-field",17)(100,"mat-label"),i(101," Error "),e(),l(102,"input",10),e()()(),t(103,"div",0),l(104,"mat-divider"),e()(),t(105,"div",2)(106,"h2"),i(107,"Appearance Outline & Label Auto"),e(),t(108,"div",3)(109,"div",4)(110,"mat-form-field",18)(111,"mat-label"),i(112," Default "),e(),l(113,"input",5),e()(),t(114,"div",4)(115,"mat-form-field",18)(116,"mat-label"),i(117," Prefilled "),e(),l(118,"input",7),e()(),t(119,"div",4)(120,"mat-form-field",18)(121,"mat-label"),i(122," Disabled "),e(),l(123,"input",8),e()(),t(124,"div",4)(125,"mat-form-field",18)(126,"mat-label"),i(127," Prefilled & disabled "),e(),l(128,"input",9),e()(),t(129,"div",4)(130,"mat-form-field",18)(131,"mat-label"),i(132," Error "),e(),l(133,"input",10),e()()(),t(134,"div",0),l(135,"mat-divider"),e()(),t(136,"div",2)(137,"h2"),i(138,"Inputs with Validators"),e(),t(139,"div",3)(140,"div",4)(141,"mat-form-field",19)(142,"mat-label"),i(143,"Required "),e(),l(144,"input",20),e()(),l(145,"div")(146,"div"),e(),t(147,"div",0),l(148,"mat-divider"),e()(),t(149,"div",2)(150,"h2"),i(151,"Textarea"),e(),t(152,"div",3)(153,"div",4)(154,"mat-form-field",19)(155,"mat-label"),i(156,"Default prefilled"),e(),l(157,"textarea",21),e()(),t(158,"div",4)(159,"mat-form-field",19)(160,"mat-label"),i(161,"Prefilled"),e(),l(162,"textarea",22),e()(),t(163,"div",4)(164,"mat-form-field",19)(165,"mat-label"),i(166,"Disabled"),e(),l(167,"textarea",23),e()(),t(168,"div",4)(169,"mat-form-field",19)(170,"mat-label"),i(171,"Prefilled and disabled"),e(),l(172,"textarea",24),e()(),t(173,"div",4)(174,"mat-form-field",19)(175,"mat-label"),i(176,"Error"),e(),l(177,"textarea",25),e()()(),t(178,"div",0),l(179,"mat-divider"),e()(),t(180,"div",2)(181,"h2"),i(182,"Dropdowns"),e(),t(183,"div",3)(184,"div",4)(185,"mat-label"),i(186," Default"),e(),t(187,"mat-form-field",11)(188,"mat-select",26)(189,"mat-option",27),i(190,"Option 1"),e(),t(191,"mat-option",28),i(192,"Option 2"),e(),t(193,"mat-option",29),i(194,"Option 3"),e(),t(195,"mat-option",30),i(196,"Option 4"),e(),t(197,"mat-option",31),i(198,"Option 5"),e()()()(),t(199,"div",4)(200,"mat-label"),i(201," Preselected "),e(),t(202,"mat-form-field",11)(203,"mat-select",32)(204,"mat-option",27),i(205,"Option 1"),e(),t(206,"mat-option",28),i(207,"Option 2"),e(),t(208,"mat-option",29),i(209,"Option 3"),e(),t(210,"mat-option",30),i(211,"Option 4"),e(),t(212,"mat-option",31),i(213,"Option 5"),e()()()(),t(214,"div",4)(215,"mat-label"),i(216," Disabled "),e(),t(217,"mat-form-field",11)(218,"mat-select",33)(219,"mat-option",27),i(220,"Option 1"),e(),t(221,"mat-option",28),i(222,"Option 2"),e(),t(223,"mat-option",29),i(224,"Option 3"),e(),t(225,"mat-option",30),i(226,"Option 4"),e(),t(227,"mat-option",31),i(228,"Option 5"),e()()()(),t(229,"div",4)(230,"mat-label"),i(231," Preselected and disabled "),e(),t(232,"mat-form-field",11)(233,"mat-select",34)(234,"mat-option",27),i(235,"Option 1"),e(),t(236,"mat-option",28),i(237,"Option 2"),e(),t(238,"mat-option",29),i(239,"Option 3"),e(),t(240,"mat-option",30),i(241,"Option 4"),e(),t(242,"mat-option",31),i(243,"Option 5"),e()()()()(),t(244,"div",0),l(245,"mat-divider"),e()(),t(246,"div",2)(247,"div",35)(248,"div",4)(249,"mat-label"),i(250,"Password toggle"),e(),t(251,"mat-form-field",11),l(252,"input",36),e()()(),t(253,"div",0),l(254,"mat-divider"),e()()()),s&2&&(d(4),p("formGroup",o.form))},dependencies:[b,Fe,Ae,se,Re,Ne,Le,Ve,ze,Xt,je,ui,Vt,ri],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0}),H);Ye=bt([Bt()],Ye);var gn=(()=>{let n=class n{constructor(){}ngOnInit(){}};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,selectors:[["ms-icons-demo"]],decls:381,vars:0,consts:[[1,"line"],[1,"section"],[1,"parent","items-per-row-3"],["fontSet","ms","fontIcon","icon-Check"],[1,"parent","items-per-row-8"],["fontSet","ms","fontIcon","icon-User",1,"mat-primary"],["fontSet","ms","fontIcon","icon-User",1,"mat-complementary"],["fontSet","ms","fontIcon","icon-User",1,"mat-gray"],["fontSet","ms","fontIcon","icon-User",1,"mat-white"],["fontSet","ms","fontIcon","icon-User",1,"mat-accent"],["fontSet","ms","fontIcon","icon-User",1,"mat-success"],["fontSet","ms","fontIcon","icon-User",1,"mat-warn"],["fontSet","ms","fontIcon","icon-User",1,"mat-error"],[1,"parent","ten-items-per-row"],["fontSet","ms","fontIcon","icon-Alerts-Info"],["fontSet","ms","fontIcon","icon-Alerts-Negative"],["fontSet","ms","fontIcon","icon-Alerts-Positive"],["fontSet","ms","fontIcon","icon-Alerts-Warning"],["fontSet","ms","fontIcon","icon-ArrowDown"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["fontSet","ms","fontIcon","icon-ArrowRight"],["fontSet","ms","fontIcon","icon-ArrowSquareOut"],["fontSet","ms","fontIcon","icon-ArrowUp"],["fontSet","ms","fontIcon","icon-Bell"],["fontSet","ms","fontIcon","icon-CalendarBlank"],["fontSet","ms","fontIcon","icon-CaretDoubleLeft"],["fontSet","ms","fontIcon","icon-CaretDoubleRight"],["fontSet","ms","fontIcon","icon-CaretDown"],["fontSet","ms","fontIcon","icon-CaretLeft"],["fontSet","ms","fontIcon","icon-CaretRight"],["fontSet","ms","fontIcon","icon-CaretUp"],["fontSet","ms","fontIcon","icon-CheckCircle"],["fontSet","ms","fontIcon","icon-Clock"],["fontSet","ms","fontIcon","icon-Copy"],["fontSet","ms","fontIcon","icon-Crosshair"],["fontSet","ms","fontIcon","icon-DotsSix"],["fontSet","ms","fontIcon","icon-DotsThree"],["fontSet","ms","fontIcon","icon-DotsThreeVertical"],["fontSet","ms","fontIcon","icon-DownloadSimple"],["fontSet","ms","fontIcon","icon-DropdownCaretDown"],["fontSet","ms","fontIcon","icon-DropdownCaretRight"],["fontSet","ms","fontIcon","icon-DropdownCaretUp"],["fontSet","ms","fontIcon","icon-EnvelopeSimple"],["fontSet","ms","fontIcon","icon-Eye"],["fontSet","ms","fontIcon","icon-EyeSlash"],["fontSet","ms","fontIcon","icon-FunnelSimple"],["fontSet","ms","fontIcon","icon-GearSix"],["fontSet","ms","fontIcon","icon-Info"],["fontSet","ms","fontIcon","icon-Lightning"],["fontSet","ms","fontIcon","icon-ListBullets"],["fontSet","ms","fontIcon","icon-Loader"],["fontSet","ms","fontIcon","icon-Lock"],["fontSet","ms","fontIcon","icon-Magnet"],["fontSet","ms","fontIcon","icon-MagnifyingGlass"],["fontSet","ms","fontIcon","icon-MapTrifold"],["fontSet","ms","fontIcon","icon-Minus"],["fontSet","ms","fontIcon","icon-Nav"],["fontSet","ms","fontIcon","icon-Paperclip"],["fontSet","ms","fontIcon","icon-Passthrough"],["fontSet","ms","fontIcon","icon-PencilSimple"],["fontSet","ms","fontIcon","icon-Placeholder"],["fontSet","ms","fontIcon","icon-Plus"],["fontSet","ms","fontIcon","icon-Printer"],["fontSet","ms","fontIcon","icon-Prohibit"],["fontSet","ms","fontIcon","icon-Question"],["fontSet","ms","fontIcon","icon-Refresh"],["fontSet","ms","fontIcon","icon-Rocket"],["fontSet","ms","fontIcon","icon-SignOut"],["fontSet","ms","fontIcon","icon-Sort"],["fontSet","ms","fontIcon","icon-SortDown"],["fontSet","ms","fontIcon","icon-SortUp"],["fontSet","ms","fontIcon","icon-Stack"],["fontSet","ms","fontIcon","icon-StackPort"],["fontSet","ms","fontIcon","icon-TrashSimple"],["fontSet","ms","fontIcon","icon-TrendDown"],["fontSet","ms","fontIcon","icon-TrendUp"],["fontSet","ms","fontIcon","icon-UploadSimple"],["fontSet","ms","fontIcon","icon-User"],["fontSet","ms","fontIcon","icon-Users"],["fontSet","ms","fontIcon","icon-WifiHigh"],["fontSet","ms","fontIcon","icon-WifiLightning"],["fontSet","ms","fontIcon","icon-WifiLow"],["fontSet","ms","fontIcon","icon-WifiMedium"],["fontSet","ms","fontIcon","icon-WifiNone"],["fontSet","ms","fontIcon","icon-WifiSlash"],["fontSet","ms","fontIcon","icon-WifiX"],["fontSet","ms","fontIcon","icon-X"],["fontSet","ms","fontIcon","icon-XCircle"],["fontSet","ms","fontIcon","icon-Admin"],["fontSet","ms","fontIcon","icon-Environmental"],["fontSet","ms","fontIcon","icon-Inventory"],["fontSet","ms","fontIcon","icon-Systems-Manager"],[2,"grid-column","span 10"]],template:function(a,m){a&1&&(t(0,"h1"),i(1,"Icons"),e(),t(2,"div",0),l(3,"mat-divider"),e(),t(4,"div",1)(5,"h2"),i(6,"Types"),e(),t(7,"div",2)(8,"div"),i(9,"Icon from Custom Font Set"),e(),t(10,"div"),i(11,"Material Default Icons"),e(),l(12,"div"),t(13,"div"),l(14,"mat-icon",3),e(),t(15,"div")(16,"mat-icon"),i(17,"delete"),e()(),l(18,"div"),e(),t(19,"div",0),l(20,"mat-divider"),e()(),t(21,"div",1)(22,"h2"),i(23,"Custom styles"),e(),t(24,"div",4)(25,"div"),i(26,"Primary"),e(),t(27,"div"),i(28,"Complementary"),e(),t(29,"div"),i(30,"Gray"),e(),t(31,"div"),i(32,"White"),e(),t(33,"div"),i(34,"Accent"),e(),t(35,"div"),i(36,"Succes"),e(),t(37,"div"),i(38,"Warn"),e(),t(39,"div"),i(40,"Error"),e(),t(41,"div"),l(42,"mat-icon",5),e(),t(43,"div"),l(44,"mat-icon",6),e(),t(45,"div"),l(46,"mat-icon",7),e(),t(47,"div"),l(48,"mat-icon",8),e(),t(49,"div"),l(50,"mat-icon",9),e(),t(51,"div"),l(52,"mat-icon",10),e(),t(53,"div"),l(54,"mat-icon",11),e(),t(55,"div"),l(56,"mat-icon",12),e()(),t(57,"div",0),l(58,"mat-divider"),e()(),t(59,"div",1)(60,"h2"),i(61,"Custom Icons"),e(),t(62,"div",13)(63,"div"),i(64,"icon-Alerts-Info"),e(),t(65,"div"),i(66,"icon-Alerts-Negative"),e(),t(67,"div"),i(68,"icon-Alerts-Positive"),e(),t(69,"div"),i(70,"icon-Alerts-Warning"),e(),t(71,"div"),i(72,"icon-ArrowDown"),e(),t(73,"div"),i(74,"icon-ArrowLeft"),e(),t(75,"div"),i(76,"icon-ArrowRight"),e(),t(77,"div"),i(78,"icon-ArrowSquareOut"),e(),t(79,"div"),i(80,"icon-ArrowUp"),e(),t(81,"div"),i(82,"icon-Bell"),e(),t(83,"div"),l(84,"mat-icon",14),e(),t(85,"div"),l(86,"mat-icon",15),e(),t(87,"div"),l(88,"mat-icon",16),e(),t(89,"div"),l(90,"mat-icon",17),e(),t(91,"div"),l(92,"mat-icon",18),e(),t(93,"div"),l(94,"mat-icon",19),e(),t(95,"div"),l(96,"mat-icon",20),e(),t(97,"div"),l(98,"mat-icon",21),e(),t(99,"div"),l(100,"mat-icon",22),e(),t(101,"div"),l(102,"mat-icon",23),e(),t(103,"div"),i(104,"icon-CalendarBlank"),e(),t(105,"div"),i(106,"icon-CaretDoubleLeft"),e(),t(107,"div"),i(108,"icon-CaretDoubleRight"),e(),t(109,"div"),i(110,"icon-CaretDown"),e(),t(111,"div"),i(112,"icon-CaretLeft"),e(),t(113,"div"),i(114,"icon-CaretRight"),e(),t(115,"div"),i(116,"icon-CaretUp"),e(),t(117,"div"),i(118,"icon-CheckCircle"),e(),t(119,"div"),i(120,"icon-Clock"),e(),t(121,"div"),i(122,"icon-Copy"),e(),t(123,"div"),l(124,"mat-icon",24),e(),t(125,"div"),l(126,"mat-icon",25),e(),t(127,"div"),l(128,"mat-icon",26),e(),t(129,"div"),l(130,"mat-icon",27),e(),t(131,"div"),l(132,"mat-icon",28),e(),t(133,"div"),l(134,"mat-icon",29),e(),t(135,"div"),l(136,"mat-icon",30),e(),t(137,"div"),l(138,"mat-icon",31),e(),t(139,"div"),l(140,"mat-icon",32),e(),t(141,"div"),l(142,"mat-icon",33),e(),t(143,"div"),i(144,"icon-Crosshair"),e(),t(145,"div"),i(146,"icon-DotsSix"),e(),t(147,"div"),i(148,"icon-DotsThree"),e(),t(149,"div"),i(150,"icon-DotsThreeVertical"),e(),t(151,"div"),i(152,"icon-DownloadSimple"),e(),t(153,"div"),i(154,"icon-DropdownCaretDown"),e(),t(155,"div"),i(156,"icon-DropdownCaretRight"),e(),t(157,"div"),i(158,"icon-DropdownCaretUp"),e(),t(159,"div"),i(160,"icon-EnvelopeSimple"),e(),t(161,"div"),i(162,"icon-Eye"),e(),t(163,"div"),l(164,"mat-icon",34),e(),t(165,"div"),l(166,"mat-icon",35),e(),t(167,"div"),l(168,"mat-icon",36),e(),t(169,"div"),l(170,"mat-icon",37),e(),t(171,"div"),l(172,"mat-icon",38),e(),t(173,"div"),l(174,"mat-icon",39),e(),t(175,"div"),l(176,"mat-icon",40),e(),t(177,"div"),l(178,"mat-icon",41),e(),t(179,"div"),l(180,"mat-icon",42),e(),t(181,"div"),l(182,"mat-icon",43),e(),t(183,"div"),i(184,"icon-EyeSlash"),e(),t(185,"div"),i(186,"icon-FunnelSimple"),e(),t(187,"div"),i(188,"icon-GearSix"),e(),t(189,"div"),i(190,"icon-Info"),e(),t(191,"div"),i(192,"icon-Lightning"),e(),t(193,"div"),i(194,"icon-ListBullets"),e(),t(195,"div"),i(196,"icon-Loader"),e(),t(197,"div"),i(198,"icon-Lock"),e(),t(199,"div"),i(200,"icon-Magnet"),e(),t(201,"div"),i(202,"icon-MagnifyingGlass"),e(),t(203,"div"),l(204,"mat-icon",44),e(),t(205,"div"),l(206,"mat-icon",45),e(),t(207,"div"),l(208,"mat-icon",46),e(),t(209,"div"),l(210,"mat-icon",47),e(),t(211,"div"),l(212,"mat-icon",48),e(),t(213,"div"),l(214,"mat-icon",49),e(),t(215,"div"),l(216,"mat-icon",50),e(),t(217,"div"),l(218,"mat-icon",51),e(),t(219,"div"),l(220,"mat-icon",52),e(),t(221,"div"),l(222,"mat-icon",53),e(),t(223,"div"),i(224,"icon-MapTrifold"),e(),t(225,"div"),i(226,"icon-Minus"),e(),t(227,"div"),i(228,"icon-Nav"),e(),t(229,"div"),i(230,"icon-Paperclip"),e(),t(231,"div"),i(232,"icon-Passthrough"),e(),t(233,"div"),i(234,"icon-PencilSimple"),e(),t(235,"div"),i(236,"icon-Placeholder"),e(),t(237,"div"),i(238,"icon-Plus"),e(),t(239,"div"),i(240,"icon-Printer"),e(),t(241,"div"),i(242,"icon-Prohibit"),e(),t(243,"div"),l(244,"mat-icon",54),e(),t(245,"div"),l(246,"mat-icon",55),e(),t(247,"div"),l(248,"mat-icon",56),e(),t(249,"div"),l(250,"mat-icon",57),e(),t(251,"div"),l(252,"mat-icon",58),e(),t(253,"div"),l(254,"mat-icon",59),e(),t(255,"div"),l(256,"mat-icon",60),e(),t(257,"div"),l(258,"mat-icon",61),e(),t(259,"div"),l(260,"mat-icon",62),e(),t(261,"div"),l(262,"mat-icon",63),e(),t(263,"div"),i(264,"icon-Question"),e(),t(265,"div"),i(266,"icon-Refresh"),e(),t(267,"div"),i(268,"icon-Rocket"),e(),t(269,"div"),i(270,"icon-SignOut"),e(),t(271,"div"),i(272,"icon-Sort"),e(),t(273,"div"),i(274,"icon-SortDown"),e(),t(275,"div"),i(276,"icon-SortUp"),e(),t(277,"div"),i(278,"icon-Stack"),e(),t(279,"div"),i(280,"icon-StackPort"),e(),t(281,"div"),i(282,"icon-TrashSimple"),e(),t(283,"div"),l(284,"mat-icon",64),e(),t(285,"div"),l(286,"mat-icon",65),e(),t(287,"div"),l(288,"mat-icon",66),e(),t(289,"div"),l(290,"mat-icon",67),e(),t(291,"div"),l(292,"mat-icon",68),e(),t(293,"div"),l(294,"mat-icon",69),e(),t(295,"div"),l(296,"mat-icon",70),e(),t(297,"div"),l(298,"mat-icon",71),e(),t(299,"div"),l(300,"mat-icon",72),e(),t(301,"div"),l(302,"mat-icon",73),e(),t(303,"div"),i(304,"icon-TrendDown"),e(),t(305,"div"),i(306,"icon-TrendUp"),e(),t(307,"div"),i(308,"icon-UploadSimple"),e(),t(309,"div"),i(310,"icon-User"),e(),t(311,"div"),i(312,"icon-Users"),e(),t(313,"div"),i(314,"icon-WifiHigh"),e(),t(315,"div"),i(316,"icon-WifiLightning"),e(),t(317,"div"),i(318,"icon-WifiLow"),e(),t(319,"div"),i(320,"icon-WifiMedium"),e(),t(321,"div"),i(322,"icon-WifiNone"),e(),t(323,"div"),l(324,"mat-icon",74),e(),t(325,"div"),l(326,"mat-icon",75),e(),t(327,"div"),l(328,"mat-icon",76),e(),t(329,"div"),l(330,"mat-icon",77),e(),t(331,"div"),l(332,"mat-icon",78),e(),t(333,"div"),l(334,"mat-icon",79),e(),t(335,"div"),l(336,"mat-icon",80),e(),t(337,"div"),l(338,"mat-icon",81),e(),t(339,"div"),l(340,"mat-icon",82),e(),t(341,"div"),l(342,"mat-icon",83),e(),t(343,"div"),i(344,"icon-WifiSlash"),e(),t(345,"div"),i(346,"icon-WifiX"),e(),t(347,"div"),i(348,"icon-X"),e(),t(349,"div"),i(350,"icon-XCircle"),e(),t(351,"div"),i(352,"icon-Admin"),e(),t(353,"div"),i(354,"icon-Environmental"),e(),t(355,"div"),i(356,"icon-Inventory"),e(),t(357,"div"),i(358,"icon-Systems-Manager"),e(),l(359,"div")(360,"div"),t(361,"div"),l(362,"mat-icon",84),e(),t(363,"div"),l(364,"mat-icon",85),e(),t(365,"div"),l(366,"mat-icon",86),e(),t(367,"div"),l(368,"mat-icon",87),e(),t(369,"div"),l(370,"mat-icon",88),e(),t(371,"div"),l(372,"mat-icon",89),e(),t(373,"div"),l(374,"mat-icon",90),e(),t(375,"div"),l(376,"mat-icon",91),e(),l(377,"div")(378,"div"),t(379,"div",92),l(380,"mat-divider"),e()()())},dependencies:[F,b],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0});let r=n;return r})();var fn=(()=>{let n=class n{};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,selectors:[["ms-menu-demo"]],decls:155,vars:11,consts:[["animals","matMenu"],["vertebrates","matMenu"],["invertebrates","matMenu"],["fish","matMenu"],["amphibians","matMenu"],["reptiles","matMenu"],["menu","matMenu"],["aboveMenu","matMenu"],["belowMenu","matMenu"],["beforeMenu","matMenu"],["afterMenu","matMenu"],[1,"section"],[1,"parent","items-per-row-2"],["mat-button","",3,"matMenuTriggerFor"],[1,"ms-mat-menu"],["mat-menu-item","",3,"matMenuTriggerFor"],["fontSet","ms","fontIcon","icon-User"],["mat-menu-item",""],["mat-menu-item","","disabled",""],[1,"line"],[1,"section","parent","items-per-row-4"],["yPosition","above","xPosition","after",1,"ms-mat-menu"],["yPosition","below",1,"ms-mat-menu"],["xPosition","before",1,"ms-mat-menu"],["xPosition","after",1,"ms-mat-menu"]],template:function(a,m){if(a&1&&(t(0,"div",11)(1,"h2"),i(2,"Menu"),e(),t(3,"div",12)(4,"div")(5,"button",13),i(6,"Animal index"),e(),t(7,"mat-menu",14,0)(9,"button",15),l(10,"mat-icon",16),i(11,"Vertebrates "),e(),t(12,"button",15),l(13,"mat-icon",16),i(14,"Invertebrates "),e()(),t(15,"mat-menu",14,1)(17,"button",15),l(18,"mat-icon",16),i(19,"Fishes "),e(),t(20,"button",15),l(21,"mat-icon",16),i(22,"Amphibians "),e(),t(23,"button",15),l(24,"mat-icon",16),i(25,"Reptiles "),e(),t(26,"button",17),l(27,"mat-icon",16),i(28,"Birds"),e(),t(29,"button",17),l(30,"mat-icon",16),i(31,"Mammals"),e()(),t(32,"mat-menu",14,2)(34,"button",17),l(35,"mat-icon",16),i(36,"Insects"),e(),t(37,"button",17),l(38,"mat-icon",16),i(39,"Molluscs"),e(),t(40,"button",17),l(41,"mat-icon",16),i(42,"Crustaceans"),e(),t(43,"button",17),l(44,"mat-icon",16),i(45,"Corals"),e(),t(46,"button",17),l(47,"mat-icon",16),i(48,"Arachnids"),e(),t(49,"button",17),l(50,"mat-icon",16),i(51,"Velvet worms"),e(),t(52,"button",17),l(53,"mat-icon",16),i(54,"Horseshoe crabs"),e()(),t(55,"mat-menu",14,3)(57,"button",17),l(58,"mat-icon",16),i(59,"Baikal oilfish"),e(),t(60,"button",17),l(61,"mat-icon",16),i(62,"Bala shark"),e(),t(63,"button",17),l(64,"mat-icon",16),i(65,"Ballan wrasse"),e(),t(66,"button",17),l(67,"mat-icon",16),i(68,"Bamboo shark"),e(),t(69,"button",17),l(70,"mat-icon",16),i(71,"Banded killifish"),e()(),t(72,"mat-menu",14,4)(74,"button",17),l(75,"mat-icon",16),i(76,"Sonoran desert toad"),e(),t(77,"button",17),l(78,"mat-icon",16),i(79,"Western toad"),e(),t(80,"button",17),l(81,"mat-icon",16),i(82,"Arroyo toad"),e(),t(83,"button",17),l(84,"mat-icon",16),i(85,"Yosemite toad"),e()(),t(86,"mat-menu",14,5)(88,"button",17),l(89,"mat-icon",16),i(90,"Banded Day Gecko"),e(),t(91,"button",17),l(92,"mat-icon",16),i(93,"Banded Gila Monster"),e(),t(94,"button",17),l(95,"mat-icon",16),i(96,"Black Tree Monitor"),e(),t(97,"button",17),l(98,"mat-icon",16),i(99,"Blue Spiny Lizard"),e(),t(100,"button",18),l(101,"mat-icon",16),i(102,"Velociraptor"),e()()(),t(103,"div")(104,"button",13),i(105,"Menu"),e(),t(106,"mat-menu",14,6)(108,"button",17),l(109,"mat-icon",16),i(110,"Item 1"),e(),t(111,"button",17),l(112,"mat-icon",16),i(113,"Item 2"),e()()()(),t(114,"div",19),l(115,"mat-divider"),e()(),t(116,"div",20)(117,"div")(118,"button",13),i(119,"Above"),e(),t(120,"mat-menu",21,7)(122,"button",17),i(123,"Item 1"),e(),t(124,"button",17),i(125,"Item 2"),e()()(),t(126,"div")(127,"button",13),i(128,"Below"),e(),t(129,"mat-menu",22,8)(131,"button",17),i(132,"Item 1"),e(),t(133,"button",17),i(134,"Item 2"),e()()(),t(135,"div")(136,"button",13),i(137,"Before"),e(),t(138,"mat-menu",23,9)(140,"button",17),i(141,"Item 1"),e(),t(142,"button",17),i(143,"Item 2"),e()()(),t(144,"div")(145,"button",13),i(146,"After"),e(),t(147,"mat-menu",24,10)(149,"button",17),i(150,"Item 1"),e(),t(151,"button",17),i(152,"Item 2"),e()()()(),t(153,"div",19),l(154,"mat-divider"),e()),a&2){let c=_(8),h=_(16),M=_(33),pe=_(56),En=_(73),Cn=_(87),wn=_(107),Mn=_(121),Dn=_(130),yn=_(139),In=_(148);d(5),p("matMenuTriggerFor",c),d(4),p("matMenuTriggerFor",h),d(3),p("matMenuTriggerFor",M),d(5),p("matMenuTriggerFor",pe),d(3),p("matMenuTriggerFor",En),d(3),p("matMenuTriggerFor",Cn),d(81),p("matMenuTriggerFor",wn),d(14),p("matMenuTriggerFor",Mn),d(9),p("matMenuTriggerFor",Dn),d(9),p("matMenuTriggerFor",yn),d(9),p("matMenuTriggerFor",In)}},dependencies:[F,b,I,ni,ii,oi],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0});let r=n;return r})();var hn=(()=>{let n=class n{constructor(o){this.snackbarService=o}};n.\u0275fac=function(a){return new(a||n)(u(Ni))},n.\u0275cmp=g({type:n,selectors:[["ms-notifications-demo"]],decls:20,vars:0,consts:[[1,"line"],[1,"section"],[1,"parent","items-per-row-8"],["mat-raised-button","","color","primary",3,"click"]],template:function(a,m){a&1&&(t(0,"h1"),i(1,"Notifications"),e(),t(2,"div",0),l(3,"mat-divider"),e(),t(4,"div",1)(5,"h2"),i(6,"Banners"),e(),t(7,"div",2)(8,"div")(9,"button",3),f("click",function(){return m.snackbarService.showSuccess("Example Success")}),i(10," Open Success "),e()(),t(11,"div")(12,"button",3),f("click",function(){return m.snackbarService.showError("Example Error")}),i(13,"Open Error"),e()(),t(14,"div")(15,"button",3),f("click",function(){return m.snackbarService.showInfo("Example Info")}),i(16,"Open Info"),e()(),t(17,"div")(18,"button",3),f("click",function(){return m.snackbarService.showWarning("Example Warning")}),i(19," Open Warning "),e()()()())},dependencies:[b,I],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"]});let r=n;return r})();function bo(r,n){r&1&&(t(0,"mat-header-cell"),i(1," No. "),e())}function So(r,n){if(r&1&&(t(0,"mat-cell")(1,"b"),i(2),e()()),r&2){let s=n.$implicit;d(2),B(s.position)}}function xo(r,n){r&1&&(t(0,"mat-header-cell"),i(1," Name "),e())}function _o(r,n){if(r&1&&(t(0,"mat-cell"),i(1),e()),r&2){let s=n.$implicit;d(),R(" ",s.name," ")}}function Eo(r,n){r&1&&(t(0,"mat-header-cell"),i(1," Weight "),e())}function Co(r,n){if(r&1&&(t(0,"mat-cell"),i(1),e()),r&2){let s=n.$implicit;d(),R(" ",s.weight," ")}}function wo(r,n){r&1&&(t(0,"mat-header-cell"),i(1," Symbol "),e())}function Mo(r,n){if(r&1&&(t(0,"mat-cell"),i(1),e()),r&2){let s=n.$implicit;d(),R(" ",s.symbol," ")}}function Do(r,n){r&1&&l(0,"mat-header-row")}function yo(r,n){r&1&&l(0,"mat-row")}var vn=[{position:1,name:"Hydrogen",weight:1.0079,symbol:"H"},{position:2,name:"Helium",weight:4.0026,symbol:"He"},{position:3,name:"Lithium",weight:6.941,symbol:"Li"},{position:4,name:"Beryllium",weight:9.0122,symbol:"Be"},{position:5,name:"Boron",weight:10.811,symbol:"B"},{position:6,name:"Carbon",weight:12.0107,symbol:"C"},{position:7,name:"Nitrogen",weight:14.0067,symbol:"N"},{position:8,name:"Oxygen",weight:15.9994,symbol:"O"},{position:9,name:"Fluorine",weight:18.9984,symbol:"F"},{position:10,name:"Neon",weight:20.1797,symbol:"Ne"}],bn=(()=>{let n=class n{constructor(){this.displayedColumnsSimple=["position","name","weight","symbol"],this.dataSourceSimple=vn,this.displayedColumns=["select","position","name","weight","symbol"],this.dataSource=new Ri(vn),this.selection=new He(!0,[])}ngOnInit(){}};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,selectors:[["ms-tables-demo"]],decls:22,vars:3,consts:[[1,"line"],[1,"ms-card"],[1,"heading-sub-section-title"],[1,"ms-table",3,"dataSource"],["matColumnDef","position"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","name"],["matColumnDef","weight"],["matColumnDef","symbol"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"]],template:function(a,m){a&1&&(t(0,"h1"),i(1,"Tables"),e(),t(2,"div",0),l(3,"mat-divider"),e(),t(4,"mat-card",1)(5,"p",2),i(6,"History"),e(),t(7,"mat-table",3),ge(8,4),x(9,bo,2,0,"mat-header-cell",5)(10,So,3,1,"mat-cell",6),fe(),ge(11,7),x(12,xo,2,0,"mat-header-cell",5)(13,_o,2,1,"mat-cell",6),fe(),ge(14,8),x(15,Eo,2,0,"mat-header-cell",5)(16,Co,2,1,"mat-cell",6),fe(),ge(17,9),x(18,wo,2,0,"mat-header-cell",5)(19,Mo,2,1,"mat-cell",6),fe(),x(20,Do,1,0,"mat-header-row",10)(21,yo,1,0,"mat-row",11),e()()),a&2&&(d(7),p("dataSource",m.dataSourceSimple),d(13),p("matHeaderRowDef",m.displayedColumnsSimple),d(),p("matRowDefColumns",m.displayedColumnsSimple))},dependencies:[b,Ci,Mi,Oi,Di,wi,ki,yi,Ii,Ti,Pi,de],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0});let r=n;return r})();var Sn=(()=>{let n=class n{constructor(){}};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,selectors:[["ms-typography-demo"]],decls:76,vars:0,consts:[[1,"line"],[1,"heading-primary-title"],[1,"heading-section-title"],[1,"heading-sub-section-title"],[1,"paragraph-regular-p3-default"],[1,"paragraph-bold-p3-small-bold"],[1,"paragraph-semibold-p3-small-emphasis"],[1,"paragraph-semibold-p3-default-emphasis"],[1,"paragraph-regular-p4-small"],[1,"paragraph-semibold-p4-xSmall"],[1,"key-value-container","single"],[1,"key-value-pair"],[1,"key-value-key"],[1,"key-value-value"],[1,"mat-headline-1"],[1,"mat-headline-2"],[1,"mat-headline-3"],[1,"mat-headline-4"],[1,"subtitle-1"],[1,"subtitle-2"],[1,"mat-body-1"],[1,"mat-body-2"],[1,"mat-caption"]],template:function(a,m){a&1&&(t(0,"h1"),i(1,"Typograpghy"),e(),t(2,"div",0),l(3,"mat-divider"),e(),t(4,"h1"),i(5,"Custom Typography (Figma)"),e(),t(6,"p",1),i(7,"heading-primary-title"),e(),t(8,"p",2),i(9,"heading-section-title"),e(),t(10,"p",3),i(11,"heading-sub-section-title"),e(),t(12,"p",4),i(13,"paragraph-regular-p3-default"),e(),t(14,"p",5),i(15,"paragraph-bold-p3-small-bold"),e(),t(16,"p",6),i(17,"paragraph-semibold-p3-small-emphasis"),e(),t(18,"p",7),i(19,"paragraph-semibold-p3-default-emphasis"),e(),t(20,"p",8),i(21,"paragraph-regular-p4-small"),e(),t(22,"p",9),i(23,"paragraph-semibold-p4-xSmall"),e(),l(24,"mat-divider")(25,"br"),t(26,"h1"),i(27,"Key Value Pair"),e(),t(28,"div",10)(29,"div",11)(30,"div",12),i(31,"Key 1:"),e(),t(32,"div",13),i(33,"Value 1"),e()(),t(34,"div",11)(35,"div",12),i(36,"Key 2:"),e(),t(37,"div",13),i(38,"Value 2"),e()()(),l(39,"mat-divider")(40,"br"),t(41,"h1"),i(42,"Angular Material Custom Typograpgy"),e(),t(43,"p",14),i(44,"mat-headline-1"),e(),t(45,"p",15),i(46,"mat-headline-2"),e(),t(47,"p",16),i(48,"mat-headline-3"),e(),t(49,"p",17),i(50,"mat-headline-4"),e(),t(51,"h1"),i(52,"Heading 1"),e(),t(53,"h2"),i(54,"Heading 2"),e(),t(55,"h3"),i(56,"Heading 3"),e(),t(57,"h4"),i(58,"Heading 4"),e(),t(59,"h5"),i(60,"Heading 5"),e(),t(61,"h6"),i(62,"Heading 6"),e(),l(63,"br"),t(64,"p",18),i(65,"subtitle-1"),e(),t(66,"p",19),i(67,"subtitle-2"),e(),l(68,"br"),t(69,"p",20),i(70,"mat-body-1"),e(),t(71,"p",21),i(72,"mat-body-2"),e(),l(73,"br"),t(74,"p",22),i(75,"mat-caption"),e())},dependencies:[b],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0});let r=n;return r})();var Io=()=>["Iterative Magnitude Pruning","One-shot Magnitude Pruning"],Oo=()=>["Yes","No"],ko=()=>["Option 1","Option 2","Option 3","Option 4"],xn=(()=>{let n=class n{constructor(){}handleSelected(o){console.log("Selected option:",o)}};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=g({type:n,selectors:[["ag-wizard-demo"]],decls:33,vars:6,consts:[["stepper",""],[1,"line"],[1,"section"],[1,"ms-wizard"],[1,"heading-primary-title"],[3,"selectedOption","options"],[1,"mt-4"],["mat-raised-button","","color","primary","matStepperNext",""],["mat-button","","matStepperPrevious","",1,"mr-3"],["fontSet","ms","fontIcon","icon-ArrowLeft"]],template:function(a,m){if(a&1){let c=T();t(0,"h1"),i(1,"Wizard"),e(),t(2,"div",1),l(3,"mat-divider"),e(),l(4,"br"),t(5,"div",2)(6,"mat-stepper",3,0)(8,"mat-step")(9,"p",4),i(10,"Recommended Algorithm:"),e(),t(11,"ms-card-selector",5),f("selectedOption",function(M){return E(c),C(m.handleSelected(M))}),e(),t(12,"div",6)(13,"button",7),i(14,"Next"),e()()(),t(15,"mat-step")(16,"p",4),i(17,"Do you want to have a similar or higher accuracy?"),e(),t(18,"ms-card-selector",5),f("selectedOption",function(M){return E(c),C(m.handleSelected(M))}),e(),t(19,"div",6)(20,"button",8),l(21,"mat-icon",9),i(22," Previous "),e(),t(23,"button",7),i(24,"Next"),e()()(),t(25,"mat-step")(26,"p",4),i(27,"Example question?"),e(),t(28,"ms-card-selector",5),f("selectedOption",function(M){return E(c),C(m.handleSelected(M))}),e(),t(29,"div",6)(30,"button",8),l(31,"mat-icon",9),i(32," Previous "),e()()()()()}a&2&&(d(11),p("options",ae(3,Io)),d(7),p("options",ae(4,Oo)),d(10),p("options",ae(5,ko)))},dependencies:[ce,F,ht,Ke,$i,Ki,b,I]});let r=n;return r})();var To=[{path:"",component:on,children:[{path:"",redirectTo:y.DEMO.BUTTONS,pathMatch:"full"},{path:y.DEMO.BUTTONS,component:Yi},{path:y.DEMO.FORM_FIELDS,component:Ye},{path:y.DEMO.CHECKBOXES,component:tn},{path:y.DEMO.TYPOGRAPHY,component:Sn},{path:y.DEMO.TABLE,component:bn},{path:y.DEMO.ICONS,component:gn},{path:y.DEMO.MENU,component:fn},{path:y.DEMO.CARDS,component:Ji},{path:y.DEMO.CHIPS,component:nn},{path:y.DEMO.NOTIFICATIONS,component:hn},{path:y.DEMO.WIZARD,component:xn},{path:y.DEMO.DRAWER,component:un}]}],_n=(()=>{let n=class n{};n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=U({type:n}),n.\u0275inj=G({imports:[xe.forChild(To),xe]});let r=n;return r})();var Kl=(()=>{let n=class n{};n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=U({type:n}),n.\u0275inj=G({providers:[Ge],imports:[xe,Ie,_n,ce,w,We,Xi,Wt,Ut,Qt,Kt,Ai,si,ai,Yt,Zt,gi,zi,pi,mi,hi]});let r=n;return r})();export{Kl as DemoModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-FB4UOAYL.js b/frontend/server/modelsmith-build/browser/chunk-FB4UOAYL.js deleted file mode 100644 index 81bbd462..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-FB4UOAYL.js +++ /dev/null @@ -1 +0,0 @@ -import{a as X}from"./chunk-C37KAU6A.js";import{a as B,b as q}from"./chunk-MPLQ54VQ.js";import{$c as U,Cc as T,Da as b,Hc as j,Na as s,P as d,T as I,U as h,V as S,Wc as H,Zb as M,Zc as G,_b as O,bd as V,ea as w,hc as N,id as k,ja as g,jc as x,ka as m,kc as u,m as v,na as P,nc as L,oc as A,pa as _,pb as E,rd as W,sa as c,sc as z,uc as R,wa as o,xa as r,xc as F,ya as p,zc as D}from"./chunk-AIAH5BT5.js";var J=(()=>{let t=class t{constructor(e,i,f){this.el=e,this.renderer=i,this.viewContainer=f,this.isHidden=!0}ngOnInit(){let e=this.el.nativeElement,i=this.createIcon();this.setupIconInContainer(e,i),i.location.nativeElement.addEventListener("click",()=>{this.toggleVisibility(e,i.instance)})}createIcon(){let e=this.viewContainer.createComponent(j);return e.instance.fontIcon=this.isHidden?"visibility_off":"visibility",e}setupIconInContainer(e,i){let f=this.renderer.createElement("div");this.renderer.addClass(f,t.CLASS_ICON_SUFFIX),this.renderer.setStyle(i.location.nativeElement,"padding","0"),this.renderer.setAttribute(e,"type",this.isHidden?"password":"text"),this.renderer.appendChild(f,i.location.nativeElement),this.renderer.appendChild(e?.parentElement?.parentElement,f)}toggleVisibility(e,i){this.isHidden=!this.isHidden,this.renderer.setAttribute(e,"type",this.isHidden?"password":"text"),i.fontIcon=this.isHidden?"visibility_off":"visibility"}};t.CLASS_ICON_SUFFIX="mat-mdc-form-field-icon-suffix",t.\u0275fac=function(i){return new(i||t)(m(w),m(P),m(_))},t.\u0275dir=S({type:t,selectors:[["","msPasswordToggle",""]],standalone:!0});let n=t;return n})();var a,C=(a=class{constructor(t,l){this.fb=t,this.authFacadeService=l,this.CONTROL_NAMES={EMAIL:"email",PASSWORD:"password"}}ngOnInit(){this.initForm()}initForm(){this.form=this.fb.group({[this.CONTROL_NAMES.EMAIL]:["alexander@cisco.com",[u.email,u.required]],[this.CONTROL_NAMES.PASSWORD]:["GUfCRHz7VD9R",[u.required]]})}get emailControl(){return this.form.get(this.CONTROL_NAMES.EMAIL)}get passwordControl(){return this.form.get(this.CONTROL_NAMES.PASSWORD)}login(){let t=this.form.getRawValue();this.authFacadeService.dispatch(V.login(t))}},a.\u0275fac=function(l){return new(l||a)(m(D),m(k))},a.\u0275cmp=I({type:a,selectors:[["ms-login"]],decls:24,vars:4,consts:[[1,"login-container"],[1,"logo-section"],["src","/assets/logo/login-logo.svg","alt","ModelSmith Logo"],[1,"login-title"],[1,"login-subtitle"],[1,"login-section"],[3,"submit","formGroup"],[1,"form-field-container","ms-white-form-field"],["matInput","","msErrorDisplay","","autocomplete","current-password",3,"formControlName"],["msPasswordToggle","","msErrorDisplay","","matInput","","autocomplete","current-password",3,"formControlName"],[1,"mt-[2px]"],["type","submit","mat-raised-button","","color","primary",1,"w-full",3,"disabled"],["styleMode","fullWidth"]],template:function(l,e){l&1&&(o(0,"ms-background-gradient")(1,"div",0)(2,"div",1),p(3,"img",2),o(4,"div",3),s(5,"ModelSmith"),r(),o(6,"div",4),s(7,"A super cool compression tool"),r()(),o(8,"div",5)(9,"form",6),b("submit",function(){return e.login()}),o(10,"div",7)(11,"mat-label"),s(12," Email "),r(),o(13,"mat-form-field"),p(14,"input",8),r()(),o(15,"div",7)(16,"mat-label"),s(17," Password "),r(),o(18,"mat-form-field"),p(19,"input",9),r()(),o(20,"div",10)(21,"button",11),s(22," Login "),r()()()()(),p(23,"ms-footer",12),r()),l&2&&(g(9),c("formGroup",e.form),g(5),c("formControlName",e.CONTROL_NAMES.EMAIL),g(5),c("formControlName",e.CONTROL_NAMES.PASSWORD),g(2),c("disabled",e.form.invalid))},dependencies:[N,T,U,G,H,z,x,L,A,R,F,B,J,X],styles:["html[_ngcontent-%COMP%]{color:var(--foregrounds-800)}.text-hint[_ngcontent-%COMP%]{color:var(--foregrounds-700)}.heading-primary-title[_ngcontent-%COMP%]{font-family:Montserrat;font-weight:700;font-size:1.5rem;line-height:2.125rem}.heading-section-title[_ngcontent-%COMP%]{font-weight:700;font-size:1.125rem;line-height:1.5em}.paragraph-bold-p4-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.75rem;line-height:1.125em}.paragraph-monospace-p2-large[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:400}.heading-sub-section-title[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:700}.paragraph-regular-p3-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875;line-height:1.25rem}.paragraph-bold-p3-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p2-large-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1rem;line-height:1.375rem}.paragraph-semibold-p1-xlarge-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1.125rem;line-height:1.5rem}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p3-default-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-regular-p4-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.75rem;line-height:1.125rem}.paragraph-semibold-p3-small-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400}.paragraph-semibold-p4-xSmall-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:600}.paragraph-regular-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400;color:var(--foregrounds-750)}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-size:.875rem;line-height:1.25rem;font-weight:400}.paragraph-regular-p2-large[_ngcontent-%COMP%]{font-family:Inter;font-size:1rem;font-weight:400;line-height:1.375rem}.login-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%}.login-container[_ngcontent-%COMP%] .logo-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;width:95%;background:linear-gradient(to left,transparent,var(--backgrounds-50),transparent);padding:60px 30px;text-align:center}.login-container[_ngcontent-%COMP%] .logo-section[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;margin-bottom:10px}.login-container[_ngcontent-%COMP%] .logo-section[_ngcontent-%COMP%] .login-title[_ngcontent-%COMP%]{font-size:2.5rem;line-height:3.359rem;font-weight:400;color:var(--login-title)}.login-container[_ngcontent-%COMP%] .logo-section[_ngcontent-%COMP%] .login-subtitle[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem;color:var(--foregrounds-550)}.login-container[_ngcontent-%COMP%] .login-section[_ngcontent-%COMP%]{margin-top:20px;width:100%;max-width:400px}"]}),a);C=v([W()],C);var Y=[{path:"",pathMatch:"full",redirectTo:O.AUTH.LOGIN},{path:O.AUTH.LOGIN,component:C}],K=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=h({type:t}),t.\u0275inj=d({imports:[M.forChild(Y),M]});let n=t;return n})();var Pt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=h({type:t}),t.\u0275inj=d({imports:[E,K,q]});let n=t;return n})();export{Pt as AuthModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-G267DK6J.js b/frontend/server/modelsmith-build/browser/chunk-G267DK6J.js new file mode 100644 index 00000000..aac10315 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-G267DK6J.js @@ -0,0 +1 @@ +import{l as Ge,o as Ye,p as Xe,s as Z,t as J,u as ee,v as Ue}from"./chunk-NT2MTW7W.js";import{e as ze,f as He,i as Qe}from"./chunk-HG2O7P4S.js";import{$ as se,A as ae,Ab as Ce,Ac as ke,Bb as Oe,Cc as D,D as w,Dc as Ie,Dd as Ee,E as P,Ea as g,Ec as xe,Fa as l,Gd as De,J as ne,Ka as ue,Kd as U,L as re,Lb as Me,Ld as Re,Md as Fe,Nb as C,Ob as H,Pa as _e,Qa as I,R as L,Ra as x,Rd as Ve,S as W,Sa as j,Sb as we,Sd as Pe,T as m,Ua as ge,Ud as Le,Vd as We,Wd as je,Xa as fe,Xd as $,Ya as B,aa as S,ab as h,bb as f,bc as Se,be as Be,cb as ye,da as oe,de as Ke,gb as K,ha as le,he as qe,ia as ce,j as O,jb as M,lb as y,mb as ve,me as Ne,nb as q,oa as de,pa as u,pb as A,qa as _,qb as T,ra as he,rb as v,sb as b,sd as Y,tb as be,ua as pe,ub as N,vb as z,vc as Q,wc as G,wd as Ae,x as V,xa as me,xd as X,ya as k,zc as E,zd as Te}from"./chunk-NPZHNGVX.js";var ht=["trigger"],pt=["panel"],mt=[[["mat-select-trigger"]],"*"],ut=["mat-select-trigger","*"];function _t(n,r){if(n&1&&(h(0,"span",4),N(1),f()),n&2){let o=y();g(),z(o.placeholder)}}function gt(n,r){n&1&&q(0)}function ft(n,r){if(n&1&&(h(0,"span",11),N(1),f()),n&2){let o=y(2);g(),z(o.triggerValue)}}function yt(n,r){if(n&1&&(h(0,"span",5),I(1,gt,1,0)(2,ft,2,1,"span",11),f()),n&2){let o=y();g(),B(o.customTrigger?1:2)}}function vt(n,r){if(n&1){let o=K();h(0,"div",12,1),M("@transformPanel.done",function(t){u(o);let i=y();return _(i._panelDoneAnimatingStream.next(t.toState))})("keydown",function(t){u(o);let i=y();return _(i._handleKeydown(t))}),q(2,1),f()}if(n&2){let o=y();fe("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",o._getPanelTheme(),""),j("ngClass",o.panelClass)("@transformPanel","showing"),x("id",o.id+"-panel")("aria-multiselectable",o.multiple)("aria-label",o.ariaLabel||null)("aria-labelledby",o._getPanelAriaLabelledby())}}var bt={transformPanelWrap:Q("transformPanelWrap",[D("* => void",xe("@transformPanel",[Ie()],{optional:!0}))]),transformPanel:Q("transformPanel",[ke("void",E({opacity:0,transform:"scale(1, 0.8)"})),D("void => showing",G("120ms cubic-bezier(0, 0, 0.2, 1)",E({opacity:1,transform:"scale(1, 1)"}))),D("* => void",G("100ms linear",E({opacity:0})))])};var tt=0,it=new S("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let n=oe(Z);return()=>n.scrollStrategies.reposition()}});function Ct(n){return()=>n.scrollStrategies.reposition()}var Ot=new S("MAT_SELECT_CONFIG"),Mt={provide:it,deps:[Z],useFactory:Ct},wt=new S("MatSelectTrigger"),te=class{constructor(r,o){this.source=r,this.value=o}},ri=(()=>{let r=class r{_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let i=this.panel.nativeElement,a=We(e,this.options,this.optionGroups),s=t._getHostElement();e===0&&a===1?i.scrollTop=0:i.scrollTop=je(s.offsetTop,s.offsetHeight,i.scrollTop,i.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new te(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(Be.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,t,i,a,s,p,c,at,nt,ie,rt,st,ot,R){this._viewportRuler=e,this._changeDetectorRef=t,this._elementRef=s,this._dir=p,this._parentFormField=nt,this.ngControl=ie,this._liveAnnouncer=ot,this._defaultOptions=R,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=(d,F)=>d===F,this._uid=`mat-select-${tt++}`,this._triggerAriaLabelledBy=null,this._destroy=new O,this.stateChanges=new O,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${tt++}`,this._panelDoneAnimatingStream=new O,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 O,this.optionSelectionChanges=ae(()=>{let d=this.options;return d?d.changes.pipe(L(d),W(()=>w(...d.map(F=>F.onSelectionChange)))):this._initialized.pipe(W(()=>this.optionSelectionChanges))}),this.openedChange=new k,this._openedStream=this.openedChange.pipe(P(d=>d),V(()=>{})),this._closedStream=this.openedChange.pipe(P(d=>!d),V(()=>{})),this.selectionChange=new k,this.valueChange=new k,this._trackedModal=null,this._skipPredicate=d=>this.panelOpen?!1:d.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),R?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=R.typeaheadDebounceInterval),this._errorStateTracker=new Re(a,ie,at,c,this.stateChanges),this._scrollStrategyFactory=st,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(rt)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Ge(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(re(),m(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(m(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(m(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(L(null),m(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.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 t=`${this.id}-panel`;this._trackedModal&&X(this._trackedModal,"aria-owns",t),Ae(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;X(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(t=>t.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 t=e.keyCode,i=t===40||t===38||t===37||t===39,a=t===13||t===32,s=this._keyManager;if(!s.isTyping()&&a&&!Y(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){let p=this.selected;s.onKeydown(e);let c=this.selected;c&&p!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,i=e.keyCode,a=i===40||i===38,s=t.isTyping();if(a&&e.altKey)e.preventDefault(),this.close();else if(!s&&(i===13||i===32)&&t.activeItem&&!Y(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!s&&this._multiple&&i===65&&e.ctrlKey){e.preventDefault();let p=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(p?c.select():c.deselect())})}else{let p=t.activeItemIndex;t.onKeydown(e),this._multiple&&a&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==p&&t.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(ne(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(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let t=this.options.find(i=>{if(this._selectionModel.isSelected(i))return!1;try{return i.value!=null&&this._compareWith(i.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_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 J?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 Te(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=w(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(m(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),w(...this.options.map(t=>t._stateChanges)).pipe(m(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let i=this._selectionModel.isSelected(e);e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(i!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,i)=>this.sortComparator?this.sortComparator(t,i,e):e.indexOf(t)-e.indexOf(i)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(i=>i.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),t=e?e+" ":"";return this.ariaLabelledby?t+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(),t=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_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}};r.\u0275fac=function(t){return new(t||r)(l(Ye),l(Me),l(ue),l(Fe),l(me),l(De,8),l(qe,8),l(Ne,8),l(He,8),l(Ke,10),pe("tabindex"),l(it),l(Ee),l(Ot,8))},r.\u0275cmp=le({type:r,selectors:[["mat-select"]],contentQueries:function(t,i,a){if(t&1&&(A(a,wt,5),A(a,Le,5),A(a,Pe,5)),t&2){let s;v(s=b())&&(i.customTrigger=s.first),v(s=b())&&(i.options=s),v(s=b())&&(i.optionGroups=s)}},viewQuery:function(t,i){if(t&1&&(T(ht,5),T(pt,5),T(ee,5)),t&2){let a;v(a=b())&&(i.trigger=a.first),v(a=b())&&(i.panel=a.first),v(a=b())&&(i._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(t,i){t&1&&M("keydown",function(s){return i._handleKeydown(s)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),t&2&&(x("id",i.id)("tabindex",i.disabled?-1:i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),ge("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",C],disableRipple:[2,"disableRipple","disableRipple",C],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:H(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",C],placeholder:"placeholder",required:[2,"required","required",C],multiple:[2,"multiple","multiple",C],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",C],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",H],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[Ce([{provide:ze,useExisting:r},{provide:Ve,useExisting:r}]),_e,de,Oe],ngContentSelectors:ut,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(t,i){if(t&1){let a=K();ve(mt),h(0,"div",2,0),M("click",function(){return u(a),_(i.open())}),h(3,"div",3),I(4,_t,2,1,"span",4)(5,yt,3,1,"span",5),f(),h(6,"div",6)(7,"div",7),he(),h(8,"svg",8),ye(9,"path",9),f()()()(),I(10,vt,3,9,"ng-template",10),M("backdropClick",function(){return u(a),_(i.close())})("attach",function(){return u(a),_(i._onAttached())})("detach",function(){return u(a),_(i.close())})}if(t&2){let a=be(1);g(3),x("id",i._valueId),g(),B(i.empty?4:5),g(6),j("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||a)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)}},dependencies:[J,ee,we],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);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-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)}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.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)}.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)}._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:[bt.transformPanel]},changeDetection:0});let n=r;return n})();var si=(()=>{let r=class r{};r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=ce({type:r}),r.\u0275inj=se({providers:[Mt],imports:[Se,Ue,$,U,Xe,Qe,$,U]});let n=r;return n})();export{ri as a,si as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-GMIVG7ET.js b/frontend/server/modelsmith-build/browser/chunk-GMIVG7ET.js new file mode 100644 index 00000000..a9470f73 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-GMIVG7ET.js @@ -0,0 +1,38 @@ +import{Aa as b,T as f,Y as d,ba as D,g as l,j as i,o as a,r as p,z as c}from"./chunk-NPZHNGVX.js";var P=D;function S(e){return!!e[P]}var w=Symbol("__destroy"),g=Symbol("__decoratorApplied");function v(e){return typeof e=="string"?Symbol(`__destroy__${e}`):w}function x(e){e.prototype[g]=!0}function O(e,t){e[t]||(e[t]=new i)}function _(e,t){e[t]&&(e[t].next(),e[t].complete(),e[t]=null)}function C(e){e instanceof l&&e.unsubscribe()}function j(e){Array.isArray(e)&&e.forEach(C)}function E(e,t){return function(){if(e&&e.call(this),_(this,v()),t.arrayName&&j(this[t.arrayName]),t.checkProperties)for(let o in this)t.blackList?.includes(o)||C(this[o])}}function k(e,t){e.prototype.ngOnDestroy=E(e.prototype.ngOnDestroy,t)}function A(e,t){let o=e.\u0275pipe;o.onDestroy=E(o.onDestroy,t)}function G(e={}){return t=>{S(t)?A(t,e):k(t,e),x(t)}}var m=7,y=Symbol("CheckerHasBeenSet");function B(e,t){e[y]||I()||(h(()=>p(Promise.resolve()).pipe(c(()=>{let o;try{o=b(e)}catch{o=null}let n=o?.lView;if(n==null)return a;let r=n[m]||(n[m]=[]),s=new i;return r.push(function(){h(()=>{s.next(),s.complete()})}),s}),c(()=>Promise.resolve())).subscribe(()=>{(t.observed??t.observers.length>0)&&console.warn(T(e))})),e[y]=!0)}function I(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"}function h(e){let t=d.Zone;return!!t&&typeof t.root?.run=="function"?t.root.run(e):e()}function T(e){return` + The ${e.constructor.name} still has subscriptions that haven't been unsubscribed. + This may happen if the class extends another class decorated with @UntilDestroy(). + The child class implements its own ngOnDestroy() method but doesn't call super.ngOnDestroy(). + Let's look at the following example: + @UntilDestroy() + @Directive() + export abstract class BaseDirective {} + @Component({ template: '' }) + export class ConcreteComponent extends BaseDirective implements OnDestroy { + constructor() { + super(); + someObservable$.pipe(untilDestroyed(this)).subscribe(); + } + ngOnDestroy(): void { + // Some logic here... + } + } + The BaseDirective.ngOnDestroy() will not be called since Angular will call ngOnDestroy() + on the ConcreteComponent, but not on the BaseDirective. + One of the solutions is to declare an empty ngOnDestroy method on the BaseDirective: + @UntilDestroy() + @Directive() + export abstract class BaseDirective { + ngOnDestroy(): void {} + } + @Component({ template: '' }) + export class ConcreteComponent extends BaseDirective implements OnDestroy { + constructor() { + super(); + someObservable$.pipe(untilDestroyed(this)).subscribe(); + } + ngOnDestroy(): void { + // Some logic here... + super.ngOnDestroy(); + } + } + `}var u=!1;function U(e,t,o){let n=e[t];if(u&&typeof n!="function")throw new Error(`${e.constructor.name} is using untilDestroyed but doesn't implement ${t}`);O(e,o),e[t]=function(){n.apply(this,arguments),_(this,o),e[t]=n}}function H(e,t){return o=>{let n=v(t);typeof t=="string"?U(e,t,n):(u&&L(e),O(e,n));let r=e[n];return u&&B(e,r),o.pipe(f(r))}}function L(e){let t=Object.getPrototypeOf(e);if(!(g in t))throw new Error("untilDestroyed operator cannot be used inside directives or components or providers that are not decorated with UntilDestroy decorator")}export{G as a,H as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-GRATYYX3.js b/frontend/server/modelsmith-build/browser/chunk-GRATYYX3.js new file mode 100644 index 00000000..220c9b29 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-GRATYYX3.js @@ -0,0 +1,11 @@ +import{a as vt,e as xt,g as _n,h as ze,i as Ge}from"./chunk-2JZ6V3QN.js";import{a as Cn,b as bt,c as vn}from"./chunk-XD2XL32D.js";import{a as Ct}from"./chunk-3GNVUME3.js";import{a as Yt,d as Qi,e as Ki,f as xn,g as bn}from"./chunk-LBD5Y7YA.js";import{a as nn,b as on,c as rn,d as an,e as sn,f as ln,g as cn,h as dn,i as pn,j as mn,k as hn,l as gn,m as un,n as ye,o as fn,p as _t,q as je}from"./chunk-MJO2RBYE.js";import{a as en,b as tn}from"./chunk-W2GP6GR3.js";import{a as Ui,b as $i}from"./chunk-3S6QBQVM.js";import{a as ft,b as Ji}from"./chunk-G267DK6J.js";import{a as at,b as Pi}from"./chunk-VUPIOU6P.js";import{a as zi,b as Gi}from"./chunk-PP7DOJYP.js";import{a as gt}from"./chunk-SMKHMGDE.js";import{c as Le,e as ut,f as Gt,g as B}from"./chunk-W4U3FJPJ.js";import{a as qi,b as Zi}from"./chunk-2FJ2YO2M.js";import"./chunk-PSFPSLKI.js";import{a as be,b as z}from"./chunk-GMIVG7ET.js";import{c as Yi,e as Xi,f as Wi,m as ht}from"./chunk-NT2MTW7W.js";import{a as pt,h as mt,i as Li}from"./chunk-HG2O7P4S.js";import{$ as W,$b as wi,$d as ki,Ab as j,Ac as $e,Ad as Ei,Ae as ji,Ba as It,Bb as it,Bc as Lt,Ca as di,Cc as Ne,D as Pt,Da as Ot,Db as Vt,E as Me,Ea as s,Ec as Qe,Ed as Ai,Fa as m,Fb as E,Fc as jt,Ga as pi,Gb as M,Ha as mi,Hb as ui,I as ii,Ib as ne,Id as Mi,J as pe,Jb as fi,Jd as Ti,Kd as zt,Lb as Z,Na as hi,Nb as J,Oa as Rt,Ob as _i,Pa as ie,Q as Ft,Qa as u,Qb as Ci,R as kt,Ra as et,Sa as d,Ta as V,Tb as ee,Ua as K,Ub as oe,Ud as rt,Va as gi,Vb as vi,Vc as Si,Wb as xi,Xb as bi,Ya as Nt,Yb as nt,Z as ni,_ as me,_b as Oe,_d as Fi,a as Ee,aa as he,ab as l,ac as yi,b as We,bb as c,bc as ot,be as Te,ca as ge,cb as f,ce as Ke,da as oi,db as b,eb as w,ee as we,fe as Be,g as Ze,gb as D,ge as st,ha as A,ia as U,j as Ae,ja as F,jb as _,je as Ii,k as Tt,ka as Je,ke as lt,l as ei,lb as h,mb as tt,me as ct,nb as _e,ne as Oi,o as ti,oa as ue,p as de,pa as C,pb as Bt,pe as Ve,qa as v,qb as q,ra as Ie,rb as H,re as dt,sa as ri,sb as L,sc as Ht,sd as Di,se as Ri,ta as ai,tb as $,te as Ni,ua as si,ub as g,ue as Bi,va as li,vb as k,vc as Ue,wb as T,wc as Re,we as Vi,xa as fe,xb as Ce,xe as Hi,ya as S,yb as ve,za as ci,zb as xe,zc as I,ze as He}from"./chunk-NPZHNGVX.js";var Qn=["hueSlider"],Kn=["alphaSlider"];function qn(n,i){if(n&1){let e=D();l(0,"div",10),_("newValue",function(o){C(e);let r=h();return v(r.onSliderChange("saturation-lightness",o))}),l(1,"div",11),f(2,"div"),c()()}if(n&2){let e=h();V("background-color",e.hueSliderColor),d("rgX",1)("rgY",1),s(),V("top",e.slider==null?null:e.slider.v,"px")("left",e.slider==null?null:e.slider.s,"px")}}function Zn(n,i){if(n&1&&(l(0,"div",12),f(1,"div",13)(2,"div",14),c()),n&2){let e=h();s(2),V("background-color",e.selectedColor)}}function Jn(n,i){if(n&1){let e=D();l(0,"div",15,1),_("newValue",function(o){C(e);let r=h();return v(r.onSliderChange("hue",o))}),l(2,"div",16)(3,"div"),f(4,"div"),c()()()}if(n&2){let e=h();d("rgX",1),s(2),V("left",e.slider==null?null:e.slider.h,"px")}}function eo(n,i){if(n&1){let e=D();l(0,"div",17,2),_("newValue",function(o){C(e);let r=h();return v(r.onSliderChange("alpha",o))}),f(2,"div",18),l(3,"div",16)(4,"div"),f(5,"div"),c()()()}if(n&2){let e=h();d("rgX",1),s(2),d("ngStyle",e.getBackgroundColor(e.alphaSliderColor)),s(),V("left",e.slider==null?null:e.slider.a,"px")}}var to=["dialog"],Sn=n=>({background:n});function io(n,i){n&1&&f(0,"div",12)}function no(n,i){if(n&1){let e=D();b(0),l(1,"div",9)(2,"div",10),_("click",function(){let o=C(e).$implicit,r=h(2);return v(r.onColorClick(o))}),u(3,io,1,0,"div",11),c()(),w()}if(n&2){let e=i.$implicit,t=i.index,o=h(2);s(2),K("colornull",!e),d("ngStyle",o.getBackgroundColor(e)),s(),d("ngIf",t==o.indexSeleccionado)}}function oo(n,i){if(n&1&&f(0,"div",18),n&2){let e=h(3);d("ngStyle",e.getBackgroundColor(e.color))}}function ro(n,i){if(n&1){let e=D();l(0,"div",13),_("click",function(){C(e);let o=h(2);return v(o.addColor())}),u(1,oo,1,1,"div",14),Ie(),l(2,"svg",15),f(3,"path",16)(4,"path",17),c()()}if(n&2){let e=h(2);s(),d("ngIf",e.indexSeleccionado===void 0)}}function ao(n,i){if(n&1){let e=D();l(0,"color-picker",19),_("colorChange",function(o){C(e);let r=h(2);return v(r.onChangeColorPicker(o))})("onAlphaChange",function(o){C(e);let r=h(2);return v(r.onAlphaChange(o))}),c()}if(n&2){let e=h(2);d("controls",e.colorPickerControls)("color",e.hsva)}}function so(n,i){if(n&1&&(b(0),l(1,"div",5),u(2,no,4,4,"ng-container",6)(3,ro,5,1,"div",7)(4,ao,1,2,"color-picker",8),c(),w()),n&2){let e=h();s(),d("@colorsAnimation",e.colorsAnimationEffect),s(),d("ngForOf",e.palette),s(),d("ngIf",!e.hideColorPicker&&e.colorPickerControls!="only-alpha"),s(),d("ngIf",!e.hideColorPicker&&e.colorPickerControls=="only-alpha")}}function lo(n,i){n&1&&f(0,"div",12)}function co(n,i){if(n&1){let e=D();b(0),l(1,"div",9)(2,"div",25),_("click",function(){let o=C(e).$implicit,r=h(2);return v(r.changeColor(o))}),u(3,lo,1,0,"div",11),c()(),w()}if(n&2){let e=i.$implicit,t=h(2);s(2),K("colornull",!e),d("ngStyle",Vt(4,Sn,e)),s(),d("ngIf",t.isSelected(e))}}function po(n,i){if(n&1){let e=D();b(0),l(1,"div",5)(2,"div",20)(3,"div",21),_("click",function(){C(e);let o=h();return v(o.onClickBack())}),Ie(),l(4,"svg",22),f(5,"path",23)(6,"path",24),c()()(),u(7,co,4,6,"ng-container",6),c(),w()}if(n&2){let e=h();s(),d("@colorsAnimation",e.colorsAnimationEffect),s(6),d("ngForOf",e.variants)}}function mo(n,i){if(n&1){let e=D();b(0),l(1,"div",26)(2,"div",27),_("click",function(){C(e);let o=h();return v(o.onClickBack())}),Ie(),l(3,"svg",22),f(4,"path",23)(5,"path",24),c()(),ri(),l(6,"button",28),_("click",function(){C(e);let o=h();return v(o.emitClose("cancel"))}),g(7),c(),l(8,"button",28),_("click",function(){C(e);let o=h();return v(o.emitClose("accept"))}),g(9),c()(),l(10,"div",29)(11,"color-picker",30),_("sliderChange",function(o){C(e);let r=h();return v(r.onChangeColorPicker(o))}),c()(),w()}if(n&2){let e=h();s(7),T(" ",e.cancelLabel," "),s(2),T(" ",e.acceptLabel," "),s(2),d("controls",e.colorPickerControls)("color",e.hsva)}}function ho(n,i){if(n&1){let e=D();l(0,"div",31)(1,"p",32),_("click",function(){C(e);let o=h();return v(o.nextFormat())}),g(2),c(),l(3,"div",33)(4,"input",34,1),_("keyup",function(){C(e);let o=$(5),r=h();return v(r.changeColorManual(o.value))})("keydown.enter",function(){C(e);let o=h();return v(o.emitClose("accept"))}),c()()()}if(n&2){let e=h();s(2),k(e.colorFormats[e.format]),s(2),V("font-size",e.color&&e.color.length>23?9:10,"px")("letter-spacing",e.color&&e.color.length>16?0:1.5,"px"),d("placeholder",e.placeholder)("value",e.color)}}var Xt=["hex","rgba","hsla","cmyk"],O=function(n){return n[n.HEX=0]="HEX",n[n.RGBA=1]="RGBA",n[n.HSLA=2]="HSLA",n[n.CMYK=3]="CMYK",n}(O||{}),wn=[{color:"rojo",preview:"#E57373",variants:["#FFEBEE","#FFCDD2","#EF9A9A","#E57373","#EF5350","#F44336","#E53935","#D32F2F","#C62828"]},{color:"rosa",preview:"#F06292",variants:["#FCE4EC","#F8BBD0","#F48FB1","#F06292","#EC407A","#E91E63","#D81B60","#C2185B","#AD1457"]},{color:"purpura",preview:"#BA68C8",variants:["#F3E5F5","#E1BEE7","#CE93D8","#BA68C8","#AB47BC","#9C27B0","#8E24AA","#7B1FA2","#6A1B9A"]},{color:"purpura oscuro",preview:"#9575CD",variants:["#EDE7F6","#D1C4E9","#B39DDB","#9575CD","#7E57C2","#673AB7","#5E35B1","#512DA8","#4527A0"]},{color:"indigo",preview:"#7986CB",variants:["#E8EAF6","#C5CAE9","#9FA8DA","#7986CB","#5C6BC0","#3F51B5","#3949AB","#303F9F","#283593"]},{color:"azul",preview:"#64B5F6",variants:["#E3F2FD","#BBDEFB","#90CAF9","#64B5F6","#42A5F5","#2196F3","#1E88E5","#1976D2","#1565C0"]},{color:"celeste",preview:"#4FC3F7",variants:["#E1F5FE","#B3E5FC","#81D4FA","#4FC3F7","#29B6F6","#03A9F4","#039BE5","#0288D1","#0277BD"]},{color:"cyan",preview:"#4DD0E1",variants:["#E0F7FA","#B2EBF2","#80DEEA","#4DD0E1","#26C6DA","#00BCD4","#00ACC1","#0097A7","#00838F"]},{color:"color",preview:"#4DB6AC",variants:["#E0F2F1","#B2DFDB","#80CBC4","#4DB6AC","#26A69A","#009688","#00897B","#00796B","#00695C"]},{color:"verde",preview:"#81C784",variants:["#E8F5E9","#C8E6C9","#A5D6A7","#81C784","#66BB6A","#4CAF50","#43A047","#388E3C","#2E7D32"]},{color:"verde claro",preview:"#AED581",variants:["#F1F8E9","#DCEDC8","#C5E1A5","#AED581","#9CCC65","#8BC34A","#7CB342","#689F38","#558B2F"]},{color:"lima",preview:"#DCE775",variants:["#F9FBE7","#F0F4C3","#E6EE9C","#DCE775","#D4E157","#CDDC39","#C0CA33","#AFB42B","#9E9D24"]},{color:"amarillo",preview:"#FFF176",variants:["#FFFDE7","#FFF9C4","#FFF59D","#FFF176","#FFEE58","#FFEB3B","#FDD835","#FBC02D","#F9A825"]},{color:"ambar",preview:"#FFD54F",variants:["#FFF8E1","#FFECB3","#FFE082","#FFD54F","#FFCA28","#FFC107","#FFB300","#FFA000","#FF8F00"]},{color:"naranja",preview:"#FFB74D",variants:["#FFF3E0","#FFE0B2","#FFCC80","#FFB74D","#FFA726","#FF9800","#FB8C00","#F57C00","#EF6C00"]},{color:"naranja oscuro",preview:"#FF8A65",variants:["#FBE9E7","#FFCCBC","#FFAB91","#FF8A65","#FF7043","#FF5722","#F4511E","#E64A19","#D84315"]},{color:"marron",preview:"#A1887F",variants:["#EFEBE9","#D7CCC8","#BCAAA4","#A1887F","#8D6E63","#795548","#6D4C41","#5D4037","#4E342E"]},{color:"escala de grises",preview:"#E0E0E0",variants:["#FFFFFF","#FAFAFA","#F5F5F5","#EEEEEE","#E0E0E0","#BDBDBD","#9E9E9E","#757575","#616161","#424242","#000000"]},{color:"azul gris",preview:"#90A4AE",variants:["#ECEFF1","#CFD8DC","#B0BEC5","#90A4AE","#78909C","#607D8B","#546E7A","#455A64","#37474F"]}],te=class{constructor(i,e,t,o){this.r=i,this.g=e,this.b=t,this.a=o}denormalize(){return this.r=Math.round(this.r*255),this.g=Math.round(this.g*255),this.b=Math.round(this.b*255),this}toString(){return this.denormalize(),"rgb"+(this.a!=1?"a(":"(")+this.r+", "+this.g+", "+this.b+(this.a!=1?", "+this.a.toPrecision(2)+")":")")}},Q=class{constructor(i,e,t,o){this.h=i,this.s=e,this.v=t,this.a=o,this.onChange=new S(!0)}onColorChange(i){this.s=i.s/i.rgX,this.v=i.v/i.rgY}onHueChange(i){this.h=i.v/i.rgX}onValueChange(i){this.v=i.v/i.rgX}onAlphaChange(i){this.a=i.v/i.rgX}},Pe=class{constructor(i,e,t,o){this.h=i,this.s=e,this.l=t,this.a=o}denormalize(){return this.h=Math.round(this.h*360),this.s=Math.round(this.s*100),this.l=Math.round(this.l*100),this}toString(){return"hsl"+(this.a!=1?"a(":"(")+this.h+", "+this.s+"%, "+this.l+"%"+(this.a!=1?", "+this.a.toPrecision(2)+")":")")}},Se=class{constructor(i,e,t,o,r=1){this.c=i,this.m=e,this.y=t,this.k=o,this.a=r}denormalize(){return this.c=Math.round(this.c*100),this.m=Math.round(this.m*100),this.y=Math.round(this.y*100),this.k=Math.round(this.k*100),this}toString(){return this.denormalize(),"cmyk("+this.c+", "+this.m+", "+this.y+", "+this.k+")"}},Wt=class{constructor(i){i&&(this.preview=i.preview,this.variants=i.variants)}},St=(()=>{class n{constructor(){}toFormat(e,t){var o="";if(e)switch(t){case O.HEX:var a=this.hsvaToRgba(e);a.denormalize();var o=this.rgbaToHex(a,!0);break;case O.HSLA:var r=this.hsva2hsla(e);r.denormalize();var o=r.toString();break;case O.RGBA:var a=this.hsvaToRgba(e),o=a.toString();break;case O.CMYK:var p=this.hsvaToCmyk(e),o=p.toString();break}return o}stringToFormat(e,t){var o=this.stringToHsva(e,!0);return this.toFormat(o,t)}hsva2hsla(e){let t=e.h,o=e.s,r=e.v,a=e.a;if(r===0)return new Pe(t,0,0,a);if(o===0&&r===1)return new Pe(t,1,1,a);{let p=r*(2-o)/2;return new Pe(t,r*o/(1-Math.abs(2*p-1)),p,a)}}hsla2hsva(e){let t=Math.min(e.h,1),o=Math.min(e.s,1),r=Math.min(e.l,1),a=Math.min(e.a,1);if(r===0)return new Q(t,0,0,a);{let p=r+o*(1-Math.abs(2*r-1))/2;return new Q(t,2*(p-r)/p,p,a)}}hsvaToRgba(e){let t,o,r,a=e.h,p=e.s,x=e.v,y=e.a,X=Math.floor(a*6),R=a*6-X,N=x*(1-p),Xe=x*(1-R*p),De=x*(1-(1-R)*p);switch(X%6){case 0:t=x,o=De,r=N;break;case 1:t=Xe,o=x,r=N;break;case 2:t=N,o=x,r=De;break;case 3:t=N,o=Xe,r=x;break;case 4:t=De,o=N,r=x;break;case 5:t=x,o=N,r=Xe;break;default:t=0,o=0,r=0}return new te(t,o,r,y)}cmykToRgb(e){let t=(1-e.c)*(1-e.k),o=(1-e.m)*(1-e.k),r=(1-e.y)*(1-e.k);return new te(t,o,r,e.a)}rgbaToCmyk(e){let t=1-Math.max(e.r,e.g,e.b);if(t===1)return new Se(0,0,0,1,e.a);{let o=(1-e.r-t)/(1-t),r=(1-e.g-t)/(1-t),a=(1-e.b-t)/(1-t);return new Se(o,r,a,t,e.a)}}hsvaToCmyk(e){let t=this.hsvaToRgba(e);return this.rgbaToCmyk(t)}rgbaToHsva(e){let t,o,r=Math.min(e.r,1),a=Math.min(e.g,1),p=Math.min(e.b,1),x=Math.min(e.a,1),y=Math.max(r,a,p),X=Math.min(r,a,p),R=y,N=y-X;if(o=y===0?0:N/y,y===X)t=0;else{switch(y){case r:t=(a-p)/N+(a{class n{mouseDown(e){this.start(e)}touchStart(e){this.start(e)}constructor(e){this.elRef=e,this.dragEnd=new S,this.dragStart=new S,this.newValue=new S,this.listenerMove=t=>this.move(t),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 t=this.elRef.nativeElement.getBoundingClientRect();return(e.pageX!==void 0?e.pageX:e.touches[0].pageX)-t.left-window.pageXOffset}getY(e){let t=this.elRef.nativeElement.getBoundingClientRect();return(e.pageY!==void 0?e.pageY:e.touches[0].pageY)-t.top-window.pageYOffset}setCursor(e){let t=this.elRef.nativeElement.offsetWidth,o=this.elRef.nativeElement.offsetHeight,r=Math.max(0,Math.min(this.getX(e),t)),a=Math.max(0,Math.min(this.getY(e),o));this.rgX!==void 0&&this.rgY!==void 0?this.newValue.emit({s:r/t,v:1-a/o,rgX:this.rgX,rgY:this.rgY}):this.rgX===void 0&&this.rgY!==void 0?this.newValue.emit({v:a/o,rgY:this.rgY}):this.rgX!==void 0&&this.rgY===void 0&&this.newValue.emit({v:r/t,rgX:this.rgX})}}return n.\u0275fac=function(e){return new(e||n)(m(fe))},n.\u0275dir=F({type:n,selectors:[["","slider",""]],hostBindings:function(e,t){e&1&&_("mousedown",function(r){return t.mouseDown(r)})("touchstart",function(r){return t.touchStart(r)})},inputs:{rgX:"rgX",rgY:"rgY",slider:"slider"},outputs:{dragEnd:"dragEnd",dragStart:"dragStart",newValue:"newValue"}}),n})(),uo=(()=>{class n{constructor(e,t){this.service=e,this.cdr=t,this.color=new Q(0,1,1,1),this.controls="default",this.sliderChange=new S(!1),this.onAlphaChange=new S(!1),this.hsva=new Q(0,1,1,1),this.selectedColor="#000000",this.fallbackColor="#000000"}ngOnInit(){this.color||(this.color=new Q(0,1,1,1)),this.slider=new wt(0,0,0,0),this.update()}ngOnDestroy(){}ngOnChanges(e){e.color&&this.color&&this.update()}ngAfterViewInit(){let e=this.hueSlider?.nativeElement.offsetWidth||140,t=this.alphaSlider?.nativeElement.offsetWidth||140;this.sliderDimMax=new Ut(e,220,130,t),this.update()}onSliderChange(e,t){switch(e){case"saturation-lightness":this.hsva.onColorChange(t);break;case"hue":this.hsva.onHueChange(t);break;case"alpha":this.hsva.onAlphaChange(t),this.onAlphaChange.emit(t);break;case"value":this.hsva.onValueChange(t);break}this.update(),this.setColor(this.outputColor)}setColor(e){this.color=e,this.sliderChange.emit(this.color)}getBackgroundColor(e){return{background:"linear-gradient(90deg, rgba(36,0,0,0) 0%, "+e+" 100%)"}}update(){if(this.hsva=this.color,this.sliderDimMax){let e=this.service.hsvaToRgba(this.hsva).denormalize(),t=this.service.hsvaToRgba(new Q(this.hsva.h,1,1,1)).denormalize();this.hueSliderColor="rgb("+t.r+","+t.g+","+t.b+")",this.alphaSliderColor="rgb("+e.r+","+e.g+","+e.b+")",this.outputColor=this.hsva,this.selectedColor=this.service.hsvaToRgba(this.hsva).toString(),this.slider=new wt(this.hsva.h*this.sliderDimMax.h-5,this.hsva.s*this.sliderDimMax.s-8,(1-this.hsva.v)*this.sliderDimMax.v-8,this.hsva.a*this.sliderDimMax.a-5),this.cdr.detectChanges()}}}return n.\u0275fac=function(e){return new(e||n)(m(St),m(Z))},n.\u0275cmp=A({type:n,selectors:[["color-picker"]],viewQuery:function(e,t){if(e&1&&(q(Qn,5),q(Kn,5)),e&2){let o;H(o=L())&&(t.hueSlider=o.first),H(o=L())&&(t.alphaSlider=o.first)}},inputs:{color:"color",controls:"controls"},outputs:{sliderChange:"sliderChange",onAlphaChange:"onAlphaChange"},features:[ue],decls:8,vars:4,consts:[["dialogPopup",""],["hueSlider",""],["alphaSlider",""],[1,"color-picker",3,"click"],["class","saturation-lightness",3,"slider","rgX","rgY","background-color","newValue",4,"ngIf"],[1,"hue-alpha","box"],["class","left",4,"ngIf"],[1,"right"],["class","hue",3,"slider","rgX","newValue",4,"ngIf"],["class","alpha",3,"slider","rgX","newValue",4,"ngIf"],[1,"saturation-lightness",3,"newValue","slider","rgX","rgY"],[1,"cursor"],[1,"left"],[1,"selected-color-background"],[1,"selected-color"],[1,"hue",3,"newValue","slider","rgX"],[1,"sliderCursor"],[1,"alpha",3,"newValue","slider","rgX"],[1,"alpha-gradient",3,"ngStyle"]],template:function(e,t){if(e&1){let o=D();l(0,"div",3,0),_("click",function(a){return C(o),v(a.stopPropagation())}),u(2,qn,3,8,"div",4),l(3,"div",5),u(4,Zn,3,2,"div",6),l(5,"div",7),u(6,Jn,5,3,"div",8)(7,eo,6,4,"div",9),c()()()}e&2&&(s(2),d("ngIf",t.controls!="only-alpha"),s(2),d("ngIf",t.controls!="only-alpha"),s(2),d("ngIf",t.controls!="only-alpha"),s(),d("ngIf",t.controls!="no-alpha"))},dependencies:[oe,nt,go],styles:[`.color-picker{position:relative;z-index:1000;width:220px;height:auto;cursor:default;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:none}.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 .sliderCursor{width:10px;border-radius:5px;position:absolute;margin-top:-3px;border:1px solid black}.color-picker .sliderCursor>div{border:2px solid white;border-radius:5px}.color-picker .sliderCursor>div>div{border-radius:5px;border:1px solid black;height:24px}.color-picker .cursor{position:absolute;width:21px;border:3px solid black;border-radius:100%;margin:-2px 0 0 -2px}.color-picker .cursor>div{height:15px;border:3px solid white;border-radius:100%}.color-picker .box{display:flex;padding:4px 8px}.color-picker .left{position:relative;padding:16px 8px}.color-picker .right{flex:1 1 auto;display:flex;flex-direction:column;gap:10px;padding:12px 8px}.color-picker .hue-alpha{display:flex;align-items:center;margin-bottom:3px}.color-picker .hue{direction:ltr;width:100%;height:24px;border:none;border-radius:5px;position:relative;cursor:pointer;background-size:100% 100%;background:linear-gradient(to right,red 0%,#ff0 17%,lime 33%,cyan 50%,blue 66%,#f0f 83%,red 100%)}.color-picker .alpha{direction:ltr;position:relative;width:100%;height:24px;border:none;border-radius:5px;cursor:pointer;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0px}.color-picker .alpha-gradient{width:100%;height:100%;border-radius:5px;position:absolute}.color-picker .selected-color{position:absolute;top:16px;left:8px;width:40px;height:40px;box-shadow:0 1px 1px 1px #00000026;border-radius:50%}.color-picker .selected-color-background{width:40px;height:40px;border-radius:50%;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0px}.color-picker .saturation-lightness{direction:ltr;cursor:crosshair;width:100%;position:relative;height:130px;border:none;touch-action:manipulation;background-image:linear-gradient(to top,#000 0%,transparent 100%),linear-gradient(to right,#fff 0%,transparent 100%)} +`],encapsulation:2}),n})(),fo=(()=>{class n{click(e){this.isOutside(e)&&this.emitClose("cancel")}onScroll(){this.onScreenMovement()}onResize(){this.onScreenMovement()}constructor(e,t){this.service=e,this.cdr=t,this.color="#000000",this.previewColor="#000000",this.hsva=new Q(0,1,1,1),this.colorsAnimationEffect="slide-in",this.palette=wn,this.variants=[],this.userFormats=[],this.colorFormats=Xt,this.format=O.HEX,this.formatMap={hex:O.HEX,rgba:O.RGBA,hsla:O.HSLA,cmyk:O.CMYK},this.canChangeFormat=!0,this.menu=1,this.hideColorPicker=!1,this.hideTextInput=!1,this.colorPickerControls="default",this.placeholder="#FFFFFF"}ngOnInit(){this.setPosition(),this.hsva=this.service.stringToHsva(this.color),this.indexSeleccionado=this.findIndexSelectedColor(this.palette)}ngAfterViewInit(){this.setPositionY()}onScreenMovement(){this.setPosition(),this.setPositionY(),this.panelRef.nativeElement.style.transition||(this.panelRef.nativeElement.style.transition="transform 0.5s ease-out")}findIndexSelectedColor(e){let t;if(this.color)for(let o=0;oXt.includes($n))&&(this.colorFormats=De),p?this.colorFormats.includes(p)?(this.format=this.colorFormats.indexOf(p.toLowerCase()),this.canChangeFormat=!1,this.service.getFormatByString(this.color)!=p.toLowerCase()&&this.setColor(this.service.stringToHsva(this.color))):(console.error("Format provided is invalid, using HEX"),this.format=O.HEX):(this.format=this.colorFormats.indexOf(this.service.getFormatByString(this.color)),this.format<0&&(this.format=0)),this.previewColor=this.color,this.palette=r??wn,this.colorsAnimationEffect=a,Xe=="top"){let Jt=this.TriggerBBox.nativeElement.getBoundingClientRect();this.positionString="transform: translateY(calc( -100% - "+Jt.height+"px ))"}}setPosition(){if(this.TriggerBBox){let t=this.TriggerBBox.nativeElement.getBoundingClientRect();this.top=t.top+t.height,t.left+250>window.innerWidth?this.left=t.right<250?window.innerWidth/2-250/2:t.right-250:this.left=t.left}}setPositionY(){let e=this.TriggerBBox.nativeElement.getBoundingClientRect(),t=this.panelRef.nativeElement.getBoundingClientRect(),o=t.height;e.bottom+o>window.innerHeight?this.positionString=e.topt.toUpperCase()==this.previewColor.toUpperCase()):!1}isSelected(e){return this.previewColor?typeof e=="string"&&e.toUpperCase()==this.previewColor.toUpperCase():!1}getBackgroundColor(e){return typeof e=="string"?{background:e}:{background:e?.preview}}onAlphaChange(e){this.palette=this.ChangeAlphaOnPalette(e,this.palette)}ChangeAlphaOnPalette(e,t){var o=[];for(let r=0;r slide-in",[Qe(":enter",I({opacity:0}),{optional:!0}),Qe(":enter",jt("10ms",[Re(".3s ease-in",Lt([I({opacity:0,transform:"translatex(-50%)",offset:0}),I({opacity:.5,transform:"translatex(-10px) scale(1.1)",offset:.3}),I({opacity:1,transform:"translatex(0)",offset:1})]))]),{optional:!0})]),Ne("void => popup",[Qe(":enter",I({opacity:0,transform:"scale(0)"}),{optional:!0}),Qe(":enter",jt("10ms",[Re("500ms ease-out",Lt([I({opacity:.5,transform:"scale(.5)",offset:.3}),I({opacity:1,transform:"scale(1.1)",offset:.8}),I({opacity:1,transform:"scale(1)",offset:1})]))]),{optional:!0})])])]}}),n})(),yn={position:"fixed",height:"100%",width:"100%","z-index":2e3,top:0,left:0},Dn=(()=>{class n{constructor(e,t,o){this.resolver=e,this.applicationRef=t,this.injector=o}createPanel(e,t){this.componentRef!=null&&this.removePanel();let o=this.resolver.resolveComponentFactory(fo);this.componentRef=o.create(this.injector),this.applicationRef.attachView(this.componentRef.hostView);let r=this.componentRef.hostView.rootNodes[0];return this.overlay=document.createElement("div"),this.overlay.id="ngx-colors-overlay",this.overlay.classList.add("ngx-colors-overlay"),this.overlay.classList.add(t),Object.keys(yn).forEach(a=>{this.overlay.style[a]=yn[a]}),e?document.getElementById(e).appendChild(this.overlay):document.body.appendChild(this.overlay),this.overlay.appendChild(r),this.componentRef}removePanel(){this.applicationRef.detachView(this.componentRef.hostView),this.componentRef.destroy(),this.overlay.remove()}}return n.\u0275fac=function(e){return new(e||n)(ge(mi),ge(fi),ge(li))},n.\u0275prov=me({token:n,factory:n.\u0275fac}),n})(),$t=(()=>{class n{onClick(){this.openPanel()}constructor(e,t,o){this.triggerRef=e,this.panelFactory=t,this.service=o,this.color="",this.colorsAnimation="slide-in",this.position="bottom",this.attachTo=void 0,this.overlayClassName=void 0,this.colorPickerControls="default",this.acceptLabel="ACCEPT",this.cancelLabel="CANCEL",this.change=new S,this.input=new S,this.slider=new S,this.close=new S,this.open=new S,this.isDisabled=!1,this.onTouchedCallback=()=>{},this.onChangeCallback=()=>{}}ngOnDestroy(){this.panelRef&&this.panelFactory.removePanel()}openPanel(){this.isDisabled||(this.panelRef=this.panelFactory.createPanel(this.attachTo,this.overlayClassName),this.panelRef.instance.iniciate(this,this.triggerRef,this.color,this.palette,this.colorsAnimation,this.format,this.hideTextInput,this.hideColorPicker,this.acceptLabel,this.cancelLabel,this.colorPickerControls,this.position,this.formats)),this.open.emit(this.color)}closePanel(){this.panelFactory.removePanel(),this.onTouchedCallback(),this.close.emit(this.color)}setDisabledState(e){this.isDisabled=e,this.triggerRef.nativeElement.style.opacity=e?.5:1}setColor(e,t=""){this.writeValue(e,t),this.onChangeCallback(e),this.input.emit(e)}sliderChange(e){this.slider.emit(e)}get value(){return this.color}set value(e){this.setColor(e),this.onChangeCallback(e)}writeValue(e,t=""){if(e!==this.color){if(this.format){let r=Xt.indexOf(this.format.toLowerCase());e=this.service.stringToFormat(e,r)}this.color=e;let o=!1;e&&e.startsWith("cmyk")&&(o=!0,t||(t=this.service.stringToFormat(e,O.RGBA))),this.change.emit(o?t:e)}}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}}return n.\u0275fac=function(e){return new(e||n)(m(fe),m(Dn),m(St))},n.\u0275dir=F({type:n,selectors:[["","ngx-colors-trigger",""]],hostBindings:function(e,t){e&1&&_("click",function(){return t.onClick()})},inputs:{colorsAnimation:"colorsAnimation",palette:"palette",format:"format",formats:"formats",position:"position",hideTextInput:"hideTextInput",hideColorPicker:"hideColorPicker",attachTo:"attachTo",overlayClassName:"overlayClassName",colorPickerControls:"colorPickerControls",acceptLabel:"acceptLabel",cancelLabel:"cancelLabel"},outputs:{change:"change",input:"input",slider:"slider",close:"close",open:"open"},features:[j([{provide:Fi,useExisting:ni(()=>n),multi:!0}])]}),n})(),En=(()=>{class n{constructor(e,t){this.cdRef=e,this.triggerDirective=t,this.triggerDirectiveColorChangeSubscription=null,this.color=this.triggerDirective.color}ngOnInit(){this.triggerDirectiveColorChangeSubscription=this.triggerDirective.change.subscribe(e=>{this.color=e,this.cdRef.markForCheck()})}ngOnDestroy(){this.triggerDirectiveColorChangeSubscription&&this.triggerDirectiveColorChangeSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(m(Z),m($t,1))},n.\u0275cmp=A({type:n,selectors:[["ngx-colors"]],decls:4,vars:5,consts:[[1,"app-color-picker"],[1,"preview"],[1,"preview-background"],[1,"circle",3,"ngStyle"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"div",1)(2,"div",2),f(3,"div",3),c()()()),e&2&&(s(3),K("colornull",!t.color),d("ngStyle",Vt(3,Sn,t.color)))},dependencies:[nt],styles:["[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%]{line-height:1px;font-family:sans-serif}[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%]{margin:2px;display:inline-block;box-sizing:border-box;border-radius:100%;background:white;cursor:pointer;padding:3px;box-shadow:0 1px 1px #0003,0 1px 1px 1px #00000024,0 1px 1px 1px #0000001f}[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] .preview-background[_ngcontent-%COMP%]{background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0px;border-radius:100%}[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] .circle[_ngcontent-%COMP%]{height:20px;width:20px;box-sizing:border-box;border-radius:100%;cursor:pointer}[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] .circle.colornull[_ngcontent-%COMP%]{background:linear-gradient(135deg,rgba(236,236,236,.7) 0%,rgba(236,236,236,.7) 45%,#de0f00 50%,rgba(236,236,236,.7) 55%,rgba(236,236,236,.7) 100%)}[_nghost-%COMP%] .app-color-picker[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] .noselected[_ngcontent-%COMP%]{background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0px}"]}),n})(),An=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=U({type:n}),n.\u0275inj=W({providers:[St,Dn],imports:[ot]}),n})();var Mn=(()=>{let i=class i{get lineClamp(){return this.maxEllipsisLines}onMouseEnter(){this.isTextOverflowing?this.tooltip.show():this.tooltip.hide()}onMouseLeave(){this.tooltip.hide()}constructor(t,o){this.tooltip=t,this.elementRef=o,this.maxEllipsisLines=2,this.display="-webkit-box",this.overflow="hidden",this.boxOrient="vertical",this.textOverflow="ellipsis",this.whiteSpace="normal",this.wordBreak="break-all"}ngAfterViewInit(){setTimeout(()=>{this.tooltip.message=this.elementRef.nativeElement.textContent.trim(),this.tooltip.position="above"},0)}get isTextOverflowing(){let t=parseInt(window.getComputedStyle(this.elementRef.nativeElement).lineHeight),o=this.maxEllipsisLines*t;return this.elementRef.nativeElement.scrollHeight>o}};i.\u0275fac=function(o){return new(o||i)(m(gt),m(fe))},i.\u0275dir=F({type:i,selectors:[["","msUseEllipsis",""]],hostVars:14,hostBindings:function(o,r){o&1&&_("mouseenter",function(){return r.onMouseEnter()})("mouseleave",function(){return r.onMouseLeave()}),o&2&&V("display",r.display)("overflow",r.overflow)("-webkit-box-orient",r.boxOrient)("-webkit-line-clamp",r.lineClamp)("text-overflow",r.textOverflow)("white-space",r.whiteSpace)("word-break",r.wordBreak)},inputs:{maxEllipsisLines:"maxEllipsisLines"},standalone:!0,features:[j([gt])]});let n=i;return n})();var xo=0,Qt=new he("CdkAccordion"),Tn=(()=>{let i=class i{constructor(){this._stateChanges=new Ae,this._openCloseAllActions=new Ae,this.id=`cdk-accordion-${xo++}`,this.multi=!1}openAll(){this.multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}};i.\u0275fac=function(o){return new(o||i)},i.\u0275dir=F({type:i,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",J]},exportAs:["cdkAccordion"],standalone:!0,features:[j([{provide:Qt,useExisting:i}]),ie,ue]});let n=i;return n})(),bo=0,Pn=(()=>{let i=class i{get expanded(){return this._expanded}set expanded(t){if(this._expanded!==t){if(this._expanded=t,this.expandedChange.emit(t),t){this.opened.emit();let o=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,o)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}constructor(t,o,r){this.accordion=t,this._changeDetectorRef=o,this._expansionDispatcher=r,this._openCloseAllSubscription=Ze.EMPTY,this.closed=new S,this.opened=new S,this.destroyed=new S,this.expandedChange=new S,this.id=`cdk-accordion-child-${bo++}`,this._expanded=!1,this.disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((a,p)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===p&&this.id!==a&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(t=>{this.disabled||(this.expanded=t)})}};i.\u0275fac=function(o){return new(o||i)(m(Qt,12),m(Z),m(ht))},i.\u0275dir=F({type:i,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",J],disabled:[2,"disabled","disabled",J]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],standalone:!0,features:[j([{provide:Qt,useValue:void 0}]),ie]});let n=i;return n})(),Fn=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=U({type:i}),i.\u0275inj=W({});let n=i;return n})();var So=["body"],Do=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Eo=["mat-expansion-panel-header","*","mat-action-row"];function Ao(n,i){}var Mo=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],To=["mat-panel-title","mat-panel-description","*"];function Po(n,i){if(n&1&&(l(0,"span",1),Ie(),l(1,"svg",2),f(2,"path",3),c()()),n&2){let e=h();d("@indicatorRotate",e._getExpandedState())}}var Kt=new he("MAT_ACCORDION"),kn="225ms cubic-bezier(0.4,0.0,0.2,1)",On={indicatorRotate:Ue("indicatorRotate",[$e("collapsed, void",I({transform:"rotate(0deg)"})),$e("expanded",I({transform:"rotate(180deg)"})),Ne("expanded <=> collapsed, void => collapsed",Re(kn))]),bodyExpansion:Ue("bodyExpansion",[$e("collapsed, void",I({height:"0px",visibility:"hidden"})),$e("expanded",I({height:"*",visibility:""})),Ne("expanded <=> collapsed, void => collapsed",Re(kn))])},Rn=new he("MAT_EXPANSION_PANEL"),Fo=(()=>{let i=class i{constructor(t,o){this._template=t,this._expansionPanel=o}};i.\u0275fac=function(o){return new(o||i)(m(pi),m(Rn,8))},i.\u0275dir=F({type:i,selectors:[["ng-template","matExpansionPanelContent",""]],standalone:!0});let n=i;return n})(),ko=0,Nn=new he("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),re=(()=>{let i=class i extends Pn{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=t}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}constructor(t,o,r,a,p,x,y){super(t,o,r),this._viewContainerRef=a,this._animationMode=x,this._hideToggle=!1,this.afterExpand=new S,this.afterCollapse=new S,this._inputChanges=new Ae,this._headerId=`mat-expansion-panel-header-${ko++}`,this.accordion=t,this._document=p,this._animationsDisabled=x==="NoopAnimations",y&&(this.hideToggle=y.hideToggle)}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(kt(null),Me(()=>this.expanded&&!this._portal),pe(1)).subscribe(()=>{this._portal=new Yi(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._inputChanges.complete()}_containsFocus(){if(this._body){let t=this._document.activeElement,o=this._body.nativeElement;return t===o||o.contains(t)}return!1}_animationStarted(t){!In(t)&&!this._animationsDisabled&&this._body&&this._body?.nativeElement.setAttribute("inert","")}_animationDone(t){In(t)||(t.toState==="expanded"?this.afterExpand.emit():t.toState==="collapsed"&&this.afterCollapse.emit(),!this._animationsDisabled&&this._body&&this._body.nativeElement.removeAttribute("inert"))}};i.\u0275fac=function(o){return new(o||i)(m(Kt,12),m(Z),m(ht),m(hi),m(Ci),m(It,8),m(Nn,8))},i.\u0275cmp=A({type:i,selectors:[["mat-expansion-panel"]],contentQueries:function(o,r,a){if(o&1&&Bt(a,Fo,5),o&2){let p;H(p=L())&&(r._lazyContent=p.first)}},viewQuery:function(o,r){if(o&1&&q(So,5),o&2){let a;H(a=L())&&(r._body=a.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(o,r){o&2&&K("mat-expanded",r.expanded)("_mat-animation-noopable",r._animationsDisabled)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",J],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],standalone:!0,features:[j([{provide:Kt,useValue:void 0},{provide:Rn,useExisting:i}]),ie,Rt,ue,it],ngContentSelectors:Eo,decls:7,vars:4,consts:[["body",""],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(o,r){if(o&1){let a=D();tt(Do),_e(0),l(1,"div",1,0),_("@bodyExpansion.start",function(x){return C(a),v(r._animationStarted(x))})("@bodyExpansion.done",function(x){return C(a),v(r._animationDone(x))}),l(3,"div",2),_e(4,1),u(5,Ao,0,0,"ng-template",3),c(),_e(6,2),c()}o&2&&(s(),d("@bodyExpansion",r._getExpandedState())("id",r.id),et("aria-labelledby",r._headerId),s(4),d("cdkPortalOutlet",r._portal))},dependencies:[Xi],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color)}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[On.bodyExpansion]},changeDetection:0});let n=i;return n})();function In(n){return n.fromState==="void"}var Fe=(()=>{let i=class i{constructor(t,o,r,a,p,x,y){this.panel=t,this._element=o,this._focusMonitor=r,this._changeDetectorRef=a,this._animationMode=x,this._parentChangeSubscription=Ze.EMPTY,this.tabIndex=0;let X=t.accordion?t.accordion._stateChanges.pipe(Me(R=>!!(R.hideToggle||R.togglePosition))):ti;this.tabIndex=parseInt(y||"")||0,this._parentChangeSubscription=Pt(t.opened,t.closed,X,t._inputChanges.pipe(Me(R=>!!(R.hideToggle||R.disabled||R.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(Me(()=>t._containsFocus())).subscribe(()=>r.focusVia(o,"program")),p&&(this.expandedHeight=p.expandedHeight,this.collapsedHeight=p.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){let t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case 32:case 13:Di(t)||(t.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t);return}}focus(t,o){t?this._focusMonitor.focusVia(this._element,t,o):this._element.nativeElement.focus(o)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}};i.\u0275fac=function(o){return new(o||i)(m(re,1),m(fe),m(Ai),m(Z),m(Nn,8),m(It,8),si("tabindex"))},i.\u0275cmp=A({type:i,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(o,r){o&1&&_("click",function(){return r._toggle()})("keydown",function(p){return r._keydown(p)}),o&2&&(et("id",r.panel._headerId)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),V("height",r._getHeaderHeight()),K("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after",r._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",r._getTogglePosition()==="before")("_mat-animation-noopable",r._animationMode==="NoopAnimations"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",t=>t==null?0:_i(t)]},standalone:!0,features:[ie,it],ngContentSelectors:To,decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 -960 960 960","aria-hidden","true","focusable","false"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(o,r){o&1&&(tt(Mo),l(0,"span",0),_e(1),_e(2,1),_e(3,2),c(),u(4,Po,3,1,"span",1)),o&2&&(K("mat-content-hide-toggle",!r._showToggle()),s(4),Nt(r._showToggle()?4:-1))},styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color)}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color);display:inline-block;display:var(--mat-expansion-legacy-header-indicator-display, inline-block)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color);display:none;display:var(--mat-expansion-header-indicator-display, none)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[On.indicatorRotate]},changeDetection:0});let n=i;return n})();var Ye=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275dir=F({type:i,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"],standalone:!0});let n=i;return n})(),Bn=(()=>{let i=class i extends Tn{constructor(){super(...arguments),this._ownHeaders=new ci,this.hideToggle=!1,this.displayMode="default",this.togglePosition="after"}ngAfterContentInit(){this._headers.changes.pipe(kt(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(o=>o.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Ei(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}};i.\u0275fac=(()=>{let t;return function(r){return(t||(t=ai(i)))(r||i)}})(),i.\u0275dir=F({type:i,selectors:[["mat-accordion"]],contentQueries:function(o,r,a){if(o&1&&Bt(a,Fe,5),o&2){let p;H(p=L())&&(r._headers=p)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(o,r){o&2&&K("mat-accordion-multi",r.multi)},inputs:{hideToggle:[2,"hideToggle","hideToggle",J],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],standalone:!0,features:[j([{provide:Kt,useExisting:i}]),ie,Rt]});let n=i;return n})(),Vn=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=U({type:i}),i.\u0275inj=W({imports:[zt,Fn,Wi]});let n=i;return n})();var Hn=(()=>{let i=class i{transform(t){return typeof t=="string"&&t&&t!="None"||typeof t=="number"&&!isNaN(t)?t.toString():"-"}};i.\u0275fac=function(o){return new(o||i)},i.\u0275pipe=Je({name:"emptyTableField",type:i,pure:!0,standalone:!0});let n=i;return n})();var Ln=(()=>{let i=class i{transform(t){return t&&typeof t=="object"&&Object.keys(t).length>0}};i.\u0275fac=function(o){return new(o||i)},i.\u0275pipe=Je({name:"hasKeys",type:i,pure:!0,standalone:!0});let n=i;return n})();var G=function(n){return n.ADD="add",n.EDIT="edit",n.VIEW="view",n}(G||{});var Dt=(()=>{let i=class i{constructor(t){this.store=t,this.filenames$=this.store.select(Qi),this.summarizedRecord$=this.store.select(Ki)}dispatch(t){this.store.dispatch(t)}};i.\u0275fac=function(o){return new(o||i)(ge(Si))},i.\u0275prov=me({token:i,factory:i.\u0275fac});let n=i;return n})();var Y=(()=>{let i=class i{get algorithmType(){return this._algorithmType.value}get algorithmType$(){return this._algorithmType.asObservable()}set algorithmType(t){this._recordsMap.set(this._algorithmType.value,this._records.value),this._algorithmType.next(t);let o=this._recordsMap.get(t)||[];this._records.next(o)}get records(){return this._records.value}get records$(){return this._records.asObservable()}addRecord(t){this.stopTooltips();let r=[...this._records.value,t];this._records.next(r),this._recordsMap.set(this._algorithmType.value,r)}updateRecord(t,o){this.stopTooltips();let r=this._records.value;if(t>=0&&t=0&&tp!==t);this._records.next(r),this._recordsMap.set(this._algorithmType.value,r)}}stopTooltips(){this.chartToolsGlobalSignalsService.toggleTooltips=!1,this.chartToolsGlobalSignalsService.toggleZoom=!1}constructor(t){this.chartToolsGlobalSignalsService=t,this._recordsMap=new Map,this._records=new Tt([]),this._algorithmType=new Tt(B.PRUNING)}};i.\u0275fac=function(o){return new(o||i)(ge(ze))},i.\u0275prov=me({token:i,factory:i.\u0275fac});let n=i;return n})();var zn=(()=>{let i=class i{get parentFormGroup(){return this.controlContainer.control}get chartFormGroup(){return this.parentFormGroup.get(this.controlKey)}get borderColorControl(){return this.chartFormGroup.get(this.CHART_BODER_COLOR_CONTROL_NAME)}get backgroundColorControl(){return this.chartFormGroup.get(this.CHART_BACKGROUND_COLOR_CONTROL_NAME)}constructor(t){this.controlContainer=t,this.controlKey="",this.CHART_BODER_COLOR_CONTROL_NAME="borderColor",this.CHART_BACKGROUND_COLOR_CONTROL_NAME="backgroundColor"}ngOnInit(){}};i.\u0275fac=function(o){return new(o||i)(m(Ke))},i.\u0275cmp=A({type:i,selectors:[["ms-chart-colors-form-controls"]],inputs:{controlKey:"controlKey"},features:[j([],[{provide:Ke,useFactory:()=>oi(Ke,{skipSelf:!0})}])],decls:15,vars:5,consts:[[3,"formGroupName"],[1,"form-field-container"],[1,"flex","items-center"],[1,"mr-2"],["ngx-colors-trigger","",3,"formControlName"]],template:function(o,r){o&1&&(b(0,0),l(1,"div",1)(2,"mat-label"),g(3,"Chart border color"),c(),l(4,"div",2)(5,"div",3),f(6,"ngx-colors",4),c(),g(7),c()(),l(8,"div",1)(9,"mat-label"),g(10,"Chart background color"),c(),l(11,"div",2)(12,"div",3),f(13,"ngx-colors",4),c(),g(14),c()(),w()),o&2&&(d("formGroupName",r.controlKey),s(6),d("formControlName",r.CHART_BODER_COLOR_CONTROL_NAME),s(),T(" ",r.borderColorControl==null?null:r.borderColorControl.value," "),s(6),d("formControlName",r.CHART_BACKGROUND_COLOR_CONTROL_NAME),s(),T(" ",r.backgroundColorControl==null?null:r.backgroundColorControl.value," "))},dependencies:[En,$t,we,Be,Ve,Oi,pt]});let n=i;return n})();function Yo(n,i){if(n&1&&(l(0,"mat-option",14),g(1),c()),n&2){let e=h();s(),T(" No algorithm was yet run. Please run a ",e.algorithmTypeLabel," algorithm. ")}}function Xo(n,i){if(n&1&&(l(0,"mat-option",16),g(1),c()),n&2){let e=i.$implicit;d("value",e.name)("disabled",e.disabled),s(),T(" ",e.name," ")}}function Wo(n,i){if(n&1&&(b(0),u(1,Xo,2,3,"mat-option",15),w()),n&2){let e=h();s(),d("ngForOf",e.files)}}function Uo(n,i){n&1&&(l(0,"div")(1,"div",17),f(2,"mat-spinner",18),c()())}function $o(n,i){if(n&1&&(b(0),g(1),E(2,"readableDuration"),w()),n&2){let e=h().$implicit;s(),k(M(2,1,e.value))}}function Qo(n,i){if(n&1&&(b(0),g(1),w()),n&2){let e=h().$implicit;s(),k(e.value)}}function Ko(n,i){n&1&&(l(0,"div",33),f(1,"mat-divider"),c())}function qo(n,i){if(n&1&&(l(0,"div",25)(1,"div",26)(2,"div",27),g(3),E(4,"parametersLabel"),c(),l(5,"div",28),b(6,29),u(7,$o,3,3,"ng-container",30)(8,Qo,2,1,"ng-container",31),w(),c()(),u(9,Ko,2,0,"div",32),c()),n&2){let e=i.$implicit,t=i.last;s(3),T("",M(4,4,e.key),":"),s(3),d("ngSwitch",e.key),s(),d("ngSwitchCase","duration_seconds"),s(2),d("ngIf",!t)}}function Zo(n,i){if(n&1&&(b(0),u(1,qo,10,6,"div",24),w()),n&2){let e=i.ngIf;s(),d("ngForOf",e)}}function Jo(n,i){n&1&&(l(0,"div",34),g(1,"No data available"),c())}function er(n,i){if(n&1&&(b(0),g(1),E(2,"adaptiveFileSize"),w()),n&2){let e=h().$implicit;s(),k(M(2,1,e.value))}}function tr(n,i){if(n&1&&(b(0),g(1),E(2,"date"),w()),n&2){let e=h().$implicit;s(),k(ui(2,1,e.value,"medium"))}}function ir(n,i){if(n&1&&(b(0),g(1),E(2,"readableDuration"),w()),n&2){let e=h().$implicit;s(),k(M(2,1,e.value))}}function nr(n,i){if(n&1&&(b(0),g(1),w()),n&2){let e=h().$implicit;s(),k(e.value)}}function or(n,i){n&1&&(l(0,"div",33),f(1,"mat-divider"),c())}function rr(n,i){if(n&1&&(l(0,"div",25)(1,"div",26)(2,"div",27),g(3),E(4,"parametersLabel"),c(),l(5,"div",28),b(6,29),u(7,er,3,3,"ng-container",30)(8,tr,3,4,"ng-container",30)(9,ir,3,3,"ng-container",30)(10,nr,2,1,"ng-container",31),w(),c()(),u(11,or,2,0,"div",32),c()),n&2){let e=i.$implicit,t=i.last;s(3),T("",M(4,6,e.key),":"),s(3),d("ngSwitch",e.key),s(),d("ngSwitchCase","file_size_bytes"),s(),d("ngSwitchCase","creation_date"),s(),d("ngSwitchCase","training_duration_seconds"),s(2),d("ngIf",!t)}}function ar(n,i){if(n&1&&(b(0),u(1,rr,12,8,"div",24),E(2,"keyvalue"),w()),n&2){let e=h(3);s(),d("ngForOf",M(2,1,e.summarizedRecord==null?null:e.summarizedRecord.modelTrainingDetails))}}function sr(n,i){n&1&&(l(0,"div",34),g(1,"No data available"),c())}function lr(n,i){n&1&&(l(0,"div",33),f(1,"mat-divider"),c())}function cr(n,i){if(n&1&&(l(0,"div",25)(1,"div",26)(2,"div",27),g(3),E(4,"parametersLabel"),c(),l(5,"div",28),g(6),c()(),u(7,lr,2,0,"div",32),c()),n&2){let e=i.$implicit,t=i.last;s(3),T("",M(4,3,e.key),":"),s(3),k(e.value),s(),d("ngIf",!t)}}function dr(n,i){if(n&1&&(b(0),u(1,cr,8,5,"div",24),w()),n&2){let e=i.ngIf;s(),d("ngForOf",e)}}function pr(n,i){n&1&&(l(0,"div",34),g(1,"No data available"),c())}function mr(n,i){if(n&1&&(b(0),f(1,"ms-chart-colors-form-controls",35)(2,"ms-line-chart",36),w()),n&2){let e=h(3);s(2),d("data",e.lastRunAccuracyTestingChartData)("settings",e.testingAccuracyChartDisplaySettings)}}function hr(n,i){n&1&&(l(0,"div",34),g(1,"No data available"),c())}function gr(n,i){if(n&1){let e=D();b(0),f(1,"mat-divider"),l(2,"div",19)(3,"mat-label"),g(4,"Set run name"),c(),l(5,"mat-form-field",9),f(6,"input",20),c()(),l(7,"mat-accordion",21)(8,"mat-expansion-panel",22),xe("expandedChange",function(o){C(e);let r=h(2);return ve(r.panelStates.statistics,o)||(r.panelStates.statistics=o),v(o)}),l(9,"mat-expansion-panel-header")(10,"mat-panel-title",23),g(11," Statistics "),c()(),u(12,Zo,2,1,"ng-container",13),E(13,"keyvalue"),u(14,Jo,2,0,"ng-template",null,2,ne),c(),l(16,"mat-expansion-panel",22),xe("expandedChange",function(o){C(e);let r=h(2);return ve(r.panelStates.modelTrainingDetails,o)||(r.panelStates.modelTrainingDetails=o),v(o)}),l(17,"mat-expansion-panel-header")(18,"mat-panel-title",23),g(19," Model training details "),c()(),u(20,ar,3,3,"ng-container",13),E(21,"hasKeys"),u(22,sr,2,0,"ng-template",null,3,ne),c(),l(24,"mat-expansion-panel",22),xe("expandedChange",function(o){C(e);let r=h(2);return ve(r.panelStates.parameters,o)||(r.panelStates.parameters=o),v(o)}),l(25,"mat-expansion-panel-header")(26,"mat-panel-title",23),g(27," Parameters "),c()(),u(28,dr,2,1,"ng-container",13),E(29,"keyvalue"),u(30,pr,2,0,"ng-template",null,4,ne),c(),l(32,"mat-expansion-panel",22),xe("expandedChange",function(o){C(e);let r=h(2);return ve(r.panelStates.accuracy,o)||(r.panelStates.accuracy=o),v(o)}),l(33,"mat-expansion-panel-header")(34,"mat-panel-title",23),g(35," Last Accuracy Test Run "),c()(),u(36,mr,3,2,"ng-container",13),E(37,"keyvalue"),u(38,hr,2,0,"ng-template",null,5,ne),c()(),w()}if(n&2){let e=$(15),t=$(23),o=$(31),r=$(39),a=h(2);s(8),Ce("expanded",a.panelStates.statistics),s(4),d("ngIf",M(13,12,a.summarizedRecord==null?null:a.summarizedRecord.statistics))("ngIfElse",e),s(4),Ce("expanded",a.panelStates.modelTrainingDetails),s(4),d("ngIf",M(21,14,a.summarizedRecord==null?null:a.summarizedRecord.modelTrainingDetails))("ngIfElse",t),s(4),Ce("expanded",a.panelStates.parameters),s(4),d("ngIf",M(29,16,a.summarizedRecord==null?null:a.summarizedRecord.parameters))("ngIfElse",o),s(4),Ce("expanded",a.panelStates.accuracy),s(4),d("ngIf",M(37,18,a.summarizedRecord==null?null:a.summarizedRecord.parameters))("ngIfElse",r)}}function ur(n,i){if(n&1&&u(0,gr,40,20,"ng-container",13),n&2){let e=h(),t=$(14);d("ngIf",!!e.summarizedRecord)("ngIfElse",t)}}function fr(n,i){n&1&&f(0,"ms-empty-state",37)}var ae,ke=(ae=class{get chartFormGroup(){return this.form.get("chart")}get selectRunFormControl(){return this.form.get("selectRun")}get runNameFormControl(){return this.form.get("runName")}constructor(i,e,t,o,r,a){this.drawerRef=i,this.drawerConfig=e,this.fb=t,this.recordsFacadeService=o,this.recordsDataService=r,this.customAPILoadingService=a,this.panelStates={statistics:!0,parameters:!0,accuracy:!0,modelTrainingDetails:!0},this.form=new st({}),this.algorithmTypeLabel="",this.files=[],this.isSummarizedRecordLoading$=this.customAPILoadingService.getLoadingObservableForKey(xn.RUN_RECORDS_SUMMARIZED_DATA),this.testingAccuracyChartDisplaySettings={},this.lastRunAccuracyTestingChartData=[]}ngAfterViewInit(){this.restorePanelStates()}ngOnInit(){switch(this.initForm(),this.initChartDisplaySettings(),this.listenToChartColorChanges(),this.algorithmTypeLabel=this.getAlgorithmTypeString(),this.drawerConfig.actionType){case G.ADD:{this.loadData(),this.configureAddTypeActions();break}case G.EDIT:case G.VIEW:{this.configureEditOrViewTypeActions();break}}}getAlgorithmTypeString(){switch(this.recordsDataService.algorithmType){case B.PRUNING:return"pruning";case B.QUANTIZATION:return"quantization";case B.MACHINE_UNLEARNING:return"machine unlearning";default:return"specified"}}initChartDisplaySettings(){let i=0;switch(this.recordsDataService.algorithmType){case B.PRUNING:{i=100;break}case B.QUANTIZATION:{i=79;break}case B.MACHINE_UNLEARNING:{i=36;break}default:break}this.testingAccuracyChartDisplaySettings={yAxisMinimumValue:0,yAxisTickInterval:20,chartDataStructure:xt.SINGLE_PHASE_X_AXIS,xAxisDataPointsCount:i,yAxisMaximumValue:100,isXAxisVisible:!0,isXAxisDynamic:!0,areTooltipsEnabled:!0,xAxisInitialLabelValue:1,xAxisLabelPrefix:"Step:",datasetLabelPrefix:"Test:",isChartWithCustomColorSettings:!0,customChartColors:{datasetColors:[{backgroundColor:"rgba(241, 196, 15, 0.2)",borderColor:"#f1c40f"}]}}}listenToChartColorChanges(){this.chartFormGroup.valueChanges.pipe(ii(300),z(this)).subscribe(i=>{if(Le(i))return;let{backgroundColor:e,borderColor:t}=i;this.testingAccuracyChartDisplaySettings=We(Ee({},this.testingAccuracyChartDisplaySettings),{customChartColors:{datasetColors:[{backgroundColor:e,borderColor:t}]}}),this.lastRunAccuracyTestingChartData=[...this.lastRunAccuracyTestingChartData]})}configureEditOrViewTypeActions(){let{recordName:i,recordFilename:e,record:t,chartColors:o}=this.drawerConfig.data;this.drawerConfig.actionType===G.VIEW?this.form.disable():this.drawerConfig.actionType===G.EDIT&&this.selectRunFormControl.disable(),this.files=[{name:e,disabled:!0}],this.form.patchValue({selectRun:e,runName:i,chart:{borderColor:o.borderColor,backgroundColor:o.backgroundColor}}),this.summarizedRecord=t,this.lastRunAccuracyTestingChartData=this.configureChartDataset(t),this.testingAccuracyChartDisplaySettings=We(Ee({},this.testingAccuracyChartDisplaySettings),{hasCustomDatasetsLabels:!0,customDatasetsLabels:[i],customChartColors:{datasetColors:[{backgroundColor:o.backgroundColor||"rgba(241, 196, 15, 0.2)",borderColor:o.borderColor||"#f1c40f"}]}})}configureAddTypeActions(){this.listenToSelectRunFormValueChanges(),this.listenToSummarizedRecordChanges()}listenToSelectRunFormValueChanges(){this.selectRunFormControl.valueChanges.pipe(z(this),Me(i=>!ut(i))).subscribe(i=>{this.runNameFormControl.reset(),this.recordsFacadeService.dispatch(Yt.getRunRecordSummarizedData({algorithmType:this.recordsDataService.algorithmType,filename:i}))})}listenToSummarizedRecordChanges(){this.recordsFacadeService.summarizedRecord$.pipe(z(this),Ft(1)).subscribe(i=>{this.summarizedRecord=i,this.lastRunAccuracyTestingChartData=this.configureChartDataset(i);let e=this.summarizedRecord?.statistics.algorithm_key,t=this.summarizedRecord?.parameters.arch;!ut(e)&&!ut(t)&&this.runNameFormControl.setValue(`${e}_${t}`),this.savePanelStates(),this.restorePanelStates()})}configureChartDataset(i){return[{datasetIndex:0,values:i.lastRunTestingAccuracyData||[]}]}loadData(){this.recordsFacadeService.dispatch(Yt.getRunRecordsFilenames({algorithmType:this.recordsDataService.algorithmType})),this.recordsFacadeService.filenames$.pipe(Ft(1),pe(1)).subscribe(i=>{let e=new Set(this.recordsDataService.records.map(t=>t.recordFilename));this.files=i.map(t=>({name:t,disabled:e.has(t)}))})}initForm(){let i=this.getDefaultChartColors();this.form=this.fb.group({selectRun:[null,Te.required],runName:[null,Te.required],chart:this.fb.group({borderColor:[i.borderColor,Te.required],backgroundColor:[i.backgroundColor,Te.required]})})}getDefaultChartColors(){let i=Math.max(this.recordsDataService.records.length,0),e=_n[vt.YELLOW].datasetColors[i];return{borderColor:e.borderColor,backgroundColor:e.backgroundColor}}save(i){if(i!==ye.SAVE)return;let{backgroundColor:e,borderColor:t}=this.form.get("chart")?.getRawValue();this.drawerRef.close({result:{recordName:this.runNameFormControl.value,recordFilename:this.selectRunFormControl.value,record:this.summarizedRecord,chartColors:{backgroundColor:e,borderColor:t}},status:i})}close(){this.drawerRef.close()}savePanelStates(){this.panels.forEach((i,e)=>{this.panelStates[e]=i.expanded})}restorePanelStates(){this.panels.forEach((i,e)=>{this.panelStates[e]!==void 0&&(i.expanded=this.panelStates[e])})}},ae.\u0275fac=function(e){return new(e||ae)(m(fn),m(un),m(dt),m(Dt),m(Y),m(bn))},ae.\u0275cmp=A({type:ae,selectors:[["ms-run-drawer-actions"]],viewQuery:function(e,t){if(e&1&&q(re,5),e&2){let o;H(o=L())&&(t.panels=o)}},decls:15,vars:8,consts:[["content",""],["noData",""],["noStatisticsData",""],["noModelTrainingDetailsData",""],["noParametersData",""],["noAccuracyData",""],[3,"actionEvent","isSaveDisabled"],[3,"formGroup"],[1,"form-field-container"],["appearance","outline"],["formControlName","selectRun","placeholder","Select a run record"],["disabled","",4,"ngIf"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["disabled",""],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],[1,"spinner-wrapper","mt-4"],["diameter","80"],[1,"form-field-container","mt-4"],["matInput","","formControlName","runName","placeholder","Set run name"],["multi",""],[3,"expandedChange","expanded"],[1,"paragraph-bold-p3-small-bold"],["class","key-value-container single",4,"ngFor","ngForOf"],[1,"key-value-container","single"],[1,"key-value-pair","space-between"],[1,"key-value-key"],[1,"key-value-value"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","pt-2",4,"ngIf"],[1,"pt-2"],[1,"no-data-container"],["controlKey","chart"],[3,"data","settings"],["title","Awaiting Run Record Selection","message","Select a run record from the dropdown to view details and statistics."]],template:function(e,t){if(e&1){let o=D();l(0,"ms-drawer",6),_("actionEvent",function(a){return C(o),v(t.save(a))}),l(1,"form",7)(2,"div",8)(3,"mat-label"),g(4,"Select run record"),c(),l(5,"mat-form-field",9)(6,"mat-select",10),u(7,Yo,2,1,"mat-option",11)(8,Wo,2,1,"ng-container",12),c()()(),u(9,Uo,3,0,"div",13),E(10,"async"),u(11,ur,1,2,"ng-template",null,0,ne),c()(),u(13,fr,1,0,"ng-template",null,1,ne)}if(e&2){let o=$(12);d("isSaveDisabled",t.form.invalid),s(),d("formGroup",t.form),s(6),d("ngIf",t.files.length===0),s(),d("ngIf",t.files.length>0),s(),d("ngIf",M(10,6,t.isSummarizedRecordLoading$))("ngIfElse",o)}},dependencies:[ee,oe,vi,xi,bi,_t,Ge,Ct,Bn,re,Fe,Ye,lt,ki,we,Be,ct,Ve,mt,pt,ft,rt,at,Ui,zi,zn,Oe,wi,yi,vn,bt,Cn,Ln],styles:[".spinner-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}"]}),ae);ke=de([be()],ke);function Cr(n,i){if(n&1){let e=D();l(0,"mat-card",3)(1,"div",4)(2,"div",5),g(3),c(),l(4,"div",6)(5,"button",7),_("click",function(){let o=C(e).$implicit,r=h(2);return v(r.viewRecord(o))}),f(6,"mat-icon",8),c(),l(7,"button",7),_("click",function(){let o=C(e),r=o.$implicit,a=o.index,p=h(2);return v(p.editRecord(a,r))}),f(8,"mat-icon",9),c(),l(9,"button",10),_("click",function(){let o=C(e).index,r=h(2);return v(r.removeRecord(o))}),l(10,"mat-icon",11),g(11,"delete"),c()()()()()}if(n&2){let e=i.$implicit;s(3),k(e.recordName)}}function vr(n,i){if(n&1&&(b(0),u(1,Cr,12,1,"mat-card",2),w()),n&2){let e=i.ngIf;s(),d("ngForOf",e)}}var Xn=(()=>{let i=class i{constructor(t,o){this.recordsDataService=t,this.drawerService=o}removeRecord(t){this.recordsDataService.removeRecord(t)}viewRecord(t){this.drawerService.open(ke,{title:"View Run",showSaveButton:!1,showCloseButton:!0,closeButtonLabel:"Close",actionType:G.VIEW,data:t})}editRecord(t,o){this.drawerService.open(ke,{title:"Edit Run",saveButtonLabel:"Update",showCloseButton:!0,closeButtonLabel:"Close",actionType:G.EDIT,data:o}).afterClosed().pipe(pe(1)).subscribe(a=>{let{status:p}=a;if(p===ye.DISMISS||p===ye.CLOSE)return;let{result:x}=a;Le(x)||this.recordsDataService.updateRecord(t,x)})}};i.\u0275fac=function(o){return new(o||i)(m(Y),m(je))},i.\u0275cmp=A({type:i,selectors:[["ms-algorithm-comparison-list"]],decls:3,vars:3,consts:[[1,"items-wrapper"],[4,"ngIf"],["class","ms-card comparison-item",4,"ngFor","ngForOf"],[1,"ms-card","comparison-item"],[1,"item-wrapper"],["msUseEllipsis",""],[1,"record-summary-buttons-wrapper"],["mat-icon-button","","color","primary",3,"click"],["fontSet","ms","fontIcon","icon-Eye",1,"mat-primary"],["fontSet","ms","fontIcon","icon-PencilSimple",1,"mat-primary"],["mat-icon-button","","color","error",3,"click"],[1,"mat-error"]],template:function(o,r){o&1&&(l(0,"div",0),u(1,vr,2,1,"ng-container",1),E(2,"async"),c()),o&2&&(s(),d("ngIf",M(2,1,r.recordsDataService.records$)))},dependencies:[ee,oe,Mn,He,qi,Vi,Oe],styles:[".items-wrapper[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));grid-gap:20px;padding:20px 0}.items-wrapper[_ngcontent-%COMP%] .ms-card[_ngcontent-%COMP%]:hover{box-shadow:0 8px 16px #0003}.items-wrapper[_ngcontent-%COMP%] .comparison-item[_ngcontent-%COMP%] .item-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.items-wrapper[_ngcontent-%COMP%] .comparison-item[_ngcontent-%COMP%] .item-wrapper[_ngcontent-%COMP%] .record-summary-buttons-wrapper[_ngcontent-%COMP%]{display:flex}"]});let n=i;return n})();var se,Et=(se=class{constructor(i,e){this.recordsDataService=i,this.chartToolsGlobalSignalsService=e,this.testingAccuracyChartDisplaySettings={yAxisMinimumValue:0,yAxisMaximumValue:100,yAxisTickInterval:20,chartDataStructure:xt.SINGLE_PHASE_X_AXIS,datasetColorSettingsKey:vt.YELLOW,isXAxisVisible:!0,xAxisLabelPrefix:"Step:",zoomRangeLimits:{min:0,max:100},isXAxisDynamic:!0,hasCustomDatasetsLabels:!0},this.lastRunsAccuracyTestingChartData=[],this.enableTooltips=!1,this.enableZoom=!1}ngOnInit(){this.listenToRecordsChanges(),this.subscribeToChartToolsSignals()}listenToRecordsChanges(){this.recordsDataService.records$.pipe(z(this)).subscribe(i=>{Gt(i)||(this.lastRunsAccuracyTestingChartData=this.configureChartDatasets(i),this.testingAccuracyChartDisplaySettings=We(Ee({},this.testingAccuracyChartDisplaySettings),{customDatasetsLabels:i.map(e=>e.recordName),xAxisDataPointsCount:i[0].record.lastRunTestingAccuracyData.length,isChartWithCustomColorSettings:!0,customChartColors:{datasetColors:i.map(e=>e.chartColors)}}))})}subscribeToChartToolsSignals(){this.chartToolsGlobalSignalsService.toggleTooltips$.pipe(z(this)).subscribe(i=>{this.enableTooltips=i}),this.chartToolsGlobalSignalsService.toggleZoom$.pipe(z(this)).subscribe(i=>{this.enableZoom=i})}configureChartDatasets(i){let e=[];return i.forEach((t,o)=>{let{record:r}=t;e.push({datasetIndex:o,values:r.lastRunTestingAccuracyData||[]})}),e}toggleTooltip(i){this.chartToolsGlobalSignalsService.toggleTooltips=i.checked}toggleZoom(i){this.chartToolsGlobalSignalsService.toggleZoom=i.checked}},se.\u0275fac=function(e){return new(e||se)(m(Y),m(ze))},se.\u0275cmp=A({type:se,selectors:[["ms-algorithm-comparison-chart"]],decls:14,vars:4,consts:[["expanded","true"],[1,"paragraph-bold-p3-small-bold"],[1,"mt-2","flex"],["color","primary",3,"ngModelChange","change","ngModel"],[1,"flex"],["color","primary",1,"ml-2",3,"ngModelChange","change","ngModel"],[1,"ml-1"],["fontSet","ms","fontIcon","icon-Info","matTooltip","Use mouse wheel or touchpad pinch to zoom in/out. Drag to select an area for specific zoom, or use touchpad gestures to navigate."],[3,"data","settings"]],template:function(e,t){e&1&&(l(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title",1),g(3," Last Accuracy Test Run "),c()(),l(4,"div",2)(5,"div")(6,"mat-slide-toggle",3),xe("ngModelChange",function(r){return ve(t.enableTooltips,r)||(t.enableTooltips=r),r}),_("change",function(r){return t.toggleTooltip(r)}),g(7," Enable tooltips "),c()(),l(8,"div",4)(9,"mat-slide-toggle",5),xe("ngModelChange",function(r){return ve(t.enableZoom,r)||(t.enableZoom=r),r}),_("change",function(r){return t.toggleZoom(r)}),g(10," Enable zoom "),c(),l(11,"div",6),f(12,"mat-icon",7),c()()(),f(13,"ms-line-chart",8),c()),e&2&&(s(6),Ce("ngModel",t.enableTooltips),s(3),Ce("ngModel",t.enableZoom),s(4),d("data",t.lastRunsAccuracyTestingChartData)("settings",t.testingAccuracyChartDisplaySettings))},dependencies:[Ge,re,Fe,Ye,we,Ii,He,en]}),se);Et=de([be()],Et);var wr=new he("MAT_SORT_DEFAULT_OPTIONS"),Wn=(()=>{let i=class i{get direction(){return this._direction}set direction(t){this._direction=t}constructor(t){this._defaultOptions=t,this._initializedStream=new ei(1),this.sortables=new Map,this._stateChanges=new Ae,this.start="asc",this._direction="",this.disabled=!1,this.sortChange=new S,this.initialized=this._initializedStream}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let o=t?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,r=yr(t.start||this.start,o),a=r.indexOf(this.direction)+1;return a>=r.length&&(a=0),r[a]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}};i.\u0275fac=function(o){return new(o||i)(m(wr,8))},i.\u0275dir=F({type:i,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",J],disabled:[2,"matSortDisabled","disabled",J]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],standalone:!0,features:[ie,ue]});let n=i;return n})();function yr(n,i){let e=["asc","desc"];return n=="desc"&&e.reverse(),i||e.push(""),e}var zs=Ti.ENTERING+" "+Mi.STANDARD_CURVE;function Sr(n,i){n&1&&(l(0,"th",10),g(1,"Record Name"),c())}function Dr(n,i){if(n&1&&(l(0,"td",11),g(1),c()),n&2){let e=i.$implicit;s(),k(e.recordName)}}function Er(n,i){if(n&1&&(l(0,"th",10),g(1),E(2,"parametersLabel"),c()),n&2){let e=h().$implicit;s(),T(" ",M(2,1,e)," ")}}function Ar(n,i){if(n&1&&(l(0,"td",11),g(1),E(2,"emptyTableField"),c()),n&2){let e=i.$implicit,t=h().$implicit;s(),T(" ",M(2,1,e[t])," ")}}function Mr(n,i){if(n&1&&(b(0,12),u(1,Er,3,3,"th",5)(2,Ar,3,3,"td",6),w()),n&2){let e=i.$implicit;d("matColumnDef",e)}}function Tr(n,i){n&1&&f(0,"tr",13)}function Pr(n,i){n&1&&f(0,"tr",14)}var le,At=(le=class{constructor(i){this.recordsDataService=i,this.dataSource=new gn,this.displayedColumns=[]}ngOnInit(){this.recordsDataService.records$.pipe(z(this)).subscribe(i=>{this.updateDisplayedColumns(i),this.updateDataSource(i)})}ngAfterViewInit(){Le(this.sort)||setTimeout(()=>{this.dataSource.sort=this.sort},1200)}updateDisplayedColumns(i){let e=new Set;i.forEach(t=>{Object.keys(t.record.parameters).forEach(o=>{o!=="save_dir"&&o!=="data"&&e.add(o)})}),this.displayedColumns=["recordName",...Array.from(e)]}updateDataSource(i){let e=i.map(t=>{let o=t.record.parameters;return Ee({recordName:t.recordName},o)});this.dataSource.data=e}},le.\u0275fac=function(e){return new(e||le)(m(Y))},le.\u0275cmp=A({type:le,selectors:[["ms-algorithm-comparison-table"]],viewQuery:function(e,t){if(e&1&&q(Wn,5),e&2){let o;H(o=L())&&(t.sort=o.first)}},decls:12,vars:4,consts:[["expanded","true"],[1,"paragraph-bold-p3-small-bold"],[1,"table-container"],["mat-table","","matSort","",1,"mat-table",3,"dataSource"],["matColumnDef","recordName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],[3,"matColumnDef",4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","hover-highlight",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"matColumnDef"],["mat-header-row",""],["mat-row","",1,"hover-highlight"]],template:function(e,t){e&1&&(l(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title",1),g(3," Parameters "),c()(),l(4,"div",2)(5,"table",3),b(6,4),u(7,Sr,2,0,"th",5)(8,Dr,2,1,"td",6),w(),u(9,Mr,3,1,"ng-container",7)(10,Tr,1,0,"tr",8)(11,Pr,1,0,"tr",9),c()()()),e&2&&(s(5),d("dataSource",t.dataSource),s(4),d("ngForOf",t.displayedColumns.slice(1)),s(),d("matHeaderRowDef",t.displayedColumns),s(),d("matRowDefColumns",t.displayedColumns))},dependencies:[ee,re,Fe,Ye,nn,rn,cn,an,on,dn,sn,ln,pn,mn,bt,Hn],styles:[".table-container[_ngcontent-%COMP%]{overflow:auto}.hover-highlight[_ngcontent-%COMP%]:hover{background-color:var(--backgrounds-80)}.mat-column-disable_8bit_head_stem[_ngcontent-%COMP%]{min-width:200px}.mat-column-workers[_ngcontent-%COMP%], .mat-column-n_bits_w[_ngcontent-%COMP%], .mat-column-channel_wise[_ngcontent-%COMP%], .mat-column-n_bits_a[_ngcontent-%COMP%]{min-width:160px}.mat-column-act_quant[_ngcontent-%COMP%]{min-width:180px}.mat-column-num_samples[_ngcontent-%COMP%], .mat-column-iters_w[_ngcontent-%COMP%]{min-width:160px}.mat-column-keep_cpu[_ngcontent-%COMP%], .mat-column-awq[_ngcontent-%COMP%]{min-width:180px}.mat-column-aaq[_ngcontent-%COMP%], .mat-column-init_wmode[_ngcontent-%COMP%], .mat-column-init_amode[_ngcontent-%COMP%]{min-width:200px}.mat-column-num_indexes_to_replace[_ngcontent-%COMP%]{min-width:185px}.mat-column-unlearn_lr[_ngcontent-%COMP%], .mat-column-alpha[_ngcontent-%COMP%], .mat-column-unlearn_epochs[_ngcontent-%COMP%], .mat-column-train_seed[_ngcontent-%COMP%], .mat-column-class_to_replace[_ngcontent-%COMP%], .mat-column-indexes_to_replace[_ngcontent-%COMP%], .mat-column-no_aug[_ngcontent-%COMP%]{min-width:200px}.mat-column-imagenet_arch[_ngcontent-%COMP%]{min-width:220px}.mat-column-num_workers[_ngcontent-%COMP%]{min-width:180px}"]}),le);At=de([be()],At);function kr(n,i){if(n&1&&(l(0,"mat-option",13),g(1),c()),n&2){let e=i.$implicit;d("value",e.key),s(),T(" ",e.value," ")}}function Ir(n,i){n&1&&(b(0),f(1,"ms-algorithm-comparison-list"),l(2,"div",8),f(3,"mat-divider"),c(),f(4,"ms-algorithm-comparison-table"),l(5,"div",8),f(6,"mat-divider"),c(),f(7,"ms-algorithm-comparison-chart"),w())}function Or(n,i){n&1&&(l(0,"div",14),f(1,"ms-empty-state",15),c())}var ce,Mt=(ce=class{get algorithmTypeFormControl(){return this.form.get(this.ALGORITHM_TYPE_CONTROL_NAME)}constructor(i,e,t){this.drawerService=i,this.recordsDataService=e,this.fb=t,this.form=new st({}),this.algorithmTypesOptions=[{key:B.QUANTIZATION,value:"Quantization"},{key:B.PRUNING,value:"Pruning"},{key:B.MACHINE_UNLEARNING,value:"Machine Unlearning"}],this.ALGORITHM_TYPE_CONTROL_NAME="algorithmType"}openAddRunDrawer(){this.drawerService.open(ke,{title:"Add Run",saveButtonLabel:"Add",showCloseButton:!0,closeButtonLabel:"Close",actionType:G.ADD}).afterClosed().pipe(pe(1)).subscribe(e=>{let{status:t}=e;if(t===ye.DISMISS||t===ye.CLOSE)return;let{result:o}=e;this.recordsDataService.addRecord(o)})}ngOnInit(){this.initForm(),this.listenToAlgorithmTypeChanges()}initForm(){this.form=this.fb.group({[this.ALGORITHM_TYPE_CONTROL_NAME]:[this.recordsDataService.algorithmType,Te.required]})}listenToAlgorithmTypeChanges(){this.algorithmTypeFormControl.valueChanges.pipe(z(this)).subscribe(i=>{this.recordsDataService.algorithmType=i})}trackByAlgorithmType(i,e){return e.key}},ce.\u0275fac=function(e){return new(e||ce)(m(je),m(Y),m(dt))},ce.\u0275cmp=A({type:ce,selectors:[["ms-algorithm-comparison"]],decls:19,vars:8,consts:[["noData",""],[1,"title-wrapper"],[1,"heading-primary-title","title"],[1,"ml-2",3,"formGroup"],[1,"form-field-container","w-56","mt-2"],["appearance","outline"],["placeholder","Select a run record",3,"formControlName"],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],[1,"mt-4","mb-4"],["mat-stroked-button","","color","primary",3,"click"],["fontSet","ms","fontIcon","icon-Plus"],[1,"mt-4"],[4,"ngIf","ngIfElse"],[3,"value"],[1,"no-data-wrapper"],["title","No data selected"]],template:function(e,t){if(e&1){let o=D();l(0,"div",1)(1,"p",2),g(2,"Algorithm Comparison for"),c(),l(3,"form",3)(4,"div",4)(5,"mat-form-field",5)(6,"mat-select",6),u(7,kr,2,2,"mat-option",7),c()()()()(),l(8,"div",8),f(9,"mat-divider"),c(),l(10,"button",9),_("click",function(){return C(o),v(t.openAddRunDrawer())}),f(11,"mat-icon",10),g(12,` Add run +`),c(),l(13,"div",11),f(14,"mat-divider"),c(),u(15,Ir,8,0,"ng-container",12),E(16,"async"),u(17,Or,2,0,"ng-template",null,0,ne)}if(e&2){let o=$(18);s(3),d("formGroup",t.form),s(3),d("formControlName",t.ALGORITHM_TYPE_CONTROL_NAME),s(),d("ngForOf",t.algorithmTypesOptions)("ngForTrackBy",t.trackByAlgorithmType),s(8),d("ngIf",M(16,6,t.recordsDataService.records$).length>0)("ngIfElse",o)}},dependencies:[ee,oe,Ct,lt,we,Be,ct,Ve,mt,ft,rt,at,He,Bi,Xn,Et,At,Oe],styles:[".no-data-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.title-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center}"]}),ce);Mt=de([be()],Mt);var Rr=[{path:"",component:Mt}],Un=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=U({type:i}),i.\u0275inj=W({imports:[Ht.forChild(Rr),Ht]});let n=i;return n})();var nc=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=U({type:i}),i.\u0275inj=W({providers:[je,Dt,Y,ze],imports:[ot,Un,_t,An,Ge,Vn,Ri,Ni,Li,Ji,Pi,$i,ji,Zi,hn,tn,Hi,Gi]});let n=i;return n})();export{nc as AlgorithmComparisonModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-GRXBCACP.js b/frontend/server/modelsmith-build/browser/chunk-GRXBCACP.js deleted file mode 100644 index 3a0d2572..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-GRXBCACP.js +++ /dev/null @@ -1 +0,0 @@ -import{a as d}from"./chunk-7HZCFN6L.js";import"./chunk-OWZJXMSU.js";import{a as f}from"./chunk-VN6ZKIV6.js";import"./chunk-4KWEJN4U.js";import"./chunk-NO2PD4LU.js";import{b as q}from"./chunk-MPLQ54VQ.js";import{Aa as P,Ca as I,Cc as V,Cd as B,Da as N,Fd as y,Ja as O,Ka as j,La as D,Md as W,Na as S,P as p,T as F,U as l,Z as A,Zb as C,_ as T,a as h,b,ja as m,ka as g,m as w,oc as L,pb as G,rd as _,sa as a,sd as Q,uc as R,ud as k,wa as s,wd as M,xa as c,ya as v,za as E,zc as U}from"./chunk-AIAH5BT5.js";var Z=["panelParameters"],r,u=(r=class{constructor(t,i){this.fb=t,this.scriptFacadeService=i,this.AlgorithmType=B,this.MultiflowAlgorithmsEnum=y,this.isScriptActive=!1}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}initForm(){this.form=this.fb.group({algorithm:this.fb.group({alg:[]})}),setTimeout(()=>{this.form.get("algorithm.alg")?.setValue(y.MULTIFLOW_PRUNE)},0)}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(Q(this)).subscribe(t=>{this.isScriptActive=M(t),M(t)?this.form.disable():this.form.enable()})}submit(){if(this.isScriptActive)return;let{algorithm:t}=this.form.getRawValue(),i=b(h({},t),{params:h({},this.panelParametersComponent.parametersFormatted)});this.scriptFacadeService.dispatch(k.callScript({configs:i}))}},r.\u0275fac=function(i){return new(i||r)(g(U),g(W))},r.\u0275cmp=F({type:r,selectors:[["ms-multi-modal"]],viewQuery:function(i,e){if(i&1&&O(Z,5),i&2){let o;j(o=D())&&(e.panelParametersComponent=o.first)}},decls:12,vars:4,consts:[["panelParameters",""],[1,"heading-primary-title","title"],[1,"page-wrapper",3,"formGroup"],[1,"left"],[3,"formGroup"],["controlKey","params",3,"algorithm"],["mat-raised-button","","color","primary",3,"click","disabled"],[1,"right"]],template:function(i,e){if(i&1){let o=I();s(0,"p",1),S(1,"Multi-modal"),c(),s(2,"div",2)(3,"div",3),E(4,4),v(5,"ms-panel-parameters",5,0),P(),s(7,"div")(8,"button",6),N("click",function(){return A(o),T(e.submit())}),S(9," Run "),c()()(),s(10,"div",7),v(11,"ms-terminal"),c()()}i&2&&(m(2),a("formGroup",e.form),m(2),a("formGroup",e.form),m(),a("algorithm",e.MultiflowAlgorithmsEnum.MULTIFLOW_PRUNE),m(3),a("disabled",e.isScriptActive||e.form.invalid))},dependencies:[V,L,R,d,f],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),r);u=w([_()],u);var $=[{path:"",component:u}],K=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[C.forChild($),C]});let n=t;return n})();var St=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[G,q,d,f,K]});let n=t;return n})();export{St as MultiModalModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-GSC3HYC7.js b/frontend/server/modelsmith-build/browser/chunk-GSC3HYC7.js new file mode 100644 index 00000000..c5cbcaf8 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-GSC3HYC7.js @@ -0,0 +1 @@ +import{$ as z,Ab as K,Ba as j,Bb as Z,Ea as x,Fa as l,Ka as q,Kd as E,Lb as G,Nb as k,Ob as Y,Od as T,Pa as U,Ra as C,Sa as u,Ua as I,Wa as N,Z as w,Zd as $,_d as J,aa as D,ab as r,ae as W,bb as d,cb as _,gb as S,ha as R,hb as B,ia as F,jb as p,mb as X,nb as Q,oa as M,pa as h,qa as s,qb as f,ra as O,rb as g,sa as V,sb as v,tb as H,ua as L,xa as P,ya as y}from"./chunk-NPZHNGVX.js";var ie=["input"],oe=["label"],ne=["*"],ae=new D("mat-checkbox-default-options",{providedIn:"root",factory:ce});function ce(){return{color:"accent",clickAction:"check-indeterminate"}}var n=function(i){return i[i.Init=0]="Init",i[i.Checked=1]="Checked",i[i.Unchecked=2]="Unchecked",i[i.Indeterminate=3]="Indeterminate",i}(n||{}),re={provide:J,useExisting:w(()=>te),multi:!0},A=class{},de=0,ee=ce(),te=(()=>{let a=class a{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let t=new A;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,t,c,o,m,b){this._elementRef=e,this._changeDetectorRef=t,this._ngZone=c,this._animationMode=m,this._options=b,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=n.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||ee,this.color=this._options.color||ee.color,this.tabIndex=parseInt(o)||0,this.id=this._uniqueId=`mat-mdc-checkbox-${++de}`}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 t=e!=this._indeterminate;this._indeterminate=e,t&&(this._indeterminate?this._transitionCheckState(n.Indeterminate):this._transitionCheckState(this.checked?n.Checked:n.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 t=this._currentCheckState,c=this._getAnimationTargetElement();if(!(t===e||!c)&&(this._currentAnimationClass&&c.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){c.classList.add(this._currentAnimationClass);let o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{c.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?n.Checked:n.Unchecked),this._emitChangeEvent()):!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,t){if(this._animationMode==="NoopAnimations")return"";switch(e){case n.Init:if(t===n.Checked)return this._animationClasses.uncheckedToChecked;if(t==n.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case n.Unchecked:return t===n.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case n.Checked:return t===n.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case n.Indeterminate:return t===n.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let t=this._inputElement;t&&(t.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()}};a.\u0275fac=function(t){return new(t||a)(l(P),l(G),l(q),L("tabindex"),l(j,8),l(ae,8))},a.\u0275cmp=R({type:a,selectors:[["mat-checkbox"]],viewQuery:function(t,c){if(t&1&&(f(ie,5),f(oe,5),f(T,5)),t&2){let o;g(o=v())&&(c._inputElement=o.first),g(o=v())&&(c._labelElement=o.first),g(o=v())&&(c.ripple=o.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(t,c){t&2&&(B("id",c.id),C("tabindex",null)("aria-label",null)("aria-labelledby",null),N(c.color?"mat-"+c.color:"mat-accent"),I("_mat-animation-noopable",c._animationMode==="NoopAnimations")("mdc-checkbox--disabled",c.disabled)("mat-mdc-checkbox-disabled",c.disabled)("mat-mdc-checkbox-checked",c.checked))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],id:"id",required:[2,"required","required",k],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",k],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:Y(e)],color:"color",checked:[2,"checked","checked",k],disabled:[2,"disabled","disabled",k],indeterminate:[2,"indeterminate","indeterminate",k]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[K([re,{provide:W,useExisting:a,multi:!0}]),U,M,Z],ngContentSelectors:ne,decls:15,vars:19,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(t,c){if(t&1){let o=S();X(),r(0,"div",3),p("click",function(b){return h(o),s(c._preventBubblingFromLabel(b))}),r(1,"div",4,0)(3,"div",5),p("click",function(){return h(o),s(c._onTouchTargetClick())}),d(),r(4,"input",6,1),p("blur",function(){return h(o),s(c._onBlur())})("click",function(){return h(o),s(c._onInputClick())})("change",function(b){return h(o),s(c._onInteractionEvent(b))}),d(),_(6,"div",7),r(7,"div",8),O(),r(8,"svg",9),_(9,"path",10),d(),V(),_(10,"div",11),d(),_(11,"div",12),d(),r(12,"label",13,2),Q(14),d()()}if(t&2){let o=H(2);u("labelPosition",c.labelPosition),x(4),I("mdc-checkbox--selected",c.checked),u("checked",c.checked)("indeterminate",c.indeterminate)("disabled",c.disabled)("id",c.inputId)("required",c.required)("tabIndex",c.disabled?-1:c.tabIndex),C("aria-label",c.ariaLabel||null)("aria-labelledby",c.ariaLabelledby)("aria-describedby",c.ariaDescribedby)("aria-checked",c.indeterminate?"mixed":null)("name",c.name)("value",c.value),x(7),u("matRippleTrigger",o)("matRippleDisabled",c.disableRipple||c.disabled)("matRippleCentered",!0),x(),u("for",c.inputId)}},dependencies:[T,$],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);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.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)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.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)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.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)}.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}.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);border-color:var(--mdc-checkbox-unselected-icon-color);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);background-color:var(--mdc-checkbox-selected-icon-color)}.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);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);background-color:var(--mdc-checkbox-selected-hover-icon-color)}.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)}.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);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.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)}.mdc-checkbox--disabled .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.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)}.cdk-high-contrast-active .mdc-checkbox__mixedmark{margin:0 1px}.mdc-checkbox--disabled .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.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 .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color);font-family:var(--mat-checkbox-label-text-font);line-height:var(--mat-checkbox-label-text-line-height);font-size:var(--mat-checkbox-label-text-size);letter-spacing:var(--mat-checkbox-label-text-tracking);font-weight:var(--mat-checkbox-label-text-weight)}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color)}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-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});let i=a;return i})();var we=(()=>{let a=class a{};a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=F({type:a}),a.\u0275inj=z({imports:[te,E,E]});let i=a;return i})();export{te as a,we as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-GU66N7RS.js b/frontend/server/modelsmith-build/browser/chunk-GU66N7RS.js new file mode 100644 index 00000000..6d6ab599 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-GU66N7RS.js @@ -0,0 +1 @@ +import{a as x,b,c as f}from"./chunk-NG4KGRDN.js";import{a as G}from"./chunk-V6EH3YHO.js";import{a as u}from"./chunk-7IMKJ6YK.js";import"./chunk-URO2J7UO.js";import{a as V,b as B}from"./chunk-GSC3HYC7.js";import"./chunk-VUPIOU6P.js";import"./chunk-PP7DOJYP.js";import{a as I}from"./chunk-NT2MTW7W.js";import"./chunk-HG2O7P4S.js";import{$ as d,Ea as y,Fa as l,Fb as F,Gb as P,Ie as j,_b as T,ab as r,bb as m,bc as D,cb as a,dd as C,gb as S,ha as w,ia as p,jb as g,oc as R,pa as M,qa as h,qb as k,rb as E,sb as O,sc as v,ub as s,ue as A,wb as _,xe as N}from"./chunk-NPZHNGVX.js";var U=["configureDefaultMode"],H=(()=>{let e=class e{constructor(i,t,c){this.authFacadeService=i,this.configFacadeService=t,this.router=c}setModeAndNavigate(i){let t=this.defaultModeCheckbox.checked?i:void 0;this.configFacadeService.dispatch(x.setDefaultMode({mode:t})),this.configFacadeService.dispatch(x.setCurrentMode({mode:t}))}goToExpertMode(){this.setModeAndNavigate(b.EXPERT),this.router.navigate([C.MODEL_COMPRESSION.ROOT])}goToGuidedMode(){this.setModeAndNavigate(b.GUIDED),this.router.navigate([C.WIZARD.ROOT])}};e.\u0275fac=function(t){return new(t||e)(l(j),l(I),l(R))},e.\u0275cmp=w({type:e,selectors:[["ms-mode-select"]],viewQuery:function(t,c){if(t&1&&k(U,5),t&2){let n;E(n=O())&&(c.defaultModeCheckbox=n.first)}},decls:24,vars:3,consts:[["configureDefaultMode",""],[1,"mode-select-wrapper"],[1,"mode-select-warpper-content"],[1,"text"],[1,"paragraph-semibold-p1-xlarge-emphasis","block","text-white"],[1,"mode-select-buttons","mt-20"],[1,"nav-type-button"],["mat-stroked-button","",1,"ms-white-stroked-button",3,"click"],[1,"nav-type-button","mt-10"],[1,"mt-3","ml-[-8px]"],["color","primary","checked","",1,"ms-checkbox-white"],["styleMode","fullWidth"]],template:function(t,c){if(t&1){let n=S();r(0,"ms-background-gradient"),a(1,"ms-header"),r(2,"div",1),a(3,"div"),r(4,"div",2)(5,"div",3)(6,"span",4),s(7),F(8,"async"),m(),r(9,"span",4),s(10,"Welcome to ModelSmith. Please select a mode to start:"),m(),r(11,"div",5)(12,"div",6)(13,"button",7),g("click",function(){return M(n),h(c.goToExpertMode())}),s(14,"Expert Mode"),m()(),r(15,"div",8)(16,"button",7),g("click",function(){return M(n),h(c.goToGuidedMode())}),s(17,"Guided Mode"),m()(),r(18,"div",9)(19,"mat-checkbox",10,0),s(21,"Remember my choice for the future "),m()()()()(),a(22,"div"),m(),a(23,"ms-footer",11),m()}if(t&2){let n;y(7),_("Hello ",(n=P(8,1,c.authFacadeService.user$))==null?null:n.name,"")}},dependencies:[G,u,f,V,A,T],styles:[".mode-select-wrapper[_ngcontent-%COMP%]{margin-left:80px}.mode-select-wrapper[_ngcontent-%COMP%] .mode-select-warpper-content[_ngcontent-%COMP%]{margin-top:80px}.mode-select-wrapper[_ngcontent-%COMP%] .mode-select-warpper-content[_ngcontent-%COMP%] .mode-select-buttons[_ngcontent-%COMP%] .nav-type-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:400px}"]});let o=e;return o})();var q=[{path:"",component:H}],L=(()=>{let e=class e{};e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=p({type:e}),e.\u0275inj=d({imports:[v.forChild(q),v]});let o=e;return o})();var Ce=(()=>{let e=class e{};e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=p({type:e}),e.\u0275inj=d({imports:[L,D,u,f,B,N]});let o=e;return o})();export{Ce as ModeSelectModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-H5CB7PWT.js b/frontend/server/modelsmith-build/browser/chunk-H5CB7PWT.js deleted file mode 100644 index 439fcd6d..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-H5CB7PWT.js +++ /dev/null @@ -1 +0,0 @@ -import{$a as P,Aa as k,Ba as y,Ca as C,Cc as J,Da as u,Ea as l,Ec as Q,Fa as W,Fc as Y,Ga as F,Hc as Z,Ic as $,Ma as S,Na as h,O as R,Oa as N,Pa as E,Q as A,R as D,T as V,Ua as z,Z as f,_,a as b,ca as w,fa as L,gb as X,h as j,ha as H,ja as i,jd as ee,ka as M,lb as q,m as B,md as te,pb as G,qa as g,rd as ne,sa as p,sd as oe,ta as K,wa as a,xa as s,ya as U,za as O}from"./chunk-AIAH5BT5.js";var v=new A("DRAWER_DATA");var d=function(e){return e.OPEN="open",e.DISMISS="dismiss",e.SAVE="save",e.CLOSE="close",e}(d||{});var m=class{constructor(n){this.overlayRef=n,this.afterClosedSubject=new j}backdropClick(){return this.overlayRef.backdropClick()}close(n){this.overlayRef.dispose(),this.afterClosedSubject.next(n),this.afterClosedSubject.complete()}afterClosed(){return this.afterClosedSubject.asObservable()}};var le=["*"];function pe(e,n){e&1&&y(0)}function de(e,n){if(e&1){let t=C();a(0,"div",7)(1,"div",8),h(2),s(),a(3,"div",9)(4,"button",10),u("click",function(){f(t);let o=l();return _(o.onDismiss())}),U(5,"mat-icon",11),s()()()}if(e&2){let t=l();i(2),N(t.data.title)}}function me(e,n){e&1&&y(0)}function ue(e,n){if(e&1){let t=C();O(0),a(1,"button",14),u("click",function(){f(t);let o=l(2);return _(o.onClose())}),h(2),s(),k()}if(e&2){let t=l(2);i(),p("disabled",t.isDismissDisabled),i(),E(" ",t.data.closeButtonLabel," ")}}function fe(e,n){if(e&1){let t=C();O(0),a(1,"button",15),u("click",function(){f(t);let o=l(2);return _(o.onSave())}),h(2),s(),k()}if(e&2){let t=l(2);i(),p("disabled",t.isSaveDisabled),i(),E(" ",t.data.saveButtonLabel," ")}}function _e(e,n){if(e&1&&(a(0,"div",12),g(1,ue,3,2,"ng-container",13)(2,fe,3,2,"ng-container",13),s()),e&2){let t=l();i(),p("ngIf",t.data.showCloseButton),i(),p("ngIf",t.data.showSaveButton)}}var c,re=(c=class{constructor(n,t){this.drawerRef=n,this.data=t,this.isSaveDisabled=!1,this.isDismissDisabled=!1,this.closeDialogOnBackdropClick=!0,this.closeDialogOnEscKeyUp=!0,this.actionEvent=new L,this.closeDrawerOnBackdropClick()}onClose(){this.actionEvent.emit(d.CLOSE),this.drawerRef.close({status:d.CLOSE})}onSave(){this.actionEvent.emit(d.SAVE)}onDismiss(){this.actionEvent.emit(d.DISMISS),this.drawerRef.close({status:d.DISMISS})}closeDrawerOnBackdropClick(){this.closeDialogOnBackdropClick&&this.drawerRef.backdropClick().pipe(oe(this)).subscribe(()=>{this.onDismiss()})}onEscKeyDown(){this.closeDialogOnEscKeyUp&&this.onDismiss()}},c.\u0275fac=function(t){return new(t||c)(M(m),M(v))},c.\u0275cmp=V({type:c,selectors:[["ms-drawer"]],hostBindings:function(t,r){t&1&&u("keyup.esc",function(){return r.onEscKeyDown()},!1,H)},inputs:{headerTemplate:"headerTemplate",actionsTemplate:"actionsTemplate",isSaveDisabled:"isSaveDisabled",isDismissDisabled:"isDismissDisabled",closeDialogOnBackdropClick:"closeDialogOnBackdropClick",closeDialogOnEscKeyUp:"closeDialogOnEscKeyUp"},outputs:{actionEvent:"actionEvent"},standalone:!0,features:[z],ngContentSelectors:le,decls:11,vars:4,consts:[["defaultDrawerHeader",""],["defaultDrawerActions",""],[1,"drawer-wrapper"],[1,"drawer-header"],[4,"ngTemplateOutlet"],[1,"drawer-content"],[1,"drawer-actions"],[1,"drawer-header-wrapper"],[1,"heading-section-title"],[1,"close-icon"],["mat-icon-button","",3,"click"],["fontSet","ms","fontIcon","icon-X"],[1,"actions-wrapper"],[4,"ngIf"],["mat-stroked-button","",3,"click","disabled"],["mat-flat-button","","color","primary",3,"click","disabled"]],template:function(t,r){if(t&1&&(W(),a(0,"div",2)(1,"div",3),g(2,pe,1,0,"ng-container",4)(3,de,6,1,"ng-template",null,0,P),s(),a(5,"div",5),F(6),s(),a(7,"div",6),g(8,me,1,0,"ng-container",4)(9,_e,3,2,"ng-template",null,1,P),s()()),t&2){let o=S(4),x=S(10);K("width",r.data.width,"px"),i(2),p("ngTemplateOutlet",r.headerTemplate||o),i(6),p("ngTemplateOutlet",r.actionsTemplate||x)}},dependencies:[G,X,q,Y,J,Q,$,Z],styles:[".drawer-wrapper[_ngcontent-%COMP%]{width:inherit;height:100vh;box-shadow:0 0 4px 0 var(--backgrounds-700);display:flex;flex-direction:column}.drawer-wrapper[_ngcontent-%COMP%] .drawer-header[_ngcontent-%COMP%]{min-height:90px;background-color:var(--backgrounds-200);box-sizing:border-box;border-bottom:1px solid var(--backgrounds-500)}.drawer-wrapper[_ngcontent-%COMP%] .drawer-header-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:32px}.drawer-wrapper[_ngcontent-%COMP%] .drawer-header-wrapper[_ngcontent-%COMP%] .close-icon[_ngcontent-%COMP%] .icon-cancel[_ngcontent-%COMP%]{color:var(--foregrounds-100)!important}.drawer-wrapper[_ngcontent-%COMP%] .drawer-header-wrapper[_ngcontent-%COMP%] .close-icon[_ngcontent-%COMP%] .icon-cancel[_ngcontent-%COMP%]:hover{color:var(--foregrounds-300)!important}.drawer-wrapper[_ngcontent-%COMP%] .drawer-content[_ngcontent-%COMP%]{overflow-y:auto;background-color:var(--backgrounds-100);flex-grow:1;padding:32px}.drawer-wrapper[_ngcontent-%COMP%] .drawer-actions[_ngcontent-%COMP%]{background-color:var(--backgrounds-200);padding:20px 32px;box-sizing:border-box;border-top:1px solid var(--backgrounds-500)}.drawer-wrapper[_ngcontent-%COMP%] .drawer-actions[_ngcontent-%COMP%] .actions-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end}.drawer-wrapper[_ngcontent-%COMP%] .drawer-actions[_ngcontent-%COMP%] .actions-wrapper[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:20px}"]}),c);re=B([ne()],re);var Fe=(()=>{let n=class n{constructor(r,o){this.overlay=r,this.injector=o}open(r,o){let x=this.overlay.position().global().right(),I=this.overlay.create(b({positionStrategy:x,hasBackdrop:!0,backdropClass:"drawer-backdrop",height:"100vh",width:768},o)),T=new m(I),ie=w.create({parent:this.injector,providers:[{provide:m,useValue:T},{provide:v,useValue:b({saveButtonLabel:"Save",closeButtonLabel:"Close",showSaveButton:!0,showCloseButton:!0,width:768},o)}]}),ae=new ee(r,null,ie);return I.attach(ae),T}};n.\u0275fac=function(o){return new(o||n)(D(te),D(w))},n.\u0275prov=R({token:n,factory:n.\u0275fac});let e=n;return e})();export{v as a,d as b,m as c,re as d,Fe as e}; diff --git a/frontend/server/modelsmith-build/browser/chunk-HG2O7P4S.js b/frontend/server/modelsmith-build/browser/chunk-HG2O7P4S.js new file mode 100644 index 00000000..74196e21 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-HG2O7P4S.js @@ -0,0 +1,4 @@ +import{$ as W,Ab as O,Ac as ue,Ba as te,Bb as Y,Cc as pe,D as B,E as U,Ea as r,Fa as c,Gd as _e,Ib as ae,Ka as v,Kd as q,La as ie,Lb as re,P as $,Qa as u,Qb as ce,Ra as A,Sa as w,T,Ua as E,Ya as p,Zb as fe,_ as V,aa as z,ab as f,bb as m,bc as me,cb as L,da as C,fd as he,g as Q,gb as de,h as H,ha as S,hb as I,ia as Z,j as D,ja as g,jb as le,lb as _,ld as be,mb as P,nb as b,pa as G,pb as y,qa as K,qb as F,rb as s,sb as x,tb as N,td as ge,ua as J,ub as oe,va as ee,vb as ne,vc as se,wc as xe,xa as M,zc as j}from"./chunk-NPZHNGVX.js";var X=class{constructor(e){this._box=e,this._destroyed=new D,this._resizeSubject=new D,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(n=>this._resizeSubject.next(n)))}observe(e){return this._elementObservables.has(e)||this._elementObservables.set(e,new H(n=>{let t=this._resizeSubject.subscribe(n);return this._resizeObserver?.observe(e,{box:this._box}),()=>{this._resizeObserver?.unobserve(e),t.unsubscribe(),this._elementObservables.delete(e)}}).pipe(U(n=>n.some(t=>t.target===e)),$({bufferSize:1,refCount:!0}),T(this._destroyed))),this._elementObservables.get(e)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},ve=(()=>{let e=class e{constructor(){this._observers=new Map,this._ngZone=C(v),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,t]of this._observers)t.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(t,l){let d=l?.box||"content-box";return this._observers.has(d)||this._observers.set(d,new X(d)),this._observers.get(d).observe(t)}};e.\u0275fac=function(l){return new(l||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Pe=["notch"],Ne=["matFormFieldNotchedOutline",""],Ye=["*"],je=["textField"],qe=["iconPrefixContainer"],Xe=["textPrefixContainer"],Qe=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],He=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function Be(i,e){i&1&&L(0,"span",19)}function Ue(i,e){if(i&1&&(f(0,"label",18),b(1,1),u(2,Be,1,0,"span",19),m()),i&2){let n=_(2);w("floating",n._shouldLabelFloat())("monitorResize",n._hasOutline())("id",n._labelId),A("for",n._control.disableAutomaticLabeling?null:n._control.id),r(2),p(!n.hideRequiredMarker&&n._control.required?2:-1)}}function $e(i,e){if(i&1&&u(0,Ue,3,5,"label",18),i&2){let n=_();p(n._hasFloatingLabel()?0:-1)}}function Ve(i,e){i&1&&L(0,"div",5)}function We(i,e){}function Ze(i,e){if(i&1&&u(0,We,0,0,"ng-template",11),i&2){_(2);let n=N(1);w("ngTemplateOutlet",n)}}function Ge(i,e){if(i&1&&(f(0,"div",7),u(1,Ze,1,1,null,11),m()),i&2){let n=_();w("matFormFieldNotchedOutlineOpen",n._shouldLabelFloat()),r(),p(n._forceDisplayInfixLabel()?-1:1)}}function Ke(i,e){i&1&&(f(0,"div",8,2),b(2,2),m())}function Je(i,e){i&1&&(f(0,"div",9,3),b(2,3),m())}function et(i,e){}function tt(i,e){if(i&1&&u(0,et,0,0,"ng-template",11),i&2){_();let n=N(1);w("ngTemplateOutlet",n)}}function it(i,e){i&1&&(f(0,"div",12),b(1,4),m())}function dt(i,e){i&1&&(f(0,"div",13),b(1,5),m())}function lt(i,e){i&1&&L(0,"div",14)}function ot(i,e){if(i&1&&(f(0,"div",16),b(1,6),m()),i&2){let n=_();w("@transitionMessages",n._subscriptAnimationState)}}function nt(i,e){if(i&1&&(f(0,"mat-hint",20),oe(1),m()),i&2){let n=_(2);w("id",n._hintLabelId),r(),ne(n.hintLabel)}}function at(i,e){if(i&1&&(f(0,"div",17),u(1,nt,2,2,"mat-hint",20),b(2,7),L(3,"div",21),b(4,8),m()),i&2){let n=_();w("@transitionMessages",n._subscriptAnimationState),r(),p(n.hintLabel?1:-1)}}var we=(()=>{let e=class e{};e.\u0275fac=function(l){return new(l||e)},e.\u0275dir=g({type:e,selectors:[["mat-label"]],standalone:!0});let i=e;return i})(),rt=0,Te=new z("MatError"),Bt=(()=>{let e=class e{constructor(t,l){this.id=`mat-mdc-error-${rt++}`,t||l.nativeElement.setAttribute("aria-live","polite")}};e.\u0275fac=function(l){return new(l||e)(J("aria-live"),c(M))},e.\u0275dir=g({type:e,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(l,d){l&2&&I("id",d.id)},inputs:{id:"id"},standalone:!0,features:[O([{provide:Te,useExisting:e}])]});let i=e;return i})(),ct=0,ye=(()=>{let e=class e{constructor(){this.align="start",this.id=`mat-mdc-hint-${ct++}`}};e.\u0275fac=function(l){return new(l||e)},e.\u0275dir=g({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(l,d){l&2&&(I("id",d.id),A("align",null),E("mat-mdc-form-field-hint-end",d.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0});let i=e;return i})(),Oe=new z("MatPrefix"),Ut=(()=>{let e=class e{constructor(){this._isText=!1}set _isTextSelector(t){this._isText=!0}};e.\u0275fac=function(l){return new(l||e)},e.\u0275dir=g({type:e,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},standalone:!0,features:[O([{provide:Oe,useExisting:e}])]});let i=e;return i})(),ke=new z("MatSuffix"),$t=(()=>{let e=class e{constructor(){this._isText=!1}set _isTextSelector(t){this._isText=!0}};e.\u0275fac=function(l){return new(l||e)},e.\u0275dir=g({type:e,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[O([{provide:ke,useExisting:e}])]});let i=e;return i})(),Re=new z("FloatingLabelParent"),Fe=(()=>{let e=class e{get floating(){return this._floating}set floating(t){this._floating=t,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(t){this._monitorResize=t,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(t){this._elementRef=t,this._floating=!1,this._monitorResize=!1,this._resizeObserver=C(ve),this._ngZone=C(v),this._parent=C(Re),this._resizeSubscription=new Q}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return ft(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}};e.\u0275fac=function(l){return new(l||e)(c(M))},e.\u0275dir=g({type:e,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(l,d){l&2&&E("mdc-floating-label--float-above",d.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0});let i=e;return i})();function ft(i){let e=i;if(e.offsetParent!==null)return e.scrollWidth;let n=e.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);let t=n.scrollWidth;return n.remove(),t}var ze="mdc-line-ripple--active",k="mdc-line-ripple--deactivating",Ce=(()=>{let e=class e{constructor(t,l){this._elementRef=t,this._handleTransitionEnd=d=>{let o=this._elementRef.nativeElement.classList,a=o.contains(k);d.propertyName==="opacity"&&a&&o.remove(ze,k)},l.runOutsideAngular(()=>{t.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let t=this._elementRef.nativeElement.classList;t.remove(k),t.add(ze)}deactivate(){this._elementRef.nativeElement.classList.add(k)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}};e.\u0275fac=function(l){return new(l||e)(c(M),c(v))},e.\u0275dir=g({type:e,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0});let i=e;return i})(),Ee=(()=>{let e=class e{constructor(t,l){this._elementRef=t,this._ngZone=l,this.open=!1}ngAfterViewInit(){let t=this._elementRef.nativeElement.querySelector(".mdc-floating-label");t?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(t.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>t.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(t){!this.open||!t?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${t}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}};e.\u0275fac=function(l){return new(l||e)(c(M),c(v))},e.\u0275cmp=S({type:e,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(l,d){if(l&1&&F(Pe,5),l&2){let o;s(o=x())&&(d._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(l,d){l&2&&E("mdc-notched-outline--notched",d.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[Y],attrs:Ne,ngContentSelectors:Ye,decls:5,vars:0,consts:[["notch",""],[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(l,d){l&1&&(P(),L(0,"div",1),f(1,"div",2,0),b(3),m(),L(4,"div",3))},encapsulation:2,changeDetection:0});let i=e;return i})(),mt={transitionMessages:se("transitionMessages",[ue("enter",j({opacity:1,transform:"translateY(0%)"})),pe("void => enter",[j({opacity:0,transform:"translateY(-5px)"}),xe("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},st=(()=>{let e=class e{};e.\u0275fac=function(l){return new(l||e)},e.\u0275dir=g({type:e});let i=e;return i})();var xt=new z("MatFormField"),ut=new z("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Le=0,Me="fill",pt="auto",De="fixed",ht="translateY(-50%)",Vt=(()=>{let e=class e{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=he(t)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||pt}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(t){let l=this._appearance,d=t||this._defaults?.appearance||Me;this._appearance=d,this._appearance==="outline"&&this._appearance!==l&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||De}set subscriptSizing(t){this._subscriptSizing=t||this._defaults?.subscriptSizing||De}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(t){this._explicitFormFieldControl=t}constructor(t,l,d,o,a,h,R,Se){this._elementRef=t,this._changeDetectorRef=l,this._dir=o,this._platform=a,this._defaults=h,this._animationMode=R,this._hideRequiredMarker=!1,this.color="primary",this._appearance=Me,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${Le++}`,this._hintLabelId=`mat-mdc-hint-${Le++}`,this._subscriptAnimationState="",this._destroyed=new D,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._injector=C(ee),h&&(h.appearance&&(this.appearance=h.appearance),this._hideRequiredMarker=!!h?.hideRequiredMarker,h.color&&(this.color=h.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){let t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${t.controlType}`),t.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(T(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(t=>!t._isText),this._hasTextPrefix=!!this._prefixChildren.find(t=>t._isText),this._hasIconSuffix=!!this._suffixChildren.find(t=>!t._isText),this._hasTextSuffix=!!this._suffixChildren.find(t=>t._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),B(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),ie(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(T(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(t){let l=this._control?this._control.ngControl:null;return l&&l[t]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&t.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let l=this._hintChildren?this._hintChildren.find(o=>o.align==="start"):null,d=this._hintChildren?this._hintChildren.find(o=>o.align==="end"):null;l?t.push(l.id):this._hintLabel&&t.push(this._hintLabelId),d&&t.push(d.id)}else this._errorChildren&&t.push(...this._errorChildren.map(l=>l.id));this._control.setDescribedByIds(t)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let t=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){t.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let l=this._iconPrefixContainer?.nativeElement,d=this._textPrefixContainer?.nativeElement,o=l?.getBoundingClientRect().width??0,a=d?.getBoundingClientRect().width??0,h=this._dir.value==="rtl"?"-1":"1",R=`${o+a}px`,Ae=`calc(${h} * (${R} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;t.style.transform=`var( + --mat-mdc-form-field-label-transform, + ${ht} translateX(${Ae}) + )`}_isAttachedToDom(){let t=this._elementRef.nativeElement;if(t.getRootNode){let l=t.getRootNode();return l&&l!==t}return document.documentElement.contains(t)}};e.\u0275fac=function(l){return new(l||e)(c(M),c(re),c(v),c(_e),c(be),c(ut,8),c(te,8),c(ce))},e.\u0275cmp=S({type:e,selectors:[["mat-form-field"]],contentQueries:function(l,d,o){if(l&1&&(y(o,we,5),y(o,we,7),y(o,st,5),y(o,Oe,5),y(o,ke,5),y(o,Te,5),y(o,ye,5)),l&2){let a;s(a=x())&&(d._labelChildNonStatic=a.first),s(a=x())&&(d._labelChildStatic=a.first),s(a=x())&&(d._formFieldControl=a.first),s(a=x())&&(d._prefixChildren=a),s(a=x())&&(d._suffixChildren=a),s(a=x())&&(d._errorChildren=a),s(a=x())&&(d._hintChildren=a)}},viewQuery:function(l,d){if(l&1&&(F(je,5),F(qe,5),F(Xe,5),F(Fe,5),F(Ee,5),F(Ce,5)),l&2){let o;s(o=x())&&(d._textField=o.first),s(o=x())&&(d._iconPrefixContainer=o.first),s(o=x())&&(d._textPrefixContainer=o.first),s(o=x())&&(d._floatingLabel=o.first),s(o=x())&&(d._notchedOutline=o.first),s(o=x())&&(d._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(l,d){l&2&&E("mat-mdc-form-field-label-always-float",d._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",d._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",d._hasIconSuffix)("mat-form-field-invalid",d._control.errorState)("mat-form-field-disabled",d._control.disabled)("mat-form-field-autofilled",d._control.autofilled)("mat-form-field-no-animations",d._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",d.appearance=="fill")("mat-form-field-appearance-outline",d.appearance=="outline")("mat-form-field-hide-placeholder",d._hasFloatingLabel()&&!d._shouldLabelFloat())("mat-focused",d._control.focused)("mat-primary",d.color!=="accent"&&d.color!=="warn")("mat-accent",d.color==="accent")("mat-warn",d.color==="warn")("ng-untouched",d._shouldForward("untouched"))("ng-touched",d._shouldForward("touched"))("ng-pristine",d._shouldForward("pristine"))("ng-dirty",d._shouldForward("dirty"))("ng-valid",d._shouldForward("valid"))("ng-invalid",d._shouldForward("invalid"))("ng-pending",d._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[O([{provide:xt,useExisting:e},{provide:Re,useExisting:e}]),Y],ngContentSelectors:He,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],[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(l,d){if(l&1){let o=de();P(Qe),u(0,$e,1,1,"ng-template",null,0,ae),f(2,"div",4,1),le("click",function(h){return G(o),K(d._control.onContainerClick(h))}),u(4,Ve,1,0,"div",5),f(5,"div",6),u(6,Ge,2,2,"div",7)(7,Ke,3,0,"div",8)(8,Je,3,0,"div",9),f(9,"div",10),u(10,tt,1,1,null,11),b(11),m(),u(12,it,2,0,"div",12)(13,dt,2,0,"div",13),m(),u(14,lt,1,0,"div",14),m(),f(15,"div",15),u(16,ot,2,1,"div",16)(17,at,5,2,"div",17),m()}if(l&2){let o;r(2),E("mdc-text-field--filled",!d._hasOutline())("mdc-text-field--outlined",d._hasOutline())("mdc-text-field--no-label",!d._hasFloatingLabel())("mdc-text-field--disabled",d._control.disabled)("mdc-text-field--invalid",d._control.errorState),r(2),p(!d._hasOutline()&&!d._control.disabled?4:-1),r(2),p(d._hasOutline()?6:-1),r(),p(d._hasIconPrefix?7:-1),r(),p(d._hasTextPrefix?8:-1),r(2),p(!d._hasOutline()||d._forceDisplayInfixLabel()?10:-1),r(2),p(d._hasTextSuffix?12:-1),r(),p(d._hasIconSuffix?13:-1),r(),p(d._hasOutline()?-1:14),r(),E("mat-mdc-form-field-subscript-dynamic-size",d.subscriptSizing==="dynamic"),r(),p((o=d._getDisplayedMessages())==="error"?16:o==="hint"?17:-1)}},dependencies:[Fe,Ee,fe,Ce,ye],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined.mdc-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-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 96px/0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px*2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.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:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-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--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-hover-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-hover-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.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)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.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)}.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)}.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.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.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)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.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:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-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--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-hover-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-hover-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.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)}}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(.75*var(--mdc-outlined-text-field-label-text-size))}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mdc-outlined-text-field-label-text-size)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.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-text-field-wrapper::before{content:none}.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)}.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);line-height:var(--mat-form-field-subscript-text-line-height);font-size:var(--mat-form-field-subscript-text-size);letter-spacing:var(--mat-form-field-subscript-text-tracking);font-weight:var(--mat-form-field-subscript-text-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)}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-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)}[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)}.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);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-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)}.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)}.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)}.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)}.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)}.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 .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.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:[mt.transitionMessages]},changeDetection:0});let i=e;return i})(),Wt=(()=>{let e=class e{};e.\u0275fac=function(l){return new(l||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=W({imports:[q,me,ge,q]});let i=e;return i})();export{we as a,Bt as b,Ut as c,$t as d,st as e,xt as f,ut as g,Vt as h,Wt as i}; diff --git a/frontend/server/modelsmith-build/browser/chunk-BBURJRCW.js b/frontend/server/modelsmith-build/browser/chunk-ITIPNJR4.js similarity index 77% rename from frontend/server/modelsmith-build/browser/chunk-BBURJRCW.js rename to frontend/server/modelsmith-build/browser/chunk-ITIPNJR4.js index 35ac284d..fb43e193 100644 --- a/frontend/server/modelsmith-build/browser/chunk-BBURJRCW.js +++ b/frontend/server/modelsmith-build/browser/chunk-ITIPNJR4.js @@ -1,3 +1,3 @@ -import{a as B,b as Nt,c as cn,d as Fe,e as H,f as U,h as De,i as Ct}from"./chunk-ES2PX4IE.js";import{a as xe}from"./chunk-2E3XMRVQ.js";import{b as yt,e as Wt,i as va,k as _a,m as ya}from"./chunk-NO2PD4LU.js";import{b as fa}from"./chunk-MPLQ54VQ.js";import{$a as Le,A as Q,Aa as At,Ad as Pe,Ca as _e,Cc as Me,Cd as It,Da as Ot,Ea as ht,G as Z,Hc as be,Ja as ea,Ka as na,La as aa,Ma as ye,Md as Ut,Na as A,Oa as ia,P as pe,Pa as Ce,Qa as an,Qd as pa,Ra as rn,Sa as on,T as G,U as ge,W as Zn,Wa as ra,Ya as we,Z as fe,Za as Se,Zb as sn,Zd as Ee,_ as ve,a as x,b as T,ea as Jn,f as M,fb as oa,gb as kt,hb as sa,ib as ca,ja as S,je as ga,ka as W,m as lt,mb as la,na as ta,nc as ua,ob as ha,pb as da,qa as J,rc as ma,rd as _t,sa as L,sd as $t,ud as te,w as ot,wa as w,wd as Ae,xa as v,ya as P,yd as Ie,za as bt}from"./chunk-AIAH5BT5.js";var Mi=Object.defineProperty,bi=(s,n,a)=>n in s?Mi(s,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[n]=a,F=(s,n,a)=>bi(s,typeof n!="symbol"?n+"":n,a),Ai=class{requestAnimationFrame(s){return requestAnimationFrame(s)}cancelAnimationFrame(s){cancelAnimationFrame(s)}},Ii=class{constructor(){F(this,"_lastHandleId",0),F(this,"_lastImmediate",null)}requestAnimationFrame(s){return this._lastHandleId>=Number.MAX_SAFE_INTEGER&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{s(Date.now())}),this._lastHandleId}cancelAnimationFrame(s){this._lastImmediate&&clearImmediate(this._lastImmediate)}},Pi=class{constructor(){F(this,"_strategy"),this._strategy=typeof requestAnimationFrame=="function"?new Ai:new Ii}requestAnimationFrame(s){return this._strategy.requestAnimationFrame(s)}cancelAnimationFrame(s){this._strategy.cancelAnimationFrame(s)}},Et=typeof window<"u"&&typeof window.document<"u",Te={name:"@lottiefiles/dotlottie-web",version:"0.28.0",type:"module",description:"Lottie and DotLottie player for the web",repository:{type:"git",url:"git+https://github.com/LottieFiles/dotlottie-web.git",directory:"packages/web"},homepage:"https://github.com/LottieFiles/dotlottie-web#readme",bugs:"https://github.com/LottieFiles/dotlottie-web/issues",author:"LottieFiles",contributors:["Abdelrahman Ashraf "],license:"MIT",main:"dist/index.cjs",module:"dist/index.js",types:"dist/index.d.ts",files:["dist"],keywords:["dotlottie","lottie","player","animation","web","canvas","javascript","thorvg"],scripts:{build:"tsup",dev:"tsup --watch",lint:"eslint --fix .","stats:eslint":"cross-env TIMING=1 eslint .","stats:ts":"tsc -p tsconfig.build.json --extendedDiagnostics",test:"vitest run --browser.headless","test:coverage":"vitest run --browser.headless --coverage","test:watch":"vitest","type-check":"tsc --noEmit"},devDependencies:{"@types/node":"^20.10.5","@vitest/browser":"^1.2.2 ","@vitest/coverage-istanbul":"^1.2.2","cross-env":"7.0.3",tsup:"8.1.0",typescript:"5.0.4",vitest:"^1.2.2",webdriverio:"^8.32.0"},publishConfig:{access:"public"}},Ei=(()=>{var s=typeof document<"u"?document.currentScript?.src:void 0;return function(n={}){var a=n,c,p,_=new Promise((t,e)=>{c=t,p=e}),q=Object.assign({},a),rt="./this.program",V="";typeof document<"u"&&document.currentScript&&(V=document.currentScript.src),s&&(V=s),V.startsWith("blob:")?V="":V=V.substr(0,V.replace(/[?#].*/,"").lastIndexOf("/")+1);var xt=a.print||console.log.bind(console),Ft=a.printErr||console.error.bind(console);Object.assign(a,q),q=null,a.thisProgram&&(rt=a.thisProgram);var zt;a.wasmBinary&&(zt=a.wasmBinary);var ae,vn=!1,wt,O,Dt,Bt,z,D,_n,yn;function Cn(){var t=ae.buffer;a.HEAP8=wt=new Int8Array(t),a.HEAP16=Dt=new Int16Array(t),a.HEAPU8=O=new Uint8Array(t),a.HEAPU16=Bt=new Uint16Array(t),a.HEAP32=z=new Int32Array(t),a.HEAPU32=D=new Uint32Array(t),a.HEAPF32=_n=new Float32Array(t),a.HEAPF64=yn=new Float64Array(t)}var wn=[],Sn=[],Ln=[];function $a(){var t=a.preRun.shift();wn.unshift(t)}var St=0,Ht=null;function ie(t){throw a.onAbort?.(t),t="Aborted("+t+")",Ft(t),vn=!0,t=new WebAssembly.RuntimeError(t+". Build with -sASSERTIONS for more info."),p(t),t}var Mn=t=>t.startsWith("data:application/octet-stream;base64,"),Tt;if(Tt="DotLottiePlayer.wasm",!Mn(Tt)){var bn=Tt;Tt=a.locateFile?a.locateFile(bn,V):V+bn}function An(t){if(t==Tt&&zt)return new Uint8Array(zt);throw"both async and sync fetching of the wasm failed"}function Ua(t){return zt||typeof fetch!="function"?Promise.resolve().then(()=>An(t)):fetch(t,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw`failed to load wasm binary file at '${t}'`;return e.arrayBuffer()}).catch(()=>An(t))}function In(t,e,i){return Ua(t).then(r=>WebAssembly.instantiate(r,e)).then(i,r=>{Ft(`failed to asynchronously prepare wasm: ${r}`),ie(r)})}function Wa(t,e){var i=Tt;return zt||typeof WebAssembly.instantiateStreaming!="function"||Mn(i)||typeof fetch!="function"?In(i,t,e):fetch(i,{credentials:"same-origin"}).then(r=>WebAssembly.instantiateStreaming(r,t).then(e,function(o){return Ft(`wasm streaming compile failed: ${o}`),Ft("falling back to ArrayBuffer instantiation"),In(i,t,e)}))}var Ue=t=>{for(;0{var r=e+i;for(i=e;t[i]&&!(i>=r);)++i;if(16o?r+=String.fromCharCode(o):(o-=65536,r+=String.fromCharCode(55296|o>>10,56320|o&1023))}}else r+=String.fromCharCode(o)}return r};class Na{constructor(e){this.ya=e-24}}var En=0,xn=t=>{for(var e=0,i=0;i=r?e++:2047>=r?e+=2:55296<=r&&57343>=r?(e+=4,++i):e+=3}return e},Fn=(t,e,i,r)=>{if(0=l){var u=t.charCodeAt(++o);l=65536+((l&1023)<<10)|u&1023}if(127>=l){if(i>=r)break;e[i++]=l}else{if(2047>=l){if(i+1>=r)break;e[i++]=192|l>>6}else{if(65535>=l){if(i+2>=r)break;e[i++]=224|l>>12}else{if(i+3>=r)break;e[i++]=240|l>>18,e[i++]=128|l>>12&63}e[i++]=128|l>>6&63}e[i++]=128|l&63}}e[i]=0}},re={},We=t=>{for(;t.length;){var e=t.pop();t.pop()(e)}};function Yt(t){return this.fromWireType(D[t>>2])}var Rt={},Mt={},oe={},Vt,ft=(t,e,i)=>{function r(d){if(d=i(d),d.length!==t.length)throw new Vt("Mismatched type converter count");for(var g=0;g{Mt.hasOwnProperty(d)?o[g]=Mt[d]:(l.push(d),Rt.hasOwnProperty(d)||(Rt[d]=[]),Rt[d].push(()=>{o[g]=Mt[d],++u,u===l.length&&r(o)}))}),l.length===0&&r(o)},Dn,N=t=>{for(var e="";O[t];)e+=Dn[O[t++]];return e},b;function ja(t,e,i={}){var r=e.name;if(!t)throw new b(`type "${r}" must have a positive integer typeid pointer`);if(Mt.hasOwnProperty(t)){if(i.ib)return;throw new b(`Cannot register type '${r}' twice`)}Mt[t]=e,delete oe[t],Rt.hasOwnProperty(t)&&(e=Rt[t],delete Rt[t],e.forEach(o=>o()))}function tt(t,e,i={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return ja(t,e,i)}var Ne=t=>{throw new b(t.ma.za.xa.name+" instance already deleted")},je=!1,Tn=()=>{},Rn=(t,e,i)=>e===i?t:i.Ca===void 0?null:(t=Rn(t,e,i.Ca),t===null?null:i.ab(t)),On={},Gt=[],ze=()=>{for(;Gt.length;){var t=Gt.pop();t.ma.Ka=!1,t.delete()}},Xt,qt={},za=(t,e)=>{if(e===void 0)throw new b("ptr should not be undefined");for(;t.Ca;)e=t.Na(e),t=t.Ca;return qt[e]},se=(t,e)=>{if(!e.za||!e.ya)throw new Vt("makeClassHandle requires ptr and ptrType");if(!!e.Da!=!!e.Aa)throw new Vt("Both smartPtrType and smartPtr must be specified");return e.count={value:1},Kt(Object.create(t,{ma:{value:e,writable:!0}}))},Kt=t=>typeof FinalizationRegistry>"u"?(Kt=e=>e,t):(je=new FinalizationRegistry(e=>{e=e.ma,--e.count.value,e.count.value===0&&(e.Aa?e.Da.Fa(e.Aa):e.za.xa.Fa(e.ya))}),Kt=e=>{var i=e.ma;return i.Aa&&je.register(e,{ma:i},e),e},Tn=e=>{je.unregister(e)},Kt(t));function ce(){}var Qt=(t,e)=>Object.defineProperty(e,"name",{value:t}),kn=(t,e,i)=>{if(t[e].Ba===void 0){var r=t[e];t[e]=function(...o){if(!t[e].Ba.hasOwnProperty(o.length))throw new b(`Function '${i}' called with an invalid number of arguments (${o.length}) - expects one of (${t[e].Ba})!`);return t[e].Ba[o.length].apply(this,o)},t[e].Ba=[],t[e].Ba[r.Oa]=r}},Be=(t,e,i)=>{if(a.hasOwnProperty(t)){if(i===void 0||a[t].Ba!==void 0&&a[t].Ba[i]!==void 0)throw new b(`Cannot register public name '${t}' twice`);if(kn(a,t,t),a.hasOwnProperty(i))throw new b(`Cannot register multiple overloads of a function with the same number of arguments (${i})!`);a[t].Ba[i]=e}else a[t]=e,i!==void 0&&(a[t].vb=i)},Ba=t=>{if(t===void 0)return"_unknown";t=t.replace(/[^a-zA-Z0-9_]/g,"$");var e=t.charCodeAt(0);return 48<=e&&57>=e?`_${t}`:t};function Ha(t,e,i,r,o,l,u,d){this.name=t,this.constructor=e,this.La=i,this.Fa=r,this.Ca=o,this.cb=l,this.Na=u,this.ab=d,this.kb=[]}var He=(t,e,i)=>{for(;e!==i;){if(!e.Na)throw new b(`Expected null or instance of ${i.name}, got an instance of ${e.name}`);t=e.Na(t),e=e.Ca}return t};function Ya(t,e){if(e===null){if(this.Ta)throw new b(`null is not a valid ${this.name}`);return 0}if(!e.ma)throw new b(`Cannot pass "${Qe(e)}" as a ${this.name}`);if(!e.ma.ya)throw new b(`Cannot pass deleted object as a pointer of type ${this.name}`);return He(e.ma.ya,e.ma.za.xa,this.xa)}function Va(t,e){if(e===null){if(this.Ta)throw new b(`null is not a valid ${this.name}`);if(this.Qa){var i=this.Ua();return t!==null&&t.push(this.Fa,i),i}return 0}if(!e||!e.ma)throw new b(`Cannot pass "${Qe(e)}" as a ${this.name}`);if(!e.ma.ya)throw new b(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.Pa&&e.ma.za.Pa)throw new b(`Cannot convert argument of type ${e.ma.Da?e.ma.Da.name:e.ma.za.name} to parameter type ${this.name}`);if(i=He(e.ma.ya,e.ma.za.xa,this.xa),this.Qa){if(e.ma.Aa===void 0)throw new b("Passing raw pointer to smart pointer is illegal");switch(this.pb){case 0:if(e.ma.Da===this)i=e.ma.Aa;else throw new b(`Cannot convert argument of type ${e.ma.Da?e.ma.Da.name:e.ma.za.name} to parameter type ${this.name}`);break;case 1:i=e.ma.Aa;break;case 2:if(e.ma.Da===this)i=e.ma.Aa;else{var r=e.clone();i=this.lb(i,he(()=>r.delete())),t!==null&&t.push(this.Fa,i)}break;default:throw new b("Unsupporting sharing policy")}}return i}function Ga(t,e){if(e===null){if(this.Ta)throw new b(`null is not a valid ${this.name}`);return 0}if(!e.ma)throw new b(`Cannot pass "${Qe(e)}" as a ${this.name}`);if(!e.ma.ya)throw new b(`Cannot pass deleted object as a pointer of type ${this.name}`);if(e.ma.za.Pa)throw new b(`Cannot convert argument of type ${e.ma.za.name} to parameter type ${this.name}`);return He(e.ma.ya,e.ma.za.xa,this.xa)}function Zt(t,e,i,r,o,l,u,d,g,m,f){this.name=t,this.xa=e,this.Ta=i,this.Pa=r,this.Qa=o,this.jb=l,this.pb=u,this.Za=d,this.Ua=g,this.lb=m,this.Fa=f,o||e.Ca!==void 0?this.toWireType=Va:(this.toWireType=r?Ya:Ga,this.Ea=null)}var $n=(t,e,i)=>{if(!a.hasOwnProperty(t))throw new Vt("Replacing nonexistent public symbol");a[t].Ba!==void 0&&i!==void 0?a[t].Ba[i]=e:(a[t]=e,a[t].Oa=i)},K,Xa=(t,e,i=[])=>(t.includes("j")?(t=t.replace(/p/g,"i"),e=(0,a["dynCall_"+t])(e,...i)):e=K.get(e)(...i),e),qa=(t,e)=>(...i)=>Xa(t,e,i),Y=(t,e)=>{t=N(t);var i=t.includes("j")?qa(t,e):K.get(e);if(typeof i!="function")throw new b(`unknown function pointer with signature ${t}: ${e}`);return i},Un,Wn=t=>{t=Xn(t);var e=N(t);return ct(t),e},le=(t,e)=>{function i(l){o[l]||Mt[l]||(oe[l]?oe[l].forEach(i):(r.push(l),o[l]=!0))}var r=[],o={};throw e.forEach(i),new Un(`${t}: `+r.map(Wn).join([", "]))},Ye=(t,e)=>{for(var i=[],r=0;r>2]);return i};function Ka(t){for(var e=1;el)throw new b("argTypes array size mismatch! Must at least get return value and 'this' types!");var u=e[1]!==null&&i!==null,d=Ka(e),g=e[0].name!=="void",m=l-2,f=Array(m),I=[],E=[];return Qt(t,function(...h){if(h.length!==m)throw new b(`function ${t} called with ${h.length} arguments, expected ${m}`);if(E.length=0,I.length=u?2:1,I[0]=o,u){var y=e[1].toWireType(E,this);I[1]=y}for(var C=0;C{t=t.trim();let e=t.indexOf("(");return e!==-1?t.substr(0,e):t},Ge=[],st=[],Xe=t=>{9{if(!t)throw new b("Cannot use deleted val. handle = "+t);return st[t]},he=t=>{switch(t){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:let e=Ge.pop()||st.length;return st[e]=t,st[e+1]=1,e}},jn={name:"emscripten::val",fromWireType:t=>{var e=qe(t);return Xe(t),e},toWireType:(t,e)=>he(e),argPackAdvance:8,readValueFromPointer:Yt,Ea:null},Qa=(t,e,i)=>{switch(e){case 1:return i?function(r){return this.fromWireType(wt[r])}:function(r){return this.fromWireType(O[r])};case 2:return i?function(r){return this.fromWireType(Dt[r>>1])}:function(r){return this.fromWireType(Bt[r>>1])};case 4:return i?function(r){return this.fromWireType(z[r>>2])}:function(r){return this.fromWireType(D[r>>2])};default:throw new TypeError(`invalid integer width (${e}): ${t}`)}},Ke=(t,e)=>{var i=Mt[t];if(i===void 0)throw t=`${e} has unknown type ${Wn(t)}`,new b(t);return i},Qe=t=>{if(t===null)return"null";var e=typeof t;return e==="object"||e==="array"||e==="function"?t.toString():""+t},Za=(t,e)=>{switch(e){case 4:return function(i){return this.fromWireType(_n[i>>2])};case 8:return function(i){return this.fromWireType(yn[i>>3])};default:throw new TypeError(`invalid float width (${e}): ${t}`)}},Ja=(t,e,i)=>{switch(e){case 1:return i?r=>wt[r]:r=>O[r];case 2:return i?r=>Dt[r>>1]:r=>Bt[r>>1];case 4:return i?r=>z[r>>2]:r=>D[r>>2];default:throw new TypeError(`invalid integer width (${e}): ${t}`)}},zn=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,ti=(t,e)=>{for(var i=t>>1,r=i+e/2;!(i>=r)&&Bt[i];)++i;if(i<<=1,32=e/2);++r){var o=Dt[t+2*r>>1];if(o==0)break;i+=String.fromCharCode(o)}return i},ei=(t,e,i)=>{if(i??(i=2147483647),2>i)return 0;i-=2;var r=e;i=i<2*t.length?i/2:t.length;for(var o=0;o>1]=t.charCodeAt(o),e+=2;return Dt[e>>1]=0,e-r},ni=t=>2*t.length,ai=(t,e)=>{for(var i=0,r="";!(i>=e/4);){var o=z[t+4*i>>2];if(o==0)break;++i,65536<=o?(o-=65536,r+=String.fromCharCode(55296|o>>10,56320|o&1023)):r+=String.fromCharCode(o)}return r},ii=(t,e,i)=>{if(i??(i=2147483647),4>i)return 0;var r=e;i=r+i-4;for(var o=0;o=l){var u=t.charCodeAt(++o);l=65536+((l&1023)<<10)|u&1023}if(z[e>>2]=l,e+=4,e+4>i)break}return z[e>>2]=0,e-r},ri=t=>{for(var e=0,i=0;i=r&&++i,e+=4}return e},Ze=[],oi=t=>{var e=Ze.length;return Ze.push(t),e},si=(t,e)=>{for(var i=Array(t),r=0;r>2],"parameter "+r);return i},ci=Reflect.construct,Je={},Bn=()=>{if(!tn){var t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:rt||"./this.program"},e;for(e in Je)Je[e]===void 0?delete t[e]:t[e]=Je[e];var i=[];for(e in t)i.push(`${e}=${t[e]}`);tn=i}return tn},tn,li=[null,[],[]],hi=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return t=>crypto.getRandomValues(t);ie("initRandomDevice")},Hn=t=>(Hn=hi())(t),de=t=>t%4===0&&(t%100!==0||t%400===0),Yn=[31,29,31,30,31,30,31,31,30,31,30,31],Vn=[31,28,31,30,31,30,31,31,30,31,30,31];function di(t){var e=Array(xn(t)+1);return Fn(t,e,0,e.length),e}var ui=(t,e,i,r)=>{function o(h,y,C){for(h=typeof h=="number"?h.toString():h||"";h.lengthvt?-1:0$-h.getDate())y-=$-h.getDate()+1,h.setDate(1),11>C?h.setMonth(C+1):(h.setMonth(0),h.setFullYear(h.getFullYear()+1));else{h.setDate(h.getDate()+y);break}}return C=new Date(h.getFullYear()+1,0,4),y=d(new Date(h.getFullYear(),0,4)),C=d(C),0>=u(y,h)?0>=u(C,h)?h.getFullYear()+1:h.getFullYear():h.getFullYear()-1}var m=D[r+40>>2];r={sb:z[r>>2],rb:z[r+4>>2],Ra:z[r+8>>2],Va:z[r+12>>2],Sa:z[r+16>>2],Ja:z[r+20>>2],Ga:z[r+24>>2],Ia:z[r+28>>2],wb:z[r+32>>2],qb:z[r+36>>2],tb:m&&m?Lt(O,m):""},i=i?Lt(O,i):"",m={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var f in m)i=i.replace(new RegExp(f,"g"),m[f]);var I="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),E="January February March April May June July August September October November December".split(" ");m={"%a":h=>I[h.Ga].substring(0,3),"%A":h=>I[h.Ga],"%b":h=>E[h.Sa].substring(0,3),"%B":h=>E[h.Sa],"%C":h=>l((h.Ja+1900)/100|0,2),"%d":h=>l(h.Va,2),"%e":h=>o(h.Va,2," "),"%g":h=>g(h).toString().substring(2),"%G":g,"%H":h=>l(h.Ra,2),"%I":h=>(h=h.Ra,h==0?h=12:12{for(var y=0,C=0;C<=h.Sa-1;y+=(de(h.Ja+1900)?Yn:Vn)[C++]);return l(h.Va+y,3)},"%m":h=>l(h.Sa+1,2),"%M":h=>l(h.rb,2),"%n":()=>` -`,"%p":h=>0<=h.Ra&&12>h.Ra?"AM":"PM","%S":h=>l(h.sb,2),"%t":()=>" ","%u":h=>h.Ga||7,"%U":h=>l(Math.floor((h.Ia+7-h.Ga)/7),2),"%V":h=>{var y=Math.floor((h.Ia+7-(h.Ga+6)%7)/7);if(2>=(h.Ga+371-h.Ia-2)%7&&y++,y)y==53&&(C=(h.Ga+371-h.Ia)%7,C==4||C==3&&de(h.Ja)||(y=1));else{y=52;var C=(h.Ga+7-h.Ia-1)%7;(C==4||C==5&&de(h.Ja%400-1))&&y++}return l(y,2)},"%w":h=>h.Ga,"%W":h=>l(Math.floor((h.Ia+7-(h.Ga+6)%7)/7),2),"%y":h=>(h.Ja+1900).toString().substring(2),"%Y":h=>h.Ja+1900,"%z":h=>{h=h.qb;var y=0<=h;return h=Math.abs(h)/60,(y?"+":"-")+("0000"+(h/60*100+h%60)).slice(-4)},"%Z":h=>h.tb,"%%":()=>"%"},i=i.replace(/%%/g,"\0\0");for(f in m)i.includes(f)&&(i=i.replace(new RegExp(f,"g"),m[f](r)));return i=i.replace(/\0\0/g,"%"),f=di(i),f.length>e?0:(wt.set(f,t),f.length-1)};Vt=a.InternalError=class extends Error{constructor(t){super(t),this.name="InternalError"}};for(var Gn=Array(256),ue=0;256>ue;++ue)Gn[ue]=String.fromCharCode(ue);Dn=Gn,b=a.BindingError=class extends Error{constructor(t){super(t),this.name="BindingError"}},Object.assign(ce.prototype,{isAliasOf:function(t){if(!(this instanceof ce&&t instanceof ce))return!1;var e=this.ma.za.xa,i=this.ma.ya;t.ma=t.ma;var r=t.ma.za.xa;for(t=t.ma.ya;e.Ca;)i=e.Na(i),e=e.Ca;for(;r.Ca;)t=r.Na(t),r=r.Ca;return e===r&&i===t},clone:function(){if(this.ma.ya||Ne(this),this.ma.Ma)return this.ma.count.value+=1,this;var t=Kt,e=Object,i=e.create,r=Object.getPrototypeOf(this),o=this.ma;return t=t(i.call(e,r,{ma:{value:{count:o.count,Ka:o.Ka,Ma:o.Ma,ya:o.ya,za:o.za,Aa:o.Aa,Da:o.Da}}})),t.ma.count.value+=1,t.ma.Ka=!1,t},delete(){if(this.ma.ya||Ne(this),this.ma.Ka&&!this.ma.Ma)throw new b("Object already scheduled for deletion");Tn(this);var t=this.ma;--t.count.value,t.count.value===0&&(t.Aa?t.Da.Fa(t.Aa):t.za.xa.Fa(t.ya)),this.ma.Ma||(this.ma.Aa=void 0,this.ma.ya=void 0)},isDeleted:function(){return!this.ma.ya},deleteLater:function(){if(this.ma.ya||Ne(this),this.ma.Ka&&!this.ma.Ma)throw new b("Object already scheduled for deletion");return Gt.push(this),Gt.length===1&&Xt&&Xt(ze),this.ma.Ka=!0,this}}),a.getInheritedInstanceCount=()=>Object.keys(qt).length,a.getLiveInheritedInstances=()=>{var t=[],e;for(e in qt)qt.hasOwnProperty(e)&&t.push(qt[e]);return t},a.flushPendingDeletes=ze,a.setDelayFunction=t=>{Xt=t,Gt.length&&Xt&&Xt(ze)},Object.assign(Zt.prototype,{eb(t){return this.Za&&(t=this.Za(t)),t},Xa(t){this.Fa?.(t)},argPackAdvance:8,readValueFromPointer:Yt,fromWireType:function(t){function e(){return this.Qa?se(this.xa.La,{za:this.jb,ya:i,Da:this,Aa:t}):se(this.xa.La,{za:this,ya:t})}var i=this.eb(t);if(!i)return this.Xa(t),null;var r=za(this.xa,i);if(r!==void 0)return r.ma.count.value===0?(r.ma.ya=i,r.ma.Aa=t,r.clone()):(r=r.clone(),this.Xa(t),r);if(r=this.xa.cb(i),r=On[r],!r)return e.call(this);r=this.Pa?r.$a:r.pointerType;var o=Rn(i,this.xa,r.xa);return o===null?e.call(this):this.Qa?se(r.xa.La,{za:r,ya:o,Da:this,Aa:t}):se(r.xa.La,{za:r,ya:o})}}),Un=a.UnboundTypeError=((t,e)=>{var i=Qt(e,function(r){this.name=e,this.message=r,r=Error(r).stack,r!==void 0&&(this.stack=this.toString()+` -`+r.replace(/^Error(:[^\n]*)?\n/,""))});return i.prototype=Object.create(t.prototype),i.prototype.constructor=i,i.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},i})(Error,"UnboundTypeError"),st.push(0,1,void 0,1,null,1,!0,1,!1,1),a.count_emval_handles=()=>st.length/2-5-Ge.length;var mi={c:(t,e,i,r)=>{ie(`Assertion failed: ${t?Lt(O,t):""}, at: `+[e?e?Lt(O,e):"":"unknown filename",i,r?r?Lt(O,r):"":"unknown function"])},m:(t,e,i)=>{var r=new Na(t);throw D[r.ya+16>>2]=0,D[r.ya+4>>2]=e,D[r.ya+8>>2]=i,En=t,En},B:function(){return 0},P:()=>{},M:()=>{},R:function(){return 0},N:()=>{},A:function(){},O:()=>{},v:t=>{var e=re[t];delete re[t];var i=e.Ua,r=e.Fa,o=e.Ya,l=o.map(u=>u.hb).concat(o.map(u=>u.nb));ft([t],l,u=>{var d={};return o.forEach((g,m)=>{var f=u[m],I=g.fb,E=g.gb,h=u[m+o.length],y=g.mb,C=g.ob;d[g.bb]={read:$=>f.fromWireType(I(E,$)),write:($,vt)=>{var X=[];y(C,$,h.toWireType(X,vt)),We(X)}}}),[{name:e.name,fromWireType:g=>{var m={},f;for(f in d)m[f]=d[f].read(g);return r(g),m},toWireType:(g,m)=>{for(var f in d)if(!(f in m))throw new TypeError(`Missing field: "${f}"`);var I=i();for(f in d)d[f].write(I,m[f]);return g!==null&&g.push(r,I),I},argPackAdvance:8,readValueFromPointer:Yt,Ea:r}]})},I:()=>{},Y:(t,e,i,r)=>{e=N(e),tt(t,{name:e,fromWireType:function(o){return!!o},toWireType:function(o,l){return l?i:r},argPackAdvance:8,readValueFromPointer:function(o){return this.fromWireType(O[o])},Ea:null})},r:(t,e,i,r,o,l,u,d,g,m,f,I,E)=>{f=N(f),l=Y(o,l),d&&(d=Y(u,d)),m&&(m=Y(g,m)),E=Y(I,E);var h=Ba(f);Be(h,function(){le(`Cannot construct ${f} due to unbound types`,[r])}),ft([t,e,i],r?[r]:[],y=>{if(y=y[0],r)var C=y.xa,$=C.La;else $=ce.prototype;y=Qt(f,function(...nn){if(Object.getPrototypeOf(this)!==vt)throw new b("Use 'new' to construct "+f);if(X.Ha===void 0)throw new b(f+" has no accessible constructor");var Qn=X.Ha[nn.length];if(Qn===void 0)throw new b(`Tried to invoke ctor of ${f} with invalid number of parameters (${nn.length}) - expected (${Object.keys(X.Ha).toString()}) parameters instead!`);return Qn.apply(this,nn)});var vt=Object.create($,{constructor:{value:y}});y.prototype=vt;var X=new Ha(f,y,vt,E,C,l,d,m);if(X.Ca){var Jt;(Jt=X.Ca).Wa??(Jt.Wa=[]),X.Ca.Wa.push(X)}return C=new Zt(f,X,!0,!1,!1),Jt=new Zt(f+"*",X,!1,!1,!1),$=new Zt(f+" const*",X,!1,!0,!1),On[t]={pointerType:Jt,$a:$},$n(h,y),[C,Jt,$]})},q:(t,e,i,r,o,l)=>{var u=Ye(e,i);o=Y(r,o),ft([],[t],d=>{d=d[0];var g=`constructor ${d.name}`;if(d.xa.Ha===void 0&&(d.xa.Ha=[]),d.xa.Ha[e-1]!==void 0)throw new b(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${d.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return d.xa.Ha[e-1]=()=>{le(`Cannot construct ${d.name} due to unbound types`,u)},ft([],u,m=>(m.splice(1,0,null),d.xa.Ha[e-1]=Ve(g,m,null,o,l),[])),[]})},f:(t,e,i,r,o,l,u,d)=>{var g=Ye(i,r);e=N(e),e=Nn(e),l=Y(o,l),ft([],[t],m=>{function f(){le(`Cannot call ${I} due to unbound types`,g)}m=m[0];var I=`${m.name}.${e}`;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),d&&m.xa.kb.push(e);var E=m.xa.La,h=E[e];return h===void 0||h.Ba===void 0&&h.className!==m.name&&h.Oa===i-2?(f.Oa=i-2,f.className=m.name,E[e]=f):(kn(E,e,I),E[e].Ba[i-2]=f),ft([],g,y=>(y=Ve(I,y,m,l,u),E[e].Ba===void 0?(y.Oa=i-2,E[e]=y):E[e].Ba[i-2]=y,[])),[]})},X:t=>tt(t,jn),x:(t,e,i,r)=>{function o(){}e=N(e),o.values={},tt(t,{name:e,constructor:o,fromWireType:function(l){return this.constructor.values[l]},toWireType:(l,u)=>u.value,argPackAdvance:8,readValueFromPointer:Qa(e,i,r),Ea:null}),Be(e,o)},k:(t,e,i)=>{var r=Ke(t,"enum");e=N(e),t=r.constructor,r=Object.create(r.constructor.prototype,{value:{value:i},constructor:{value:Qt(`${r.name}_${e}`,function(){})}}),t.values[i]=r,t[e]=r},C:(t,e,i)=>{e=N(e),tt(t,{name:e,fromWireType:r=>r,toWireType:(r,o)=>o,argPackAdvance:8,readValueFromPointer:Za(e,i),Ea:null})},E:(t,e,i,r,o,l)=>{var u=Ye(e,i);t=N(t),t=Nn(t),o=Y(r,o),Be(t,function(){le(`Cannot call ${t} due to unbound types`,u)},e-1),ft([],u,d=>($n(t,Ve(t,[d[0],null].concat(d.slice(1)),null,o,l),e-1),[]))},l:(t,e,i,r,o)=>{if(e=N(e),o===-1&&(o=4294967295),o=d=>d,r===0){var l=32-8*i;o=d=>d<>>l}var u=e.includes("unsigned")?function(d,g){return g>>>0}:function(d,g){return g};tt(t,{name:e,fromWireType:o,toWireType:u,argPackAdvance:8,readValueFromPointer:Ja(e,i,r!==0),Ea:null})},g:(t,e,i)=>{function r(l){return new o(wt.buffer,D[l+4>>2],D[l>>2])}var o=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];i=N(i),tt(t,{name:i,fromWireType:r,argPackAdvance:8,readValueFromPointer:r},{ib:!0})},w:t=>{tt(t,jn)},ca:(t,e,i,r,o,l,u,d,g,m,f,I)=>{i=N(i),l=Y(o,l),d=Y(u,d),m=Y(g,m),I=Y(f,I),ft([t],[e],E=>(E=E[0],[new Zt(i,E.xa,!1,!1,!0,E,r,l,d,m,I)]))},D:(t,e)=>{e=N(e);var i=e==="std::string";tt(t,{name:e,fromWireType:function(r){var o=D[r>>2],l=r+4;if(i)for(var u=l,d=0;d<=o;++d){var g=l+d;if(d==o||O[g]==0){if(u=u?Lt(O,u,g-u):"",m===void 0)var m=u;else m+="\0",m+=u;u=g+1}}else{for(m=Array(o),d=0;d>2]=u,i&&l)Fn(o,O,g,u+1);else if(l)for(l=0;l{if(i=N(i),e===2)var r=ti,o=ei,l=ni,u=d=>Bt[d>>1];else e===4&&(r=ai,o=ii,l=ri,u=d=>D[d>>2]);tt(t,{name:i,fromWireType:d=>{for(var g=D[d>>2],m,f=d+4,I=0;I<=g;++I){var E=d+4+I*e;(I==g||u(E)==0)&&(f=r(f,E-f),m===void 0?m=f:(m+="\0",m+=f),f=E+e)}return ct(d),m},toWireType:(d,g)=>{if(typeof g!="string")throw new b(`Cannot pass non-string to C++ string type ${i}`);var m=l(g),f=en(4+m+e);return D[f>>2]=m/e,o(g,f+4,m+e),d!==null&&d.push(ct,f),f},argPackAdvance:8,readValueFromPointer:Yt,Ea(d){ct(d)}})},s:(t,e,i,r,o,l)=>{re[t]={name:N(e),Ua:Y(i,r),Fa:Y(o,l),Ya:[]}},j:(t,e,i,r,o,l,u,d,g,m)=>{re[t].Ya.push({bb:N(e),hb:i,fb:Y(r,o),gb:l,nb:u,mb:Y(d,g),ob:m})},Z:(t,e)=>{e=N(e),tt(t,{ub:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:()=>{}})},J:()=>{throw 1/0},aa:(t,e,i,r)=>(t=Ze[t],e=qe(e),t(null,e,i,r)),F:Xe,$:(t,e,i)=>{var r=si(t,e),o=r.shift();t--;var l=Array(t);return e=`methodCaller<(${r.map(u=>u.name).join(", ")}) => ${o.name}>`,oi(Qt(e,(u,d,g,m)=>{for(var f=0,I=0;I>2]=he(u)),d}))},ba:t=>{9{var e=qe(t);We(e),Xe(t)},o:(t,e)=>(t=Ke(t,"_emval_take_value"),t=t.readValueFromPointer(e),he(t)),W:()=>{ie("")},V:()=>performance.now(),L:t=>{var e=O.length;if(t>>>=0,2147483648=i;i*=2){var r=e*(1+.2/i);r=Math.min(r,t+100663296);var o=Math;r=Math.max(t,r);t:{o=(o.min.call(o,2147483648,r+(65536-r%65536)%65536)-ae.buffer.byteLength+65535)/65536;try{ae.grow(o),Cn();var l=1;break t}catch{}l=void 0}if(l)return!0}return!1},S:(t,e)=>{var i=0;return Bn().forEach((r,o)=>{var l=e+i;for(o=D[t+4*o>>2]=l,l=0;l{var i=Bn();D[t>>2]=i.length;var r=0;return i.forEach(o=>r+=o.length+1),D[e>>2]=r,0},t:()=>52,z:()=>52,H:function(){return 70},Q:(t,e,i,r)=>{for(var o=0,l=0;l>2],d=D[e+4>>2];e+=8;for(var g=0;g>2]=o,0},U:(t,e)=>(Hn(O.subarray(t,t+e)),0),i:_i,d:vi,e:fi,p:yi,y:Si,b:pi,a:gi,h:wi,n:Ci,G:Li,K:(t,e,i,r)=>ui(t,e,i,r)},k=function(){function t(i){return k=i.exports,ae=k.da,Cn(),K=k.ha,Sn.unshift(k.ea),St--,a.monitorRunDependencies?.(St),St==0&&Ht&&(i=Ht,Ht=null,i()),k}var e={a:mi};if(St++,a.monitorRunDependencies?.(St),a.instantiateWasm)try{return a.instantiateWasm(e,t)}catch(i){Ft(`Module.instantiateWasm callback failed with error: ${i}`),p(i)}return Wa(e,function(i){t(i.instance)}).catch(p),{}}(),en=t=>(en=k.fa)(t),Xn=t=>(Xn=k.ga)(t),ct=t=>(ct=k.ia)(t),et=(t,e)=>(et=k.ja)(t,e),nt=t=>(nt=k.ka)(t),at=()=>(at=k.la)();a.dynCall_iijj=(t,e,i,r,o,l)=>(a.dynCall_iijj=k.na)(t,e,i,r,o,l),a.dynCall_vijj=(t,e,i,r,o,l)=>(a.dynCall_vijj=k.oa)(t,e,i,r,o,l),a.dynCall_jiii=(t,e,i,r)=>(a.dynCall_jiii=k.pa)(t,e,i,r),a.dynCall_jii=(t,e,i)=>(a.dynCall_jii=k.qa)(t,e,i);var qn=a.dynCall_viiij=(t,e,i,r,o,l)=>(qn=a.dynCall_viiij=k.ra)(t,e,i,r,o,l);a.dynCall_jiji=(t,e,i,r,o)=>(a.dynCall_jiji=k.sa)(t,e,i,r,o),a.dynCall_viijii=(t,e,i,r,o,l,u)=>(a.dynCall_viijii=k.ta)(t,e,i,r,o,l,u),a.dynCall_iiiiij=(t,e,i,r,o,l,u)=>(a.dynCall_iiiiij=k.ua)(t,e,i,r,o,l,u),a.dynCall_iiiiijj=(t,e,i,r,o,l,u,d,g)=>(a.dynCall_iiiiijj=k.va)(t,e,i,r,o,l,u,d,g),a.dynCall_iiiiiijj=(t,e,i,r,o,l,u,d,g,m)=>(a.dynCall_iiiiiijj=k.wa)(t,e,i,r,o,l,u,d,g,m);function pi(t,e){var i=at();try{K.get(t)(e)}catch(r){if(nt(i),r!==r+0)throw r;et(1,0)}}function gi(t,e,i){var r=at();try{K.get(t)(e,i)}catch(o){if(nt(r),o!==o+0)throw o;et(1,0)}}function fi(t,e,i,r){var o=at();try{return K.get(t)(e,i,r)}catch(l){if(nt(o),l!==l+0)throw l;et(1,0)}}function vi(t,e,i){var r=at();try{return K.get(t)(e,i)}catch(o){if(nt(r),o!==o+0)throw o;et(1,0)}}function _i(t,e){var i=at();try{return K.get(t)(e)}catch(r){if(nt(i),r!==r+0)throw r;et(1,0)}}function yi(t,e,i,r,o,l){var u=at();try{return K.get(t)(e,i,r,o,l)}catch(d){if(nt(u),d!==d+0)throw d;et(1,0)}}function Ci(t,e,i,r,o){var l=at();try{K.get(t)(e,i,r,o)}catch(u){if(nt(l),u!==u+0)throw u;et(1,0)}}function wi(t,e,i,r){var o=at();try{K.get(t)(e,i,r)}catch(l){if(nt(o),l!==l+0)throw l;et(1,0)}}function Si(t){var e=at();try{K.get(t)()}catch(i){if(nt(e),i!==i+0)throw i;et(1,0)}}function Li(t,e,i,r,o,l){var u=at();try{qn(t,e,i,r,o,l)}catch(d){if(nt(u),d!==d+0)throw d;et(1,0)}}var me;Ht=function t(){me||Kn(),me||(Ht=t)};function Kn(){function t(){if(!me&&(me=!0,a.calledRun=!0,!vn)){if(Ue(Sn),c(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),a.postRun)for(typeof a.postRun=="function"&&(a.postRun=[a.postRun]);a.postRun.length;){var e=a.postRun.shift();Ln.unshift(e)}Ue(Ln)}}if(!(0s})})}static _loadWithBackup(){return M(this,null,function*(){return this._ModulePromise||(this._ModulePromise=this._tryLoad(this._wasmURL).catch(s=>M(this,null,function*(){let n=`https://unpkg.com/${Te.name}@${Te.version}/dist/dotlottie-player.wasm`;console.warn(`Primary WASM load failed from ${this._wasmURL}. Error: ${s.message}`),console.warn(`Attempting to load WASM from backup URL: ${n}`);try{return yield this._tryLoad(n)}catch(a){throw console.error(`Primary WASM URL failed: ${s.message}`),console.error(`Backup WASM URL failed: ${a.message}`),new Error("WASM loading failed from all sources.")}}))),this._ModulePromise})}static load(){return M(this,null,function*(){return this._loadWithBackup()})}static setWasmUrl(s){this._wasmURL=s,this._ModulePromise=null}};F(Re,"_ModulePromise",null),F(Re,"_wasmURL",`https://cdn.jsdelivr.net/npm/${Te.name}@${Te.version}/dist/dotlottie-player.wasm`);var La=class{constructor(){F(this,"_eventListeners",new Map)}addEventListener(s,n){let a=this._eventListeners.get(s);a||(a=new Set,this._eventListeners.set(s,a)),a.add(n)}removeEventListener(s,n){let a=this._eventListeners.get(s);a&&(n?(a.delete(n),a.size===0&&this._eventListeners.delete(s)):this._eventListeners.delete(s))}dispatch(s){this._eventListeners.get(s.type)?.forEach(n=>n(s))}removeAllEventListeners(){this._eventListeners.clear()}};function Fi(s){return/^#([\da-f]{6}|[\da-f]{8})$/iu.test(s)}function Di(s){if(!Fi(s))return 0;let n=s.replace("#","");return n=n.length===6?`${n}ff`:n,parseInt(n,16)}var ln=(s,n)=>s==="reverse"?n.Mode.Reverse:s==="bounce"?n.Mode.Bounce:s==="reverse-bounce"?n.Mode.ReverseBounce:n.Mode.Forward,hn=(s,n)=>s==="contain"?n.Fit.Contain:s==="cover"?n.Fit.Cover:s==="fill"?n.Fit.Fill:s==="fit-height"?n.Fit.FitHeight:s==="fit-width"?n.Fit.FitWidth:n.Fit.None,dn=(s,n)=>{let a=new n.VectorFloat;return a.push_back(s[0]),a.push_back(s[1]),a},un=(s,n)=>{let a=new n.VectorFloat;return s.length!==2||(a.push_back(s[0]),a.push_back(s[1])),a},Ma=class R{constructor(n){F(this,"_canvas"),F(this,"_context",null),F(this,"_eventManager"),F(this,"_animationFrameId",null),F(this,"_frameManager"),F(this,"_dotLottieCore",null),F(this,"_renderConfig",{}),F(this,"_isFrozen",!1),F(this,"_backgroundColor",null),this._canvas=n.canvas,this._context=this._canvas.getContext("2d"),this._eventManager=new La,this._frameManager=new Pi,this._renderConfig=n.renderConfig??{},Re.load().then(a=>{R._wasmModule=a,this._dotLottieCore=new a.DotLottiePlayer({autoplay:n.autoplay??!1,backgroundColor:0,loopAnimation:n.loop??!1,mode:ln(n.mode??"forward",a),segment:un(n.segment??[],a),speed:n.speed??1,useFrameInterpolation:n.useFrameInterpolation??!0,marker:n.marker??"",layout:n.layout?{align:dn(n.layout.align,a),fit:hn(n.layout.fit,a)}:a.createDefaultLayout()}),this._eventManager.dispatch({type:"ready"}),n.data?this._loadFromData(n.data):n.src&&this._loadFromSrc(n.src),n.backgroundColor&&this.setBackgroundColor(n.backgroundColor)}).catch(a=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load wasm module: ${a}`)})})}_loadFromSrc(n){function a(){return M(this,null,function*(){let c=yield fetch(n);if(!c.ok)throw new Error(`Failed to fetch the animation data from URL: ${n}. ${c.status}: ${c.statusText}`);let p=(c.headers.get("content-type")??"").trim(),_;return["application/json","text/plain"].some(q=>p.startsWith(q))?_=yield c.text():_=yield c.arrayBuffer(),_})}a().then(c=>{this._loadFromData(c)}).catch(c=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load animation data from URL: ${n}. ${c}`)})})}_loadFromData(n){if(this._dotLottieCore===null)return;let a=this._canvas.width,c=this._canvas.height,p=!1;if(typeof n=="string")p=this._dotLottieCore.loadAnimationData(n,a,c);else if(n instanceof ArrayBuffer)p=this._dotLottieCore.loadDotLottieData(n,a,c);else if(typeof n=="object")p=this._dotLottieCore.loadAnimationData(JSON.stringify(n),a,c);else{this._eventManager.dispatch({type:"loadError",error:new Error("Unsupported data type for animation data. Expected a string or ArrayBuffer.")});return}p?(this._eventManager.dispatch({type:"load"}),Et&&this.resize(),this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render(),this._dotLottieCore.config().autoplay&&(this._dotLottieCore.play(),this._dotLottieCore.isPlaying()?(this._eventManager.dispatch({type:"play"}),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this))):console.error("something went wrong, the animation was suppose to autoplay"))):this._eventManager.dispatch({type:"loadError",error:new Error("Failed to load animation data")})}get activeAnimationId(){return this._dotLottieCore?.activeAnimationId()}get activeThemeId(){return this._dotLottieCore?.activeThemeId()}get layout(){let n=this._dotLottieCore?.config().layout;if(n)return{align:[n.align.get(0),n.align.get(1)],fit:(()=>{switch(n.fit){case R._wasmModule?.Fit.Contain:return"contain";case R._wasmModule?.Fit.Cover:return"cover";case R._wasmModule?.Fit.Fill:return"fill";case R._wasmModule?.Fit.FitHeight:return"fit-height";case R._wasmModule?.Fit.FitWidth:return"fit-width";case R._wasmModule?.Fit.None:return"none";default:return"contain"}})()}}get marker(){return this._dotLottieCore?.config().marker}get manifest(){try{let n=this._dotLottieCore?.manifestString();if(this._dotLottieCore===null||!n)return null;let a=JSON.parse(n);return Object.keys(a).length===0?null:a}catch{return null}}get renderConfig(){return this._renderConfig}get segment(){let n=this._dotLottieCore?.config().segment;if(n&&n.size()===2)return[n.get(0),n.get(1)]}get loop(){return this._dotLottieCore?.config().loopAnimation??!1}get mode(){let n=this._dotLottieCore?.config().mode;return n===R._wasmModule?.Mode.Reverse?"reverse":n===R._wasmModule?.Mode.Bounce?"bounce":n===R._wasmModule?.Mode.ReverseBounce?"reverse-bounce":"forward"}get isFrozen(){return this._isFrozen}get backgroundColor(){return this._backgroundColor??""}get autoplay(){return this._dotLottieCore?.config().autoplay??!1}get useFrameInterpolation(){return this._dotLottieCore?.config().useFrameInterpolation??!1}get speed(){return this._dotLottieCore?.config().speed??0}get isReady(){return this._dotLottieCore!==null}get isLoaded(){return this._dotLottieCore?.isLoaded()??!1}get isPlaying(){return this._dotLottieCore?.isPlaying()??!1}get isPaused(){return this._dotLottieCore?.isPaused()??!1}get isStopped(){return this._dotLottieCore?.isStopped()??!1}get currentFrame(){return this._dotLottieCore?.currentFrame()??0}get loopCount(){return this._dotLottieCore?.loopCount()??0}get totalFrames(){return this._dotLottieCore?.totalFrames()??0}get duration(){return this._dotLottieCore?.duration()??0}get segmentDuration(){return this._dotLottieCore?.segmentDuration()??0}get canvas(){return this._canvas}load(n){this._dotLottieCore===null||R._wasmModule===null||(this._dotLottieCore.setConfig({autoplay:n.autoplay??!1,backgroundColor:0,loopAnimation:n.loop??!1,mode:ln(n.mode??"forward",R._wasmModule),segment:un(n.segment??[],R._wasmModule),speed:n.speed??1,useFrameInterpolation:n.useFrameInterpolation??!0,marker:n.marker??"",layout:n.layout?{align:dn(n.layout.align,R._wasmModule),fit:hn(n.layout.fit,R._wasmModule)}:R._wasmModule.createDefaultLayout()}),n.data?this._loadFromData(n.data):n.src&&this._loadFromSrc(n.src),this.setBackgroundColor(n.backgroundColor??""))}_render(){if(this._dotLottieCore===null||this._context===null)return!1;if(this._dotLottieCore.render()){let n=this._dotLottieCore.buffer(),a=new Uint8ClampedArray(n,0,this._canvas.width*this._canvas.height*4),c=null;return typeof ImageData>"u"?(c=this._context.createImageData(this._canvas.width,this._canvas.height),c.data.set(a)):c=new ImageData(a,this._canvas.width,this._canvas.height),this._context.putImageData(c,0,0),this._eventManager.dispatch({type:"render",currentFrame:this._dotLottieCore.currentFrame()}),!0}return!1}_draw(){if(this._dotLottieCore===null||this._context===null||!this._dotLottieCore.isPlaying())return;let n=this._dotLottieCore.requestFrame();this._dotLottieCore.setFrame(n)&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render()&&this._dotLottieCore.isComplete()&&(this._dotLottieCore.config().loopAnimation?this._eventManager.dispatch({type:"loop",loopCount:this._dotLottieCore.loopCount()}):this._eventManager.dispatch({type:"complete"}))),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this))}play(){if(this._dotLottieCore===null)return;let n=this._dotLottieCore.play();this._isFrozen=!1,n&&(this._eventManager.dispatch({type:"play"}),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this)))}pause(){this._dotLottieCore!==null&&this._dotLottieCore.pause()&&this._eventManager.dispatch({type:"pause"})}stop(){this._dotLottieCore!==null&&this._dotLottieCore.stop()&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render(),this._eventManager.dispatch({type:"stop"}))}setFrame(n){this._dotLottieCore===null||n<0||n>this._dotLottieCore.totalFrames()||this._dotLottieCore.seek(n)&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render())}setSpeed(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{speed:n}))}setBackgroundColor(n){this._dotLottieCore!==null&&(Et&&this._canvas instanceof HTMLCanvasElement?this._canvas.style.backgroundColor=n:this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{backgroundColor:Di(n)})),this._backgroundColor=n)}setLoop(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{loopAnimation:n}))}setUseFrameInterpolation(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{useFrameInterpolation:n}))}addEventListener(n,a){this._eventManager.addEventListener(n,a)}removeEventListener(n,a){this._eventManager.removeEventListener(n,a)}destroy(){this._dotLottieCore?.delete(),this._dotLottieCore=null,this._context=null,this._eventManager.dispatch({type:"destroy"}),this._eventManager.removeAllEventListeners(),this._cleanupStateMachineListeners()}freeze(){this._animationFrameId!==null&&(this._frameManager.cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null,this._isFrozen=!0,this._eventManager.dispatch({type:"freeze"}))}unfreeze(){this._animationFrameId===null&&(this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this)),this._isFrozen=!1,this._eventManager.dispatch({type:"unfreeze"}))}resize(){if(Et&&this._canvas instanceof HTMLCanvasElement){let n=this._renderConfig.devicePixelRatio||window.devicePixelRatio||1,{height:a,width:c}=this._canvas.getBoundingClientRect();this._canvas.width=c*n,this._canvas.height=a*n}this._dotLottieCore?.resize(this._canvas.width,this._canvas.height)&&this._render()}setSegment(n,a){this._dotLottieCore===null||R._wasmModule===null||this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{segment:un([n,a],R._wasmModule)}))}setMode(n){this._dotLottieCore===null||R._wasmModule===null||this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{mode:ln(n,R._wasmModule)}))}setRenderConfig(n){this._renderConfig=n}loadAnimation(n){this._dotLottieCore===null||this._dotLottieCore.activeAnimationId()===n||(this._dotLottieCore.loadAnimation(n,this._canvas.width,this._canvas.height)?(this._eventManager.dispatch({type:"load"}),this.resize()):this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to animation :${n}`)}))}setMarker(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{marker:n}))}markers(){let n=this._dotLottieCore?.markers();if(n){let a=[];for(let c=0;cn in s?Pn(s,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[n]=a;var I=(s,n,a)=>An(s,typeof n!="symbol"?n+"":n,a);var Ke=class{requestAnimationFrame(n){return requestAnimationFrame(n)}cancelAnimationFrame(n){cancelAnimationFrame(n);}},Xe=class{constructor(){I(this,"_lastHandleId",0);I(this,"_lastImmediate",null);}requestAnimationFrame(n){return this._lastHandleId>=Number.MAX_SAFE_INTEGER&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{n(Date.now());}),this._lastHandleId}cancelAnimationFrame(n){this._lastImmediate&&clearImmediate(this._lastImmediate);}},Ie=class{constructor(){I(this,"_strategy");this._strategy=typeof requestAnimationFrame=="function"?new Ke:new Xe;}requestAnimationFrame(n){return this._strategy.requestAnimationFrame(n)}cancelAnimationFrame(n){this._strategy.cancelAnimationFrame(n);}};var te=typeof window<"u"&&typeof window.document<"u";var me={name:"@lottiefiles/dotlottie-web",version:"0.28.0",type:"module",description:"Lottie and DotLottie player for the web",repository:{type:"git",url:"git+https://github.com/LottieFiles/dotlottie-web.git",directory:"packages/web"},homepage:"https://github.com/LottieFiles/dotlottie-web#readme",bugs:"https://github.com/LottieFiles/dotlottie-web/issues",author:"LottieFiles",contributors:["Abdelrahman Ashraf "],license:"MIT",main:"dist/index.cjs",module:"dist/index.js",types:"dist/index.d.ts",files:["dist"],keywords:["dotlottie","lottie","player","animation","web","canvas","javascript","thorvg"],scripts:{build:"tsup",dev:"tsup --watch",lint:"eslint --fix .","stats:eslint":"cross-env TIMING=1 eslint .","stats:ts":"tsc -p tsconfig.build.json --extendedDiagnostics",test:"vitest run --browser.headless","test:coverage":"vitest run --browser.headless --coverage","test:watch":"vitest","type-check":"tsc --noEmit"},devDependencies:{"@types/node":"^20.10.5","@vitest/browser":"^1.2.2 ","@vitest/coverage-istanbul":"^1.2.2","cross-env":"7.0.3",tsup:"8.1.0",typescript:"5.0.4",vitest:"^1.2.2",webdriverio:"^8.32.0"},publishConfig:{access:"public"}};var Sn=(()=>{var s=typeof document<"u"?document.currentScript?.src:void 0;return function(n={}){var a=n,d,w,T=new Promise((e,t)=>{d=e,w=t;}),W=Object.assign({},a),Y="./this.program",j="";typeof document<"u"&&document.currentScript&&(j=document.currentScript.src),s&&(j=s),j.startsWith("blob:")?j="":j=j.substr(0,j.replace(/[?#].*/,"").lastIndexOf("/")+1);var Wt=a.print||console.log.bind(console),Q=a.printErr||console.error.bind(console);Object.assign(a,W),W=null,a.thisProgram&&(Y=a.thisProgram);var ne;a.wasmBinary&&(ne=a.wasmBinary);var ve,tt=!1,G,L,Z,re,A,b,nt,rt;function at(){var e=ve.buffer;a.HEAP8=G=new Int8Array(e),a.HEAP16=Z=new Int16Array(e),a.HEAPU8=L=new Uint8Array(e),a.HEAPU16=re=new Uint16Array(e),a.HEAP32=A=new Int32Array(e),a.HEAPU32=b=new Uint32Array(e),a.HEAPF32=nt=new Float32Array(e),a.HEAPF64=rt=new Float64Array(e);}var ot=[],it=[],st=[];function jt(){var e=a.preRun.shift();ot.unshift(e);}var N=0,ae=null;function ye(e){throw a.onAbort?.(e),e="Aborted("+e+")",Q(e),tt=!0,e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info."),w(e),e}var lt=e=>e.startsWith("data:application/octet-stream;base64,"),q;if(q="DotLottiePlayer.wasm",!lt(q)){var dt=q;q=a.locateFile?a.locateFile(dt,j):j+dt;}function ut(e){if(e==q&&ne)return new Uint8Array(ne);throw "both async and sync fetching of the wasm failed"}function Bt(e){return ne||typeof fetch!="function"?Promise.resolve().then(()=>ut(e)):fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw `failed to load wasm binary file at \'${e}\'`;return t.arrayBuffer()}).catch(()=>ut(e))}function ct(e,t,r){return Bt(e).then(o=>WebAssembly.instantiate(o,t)).then(r,o=>{Q(`failed to asynchronously prepare wasm: ${o}`),ye(o);})}function Ut(e,t){var r=q;return ne||typeof WebAssembly.instantiateStreaming!="function"||lt(r)||typeof fetch!="function"?ct(r,e,t):fetch(r,{credentials:"same-origin"}).then(o=>WebAssembly.instantiateStreaming(o,e).then(t,function(i){return Q(`wasm streaming compile failed: ${i}`),Q("falling back to ArrayBuffer instantiation"),ct(r,e,t)}))}var Ae=e=>{for(;0{var o=t+r;for(r=t;e[r]&&!(r>=o);)++r;if(16i?o+=String.fromCharCode(i):(i-=65536,o+=String.fromCharCode(55296|i>>10,56320|i&1023));}}else o+=String.fromCharCode(i);}return o};class Ht{constructor(t){this.ya=t-24;}}var pt=0,mt=e=>{for(var t=0,r=0;r=o?t++:2047>=o?t+=2:55296<=o&&57343>=o?(t+=4,++r):t+=3;}return t},ft=(e,t,r,o)=>{if(0=l){var h=e.charCodeAt(++i);l=65536+((l&1023)<<10)|h&1023;}if(127>=l){if(r>=o)break;t[r++]=l;}else {if(2047>=l){if(r+1>=o)break;t[r++]=192|l>>6;}else {if(65535>=l){if(r+2>=o)break;t[r++]=224|l>>12;}else {if(r+3>=o)break;t[r++]=240|l>>18,t[r++]=128|l>>12&63;}t[r++]=128|l>>6&63;}t[r++]=128|l&63;}}t[r]=0;}},ge={},Te=e=>{for(;e.length;){var t=e.pop();e.pop()(t);}};function oe(e){return this.fromWireType(b[e>>2])}var ee={},K={},we={},ie,H=(e,t,r)=>{function o(c){if(c=r(c),c.length!==e.length)throw new ie("Mismatched type converter count");for(var m=0;m{K.hasOwnProperty(c)?i[m]=K[c]:(l.push(c),ee.hasOwnProperty(c)||(ee[c]=[]),ee[c].push(()=>{i[m]=K[c],++h,h===l.length&&o(i);}));}),l.length===0&&o(i);},vt,P=e=>{for(var t="";L[e];)t+=vt[L[e++]];return t},g;function Yt(e,t,r={}){var o=t.name;if(!e)throw new g(`type "${o}" must have a positive integer typeid pointer`);if(K.hasOwnProperty(e)){if(r.ib)return;throw new g(`Cannot register type \'${o}\' twice`)}K[e]=t,delete we[e],ee.hasOwnProperty(e)&&(t=ee[e],delete ee[e],t.forEach(i=>i()));}function k(e,t,r={}){if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Yt(e,t,r)}var Se=e=>{throw new g(e.ma.za.xa.name+" instance already deleted")},Re=!1,yt=()=>{},gt=(e,t,r)=>t===r?e:r.Ca===void 0?null:(e=gt(e,t,r.Ca),e===null?null:r.ab(e)),wt={},se=[],$e=()=>{for(;se.length;){var e=se.pop();e.ma.Ka=!1,e.delete();}},le,de={},Gt=(e,t)=>{if(t===void 0)throw new g("ptr should not be undefined");for(;e.Ca;)t=e.Na(t),e=e.Ca;return de[t]},_e=(e,t)=>{if(!t.za||!t.ya)throw new ie("makeClassHandle requires ptr and ptrType");if(!!t.Da!=!!t.Aa)throw new ie("Both smartPtrType and smartPtr must be specified");return t.count={value:1},ue(Object.create(e,{ma:{value:t,writable:!0}}))},ue=e=>typeof FinalizationRegistry>"u"?(ue=t=>t,e):(Re=new FinalizationRegistry(t=>{t=t.ma,--t.count.value,t.count.value===0&&(t.Aa?t.Da.Fa(t.Aa):t.za.xa.Fa(t.ya));}),ue=t=>{var r=t.ma;return r.Aa&&Re.register(t,{ma:r},t),t},yt=t=>{Re.unregister(t);},ue(e));function Ee(){}var ce=(e,t)=>Object.defineProperty(t,"name",{value:e}),_t=(e,t,r)=>{if(e[t].Ba===void 0){var o=e[t];e[t]=function(...i){if(!e[t].Ba.hasOwnProperty(i.length))throw new g(`Function \'${r}\' called with an invalid number of arguments (${i.length}) - expects one of (${e[t].Ba})!`);return e[t].Ba[i.length].apply(this,i)},e[t].Ba=[],e[t].Ba[o.Oa]=o;}},ke=(e,t,r)=>{if(a.hasOwnProperty(e)){if(r===void 0||a[e].Ba!==void 0&&a[e].Ba[r]!==void 0)throw new g(`Cannot register public name \'${e}\' twice`);if(_t(a,e,e),a.hasOwnProperty(r))throw new g(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`);a[e].Ba[r]=t;}else a[e]=t,r!==void 0&&(a[e].vb=r);},Nt=e=>{if(e===void 0)return "_unknown";e=e.replace(/[^a-zA-Z0-9_]/g,"$");var t=e.charCodeAt(0);return 48<=t&&57>=t?`_${e}`:e};function Jt(e,t,r,o,i,l,h,c){this.name=e,this.constructor=t,this.La=r,this.Fa=o,this.Ca=i,this.cb=l,this.Na=h,this.ab=c,this.kb=[];}var De=(e,t,r)=>{for(;t!==r;){if(!t.Na)throw new g(`Expected null or instance of ${r.name}, got an instance of ${t.name}`);e=t.Na(e),t=t.Ca;}return e};function Kt(e,t){if(t===null){if(this.Ta)throw new g(`null is not a valid ${this.name}`);return 0}if(!t.ma)throw new g(`Cannot pass "${He(t)}" as a ${this.name}`);if(!t.ma.ya)throw new g(`Cannot pass deleted object as a pointer of type ${this.name}`);return De(t.ma.ya,t.ma.za.xa,this.xa)}function Xt(e,t){if(t===null){if(this.Ta)throw new g(`null is not a valid ${this.name}`);if(this.Qa){var r=this.Ua();return e!==null&&e.push(this.Fa,r),r}return 0}if(!t||!t.ma)throw new g(`Cannot pass "${He(t)}" as a ${this.name}`);if(!t.ma.ya)throw new g(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.Pa&&t.ma.za.Pa)throw new g(`Cannot convert argument of type ${t.ma.Da?t.ma.Da.name:t.ma.za.name} to parameter type ${this.name}`);if(r=De(t.ma.ya,t.ma.za.xa,this.xa),this.Qa){if(t.ma.Aa===void 0)throw new g("Passing raw pointer to smart pointer is illegal");switch(this.pb){case 0:if(t.ma.Da===this)r=t.ma.Aa;else throw new g(`Cannot convert argument of type ${t.ma.Da?t.ma.Da.name:t.ma.za.name} to parameter type ${this.name}`);break;case 1:r=t.ma.Aa;break;case 2:if(t.ma.Da===this)r=t.ma.Aa;else {var o=t.clone();r=this.lb(r,Me(()=>o.delete())),e!==null&&e.push(this.Fa,r);}break;default:throw new g("Unsupporting sharing policy")}}return r}function Qt(e,t){if(t===null){if(this.Ta)throw new g(`null is not a valid ${this.name}`);return 0}if(!t.ma)throw new g(`Cannot pass "${He(t)}" as a ${this.name}`);if(!t.ma.ya)throw new g(`Cannot pass deleted object as a pointer of type ${this.name}`);if(t.ma.za.Pa)throw new g(`Cannot convert argument of type ${t.ma.za.name} to parameter type ${this.name}`);return De(t.ma.ya,t.ma.za.xa,this.xa)}function he(e,t,r,o,i,l,h,c,m,p,f){this.name=e,this.xa=t,this.Ta=r,this.Pa=o,this.Qa=i,this.jb=l,this.pb=h,this.Za=c,this.Ua=m,this.lb=p,this.Fa=f,i||t.Ca!==void 0?this.toWireType=Xt:(this.toWireType=o?Kt:Qt,this.Ea=null);}var Et=(e,t,r)=>{if(!a.hasOwnProperty(e))throw new ie("Replacing nonexistent public symbol");a[e].Ba!==void 0&&r!==void 0?a[e].Ba[r]=t:(a[e]=t,a[e].Oa=r);},$,Zt=(e,t,r=[])=>(e.includes("j")?(e=e.replace(/p/g,"i"),t=(0, a["dynCall_"+e])(t,...r)):t=$.get(t)(...r),t),qt=(e,t)=>(...r)=>Zt(e,t,r),S=(e,t)=>{e=P(e);var r=e.includes("j")?qt(e,t):$.get(t);if(typeof r!="function")throw new g(`unknown function pointer with signature ${e}: ${t}`);return r},Ct,Mt=e=>{e=St(e);var t=P(e);return U(e),t},Ce=(e,t)=>{function r(l){i[l]||K[l]||(we[l]?we[l].forEach(r):(o.push(l),i[l]=!0));}var o=[],i={};throw t.forEach(r),new Ct(`${e}: `+o.map(Mt).join([", "]))},ze=(e,t)=>{for(var r=[],o=0;o>2]);return r};function en(e){for(var t=1;tl)throw new g("argTypes array size mismatch! Must at least get return value and \'this\' types!");var h=t[1]!==null&&r!==null,c=en(t),m=t[0].name!=="void",p=l-2,f=Array(p),_=[],C=[];return ce(e,function(...u){if(u.length!==p)throw new g(`function ${e} called with ${u.length} arguments, expected ${p}`);if(C.length=0,_.length=h?2:1,_[0]=i,h){var v=t[1].toWireType(C,this);_[1]=v;}for(var y=0;y{e=e.trim();let t=e.indexOf("(");return t!==-1?e.substr(0,t):e},We=[],B=[],je=e=>{9{if(!e)throw new g("Cannot use deleted val. handle = "+e);return B[e]},Me=e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:let t=We.pop()||B.length;return B[t]=e,B[t+1]=1,t}},Lt={name:"emscripten::val",fromWireType:e=>{var t=Be(e);return je(e),t},toWireType:(e,t)=>Me(t),argPackAdvance:8,readValueFromPointer:oe,Ea:null},tn=(e,t,r)=>{switch(t){case 1:return r?function(o){return this.fromWireType(G[o])}:function(o){return this.fromWireType(L[o])};case 2:return r?function(o){return this.fromWireType(Z[o>>1])}:function(o){return this.fromWireType(re[o>>1])};case 4:return r?function(o){return this.fromWireType(A[o>>2])}:function(o){return this.fromWireType(b[o>>2])};default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},Ue=(e,t)=>{var r=K[e];if(r===void 0)throw e=`${t} has unknown type ${Mt(e)}`,new g(e);return r},He=e=>{if(e===null)return "null";var t=typeof e;return t==="object"||t==="array"||t==="function"?e.toString():""+e},nn=(e,t)=>{switch(t){case 4:return function(r){return this.fromWireType(nt[r>>2])};case 8:return function(r){return this.fromWireType(rt[r>>3])};default:throw new TypeError(`invalid float width (${t}): ${e}`)}},rn=(e,t,r)=>{switch(t){case 1:return r?o=>G[o]:o=>L[o];case 2:return r?o=>Z[o>>1]:o=>re[o>>1];case 4:return r?o=>A[o>>2]:o=>b[o>>2];default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},Ft=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,an=(e,t)=>{for(var r=e>>1,o=r+t/2;!(r>=o)&&re[r];)++r;if(r<<=1,32=t/2);++o){var i=Z[e+2*o>>1];if(i==0)break;r+=String.fromCharCode(i);}return r},on=(e,t,r)=>{if(r??(r=2147483647),2>r)return 0;r-=2;var o=t;r=r<2*e.length?r/2:e.length;for(var i=0;i>1]=e.charCodeAt(i),t+=2;return Z[t>>1]=0,t-o},sn=e=>2*e.length,ln=(e,t)=>{for(var r=0,o="";!(r>=t/4);){var i=A[e+4*r>>2];if(i==0)break;++r,65536<=i?(i-=65536,o+=String.fromCharCode(55296|i>>10,56320|i&1023)):o+=String.fromCharCode(i);}return o},dn=(e,t,r)=>{if(r??(r=2147483647),4>r)return 0;var o=t;r=o+r-4;for(var i=0;i=l){var h=e.charCodeAt(++i);l=65536+((l&1023)<<10)|h&1023;}if(A[t>>2]=l,t+=4,t+4>r)break}return A[t>>2]=0,t-o},un=e=>{for(var t=0,r=0;r=o&&++r,t+=4;}return t},Ve=[],cn=e=>{var t=Ve.length;return Ve.push(e),t},hn=(e,t)=>{for(var r=Array(e),o=0;o>2],"parameter "+o);return r},pn=Reflect.construct,Ye={},It=()=>{if(!Ge){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Y||"./this.program"},t;for(t in Ye)Ye[t]===void 0?delete e[t]:e[t]=Ye[t];var r=[];for(t in e)r.push(`${t}=${e[t]}`);Ge=r;}return Ge},Ge,mn=[null,[],[]],fn=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return e=>crypto.getRandomValues(e);ye("initRandomDevice");},xt=e=>(xt=fn())(e),be=e=>e%4===0&&(e%100!==0||e%400===0),Pt=[31,29,31,30,31,30,31,31,30,31,30,31],At=[31,28,31,30,31,30,31,31,30,31,30,31];function vn(e){var t=Array(mt(e)+1);return ft(e,t,0,t.length),t}var yn=(e,t,r,o)=>{function i(u,v,y){for(u=typeof u=="number"?u.toString():u||"";u.lengthV?-1:0x-u.getDate())v-=x-u.getDate()+1,u.setDate(1),11>y?u.setMonth(y+1):(u.setMonth(0),u.setFullYear(u.getFullYear()+1));else {u.setDate(u.getDate()+v);break}}return y=new Date(u.getFullYear()+1,0,4),v=c(new Date(u.getFullYear(),0,4)),y=c(y),0>=h(v,u)?0>=h(y,u)?u.getFullYear()+1:u.getFullYear():u.getFullYear()-1}var p=b[o+40>>2];o={sb:A[o>>2],rb:A[o+4>>2],Ra:A[o+8>>2],Va:A[o+12>>2],Sa:A[o+16>>2],Ja:A[o+20>>2],Ga:A[o+24>>2],Ia:A[o+28>>2],wb:A[o+32>>2],qb:A[o+36>>2],tb:p&&p?J(L,p):""},r=r?J(L,r):"",p={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var f in p)r=r.replace(new RegExp(f,"g"),p[f]);var _="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),C="January February March April May June July August September October November December".split(" ");p={"%a":u=>_[u.Ga].substring(0,3),"%A":u=>_[u.Ga],"%b":u=>C[u.Sa].substring(0,3),"%B":u=>C[u.Sa],"%C":u=>l((u.Ja+1900)/100|0,2),"%d":u=>l(u.Va,2),"%e":u=>i(u.Va,2," "),"%g":u=>m(u).toString().substring(2),"%G":m,"%H":u=>l(u.Ra,2),"%I":u=>(u=u.Ra,u==0?u=12:12{for(var v=0,y=0;y<=u.Sa-1;v+=(be(u.Ja+1900)?Pt:At)[y++]);return l(u.Va+v,3)},"%m":u=>l(u.Sa+1,2),"%M":u=>l(u.rb,2),"%n":()=>`\n`,"%p":u=>0<=u.Ra&&12>u.Ra?"AM":"PM","%S":u=>l(u.sb,2),"%t":()=>" ","%u":u=>u.Ga||7,"%U":u=>l(Math.floor((u.Ia+7-u.Ga)/7),2),"%V":u=>{var v=Math.floor((u.Ia+7-(u.Ga+6)%7)/7);if(2>=(u.Ga+371-u.Ia-2)%7&&v++,v)v==53&&(y=(u.Ga+371-u.Ia)%7,y==4||y==3&&be(u.Ja)||(v=1));else {v=52;var y=(u.Ga+7-u.Ia-1)%7;(y==4||y==5&&be(u.Ja%400-1))&&v++;}return l(v,2)},"%w":u=>u.Ga,"%W":u=>l(Math.floor((u.Ia+7-(u.Ga+6)%7)/7),2),"%y":u=>(u.Ja+1900).toString().substring(2),"%Y":u=>u.Ja+1900,"%z":u=>{u=u.qb;var v=0<=u;return u=Math.abs(u)/60,(v?"+":"-")+("0000"+(u/60*100+u%60)).slice(-4)},"%Z":u=>u.tb,"%%":()=>"%"},r=r.replace(/%%/g,"\\0\\0");for(f in p)r.includes(f)&&(r=r.replace(new RegExp(f,"g"),p[f](o)));return r=r.replace(/\\0\\0/g,"%"),f=vn(r),f.length>t?0:(G.set(f,e),f.length-1)};ie=a.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError";}};for(var Tt=Array(256),Le=0;256>Le;++Le)Tt[Le]=String.fromCharCode(Le);vt=Tt,g=a.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError";}},Object.assign(Ee.prototype,{isAliasOf:function(e){if(!(this instanceof Ee&&e instanceof Ee))return !1;var t=this.ma.za.xa,r=this.ma.ya;e.ma=e.ma;var o=e.ma.za.xa;for(e=e.ma.ya;t.Ca;)r=t.Na(r),t=t.Ca;for(;o.Ca;)e=o.Na(e),o=o.Ca;return t===o&&r===e},clone:function(){if(this.ma.ya||Se(this),this.ma.Ma)return this.ma.count.value+=1,this;var e=ue,t=Object,r=t.create,o=Object.getPrototypeOf(this),i=this.ma;return e=e(r.call(t,o,{ma:{value:{count:i.count,Ka:i.Ka,Ma:i.Ma,ya:i.ya,za:i.za,Aa:i.Aa,Da:i.Da}}})),e.ma.count.value+=1,e.ma.Ka=!1,e},delete(){if(this.ma.ya||Se(this),this.ma.Ka&&!this.ma.Ma)throw new g("Object already scheduled for deletion");yt(this);var e=this.ma;--e.count.value,e.count.value===0&&(e.Aa?e.Da.Fa(e.Aa):e.za.xa.Fa(e.ya)),this.ma.Ma||(this.ma.Aa=void 0,this.ma.ya=void 0);},isDeleted:function(){return !this.ma.ya},deleteLater:function(){if(this.ma.ya||Se(this),this.ma.Ka&&!this.ma.Ma)throw new g("Object already scheduled for deletion");return se.push(this),se.length===1&&le&&le($e),this.ma.Ka=!0,this}}),a.getInheritedInstanceCount=()=>Object.keys(de).length,a.getLiveInheritedInstances=()=>{var e=[],t;for(t in de)de.hasOwnProperty(t)&&e.push(de[t]);return e},a.flushPendingDeletes=$e,a.setDelayFunction=e=>{le=e,se.length&&le&&le($e);},Object.assign(he.prototype,{eb(e){return this.Za&&(e=this.Za(e)),e},Xa(e){this.Fa?.(e);},argPackAdvance:8,readValueFromPointer:oe,fromWireType:function(e){function t(){return this.Qa?_e(this.xa.La,{za:this.jb,ya:r,Da:this,Aa:e}):_e(this.xa.La,{za:this,ya:e})}var r=this.eb(e);if(!r)return this.Xa(e),null;var o=Gt(this.xa,r);if(o!==void 0)return o.ma.count.value===0?(o.ma.ya=r,o.ma.Aa=e,o.clone()):(o=o.clone(),this.Xa(e),o);if(o=this.xa.cb(r),o=wt[o],!o)return t.call(this);o=this.Pa?o.$a:o.pointerType;var i=gt(r,this.xa,o.xa);return i===null?t.call(this):this.Qa?_e(o.xa.La,{za:o,ya:i,Da:this,Aa:e}):_e(o.xa.La,{za:o,ya:i})}}),Ct=a.UnboundTypeError=((e,t)=>{var r=ce(t,function(o){this.name=t,this.message=o,o=Error(o).stack,o!==void 0&&(this.stack=this.toString()+`\n`+o.replace(/^Error(:[^\\n]*)?\\n/,""));});return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},r})(Error,"UnboundTypeError"),B.push(0,1,void 0,1,null,1,!0,1,!1,1),a.count_emval_handles=()=>B.length/2-5-We.length;var gn={c:(e,t,r,o)=>{ye(`Assertion failed: ${e?J(L,e):""}, at: `+[t?t?J(L,t):"":"unknown filename",r,o?o?J(L,o):"":"unknown function"]);},m:(e,t,r)=>{var o=new Ht(e);throw b[o.ya+16>>2]=0,b[o.ya+4>>2]=t,b[o.ya+8>>2]=r,pt=e,pt},B:function(){return 0},P:()=>{},M:()=>{},R:function(){return 0},N:()=>{},A:function(){},O:()=>{},v:e=>{var t=ge[e];delete ge[e];var r=t.Ua,o=t.Fa,i=t.Ya,l=i.map(h=>h.hb).concat(i.map(h=>h.nb));H([e],l,h=>{var c={};return i.forEach((m,p)=>{var f=h[p],_=m.fb,C=m.gb,u=h[p+i.length],v=m.mb,y=m.ob;c[m.bb]={read:x=>f.fromWireType(_(C,x)),write:(x,V)=>{var R=[];v(y,x,u.toWireType(R,V)),Te(R);}};}),[{name:t.name,fromWireType:m=>{var p={},f;for(f in c)p[f]=c[f].read(m);return o(m),p},toWireType:(m,p)=>{for(var f in c)if(!(f in p))throw new TypeError(`Missing field: "${f}"`);var _=r();for(f in c)c[f].write(_,p[f]);return m!==null&&m.push(o,_),_},argPackAdvance:8,readValueFromPointer:oe,Ea:o}]});},I:()=>{},Y:(e,t,r,o)=>{t=P(t),k(e,{name:t,fromWireType:function(i){return !!i},toWireType:function(i,l){return l?r:o},argPackAdvance:8,readValueFromPointer:function(i){return this.fromWireType(L[i])},Ea:null});},r:(e,t,r,o,i,l,h,c,m,p,f,_,C)=>{f=P(f),l=S(i,l),c&&(c=S(h,c)),p&&(p=S(m,p)),C=S(_,C);var u=Nt(f);ke(u,function(){Ce(`Cannot construct ${f} due to unbound types`,[o]);}),H([e,t,r],o?[o]:[],v=>{if(v=v[0],o)var y=v.xa,x=y.La;else x=Ee.prototype;v=ce(f,function(...Je){if(Object.getPrototypeOf(this)!==V)throw new g("Use \'new\' to construct "+f);if(R.Ha===void 0)throw new g(f+" has no accessible constructor");var kt=R.Ha[Je.length];if(kt===void 0)throw new g(`Tried to invoke ctor of ${f} with invalid number of parameters (${Je.length}) - expected (${Object.keys(R.Ha).toString()}) parameters instead!`);return kt.apply(this,Je)});var V=Object.create(x,{constructor:{value:v}});v.prototype=V;var R=new Jt(f,v,V,C,y,l,c,p);if(R.Ca){var pe;(pe=R.Ca).Wa??(pe.Wa=[]),R.Ca.Wa.push(R);}return y=new he(f,R,!0,!1,!1),pe=new he(f+"*",R,!1,!1,!1),x=new he(f+" const*",R,!1,!0,!1),wt[e]={pointerType:pe,$a:x},Et(u,v),[y,pe,x]});},q:(e,t,r,o,i,l)=>{var h=ze(t,r);i=S(o,i),H([],[e],c=>{c=c[0];var m=`constructor ${c.name}`;if(c.xa.Ha===void 0&&(c.xa.Ha=[]),c.xa.Ha[t-1]!==void 0)throw new g(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class \'${c.name}\'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return c.xa.Ha[t-1]=()=>{Ce(`Cannot construct ${c.name} due to unbound types`,h);},H([],h,p=>(p.splice(1,0,null),c.xa.Ha[t-1]=Oe(m,p,null,i,l),[])),[]});},f:(e,t,r,o,i,l,h,c)=>{var m=ze(r,o);t=P(t),t=bt(t),l=S(i,l),H([],[e],p=>{function f(){Ce(`Cannot call ${_} due to unbound types`,m);}p=p[0];var _=`${p.name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]),c&&p.xa.kb.push(t);var C=p.xa.La,u=C[t];return u===void 0||u.Ba===void 0&&u.className!==p.name&&u.Oa===r-2?(f.Oa=r-2,f.className=p.name,C[t]=f):(_t(C,t,_),C[t].Ba[r-2]=f),H([],m,v=>(v=Oe(_,v,p,l,h),C[t].Ba===void 0?(v.Oa=r-2,C[t]=v):C[t].Ba[r-2]=v,[])),[]});},X:e=>k(e,Lt),x:(e,t,r,o)=>{function i(){}t=P(t),i.values={},k(e,{name:t,constructor:i,fromWireType:function(l){return this.constructor.values[l]},toWireType:(l,h)=>h.value,argPackAdvance:8,readValueFromPointer:tn(t,r,o),Ea:null}),ke(t,i);},k:(e,t,r)=>{var o=Ue(e,"enum");t=P(t),e=o.constructor,o=Object.create(o.constructor.prototype,{value:{value:r},constructor:{value:ce(`${o.name}_${t}`,function(){})}}),e.values[r]=o,e[t]=o;},C:(e,t,r)=>{t=P(t),k(e,{name:t,fromWireType:o=>o,toWireType:(o,i)=>i,argPackAdvance:8,readValueFromPointer:nn(t,r),Ea:null});},E:(e,t,r,o,i,l)=>{var h=ze(t,r);e=P(e),e=bt(e),i=S(o,i),ke(e,function(){Ce(`Cannot call ${e} due to unbound types`,h);},t-1),H([],h,c=>(Et(e,Oe(e,[c[0],null].concat(c.slice(1)),null,i,l),t-1),[]));},l:(e,t,r,o,i)=>{if(t=P(t),i===-1&&(i=4294967295),i=c=>c,o===0){var l=32-8*r;i=c=>c<>>l;}var h=t.includes("unsigned")?function(c,m){return m>>>0}:function(c,m){return m};k(e,{name:t,fromWireType:i,toWireType:h,argPackAdvance:8,readValueFromPointer:rn(t,r,o!==0),Ea:null});},g:(e,t,r)=>{function o(l){return new i(G.buffer,b[l+4>>2],b[l>>2])}var i=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];r=P(r),k(e,{name:r,fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ib:!0});},w:e=>{k(e,Lt);},ca:(e,t,r,o,i,l,h,c,m,p,f,_)=>{r=P(r),l=S(i,l),c=S(h,c),p=S(m,p),_=S(f,_),H([e],[t],C=>(C=C[0],[new he(r,C.xa,!1,!1,!0,C,o,l,c,p,_)]));},D:(e,t)=>{t=P(t);var r=t==="std::string";k(e,{name:t,fromWireType:function(o){var i=b[o>>2],l=o+4;if(r)for(var h=l,c=0;c<=i;++c){var m=l+c;if(c==i||L[m]==0){if(h=h?J(L,h,m-h):"",p===void 0)var p=h;else p+="\\0",p+=h;h=m+1;}}else {for(p=Array(i),c=0;c>2]=h,r&&l)ft(i,L,m,h+1);else if(l)for(l=0;l{if(r=P(r),t===2)var o=an,i=on,l=sn,h=c=>re[c>>1];else t===4&&(o=ln,i=dn,l=un,h=c=>b[c>>2]);k(e,{name:r,fromWireType:c=>{for(var m=b[c>>2],p,f=c+4,_=0;_<=m;++_){var C=c+4+_*t;(_==m||h(C)==0)&&(f=o(f,C-f),p===void 0?p=f:(p+="\\0",p+=f),f=C+t);}return U(c),p},toWireType:(c,m)=>{if(typeof m!="string")throw new g(`Cannot pass non-string to C++ string type ${r}`);var p=l(m),f=Ne(4+p+t);return b[f>>2]=p/t,i(m,f+4,p+t),c!==null&&c.push(U,f),f},argPackAdvance:8,readValueFromPointer:oe,Ea(c){U(c);}});},s:(e,t,r,o,i,l)=>{ge[e]={name:P(t),Ua:S(r,o),Fa:S(i,l),Ya:[]};},j:(e,t,r,o,i,l,h,c,m,p)=>{ge[e].Ya.push({bb:P(t),hb:r,fb:S(o,i),gb:l,nb:h,mb:S(c,m),ob:p});},Z:(e,t)=>{t=P(t),k(e,{ub:!0,name:t,argPackAdvance:0,fromWireType:()=>{},toWireType:()=>{}});},J:()=>{throw 1/0},aa:(e,t,r,o)=>(e=Ve[e],t=Be(t),e(null,t,r,o)),F:je,$:(e,t,r)=>{var o=hn(e,t),i=o.shift();e--;var l=Array(e);return t=`methodCaller<(${o.map(h=>h.name).join(", ")}) => ${i.name}>`,cn(ce(t,(h,c,m,p)=>{for(var f=0,_=0;_>2]=Me(h)),c}))},ba:e=>{9{var t=Be(e);Te(t),je(e);},o:(e,t)=>(e=Ue(e,"_emval_take_value"),e=e.readValueFromPointer(t),Me(e)),W:()=>{ye("");},V:()=>performance.now(),L:e=>{var t=L.length;if(e>>>=0,2147483648=r;r*=2){var o=t*(1+.2/r);o=Math.min(o,e+100663296);var i=Math;o=Math.max(e,o);e:{i=(i.min.call(i,2147483648,o+(65536-o%65536)%65536)-ve.buffer.byteLength+65535)/65536;try{ve.grow(i),at();var l=1;break e}catch{}l=void 0;}if(l)return !0}return !1},S:(e,t)=>{var r=0;return It().forEach((o,i)=>{var l=t+r;for(i=b[e+4*i>>2]=l,l=0;l{var r=It();b[e>>2]=r.length;var o=0;return r.forEach(i=>o+=i.length+1),b[t>>2]=o,0},t:()=>52,z:()=>52,H:function(){return 70},Q:(e,t,r,o)=>{for(var i=0,l=0;l>2],c=b[t+4>>2];t+=8;for(var m=0;m>2]=i,0},U:(e,t)=>(xt(L.subarray(e,e+t)),0),i:Mn,d:Cn,e:En,p:bn,y:In,b:wn,a:_n,h:Fn,n:Ln,G:xn,K:(e,t,r,o)=>yn(e,t,r,o)},F=function(){function e(r){return F=r.exports,ve=F.da,at(),$=F.ha,it.unshift(F.ea),N--,a.monitorRunDependencies?.(N),N==0&&(ae&&(r=ae,ae=null,r())),F}var t={a:gn};if(N++,a.monitorRunDependencies?.(N),a.instantiateWasm)try{return a.instantiateWasm(t,e)}catch(r){Q(`Module.instantiateWasm callback failed with error: ${r}`),w(r);}return Ut(t,function(r){e(r.instance);}).catch(w),{}}(),Ne=e=>(Ne=F.fa)(e),St=e=>(St=F.ga)(e),U=e=>(U=F.ia)(e),D=(e,t)=>(D=F.ja)(e,t),z=e=>(z=F.ka)(e),O=()=>(O=F.la)();a.dynCall_iijj=(e,t,r,o,i,l)=>(a.dynCall_iijj=F.na)(e,t,r,o,i,l),a.dynCall_vijj=(e,t,r,o,i,l)=>(a.dynCall_vijj=F.oa)(e,t,r,o,i,l),a.dynCall_jiii=(e,t,r,o)=>(a.dynCall_jiii=F.pa)(e,t,r,o),a.dynCall_jii=(e,t,r)=>(a.dynCall_jii=F.qa)(e,t,r);var Rt=a.dynCall_viiij=(e,t,r,o,i,l)=>(Rt=a.dynCall_viiij=F.ra)(e,t,r,o,i,l);a.dynCall_jiji=(e,t,r,o,i)=>(a.dynCall_jiji=F.sa)(e,t,r,o,i),a.dynCall_viijii=(e,t,r,o,i,l,h)=>(a.dynCall_viijii=F.ta)(e,t,r,o,i,l,h),a.dynCall_iiiiij=(e,t,r,o,i,l,h)=>(a.dynCall_iiiiij=F.ua)(e,t,r,o,i,l,h),a.dynCall_iiiiijj=(e,t,r,o,i,l,h,c,m)=>(a.dynCall_iiiiijj=F.va)(e,t,r,o,i,l,h,c,m),a.dynCall_iiiiiijj=(e,t,r,o,i,l,h,c,m,p)=>(a.dynCall_iiiiiijj=F.wa)(e,t,r,o,i,l,h,c,m,p);function wn(e,t){var r=O();try{$.get(e)(t);}catch(o){if(z(r),o!==o+0)throw o;D(1,0);}}function _n(e,t,r){var o=O();try{$.get(e)(t,r);}catch(i){if(z(o),i!==i+0)throw i;D(1,0);}}function En(e,t,r,o){var i=O();try{return $.get(e)(t,r,o)}catch(l){if(z(i),l!==l+0)throw l;D(1,0);}}function Cn(e,t,r){var o=O();try{return $.get(e)(t,r)}catch(i){if(z(o),i!==i+0)throw i;D(1,0);}}function Mn(e,t){var r=O();try{return $.get(e)(t)}catch(o){if(z(r),o!==o+0)throw o;D(1,0);}}function bn(e,t,r,o,i,l){var h=O();try{return $.get(e)(t,r,o,i,l)}catch(c){if(z(h),c!==c+0)throw c;D(1,0);}}function Ln(e,t,r,o,i){var l=O();try{$.get(e)(t,r,o,i);}catch(h){if(z(l),h!==h+0)throw h;D(1,0);}}function Fn(e,t,r,o){var i=O();try{$.get(e)(t,r,o);}catch(l){if(z(i),l!==l+0)throw l;D(1,0);}}function In(e){var t=O();try{$.get(e)();}catch(r){if(z(t),r!==r+0)throw r;D(1,0);}}function xn(e,t,r,o,i,l){var h=O();try{Rt(e,t,r,o,i,l);}catch(c){if(z(h),c!==c+0)throw c;D(1,0);}}var Fe;ae=function e(){Fe||$t(),Fe||(ae=e);};function $t(){function e(){if(!Fe&&(Fe=!0,a.calledRun=!0,!tt)){if(Ae(it),d(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),a.postRun)for(typeof a.postRun=="function"&&(a.postRun=[a.postRun]);a.postRun.length;){var t=a.postRun.shift();st.unshift(t);}Ae(st);}}if(!(0n})}static async _loadWithBackup(){return this._ModulePromise||(this._ModulePromise=this._tryLoad(this._wasmURL).catch(async n=>{let a=`https://unpkg.com/${me.name}@${me.version}/dist/dotlottie-player.wasm`;console.warn(`Primary WASM load failed from ${this._wasmURL}. Error: ${n.message}`),console.warn(`Attempting to load WASM from backup URL: ${a}`);try{return await this._tryLoad(a)}catch(d){throw console.error(`Primary WASM URL failed: ${n.message}`),console.error(`Backup WASM URL failed: ${d.message}`),new Error("WASM loading failed from all sources.")}})),this._ModulePromise}static async load(){return this._loadWithBackup()}static setWasmUrl(n){this._wasmURL=n,this._ModulePromise=null;}};I(X,"_ModulePromise",null),I(X,"_wasmURL",`https://cdn.jsdelivr.net/npm/${me.name}@${me.version}/dist/dotlottie-player.wasm`);var xe=class{constructor(){I(this,"_eventListeners",new Map);}addEventListener(n,a){let d=this._eventListeners.get(n);d||(d=new Set,this._eventListeners.set(n,d)),d.add(a);}removeEventListener(n,a){let d=this._eventListeners.get(n);d&&(a?(d.delete(a),d.size===0&&this._eventListeners.delete(n)):this._eventListeners.delete(n));}dispatch(n){this._eventListeners.get(n.type)?.forEach(d=>d(n));}removeAllEventListeners(){this._eventListeners.clear();}};function Rn(s){return /^#([\\da-f]{6}|[\\da-f]{8})$/iu.test(s)}function zt(s){if(!Rn(s))return 0;let n=s.replace("#","");return n=n.length===6?`${n}ff`:n,parseInt(n,16)}var Qe=(s,n)=>s==="reverse"?n.Mode.Reverse:s==="bounce"?n.Mode.Bounce:s==="reverse-bounce"?n.Mode.ReverseBounce:n.Mode.Forward,Ze=(s,n)=>s==="contain"?n.Fit.Contain:s==="cover"?n.Fit.Cover:s==="fill"?n.Fit.Fill:s==="fit-height"?n.Fit.FitHeight:s==="fit-width"?n.Fit.FitWidth:n.Fit.None,qe=(s,n)=>{let a=new n.VectorFloat;return a.push_back(s[0]),a.push_back(s[1]),a},et=(s,n)=>{let a=new n.VectorFloat;return s.length!==2||(a.push_back(s[0]),a.push_back(s[1])),a},M=class M{constructor(n){I(this,"_canvas");I(this,"_context",null);I(this,"_eventManager");I(this,"_animationFrameId",null);I(this,"_frameManager");I(this,"_dotLottieCore",null);I(this,"_renderConfig",{});I(this,"_isFrozen",!1);I(this,"_backgroundColor",null);this._canvas=n.canvas,this._context=this._canvas.getContext("2d"),this._eventManager=new xe,this._frameManager=new Ie,this._renderConfig=n.renderConfig??{},X.load().then(a=>{M._wasmModule=a,this._dotLottieCore=new a.DotLottiePlayer({autoplay:n.autoplay??!1,backgroundColor:0,loopAnimation:n.loop??!1,mode:Qe(n.mode??"forward",a),segment:et(n.segment??[],a),speed:n.speed??1,useFrameInterpolation:n.useFrameInterpolation??!0,marker:n.marker??"",layout:n.layout?{align:qe(n.layout.align,a),fit:Ze(n.layout.fit,a)}:a.createDefaultLayout()}),this._eventManager.dispatch({type:"ready"}),n.data?this._loadFromData(n.data):n.src&&this._loadFromSrc(n.src),n.backgroundColor&&this.setBackgroundColor(n.backgroundColor);}).catch(a=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load wasm module: ${a}`)});});}_loadFromSrc(n){async function a(){let d=await fetch(n);if(!d.ok)throw new Error(`Failed to fetch the animation data from URL: ${n}. ${d.status}: ${d.statusText}`);let w=(d.headers.get("content-type")??"").trim(),T;return ["application/json","text/plain"].some(W=>w.startsWith(W))?T=await d.text():T=await d.arrayBuffer(),T}a().then(d=>{this._loadFromData(d);}).catch(d=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load animation data from URL: ${n}. ${d}`)});});}_loadFromData(n){if(this._dotLottieCore===null)return;let a=this._canvas.width,d=this._canvas.height,w=!1;if(typeof n=="string")w=this._dotLottieCore.loadAnimationData(n,a,d);else if(n instanceof ArrayBuffer)w=this._dotLottieCore.loadDotLottieData(n,a,d);else if(typeof n=="object")w=this._dotLottieCore.loadAnimationData(JSON.stringify(n),a,d);else {this._eventManager.dispatch({type:"loadError",error:new Error("Unsupported data type for animation data. Expected a string or ArrayBuffer.")});return}w?(this._eventManager.dispatch({type:"load"}),te&&this.resize(),this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render(),this._dotLottieCore.config().autoplay&&(this._dotLottieCore.play(),this._dotLottieCore.isPlaying()?(this._eventManager.dispatch({type:"play"}),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this))):console.error("something went wrong, the animation was suppose to autoplay"))):this._eventManager.dispatch({type:"loadError",error:new Error("Failed to load animation data")});}get activeAnimationId(){return this._dotLottieCore?.activeAnimationId()}get activeThemeId(){return this._dotLottieCore?.activeThemeId()}get layout(){let n=this._dotLottieCore?.config().layout;if(n)return {align:[n.align.get(0),n.align.get(1)],fit:(()=>{switch(n.fit){case M._wasmModule?.Fit.Contain:return "contain";case M._wasmModule?.Fit.Cover:return "cover";case M._wasmModule?.Fit.Fill:return "fill";case M._wasmModule?.Fit.FitHeight:return "fit-height";case M._wasmModule?.Fit.FitWidth:return "fit-width";case M._wasmModule?.Fit.None:return "none";default:return "contain"}})()}}get marker(){return this._dotLottieCore?.config().marker}get manifest(){try{let n=this._dotLottieCore?.manifestString();if(this._dotLottieCore===null||!n)return null;let a=JSON.parse(n);return Object.keys(a).length===0?null:a}catch{return null}}get renderConfig(){return this._renderConfig}get segment(){let n=this._dotLottieCore?.config().segment;if(n&&n.size()===2)return [n.get(0),n.get(1)]}get loop(){return this._dotLottieCore?.config().loopAnimation??!1}get mode(){let n=this._dotLottieCore?.config().mode;return n===M._wasmModule?.Mode.Reverse?"reverse":n===M._wasmModule?.Mode.Bounce?"bounce":n===M._wasmModule?.Mode.ReverseBounce?"reverse-bounce":"forward"}get isFrozen(){return this._isFrozen}get backgroundColor(){return this._backgroundColor??""}get autoplay(){return this._dotLottieCore?.config().autoplay??!1}get useFrameInterpolation(){return this._dotLottieCore?.config().useFrameInterpolation??!1}get speed(){return this._dotLottieCore?.config().speed??0}get isReady(){return this._dotLottieCore!==null}get isLoaded(){return this._dotLottieCore?.isLoaded()??!1}get isPlaying(){return this._dotLottieCore?.isPlaying()??!1}get isPaused(){return this._dotLottieCore?.isPaused()??!1}get isStopped(){return this._dotLottieCore?.isStopped()??!1}get currentFrame(){return this._dotLottieCore?.currentFrame()??0}get loopCount(){return this._dotLottieCore?.loopCount()??0}get totalFrames(){return this._dotLottieCore?.totalFrames()??0}get duration(){return this._dotLottieCore?.duration()??0}get segmentDuration(){return this._dotLottieCore?.segmentDuration()??0}get canvas(){return this._canvas}load(n){this._dotLottieCore===null||M._wasmModule===null||(this._dotLottieCore.setConfig({autoplay:n.autoplay??!1,backgroundColor:0,loopAnimation:n.loop??!1,mode:Qe(n.mode??"forward",M._wasmModule),segment:et(n.segment??[],M._wasmModule),speed:n.speed??1,useFrameInterpolation:n.useFrameInterpolation??!0,marker:n.marker??"",layout:n.layout?{align:qe(n.layout.align,M._wasmModule),fit:Ze(n.layout.fit,M._wasmModule)}:M._wasmModule.createDefaultLayout()}),n.data?this._loadFromData(n.data):n.src&&this._loadFromSrc(n.src),this.setBackgroundColor(n.backgroundColor??""));}_render(){if(this._dotLottieCore===null||this._context===null)return !1;if(this._dotLottieCore.render()){let a=this._dotLottieCore.buffer(),d=new Uint8ClampedArray(a,0,this._canvas.width*this._canvas.height*4),w=null;return typeof ImageData>"u"?(w=this._context.createImageData(this._canvas.width,this._canvas.height),w.data.set(d)):w=new ImageData(d,this._canvas.width,this._canvas.height),this._context.putImageData(w,0,0),this._eventManager.dispatch({type:"render",currentFrame:this._dotLottieCore.currentFrame()}),!0}return !1}_draw(){if(this._dotLottieCore===null||this._context===null||!this._dotLottieCore.isPlaying())return;let n=this._dotLottieCore.requestFrame();this._dotLottieCore.setFrame(n)&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render()&&this._dotLottieCore.isComplete()&&(this._dotLottieCore.config().loopAnimation?this._eventManager.dispatch({type:"loop",loopCount:this._dotLottieCore.loopCount()}):this._eventManager.dispatch({type:"complete"}))),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this));}play(){if(this._dotLottieCore===null)return;let n=this._dotLottieCore.play();this._isFrozen=!1,n&&(this._eventManager.dispatch({type:"play"}),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this)));}pause(){if(this._dotLottieCore===null)return;this._dotLottieCore.pause()&&this._eventManager.dispatch({type:"pause"});}stop(){if(this._dotLottieCore===null)return;this._dotLottieCore.stop()&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render(),this._eventManager.dispatch({type:"stop"}));}setFrame(n){if(this._dotLottieCore===null||n<0||n>this._dotLottieCore.totalFrames())return;this._dotLottieCore.seek(n)&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render());}setSpeed(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),speed:n});}setBackgroundColor(n){this._dotLottieCore!==null&&(te&&this._canvas instanceof HTMLCanvasElement?this._canvas.style.backgroundColor=n:this._dotLottieCore.setConfig({...this._dotLottieCore.config(),backgroundColor:zt(n)}),this._backgroundColor=n);}setLoop(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),loopAnimation:n});}setUseFrameInterpolation(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),useFrameInterpolation:n});}addEventListener(n,a){this._eventManager.addEventListener(n,a);}removeEventListener(n,a){this._eventManager.removeEventListener(n,a);}destroy(){this._dotLottieCore?.delete(),this._dotLottieCore=null,this._context=null,this._eventManager.dispatch({type:"destroy"}),this._eventManager.removeAllEventListeners(),this._cleanupStateMachineListeners();}freeze(){this._animationFrameId!==null&&(this._frameManager.cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null,this._isFrozen=!0,this._eventManager.dispatch({type:"freeze"}));}unfreeze(){this._animationFrameId===null&&(this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this)),this._isFrozen=!1,this._eventManager.dispatch({type:"unfreeze"}));}resize(){if(te&&this._canvas instanceof HTMLCanvasElement){let a=this._renderConfig.devicePixelRatio||window.devicePixelRatio||1,{height:d,width:w}=this._canvas.getBoundingClientRect();this._canvas.width=w*a,this._canvas.height=d*a;}this._dotLottieCore?.resize(this._canvas.width,this._canvas.height)&&this._render();}setSegment(n,a){this._dotLottieCore===null||M._wasmModule===null||this._dotLottieCore.setConfig({...this._dotLottieCore.config(),segment:et([n,a],M._wasmModule)});}setMode(n){this._dotLottieCore===null||M._wasmModule===null||this._dotLottieCore.setConfig({...this._dotLottieCore.config(),mode:Qe(n,M._wasmModule)});}setRenderConfig(n){this._renderConfig=n;}loadAnimation(n){if(this._dotLottieCore===null||this._dotLottieCore.activeAnimationId()===n)return;this._dotLottieCore.loadAnimation(n,this._canvas.width,this._canvas.height)?(this._eventManager.dispatch({type:"load"}),this.resize()):this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to animation :${n}`)});}setMarker(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),marker:n});}markers(){let n=this._dotLottieCore?.markers();if(n){let a=[];for(let d=0;dn=>{let a={id:"",method:"onReady",result:{instanceId:s,event:n}};self.postMessage(a);},complete:s=>n=>{let a={id:"",method:"onComplete",result:{instanceId:s,event:n}};self.postMessage(a);},load:s=>n=>{let d={id:"",method:"onLoad",result:{instanceId:s,event:n}};self.postMessage(d);},loadError:s=>n=>{let d={id:"",method:"onLoadError",result:{instanceId:s,event:n}};self.postMessage(d);},loop:s=>n=>{let d={id:"",method:"onLoop",result:{instanceId:s,event:n}};self.postMessage(d);},play:s=>n=>{let d={id:"",method:"onPlay",result:{instanceId:s,event:n}};self.postMessage(d);},pause:s=>n=>{let d={id:"",method:"onPause",result:{instanceId:s,event:n}};self.postMessage(d);},stop:s=>n=>{let d={id:"",method:"onStop",result:{instanceId:s,event:n}};self.postMessage(d);},frame:s=>n=>{let d={id:"",method:"onFrame",result:{instanceId:s,event:n}};self.postMessage(d);},render:s=>n=>{let d={id:"",method:"onRender",result:{instanceId:s,event:n}};self.postMessage(d);},freeze:s=>n=>{let d={id:"",method:"onFreeze",result:{instanceId:s,event:n}};self.postMessage(d);},unfreeze:s=>n=>{let d={id:"",method:"onUnfreeze",result:{instanceId:s,event:n}};self.postMessage(d);},destroy:s=>n=>{let d={id:"",method:"onDestroy",result:{instanceId:s,event:n}};self.postMessage(d);}},Ot={getDotLottieInstanceState(s){let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return {state:{isLoaded:a.isLoaded,isPaused:a.isPaused,isPlaying:a.isPlaying,isStopped:a.isStopped,isFrozen:a.isFrozen,loop:a.loop,mode:a.mode,speed:a.speed,currentFrame:a.currentFrame,totalFrames:a.totalFrames,duration:a.duration,useFrameInterpolation:a.useFrameInterpolation,renderConfig:a.renderConfig,marker:a.marker,backgroundColor:a.backgroundColor,markers:a.markers(),activeAnimationId:a.activeAnimationId,activeThemeId:a.activeThemeId,autoplay:a.autoplay,segment:a.segment,layout:a.layout,segmentDuration:a.segmentDuration,isReady:a.isReady,manifest:a.manifest}}},setLayout(s){let n=s.params.instanceId,a=s.params.layout,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.setLayout(a),{success:!0}},getStateMachineListeners(s){let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return a.getStateMachineListeners()},postStateMachineEvent(s){let n=s.params.instanceId,a=s.params.event,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.postStateMachineEvent(a)},startStateMachine(s){let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return a.startStateMachine()},stopStateMachine(s){let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return a.stopStateMachine()},loadStateMachine(s){let n=s.params.instanceId,a=s.params.stateMachineId,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.loadStateMachine(a)},create:s=>{let n=s.params.instanceId,a=s.params.config,d=s.params.width,w=s.params.height;if(E.has(n))throw new Error(`Instance with id ${n} already exists.`);let T=new fe(a);return T.canvas.height=w,T.canvas.width=d,E.set(n,T),["complete","frame","load","loadError","loop","pause","play","stop","destroy","freeze","unfreeze","render","ready"].forEach(Y=>{T.addEventListener(Y,$n[Y](n));}),{instanceId:n}},destroy:s=>{let n=s.params.instanceId,a=E.get(n);a&&(a.destroy(),E.delete(n));},freeze:s=>{let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);a.freeze();},load:s=>{let n=s.params.instanceId,a=s.params.config,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.load(a);},loadAnimation:s=>{let n=s.params.instanceId,a=s.params.animationId,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.loadAnimation(a);},loadTheme:s=>{let n=s.params.instanceId,a=s.params.themeId,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.loadTheme(a)},loadThemeData:s=>{let n=s.params.instanceId,a=s.params.themeData,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.loadThemeData(a)},pause:s=>{let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return a.pause()},play:s=>{let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return a.play()},resize:s=>{let n=s.params.instanceId,a=s.params.width,d=s.params.height,w=E.get(n);if(!w)throw new Error(`Instance with id ${n} does not exist.`);return w.canvas.height=d,w.canvas.width=a,w.resize(),{success:!0}},setBackgroundColor:s=>{let n=s.params.instanceId,a=s.params.backgroundColor,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setBackgroundColor(a);},setFrame:s=>{let n=s.params.instanceId,a=s.params.frame,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setFrame(a);},setMode:s=>{let n=s.params.instanceId,a=s.params.mode,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setMode(a);},setRenderConfig:s=>{let n=s.params.instanceId,a=s.params.renderConfig,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setRenderConfig(a);},setSegment:s=>{let n=s.params.instanceId,a=s.params.segment,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setSegment(a[0],a[1]);},setSpeed:s=>{let n=s.params.instanceId,a=s.params.speed,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setSpeed(a);},setUseFrameInterpolation:s=>{let n=s.params.instanceId,a=s.params.useFrameInterpolation,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setUseFrameInterpolation(a);},setWasmUrl:s=>{fe.setWasmUrl(s.params.url);},stop:s=>{let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);a.stop();},unfreeze:s=>{let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);a.unfreeze();},setViewport(s){let n=s.params.instanceId,a=s.params.x,d=s.params.y,w=s.params.width,T=s.params.height,W=E.get(n);if(!W)throw new Error(`Instance with id ${n} does not exist.`);return W.setViewport(a,d,w,T)},setMarker(s){let n=s.params.instanceId,a=s.params.marker,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.setMarker(a),{success:!0}},setLoop(s){let n=s.params.instanceId,a=s.params.loop,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.setLoop(a),{success:!0}}};function kn(s){let n=s.method;if(typeof Ot[n]=="function")return Ot[n](s);throw new Error(`Method ${n} is not implemented in commands.`)}self.onmessage=s=>{try{let n=kn(s.data),a={id:s.data.id,method:s.data.method,result:n};self.postMessage(a);}catch(n){let a={id:s.data.id,method:s.data.method,error:n.message};self.postMessage(a);}};var Dn="",lr=Dn;\n\nexport { lr as default };\n',Ri=class{constructor(){F(this,"_workers",new Map),F(this,"_animationWorkerMap",new Map)}_createWorker(s){let n=new Blob([Ti],{type:"application/javascript"});return new Worker(URL.createObjectURL(n),{type:"module",name:s})}getWorker(s){return this._workers.has(s)||this._workers.set(s,this._createWorker(s)),this._workers.get(s)}assignAnimationToWorker(s,n){this._animationWorkerMap.set(s,n)}unassignAnimationFromWorker(s){this._animationWorkerMap.delete(s)}sendMessage(s,n,a){this.getWorker(s).postMessage(n,a||[])}terminateWorker(s){let n=this._workers.get(s);n&&(n.terminate(),this._workers.delete(s))}};function Ca(s){if(s instanceof OffscreenCanvas)return{width:s.width,height:s.height};let{height:n,width:a}=s.getBoundingClientRect();return{width:a*window.devicePixelRatio,height:n*window.devicePixelRatio}}function wa(){return Date.now().toString(36)+Math.random().toString(36).substr(2,9)}var Sa=class Pt{constructor(n){F(this,"_eventManager",new La),F(this,"_id"),F(this,"_worker"),F(this,"_canvas"),F(this,"_dotLottieInstanceState",{markers:[],autoplay:!1,backgroundColor:"",currentFrame:0,duration:0,loop:!1,mode:"forward",segment:[0,0],segmentDuration:0,speed:1,totalFrames:0,isLoaded:!1,isPlaying:!1,isPaused:!1,isStopped:!0,isFrozen:!1,useFrameInterpolation:!1,renderConfig:{devicePixelRatio:window.devicePixelRatio},activeAnimationId:"",activeThemeId:"",layout:void 0,marker:void 0,isReady:!1,manifest:null}),F(this,"_created",!1),this._canvas=n.canvas,this._id=`dotlottie-${wa()}`;let a=n.workerId||"defaultWorker";this._worker=Pt._workerManager.getWorker(a),Pt._workerManager.assignAnimationToWorker(this._id,a),Pt._wasmUrl&&this._sendMessage("setWasmUrl",{url:Pt._wasmUrl}),this._create(n),this._worker.addEventListener("message",this._handleWorkerEvent.bind(this))}_handleWorkerEvent(n){return M(this,null,function*(){let a=n.data;a.id||(a.method==="onLoad"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onComplete"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onDestroy"&&a.result.instanceId===this._id&&this._eventManager.dispatch(a.result.event),a.method==="onUnfreeze"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._dotLottieInstanceState.isFrozen=!1,this._eventManager.dispatch(a.result.event)),a.method==="onFrame"&&a.result.instanceId===this._id&&(this._dotLottieInstanceState.currentFrame=a.result.event.currentFrame,this._eventManager.dispatch(a.result.event)),a.method==="onRender"&&a.result.instanceId===this._id&&this._eventManager.dispatch(a.result.event),a.method==="onFreeze"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onPause"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onPlay"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onStop"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onLoadError"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onReady"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)))})}_create(n){return M(this,null,function*(){let a;this._canvas instanceof HTMLCanvasElement?a=this._canvas.transferControlToOffscreen():a=this._canvas;let{instanceId:c}=yield this._sendMessage("create",x({instanceId:this._id,config:T(x({},n),{canvas:a})},Ca(this._canvas)),[a]);if(c!==this._id)throw new Error("Instance ID mismatch");this._created=!0,yield this._updateDotLottieInstanceState()})}get isLoaded(){return this._dotLottieInstanceState.isLoaded}get isPlaying(){return this._dotLottieInstanceState.isPlaying}get isPaused(){return this._dotLottieInstanceState.isPaused}get isStopped(){return this._dotLottieInstanceState.isStopped}get currentFrame(){return this._dotLottieInstanceState.currentFrame}get isFrozen(){return this._dotLottieInstanceState.isFrozen}get segmentDuration(){return this._dotLottieInstanceState.segmentDuration}get totalFrames(){return this._dotLottieInstanceState.totalFrames}get segment(){return this._dotLottieInstanceState.segment}get speed(){return this._dotLottieInstanceState.speed}get duration(){return this._dotLottieInstanceState.duration}get isReady(){return this._dotLottieInstanceState.isReady}get mode(){return this._dotLottieInstanceState.mode}get canvas(){return this._canvas}get autoplay(){return this._dotLottieInstanceState.autoplay}get backgroundColor(){return this._dotLottieInstanceState.backgroundColor}get loop(){return this._dotLottieInstanceState.loop}get useFrameInterpolation(){return this._dotLottieInstanceState.useFrameInterpolation}get renderConfig(){return this._dotLottieInstanceState.renderConfig}get manifest(){return this._dotLottieInstanceState.manifest}get activeAnimationId(){return this._dotLottieInstanceState.activeAnimationId}get marker(){return this._dotLottieInstanceState.marker}get activeThemeId(){return this._dotLottieInstanceState.activeThemeId}get layout(){return this._dotLottieInstanceState.layout}play(){return M(this,null,function*(){this._created&&(yield this._sendMessage("play",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}pause(){return M(this,null,function*(){this._created&&(yield this._sendMessage("pause",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}stop(){return M(this,null,function*(){this._created&&(yield this._sendMessage("stop",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setSpeed(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("setSpeed",{instanceId:this._id,speed:n}),yield this._updateDotLottieInstanceState())})}setMode(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("setMode",{instanceId:this._id,mode:n}),yield this._updateDotLottieInstanceState())})}setFrame(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("setFrame",{frame:n,instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setSegment(n,a){return M(this,null,function*(){this._created&&(yield this._sendMessage("setSegment",{instanceId:this._id,segment:[n,a]}),yield this._updateDotLottieInstanceState())})}setRenderConfig(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("setRenderConfig",{instanceId:this._id,renderConfig:n}),yield this._updateDotLottieInstanceState())})}setUseFrameInterpolation(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("setUseFrameInterpolation",{instanceId:this._id,useFrameInterpolation:n}),yield this._updateDotLottieInstanceState())})}loadTheme(n){return M(this,null,function*(){if(!this._created)return!1;let a=this._sendMessage("loadTheme",{instanceId:this._id,themeId:n});return yield this._updateDotLottieInstanceState(),a})}load(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("load",{config:n,instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setLoop(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("setLoop",{instanceId:this._id,loop:n}),yield this._updateDotLottieInstanceState())})}resize(){return M(this,null,function*(){if(!this._created)return;let{height:n,width:a}=Ca(this._canvas);this._canvas.width=a,this._canvas.height=n,yield this._sendMessage("resize",{height:n,instanceId:this._id,width:a}),yield this._updateDotLottieInstanceState()})}destroy(){return M(this,null,function*(){this._created&&(this._created=!1,yield this._sendMessage("destroy",{instanceId:this._id}),this._cleanupStateMachineListeners(),Pt._workerManager.unassignAnimationFromWorker(this._id),this._eventManager.removeAllEventListeners())})}freeze(){return M(this,null,function*(){this._created&&(yield this._sendMessage("freeze",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}unfreeze(){return M(this,null,function*(){this._created&&(yield this._sendMessage("unfreeze",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setBackgroundColor(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("setBackgroundColor",{instanceId:this._id,backgroundColor:n}),yield this._updateDotLottieInstanceState())})}loadAnimation(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("loadAnimation",{animationId:n,instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setLayout(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("setLayout",{instanceId:this._id,layout:n}),yield this._updateDotLottieInstanceState())})}_updateDotLottieInstanceState(){return M(this,null,function*(){if(!this._created)return;let n=yield this._sendMessage("getDotLottieInstanceState",{instanceId:this._id});this._dotLottieInstanceState=n.state})}markers(){return this._dotLottieInstanceState.markers}setMarker(n){return M(this,null,function*(){this._created&&(yield this._sendMessage("setMarker",{instanceId:this._id,marker:n}),yield this._updateDotLottieInstanceState())})}loadThemeData(n){return M(this,null,function*(){if(!this._created)return!1;let a=yield this._sendMessage("loadThemeData",{instanceId:this._id,themeData:n});return yield this._updateDotLottieInstanceState(),a})}setViewport(n,a,c,p){return M(this,null,function*(){return this._created?this._sendMessage("setViewport",{x:n,y:a,width:c,height:p,instanceId:this._id}):!1})}_sendMessage(n,a,c){return M(this,null,function*(){let p={id:`dotlottie-request-${wa()}`,method:n,params:a};return this._worker.postMessage(p,c||[]),new Promise((_,q)=>{let rt=V=>{let xt=V.data;xt.id===p.id&&(this._worker.removeEventListener("message",rt),xt.error?q(new Error(`Failed to execute method ${n}: ${xt.error}`)):_(xt.result))};this._worker.addEventListener("message",rt)})})}addEventListener(n,a){this._eventManager.addEventListener(n,a)}removeEventListener(n,a){this._eventManager.removeEventListener(n,a)}static setWasmUrl(n){Pt._wasmUrl=n}loadStateMachine(n){return M(this,null,function*(){if(!this._created)return!1;let a=yield this._sendMessage("loadStateMachine",{instanceId:this._id,stateMachineId:n});return yield this._updateDotLottieInstanceState(),a})}startStateMachine(){return M(this,null,function*(){if(!this._created)return!1;this._setupStateMachineListeners();let n=yield this._sendMessage("startStateMachine",{instanceId:this._id});return yield this._updateDotLottieInstanceState(),n})}stopStateMachine(){return M(this,null,function*(){return this._created?(this._cleanupStateMachineListeners(),this._sendMessage("stopStateMachine",{instanceId:this._id})):!1})}postStateMachineEvent(n){return M(this,null,function*(){return this._created?this._sendMessage("postStateMachineEvent",{event:n,instanceId:this._id}):!1})}getStateMachineListeners(){return M(this,null,function*(){return this._created?this._sendMessage("getStateMachineListeners",{instanceId:this._id}):[]})}_getPointerPosition(n){let a=this._canvas.getBoundingClientRect(),c=this._canvas.width/a.width,p=this._canvas.height/a.height,_=this._dotLottieInstanceState.renderConfig.devicePixelRatio||window.devicePixelRatio||1,q=(n.clientX-a.left)*c/_,rt=(n.clientY-a.top)*p/_;return{x:q,y:rt}}_onPointerUp(n){let{x:a,y:c}=this._getPointerPosition(n);this.postStateMachineEvent(`OnPointerUp: ${a} ${c}`)}_onPointerDown(n){let{x:a,y:c}=this._getPointerPosition(n);this.postStateMachineEvent(`OnPointerDown: ${a} ${c}`)}_onPointerMove(n){let{x:a,y:c}=this._getPointerPosition(n);this.postStateMachineEvent(`OnPointerMove: ${a} ${c}`)}_onPointerEnter(n){let{x:a,y:c}=this._getPointerPosition(n);this.postStateMachineEvent(`OnPointerEnter: ${a} ${c}`)}_onPointerLeave(n){let{x:a,y:c}=this._getPointerPosition(n);this.postStateMachineEvent(`OnPointerExit: ${a} ${c}`)}_onComplete(){this.postStateMachineEvent("OnComplete")}_setupStateMachineListeners(){return M(this,null,function*(){if(Et&&this._canvas instanceof HTMLCanvasElement&&this.isLoaded){let n=yield this._sendMessage("getStateMachineListeners",{instanceId:this._id});n.includes("PointerUp")&&this._canvas.addEventListener("pointerup",this._onPointerUp.bind(this)),n.includes("PointerDown")&&this._canvas.addEventListener("pointerdown",this._onPointerDown.bind(this)),n.includes("PointerMove")&&this._canvas.addEventListener("pointermove",this._onPointerMove.bind(this)),n.includes("PointerEnter")&&this._canvas.addEventListener("pointerenter",this._onPointerEnter.bind(this)),n.includes("PointerExit")&&this._canvas.addEventListener("pointerleave",this._onPointerLeave.bind(this)),n.includes("Complete")&&this.addEventListener("complete",this._onComplete.bind(this))}})}_cleanupStateMachineListeners(){Et&&this._canvas instanceof HTMLCanvasElement&&(this._canvas.removeEventListener("pointerup",this._onPointerUp.bind(this)),this._canvas.removeEventListener("pointerdown",this._onPointerDown.bind(this)),this._canvas.removeEventListener("pointermove",this._onPointerMove.bind(this)),this._canvas.removeEventListener("pointerenter",this._onPointerEnter.bind(this)),this._canvas.removeEventListener("pointerleave",this._onPointerLeave.bind(this)),this.removeEventListener("complete",this._onComplete.bind(this)))}};F(Sa,"_workerManager",new Ri),F(Sa,"_wasmUrl","");function Aa(s,n){let a=s.ngOnInit;s.ngOnInit=function(){if(this[n]===void 0||this[n]===null)throw new Error(`Required input '${n}' was not provided in ${s.constructor.name}.`);if(a)return a.apply(this)}}var jt=function(s){return s.QUANTIZATION="quant",s.PRUNING="pruning",s}(jt||{});var Ia={[jt.PRUNING]:{path:"assets/animations/pruning.lottie",speed:.15,className:"pruning"},[jt.QUANTIZATION]:{path:"assets/animations/quantization.lottie",speed:.07,className:"quant"}};var ki=["dotlottieCanvas"],dt,ee=(dt=class{constructor(n,a,c){this.scriptFacadeService=n,this.el=a,this.renderer=c}ngOnInit(){let n=Ia[this.animationType];if(!n)throw new Error(`Unknown animation type: ${this.animationType}`);this.initializeAnimation(n)}initializeAnimation(n){this.dotLottie=new ba({autoplay:!1,loop:!0,canvas:this.dotlottieCanvas.nativeElement,src:n.path,speed:n.speed||1}),this.dotLottie.addEventListener("load",()=>{this.listenToScriptStateChanges()}),this.renderer.addClass(this.el.nativeElement,n.className)}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe($t(this)).subscribe(n=>{Ae(n)?this.playAnimation():this.stopAnimation()})}playAnimation(){this.dotLottie?.play()}stopAnimation(){this.dotLottie?.stop()}},dt.\u0275fac=function(a){return new(a||dt)(W(Ut),W(Jn),W(ta))},dt.\u0275cmp=G({type:dt,selectors:[["ms-running-animation"]],viewQuery:function(a,c){if(a&1&&ea(ki,7),a&2){let p;na(p=aa())&&(c.dotlottieCanvas=p.first)}},inputs:{animationType:"animationType"},decls:3,vars:0,consts:[["dotlottieCanvas",""],[1,"parent-container"],["id","dotlottie-canvas"]],template:function(a,c){a&1&&(w(0,"div",1),P(1,"canvas",2,0),v())},styles:[".parent-container[_ngcontent-%COMP%]{overflow:hidden;height:300px;border-radius:10px;margin-bottom:10px;position:relative;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}canvas[_ngcontent-%COMP%]{width:100%;height:auto;object-fit:cover;position:absolute;top:50%;left:0;transform:translateY(-50%)}.pruning[_nghost-%COMP%] .parent-container[_ngcontent-%COMP%]{background-color:#b2ddff}@media (max-width: 1000px){.pruning[_nghost-%COMP%] .parent-container[_ngcontent-%COMP%]{height:180px}}@media (min-width: 1200px){.pruning[_nghost-%COMP%] canvas[_ngcontent-%COMP%]{width:900px;left:calc((100% - 900px)/2)}}.quant[_nghost-%COMP%] .parent-container[_ngcontent-%COMP%]{background-color:#1649a8}@media (max-width: 1000px){.quant[_nghost-%COMP%] .parent-container[_ngcontent-%COMP%]{height:180px}}@media (min-width: 1100px){.quant[_nghost-%COMP%] canvas[_ngcontent-%COMP%]{width:900px;left:calc((100% - 900px)/2)}}"],changeDetection:0}),dt);lt([Aa],ee.prototype,"animationType",void 0);ee=lt([_t()],ee);var j=function(s){return s.ACCURACY="accuracy",s.LOSS="loss",s}(j||{}),Ui=100,ne=(s,n,a=!1)=>s.map(c=>({datasetIndex:c.datasetIndex,values:(a?c.testing:c.steps).map(p=>p[n])||[]})),Pa=s=>{let n=s.flatMap(a=>a.sparsity).filter(a=>a!=null);return[{datasetIndex:0,values:[Ui,...n]}]},mn=(s,n)=>[{datasetIndex:0,values:s.steps.map(a=>a[n]).filter(a=>a!=null)}],pn=(s,n)=>n===j.LOSS?s.map((a,c)=>({datasetIndex:c,values:a.steps.map(p=>p?.loss).filter(p=>p!=null)})):[{datasetIndex:0,values:s.map(a=>a.accuracy).filter(a=>a!=null)}],gn=(s,n)=>s.epochs.map((a,c)=>({datasetIndex:c,values:a.steps.map(p=>p[n])})),fn=(s,n)=>s.tests.map((a,c)=>({datasetIndex:c,values:a.steps.map(p=>p[n])}));var Fa=(()=>{let n=class n{constructor(c){this.chartsFacadeService=c,this.RealtimeUpdateMetric=U,this.initialAccuracyChartData=[],this.accuracyChartDisplaySettings={chartDataStructure:H.SINGLE_PHASE_X_AXIS,xAxisDataPointsCount:159,isXAxisDynamic:!0,datasetLabelPrefix:"Epoch:",xAxisLabelPrefix:"Step",xAxisRepetitionCount:1,yAxisMinimumValue:0,yAxisMaximumValue:100,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.GREEN,realtimeUpdateMetric:U.ACCURACY},this.initialAccuracyTestingChartData=[],this.testingAccuracyChartDisplaySettings={chartDataStructure:H.SINGLE_PHASE_X_AXIS,xAxisDataPointsCount:159,isXAxisVisible:!0,isXAxisDynamic:!0,xAxisLabelPrefix:"Step",datasetLabelPrefix:"Test:",xAxisRepetitionCount:1,yAxisMinimumValue:0,yAxisMaximumValue:100,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.YELLOW,realtimeUpdateMetric:U.TESTING_ACCURACY},this.initialLossChartData=[],this.lossChartDisplaySettings={chartDataStructure:H.SINGLE_PHASE_X_AXIS,xAxisDataPointsCount:159,isXAxisVisible:!0,isXAxisDynamic:!0,xAxisLabelPrefix:"Step",datasetLabelPrefix:"Epoch:",xAxisRepetitionCount:1,yAxisMinimumValue:0,isYAxisDynamic:!0,datasetColorSettingsKey:B.RED,realtimeUpdateMetric:U.LOSS},this.initialLossTestingChartData=[],this.testingLossChartDisplaySettings={chartDataStructure:H.SINGLE_PHASE_X_AXIS,xAxisDataPointsCount:159,isXAxisVisible:!0,isXAxisDynamic:!0,xAxisLabelPrefix:"Step",datasetLabelPrefix:"Test:",xAxisRepetitionCount:1,yAxisMinimumValue:0,isYAxisDynamic:!0,dynamicYAxisGrowthOffset:1,dynamicYAxisGrowthRoundFactor:2,datasetColorSettingsKey:B.YELLOW,realtimeUpdateMetric:U.TESTING_LOSS}}ngOnInit(){this.loadChartSettings(),this.loadLatestChartsData()}loadChartSettings(){this.chartsFacadeService.dispatch(yt.getCurrentMachineUnlearningChartData())}loadLatestChartsData(){this.chartsFacadeService.machineUnlearningProgress$.pipe(Z(1),ot(c=>!Ie(c)),Q(1)).subscribe(c=>{this.initialAccuracyChartData=gn(c,j.ACCURACY),this.initialLossChartData=gn(c,j.LOSS),this.initialAccuracyTestingChartData=fn(c,j.ACCURACY),this.initialLossTestingChartData=fn(c,j.LOSS)})}};n.\u0275fac=function(p){return new(p||n)(W(Wt))},n.\u0275cmp=G({type:n,selectors:[["ms-running-machine-unlearning-charts"]],decls:19,vars:8,consts:[[1,"charts"],[1,"ms-chart-display","accuracy-chart"],[1,"epochs"],[1,"paragraph-bold-p3-small-bold","p-2"],[3,"data","settings"],[1,"testing"],[1,"ms-chart-display","loss-chart"]],template:function(p,_){p&1&&(w(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),A(4,"Accuracy Training"),v(),P(5,"ms-line-chart",4),v(),w(6,"div",5)(7,"p",3),A(8,"Accuracy Test"),v(),P(9,"ms-line-chart",4),v()(),w(10,"div",6)(11,"div",2)(12,"p",3),A(13,"Loss Training"),v(),P(14,"ms-line-chart",4),v(),w(15,"div",5)(16,"p",3),A(17,"Loss Test"),v(),P(18,"ms-line-chart",4),v()()()),p&2&&(S(5),L("data",_.initialAccuracyChartData)("settings",_.accuracyChartDisplaySettings),S(4),L("data",_.initialAccuracyTestingChartData)("settings",_.testingAccuracyChartDisplaySettings),S(5),L("data",_.initialLossChartData)("settings",_.lossChartDisplaySettings),S(4),L("data",_.initialLossTestingChartData)("settings",_.testingLossChartDisplaySettings))},dependencies:[Ct],styles:[".charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%]{display:flex}.charts[_ngcontent-%COMP%] .ms-chart-display.accuracy-chart[_ngcontent-%COMP%], .charts[_ngcontent-%COMP%] .ms-chart-display.loss-chart[_ngcontent-%COMP%]{background-color:var(--backgrounds-80);border-radius:20px;padding:10px;margin:10px 0}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .epochs[_ngcontent-%COMP%]{flex:0 0 70%}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .testing[_ngcontent-%COMP%]{border-left:1px solid var(--foregrounds-300);padding-left:10px;margin-left:10px;flex:0 0 28.5%}"]});let s=n;return s})();var it=function(s){return s.SPARSITY_PRUNING="sparsityPruning",s.ACCURACY_PRUNING="accuracyPruning",s.ACCURACY_QUANTIZATION="accuracyQuantization",s.ACCURACY_MACHINE_UNLEARNING="accuracyMachineUnlearning",s.LOSS_QUANTIZATION="lossQuantization",s.LOSS_PRUNING="lossPruning",s.LOSS_MACHINE_UNLEARNING="lossMachineUnlearning",s.TESTING_ACCURACY_CHART="testing_accuracyChart",s.TESTING_LOSS_CHART="testing_lossChart",s}(it||{});var mt,Oe=(mt=class{constructor(n){this.chartsFacadeService=n,this.RealtimeUpdateMetric=U,this.initialLossChartData=[],this.lossPruningChartSettings={},this.lossChartDisplaySettings=T(x({},Nt),{yAxisMinimumValue:0,yAxisTickInterval:2,chartDataStructure:H.MUlTI_PHASE_X_AXIS,xAxisDataPointsCount:cn,isYAxisDynamic:!0,dynamicYAxisGrowthOffset:2,datasetColorSettingsKey:B.RED,realtimeUpdateMetric:U.LOSS}),this.initialLossTestingChartData=[],this.testingLossChartDisplaySettings=T(x({},Nt),{yAxisMinimumValue:0,yAxisTickInterval:2,chartDataStructure:H.MUlTI_PHASE_X_AXIS,xAxisDataPointsCount:Fe,isYAxisDynamic:!0,dynamicYAxisGrowthOffset:2,datasetColorSettingsKey:B.YELLOW,realtimeUpdateMetric:U.TESTING_LOSS}),this.initialAccuracyChartData=[],this.accuracyPruningChartSettings={},this.accuracyChartDisplaySettings=T(x({},Nt),{chartDataStructure:H.MUlTI_PHASE_X_AXIS,xAxisDataPointsCount:cn,yAxisMaximumValue:100,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.GREEN,realtimeUpdateMetric:U.ACCURACY}),this.initialAccuracyTestingChartData=[],this.testingAccuracyChartDisplaySettings=T(x({},Nt),{yAxisTickInterval:20,chartDataStructure:H.MUlTI_PHASE_X_AXIS,xAxisDataPointsCount:Fe,yAxisMaximumValue:100,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.YELLOW,realtimeUpdateMetric:U.TESTING_ACCURACY}),this.initialSparsityChartData=[],this.sparsityPruningChartSettings={},this.sparsityChartDisplaySettings=T(x({},Nt),{xAxisLabelPrefix:"Pruning",isDatasetLabelVisible:!1,yAxisTickInterval:100,chartDataStructure:H.SINGLE_PHASE_X_AXIS_SKIP_ONE,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.BLUE,useSteppedLines:!0,realtimeUpdateMetric:U.SPARSITY})}ngOnInit(){this.loadChartSettings(),this.loadLatestChartsData()}loadChartSettings(){this.chartsFacadeService.settings$.pipe(Z(1),Q(1)).subscribe(n=>{n&&(this.accuracyPruningChartSettings=n[it.ACCURACY_PRUNING]||{},this.accuracyChartDisplaySettings=T(x({},this.accuracyChartDisplaySettings),{xAxisRepetitionCount:Number(this.accuracyPruningChartSettings.epochs)}),this.testingAccuracyChartDisplaySettings=T(x({},this.testingAccuracyChartDisplaySettings),{xAxisRepetitionCount:Number(this.accuracyPruningChartSettings.epochs)}),this.lossPruningChartSettings=T(x({},n[it.LOSS_PRUNING]||{}),{testingSteps:Fe}),this.lossChartDisplaySettings=T(x({},this.lossChartDisplaySettings),{xAxisRepetitionCount:Number(this.lossPruningChartSettings.epochs)}),this.testingLossChartDisplaySettings=T(x({},this.testingLossChartDisplaySettings),{xAxisRepetitionCount:Number(this.lossPruningChartSettings.epochs)}),this.sparsityPruningChartSettings=x({},n[it.SPARSITY_PRUNING]||{}),this.sparsityChartDisplaySettings=T(x({},this.sparsityChartDisplaySettings),{xAxisDataPointsCount:this.sparsityPruningChartSettings.pruningTimes+1}),this.chartsFacadeService.dispatch(yt.getCurrentPruningChartData()))}),this.chartsFacadeService.dispatch(yt.getChartConfigurationSettings({chartTypes:[it.ACCURACY_PRUNING,it.LOSS_PRUNING,it.SPARSITY_PRUNING]}))}loadLatestChartsData(){this.chartsFacadeService.pruningProgress.pipe(Z(1),ot(n=>!!n&&n.length>0),Q(1)).subscribe(n=>{this.initialLossChartData=ne(n,j.LOSS),this.initialLossTestingChartData=ne(n,j.LOSS,!0),this.initialAccuracyChartData=ne(n,j.ACCURACY),this.initialAccuracyTestingChartData=ne(n,j.ACCURACY,!0),this.initialSparsityChartData=Pa(n)})}},mt.\u0275fac=function(a){return new(a||mt)(W(Wt))},mt.\u0275cmp=G({type:mt,selectors:[["ms-running-pruning-charts"]],decls:23,vars:10,consts:[[1,"charts"],[1,"ms-chart-display","accuracy-chart"],[1,"epochs"],[1,"paragraph-bold-p3-small-bold","p-2"],[3,"data","settings"],[1,"testing"],[1,"ms-chart-display","loss-chart"],[1,"ms-chart-display","sparsity-chart"]],template:function(a,c){a&1&&(w(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),A(4,"Accuracy Training"),v(),P(5,"ms-line-chart",4),v(),w(6,"div",5)(7,"p",3),A(8,"Accuracy Test"),v(),P(9,"ms-line-chart",4),v()(),w(10,"div",6)(11,"div",2)(12,"p",3),A(13,"Loss Training"),v(),P(14,"ms-line-chart",4),v(),w(15,"div",5)(16,"p",3),A(17,"Loss Test"),v(),P(18,"ms-line-chart",4),v()(),w(19,"div",7)(20,"p",3),A(21,"Sparsity Training"),v(),P(22,"ms-line-chart",4),v()()),a&2&&(S(5),L("data",c.initialAccuracyChartData)("settings",c.accuracyChartDisplaySettings),S(4),L("data",c.initialAccuracyTestingChartData)("settings",c.testingAccuracyChartDisplaySettings),S(5),L("data",c.initialLossChartData)("settings",c.lossChartDisplaySettings),S(4),L("data",c.initialLossTestingChartData)("settings",c.testingLossChartDisplaySettings),S(4),L("data",c.initialSparsityChartData)("settings",c.sparsityChartDisplaySettings))},dependencies:[Ct],styles:[".charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%]{display:flex}.charts[_ngcontent-%COMP%] .ms-chart-display.sparsity-chart[_ngcontent-%COMP%]{flex-direction:column}.charts[_ngcontent-%COMP%] .ms-chart-display.sparsity-chart[_ngcontent-%COMP%], .charts[_ngcontent-%COMP%] .ms-chart-display.accuracy-chart[_ngcontent-%COMP%], .charts[_ngcontent-%COMP%] .ms-chart-display.loss-chart[_ngcontent-%COMP%]{background-color:var(--backgrounds-80);border-radius:20px;padding:10px;margin:10px 0}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .epochs[_ngcontent-%COMP%]{flex:0 0 70%}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .testing[_ngcontent-%COMP%]{border-left:1px solid var(--foregrounds-300);padding-left:10px;flex:0 0 30%}"]}),mt);Oe=lt([_t()],Oe);var Da=(()=>{let n=class n{constructor(c){this.chartsFacadeService=c,this.RealtimeUpdateMetric=U,this.initialLossChartData=[],this.initialLossTestingChartData=[],this.initialAccuracyChartData=[],this.initialAccuracyTestingChartData=[],this.lossChartDisplaySettings={yAxisMinimumValue:0,xAxisDataPointsCount:40,datasetLabelPrefix:"Reconstruction:",xAxisLabelPrefix:"Step",chartDataStructure:H.SINGLE_PHASE_X_AXIS,isXAxisVisible:!0,isXAxisDynamic:!0,isYAxisDynamic:!0,dynamicYAxisGrowthOffset:50,datasetColorSettingsKey:B.RED,realtimeUpdateMetric:U.LOSS},this.lossTestingChartDisplaySettings={yAxisMinimumValue:0,xAxisDataPointsCount:78,isDatasetLabelVisible:!1,xAxisLabelPrefix:"Step",chartDataStructure:H.SINGLE_PHASE_X_AXIS,isXAxisVisible:!0,isXAxisDynamic:!0,isYAxisDynamic:!0,datasetColorSettingsKey:B.YELLOW,dynamicYAxisGrowthRoundFactor:2,realtimeUpdateMetric:U.TESTING_LOSS},this.accuracyChartDisplaySettings={yAxisMaximumValue:100,yAxisMinimumValue:0,xAxisLabelPrefix:"Recon.",isDatasetLabelVisible:!1,isXAxisVisible:!0,xAxisInitialLabelValue:0,chartDataStructure:H.SINGLE_PHASE_X_AXIS,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.GREEN,isXAxisDynamic:!0,realtimeUpdateMetric:U.ACCURACY,enhanceSinglePhaseXAxisWebsocketEvent:!0},this.accuracyTestingChartDisplaySettings={yAxisMaximumValue:100,yAxisMinimumValue:0,xAxisDataPointsCount:78,isDatasetLabelVisible:!1,xAxisLabelPrefix:"Step",chartDataStructure:H.SINGLE_PHASE_X_AXIS,isXAxisVisible:!0,isXAxisDynamic:!0,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.YELLOW,realtimeUpdateMetric:U.TESTING_ACCURACY}}ngOnInit(){this.loadChartSettings(),this.loadLatestChartsData()}loadChartSettings(){this.chartsFacadeService.settings$.pipe(Z(1),Q(1)).subscribe(c=>{c&&(this.accuracyChartDisplaySettings=T(x({},this.accuracyChartDisplaySettings),{xAxisDataPointsCount:c[it.ACCURACY_QUANTIZATION]?.reconstructions}),this.chartsFacadeService.dispatch(yt.getCurrentQuantizationChartData()))}),this.chartsFacadeService.dispatch(yt.getChartConfigurationSettings({chartTypes:[it.ACCURACY_QUANTIZATION]}))}loadLatestChartsData(){this.chartsFacadeService.quantizationProgress$.pipe(Z(1),ot(c=>!!c),Q(1)).subscribe(c=>this.processChartData(c))}processChartData(c){this.initialLossChartData=pn(c.reconstructions,j.LOSS),this.initialAccuracyChartData=pn(c.reconstructions,j.ACCURACY),this.initialLossTestingChartData=mn(c.testing,j.LOSS),this.initialAccuracyTestingChartData=mn(c.testing,j.ACCURACY)}};n.\u0275fac=function(p){return new(p||n)(W(Wt))},n.\u0275cmp=G({type:n,selectors:[["ms-running-quantization-charts"]],decls:19,vars:8,consts:[[1,"charts"],[1,"ms-chart-display","accuracy-chart"],[1,"reconstructions"],[1,"paragraph-bold-p3-small-bold","p-2"],[3,"data","settings"],[1,"testing"],[1,"ms-chart-display","loss-chart"]],template:function(p,_){p&1&&(w(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),A(4,"Accuracy Training"),v(),P(5,"ms-line-chart",4),v(),w(6,"div",5)(7,"p",3),A(8,"Accuracy Test"),v(),P(9,"ms-line-chart",4),v()(),w(10,"div",6)(11,"div",2)(12,"p",3),A(13,"Loss Training"),v(),P(14,"ms-line-chart",4),v(),w(15,"div",5)(16,"p",3),A(17,"Loss Test"),v(),P(18,"ms-line-chart",4),v()()()),p&2&&(S(5),L("data",_.initialAccuracyChartData)("settings",_.accuracyChartDisplaySettings),S(4),L("data",_.initialAccuracyTestingChartData)("settings",_.accuracyTestingChartDisplaySettings),S(5),L("data",_.initialLossChartData)("settings",_.lossChartDisplaySettings),S(4),L("data",_.initialLossTestingChartData)("settings",_.lossTestingChartDisplaySettings))},dependencies:[Ct],styles:[".charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%]{display:flex}.charts[_ngcontent-%COMP%] .ms-chart-display.accuracy-chart[_ngcontent-%COMP%], .charts[_ngcontent-%COMP%] .ms-chart-display.loss-chart[_ngcontent-%COMP%]{background-color:var(--backgrounds-80);border-radius:20px;padding:10px;margin:10px 0}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .reconstructions[_ngcontent-%COMP%]{flex:0 0 70%}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .testing[_ngcontent-%COMP%]{border-left:1px solid var(--foregrounds-300);padding-left:10px;margin-left:10px;flex:0 0 28.5%}"]});let s=n;return s})();var Ta=(()=>{let n=class n{constructor(){this.keyMap={forget_acc:"Forget Accuracy",retain_acc:"Retain Accuracy",test_acc:"Test Accuracy",val_acc:"Validation Accuracy"}}transform(c){if(!c)return c;let p=c.split("_");if(p.length<3)return c;let _=p.slice(0,-2).join("_"),q=p[p.length-1];return`${this.keyMap[_]||_.split("_").map(V=>V.charAt(0).toUpperCase()+V.slice(1)).join(" ")} (Test #${q})`}};n.\u0275fac=function(p){return new(p||n)},n.\u0275pipe=Zn({name:"readableStatisticsLabel",type:n,pure:!0});let s=n;return s})();var Vi=s=>({stats:s});function Gi(s,n){if(s&1&&(w(0,"div",7)(1,"span",8),A(2),we(3,"readableStatisticsLabel"),v(),w(4,"span",9),A(5),v()()),s&2){let a=n.$implicit;S(2),Ce("",Se(3,2,a.key),":"),S(3),ia(a.value)}}function Xi(s,n){if(s&1&&(bt(0),w(1,"div",5),J(2,Gi,6,4,"div",6),v(),At()),s&2){let a=ht().ngIf;S(2),L("ngForOf",a.stats)}}function qi(s,n){s&1&&P(0,"ms-empty-state",10)}function Ki(s,n){if(s&1&&(bt(0),J(1,Xi,3,1,"ng-container",4)(2,qi,1,0,"ng-template",null,0,Le),At()),s&2){let a=n.ngIf,c=ye(3);S(),L("ngIf",a.stats==null?null:a.stats.length)("ngIfElse",c)}}var Oa=(()=>{let n=class n{constructor(c){this.statisticsFacadeService=c,this.statistics$=this.statisticsFacadeService.statistics$}ngOnInit(){this.statisticsFacadeService.dispatch(ya.getStatistics())}};n.\u0275fac=function(p){return new(p||n)(W(_a))},n.\u0275cmp=G({type:n,selectors:[["ms-running-statistics"]],decls:6,vars:7,consts:[["noStatistics",""],[1,"ms-card"],[1,"heading-section-title"],[4,"ngIf"],[4,"ngIf","ngIfElse"],[1,"key-value-container","dense"],["class","key-value-pair",4,"ngFor","ngForOf"],[1,"key-value-pair"],[1,"key-value-key"],[1,"key-value-value"],["title","No statistics available."]],template:function(p,_){p&1&&(w(0,"mat-card",1)(1,"p",2),A(2,"Statistics"),v(),J(3,Ki,4,2,"ng-container",3),we(4,"async"),we(5,"keyvalue"),v()),p&2&&(S(3),L("ngIf",ra(5,Vi,Se(5,3,Se(4,1,_.statistics$)))))},dependencies:[oa,kt,Ee,xe,la,ha,Ta]});let s=n;return s})();function tr(s,n){if(s&1){let a=_e();w(0,"div",18)(1,"button",19),Ot("click",function(){fe(a);let p=ht();return ve(p.runStopScript())}),A(2," Stop "),v()()}}function er(s,n){s&1&&(w(0,"div",20)(1,"div",13),A(2,"\u2014"),v(),w(3,"div",14),A(4,"Sparsity"),v()())}var pt,ke=(pt=class{constructor(n,a){this.scriptFacadeService=n,this.chartToolsGlobalSignalsService=a,this.isScriptActive=!1,this.enableTooltips=!1,this.enableZoom=!1}ngOnInit(){this.listenToScriptStateChanges(),this.subscribeToChartToolsSignals()}listenToScriptStateChanges(){this.scriptFacadeService.dispatch(te.getCurrentOrLastActiveScriptDetails()),this.scriptFacadeService.scriptDetails$.pipe(Z(1),Q(1),ot(n=>!Pe(n?.algKey))).subscribe(n=>{this.scriptDetails=n}),this.scriptFacadeService.scriptStatus$.pipe($t(this)).subscribe(n=>{this.isScriptActive=Ae(n)})}toggleTooltip(n){this.chartToolsGlobalSignalsService.toggleTooltips=n.checked}toggleZoom(n){this.chartToolsGlobalSignalsService.toggleZoom=n.checked}get isSparsityVisible(){return this.scriptDetails?.type===It.PRUNING}subscribeToChartToolsSignals(){this.chartToolsGlobalSignalsService.toggleTooltips$.pipe($t(this)).subscribe(n=>{this.enableTooltips=n}),this.chartToolsGlobalSignalsService.toggleZoom$.pipe($t(this)).subscribe(n=>{this.enableZoom=n})}runStopScript(){this.scriptFacadeService.dispatch(te.stopScript())}},pt.\u0275fac=function(a){return new(a||pt)(W(Ut),W(De))},pt.\u0275cmp=G({type:pt,selectors:[["ms-running-status-bar"]],decls:33,vars:7,consts:[[1,"training-status","mb-2"],[1,"status-bar"],[1,"runnning-title-container"],[1,"model-name","heading-sub-section-title"],["class","ml-2",4,"ngIf"],[1,"mt-2","flex"],["color","primary",3,"ngModelChange","change","ngModel","disabled"],[1,"flex"],["color","primary",1,"ml-2",3,"ngModelChange","change","ngModel","disabled"],[1,"ml-1"],["fontSet","ms","fontIcon","icon-Info","matTooltip","Use mouse wheel or touchpad pinch to zoom in/out. Drag to select an area for specific zoom, or use touchpad gestures to navigate."],[1,"metrics"],[1,"metric","accuracy"],[1,"metric-value"],[1,"metric-name","paragraph-semibold-p2-large-emphasis"],[1,"metric","loss"],["class","metric sparsity",4,"ngIf"],[1,"metric","testing"],[1,"ml-2"],["mat-raised-button","","color","warn","matTooltip","Stop current process.",3,"click"],[1,"metric","sparsity"]],template:function(a,c){a&1&&(w(0,"div",0)(1,"div",1)(2,"div")(3,"div",2)(4,"div",3),A(5),v(),J(6,tr,3,0,"div",4),v(),w(7,"div",5)(8,"div")(9,"mat-slide-toggle",6),on("ngModelChange",function(_){return rn(c.enableTooltips,_)||(c.enableTooltips=_),_}),Ot("change",function(_){return c.toggleTooltip(_)}),A(10," Enable tooltips "),v()(),w(11,"div",7)(12,"mat-slide-toggle",8),on("ngModelChange",function(_){return rn(c.enableZoom,_)||(c.enableZoom=_),_}),Ot("change",function(_){return c.toggleZoom(_)}),A(13," Enable zoom "),v(),w(14,"div",9),P(15,"mat-icon",10),v()()()()(),w(16,"div",11)(17,"div",12)(18,"div",13),A(19,"\u2014"),v(),w(20,"div",14),A(21,"Accuracy"),v()(),w(22,"div",15)(23,"div",13),A(24,"\u2014"),v(),w(25,"div",14),A(26,"Loss"),v()(),J(27,er,5,0,"div",16),w(28,"div",17)(29,"div",13),A(30,"\u2014"),v(),w(31,"div",14),A(32,"Test"),v()()()()),a&2&&(S(5),Ce("Algorithm: ",(c.scriptDetails==null?null:c.scriptDetails.algKey)||"None",""),S(),L("ngIf",c.isScriptActive),S(3),an("ngModel",c.enableTooltips),L("disabled",!(c.scriptDetails!=null&&c.scriptDetails.algKey)),S(3),an("ngModel",c.enableZoom),L("disabled",!(c.scriptDetails!=null&&c.scriptDetails.algKey)),S(15),L("ngIf",c.isSparsityVisible))},dependencies:[kt,Me,be,pa,ga,ua,ma],styles:[".training-status[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.training-status[_ngcontent-%COMP%] .status-bar[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.training-status[_ngcontent-%COMP%] .runnning-title-container[_ngcontent-%COMP%]{display:flex;align-items:center}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%], .training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric[_ngcontent-%COMP%]{display:flex;gap:10px}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:1.25rem}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric.sparsity[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-weight:700;color:var(--metrics-sparsity)}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric.accuracy[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-weight:700;color:var(--metrics-accuracy)}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric.loss[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-weight:700;color:var(--metrics-loss)}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric.testing[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-weight:700;color:var(--metrics-testing)}"]}),pt);ke=lt([_t()],ke);function ar(s,n){if(s&1&&P(0,"ms-running-animation",10),s&2){let a=ht();L("animationType",a.AnimationType.QUANTIZATION)}}function ir(s,n){if(s&1&&P(0,"ms-running-animation",10),s&2){let a=ht();L("animationType",a.AnimationType.PRUNING)}}function rr(s,n){if(s&1&&P(0,"ms-running-animation",10),s&2){let a=ht();L("animationType",a.AnimationType.PRUNING)}}function or(s,n){s&1&&P(0,"ms-running-quantization-charts")}function sr(s,n){s&1&&P(0,"ms-running-pruning-charts")}function cr(s,n){s&1&&P(0,"ms-running-machine-unlearning-charts")}function lr(s,n){if(s&1&&(bt(0)(1,2),J(2,or,1,0,"ms-running-quantization-charts",11)(3,sr,1,0,"ms-running-pruning-charts",11)(4,cr,1,0,"ms-running-machine-unlearning-charts",11),At()()),s&2){let a=ht();S(),L("ngSwitch",a.scriptDetails==null?null:a.scriptDetails.type),S(),L("ngSwitchCase",a.AlgorithmType.QUANTIZATION),S(),L("ngSwitchCase",a.AlgorithmType.PRUNING),S(),L("ngSwitchCase",a.AlgorithmType.MACHINE_UNLEARNING)}}function hr(s,n){s&1&&P(0,"ms-empty-state",12)}function dr(s,n){s&1&&(bt(0),w(1,"div",13),P(2,"ms-running-statistics"),v(),At())}var gt,$e=(gt=class{constructor(n,a){this.navigationService=n,this.scriptFacadeService=a,this.AlgorithmType=It,this.AnimationType=jt}ngOnInit(){this.listenToScriptStateChanges()}listenToScriptStateChanges(){this.scriptFacadeService.dispatch(te.getCurrentOrLastActiveScriptDetails()),this.scriptFacadeService.scriptDetails$.pipe(Z(1),Q(1),ot(n=>!Pe(n?.algKey))).subscribe(n=>{this.scriptDetails=n})}get isChartVisible(){return!Ie(this.scriptDetails?.algKey)&&this.scriptDetails?.type!==It.TRAIN&&this.scriptDetails?.type!==It.AWQ&&this.scriptDetails?.type!==It.MULTIFLOW}},gt.\u0275fac=function(a){return new(a||gt)(W(va),W(Ut))},gt.\u0275cmp=G({type:gt,selectors:[["ms-running"]],decls:16,vars:7,consts:[["noChartData",""],[1,"heading-primary-title","title"],[3,"ngSwitch"],[3,"animationType",4,"ngSwitchCase"],[1,"ms-card","running-prunning"],[4,"ngIf","ngIfElse"],[4,"ngIf"],[1,"mt-4"],["mat-stroked-button","","color","primary",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],[3,"animationType"],[4,"ngSwitchCase"],["title","No Chart Data Available","message","Please run the appropriate script to generate chart data."],[1,"mt-2"]],template:function(a,c){if(a&1){let p=_e();w(0,"p",1),A(1,"Running"),v(),bt(2,2),J(3,ar,1,1,"ms-running-animation",3)(4,ir,1,1,"ms-running-animation",3)(5,rr,1,1,"ms-running-animation",3),At(),w(6,"mat-card",4),P(7,"ms-running-status-bar"),J(8,lr,5,4,"ng-container",5)(9,hr,1,0,"ng-template",null,0,Le),v(),J(11,dr,3,0,"ng-container",6),w(12,"div",7)(13,"button",8),Ot("click",function(){return fe(p),ve(c.navigationService.goToPreviousPage())}),P(14,"mat-icon",9),A(15," Go back "),v()()}if(a&2){let p=ye(10);S(2),L("ngSwitch",c.scriptDetails==null?null:c.scriptDetails.type),S(),L("ngSwitchCase",c.AlgorithmType.QUANTIZATION),S(),L("ngSwitchCase",c.AlgorithmType.PRUNING),S(),L("ngSwitchCase",c.AlgorithmType.MACHINE_UNLEARNING),S(3),L("ngIf",c.isChartVisible)("ngIfElse",p),S(3),L("ngIf",(c.scriptDetails==null?null:c.scriptDetails.type)===c.AlgorithmType.MACHINE_UNLEARNING)}},dependencies:[kt,sa,ca,Me,be,Ee,xe,Oe,Da,Fa,ee,Oa,ke]}),gt);$e=lt([_t()],$e);var ur=[{path:"",component:$e}],ka=(()=>{let n=class n{};n.\u0275fac=function(p){return new(p||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=pe({imports:[sn.forChild(ur),sn]});let s=n;return s})();var es=(()=>{let n=class n{};n.\u0275fac=function(p){return new(p||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=pe({providers:[De],imports:[ka,da,fa,Ct]});let s=n;return s})();export{es as RunningModule}; +import{a as B,b as Nt,c as cn,d as Fe,e as H,f as U,h as De,i as Ct}from"./chunk-2JZ6V3QN.js";import{a as xe}from"./chunk-3GNVUME3.js";import{a as ya,b as Ca}from"./chunk-W2GP6GR3.js";import"./chunk-TO7IPVMR.js";import{b as Ae,c as Ie,e as Pe,g as It}from"./chunk-W4U3FJPJ.js";import{a as Ee,b as _a}from"./chunk-2FJ2YO2M.js";import{a as te,b as Ut,e as yt,h as Wt,l as wa,n as Sa,p as Ma}from"./chunk-PSFPSLKI.js";import{a as _t,b as $t}from"./chunk-GMIVG7ET.js";import"./chunk-NT2MTW7W.js";import{$ as pe,Ae as va,Db as ra,E as ot,Ea as S,Fa as W,Fb as we,Gb as Se,Ib as Me,J as Q,Ja as ta,Q as Z,Qa as J,Sa as M,Tb as oa,Ub as kt,Vb as sa,Wb as ca,_b as la,a as x,ab as w,ac as ha,b as T,bb as v,bc as da,cb as P,db as bt,eb as At,ee as ua,f as L,gb as _e,ha as G,ia as ge,jb as Ot,je as ma,ka as Zn,lb as ht,p as lt,pa as fe,qa as ve,qb as ea,rb as na,sb as aa,sc as sn,se as pa,tb as ye,te as ga,ub as A,ue as Le,vb as ia,wb as Ce,xa as Jn,xb as an,xe as fa,yb as rn,zb as on,ze as be}from"./chunk-NPZHNGVX.js";var Pi=Object.defineProperty,Ei=(s,n,a)=>n in s?Pi(s,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[n]=a,F=(s,n,a)=>Ei(s,typeof n!="symbol"?n+"":n,a),xi=class{requestAnimationFrame(s){return requestAnimationFrame(s)}cancelAnimationFrame(s){cancelAnimationFrame(s)}},Fi=class{constructor(){F(this,"_lastHandleId",0),F(this,"_lastImmediate",null)}requestAnimationFrame(s){return this._lastHandleId>=Number.MAX_SAFE_INTEGER&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{s(Date.now())}),this._lastHandleId}cancelAnimationFrame(s){this._lastImmediate&&clearImmediate(this._lastImmediate)}},Di=class{constructor(){F(this,"_strategy"),this._strategy=typeof requestAnimationFrame=="function"?new xi:new Fi}requestAnimationFrame(s){return this._strategy.requestAnimationFrame(s)}cancelAnimationFrame(s){this._strategy.cancelAnimationFrame(s)}},Et=typeof window<"u"&&typeof window.document<"u",Te={name:"@lottiefiles/dotlottie-web",version:"0.28.0",type:"module",description:"Lottie and DotLottie player for the web",repository:{type:"git",url:"git+https://github.com/LottieFiles/dotlottie-web.git",directory:"packages/web"},homepage:"https://github.com/LottieFiles/dotlottie-web#readme",bugs:"https://github.com/LottieFiles/dotlottie-web/issues",author:"LottieFiles",contributors:["Abdelrahman Ashraf "],license:"MIT",main:"dist/index.cjs",module:"dist/index.js",types:"dist/index.d.ts",files:["dist"],keywords:["dotlottie","lottie","player","animation","web","canvas","javascript","thorvg"],scripts:{build:"tsup",dev:"tsup --watch",lint:"eslint --fix .","stats:eslint":"cross-env TIMING=1 eslint .","stats:ts":"tsc -p tsconfig.build.json --extendedDiagnostics",test:"vitest run --browser.headless","test:coverage":"vitest run --browser.headless --coverage","test:watch":"vitest","type-check":"tsc --noEmit"},devDependencies:{"@types/node":"^20.10.5","@vitest/browser":"^1.2.2 ","@vitest/coverage-istanbul":"^1.2.2","cross-env":"7.0.3",tsup:"8.1.0",typescript:"5.0.4",vitest:"^1.2.2",webdriverio:"^8.32.0"},publishConfig:{access:"public"}},Ti=(()=>{var s=typeof document<"u"?document.currentScript?.src:void 0;return function(n={}){var a=n,c,p,_=new Promise((t,e)=>{c=t,p=e}),q=Object.assign({},a),rt="./this.program",V="";typeof document<"u"&&document.currentScript&&(V=document.currentScript.src),s&&(V=s),V.startsWith("blob:")?V="":V=V.substr(0,V.replace(/[?#].*/,"").lastIndexOf("/")+1);var xt=a.print||console.log.bind(console),Ft=a.printErr||console.error.bind(console);Object.assign(a,q),q=null,a.thisProgram&&(rt=a.thisProgram);var zt;a.wasmBinary&&(zt=a.wasmBinary);var ae,vn=!1,wt,O,Dt,Bt,z,D,_n,yn;function Cn(){var t=ae.buffer;a.HEAP8=wt=new Int8Array(t),a.HEAP16=Dt=new Int16Array(t),a.HEAPU8=O=new Uint8Array(t),a.HEAPU16=Bt=new Uint16Array(t),a.HEAP32=z=new Int32Array(t),a.HEAPU32=D=new Uint32Array(t),a.HEAPF32=_n=new Float32Array(t),a.HEAPF64=yn=new Float64Array(t)}var wn=[],Sn=[],Mn=[];function ja(){var t=a.preRun.shift();wn.unshift(t)}var St=0,Ht=null;function ie(t){throw a.onAbort?.(t),t="Aborted("+t+")",Ft(t),vn=!0,t=new WebAssembly.RuntimeError(t+". Build with -sASSERTIONS for more info."),p(t),t}var Ln=t=>t.startsWith("data:application/octet-stream;base64,"),Tt;if(Tt="DotLottiePlayer.wasm",!Ln(Tt)){var bn=Tt;Tt=a.locateFile?a.locateFile(bn,V):V+bn}function An(t){if(t==Tt&&zt)return new Uint8Array(zt);throw"both async and sync fetching of the wasm failed"}function za(t){return zt||typeof fetch!="function"?Promise.resolve().then(()=>An(t)):fetch(t,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw`failed to load wasm binary file at '${t}'`;return e.arrayBuffer()}).catch(()=>An(t))}function In(t,e,i){return za(t).then(r=>WebAssembly.instantiate(r,e)).then(i,r=>{Ft(`failed to asynchronously prepare wasm: ${r}`),ie(r)})}function Ba(t,e){var i=Tt;return zt||typeof WebAssembly.instantiateStreaming!="function"||Ln(i)||typeof fetch!="function"?In(i,t,e):fetch(i,{credentials:"same-origin"}).then(r=>WebAssembly.instantiateStreaming(r,t).then(e,function(o){return Ft(`wasm streaming compile failed: ${o}`),Ft("falling back to ArrayBuffer instantiation"),In(i,t,e)}))}var Ue=t=>{for(;0{var r=e+i;for(i=e;t[i]&&!(i>=r);)++i;if(16o?r+=String.fromCharCode(o):(o-=65536,r+=String.fromCharCode(55296|o>>10,56320|o&1023))}}else r+=String.fromCharCode(o)}return r};class Ha{constructor(e){this.ya=e-24}}var En=0,xn=t=>{for(var e=0,i=0;i=r?e++:2047>=r?e+=2:55296<=r&&57343>=r?(e+=4,++i):e+=3}return e},Fn=(t,e,i,r)=>{if(0=l){var u=t.charCodeAt(++o);l=65536+((l&1023)<<10)|u&1023}if(127>=l){if(i>=r)break;e[i++]=l}else{if(2047>=l){if(i+1>=r)break;e[i++]=192|l>>6}else{if(65535>=l){if(i+2>=r)break;e[i++]=224|l>>12}else{if(i+3>=r)break;e[i++]=240|l>>18,e[i++]=128|l>>12&63}e[i++]=128|l>>6&63}e[i++]=128|l&63}}e[i]=0}},re={},We=t=>{for(;t.length;){var e=t.pop();t.pop()(e)}};function Yt(t){return this.fromWireType(D[t>>2])}var Rt={},Lt={},oe={},Vt,ft=(t,e,i)=>{function r(d){if(d=i(d),d.length!==t.length)throw new Vt("Mismatched type converter count");for(var g=0;g{Lt.hasOwnProperty(d)?o[g]=Lt[d]:(l.push(d),Rt.hasOwnProperty(d)||(Rt[d]=[]),Rt[d].push(()=>{o[g]=Lt[d],++u,u===l.length&&r(o)}))}),l.length===0&&r(o)},Dn,N=t=>{for(var e="";O[t];)e+=Dn[O[t++]];return e},b;function Ya(t,e,i={}){var r=e.name;if(!t)throw new b(`type "${r}" must have a positive integer typeid pointer`);if(Lt.hasOwnProperty(t)){if(i.ib)return;throw new b(`Cannot register type '${r}' twice`)}Lt[t]=e,delete oe[t],Rt.hasOwnProperty(t)&&(e=Rt[t],delete Rt[t],e.forEach(o=>o()))}function tt(t,e,i={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Ya(t,e,i)}var Ne=t=>{throw new b(t.ma.za.xa.name+" instance already deleted")},je=!1,Tn=()=>{},Rn=(t,e,i)=>e===i?t:i.Ca===void 0?null:(t=Rn(t,e,i.Ca),t===null?null:i.ab(t)),On={},Gt=[],ze=()=>{for(;Gt.length;){var t=Gt.pop();t.ma.Ka=!1,t.delete()}},Xt,qt={},Va=(t,e)=>{if(e===void 0)throw new b("ptr should not be undefined");for(;t.Ca;)e=t.Na(e),t=t.Ca;return qt[e]},se=(t,e)=>{if(!e.za||!e.ya)throw new Vt("makeClassHandle requires ptr and ptrType");if(!!e.Da!=!!e.Aa)throw new Vt("Both smartPtrType and smartPtr must be specified");return e.count={value:1},Kt(Object.create(t,{ma:{value:e,writable:!0}}))},Kt=t=>typeof FinalizationRegistry>"u"?(Kt=e=>e,t):(je=new FinalizationRegistry(e=>{e=e.ma,--e.count.value,e.count.value===0&&(e.Aa?e.Da.Fa(e.Aa):e.za.xa.Fa(e.ya))}),Kt=e=>{var i=e.ma;return i.Aa&&je.register(e,{ma:i},e),e},Tn=e=>{je.unregister(e)},Kt(t));function ce(){}var Qt=(t,e)=>Object.defineProperty(e,"name",{value:t}),kn=(t,e,i)=>{if(t[e].Ba===void 0){var r=t[e];t[e]=function(...o){if(!t[e].Ba.hasOwnProperty(o.length))throw new b(`Function '${i}' called with an invalid number of arguments (${o.length}) - expects one of (${t[e].Ba})!`);return t[e].Ba[o.length].apply(this,o)},t[e].Ba=[],t[e].Ba[r.Oa]=r}},Be=(t,e,i)=>{if(a.hasOwnProperty(t)){if(i===void 0||a[t].Ba!==void 0&&a[t].Ba[i]!==void 0)throw new b(`Cannot register public name '${t}' twice`);if(kn(a,t,t),a.hasOwnProperty(i))throw new b(`Cannot register multiple overloads of a function with the same number of arguments (${i})!`);a[t].Ba[i]=e}else a[t]=e,i!==void 0&&(a[t].vb=i)},Ga=t=>{if(t===void 0)return"_unknown";t=t.replace(/[^a-zA-Z0-9_]/g,"$");var e=t.charCodeAt(0);return 48<=e&&57>=e?`_${t}`:t};function Xa(t,e,i,r,o,l,u,d){this.name=t,this.constructor=e,this.La=i,this.Fa=r,this.Ca=o,this.cb=l,this.Na=u,this.ab=d,this.kb=[]}var He=(t,e,i)=>{for(;e!==i;){if(!e.Na)throw new b(`Expected null or instance of ${i.name}, got an instance of ${e.name}`);t=e.Na(t),e=e.Ca}return t};function qa(t,e){if(e===null){if(this.Ta)throw new b(`null is not a valid ${this.name}`);return 0}if(!e.ma)throw new b(`Cannot pass "${Qe(e)}" as a ${this.name}`);if(!e.ma.ya)throw new b(`Cannot pass deleted object as a pointer of type ${this.name}`);return He(e.ma.ya,e.ma.za.xa,this.xa)}function Ka(t,e){if(e===null){if(this.Ta)throw new b(`null is not a valid ${this.name}`);if(this.Qa){var i=this.Ua();return t!==null&&t.push(this.Fa,i),i}return 0}if(!e||!e.ma)throw new b(`Cannot pass "${Qe(e)}" as a ${this.name}`);if(!e.ma.ya)throw new b(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.Pa&&e.ma.za.Pa)throw new b(`Cannot convert argument of type ${e.ma.Da?e.ma.Da.name:e.ma.za.name} to parameter type ${this.name}`);if(i=He(e.ma.ya,e.ma.za.xa,this.xa),this.Qa){if(e.ma.Aa===void 0)throw new b("Passing raw pointer to smart pointer is illegal");switch(this.pb){case 0:if(e.ma.Da===this)i=e.ma.Aa;else throw new b(`Cannot convert argument of type ${e.ma.Da?e.ma.Da.name:e.ma.za.name} to parameter type ${this.name}`);break;case 1:i=e.ma.Aa;break;case 2:if(e.ma.Da===this)i=e.ma.Aa;else{var r=e.clone();i=this.lb(i,he(()=>r.delete())),t!==null&&t.push(this.Fa,i)}break;default:throw new b("Unsupporting sharing policy")}}return i}function Qa(t,e){if(e===null){if(this.Ta)throw new b(`null is not a valid ${this.name}`);return 0}if(!e.ma)throw new b(`Cannot pass "${Qe(e)}" as a ${this.name}`);if(!e.ma.ya)throw new b(`Cannot pass deleted object as a pointer of type ${this.name}`);if(e.ma.za.Pa)throw new b(`Cannot convert argument of type ${e.ma.za.name} to parameter type ${this.name}`);return He(e.ma.ya,e.ma.za.xa,this.xa)}function Zt(t,e,i,r,o,l,u,d,g,m,f){this.name=t,this.xa=e,this.Ta=i,this.Pa=r,this.Qa=o,this.jb=l,this.pb=u,this.Za=d,this.Ua=g,this.lb=m,this.Fa=f,o||e.Ca!==void 0?this.toWireType=Ka:(this.toWireType=r?qa:Qa,this.Ea=null)}var $n=(t,e,i)=>{if(!a.hasOwnProperty(t))throw new Vt("Replacing nonexistent public symbol");a[t].Ba!==void 0&&i!==void 0?a[t].Ba[i]=e:(a[t]=e,a[t].Oa=i)},K,Za=(t,e,i=[])=>(t.includes("j")?(t=t.replace(/p/g,"i"),e=(0,a["dynCall_"+t])(e,...i)):e=K.get(e)(...i),e),Ja=(t,e)=>(...i)=>Za(t,e,i),Y=(t,e)=>{t=N(t);var i=t.includes("j")?Ja(t,e):K.get(e);if(typeof i!="function")throw new b(`unknown function pointer with signature ${t}: ${e}`);return i},Un,Wn=t=>{t=Xn(t);var e=N(t);return ct(t),e},le=(t,e)=>{function i(l){o[l]||Lt[l]||(oe[l]?oe[l].forEach(i):(r.push(l),o[l]=!0))}var r=[],o={};throw e.forEach(i),new Un(`${t}: `+r.map(Wn).join([", "]))},Ye=(t,e)=>{for(var i=[],r=0;r>2]);return i};function ti(t){for(var e=1;el)throw new b("argTypes array size mismatch! Must at least get return value and 'this' types!");var u=e[1]!==null&&i!==null,d=ti(e),g=e[0].name!=="void",m=l-2,f=Array(m),I=[],E=[];return Qt(t,function(...h){if(h.length!==m)throw new b(`function ${t} called with ${h.length} arguments, expected ${m}`);if(E.length=0,I.length=u?2:1,I[0]=o,u){var y=e[1].toWireType(E,this);I[1]=y}for(var C=0;C{t=t.trim();let e=t.indexOf("(");return e!==-1?t.substr(0,e):t},Ge=[],st=[],Xe=t=>{9{if(!t)throw new b("Cannot use deleted val. handle = "+t);return st[t]},he=t=>{switch(t){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:let e=Ge.pop()||st.length;return st[e]=t,st[e+1]=1,e}},jn={name:"emscripten::val",fromWireType:t=>{var e=qe(t);return Xe(t),e},toWireType:(t,e)=>he(e),argPackAdvance:8,readValueFromPointer:Yt,Ea:null},ei=(t,e,i)=>{switch(e){case 1:return i?function(r){return this.fromWireType(wt[r])}:function(r){return this.fromWireType(O[r])};case 2:return i?function(r){return this.fromWireType(Dt[r>>1])}:function(r){return this.fromWireType(Bt[r>>1])};case 4:return i?function(r){return this.fromWireType(z[r>>2])}:function(r){return this.fromWireType(D[r>>2])};default:throw new TypeError(`invalid integer width (${e}): ${t}`)}},Ke=(t,e)=>{var i=Lt[t];if(i===void 0)throw t=`${e} has unknown type ${Wn(t)}`,new b(t);return i},Qe=t=>{if(t===null)return"null";var e=typeof t;return e==="object"||e==="array"||e==="function"?t.toString():""+t},ni=(t,e)=>{switch(e){case 4:return function(i){return this.fromWireType(_n[i>>2])};case 8:return function(i){return this.fromWireType(yn[i>>3])};default:throw new TypeError(`invalid float width (${e}): ${t}`)}},ai=(t,e,i)=>{switch(e){case 1:return i?r=>wt[r]:r=>O[r];case 2:return i?r=>Dt[r>>1]:r=>Bt[r>>1];case 4:return i?r=>z[r>>2]:r=>D[r>>2];default:throw new TypeError(`invalid integer width (${e}): ${t}`)}},zn=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,ii=(t,e)=>{for(var i=t>>1,r=i+e/2;!(i>=r)&&Bt[i];)++i;if(i<<=1,32=e/2);++r){var o=Dt[t+2*r>>1];if(o==0)break;i+=String.fromCharCode(o)}return i},ri=(t,e,i)=>{if(i??(i=2147483647),2>i)return 0;i-=2;var r=e;i=i<2*t.length?i/2:t.length;for(var o=0;o>1]=t.charCodeAt(o),e+=2;return Dt[e>>1]=0,e-r},oi=t=>2*t.length,si=(t,e)=>{for(var i=0,r="";!(i>=e/4);){var o=z[t+4*i>>2];if(o==0)break;++i,65536<=o?(o-=65536,r+=String.fromCharCode(55296|o>>10,56320|o&1023)):r+=String.fromCharCode(o)}return r},ci=(t,e,i)=>{if(i??(i=2147483647),4>i)return 0;var r=e;i=r+i-4;for(var o=0;o=l){var u=t.charCodeAt(++o);l=65536+((l&1023)<<10)|u&1023}if(z[e>>2]=l,e+=4,e+4>i)break}return z[e>>2]=0,e-r},li=t=>{for(var e=0,i=0;i=r&&++i,e+=4}return e},Ze=[],hi=t=>{var e=Ze.length;return Ze.push(t),e},di=(t,e)=>{for(var i=Array(t),r=0;r>2],"parameter "+r);return i},ui=Reflect.construct,Je={},Bn=()=>{if(!tn){var t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:rt||"./this.program"},e;for(e in Je)Je[e]===void 0?delete t[e]:t[e]=Je[e];var i=[];for(e in t)i.push(`${e}=${t[e]}`);tn=i}return tn},tn,mi=[null,[],[]],pi=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return t=>crypto.getRandomValues(t);ie("initRandomDevice")},Hn=t=>(Hn=pi())(t),de=t=>t%4===0&&(t%100!==0||t%400===0),Yn=[31,29,31,30,31,30,31,31,30,31,30,31],Vn=[31,28,31,30,31,30,31,31,30,31,30,31];function gi(t){var e=Array(xn(t)+1);return Fn(t,e,0,e.length),e}var fi=(t,e,i,r)=>{function o(h,y,C){for(h=typeof h=="number"?h.toString():h||"";h.lengthvt?-1:0$-h.getDate())y-=$-h.getDate()+1,h.setDate(1),11>C?h.setMonth(C+1):(h.setMonth(0),h.setFullYear(h.getFullYear()+1));else{h.setDate(h.getDate()+y);break}}return C=new Date(h.getFullYear()+1,0,4),y=d(new Date(h.getFullYear(),0,4)),C=d(C),0>=u(y,h)?0>=u(C,h)?h.getFullYear()+1:h.getFullYear():h.getFullYear()-1}var m=D[r+40>>2];r={sb:z[r>>2],rb:z[r+4>>2],Ra:z[r+8>>2],Va:z[r+12>>2],Sa:z[r+16>>2],Ja:z[r+20>>2],Ga:z[r+24>>2],Ia:z[r+28>>2],wb:z[r+32>>2],qb:z[r+36>>2],tb:m&&m?Mt(O,m):""},i=i?Mt(O,i):"",m={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var f in m)i=i.replace(new RegExp(f,"g"),m[f]);var I="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),E="January February March April May June July August September October November December".split(" ");m={"%a":h=>I[h.Ga].substring(0,3),"%A":h=>I[h.Ga],"%b":h=>E[h.Sa].substring(0,3),"%B":h=>E[h.Sa],"%C":h=>l((h.Ja+1900)/100|0,2),"%d":h=>l(h.Va,2),"%e":h=>o(h.Va,2," "),"%g":h=>g(h).toString().substring(2),"%G":g,"%H":h=>l(h.Ra,2),"%I":h=>(h=h.Ra,h==0?h=12:12{for(var y=0,C=0;C<=h.Sa-1;y+=(de(h.Ja+1900)?Yn:Vn)[C++]);return l(h.Va+y,3)},"%m":h=>l(h.Sa+1,2),"%M":h=>l(h.rb,2),"%n":()=>` +`,"%p":h=>0<=h.Ra&&12>h.Ra?"AM":"PM","%S":h=>l(h.sb,2),"%t":()=>" ","%u":h=>h.Ga||7,"%U":h=>l(Math.floor((h.Ia+7-h.Ga)/7),2),"%V":h=>{var y=Math.floor((h.Ia+7-(h.Ga+6)%7)/7);if(2>=(h.Ga+371-h.Ia-2)%7&&y++,y)y==53&&(C=(h.Ga+371-h.Ia)%7,C==4||C==3&&de(h.Ja)||(y=1));else{y=52;var C=(h.Ga+7-h.Ia-1)%7;(C==4||C==5&&de(h.Ja%400-1))&&y++}return l(y,2)},"%w":h=>h.Ga,"%W":h=>l(Math.floor((h.Ia+7-(h.Ga+6)%7)/7),2),"%y":h=>(h.Ja+1900).toString().substring(2),"%Y":h=>h.Ja+1900,"%z":h=>{h=h.qb;var y=0<=h;return h=Math.abs(h)/60,(y?"+":"-")+("0000"+(h/60*100+h%60)).slice(-4)},"%Z":h=>h.tb,"%%":()=>"%"},i=i.replace(/%%/g,"\0\0");for(f in m)i.includes(f)&&(i=i.replace(new RegExp(f,"g"),m[f](r)));return i=i.replace(/\0\0/g,"%"),f=gi(i),f.length>e?0:(wt.set(f,t),f.length-1)};Vt=a.InternalError=class extends Error{constructor(t){super(t),this.name="InternalError"}};for(var Gn=Array(256),ue=0;256>ue;++ue)Gn[ue]=String.fromCharCode(ue);Dn=Gn,b=a.BindingError=class extends Error{constructor(t){super(t),this.name="BindingError"}},Object.assign(ce.prototype,{isAliasOf:function(t){if(!(this instanceof ce&&t instanceof ce))return!1;var e=this.ma.za.xa,i=this.ma.ya;t.ma=t.ma;var r=t.ma.za.xa;for(t=t.ma.ya;e.Ca;)i=e.Na(i),e=e.Ca;for(;r.Ca;)t=r.Na(t),r=r.Ca;return e===r&&i===t},clone:function(){if(this.ma.ya||Ne(this),this.ma.Ma)return this.ma.count.value+=1,this;var t=Kt,e=Object,i=e.create,r=Object.getPrototypeOf(this),o=this.ma;return t=t(i.call(e,r,{ma:{value:{count:o.count,Ka:o.Ka,Ma:o.Ma,ya:o.ya,za:o.za,Aa:o.Aa,Da:o.Da}}})),t.ma.count.value+=1,t.ma.Ka=!1,t},delete(){if(this.ma.ya||Ne(this),this.ma.Ka&&!this.ma.Ma)throw new b("Object already scheduled for deletion");Tn(this);var t=this.ma;--t.count.value,t.count.value===0&&(t.Aa?t.Da.Fa(t.Aa):t.za.xa.Fa(t.ya)),this.ma.Ma||(this.ma.Aa=void 0,this.ma.ya=void 0)},isDeleted:function(){return!this.ma.ya},deleteLater:function(){if(this.ma.ya||Ne(this),this.ma.Ka&&!this.ma.Ma)throw new b("Object already scheduled for deletion");return Gt.push(this),Gt.length===1&&Xt&&Xt(ze),this.ma.Ka=!0,this}}),a.getInheritedInstanceCount=()=>Object.keys(qt).length,a.getLiveInheritedInstances=()=>{var t=[],e;for(e in qt)qt.hasOwnProperty(e)&&t.push(qt[e]);return t},a.flushPendingDeletes=ze,a.setDelayFunction=t=>{Xt=t,Gt.length&&Xt&&Xt(ze)},Object.assign(Zt.prototype,{eb(t){return this.Za&&(t=this.Za(t)),t},Xa(t){this.Fa?.(t)},argPackAdvance:8,readValueFromPointer:Yt,fromWireType:function(t){function e(){return this.Qa?se(this.xa.La,{za:this.jb,ya:i,Da:this,Aa:t}):se(this.xa.La,{za:this,ya:t})}var i=this.eb(t);if(!i)return this.Xa(t),null;var r=Va(this.xa,i);if(r!==void 0)return r.ma.count.value===0?(r.ma.ya=i,r.ma.Aa=t,r.clone()):(r=r.clone(),this.Xa(t),r);if(r=this.xa.cb(i),r=On[r],!r)return e.call(this);r=this.Pa?r.$a:r.pointerType;var o=Rn(i,this.xa,r.xa);return o===null?e.call(this):this.Qa?se(r.xa.La,{za:r,ya:o,Da:this,Aa:t}):se(r.xa.La,{za:r,ya:o})}}),Un=a.UnboundTypeError=((t,e)=>{var i=Qt(e,function(r){this.name=e,this.message=r,r=Error(r).stack,r!==void 0&&(this.stack=this.toString()+` +`+r.replace(/^Error(:[^\n]*)?\n/,""))});return i.prototype=Object.create(t.prototype),i.prototype.constructor=i,i.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},i})(Error,"UnboundTypeError"),st.push(0,1,void 0,1,null,1,!0,1,!1,1),a.count_emval_handles=()=>st.length/2-5-Ge.length;var vi={c:(t,e,i,r)=>{ie(`Assertion failed: ${t?Mt(O,t):""}, at: `+[e?e?Mt(O,e):"":"unknown filename",i,r?r?Mt(O,r):"":"unknown function"])},m:(t,e,i)=>{var r=new Ha(t);throw D[r.ya+16>>2]=0,D[r.ya+4>>2]=e,D[r.ya+8>>2]=i,En=t,En},B:function(){return 0},P:()=>{},M:()=>{},R:function(){return 0},N:()=>{},A:function(){},O:()=>{},v:t=>{var e=re[t];delete re[t];var i=e.Ua,r=e.Fa,o=e.Ya,l=o.map(u=>u.hb).concat(o.map(u=>u.nb));ft([t],l,u=>{var d={};return o.forEach((g,m)=>{var f=u[m],I=g.fb,E=g.gb,h=u[m+o.length],y=g.mb,C=g.ob;d[g.bb]={read:$=>f.fromWireType(I(E,$)),write:($,vt)=>{var X=[];y(C,$,h.toWireType(X,vt)),We(X)}}}),[{name:e.name,fromWireType:g=>{var m={},f;for(f in d)m[f]=d[f].read(g);return r(g),m},toWireType:(g,m)=>{for(var f in d)if(!(f in m))throw new TypeError(`Missing field: "${f}"`);var I=i();for(f in d)d[f].write(I,m[f]);return g!==null&&g.push(r,I),I},argPackAdvance:8,readValueFromPointer:Yt,Ea:r}]})},I:()=>{},Y:(t,e,i,r)=>{e=N(e),tt(t,{name:e,fromWireType:function(o){return!!o},toWireType:function(o,l){return l?i:r},argPackAdvance:8,readValueFromPointer:function(o){return this.fromWireType(O[o])},Ea:null})},r:(t,e,i,r,o,l,u,d,g,m,f,I,E)=>{f=N(f),l=Y(o,l),d&&(d=Y(u,d)),m&&(m=Y(g,m)),E=Y(I,E);var h=Ga(f);Be(h,function(){le(`Cannot construct ${f} due to unbound types`,[r])}),ft([t,e,i],r?[r]:[],y=>{if(y=y[0],r)var C=y.xa,$=C.La;else $=ce.prototype;y=Qt(f,function(...nn){if(Object.getPrototypeOf(this)!==vt)throw new b("Use 'new' to construct "+f);if(X.Ha===void 0)throw new b(f+" has no accessible constructor");var Qn=X.Ha[nn.length];if(Qn===void 0)throw new b(`Tried to invoke ctor of ${f} with invalid number of parameters (${nn.length}) - expected (${Object.keys(X.Ha).toString()}) parameters instead!`);return Qn.apply(this,nn)});var vt=Object.create($,{constructor:{value:y}});y.prototype=vt;var X=new Xa(f,y,vt,E,C,l,d,m);if(X.Ca){var Jt;(Jt=X.Ca).Wa??(Jt.Wa=[]),X.Ca.Wa.push(X)}return C=new Zt(f,X,!0,!1,!1),Jt=new Zt(f+"*",X,!1,!1,!1),$=new Zt(f+" const*",X,!1,!0,!1),On[t]={pointerType:Jt,$a:$},$n(h,y),[C,Jt,$]})},q:(t,e,i,r,o,l)=>{var u=Ye(e,i);o=Y(r,o),ft([],[t],d=>{d=d[0];var g=`constructor ${d.name}`;if(d.xa.Ha===void 0&&(d.xa.Ha=[]),d.xa.Ha[e-1]!==void 0)throw new b(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${d.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return d.xa.Ha[e-1]=()=>{le(`Cannot construct ${d.name} due to unbound types`,u)},ft([],u,m=>(m.splice(1,0,null),d.xa.Ha[e-1]=Ve(g,m,null,o,l),[])),[]})},f:(t,e,i,r,o,l,u,d)=>{var g=Ye(i,r);e=N(e),e=Nn(e),l=Y(o,l),ft([],[t],m=>{function f(){le(`Cannot call ${I} due to unbound types`,g)}m=m[0];var I=`${m.name}.${e}`;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),d&&m.xa.kb.push(e);var E=m.xa.La,h=E[e];return h===void 0||h.Ba===void 0&&h.className!==m.name&&h.Oa===i-2?(f.Oa=i-2,f.className=m.name,E[e]=f):(kn(E,e,I),E[e].Ba[i-2]=f),ft([],g,y=>(y=Ve(I,y,m,l,u),E[e].Ba===void 0?(y.Oa=i-2,E[e]=y):E[e].Ba[i-2]=y,[])),[]})},X:t=>tt(t,jn),x:(t,e,i,r)=>{function o(){}e=N(e),o.values={},tt(t,{name:e,constructor:o,fromWireType:function(l){return this.constructor.values[l]},toWireType:(l,u)=>u.value,argPackAdvance:8,readValueFromPointer:ei(e,i,r),Ea:null}),Be(e,o)},k:(t,e,i)=>{var r=Ke(t,"enum");e=N(e),t=r.constructor,r=Object.create(r.constructor.prototype,{value:{value:i},constructor:{value:Qt(`${r.name}_${e}`,function(){})}}),t.values[i]=r,t[e]=r},C:(t,e,i)=>{e=N(e),tt(t,{name:e,fromWireType:r=>r,toWireType:(r,o)=>o,argPackAdvance:8,readValueFromPointer:ni(e,i),Ea:null})},E:(t,e,i,r,o,l)=>{var u=Ye(e,i);t=N(t),t=Nn(t),o=Y(r,o),Be(t,function(){le(`Cannot call ${t} due to unbound types`,u)},e-1),ft([],u,d=>($n(t,Ve(t,[d[0],null].concat(d.slice(1)),null,o,l),e-1),[]))},l:(t,e,i,r,o)=>{if(e=N(e),o===-1&&(o=4294967295),o=d=>d,r===0){var l=32-8*i;o=d=>d<>>l}var u=e.includes("unsigned")?function(d,g){return g>>>0}:function(d,g){return g};tt(t,{name:e,fromWireType:o,toWireType:u,argPackAdvance:8,readValueFromPointer:ai(e,i,r!==0),Ea:null})},g:(t,e,i)=>{function r(l){return new o(wt.buffer,D[l+4>>2],D[l>>2])}var o=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];i=N(i),tt(t,{name:i,fromWireType:r,argPackAdvance:8,readValueFromPointer:r},{ib:!0})},w:t=>{tt(t,jn)},ca:(t,e,i,r,o,l,u,d,g,m,f,I)=>{i=N(i),l=Y(o,l),d=Y(u,d),m=Y(g,m),I=Y(f,I),ft([t],[e],E=>(E=E[0],[new Zt(i,E.xa,!1,!1,!0,E,r,l,d,m,I)]))},D:(t,e)=>{e=N(e);var i=e==="std::string";tt(t,{name:e,fromWireType:function(r){var o=D[r>>2],l=r+4;if(i)for(var u=l,d=0;d<=o;++d){var g=l+d;if(d==o||O[g]==0){if(u=u?Mt(O,u,g-u):"",m===void 0)var m=u;else m+="\0",m+=u;u=g+1}}else{for(m=Array(o),d=0;d>2]=u,i&&l)Fn(o,O,g,u+1);else if(l)for(l=0;l{if(i=N(i),e===2)var r=ii,o=ri,l=oi,u=d=>Bt[d>>1];else e===4&&(r=si,o=ci,l=li,u=d=>D[d>>2]);tt(t,{name:i,fromWireType:d=>{for(var g=D[d>>2],m,f=d+4,I=0;I<=g;++I){var E=d+4+I*e;(I==g||u(E)==0)&&(f=r(f,E-f),m===void 0?m=f:(m+="\0",m+=f),f=E+e)}return ct(d),m},toWireType:(d,g)=>{if(typeof g!="string")throw new b(`Cannot pass non-string to C++ string type ${i}`);var m=l(g),f=en(4+m+e);return D[f>>2]=m/e,o(g,f+4,m+e),d!==null&&d.push(ct,f),f},argPackAdvance:8,readValueFromPointer:Yt,Ea(d){ct(d)}})},s:(t,e,i,r,o,l)=>{re[t]={name:N(e),Ua:Y(i,r),Fa:Y(o,l),Ya:[]}},j:(t,e,i,r,o,l,u,d,g,m)=>{re[t].Ya.push({bb:N(e),hb:i,fb:Y(r,o),gb:l,nb:u,mb:Y(d,g),ob:m})},Z:(t,e)=>{e=N(e),tt(t,{ub:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:()=>{}})},J:()=>{throw 1/0},aa:(t,e,i,r)=>(t=Ze[t],e=qe(e),t(null,e,i,r)),F:Xe,$:(t,e,i)=>{var r=di(t,e),o=r.shift();t--;var l=Array(t);return e=`methodCaller<(${r.map(u=>u.name).join(", ")}) => ${o.name}>`,hi(Qt(e,(u,d,g,m)=>{for(var f=0,I=0;I>2]=he(u)),d}))},ba:t=>{9{var e=qe(t);We(e),Xe(t)},o:(t,e)=>(t=Ke(t,"_emval_take_value"),t=t.readValueFromPointer(e),he(t)),W:()=>{ie("")},V:()=>performance.now(),L:t=>{var e=O.length;if(t>>>=0,2147483648=i;i*=2){var r=e*(1+.2/i);r=Math.min(r,t+100663296);var o=Math;r=Math.max(t,r);t:{o=(o.min.call(o,2147483648,r+(65536-r%65536)%65536)-ae.buffer.byteLength+65535)/65536;try{ae.grow(o),Cn();var l=1;break t}catch{}l=void 0}if(l)return!0}return!1},S:(t,e)=>{var i=0;return Bn().forEach((r,o)=>{var l=e+i;for(o=D[t+4*o>>2]=l,l=0;l{var i=Bn();D[t>>2]=i.length;var r=0;return i.forEach(o=>r+=o.length+1),D[e>>2]=r,0},t:()=>52,z:()=>52,H:function(){return 70},Q:(t,e,i,r)=>{for(var o=0,l=0;l>2],d=D[e+4>>2];e+=8;for(var g=0;g>2]=o,0},U:(t,e)=>(Hn(O.subarray(t,t+e)),0),i:Si,d:wi,e:Ci,p:Mi,y:Ai,b:_i,a:yi,h:bi,n:Li,G:Ii,K:(t,e,i,r)=>fi(t,e,i,r)},k=function(){function t(i){return k=i.exports,ae=k.da,Cn(),K=k.ha,Sn.unshift(k.ea),St--,a.monitorRunDependencies?.(St),St==0&&Ht&&(i=Ht,Ht=null,i()),k}var e={a:vi};if(St++,a.monitorRunDependencies?.(St),a.instantiateWasm)try{return a.instantiateWasm(e,t)}catch(i){Ft(`Module.instantiateWasm callback failed with error: ${i}`),p(i)}return Ba(e,function(i){t(i.instance)}).catch(p),{}}(),en=t=>(en=k.fa)(t),Xn=t=>(Xn=k.ga)(t),ct=t=>(ct=k.ia)(t),et=(t,e)=>(et=k.ja)(t,e),nt=t=>(nt=k.ka)(t),at=()=>(at=k.la)();a.dynCall_iijj=(t,e,i,r,o,l)=>(a.dynCall_iijj=k.na)(t,e,i,r,o,l),a.dynCall_vijj=(t,e,i,r,o,l)=>(a.dynCall_vijj=k.oa)(t,e,i,r,o,l),a.dynCall_jiii=(t,e,i,r)=>(a.dynCall_jiii=k.pa)(t,e,i,r),a.dynCall_jii=(t,e,i)=>(a.dynCall_jii=k.qa)(t,e,i);var qn=a.dynCall_viiij=(t,e,i,r,o,l)=>(qn=a.dynCall_viiij=k.ra)(t,e,i,r,o,l);a.dynCall_jiji=(t,e,i,r,o)=>(a.dynCall_jiji=k.sa)(t,e,i,r,o),a.dynCall_viijii=(t,e,i,r,o,l,u)=>(a.dynCall_viijii=k.ta)(t,e,i,r,o,l,u),a.dynCall_iiiiij=(t,e,i,r,o,l,u)=>(a.dynCall_iiiiij=k.ua)(t,e,i,r,o,l,u),a.dynCall_iiiiijj=(t,e,i,r,o,l,u,d,g)=>(a.dynCall_iiiiijj=k.va)(t,e,i,r,o,l,u,d,g),a.dynCall_iiiiiijj=(t,e,i,r,o,l,u,d,g,m)=>(a.dynCall_iiiiiijj=k.wa)(t,e,i,r,o,l,u,d,g,m);function _i(t,e){var i=at();try{K.get(t)(e)}catch(r){if(nt(i),r!==r+0)throw r;et(1,0)}}function yi(t,e,i){var r=at();try{K.get(t)(e,i)}catch(o){if(nt(r),o!==o+0)throw o;et(1,0)}}function Ci(t,e,i,r){var o=at();try{return K.get(t)(e,i,r)}catch(l){if(nt(o),l!==l+0)throw l;et(1,0)}}function wi(t,e,i){var r=at();try{return K.get(t)(e,i)}catch(o){if(nt(r),o!==o+0)throw o;et(1,0)}}function Si(t,e){var i=at();try{return K.get(t)(e)}catch(r){if(nt(i),r!==r+0)throw r;et(1,0)}}function Mi(t,e,i,r,o,l){var u=at();try{return K.get(t)(e,i,r,o,l)}catch(d){if(nt(u),d!==d+0)throw d;et(1,0)}}function Li(t,e,i,r,o){var l=at();try{K.get(t)(e,i,r,o)}catch(u){if(nt(l),u!==u+0)throw u;et(1,0)}}function bi(t,e,i,r){var o=at();try{K.get(t)(e,i,r)}catch(l){if(nt(o),l!==l+0)throw l;et(1,0)}}function Ai(t){var e=at();try{K.get(t)()}catch(i){if(nt(e),i!==i+0)throw i;et(1,0)}}function Ii(t,e,i,r,o,l){var u=at();try{qn(t,e,i,r,o,l)}catch(d){if(nt(u),d!==d+0)throw d;et(1,0)}}var me;Ht=function t(){me||Kn(),me||(Ht=t)};function Kn(){function t(){if(!me&&(me=!0,a.calledRun=!0,!vn)){if(Ue(Sn),c(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),a.postRun)for(typeof a.postRun=="function"&&(a.postRun=[a.postRun]);a.postRun.length;){var e=a.postRun.shift();Mn.unshift(e)}Ue(Mn)}}if(!(0s})})}static _loadWithBackup(){return L(this,null,function*(){return this._ModulePromise||(this._ModulePromise=this._tryLoad(this._wasmURL).catch(s=>L(this,null,function*(){let n=`https://unpkg.com/${Te.name}@${Te.version}/dist/dotlottie-player.wasm`;console.warn(`Primary WASM load failed from ${this._wasmURL}. Error: ${s.message}`),console.warn(`Attempting to load WASM from backup URL: ${n}`);try{return yield this._tryLoad(n)}catch(a){throw console.error(`Primary WASM URL failed: ${s.message}`),console.error(`Backup WASM URL failed: ${a.message}`),new Error("WASM loading failed from all sources.")}}))),this._ModulePromise})}static load(){return L(this,null,function*(){return this._loadWithBackup()})}static setWasmUrl(s){this._wasmURL=s,this._ModulePromise=null}};F(Re,"_ModulePromise",null),F(Re,"_wasmURL",`https://cdn.jsdelivr.net/npm/${Te.name}@${Te.version}/dist/dotlottie-player.wasm`);var Ia=class{constructor(){F(this,"_eventListeners",new Map)}addEventListener(s,n){let a=this._eventListeners.get(s);a||(a=new Set,this._eventListeners.set(s,a)),a.add(n)}removeEventListener(s,n){let a=this._eventListeners.get(s);a&&(n?(a.delete(n),a.size===0&&this._eventListeners.delete(s)):this._eventListeners.delete(s))}dispatch(s){this._eventListeners.get(s.type)?.forEach(n=>n(s))}removeAllEventListeners(){this._eventListeners.clear()}};function Oi(s){return/^#([\da-f]{6}|[\da-f]{8})$/iu.test(s)}function ki(s){if(!Oi(s))return 0;let n=s.replace("#","");return n=n.length===6?`${n}ff`:n,parseInt(n,16)}var ln=(s,n)=>s==="reverse"?n.Mode.Reverse:s==="bounce"?n.Mode.Bounce:s==="reverse-bounce"?n.Mode.ReverseBounce:n.Mode.Forward,hn=(s,n)=>s==="contain"?n.Fit.Contain:s==="cover"?n.Fit.Cover:s==="fill"?n.Fit.Fill:s==="fit-height"?n.Fit.FitHeight:s==="fit-width"?n.Fit.FitWidth:n.Fit.None,dn=(s,n)=>{let a=new n.VectorFloat;return a.push_back(s[0]),a.push_back(s[1]),a},un=(s,n)=>{let a=new n.VectorFloat;return s.length!==2||(a.push_back(s[0]),a.push_back(s[1])),a},Pa=class R{constructor(n){F(this,"_canvas"),F(this,"_context",null),F(this,"_eventManager"),F(this,"_animationFrameId",null),F(this,"_frameManager"),F(this,"_dotLottieCore",null),F(this,"_renderConfig",{}),F(this,"_isFrozen",!1),F(this,"_backgroundColor",null),this._canvas=n.canvas,this._context=this._canvas.getContext("2d"),this._eventManager=new Ia,this._frameManager=new Di,this._renderConfig=n.renderConfig??{},Re.load().then(a=>{R._wasmModule=a,this._dotLottieCore=new a.DotLottiePlayer({autoplay:n.autoplay??!1,backgroundColor:0,loopAnimation:n.loop??!1,mode:ln(n.mode??"forward",a),segment:un(n.segment??[],a),speed:n.speed??1,useFrameInterpolation:n.useFrameInterpolation??!0,marker:n.marker??"",layout:n.layout?{align:dn(n.layout.align,a),fit:hn(n.layout.fit,a)}:a.createDefaultLayout()}),this._eventManager.dispatch({type:"ready"}),n.data?this._loadFromData(n.data):n.src&&this._loadFromSrc(n.src),n.backgroundColor&&this.setBackgroundColor(n.backgroundColor)}).catch(a=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load wasm module: ${a}`)})})}_loadFromSrc(n){function a(){return L(this,null,function*(){let c=yield fetch(n);if(!c.ok)throw new Error(`Failed to fetch the animation data from URL: ${n}. ${c.status}: ${c.statusText}`);let p=(c.headers.get("content-type")??"").trim(),_;return["application/json","text/plain"].some(q=>p.startsWith(q))?_=yield c.text():_=yield c.arrayBuffer(),_})}a().then(c=>{this._loadFromData(c)}).catch(c=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load animation data from URL: ${n}. ${c}`)})})}_loadFromData(n){if(this._dotLottieCore===null)return;let a=this._canvas.width,c=this._canvas.height,p=!1;if(typeof n=="string")p=this._dotLottieCore.loadAnimationData(n,a,c);else if(n instanceof ArrayBuffer)p=this._dotLottieCore.loadDotLottieData(n,a,c);else if(typeof n=="object")p=this._dotLottieCore.loadAnimationData(JSON.stringify(n),a,c);else{this._eventManager.dispatch({type:"loadError",error:new Error("Unsupported data type for animation data. Expected a string or ArrayBuffer.")});return}p?(this._eventManager.dispatch({type:"load"}),Et&&this.resize(),this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render(),this._dotLottieCore.config().autoplay&&(this._dotLottieCore.play(),this._dotLottieCore.isPlaying()?(this._eventManager.dispatch({type:"play"}),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this))):console.error("something went wrong, the animation was suppose to autoplay"))):this._eventManager.dispatch({type:"loadError",error:new Error("Failed to load animation data")})}get activeAnimationId(){return this._dotLottieCore?.activeAnimationId()}get activeThemeId(){return this._dotLottieCore?.activeThemeId()}get layout(){let n=this._dotLottieCore?.config().layout;if(n)return{align:[n.align.get(0),n.align.get(1)],fit:(()=>{switch(n.fit){case R._wasmModule?.Fit.Contain:return"contain";case R._wasmModule?.Fit.Cover:return"cover";case R._wasmModule?.Fit.Fill:return"fill";case R._wasmModule?.Fit.FitHeight:return"fit-height";case R._wasmModule?.Fit.FitWidth:return"fit-width";case R._wasmModule?.Fit.None:return"none";default:return"contain"}})()}}get marker(){return this._dotLottieCore?.config().marker}get manifest(){try{let n=this._dotLottieCore?.manifestString();if(this._dotLottieCore===null||!n)return null;let a=JSON.parse(n);return Object.keys(a).length===0?null:a}catch{return null}}get renderConfig(){return this._renderConfig}get segment(){let n=this._dotLottieCore?.config().segment;if(n&&n.size()===2)return[n.get(0),n.get(1)]}get loop(){return this._dotLottieCore?.config().loopAnimation??!1}get mode(){let n=this._dotLottieCore?.config().mode;return n===R._wasmModule?.Mode.Reverse?"reverse":n===R._wasmModule?.Mode.Bounce?"bounce":n===R._wasmModule?.Mode.ReverseBounce?"reverse-bounce":"forward"}get isFrozen(){return this._isFrozen}get backgroundColor(){return this._backgroundColor??""}get autoplay(){return this._dotLottieCore?.config().autoplay??!1}get useFrameInterpolation(){return this._dotLottieCore?.config().useFrameInterpolation??!1}get speed(){return this._dotLottieCore?.config().speed??0}get isReady(){return this._dotLottieCore!==null}get isLoaded(){return this._dotLottieCore?.isLoaded()??!1}get isPlaying(){return this._dotLottieCore?.isPlaying()??!1}get isPaused(){return this._dotLottieCore?.isPaused()??!1}get isStopped(){return this._dotLottieCore?.isStopped()??!1}get currentFrame(){return this._dotLottieCore?.currentFrame()??0}get loopCount(){return this._dotLottieCore?.loopCount()??0}get totalFrames(){return this._dotLottieCore?.totalFrames()??0}get duration(){return this._dotLottieCore?.duration()??0}get segmentDuration(){return this._dotLottieCore?.segmentDuration()??0}get canvas(){return this._canvas}load(n){this._dotLottieCore===null||R._wasmModule===null||(this._dotLottieCore.setConfig({autoplay:n.autoplay??!1,backgroundColor:0,loopAnimation:n.loop??!1,mode:ln(n.mode??"forward",R._wasmModule),segment:un(n.segment??[],R._wasmModule),speed:n.speed??1,useFrameInterpolation:n.useFrameInterpolation??!0,marker:n.marker??"",layout:n.layout?{align:dn(n.layout.align,R._wasmModule),fit:hn(n.layout.fit,R._wasmModule)}:R._wasmModule.createDefaultLayout()}),n.data?this._loadFromData(n.data):n.src&&this._loadFromSrc(n.src),this.setBackgroundColor(n.backgroundColor??""))}_render(){if(this._dotLottieCore===null||this._context===null)return!1;if(this._dotLottieCore.render()){let n=this._dotLottieCore.buffer(),a=new Uint8ClampedArray(n,0,this._canvas.width*this._canvas.height*4),c=null;return typeof ImageData>"u"?(c=this._context.createImageData(this._canvas.width,this._canvas.height),c.data.set(a)):c=new ImageData(a,this._canvas.width,this._canvas.height),this._context.putImageData(c,0,0),this._eventManager.dispatch({type:"render",currentFrame:this._dotLottieCore.currentFrame()}),!0}return!1}_draw(){if(this._dotLottieCore===null||this._context===null||!this._dotLottieCore.isPlaying())return;let n=this._dotLottieCore.requestFrame();this._dotLottieCore.setFrame(n)&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render()&&this._dotLottieCore.isComplete()&&(this._dotLottieCore.config().loopAnimation?this._eventManager.dispatch({type:"loop",loopCount:this._dotLottieCore.loopCount()}):this._eventManager.dispatch({type:"complete"}))),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this))}play(){if(this._dotLottieCore===null)return;let n=this._dotLottieCore.play();this._isFrozen=!1,n&&(this._eventManager.dispatch({type:"play"}),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this)))}pause(){this._dotLottieCore!==null&&this._dotLottieCore.pause()&&this._eventManager.dispatch({type:"pause"})}stop(){this._dotLottieCore!==null&&this._dotLottieCore.stop()&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render(),this._eventManager.dispatch({type:"stop"}))}setFrame(n){this._dotLottieCore===null||n<0||n>this._dotLottieCore.totalFrames()||this._dotLottieCore.seek(n)&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render())}setSpeed(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{speed:n}))}setBackgroundColor(n){this._dotLottieCore!==null&&(Et&&this._canvas instanceof HTMLCanvasElement?this._canvas.style.backgroundColor=n:this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{backgroundColor:ki(n)})),this._backgroundColor=n)}setLoop(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{loopAnimation:n}))}setUseFrameInterpolation(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{useFrameInterpolation:n}))}addEventListener(n,a){this._eventManager.addEventListener(n,a)}removeEventListener(n,a){this._eventManager.removeEventListener(n,a)}destroy(){this._dotLottieCore?.delete(),this._dotLottieCore=null,this._context=null,this._eventManager.dispatch({type:"destroy"}),this._eventManager.removeAllEventListeners(),this._cleanupStateMachineListeners()}freeze(){this._animationFrameId!==null&&(this._frameManager.cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null,this._isFrozen=!0,this._eventManager.dispatch({type:"freeze"}))}unfreeze(){this._animationFrameId===null&&(this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this)),this._isFrozen=!1,this._eventManager.dispatch({type:"unfreeze"}))}resize(){if(Et&&this._canvas instanceof HTMLCanvasElement){let n=this._renderConfig.devicePixelRatio||window.devicePixelRatio||1,{height:a,width:c}=this._canvas.getBoundingClientRect();this._canvas.width=c*n,this._canvas.height=a*n}this._dotLottieCore?.resize(this._canvas.width,this._canvas.height)&&this._render()}setSegment(n,a){this._dotLottieCore===null||R._wasmModule===null||this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{segment:un([n,a],R._wasmModule)}))}setMode(n){this._dotLottieCore===null||R._wasmModule===null||this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{mode:ln(n,R._wasmModule)}))}setRenderConfig(n){this._renderConfig=n}loadAnimation(n){this._dotLottieCore===null||this._dotLottieCore.activeAnimationId()===n||(this._dotLottieCore.loadAnimation(n,this._canvas.width,this._canvas.height)?(this._eventManager.dispatch({type:"load"}),this.resize()):this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to animation :${n}`)}))}setMarker(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig(T(x({},this._dotLottieCore.config()),{marker:n}))}markers(){let n=this._dotLottieCore?.markers();if(n){let a=[];for(let c=0;cn in s?Pn(s,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[n]=a;var I=(s,n,a)=>An(s,typeof n!="symbol"?n+"":n,a);var Ke=class{requestAnimationFrame(n){return requestAnimationFrame(n)}cancelAnimationFrame(n){cancelAnimationFrame(n);}},Xe=class{constructor(){I(this,"_lastHandleId",0);I(this,"_lastImmediate",null);}requestAnimationFrame(n){return this._lastHandleId>=Number.MAX_SAFE_INTEGER&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{n(Date.now());}),this._lastHandleId}cancelAnimationFrame(n){this._lastImmediate&&clearImmediate(this._lastImmediate);}},Ie=class{constructor(){I(this,"_strategy");this._strategy=typeof requestAnimationFrame=="function"?new Ke:new Xe;}requestAnimationFrame(n){return this._strategy.requestAnimationFrame(n)}cancelAnimationFrame(n){this._strategy.cancelAnimationFrame(n);}};var te=typeof window<"u"&&typeof window.document<"u";var me={name:"@lottiefiles/dotlottie-web",version:"0.28.0",type:"module",description:"Lottie and DotLottie player for the web",repository:{type:"git",url:"git+https://github.com/LottieFiles/dotlottie-web.git",directory:"packages/web"},homepage:"https://github.com/LottieFiles/dotlottie-web#readme",bugs:"https://github.com/LottieFiles/dotlottie-web/issues",author:"LottieFiles",contributors:["Abdelrahman Ashraf "],license:"MIT",main:"dist/index.cjs",module:"dist/index.js",types:"dist/index.d.ts",files:["dist"],keywords:["dotlottie","lottie","player","animation","web","canvas","javascript","thorvg"],scripts:{build:"tsup",dev:"tsup --watch",lint:"eslint --fix .","stats:eslint":"cross-env TIMING=1 eslint .","stats:ts":"tsc -p tsconfig.build.json --extendedDiagnostics",test:"vitest run --browser.headless","test:coverage":"vitest run --browser.headless --coverage","test:watch":"vitest","type-check":"tsc --noEmit"},devDependencies:{"@types/node":"^20.10.5","@vitest/browser":"^1.2.2 ","@vitest/coverage-istanbul":"^1.2.2","cross-env":"7.0.3",tsup:"8.1.0",typescript:"5.0.4",vitest:"^1.2.2",webdriverio:"^8.32.0"},publishConfig:{access:"public"}};var Sn=(()=>{var s=typeof document<"u"?document.currentScript?.src:void 0;return function(n={}){var a=n,d,w,T=new Promise((e,t)=>{d=e,w=t;}),W=Object.assign({},a),Y="./this.program",j="";typeof document<"u"&&document.currentScript&&(j=document.currentScript.src),s&&(j=s),j.startsWith("blob:")?j="":j=j.substr(0,j.replace(/[?#].*/,"").lastIndexOf("/")+1);var Wt=a.print||console.log.bind(console),Q=a.printErr||console.error.bind(console);Object.assign(a,W),W=null,a.thisProgram&&(Y=a.thisProgram);var ne;a.wasmBinary&&(ne=a.wasmBinary);var ve,tt=!1,G,L,Z,re,A,b,nt,rt;function at(){var e=ve.buffer;a.HEAP8=G=new Int8Array(e),a.HEAP16=Z=new Int16Array(e),a.HEAPU8=L=new Uint8Array(e),a.HEAPU16=re=new Uint16Array(e),a.HEAP32=A=new Int32Array(e),a.HEAPU32=b=new Uint32Array(e),a.HEAPF32=nt=new Float32Array(e),a.HEAPF64=rt=new Float64Array(e);}var ot=[],it=[],st=[];function jt(){var e=a.preRun.shift();ot.unshift(e);}var N=0,ae=null;function ye(e){throw a.onAbort?.(e),e="Aborted("+e+")",Q(e),tt=!0,e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info."),w(e),e}var lt=e=>e.startsWith("data:application/octet-stream;base64,"),q;if(q="DotLottiePlayer.wasm",!lt(q)){var dt=q;q=a.locateFile?a.locateFile(dt,j):j+dt;}function ut(e){if(e==q&&ne)return new Uint8Array(ne);throw "both async and sync fetching of the wasm failed"}function Bt(e){return ne||typeof fetch!="function"?Promise.resolve().then(()=>ut(e)):fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw `failed to load wasm binary file at \'${e}\'`;return t.arrayBuffer()}).catch(()=>ut(e))}function ct(e,t,r){return Bt(e).then(o=>WebAssembly.instantiate(o,t)).then(r,o=>{Q(`failed to asynchronously prepare wasm: ${o}`),ye(o);})}function Ut(e,t){var r=q;return ne||typeof WebAssembly.instantiateStreaming!="function"||lt(r)||typeof fetch!="function"?ct(r,e,t):fetch(r,{credentials:"same-origin"}).then(o=>WebAssembly.instantiateStreaming(o,e).then(t,function(i){return Q(`wasm streaming compile failed: ${i}`),Q("falling back to ArrayBuffer instantiation"),ct(r,e,t)}))}var Ae=e=>{for(;0{var o=t+r;for(r=t;e[r]&&!(r>=o);)++r;if(16i?o+=String.fromCharCode(i):(i-=65536,o+=String.fromCharCode(55296|i>>10,56320|i&1023));}}else o+=String.fromCharCode(i);}return o};class Ht{constructor(t){this.ya=t-24;}}var pt=0,mt=e=>{for(var t=0,r=0;r=o?t++:2047>=o?t+=2:55296<=o&&57343>=o?(t+=4,++r):t+=3;}return t},ft=(e,t,r,o)=>{if(0=l){var h=e.charCodeAt(++i);l=65536+((l&1023)<<10)|h&1023;}if(127>=l){if(r>=o)break;t[r++]=l;}else {if(2047>=l){if(r+1>=o)break;t[r++]=192|l>>6;}else {if(65535>=l){if(r+2>=o)break;t[r++]=224|l>>12;}else {if(r+3>=o)break;t[r++]=240|l>>18,t[r++]=128|l>>12&63;}t[r++]=128|l>>6&63;}t[r++]=128|l&63;}}t[r]=0;}},ge={},Te=e=>{for(;e.length;){var t=e.pop();e.pop()(t);}};function oe(e){return this.fromWireType(b[e>>2])}var ee={},K={},we={},ie,H=(e,t,r)=>{function o(c){if(c=r(c),c.length!==e.length)throw new ie("Mismatched type converter count");for(var m=0;m{K.hasOwnProperty(c)?i[m]=K[c]:(l.push(c),ee.hasOwnProperty(c)||(ee[c]=[]),ee[c].push(()=>{i[m]=K[c],++h,h===l.length&&o(i);}));}),l.length===0&&o(i);},vt,P=e=>{for(var t="";L[e];)t+=vt[L[e++]];return t},g;function Yt(e,t,r={}){var o=t.name;if(!e)throw new g(`type "${o}" must have a positive integer typeid pointer`);if(K.hasOwnProperty(e)){if(r.ib)return;throw new g(`Cannot register type \'${o}\' twice`)}K[e]=t,delete we[e],ee.hasOwnProperty(e)&&(t=ee[e],delete ee[e],t.forEach(i=>i()));}function k(e,t,r={}){if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Yt(e,t,r)}var Se=e=>{throw new g(e.ma.za.xa.name+" instance already deleted")},Re=!1,yt=()=>{},gt=(e,t,r)=>t===r?e:r.Ca===void 0?null:(e=gt(e,t,r.Ca),e===null?null:r.ab(e)),wt={},se=[],$e=()=>{for(;se.length;){var e=se.pop();e.ma.Ka=!1,e.delete();}},le,de={},Gt=(e,t)=>{if(t===void 0)throw new g("ptr should not be undefined");for(;e.Ca;)t=e.Na(t),e=e.Ca;return de[t]},_e=(e,t)=>{if(!t.za||!t.ya)throw new ie("makeClassHandle requires ptr and ptrType");if(!!t.Da!=!!t.Aa)throw new ie("Both smartPtrType and smartPtr must be specified");return t.count={value:1},ue(Object.create(e,{ma:{value:t,writable:!0}}))},ue=e=>typeof FinalizationRegistry>"u"?(ue=t=>t,e):(Re=new FinalizationRegistry(t=>{t=t.ma,--t.count.value,t.count.value===0&&(t.Aa?t.Da.Fa(t.Aa):t.za.xa.Fa(t.ya));}),ue=t=>{var r=t.ma;return r.Aa&&Re.register(t,{ma:r},t),t},yt=t=>{Re.unregister(t);},ue(e));function Ee(){}var ce=(e,t)=>Object.defineProperty(t,"name",{value:e}),_t=(e,t,r)=>{if(e[t].Ba===void 0){var o=e[t];e[t]=function(...i){if(!e[t].Ba.hasOwnProperty(i.length))throw new g(`Function \'${r}\' called with an invalid number of arguments (${i.length}) - expects one of (${e[t].Ba})!`);return e[t].Ba[i.length].apply(this,i)},e[t].Ba=[],e[t].Ba[o.Oa]=o;}},ke=(e,t,r)=>{if(a.hasOwnProperty(e)){if(r===void 0||a[e].Ba!==void 0&&a[e].Ba[r]!==void 0)throw new g(`Cannot register public name \'${e}\' twice`);if(_t(a,e,e),a.hasOwnProperty(r))throw new g(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`);a[e].Ba[r]=t;}else a[e]=t,r!==void 0&&(a[e].vb=r);},Nt=e=>{if(e===void 0)return "_unknown";e=e.replace(/[^a-zA-Z0-9_]/g,"$");var t=e.charCodeAt(0);return 48<=t&&57>=t?`_${e}`:e};function Jt(e,t,r,o,i,l,h,c){this.name=e,this.constructor=t,this.La=r,this.Fa=o,this.Ca=i,this.cb=l,this.Na=h,this.ab=c,this.kb=[];}var De=(e,t,r)=>{for(;t!==r;){if(!t.Na)throw new g(`Expected null or instance of ${r.name}, got an instance of ${t.name}`);e=t.Na(e),t=t.Ca;}return e};function Kt(e,t){if(t===null){if(this.Ta)throw new g(`null is not a valid ${this.name}`);return 0}if(!t.ma)throw new g(`Cannot pass "${He(t)}" as a ${this.name}`);if(!t.ma.ya)throw new g(`Cannot pass deleted object as a pointer of type ${this.name}`);return De(t.ma.ya,t.ma.za.xa,this.xa)}function Xt(e,t){if(t===null){if(this.Ta)throw new g(`null is not a valid ${this.name}`);if(this.Qa){var r=this.Ua();return e!==null&&e.push(this.Fa,r),r}return 0}if(!t||!t.ma)throw new g(`Cannot pass "${He(t)}" as a ${this.name}`);if(!t.ma.ya)throw new g(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.Pa&&t.ma.za.Pa)throw new g(`Cannot convert argument of type ${t.ma.Da?t.ma.Da.name:t.ma.za.name} to parameter type ${this.name}`);if(r=De(t.ma.ya,t.ma.za.xa,this.xa),this.Qa){if(t.ma.Aa===void 0)throw new g("Passing raw pointer to smart pointer is illegal");switch(this.pb){case 0:if(t.ma.Da===this)r=t.ma.Aa;else throw new g(`Cannot convert argument of type ${t.ma.Da?t.ma.Da.name:t.ma.za.name} to parameter type ${this.name}`);break;case 1:r=t.ma.Aa;break;case 2:if(t.ma.Da===this)r=t.ma.Aa;else {var o=t.clone();r=this.lb(r,Me(()=>o.delete())),e!==null&&e.push(this.Fa,r);}break;default:throw new g("Unsupporting sharing policy")}}return r}function Qt(e,t){if(t===null){if(this.Ta)throw new g(`null is not a valid ${this.name}`);return 0}if(!t.ma)throw new g(`Cannot pass "${He(t)}" as a ${this.name}`);if(!t.ma.ya)throw new g(`Cannot pass deleted object as a pointer of type ${this.name}`);if(t.ma.za.Pa)throw new g(`Cannot convert argument of type ${t.ma.za.name} to parameter type ${this.name}`);return De(t.ma.ya,t.ma.za.xa,this.xa)}function he(e,t,r,o,i,l,h,c,m,p,f){this.name=e,this.xa=t,this.Ta=r,this.Pa=o,this.Qa=i,this.jb=l,this.pb=h,this.Za=c,this.Ua=m,this.lb=p,this.Fa=f,i||t.Ca!==void 0?this.toWireType=Xt:(this.toWireType=o?Kt:Qt,this.Ea=null);}var Et=(e,t,r)=>{if(!a.hasOwnProperty(e))throw new ie("Replacing nonexistent public symbol");a[e].Ba!==void 0&&r!==void 0?a[e].Ba[r]=t:(a[e]=t,a[e].Oa=r);},$,Zt=(e,t,r=[])=>(e.includes("j")?(e=e.replace(/p/g,"i"),t=(0, a["dynCall_"+e])(t,...r)):t=$.get(t)(...r),t),qt=(e,t)=>(...r)=>Zt(e,t,r),S=(e,t)=>{e=P(e);var r=e.includes("j")?qt(e,t):$.get(t);if(typeof r!="function")throw new g(`unknown function pointer with signature ${e}: ${t}`);return r},Ct,Mt=e=>{e=St(e);var t=P(e);return U(e),t},Ce=(e,t)=>{function r(l){i[l]||K[l]||(we[l]?we[l].forEach(r):(o.push(l),i[l]=!0));}var o=[],i={};throw t.forEach(r),new Ct(`${e}: `+o.map(Mt).join([", "]))},ze=(e,t)=>{for(var r=[],o=0;o>2]);return r};function en(e){for(var t=1;tl)throw new g("argTypes array size mismatch! Must at least get return value and \'this\' types!");var h=t[1]!==null&&r!==null,c=en(t),m=t[0].name!=="void",p=l-2,f=Array(p),_=[],C=[];return ce(e,function(...u){if(u.length!==p)throw new g(`function ${e} called with ${u.length} arguments, expected ${p}`);if(C.length=0,_.length=h?2:1,_[0]=i,h){var v=t[1].toWireType(C,this);_[1]=v;}for(var y=0;y{e=e.trim();let t=e.indexOf("(");return t!==-1?e.substr(0,t):e},We=[],B=[],je=e=>{9{if(!e)throw new g("Cannot use deleted val. handle = "+e);return B[e]},Me=e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:let t=We.pop()||B.length;return B[t]=e,B[t+1]=1,t}},Lt={name:"emscripten::val",fromWireType:e=>{var t=Be(e);return je(e),t},toWireType:(e,t)=>Me(t),argPackAdvance:8,readValueFromPointer:oe,Ea:null},tn=(e,t,r)=>{switch(t){case 1:return r?function(o){return this.fromWireType(G[o])}:function(o){return this.fromWireType(L[o])};case 2:return r?function(o){return this.fromWireType(Z[o>>1])}:function(o){return this.fromWireType(re[o>>1])};case 4:return r?function(o){return this.fromWireType(A[o>>2])}:function(o){return this.fromWireType(b[o>>2])};default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},Ue=(e,t)=>{var r=K[e];if(r===void 0)throw e=`${t} has unknown type ${Mt(e)}`,new g(e);return r},He=e=>{if(e===null)return "null";var t=typeof e;return t==="object"||t==="array"||t==="function"?e.toString():""+e},nn=(e,t)=>{switch(t){case 4:return function(r){return this.fromWireType(nt[r>>2])};case 8:return function(r){return this.fromWireType(rt[r>>3])};default:throw new TypeError(`invalid float width (${t}): ${e}`)}},rn=(e,t,r)=>{switch(t){case 1:return r?o=>G[o]:o=>L[o];case 2:return r?o=>Z[o>>1]:o=>re[o>>1];case 4:return r?o=>A[o>>2]:o=>b[o>>2];default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},Ft=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,an=(e,t)=>{for(var r=e>>1,o=r+t/2;!(r>=o)&&re[r];)++r;if(r<<=1,32=t/2);++o){var i=Z[e+2*o>>1];if(i==0)break;r+=String.fromCharCode(i);}return r},on=(e,t,r)=>{if(r??(r=2147483647),2>r)return 0;r-=2;var o=t;r=r<2*e.length?r/2:e.length;for(var i=0;i>1]=e.charCodeAt(i),t+=2;return Z[t>>1]=0,t-o},sn=e=>2*e.length,ln=(e,t)=>{for(var r=0,o="";!(r>=t/4);){var i=A[e+4*r>>2];if(i==0)break;++r,65536<=i?(i-=65536,o+=String.fromCharCode(55296|i>>10,56320|i&1023)):o+=String.fromCharCode(i);}return o},dn=(e,t,r)=>{if(r??(r=2147483647),4>r)return 0;var o=t;r=o+r-4;for(var i=0;i=l){var h=e.charCodeAt(++i);l=65536+((l&1023)<<10)|h&1023;}if(A[t>>2]=l,t+=4,t+4>r)break}return A[t>>2]=0,t-o},un=e=>{for(var t=0,r=0;r=o&&++r,t+=4;}return t},Ve=[],cn=e=>{var t=Ve.length;return Ve.push(e),t},hn=(e,t)=>{for(var r=Array(e),o=0;o>2],"parameter "+o);return r},pn=Reflect.construct,Ye={},It=()=>{if(!Ge){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Y||"./this.program"},t;for(t in Ye)Ye[t]===void 0?delete e[t]:e[t]=Ye[t];var r=[];for(t in e)r.push(`${t}=${e[t]}`);Ge=r;}return Ge},Ge,mn=[null,[],[]],fn=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return e=>crypto.getRandomValues(e);ye("initRandomDevice");},xt=e=>(xt=fn())(e),be=e=>e%4===0&&(e%100!==0||e%400===0),Pt=[31,29,31,30,31,30,31,31,30,31,30,31],At=[31,28,31,30,31,30,31,31,30,31,30,31];function vn(e){var t=Array(mt(e)+1);return ft(e,t,0,t.length),t}var yn=(e,t,r,o)=>{function i(u,v,y){for(u=typeof u=="number"?u.toString():u||"";u.lengthV?-1:0x-u.getDate())v-=x-u.getDate()+1,u.setDate(1),11>y?u.setMonth(y+1):(u.setMonth(0),u.setFullYear(u.getFullYear()+1));else {u.setDate(u.getDate()+v);break}}return y=new Date(u.getFullYear()+1,0,4),v=c(new Date(u.getFullYear(),0,4)),y=c(y),0>=h(v,u)?0>=h(y,u)?u.getFullYear()+1:u.getFullYear():u.getFullYear()-1}var p=b[o+40>>2];o={sb:A[o>>2],rb:A[o+4>>2],Ra:A[o+8>>2],Va:A[o+12>>2],Sa:A[o+16>>2],Ja:A[o+20>>2],Ga:A[o+24>>2],Ia:A[o+28>>2],wb:A[o+32>>2],qb:A[o+36>>2],tb:p&&p?J(L,p):""},r=r?J(L,r):"",p={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var f in p)r=r.replace(new RegExp(f,"g"),p[f]);var _="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),C="January February March April May June July August September October November December".split(" ");p={"%a":u=>_[u.Ga].substring(0,3),"%A":u=>_[u.Ga],"%b":u=>C[u.Sa].substring(0,3),"%B":u=>C[u.Sa],"%C":u=>l((u.Ja+1900)/100|0,2),"%d":u=>l(u.Va,2),"%e":u=>i(u.Va,2," "),"%g":u=>m(u).toString().substring(2),"%G":m,"%H":u=>l(u.Ra,2),"%I":u=>(u=u.Ra,u==0?u=12:12{for(var v=0,y=0;y<=u.Sa-1;v+=(be(u.Ja+1900)?Pt:At)[y++]);return l(u.Va+v,3)},"%m":u=>l(u.Sa+1,2),"%M":u=>l(u.rb,2),"%n":()=>`\n`,"%p":u=>0<=u.Ra&&12>u.Ra?"AM":"PM","%S":u=>l(u.sb,2),"%t":()=>" ","%u":u=>u.Ga||7,"%U":u=>l(Math.floor((u.Ia+7-u.Ga)/7),2),"%V":u=>{var v=Math.floor((u.Ia+7-(u.Ga+6)%7)/7);if(2>=(u.Ga+371-u.Ia-2)%7&&v++,v)v==53&&(y=(u.Ga+371-u.Ia)%7,y==4||y==3&&be(u.Ja)||(v=1));else {v=52;var y=(u.Ga+7-u.Ia-1)%7;(y==4||y==5&&be(u.Ja%400-1))&&v++;}return l(v,2)},"%w":u=>u.Ga,"%W":u=>l(Math.floor((u.Ia+7-(u.Ga+6)%7)/7),2),"%y":u=>(u.Ja+1900).toString().substring(2),"%Y":u=>u.Ja+1900,"%z":u=>{u=u.qb;var v=0<=u;return u=Math.abs(u)/60,(v?"+":"-")+("0000"+(u/60*100+u%60)).slice(-4)},"%Z":u=>u.tb,"%%":()=>"%"},r=r.replace(/%%/g,"\\0\\0");for(f in p)r.includes(f)&&(r=r.replace(new RegExp(f,"g"),p[f](o)));return r=r.replace(/\\0\\0/g,"%"),f=vn(r),f.length>t?0:(G.set(f,e),f.length-1)};ie=a.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError";}};for(var Tt=Array(256),Le=0;256>Le;++Le)Tt[Le]=String.fromCharCode(Le);vt=Tt,g=a.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError";}},Object.assign(Ee.prototype,{isAliasOf:function(e){if(!(this instanceof Ee&&e instanceof Ee))return !1;var t=this.ma.za.xa,r=this.ma.ya;e.ma=e.ma;var o=e.ma.za.xa;for(e=e.ma.ya;t.Ca;)r=t.Na(r),t=t.Ca;for(;o.Ca;)e=o.Na(e),o=o.Ca;return t===o&&r===e},clone:function(){if(this.ma.ya||Se(this),this.ma.Ma)return this.ma.count.value+=1,this;var e=ue,t=Object,r=t.create,o=Object.getPrototypeOf(this),i=this.ma;return e=e(r.call(t,o,{ma:{value:{count:i.count,Ka:i.Ka,Ma:i.Ma,ya:i.ya,za:i.za,Aa:i.Aa,Da:i.Da}}})),e.ma.count.value+=1,e.ma.Ka=!1,e},delete(){if(this.ma.ya||Se(this),this.ma.Ka&&!this.ma.Ma)throw new g("Object already scheduled for deletion");yt(this);var e=this.ma;--e.count.value,e.count.value===0&&(e.Aa?e.Da.Fa(e.Aa):e.za.xa.Fa(e.ya)),this.ma.Ma||(this.ma.Aa=void 0,this.ma.ya=void 0);},isDeleted:function(){return !this.ma.ya},deleteLater:function(){if(this.ma.ya||Se(this),this.ma.Ka&&!this.ma.Ma)throw new g("Object already scheduled for deletion");return se.push(this),se.length===1&&le&&le($e),this.ma.Ka=!0,this}}),a.getInheritedInstanceCount=()=>Object.keys(de).length,a.getLiveInheritedInstances=()=>{var e=[],t;for(t in de)de.hasOwnProperty(t)&&e.push(de[t]);return e},a.flushPendingDeletes=$e,a.setDelayFunction=e=>{le=e,se.length&&le&&le($e);},Object.assign(he.prototype,{eb(e){return this.Za&&(e=this.Za(e)),e},Xa(e){this.Fa?.(e);},argPackAdvance:8,readValueFromPointer:oe,fromWireType:function(e){function t(){return this.Qa?_e(this.xa.La,{za:this.jb,ya:r,Da:this,Aa:e}):_e(this.xa.La,{za:this,ya:e})}var r=this.eb(e);if(!r)return this.Xa(e),null;var o=Gt(this.xa,r);if(o!==void 0)return o.ma.count.value===0?(o.ma.ya=r,o.ma.Aa=e,o.clone()):(o=o.clone(),this.Xa(e),o);if(o=this.xa.cb(r),o=wt[o],!o)return t.call(this);o=this.Pa?o.$a:o.pointerType;var i=gt(r,this.xa,o.xa);return i===null?t.call(this):this.Qa?_e(o.xa.La,{za:o,ya:i,Da:this,Aa:e}):_e(o.xa.La,{za:o,ya:i})}}),Ct=a.UnboundTypeError=((e,t)=>{var r=ce(t,function(o){this.name=t,this.message=o,o=Error(o).stack,o!==void 0&&(this.stack=this.toString()+`\n`+o.replace(/^Error(:[^\\n]*)?\\n/,""));});return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},r})(Error,"UnboundTypeError"),B.push(0,1,void 0,1,null,1,!0,1,!1,1),a.count_emval_handles=()=>B.length/2-5-We.length;var gn={c:(e,t,r,o)=>{ye(`Assertion failed: ${e?J(L,e):""}, at: `+[t?t?J(L,t):"":"unknown filename",r,o?o?J(L,o):"":"unknown function"]);},m:(e,t,r)=>{var o=new Ht(e);throw b[o.ya+16>>2]=0,b[o.ya+4>>2]=t,b[o.ya+8>>2]=r,pt=e,pt},B:function(){return 0},P:()=>{},M:()=>{},R:function(){return 0},N:()=>{},A:function(){},O:()=>{},v:e=>{var t=ge[e];delete ge[e];var r=t.Ua,o=t.Fa,i=t.Ya,l=i.map(h=>h.hb).concat(i.map(h=>h.nb));H([e],l,h=>{var c={};return i.forEach((m,p)=>{var f=h[p],_=m.fb,C=m.gb,u=h[p+i.length],v=m.mb,y=m.ob;c[m.bb]={read:x=>f.fromWireType(_(C,x)),write:(x,V)=>{var R=[];v(y,x,u.toWireType(R,V)),Te(R);}};}),[{name:t.name,fromWireType:m=>{var p={},f;for(f in c)p[f]=c[f].read(m);return o(m),p},toWireType:(m,p)=>{for(var f in c)if(!(f in p))throw new TypeError(`Missing field: "${f}"`);var _=r();for(f in c)c[f].write(_,p[f]);return m!==null&&m.push(o,_),_},argPackAdvance:8,readValueFromPointer:oe,Ea:o}]});},I:()=>{},Y:(e,t,r,o)=>{t=P(t),k(e,{name:t,fromWireType:function(i){return !!i},toWireType:function(i,l){return l?r:o},argPackAdvance:8,readValueFromPointer:function(i){return this.fromWireType(L[i])},Ea:null});},r:(e,t,r,o,i,l,h,c,m,p,f,_,C)=>{f=P(f),l=S(i,l),c&&(c=S(h,c)),p&&(p=S(m,p)),C=S(_,C);var u=Nt(f);ke(u,function(){Ce(`Cannot construct ${f} due to unbound types`,[o]);}),H([e,t,r],o?[o]:[],v=>{if(v=v[0],o)var y=v.xa,x=y.La;else x=Ee.prototype;v=ce(f,function(...Je){if(Object.getPrototypeOf(this)!==V)throw new g("Use \'new\' to construct "+f);if(R.Ha===void 0)throw new g(f+" has no accessible constructor");var kt=R.Ha[Je.length];if(kt===void 0)throw new g(`Tried to invoke ctor of ${f} with invalid number of parameters (${Je.length}) - expected (${Object.keys(R.Ha).toString()}) parameters instead!`);return kt.apply(this,Je)});var V=Object.create(x,{constructor:{value:v}});v.prototype=V;var R=new Jt(f,v,V,C,y,l,c,p);if(R.Ca){var pe;(pe=R.Ca).Wa??(pe.Wa=[]),R.Ca.Wa.push(R);}return y=new he(f,R,!0,!1,!1),pe=new he(f+"*",R,!1,!1,!1),x=new he(f+" const*",R,!1,!0,!1),wt[e]={pointerType:pe,$a:x},Et(u,v),[y,pe,x]});},q:(e,t,r,o,i,l)=>{var h=ze(t,r);i=S(o,i),H([],[e],c=>{c=c[0];var m=`constructor ${c.name}`;if(c.xa.Ha===void 0&&(c.xa.Ha=[]),c.xa.Ha[t-1]!==void 0)throw new g(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class \'${c.name}\'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return c.xa.Ha[t-1]=()=>{Ce(`Cannot construct ${c.name} due to unbound types`,h);},H([],h,p=>(p.splice(1,0,null),c.xa.Ha[t-1]=Oe(m,p,null,i,l),[])),[]});},f:(e,t,r,o,i,l,h,c)=>{var m=ze(r,o);t=P(t),t=bt(t),l=S(i,l),H([],[e],p=>{function f(){Ce(`Cannot call ${_} due to unbound types`,m);}p=p[0];var _=`${p.name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]),c&&p.xa.kb.push(t);var C=p.xa.La,u=C[t];return u===void 0||u.Ba===void 0&&u.className!==p.name&&u.Oa===r-2?(f.Oa=r-2,f.className=p.name,C[t]=f):(_t(C,t,_),C[t].Ba[r-2]=f),H([],m,v=>(v=Oe(_,v,p,l,h),C[t].Ba===void 0?(v.Oa=r-2,C[t]=v):C[t].Ba[r-2]=v,[])),[]});},X:e=>k(e,Lt),x:(e,t,r,o)=>{function i(){}t=P(t),i.values={},k(e,{name:t,constructor:i,fromWireType:function(l){return this.constructor.values[l]},toWireType:(l,h)=>h.value,argPackAdvance:8,readValueFromPointer:tn(t,r,o),Ea:null}),ke(t,i);},k:(e,t,r)=>{var o=Ue(e,"enum");t=P(t),e=o.constructor,o=Object.create(o.constructor.prototype,{value:{value:r},constructor:{value:ce(`${o.name}_${t}`,function(){})}}),e.values[r]=o,e[t]=o;},C:(e,t,r)=>{t=P(t),k(e,{name:t,fromWireType:o=>o,toWireType:(o,i)=>i,argPackAdvance:8,readValueFromPointer:nn(t,r),Ea:null});},E:(e,t,r,o,i,l)=>{var h=ze(t,r);e=P(e),e=bt(e),i=S(o,i),ke(e,function(){Ce(`Cannot call ${e} due to unbound types`,h);},t-1),H([],h,c=>(Et(e,Oe(e,[c[0],null].concat(c.slice(1)),null,i,l),t-1),[]));},l:(e,t,r,o,i)=>{if(t=P(t),i===-1&&(i=4294967295),i=c=>c,o===0){var l=32-8*r;i=c=>c<>>l;}var h=t.includes("unsigned")?function(c,m){return m>>>0}:function(c,m){return m};k(e,{name:t,fromWireType:i,toWireType:h,argPackAdvance:8,readValueFromPointer:rn(t,r,o!==0),Ea:null});},g:(e,t,r)=>{function o(l){return new i(G.buffer,b[l+4>>2],b[l>>2])}var i=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];r=P(r),k(e,{name:r,fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ib:!0});},w:e=>{k(e,Lt);},ca:(e,t,r,o,i,l,h,c,m,p,f,_)=>{r=P(r),l=S(i,l),c=S(h,c),p=S(m,p),_=S(f,_),H([e],[t],C=>(C=C[0],[new he(r,C.xa,!1,!1,!0,C,o,l,c,p,_)]));},D:(e,t)=>{t=P(t);var r=t==="std::string";k(e,{name:t,fromWireType:function(o){var i=b[o>>2],l=o+4;if(r)for(var h=l,c=0;c<=i;++c){var m=l+c;if(c==i||L[m]==0){if(h=h?J(L,h,m-h):"",p===void 0)var p=h;else p+="\\0",p+=h;h=m+1;}}else {for(p=Array(i),c=0;c>2]=h,r&&l)ft(i,L,m,h+1);else if(l)for(l=0;l{if(r=P(r),t===2)var o=an,i=on,l=sn,h=c=>re[c>>1];else t===4&&(o=ln,i=dn,l=un,h=c=>b[c>>2]);k(e,{name:r,fromWireType:c=>{for(var m=b[c>>2],p,f=c+4,_=0;_<=m;++_){var C=c+4+_*t;(_==m||h(C)==0)&&(f=o(f,C-f),p===void 0?p=f:(p+="\\0",p+=f),f=C+t);}return U(c),p},toWireType:(c,m)=>{if(typeof m!="string")throw new g(`Cannot pass non-string to C++ string type ${r}`);var p=l(m),f=Ne(4+p+t);return b[f>>2]=p/t,i(m,f+4,p+t),c!==null&&c.push(U,f),f},argPackAdvance:8,readValueFromPointer:oe,Ea(c){U(c);}});},s:(e,t,r,o,i,l)=>{ge[e]={name:P(t),Ua:S(r,o),Fa:S(i,l),Ya:[]};},j:(e,t,r,o,i,l,h,c,m,p)=>{ge[e].Ya.push({bb:P(t),hb:r,fb:S(o,i),gb:l,nb:h,mb:S(c,m),ob:p});},Z:(e,t)=>{t=P(t),k(e,{ub:!0,name:t,argPackAdvance:0,fromWireType:()=>{},toWireType:()=>{}});},J:()=>{throw 1/0},aa:(e,t,r,o)=>(e=Ve[e],t=Be(t),e(null,t,r,o)),F:je,$:(e,t,r)=>{var o=hn(e,t),i=o.shift();e--;var l=Array(e);return t=`methodCaller<(${o.map(h=>h.name).join(", ")}) => ${i.name}>`,cn(ce(t,(h,c,m,p)=>{for(var f=0,_=0;_>2]=Me(h)),c}))},ba:e=>{9{var t=Be(e);Te(t),je(e);},o:(e,t)=>(e=Ue(e,"_emval_take_value"),e=e.readValueFromPointer(t),Me(e)),W:()=>{ye("");},V:()=>performance.now(),L:e=>{var t=L.length;if(e>>>=0,2147483648=r;r*=2){var o=t*(1+.2/r);o=Math.min(o,e+100663296);var i=Math;o=Math.max(e,o);e:{i=(i.min.call(i,2147483648,o+(65536-o%65536)%65536)-ve.buffer.byteLength+65535)/65536;try{ve.grow(i),at();var l=1;break e}catch{}l=void 0;}if(l)return !0}return !1},S:(e,t)=>{var r=0;return It().forEach((o,i)=>{var l=t+r;for(i=b[e+4*i>>2]=l,l=0;l{var r=It();b[e>>2]=r.length;var o=0;return r.forEach(i=>o+=i.length+1),b[t>>2]=o,0},t:()=>52,z:()=>52,H:function(){return 70},Q:(e,t,r,o)=>{for(var i=0,l=0;l>2],c=b[t+4>>2];t+=8;for(var m=0;m>2]=i,0},U:(e,t)=>(xt(L.subarray(e,e+t)),0),i:Mn,d:Cn,e:En,p:bn,y:In,b:wn,a:_n,h:Fn,n:Ln,G:xn,K:(e,t,r,o)=>yn(e,t,r,o)},F=function(){function e(r){return F=r.exports,ve=F.da,at(),$=F.ha,it.unshift(F.ea),N--,a.monitorRunDependencies?.(N),N==0&&(ae&&(r=ae,ae=null,r())),F}var t={a:gn};if(N++,a.monitorRunDependencies?.(N),a.instantiateWasm)try{return a.instantiateWasm(t,e)}catch(r){Q(`Module.instantiateWasm callback failed with error: ${r}`),w(r);}return Ut(t,function(r){e(r.instance);}).catch(w),{}}(),Ne=e=>(Ne=F.fa)(e),St=e=>(St=F.ga)(e),U=e=>(U=F.ia)(e),D=(e,t)=>(D=F.ja)(e,t),z=e=>(z=F.ka)(e),O=()=>(O=F.la)();a.dynCall_iijj=(e,t,r,o,i,l)=>(a.dynCall_iijj=F.na)(e,t,r,o,i,l),a.dynCall_vijj=(e,t,r,o,i,l)=>(a.dynCall_vijj=F.oa)(e,t,r,o,i,l),a.dynCall_jiii=(e,t,r,o)=>(a.dynCall_jiii=F.pa)(e,t,r,o),a.dynCall_jii=(e,t,r)=>(a.dynCall_jii=F.qa)(e,t,r);var Rt=a.dynCall_viiij=(e,t,r,o,i,l)=>(Rt=a.dynCall_viiij=F.ra)(e,t,r,o,i,l);a.dynCall_jiji=(e,t,r,o,i)=>(a.dynCall_jiji=F.sa)(e,t,r,o,i),a.dynCall_viijii=(e,t,r,o,i,l,h)=>(a.dynCall_viijii=F.ta)(e,t,r,o,i,l,h),a.dynCall_iiiiij=(e,t,r,o,i,l,h)=>(a.dynCall_iiiiij=F.ua)(e,t,r,o,i,l,h),a.dynCall_iiiiijj=(e,t,r,o,i,l,h,c,m)=>(a.dynCall_iiiiijj=F.va)(e,t,r,o,i,l,h,c,m),a.dynCall_iiiiiijj=(e,t,r,o,i,l,h,c,m,p)=>(a.dynCall_iiiiiijj=F.wa)(e,t,r,o,i,l,h,c,m,p);function wn(e,t){var r=O();try{$.get(e)(t);}catch(o){if(z(r),o!==o+0)throw o;D(1,0);}}function _n(e,t,r){var o=O();try{$.get(e)(t,r);}catch(i){if(z(o),i!==i+0)throw i;D(1,0);}}function En(e,t,r,o){var i=O();try{return $.get(e)(t,r,o)}catch(l){if(z(i),l!==l+0)throw l;D(1,0);}}function Cn(e,t,r){var o=O();try{return $.get(e)(t,r)}catch(i){if(z(o),i!==i+0)throw i;D(1,0);}}function Mn(e,t){var r=O();try{return $.get(e)(t)}catch(o){if(z(r),o!==o+0)throw o;D(1,0);}}function bn(e,t,r,o,i,l){var h=O();try{return $.get(e)(t,r,o,i,l)}catch(c){if(z(h),c!==c+0)throw c;D(1,0);}}function Ln(e,t,r,o,i){var l=O();try{$.get(e)(t,r,o,i);}catch(h){if(z(l),h!==h+0)throw h;D(1,0);}}function Fn(e,t,r,o){var i=O();try{$.get(e)(t,r,o);}catch(l){if(z(i),l!==l+0)throw l;D(1,0);}}function In(e){var t=O();try{$.get(e)();}catch(r){if(z(t),r!==r+0)throw r;D(1,0);}}function xn(e,t,r,o,i,l){var h=O();try{Rt(e,t,r,o,i,l);}catch(c){if(z(h),c!==c+0)throw c;D(1,0);}}var Fe;ae=function e(){Fe||$t(),Fe||(ae=e);};function $t(){function e(){if(!Fe&&(Fe=!0,a.calledRun=!0,!tt)){if(Ae(it),d(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),a.postRun)for(typeof a.postRun=="function"&&(a.postRun=[a.postRun]);a.postRun.length;){var t=a.postRun.shift();st.unshift(t);}Ae(st);}}if(!(0n})}static async _loadWithBackup(){return this._ModulePromise||(this._ModulePromise=this._tryLoad(this._wasmURL).catch(async n=>{let a=`https://unpkg.com/${me.name}@${me.version}/dist/dotlottie-player.wasm`;console.warn(`Primary WASM load failed from ${this._wasmURL}. Error: ${n.message}`),console.warn(`Attempting to load WASM from backup URL: ${a}`);try{return await this._tryLoad(a)}catch(d){throw console.error(`Primary WASM URL failed: ${n.message}`),console.error(`Backup WASM URL failed: ${d.message}`),new Error("WASM loading failed from all sources.")}})),this._ModulePromise}static async load(){return this._loadWithBackup()}static setWasmUrl(n){this._wasmURL=n,this._ModulePromise=null;}};I(X,"_ModulePromise",null),I(X,"_wasmURL",`https://cdn.jsdelivr.net/npm/${me.name}@${me.version}/dist/dotlottie-player.wasm`);var xe=class{constructor(){I(this,"_eventListeners",new Map);}addEventListener(n,a){let d=this._eventListeners.get(n);d||(d=new Set,this._eventListeners.set(n,d)),d.add(a);}removeEventListener(n,a){let d=this._eventListeners.get(n);d&&(a?(d.delete(a),d.size===0&&this._eventListeners.delete(n)):this._eventListeners.delete(n));}dispatch(n){this._eventListeners.get(n.type)?.forEach(d=>d(n));}removeAllEventListeners(){this._eventListeners.clear();}};function Rn(s){return /^#([\\da-f]{6}|[\\da-f]{8})$/iu.test(s)}function zt(s){if(!Rn(s))return 0;let n=s.replace("#","");return n=n.length===6?`${n}ff`:n,parseInt(n,16)}var Qe=(s,n)=>s==="reverse"?n.Mode.Reverse:s==="bounce"?n.Mode.Bounce:s==="reverse-bounce"?n.Mode.ReverseBounce:n.Mode.Forward,Ze=(s,n)=>s==="contain"?n.Fit.Contain:s==="cover"?n.Fit.Cover:s==="fill"?n.Fit.Fill:s==="fit-height"?n.Fit.FitHeight:s==="fit-width"?n.Fit.FitWidth:n.Fit.None,qe=(s,n)=>{let a=new n.VectorFloat;return a.push_back(s[0]),a.push_back(s[1]),a},et=(s,n)=>{let a=new n.VectorFloat;return s.length!==2||(a.push_back(s[0]),a.push_back(s[1])),a},M=class M{constructor(n){I(this,"_canvas");I(this,"_context",null);I(this,"_eventManager");I(this,"_animationFrameId",null);I(this,"_frameManager");I(this,"_dotLottieCore",null);I(this,"_renderConfig",{});I(this,"_isFrozen",!1);I(this,"_backgroundColor",null);this._canvas=n.canvas,this._context=this._canvas.getContext("2d"),this._eventManager=new xe,this._frameManager=new Ie,this._renderConfig=n.renderConfig??{},X.load().then(a=>{M._wasmModule=a,this._dotLottieCore=new a.DotLottiePlayer({autoplay:n.autoplay??!1,backgroundColor:0,loopAnimation:n.loop??!1,mode:Qe(n.mode??"forward",a),segment:et(n.segment??[],a),speed:n.speed??1,useFrameInterpolation:n.useFrameInterpolation??!0,marker:n.marker??"",layout:n.layout?{align:qe(n.layout.align,a),fit:Ze(n.layout.fit,a)}:a.createDefaultLayout()}),this._eventManager.dispatch({type:"ready"}),n.data?this._loadFromData(n.data):n.src&&this._loadFromSrc(n.src),n.backgroundColor&&this.setBackgroundColor(n.backgroundColor);}).catch(a=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load wasm module: ${a}`)});});}_loadFromSrc(n){async function a(){let d=await fetch(n);if(!d.ok)throw new Error(`Failed to fetch the animation data from URL: ${n}. ${d.status}: ${d.statusText}`);let w=(d.headers.get("content-type")??"").trim(),T;return ["application/json","text/plain"].some(W=>w.startsWith(W))?T=await d.text():T=await d.arrayBuffer(),T}a().then(d=>{this._loadFromData(d);}).catch(d=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load animation data from URL: ${n}. ${d}`)});});}_loadFromData(n){if(this._dotLottieCore===null)return;let a=this._canvas.width,d=this._canvas.height,w=!1;if(typeof n=="string")w=this._dotLottieCore.loadAnimationData(n,a,d);else if(n instanceof ArrayBuffer)w=this._dotLottieCore.loadDotLottieData(n,a,d);else if(typeof n=="object")w=this._dotLottieCore.loadAnimationData(JSON.stringify(n),a,d);else {this._eventManager.dispatch({type:"loadError",error:new Error("Unsupported data type for animation data. Expected a string or ArrayBuffer.")});return}w?(this._eventManager.dispatch({type:"load"}),te&&this.resize(),this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render(),this._dotLottieCore.config().autoplay&&(this._dotLottieCore.play(),this._dotLottieCore.isPlaying()?(this._eventManager.dispatch({type:"play"}),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this))):console.error("something went wrong, the animation was suppose to autoplay"))):this._eventManager.dispatch({type:"loadError",error:new Error("Failed to load animation data")});}get activeAnimationId(){return this._dotLottieCore?.activeAnimationId()}get activeThemeId(){return this._dotLottieCore?.activeThemeId()}get layout(){let n=this._dotLottieCore?.config().layout;if(n)return {align:[n.align.get(0),n.align.get(1)],fit:(()=>{switch(n.fit){case M._wasmModule?.Fit.Contain:return "contain";case M._wasmModule?.Fit.Cover:return "cover";case M._wasmModule?.Fit.Fill:return "fill";case M._wasmModule?.Fit.FitHeight:return "fit-height";case M._wasmModule?.Fit.FitWidth:return "fit-width";case M._wasmModule?.Fit.None:return "none";default:return "contain"}})()}}get marker(){return this._dotLottieCore?.config().marker}get manifest(){try{let n=this._dotLottieCore?.manifestString();if(this._dotLottieCore===null||!n)return null;let a=JSON.parse(n);return Object.keys(a).length===0?null:a}catch{return null}}get renderConfig(){return this._renderConfig}get segment(){let n=this._dotLottieCore?.config().segment;if(n&&n.size()===2)return [n.get(0),n.get(1)]}get loop(){return this._dotLottieCore?.config().loopAnimation??!1}get mode(){let n=this._dotLottieCore?.config().mode;return n===M._wasmModule?.Mode.Reverse?"reverse":n===M._wasmModule?.Mode.Bounce?"bounce":n===M._wasmModule?.Mode.ReverseBounce?"reverse-bounce":"forward"}get isFrozen(){return this._isFrozen}get backgroundColor(){return this._backgroundColor??""}get autoplay(){return this._dotLottieCore?.config().autoplay??!1}get useFrameInterpolation(){return this._dotLottieCore?.config().useFrameInterpolation??!1}get speed(){return this._dotLottieCore?.config().speed??0}get isReady(){return this._dotLottieCore!==null}get isLoaded(){return this._dotLottieCore?.isLoaded()??!1}get isPlaying(){return this._dotLottieCore?.isPlaying()??!1}get isPaused(){return this._dotLottieCore?.isPaused()??!1}get isStopped(){return this._dotLottieCore?.isStopped()??!1}get currentFrame(){return this._dotLottieCore?.currentFrame()??0}get loopCount(){return this._dotLottieCore?.loopCount()??0}get totalFrames(){return this._dotLottieCore?.totalFrames()??0}get duration(){return this._dotLottieCore?.duration()??0}get segmentDuration(){return this._dotLottieCore?.segmentDuration()??0}get canvas(){return this._canvas}load(n){this._dotLottieCore===null||M._wasmModule===null||(this._dotLottieCore.setConfig({autoplay:n.autoplay??!1,backgroundColor:0,loopAnimation:n.loop??!1,mode:Qe(n.mode??"forward",M._wasmModule),segment:et(n.segment??[],M._wasmModule),speed:n.speed??1,useFrameInterpolation:n.useFrameInterpolation??!0,marker:n.marker??"",layout:n.layout?{align:qe(n.layout.align,M._wasmModule),fit:Ze(n.layout.fit,M._wasmModule)}:M._wasmModule.createDefaultLayout()}),n.data?this._loadFromData(n.data):n.src&&this._loadFromSrc(n.src),this.setBackgroundColor(n.backgroundColor??""));}_render(){if(this._dotLottieCore===null||this._context===null)return !1;if(this._dotLottieCore.render()){let a=this._dotLottieCore.buffer(),d=new Uint8ClampedArray(a,0,this._canvas.width*this._canvas.height*4),w=null;return typeof ImageData>"u"?(w=this._context.createImageData(this._canvas.width,this._canvas.height),w.data.set(d)):w=new ImageData(d,this._canvas.width,this._canvas.height),this._context.putImageData(w,0,0),this._eventManager.dispatch({type:"render",currentFrame:this._dotLottieCore.currentFrame()}),!0}return !1}_draw(){if(this._dotLottieCore===null||this._context===null||!this._dotLottieCore.isPlaying())return;let n=this._dotLottieCore.requestFrame();this._dotLottieCore.setFrame(n)&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render()&&this._dotLottieCore.isComplete()&&(this._dotLottieCore.config().loopAnimation?this._eventManager.dispatch({type:"loop",loopCount:this._dotLottieCore.loopCount()}):this._eventManager.dispatch({type:"complete"}))),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this));}play(){if(this._dotLottieCore===null)return;let n=this._dotLottieCore.play();this._isFrozen=!1,n&&(this._eventManager.dispatch({type:"play"}),this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this)));}pause(){if(this._dotLottieCore===null)return;this._dotLottieCore.pause()&&this._eventManager.dispatch({type:"pause"});}stop(){if(this._dotLottieCore===null)return;this._dotLottieCore.stop()&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render(),this._eventManager.dispatch({type:"stop"}));}setFrame(n){if(this._dotLottieCore===null||n<0||n>this._dotLottieCore.totalFrames())return;this._dotLottieCore.seek(n)&&(this._eventManager.dispatch({type:"frame",currentFrame:this._dotLottieCore.currentFrame()}),this._render());}setSpeed(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),speed:n});}setBackgroundColor(n){this._dotLottieCore!==null&&(te&&this._canvas instanceof HTMLCanvasElement?this._canvas.style.backgroundColor=n:this._dotLottieCore.setConfig({...this._dotLottieCore.config(),backgroundColor:zt(n)}),this._backgroundColor=n);}setLoop(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),loopAnimation:n});}setUseFrameInterpolation(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),useFrameInterpolation:n});}addEventListener(n,a){this._eventManager.addEventListener(n,a);}removeEventListener(n,a){this._eventManager.removeEventListener(n,a);}destroy(){this._dotLottieCore?.delete(),this._dotLottieCore=null,this._context=null,this._eventManager.dispatch({type:"destroy"}),this._eventManager.removeAllEventListeners(),this._cleanupStateMachineListeners();}freeze(){this._animationFrameId!==null&&(this._frameManager.cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null,this._isFrozen=!0,this._eventManager.dispatch({type:"freeze"}));}unfreeze(){this._animationFrameId===null&&(this._animationFrameId=this._frameManager.requestAnimationFrame(this._draw.bind(this)),this._isFrozen=!1,this._eventManager.dispatch({type:"unfreeze"}));}resize(){if(te&&this._canvas instanceof HTMLCanvasElement){let a=this._renderConfig.devicePixelRatio||window.devicePixelRatio||1,{height:d,width:w}=this._canvas.getBoundingClientRect();this._canvas.width=w*a,this._canvas.height=d*a;}this._dotLottieCore?.resize(this._canvas.width,this._canvas.height)&&this._render();}setSegment(n,a){this._dotLottieCore===null||M._wasmModule===null||this._dotLottieCore.setConfig({...this._dotLottieCore.config(),segment:et([n,a],M._wasmModule)});}setMode(n){this._dotLottieCore===null||M._wasmModule===null||this._dotLottieCore.setConfig({...this._dotLottieCore.config(),mode:Qe(n,M._wasmModule)});}setRenderConfig(n){this._renderConfig=n;}loadAnimation(n){if(this._dotLottieCore===null||this._dotLottieCore.activeAnimationId()===n)return;this._dotLottieCore.loadAnimation(n,this._canvas.width,this._canvas.height)?(this._eventManager.dispatch({type:"load"}),this.resize()):this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to animation :${n}`)});}setMarker(n){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),marker:n});}markers(){let n=this._dotLottieCore?.markers();if(n){let a=[];for(let d=0;dn=>{let a={id:"",method:"onReady",result:{instanceId:s,event:n}};self.postMessage(a);},complete:s=>n=>{let a={id:"",method:"onComplete",result:{instanceId:s,event:n}};self.postMessage(a);},load:s=>n=>{let d={id:"",method:"onLoad",result:{instanceId:s,event:n}};self.postMessage(d);},loadError:s=>n=>{let d={id:"",method:"onLoadError",result:{instanceId:s,event:n}};self.postMessage(d);},loop:s=>n=>{let d={id:"",method:"onLoop",result:{instanceId:s,event:n}};self.postMessage(d);},play:s=>n=>{let d={id:"",method:"onPlay",result:{instanceId:s,event:n}};self.postMessage(d);},pause:s=>n=>{let d={id:"",method:"onPause",result:{instanceId:s,event:n}};self.postMessage(d);},stop:s=>n=>{let d={id:"",method:"onStop",result:{instanceId:s,event:n}};self.postMessage(d);},frame:s=>n=>{let d={id:"",method:"onFrame",result:{instanceId:s,event:n}};self.postMessage(d);},render:s=>n=>{let d={id:"",method:"onRender",result:{instanceId:s,event:n}};self.postMessage(d);},freeze:s=>n=>{let d={id:"",method:"onFreeze",result:{instanceId:s,event:n}};self.postMessage(d);},unfreeze:s=>n=>{let d={id:"",method:"onUnfreeze",result:{instanceId:s,event:n}};self.postMessage(d);},destroy:s=>n=>{let d={id:"",method:"onDestroy",result:{instanceId:s,event:n}};self.postMessage(d);}},Ot={getDotLottieInstanceState(s){let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return {state:{isLoaded:a.isLoaded,isPaused:a.isPaused,isPlaying:a.isPlaying,isStopped:a.isStopped,isFrozen:a.isFrozen,loop:a.loop,mode:a.mode,speed:a.speed,currentFrame:a.currentFrame,totalFrames:a.totalFrames,duration:a.duration,useFrameInterpolation:a.useFrameInterpolation,renderConfig:a.renderConfig,marker:a.marker,backgroundColor:a.backgroundColor,markers:a.markers(),activeAnimationId:a.activeAnimationId,activeThemeId:a.activeThemeId,autoplay:a.autoplay,segment:a.segment,layout:a.layout,segmentDuration:a.segmentDuration,isReady:a.isReady,manifest:a.manifest}}},setLayout(s){let n=s.params.instanceId,a=s.params.layout,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.setLayout(a),{success:!0}},getStateMachineListeners(s){let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return a.getStateMachineListeners()},postStateMachineEvent(s){let n=s.params.instanceId,a=s.params.event,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.postStateMachineEvent(a)},startStateMachine(s){let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return a.startStateMachine()},stopStateMachine(s){let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return a.stopStateMachine()},loadStateMachine(s){let n=s.params.instanceId,a=s.params.stateMachineId,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.loadStateMachine(a)},create:s=>{let n=s.params.instanceId,a=s.params.config,d=s.params.width,w=s.params.height;if(E.has(n))throw new Error(`Instance with id ${n} already exists.`);let T=new fe(a);return T.canvas.height=w,T.canvas.width=d,E.set(n,T),["complete","frame","load","loadError","loop","pause","play","stop","destroy","freeze","unfreeze","render","ready"].forEach(Y=>{T.addEventListener(Y,$n[Y](n));}),{instanceId:n}},destroy:s=>{let n=s.params.instanceId,a=E.get(n);a&&(a.destroy(),E.delete(n));},freeze:s=>{let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);a.freeze();},load:s=>{let n=s.params.instanceId,a=s.params.config,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.load(a);},loadAnimation:s=>{let n=s.params.instanceId,a=s.params.animationId,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.loadAnimation(a);},loadTheme:s=>{let n=s.params.instanceId,a=s.params.themeId,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.loadTheme(a)},loadThemeData:s=>{let n=s.params.instanceId,a=s.params.themeData,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.loadThemeData(a)},pause:s=>{let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return a.pause()},play:s=>{let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);return a.play()},resize:s=>{let n=s.params.instanceId,a=s.params.width,d=s.params.height,w=E.get(n);if(!w)throw new Error(`Instance with id ${n} does not exist.`);return w.canvas.height=d,w.canvas.width=a,w.resize(),{success:!0}},setBackgroundColor:s=>{let n=s.params.instanceId,a=s.params.backgroundColor,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setBackgroundColor(a);},setFrame:s=>{let n=s.params.instanceId,a=s.params.frame,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setFrame(a);},setMode:s=>{let n=s.params.instanceId,a=s.params.mode,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setMode(a);},setRenderConfig:s=>{let n=s.params.instanceId,a=s.params.renderConfig,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setRenderConfig(a);},setSegment:s=>{let n=s.params.instanceId,a=s.params.segment,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setSegment(a[0],a[1]);},setSpeed:s=>{let n=s.params.instanceId,a=s.params.speed,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setSpeed(a);},setUseFrameInterpolation:s=>{let n=s.params.instanceId,a=s.params.useFrameInterpolation,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);d.setUseFrameInterpolation(a);},setWasmUrl:s=>{fe.setWasmUrl(s.params.url);},stop:s=>{let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);a.stop();},unfreeze:s=>{let n=s.params.instanceId,a=E.get(n);if(!a)throw new Error(`Instance with id ${n} does not exist.`);a.unfreeze();},setViewport(s){let n=s.params.instanceId,a=s.params.x,d=s.params.y,w=s.params.width,T=s.params.height,W=E.get(n);if(!W)throw new Error(`Instance with id ${n} does not exist.`);return W.setViewport(a,d,w,T)},setMarker(s){let n=s.params.instanceId,a=s.params.marker,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.setMarker(a),{success:!0}},setLoop(s){let n=s.params.instanceId,a=s.params.loop,d=E.get(n);if(!d)throw new Error(`Instance with id ${n} does not exist.`);return d.setLoop(a),{success:!0}}};function kn(s){let n=s.method;if(typeof Ot[n]=="function")return Ot[n](s);throw new Error(`Method ${n} is not implemented in commands.`)}self.onmessage=s=>{try{let n=kn(s.data),a={id:s.data.id,method:s.data.method,result:n};self.postMessage(a);}catch(n){let a={id:s.data.id,method:s.data.method,error:n.message};self.postMessage(a);}};var Dn="",lr=Dn;\n\nexport { lr as default };\n',Ui=class{constructor(){F(this,"_workers",new Map),F(this,"_animationWorkerMap",new Map)}_createWorker(s){let n=new Blob([$i],{type:"application/javascript"});return new Worker(URL.createObjectURL(n),{type:"module",name:s})}getWorker(s){return this._workers.has(s)||this._workers.set(s,this._createWorker(s)),this._workers.get(s)}assignAnimationToWorker(s,n){this._animationWorkerMap.set(s,n)}unassignAnimationFromWorker(s){this._animationWorkerMap.delete(s)}sendMessage(s,n,a){this.getWorker(s).postMessage(n,a||[])}terminateWorker(s){let n=this._workers.get(s);n&&(n.terminate(),this._workers.delete(s))}};function La(s){if(s instanceof OffscreenCanvas)return{width:s.width,height:s.height};let{height:n,width:a}=s.getBoundingClientRect();return{width:a*window.devicePixelRatio,height:n*window.devicePixelRatio}}function ba(){return Date.now().toString(36)+Math.random().toString(36).substr(2,9)}var Aa=class Pt{constructor(n){F(this,"_eventManager",new Ia),F(this,"_id"),F(this,"_worker"),F(this,"_canvas"),F(this,"_dotLottieInstanceState",{markers:[],autoplay:!1,backgroundColor:"",currentFrame:0,duration:0,loop:!1,mode:"forward",segment:[0,0],segmentDuration:0,speed:1,totalFrames:0,isLoaded:!1,isPlaying:!1,isPaused:!1,isStopped:!0,isFrozen:!1,useFrameInterpolation:!1,renderConfig:{devicePixelRatio:window.devicePixelRatio},activeAnimationId:"",activeThemeId:"",layout:void 0,marker:void 0,isReady:!1,manifest:null}),F(this,"_created",!1),this._canvas=n.canvas,this._id=`dotlottie-${ba()}`;let a=n.workerId||"defaultWorker";this._worker=Pt._workerManager.getWorker(a),Pt._workerManager.assignAnimationToWorker(this._id,a),Pt._wasmUrl&&this._sendMessage("setWasmUrl",{url:Pt._wasmUrl}),this._create(n),this._worker.addEventListener("message",this._handleWorkerEvent.bind(this))}_handleWorkerEvent(n){return L(this,null,function*(){let a=n.data;a.id||(a.method==="onLoad"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onComplete"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onDestroy"&&a.result.instanceId===this._id&&this._eventManager.dispatch(a.result.event),a.method==="onUnfreeze"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._dotLottieInstanceState.isFrozen=!1,this._eventManager.dispatch(a.result.event)),a.method==="onFrame"&&a.result.instanceId===this._id&&(this._dotLottieInstanceState.currentFrame=a.result.event.currentFrame,this._eventManager.dispatch(a.result.event)),a.method==="onRender"&&a.result.instanceId===this._id&&this._eventManager.dispatch(a.result.event),a.method==="onFreeze"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onPause"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onPlay"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onStop"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onLoadError"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)),a.method==="onReady"&&a.result.instanceId===this._id&&(yield this._updateDotLottieInstanceState(),this._eventManager.dispatch(a.result.event)))})}_create(n){return L(this,null,function*(){let a;this._canvas instanceof HTMLCanvasElement?a=this._canvas.transferControlToOffscreen():a=this._canvas;let{instanceId:c}=yield this._sendMessage("create",x({instanceId:this._id,config:T(x({},n),{canvas:a})},La(this._canvas)),[a]);if(c!==this._id)throw new Error("Instance ID mismatch");this._created=!0,yield this._updateDotLottieInstanceState()})}get isLoaded(){return this._dotLottieInstanceState.isLoaded}get isPlaying(){return this._dotLottieInstanceState.isPlaying}get isPaused(){return this._dotLottieInstanceState.isPaused}get isStopped(){return this._dotLottieInstanceState.isStopped}get currentFrame(){return this._dotLottieInstanceState.currentFrame}get isFrozen(){return this._dotLottieInstanceState.isFrozen}get segmentDuration(){return this._dotLottieInstanceState.segmentDuration}get totalFrames(){return this._dotLottieInstanceState.totalFrames}get segment(){return this._dotLottieInstanceState.segment}get speed(){return this._dotLottieInstanceState.speed}get duration(){return this._dotLottieInstanceState.duration}get isReady(){return this._dotLottieInstanceState.isReady}get mode(){return this._dotLottieInstanceState.mode}get canvas(){return this._canvas}get autoplay(){return this._dotLottieInstanceState.autoplay}get backgroundColor(){return this._dotLottieInstanceState.backgroundColor}get loop(){return this._dotLottieInstanceState.loop}get useFrameInterpolation(){return this._dotLottieInstanceState.useFrameInterpolation}get renderConfig(){return this._dotLottieInstanceState.renderConfig}get manifest(){return this._dotLottieInstanceState.manifest}get activeAnimationId(){return this._dotLottieInstanceState.activeAnimationId}get marker(){return this._dotLottieInstanceState.marker}get activeThemeId(){return this._dotLottieInstanceState.activeThemeId}get layout(){return this._dotLottieInstanceState.layout}play(){return L(this,null,function*(){this._created&&(yield this._sendMessage("play",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}pause(){return L(this,null,function*(){this._created&&(yield this._sendMessage("pause",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}stop(){return L(this,null,function*(){this._created&&(yield this._sendMessage("stop",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setSpeed(n){return L(this,null,function*(){this._created&&(yield this._sendMessage("setSpeed",{instanceId:this._id,speed:n}),yield this._updateDotLottieInstanceState())})}setMode(n){return L(this,null,function*(){this._created&&(yield this._sendMessage("setMode",{instanceId:this._id,mode:n}),yield this._updateDotLottieInstanceState())})}setFrame(n){return L(this,null,function*(){this._created&&(yield this._sendMessage("setFrame",{frame:n,instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setSegment(n,a){return L(this,null,function*(){this._created&&(yield this._sendMessage("setSegment",{instanceId:this._id,segment:[n,a]}),yield this._updateDotLottieInstanceState())})}setRenderConfig(n){return L(this,null,function*(){this._created&&(yield this._sendMessage("setRenderConfig",{instanceId:this._id,renderConfig:n}),yield this._updateDotLottieInstanceState())})}setUseFrameInterpolation(n){return L(this,null,function*(){this._created&&(yield this._sendMessage("setUseFrameInterpolation",{instanceId:this._id,useFrameInterpolation:n}),yield this._updateDotLottieInstanceState())})}loadTheme(n){return L(this,null,function*(){if(!this._created)return!1;let a=this._sendMessage("loadTheme",{instanceId:this._id,themeId:n});return yield this._updateDotLottieInstanceState(),a})}load(n){return L(this,null,function*(){this._created&&(yield this._sendMessage("load",{config:n,instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setLoop(n){return L(this,null,function*(){this._created&&(yield this._sendMessage("setLoop",{instanceId:this._id,loop:n}),yield this._updateDotLottieInstanceState())})}resize(){return L(this,null,function*(){if(!this._created)return;let{height:n,width:a}=La(this._canvas);this._canvas.width=a,this._canvas.height=n,yield this._sendMessage("resize",{height:n,instanceId:this._id,width:a}),yield this._updateDotLottieInstanceState()})}destroy(){return L(this,null,function*(){this._created&&(this._created=!1,yield this._sendMessage("destroy",{instanceId:this._id}),this._cleanupStateMachineListeners(),Pt._workerManager.unassignAnimationFromWorker(this._id),this._eventManager.removeAllEventListeners())})}freeze(){return L(this,null,function*(){this._created&&(yield this._sendMessage("freeze",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}unfreeze(){return L(this,null,function*(){this._created&&(yield this._sendMessage("unfreeze",{instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setBackgroundColor(n){return L(this,null,function*(){this._created&&(yield this._sendMessage("setBackgroundColor",{instanceId:this._id,backgroundColor:n}),yield this._updateDotLottieInstanceState())})}loadAnimation(n){return L(this,null,function*(){this._created&&(yield this._sendMessage("loadAnimation",{animationId:n,instanceId:this._id}),yield this._updateDotLottieInstanceState())})}setLayout(n){return L(this,null,function*(){this._created&&(yield this._sendMessage("setLayout",{instanceId:this._id,layout:n}),yield this._updateDotLottieInstanceState())})}_updateDotLottieInstanceState(){return L(this,null,function*(){if(!this._created)return;let n=yield this._sendMessage("getDotLottieInstanceState",{instanceId:this._id});this._dotLottieInstanceState=n.state})}markers(){return this._dotLottieInstanceState.markers}setMarker(n){return L(this,null,function*(){this._created&&(yield this._sendMessage("setMarker",{instanceId:this._id,marker:n}),yield this._updateDotLottieInstanceState())})}loadThemeData(n){return L(this,null,function*(){if(!this._created)return!1;let a=yield this._sendMessage("loadThemeData",{instanceId:this._id,themeData:n});return yield this._updateDotLottieInstanceState(),a})}setViewport(n,a,c,p){return L(this,null,function*(){return this._created?this._sendMessage("setViewport",{x:n,y:a,width:c,height:p,instanceId:this._id}):!1})}_sendMessage(n,a,c){return L(this,null,function*(){let p={id:`dotlottie-request-${ba()}`,method:n,params:a};return this._worker.postMessage(p,c||[]),new Promise((_,q)=>{let rt=V=>{let xt=V.data;xt.id===p.id&&(this._worker.removeEventListener("message",rt),xt.error?q(new Error(`Failed to execute method ${n}: ${xt.error}`)):_(xt.result))};this._worker.addEventListener("message",rt)})})}addEventListener(n,a){this._eventManager.addEventListener(n,a)}removeEventListener(n,a){this._eventManager.removeEventListener(n,a)}static setWasmUrl(n){Pt._wasmUrl=n}loadStateMachine(n){return L(this,null,function*(){if(!this._created)return!1;let a=yield this._sendMessage("loadStateMachine",{instanceId:this._id,stateMachineId:n});return yield this._updateDotLottieInstanceState(),a})}startStateMachine(){return L(this,null,function*(){if(!this._created)return!1;this._setupStateMachineListeners();let n=yield this._sendMessage("startStateMachine",{instanceId:this._id});return yield this._updateDotLottieInstanceState(),n})}stopStateMachine(){return L(this,null,function*(){return this._created?(this._cleanupStateMachineListeners(),this._sendMessage("stopStateMachine",{instanceId:this._id})):!1})}postStateMachineEvent(n){return L(this,null,function*(){return this._created?this._sendMessage("postStateMachineEvent",{event:n,instanceId:this._id}):!1})}getStateMachineListeners(){return L(this,null,function*(){return this._created?this._sendMessage("getStateMachineListeners",{instanceId:this._id}):[]})}_getPointerPosition(n){let a=this._canvas.getBoundingClientRect(),c=this._canvas.width/a.width,p=this._canvas.height/a.height,_=this._dotLottieInstanceState.renderConfig.devicePixelRatio||window.devicePixelRatio||1,q=(n.clientX-a.left)*c/_,rt=(n.clientY-a.top)*p/_;return{x:q,y:rt}}_onPointerUp(n){let{x:a,y:c}=this._getPointerPosition(n);this.postStateMachineEvent(`OnPointerUp: ${a} ${c}`)}_onPointerDown(n){let{x:a,y:c}=this._getPointerPosition(n);this.postStateMachineEvent(`OnPointerDown: ${a} ${c}`)}_onPointerMove(n){let{x:a,y:c}=this._getPointerPosition(n);this.postStateMachineEvent(`OnPointerMove: ${a} ${c}`)}_onPointerEnter(n){let{x:a,y:c}=this._getPointerPosition(n);this.postStateMachineEvent(`OnPointerEnter: ${a} ${c}`)}_onPointerLeave(n){let{x:a,y:c}=this._getPointerPosition(n);this.postStateMachineEvent(`OnPointerExit: ${a} ${c}`)}_onComplete(){this.postStateMachineEvent("OnComplete")}_setupStateMachineListeners(){return L(this,null,function*(){if(Et&&this._canvas instanceof HTMLCanvasElement&&this.isLoaded){let n=yield this._sendMessage("getStateMachineListeners",{instanceId:this._id});n.includes("PointerUp")&&this._canvas.addEventListener("pointerup",this._onPointerUp.bind(this)),n.includes("PointerDown")&&this._canvas.addEventListener("pointerdown",this._onPointerDown.bind(this)),n.includes("PointerMove")&&this._canvas.addEventListener("pointermove",this._onPointerMove.bind(this)),n.includes("PointerEnter")&&this._canvas.addEventListener("pointerenter",this._onPointerEnter.bind(this)),n.includes("PointerExit")&&this._canvas.addEventListener("pointerleave",this._onPointerLeave.bind(this)),n.includes("Complete")&&this.addEventListener("complete",this._onComplete.bind(this))}})}_cleanupStateMachineListeners(){Et&&this._canvas instanceof HTMLCanvasElement&&(this._canvas.removeEventListener("pointerup",this._onPointerUp.bind(this)),this._canvas.removeEventListener("pointerdown",this._onPointerDown.bind(this)),this._canvas.removeEventListener("pointermove",this._onPointerMove.bind(this)),this._canvas.removeEventListener("pointerenter",this._onPointerEnter.bind(this)),this._canvas.removeEventListener("pointerleave",this._onPointerLeave.bind(this)),this.removeEventListener("complete",this._onComplete.bind(this)))}};F(Aa,"_workerManager",new Ui),F(Aa,"_wasmUrl","");function xa(s,n){let a=s.ngOnInit;s.ngOnInit=function(){if(this[n]===void 0||this[n]===null)throw new Error(`Required input '${n}' was not provided in ${s.constructor.name}.`);if(a)return a.apply(this)}}var jt=function(s){return s.QUANTIZATION="quant",s.PRUNING="pruning",s}(jt||{});var Fa={[jt.PRUNING]:{path:"assets/animations/pruning.lottie",speed:.15,className:"pruning"},[jt.QUANTIZATION]:{path:"assets/animations/quantization.lottie",speed:.07,className:"quant"}};var Ni=["dotlottieCanvas"],dt,ee=(dt=class{constructor(n,a,c){this.scriptFacadeService=n,this.el=a,this.renderer=c}ngOnInit(){let n=Fa[this.animationType];if(!n)throw new Error(`Unknown animation type: ${this.animationType}`);this.initializeAnimation(n)}initializeAnimation(n){this.dotLottie=new Ea({autoplay:!1,loop:!0,canvas:this.dotlottieCanvas.nativeElement,src:n.path,speed:n.speed||1}),this.dotLottie.addEventListener("load",()=>{this.listenToScriptStateChanges()}),this.renderer.addClass(this.el.nativeElement,n.className)}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe($t(this)).subscribe(n=>{Ae(n)?this.playAnimation():this.stopAnimation()})}playAnimation(){this.dotLottie?.play()}stopAnimation(){this.dotLottie?.stop()}},dt.\u0275fac=function(a){return new(a||dt)(W(Ut),W(Jn),W(ta))},dt.\u0275cmp=G({type:dt,selectors:[["ms-running-animation"]],viewQuery:function(a,c){if(a&1&&ea(Ni,7),a&2){let p;na(p=aa())&&(c.dotlottieCanvas=p.first)}},inputs:{animationType:"animationType"},decls:3,vars:0,consts:[["dotlottieCanvas",""],[1,"parent-container"],["id","dotlottie-canvas"]],template:function(a,c){a&1&&(w(0,"div",1),P(1,"canvas",2,0),v())},styles:[".parent-container[_ngcontent-%COMP%]{overflow:hidden;height:300px;border-radius:10px;margin-bottom:10px;position:relative;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}canvas[_ngcontent-%COMP%]{width:100%;height:auto;object-fit:cover;position:absolute;top:50%;left:0;transform:translateY(-50%)}.pruning[_nghost-%COMP%] .parent-container[_ngcontent-%COMP%]{background-color:#b2ddff}@media (max-width: 1000px){.pruning[_nghost-%COMP%] .parent-container[_ngcontent-%COMP%]{height:180px}}@media (min-width: 1200px){.pruning[_nghost-%COMP%] canvas[_ngcontent-%COMP%]{width:900px;left:calc((100% - 900px)/2)}}.quant[_nghost-%COMP%] .parent-container[_ngcontent-%COMP%]{background-color:#1649a8}@media (max-width: 1000px){.quant[_nghost-%COMP%] .parent-container[_ngcontent-%COMP%]{height:180px}}@media (min-width: 1100px){.quant[_nghost-%COMP%] canvas[_ngcontent-%COMP%]{width:900px;left:calc((100% - 900px)/2)}}"],changeDetection:0}),dt);lt([xa],ee.prototype,"animationType",void 0);ee=lt([_t()],ee);var j=function(s){return s.ACCURACY="accuracy",s.LOSS="loss",s}(j||{}),zi=100,ne=(s,n,a=!1)=>s.map(c=>({datasetIndex:c.datasetIndex,values:(a?c.testing:c.steps).map(p=>p[n])||[]})),Da=s=>{let n=s.flatMap(a=>a.sparsity).filter(a=>a!=null);return[{datasetIndex:0,values:[zi,...n]}]},mn=(s,n)=>[{datasetIndex:0,values:s.steps.map(a=>a[n]).filter(a=>a!=null)}],pn=(s,n)=>n===j.LOSS?s.map((a,c)=>({datasetIndex:c,values:a.steps.map(p=>p?.loss).filter(p=>p!=null)})):[{datasetIndex:0,values:s.map(a=>a.accuracy).filter(a=>a!=null)}],gn=(s,n)=>s.epochs.map((a,c)=>({datasetIndex:c,values:a.steps.map(p=>p[n])})),fn=(s,n)=>s.tests.map((a,c)=>({datasetIndex:c,values:a.steps.map(p=>p[n])}));var Oa=(()=>{let n=class n{constructor(c){this.chartsFacadeService=c,this.RealtimeUpdateMetric=U,this.initialAccuracyChartData=[],this.accuracyChartDisplaySettings={chartDataStructure:H.SINGLE_PHASE_X_AXIS,xAxisDataPointsCount:159,isXAxisDynamic:!0,datasetLabelPrefix:"Epoch:",xAxisLabelPrefix:"Step",xAxisRepetitionCount:1,yAxisMinimumValue:0,yAxisMaximumValue:100,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.GREEN,realtimeUpdateMetric:U.ACCURACY},this.initialAccuracyTestingChartData=[],this.testingAccuracyChartDisplaySettings={chartDataStructure:H.SINGLE_PHASE_X_AXIS,xAxisDataPointsCount:159,isXAxisVisible:!0,isXAxisDynamic:!0,xAxisLabelPrefix:"Step",datasetLabelPrefix:"Test:",xAxisRepetitionCount:1,yAxisMinimumValue:0,yAxisMaximumValue:100,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.YELLOW,realtimeUpdateMetric:U.TESTING_ACCURACY},this.initialLossChartData=[],this.lossChartDisplaySettings={chartDataStructure:H.SINGLE_PHASE_X_AXIS,xAxisDataPointsCount:159,isXAxisVisible:!0,isXAxisDynamic:!0,xAxisLabelPrefix:"Step",datasetLabelPrefix:"Epoch:",xAxisRepetitionCount:1,yAxisMinimumValue:0,isYAxisDynamic:!0,datasetColorSettingsKey:B.RED,realtimeUpdateMetric:U.LOSS},this.initialLossTestingChartData=[],this.testingLossChartDisplaySettings={chartDataStructure:H.SINGLE_PHASE_X_AXIS,xAxisDataPointsCount:159,isXAxisVisible:!0,isXAxisDynamic:!0,xAxisLabelPrefix:"Step",datasetLabelPrefix:"Test:",xAxisRepetitionCount:1,yAxisMinimumValue:0,isYAxisDynamic:!0,dynamicYAxisGrowthOffset:1,dynamicYAxisGrowthRoundFactor:2,datasetColorSettingsKey:B.YELLOW,realtimeUpdateMetric:U.TESTING_LOSS}}ngOnInit(){this.loadChartSettings(),this.loadLatestChartsData()}loadChartSettings(){this.chartsFacadeService.dispatch(yt.getCurrentMachineUnlearningChartData())}loadLatestChartsData(){this.chartsFacadeService.machineUnlearningProgress$.pipe(Z(1),ot(c=>!Ie(c)),Q(1)).subscribe(c=>{this.initialAccuracyChartData=gn(c,j.ACCURACY),this.initialLossChartData=gn(c,j.LOSS),this.initialAccuracyTestingChartData=fn(c,j.ACCURACY),this.initialLossTestingChartData=fn(c,j.LOSS)})}};n.\u0275fac=function(p){return new(p||n)(W(Wt))},n.\u0275cmp=G({type:n,selectors:[["ms-running-machine-unlearning-charts"]],decls:19,vars:8,consts:[[1,"charts"],[1,"ms-chart-display","accuracy-chart"],[1,"epochs"],[1,"paragraph-bold-p3-small-bold","p-2"],[3,"data","settings"],[1,"testing"],[1,"ms-chart-display","loss-chart"]],template:function(p,_){p&1&&(w(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),A(4,"Accuracy Training"),v(),P(5,"ms-line-chart",4),v(),w(6,"div",5)(7,"p",3),A(8,"Accuracy Test"),v(),P(9,"ms-line-chart",4),v()(),w(10,"div",6)(11,"div",2)(12,"p",3),A(13,"Loss Training"),v(),P(14,"ms-line-chart",4),v(),w(15,"div",5)(16,"p",3),A(17,"Loss Test"),v(),P(18,"ms-line-chart",4),v()()()),p&2&&(S(5),M("data",_.initialAccuracyChartData)("settings",_.accuracyChartDisplaySettings),S(4),M("data",_.initialAccuracyTestingChartData)("settings",_.testingAccuracyChartDisplaySettings),S(5),M("data",_.initialLossChartData)("settings",_.lossChartDisplaySettings),S(4),M("data",_.initialLossTestingChartData)("settings",_.testingLossChartDisplaySettings))},dependencies:[Ct],styles:[".charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%]{display:flex}.charts[_ngcontent-%COMP%] .ms-chart-display.accuracy-chart[_ngcontent-%COMP%], .charts[_ngcontent-%COMP%] .ms-chart-display.loss-chart[_ngcontent-%COMP%]{background-color:var(--backgrounds-80);border-radius:20px;padding:10px;margin:10px 0}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .epochs[_ngcontent-%COMP%]{flex:0 0 70%}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .testing[_ngcontent-%COMP%]{border-left:1px solid var(--foregrounds-300);padding-left:10px;margin-left:10px;flex:0 0 28.5%}"]});let s=n;return s})();var it=function(s){return s.SPARSITY_PRUNING="sparsityPruning",s.ACCURACY_PRUNING="accuracyPruning",s.ACCURACY_QUANTIZATION="accuracyQuantization",s.ACCURACY_MACHINE_UNLEARNING="accuracyMachineUnlearning",s.LOSS_QUANTIZATION="lossQuantization",s.LOSS_PRUNING="lossPruning",s.LOSS_MACHINE_UNLEARNING="lossMachineUnlearning",s.TESTING_ACCURACY_CHART="testing_accuracyChart",s.TESTING_LOSS_CHART="testing_lossChart",s}(it||{});var mt,Oe=(mt=class{constructor(n){this.chartsFacadeService=n,this.RealtimeUpdateMetric=U,this.initialLossChartData=[],this.lossPruningChartSettings={},this.lossChartDisplaySettings=T(x({},Nt),{yAxisMinimumValue:0,yAxisTickInterval:2,chartDataStructure:H.MUlTI_PHASE_X_AXIS,xAxisDataPointsCount:cn,isYAxisDynamic:!0,dynamicYAxisGrowthOffset:2,datasetColorSettingsKey:B.RED,realtimeUpdateMetric:U.LOSS}),this.initialLossTestingChartData=[],this.testingLossChartDisplaySettings=T(x({},Nt),{yAxisMinimumValue:0,yAxisTickInterval:2,chartDataStructure:H.MUlTI_PHASE_X_AXIS,xAxisDataPointsCount:Fe,isYAxisDynamic:!0,dynamicYAxisGrowthOffset:2,datasetColorSettingsKey:B.YELLOW,realtimeUpdateMetric:U.TESTING_LOSS}),this.initialAccuracyChartData=[],this.accuracyPruningChartSettings={},this.accuracyChartDisplaySettings=T(x({},Nt),{chartDataStructure:H.MUlTI_PHASE_X_AXIS,xAxisDataPointsCount:cn,yAxisMaximumValue:100,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.GREEN,realtimeUpdateMetric:U.ACCURACY}),this.initialAccuracyTestingChartData=[],this.testingAccuracyChartDisplaySettings=T(x({},Nt),{yAxisTickInterval:20,chartDataStructure:H.MUlTI_PHASE_X_AXIS,xAxisDataPointsCount:Fe,yAxisMaximumValue:100,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.YELLOW,realtimeUpdateMetric:U.TESTING_ACCURACY}),this.initialSparsityChartData=[],this.sparsityPruningChartSettings={},this.sparsityChartDisplaySettings=T(x({},Nt),{xAxisLabelPrefix:"Pruning",isDatasetLabelVisible:!1,yAxisTickInterval:100,chartDataStructure:H.SINGLE_PHASE_X_AXIS_SKIP_ONE,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.BLUE,useSteppedLines:!0,realtimeUpdateMetric:U.SPARSITY})}ngOnInit(){this.loadChartSettings(),this.loadLatestChartsData()}loadChartSettings(){this.chartsFacadeService.settings$.pipe(Z(1),Q(1)).subscribe(n=>{n&&(this.accuracyPruningChartSettings=n[it.ACCURACY_PRUNING]||{},this.accuracyChartDisplaySettings=T(x({},this.accuracyChartDisplaySettings),{xAxisRepetitionCount:Number(this.accuracyPruningChartSettings.epochs)}),this.testingAccuracyChartDisplaySettings=T(x({},this.testingAccuracyChartDisplaySettings),{xAxisRepetitionCount:Number(this.accuracyPruningChartSettings.epochs)}),this.lossPruningChartSettings=T(x({},n[it.LOSS_PRUNING]||{}),{testingSteps:Fe}),this.lossChartDisplaySettings=T(x({},this.lossChartDisplaySettings),{xAxisRepetitionCount:Number(this.lossPruningChartSettings.epochs)}),this.testingLossChartDisplaySettings=T(x({},this.testingLossChartDisplaySettings),{xAxisRepetitionCount:Number(this.lossPruningChartSettings.epochs)}),this.sparsityPruningChartSettings=x({},n[it.SPARSITY_PRUNING]||{}),this.sparsityChartDisplaySettings=T(x({},this.sparsityChartDisplaySettings),{xAxisDataPointsCount:this.sparsityPruningChartSettings.pruningTimes+1}),this.chartsFacadeService.dispatch(yt.getCurrentPruningChartData()))}),this.chartsFacadeService.dispatch(yt.getChartConfigurationSettings({chartTypes:[it.ACCURACY_PRUNING,it.LOSS_PRUNING,it.SPARSITY_PRUNING]}))}loadLatestChartsData(){this.chartsFacadeService.pruningProgress.pipe(Z(1),ot(n=>!!n&&n.length>0),Q(1)).subscribe(n=>{this.initialLossChartData=ne(n,j.LOSS),this.initialLossTestingChartData=ne(n,j.LOSS,!0),this.initialAccuracyChartData=ne(n,j.ACCURACY),this.initialAccuracyTestingChartData=ne(n,j.ACCURACY,!0),this.initialSparsityChartData=Da(n)})}},mt.\u0275fac=function(a){return new(a||mt)(W(Wt))},mt.\u0275cmp=G({type:mt,selectors:[["ms-running-pruning-charts"]],decls:23,vars:10,consts:[[1,"charts"],[1,"ms-chart-display","accuracy-chart"],[1,"epochs"],[1,"paragraph-bold-p3-small-bold","p-2"],[3,"data","settings"],[1,"testing"],[1,"ms-chart-display","loss-chart"],[1,"ms-chart-display","sparsity-chart"]],template:function(a,c){a&1&&(w(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),A(4,"Accuracy Training"),v(),P(5,"ms-line-chart",4),v(),w(6,"div",5)(7,"p",3),A(8,"Accuracy Test"),v(),P(9,"ms-line-chart",4),v()(),w(10,"div",6)(11,"div",2)(12,"p",3),A(13,"Loss Training"),v(),P(14,"ms-line-chart",4),v(),w(15,"div",5)(16,"p",3),A(17,"Loss Test"),v(),P(18,"ms-line-chart",4),v()(),w(19,"div",7)(20,"p",3),A(21,"Sparsity Training"),v(),P(22,"ms-line-chart",4),v()()),a&2&&(S(5),M("data",c.initialAccuracyChartData)("settings",c.accuracyChartDisplaySettings),S(4),M("data",c.initialAccuracyTestingChartData)("settings",c.testingAccuracyChartDisplaySettings),S(5),M("data",c.initialLossChartData)("settings",c.lossChartDisplaySettings),S(4),M("data",c.initialLossTestingChartData)("settings",c.testingLossChartDisplaySettings),S(4),M("data",c.initialSparsityChartData)("settings",c.sparsityChartDisplaySettings))},dependencies:[Ct],styles:[".charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%]{display:flex}.charts[_ngcontent-%COMP%] .ms-chart-display.sparsity-chart[_ngcontent-%COMP%]{flex-direction:column}.charts[_ngcontent-%COMP%] .ms-chart-display.sparsity-chart[_ngcontent-%COMP%], .charts[_ngcontent-%COMP%] .ms-chart-display.accuracy-chart[_ngcontent-%COMP%], .charts[_ngcontent-%COMP%] .ms-chart-display.loss-chart[_ngcontent-%COMP%]{background-color:var(--backgrounds-80);border-radius:20px;padding:10px;margin:10px 0}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .epochs[_ngcontent-%COMP%]{flex:0 0 70%}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .testing[_ngcontent-%COMP%]{border-left:1px solid var(--foregrounds-300);padding-left:10px;flex:0 0 30%}"]}),mt);Oe=lt([_t()],Oe);var ka=(()=>{let n=class n{constructor(c){this.chartsFacadeService=c,this.RealtimeUpdateMetric=U,this.initialLossChartData=[],this.initialLossTestingChartData=[],this.initialAccuracyChartData=[],this.initialAccuracyTestingChartData=[],this.lossChartDisplaySettings={yAxisMinimumValue:0,xAxisDataPointsCount:40,datasetLabelPrefix:"Reconstruction:",xAxisLabelPrefix:"Step",chartDataStructure:H.SINGLE_PHASE_X_AXIS,isXAxisVisible:!0,isXAxisDynamic:!0,isYAxisDynamic:!0,dynamicYAxisGrowthOffset:50,datasetColorSettingsKey:B.RED,realtimeUpdateMetric:U.LOSS},this.lossTestingChartDisplaySettings={yAxisMinimumValue:0,xAxisDataPointsCount:78,isDatasetLabelVisible:!1,xAxisLabelPrefix:"Step",chartDataStructure:H.SINGLE_PHASE_X_AXIS,isXAxisVisible:!0,isXAxisDynamic:!0,isYAxisDynamic:!0,datasetColorSettingsKey:B.YELLOW,dynamicYAxisGrowthRoundFactor:2,realtimeUpdateMetric:U.TESTING_LOSS},this.accuracyChartDisplaySettings={yAxisMaximumValue:100,yAxisMinimumValue:0,xAxisLabelPrefix:"Recon.",isDatasetLabelVisible:!1,isXAxisVisible:!0,xAxisInitialLabelValue:0,chartDataStructure:H.SINGLE_PHASE_X_AXIS,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.GREEN,isXAxisDynamic:!0,realtimeUpdateMetric:U.ACCURACY,enhanceSinglePhaseXAxisWebsocketEvent:!0},this.accuracyTestingChartDisplaySettings={yAxisMaximumValue:100,yAxisMinimumValue:0,xAxisDataPointsCount:78,isDatasetLabelVisible:!1,xAxisLabelPrefix:"Step",chartDataStructure:H.SINGLE_PHASE_X_AXIS,isXAxisVisible:!0,isXAxisDynamic:!0,zoomRangeLimits:{max:100},datasetColorSettingsKey:B.YELLOW,realtimeUpdateMetric:U.TESTING_ACCURACY}}ngOnInit(){this.loadChartSettings(),this.loadLatestChartsData()}loadChartSettings(){this.chartsFacadeService.settings$.pipe(Z(1),Q(1)).subscribe(c=>{c&&(this.accuracyChartDisplaySettings=T(x({},this.accuracyChartDisplaySettings),{xAxisDataPointsCount:c[it.ACCURACY_QUANTIZATION]?.reconstructions}),this.chartsFacadeService.dispatch(yt.getCurrentQuantizationChartData()))}),this.chartsFacadeService.dispatch(yt.getChartConfigurationSettings({chartTypes:[it.ACCURACY_QUANTIZATION]}))}loadLatestChartsData(){this.chartsFacadeService.quantizationProgress$.pipe(Z(1),ot(c=>!!c),Q(1)).subscribe(c=>this.processChartData(c))}processChartData(c){this.initialLossChartData=pn(c.reconstructions,j.LOSS),this.initialAccuracyChartData=pn(c.reconstructions,j.ACCURACY),this.initialLossTestingChartData=mn(c.testing,j.LOSS),this.initialAccuracyTestingChartData=mn(c.testing,j.ACCURACY)}};n.\u0275fac=function(p){return new(p||n)(W(Wt))},n.\u0275cmp=G({type:n,selectors:[["ms-running-quantization-charts"]],decls:19,vars:8,consts:[[1,"charts"],[1,"ms-chart-display","accuracy-chart"],[1,"reconstructions"],[1,"paragraph-bold-p3-small-bold","p-2"],[3,"data","settings"],[1,"testing"],[1,"ms-chart-display","loss-chart"]],template:function(p,_){p&1&&(w(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),A(4,"Accuracy Training"),v(),P(5,"ms-line-chart",4),v(),w(6,"div",5)(7,"p",3),A(8,"Accuracy Test"),v(),P(9,"ms-line-chart",4),v()(),w(10,"div",6)(11,"div",2)(12,"p",3),A(13,"Loss Training"),v(),P(14,"ms-line-chart",4),v(),w(15,"div",5)(16,"p",3),A(17,"Loss Test"),v(),P(18,"ms-line-chart",4),v()()()),p&2&&(S(5),M("data",_.initialAccuracyChartData)("settings",_.accuracyChartDisplaySettings),S(4),M("data",_.initialAccuracyTestingChartData)("settings",_.accuracyTestingChartDisplaySettings),S(5),M("data",_.initialLossChartData)("settings",_.lossChartDisplaySettings),S(4),M("data",_.initialLossTestingChartData)("settings",_.lossTestingChartDisplaySettings))},dependencies:[Ct],styles:[".charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%]{display:flex}.charts[_ngcontent-%COMP%] .ms-chart-display.accuracy-chart[_ngcontent-%COMP%], .charts[_ngcontent-%COMP%] .ms-chart-display.loss-chart[_ngcontent-%COMP%]{background-color:var(--backgrounds-80);border-radius:20px;padding:10px;margin:10px 0}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .reconstructions[_ngcontent-%COMP%]{flex:0 0 70%}.charts[_ngcontent-%COMP%] .ms-chart-display[_ngcontent-%COMP%] .testing[_ngcontent-%COMP%]{border-left:1px solid var(--foregrounds-300);padding-left:10px;margin-left:10px;flex:0 0 28.5%}"]});let s=n;return s})();var $a=(()=>{let n=class n{constructor(){this.keyMap={forget_acc:"Forget Accuracy",retain_acc:"Retain Accuracy",test_acc:"Test Accuracy",val_acc:"Validation Accuracy"}}transform(c){if(!c)return c;let p=c.split("_");if(p.length<3)return c;let _=p.slice(0,-2).join("_"),q=p[p.length-1];return`${this.keyMap[_]||_.split("_").map(V=>V.charAt(0).toUpperCase()+V.slice(1)).join(" ")} (Test #${q})`}};n.\u0275fac=function(p){return new(p||n)},n.\u0275pipe=Zn({name:"readableStatisticsLabel",type:n,pure:!0});let s=n;return s})();var Ki=s=>({stats:s});function Qi(s,n){if(s&1&&(w(0,"div",7)(1,"span",8),A(2),we(3,"readableStatisticsLabel"),v(),w(4,"span",9),A(5),v()()),s&2){let a=n.$implicit;S(2),Ce("",Se(3,2,a.key),":"),S(3),ia(a.value)}}function Zi(s,n){if(s&1&&(bt(0),w(1,"div",5),J(2,Qi,6,4,"div",6),v(),At()),s&2){let a=ht().ngIf;S(2),M("ngForOf",a.stats)}}function Ji(s,n){s&1&&P(0,"ms-empty-state",10)}function tr(s,n){if(s&1&&(bt(0),J(1,Zi,3,1,"ng-container",4)(2,Ji,1,0,"ng-template",null,0,Me),At()),s&2){let a=n.ngIf,c=ye(3);S(),M("ngIf",a.stats==null?null:a.stats.length)("ngIfElse",c)}}var Wa=(()=>{let n=class n{constructor(c){this.statisticsFacadeService=c,this.statistics$=this.statisticsFacadeService.statistics$}ngOnInit(){this.statisticsFacadeService.dispatch(Ma.getStatistics())}};n.\u0275fac=function(p){return new(p||n)(W(Sa))},n.\u0275cmp=G({type:n,selectors:[["ms-running-statistics"]],decls:6,vars:7,consts:[["noStatistics",""],[1,"ms-card"],[1,"heading-section-title"],[4,"ngIf"],[4,"ngIf","ngIfElse"],[1,"key-value-container","dense"],["class","key-value-pair",4,"ngFor","ngForOf"],[1,"key-value-pair"],[1,"key-value-key"],[1,"key-value-value"],["title","No statistics available."]],template:function(p,_){p&1&&(w(0,"mat-card",1)(1,"p",2),A(2,"Statistics"),v(),J(3,tr,4,2,"ng-container",3),we(4,"async"),we(5,"keyvalue"),v()),p&2&&(S(3),M("ngIf",ra(5,Ki,Se(5,3,Se(4,1,_.statistics$)))))},dependencies:[oa,kt,xe,Ee,la,ha,$a]});let s=n;return s})();function ir(s,n){if(s&1){let a=_e();w(0,"div",18)(1,"button",19),Ot("click",function(){fe(a);let p=ht();return ve(p.runStopScript())}),A(2," Stop "),v()()}}function rr(s,n){s&1&&(w(0,"div",20)(1,"div",13),A(2,"\u2014"),v(),w(3,"div",14),A(4,"Sparsity"),v()())}var pt,ke=(pt=class{constructor(n,a){this.scriptFacadeService=n,this.chartToolsGlobalSignalsService=a,this.isScriptActive=!1,this.enableTooltips=!1,this.enableZoom=!1}ngOnInit(){this.listenToScriptStateChanges(),this.subscribeToChartToolsSignals()}listenToScriptStateChanges(){this.scriptFacadeService.dispatch(te.getCurrentOrLastActiveScriptDetails()),this.scriptFacadeService.scriptDetails$.pipe(Z(1),Q(1),ot(n=>!Pe(n?.algKey))).subscribe(n=>{this.scriptDetails=n}),this.scriptFacadeService.scriptStatus$.pipe($t(this)).subscribe(n=>{this.isScriptActive=Ae(n)})}toggleTooltip(n){this.chartToolsGlobalSignalsService.toggleTooltips=n.checked}toggleZoom(n){this.chartToolsGlobalSignalsService.toggleZoom=n.checked}get isSparsityVisible(){return this.scriptDetails?.type===It.PRUNING}subscribeToChartToolsSignals(){this.chartToolsGlobalSignalsService.toggleTooltips$.pipe($t(this)).subscribe(n=>{this.enableTooltips=n}),this.chartToolsGlobalSignalsService.toggleZoom$.pipe($t(this)).subscribe(n=>{this.enableZoom=n})}runStopScript(){this.scriptFacadeService.dispatch(te.stopScript())}},pt.\u0275fac=function(a){return new(a||pt)(W(Ut),W(De))},pt.\u0275cmp=G({type:pt,selectors:[["ms-running-status-bar"]],decls:33,vars:7,consts:[[1,"training-status","mb-2"],[1,"status-bar"],[1,"runnning-title-container"],[1,"model-name","heading-sub-section-title"],["class","ml-2",4,"ngIf"],[1,"mt-2","flex"],["color","primary",3,"ngModelChange","change","ngModel","disabled"],[1,"flex"],["color","primary",1,"ml-2",3,"ngModelChange","change","ngModel","disabled"],[1,"ml-1"],["fontSet","ms","fontIcon","icon-Info","matTooltip","Use mouse wheel or touchpad pinch to zoom in/out. Drag to select an area for specific zoom, or use touchpad gestures to navigate."],[1,"metrics"],[1,"metric","accuracy"],[1,"metric-value"],[1,"metric-name","paragraph-semibold-p2-large-emphasis"],[1,"metric","loss"],["class","metric sparsity",4,"ngIf"],[1,"metric","testing"],[1,"ml-2"],["mat-raised-button","","color","warn","matTooltip","Stop current process.",3,"click"],[1,"metric","sparsity"]],template:function(a,c){a&1&&(w(0,"div",0)(1,"div",1)(2,"div")(3,"div",2)(4,"div",3),A(5),v(),J(6,ir,3,0,"div",4),v(),w(7,"div",5)(8,"div")(9,"mat-slide-toggle",6),on("ngModelChange",function(_){return rn(c.enableTooltips,_)||(c.enableTooltips=_),_}),Ot("change",function(_){return c.toggleTooltip(_)}),A(10," Enable tooltips "),v()(),w(11,"div",7)(12,"mat-slide-toggle",8),on("ngModelChange",function(_){return rn(c.enableZoom,_)||(c.enableZoom=_),_}),Ot("change",function(_){return c.toggleZoom(_)}),A(13," Enable zoom "),v(),w(14,"div",9),P(15,"mat-icon",10),v()()()()(),w(16,"div",11)(17,"div",12)(18,"div",13),A(19,"\u2014"),v(),w(20,"div",14),A(21,"Accuracy"),v()(),w(22,"div",15)(23,"div",13),A(24,"\u2014"),v(),w(25,"div",14),A(26,"Loss"),v()(),J(27,rr,5,0,"div",16),w(28,"div",17)(29,"div",13),A(30,"\u2014"),v(),w(31,"div",14),A(32,"Test"),v()()()()),a&2&&(S(5),Ce("Algorithm: ",(c.scriptDetails==null?null:c.scriptDetails.algKey)||"None",""),S(),M("ngIf",c.isScriptActive),S(3),an("ngModel",c.enableTooltips),M("disabled",!(c.scriptDetails!=null&&c.scriptDetails.algKey)),S(3),an("ngModel",c.enableZoom),M("disabled",!(c.scriptDetails!=null&&c.scriptDetails.algKey)),S(15),M("ngIf",c.isSparsityVisible))},dependencies:[kt,be,Le,ua,ma,ya],styles:[".training-status[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.training-status[_ngcontent-%COMP%] .status-bar[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.training-status[_ngcontent-%COMP%] .runnning-title-container[_ngcontent-%COMP%]{display:flex;align-items:center}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%], .training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric[_ngcontent-%COMP%]{display:flex;gap:10px}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-size:1.25rem}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric.sparsity[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-weight:700;color:var(--metrics-sparsity)}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric.accuracy[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-weight:700;color:var(--metrics-accuracy)}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric.loss[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-weight:700;color:var(--metrics-loss)}.training-status[_ngcontent-%COMP%] .metrics[_ngcontent-%COMP%] .metric.testing[_ngcontent-%COMP%] .metric-value[_ngcontent-%COMP%]{font-weight:700;color:var(--metrics-testing)}"]}),pt);ke=lt([_t()],ke);function sr(s,n){if(s&1&&P(0,"ms-running-animation",10),s&2){let a=ht();M("animationType",a.AnimationType.QUANTIZATION)}}function cr(s,n){if(s&1&&P(0,"ms-running-animation",10),s&2){let a=ht();M("animationType",a.AnimationType.PRUNING)}}function lr(s,n){if(s&1&&P(0,"ms-running-animation",10),s&2){let a=ht();M("animationType",a.AnimationType.PRUNING)}}function hr(s,n){s&1&&P(0,"ms-running-quantization-charts")}function dr(s,n){s&1&&P(0,"ms-running-pruning-charts")}function ur(s,n){s&1&&P(0,"ms-running-machine-unlearning-charts")}function mr(s,n){if(s&1&&(bt(0)(1,2),J(2,hr,1,0,"ms-running-quantization-charts",11)(3,dr,1,0,"ms-running-pruning-charts",11)(4,ur,1,0,"ms-running-machine-unlearning-charts",11),At()()),s&2){let a=ht();S(),M("ngSwitch",a.scriptDetails==null?null:a.scriptDetails.type),S(),M("ngSwitchCase",a.AlgorithmType.QUANTIZATION),S(),M("ngSwitchCase",a.AlgorithmType.PRUNING),S(),M("ngSwitchCase",a.AlgorithmType.MACHINE_UNLEARNING)}}function pr(s,n){s&1&&P(0,"ms-empty-state",12)}function gr(s,n){s&1&&(bt(0),w(1,"div",13),P(2,"ms-running-statistics"),v(),At())}var gt,$e=(gt=class{constructor(n,a){this.navigationService=n,this.scriptFacadeService=a,this.AlgorithmType=It,this.AnimationType=jt}ngOnInit(){this.listenToScriptStateChanges()}listenToScriptStateChanges(){this.scriptFacadeService.dispatch(te.getCurrentOrLastActiveScriptDetails()),this.scriptFacadeService.scriptDetails$.pipe(Z(1),Q(1),ot(n=>!Pe(n?.algKey))).subscribe(n=>{this.scriptDetails=n})}get isChartVisible(){return!Ie(this.scriptDetails?.algKey)&&this.scriptDetails?.type!==It.TRAIN&&this.scriptDetails?.type!==It.AWQ&&this.scriptDetails?.type!==It.MULTIFLOW}},gt.\u0275fac=function(a){return new(a||gt)(W(wa),W(Ut))},gt.\u0275cmp=G({type:gt,selectors:[["ms-running"]],decls:16,vars:7,consts:[["noChartData",""],[1,"heading-primary-title","title"],[3,"ngSwitch"],[3,"animationType",4,"ngSwitchCase"],[1,"ms-card","running-prunning"],[4,"ngIf","ngIfElse"],[4,"ngIf"],[1,"mt-4"],["mat-stroked-button","","color","primary",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],[3,"animationType"],[4,"ngSwitchCase"],["title","No Chart Data Available","message","Please run the appropriate script to generate chart data."],[1,"mt-2"]],template:function(a,c){if(a&1){let p=_e();w(0,"p",1),A(1,"Running"),v(),bt(2,2),J(3,sr,1,1,"ms-running-animation",3)(4,cr,1,1,"ms-running-animation",3)(5,lr,1,1,"ms-running-animation",3),At(),w(6,"mat-card",4),P(7,"ms-running-status-bar"),J(8,mr,5,4,"ng-container",5)(9,pr,1,0,"ng-template",null,0,Me),v(),J(11,gr,3,0,"ng-container",6),w(12,"div",7)(13,"button",8),Ot("click",function(){return fe(p),ve(c.navigationService.goToPreviousPage())}),P(14,"mat-icon",9),A(15," Go back "),v()()}if(a&2){let p=ye(10);S(2),M("ngSwitch",c.scriptDetails==null?null:c.scriptDetails.type),S(),M("ngSwitchCase",c.AlgorithmType.QUANTIZATION),S(),M("ngSwitchCase",c.AlgorithmType.PRUNING),S(),M("ngSwitchCase",c.AlgorithmType.MACHINE_UNLEARNING),S(3),M("ngIf",c.isChartVisible)("ngIfElse",p),S(3),M("ngIf",(c.scriptDetails==null?null:c.scriptDetails.type)===c.AlgorithmType.MACHINE_UNLEARNING)}},dependencies:[kt,sa,ca,xe,be,Le,Ee,Oe,ka,Oa,ee,Wa,ke]}),gt);$e=lt([_t()],$e);var fr=[{path:"",component:$e}],Na=(()=>{let n=class n{};n.\u0275fac=function(p){return new(p||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=pe({imports:[sn.forChild(fr),sn]});let s=n;return s})();var cs=(()=>{let n=class n{};n.\u0275fac=function(p){return new(p||n)},n.\u0275mod=ge({type:n}),n.\u0275inj=pe({providers:[De],imports:[da,Na,Ct,va,fa,_a,pa,ga,Ca]});let s=n;return s})();export{cs as RunningModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-JZLUCDH7.js b/frontend/server/modelsmith-build/browser/chunk-JZLUCDH7.js deleted file mode 100644 index 307f2671..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-JZLUCDH7.js +++ /dev/null @@ -1 +0,0 @@ -import{$a as F,$d as Ee,A as B,B as W,Bc as _e,Ca as M,Da as x,Ea as m,Ec as Ce,Fa as J,Fc as Se,Ga as v,H as Q,Hc as be,I as O,Ia as T,Ic as ye,J as h,Ja as w,K as k,Ka as C,La as S,Ma as P,N as $,Na as D,Oa as X,Od as ve,P as K,Pa as Y,Pd as Ie,Q as z,Qd as Oe,Rd as ke,T as q,Ta as ee,U,V as E,Xa as te,Ya as ne,Z as g,Za as ie,Zc as Me,_ as f,ae as Ae,cb as oe,ea as A,eb as ae,ec as ce,fa as Z,fc as he,gb as le,gc as pe,h as V,he as Te,i as R,ic as me,ja as c,jc as de,ka as d,ld as xe,mb as re,nc as ue,o as N,pb as se,qa as _,qc as ge,ra as G,s as b,sa as s,t as j,tc as fe,w as H,wa as u,xa as p,ya as y}from"./chunk-AIAH5BT5.js";var we=["searchSelectInput"],Pe=["innerSelectSearch"],De=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],Fe=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"],Le=(n,a)=>({"mat-select-search-inner-multiple":n,"mat-select-search-inner-toggle-all":a});function Ve(n,a){if(n&1){let e=M();u(0,"mat-checkbox",12),x("change",function(i){g(e);let o=m();return f(o._emitSelectAllBooleanToParent(i.checked))}),p()}if(n&2){let e=m();s("color",e.matFormField==null?null:e.matFormField.color)("checked",e.toggleAllCheckboxChecked)("indeterminate",e.toggleAllCheckboxIndeterminate)("matTooltip",e.toggleAllCheckboxTooltipMessage)("matTooltipPosition",e.toggleAllCheckboxTooltipPosition)}}function Re(n,a){n&1&&y(0,"mat-spinner",13)}function Ne(n,a){n&1&&v(0,1,["*ngIf","clearIcon; else defaultIcon"])}function je(n,a){if(n&1&&(u(0,"mat-icon",16),D(1),p()),n&2){let e=m(2);s("svgIcon",e.closeSvgIcon),c(),Y(" ",e.closeSvgIcon?null:e.closeIcon," ")}}function He(n,a){if(n&1){let e=M();u(0,"button",14),x("click",function(){g(e);let i=m();return f(i._reset(!0))}),_(1,Ne,1,0,"ng-content",15)(2,je,2,2,"ng-template",null,2,F),p()}if(n&2){let e=P(3),t=m();c(),s("ngIf",t.clearIcon)("ngIfElse",e)}}function Be(n,a){n&1&&v(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function We(n,a){if(n&1&&D(0),n&2){let e=m(2);X(e.noEntriesFoundLabel)}}function Qe(n,a){if(n&1&&(u(0,"div",17),_(1,Be,1,0,"ng-content",15)(2,We,1,1,"ng-template",null,3,F),p()),n&2){let e=P(3),t=m();c(),s("ngIf",t.noEntriesFound)("ngIfElse",e)}}var $e=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=E({type:n,selectors:[["","ngxMatSelectSearchClear",""]]}),n})(),Ke=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],ze=new z("mat-selectsearch-default-options"),qe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=E({type:n,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),n})(),jt=(()=>{class n{constructor(e,t,i,o=null,l=null,L){this.matSelect=e,this.changeDetectorRef=t,this._viewportRuler=i,this.matOption=o,this.matFormField=l,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toggleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new Z,this.onTouched=r=>{},this._options$=new R(null),this.optionsList$=this._options$.pipe(O(r=>r?r.changes.pipe(b(I=>I.toArray()),Q(r.toArray())):N(null))),this.optionsLength$=this.optionsList$.pipe(b(r=>r?r.length:0)),this._formControl=new ge(""),this._showNoEntriesFound$=j([this._formControl.valueChanges,this.optionsLength$]).pipe(b(([r,I])=>this.noEntriesFoundLabel&&r&&I===this.getOptionsLengthOffset())),this._onDestroy=new V,this.applyDefaultOptions(L)}get value(){return this._formControl.value}set _options(e){this._options$.next(e)}get _options(){return this._options$.getValue()}applyDefaultOptions(e){if(e)for(let t of Ke)e.hasOwnProperty(t)&&(this[t]=e[t])}ngOnInit(){this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("aria-hidden","true")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe(W(1),h(this._onDestroy)).subscribe(e=>{e?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(B(1),O(e=>{this._options=this.matSelect.options;let t=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(k(()=>{setTimeout(()=>{let i=this._options.toArray(),o=i[this.getOptionsLengthOffset()],l=this.matSelect._keyManager;l&&this.matSelect.panelOpen&&o&&((!t||!this.matSelect.compareWith(t.value,o.value)||!l.activeItem||!i.find(r=>this.matSelect.compareWith(r.value,l.activeItem.value)))&&l.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),t=o})}))})).pipe(h(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(h(this._onDestroy)).subscribe(e=>{this.matOption&&(e?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe(h(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(h(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(e){this.toggleAll.emit(e)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(e){(e.key&&e.key.length===1||e.keyCode>=65&&e.keyCode<=90||e.keyCode>=48&&e.keyCode<=57||e.keyCode===32||this.preventHomeEndKeyPropagation&&(e.keyCode===36||e.keyCode===35))&&e.stopPropagation(),this.matSelect.multiple&&e.key&&e.keyCode===13&&setTimeout(()=>this._focus()),this.enableClearOnEscapePressed===!0&&e.keyCode===27&&this.value&&(this._reset(!0),e.stopPropagation())}_handleKeyup(e){if(e.keyCode===38||e.keyCode===40){let t=this.matSelect._getAriaActiveDescendant(),i=this._options.toArray().findIndex(o=>o.id===t);i!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[i]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",t))}}writeValue(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(e){this._formControl.valueChanges.pipe(H(t=>t!==this._lastExternalInputValue),k(()=>this._lastExternalInputValue=void 0),h(this._onDestroy)).subscribe(e)}registerOnTouched(e){this.onTouched=e}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;let e=this.matSelect.panel.nativeElement,t=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=t}_reset(e){this._formControl.setValue(""),e&&this._focus()}initMultipleHandling(){if(!this.matSelect.ngControl){this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true");return}this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe(h(this._onDestroy)).subscribe(e=>{let t=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!e||!Array.isArray(e))&&(e=[]);let i=this.matSelect.options.map(o=>o.value);this.previousSelectedValues.forEach(o=>{!e.some(l=>this.matSelect.compareWith(l,o))&&!i.some(l=>this.matSelect.compareWith(l,o))&&(e.push(o),t=!0)})}this.previousSelectedValues=e,t&&this.matSelect._onChange(e)})}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let e=this.innerSelectSearch.nativeElement,t;for(;e=e.parentElement;)if(e.classList.contains("mat-select-panel")){t=e;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}}return n.\u0275fac=function(e){return new(e||n)(d(Te),d(oe),d(xe),d(ce,8),d(Me,8),d(ze,8))},n.\u0275cmp=q({type:n,selectors:[["ngx-mat-select-search"]],contentQueries:function(e,t,i){if(e&1&&(T(i,$e,5),T(i,qe,5)),e&2){let o;C(o=S())&&(t.clearIcon=o.first),C(o=S())&&(t.noEntriesFound=o.first)}},viewQuery:function(e,t){if(e&1&&(w(we,7,A),w(Pe,7,A)),e&2){let i;C(i=S())&&(t.searchSelectInput=i.first),C(i=S())&&(t.innerSelectSearch=i.first)}},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toggleAllCheckboxTooltipPosition:"toggleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[ee([{provide:me,useExisting:$(()=>n),multi:!0}])],ngContentSelectors:Fe,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["defaultIcon",""],["defaultNoEntriesFound",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],[1,"mat-select-search-inner-row"],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"]],template:function(e,t){if(e&1){let i=M();J(De),y(0,"input",4),u(1,"div",5,0)(3,"div",6),_(4,Ve,1,5,"mat-checkbox",7),u(5,"input",8,1),x("keydown",function(l){return g(i),f(t._handleKeydown(l))})("keyup",function(l){return g(i),f(t._handleKeyup(l))})("blur",function(){return g(i),f(t.onBlur())}),p(),_(7,Re,1,0,"mat-spinner",9)(8,He,4,2,"button",10),v(9),p(),y(10,"mat-divider"),p(),_(11,Qe,4,2,"div",11),ne(12,"async")}e&2&&(c(),s("ngClass",te(11,Le,t.matSelect.multiple,t._isToggleAllCheckboxVisible())),c(3),s("ngIf",t._isToggleAllCheckboxVisible()),c(),s("type",t.type)("formControl",t._formControl)("placeholder",t.placeholderLabel),G("aria-label",t.ariaLabel),c(2),s("ngIf",t.searching),c(),s("ngIf",!t.hideClearSearchButton&&t.value&&!t.searching),c(3),s("ngIf",ie(12,9,t._showNoEntriesFound$)))},dependencies:[ae,le,de,ue,fe,Ce,Ee,be,ve,Oe,he,re],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:100;font-size:inherit;box-shadow:none;background-color:var(--mat-select-panel-background-color)}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-inner-row[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-input[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;border:none;font-family:inherit;font-size:inherit;color:currentColor;outline:none;background-color:var(--mat-select-panel-background-color);padding:0 44px 0 16px;height:calc(3em - 1px);line-height:calc(3em - 1px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-left:5px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding-top:8px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:0}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px} .mat-mdc-option[aria-disabled=true].contains-mat-select-search{position:sticky;top:-8px;z-index:1;opacity:1;margin-top:-8px;pointer-events:all} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-mdc-option[aria-disabled=true].contains-mat-select-search mat-pseudo-checkbox{display:none} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mdc-list-item__primary-text{opacity:1}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}"],changeDetection:0}),n})();var Ht=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=U({type:n}),n.\u0275inj=K({imports:[se,_e,Se,Ae,ye,Ie,ke,pe]}),n})();export{ze as a,jt as b,Ht as c}; diff --git a/frontend/server/modelsmith-build/browser/chunk-KR5OA5AZ.js b/frontend/server/modelsmith-build/browser/chunk-KR5OA5AZ.js new file mode 100644 index 00000000..445e429a --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-KR5OA5AZ.js @@ -0,0 +1 @@ +import{a as u}from"./chunk-QWPZ5EFE.js";import{a as g}from"./chunk-R5J4FM6S.js";import"./chunk-DQ7AOZDA.js";import"./chunk-3S6QBQVM.js";import"./chunk-D2Y5ESR4.js";import"./chunk-TO7IPVMR.js";import"./chunk-G267DK6J.js";import"./chunk-GSC3HYC7.js";import"./chunk-VUPIOU6P.js";import"./chunk-PP7DOJYP.js";import{a as h}from"./chunk-QVZ2CSJP.js";import"./chunk-WHP5P3DQ.js";import"./chunk-SMKHMGDE.js";import{b as N,g as z,l as U}from"./chunk-W4U3FJPJ.js";import"./chunk-2FJ2YO2M.js";import{a as x,b as J}from"./chunk-PSFPSLKI.js";import{a as k,b as D}from"./chunk-GMIVG7ET.js";import"./chunk-NT2MTW7W.js";import"./chunk-HG2O7P4S.js";import{$ as l,Ea as m,Fa as f,Sa as a,a as v,ab as s,b as M,bb as p,bc as V,cb as b,db as P,dd as O,eb as E,fe as Q,gb as I,ha as F,ia as c,jb as T,me as B,oc as j,p as w,pa as y,qa as S,qb as R,rb as _,re as L,sb as G,sc as A,se as H,te as K,ub as d,ue as q,xe as $}from"./chunk-NPZHNGVX.js";var Z=["panelParameters"],o,C=(o=class{constructor(e,i,t){this.fb=e,this.scriptFacadeService=i,this.router=t,this.AlgorithmType=z,this.MachineUnlearningAlgorithmsEnum=U,this.isScriptActive=!1}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(D(this)).subscribe(e=>{this.isScriptActive=N(e),N(e)?this.form.disable():this.form.enable()})}initForm(){this.form=this.fb.group({algorithm:this.fb.group({alg:[]})}),setTimeout(()=>{this.form.get("algorithm.alg")?.setValue(U.MU)},0)}submit(){if(this.isScriptActive)return;let{algorithm:e,model:i}=this.form.getRawValue(),{model:t}=i,r=M(v({},e),{params:M(v({},this.panelParametersComponent.parametersFormatted),{arch:t})});this.scriptFacadeService.dispatch(x.callScript({configs:r}))}goToChartPage(){this.router.navigate([O.RUNNING.ROOT])}},o.\u0275fac=function(i){return new(i||o)(f(L),f(J),f(j))},o.\u0275cmp=F({type:o,selectors:[["ms-machine-unlearning"]],viewQuery:function(i,t){if(i&1&&R(Z,5),i&2){let r;_(r=G())&&(t.panelParametersComponent=r.first)}},decls:15,vars:5,consts:[["panelParameters",""],[1,"heading-primary-title","title"],[1,"page-wrapper",3,"formGroup"],[1,"left"],[3,"formGroup"],["controlKey","model",3,"algorithmType"],["controlKey","params",3,"algorithm"],["mat-raised-button","","color","primary",3,"click","disabled"],["mat-raised-button","","color","primary",1,"ml-2",3,"click"],[1,"right"]],template:function(i,t){if(i&1){let r=I();s(0,"p",1),d(1,"Machine Unlearning"),p(),s(2,"div",2)(3,"div",3),P(4,4),b(5,"ms-panel-model",5)(6,"ms-panel-parameters",6,0),E(),s(8,"div")(9,"button",7),T("click",function(){return y(r),S(t.submit())}),d(10," Run "),p(),s(11,"button",8),T("click",function(){return y(r),S(t.goToChartPage())}),d(12,"View Chart"),p()()(),s(13,"div",9),b(14,"ms-terminal"),p()()}i&2&&(m(2),a("formGroup",t.form),m(2),a("formGroup",t.form),m(),a("algorithmType",t.AlgorithmType.MACHINE_UNLEARNING),m(),a("algorithm",t.MachineUnlearningAlgorithmsEnum.MU),m(3),a("disabled",t.isScriptActive||t.form.invalid))},dependencies:[h,g,u,q,Q,B],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),o);C=w([k()],C);var ee=[{path:"",component:C}],X=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=c({type:e}),e.\u0275inj=l({imports:[A.forChild(ee),A]});let n=e;return n})();var Fe=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=c({type:e}),e.\u0275inj=l({imports:[V,X,h,g,u,$,H,K]});let n=e;return n})();export{Fe as MachineUnlearningModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-KXYM3VZW.js b/frontend/server/modelsmith-build/browser/chunk-KXYM3VZW.js new file mode 100644 index 00000000..790abe02 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-KXYM3VZW.js @@ -0,0 +1 @@ +import{a as Q}from"./chunk-V6EH3YHO.js";import{a as u}from"./chunk-7IMKJ6YK.js";import{a as Y}from"./chunk-4EAU6CO5.js";import"./chunk-VUPIOU6P.js";import{a as q,b as X}from"./chunk-PP7DOJYP.js";import{a as x}from"./chunk-GMIVG7ET.js";import{a as V,h as k,i as W}from"./chunk-HG2O7P4S.js";import{$ as d,$d as L,Be as J,Ea as c,Fa as m,Ie as K,Ja as _,Na as b,Sa as g,ab as o,bb as r,bc as N,be as C,cb as p,dd as y,ee as A,fe as F,ha as w,ia as h,ja as S,jb as E,ke as z,me as R,p as I,pe as D,re as T,sc as O,se as j,te as H,ub as s,ue as G,xa as P,xe as U,ze as B}from"./chunk-NPZHNGVX.js";var Z=(()=>{let t=class t{constructor(e,i,f){this.el=e,this.renderer=i,this.viewContainer=f,this.isHidden=!0}ngOnInit(){let e=this.el.nativeElement,i=this.createIcon();this.setupIconInContainer(e,i),i.location.nativeElement.addEventListener("click",()=>{this.toggleVisibility(e,i.instance)})}createIcon(){let e=this.viewContainer.createComponent(B);return e.instance.fontIcon=this.isHidden?"visibility_off":"visibility",e}setupIconInContainer(e,i){let f=this.renderer.createElement("div");this.renderer.addClass(f,t.CLASS_ICON_SUFFIX),this.renderer.setStyle(i.location.nativeElement,"padding","0"),this.renderer.setAttribute(e,"type",this.isHidden?"password":"text"),this.renderer.appendChild(f,i.location.nativeElement),this.renderer.appendChild(e?.parentElement?.parentElement,f)}toggleVisibility(e,i){this.isHidden=!this.isHidden,this.renderer.setAttribute(e,"type",this.isHidden?"password":"text"),i.fontIcon=this.isHidden?"visibility_off":"visibility"}};t.CLASS_ICON_SUFFIX="mat-mdc-form-field-icon-suffix",t.\u0275fac=function(i){return new(i||t)(m(P),m(_),m(b))},t.\u0275dir=S({type:t,selectors:[["","msPasswordToggle",""]],standalone:!0});let n=t;return n})();var a,M=(a=class{constructor(t,l){this.fb=t,this.authFacadeService=l,this.CONTROL_NAMES={EMAIL:"email",PASSWORD:"password"}}ngOnInit(){this.initForm()}initForm(){this.form=this.fb.group({[this.CONTROL_NAMES.EMAIL]:["alexander@cisco.com",[C.email,C.required]],[this.CONTROL_NAMES.PASSWORD]:["GUfCRHz7VD9R",[C.required]]})}get emailControl(){return this.form.get(this.CONTROL_NAMES.EMAIL)}get passwordControl(){return this.form.get(this.CONTROL_NAMES.PASSWORD)}login(){let t=this.form.getRawValue();this.authFacadeService.dispatch(J.login(t))}},a.\u0275fac=function(l){return new(l||a)(m(T),m(K))},a.\u0275cmp=w({type:a,selectors:[["ms-login"]],decls:24,vars:4,consts:[[1,"login-container"],[1,"logo-section"],["src","/assets/logo/login-logo.svg","alt","ModelSmith Logo"],[1,"login-title"],[1,"login-subtitle"],[1,"login-section"],[3,"submit","formGroup"],[1,"form-field-container","ms-white-form-field"],["matInput","","msErrorDisplay","","autocomplete","current-password",3,"formControlName"],["msPasswordToggle","","msErrorDisplay","","matInput","","autocomplete","current-password",3,"formControlName"],[1,"mt-[2px]"],["type","submit","mat-raised-button","","color","primary",1,"w-full",3,"disabled"],["styleMode","fullWidth"]],template:function(l,e){l&1&&(o(0,"ms-background-gradient")(1,"div",0)(2,"div",1),p(3,"img",2),o(4,"div",3),s(5,"ModelSmith"),r(),o(6,"div",4),s(7,"A super cool compression tool"),r()(),o(8,"div",5)(9,"form",6),E("submit",function(){return e.login()}),o(10,"div",7)(11,"mat-label"),s(12," Email "),r(),o(13,"mat-form-field"),p(14,"input",8),r()(),o(15,"div",7)(16,"mat-label"),s(17," Password "),r(),o(18,"mat-form-field"),p(19,"input",9),r()(),o(20,"div",10)(21,"button",11),s(22," Login "),r()()()()(),p(23,"ms-footer",12),r()),l&2&&(c(9),g("formGroup",e.form),c(5),g("formControlName",e.CONTROL_NAMES.EMAIL),c(5),g("formControlName",e.CONTROL_NAMES.PASSWORD),c(2),g("disabled",e.form.invalid))},dependencies:[z,L,A,F,R,D,k,V,q,Z,Q,u,G,Y],styles:["html[_ngcontent-%COMP%]{color:var(--foregrounds-800)}.text-hint[_ngcontent-%COMP%]{color:var(--foregrounds-700)}.heading-primary-title[_ngcontent-%COMP%]{font-family:Montserrat;font-weight:700;font-size:1.5rem;line-height:2.125rem}.heading-section-title[_ngcontent-%COMP%]{font-weight:700;font-size:1.125rem;line-height:1.5em}.paragraph-bold-p4-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.75rem;line-height:1.125em}.paragraph-monospace-p2-large[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:400}.heading-sub-section-title[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:700}.paragraph-regular-p3-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875;line-height:1.25rem}.paragraph-bold-p3-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p2-large-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1rem;line-height:1.375rem}.paragraph-semibold-p1-xlarge-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1.125rem;line-height:1.5rem}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p3-default-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-regular-p4-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.75rem;line-height:1.125rem}.paragraph-semibold-p3-small-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400}.paragraph-semibold-p4-xSmall-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:600}.paragraph-regular-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400;color:var(--foregrounds-750)}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-size:.875rem;line-height:1.25rem;font-weight:400}.paragraph-regular-p2-large[_ngcontent-%COMP%]{font-family:Inter;font-size:1rem;font-weight:400;line-height:1.375rem}.login-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%}.login-container[_ngcontent-%COMP%] .logo-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;width:95%;background:linear-gradient(to left,transparent,var(--backgrounds-50),transparent);padding:60px 30px;text-align:center}.login-container[_ngcontent-%COMP%] .logo-section[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;margin-bottom:10px}.login-container[_ngcontent-%COMP%] .logo-section[_ngcontent-%COMP%] .login-title[_ngcontent-%COMP%]{font-size:2.5rem;line-height:3.359rem;font-weight:400;color:var(--login-title)}.login-container[_ngcontent-%COMP%] .logo-section[_ngcontent-%COMP%] .login-subtitle[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem;color:var(--foregrounds-550)}.login-container[_ngcontent-%COMP%] .login-section[_ngcontent-%COMP%]{margin-top:20px;width:100%;max-width:400px}"]}),a);M=I([x()],M);var et=[{path:"",pathMatch:"full",redirectTo:y.AUTH.LOGIN},{path:y.AUTH.LOGIN,component:M}],$=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=h({type:t}),t.\u0275inj=d({imports:[O.forChild(et),O]});let n=t;return n})();var Rt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=h({type:t}),t.\u0275inj=d({imports:[N,j,H,W,X,$,u,U]});let n=t;return n})();export{Rt as AuthModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-LBD5Y7YA.js b/frontend/server/modelsmith-build/browser/chunk-LBD5Y7YA.js new file mode 100644 index 00000000..44cdb3e4 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-LBD5Y7YA.js @@ -0,0 +1 @@ +import{$c as D,De as R,Fe as E,G as z,Kc as s,Lc as w,M as C,S as b,Wc as p,Xc as j,Zc as u,_ as l,_c as y,a as n,ad as A,b as c,bd as M,ca as d,k as x,s as F,x as v}from"./chunk-NPZHNGVX.js";var a=w({source:"[Run Records -> Records]",events:{"Get Run Records Filenames":s(),"Get Run Records Filenames Success":s(),"Get Run Records Filenames Failure":s(),"Get Run Record Summarized Data":s(),"Get Run Record Summarized Data Success":s(),"Get Run Record Summarized Data Failure":s()}});var G=j("runRecords");var I=p(G,r=>r.records),H=p(I,r=>r.filenames),J=p(I,r=>r.summarizedRecord);var f=class extends R{constructor(e){super(`run-records-filenames/${e}`,void 0,void 0,!1)}};var g=class extends R{constructor(e,T){super(`run-records-summarized-data/${e}/${T}`,void 0,void 0,!1)}};var se=(()=>{let e=class e{constructor(o,t){this.apiClient=o,this.actions$=t,this.getRunRecordsFilenames$=D(()=>this.actions$.pipe(M(a.getRunRecordsFilenames),b(i=>{let{algorithmType:h}=i;return this.apiClient.serviceCall(new f(h)).pipe(v(m=>a.getRunRecordsFilenamesSuccess({files:m})),z(m=>F(a.getRunRecordsFilenamesFailure({error:m}))))}))),this.getRunRecordSummarizedData$=D(()=>this.actions$.pipe(M(a.getRunRecordSummarizedData),b(i=>{let{algorithmType:h,filename:m}=i;return this.apiClient.serviceCall(new g(h,m)).pipe(v(S=>a.getRunRecordSummarizedDataSuccess({record:S})),z(S=>F(a.getRunRecordSummarizedDataFailure({error:S}))))})))}};e.\u0275fac=function(t){return new(t||e)(d(E),d(A))},e.\u0275prov=l({token:e,factory:e.\u0275fac});let r=e;return r})();var k={filenames:[],summarizedRecord:{},error:""},me=y(k,u(a.getRunRecordsFilenamesSuccess,(r,{files:e})=>c(n({},r),{filenames:e,error:null})),u(a.getRunRecordsFilenamesFailure,(r,{error:e})=>c(n({},r),{error:e})),u(a.getRunRecordSummarizedData,r=>c(n({},r),{loading:!0,error:null})),u(a.getRunRecordSummarizedDataSuccess,(r,{record:e})=>c(n({},r),{summarizedRecord:e,error:null})),u(a.getRunRecordSummarizedDataFailure,(r,{error:e})=>c(n({},r),{error:e})));var O=function(r){return r.RUN_RECORDS_SUMMARIZED_DATA="runRecordsSummarizedData",r}(O||{}),U=[{key:O.RUN_RECORDS_SUMMARIZED_DATA,urlPattern:"/rest/run-records-summarized-data/[^/]+/[^/]+",track:!0,useRegex:!0}],L=(()=>{let e=class e{constructor(){this.loadingMap=new Map}setLoading(o,t){this.loadingMap.has(t)||this.loadingMap.set(t,new x(!1)),this.loadingMap.get(t).next(o)}getLoadingObservableForKey(o){if(this.loadingMap.has(o))return this.loadingMap.get(o).asObservable();{let t=new x(!1);return this.loadingMap.set(o,t),t.asObservable()}}};e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=l({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})(),Fe=(()=>{let e=class e{constructor(o){this.loadingService=o}intercept(o,t){let i=this.getMatchingConfig(o);return i&&i.track&&this.loadingService.setLoading(!0,i.key),t.handle(o).pipe(C(()=>{i&&i.track&&this.loadingService.setLoading(!1,i.key)}))}getMatchingConfig(o){let t=o.url.split("?")[0];return U.find(i=>i.track&&(i.useRegex?new RegExp(i.urlPattern).test(t):i.urlPattern===t))}};e.\u0275fac=function(t){return new(t||e)(d(L))},e.\u0275prov=l({token:e,factory:e.\u0275fac});let r=e;return r})();export{a,se as b,me as c,H as d,J as e,O as f,L as g,Fe as h}; diff --git a/frontend/server/modelsmith-build/browser/chunk-MJO2RBYE.js b/frontend/server/modelsmith-build/browser/chunk-MJO2RBYE.js new file mode 100644 index 00000000..782b42dc --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-MJO2RBYE.js @@ -0,0 +1 @@ +import{a as dt,b as ut}from"./chunk-GMIVG7ET.js";import{b as Dt,g as Ct,h as ve,i as vt,j as ae,k as Re,o as Rt,q as bt,s as kt}from"./chunk-NT2MTW7W.js";import{$ as fe,Ab as C,Ae as _t,Bb as x,Ca as tt,D as Ne,Ea as w,Fa as c,Ga as E,Gd as mt,Ib as je,Ka as ie,Kd as Pe,Lb as rt,Ma as it,Mb as G,Na as q,Nb as F,Oa as f,Pa as B,Qa as j,Qb as st,Sa as L,T as ue,Ta as _e,Ua as De,Ub as at,Ya as Z,Zb as ct,_ as he,a as Oe,aa as $,ab as m,bb as p,bc as lt,ca as te,cb as nt,da as P,db as ne,eb as oe,fb as g,gb as Ce,ha as b,hd as ht,ia as me,j as U,ja as h,jb as re,k as Q,lb as k,ld as ft,mb as Y,nb as S,oa as pe,p as Ge,pa as ge,pb as M,qa as ye,rb as T,s as W,sb as I,ta as v,tb as Ae,u as Je,ua as et,ub as X,ue as pt,va as K,vb as ot,wb as se,we as gt,x as le,xa as A,xe as yt,y as de,ya as we,ze as wt}from"./chunk-NPZHNGVX.js";var jt=[[["caption"]],[["colgroup"],["col"]],"*"],Pt=["caption","colgroup, col","*"];function Bt(o,e){o&1&&S(0,2)}function Lt(o,e){o&1&&(m(0,"thead",0),g(1,1),p(),m(2,"tbody",0),g(3,2)(4,3),p(),m(5,"tfoot",0),g(6,4),p())}function Ht(o,e){o&1&&g(0,1)(1,2)(2,3)(3,4)}var R=new $("CDK_TABLE");var Me=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(i){return new(i||e)(c(E))},e.\u0275dir=h({type:e,selectors:[["","cdkCellDef",""]],standalone:!0});let o=e;return o})(),Te=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(i){return new(i||e)(c(E))},e.\u0275dir=h({type:e,selectors:[["","cdkHeaderCellDef",""]],standalone:!0});let o=e;return o})(),Et=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(i){return new(i||e)(c(E))},e.\u0275dir=h({type:e,selectors:[["","cdkFooterCellDef",""]],standalone:!0});let o=e;return o})(),J=(()=>{let e=class e{get name(){return this._name}set name(t){this._setNameInput(t)}get sticky(){return this._sticky}set sticky(t){t!==this._sticky&&(this._sticky=t,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){t!==this._stickyEnd&&(this._stickyEnd=t,this._hasStickyChanged=!0)}constructor(t){this._table=t,this._hasStickyChanged=!1,this._sticky=!1,this._stickyEnd=!1}hasStickyChanged(){let t=this._hasStickyChanged;return this.resetStickyChanged(),t}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}};e.\u0275fac=function(i){return new(i||e)(c(R,8))},e.\u0275dir=h({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,n,a){if(i&1&&(M(a,Me,5),M(a,Te,5),M(a,Et,5)),i&2){let s;T(s=I())&&(n.cell=s.first),T(s=I())&&(n.headerCell=s.first),T(s=I())&&(n.footerCell=s.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",F],stickyEnd:[2,"stickyEnd","stickyEnd",F]},standalone:!0,features:[C([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),B]});let o=e;return o})(),ke=class{constructor(e,r){r.nativeElement.classList.add(...e._columnCssClassName)}},Mt=(()=>{let e=class e extends ke{constructor(t,i){super(t,i)}};e.\u0275fac=function(i){return new(i||e)(c(J),c(A))},e.\u0275dir=h({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[f]});let o=e;return o})();var Tt=(()=>{let e=class e extends ke{constructor(t,i){super(t,i);let n=t._table?._getCellRole();n&&i.nativeElement.setAttribute("role",n)}};e.\u0275fac=function(i){return new(i||e)(c(J),c(A))},e.\u0275dir=h({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[f]});let o=e;return o})(),Se=class{constructor(){this.tasks=[],this.endTasks=[]}},xe=new $("_COALESCED_STYLE_SCHEDULER"),He=(()=>{let e=class e{constructor(t){this._currentSchedule=null,this._ngZone=P(ie)}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Se,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let t=this._currentSchedule;this._currentSchedule=new Se;for(let i of t.tasks)i();for(let i of t.endTasks)i()}this._currentSchedule=null})))}};e.\u0275fac=function(i){return new(i||e)(te(ie))},e.\u0275prov=he({token:e,factory:e.\u0275fac});let o=e;return o})();var Ve=(()=>{let e=class e{constructor(t,i){this.template=t,this._differs=i}ngOnChanges(t){if(!this._columnsDiffer){let i=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof ce?t.headerCell.template:this instanceof ze?t.footerCell.template:t.cell.template}};e.\u0275fac=function(i){return new(i||e)(c(E),c(G))},e.\u0275dir=h({type:e,features:[pe]});let o=e;return o})(),ce=(()=>{let e=class e extends Ve{get sticky(){return this._sticky}set sticky(t){t!==this._sticky&&(this._sticky=t,this._hasStickyChanged=!0)}constructor(t,i,n){super(t,i),this._table=n,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(t){super.ngOnChanges(t)}hasStickyChanged(){let t=this._hasStickyChanged;return this.resetStickyChanged(),t}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(i){return new(i||e)(c(E),c(G),c(R,8))},e.\u0275dir=h({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",F]},standalone:!0,features:[B,f,pe]});let o=e;return o})(),ze=(()=>{let e=class e extends Ve{get sticky(){return this._sticky}set sticky(t){t!==this._sticky&&(this._sticky=t,this._hasStickyChanged=!0)}constructor(t,i,n){super(t,i),this._table=n,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(t){super.ngOnChanges(t)}hasStickyChanged(){let t=this._hasStickyChanged;return this.resetStickyChanged(),t}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(i){return new(i||e)(c(E),c(G),c(R,8))},e.\u0275dir=h({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",F]},standalone:!0,features:[B,f,pe]});let o=e;return o})(),Ie=(()=>{let e=class e extends Ve{constructor(t,i,n){super(t,i),this._table=n}};e.\u0275fac=function(i){return new(i||e)(c(E),c(G),c(R,8))},e.\u0275dir=h({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},standalone:!0,features:[f]});let o=e;return o})(),H=(()=>{let e=class e{constructor(t){this._viewContainer=t,e.mostRecentCellOutlet=this}ngOnDestroy(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}};e.mostRecentCellOutlet=null,e.\u0275fac=function(i){return new(i||e)(c(q))},e.\u0275dir=h({type:e,selectors:[["","cdkCellOutlet",""]],standalone:!0});let o=e;return o})(),Ue=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[x],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,n){i&1&&g(0,0)},dependencies:[H],encapsulation:2});let o=e;return o})();var Qe=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[x],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,n){i&1&&g(0,0)},dependencies:[H],encapsulation:2});let o=e;return o})(),It=(()=>{let e=class e{constructor(t){this.templateRef=t,this._contentClassName="cdk-no-data-row"}};e.\u0275fac=function(i){return new(i||e)(c(E))},e.\u0275dir=h({type:e,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0});let o=e;return o})(),St=["top","bottom","left","right"],Be=class{constructor(e,r,t,i,n=!0,a=!0,s){this._isNativeHtmlTable=e,this._stickCellCss=r,this.direction=t,this._coalescedStyleScheduler=i,this._isBrowser=n,this._needsPositionStickyOnElement=a,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:`${r}-border-elem-top`,bottom:`${r}-border-elem-bottom`,left:`${r}-border-elem-left`,right:`${r}-border-elem-right`}}clearStickyPositioning(e,r){let t=[];for(let i of e)if(i.nodeType===i.ELEMENT_NODE){t.push(i);for(let n=0;n{for(let i of t)this._removeStickyStyle(i,r)})}updateStickyColumns(e,r,t,i=!0){if(!e.length||!this._isBrowser||!(r.some(n=>n)||t.some(n=>n))){this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}));return}this._coalescedStyleScheduler.schedule(()=>{let n=e[0],a=n.children.length,s=this._getCellWidths(n,i),l=this._getStickyStartColumnPositions(s,r),d=this._getStickyEndColumnPositions(s,t),u=r.lastIndexOf(!0),_=t.indexOf(!0),y=this.direction==="rtl",N=y?"right":"left",Ye=y?"left":"right";for(let ee of e)for(let D=0;Dr[D]?ee:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:_===-1?[]:s.slice(_).map((ee,D)=>t[D+_]?ee:null).reverse()}))})}stickRows(e,r,t){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{let i=t==="bottom"?e.slice().reverse():e,n=t==="bottom"?r.slice().reverse():r,a=[],s=[],l=[];for(let u=0,_=0;u{let t=e.querySelector("tfoot");t&&(r.some(i=>!i)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1))})}_removeStickyStyle(e,r){for(let i of r)e.style[i]="",e.classList.remove(this._borderCellCss[i]);St.some(i=>r.indexOf(i)===-1&&e.style[i])?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}_addStickyStyle(e,r,t,i){e.classList.add(this._stickCellCss),i&&e.classList.add(this._borderCellCss[r]),e.style[r]=`${t}px`,e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(e){let r={top:100,bottom:10,left:1,right:1},t=0;for(let i of St)e.style[i]&&(t+=r[i]);return t?`${t}`:""}_getCellWidths(e,r=!0){if(!r&&this._cachedCellWidths.length)return this._cachedCellWidths;let t=[],i=e.children;for(let n=0;n0;n--)r[n]&&(t[n]=i,i+=e[n]);return t}};var Ee=new $("CDK_SPL");var We=(()=>{let e=class e{constructor(t,i){this.viewContainer=t,this.elementRef=i;let n=P(R);n._rowOutlet=this,n._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(c(q),c(A))},e.\u0275dir=h({type:e,selectors:[["","rowOutlet",""]],standalone:!0});let o=e;return o})(),$e=(()=>{let e=class e{constructor(t,i){this.viewContainer=t,this.elementRef=i;let n=P(R);n._headerRowOutlet=this,n._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(c(q),c(A))},e.\u0275dir=h({type:e,selectors:[["","headerRowOutlet",""]],standalone:!0});let o=e;return o})(),Ke=(()=>{let e=class e{constructor(t,i){this.viewContainer=t,this.elementRef=i;let n=P(R);n._footerRowOutlet=this,n._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(c(q),c(A))},e.\u0275dir=h({type:e,selectors:[["","footerRowOutlet",""]],standalone:!0});let o=e;return o})(),qe=(()=>{let e=class e{constructor(t,i){this.viewContainer=t,this.elementRef=i;let n=P(R);n._noDataRowOutlet=this,n._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(c(q),c(A))},e.\u0275dir=h({type:e,selectors:[["","noDataRowOutlet",""]],standalone:!0});let o=e;return o})();var Ze=(()=>{let e=class e{_getCellRole(){if(this._cellRoleInternal===void 0){let t=this._elementRef.nativeElement.getAttribute("role"),i=t==="grid"||t==="treegrid"?"gridcell":"cell";this._cellRoleInternal=this._isNativeHtmlTable&&i==="cell"?null:i}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=t,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=t,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(t,i,n,a,s,l,d,u,_,y,N,Ye){this._differs=t,this._changeDetectorRef=i,this._elementRef=n,this._dir=s,this._platform=d,this._viewRepeater=u,this._coalescedStyleScheduler=_,this._viewportRuler=y,this._stickyPositioningListener=N,this._onDestroy=new U,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._hasAllOutlets=!1,this._hasInitialized=!1,this._cellRoleInternal=void 0,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new we,this.viewChange=new Q({start:0,end:Number.MAX_VALUE}),this._injector=P(K),a||n.nativeElement.setAttribute("role","table"),this._document=l,this._isServer=!d.isBrowser,this._isNativeHtmlTable=n.nativeElement.nodeName==="TABLE"}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((t,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(ue(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(t=>{t?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),ve(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let t=this._dataDiffer.diff(this._renderRows);if(!t){this._updateNoDataRow(),this.contentChanged.next();return}let i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,i,(n,a,s)=>this._getEmbeddedViewArgs(n.item,s),n=>n.item.data,n=>{n.operation===vt.INSERTED&&n.context&&this._renderCellTemplateForItem(n.record.item.rowDef,n.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(n=>{let a=i.get(n.currentIndex);a.context.$implicit=n.item.data}),this._updateNoDataRow(),it(()=>{this.updateStickyColumnStyles()},{injector:this._injector}),this.contentChanged.next()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){let t=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let n=xt(this._headerRowOutlet,"thead");n&&(n.style.display=t.length?"":"none")}let i=this._headerRowDefs.map(n=>n.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(n=>n.resetStickyChanged())}updateStickyFooterRowStyles(){let t=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let n=xt(this._footerRowOutlet,"tfoot");n&&(n.style.display=t.length?"":"none")}let i=this._footerRowDefs.map(n=>n.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(n=>n.resetStickyChanged())}updateStickyColumnStyles(){let t=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),n=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...i,...n],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((a,s)=>{this._addStickyColumnStyles([a],this._headerRowDefs[s])}),this._rowDefs.forEach(a=>{let s=[];for(let l=0;l{this._addStickyColumnStyles([a],this._footerRowDefs[s])}),Array.from(this._columnDefsByName.values()).forEach(a=>a.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){let t=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let n=0;n{let l=n&&n.has(s)?n.get(s):[];if(l.length){let d=l.shift();return d.dataIndex=i,d}else return{data:t,rowDef:s,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),be(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=be(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=be(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=be(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let t=this._rowDefs.filter(i=>!i.when);!this.multiTemplateDataRows&&t.length>1,this._defaultRowDef=t[0]}_renderUpdatedColumns(){let t=(s,l)=>s||!!l.getColumnsDiff(),i=this._rowDefs.reduce(t,!1);i&&this._forceRenderDataRows();let n=this._headerRowDefs.reduce(t,!1);n&&this._forceRenderHeaderRows();let a=this._footerRowDefs.reduce(t,!1);return a&&this._forceRenderFooterRows(),i||n||a}_switchDataSource(t){this._data=[],ve(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;ve(this.dataSource)?t=this.dataSource.connect(this):Je(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=W(this.dataSource)),this._renderChangeSubscription=t.pipe(ue(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,i)=>this._renderRow(this._headerRowOutlet,t,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,i)=>this._renderRow(this._footerRowOutlet,t,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,i){let n=Array.from(i.columns||[]).map(l=>{let d=this._columnDefsByName.get(l);return d}),a=n.map(l=>l.sticky),s=n.map(l=>l.stickyEnd);this._stickyStyler.updateStickyColumns(t,a,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){let i=[];for(let n=0;n!a.when||a.when(i,t));else{let a=this._rowDefs.find(s=>s.when&&s.when(i,t))||this._defaultRowDef;a&&n.push(a)}return n.length,n}_getEmbeddedViewArgs(t,i){let n=t.rowDef,a={$implicit:t.data};return{templateRef:n.template,context:a,index:i}}_renderRow(t,i,n,a={}){let s=t.viewContainer.createEmbeddedView(i.template,a,n);return this._renderCellTemplateForItem(i,a),s}_renderCellTemplateForItem(t,i){for(let n of this._getCellTemplates(t))H.mostRecentCellOutlet&&H.mostRecentCellOutlet._viewContainer.createEmbeddedView(n,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let t=this._rowOutlet.viewContainer;for(let i=0,n=t.length;i{let n=this._columnDefsByName.get(i);return t.extractCellTemplate(n)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let t=(i,n)=>i||n.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let t=this._dir?this._dir.value:"ltr";this._stickyStyler=new Be(this._isNativeHtmlTable,this.stickyCssClass,t,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:W()).pipe(ue(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){let t=this._customNoDataRow||this._noDataRow;if(!t)return;let i=this._rowOutlet.viewContainer.length===0;if(i===this._isShowingNoDataRow)return;let n=this._noDataRowOutlet.viewContainer;if(i){let a=n.createEmbeddedView(t.templateRef),s=a.rootNodes[0];a.rootNodes.length===1&&s?.nodeType===this._document.ELEMENT_NODE&&(s.setAttribute("role","row"),s.classList.add(t._contentClassName))}else n.clear();this._isShowingNoDataRow=i,this._changeDetectorRef.markForCheck()}};e.\u0275fac=function(i){return new(i||e)(c(G),c(rt),c(A),et("role"),c(mt,8),c(st),c(ft),c(ae),c(xe),c(Rt),c(Ee,12),c(ie,8))},e.\u0275cmp=b({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(i,n,a){if(i&1&&(M(a,It,5),M(a,J,5),M(a,Ie,5),M(a,ce,5),M(a,ze,5)),i&2){let s;T(s=I())&&(n._noDataRow=s.first),T(s=I())&&(n._contentColumnDefs=s),T(s=I())&&(n._contentRowDefs=s),T(s=I())&&(n._contentHeaderRowDefs=s),T(s=I())&&(n._contentFooterRowDefs=s)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(i,n){i&2&&De("cdk-table-fixed-layout",n.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",F],fixedLayout:[2,"fixedLayout","fixedLayout",F]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[C([{provide:R,useExisting:e},{provide:ae,useClass:Re},{provide:xe,useClass:He},{provide:Ee,useValue:null}]),B,x],ngContentSelectors:Pt,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,n){i&1&&(Y(jt),S(0),S(1,1),j(2,Bt,1,0)(3,Lt,7,0)(4,Ht,4,0)),i&2&&(w(2),Z(n._isServer?2:-1),w(),Z(n._isNativeHtmlTable?3:4))},dependencies:[$e,We,qe,Ke],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2});let o=e;return o})();function be(o,e){return o.concat(Array.from(e))}function xt(o,e){let r=e.toUpperCase(),t=o.viewContainer.element.nativeElement;for(;t;){let i=t.nodeType===1?t.nodeName:null;if(i===r)return t;if(i==="TABLE")break;t=t.parentNode}return null}var Ft=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=me({type:e}),e.\u0275inj=fe({imports:[bt]});let o=e;return o})();var Vt=[[["caption"]],[["colgroup"],["col"]],"*"],zt=["caption","colgroup, col","*"];function Ut(o,e){o&1&&S(0,2)}function Qt(o,e){o&1&&(m(0,"thead",0),g(1,1),p(),m(2,"tbody",2),g(3,3)(4,4),p(),m(5,"tfoot",0),g(6,5),p())}function Wt(o,e){o&1&&g(0,1)(1,3)(2,4)(3,5)}var Qi=(()=>{let e=class e extends Ze{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275cmp=b({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,n){i&2&&De("mdc-table-fixed-layout",n.fixedLayout)},exportAs:["matTable"],standalone:!0,features:[C([{provide:Ze,useExisting:e},{provide:R,useExisting:e},{provide:xe,useClass:He},{provide:ae,useClass:Re},{provide:Ee,useValue:null}]),f,x],ngContentSelectors:zt,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,n){i&1&&(Y(Vt),S(0),S(1,1),j(2,Ut,1,0)(3,Qt,7,0)(4,Wt,4,0)),i&2&&(w(2),Z(n._isServer?2:-1),w(),Z(n._isNativeHtmlTable?3:4))},dependencies:[$e,We,qe,Ke],styles:[".mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2});let o=e;return o})(),Wi=(()=>{let e=class e extends Me{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275dir=h({type:e,selectors:[["","matCellDef",""]],standalone:!0,features:[C([{provide:Me,useExisting:e}]),f]});let o=e;return o})(),$i=(()=>{let e=class e extends Te{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275dir=h({type:e,selectors:[["","matHeaderCellDef",""]],standalone:!0,features:[C([{provide:Te,useExisting:e}]),f]});let o=e;return o})();var Ki=(()=>{let e=class e extends J{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275dir=h({type:e,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},standalone:!0,features:[C([{provide:J,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),f]});let o=e;return o})(),qi=(()=>{let e=class e extends Mt{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275dir=h({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],standalone:!0,features:[f]});let o=e;return o})();var Zi=(()=>{let e=class e extends Tt{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275dir=h({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[f]});let o=e;return o})();var Yi=(()=>{let e=class e extends ce{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275dir=h({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",F]},standalone:!0,features:[C([{provide:ce,useExisting:e}]),B,f]});let o=e;return o})();var Xi=(()=>{let e=class e extends Ie{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275dir=h({type:e,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},standalone:!0,features:[C([{provide:Ie,useExisting:e}]),f]});let o=e;return o})(),Gi=(()=>{let e=class e extends Ue{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275cmp=b({type:e,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],standalone:!0,features:[C([{provide:Ue,useExisting:e}]),f,x],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,n){i&1&&g(0,0)},dependencies:[H],encapsulation:2});let o=e;return o})();var Ji=(()=>{let e=class e extends Qe{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=v(e)))(n||e)}})(),e.\u0275cmp=b({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[C([{provide:Qe,useExisting:e}]),f,x],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,n){i&1&&g(0,0)},dependencies:[H],encapsulation:2});let o=e;return o})();var en=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=me({type:e}),e.\u0275inj=fe({imports:[Pe,Ft,Pe]});let o=e;return o})(),$t=9007199254740991,Ot=class extends Ct{get data(){return this._data.value}set data(e){e=Array.isArray(e)?e:[],this._data.next(e),this._renderChangesSubscription||this._filterData(e)}get filter(){return this._filter.value}set filter(e){this._filter.next(e),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(e){this._sort=e,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(e){this._paginator=e,this._updateChangeSubscription()}constructor(e=[]){super(),this._renderData=new Q([]),this._filter=new Q(""),this._internalPageChanges=new U,this._renderChangesSubscription=null,this.sortingDataAccessor=(r,t)=>{let i=r[t];if(ht(i)){let n=Number(i);return n<$t?n:i}return i},this.sortData=(r,t)=>{let i=t.active,n=t.direction;return!i||n==""?r:r.sort((a,s)=>{let l=this.sortingDataAccessor(a,i),d=this.sortingDataAccessor(s,i),u=typeof l,_=typeof d;u!==_&&(u==="number"&&(l+=""),_==="number"&&(d+=""));let y=0;return l!=null&&d!=null?l>d?y=1:l{let i=Object.keys(r).reduce((a,s)=>a+r[s]+"\u25EC","").toLowerCase(),n=t.trim().toLowerCase();return i.indexOf(n)!=-1},this._data=new Q(e),this._updateChangeSubscription()}_updateChangeSubscription(){let e=this._sort?Ne(this._sort.sortChange,this._sort.initialized):W(null),r=this._paginator?Ne(this._paginator.page,this._internalPageChanges,this._paginator.initialized):W(null),t=this._data,i=de([t,this._filter]).pipe(le(([s])=>this._filterData(s))),n=de([i,e]).pipe(le(([s])=>this._orderData(s))),a=de([n,r]).pipe(le(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(e){return this.filteredData=this.filter==null||this.filter===""?e:e.filter(r=>this.filterPredicate(r,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(e){return this.sort?this.sortData(e.slice(),this.sort):e}_pageData(e){if(!this.paginator)return e;let r=this.paginator.pageIndex*this.paginator.pageSize;return e.slice(r,r+this.paginator.pageSize)}_updatePaginator(e){Promise.resolve().then(()=>{let r=this.paginator;if(r&&(r.length=e,r.pageIndex>0)){let t=Math.ceil(r.length/r.pageSize)-1||0,i=Math.min(r.pageIndex,t);i!==r.pageIndex&&(r.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var Fe=new $("DRAWER_DATA");var V=function(o){return o.OPEN="open",o.DISMISS="dismiss",o.SAVE="save",o.CLOSE="close",o}(V||{});var z=class{constructor(e){this.overlayRef=e,this.afterClosedSubject=new U}backdropClick(){return this.overlayRef.backdropClick()}close(e){this.overlayRef.dispose(),this.afterClosedSubject.next(e),this.afterClosedSubject.complete()}afterClosed(){return this.afterClosedSubject.asObservable()}};var qt=["*"];function Zt(o,e){o&1&&g(0)}function Yt(o,e){if(o&1){let r=Ce();m(0,"div",7)(1,"div",8),X(2),p(),m(3,"div",9)(4,"button",10),re("click",function(){ge(r);let i=k();return ye(i.onDismiss())}),nt(5,"mat-icon",11),p()()()}if(o&2){let r=k();w(2),ot(r.data.title)}}function Xt(o,e){o&1&&g(0)}function Gt(o,e){if(o&1){let r=Ce();ne(0),m(1,"button",14),re("click",function(){ge(r);let i=k(2);return ye(i.onClose())}),X(2),p(),oe()}if(o&2){let r=k(2);w(),L("disabled",r.isDismissDisabled),w(),se(" ",r.data.closeButtonLabel," ")}}function Jt(o,e){if(o&1){let r=Ce();ne(0),m(1,"button",15),re("click",function(){ge(r);let i=k(2);return ye(i.onSave())}),X(2),p(),oe()}if(o&2){let r=k(2);w(),L("disabled",r.isSaveDisabled),w(),se(" ",r.data.saveButtonLabel," ")}}function ei(o,e){if(o&1&&(m(0,"div",12),j(1,Gt,3,2,"ng-container",13)(2,Jt,3,2,"ng-container",13),p()),o&2){let r=k();w(),L("ngIf",r.data.showCloseButton),w(),L("ngIf",r.data.showSaveButton)}}var O,Nt=(O=class{constructor(e,r){this.drawerRef=e,this.data=r,this.isSaveDisabled=!1,this.isDismissDisabled=!1,this.closeDialogOnBackdropClick=!0,this.closeDialogOnEscKeyUp=!0,this.actionEvent=new we,this.closeDrawerOnBackdropClick()}onClose(){this.actionEvent.emit(V.CLOSE),this.drawerRef.close({status:V.CLOSE})}onSave(){this.actionEvent.emit(V.SAVE)}onDismiss(){this.actionEvent.emit(V.DISMISS),this.drawerRef.close({status:V.DISMISS})}closeDrawerOnBackdropClick(){this.closeDialogOnBackdropClick&&this.drawerRef.backdropClick().pipe(ut(this)).subscribe(()=>{this.onDismiss()})}onEscKeyDown(){this.closeDialogOnEscKeyUp&&this.onDismiss()}},O.\u0275fac=function(r){return new(r||O)(c(z),c(Fe))},O.\u0275cmp=b({type:O,selectors:[["ms-drawer"]],hostBindings:function(r,t){r&1&&re("keyup.esc",function(){return t.onEscKeyDown()},!1,tt)},inputs:{headerTemplate:"headerTemplate",actionsTemplate:"actionsTemplate",isSaveDisabled:"isSaveDisabled",isDismissDisabled:"isDismissDisabled",closeDialogOnBackdropClick:"closeDialogOnBackdropClick",closeDialogOnEscKeyUp:"closeDialogOnEscKeyUp"},outputs:{actionEvent:"actionEvent"},standalone:!0,features:[x],ngContentSelectors:qt,decls:11,vars:4,consts:[["defaultDrawerHeader",""],["defaultDrawerActions",""],[1,"drawer-wrapper"],[1,"drawer-header"],[4,"ngTemplateOutlet"],[1,"drawer-content"],[1,"drawer-actions"],[1,"drawer-header-wrapper"],[1,"heading-section-title"],[1,"close-icon"],["mat-icon-button","",3,"click"],["fontSet","ms","fontIcon","icon-X"],[1,"actions-wrapper"],[4,"ngIf"],["mat-stroked-button","",3,"click","disabled"],["mat-flat-button","","color","primary",3,"click","disabled"]],template:function(r,t){if(r&1&&(Y(),m(0,"div",2)(1,"div",3),j(2,Zt,1,0,"ng-container",4)(3,Yt,6,1,"ng-template",null,0,je),p(),m(5,"div",5),S(6),p(),m(7,"div",6),j(8,Xt,1,0,"ng-container",4)(9,ei,3,2,"ng-template",null,1,je),p()()),r&2){let i=Ae(4),n=Ae(10);_e("width",t.data.width,"px"),w(2),L("ngTemplateOutlet",t.headerTemplate||i),w(6),L("ngTemplateOutlet",t.actionsTemplate||n)}},dependencies:[lt,at,ct,yt,pt,gt,_t,wt],styles:[".drawer-wrapper[_ngcontent-%COMP%]{width:inherit;height:100vh;box-shadow:0 0 4px 0 var(--backgrounds-700);display:flex;flex-direction:column}.drawer-wrapper[_ngcontent-%COMP%] .drawer-header[_ngcontent-%COMP%]{min-height:90px;background-color:var(--backgrounds-200);box-sizing:border-box;border-bottom:1px solid var(--backgrounds-500)}.drawer-wrapper[_ngcontent-%COMP%] .drawer-header-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:32px}.drawer-wrapper[_ngcontent-%COMP%] .drawer-header-wrapper[_ngcontent-%COMP%] .close-icon[_ngcontent-%COMP%] .icon-cancel[_ngcontent-%COMP%]{color:var(--foregrounds-100)!important}.drawer-wrapper[_ngcontent-%COMP%] .drawer-header-wrapper[_ngcontent-%COMP%] .close-icon[_ngcontent-%COMP%] .icon-cancel[_ngcontent-%COMP%]:hover{color:var(--foregrounds-300)!important}.drawer-wrapper[_ngcontent-%COMP%] .drawer-content[_ngcontent-%COMP%]{overflow-y:auto;background-color:var(--backgrounds-100);flex-grow:1;padding:32px}.drawer-wrapper[_ngcontent-%COMP%] .drawer-actions[_ngcontent-%COMP%]{background-color:var(--backgrounds-200);padding:20px 32px;box-sizing:border-box;border-top:1px solid var(--backgrounds-500)}.drawer-wrapper[_ngcontent-%COMP%] .drawer-actions[_ngcontent-%COMP%] .actions-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end}.drawer-wrapper[_ngcontent-%COMP%] .drawer-actions[_ngcontent-%COMP%] .actions-wrapper[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:20px}"]}),O);Nt=Ge([dt()],Nt);var Tn=(()=>{let e=class e{constructor(t,i){this.overlay=t,this.injector=i}open(t,i){let n=this.overlay.position().global().right(),a=this.overlay.create(Oe({positionStrategy:n,hasBackdrop:!0,backdropClass:"drawer-backdrop",height:"100vh",width:768},i)),s=new z(a),l=K.create({parent:this.injector,providers:[{provide:z,useValue:s},{provide:Fe,useValue:Oe({saveButtonLabel:"Save",closeButtonLabel:"Close",showSaveButton:!0,showCloseButton:!0,width:768},i)}]}),d=new Dt(t,null,l);return a.attach(d),s}};e.\u0275fac=function(i){return new(i||e)(te(kt),te(K))},e.\u0275prov=he({token:e,factory:e.\u0275fac});let o=e;return o})();export{Qi as a,Wi as b,$i as c,Ki as d,qi as e,Zi as f,Yi as g,Xi as h,Gi as i,Ji as j,en as k,Ot as l,Fe as m,V as n,z as o,Nt as p,Tn as q}; diff --git a/frontend/server/modelsmith-build/browser/chunk-MPLQ54VQ.js b/frontend/server/modelsmith-build/browser/chunk-MPLQ54VQ.js deleted file mode 100644 index 138ab641..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-MPLQ54VQ.js +++ /dev/null @@ -1,2 +0,0 @@ -import{Ac as m,Bc as c,Be as l,Da as x,Ea as D,J as u,Na as O,P as n,Pa as b,Sd as T,T as h,U as i,V as g,Xc as j,Zb as R,_c as w,h as d,ja as y,ka as a,mc as F,pa as C,pb as N,qa as M,sa as v,wa as E,xa as I}from"./chunk-AIAH5BT5.js";function S(e,t){if(e&1&&(E(0,"mat-error",1),O(1),I()),e&2){let V=D();y(),b(" ",V.text,` -`)}}var _=(()=>{let t=class t{constructor(){}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=h({type:t,selectors:[["ms-error-message"]],inputs:{text:"text"},decls:1,vars:1,consts:[["class","error-message",4,"ngIf"],[1,"error-message"]],template:function(r,s){r&1&&M(0,S,2,1,"mat-error",0),r&2&&v("ngIf",s.text)},dependencies:[j],styles:[".error-message[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fade-in-translate .3s}@keyframes _ngcontent-%COMP%_fade-in-translate{0%{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translateY(0)}}"],changeDetection:0});let e=t;return e})();var A="onlyDigits";function B(e){if(!e)return;let t=Object.keys(e)[0];switch(t){case"required":return"Field required";case"email":return"Email required";case A:return"Only numeric characters allowed";default:return t}}var J=(()=>{let t=class t{constructor(o,r){this.control=o,this.vcr=r,this._destroyed$=new d}onBlur(){this.control.invalid&&!this.control.disabled&&this.insertErrorComponent()}ngOnInit(){this.control.touched&&this.control.invalid&&!this.control.disabled&&this.insertErrorComponent(),this.control?.statusChanges?.pipe(u(this._destroyed$)).subscribe(()=>{this.control.touched&&this.control.invalid&&!this.control.disabled&&this.insertErrorComponent(),(this.control.valid||this.control.disabled)&&this.destroyErrorComponent()})}insertErrorComponent(){if(!this.componentRef){this.componentRef=this.vcr.createComponent(_);let o=this.componentRef.location.nativeElement;o.parentElement?.parentElement?.parentElement?.parentElement?.getElementsByClassName("mat-mdc-form-field-subscript-wrapper")[0]?.getElementsByClassName("mat-mdc-form-field-hint-wrapper")[0]?.getElementsByClassName("mat-mdc-form-field-hint-spacer")[0].appendChild(o)}this.componentRef.instance&&(this.componentRef.instance.text=B(this.control.errors))}destroyErrorComponent(){this.componentRef&&(this.vcr.remove(),this.componentRef.destroy(),this.componentRef=void 0)}ngOnDestroy(){this.destroyErrorComponent(),this._destroyed$.next(),this._destroyed$.complete()}};t.\u0275fac=function(r){return new(r||t)(a(F),a(C))},t.\u0275dir=g({type:t,selectors:[["","msErrorDisplay",""]],hostBindings:function(r,s){r&1&&x("blur",function(){return s.onBlur()})}});let e=t;return e})();var f=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=i({type:t}),t.\u0275inj=n({imports:[w]});let e=t;return e})();var It=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=i({type:t}),t.\u0275inj=n({imports:[N,R,l,m,c,f,T,l,m,c,f]});let e=t;return e})();export{J as a,It as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-MVEKSYQT.js b/frontend/server/modelsmith-build/browser/chunk-MVEKSYQT.js deleted file mode 100644 index 512b3dca..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-MVEKSYQT.js +++ /dev/null @@ -1 +0,0 @@ -import{W as o}from"./chunk-AIAH5BT5.js";var l=(()=>{let t=class t{transform(a,e=2){let n=Number(a);if(isNaN(n)||n===0)return"0 Bytes";let s=1024,c=e<0?0:e,r=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],u=Math.floor(Math.log(n)/Math.log(s));return parseFloat((n/Math.pow(s,u)).toFixed(c))+" "+r[u]}};t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o({name:"adaptiveFileSize",type:t,pure:!0,standalone:!0});let i=t;return i})();var d=(()=>{let t=class t{transform(a){return{creation_date:"Creation Date",epochs:"Number of Epochs",file_size_bytes:"File Size",learning_rate:"Learning Rate",model:"Model Architecture",training_duration_seconds:"Training Duration",duration_seconds:"Total Duration",arch:"Model Architecture",best_acc:"Best Accuracy",device:"Device Used",lr:"Learning Rate",pruning_ratio:"Pruning Ratio",start_epoch:"Starting Epoch",pruning_times:"Pruning Iterations",rewinding_epoch:"Rewinding Epoch",save_dir:"Saving Directory",algorithm_key:"Algorithm Key",execution_date:"Execution Date",seed:"Random Seed",dataset:"Dataset Name",batch_size:"Batch Size",workers:"Workers",n_bits_w:"Bitwidth for Weights",channel_wise:"Channel-wise Quantization",n_bits_a:"Bitwidth for Activations",disable_8bit_head_stem:"Disable 8-bit Head and Stem",num_samples:"Number of Samples",iters_w:"Number of Iterations",weight:"Weight Parameter",keep_cpu:"Keep Calibration Data on CPU",wwq:"Weight Quantization",waq:"Activation Quantization",b_start:"Initial Temperature",b_end:"Final Temperature",warmup:"Warmup Period",awq:"Activation Weight Quantization",aaq:"Activation Activation Quantization",init_wmode:"Weight Initialization Mode",init_amode:"Activation Initialization Mode",order:"Order of Quantization",prob:"Probability",input_prob:"Input Probability",act_quant:"Apply Activation Quantization",num_indexes_to_replace:"Number of Indexes to Replace",alpha:"L1 Regularization Coefficient (Alpha)",unlearn_lr:"Learning Rate for Unlearning",unlearn_epochs:"Nr. of Epochs for L1-Sparse Unlearning",train_seed:"Random Seed for Training",class_to_replace:"Specific Class to Forget",data:"Location of the Data Corpus",indexes_to_replace:"Specific Index Data to Forget",no_aug:"No Augmentation in Training Dataset",decreasing_lr:"Decreasing Strategy",rewind_epoch:"Rewind Checkpoint",imagenet_arch:"Architecture for ImageNet Size Samples",no_l1_epochs:"Non L1 Epochs",momentum:"Momentum",weight_decay:"Weight Decay",num_workers:"Number of workers"}[a]||a}};t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o({name:"parametersLabel",type:t,pure:!0,standalone:!0});let i=t;return i})();var f=(()=>{let t=class t{transform(a){let e=Number(a);if(isNaN(e))return"Invalid duration";let n=Math.floor(e/3600),s=Math.floor(e%3600/60),c=Math.floor(e%60),r="";return n>0&&(r+=`${n}h `),(s>0||n>0)&&(r+=`${s}m `),r+=`${c}s`,r.trim()}};t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o({name:"readableDuration",type:t,pure:!0,standalone:!0});let i=t;return i})();export{l as a,d as b,f as c}; diff --git a/frontend/server/modelsmith-build/browser/chunk-NG4KGRDN.js b/frontend/server/modelsmith-build/browser/chunk-NG4KGRDN.js new file mode 100644 index 00000000..e7e4d759 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-NG4KGRDN.js @@ -0,0 +1 @@ +import{a as J,b as K,c as W,d as Y}from"./chunk-URO2J7UO.js";import{a as q,b as H}from"./chunk-PP7DOJYP.js";import{c as z,h as Q,i as X}from"./chunk-HG2O7P4S.js";import{$d as k,Ae as g,Bb as d,Be as Z,Ea as a,Fa as w,Fb as _,Gb as D,Ie as ee,Kc as S,Lc as N,Qa as F,Sa as s,Ta as b,Ub as P,_b as A,ab as i,bb as n,bc as B,cb as o,dd as U,ee as O,gb as E,ha as l,ie as j,jb as T,le as L,pa as x,qa as y,se as R,tb as M,te as V,ub as u,ue as G,vb as h,we as $,xe as f,ze as p}from"./chunk-NPZHNGVX.js";function re(t,e){if(t&1&&(i(0,"div",12)(1,"div",13),u(2),n(),i(3,"div",14),u(4),n()()),t&2){let I=e.ngIf;a(2),h(I.name),a(2),h(I.role)}}var te=(()=>{let e=class e{constructor(m){this.authFacadeService=m,this.RoutesList=U,this.user$=this.authFacadeService.user$}logout(){this.authFacadeService.dispatch(Z.logout())}};e.\u0275fac=function(r){return new(r||e)(w(ee))},e.\u0275cmp=l({type:e,selectors:[["ms-user-navigation"]],standalone:!0,features:[d],decls:14,vars:6,consts:[["menuTrigger","matMenuTrigger"],["menu","matMenu"],["mat-button","",3,"matMenuTriggerFor"],[1,"user-navigation-content-wrapper","flex","items-center","gap-2"],[1,"content-1","flex","items-center"],["fontSet","ms","fontIcon","icon-User",1,"mat-white"],["class","content-2 right text-left ml-2",4,"ngIf"],[1,"content-3"],["fontSet","ms","fontIcon","icon-CaretDown",1,"mat-white","rotate-icon","text-base"],[1,"ms-mat-menu"],["mat-menu-item","",3,"click"],["fontSet","ms","fontIcon","icon-SignOut"],[1,"content-2","right","text-left","ml-2"],[1,"paragraph-semibold-p3-default-emphasis"],[1,"paragraph-regular-p3-default"]],template:function(r,c){if(r&1){let v=E();i(0,"button",2,0)(2,"div",3)(3,"div",4),o(4,"mat-icon",5),n(),F(5,re,5,2,"div",6),_(6,"async"),i(7,"div",7),o(8,"mat-icon",8),n()()(),i(9,"mat-menu",9,1)(11,"button",10),T("click",function(){return x(v),y(c.logout())}),o(12,"mat-icon",11),u(13," Logout "),n()()}if(r&2){let v=M(1),C=M(10);s("matMenuTriggerFor",C),a(5),s("ngIf",D(6,4,c.user$)),a(3),b("transform",v.menuOpen?"rotate(180deg)":"rotate(0)")}},dependencies:[B,P,A,g,p,Y,K,J,W,f,G],styles:[".rotate-icon[_ngcontent-%COMP%]{transition:transform .2s ease-in-out}.content-2[_ngcontent-%COMP%]{color:var(--backgrounds-50)}"]});let t=e;return t})();var be=(()=>{let e=class e{constructor(){this.search=new j}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=l({type:e,selectors:[["ms-header"]],standalone:!0,features:[d],decls:24,vars:1,consts:[[1,"header-wrapper"],[1,"left","flex","justify-center","items-center"],[1,"icon"],["mat-icon-button",""],["fontSet","ms","fontIcon","icon-Nav",1,"mat-white"],[1,"logo","ml-4"],["src","./assets/logo/logo-header.svg","alt",""],[1,"right","flex","justify-center","items-center","gap-1"],[1,"form-field-container","ms-white-form-field"],["subscriptSizing","dynamic","floatLabel","auto"],["matInput","","placeholder","Search",3,"formControl"],["matPrefix","","fontSet","ms","fontIcon","icon-MagnifyingGlass",1,"mat-white"],["fontSet","ms","fontIcon","icon-Question",1,"mat-white"],["fontSet","ms","fontIcon","icon-Bell",1,"mat-white"],[1,"vertical-divider","h-9"],[1,"icon","cursor-pointer"]],template:function(r,c){r&1&&(i(0,"header",0)(1,"div",1)(2,"div",2)(3,"button",3),o(4,"mat-icon",4),n()(),i(5,"div",5),o(6,"img",6),n()(),i(7,"div",7)(8,"div",8)(9,"mat-form-field",9),o(10,"input",10)(11,"mat-icon",11),n()(),i(12,"div")(13,"button",3),o(14,"mat-icon",12),n()(),i(15,"div")(16,"button",3),o(17,"mat-icon",13),n()(),o(18,"div",14),i(19,"div"),o(20,"ms-user-navigation"),n(),i(21,"div",15)(22,"button",3),o(23,"mat-icon",4),n()()()()),r&2&&(a(10),s("formControl",c.search))},dependencies:[g,p,te,V,k,O,L,R,X,Q,z,f,$,H,q],styles:[".header-wrapper[_ngcontent-%COMP%]{height:56px;padding:0 10px;background:linear-gradient(to right,var(--header-left),var(--header-right));display:flex;justify-content:space-between}"]});let t=e;return t})();var _e=N({source:"[Core -> Configs]",events:{"Set Default Mode":S(),"Set Current Mode":S()}});var ae=function(t){return t.GUIDED="guided",t.EXPERT="expert",t}(ae||{});export{_e as a,ae as b,be as c}; diff --git a/frontend/server/modelsmith-build/browser/chunk-NI65ARYN.js b/frontend/server/modelsmith-build/browser/chunk-NI65ARYN.js new file mode 100644 index 00000000..cc938704 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-NI65ARYN.js @@ -0,0 +1 @@ +import{$ as O,Ad as B,Bb as P,Fa as o,Ga as m,Gd as V,Hd as U,Lb as L,Nb as l,Ob as j,Pa as v,Qa as A,R as p,T as f,Z as M,aa as k,ha as R,hb as E,ia as S,j as x,ja as c,jb as D,mb as T,nb as F,oa as w,pb as y,pd as H,qb as N,rb as h,s as b,sb as u,sd as Q,xa as g,ya as _,za as I}from"./chunk-NPZHNGVX.js";var K=["*"];function $(r,i){r&1&&F(0)}var W=(()=>{let i=class i{constructor(e){this._elementRef=e}focus(){this._elementRef.nativeElement.focus()}};i.\u0275fac=function(t){return new(t||i)(o(g))},i.\u0275dir=c({type:i,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"],standalone:!0});let r=i;return r})(),z=(()=>{let i=class i{constructor(e){this.template=e}};i.\u0275fac=function(t){return new(t||i)(o(m))},i.\u0275dir=c({type:i,selectors:[["","cdkStepLabel",""]],standalone:!0});let r=i;return r})(),J=0;var a={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},X=new k("STEPPER_GLOBAL_OPTIONS"),Y=(()=>{let i=class i{get completed(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=e}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError==null?this._getDefaultError():this._customError}set hasError(e){this._customError=e}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(e,t){this._stepper=e,this.interacted=!1,this.interactedStream=new _,this.editable=!0,this.optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=t||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this.interacted=!1,this._completedOverride!=null&&(this._completedOverride=!1),this._customError!=null&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError!=null}};i.\u0275fac=function(t){return new(t||i)(o(M(()=>C)),o(X,8))},i.\u0275cmp=R({type:i,selectors:[["cdk-step"]],contentQueries:function(t,s,n){if(t&1&&y(n,z,5),t&2){let d;h(d=u())&&(s.stepLabel=d.first)}},viewQuery:function(t,s){if(t&1&&N(m,7),t&2){let n;h(n=u())&&(s.content=n.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",l],optional:[2,"optional","optional",l],completed:[2,"completed","completed",l],hasError:[2,"hasError","hasError",l]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],standalone:!0,features:[v,w,P],ngContentSelectors:K,decls:1,vars:0,template:function(t,s){t&1&&(T(),A(0,$,1,0,"ng-template"))},encapsulation:2,changeDetection:0});let r=i;return r})(),C=(()=>{let i=class i{get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this.steps&&this._steps?(this._isValidIndex(e),this.selected?._markAsInteracted(),this._selectedIndex!==e&&!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e)):this._selectedIndex=e}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}constructor(e,t,s){this._dir=e,this._changeDetectorRef=t,this._elementRef=s,this._destroyed=new x,this.steps=new I,this._sortedHeaders=new I,this.linear=!1,this._selectedIndex=0,this.selectionChange=new _,this.selectedIndexChange=new _,this._orientation="horizontal",this._groupId=J++}ngAfterContentInit(){this._steps.changes.pipe(p(this._steps),f(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(p(this._stepHeader),f(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,s)=>t._elementRef.nativeElement.compareDocumentPosition(s._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new B(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),(this._dir?this._dir.change:b()).pipe(p(this._layoutDirection()),f(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`cdk-step-label-${this._groupId}-${e}`}_getStepContentId(e){return`cdk-step-content-${this._groupId}-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let t=e-this._selectedIndex;return t<0?this._layoutDirection()==="rtl"?"next":"previous":t>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getIndicatorType(e,t=a.NUMBER){let s=this.steps.toArray()[e],n=this._isCurrentStep(e);return s._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(s,n):this._getGuidelineLogic(s,n,t)}_getDefaultIndicatorLogic(e,t){return e._showError()&&e.hasError&&!t?a.ERROR:!e.completed||t?a.NUMBER:e.editable?a.EDIT:a.DONE}_getGuidelineLogic(e,t,s=a.NUMBER){return e._showError()&&e.hasError&&!t?a.ERROR:e.completed&&!t?a.DONE:e.completed&&t?s:e.editable&&t?a.EDIT:s}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){let t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(e){let t=Q(e),s=e.keyCode,n=this._keyManager;n.activeItemIndex!=null&&!t&&(s===32||s===13)?(this.selectedIndex=n.activeItemIndex,e.preventDefault()):n.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(t=>{let s=t.stepControl;return(s?s.invalid||s.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,t=H();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e{let i=class i{constructor(e){this._stepper=e,this.type="submit"}};i.\u0275fac=function(t){return new(t||i)(o(C))},i.\u0275dir=c({type:i,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,s){t&1&&D("click",function(){return s._stepper.next()}),t&2&&E("type",s.type)},inputs:{type:"type"},standalone:!0});let r=i;return r})(),Ee=(()=>{let i=class i{constructor(e){this._stepper=e,this.type="button"}};i.\u0275fac=function(t){return new(t||i)(o(C))},i.\u0275dir=c({type:i,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,s){t&1&&D("click",function(){return s._stepper.previous()}),t&2&&E("type",s.type)},inputs:{type:"type"},standalone:!0});let r=i;return r})(),De=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=S({type:i}),i.\u0275inj=O({imports:[U]});let r=i;return r})();export{W as a,z as b,X as c,Y as d,C as e,ve as f,Ee as g,De as h}; diff --git a/frontend/server/modelsmith-build/browser/chunk-NIXKNBGC.js b/frontend/server/modelsmith-build/browser/chunk-NIXKNBGC.js deleted file mode 100644 index cdfe42f5..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-NIXKNBGC.js +++ /dev/null @@ -1 +0,0 @@ -import{a as V}from"./chunk-C37KAU6A.js";import{b as G}from"./chunk-MPLQ54VQ.js";import{$b as v,$d as j,Ca as S,Cc as I,Da as h,Ja as b,Ka as y,La as E,Na as s,P as d,Pa as k,T as w,U as p,Xb as F,Ya as O,Z as u,Za as _,Zb as M,_ as f,_b as g,ac as C,cc as D,hc as R,id as A,ja as x,ka as l,mb as P,pb as T,qd as N,wa as r,xa as m,ya as a}from"./chunk-AIAH5BT5.js";var H=["configureDefaultMode"],Q=(()=>{let e=class e{constructor(o,t,c){this.authFacadeService=o,this.configFacadeService=t,this.router=c}setModeAndNavigate(o){let t=this.defaultModeCheckbox.checked?o:void 0;this.configFacadeService.dispatch(v.setDefaultMode({mode:t})),this.configFacadeService.dispatch(v.setCurrentMode({mode:t}))}goToExpertMode(){this.setModeAndNavigate(C.EXPERT),this.router.navigate([g.MODEL_COMPRESSION.ROOT])}goToGuidedMode(){this.setModeAndNavigate(C.GUIDED),this.router.navigate([g.WIZARD.ROOT])}};e.\u0275fac=function(t){return new(t||e)(l(A),l(D),l(F))},e.\u0275cmp=w({type:e,selectors:[["ms-mode-select"]],viewQuery:function(t,c){if(t&1&&b(H,5),t&2){let n;y(n=E())&&(c.defaultModeCheckbox=n.first)}},decls:24,vars:3,consts:[["configureDefaultMode",""],[1,"mode-select-wrapper"],[1,"mode-select-warpper-content"],[1,"text"],[1,"paragraph-semibold-p1-xlarge-emphasis","block","text-white"],[1,"mode-select-buttons","mt-20"],[1,"nav-type-button"],["mat-stroked-button","",1,"ms-white-stroked-button",3,"click"],[1,"nav-type-button","mt-10"],[1,"mt-3","ml-[-8px]"],["color","primary","checked","",1,"ms-checkbox-white"],["styleMode","fullWidth"]],template:function(t,c){if(t&1){let n=S();r(0,"ms-background-gradient"),a(1,"ms-header"),r(2,"div",1),a(3,"div"),r(4,"div",2)(5,"div",3)(6,"span",4),s(7),O(8,"async"),m(),r(9,"span",4),s(10,"Welcome to ModelSmith. Please select a mode to start:"),m(),r(11,"div",5)(12,"div",6)(13,"button",7),h("click",function(){return u(n),f(c.goToExpertMode())}),s(14,"Expert Mode"),m()(),r(15,"div",8)(16,"button",7),h("click",function(){return u(n),f(c.goToGuidedMode())}),s(17,"Guided Mode"),m()(),r(18,"div",9)(19,"mat-checkbox",10,0),s(21,"Remember my choice for the future "),m()()()()(),a(22,"div"),m(),a(23,"ms-footer",11),m()}if(t&2){let n;x(7),k("Hello ",(n=_(8,1,c.authFacadeService.user$))==null?null:n.name,"")}},dependencies:[R,N,I,j,V,P],styles:[".mode-select-wrapper[_ngcontent-%COMP%]{margin-left:80px}.mode-select-wrapper[_ngcontent-%COMP%] .mode-select-warpper-content[_ngcontent-%COMP%]{margin-top:80px}.mode-select-wrapper[_ngcontent-%COMP%] .mode-select-warpper-content[_ngcontent-%COMP%] .mode-select-buttons[_ngcontent-%COMP%] .nav-type-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:400px}"]});let i=e;return i})();var U=[{path:"",component:Q}],L=(()=>{let e=class e{};e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=p({type:e}),e.\u0275inj=d({imports:[M.forChild(U),M]});let i=e;return i})();var he=(()=>{let e=class e{};e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=p({type:e}),e.\u0275inj=d({imports:[L,G,T]});let i=e;return i})();export{he as ModeSelectModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-NO2PD4LU.js b/frontend/server/modelsmith-build/browser/chunk-NO2PD4LU.js deleted file mode 100644 index 4b62b246..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-NO2PD4LU.js +++ /dev/null @@ -1 +0,0 @@ -import{Ab as A,Bb as U,I as b,Kb as g,Lb as f,Md as V,O as a,Ob as l,Pb as y,Qb as F,R as s,Rb as D,Sb as I,Ub as Q,Ud as Y,Vd as v,Wd as J,Xb as q,_b as H,a as u,b as p,bc as h,cd as T,dd as X,ed as S,f as z,h as $,i as L,o as x,s as P,u as O,ud as K,w as B,x as j,zb as c}from"./chunk-AIAH5BT5.js";var lt=5e3,W=5e3,ft=1e4,Z=(()=>{let t=class t{constructor(r){this.snackbar=r}showSuccess(r){this.showBanner(r,v.SUCCESS,lt,"notification-panel-success")}showInfo(r){this.showBanner(r,v.INFO,W,"notification-panel-info")}showError(r){this.showBanner(r,v.ERROR,ft,"notification-panel-error")}showWarning(r){this.showBanner(r,v.WARNING,W,"notification-panel-warning")}showBanner(r,i,o,m){this.snackbar.openFromComponent(J,{duration:o,data:{message:r,notificationType:i},panelClass:m})}};t.\u0275fac=function(i){return new(i||t)(s(Y))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var n=A({source:"[Core -> Charts]",events:{"Get Current Pruning Chart Data":U(),"Get Current Pruning Chart Data Success":c(),"Get Current Pruning Chart Data Failure":c(),"Get Current Quantization Chart Data":U(),"Get Current Quantization Chart Data Success":c(),"Get Current Quantization Chart Data Failure":c(),"Get Current Machine Unlearning Chart Data":U(),"Get Current Machine Unlearning Chart Data Success":c(),"Get Current Machine Unlearning Chart Data Failure":c(),"Get Chart Configuration Settings":c(),"Get Chart Configuration Settings Success":c(),"Get Chart Configuration Settings Failure":c()}});var w=class extends S{constructor(t){let ut=`type=${t.join(",")}`;super(`chart-configuration-settings?${ut}`,void 0,void 0,!1)}};var R=class extends S{constructor(){super("current-machine-unlearning-chart-data",void 0,void 0,!1)}};var k=class extends S{constructor(){super("current-pruning-chart-data",void 0,void 0,!1)}};var N=class extends S{constructor(){super("current-quantization-chart-data",void 0,void 0,!1)}};var Bt=(()=>{let t=class t{constructor(r,i){this.apiClient=r,this.actions$=i,this.getCurrentPruningChartData$=F(()=>this.actions$.pipe(I(n.getCurrentPruningChartData),b(()=>this.apiClient.serviceCall(new k).pipe(P(o=>n.getCurrentPruningChartDataSuccess({pruningProgress:o})),j(o=>x(n.getCurrentPruningChartDataFailure({error:o}))))))),this.getCurrentQuantizationChartData$=F(()=>this.actions$.pipe(I(n.getCurrentQuantizationChartData),b(()=>this.apiClient.serviceCall(new N).pipe(P(o=>n.getCurrentQuantizationChartDataSuccess({quantizationProgress:o})),j(o=>x(n.getCurrentQuantizationChartDataFailure({error:o}))))))),this.getCurrentMachineUnlearningChartData$=F(()=>this.actions$.pipe(I(n.getCurrentMachineUnlearningChartData),b(()=>this.apiClient.serviceCall(new R).pipe(P(o=>n.getCurrentMachineUnlearningChartDataSuccess({machineUnlearningProgress:o})),j(o=>x(n.getCurrentMachineUnlearningChartDataFailure({error:o}))))))),this.getChartConfigurationSettings$=F(()=>this.actions$.pipe(I(n.getChartConfigurationSettings),b(o=>this.apiClient.serviceCall(new w(o.chartTypes)).pipe(P(m=>n.getChartConfigurationSettingsSuccess({settings:m})),j(m=>x(n.getChartConfigurationSettingsFailure({error:m})))))))}};t.\u0275fac=function(i){return new(i||t)(s(T),s(D))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var gt={pruningProgress:[],machineUnlearningProgress:void 0,quantizationProgress:void 0,settings:{},error:null},Xt=y(gt,l(n.getCurrentPruningChartDataSuccess,(e,{pruningProgress:t})=>p(u({},e),{pruningProgress:t,machineUnlearningProgress:void 0,quantizationProgress:void 0,error:null})),l(n.getCurrentPruningChartDataFailure,(e,{error:t})=>p(u({},e),{pruningProgress:[],error:t})),l(n.getCurrentQuantizationChartDataSuccess,(e,{quantizationProgress:t})=>p(u({},e),{pruningProgress:[],quantizationProgress:t,machineUnlearningProgress:void 0,error:null})),l(n.getCurrentQuantizationChartDataFailure,(e,{error:t})=>p(u({},e),{quantizationProgress:void 0,error:t})),l(n.getCurrentMachineUnlearningChartDataSuccess,(e,{machineUnlearningProgress:t})=>p(u({},e),{pruningProgress:[],quantizationProgress:void 0,machineUnlearningProgress:t,error:null})),l(n.getCurrentQuantizationChartDataFailure,(e,{error:t})=>p(u({},e),{quantizationProgress:void 0,error:t})),l(n.getCurrentPruningChartDataFailure,(e,{error:t})=>p(u({},e),{pruningProgress:[],error:t})),l(n.getChartConfigurationSettingsSuccess,(e,{settings:t})=>p(u({},e),{settings:u(u({},e.settings),t),error:null})),l(n.getChartConfigurationSettingsFailure,(e,{error:t})=>p(u({},e),{error:t})));var _=f(h,e=>e.charts.pruningProgress),tt=f(h,e=>e.charts.quantizationProgress),et=f(h,e=>e.charts.machineUnlearningProgress),rt=f(h,e=>e.charts.settings);var oe=(()=>{let t=class t{constructor(r){this.store=r,this.pruningProgress=this.store.select(_),this.quantizationProgress$=this.store.select(tt),this.machineUnlearningProgress$=this.store.select(et),this.settings$=this.store.select(rt)}dispatch(r){this.store.dispatch(r)}};t.\u0275fac=function(i){return new(i||t)(s(g))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var it=A({source:"[Core -> File]",events:{"Upload File":c(),"Upload File Success":c(),"Upload File Failure":c(),"Upload File and Call Script":c()}});var st=(()=>{let t=class t{constructor(r){this.store=r}dispatch(r){this.store.dispatch(r)}};t.\u0275fac=function(i){return new(i||t)(s(g))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var le=(()=>{let t=class t{constructor(r,i){this.bannerService=r,this.fileFacadeService=i,this._fileSubject=new L(null)}get isFileLoaded(){return!!this._fileSubject.value}get file$(){return this._fileSubject.asObservable()}set file(r){this._fileSubject.next(r)}get file(){return this._fileSubject.value}clearFile(){this._fileSubject.next(null)}uploadFile(){if(!this.file){this.bannerService.showError("No file to upload.");return}this.fileFacadeService.dispatch(it.uploadFile({file:this.file}))}};t.\u0275fac=function(i){return new(i||t)(s(Z),s(st))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var Ce=(()=>{let t=class t{constructor(r){this.router=r,this.history=[]}trackNavigationHistory(){this.addInitialUrl(),this.router.events.pipe(B(r=>r instanceof Q)).subscribe(r=>{this.history.push(r.urlAfterRedirects)})}addInitialUrl(){let r=this.router.url;this.history.push(r)}goToPreviousPage(r=H.MODEL_COMPRESSION.ROOT){let i=this.getPreviousUrl();i==="/"?this.router.navigateByUrl(`/${r}`):this.router.navigateByUrl(i)}getPreviousUrl(){return this.history[this.history.length-2]||"/"}};t.\u0275fac=function(i){return new(i||t)(s(q))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var ot=f(h,e=>e.parameters);var Fe=(()=>{let t=class t{constructor(r){this.store=r,this.parameters$=this.store.select(ot)}dispatch(r){this.store.dispatch(r)}};t.\u0275fac=function(i){return new(i||t)(s(g))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var nt=f(h,e=>e.statistics.statistics);var at=(()=>{let t=class t{constructor(r){this.store=r,this.statistics$=this.store.select(nt)}dispatch(r){this.store.dispatch(r)}};t.\u0275fac=function(i){return new(i||t)(s(g))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var ct=f(h,e=>e.terminal.messages);var Re=(()=>{let t=class t{constructor(r){this.store=r,this.messages$=this.store.select(ct)}dispatch(r){this.store.dispatch(r)}};t.\u0275fac=function(i){return new(i||t)(s(g))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var d=A({source:"[Core -> Statistics]",events:{"Get Statistics":U(),"Get Statistics Success":c(),"Get Statistics Failure":c(),"Update Statistics":c()}});var M=class extends S{constructor(){super("statistics",void 0,void 0,!1)}};var qe=(()=>{let t=class t{constructor(r,i){this.apiClient=r,this.actions$=i,this.getStatistics=F(()=>this.actions$.pipe(I(d.getStatistics),b(()=>this.apiClient.serviceCall(new M).pipe(P(o=>d.getStatisticsSuccess({statistics:o})),j(o=>x(d.getStatisticsFailure({error:o})))))))}};t.\u0275fac=function(i){return new(i||t)(s(T),s(D))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();var dt={statistics:{},error:null},Ve=y(dt,l(d.getStatisticsSuccess,(e,{statistics:t})=>p(u({},e),{statistics:t,error:null})),l(d.getStatisticsFailure,(e,{error:t})=>p(u({},e),{error:t})),l(d.updateStatistics,(e,{statistics:t})=>p(u({},e),{statistics:t,error:null})));var E=function(e){return e.TERMINAL="terminal",e.SCRIPT_STATUS="script_status",e.STATISTICS="statistics",e.CHARTS_PREFIX="chart_",e}(E||{}),xt=function(e){return e.UPDATE_TESTING="chart_updateTesting",e.UPDATE_LATEST_VALUE="chart_updateLatestValue",e.ENHANCE_SINGLE_PHASE_X_AXIS="chart_enhanceSinglePhaseXAxis",e}(xt||{});var fr=(()=>{let t=class t{handleBeforeUnload(){this.close()}constructor(r,i){this.scriptFacadeService=r,this.statisticsFacadeService=i,this.terminalMessagesSubject=new $,this.chartsMessagesSubject=new $,this.connect()}connect(){this.close(),this.socket=new WebSocket(X.websocketUrl),this.socket.onopen=()=>{console.log("WebSocket connected!")},this.socket.onmessage=r=>z(this,null,function*(){let i=JSON.parse(r.data),{topic:o="",data:m}=i;switch(o){case E.TERMINAL:this.terminalMessagesSubject.next(m);break;case E.SCRIPT_STATUS:this.scriptFacadeService.dispatch(K.updateScriptStatus({status:m}));break;case E.STATISTICS:let{statistics:pt}=m||{};this.statisticsFacadeService.dispatch(d.updateStatistics({statistics:pt}));break;default:o.startsWith(E.CHARTS_PREFIX)?this.chartsMessagesSubject.next({topic:o,data:m}):console.warn("Unknown message type:",o)}}),this.socket.onerror=r=>{console.error("WebSocket Error:",r)},this.socket.onclose=r=>{r.wasClean?console.log(`Closed cleanly, code=${r.code}, reason=${r.reason}`):console.error("Connection died"),O(5e3).subscribe(()=>this.connect())}}get terminalMessages$(){return this.terminalMessagesSubject.asObservable()}get chartsMessages$(){return this.chartsMessagesSubject.asObservable()}send(r){this.socket&&this.socket.readyState===this.socket.OPEN&&this.socket.send(r)}close(){this.socket&&this.socket.readyState!==this.socket.CLOSED&&this.socket.close()}};t.\u0275fac=function(i){return new(i||t)(s(V),s(at))},t.\u0275prov=a({token:t,factory:t.\u0275fac});let e=t;return e})();export{Z as a,n as b,Bt as c,Xt as d,oe as e,st as f,it as g,le as h,Ce as i,Fe as j,at as k,Re as l,d as m,qe as n,Ve as o,xt as p,fr as q}; diff --git a/frontend/server/modelsmith-build/browser/chunk-NPZHNGVX.js b/frontend/server/modelsmith-build/browser/chunk-NPZHNGVX.js new file mode 100644 index 00000000..25e4eab9 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-NPZHNGVX.js @@ -0,0 +1,11 @@ +var W0=Object.create;var ml=Object.defineProperty,q0=Object.defineProperties,Z0=Object.getOwnPropertyDescriptor,Y0=Object.getOwnPropertyDescriptors,K0=Object.getOwnPropertyNames,Vs=Object.getOwnPropertySymbols,Q0=Object.getPrototypeOf,gl=Object.prototype.hasOwnProperty,Vm=Object.prototype.propertyIsEnumerable;var jm=(t,e,r)=>e in t?ml(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,b=(t,e)=>{for(var r in e||={})gl.call(e,r)&&jm(t,r,e[r]);if(Vs)for(var r of Vs(e))Vm.call(e,r)&&jm(t,r,e[r]);return t},O=(t,e)=>q0(t,Y0(e));var Um=(t,e)=>{var r={};for(var n in t)gl.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&Vs)for(var n of Vs(t))e.indexOf(n)<0&&Vm.call(t,n)&&(r[n]=t[n]);return r};var SL=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var X0=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of K0(e))!gl.call(t,i)&&i!==r&&ml(t,i,{get:()=>e[i],enumerable:!(n=Z0(e,i))||n.enumerable});return t};var TL=(t,e,r)=>(r=t!=null?W0(Q0(t)):{},X0(e||!t||!t.__esModule?ml(r,"default",{value:t,enumerable:!0}):r,t));var Vr=(t,e,r)=>new Promise((n,i)=>{var o=c=>{try{a(r.next(c))}catch(u){i(u)}},s=c=>{try{a(r.throw(c))}catch(u){i(u)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,s);a((r=r.apply(t,e)).next())});function Bm(t,e){return Object.is(t,e)}var me=null,Xi=!1,Us=1,Bt=Symbol("SIGNAL");function $(t){let e=me;return me=t,e}function $m(){return me}function J0(){return Xi}var Ur={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Dl(t){if(Xi)throw new Error("");if(me===null)return;me.consumerOnSignalRead(t);let e=me.nextProducerIndex++;if(Ws(me),et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Hs(t){Ws(t);for(let e=0;e0}function Ws(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Zm(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Ym(t){return t.producerNode!==void 0}function Km(t){let e=Object.create(tI);e.computation=t;let r=()=>{if(Hm(e),Dl(e),e.value===Bs)throw e.error;return e.value};return r[Bt]=e,r}var vl=Symbol("UNSET"),bl=Symbol("COMPUTING"),Bs=Symbol("ERRORED"),tI=O(b({},Ur),{value:vl,dirty:!0,error:null,equal:Bm,producerMustRecompute(t){return t.value===vl||t.value===bl},producerRecomputeValue(t){if(t.value===bl)throw new Error("Detected cycle in computations.");let e=t.value;t.value=bl;let r=eo(t),n;try{n=t.computation()}catch(i){n=Bs,t.error=i}finally{$s(t,r)}if(e!==vl&&e!==Bs&&n!==Bs&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}});function nI(){throw new Error}var Qm=nI;function Xm(){Qm()}function Jm(t){Qm=t}var rI=null;function eg(t){let e=Object.create(ng);e.value=t;let r=()=>(Dl(e),e.value);return r[Bt]=e,r}function _l(t,e){Gm()||Xm(),t.equal(t.value,e)||(t.value=e,iI(t))}function tg(t,e){Gm()||Xm(),_l(t,e(t.value))}var ng=O(b({},Ur),{equal:Bm,value:void 0});function iI(t){t.version++,eI(),zm(t),rI?.()}function rg(t,e,r){let n=Object.create(oI);r&&(n.consumerAllowSignalWrites=!0),n.fn=t,n.schedule=e;let i=c=>{n.cleanupFn=c};function o(c){return c.fn===null&&c.schedule===null}function s(c){o(c)||(zs(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=yl)}let a=()=>{if(n.fn===null)return;if(J0())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(n.dirty=!1,n.hasRun&&!Hs(n))return;n.hasRun=!0;let c=eo(n);try{n.cleanupFn(),n.cleanupFn=yl,n.fn(i)}finally{$s(n,c)}};return n.ref={notify:()=>Wm(n),run:a,cleanup:()=>n.cleanupFn(),destroy:()=>s(n),[Bt]:n},n.ref}var yl=()=>{},oI=O(b({},Ur),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule!==null&&t.schedule(t.ref)},hasRun:!1,cleanupFn:yl});function T(t){return typeof t=="function"}function Fn(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var qs=Fn(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: +${r.map((n,i)=>`${i+1}) ${n.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=r});function ar(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var ae=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let o of r)o.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(T(n))try{n()}catch(o){e=o instanceof qs?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{ig(o)}catch(s){e=e??[],s instanceof qs?e=[...e,...s.errors]:e.push(s)}}if(e)throw new qs(e)}}add(e){var r;if(e&&e!==this)if(this.closed)ig(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&ar(r,e)}remove(e){let{_finalizers:r}=this;r&&ar(r,e),e instanceof t&&e._removeParent(this)}};ae.EMPTY=(()=>{let t=new ae;return t.closed=!0,t})();var wl=ae.EMPTY;function Zs(t){return t instanceof ae||t&&"closed"in t&&T(t.remove)&&T(t.add)&&T(t.unsubscribe)}function ig(t){T(t)?t():t.unsubscribe()}var St={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Br={setTimeout(t,e,...r){let{delegate:n}=Br;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=Br;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Ys(t){Br.setTimeout(()=>{let{onUnhandledError:e}=St;if(e)e(t);else throw t})}function dn(){}var og=El("C",void 0,void 0);function sg(t){return El("E",void 0,t)}function ag(t){return El("N",t,void 0)}function El(t,e,r){return{kind:t,value:e,error:r}}var cr=null;function $r(t){if(St.useDeprecatedSynchronousErrorHandling){let e=!cr;if(e&&(cr={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=cr;if(cr=null,r)throw n}}else t()}function cg(t){St.useDeprecatedSynchronousErrorHandling&&cr&&(cr.errorThrown=!0,cr.error=t)}var ur=class extends ae{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Zs(e)&&e.add(this)):this.destination=cI}static create(e,r,n){return new Tt(e,r,n)}next(e){this.isStopped?Cl(ag(e),this):this._next(e)}error(e){this.isStopped?Cl(sg(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Cl(og,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},sI=Function.prototype.bind;function Il(t,e){return sI.call(t,e)}var xl=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){Ks(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){Ks(n)}else Ks(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){Ks(r)}}},Tt=class extends ur{constructor(e,r,n){super();let i;if(T(e)||!e)i={next:e??void 0,error:r??void 0,complete:n??void 0};else{let o;this&&St.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&Il(e.next,o),error:e.error&&Il(e.error,o),complete:e.complete&&Il(e.complete,o)}):i=e}this.destination=new xl(i)}};function Ks(t){St.useDeprecatedSynchronousErrorHandling?cg(t):Ys(t)}function aI(t){throw t}function Cl(t,e){let{onStoppedNotification:r}=St;r&&Br.setTimeout(()=>r(t,e))}var cI={closed:!0,next:dn,error:aI,complete:dn};var Hr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ce(t){return t}function Ml(...t){return Sl(t)}function Sl(t){return t.length===0?Ce:t.length===1?t[0]:function(r){return t.reduce((n,i)=>i(n),r)}}var N=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,i){let o=lI(r)?r:new Tt(r,n,i);return $r(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=ug(n),new n((i,o)=>{let s=new Tt({next:a=>{try{r(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[Hr](){return this}pipe(...r){return Sl(r)(this)}toPromise(r){return r=ug(r),new r((n,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>n(o))})}}return t.create=e=>new t(e),t})();function ug(t){var e;return(e=t??St.Promise)!==null&&e!==void 0?e:Promise}function uI(t){return t&&T(t.next)&&T(t.error)&&T(t.complete)}function lI(t){return t&&t instanceof ur||uI(t)&&Zs(t)}function Tl(t){return T(t?.lift)}function S(t){return e=>{if(Tl(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function M(t,e,r,n,i){return new to(t,e,r,n,i)}var to=class extends ur{constructor(e,r,n,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(c){e.error(c)}}:super._next,this._error=i?function(a){try{i(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function zr(){return S((t,e)=>{let r=null;t._refCount++;let n=M(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let i=t._connection,o=r;r=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var Gr=class extends N{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,Tl(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new ae;let r=this.getSubject();e.add(this.source.subscribe(M(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=ae.EMPTY)}return e}refCount(){return zr()(this)}};var lg=Fn(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var B=(()=>{class t extends N{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new Qs(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new lg}next(r){$r(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){$r(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){$r(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:i,observers:o}=this;return n||i?wl:(this.currentObservers=null,o.push(r),new ae(()=>{this.currentObservers=null,ar(o,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:i,isStopped:o}=this;n?r.error(i):o&&r.complete()}asObservable(){let r=new N;return r.source=this,r}}return t.create=(e,r)=>new Qs(e,r),t})(),Qs=class extends B{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:wl}};var de=class extends B{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var no={now(){return(no.delegate||Date).now()},delegate:void 0};var ro=class extends B{constructor(e=1/0,r=1/0,n=no){super(),this._bufferSize=e,this._windowTime=r,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=r===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,r)}next(e){let{isStopped:r,_buffer:n,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;r||(n.push(e),!i&&n.push(o.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let r=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:i}=this,o=i.slice();for(let s=0;sdg(e)&&t()),e},clearImmediate(t){dg(t)}};var{setImmediate:fI,clearImmediate:hI}=fg,oo={setImmediate(...t){let{delegate:e}=oo;return(e?.setImmediate||fI)(...t)},clearImmediate(t){let{delegate:e}=oo;return(e?.clearImmediate||hI)(t)},delegate:void 0};var Js=class extends kn{constructor(e,r){super(e,r),this.scheduler=e,this.work=r}requestAsyncId(e,r,n=0){return n!==null&&n>0?super.requestAsyncId(e,r,n):(e.actions.push(this),e._scheduled||(e._scheduled=oo.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,r,n=0){var i;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(e,r,n);let{actions:o}=e;r!=null&&((i=o[o.length-1])===null||i===void 0?void 0:i.id)!==r&&(oo.clearImmediate(r),e._scheduled===r&&(e._scheduled=void 0))}};var Wr=class t{constructor(e,r=t.now){this.schedulerActionCtor=e,this.now=r}schedule(e,r=0,n){return new this.schedulerActionCtor(this,e).schedule(n,r)}};Wr.now=no.now;var Pn=class extends Wr{constructor(e,r=Wr.now){super(e,r),this.actions=[],this._active=!1}flush(e){let{actions:r}=this;if(this._active){r.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,n){for(;e=r.shift();)e.unsubscribe();throw n}}};var ea=class extends Pn{flush(e){this._active=!0;let r=this._scheduled;this._scheduled=void 0;let{actions:n}=this,i;e=e||n.shift();do if(i=e.execute(e.state,e.delay))break;while((e=n[0])&&e.id===r&&n.shift());if(this._active=!1,i){for(;(e=n[0])&&e.id===r&&n.shift();)e.unsubscribe();throw i}}};var pI=new ea(Js);var fn=new Pn(kn),hg=fn;var ta=class extends kn{constructor(e,r){super(e,r),this.scheduler=e,this.work=r}schedule(e,r=0){return r>0?super.schedule(e,r):(this.delay=r,this.state=e,this.scheduler.flush(this),this)}execute(e,r){return r>0||this.closed?super.execute(e,r):this._execute(e,r)}requestAsyncId(e,r,n=0){return n!=null&&n>0||n==null&&this.delay>0?super.requestAsyncId(e,r,n):(e.flush(this),0)}};var na=class extends Pn{};var Rl=new na(ta);var xe=new N(t=>t.complete());function ra(t){return t&&T(t.schedule)}function Ol(t){return t[t.length-1]}function qr(t){return T(Ol(t))?t.pop():void 0}function $t(t){return ra(Ol(t))?t.pop():void 0}function pg(t,e){return typeof Ol(t)=="number"?t.pop():e}function AV(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o}function gg(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(l){try{u(n.next(l))}catch(d){s(d)}}function c(l){try{u(n.throw(l))}catch(d){s(d)}}function u(l){l.done?o(l.value):i(l.value).then(a,c)}u((n=n.apply(t,e||[])).next())})}function mg(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function lr(t){return this instanceof lr?(this.v=t,this):new lr(t)}function vg(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(f){n[f]&&(i[f]=function(h){return new Promise(function(m,_){o.push([f,h,m,_])>1||a(f,h)})})}function a(f,h){try{c(n[f](h))}catch(m){d(o[0][3],m)}}function c(f){f.value instanceof lr?Promise.resolve(f.value.v).then(u,l):d(o[0][2],f)}function u(f){a("next",f)}function l(f){a("throw",f)}function d(f,h){f(h),o.shift(),o.length&&a(o[0][0],o[0][1])}}function bg(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof mg=="function"?mg(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(s){return new Promise(function(a,c){s=t[o](s),i(a,c,s.done,s.value)})}}function i(o,s,a,c){Promise.resolve(c).then(function(u){o({value:u,done:a})},s)}}var Zr=t=>t&&typeof t.length=="number"&&typeof t!="function";function ia(t){return T(t?.then)}function oa(t){return T(t[Hr])}function sa(t){return Symbol.asyncIterator&&T(t?.[Symbol.asyncIterator])}function aa(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function mI(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ca=mI();function ua(t){return T(t?.[ca])}function la(t){return vg(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:i}=yield lr(r.read());if(i)return yield lr(void 0);yield yield lr(n)}}finally{r.releaseLock()}})}function da(t){return T(t?.getReader)}function V(t){if(t instanceof N)return t;if(t!=null){if(oa(t))return gI(t);if(Zr(t))return vI(t);if(ia(t))return bI(t);if(sa(t))return yg(t);if(ua(t))return yI(t);if(da(t))return DI(t)}throw aa(t)}function gI(t){return new N(e=>{let r=t[Hr]();if(T(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function vI(t){return new N(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,Ys)})}function yI(t){return new N(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function yg(t){return new N(e=>{_I(t,e).catch(r=>e.error(r))})}function DI(t){return yg(la(t))}function _I(t,e){var r,n,i,o;return gg(this,void 0,void 0,function*(){try{for(r=bg(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){i={error:s}}finally{try{n&&!n.done&&(o=r.return)&&(yield o.call(r))}finally{if(i)throw i.error}}e.complete()})}function Ne(t,e,r,n=0,i=!1){let o=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}function dr(t,e=0){return S((r,n)=>{r.subscribe(M(n,i=>Ne(n,t,()=>n.next(i),e),()=>Ne(n,t,()=>n.complete(),e),i=>Ne(n,t,()=>n.error(i),e)))})}function fa(t,e=0){return S((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function Dg(t,e){return V(t).pipe(fa(e),dr(e))}function _g(t,e){return V(t).pipe(fa(e),dr(e))}function wg(t,e){return new N(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function Eg(t,e){return new N(r=>{let n;return Ne(r,e,()=>{n=t[ca](),Ne(r,e,()=>{let i,o;try{({value:i,done:o}=n.next())}catch(s){r.error(s);return}o?r.complete():r.next(i)},0,!0)}),()=>T(n?.return)&&n.return()})}function ha(t,e){if(!t)throw new Error("Iterable cannot be null");return new N(r=>{Ne(r,e,()=>{let n=t[Symbol.asyncIterator]();Ne(r,e,()=>{n.next().then(i=>{i.done?r.complete():r.next(i.value)})},0,!0)})})}function Ig(t,e){return ha(la(t),e)}function Cg(t,e){if(t!=null){if(oa(t))return Dg(t,e);if(Zr(t))return wg(t,e);if(ia(t))return _g(t,e);if(sa(t))return ha(t,e);if(ua(t))return Eg(t,e);if(da(t))return Ig(t,e)}throw aa(t)}function re(t,e){return e?Cg(t,e):V(t)}function x(...t){let e=$t(t);return re(t,e)}function Ht(t,e){let r=T(t)?t:()=>t,n=i=>i.error(r());return new N(e?i=>e.schedule(n,0,i):n)}var Ln=class t{constructor(e,r,n){this.kind=e,this.value=r,this.error=n,this.hasValue=e==="N"}observe(e){return Fl(this,e)}do(e,r,n){let{kind:i,value:o,error:s}=this;return i==="N"?e?.(o):i==="E"?r?.(s):n?.()}accept(e,r,n){var i;return T((i=e)===null||i===void 0?void 0:i.next)?this.observe(e):this.do(e,r,n)}toObservable(){let{kind:e,value:r,error:n}=this,i=e==="N"?x(r):e==="E"?Ht(()=>n):e==="C"?xe:0;if(!i)throw new TypeError(`Unexpected notification kind ${e}`);return i}static createNext(e){return new t("N",e)}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}};Ln.completeNotification=new Ln("C");function Fl(t,e){var r,n,i;let{kind:o,value:s,error:a}=t;if(typeof o!="string")throw new TypeError('Invalid notification, missing "kind"');o==="N"?(r=e.next)===null||r===void 0||r.call(e,s):o==="E"?(n=e.error)===null||n===void 0||n.call(e,a):(i=e.complete)===null||i===void 0||i.call(e)}function kl(t){return!!t&&(t instanceof N||T(t.lift)&&T(t.subscribe))}var At=Fn(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function wI(t,e){let r=typeof e=="object";return new Promise((n,i)=>{let o=new Tt({next:s=>{n(s),o.unsubscribe()},error:i,complete:()=>{r?n(e.defaultValue):i(new At)}});t.subscribe(o)})}function pa(t){return t instanceof Date&&!isNaN(t)}var EI=Fn(t=>function(r=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=r});function II(t,e){let{first:r,each:n,with:i=CI,scheduler:o=e??fn,meta:s=null}=pa(t)?{first:t}:typeof t=="number"?{each:t}:t;if(r==null&&n==null)throw new TypeError("No timeout provided.");return S((a,c)=>{let u,l,d=null,f=0,h=m=>{l=Ne(c,o,()=>{try{u.unsubscribe(),V(i({meta:s,lastValue:d,seen:f})).subscribe(c)}catch(_){c.error(_)}},m)};u=a.subscribe(M(c,m=>{l?.unsubscribe(),f++,c.next(d=m),n>0&&h(n)},void 0,void 0,()=>{l?.closed||l?.unsubscribe(),d=null})),!f&&h(r!=null?typeof r=="number"?r:+r-o.now():n)})}function CI(t){throw new EI(t)}function C(t,e){return S((r,n)=>{let i=0;r.subscribe(M(n,o=>{n.next(t.call(e,o,i++))}))})}var{isArray:xI}=Array;function MI(t,e){return xI(e)?t(...e):t(e)}function Yr(t){return C(e=>MI(t,e))}var{isArray:SI}=Array,{getPrototypeOf:TI,prototype:AI,keys:NI}=Object;function ma(t){if(t.length===1){let e=t[0];if(SI(e))return{args:e,keys:null};if(RI(e)){let r=NI(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function RI(t){return t&&typeof t=="object"&&TI(t)===AI}function ga(t,e){return t.reduce((r,n,i)=>(r[n]=e[i],r),{})}function fr(...t){let e=$t(t),r=qr(t),{args:n,keys:i}=ma(t);if(n.length===0)return re([],e);let o=new N(OI(n,e,i?s=>ga(i,s):Ce));return r?o.pipe(Yr(r)):o}function OI(t,e,r=Ce){return n=>{xg(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let c=0;c{let u=re(t[c],e),l=!1;u.subscribe(M(n,d=>{o[c]=d,l||(l=!0,a--),a||n.next(r(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function xg(t,e,r){t?Ne(r,t,e):e()}function Mg(t,e,r,n,i,o,s,a){let c=[],u=0,l=0,d=!1,f=()=>{d&&!c.length&&!u&&e.complete()},h=_=>u{o&&e.next(_),u++;let w=!1;V(r(_,l++)).subscribe(M(e,E=>{i?.(E),o?h(E):e.next(E)},()=>{w=!0},void 0,()=>{if(w)try{for(u--;c.length&&um(E)):m(E)}f()}catch(E){e.error(E)}}))};return t.subscribe(M(e,h,()=>{d=!0,f()})),()=>{a?.()}}function Q(t,e,r=1/0){return T(e)?Q((n,i)=>C((o,s)=>e(n,o,i,s))(V(t(n,i))),r):(typeof e=="number"&&(r=e),S((n,i)=>Mg(n,i,t,r)))}function zt(t=1/0){return Q(Ce,t)}function Sg(){return zt(1)}function Gt(...t){return Sg()(re(t,$t(t)))}function so(t){return new N(e=>{V(t()).subscribe(e)})}function ao(...t){let e=qr(t),{args:r,keys:n}=ma(t),i=new N(o=>{let{length:s}=r;if(!s){o.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l{d||(d=!0,u--),a[l]=f},()=>c--,void 0,()=>{(!c||!d)&&(u||o.next(n?ga(n,a):a),o.complete())}))}});return e?i.pipe(Yr(e)):i}var FI=["addListener","removeListener"],kI=["addEventListener","removeEventListener"],PI=["on","off"];function Pl(t,e,r,n){if(T(r)&&(n=r,r=void 0),n)return Pl(t,e,r).pipe(Yr(n));let[i,o]=VI(t)?kI.map(s=>a=>t[s](e,a,r)):LI(t)?FI.map(Tg(t,e)):jI(t)?PI.map(Tg(t,e)):[];if(!i&&Zr(t))return Q(s=>Pl(s,e,r))(V(t));if(!i)throw new TypeError("Invalid event target");return new N(s=>{let a=(...c)=>s.next(1o(a)})}function Tg(t,e){return r=>n=>t[r](e,n)}function LI(t){return T(t.addListener)&&T(t.removeListener)}function jI(t){return T(t.on)&&T(t.off)}function VI(t){return T(t.addEventListener)&&T(t.removeEventListener)}function co(t=0,e,r=hg){let n=-1;return e!=null&&(ra(e)?r=e:n=e),new N(i=>{let o=pa(t)?+t-r.now():t;o<0&&(o=0);let s=0;return r.schedule(function(){i.closed||(i.next(s++),0<=n?this.schedule(void 0,n):i.complete())},o)})}function va(...t){let e=$t(t),r=pg(t,1/0),n=t;return n.length?n.length===1?V(n[0]):zt(r)(re(n,e)):xe}function le(t,e){return S((r,n)=>{let i=0;r.subscribe(M(n,o=>t.call(e,o,i++)&&n.next(o)))})}function Ag(t){return S((e,r)=>{let n=!1,i=null,o=null,s=!1,a=()=>{if(o?.unsubscribe(),o=null,n){n=!1;let u=i;i=null,r.next(u)}s&&r.complete()},c=()=>{o=null,s&&r.complete()};e.subscribe(M(r,u=>{n=!0,i=u,o||V(t(u)).subscribe(o=M(r,a,c))},()=>{s=!0,(!n||!o||o.closed)&&r.complete()}))})}function UI(t,e=fn){return Ag(()=>co(t,e))}function Re(t){return S((e,r)=>{let n=null,i=!1,o;n=e.subscribe(M(r,void 0,void 0,s=>{o=V(t(s,Re(t)(e))),n?(n.unsubscribe(),n=null,o.subscribe(r)):i=!0})),i&&(n.unsubscribe(),n=null,o.subscribe(r))})}function Ng(t,e,r,n,i){return(o,s)=>{let a=r,c=e,u=0;o.subscribe(M(s,l=>{let d=u++;c=a?t(c,l,d):(a=!0,l),n&&s.next(c)},i&&(()=>{a&&s.next(c),s.complete()})))}}function Wt(t,e){return T(e)?Q(t,e,1):Q(t,1)}function Kr(t,e=fn){return S((r,n)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let u=o;o=null,n.next(u)}};function c(){let u=s+t,l=e.now();if(l{o=u,s=e.now(),i||(i=e.schedule(c,t),n.add(i))},()=>{a(),n.complete()},void 0,()=>{o=i=null}))})}function jn(t){return S((e,r)=>{let n=!1;e.subscribe(M(r,i=>{n=!0,r.next(i)},()=>{n||r.next(t),r.complete()}))})}function ge(t){return t<=0?()=>xe:S((e,r)=>{let n=0;e.subscribe(M(r,i=>{++n<=t&&(r.next(i),t<=n&&r.complete())}))})}function uo(){return S((t,e)=>{t.subscribe(M(e,dn))})}function lo(t){return C(()=>t)}function Ll(t,e){return e?r=>Gt(e.pipe(ge(1),uo()),r.pipe(Ll(t))):Q((r,n)=>V(t(r,n)).pipe(ge(1),lo(r)))}function Rg(t,e=fn){let r=co(t,e);return Ll(()=>r)}function jl(){return S((t,e)=>{t.subscribe(M(e,r=>Fl(r,e)))})}function Qr(t,e=Ce){return t=t??BI,S((r,n)=>{let i,o=!0;r.subscribe(M(n,s=>{let a=e(s);(o||!t(i,a))&&(o=!1,i=a,n.next(s))}))})}function BI(t,e){return t===e}function ba(t=$I){return S((e,r)=>{let n=!1;e.subscribe(M(r,i=>{n=!0,r.next(i)},()=>n?r.complete():r.error(t())))})}function $I(){return new At}function ya(t,e){return e?r=>r.pipe(ya((n,i)=>V(t(n,i)).pipe(C((o,s)=>e(n,o,i,s))))):S((r,n)=>{let i=0,o=null,s=!1;r.subscribe(M(n,a=>{o||(o=M(n,void 0,()=>{o=null,s&&n.complete()}),V(t(a,i++)).subscribe(o))},()=>{s=!0,!o&&n.complete()}))})}function ht(t){return S((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function Nt(t,e){let r=arguments.length>=2;return n=>n.pipe(t?le((i,o)=>t(i,o,n)):Ce,ge(1),r?jn(e):ba(()=>new At))}function Da(t,e,r,n){return S((i,o)=>{let s;!e||typeof e=="function"?s=e:{duration:r,element:s,connector:n}=e;let a=new Map,c=m=>{a.forEach(m),m(o)},u=m=>c(_=>_.error(m)),l=0,d=!1,f=new to(o,m=>{try{let _=t(m),w=a.get(_);if(!w){a.set(_,w=n?n():new B);let E=h(_,w);if(o.next(E),r){let k=M(w,()=>{w.complete(),k?.unsubscribe()},void 0,void 0,()=>a.delete(_));f.add(V(r(E)).subscribe(k))}}w.next(s?s(m):m)}catch(_){u(_)}},()=>c(m=>m.complete()),u,()=>a.clear(),()=>(d=!0,l===0));i.subscribe(f);function h(m,_){let w=new N(E=>{l++;let k=_.subscribe(E);return()=>{k.unsubscribe(),--l===0&&d&&f.unsubscribe()}});return w.key=m,w}})}function Xr(t){return t<=0?()=>xe:S((e,r)=>{let n=[];e.subscribe(M(r,i=>{n.push(i),t{for(let i of n)r.next(i);r.complete()},void 0,()=>{n=null}))})}function Vl(t,e){let r=arguments.length>=2;return n=>n.pipe(t?le((i,o)=>t(i,o,n)):Ce,Xr(1),r?jn(e):ba(()=>new At))}function Ul(){return S((t,e)=>{t.subscribe(M(e,r=>{e.next(Ln.createNext(r))},()=>{e.next(Ln.createComplete()),e.complete()},r=>{e.next(Ln.createError(r)),e.complete()}))})}function Bl(...t){let e=t.length;if(e===0)throw new Error("list of properties cannot be empty.");return C(r=>{let n=r;for(let i=0;i=2,!0))}function ho(t={}){let{connector:e=()=>new B,resetOnError:r=!0,resetOnComplete:n=!0,resetOnRefCountZero:i=!0}=t;return o=>{let s,a,c,u=0,l=!1,d=!1,f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=c=void 0,l=d=!1},m=()=>{let _=s;h(),_?.unsubscribe()};return S((_,w)=>{u++,!d&&!l&&f();let E=c=c??e();w.add(()=>{u--,u===0&&!d&&!l&&(a=$l(m,i))}),E.subscribe(w),!s&&u>0&&(s=new Tt({next:k=>E.next(k),error:k=>{d=!0,f(),a=$l(h,r,k),E.error(k)},complete:()=>{l=!0,f(),a=$l(h,n),E.complete()}}),V(_).subscribe(s))})(o)}}function $l(t,e,...r){if(e===!0){t();return}if(e===!1)return;let n=new Tt({next:()=>{n.unsubscribe(),t()}});return V(e(...r)).subscribe(n)}function HI(t,e,r){let n,i=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:e=1/0,refCount:i=!1,scheduler:r}=t:n=t??1/0,ho({connector:()=>new ro(n,e,r),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function Jr(t){return le((e,r)=>t<=r)}function po(...t){let e=$t(t);return S((r,n)=>{(e?Gt(t,r,e):Gt(t,r)).subscribe(n)})}function Ve(t,e){return S((r,n)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&n.complete();r.subscribe(M(n,c=>{i?.unsubscribe();let u=0,l=o++;V(t(c,l)).subscribe(i=M(n,d=>n.next(e?e(c,d,l,u++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Vn(t){return S((e,r)=>{V(t).subscribe(M(r,()=>r.complete(),dn)),!r.closed&&e.subscribe(r)})}function zI(t,e=!1){return S((r,n)=>{let i=0;r.subscribe(M(n,o=>{let s=t(o,i++);(s||e)&&n.next(o),!s&&n.complete()}))})}function ee(t,e,r){let n=T(t)||e||r?{next:t,error:e,complete:r}:t;return n?S((i,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;i.subscribe(M(o,c=>{var u;(u=n.next)===null||u===void 0||u.call(n,c),o.next(c)},()=>{var c;a=!1,(c=n.complete)===null||c===void 0||c.call(n),o.complete()},c=>{var u;a=!1,(u=n.error)===null||u===void 0||u.call(n,c),o.error(c)},()=>{var c,u;a&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):Ce}function mo(...t){let e=qr(t);return S((r,n)=>{let i=t.length,o=new Array(i),s=t.map(()=>!1),a=!1;for(let c=0;c{o[c]=u,!a&&!s[c]&&(s[c]=!0,(a=s.every(Ce))&&(s=null))},dn));r.subscribe(M(n,c=>{if(a){let u=[c,...o];n.next(e?e(...u):u)}}))})}var xv="https://g.co/ng/security#xss",I=class extends Error{constructor(e,r){super(lc(e,r)),this.code=e}};function lc(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function xo(t){return{toString:t}.toString()}var _a="__parameters__";function GI(t){return function(...r){if(t){let n=t(...r);for(let i in n)this[i]=n[i]}}}function Ef(t,e,r){return xo(()=>{let n=GI(e);function i(...o){if(this instanceof i)return n.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(_a)?c[_a]:Object.defineProperty(c,_a,{value:[]})[_a];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return r&&(i.prototype=Object.create(r.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}var ye=globalThis;function ie(t){for(let e in t)if(t[e]===ie)return e;throw Error("Could not find renamed property on target object.")}function WI(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function $e(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map($e).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(` +`);return r===-1?e:e.substring(0,r)}function ad(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var qI=ie({__forward_ref__:ie});function kt(t){return t.__forward_ref__=kt,t.toString=function(){return $e(this())},t}function Ue(t){return Mv(t)?t():t}function Mv(t){return typeof t=="function"&&t.hasOwnProperty(qI)&&t.__forward_ref__===kt}function D(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function H(t){return{providers:t.providers||[],imports:t.imports||[]}}function dc(t){return Og(t,Tv)||Og(t,Av)}function Sv(t){return dc(t)!==null}function Og(t,e){return t.hasOwnProperty(e)?t[e]:null}function ZI(t){let e=t&&(t[Tv]||t[Av]);return e||null}function Fg(t){return t&&(t.hasOwnProperty(kg)||t.hasOwnProperty(YI))?t[kg]:null}var Tv=ie({\u0275prov:ie}),kg=ie({\u0275inj:ie}),Av=ie({ngInjectableDef:ie}),YI=ie({ngInjectorDef:ie}),v=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=D({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Nv(t){return t&&!!t.\u0275providers}var KI=ie({\u0275cmp:ie}),QI=ie({\u0275dir:ie}),XI=ie({\u0275pipe:ie}),JI=ie({\u0275mod:ie}),Pa=ie({\u0275fac:ie}),go=ie({__NG_ELEMENT_ID__:ie}),Pg=ie({__NG_ENV_ID__:ie});function fc(t){return typeof t=="string"?t:t==null?"":String(t)}function eC(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():fc(t)}function tC(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new I(-200,t)}function If(t,e){throw new I(-201,!1)}var U=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(U||{}),cd;function Rv(){return cd}function qe(t){let e=cd;return cd=t,e}function Ov(t,e,r){let n=dc(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&U.Optional)return null;if(e!==void 0)return e;If(t,"Injector")}var nC={},vo=nC,ud="__NG_DI_FLAG__",La="ngTempTokenPath",rC="ngTokenPath",iC=/\n/gm,oC="\u0275",Lg="__source",ii;function sC(){return ii}function Un(t){let e=ii;return ii=t,e}function aC(t,e=U.Default){if(ii===void 0)throw new I(-203,!1);return ii===null?Ov(t,void 0,e):ii.get(t,e&U.Optional?null:void 0,e)}function p(t,e=U.Default){return(Rv()||aC)(Ue(t),e)}function g(t,e=U.Default){return p(t,hc(e))}function hc(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function ld(t){let e=[];for(let r=0;r ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):$e(a)))}i=`{${o.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${t.replace(iC,` + `)}`}var xf=Cf(Ef("Inject",t=>({token:t})),-1),yi=Cf(Ef("Optional"),8);var Mo=Cf(Ef("SkipSelf"),4);function gr(t,e){let r=t.hasOwnProperty(Pa);return r?t[Pa]:null}function dC(t,e,r){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(r)?Mf(r,e):e(r))}function Fv(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function ja(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function hC(t,e){let r=[];for(let n=0;ne;){let o=i-2;t[i]=t[o],i--}t[e]=r,t[e+1]=n}}function So(t,e,r){let n=To(t,e);return n>=0?t[n|1]=r:(n=~n,pC(t,n,e,r)),n}function Hl(t,e){let r=To(t,e);if(r>=0)return t[r|1]}function To(t,e){return mC(t,e,1)}function mC(t,e,r){let n=0,i=t.length>>r;for(;i!==n;){let o=n+(i-n>>1),s=t[o<e?i=o:n=o+1}return~(i<e){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[l+1].toLowerCase(),n&2&&u!==d){if(Rt(n))return!1;s=!0}}}}return Rt(n)||s}function Rt(t){return(t&1)===0}function _C(t,e,r,n){if(e===null)return-1;let i=0;if(n||!r){let o=!1;for(;i-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?i+="."+s:n&4&&(i+=" "+s);else i!==""&&!Rt(s)&&(e+=Vg(o,i),i=""),n=s,o=o||!Rt(n);r++}return i!==""&&(e+=Vg(o,i)),e}function MC(t){return t.map(xC).join(",")}function SC(t){let e=[],r=[],n=1,i=2;for(;n{let e=Gv(t),r=O(b({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Lv.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Yt.Emulated,styles:t.styles||Oe,_:null,schemas:t.schemas||null,tView:null,id:""});Wv(r);let n=t.dependencies;return r.directiveDefs=Bg(n,!1),r.pipeDefs=Bg(n,!0),r.id=NC(r),r})}function TC(t){return Hn(t)||Bv(t)}function AC(t){return t!==null}function z(t){return xo(()=>({type:t.type,bootstrap:t.bootstrap||Oe,declarations:t.declarations||Oe,imports:t.imports||Oe,exports:t.exports||Oe,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Ug(t,e){if(t==null)return si;let r={};for(let n in t)if(t.hasOwnProperty(n)){let i=t[n],o,s,a=$n.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),e?(r[o]=a!==$n.None?[n,a]:n,e[o]=s):r[o]=n}return r}function G(t){return xo(()=>{let e=Gv(t);return Wv(e),e})}function pc(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function Hn(t){return t[KI]||null}function Bv(t){return t[QI]||null}function $v(t){return t[XI]||null}function Hv(t){let e=Hn(t)||Bv(t)||$v(t);return e!==null?e.standalone:!1}function zv(t,e){let r=t[JI]||null;if(!r&&e===!0)throw new Error(`Type ${$e(t)} does not have '\u0275mod' property.`);return r}function Gv(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||si,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Oe,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ug(t.inputs,e),outputs:Ug(t.outputs),debugInfo:null}}function Wv(t){t.features?.forEach(e=>e(t))}function Bg(t,e){if(!t)return null;let r=e?$v:TC;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(AC)}function NC(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let i of r)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function yn(t){return{\u0275providers:t}}function RC(...t){return{\u0275providers:qv(!0,t),\u0275fromNgModule:!0}}function qv(t,...e){let r=[],n=new Set,i,o=s=>{r.push(s)};return Mf(e,s=>{let a=s;fd(a,o,[],n)&&(i||=[],i.push(a))}),i!==void 0&&Zv(i,o),r}function Zv(t,e){for(let r=0;r{e(o,n)})}}function fd(t,e,r,n){if(t=Ue(t),!t)return!1;let i=null,o=Fg(t),s=!o&&Hn(t);if(!o&&!s){let c=t.ngModule;if(o=Fg(c),o)i=c;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=n.has(i);if(s){if(a)return!1;if(n.add(i),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)fd(u,e,r,n)}}else if(o){if(o.imports!=null&&!a){n.add(i);let u;try{Mf(o.imports,l=>{fd(l,e,r,n)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Zv(u,e)}if(!a){let u=gr(i)||(()=>new i);e({provide:i,useFactory:u,deps:Oe},i),e({provide:Pv,useValue:i,multi:!0},i),e({provide:hn,useValue:()=>p(i),multi:!0},i)}let c=o.providers;if(c!=null&&!a){let u=t;Tf(c,l=>{e(l,u)})}}else return!1;return i!==t&&t.providers!==void 0}function Tf(t,e){for(let r of t)Nv(r)&&(r=r.\u0275providers),Array.isArray(r)?Tf(r,e):e(r)}var OC=ie({provide:String,useValue:ie});function Yv(t){return t!==null&&typeof t=="object"&&OC in t}function FC(t){return!!(t&&t.useExisting)}function kC(t){return!!(t&&t.useFactory)}function ai(t){return typeof t=="function"}function PC(t){return!!t.useClass}var mc=new v(""),Ta={},LC={},zl;function Af(){return zl===void 0&&(zl=new Va),zl}var Fe=class{},yo=class extends Fe{get destroyed(){return this._destroyed}constructor(e,r,n,i){super(),this.parent=r,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,pd(e,s=>this.processProvider(s)),this.records.set(kv,ei(void 0,this)),i.has("environment")&&this.records.set(Fe,ei(void 0,this));let o=this.records.get(mc);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Pv,Oe,U.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=$(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of r)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),$(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=Un(this),n=qe(void 0),i;try{return e()}finally{Un(r),qe(n)}}get(e,r=vo,n=U.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Pg))return e[Pg](this);n=hc(n);let i,o=Un(this),s=qe(void 0);try{if(!(n&U.SkipSelf)){let c=this.records.get(e);if(c===void 0){let u=$C(e)&&dc(e);u&&this.injectableDefInScope(u)?c=ei(hd(e),Ta):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let a=n&U.Self?Af():this.parent;return r=n&U.Optional&&r===vo?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[La]=a[La]||[]).unshift($e(e)),o)throw a;return uC(a,e,"R3InjectorError",this.source)}else throw a}finally{qe(s),Un(o)}}resolveInjectorInitializers(){let e=$(null),r=Un(this),n=qe(void 0),i;try{let o=this.get(hn,Oe,U.Self);for(let s of o)s()}finally{Un(r),qe(n),$(e)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push($e(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new I(205,!1)}processProvider(e){e=Ue(e);let r=ai(e)?e:Ue(e&&e.provide),n=VC(e);if(!ai(e)&&e.multi===!0){let i=this.records.get(r);i||(i=ei(void 0,Ta,!0),i.factory=()=>ld(i.multi),this.records.set(r,i)),r=e,i.multi.push(e)}this.records.set(r,n)}hydrate(e,r){let n=$(null);try{return r.value===Ta&&(r.value=LC,r.value=r.factory()),typeof r.value=="object"&&r.value&&BC(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{$(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=Ue(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function hd(t){let e=dc(t),r=e!==null?e.factory:gr(t);if(r!==null)return r;if(t instanceof v)throw new I(204,!1);if(t instanceof Function)return jC(t);throw new I(204,!1)}function jC(t){if(t.length>0)throw new I(204,!1);let r=ZI(t);return r!==null?()=>r.factory(t):()=>new t}function VC(t){if(Yv(t))return ei(void 0,t.useValue);{let e=Kv(t);return ei(e,Ta)}}function Kv(t,e,r){let n;if(ai(t)){let i=Ue(t);return gr(i)||hd(i)}else if(Yv(t))n=()=>Ue(t.useValue);else if(kC(t))n=()=>t.useFactory(...ld(t.deps||[]));else if(FC(t))n=()=>p(Ue(t.useExisting));else{let i=Ue(t&&(t.useClass||t.provide));if(UC(t))n=()=>new i(...ld(t.deps));else return gr(i)||hd(i)}return n}function ei(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function UC(t){return!!t.deps}function BC(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function $C(t){return typeof t=="function"||typeof t=="object"&&t instanceof v}function pd(t,e){for(let r of t)Array.isArray(r)?pd(r,e):r&&Nv(r)?pd(r.\u0275providers,e):e(r)}function rt(t,e){t instanceof yo&&t.assertNotDestroyed();let r,n=Un(t),i=qe(void 0);try{return e()}finally{Un(n),qe(i)}}function Qv(){return Rv()!==void 0||sC()!=null}function Ao(t){if(!Qv())throw new I(-203,!1)}function HC(t){return typeof t=="function"}var Ze=0,A=1,F=2,Se=3,Ot=4,Ke=5,gt=6,Ua=7,De=8,ci=9,Kt=10,te=11,Do=12,$g=13,Di=14,He=15,vr=16,ti=17,pn=18,No=19,Xv=20,Bn=21,Aa=22,mt=23,oe=25,Nf=1,_o=6,mn=7,Ba=8,ui=9,Me=10,$a=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}($a||{});function Ft(t){return Array.isArray(t)&&typeof t[Nf]=="object"}function Jt(t){return Array.isArray(t)&&t[Nf]===!0}function Rf(t){return(t.flags&4)!==0}function Ro(t){return t.componentOffset>-1}function gc(t){return(t.flags&1)===1}function gn(t){return!!t.template}function Ha(t){return(t[F]&512)!==0}var md=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function Jv(t,e,r,n){e!==null?e.applyValueToInputSignal(e,n):t[r]=n}function it(){return eb}function eb(t){return t.type.prototype.ngOnChanges&&(t.setInput=GC),zC}it.ngInherit=!0;function zC(){let t=nb(this),e=t?.current;if(e){let r=t.previous;if(r===si)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function GC(t,e,r,n,i){let o=this.declaredInputs[n],s=nb(t)||WC(t,{previous:si,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[o];a[o]=new md(u&&u.currentValue,r,c===si),Jv(t,e,i,r)}var tb="__ngSimpleChanges__";function nb(t){return t[tb]||null}function WC(t,e){return t[tb]=e}var Hg=null;var qt=function(t,e,r){Hg?.(t,e,r)},rb="svg",qC="math";function Ye(t){for(;Array.isArray(t);)t=t[Ze];return t}function ZC(t){for(;Array.isArray(t);){if(typeof t[Nf]=="object")return t;t=t[Ze]}return null}function ib(t,e){return Ye(e[t])}function ot(t,e){return Ye(e[t.index])}function Of(t,e){return t.data[e]}function Ff(t,e){return t[e]}function Qt(t,e){let r=e[t];return Ft(r)?r:r[Ze]}function YC(t){return(t[F]&4)===4}function kf(t){return(t[F]&128)===128}function KC(t){return Jt(t[Se])}function zn(t,e){return e==null?null:t[e]}function ob(t){t[ti]=0}function sb(t){t[F]&1024||(t[F]|=1024,kf(t)&&vc(t))}function QC(t,e){for(;t>0;)e=e[Di],t--;return e}function wo(t){return!!(t[F]&9216||t[mt]?.dirty)}function gd(t){t[Kt].changeDetectionScheduler?.notify(7),t[F]&64&&(t[F]|=1024),wo(t)&&vc(t)}function vc(t){t[Kt].changeDetectionScheduler?.notify(0);let e=br(t);for(;e!==null&&!(e[F]&8192||(e[F]|=8192,!kf(e)));)e=br(e)}function ab(t,e){if((t[F]&256)===256)throw new I(911,!1);t[Bn]===null&&(t[Bn]=[]),t[Bn].push(e)}function XC(t,e){if(t[Bn]===null)return;let r=t[Bn].indexOf(e);r!==-1&&t[Bn].splice(r,1)}function br(t){let e=t[Se];return Jt(e)?e[Se]:e}var L={lFrame:gb(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var cb=!1;function JC(){return L.lFrame.elementDepthCount}function ex(){L.lFrame.elementDepthCount++}function tx(){L.lFrame.elementDepthCount--}function ub(){return L.bindingsEnabled}function _i(){return L.skipHydrationRootTNode!==null}function nx(t){return L.skipHydrationRootTNode===t}function rx(t){L.skipHydrationRootTNode=t}function ix(){L.skipHydrationRootTNode=null}function R(){return L.lFrame.lView}function ce(){return L.lFrame.tView}function jz(t){return L.lFrame.contextLView=t,t[De]}function Vz(t){return L.lFrame.contextLView=null,t}function _e(){let t=lb();for(;t!==null&&t.type===64;)t=t.parent;return t}function lb(){return L.lFrame.currentTNode}function ox(){let t=L.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Ir(t,e){let r=L.lFrame;r.currentTNode=t,r.isParent=e}function Pf(){return L.lFrame.isParent}function Lf(){L.lFrame.isParent=!1}function sx(){return L.lFrame.contextLView}function db(){return cb}function zg(t){cb=t}function Oo(){let t=L.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ax(t){return L.lFrame.bindingIndex=t}function Wn(){return L.lFrame.bindingIndex++}function fb(t){let e=L.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function cx(){return L.lFrame.inI18n}function ux(t,e){let r=L.lFrame;r.bindingIndex=r.bindingRootIndex=t,vd(e)}function lx(){return L.lFrame.currentDirectiveIndex}function vd(t){L.lFrame.currentDirectiveIndex=t}function jf(t){let e=L.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function hb(){return L.lFrame.currentQueryIndex}function Vf(t){L.lFrame.currentQueryIndex=t}function dx(t){let e=t[A];return e.type===2?e.declTNode:e.type===1?t[Ke]:null}function pb(t,e,r){if(r&U.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(r&U.Host);)if(i=dx(o),i===null||(o=o[Di],i.type&10))break;if(i===null)return!1;e=i,t=o}let n=L.lFrame=mb();return n.currentTNode=e,n.lView=t,!0}function Uf(t){let e=mb(),r=t[A];L.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function mb(){let t=L.lFrame,e=t===null?null:t.child;return e===null?gb(t):e}function gb(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function vb(){let t=L.lFrame;return L.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var bb=vb;function Bf(){let t=vb();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function fx(t){return(L.lFrame.contextLView=QC(t,L.lFrame.contextLView))[De]}function qn(){return L.lFrame.selectedIndex}function yr(t){L.lFrame.selectedIndex=t}function wi(){let t=L.lFrame;return Of(t.tView,t.selectedIndex)}function Uz(){L.lFrame.currentNamespace=rb}function Bz(){hx()}function hx(){L.lFrame.currentNamespace=null}function yb(){return L.lFrame.currentNamespace}var Db=!0;function bc(){return Db}function Zn(t){Db=t}function px(t,e,r){let{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(n){let s=eb(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}i&&(r.preOrderHooks??=[]).push(0-t,i),o&&((r.preOrderHooks??=[]).push(t,o),(r.preOrderCheckHooks??=[]).push(t,o))}function yc(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[c]<0&&(t[ti]+=65536),(a>14>16&&(t[F]&3)===e&&(t[F]+=16384,Gg(a,o)):Gg(a,o)}var oi=-1,Dr=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function gx(t){return t instanceof Dr}function vx(t){return(t.flags&8)!==0}function bx(t){return(t.flags&16)!==0}var Wl={},bd=class{constructor(e,r){this.injector=e,this.parentInjector=r}get(e,r,n){n=hc(n);let i=this.injector.get(e,Wl,n);return i!==Wl||r===Wl?i:this.parentInjector.get(e,r,n)}};function wb(t){return t!==oi}function za(t){return t&32767}function yx(t){return t>>16}function Ga(t,e){let r=yx(t),n=e;for(;r>0;)n=n[Di],r--;return n}var yd=!0;function Wa(t){let e=yd;return yd=t,e}var Dx=256,Eb=Dx-1,Ib=5,_x=0,Zt={};function wx(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(go)&&(n=r[go]),n==null&&(n=r[go]=_x++);let i=n&Eb,o=1<>Ib)]|=o}function qa(t,e){let r=Cb(t,e);if(r!==-1)return r;let n=e[A];n.firstCreatePass&&(t.injectorIndex=e.length,ql(n.data,t),ql(e,null),ql(n.blueprint,null));let i=$f(t,e),o=t.injectorIndex;if(wb(i)){let s=za(i),a=Ga(i,e),c=a[A].data;for(let u=0;u<8;u++)e[o+u]=a[s+u]|c[s+u]}return e[o+8]=i,o}function ql(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Cb(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function $f(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,i=e;for(;i!==null;){if(n=Ab(i),n===null)return oi;if(r++,i=i[Di],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return oi}function Dd(t,e,r){wx(t,e,r)}function Ex(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let n=r.length,i=0;for(;i>20,d=n?a:a+l,f=i?a+l:u;for(let h=d;h=c&&m.type===r)return h}if(i){let h=s[c];if(h&&gn(h)&&h.type===r)return c}return null}function _r(t,e,r,n){let i=t[r],o=e.data;if(gx(i)){let s=i;s.resolving&&tC(eC(o[r]));let a=Wa(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?qe(s.injectImpl):null,l=pb(t,n,U.Default);try{i=t[r]=s.factory(void 0,o,t,n),e.firstCreatePass&&r>=n.directiveStart&&px(r,o[r],e)}finally{u!==null&&qe(u),Wa(a),s.resolving=!1,bb()}}return i}function Cx(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(go)?t[go]:void 0;return typeof e=="number"?e>=0?e&Eb:xx:e}function Wg(t,e,r){let n=1<>Ib)]&n)}function qg(t,e){return!(t&U.Self)&&!(t&U.Host&&e)}var mr=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return Sb(this._tNode,this._lView,e,hc(n),r)}};function xx(){return new mr(_e(),R())}function Yn(t){return xo(()=>{let e=t.prototype.constructor,r=e[Pa]||_d(e),n=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==n;){let o=i[Pa]||_d(i);if(o&&o!==r)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function _d(t){return Mv(t)?()=>{let e=_d(Ue(t));return e&&e()}:gr(t)}function Mx(t,e,r,n,i){let o=t,s=e;for(;o!==null&&s!==null&&s[F]&2048&&!(s[F]&512);){let a=Tb(o,s,r,n|U.Self,Zt);if(a!==Zt)return a;let c=o.parent;if(!c){let u=s[Xv];if(u){let l=u.get(r,Zt,n);if(l!==Zt)return l}c=Ab(s),s=s[Di]}o=c}return i}function Ab(t){let e=t[A],r=e.type;return r===2?e.declTNode:r===1?t[Ke]:null}function Fo(t){return Ex(_e(),t)}function Zg(t,e=null,r=null,n){let i=Nb(t,e,r,n);return i.resolveInjectorInitializers(),i}function Nb(t,e=null,r=null,n,i=new Set){let o=[r||Oe,RC(t)];return n=n||(typeof t=="object"?void 0:$e(t)),new yo(o,e||Af(),n||null,i)}var pr=class pr{static create(e,r){if(Array.isArray(e))return Zg({name:""},r,e,"");{let n=e.name??"";return Zg({name:n},e.parent,e.providers,n)}}};pr.THROW_IF_NOT_FOUND=vo,pr.NULL=new Va,pr.\u0275prov=D({token:pr,providedIn:"any",factory:()=>p(kv)}),pr.__NG_ELEMENT_ID__=-1;var ke=pr;var Sx=new v("");Sx.__NG_ELEMENT_ID__=t=>{let e=_e();if(e===null)throw new I(204,!1);if(e.type&2)return e.value;if(t&U.Optional)return null;throw new I(204,!1)};var Tx="ngOriginalError";function Zl(t){return t[Tx]}var Te=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&Zl(e);for(;r&&Zl(r);)r=Zl(r);return r||null}},Rb=new v("",{providedIn:"root",factory:()=>g(Te).handleError.bind(void 0)}),Cr=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Ax,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),wd=class extends Cr{constructor(e){super(),this._lView=e}onDestroy(e){return ab(this._lView,e),()=>XC(this._lView,e)}};function Ax(){return new wd(R())}function Nx(){return Ei(_e(),R())}function Ei(t,e){return new ne(ot(t,e))}var ne=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=Nx;let t=e;return t})();function Rx(t){return t instanceof ne?t.nativeElement:t}var en=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new de(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var Ed=class extends B{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,Qv()&&(this.destroyRef=g(Cr,{optional:!0})??void 0,this.pendingTasks=g(en,{optional:!0})??void 0)}emit(e){let r=$(null);try{super.next(e)}finally{$(r)}}subscribe(e,r,n){let i=e,o=r||(()=>null),s=n;if(e&&typeof e=="object"){let c=e;i=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof ae&&e.add(a),a}wrapInTimeout(e){return r=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(r),n!==void 0&&this.pendingTasks?.remove(n)})}}},X=Ed;function Ox(){return this._results[Symbol.iterator]()}var li=class t{get changes(){return this._changes??=new X}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let r=t.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=Ox)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let n=fC(e);(this._changesDetected=!dC(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}},Fx="ngSkipHydration",kx="ngskiphydration";function Ob(t){let e=t.mergedAttrs;if(e===null)return!1;for(let r=0;r=0){let a=Ye(o[s]),c=Yg(o,s,a);pt(a,c),e=c;break}}}}return e||null}function Yg(t,e,r){return new Id(t[No],e,r)}var Cd="__ngContext__";function pt(t,e){Ft(e)?(t[Cd]=e[No],Vx(e)):t[Cd]=e}function Yl(t){let e=t[Cd];return typeof e=="number"?kb(e):e||null}function Pb(t){return t&&t.constructor&&t.constructor.\u0275cmp}function Bx(t){return t&&t.constructor&&t.constructor.\u0275dir}function Kg(t,e){let r=t[A];for(let n=oe;nWx}),Wx="ng",zf=new v(""),Qe=new v("",{providedIn:"platform",factory:()=>"unknown"});var Kn=new v(""),ko=new v("",{providedIn:"root",factory:()=>Dc().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function qx(){let t=new Ii;return g(Qe)==="browser"&&(t.store=Zx(Dc(),g(xr))),t}var Ii=(()=>{let e=class e{constructor(){this.store={},this.onSerializeCallbacks={}}get(n,i){return this.store[n]!==void 0?this.store[n]:i}set(n,i){this.store[n]=i}remove(n){delete this.store[n]}hasKey(n){return this.store.hasOwnProperty(n)}get isEmpty(){return Object.keys(this.store).length===0}onSerialize(n,i){this.onSerializeCallbacks[n]=i}toJson(){for(let n in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(n))try{this.store[n]=this.onSerializeCallbacks[n]()}catch(i){console.warn("Exception in onSerialize callback: ",i)}return JSON.stringify(this.store).replace(/null;function tM(t,e,r=!1){let n=t.getAttribute(Kl);if(n==null)return null;let[i,o]=n.split("|");if(n=r?o:i,!n)return null;let s=o?`|${o}`:"",a=r?i:s,c={};if(n!==""){let l=e.get(Ii,null,{optional:!0});l!==null&&(c=l.get(Gb,[])[Number(n)])}let u={data:c,firstChild:t.firstChild??null};return r&&(u.firstChild=t,_c(u,0,t.nextSibling)),a?t.setAttribute(Kl,a):t.removeAttribute(Kl),u}function nM(){Wb=tM}function Wf(t,e,r=!1){return Wb(t,e,r)}function rM(t){let e=t._lView;return e[A].type===2?null:(Ha(e)&&(e=e[oe]),e)}function iM(t){return t.textContent?.replace(/\s/gm,"")}function oM(t){let e=Dc(),r=e.createNodeIterator(t,NodeFilter.SHOW_COMMENT,{acceptNode(o){let s=iM(o);return s==="ngetn"||s==="ngtns"?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n,i=[];for(;n=r.nextNode();)i.push(n);for(let o of i)o.textContent==="ngetn"?o.replaceWith(e.createTextNode("")):o.remove()}function _c(t,e,r){t.segmentHeads??={},t.segmentHeads[e]=r}function Sd(t,e){return t.segmentHeads?.[e]??null}function sM(t,e){let r=t.data,n=r[Yx]?.[e]??null;return n===null&&r[Gf]?.[e]&&(n=qf(t,e)),n}function qb(t,e){return t.data[Gf]?.[e]??null}function qf(t,e){let r=qb(t,e)??[],n=0;for(let i of r)n+=i[Ya]*(i[Hb]??1);return n}function aM(t){if(typeof t.disconnectedNodes>"u"){let e=t.data[zb];t.disconnectedNodes=e?new Set(e):null}return t.disconnectedNodes}function wc(t,e){if(typeof t.disconnectedNodes>"u"){let r=t.data[zb];t.disconnectedNodes=r?new Set(r):null}return!!aM(t)?.has(e)}var wa=new v(""),Zb=!1,Yb=new v("",{providedIn:"root",factory:()=>Zb});var Ea;function cM(){if(Ea===void 0&&(Ea=null,ye.trustedTypes))try{Ea=ye.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ea}function Ec(t){return cM()?.createHTML(t)||t}var Ia;function uM(){if(Ia===void 0&&(Ia=null,ye.trustedTypes))try{Ia=ye.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ia}function Qg(t){return uM()?.createScriptURL(t)||t}var vn=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${xv})`}},Td=class extends vn{getTypeName(){return"HTML"}},Ad=class extends vn{getTypeName(){return"Style"}},Nd=class extends vn{getTypeName(){return"Script"}},Rd=class extends vn{getTypeName(){return"URL"}},Od=class extends vn{getTypeName(){return"ResourceURL"}};function vt(t){return t instanceof vn?t.changingThisBreaksApplicationSecurity:t}function Qn(t,e){let r=lM(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${xv})`)}return r===e}function lM(t){return t instanceof vn&&t.getTypeName()||null}function Kb(t){return new Td(t)}function Qb(t){return new Ad(t)}function Xb(t){return new Nd(t)}function Jb(t){return new Rd(t)}function ey(t){return new Od(t)}function dM(t){let e=new kd(t);return fM()?new Fd(e):e}var Fd=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let r=new window.DOMParser().parseFromString(Ec(e),"text/html").body;return r===null?this.inertDocumentHelper.getInertBodyElement(e):(r.removeChild(r.firstChild),r)}catch{return null}}},kd=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let r=this.inertDocument.createElement("template");return r.innerHTML=Ec(e),r}};function fM(){try{return!!new window.DOMParser().parseFromString(Ec(""),"text/html")}catch{return!1}}var hM=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ic(t){return t=String(t),t.match(hM)?t:"unsafe:"+t}function Dn(t){let e={};for(let r of t.split(","))e[r]=!0;return e}function Po(...t){let e={};for(let r of t)for(let n in r)r.hasOwnProperty(n)&&(e[n]=!0);return e}var ty=Dn("area,br,col,hr,img,wbr"),ny=Dn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ry=Dn("rp,rt"),pM=Po(ry,ny),mM=Po(ny,Dn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),gM=Po(ry,Dn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Xg=Po(ty,mM,gM,pM),iy=Dn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),vM=Dn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),bM=Dn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),yM=Po(iy,vM,bM),DM=Dn("script,style,template"),Pd=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let r=e.firstChild,n=!0,i=[];for(;r;){if(r.nodeType===Node.ELEMENT_NODE?n=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,n&&r.firstChild){i.push(r),r=EM(r);continue}for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let o=wM(r);if(o){r=o;break}r=i.pop()}}return this.buf.join("")}startElement(e){let r=Jg(e).toLowerCase();if(!Xg.hasOwnProperty(r))return this.sanitizedSomething=!0,!DM.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);let n=e.attributes;for(let i=0;i"),!0}endElement(e){let r=Jg(e).toLowerCase();Xg.hasOwnProperty(r)&&!ty.hasOwnProperty(r)&&(this.buf.push(""))}chars(e){this.buf.push(ev(e))}};function _M(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function wM(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw oy(e);return e}function EM(t){let e=t.firstChild;if(e&&_M(t,e))throw oy(e);return e}function Jg(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function oy(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var IM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,CM=/([^\#-~ |!])/g;function ev(t){return t.replace(/&/g,"&").replace(IM,function(e){let r=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+((r-55296)*1024+(n-56320)+65536)+";"}).replace(CM,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var Ca;function sy(t,e){let r=null;try{Ca=Ca||dM(t);let n=e?String(e):"";r=Ca.getInertBodyElement(n);let i=5,o=n;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,n=o,o=r.innerHTML,r=Ca.getInertBodyElement(n)}while(n!==o);let a=new Pd().sanitizeChildren(tv(r)||r);return Ec(a)}finally{if(r){let n=tv(r)||r;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function tv(t){return"content"in t&&xM(t)?t.content:null}function xM(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Pe=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Pe||{});function MM(t){let e=cy();return e?e.sanitize(Pe.URL,t)||"":Qn(t,"URL")?vt(t):Ic(fc(t))}function SM(t){let e=cy();if(e)return Qg(e.sanitize(Pe.RESOURCE_URL,t)||"");if(Qn(t,"ResourceURL"))return Qg(vt(t));throw new I(904,!1)}function TM(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?SM:MM}function ay(t,e,r){return TM(e,r)(t)}function cy(){let t=R();return t&&t[Kt].sanitizer}var AM=/^>|^->||--!>|)/g,RM="\u200B$1\u200B";function OM(t){return t.replace(AM,e=>e.replace(NM,RM))}function Hz(t){return t.ownerDocument.defaultView}function zz(t){return t.ownerDocument}function FM(t){return t.ownerDocument.body}function uy(t){return t instanceof Function?t():t}function ni(t){return(t??g(ke)).get(Qe)==="browser"}var Xt=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Xt||{}),kM;function Zf(t,e){return kM(t,e)}function ri(t,e,r,n,i){if(n!=null){let o,s=!1;Jt(n)?o=n:Ft(n)&&(s=!0,n=n[Ze]);let a=Ye(n);t===0&&r!==null?i==null?my(e,r,a):Ka(e,r,a,i||null,!0):t===1&&r!==null?Ka(e,r,a,i||null,!0):t===2?Xf(e,a,s):t===3&&e.destroyNode(a),o!=null&&YM(e,t,o,r,i)}}function ly(t,e){return t.createText(e)}function PM(t,e,r){t.setValue(e,r)}function dy(t,e){return t.createComment(OM(e))}function Yf(t,e,r){return t.createElement(e,r)}function LM(t,e){fy(t,e),e[Ze]=null,e[Ke]=null}function jM(t,e,r,n,i,o){n[Ze]=i,n[Ke]=e,Mc(t,n,r,1,i,o)}function fy(t,e){e[Kt].changeDetectionScheduler?.notify(8),Mc(t,e,e[te],2,null,null)}function VM(t){let e=t[Do];if(!e)return Ql(t[A],t);for(;e;){let r=null;if(Ft(e))r=e[Do];else{let n=e[Me];n&&(r=n)}if(!r){for(;e&&!e[Ot]&&e!==t;)Ft(e)&&Ql(e[A],e),e=e[Se];e===null&&(e=t),Ft(e)&&Ql(e[A],e),r=e&&e[Ot]}e=r}}function UM(t,e,r,n){let i=Me+n,o=r.length;n>0&&(r[i-1][Ot]=e),n0&&(t[r-1][Ot]=n[Ot]);let o=ja(t,Me+e);LM(n[A],n);let s=o[pn];s!==null&&s.detachView(o[A]),n[Se]=null,n[Ot]=null,n[F]&=-129}return n}function Cc(t,e){if(!(e[F]&256)){let r=e[te];r.destroyNode&&Mc(t,e,r,3,null,null),VM(e)}}function Ql(t,e){if(e[F]&256)return;let r=$(null);try{e[F]&=-129,e[F]|=256,e[mt]&&zs(e[mt]),$M(t,e),BM(t,e),e[A].type===1&&e[te].destroy();let n=e[vr];if(n!==null&&Jt(e[Se])){n!==e[Se]&&Kf(n,e);let i=e[pn];i!==null&&i.detachView(t)}Ux(e)}finally{$(r)}}function BM(t,e){let r=t.cleanup,n=e[Ua];if(r!==null)for(let o=0;o=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[r[o+1]];r[o].call(s)}n!==null&&(e[Ua]=null);let i=e[Bn];if(i!==null){e[Bn]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[n.directiveStart+i];if(o===Yt.None||o===Yt.Emulated)return null}return ot(n,r)}}function Ka(t,e,r,n,i){t.insertBefore(e,r,n,i)}function my(t,e,r){t.appendChild(e,r)}function nv(t,e,r,n,i){n!==null?Ka(t,e,r,n,i):my(t,e,r)}function zM(t,e,r,n){t.removeChild(e,r,n)}function Qf(t,e){return t.parentNode(e)}function GM(t,e){return t.nextSibling(e)}function gy(t,e,r){return qM(t,e,r)}function WM(t,e,r){return t.type&40?ot(t,r):null}var qM=WM,rv;function xc(t,e,r,n){let i=py(t,n,e),o=e[te],s=n.parent||e[Ke],a=gy(s,n,e);if(i!=null)if(Array.isArray(r))for(let c=0;coe&&wy(t,e,oe,!1),qt(s?2:0,i),r(n,i)}finally{yr(o),qt(s?3:1,i)}}function eh(t,e,r){if(Rf(e)){let n=$(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;snull;function rS(t){Fb(t)?by(t):oM(t)}function iS(){My=rS}function oS(t,e,r,n){let i=Ry(e);i.push(r),t.firstCreatePass&&Oy(t).push(n,i.length-1)}function sS(t,e,r,n,i,o){let s=e?e.injectorIndex:-1,a=0;return _i()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function iv(t,e,r,n,i){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;n??={};let a,c=$n.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=o;if(i!==null){if(!i.hasOwnProperty(o))continue;u=i[o]}t===0?ov(n,r,u,a,c):ov(n,r,u,a)}return n}function ov(t,e,r,n,i){let o;t.hasOwnProperty(r)?(o=t[r]).push(e,n):o=t[r]=[e,n],i!==void 0&&o.push(i)}function aS(t,e,r){let n=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],c=null,u=null;for(let l=n;l0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function fS(t,e,r,n){let i=r.directiveStart,o=r.directiveEnd;Ro(r)&&yS(e,r,t.data[i+r.componentOffset]),t.firstCreatePass||qa(r,e),pt(n,e);let s=r.initialInputs;for(let a=i;a{vc(t.lView)},consumerOnSignalRead(){this.lView[mt]=this}});function OS(t){let e=t[mt]??Object.create(FS);return e.lView=t,e}var FS=O(b({},Ur),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=br(t.lView);for(;e&&!Vy(e[A]);)e=br(e);e&&sb(e)},consumerOnSignalRead(){this.lView[mt]=this}});function Vy(t){return t.type!==2}var kS=100;function Uy(t,e=!0,r=0){let n=t[Kt],i=n.rendererFactory,o=!1;o||i.begin?.();try{PS(t,r)}catch(s){throw e&&ky(t,s),s}finally{o||(i.end?.(),n.inlineEffectRunner?.flush())}}function PS(t,e){let r=db();try{zg(!0),Ud(t,e);let n=0;for(;wo(t);){if(n===kS)throw new I(103,!1);n++,Ud(t,1)}}finally{zg(r)}}function LS(t,e,r,n){let i=e[F];if((i&256)===256)return;let o=!1,s=!1;!o&&e[Kt].inlineEffectRunner?.flush(),Uf(e);let a=!0,c=null,u=null;o||(Vy(t)?(u=TS(e),c=eo(u)):$m()===null?(a=!1,u=OS(e),c=eo(u)):e[mt]&&(zs(e[mt]),e[mt]=null));try{ob(e),ax(t.bindingStartIndex),r!==null&&Cy(t,e,r,2,n);let l=(i&3)===3;if(!o)if(l){let h=t.preOrderCheckHooks;h!==null&&Na(e,h,null)}else{let h=t.preOrderHooks;h!==null&&Ra(e,h,0,null),Gl(e,0)}if(s||jS(e),By(e,0),t.contentQueries!==null&&Ny(t,e),!o)if(l){let h=t.contentCheckHooks;h!==null&&Na(e,h)}else{let h=t.contentHooks;h!==null&&Ra(e,h,1),Gl(e,1)}XM(t,e);let d=t.components;d!==null&&Hy(e,d,0);let f=t.viewQuery;if(f!==null&&Vd(2,f,n),!o)if(l){let h=t.viewCheckHooks;h!==null&&Na(e,h)}else{let h=t.viewHooks;h!==null&&Ra(e,h,2),Gl(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Aa]){for(let h of e[Aa])h();e[Aa]=null}o||(e[F]&=-73)}catch(l){throw o||vc(e),l}finally{u!==null&&($s(u,c),a&&NS(u)),Bf()}}function By(t,e){for(let r=Lb(t);r!==null;r=jb(r))for(let n=Me;n-1&&(Eo(e,n),ja(r,n))}this._attachedToViewContainer=!1}Cc(this._lView[A],this._lView)}onDestroy(e){ab(this._lView,e)}markForCheck(){ah(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[F]&=-129}reattach(){gd(this._lView),this._lView[F]|=128}detectChanges(){this._lView[F]|=1024,Uy(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new I(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Ha(this._lView),r=this._lView[vr];r!==null&&!e&&Kf(r,this._lView),fy(this._lView[A],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new I(902,!1);this._appRef=e;let r=Ha(this._lView),n=this._lView[vr];n!==null&&!r&&hy(n,this._lView),gd(this._lView)}},bn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=$S;let t=e;return t})(),US=bn,BS=class extends US{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let i=Vo(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:n});return new wr(i)}};function $S(){return Ac(_e(),R())}function Ac(t,e){return t.type&4?new BS(e,t,Ei(t,e)):null}var HS=new RegExp(`^(\\d+)*(${$b}|${Bb})*(.*)`);function zS(t){let e=t.match(HS),[r,n,i,o]=e,s=n?parseInt(n,10):i,a=[];for(let[c,u,l]of o.matchAll(/(f|n)(\d*)/g)){let d=parseInt(l,10)||1;a.push(u,d)}return[s,...a]}function GS(t){return!t.prev&&t.parent?.type===8}function Xl(t){return t.index-oe}function WS(t,e){let r=t.i18nNodes;if(r)return r.get(e)}function Nc(t,e,r,n){let i=Xl(n),o=WS(t,i);if(o===void 0){let s=t.data[Xx];if(s?.[i])o=ZS(s[i],r);else if(e.firstChild===n)o=t.firstChild;else{let a=n.prev===null,c=n.prev??n.parent;if(GS(n)){let u=Xl(n.parent);o=Sd(t,u)}else{let u=ot(c,r);if(a)o=u.firstChild;else{let l=Xl(c),d=Sd(t,l);if(c.type===2&&d){let h=qf(t,l)+1;o=Rc(h,d)}else o=u.nextSibling}}}}return o}function Rc(t,e){let r=e;for(let n=0;n0&&(o.firstChild=t,t=Rc(n[Ya],t)),r.push(o)}return[t,r]}var Wy=()=>null;function nT(t,e){let r=t[_o];return!e||r===null||r.length===0?null:r[0].data[Qx]===e?r.shift():(zy(t),null)}function rT(){Wy=nT}function fi(t,e){return Wy(t,e)}var hi=class{},qy=new v("",{providedIn:"root",factory:()=>!1});var Zy=new v(""),Bd=class{},Ja=class{};function iT(t){let e=Error(`No component factory found for ${$e(t)}.`);return e[oT]=t,e}var oT="ngComponent";var $d=class{resolveComponentFactory(e){throw iT(e)}},Ch=class Ch{};Ch.NULL=new $d;var pi=Ch,mi=class{},tn=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>sT();let t=e;return t})();function sT(){let t=R(),e=_e(),r=Qt(e.index,t);return(Ft(r)?r:t)[te]}var aT=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();var sv=new Set;function yt(t){sv.has(t)||(sv.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function Yy(t){let e=!0;return setTimeout(()=>{e&&(e=!1,t())}),typeof ye.requestAnimationFrame=="function"&&ye.requestAnimationFrame(()=>{e&&(e=!1,t())}),()=>{e=!1}}function av(t){let e=!0;return queueMicrotask(()=>{e&&t()}),()=>{e=!1}}function cv(...t){}var P=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new X(!1),this.onMicrotaskEmpty=new X(!1),this.onStable=new X(!1),this.onError=new X(!1),typeof Zone>"u")throw new I(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&r,i.shouldCoalesceRunChangeDetection=n,i.callbackScheduled=!1,lT(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new I(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new I(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,cT,cv,cv);try{return o.runTask(s,r,n)}finally{o.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},cT={};function ch(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function uT(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{Yy(()=>{t.callbackScheduled=!1,Hd(t),t.isCheckStableRunning=!0,ch(t),t.isCheckStableRunning=!1})}),Hd(t))}function lT(t){let e=()=>{uT(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,i,o,s,a)=>{if(dT(a))return r.invokeTask(i,o,s,a);try{return uv(t),r.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),lv(t)}},onInvoke:(r,n,i,o,s,a,c)=>{try{return uv(t),r.invoke(i,o,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!fT(a)&&e(),lv(t)}},onHasTask:(r,n,i,o)=>{r.hasTask(i,o),n===i&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,Hd(t),ch(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,n,i,o)=>(r.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function Hd(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function uv(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function lv(t){t._nesting--,ch(t)}var zd=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new X,this.onMicrotaskEmpty=new X,this.onStable=new X,this.onError=new X}run(e,r,n){return e.apply(r,n)}runGuarded(e,r,n){return e.apply(r,n)}runOutsideAngular(e){return e()}runTask(e,r,n,i){return e.apply(r,n)}};function dT(t){return Ky(t,"__ignore_ng_zone__")}function fT(t){return Ky(t,"__scheduler_tick__")}function Ky(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var Be=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Be||{}),Qy={destroy(){}};function hT(t,e){!e&&Ao(hT);let r=e?.injector??g(ke);return ni(r)?(yt("NgAfterRender"),Xy(t,r,!1,e?.phase??Be.MixedReadWrite)):Qy}function Bo(t,e){!e&&Ao(Bo);let r=e?.injector??g(ke);return ni(r)?(yt("NgAfterNextRender"),Xy(t,r,!0,e?.phase??Be.MixedReadWrite)):Qy}function pT(t,e){if(t instanceof Function)switch(e){case Be.EarlyRead:return{earlyRead:t};case Be.Write:return{write:t};case Be.MixedReadWrite:return{mixedReadWrite:t};case Be.Read:return{read:t}}return t}function Xy(t,e,r,n){let i=pT(t,n),o=e.get(uh),s=o.handler??=new Wd,a=[],c=[],u=()=>{for(let f of c)s.unregister(f);l()},l=e.get(Cr).onDestroy(u),d=(f,h)=>{if(!h)return;let m=r?(...w)=>{u(),h(...w)}:h,_=rt(e,()=>new Gd(f,a,m));s.register(_),c.push(_)};return d(Be.EarlyRead,i.earlyRead),d(Be.Write,i.write),d(Be.MixedReadWrite,i.mixedReadWrite),d(Be.Read,i.read),{destroy:u}}var Gd=class{constructor(e,r,n){this.phase=e,this.pipelinedArgs=r,this.callbackFn=n,this.zone=g(P),this.errorHandler=g(Te,{optional:!0}),g(hi,{optional:!0})?.notify(6)}invoke(){try{let e=this.zone.runOutsideAngular(()=>this.callbackFn.apply(null,this.pipelinedArgs));this.pipelinedArgs.splice(0,this.pipelinedArgs.length,e)}catch(e){this.errorHandler?.handleError(e)}}},Wd=class{constructor(){this.executingCallbacks=!1,this.buckets={[Be.EarlyRead]:new Set,[Be.Write]:new Set,[Be.MixedReadWrite]:new Set,[Be.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let r of e)r.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},uh=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let i of n)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function ec(t,e,r){let n=r?t.styles:null,i=r?t.classes:null,o=0;if(e!==null)for(let s=0;s0&&Dy(t,r,o.join(" "))}}function _T(t,e,r){let n=t.projection=[];for(let i=0;i{let e=class e{};e.__NG_ELEMENT_ID__=ET;let t=e;return t})();function ET(){let t=_e();return eD(t,R())}var IT=Pt,Jy=class extends IT{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return Ei(this._hostTNode,this._hostLView)}get injector(){return new mr(this._hostTNode,this._hostLView)}get parentInjector(){let e=$f(this._hostTNode,this._hostLView);if(wb(e)){let r=Ga(e,this._hostLView),n=za(e),i=r[A].data[n+8];return new mr(i,r)}else return new mr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=fv(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-Me}createEmbeddedView(e,r,n){let i,o;typeof n=="number"?i=n:n!=null&&(i=n.index,o=n.injector);let s=fi(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,i,di(this._hostTNode,s)),a}createComponent(e,r,n,i,o){let s=e&&!HC(e),a;if(s)a=r;else{let m=r||{};a=m.index,n=m.injector,i=m.projectableNodes,o=m.environmentInjector||m.ngModuleRef}let c=s?e:new gi(Hn(e)),u=n||this.parentInjector;if(!o&&c.ngModule==null){let _=(s?u:this.parentInjector).get(Fe,null);_&&(o=_)}let l=Hn(c.componentType??{}),d=fi(this._lContainer,l?.id??null),f=d?.firstChild??null,h=c.create(u,i,f,o);return this.insertImpl(h.hostView,a,di(this._hostTNode,d)),h}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let i=e._lView;if(KC(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=i[Se],u=new Jy(c,c[Ke],c[Se]);u.detach(u.indexOf(e))}}let o=this._adjustIndex(r),s=this._lContainer;return Uo(s,i,o,n),e.attachToViewContainerRef(),Fv(Jl(s),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=fv(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=Eo(this._lContainer,r);n&&(ja(Jl(this._lContainer),r),Cc(n[A],n))}detach(e){let r=this._adjustIndex(e,-1),n=Eo(this._lContainer,r);return n&&ja(Jl(this._lContainer),r)!=null?new wr(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function fv(t){return t[Ba]}function Jl(t){return t[Ba]||(t[Ba]=[])}function eD(t,e){let r,n=e[t.index];return Jt(n)?r=n:(r=Ay(n,e,null,t),e[t.index]=r,Tc(e,r)),tD(r,e,t,n),new Jy(r,t,e)}function CT(t,e){let r=t[te],n=r.createComment(""),i=ot(e,t),o=Qf(r,i);return Ka(r,o,n,GM(r,i),!1),n}var tD=nD,lh=()=>!1;function xT(t,e,r){return lh(t,e,r)}function nD(t,e,r,n){if(t[mn])return;let i;r.type&8?i=Ye(n):i=CT(e,r),t[mn]=i}function MT(t,e,r){if(t[mn]&&t[_o])return!0;let n=r[gt],i=e.index-oe;if(!n||Px(e)||wc(n,i))return!1;let s=Sd(n,i),a=n.data[Gf]?.[i],[c,u]=tT(s,a);return t[mn]=c,t[_o]=u,!0}function ST(t,e,r,n){lh(t,r,e)||nD(t,e,r,n)}function TT(){tD=ST,lh=MT}var Zd=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Yd=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let n=e.contentQueries!==null?e.contentQueries[0]:r.length,i=[];for(let o=0;o0)n.push(s[a/2]);else{let u=o[a+1],l=e[-c];for(let d=Me;de.trim())}function oD(t,e,r){t.queries===null&&(t.queries=new Kd),t.queries.track(new Qd(e,r))}function jT(t,e){let r=t.contentQueries||(t.contentQueries=[]),n=r.length?r[r.length-1]:-1;e!==n&&r.push(t.queries.length-1,e)}function dh(t,e){return t.queries.getByIndex(e)}function VT(t,e){let r=t[A],n=dh(r,e);return n.crossesNgTemplate?Xd(r,t,e,[]):rD(r,t,n,e)}function Oc(t){return typeof t=="function"&&t[Bt]!==void 0}function _n(t,e){yt("NgSignals");let r=eg(t),n=r[Bt];return e?.equal&&(n.equal=e.equal),r.set=i=>_l(n,i),r.update=i=>tg(n,i),r.asReadonly=UT.bind(r),r}function UT(){let t=this[Bt];if(t.readonlyFn===void 0){let e=()=>this();e[Bt]=t,t.readonlyFn=e}return t.readonlyFn}function sD(t){return Oc(t)&&typeof t.set=="function"}function BT(t){return Object.getPrototypeOf(t.prototype).constructor}function be(t){let e=BT(t.type),r=!0,n=[t];for(;e;){let i;if(gn(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new I(903,!1);i=e.\u0275dir}if(i){if(r){n.push(i);let s=t;s.inputs=xa(t.inputs),s.inputTransforms=xa(t.inputTransforms),s.declaredInputs=xa(t.declaredInputs),s.outputs=xa(t.outputs);let a=i.hostBindings;a&&WT(t,a);let c=i.viewQuery,u=i.contentQueries;if(c&&zT(t,c),u&>(t,u),$T(t,i),WI(t.outputs,i.outputs),gn(i)&&i.data.animation){let l=t.data;l.animation=(l.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;n--){let i=t[n];i.hostVars=e+=i.hostVars,i.hostAttrs=bo(i.hostAttrs,r=bo(r,i.hostAttrs))}}function xa(t){return t===si?{}:t===Oe?[]:t}function zT(t,e){let r=t.viewQuery;r?t.viewQuery=(n,i)=>{e(n,i),r(n,i)}:t.viewQuery=e}function GT(t,e){let r=t.contentQueries;r?t.contentQueries=(n,i,o)=>{e(n,i,o),r(n,i,o)}:t.contentQueries=e}function WT(t,e){let r=t.hostBindings;r?t.hostBindings=(n,i)=>{e(n,i),r(n,i)}:t.hostBindings=e}function st(t){let e=t.inputConfig,r={};for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];Array.isArray(i)&&i[3]&&(r[n]=i[3])}t.inputTransforms=r}var Gn=class{},Io=class{};var Jd=class extends Gn{constructor(e,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new tc(this);let i=zv(e);this._bootstrapComponents=uy(i.bootstrap),this._r3Injector=Nb(e,r,[{provide:Gn,useValue:this},{provide:pi,useValue:this.componentFactoryResolver},...n],$e(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},ef=class extends Io{constructor(e){super(),this.moduleType=e}create(e){return new Jd(this.moduleType,e,[])}};var rc=class extends Gn{constructor(e){super(),this.componentFactoryResolver=new tc(this),this.instance=null;let r=new yo([...e.providers,{provide:Gn,useValue:this},{provide:pi,useValue:this.componentFactoryResolver}],e.parent||Af(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Fc(t,e,r=null){return new rc({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}function aD(t){return fh(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function qT(t,e){if(Array.isArray(t))for(let r=0;r>17&32767}function JT(t){return(t&2)==2}function eA(t,e){return t&131071|e<<17}function tf(t){return t|2}function vi(t){return(t&131068)>>2}function ed(t,e){return t&-131069|e<<2}function tA(t){return(t&1)===1}function nf(t){return t|1}function nA(t,e,r,n,i,o){let s=o?e.classBindings:e.styleBindings,a=Er(s),c=vi(s);t[n]=r;let u=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||To(d,l)>0)&&(u=!0)}else l=r;if(i)if(c!==0){let f=Er(t[a+1]);t[n+1]=Ma(f,a),f!==0&&(t[f+1]=ed(t[f+1],n)),t[a+1]=eA(t[a+1],n)}else t[n+1]=Ma(a,0),a!==0&&(t[a+1]=ed(t[a+1],n)),a=n;else t[n+1]=Ma(c,0),a===0?a=n:t[c+1]=ed(t[c+1],n),c=n;u&&(t[n+1]=tf(t[n+1])),hv(t,l,n,!0),hv(t,l,n,!1),rA(e,l,t,n,o),s=Ma(a,c),o?e.classBindings=s:e.styleBindings=s}function rA(t,e,r,n,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&To(o,e)>=0&&(r[n+1]=nf(r[n+1]))}function hv(t,e,r,n){let i=t[r+1],o=e===null,s=n?Er(i):vi(i),a=!1;for(;s!==0&&(a===!1||o);){let c=t[s],u=t[s+1];iA(c,e)&&(a=!0,t[s+1]=n?nf(u):tf(u)),s=n?Er(u):vi(u)}a&&(t[r+1]=n?tf(i):nf(i))}function iA(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?To(t,e)>=0:!1}var ve={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function lD(t){return t.substring(ve.key,ve.keyEnd)}function oA(t){return t.substring(ve.value,ve.valueEnd)}function sA(t){return hD(t),dD(t,bi(t,0,ve.textEnd))}function dD(t,e){let r=ve.textEnd;return r===e?-1:(e=ve.keyEnd=cA(t,ve.key=e,r),bi(t,e,r))}function aA(t){return hD(t),fD(t,bi(t,0,ve.textEnd))}function fD(t,e){let r=ve.textEnd,n=ve.key=bi(t,e,r);return r===n?-1:(n=ve.keyEnd=uA(t,n,r),n=pv(t,n,r,58),n=ve.value=bi(t,n,r),n=ve.valueEnd=lA(t,n,r),pv(t,n,r,59))}function hD(t){ve.key=0,ve.keyEnd=0,ve.value=0,ve.valueEnd=0,ve.textEnd=t.length}function bi(t,e,r){for(;e32;)e++;return e}function uA(t,e,r){let n;for(;e=65&&(n&-33)<=90||n>=48&&n<=57);)e++;return e}function pv(t,e,r,n){return e=bi(t,e,r),e32&&(a=s),o=i,i=n,n=c&-33}return a}function mv(t,e,r,n){let i=-1,o=r;for(;o=0;r=fD(e,r))yD(t,lD(e),oA(e))}function Si(t){mh(vA,mD,t,!0)}function mD(t,e){for(let r=sA(e);r>=0;r=dD(e,r))So(t,lD(e),!0)}function gD(t,e,r,n){let i=R(),o=ce(),s=fb(2);if(o.firstUpdatePass&&bD(o,t,s,n),e!==bt&&tt(i,s,e)){let a=o.data[qn()];DD(o,a,i,i[te],t,i[s+1]=yA(e,r),n,s)}}function mh(t,e,r,n){let i=ce(),o=fb(2);i.firstUpdatePass&&bD(i,null,o,n);let s=R();if(r!==bt&&tt(s,o,r)){let a=i.data[qn()];if(_D(a,n)&&!vD(i,o)){let c=n?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(r=ad(c,r||"")),rf(i,a,s,r,n)}else bA(i,a,s,s[te],s[o+1],s[o+1]=gA(t,e,r),n,o)}}function vD(t,e){return e>=t.expandoStartIndex}function bD(t,e,r,n){let i=t.data;if(i[r+1]===null){let o=i[qn()],s=vD(t,r);_D(o,n)&&e===null&&!s&&(e=!1),e=fA(i,o,e,n),nA(i,o,e,r,s,n)}}function fA(t,e,r,n){let i=jf(t),o=n?e.residualClasses:e.residualStyles;if(i===null)(n?e.classBindings:e.styleBindings)===0&&(r=td(null,t,e,r,n),r=Co(r,e.attrs,n),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(r=td(i,t,e,r,n),o===null){let c=hA(t,e,n);c!==void 0&&Array.isArray(c)&&(c=td(null,t,e,c[1],n),c=Co(c,e.attrs,n),pA(t,e,n,c))}else o=mA(t,e,n)}return o!==void 0&&(n?e.residualClasses=o:e.residualStyles=o),r}function hA(t,e,r){let n=r?e.classBindings:e.styleBindings;if(vi(n)!==0)return t[Er(n)]}function pA(t,e,r,n){let i=r?e.classBindings:e.styleBindings;t[Er(i)]=n}function mA(t,e,r){let n,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let c=t[i],u=Array.isArray(c),l=u?c[1]:c,d=l===null,f=r[i+1];f===bt&&(f=d?Oe:void 0);let h=d?Hl(f,n):l===n?f:void 0;if(u&&!oc(h)&&(h=Hl(c,n)),oc(h)&&(a=h,s))return a;let m=t[i+1];i=s?Er(m):vi(m)}if(e!==null){let c=o?e.residualClasses:e.residualStyles;c!=null&&(a=Hl(c,n))}return a}function oc(t){return t!==void 0}function yA(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=$e(vt(t)))),t}function _D(t,e){return(t.flags&(e?8:16))!==0}function Zz(t,e,r){let n=R(),i=ph(n,t,e,r);mh(So,mD,i,!0)}var of=class{destroy(e){}updateValue(e,r){}swap(e,r){let n=Math.min(e,r),i=Math.max(e,r),o=this.detach(i);if(i-n>1){let s=this.detach(n);this.attach(n,o),this.attach(i,s)}else this.attach(n,o)}move(e,r){this.attach(r,this.detach(e))}};function nd(t,e,r,n,i){return t===r&&Object.is(e,n)?1:Object.is(i(t,e),i(r,n))?-1:0}function DA(t,e,r){let n,i,o=0,s=t.length-1,a=void 0;if(Array.isArray(e)){let c=e.length-1;for(;o<=s&&o<=c;){let u=t.at(o),l=e[o],d=nd(o,u,o,l,r);if(d!==0){d<0&&t.updateValue(o,l),o++;continue}let f=t.at(s),h=e[c],m=nd(s,f,c,h,r);if(m!==0){m<0&&t.updateValue(s,h),s--,c--;continue}let _=r(o,u),w=r(s,f),E=r(o,l);if(Object.is(E,w)){let k=r(c,h);Object.is(k,_)?(t.swap(o,s),t.updateValue(s,h),c--,s--):t.move(s,o),t.updateValue(o,l),o++;continue}if(n??=new sc,i??=bv(t,o,s,r),sf(t,n,o,E))t.updateValue(o,l),o++,s++;else if(i.has(E))n.set(_,t.detach(o)),s--;else{let k=t.create(o,e[o]);t.attach(o,k),o++,s++}}for(;o<=c;)vv(t,n,r,o,e[o]),o++}else if(e!=null){let c=e[Symbol.iterator](),u=c.next();for(;!u.done&&o<=s;){let l=t.at(o),d=u.value,f=nd(o,l,o,d,r);if(f!==0)f<0&&t.updateValue(o,d),o++,u=c.next();else{n??=new sc,i??=bv(t,o,s,r);let h=r(o,d);if(sf(t,n,o,h))t.updateValue(o,d),o++,s++,u=c.next();else if(!i.has(h))t.attach(o,t.create(o,d)),o++,s++,u=c.next();else{let m=r(o,l);n.set(m,t.detach(o)),s--}}}for(;!u.done;)vv(t,n,r,t.length,u.value),u=c.next()}for(;o<=s;)t.destroy(t.detach(s--));n?.forEach(c=>{t.destroy(c)})}function sf(t,e,r,n){return e!==void 0&&e.has(n)?(t.attach(r,e.get(n)),e.delete(n),!0):!1}function vv(t,e,r,n,i){if(sf(t,e,n,r(n,i)))t.updateValue(n,i);else{let o=t.create(n,i);t.attach(n,o)}}function bv(t,e,r,n){let i=new Set;for(let o=e;o<=r;o++)i.add(n(o,t.at(o)));return i}var sc=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let r=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(r)?(this.kvMap.set(e,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,r){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let i=this._vMap;for(;i.has(n);)n=i.get(n);i.set(n,r)}else this.kvMap.set(e,r)}forEach(e){for(let[r,n]of this.kvMap)if(e(n,r),this._vMap!==void 0){let i=this._vMap;for(;i.has(n);)n=i.get(n),e(n,r)}}};function Pc(t,e){yt("NgControlFlow");let r=R(),n=Wn(),i=r[n]!==bt?r[n]:-1,o=i!==-1?ac(r,oe+i):void 0,s=0;if(tt(r,n,t)){let a=$(null);try{if(o!==void 0&&Ly(o,s),t!==-1){let c=oe+t,u=ac(r,c),l=lf(r[A],c),d=fi(u,l.tView.ssrId),f=Vo(r,l,e,{dehydratedView:d});Uo(u,f,s,di(l,d))}}finally{$(a)}}else if(o!==void 0){let a=Py(o,s);a!==void 0&&(a[De]=e)}}var af=class{constructor(e,r,n){this.lContainer=e,this.$implicit=r,this.$index=n}get $count(){return this.lContainer.length-Me}};function Yz(t,e){return e}var cf=class{constructor(e,r,n){this.hasEmptyBlock=e,this.trackByFn=r,this.liveCollection=n}};function Kz(t,e,r,n,i,o,s,a,c,u,l,d,f){yt("NgControlFlow");let h=R(),m=ce(),_=c!==void 0,w=R(),E=a?s.bind(w[He][De]):s,k=new cf(_,E);w[oe+t]=k,ic(h,m,t+1,e,r,n,i,zn(m.consts,o)),_&&ic(h,m,t+2,c,u,l,d,zn(m.consts,f))}var uf=class extends of{constructor(e,r,n){super(),this.lContainer=e,this.hostLView=r,this.templateTNode=n,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Me}at(e){return this.getLView(e)[De].$implicit}attach(e,r){let n=r[gt];this.needsIndexUpdate||=e!==this.length,Uo(this.lContainer,r,e,di(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,_A(this.lContainer,e)}create(e,r){let n=fi(this.lContainer,this.templateTNode.tView.ssrId),i=Vo(this.hostLView,this.templateTNode,new af(this.lContainer,r,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),i}destroy(e){Cc(e[A],e),this.operationsCounter?.recordDestroy()}updateValue(e,r){this.getLView(e)[De].$implicit=r}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(Zn(!0),Yf(n,i,yb()));function IA(t,e,r,n,i,o){let s=e[gt],a=!s||_i()||$o(r)||wc(s,o);if(Zn(a),a)return Yf(n,i,yb());let c=Nc(s,t,e,r);return qb(s,o)&&_c(s,o,c.nextSibling),s&&(Ob(r)||Fb(c))&&Ro(r)&&(rx(r),by(c)),c}function CA(){wD=IA}function xA(t,e,r,n,i){let o=e.consts,s=zn(o,n),a=xi(e,t,8,"ng-container",s);s!==null&&ec(a,s,!0);let c=zn(o,i);return ih(e,r,a,c),e.queries!==null&&e.queries.elementStart(e,a),a}function ED(t,e,r){let n=R(),i=ce(),o=t+oe,s=i.firstCreatePass?xA(o,i,n,e,r):i.data[o];Ir(s,!0);let a=CD(i,n,s,t);return n[o]=a,bc()&&xc(i,n,a,s),pt(a,n),gc(s)&&(th(i,n,s),eh(i,s,n)),r!=null&&nh(n,s),ED}function ID(){let t=_e(),e=ce();return Pf()?Lf():(t=t.parent,Ir(t,!1)),e.firstCreatePass&&(yc(e,t),Rf(t)&&e.queries.elementEnd(t)),ID}function MA(t,e,r){return ED(t,e,r),ID(),MA}var CD=(t,e,r,n)=>(Zn(!0),dy(e[te],""));function SA(t,e,r,n){let i,o=e[gt],s=!o||_i()||$o(r);if(Zn(s),s)return dy(e[te],"");let a=Nc(o,t,e,r),c=sM(o,n);return _c(o,n,a),i=Rc(c,a),i}function TA(){CD=SA}function Xz(){return R()}function gh(t,e,r){let n=R(),i=Wn();if(tt(n,i,e)){let o=ce(),s=wi();jo(o,s,n,t,e,n[te],r,!0)}return gh}function AA(t,e,r){let n=R(),i=Wn();if(tt(n,i,e)){let o=ce(),s=wi(),a=jf(o.data),c=Fy(a,s,n);jo(o,s,n,t,e,c,r,!0)}return AA}var hr=void 0;function NA(t){let e=t,r=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return r===1&&n===0?1:5}var RA=["en",[["a","p"],["AM","PM"],hr],[["AM","PM"],hr,hr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],hr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],hr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",hr,"{1} 'at' {0}",hr],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",NA],rd={};function Dt(t){let e=OA(t),r=yv(e);if(r)return r;let n=e.split("-")[0];if(r=yv(n),r)return r;if(n==="en")return RA;throw new I(701,!1)}function yv(t){return t in rd||(rd[t]=ye.ng&&ye.ng.common&&ye.ng.common.locales&&ye.ng.common.locales[t]),rd[t]}var fe=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(fe||{});function OA(t){return t.toLowerCase().replace(/_/g,"-")}var cc="en-US";var FA=cc;function kA(t){typeof t=="string"&&(FA=t.toLowerCase().replace(/_/g,"-"))}var PA=(t,e,r)=>{};function In(t,e,r,n){let i=R(),o=ce(),s=_e();return vh(o,i,i[te],s,t,e,n),In}function LA(t,e){let r=_e(),n=R(),i=ce(),o=jf(i.data),s=Fy(o,r,n);return vh(i,n,s,r,t,e),LA}function jA(t,e,r,n){let i=t.cleanup;if(i!=null)for(let o=0;oc?a[c]:null}typeof s=="string"&&(o+=2)}return null}function vh(t,e,r,n,i,o,s){let a=gc(n),u=t.firstCreatePass&&Oy(t),l=e[De],d=Ry(e),f=!0;if(n.type&3||s){let _=ot(n,e),w=s?s(_):_,E=d.length,k=s?Z=>s(Ye(Z[n.index])):n.index,q=null;if(!s&&a&&(q=jA(t,e,i,n.index)),q!==null){let Z=q.__ngLastListenerFn__||q;Z.__ngNextListenerFn__=o,q.__ngLastListenerFn__=o,f=!1}else{o=_v(n,e,l,o),PA(_,i,o);let Z=r.listen(w,i,o);d.push(o,Z),u&&u.push(i,k,E,E+1)}}else o=_v(n,e,l,o);let h=n.outputs,m;if(f&&h!==null&&(m=h[i])){let _=m.length;if(_)for(let w=0;w<_;w+=2){let E=m[w],k=m[w+1],We=e[E][k].subscribe(o),pe=d.length;d.push(o,We),u&&u.push(i,n.index,pe,-(pe+1))}}}function Dv(t,e,r,n){let i=$(null);try{return qt(6,e,r),r(n)!==!1}catch(o){return ky(t,o),!1}finally{qt(7,e,r),$(i)}}function _v(t,e,r,n){return function i(o){if(o===Function)return n;let s=t.componentOffset>-1?Qt(t.index,e):e;ah(s,5);let a=Dv(e,r,n,o),c=i.__ngNextListenerFn__;for(;c;)a=Dv(e,r,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function Lc(t=1){return fx(t)}function VA(t,e){let r=null,n=wC(t);for(let i=0;i=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=n}function Jz(t){let e=sx();return Ff(e,oe+t)}function bh(t,e=""){let r=R(),n=ce(),i=t+oe,o=n.firstCreatePass?xi(n,i,1,e,null):n.data[i],s=TD(n,r,o,e,t);r[i]=s,bc()&&xc(n,r,s,o),Ir(o,!1)}var TD=(t,e,r,n,i)=>(Zn(!0),ly(e[te],n));function HA(t,e,r,n,i){let o=e[gt],s=!o||_i()||$o(r)||wc(o,i);return Zn(s),s?ly(e[te],n):Nc(o,t,e,r)}function zA(){TD=HA}function GA(t){return Ho("",t,""),GA}function Ho(t,e,r){let n=R(),i=ph(n,t,e,r);return i!==bt&&IS(n,qn(),i),Ho}function WA(t,e,r){sD(e)&&(e=e());let n=R(),i=Wn();if(tt(n,i,e)){let o=ce(),s=wi();jo(o,s,n,t,e,n[te],r,!1)}return WA}function e3(t,e){let r=sD(t);return r&&t.set(e),r}function qA(t,e){let r=R(),n=ce(),i=_e();return vh(n,r,r[te],i,t,e),qA}function ZA(t,e,r){let n=ce();if(n.firstCreatePass){let i=gn(t);df(r,n.data,n.blueprint,i,!0),df(e,n.data,n.blueprint,i,!1)}}function df(t,e,r,n,i){if(t=Ue(t),Array.isArray(t))for(let o=0;o>20;if(ai(t)||!t.multi){let h=new Dr(u,i,y),m=od(c,e,i?l:l+f,d);m===-1?(Dd(qa(a,s),o,c),id(o,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(h),s.push(h)):(r[m]=h,s[m]=h)}else{let h=od(c,e,l+f,d),m=od(c,e,l,l+f),_=h>=0&&r[h],w=m>=0&&r[m];if(i&&!w||!i&&!_){Dd(qa(a,s),o,c);let E=QA(i?KA:YA,r.length,i,n,u);!i&&w&&(r[m].providerFactory=E),id(o,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(E),s.push(E)}else{let E=AD(r[i?m:h],u,!i&&n);id(o,t,h>-1?h:m,E)}!i&&n&&w&&r[m].componentProviders++}}}function id(t,e,r,n){let i=ai(e),o=PC(e);if(i||o){let c=(o?Ue(e.useClass):e).prototype.ngOnDestroy;if(c){let u=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let l=u.indexOf(r);l===-1?u.push(r,[n,c]):u[l+1].push(n,c)}else u.push(r,c)}}}function AD(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function od(t,e,r,n){for(let i=r;i{r.providersResolver=(n,i)=>ZA(n,i?i(t):t,e)}}var XA=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let i=qv(!1,n.type),o=i.length>0?Fc([i],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=D({token:e,providedIn:"environment",factory:()=>new e(p(Fe))});let t=e;return t})();function at(t){yt("NgStandalone"),t.getStandaloneInjector=e=>e.get(XA).getOrCreateStandaloneInjector(t)}function t3(t,e,r){let n=Oo()+t,i=R();return i[n]===bt?hh(i,n,r?e.call(r):e()):ZT(i,n)}function n3(t,e,r,n){return RD(R(),Oo(),t,e,r,n)}function r3(t,e,r,n,i){return OD(R(),Oo(),t,e,r,n,i)}function ND(t,e){let r=t[e];return r===bt?void 0:r}function RD(t,e,r,n,i,o){let s=e+r;return tt(t,s,i)?hh(t,s+1,o?n.call(o,i):n(i)):ND(t,s+1)}function OD(t,e,r,n,i,o,s){let a=e+r;return YT(t,a,i,o)?hh(t,a+2,s?n.call(s,i,o):n(i,o)):ND(t,a+2)}function i3(t,e){let r=ce(),n,i=t+oe;r.firstCreatePass?(n=JA(e,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks??=[]).push(i,n.onDestroy)):n=r.data[i];let o=n.factory||(n.factory=gr(n.type,!0)),s,a=qe(y);try{let c=Wa(!1),u=o();return Wa(c),$A(r,R(),i,u),u}finally{qe(a)}}function JA(t,e){if(e)for(let r=e.length-1;r>=0;r--){let n=e[r];if(t===n.name)return n}}function o3(t,e,r){let n=t+oe,i=R(),o=Ff(i,n);return FD(i,n)?RD(i,Oo(),e,o.transform,r,o):o.transform(r)}function s3(t,e,r,n){let i=t+oe,o=R(),s=Ff(o,i);return FD(o,i)?OD(o,Oo(),e,s.transform,r,n,s):s.transform(r,n)}function FD(t,e){return t[A].data[e].pure}function a3(t,e){return Ac(t,e)}var Uc=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var yh=new v(""),zo=new v(""),Bc=(()=>{let e=class e{constructor(n,i,o){this._ngZone=n,this.registry=i,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Dh||(eN(o),o.addToWindow(i)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{P.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(n)?(clearTimeout(i.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n()},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,o),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,o){return[]}};e.\u0275fac=function(i){return new(i||e)(p(P),p($c),p(zo))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),$c=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return Dh?.findTestabilityInTree(this,n,i)??null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function eN(t){Dh=t}var Dh;function Xn(t){return!!t&&typeof t.then=="function"}function _h(t){return!!t&&typeof t.subscribe=="function"}var Hc=new v(""),kD=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=g(Hc,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(Xn(s))n.push(s);else if(_h(s)){let a=new Promise((c,u)=>{s.subscribe({complete:c,error:u})});n.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),n.length===0&&i(),this.initialized=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Mr=new v("");function tN(){Jm(()=>{throw new I(600,!1)})}function nN(t){return t.isBoundToModule}var rN=10;function iN(t,e,r){try{let n=r();return Xn(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}var rn=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=g(Rb),this.afterRenderEffectManager=g(uh),this.zonelessEnabled=g(qy),this.externalTestViews=new Set,this.beforeRender=new B,this.afterTick=new B,this.componentTypes=[],this.components=[],this.isStable=g(en).hasPendingTasks.pipe(C(n=>!n)),this._injector=g(Fe)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){let o=n instanceof Ja;if(!this._injector.get(kD).done){let h=!o&&Hv(n),m=!1;throw new I(405,m)}let a;o?a=n:a=this._injector.get(pi).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=nN(a)?void 0:this._injector.get(Gn),u=i||a.selector,l=a.create(ke.NULL,[],u,c),d=l.location.nativeElement,f=l.injector.get(yh,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),sd(this.components,l),f?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new I(101,!1);let i=$(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,$(i),this.afterTick.next()}}detectChangesInAttachedViews(n){let i=null;this._injector.destroyed||(i=this._injector.get(mi,null,{optional:!0}));let o=0,s=this.afterRenderEffectManager;for(;owo(c))&&(s.execute(),!this.allViews.some(({_lView:c})=>wo(c))))break}}attachView(n){let i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){let i=n;sd(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let i=this._injector.get(Mr,[]);[...this._bootstrapListeners,...i].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>sd(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new I(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function sd(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}var Sa;function zc(t){Sa??=new WeakMap;let e=Sa.get(t);if(e)return e;let r=t.isStable.pipe(Nt(n=>n)).toPromise().then(()=>{});return Sa.set(t,r),t.onDestroy(()=>Sa?.delete(t)),r}function oN(t,e,r,n){if(!r&&!wo(t))return;Uy(t,e,r&&!n?0:1)}var hf=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},Gc=(()=>{let e=class e{compileModuleSync(n){return new ef(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let i=this.compileModuleSync(n),o=zv(n),s=uy(o.declarations).reduce((a,c)=>{let u=Hn(c);return u&&a.push(new gi(u)),a},[]);return new hf(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var sN=(()=>{let e=class e{constructor(){this.zone=g(P),this.changeDetectionScheduler=g(hi),this.applicationRef=g(rn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function aN({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??=()=>new P(uN()),[{provide:P,useFactory:t},{provide:hn,multi:!0,useFactory:()=>{let r=g(sN,{optional:!0});return()=>r.initialize()}},{provide:hn,multi:!0,useFactory:()=>{let r=g(lN);return()=>{r.initialize()}}},{provide:Rb,useFactory:cN},e===!0?{provide:Zy,useValue:!0}:[]]}function cN(){let t=g(P),e=g(Te);return r=>t.runOutsideAngular(()=>e.handleError(r))}function uN(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var lN=(()=>{let e=class e{constructor(){this.subscription=new ae,this.initialized=!1,this.zone=g(P),this.pendingTasks=g(en)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{P.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{P.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var dN=(()=>{let e=class e{constructor(){this.appRef=g(rn),this.taskService=g(en),this.ngZone=g(P),this.zonelessEnabled=g(qy),this.disableScheduling=g(Zy,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new ae,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof zd||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let i=this.useMicrotaskScheduler?av:Yy;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&P.isInAngularZone())}tick(n){if(this.runningTick||this.appRef.destroyed)return;let i=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(n)},void 0,this.schedulerTickApplyArgs)}catch(o){throw this.taskService.remove(i),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,av(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(i)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function fN(){return typeof $localize<"u"&&$localize.locale||cc}var Go=new v("",{providedIn:"root",factory:()=>g(Go,U.Optional|U.SkipSelf)||fN()});var PD=new v("");var ka=null;function hN(t=[],e){return ke.create({name:e,providers:[{provide:mc,useValue:"platform"},{provide:PD,useValue:new Set([()=>ka=null])},...t]})}function pN(t=[]){if(ka)return ka;let e=hN(t);return ka=e,tN(),mN(e),e}function mN(t){t.get(zf,null)?.forEach(r=>r())}function wh(){return!1}var wt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=gN;let t=e;return t})();function gN(t){return vN(_e(),R(),(t&16)===16)}function vN(t,e,r){if(Ro(t)&&!r){let n=Qt(t.index,e);return new wr(n,n)}else if(t.type&175){let n=e[He];return new wr(n,e)}return null}var pf=class{constructor(){}supports(e){return aD(e)}create(e){return new mf(e)}},bN=(t,e)=>e,mf=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||bN}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,n=this._removalsHead,i=0,o=null;for(;r||n;){let s=!n||r&&r.currentIndex{s=this._trackByFn(i,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,i),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,i)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,i++}),this.length=i;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,n,i){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,o,i)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,i),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,o,i)):e=this._addAfter(new gf(r,n),o,i)),e}_verifyReinsertion(e,r,n,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let i=e._prevRemoved,o=e._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,r,n),this._addToMoves(e,n),e}_moveAfter(e,r,n){return this._unlink(e),this._insertAfter(e,r,n),this._addToMoves(e,n),e}_addAfter(e,r,n){return this._insertAfter(e,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,n){let i=r===null?this._itHead:r._next;return e._next=i,e._prev=r,i===null?this._itTail=e:i._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new uc),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,n=e._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new uc),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},gf=class{constructor(e,r){this.item=e,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},vf=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let r=e._prevDup,n=e._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},uc=class{constructor(){this.map=new Map}put(e){let r=e.trackById,n=this.map.get(r);n||(n=new vf,this.map.set(r,n)),n.add(e)}get(e,r){let n=e,i=this.map.get(n);return i?i.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function wv(t,e,r){let n=t.previousIndex;if(n===null)return n;let i=0;return r&&n{if(r&&r.key===i)this._maybeAddToChanges(r,n),this._appendAfter=r,r=r._next;else{let o=this._getOrCreateRecordForKey(i,n);r=this._insertBeforeOrAppend(r,o)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let n=r;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,r){if(e){let n=e._prev;return r._next=e,r._prev=n,e._prev=r,n&&(n._next=r),e===this._mapHead&&(this._mapHead=r),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(e,r){if(this._records.has(e)){let i=this._records.get(e);this._maybeAddToChanges(i,r);let o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}let n=new Df(e);return this._records.set(e,n),n.currentValue=r,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,r){Object.is(r,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=r,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,r){e instanceof Map?e.forEach(r):Object.keys(e).forEach(n=>r(e[n],n))}},Df=class{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function Ev(){return new Eh([new pf])}var Eh=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,i){if(i!=null){let o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Ev()),deps:[[e,new Mo,new yi]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i!=null)return i;throw new I(901,!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:Ev});let t=e;return t})();function Iv(){return new Wc([new bf])}var Wc=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,i){if(i){let o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Iv()),deps:[[e,new Mo,new yi]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i)return i;throw new I(901,!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:Iv});let t=e;return t})();var LD=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(i){return new(i||e)(p(rn))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();function jD(t){try{let{rootComponent:e,appProviders:r,platformProviders:n}=t,i=pN(n),o=[aN({}),{provide:hi,useExisting:dN},...r||[]],a=new rc({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,c=a.get(P);return c.run(()=>{a.resolveInjectorInitializers();let u=a.get(Te,null),l;c.runOutsideAngular(()=>{l=c.onError.subscribe({next:h=>{u.handleError(h)}})});let d=()=>a.destroy(),f=i.get(PD);return f.add(d),a.onDestroy(()=>{l.unsubscribe(),f.delete(d)}),iN(u,c,()=>{let h=a.get(kD);return h.runInitializers(),h.donePromise.then(()=>{let m=a.get(Go,cc);kA(m||cc);let _=a.get(rn);return e!==void 0&&_.bootstrap(e),_})})})}catch(e){return Promise.reject(e)}}var VD=new v("");var Cv=!1;function yN(){Cv||(Cv=!0,nM(),CA(),zA(),TA(),XT(),TT(),rT(),iS())}function DN(t,e){return zc(t)}function UD(){return yn([{provide:wa,useFactory:()=>{let t=!0;return ni()&&(t=!!g(Ii,{optional:!0})?.get(Gb,null)),t&&yt("NgHydration"),t}},{provide:hn,useValue:()=>{KS(!1),ni()&&g(wa)&&(_N(),yN())},multi:!0},{provide:Yb,useFactory:()=>ni()&&g(wa)},{provide:Mr,useFactory:()=>{if(ni()&&g(wa)){let t=g(rn),e=g(ke);return()=>{DN(t,e).then(()=>{eT(t)})}}return()=>{}},multi:!0}])}function _N(){let t=Dc(),e;for(let r of t.body.childNodes)if(r.nodeType===Node.COMMENT_NODE&&r.textContent?.trim()===eM){e=r;break}if(!e)throw new I(-507,!1)}function Ee(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Ih(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}function on(t,e){yt("NgSignals");let r=Km(t);return e?.equal&&(r[Bt].equal=e.equal),r}function ct(t){let e=$(null);try{return t()}finally{$(e)}}var wN=new v("",{providedIn:"root",factory:()=>g(EN)}),EN=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new _f});let t=e;return t})(),_f=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=g(en),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),this.taskId===null){let r=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(r),this.taskId=null})}}enqueue(e){let r=e.creationZone;this.queues.has(r)||this.queues.set(r,new Set);let n=this.queues.get(r);n.has(e)||(this.queuedEffectCount++,n.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,r]of this.queues)e===null?this.flushQueue(r):e.run(()=>this.flushQueue(r))}flushQueue(e){for(let r of e)e.delete(r),this.queuedEffectCount--,r.run()}},wf=class{constructor(e,r,n,i,o,s){this.scheduler=e,this.effectFn=r,this.creationZone=n,this.injector=o,this.watcher=rg(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(r){this.injector.get(Te,null,{optional:!0})?.handleError(r)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function qc(t,e){yt("NgSignals"),!e?.injector&&Ao(qc);let r=e?.injector??g(ke),n=e?.manualCleanup!==!0?r.get(Cr):null,i=new wf(r.get(wN),t,typeof Zone>"u"?null:Zone.current,n,r,e?.allowSignalWrites??!1),o=r.get(wt,null,{optional:!0});return!o||!(o._lView[F]&8)?i.watcher.notify():(o._lView[Aa]??=[]).push(i.watcher.notify),i}function BD(t){let e=Hn(t);if(!e)return null;let r=new gi(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var YD=null;function sn(){return YD}function KD(t){YD??=t}var nu=class{};var W=new v(""),Ph=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>g(IN),providedIn:"platform"});let t=e;return t})(),QD=new v(""),IN=(()=>{let e=class e extends Ph{constructor(){super(),this._doc=g(W),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return sn().getBaseHref(this._doc)}onPopState(n){let i=sn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){let i=sn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,i,o){this._history.pushState(n,i,o)}replaceState(n,i,o){this._history.replaceState(n,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function Lh(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function $D(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function xn(t){return t&&t[0]!=="?"?"?"+t:t}var Sn=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>g(jh),providedIn:"root"});let t=e;return t})(),XD=new v(""),jh=(()=>{let e=class e extends Sn{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??g(W).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Lh(this._baseHref,n)}path(n=!1){let i=this._platformLocation.pathname+xn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${i}${o}`:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+xn(s));this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+xn(s));this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(p(Ph),p(XD,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),JD=(()=>{let e=class e extends Sn{constructor(n,i){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(n){let i=Lh(this._baseHref,n);return i.length>0?"#"+i:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+xn(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+xn(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(p(Ph),p(XD,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Ai=(()=>{let e=class e{constructor(n){this._subject=new X,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let i=this._locationStrategy.getBaseHref();this._basePath=MN($D(HD(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,i=""){return this.path()==this.normalize(n+xn(i))}normalize(n){return e.stripTrailingSlash(xN(this._basePath,HD(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",o=null){this._locationStrategy.pushState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+xn(i)),o)}replaceState(n,i="",o=null){this._locationStrategy.replaceState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+xn(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(o=>o(n,i))}subscribe(n,i,o){return this._subject.subscribe({next:n,error:i,complete:o})}};e.normalizeQueryParams=xn,e.joinWithSlash=Lh,e.stripTrailingSlash=$D,e.\u0275fac=function(i){return new(i||e)(p(Sn))},e.\u0275prov=D({token:e,factory:()=>CN(),providedIn:"root"});let t=e;return t})();function CN(){return new Ai(p(Sn))}function xN(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function HD(t){return t.replace(/\/index.html$/,"")}function MN(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}var ze=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(ze||{}),se=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(se||{}),ut=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(ut||{}),Jn={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function SN(t){return Dt(t)[fe.LocaleId]}function TN(t,e,r){let n=Dt(t),i=[n[fe.DayPeriodsFormat],n[fe.DayPeriodsStandalone]],o=Et(i,e);return Et(o,r)}function AN(t,e,r){let n=Dt(t),i=[n[fe.DaysFormat],n[fe.DaysStandalone]],o=Et(i,e);return Et(o,r)}function NN(t,e,r){let n=Dt(t),i=[n[fe.MonthsFormat],n[fe.MonthsStandalone]],o=Et(i,e);return Et(o,r)}function RN(t,e){let n=Dt(t)[fe.Eras];return Et(n,e)}function Zc(t,e){let r=Dt(t);return Et(r[fe.DateFormat],e)}function Yc(t,e){let r=Dt(t);return Et(r[fe.TimeFormat],e)}function Kc(t,e){let n=Dt(t)[fe.DateTimeFormat];return Et(n,e)}function su(t,e){let r=Dt(t),n=r[fe.NumberSymbols][e];if(typeof n>"u"){if(e===Jn.CurrencyDecimal)return r[fe.NumberSymbols][Jn.Decimal];if(e===Jn.CurrencyGroup)return r[fe.NumberSymbols][Jn.Group]}return n}function e_(t){if(!t[fe.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[fe.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ON(t){let e=Dt(t);return e_(e),(e[fe.ExtraData][2]||[]).map(n=>typeof n=="string"?xh(n):[xh(n[0]),xh(n[1])])}function FN(t,e,r){let n=Dt(t);e_(n);let i=[n[fe.ExtraData][0],n[fe.ExtraData][1]],o=Et(i,e)||[];return Et(o,r)||[]}function Et(t,e){for(let r=e;r>-1;r--)if(typeof t[r]<"u")return t[r];throw new Error("Locale data API: locale data undefined")}function xh(t){let[e,r]=t.split(":");return{hours:+e,minutes:+r}}var kN=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Qc={},PN=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Mn=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(Mn||{}),K=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(K||{}),Y=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(Y||{});function LN(t,e,r,n){let i=WN(t);e=Cn(r,e)||e;let s=[],a;for(;e;)if(a=PN.exec(e),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;e=l}else{s.push(e);break}let c=i.getTimezoneOffset();n&&(c=n_(n,c),i=GN(i,n,!0));let u="";return s.forEach(l=>{let d=HN(l);u+=d?d(i,r,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function ru(t,e,r){let n=new Date(0);return n.setFullYear(t,e,r),n.setHours(0,0,0),n}function Cn(t,e){let r=SN(t);if(Qc[r]??={},Qc[r][e])return Qc[r][e];let n="";switch(e){case"shortDate":n=Zc(t,ut.Short);break;case"mediumDate":n=Zc(t,ut.Medium);break;case"longDate":n=Zc(t,ut.Long);break;case"fullDate":n=Zc(t,ut.Full);break;case"shortTime":n=Yc(t,ut.Short);break;case"mediumTime":n=Yc(t,ut.Medium);break;case"longTime":n=Yc(t,ut.Long);break;case"fullTime":n=Yc(t,ut.Full);break;case"short":let i=Cn(t,"shortTime"),o=Cn(t,"shortDate");n=Xc(Kc(t,ut.Short),[i,o]);break;case"medium":let s=Cn(t,"mediumTime"),a=Cn(t,"mediumDate");n=Xc(Kc(t,ut.Medium),[s,a]);break;case"long":let c=Cn(t,"longTime"),u=Cn(t,"longDate");n=Xc(Kc(t,ut.Long),[c,u]);break;case"full":let l=Cn(t,"fullTime"),d=Cn(t,"fullDate");n=Xc(Kc(t,ut.Full),[l,d]);break}return n&&(Qc[r][e]=n),n}function Xc(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(r,n){return e!=null&&n in e?e[n]:r})),t}function Lt(t,e,r="-",n,i){let o="";(t<0||i&&t<=0)&&(i?t=-t+1:(t=-t,o=r));let s=String(t);for(;s.length0||a>-r)&&(a+=r),t===K.Hours)a===0&&r===-12&&(a=12);else if(t===K.FractionalSeconds)return jN(a,e);let c=su(s,Jn.MinusSign);return Lt(a,e,c,n,i)}}function VN(t,e){switch(t){case K.FullYear:return e.getFullYear();case K.Month:return e.getMonth();case K.Date:return e.getDate();case K.Hours:return e.getHours();case K.Minutes:return e.getMinutes();case K.Seconds:return e.getSeconds();case K.FractionalSeconds:return e.getMilliseconds();case K.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function ue(t,e,r=ze.Format,n=!1){return function(i,o){return UN(i,o,t,e,r,n)}}function UN(t,e,r,n,i,o){switch(r){case Y.Months:return NN(e,i,n)[t.getMonth()];case Y.Days:return AN(e,i,n)[t.getDay()];case Y.DayPeriods:let s=t.getHours(),a=t.getMinutes();if(o){let u=ON(e),l=FN(e,i,n),d=u.findIndex(f=>{if(Array.isArray(f)){let[h,m]=f,_=s>=h.hours&&a>=h.minutes,w=s0?Math.floor(i/60):Math.ceil(i/60);switch(t){case Mn.Short:return(i>=0?"+":"")+Lt(s,2,o)+Lt(Math.abs(i%60),2,o);case Mn.ShortGMT:return"GMT"+(i>=0?"+":"")+Lt(s,1,o);case Mn.Long:return"GMT"+(i>=0?"+":"")+Lt(s,2,o)+":"+Lt(Math.abs(i%60),2,o);case Mn.Extended:return n===0?"Z":(i>=0?"+":"")+Lt(s,2,o)+":"+Lt(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}var BN=0,tu=4;function $N(t){let e=ru(t,BN,1).getDay();return ru(t,0,1+(e<=tu?tu:tu+7)-e)}function t_(t){let e=t.getDay(),r=e===0?-3:tu-e;return ru(t.getFullYear(),t.getMonth(),t.getDate()+r)}function Mh(t,e=!1){return function(r,n){let i;if(e){let o=new Date(r.getFullYear(),r.getMonth(),1).getDay()-1,s=r.getDate();i=1+Math.floor((s+o)/7)}else{let o=t_(r),s=$N(o.getFullYear()),a=o.getTime()-s.getTime();i=1+Math.round(a/6048e5)}return Lt(i,t,su(n,Jn.MinusSign))}}function eu(t,e=!1){return function(r,n){let o=t_(r).getFullYear();return Lt(o,t,su(n,Jn.MinusSign),e)}}var Sh={};function HN(t){if(Sh[t])return Sh[t];let e;switch(t){case"G":case"GG":case"GGG":e=ue(Y.Eras,se.Abbreviated);break;case"GGGG":e=ue(Y.Eras,se.Wide);break;case"GGGGG":e=ue(Y.Eras,se.Narrow);break;case"y":e=he(K.FullYear,1,0,!1,!0);break;case"yy":e=he(K.FullYear,2,0,!0,!0);break;case"yyy":e=he(K.FullYear,3,0,!1,!0);break;case"yyyy":e=he(K.FullYear,4,0,!1,!0);break;case"Y":e=eu(1);break;case"YY":e=eu(2,!0);break;case"YYY":e=eu(3);break;case"YYYY":e=eu(4);break;case"M":case"L":e=he(K.Month,1,1);break;case"MM":case"LL":e=he(K.Month,2,1);break;case"MMM":e=ue(Y.Months,se.Abbreviated);break;case"MMMM":e=ue(Y.Months,se.Wide);break;case"MMMMM":e=ue(Y.Months,se.Narrow);break;case"LLL":e=ue(Y.Months,se.Abbreviated,ze.Standalone);break;case"LLLL":e=ue(Y.Months,se.Wide,ze.Standalone);break;case"LLLLL":e=ue(Y.Months,se.Narrow,ze.Standalone);break;case"w":e=Mh(1);break;case"ww":e=Mh(2);break;case"W":e=Mh(1,!0);break;case"d":e=he(K.Date,1);break;case"dd":e=he(K.Date,2);break;case"c":case"cc":e=he(K.Day,1);break;case"ccc":e=ue(Y.Days,se.Abbreviated,ze.Standalone);break;case"cccc":e=ue(Y.Days,se.Wide,ze.Standalone);break;case"ccccc":e=ue(Y.Days,se.Narrow,ze.Standalone);break;case"cccccc":e=ue(Y.Days,se.Short,ze.Standalone);break;case"E":case"EE":case"EEE":e=ue(Y.Days,se.Abbreviated);break;case"EEEE":e=ue(Y.Days,se.Wide);break;case"EEEEE":e=ue(Y.Days,se.Narrow);break;case"EEEEEE":e=ue(Y.Days,se.Short);break;case"a":case"aa":case"aaa":e=ue(Y.DayPeriods,se.Abbreviated);break;case"aaaa":e=ue(Y.DayPeriods,se.Wide);break;case"aaaaa":e=ue(Y.DayPeriods,se.Narrow);break;case"b":case"bb":case"bbb":e=ue(Y.DayPeriods,se.Abbreviated,ze.Standalone,!0);break;case"bbbb":e=ue(Y.DayPeriods,se.Wide,ze.Standalone,!0);break;case"bbbbb":e=ue(Y.DayPeriods,se.Narrow,ze.Standalone,!0);break;case"B":case"BB":case"BBB":e=ue(Y.DayPeriods,se.Abbreviated,ze.Format,!0);break;case"BBBB":e=ue(Y.DayPeriods,se.Wide,ze.Format,!0);break;case"BBBBB":e=ue(Y.DayPeriods,se.Narrow,ze.Format,!0);break;case"h":e=he(K.Hours,1,-12);break;case"hh":e=he(K.Hours,2,-12);break;case"H":e=he(K.Hours,1);break;case"HH":e=he(K.Hours,2);break;case"m":e=he(K.Minutes,1);break;case"mm":e=he(K.Minutes,2);break;case"s":e=he(K.Seconds,1);break;case"ss":e=he(K.Seconds,2);break;case"S":e=he(K.FractionalSeconds,1);break;case"SS":e=he(K.FractionalSeconds,2);break;case"SSS":e=he(K.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Jc(Mn.Short);break;case"ZZZZZ":e=Jc(Mn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Jc(Mn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Jc(Mn.Long);break;default:return null}return Sh[t]=e,e}function n_(t,e){t=t.replace(/:/g,"");let r=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(r)?e:r}function zN(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function GN(t,e,r){let n=r?-1:1,i=t.getTimezoneOffset(),o=n_(e,i);return zN(t,n*(o-i))}function WN(t){if(zD(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[i,o=1,s=1]=t.split("-").map(a=>+a);return ru(i,o-1,s)}let r=parseFloat(t);if(!isNaN(t-r))return new Date(r);let n;if(n=t.match(kN))return qN(n)}let e=new Date(t);if(!zD(e))throw new Error(`Unable to convert "${t}" into a date`);return e}function qN(t){let e=new Date(0),r=0,n=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(r=Number(t[9]+t[10]),n=Number(t[9]+t[11])),i.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-r,a=Number(t[5]||0)-n,c=Number(t[6]||0),u=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(e,s,a,c,u),e}function zD(t){return t instanceof Date&&!isNaN(t.valueOf())}function au(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[i,o]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var Th=/\s+/,GD=[],M3=(()=>{let e=class e{constructor(n,i){this._ngEl=n,this._renderer=i,this.initialClasses=GD,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(Th):GD}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Th):n}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let i of n)this._updateState(i,!0);else if(n!=null)for(let i of Object.keys(n))this._updateState(i,!!n[i]);this._applyStateDiff()}_updateState(n,i){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(n,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let i=n[0],o=n[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(n,i){n=n.trim(),n.length>0&&n.split(Th).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(tn))},e.\u0275dir=G({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var Ah=class{constructor(e,r,n,i){this.$implicit=e,this.ngForOf=r,this.index=n,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},S3=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,i,o){this._viewContainer=n,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let i=this._viewContainer;n.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new Ah(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(s===null?void 0:s);else if(s!==null){let c=i.get(s);i.move(c,a),WD(c,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);WD(s,o)})}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(y(Pt),y(bn),y(Eh))},e.\u0275dir=G({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function WD(t,e){t.context.$implicit=e.item}var T3=(()=>{let e=class e{constructor(n,i){this._viewContainer=n,this._context=new Nh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){qD("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){qD("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(y(Pt),y(bn))},e.\u0275dir=G({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),Nh=class{constructor(){this.$implicit=null,this.ngIf=null}};function qD(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${$e(e)}'.`)}var iu=class{constructor(e,r){this._viewContainerRef=e,this._templateRef=r,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}},r_=(()=>{let e=class e{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(n){this._ngSwitch=n,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(n){this._defaultViews.push(n)}_matchCase(n){let i=n===this._ngSwitch;return this._lastCasesMatched||=i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(n){if(this._defaultViews.length>0&&n!==this._defaultUsed){this._defaultUsed=n;for(let i of this._defaultViews)i.enforceState(n)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=G({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});let t=e;return t})(),A3=(()=>{let e=class e{constructor(n,i,o){this.ngSwitch=o,o._addCase(),this._view=new iu(n,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}};e.\u0275fac=function(i){return new(i||e)(y(Pt),y(bn),y(r_,9))},e.\u0275dir=G({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});let t=e;return t})(),N3=(()=>{let e=class e{constructor(n,i,o){o._addDefault(new iu(n,i))}};e.\u0275fac=function(i){return new(i||e)(y(Pt),y(bn),y(r_,9))},e.\u0275dir=G({type:e,selectors:[["","ngSwitchDefault",""]],standalone:!0});let t=e;return t})();var R3=(()=>{let e=class e{constructor(n,i,o){this._ngEl=n,this._differs=i,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,i){let[o,s]=n.split("."),a=o.indexOf("-")===-1?void 0:Xt.DashCase;i!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,s?`${i}${s}`:i,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(n){n.forEachRemovedItem(i=>this._setStyle(i.key,null)),n.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),n.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(Wc),y(tn))},e.\u0275dir=G({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let t=e;return t})(),O3=(()=>{let e=class e{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,i,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,o):!1,get:(n,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}};e.\u0275fac=function(i){return new(i||e)(y(Pt))},e.\u0275dir=G({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[it]});let t=e;return t})();function i_(t,e){return new I(2100,!1)}var Rh=class{createSubscription(e,r){return ct(()=>e.subscribe({next:r,error:n=>{throw n}}))}dispose(e){ct(()=>e.unsubscribe())}},Oh=class{createSubscription(e,r){return e.then(r,n=>{throw n})}dispose(e){}},ZN=new Oh,YN=new Rh,F3=(()=>{let e=class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,i=>this._updateLatestValue(n,i))}_selectStrategy(n){if(Xn(n))return ZN;if(_h(n))return YN;throw i_(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,i){n===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(i){return new(i||e)(y(wt,16))},e.\u0275pipe=pc({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var KN="mediumDate",QN=new v(""),XN=new v(""),k3=(()=>{let e=class e{constructor(n,i,o){this.locale=n,this.defaultTimezone=i,this.defaultOptions=o}transform(n,i,o,s){if(n==null||n===""||n!==n)return null;try{let a=i??this.defaultOptions?.dateFormat??KN,c=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return LN(n,a,s||this.locale,c)}catch(a){throw i_(e,a.message)}}};e.\u0275fac=function(i){return new(i||e)(y(Go,16),y(QN,24),y(XN,24))},e.\u0275pipe=pc({name:"date",type:e,pure:!0,standalone:!0});let t=e;return t})();function JN(t,e){return{key:t,value:e}}var P3=(()=>{let e=class e{constructor(n){this.differs=n,this.keyValues=[],this.compareFn=ZD}transform(n,i=ZD){if(!n||!(n instanceof Map)&&typeof n!="object")return null;this.differ??=this.differs.find(n).create();let o=this.differ.diff(n),s=i!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(JN(a.key,a.currentValue))})),(o||s)&&(this.keyValues.sort(i),this.compareFn=i),this.keyValues}};e.\u0275fac=function(i){return new(i||e)(y(Wc,16))},e.\u0275pipe=pc({name:"keyvalue",type:e,pure:!1,standalone:!0});let t=e;return t})();function ZD(t,e){let r=t.key,n=e.key;if(r===n)return 0;if(r===void 0)return 1;if(n===void 0)return-1;if(r===null)return 1;if(n===null)return-1;if(typeof r=="string"&&typeof n=="string")return r{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),Vh="browser",eR="server";function Uh(t){return t===Vh}function Wo(t){return t===eR}var s_=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>Uh(g(Qe))?new Fh(g(W),window):new kh});let t=e;return t})(),Fh=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let r=tR(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),n=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],i-o[1])}};function tR(t,e){let r=t.getElementById(e)||t.getElementsByName(e)[0];if(r)return r;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=n.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}i=n.nextNode()}}return null}var kh=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},Ti=class{};var Zo=class{},lu=class{},cn=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` +`).forEach(r=>{let n=r.indexOf(":");if(n>0){let i=r.slice(0,n),o=i.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,r);let i=(e.op==="a"?this.headers.get(r):void 0)||[];i.push(...n),this.headers.set(r,i);break;case"d":let o=e.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(e,r){let n=(Array.isArray(r)?r:[r]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var $h=class{encodeKey(e){return c_(e)}encodeValue(e){return c_(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function nR(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],c=r.get(s)||[];c.push(a),r.set(s,c)}),r}var rR=/%(\d[a-f0-9])/gi,iR={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function c_(t){return encodeURIComponent(t).replace(rR,(e,r)=>iR[r]??e)}function cu(t){return`${t}`}var an=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new $h,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=nR(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let n=e.fromObject[r],i=Array.isArray(n)?n.map(cu):[cu(n)];this.map.set(r,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(n=>{let i=e[n];Array.isArray(i)?i.forEach(o=>{r.push({param:n,value:o,op:"a"})}):r.push({param:n,value:i,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(cu(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],i=n.indexOf(cu(e.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var Hh=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function oR(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function u_(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function l_(t){return typeof Blob<"u"&&t instanceof Blob}function d_(t){return typeof FormData<"u"&&t instanceof FormData}function sR(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var qo=class t{constructor(e,r,n,i){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(oR(this.method)||i?(this.body=n!==void 0?n:null,o=i):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new cn,this.context??=new Hh,!this.params)this.params=new an,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),c=a===-1?"?":af.set(h,e.setHeaders[h]),u)),e.setParams&&(l=Object.keys(e.setParams).reduce((f,h)=>f.set(h,e.setParams[h]),l)),new t(r,n,s,{params:l,headers:u,context:d,reportProgress:c,responseType:i,withCredentials:a,transferCache:o})}},tr=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(tr||{}),Yo=class{constructor(e,r=200,n="OK"){this.headers=e.headers||new cn,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},du=class t extends Yo{constructor(e={}){super(e),this.type=tr.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Sr=class t extends Yo{constructor(e={}){super(e),this.type=tr.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},er=class extends Yo{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},E_=200,aR=204;function Bh(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Wh=(()=>{let e=class e{constructor(n){this.handler=n}request(n,i,o={}){let s;if(n instanceof qo)s=n;else{let u;o.headers instanceof cn?u=o.headers:u=new cn(o.headers);let l;o.params&&(o.params instanceof an?l=o.params:l=new an({fromObject:o.params})),s=new qo(n,i,o.body!==void 0?o.body:null,{headers:u,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=x(s).pipe(Wt(u=>this.handler.handle(u)));if(n instanceof qo||o.observe==="events")return a;let c=a.pipe(le(u=>u instanceof Sr));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(C(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return c.pipe(C(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return c.pipe(C(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return c.pipe(C(u=>u.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,i={}){return this.request("DELETE",n,i)}get(n,i={}){return this.request("GET",n,i)}head(n,i={}){return this.request("HEAD",n,i)}jsonp(n,i){return this.request("JSONP",n,{params:new an().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,i={}){return this.request("OPTIONS",n,i)}patch(n,i,o={}){return this.request("PATCH",n,Bh(o,i))}post(n,i,o={}){return this.request("POST",n,Bh(o,i))}put(n,i,o={}){return this.request("PUT",n,Bh(o,i))}};e.\u0275fac=function(i){return new(i||e)(p(Zo))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),cR=/^\)\]\}',?\n/,uR="X-Request-URL";function f_(t){if(t.url)return t.url;let e=uR.toLocaleLowerCase();return t.headers.get(e)}var lR=(()=>{let e=class e{constructor(){this.fetchImpl=g(zh,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=g(P)}handle(n){return new N(i=>{let o=new AbortController;return this.doRequest(n,o.signal,i).then(Gh,s=>i.error(new er({error:s}))),()=>o.abort()})}doRequest(n,i,o){return Vr(this,null,function*(){let s=this.createRequestInit(n),a;try{let m=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,b({signal:i},s)));dR(m),o.next({type:tr.Sent}),a=yield m}catch(m){o.error(new er({error:m,status:m.status??0,statusText:m.statusText,url:n.urlWithParams,headers:m.headers}));return}let c=new cn(a.headers),u=a.statusText,l=f_(a)??n.urlWithParams,d=a.status,f=null;if(n.reportProgress&&o.next(new du({headers:c,status:d,statusText:u,url:l})),a.body){let m=a.headers.get("content-length"),_=[],w=a.body.getReader(),E=0,k,q,Z=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Vr(this,null,function*(){for(;;){let{done:pe,value:ft}=yield w.read();if(pe)break;if(_.push(ft),E+=ft.length,n.reportProgress){q=n.responseType==="text"?(q??"")+(k??=new TextDecoder).decode(ft,{stream:!0}):void 0;let jr=()=>o.next({type:tr.DownloadProgress,total:m?+m:void 0,loaded:E,partialText:q});Z?Z.run(jr):jr()}}}));let We=this.concatChunks(_,E);try{let pe=a.headers.get("Content-Type")??"";f=this.parseBody(n,We,pe)}catch(pe){o.error(new er({error:pe,headers:new cn(a.headers),status:a.status,statusText:a.statusText,url:f_(a)??n.urlWithParams}));return}}d===0&&(d=f?E_:0),d>=200&&d<300?(o.next(new Sr({body:f,headers:c,status:d,statusText:u,url:l})),o.complete()):o.error(new er({error:f,headers:c,status:d,statusText:u,url:l}))})}parseBody(n,i,o){switch(n.responseType){case"json":let s=new TextDecoder().decode(i).replace(cR,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(i);case"blob":return new Blob([i],{type:o});case"arraybuffer":return i.buffer}}createRequestInit(n){let i={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((s,a)=>i[s]=a.join(",")),n.headers.has("Accept")||(i.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let s=n.detectContentTypeHeader();s!==null&&(i["Content-Type"]=s)}return{body:n.serializeBody(),method:n.method,headers:i,credentials:o}}concatChunks(n,i){let o=new Uint8Array(i),s=0;for(let a of n)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),zh=class{};function Gh(){}function dR(t){t.then(Gh,Gh)}function I_(t,e){return e(t)}function fR(t,e){return(r,n)=>e.intercept(r,{handle:i=>t(i,n)})}function hR(t,e,r){return(n,i)=>rt(r,()=>e(n,o=>t(o,i)))}var pR=new v(""),qh=new v(""),C_=new v(""),x_=new v("",{providedIn:"root",factory:()=>!0});function mR(){let t=null;return(e,r)=>{t===null&&(t=(g(pR,{optional:!0})??[]).reduceRight(fR,I_));let n=g(en);if(g(x_)){let o=n.add();return t(e,r).pipe(ht(()=>n.remove(o)))}else return t(e,r)}}var h_=(()=>{let e=class e extends Zo{constructor(n,i){super(),this.backend=n,this.injector=i,this.chain=null,this.pendingTasks=g(en),this.contributeToStability=g(x_)}handle(n){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(qh),...this.injector.get(C_,[])]));this.chain=i.reduceRight((o,s)=>hR(o,s,this.injector),I_)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(ht(()=>this.pendingTasks.remove(i)))}else return this.chain(n,i=>this.backend.handle(i))}};e.\u0275fac=function(i){return new(i||e)(p(lu),p(Fe))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var gR=/^\)\]\}',?\n/;function vR(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var p_=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new I(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?re(i.\u0275loadImpl()):x(null)).pipe(Ve(()=>new N(s=>{let a=i.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((w,E)=>a.setRequestHeader(w,E.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let w=n.detectContentTypeHeader();w!==null&&a.setRequestHeader("Content-Type",w)}if(n.responseType){let w=n.responseType.toLowerCase();a.responseType=w!=="json"?w:"text"}let c=n.serializeBody(),u=null,l=()=>{if(u!==null)return u;let w=a.statusText||"OK",E=new cn(a.getAllResponseHeaders()),k=vR(a)||n.url;return u=new du({headers:E,status:a.status,statusText:w,url:k}),u},d=()=>{let{headers:w,status:E,statusText:k,url:q}=l(),Z=null;E!==aR&&(Z=typeof a.response>"u"?a.responseText:a.response),E===0&&(E=Z?E_:0);let We=E>=200&&E<300;if(n.responseType==="json"&&typeof Z=="string"){let pe=Z;Z=Z.replace(gR,"");try{Z=Z!==""?JSON.parse(Z):null}catch(ft){Z=pe,We&&(We=!1,Z={error:ft,text:Z})}}We?(s.next(new Sr({body:Z,headers:w,status:E,statusText:k,url:q||void 0})),s.complete()):s.error(new er({error:Z,headers:w,status:E,statusText:k,url:q||void 0}))},f=w=>{let{url:E}=l(),k=new er({error:w,status:a.status||0,statusText:a.statusText||"Unknown Error",url:E||void 0});s.error(k)},h=!1,m=w=>{h||(s.next(l()),h=!0);let E={type:tr.DownloadProgress,loaded:w.loaded};w.lengthComputable&&(E.total=w.total),n.responseType==="text"&&a.responseText&&(E.partialText=a.responseText),s.next(E)},_=w=>{let E={type:tr.UploadProgress,loaded:w.loaded};w.lengthComputable&&(E.total=w.total),s.next(E)};return a.addEventListener("load",d),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),n.reportProgress&&(a.addEventListener("progress",m),c!==null&&a.upload&&a.upload.addEventListener("progress",_)),a.send(c),s.next({type:tr.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",d),a.removeEventListener("timeout",f),n.reportProgress&&(a.removeEventListener("progress",m),c!==null&&a.upload&&a.upload.removeEventListener("progress",_)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(p(Ti))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),M_=new v(""),bR="XSRF-TOKEN",yR=new v("",{providedIn:"root",factory:()=>bR}),DR="X-XSRF-TOKEN",_R=new v("",{providedIn:"root",factory:()=>DR}),fu=class{},wR=(()=>{let e=class e{constructor(n,i,o){this.doc=n,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=au(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(p(W),p(Qe),p(yR))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function ER(t,e){let r=t.url.toLowerCase();if(!g(M_)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let n=g(fu).getToken(),i=g(_R);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),e(t)}var S_=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(S_||{});function IR(t,e){return{\u0275kind:t,\u0275providers:e}}function Z3(...t){let e=[Wh,p_,h_,{provide:Zo,useExisting:h_},{provide:lu,useFactory:()=>g(lR,{optional:!0})??g(p_)},{provide:qh,useValue:ER,multi:!0},{provide:M_,useValue:!0},{provide:fu,useClass:wR}];for(let r of t)e.push(...r.\u0275providers);return yn(e)}var m_=new v("");function Y3(){return IR(S_.LegacyInterceptors,[{provide:m_,useFactory:mR},{provide:qh,useExisting:m_,multi:!0}])}var CR=new v(""),g_="b",v_="h",b_="s",y_="st",D_="u",__="rt",uu=new v(""),xR=["GET","HEAD"];function MR(t,e){let h=g(uu),{isCacheActive:r}=h,n=Um(h,["isCacheActive"]),{transferCache:i,method:o}=t;if(!r||i===!1||o==="POST"&&!n.includePostRequests&&!i||o!=="POST"&&!xR.includes(o)||!n.includeRequestsWithAuthHeaders&&SR(t)||n.filter?.(t)===!1)return e(t);let s=g(Ii),a=g(CR,{optional:!0}),c=Wo(g(Qe));if(a&&!c)throw new I(2803,!1);let u=c&&a?RR(t.url,a):t.url,l=AR(t,u),d=s.get(l,null),f=n.includeHeaders;if(typeof i=="object"&&i.includeHeaders&&(f=i.includeHeaders),d){let{[g_]:m,[__]:_,[v_]:w,[b_]:E,[y_]:k,[D_]:q}=d,Z=m;switch(_){case"arraybuffer":Z=new TextEncoder().encode(m).buffer;break;case"blob":Z=new Blob([m]);break}let We=new cn(w);return x(new Sr({body:Z,headers:We,status:E,statusText:k,url:q}))}return e(t).pipe(ee(m=>{m instanceof Sr&&c&&s.set(l,{[g_]:m.body,[v_]:TR(m.headers,f),[b_]:m.status,[y_]:m.statusText,[D_]:u,[__]:t.responseType})}))}function SR(t){return t.headers.has("authorization")||t.headers.has("proxy-authorization")}function TR(t,e){if(!e)return{};let r={};for(let n of e){let i=t.getAll(n);i!==null&&(r[n]=i)}return r}function w_(t){return[...t.keys()].sort().map(e=>`${e}=${t.getAll(e)}`).join("&")}function AR(t,e){let{params:r,method:n,responseType:i}=t,o=w_(r),s=t.serializeBody();s instanceof URLSearchParams?s=w_(s):typeof s!="string"&&(s="");let a=[n,i,e,s,o].join("|"),c=NR(a);return c}function NR(t){let e=0;for(let r of t)e=Math.imul(31,e)+r.charCodeAt(0)<<0;return e+=2147483648,e.toString()}function T_(t){return[{provide:uu,useFactory:()=>(yt("NgHttpTransferCache"),b({isCacheActive:!0},t))},{provide:C_,useValue:MR,multi:!0,deps:[Ii,uu]},{provide:Mr,multi:!0,useFactory:()=>{let e=g(rn),r=g(uu);return()=>{zc(e).then(()=>{r.isCacheActive=!1})}}}]}function RR(t,e){let r=new URL(t,"resolve://").origin,n=e[r];return n?t.replace(r,n):t}var Kh=class extends nu{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Qh=class t extends Kh{static makeCurrent(){KD(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=FR();return r==null?null:kR(r)}resetBaseElement(){Ko=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return au(document.cookie,e)}},Ko=null;function FR(){return Ko=Ko||document.querySelector("base"),Ko?Ko.getAttribute("href"):null}function kR(t){return new URL(t,document.baseURI).pathname}var Xh=class{addToWindow(e){ye.getAngularTestability=(n,i=!0)=>{let o=e.findTestabilityInTree(n,i);if(o==null)throw new I(5103,!1);return o},ye.getAllAngularTestabilities=()=>e.getAllTestabilities(),ye.getAllAngularRootElements=()=>e.getAllRootElements();let r=n=>{let i=ye.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&n()};i.forEach(a=>{a.whenStable(s)})};ye.frameworkStabilizers||(ye.frameworkStabilizers=[]),ye.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,n){if(r==null)return null;let i=e.getTestability(r);return i??(n?sn().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},PR=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),hu=new v(""),O_=(()=>{let e=class e{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,o){return this._findPluginFor(i).addEventListener(n,i,o)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(s=>s.supports(n)),!i)throw new I(5101,!1);return this._eventNameToPlugin.set(n,i),i}};e.\u0275fac=function(i){return new(i||e)(p(hu),p(P))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Qo=class{constructor(e){this._doc=e}},Zh="ng-app-id",F_=(()=>{let e=class e{constructor(n,i,o,s={}){this.doc=n,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Wo(s),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(o=>o.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Zh}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(n,i){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=i,s.usage}return o.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===n)return o.delete(i),s.removeAttribute(Zh),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Zh,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let o=this.getStyleElement(n,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(p(W),p(xr),p(ko,8),p(Qe))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Yh={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},tp=/%COMP%/g,k_="%COMP%",LR=`_nghost-${k_}`,jR=`_ngcontent-${k_}`,VR=!0,UR=new v("",{providedIn:"root",factory:()=>VR});function BR(t){return jR.replace(tp,t)}function $R(t){return LR.replace(tp,t)}function P_(t,e){return e.map(r=>r.replace(tp,t))}var A_=(()=>{let e=class e{constructor(n,i,o,s,a,c,u,l=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=u,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Wo(c),this.defaultRenderer=new Xo(n,a,u,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Yt.ShadowDom&&(i=O(b({},i),{encapsulation:Yt.Emulated}));let o=this.getOrCreateRenderer(n,i);return o instanceof pu?o.applyToHost(n):o instanceof Jo&&o.applyStyles(),o}getOrCreateRenderer(n,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,c=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(i.encapsulation){case Yt.Emulated:s=new pu(u,l,i,this.appId,d,a,c,f);break;case Yt.ShadowDom:return new Jh(u,l,n,i,a,c,this.nonce,f);default:s=new Jo(u,l,i,d,a,c,f);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(p(O_),p(F_),p(xr),p(UR),p(W),p(Qe),p(P),p(ko))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Xo=class{constructor(e,r,n,i){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(Yh[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(N_(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(N_(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new I(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,i){if(i){r=i+":"+r;let o=Yh[i];o?e.setAttributeNS(o,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let i=Yh[n];i?e.removeAttributeNS(i,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,i){i&(Xt.DashCase|Xt.Important)?e.style.setProperty(r,n,i&Xt.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&Xt.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=sn().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function N_(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Jh=class extends Xo{constructor(e,r,n,i,o,s,a,c){super(e,o,s,c),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=P_(i.id,i.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Jo=class extends Xo{constructor(e,r,n,i,o,s,a,c){super(e,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=c?P_(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},pu=class extends Jo{constructor(e,r,n,i,o,s,a,c){let u=i+"-"+n.id;super(e,r,n,o,s,a,c,u),this.contentAttr=BR(u),this.hostAttr=$R(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},HR=(()=>{let e=class e extends Qo{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,o){return n.addEventListener(i,o,!1),()=>this.removeEventListener(n,i,o)}removeEventListener(n,i,o){return n.removeEventListener(i,o)}};e.\u0275fac=function(i){return new(i||e)(p(W))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),zR=(()=>{let e=class e extends Qo{constructor(n){super(n),this.delegate=g(VD,{optional:!0})}supports(n){return this.delegate?this.delegate.supports(n):!1}addEventListener(n,i,o){return this.delegate.addEventListener(n,i,o)}removeEventListener(n,i,o){return this.delegate.removeEventListener(n,i,o)}};e.\u0275fac=function(i){return new(i||e)(p(W))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),R_=["alt","control","meta","shift"],GR={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},WR={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},qR=(()=>{let e=class e extends Qo{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,i,o){let s=e.parseEventName(i),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>sn().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(i.pop()),a="",c=i.indexOf("code");if(c>-1&&(i.splice(c,1),a="code."),R_.forEach(l=>{let d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=s,i.length!=0||s.length===0)return null;let u={};return u.domEventName=o,u.fullKey=a,u}static matchEventFullKeyCode(n,i){let o=GR[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),R_.forEach(a=>{if(a!==o){let c=WR[a];c(n)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(n,i,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>i(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(i){return new(i||e)(p(W))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function l4(t,e){return jD(b({rootComponent:t},ZR(e)))}function ZR(t){return{appProviders:[...L_,...t?.providers??[]],platformProviders:XR}}function YR(){Qh.makeCurrent()}function KR(){return new Te}function QR(){return Ub(document),document}var XR=[{provide:Qe,useValue:Vh},{provide:zf,useValue:YR,multi:!0},{provide:W,useFactory:QR,deps:[]}];var JR=new v(""),eO=[{provide:zo,useClass:Xh,deps:[]},{provide:yh,useClass:Bc,deps:[P,$c,zo]},{provide:Bc,useClass:Bc,deps:[P,$c,zo]}],L_=[{provide:mc,useValue:"root"},{provide:Te,useFactory:KR,deps:[]},{provide:hu,useClass:HR,multi:!0,deps:[W,P,Qe]},{provide:hu,useClass:qR,multi:!0,deps:[W]},{provide:hu,useClass:zR,multi:!0},A_,F_,O_,{provide:mi,useExisting:A_},{provide:Ti,useClass:PR,deps:[]},[]],d4=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:xr,useValue:n.appId}]}}};e.\u0275fac=function(i){return new(i||e)(p(JR,12))},e.\u0275mod=z({type:e}),e.\u0275inj=H({providers:[...L_,...eO],imports:[o_,LD]});let t=e;return t})();var j_=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(i){return new(i||e)(p(W))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var np=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:function(i){let o=null;return i?o=new(i||e):o=p(tO),o},providedIn:"root"});let t=e;return t})(),tO=(()=>{let e=class e extends np{constructor(n){super(),this._doc=n}sanitize(n,i){if(i==null)return null;switch(n){case Pe.NONE:return i;case Pe.HTML:return Qn(i,"HTML")?vt(i):sy(this._doc,String(i)).toString();case Pe.STYLE:return Qn(i,"Style")?vt(i):i;case Pe.SCRIPT:if(Qn(i,"Script"))return vt(i);throw new I(5200,!1);case Pe.URL:return Qn(i,"URL")?vt(i):Ic(String(i));case Pe.RESOURCE_URL:if(Qn(i,"ResourceURL"))return vt(i);throw new I(5201,!1);default:throw new I(5202,!1)}}bypassSecurityTrustHtml(n){return Kb(n)}bypassSecurityTrustStyle(n){return Qb(n)}bypassSecurityTrustScript(n){return Xb(n)}bypassSecurityTrustUrl(n){return Jb(n)}bypassSecurityTrustResourceUrl(n){return ey(n)}};e.\u0275fac=function(i){return new(i||e)(p(W))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ep=function(t){return t[t.NoHttpTransferCache=0]="NoHttpTransferCache",t[t.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",t[t.I18nSupport=2]="I18nSupport",t[t.EventReplay=3]="EventReplay",t}(ep||{});function f4(...t){let e=[],r=new Set,n=r.has(ep.HttpTransferCacheOptions);for(let{\u0275providers:i,\u0275kind:o}of t)r.add(o),i.length&&e.push(i);return yn([[],UD(),r.has(ep.NoHttpTransferCache)||n?[]:T_({}),e])}var j="primary",ps=Symbol("RouteTitle"),ap=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function Pi(t){return new ap(t)}function nO(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[o]===i)}else return t===e}function X_(t){return t.length>0?t[t.length-1]:null}function ir(t){return kl(t)?t:Xn(t)?re(Promise.resolve(t)):x(t)}var iO={exact:ew,subset:tw},J_={exact:oO,subset:sO,ignored:()=>!0};function U_(t,e,r){return iO[r.paths](t.root,e.root,r.matrixParams)&&J_[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function oO(t,e){return un(t,e)}function ew(t,e,r){if(!Ar(t.segments,e.segments)||!vu(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!ew(t.children[n],e.children[n],r))return!1;return!0}function sO(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>Q_(t[r],e[r]))}function tw(t,e,r){return nw(t,e,e.segments,r)}function nw(t,e,r,n){if(t.segments.length>r.length){let i=t.segments.slice(0,r.length);return!(!Ar(i,r)||e.hasChildren()||!vu(i,r,n))}else if(t.segments.length===r.length){if(!Ar(t.segments,r)||!vu(t.segments,r,n))return!1;for(let i in e.children)if(!t.children[i]||!tw(t.children[i],e.children[i],n))return!1;return!0}else{let i=r.slice(0,t.segments.length),o=r.slice(t.segments.length);return!Ar(t.segments,i)||!vu(t.segments,i,n)||!t.children[j]?!1:nw(t.children[j],e,o,n)}}function vu(t,e,r){return e.every((n,i)=>J_[r](t[i].parameters,n.parameters))}var An=class{constructor(e=new J([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Pi(this.queryParams),this._queryParamMap}toString(){return uO.serialize(this)}},J=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bu(this)}},Tr=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=Pi(this.parameters),this._parameterMap}toString(){return iw(this)}};function aO(t,e){return Ar(t,e)&&t.every((r,n)=>un(r.parameters,e[n].parameters))}function Ar(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function cO(t,e){let r=[];return Object.entries(t.children).forEach(([n,i])=>{n===j&&(r=r.concat(e(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==j&&(r=r.concat(e(i,n)))}),r}var ms=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>new Li,providedIn:"root"});let t=e;return t})(),Li=class{parse(e){let r=new lp(e);return new An(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${es(e.root,!0)}`,n=fO(e.queryParams),i=typeof e.fragment=="string"?`#${lO(e.fragment)}`:"";return`${r}${n}${i}`}},uO=new Li;function bu(t){return t.segments.map(e=>iw(e)).join("/")}function es(t,e){if(!t.hasChildren())return bu(t);if(e){let r=t.children[j]?es(t.children[j],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==j&&n.push(`${i}:${es(o,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=cO(t,(n,i)=>i===j?[es(t.children[j],!1)]:[`${i}:${es(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[j]!=null?`${bu(t)}/${r[0]}`:`${bu(t)}/(${r.join("//")})`}}function rw(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function mu(t){return rw(t).replace(/%3B/gi,";")}function lO(t){return encodeURI(t)}function up(t){return rw(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yu(t){return decodeURIComponent(t)}function B_(t){return yu(t.replace(/\+/g,"%20"))}function iw(t){return`${up(t.path)}${dO(t.parameters)}`}function dO(t){return Object.entries(t).map(([e,r])=>`;${up(e)}=${up(r)}`).join("")}function fO(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(i=>`${mu(r)}=${mu(i)}`).join("&"):`${mu(r)}=${mu(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var hO=/^[^\/()?;#]+/;function rp(t){let e=t.match(hO);return e?e[0]:""}var pO=/^[^\/()?;=#]+/;function mO(t){let e=t.match(pO);return e?e[0]:""}var gO=/^[^=?&#]+/;function vO(t){let e=t.match(gO);return e?e[0]:""}var bO=/^[^&#]+/;function yO(t){let e=t.match(bO);return e?e[0]:""}var lp=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new J([],{}):new J([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[j]=new J(e,r)),n}parseSegment(){let e=rp(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new I(4009,!1);return this.capture(e),new Tr(yu(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=mO(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let i=rp(this.remaining);i&&(n=i,this.capture(n))}e[yu(r)]=yu(n)}parseQueryParam(e){let r=vO(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=yO(this.remaining);s&&(n=s,this.capture(n))}let i=B_(r),o=B_(n);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(o)}else e[i]=o}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=rp(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new I(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=j);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[j]:new J([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new I(4011,!1)}};function ow(t){return t.segments.length>0?new J([],{[j]:t}):t}function sw(t){let e={};for(let[n,i]of Object.entries(t.children)){let o=sw(i);if(n===j&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[n]=o)}let r=new J(t.segments,e);return DO(r)}function DO(t){if(t.numberOfChildren===1&&t.children[j]){let e=t.children[j];return new J(t.segments.concat(e.segments),e.children)}return t}function Nr(t){return t instanceof An}function _O(t,e,r=null,n=null){let i=aw(t);return cw(i,e,r,n)}function aw(t){let e;function r(o){let s={};for(let c of o.children){let u=r(c);s[c.outlet]=u}let a=new J(o.url,s);return o===t&&(e=a),a}let n=r(t.root),i=ow(n);return e??i}function cw(t,e,r,n){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return ip(i,i,i,r,n);let o=wO(e);if(o.toRoot())return ip(i,i,new J([],{}),r,n);let s=EO(o,i,t),a=s.processChildren?rs(s.segmentGroup,s.index,o.commands):lw(s.segmentGroup,s.index,o.commands);return ip(i,s.segmentGroup,a,r,n)}function Du(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ss(t){return typeof t=="object"&&t!=null&&t.outlets}function ip(t,e,r,n,i){let o={};n&&Object.entries(n).forEach(([c,u])=>{o[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;t===e?s=r:s=uw(t,e,r);let a=ow(sw(s));return new An(a,o,i)}function uw(t,e,r){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===e?n[i]=r:n[i]=uw(o,e,r)}),new J(t.segments,n)}var _u=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&Du(n[0]))throw new I(4003,!1);let i=n.find(ss);if(i&&i!==X_(n))throw new I(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function wO(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new _u(!0,0,t);let e=0,r=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?r=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new _u(r,e,n)}var Oi=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function EO(t,e,r){if(t.isAbsolute)return new Oi(e,!0,0);if(!r)return new Oi(e,!1,NaN);if(r.parent===null)return new Oi(r,!0,0);let n=Du(t.commands[0])?0:1,i=r.segments.length-1+n;return IO(r,i,t.numberOfDoubleDots)}function IO(t,e,r){let n=t,i=e,o=r;for(;o>i;){if(o-=i,n=n.parent,!n)throw new I(4005,!1);i=n.segments.length}return new Oi(n,!1,i-o)}function CO(t){return ss(t[0])?t[0].outlets:{[j]:t}}function lw(t,e,r){if(t??=new J([],{}),t.segments.length===0&&t.hasChildren())return rs(t,e,r);let n=xO(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndexo!==j)&&t.children[j]&&t.numberOfChildren===1&&t.children[j].segments.length===0){let o=rs(t.children[j],e,r);return new J(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=lw(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new J(t.segments,i)}}function xO(t,e,r){let n=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return o;let s=t.segments[i],a=r[n];if(ss(a))break;let c=`${a}`,u=n0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!H_(c,u,s))return o;n+=2}else{if(!H_(c,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function dp(t,e,r){let n=t.segments.slice(0,e),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=dp(new J([],{}),0,n))}),e}function $_(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function H_(t,e,r){return t==r.path&&un(e,r.parameters)}var is="imperative",Ie=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Ie||{}),It=class{constructor(e,r){this.id=e,this.url=r}},ji=class extends It{constructor(e,r,n="imperative",i=null){super(e,r),this.type=Ie.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Vt=class extends It{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=Ie.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},dt=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(dt||{}),wu=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(wu||{}),Tn=class extends It{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=Ie.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},nr=class extends It{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=Ie.NavigationSkipped}},as=class extends It{constructor(e,r,n,i){super(e,r),this.error=n,this.target=i,this.type=Ie.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Eu=class extends It{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Ie.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},fp=class extends It{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Ie.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},hp=class extends It{constructor(e,r,n,i,o){super(e,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o,this.type=Ie.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},pp=class extends It{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Ie.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mp=class extends It{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Ie.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},gp=class{constructor(e){this.route=e,this.type=Ie.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},vp=class{constructor(e){this.route=e,this.type=Ie.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},bp=class{constructor(e){this.snapshot=e,this.type=Ie.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yp=class{constructor(e){this.snapshot=e,this.type=Ie.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Dp=class{constructor(e){this.snapshot=e,this.type=Ie.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},_p=class{constructor(e){this.snapshot=e,this.type=Ie.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Iu=class{constructor(e,r,n){this.routerEvent=e,this.position=r,this.anchor=n,this.type=Ie.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},cs=class{},Vi=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};function SO(t,e){return t.providers&&!t._injector&&(t._injector=Fc(t.providers,e,`Route: ${t.path}`)),t._injector??e}function jt(t){return t.outlet||j}function TO(t,e){let r=t.filter(n=>jt(n)===e);return r.push(...t.filter(n=>jt(n)!==e)),r}function gs(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var wp=class{get injector(){return gs(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new vs(this.rootInjector),this.attachRef=null}},vs=(()=>{let e=class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,i){let o=this.getOrCreateContext(n);o.outlet=i,this.contexts.set(n,o)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new wp(this.rootInjector),this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(i){return new(i||e)(p(Fe))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Cu=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=Ep(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=Ep(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=Ip(e,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return Ip(e,this._root).map(r=>r.value)}};function Ep(t,e){if(t===e.value)return e;for(let r of e.children){let n=Ep(t,r);if(n)return n}return null}function Ip(t,e){if(t===e.value)return[e];for(let r of e.children){let n=Ip(t,r);if(n.length)return n.unshift(e),n}return[]}var lt=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function Ri(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var xu=class extends Cu{constructor(e,r){super(e),this.snapshot=r,Op(this,e)}toString(){return this.snapshot.toString()}};function dw(t){let e=AO(t),r=new de([new Tr("",{})]),n=new de({}),i=new de({}),o=new de({}),s=new de(""),a=new rr(r,n,o,s,i,j,t,e.root);return a.snapshot=e.root,new xu(new lt(a,[]),e)}function AO(t){let e={},r={},n={},i="",o=new Fi([],e,n,i,r,j,t,null,{});return new Su("",new lt(o,[]))}var rr=class{constructor(e,r,n,i,o,s,a,c){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(C(u=>u[ps]))??x(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(C(e=>Pi(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(C(e=>Pi(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Mu(t,e,r="emptyOnly"){let n,{routeConfig:i}=t;return e!==null&&(r==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:b(b({},e.params),t.params),data:b(b({},e.data),t.data),resolve:b(b(b(b({},t.data),e.data),i?.data),t._resolvedData)}:n={params:b({},t.params),data:b({},t.data),resolve:b(b({},t.data),t._resolvedData??{})},i&&hw(i)&&(n.resolve[ps]=i.title),n}var Fi=class{get title(){return this.data?.[ps]}constructor(e,r,n,i,o,s,a,c,u){this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Pi(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Pi(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},Su=class extends Cu{constructor(e,r){super(r),this.url=e,Op(this,r)}toString(){return fw(this._root)}};function Op(t,e){e.value._routerState=t,e.children.forEach(r=>Op(t,r))}function fw(t){let e=t.children.length>0?` { ${t.children.map(fw).join(", ")} } `:"";return`${t.value}${e}`}function op(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,un(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),un(e.params,r.params)||t.paramsSubject.next(r.params),rO(e.url,r.url)||t.urlSubject.next(r.url),un(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Cp(t,e){let r=un(t.params,e.params)&&aO(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||Cp(t.parent,e.parent))}function hw(t){return typeof t.title=="string"||t.title===null}var NO=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=j,this.activateEvents=new X,this.deactivateEvents=new X,this.attachEvents=new X,this.detachEvents=new X,this.parentContexts=g(vs),this.location=g(Pt),this.changeDetector=g(wt),this.inputBinder=g(Ru,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:o}=n.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new I(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new I(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new I(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,i){if(this.isActivated)throw new I(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new xp(n,c,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:u,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=G({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[it]});let t=e;return t})(),xp=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===rr?this.route:e===vs?this.childContexts:this.parent.get(e,r)}},Ru=new v(""),z_=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:i}=n,o=fr([i.queryParams,i.params,i.data]).pipe(Ve(([s,a,c],u)=>(c=b(b(b({},s),a),c),u===0?x(c):Promise.resolve(c)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(n);return}let a=BD(i.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:c}of a.inputs)n.activatedComponentRef.setInput(c,s[c])});this.outletDataSubscriptions.set(n,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function RO(t,e,r){let n=us(t,e._root,r?r._root:void 0);return new xu(n,e)}function us(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let i=OO(t,e,r);return new lt(n,i)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>us(t,a)),s}}let n=FO(e.value),i=e.children.map(o=>us(t,o));return new lt(n,i)}}function OO(t,e,r){return e.children.map(n=>{for(let i of r.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return us(t,n,i);return us(t,n)})}function FO(t){return new rr(new de(t.url),new de(t.params),new de(t.queryParams),new de(t.fragment),new de(t.data),t.outlet,t.component,t)}var ls=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},pw="ngNavigationCancelingError";function Tu(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=Nr(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=mw(!1,dt.Redirect);return i.url=r,i.navigationBehaviorOptions=n,i}function mw(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[pw]=!0,r.cancellationCode=e,r}function kO(t){return gw(t)&&Nr(t.url)}function gw(t){return!!t&&t[pw]}var PO=(t,e,r,n)=>C(i=>(new Mp(e,i.targetRouterState,i.currentRouterState,r,n).activate(t),i)),Mp=class{constructor(e,r,n,i,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),op(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let i=Ri(r);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else o&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=Ri(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=Ri(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let i=Ri(r);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new _p(o.value.snapshot))}),e.children.length&&this.forwardEvent(new yp(e.value.snapshot))}activateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(op(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),op(a.route.value),this.activateChildRoutes(e,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}else this.activateChildRoutes(e,null,n)}},Au=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},ki=class{constructor(e,r){this.component=e,this.route=r}};function LO(t,e,r){let n=t._root,i=e?e._root:null;return ts(n,i,r,[n.value])}function jO(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Bi(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!Sv(t)?t:e.get(t):n}function ts(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Ri(e);return t.children.forEach(s=>{VO(s,o[s.value.outlet],r,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>os(a,r.getContext(s),i)),i}function VO(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=UO(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new Au(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?ts(t,e,a?a.children:null,n,i):ts(t,e,r,n,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new ki(a.outlet.component,s))}else s&&os(e,a,i),i.canActivateChecks.push(new Au(n)),o.component?ts(t,null,a?a.children:null,n,i):ts(t,null,r,n,i);return i}function UO(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!Ar(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Ar(t.url,e.url)||!un(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Cp(t,e)||!un(t.queryParams,e.queryParams);case"paramsChange":default:return!Cp(t,e)}}function os(t,e,r){let n=Ri(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?e?os(s,e.children.getContext(o),r):os(s,null,r):os(s,e,r)}),i.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new ki(e.outlet.component,i)):r.canDeactivateChecks.push(new ki(null,i)):r.canDeactivateChecks.push(new ki(null,i))}function bs(t){return typeof t=="function"}function BO(t){return typeof t=="boolean"}function $O(t){return t&&bs(t.canLoad)}function HO(t){return t&&bs(t.canActivate)}function zO(t){return t&&bs(t.canActivateChild)}function GO(t){return t&&bs(t.canDeactivate)}function WO(t){return t&&bs(t.canMatch)}function vw(t){return t instanceof At||t?.name==="EmptyError"}var gu=Symbol("INITIAL_VALUE");function Ui(){return Ve(t=>fr(t.map(e=>e.pipe(ge(1),po(gu)))).pipe(C(e=>{for(let r of e)if(r!==!0){if(r===gu)return gu;if(r===!1||qO(r))return r}return!0}),le(e=>e!==gu),ge(1)))}function qO(t){return Nr(t)||t instanceof ls}function ZO(t,e){return Q(r=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?x(O(b({},r),{guardsResult:!0})):YO(s,n,i,t).pipe(Q(a=>a&&BO(a)?KO(n,o,t,e):x(a)),C(a=>O(b({},r),{guardsResult:a})))})}function YO(t,e,r,n){return re(t).pipe(Q(i=>tF(i.component,i.route,r,e,n)),Nt(i=>i!==!0,!0))}function KO(t,e,r,n){return re(e).pipe(Wt(i=>Gt(XO(i.route.parent,n),QO(i.route,n),eF(t,i.path,r),JO(t,i.route,r))),Nt(i=>i!==!0,!0))}function QO(t,e){return t!==null&&e&&e(new Dp(t)),x(!0)}function XO(t,e){return t!==null&&e&&e(new bp(t)),x(!0)}function JO(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return x(!0);let i=n.map(o=>so(()=>{let s=gs(e)??r,a=Bi(o,s),c=HO(a)?a.canActivate(e,t):rt(s,()=>a(e,t));return ir(c).pipe(Nt())}));return x(i).pipe(Ui())}function eF(t,e,r){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>jO(s)).filter(s=>s!==null).map(s=>so(()=>{let a=s.guards.map(c=>{let u=gs(s.node)??r,l=Bi(c,u),d=zO(l)?l.canActivateChild(n,t):rt(u,()=>l(n,t));return ir(d).pipe(Nt())});return x(a).pipe(Ui())}));return x(o).pipe(Ui())}function tF(t,e,r,n,i){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return x(!0);let s=o.map(a=>{let c=gs(e)??i,u=Bi(a,c),l=GO(u)?u.canDeactivate(t,e,r,n):rt(c,()=>u(t,e,r,n));return ir(l).pipe(Nt())});return x(s).pipe(Ui())}function nF(t,e,r,n){let i=e.canLoad;if(i===void 0||i.length===0)return x(!0);let o=i.map(s=>{let a=Bi(s,t),c=$O(a)?a.canLoad(e,r):rt(t,()=>a(e,r));return ir(c)});return x(o).pipe(Ui(),bw(n))}function bw(t){return Ml(ee(e=>{if(typeof e!="boolean")throw Tu(t,e)}),C(e=>e===!0))}function rF(t,e,r,n){let i=e.canMatch;if(!i||i.length===0)return x(!0);let o=i.map(s=>{let a=Bi(s,t),c=WO(a)?a.canMatch(e,r):rt(t,()=>a(e,r));return ir(c)});return x(o).pipe(Ui(),bw(n))}var ds=class{constructor(e){this.segmentGroup=e||null}},fs=class extends Error{constructor(e){super(),this.urlTree=e}};function Ni(t){return Ht(new ds(t))}function iF(t){return Ht(new I(4e3,!1))}function oF(t){return Ht(mw(!1,dt.GuardRejected))}var Sp=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return x(n);if(i.numberOfChildren>1||!i.children[j])return iF(`${e.redirectTo}`);i=i.children[j]}}applyRedirectCommands(e,r,n,i,o){if(typeof r!="string"){let a=r,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:f,params:h,data:m,title:_}=i,w=rt(o,()=>a({params:h,data:m,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:f,title:_}));if(w instanceof An)throw new fs(w);r=w}let s=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r[0]==="/")throw new fs(s);return s}applyRedirectCreateUrlTree(e,r,n,i){let o=this.createSegmentGroup(e,r.root,n,i);return new An(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[i]=r[a]}else n[i]=o}),n}createSegmentGroup(e,r,n,i){let o=this.createSegments(e,r.segments,n,i),s={};return Object.entries(r.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(e,c,n,i)}),new J(o,s)}createSegments(e,r,n,i){return r.map(o=>o.path[0]===":"?this.findPosParam(e,o,i):this.findOrReturn(o,n))}findPosParam(e,r,n){let i=n[r.path.substring(1)];if(!i)throw new I(4001,!1);return i}findOrReturn(e,r){let n=0;for(let i of r){if(i.path===e.path)return r.splice(n),i;n++}return e}},Tp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function sF(t,e,r,n,i){let o=Fp(t,e,r);return o.matched?(n=SO(e,n),rF(n,e,r,i).pipe(C(s=>s===!0?o:b({},Tp)))):x(o)}function Fp(t,e,r){if(e.path==="**")return aF(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?b({},Tp):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(e.matcher||nO)(r,t,e);if(!i)return b({},Tp);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?b(b({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function aF(t){return{matched:!0,parameters:t.length>0?X_(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function G_(t,e,r,n){return r.length>0&&lF(t,r,n)?{segmentGroup:new J(e,uF(n,new J(r,t.children))),slicedSegments:[]}:r.length===0&&dF(t,r,n)?{segmentGroup:new J(t.segments,cF(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new J(t.segments,t.children),slicedSegments:r}}function cF(t,e,r,n){let i={};for(let o of r)if(Ou(t,e,o)&&!n[jt(o)]){let s=new J([],{});i[jt(o)]=s}return b(b({},n),i)}function uF(t,e){let r={};r[j]=e;for(let n of t)if(n.path===""&&jt(n)!==j){let i=new J([],{});r[jt(n)]=i}return r}function lF(t,e,r){return r.some(n=>Ou(t,e,n)&&jt(n)!==j)}function dF(t,e,r){return r.some(n=>Ou(t,e,n))}function Ou(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function fF(t,e,r,n){return jt(t)!==n&&(n===j||!Ou(e,r,t))?!1:Fp(e,t,r).matched}function hF(t,e,r){return e.length===0&&!t.children[r]}var Ap=class{};function pF(t,e,r,n,i,o,s="emptyOnly"){return new Np(t,e,r,n,i,s,o).recognize()}var mF=31,Np=class{constructor(e,r,n,i,o,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Sp(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new I(4002,`'${e.segmentGroup}'`)}recognize(){let e=G_(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(C(({children:r,rootSnapshot:n})=>{let i=new lt(n,r),o=new Su("",i),s=_O(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(e){let r=new Fi([],Object.freeze({}),Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),j,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,j,r).pipe(C(n=>({children:n,rootSnapshot:r})),Re(n=>{if(n instanceof fs)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof ds?this.noMatchError(n):n}))}processSegmentGroup(e,r,n,i,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n,o):this.processSegment(e,r,n,n.segments,i,!0,o).pipe(C(s=>s instanceof lt?[s]:[]))}processChildren(e,r,n,i){let o=[];for(let s of Object.keys(n.children))s==="primary"?o.unshift(s):o.push(s);return re(o).pipe(Wt(s=>{let a=n.children[s],c=TO(r,s);return this.processSegmentGroup(e,c,a,s,i)}),fo((s,a)=>(s.push(...a),s)),jn(null),Vl(),Q(s=>{if(s===null)return Ni(n);let a=yw(s);return gF(a),x(a)}))}processSegment(e,r,n,i,o,s,a){return re(r).pipe(Wt(c=>this.processSegmentAgainstRoute(c._injector??e,r,c,n,i,o,s,a).pipe(Re(u=>{if(u instanceof ds)return x(null);throw u}))),Nt(c=>!!c),Re(c=>{if(vw(c))return hF(n,i,o)?x(new Ap):Ni(n);throw c}))}processSegmentAgainstRoute(e,r,n,i,o,s,a,c){return fF(n,i,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,n,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,r,n,o,s,c):Ni(i):Ni(i)}expandSegmentAgainstRouteUsingRedirect(e,r,n,i,o,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:f}=Fp(r,i,o);if(!c)return Ni(r);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>mF&&(this.allowRedirects=!1));let h=new Fi(o,u,Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,W_(i),jt(i),i.component??i._loadedComponent??null,i,q_(i)),m=Mu(h,a,this.paramsInheritanceStrategy);h.params=Object.freeze(m.params),h.data=Object.freeze(m.data);let _=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,d,h,e);return this.applyRedirects.lineralizeSegments(i,_).pipe(Q(w=>this.processSegment(e,n,r,w.concat(f),s,!1,a)))}matchSegmentAgainstRoute(e,r,n,i,o,s){let a=sF(r,n,i,e,this.urlSerializer);return n.path==="**"&&(r.children={}),a.pipe(Ve(c=>c.matched?(e=n._injector??e,this.getChildConfig(e,n,i).pipe(Ve(({routes:u})=>{let l=n._loadedInjector??e,{parameters:d,consumedSegments:f,remainingSegments:h}=c,m=new Fi(f,d,Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,W_(n),jt(n),n.component??n._loadedComponent??null,n,q_(n)),_=Mu(m,s,this.paramsInheritanceStrategy);m.params=Object.freeze(_.params),m.data=Object.freeze(_.data);let{segmentGroup:w,slicedSegments:E}=G_(r,f,h,u);if(E.length===0&&w.hasChildren())return this.processChildren(l,u,w,m).pipe(C(q=>new lt(m,q)));if(u.length===0&&E.length===0)return x(new lt(m,[]));let k=jt(n)===o;return this.processSegment(l,u,w,E,k?j:o,!0,m).pipe(C(q=>new lt(m,q instanceof lt?[q]:[])))}))):Ni(r)))}getChildConfig(e,r,n){return r.children?x({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?x({routes:r._loadedRoutes,injector:r._loadedInjector}):nF(e,r,n,this.urlSerializer).pipe(Q(i=>i?this.configLoader.loadChildren(e,r).pipe(ee(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):oF(r))):x({routes:[],injector:e})}};function gF(t){t.sort((e,r)=>e.value.outlet===j?-1:r.value.outlet===j?1:e.value.outlet.localeCompare(r.value.outlet))}function vF(t){let e=t.value.routeConfig;return e&&e.path===""}function yw(t){let e=[],r=new Set;for(let n of t){if(!vF(n)){e.push(n);continue}let i=e.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),r.add(i)):e.push(n)}for(let n of r){let i=yw(n.children);e.push(new lt(n.value,i))}return e.filter(n=>!r.has(n))}function W_(t){return t.data||{}}function q_(t){return t.resolve||{}}function bF(t,e,r,n,i,o){return Q(s=>pF(t,e,r,n,s.extractedUrl,i,o).pipe(C(({state:a,tree:c})=>O(b({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function yF(t,e){return Q(r=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return x(r);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let u of Dw(c))s.add(u);let a=0;return re(s).pipe(Wt(c=>o.has(c)?DF(c,n,t,e):(c.data=Mu(c,c.parent,t).resolve,x(void 0))),ee(()=>a++),Xr(1),Q(c=>a===s.size?x(r):xe))})}function Dw(t){let e=t.children.map(r=>Dw(r)).flat();return[t,...e]}function DF(t,e,r,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!hw(i)&&(o[ps]=i.title),_F(o,t,e,n).pipe(C(s=>(t._resolvedData=s,t.data=Mu(t,t.parent,r).resolve,null)))}function _F(t,e,r,n){let i=cp(t);if(i.length===0)return x({});let o={};return re(i).pipe(Q(s=>wF(t[s],e,r,n).pipe(Nt(),ee(a=>{if(a instanceof ls)throw Tu(new Li,a);o[s]=a}))),Xr(1),lo(o),Re(s=>vw(s)?xe:Ht(s)))}function wF(t,e,r,n){let i=gs(e)??n,o=Bi(t,i),s=o.resolve?o.resolve(e,r):rt(i,()=>o(e,r));return ir(s)}function sp(t){return Ve(e=>{let r=t(e);return r?re(r).pipe(C(()=>e)):x(e)})}var _w=(()=>{let e=class e{buildTitle(n){let i,o=n.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===j);return i}getResolvedTitleForRoute(n){return n.data[ps]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>g(EF),providedIn:"root"});let t=e;return t})(),EF=(()=>{let e=class e extends _w{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(p(j_))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ys=new v("",{providedIn:"root",factory:()=>({})}),IF=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=nt({type:e,selectors:[["ng-component"]],standalone:!0,features:[at],decls:1,vars:0,template:function(i,o){i&1&&Je(0,"router-outlet")},dependencies:[NO],encapsulation:2});let t=e;return t})();function kp(t){let e=t.children&&t.children.map(kp),r=e?O(b({},t),{children:e}):b({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==j&&(r.component=IF),r}var hs=new v(""),Pp=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(Gc)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return x(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=ir(n.loadComponent()).pipe(C(ww),ee(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),ht(()=>{this.componentLoaders.delete(n)})),o=new Gr(i,()=>new B).pipe(zr());return this.componentLoaders.set(n,o),o}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return x({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=CF(i,this.compiler,n,this.onLoadEndListener).pipe(ht(()=>{this.childrenLoaders.delete(i)})),a=new Gr(s,()=>new B).pipe(zr());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function CF(t,e,r,n){return ir(t.loadChildren()).pipe(C(ww),Q(i=>i instanceof Io||Array.isArray(i)?x(i):re(e.compileModuleAsync(i))),C(i=>{n&&n(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(r).injector,s=o.get(hs,[],{optional:!0,self:!0}).flat()),{routes:s.map(kp),injector:o}}))}function xF(t){return t&&typeof t=="object"&&"default"in t}function ww(t){return xF(t)?t.default:t}var Lp=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>g(MF),providedIn:"root"});let t=e;return t})(),MF=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ew=new v(""),Iw=new v("");function SF(t,e,r){let n=t.get(Iw),i=t.get(W);return t.get(P).runOutsideAngular(()=>{if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let o,s=new Promise(u=>{o=u}),a=i.startViewTransition(()=>(o(),TF(t))),{onViewTransitionCreated:c}=n;return c&&rt(t,()=>c({transition:a,from:e,to:r})),s})}function TF(t){return new Promise(e=>{Bo({read:()=>setTimeout(e)},{injector:t})})}var AF=new v(""),jp=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new B,this.transitionAbortSubject=new B,this.configLoader=g(Pp),this.environmentInjector=g(Fe),this.urlSerializer=g(ms),this.rootContexts=g(vs),this.location=g(Ai),this.inputBindingEnabled=g(Ru,{optional:!0})!==null,this.titleStrategy=g(_w),this.options=g(ys,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(Lp),this.createViewTransition=g(Ew,{optional:!0}),this.navigationErrorHandler=g(AF,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>x(void 0),this.rootComponentType=null;let n=o=>this.events.next(new gp(o)),i=o=>this.events.next(new vp(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(O(b(b({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,o){return this.transitions=new de({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:is,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(le(s=>s.id!==0),C(s=>O(b({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),Ve(s=>{let a=!1,c=!1;return x(s).pipe(Ve(u=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",dt.SupersededByNewNavigation),xe;this.currentTransition=s,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,targetBrowserUrl:typeof u.extras.browserUrl=="string"?this.urlSerializer.parse(u.extras.browserUrl):u.extras.browserUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?O(b({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=u.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let f="";return this.events.next(new nr(u.id,this.urlSerializer.serialize(u.rawUrl),f,wu.IgnoredSameUrlNavigation)),u.resolve(!1),xe}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return x(u).pipe(Ve(f=>{let h=this.transitions?.getValue();return this.events.next(new ji(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?xe:Promise.resolve(f)}),bF(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),ee(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=O(b({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let h=new Eu(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:f,extractedUrl:h,source:m,restoredState:_,extras:w}=u,E=new ji(f,this.urlSerializer.serialize(h),m,_);this.events.next(E);let k=dw(this.rootComponentType).snapshot;return this.currentTransition=s=O(b({},u),{targetSnapshot:k,urlAfterRedirects:h,extras:O(b({},w),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,x(s)}else{let f="";return this.events.next(new nr(u.id,this.urlSerializer.serialize(u.extractedUrl),f,wu.IgnoredByUrlHandlingStrategy)),u.resolve(!1),xe}}),ee(u=>{let l=new fp(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),C(u=>(this.currentTransition=s=O(b({},u),{guards:LO(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),s)),ZO(this.environmentInjector,u=>this.events.next(u)),ee(u=>{if(s.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw Tu(this.urlSerializer,u.guardsResult);let l=new hp(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),le(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",dt.GuardRejected),!1)),sp(u=>{if(u.guards.canActivateChecks.length)return x(u).pipe(ee(l=>{let d=new pp(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),Ve(l=>{let d=!1;return x(l).pipe(yF(this.paramsInheritanceStrategy,this.environmentInjector),ee({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",dt.NoDataFromResolver)}}))}),ee(l=>{let d=new mp(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),sp(u=>{let l=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(ee(h=>{d.component=h}),C(()=>{})));for(let h of d.children)f.push(...l(h));return f};return fr(l(u.targetSnapshot.root)).pipe(jn(null),ge(1))}),sp(()=>this.afterPreactivation()),Ve(()=>{let{currentSnapshot:u,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,u.root,l.root);return d?re(d).pipe(C(()=>s)):x(s)}),C(u=>{let l=RO(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=s=O(b({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),ee(()=>{this.events.next(new cs)}),PO(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),ge(1),ee({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Vt(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),Vn(this.transitionAbortSubject.pipe(ee(u=>{throw u}))),ht(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",dt.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),Re(u=>{if(c=!0,gw(u))this.events.next(new Tn(s.id,this.urlSerializer.serialize(s.extractedUrl),u.message,u.cancellationCode)),kO(u)?this.events.next(new Vi(u.url,u.navigationBehaviorOptions)):s.resolve(!1);else{let l=new as(s.id,this.urlSerializer.serialize(s.extractedUrl),u,s.targetSnapshot??void 0);try{let d=rt(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(d instanceof ls){let{message:f,cancellationCode:h}=Tu(this.urlSerializer,d);this.events.next(new Tn(s.id,this.urlSerializer.serialize(s.extractedUrl),f,h)),this.events.next(new Vi(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(l);let f=n.errorHandler(u);s.resolve(!!f)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return xe}))}))}cancelNavigationTransition(n,i,o){let s=new Tn(n.id,this.urlSerializer.serialize(n.extractedUrl),i,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function NF(t){return t!==is}var RF=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>g(OF),providedIn:"root"});let t=e;return t})(),Rp=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},OF=(()=>{let e=class e extends Rp{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Yn(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Cw=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>g(FF),providedIn:"root"});let t=e;return t})(),FF=(()=>{let e=class e extends Cw{constructor(){super(...arguments),this.location=g(Ai),this.urlSerializer=g(ms),this.options=g(ys,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(Lp),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new An,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=dw(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof ji)this.stateMemento=this.createStateMemento();else if(n instanceof nr)this.rawUrlTree=i.initialUrl;else if(n instanceof Eu){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(i.targetBrowserUrl??o,i)}}else n instanceof cs?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(i.targetBrowserUrl??this.rawUrlTree,i)):n instanceof Tn&&(n.code===dt.GuardRejected||n.code===dt.NoDataFromResolver)?this.restoreHistory(i):n instanceof as?this.restoreHistory(i,!0):n instanceof Vt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let o=n instanceof An?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=b(b({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=b(b({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Yn(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ns=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(ns||{});function xw(t,e){t.events.pipe(le(r=>r instanceof Vt||r instanceof Tn||r instanceof as||r instanceof nr),C(r=>r instanceof Vt||r instanceof nr?ns.COMPLETE:(r instanceof Tn?r.code===dt.Redirect||r.code===dt.SupersededByNewNavigation:!1)?ns.REDIRECTING:ns.FAILED),le(r=>r!==ns.REDIRECTING),ge(1)).subscribe(()=>{e()})}function kF(t){throw t}var PF={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},LF={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ct=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=g(Uc),this.stateManager=g(Cw),this.options=g(ys,{optional:!0})||{},this.pendingTasks=g(en),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(jp),this.urlSerializer=g(ms),this.location=g(Ai),this.urlHandlingStrategy=g(Lp),this._events=new B,this.errorHandler=this.options.errorHandler||kF,this.navigated=!1,this.routeReuseStrategy=g(RF),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(hs,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(Ru,{optional:!0}),this.eventsSubscription=new ae,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof Tn&&i.code!==dt.Redirect&&i.code!==dt.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Vt)this.navigated=!0;else if(i instanceof Vi){let a=i.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),u=b({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||NF(o.source)},a);this.scheduleNavigation(c,is,null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}VF(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),is,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)})}navigateToSyncWithBrowser(n,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let u=b({},o);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(s.state=u)}let c=this.parseUrl(n);this.scheduleNavigation(c,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(kp),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:u}=i,l=u?this.currentUrlTree.fragment:a,d=null;switch(c){case"merge":d=b(b({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let h=o?o.snapshot:this.routerState.snapshot.root;f=aw(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),f=this.currentUrlTree.root}return cw(f,n,d,l??null)}navigateByUrl(n,i={skipLocationChange:!1}){let o=Nr(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,is,null,i)}navigate(n,i={skipLocationChange:!1}){return jF(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let o;if(i===!0?o=b({},PF):i===!1?o=b({},LF):o=i,Nr(n))return U_(this.currentUrlTree,n,o);let s=this.parseUrl(n);return U_(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(n,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((f,h)=>{c=f,u=h});let d=this.pendingTasks.add();return xw(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function jF(t){for(let e=0;e{let e=class e{constructor(n,i,o,s,a,c){this.router=n,this.route=i,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=c,this.href=null,this.onChanges=new B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let u=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof Vt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Nr(n)?this.routerLinkInput=n:this.routerLinkInput=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,i,o,s,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(n!==0||i||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let i=this.href===null?null:ay(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(n,i){let o=this.renderer,s=this.el.nativeElement;i!==null?o.setAttribute(s,n,i):o.removeAttribute(s,n)}get urlTree(){return this.routerLinkInput===null?null:Nr(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(i){return new(i||e)(y(Ct),y(rr),Fo("tabindex"),y(tn),y(ne),y(Sn))},e.\u0275dir=G({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){i&1&&In("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&Xe("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ee],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ee],replaceUrl:[2,"replaceUrl","replaceUrl",Ee],routerLink:"routerLink"},standalone:!0,features:[st,it]});let t=e;return t})(),A4=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,i,o,s,a){this.router=n,this.element=i,this.renderer=o,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new X,this.routerEventsSubscription=n.events.subscribe(c=>{c instanceof Vt&&this.update()})}ngAfterContentInit(){x(this.links.changes,x(null)).pipe(zt()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=re(n).pipe(zt()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(n){let i=Array.isArray(n)?n:n.split(" ");this.classes=i.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this.classes.forEach(i=>{n?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n))})}isLinkActive(n){let i=UF(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let s=o.urlTree;return s?n.isActive(s,i):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};e.\u0275fac=function(i){return new(i||e)(y(Ct),y(ne),y(tn),y(wt),y(Z_,8))},e.\u0275dir=G({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(i,o,s){if(i&1&&MD(s,Z_,5),i&2){let a;jc(a=Vc())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[it]});let t=e;return t})();function UF(t){return!!t.paths}var Nu=class{};var BF=(()=>{let e=class e{constructor(n,i,o,s,a){this.router=n,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(le(n=>n instanceof Vt),Wt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,i){let o=[];for(let s of i){s.providers&&!s._injector&&(s._injector=Fc(s.providers,n,`Route: ${s.path}`));let a=s._injector??n,c=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(c,s.children??s._loadedRoutes))}return re(o).pipe(zt())}preloadConfig(n,i){return this.preloadingStrategy.preload(i,()=>{let o;i.loadChildren&&i.canLoad===void 0?o=this.loader.loadChildren(n,i):o=x(null);let s=o.pipe(Q(a=>a===null?x(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(i);return re([s,a]).pipe(zt())}else return s})}};e.\u0275fac=function(i){return new(i||e)(p(Ct),p(Gc),p(Fe),p(Nu),p(Pp))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Mw=new v(""),$F=(()=>{let e=class e{constructor(n,i,o,s,a={}){this.urlSerializer=n,this.transitions=i,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=g(Fe),a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof ji?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Vt?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof nr&&n.code===wu.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Iu&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,i){this.zone.runOutsideAngular(()=>Vr(this,null,function*(){yield new Promise(o=>{setTimeout(()=>{o()}),Bo(()=>{o()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new Iu(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(i){Lo()},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function N4(t,...e){return yn([{provide:hs,multi:!0,useValue:t},[],{provide:rr,useFactory:Sw,deps:[Ct]},{provide:Mr,multi:!0,useFactory:Tw},e.map(r=>r.\u0275providers)])}function Sw(t){return t.routerState.root}function Ds(t,e){return{\u0275kind:t,\u0275providers:e}}function Tw(){let t=g(ke);return e=>{let r=t.get(rn);if(e!==r.components[0])return;let n=t.get(Ct),i=t.get(Aw);t.get(Vp)===1&&n.initialNavigation(),t.get(Nw,null,U.Optional)?.setUpPreloading(),t.get(Mw,null,U.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Aw=new v("",{factory:()=>new B}),Vp=new v("",{providedIn:"root",factory:()=>1});function HF(){return Ds(2,[{provide:Vp,useValue:0},{provide:Hc,multi:!0,deps:[ke],useFactory:e=>{let r=e.get(QD,Promise.resolve());return()=>r.then(()=>new Promise(n=>{let i=e.get(Ct),o=e.get(Aw);xw(i,()=>{n(!0)}),e.get(jp).afterPreactivation=()=>(n(!0),o.closed?x(void 0):o),i.initialNavigation()}))}}])}function zF(){return Ds(3,[{provide:Hc,multi:!0,useFactory:()=>{let e=g(Ct);return()=>{e.setUpLocationChangeListener()}}},{provide:Vp,useValue:2}])}var Nw=new v("");function GF(t){return Ds(0,[{provide:Nw,useExisting:BF},{provide:Nu,useExisting:t}])}function WF(){return Ds(8,[z_,{provide:Ru,useExisting:z_}])}function qF(t){let e=[{provide:Ew,useValue:SF},{provide:Iw,useValue:b({skipNextTransition:!!t?.skipInitialTransition},t)}];return Ds(9,e)}var Y_=new v("ROUTER_FORROOT_GUARD"),ZF=[Ai,{provide:ms,useClass:Li},Ct,vs,{provide:rr,useFactory:Sw,deps:[Ct]},Pp,[]],R4=(()=>{let e=class e{constructor(n){}static forRoot(n,i){return{ngModule:e,providers:[ZF,[],{provide:hs,multi:!0,useValue:n},{provide:Y_,useFactory:XF,deps:[[Ct,new yi,new Mo]]},{provide:ys,useValue:i||{}},i?.useHash?KF():QF(),YF(),i?.preloadingStrategy?GF(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?JF(i):[],i?.bindToComponentInputs?WF().\u0275providers:[],i?.enableViewTransitions?qF().\u0275providers:[],ek()]}}static forChild(n){return{ngModule:e,providers:[{provide:hs,multi:!0,useValue:n}]}}};e.\u0275fac=function(i){return new(i||e)(p(Y_,8))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();function YF(){return{provide:Mw,useFactory:()=>{let t=g(s_),e=g(P),r=g(ys),n=g(jp),i=g(ms);return r.scrollOffset&&t.setOffset(r.scrollOffset),new $F(i,n,t,e,r)}}}function KF(){return{provide:Sn,useClass:JD}}function QF(){return{provide:Sn,useClass:jh}}function XF(t){return"guarded"}function JF(t){return[t.initialNavigation==="disabled"?zF().\u0275providers:[],t.initialNavigation==="enabledBlocking"?HF().\u0275providers:[]]}var K_=new v("");function ek(){return[{provide:K_,useFactory:Tw},{provide:Mr,multi:!0,useExisting:K_}]}var Uw=(()=>{let e=class e{constructor(n,i){this._renderer=n,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(i){return new(i||e)(y(tn),y(ne))},e.\u0275dir=G({type:e});let t=e;return t})(),nk=(()=>{let e=class e extends Uw{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Yn(e)))(o||e)}})(),e.\u0275dir=G({type:e,features:[be]});let t=e;return t})(),$u=new v("");var rk={provide:$u,useExisting:kt(()=>Bw),multi:!0};function ik(){let t=sn()?sn().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var ok=new v(""),Bw=(()=>{let e=class e extends Uw{constructor(n,i,o){super(n,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!ik())}writeValue(n){let i=n??"";this.setProperty("value",i)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(i){return new(i||e)(y(tn),y(ne),y(ok,8))},e.\u0275dir=G({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&In("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[_t([rk]),be]});let t=e;return t})();function or(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function $w(t){return t!=null&&typeof t.length=="number"}var Rr=new v(""),Or=new v(""),sk=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Rw=class{static min(e){return ak(e)}static max(e){return ck(e)}static required(e){return uk(e)}static requiredTrue(e){return lk(e)}static email(e){return dk(e)}static minLength(e){return fk(e)}static maxLength(e){return hk(e)}static pattern(e){return pk(e)}static nullValidator(e){return Hw(e)}static compose(e){return Yw(e)}static composeAsync(e){return Kw(e)}};function ak(t){return e=>{if(or(e.value)||or(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r{if(or(e.value)||or(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>t?{max:{max:t,actual:e.value}}:null}}function uk(t){return or(t.value)?{required:!0}:null}function lk(t){return t.value===!0?null:{required:!0}}function dk(t){return or(t.value)||sk.test(t.value)?null:{email:!0}}function fk(t){return e=>or(e.value)||!$w(e.value)?null:e.value.length$w(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function pk(t){if(!t)return Hw;let e,r;return typeof t=="string"?(r="",t.charAt(0)!=="^"&&(r+="^"),r+=t,t.charAt(t.length-1)!=="$"&&(r+="$"),e=new RegExp(r)):(r=t.toString(),e=t),n=>{if(or(n.value))return null;let i=n.value;return e.test(i)?null:{pattern:{requiredPattern:r,actualValue:i}}}}function Hw(t){return null}function zw(t){return t!=null}function Gw(t){return Xn(t)?re(t):t}function Ww(t){let e={};return t.forEach(r=>{e=r!=null?b(b({},e),r):e}),Object.keys(e).length===0?null:e}function qw(t,e){return e.map(r=>r(t))}function mk(t){return!t.validate}function Zw(t){return t.map(e=>mk(e)?e:r=>e.validate(r))}function Yw(t){if(!t)return null;let e=t.filter(zw);return e.length==0?null:function(r){return Ww(qw(r,e))}}function Gp(t){return t!=null?Yw(Zw(t)):null}function Kw(t){if(!t)return null;let e=t.filter(zw);return e.length==0?null:function(r){let n=qw(r,e).map(Gw);return ao(n).pipe(C(Ww))}}function Wp(t){return t!=null?Kw(Zw(t)):null}function Ow(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Qw(t){return t._rawValidators}function Xw(t){return t._rawAsyncValidators}function Up(t){return t?Array.isArray(t)?t:[t]:[]}function ku(t,e){return Array.isArray(t)?t.includes(e):t===e}function Fw(t,e){let r=Up(e);return Up(t).forEach(i=>{ku(r,i)||r.push(i)}),r}function kw(t,e){return Up(e).filter(r=>!ku(t,r))}var Pu=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Gp(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Wp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},Ge=class extends Pu{get formDirective(){return null}get path(){return null}},Nn=class extends Pu{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Lu=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},gk={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Y4=O(b({},gk),{"[class.ng-submitted]":"isSubmitted"}),K4=(()=>{let e=class e extends Lu{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(y(Nn,2))},e.\u0275dir=G({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&we("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[be]});let t=e;return t})(),Q4=(()=>{let e=class e extends Lu{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(y(Ge,10))},e.\u0275dir=G({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){i&2&&we("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[be]});let t=e;return t})();var _s="VALID",Fu="INVALID",$i="PENDING",ws="DISABLED",sr=class{},ju=class extends sr{constructor(e,r){super(),this.value=e,this.source=r}},Is=class extends sr{constructor(e,r){super(),this.pristine=e,this.source=r}},Cs=class extends sr{constructor(e,r){super(),this.touched=e,this.source=r}},Hi=class extends sr{constructor(e,r){super(),this.status=e,this.source=r}},Bp=class extends sr{constructor(e){super(),this.source=e}},$p=class extends sr{constructor(e){super(),this.source=e}};function qp(t){return(Hu(t)?t.validators:t)||null}function vk(t){return Array.isArray(t)?Gp(t):t||null}function Zp(t,e){return(Hu(e)?e.asyncValidators:t)||null}function bk(t){return Array.isArray(t)?Wp(t):t||null}function Hu(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function Jw(t,e,r){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new I(1e3,"");if(!n[r])throw new I(1001,"")}function eE(t,e,r){t._forEachChild((n,i)=>{if(r[i]===void 0)throw new I(1002,"")})}var zi=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=on(()=>this.statusReactive()),this.statusReactive=_n(void 0),this._pristine=on(()=>this.pristineReactive()),this.pristineReactive=_n(!0),this._touched=on(()=>this.touchedReactive()),this.touchedReactive=_n(!1),this._events=new B,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return ct(this.statusReactive)}set status(e){ct(()=>this.statusReactive.set(e))}get valid(){return this.status===_s}get invalid(){return this.status===Fu}get pending(){return this.status==$i}get disabled(){return this.status===ws}get enabled(){return this.status!==ws}get pristine(){return ct(this.pristineReactive)}set pristine(e){ct(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return ct(this.touchedReactive)}set touched(e){ct(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Fw(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Fw(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(kw(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(kw(e,this._rawAsyncValidators))}hasValidator(e){return ku(this._rawValidators,e)}hasAsyncValidator(e){return ku(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let r=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(O(b({},e),{sourceControl:n})),r&&e.emitEvent!==!1&&this._events.next(new Cs(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(r=>r.markAllAsTouched(e))}markAsUntouched(e={}){let r=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),r&&e.emitEvent!==!1&&this._events.next(new Cs(!1,n))}markAsDirty(e={}){let r=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(O(b({},e),{sourceControl:n})),r&&e.emitEvent!==!1&&this._events.next(new Is(!1,n))}markAsPristine(e={}){let r=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),r&&e.emitEvent!==!1&&this._events.next(new Is(!0,n))}markAsPending(e={}){this.status=$i;let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Hi(this.status,r)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(O(b({},e),{sourceControl:r}))}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=ws,this.errors=null,this._forEachChild(i=>{i.disable(O(b({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new ju(this.value,n)),this._events.next(new Hi(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(O(b({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=_s,this._forEachChild(n=>{n.enable(O(b({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(O(b({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,r){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},r),this._parent._updateTouched({},r))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===_s||this.status===$i)&&this._runAsyncValidator(n,e.emitEvent)}let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new ju(this.value,r)),this._events.next(new Hi(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(O(b({},e),{sourceControl:r}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ws:_s}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,r){if(this.asyncValidator){this.status=$i,this._hasOwnPendingAsyncValidator={emitEvent:r!==!1};let n=Gw(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:r,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1,this,r.shouldHaveEmitted)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((n,i)=>n&&n._find(i),this)}getError(e,r){let n=r?this.get(r):this;return n&&n.errors?n.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,r,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new Hi(this.status,r)),this._parent&&this._parent._updateControlsErrors(e,r,n)}_initObservables(){this.valueChanges=new X,this.statusChanges=new X}_calculateStatus(){return this._allControlsDisabled()?ws:this.errors?Fu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus($i)?$i:this._anyControlsHaveStatus(Fu)?Fu:_s}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,r){let n=!this._anyControlsDirty(),i=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),i&&this._events.next(new Is(this.pristine,r))}_updateTouched(e={},r){this.touched=this._anyControlsTouched(),this._events.next(new Cs(this.touched,r)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Hu(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=vk(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=bk(this._rawAsyncValidators)}},Gi=class extends zi{constructor(e,r,n){super(qp(r),Zp(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,n={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){eE(this,!0,e),Object.keys(e).forEach(n=>{Jw(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(n=>{let i=this.controls[n];i&&i.patchValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((n,i)=>{n.reset(e?e[i]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,n)=>(e[n]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,n)=>n._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let n=this.controls[r];n&&e(n,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,n]of Object.entries(this.controls))if(this.contains(r)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,n,i)=>((n.enabled||this.disabled)&&(r[i]=n.value),r))}_reduceChildren(e,r){let n=e;return this._forEachChild((i,o)=>{n=r(n,i,o)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Hp=class extends Gi{};var Wi=new v("CallSetDisabledState",{providedIn:"root",factory:()=>zu}),zu="always";function Gu(t,e){return[...e.path,t]}function Ms(t,e,r=zu){Yp(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),Dk(t,e),wk(t,e),_k(t,e),yk(t,e)}function Vu(t,e,r=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Bu(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Uu(t,e){t.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function yk(t,e){if(e.valueAccessor.setDisabledState){let r=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(r),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(r)})}}function Yp(t,e){let r=Qw(t);e.validator!==null?t.setValidators(Ow(r,e.validator)):typeof r=="function"&&t.setValidators([r]);let n=Xw(t);e.asyncValidator!==null?t.setAsyncValidators(Ow(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let i=()=>t.updateValueAndValidity();Uu(e._rawValidators,i),Uu(e._rawAsyncValidators,i)}function Bu(t,e){let r=!1;if(t!==null){if(e.validator!==null){let i=Qw(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.validator);o.length!==i.length&&(r=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let i=Xw(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.asyncValidator);o.length!==i.length&&(r=!0,t.setAsyncValidators(o))}}}let n=()=>{};return Uu(e._rawValidators,n),Uu(e._rawAsyncValidators,n),r}function Dk(t,e){e.valueAccessor.registerOnChange(r=>{t._pendingValue=r,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&tE(t,e)})}function _k(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&tE(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function tE(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function wk(t,e){let r=(n,i)=>{e.valueAccessor.writeValue(n),i&&e.viewToModelUpdate(n)};t.registerOnChange(r),e._registerOnDestroy(()=>{t._unregisterOnChange(r)})}function nE(t,e){t==null,Yp(t,e)}function Ek(t,e){return Bu(t,e)}function Kp(t,e){if(!t.hasOwnProperty("model"))return!1;let r=t.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function Ik(t){return Object.getPrototypeOf(t.constructor)===nk}function rE(t,e){t._syncPendingControls(),e.forEach(r=>{let n=r.control;n.updateOn==="submit"&&n._pendingChange&&(r.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function Qp(t,e){if(!e)return null;Array.isArray(e);let r,n,i;return e.forEach(o=>{o.constructor===Bw?r=o:Ik(o)?n=o:i=o}),i||n||r||null}function Ck(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}var xk={provide:Ge,useExisting:kt(()=>Mk)},Es=Promise.resolve(),Mk=(()=>{let e=class e extends Ge{get submitted(){return ct(this.submittedReactive)}constructor(n,i,o){super(),this.callSetDisabledState=o,this._submitted=on(()=>this.submittedReactive()),this.submittedReactive=_n(!1),this._directives=new Set,this.ngSubmit=new X,this.form=new Gi({},Gp(n),Wp(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){Es.then(()=>{let i=this._findContainer(n.path);n.control=i.registerControl(n.name,n.control),Ms(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){Es.then(()=>{let i=this._findContainer(n.path);i&&i.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){Es.then(()=>{let i=this._findContainer(n.path),o=new Gi({});nE(o,n),i.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){Es.then(()=>{let i=this._findContainer(n.path);i&&i.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,i){Es.then(()=>{this.form.get(n.path).setValue(i)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submittedReactive.set(!0),rE(this.form,this._directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}};e.\u0275fac=function(i){return new(i||e)(y(Rr,10),y(Or,10),y(Wi,8))},e.\u0275dir=G({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){i&1&&In("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_t([xk]),be]});let t=e;return t})();function Pw(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function Lw(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var xs=class extends zi{constructor(e=null,r,n){super(qp(r),Zp(n,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Hu(r)&&(r.nonNullable||r.initialValueIsDefault)&&(Lw(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Pw(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Pw(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){Lw(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var Sk=t=>t instanceof xs,Tk=(()=>{let e=class e extends Ge{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Gu(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Yn(e)))(o||e)}})(),e.\u0275dir=G({type:e,features:[be]});let t=e;return t})();var Ak={provide:Nn,useExisting:kt(()=>Nk)},jw=Promise.resolve(),Nk=(()=>{let e=class e extends Nn{constructor(n,i,o,s,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new xs,this._registered=!1,this.name="",this.update=new X,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=Qp(this,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let i=n.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),Kp(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Ms(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){jw.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let i=n.isDisabled.currentValue,o=i!==0&&Ee(i);jw.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?Gu(n,this._parent):[n]}};e.\u0275fac=function(i){return new(i||e)(y(Ge,9),y(Rr,10),y(Or,10),y($u,10),y(wt,8),y(Wi,8))},e.\u0275dir=G({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[_t([Ak]),be,it]});let t=e;return t})(),J4=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=G({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})();var Xp=new v(""),Rk={provide:Nn,useExisting:kt(()=>Ok)},Ok=(()=>{let e=class e extends Nn{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new X,this._ngModelWarningSent=!1,this._setValidators(n),this._setAsyncValidators(i),this.valueAccessor=Qp(this,o)}ngOnChanges(n){if(this._isControlChanged(n)){let i=n.form.previousValue;i&&Vu(i,this,!1),Ms(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Kp(n,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Vu(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_isControlChanged(n){return n.hasOwnProperty("form")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(i){return new(i||e)(y(Rr,10),y(Or,10),y($u,10),y(Xp,8),y(Wi,8))},e.\u0275dir=G({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[_t([Rk]),be,it]});let t=e;return t})(),Fk={provide:Ge,useExisting:kt(()=>iE)},iE=(()=>{let e=class e extends Ge{get submitted(){return ct(this._submittedReactive)}set submitted(n){this._submittedReactive.set(n)}constructor(n,i,o){super(),this.callSetDisabledState=o,this._submitted=on(()=>this._submittedReactive()),this._submittedReactive=_n(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new X,this._setValidators(n),this._setAsyncValidators(i)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Bu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let i=this.form.get(n.path);return Ms(i,n,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),i}getControl(n){return this.form.get(n.path)}removeControl(n){Vu(n.control||null,n,!1),Ck(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,i){this.form.get(n.path).setValue(i)}onSubmit(n){return this._submittedReactive.set(!0),rE(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new Bp(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this._submittedReactive.set(!1),this.form._events.next(new $p(this.form))}_updateDomValue(){this.directives.forEach(n=>{let i=n.control,o=this.form.get(n.path);i!==o&&(Vu(i||null,n),Sk(o)&&(Ms(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let i=this.form.get(n.path);nE(i,n),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let i=this.form.get(n.path);i&&Ek(i,n)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Yp(this.form,this),this._oldForm&&Bu(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(i){return new(i||e)(y(Rr,10),y(Or,10),y(Wi,8))},e.\u0275dir=G({type:e,selectors:[["","formGroup",""]],hostBindings:function(i,o){i&1&&In("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_t([Fk]),be,it]});let t=e;return t})(),kk={provide:Ge,useExisting:kt(()=>oE)},oE=(()=>{let e=class e extends Tk{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}_checkParentType(){aE(this._parent)}};e.\u0275fac=function(i){return new(i||e)(y(Ge,13),y(Rr,10),y(Or,10))},e.\u0275dir=G({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[_t([kk]),be]});let t=e;return t})(),Pk={provide:Ge,useExisting:kt(()=>sE)},sE=(()=>{let e=class e extends Ge{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Gu(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){aE(this._parent)}};e.\u0275fac=function(i){return new(i||e)(y(Ge,13),y(Rr,10),y(Or,10))},e.\u0275dir=G({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[_t([Pk]),be]});let t=e;return t})();function aE(t){return!(t instanceof oE)&&!(t instanceof iE)&&!(t instanceof sE)}var Lk={provide:Nn,useExisting:kt(()=>jk)},jk=(()=>{let e=class e extends Nn{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new X,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=Qp(this,s)}ngOnChanges(n){this._added||this._setUpControl(),Kp(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return Gu(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(i){return new(i||e)(y(Ge,13),y(Rr,10),y(Or,10),y($u,10),y(Xp,8))},e.\u0275dir=G({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[_t([Lk]),be,it]});let t=e;return t})();var cE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),zp=class extends zi{constructor(e,r,n){super(qp(r),Zp(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,r={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}insert(e,r,n={}){this.controls.splice(e,0,r),this._registerControl(r),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,r={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:r.emitEvent})}setControl(e,r,n={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),r&&(this.controls.splice(i,0,r),this._registerControl(r)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,r={}){eE(this,!1,e),e.forEach((n,i)=>{Jw(this,!1,i),this.at(i).setValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(e.forEach((n,i)=>{this.at(i)&&this.at(i).patchValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e=[],r={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(r=>r._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((r,n)=>n._syncPendingControls()?!0:r,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((r,n)=>{e(r,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(r=>r.enabled&&e(r))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};function Vw(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var eG=(()=>{let e=class e{constructor(){this.useNonNullable=!1}get nonNullable(){let n=new e;return n.useNonNullable=!0,n}group(n,i=null){let o=this._reduceControls(n),s={};return Vw(i)?s=i:i!==null&&(s.validators=i.validator,s.asyncValidators=i.asyncValidator),new Gi(o,s)}record(n,i=null){let o=this._reduceControls(n);return new Hp(o,i)}control(n,i,o){let s={};return this.useNonNullable?(Vw(i)?s=i:(s.validators=i,s.asyncValidators=o),new xs(n,O(b({},s),{nonNullable:!0}))):new xs(n,i,o)}array(n,i,o){let s=n.map(a=>this._createControl(a));return new zp(s,i,o)}_reduceControls(n){let i={};return Object.keys(n).forEach(o=>{i[o]=this._createControl(n[o])}),i}_createControl(n){if(n instanceof xs)return n;if(n instanceof zi)return n;if(Array.isArray(n)){let i=n[0],o=n.length>1?n[1]:null,s=n.length>2?n[2]:null;return this.control(i,o,s)}else return this.control(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var tG=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:Wi,useValue:n.callSetDisabledState??zu}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[cE]});let t=e;return t})(),nG=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:Xp,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Wi,useValue:n.callSetDisabledState??zu}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[cE]});let t=e;return t})();var em;try{em=typeof Intl<"u"&&Intl.v8BreakIterator}catch{em=!1}var je=(()=>{let e=class e{constructor(n){this._platformId=n,this.isBrowser=this._platformId?Uh(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||em)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(i){return new(i||e)(p(Qe))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var qi,uE=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function lG(){if(qi)return qi;if(typeof document!="object"||!document)return qi=new Set(uE),qi;let t=document.createElement("input");return qi=new Set(uE.filter(e=>(t.setAttribute("type",e),t.type===e))),qi}var Ss;function Vk(){if(Ss==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ss=!0}))}finally{Ss=Ss||!1}return Ss}function Zi(t){return Vk()?t:!!t.capture}var Fr;function dG(){if(Fr==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Fr=!1,Fr;if("scrollBehavior"in document.documentElement.style)Fr=!0;else{let t=Element.prototype.scrollTo;t?Fr=!/\{\s*\[native code\]\s*\}/.test(t.toString()):Fr=!1}}return Fr}var Jp;function Uk(){if(Jp==null){let t=typeof document<"u"?document.head:null;Jp=!!(t&&(t.createShadowRoot||t.attachShadow))}return Jp}function lE(t){if(Uk()){let e=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function Bk(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function Rn(t){return t.composedPath?t.composedPath()[0]:t.target}function dE(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function qu(t,...e){return e.length?e.some(r=>t[r]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function $k(t){return t!=null&&`${t}`!="false"}function Hk(t,e=0){return zk(t)?Number(t):e}function zk(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function tm(t){return Array.isArray(t)?t:[t]}function pG(t){return t==null?"":typeof t=="string"?t:`${t}px`}function kr(t){return t instanceof ne?t.nativeElement:t}var Gk=(()=>{let e=class e{create(n){return typeof MutationObserver>"u"?null:new MutationObserver(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var fE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({providers:[Gk]});let t=e;return t})();var hE=new Set,Pr,Wk=(()=>{let e=class e{constructor(n,i){this._platform=n,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Zk}matchMedia(n){return(this._platform.WEBKIT||this._platform.BLINK)&&qk(n,this._nonce),this._matchMedia(n)}};e.\u0275fac=function(i){return new(i||e)(p(je),p(ko,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function qk(t,e){if(!hE.has(t))try{Pr||(Pr=document.createElement("style"),e&&Pr.setAttribute("nonce",e),Pr.setAttribute("type","text/css"),document.head.appendChild(Pr)),Pr.sheet&&(Pr.sheet.insertRule(`@media ${t} {body{ }}`,0),hE.add(t))}catch(r){console.error(r)}}function Zk(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var mE=(()=>{let e=class e{constructor(n,i){this._mediaMatcher=n,this._zone=i,this._queries=new Map,this._destroySubject=new B}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(n){return pE(tm(n)).some(o=>this._registerQuery(o).mql.matches)}observe(n){let o=pE(tm(n)).map(a=>this._registerQuery(a).observable),s=fr(o);return s=Gt(s.pipe(ge(1)),s.pipe(Jr(1),Kr(0))),s.pipe(C(a=>{let c={matches:!1,breakpoints:{}};return a.forEach(({matches:u,query:l})=>{c.matches=c.matches||u,c.breakpoints[l]=u}),c}))}_registerQuery(n){if(this._queries.has(n))return this._queries.get(n);let i=this._mediaMatcher.matchMedia(n),s={observable:new N(a=>{let c=u=>this._zone.run(()=>a.next(u));return i.addListener(c),()=>{i.removeListener(c)}}).pipe(po(i),C(({matches:a})=>({query:n,matches:a})),Vn(this._destroySubject)),mql:i};return this._queries.set(n,s),s}};e.\u0275fac=function(i){return new(i||e)(p(Wk),p(P))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function pE(t){return t.map(e=>e.split(",")).reduce((e,r)=>e.concat(r)).map(e=>e.trim())}var CG={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var _E=" ";function h1(t,e,r){let n=Qu(t,e);r=r.trim(),!n.some(i=>i.trim()===r)&&(n.push(r),t.setAttribute(e,n.join(_E)))}function p1(t,e,r){let n=Qu(t,e);r=r.trim();let i=n.filter(o=>o!==r);i.length?t.setAttribute(e,i.join(_E)):t.removeAttribute(e)}function Qu(t,e){return t.getAttribute(e)?.match(/\S+/g)??[]}var wE="cdk-describedby-message",Zu="cdk-describedby-host",im=0,HG=(()=>{let e=class e{constructor(n,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${im++}`,this._document=n,this._id=g(xr)+"-"+im++}describe(n,i,o){if(!this._canBeDescribed(n,i))return;let s=nm(i,o);typeof i!="string"?(gE(i,this._id),this._messageRegistry.set(s,{messageElement:i,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(i,o),this._isElementDescribedByMessage(n,s)||this._addMessageReference(n,s)}removeDescription(n,i,o){if(!i||!this._isElementNode(n))return;let s=nm(i,o);if(this._isElementDescribedByMessage(n,s)&&this._removeMessageReference(n,s),typeof i=="string"){let a=this._messageRegistry.get(s);a&&a.referenceCount===0&&this._deleteMessageElement(s)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let n=this._document.querySelectorAll(`[${Zu}="${this._id}"]`);for(let i=0;io.indexOf(wE)!=0);n.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(n,i){let o=this._messageRegistry.get(i);h1(n,"aria-describedby",o.messageElement.id),n.setAttribute(Zu,this._id),o.referenceCount++}_removeMessageReference(n,i){let o=this._messageRegistry.get(i);o.referenceCount--,p1(n,"aria-describedby",o.messageElement.id),n.removeAttribute(Zu)}_isElementDescribedByMessage(n,i){let o=Qu(n,"aria-describedby"),s=this._messageRegistry.get(i),a=s&&s.messageElement.id;return!!a&&o.indexOf(a)!=-1}_canBeDescribed(n,i){if(!this._isElementNode(n))return!1;if(i&&typeof i=="object")return!0;let o=i==null?"":`${i}`.trim(),s=n.getAttribute("aria-label");return o?!s||s.trim()!==o:!1}_isElementNode(n){return n.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(i){return new(i||e)(p(W),p(je))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function nm(t,e){return typeof t=="string"?`${e||""}/${t}`:t}function gE(t,e){t.id||(t.id=`${wE}-${e}-${im++}`)}var Xu=class{constructor(e,r){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new B,this._typeaheadSubscription=ae.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=n=>n.disabled,this._pressedLetters=[],this.tabOut=new B,this.change=new B,e instanceof li?this._itemChangesSubscription=e.changes.subscribe(n=>this._itemsChanged(n.toArray())):Oc(e)&&(this._effectRef=qc(()=>this._itemsChanged(e()),{injector:r}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(ee(r=>this._pressedLetters.push(r)),Kr(e),le(()=>this._pressedLetters.length>0),C(()=>this._pressedLetters.join(""))).subscribe(r=>{let n=this._getItemsArray();for(let i=1;i!e[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(r){case 9:this.tabOut.next();return;case 40:if(this._vertical&&i){this.setNextItemActive();break}else return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&i){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&i){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&i){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&i){let o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&r<=90||r>=48&&r<=57)&&this._letterKeyStream.next(String.fromCharCode(r)));return}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){let r=this._getItemsArray(),n=typeof e=="number"?e:r.indexOf(e),i=r[n];this._activeItem=i??null,this._activeItemIndex=n}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let r=this._getItemsArray();for(let n=1;n<=r.length;n++){let i=(this._activeItemIndex+e*n+r.length)%r.length,o=r[i];if(!this._skipPredicateFn(o)){this.setActiveItem(i);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,r){let n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(e+=r,!n[e])return;this.setActiveItem(e)}}_getItemsArray(){return Oc(this._items)?this._items():this._items instanceof li?this._items.toArray():this._items}_itemsChanged(e){if(this._activeItem){let r=e.indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}},vE=class extends Xu{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}},bE=class extends Xu{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};function om(t){return t.buttons===0||t.detail===0}function sm(t){let e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var m1=new v("cdk-input-modality-detector-options"),g1={ignoreKeys:[18,17,224,91,16]},EE=650,Yi=Zi({passive:!0,capture:!0}),v1=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(n,i,o,s){this._platform=n,this._mostRecentTarget=null,this._modality=new de(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(c=>c===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Rn(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs{if(sm(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Rn(a)},this._options=b(b({},g1),s),this.modalityDetected=this._modality.pipe(Jr(1)),this.modalityChanged=this.modalityDetected.pipe(Qr()),n.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Yi),o.addEventListener("mousedown",this._onMousedown,Yi),o.addEventListener("touchstart",this._onTouchstart,Yi)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Yi),document.removeEventListener("mousedown",this._onMousedown,Yi),document.removeEventListener("touchstart",this._onTouchstart,Yi))}};e.\u0275fac=function(i){return new(i||e)(p(je),p(P),p(W),p(m1,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),b1=new v("liveAnnouncerElement",{providedIn:"root",factory:y1});function y1(){return null}var D1=new v("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),_1=0,zG=(()=>{let e=class e{constructor(n,i,o,s){this._ngZone=i,this._defaultOptions=s,this._document=o,this._liveElement=n||this._createLiveElement()}announce(n,...i){let o=this._defaultOptions,s,a;return i.length===1&&typeof i[0]=="number"?a=i[0]:[s,a]=i,this.clear(),clearTimeout(this._previousTimeout),s||(s=o&&o.politeness?o.politeness:"polite"),a==null&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",s),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=n,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let n="cdk-live-announcer-element",i=this._document.getElementsByClassName(n),o=this._document.createElement("div");for(let s=0;s .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let e=class e{constructor(n,i,o,s,a){this._ngZone=n,this._platform=i,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new B,this._rootNodeFocusAndBlurListener=c=>{let u=Rn(c);for(let l=u;l;l=l.parentElement)c.type==="focus"?this._onFocus(c,l):this._onBlur(c,l)},this._document=s,this._detectionMode=a?.detectionMode||Ku.IMMEDIATE}monitor(n,i=!1){let o=kr(n);if(!this._platform.isBrowser||o.nodeType!==1)return x();let s=lE(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return i&&(a.checkChildren=!0),a.subject;let c={checkChildren:i,subject:new B,rootNode:s};return this._elementInfo.set(o,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(n){let i=kr(n),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(n,i,o){let s=kr(n),a=this._getDocument().activeElement;s===a?this._getClosestElementsInfo(s).forEach(([c,u])=>this._originChanged(c,i,u)):(this._setOrigin(i),typeof s.focus=="function"&&s.focus(o))}ngOnDestroy(){this._elementInfo.forEach((n,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:n&&this._isLastInteractionFromInputLabel(n)?"mouse":"program"}_shouldBeAttributedToTouch(n){return this._detectionMode===Ku.EVENTUAL||!!n?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(n,i){n.classList.toggle("cdk-focused",!!i),n.classList.toggle("cdk-touch-focused",i==="touch"),n.classList.toggle("cdk-keyboard-focused",i==="keyboard"),n.classList.toggle("cdk-mouse-focused",i==="mouse"),n.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(n,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=n,this._originFromTouchInteraction=n==="touch"&&i,this._detectionMode===Ku.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?EE:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(n,i){let o=this._elementInfo.get(i),s=Rn(n);!o||!o.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),o)}_onBlur(n,i){let o=this._elementInfo.get(i);!o||o.checkChildren&&n.relatedTarget instanceof Node&&i.contains(n.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,null))}_emitOrigin(n,i){n.subject.observers.length&&this._ngZone.run(()=>n.subject.next(i))}_registerGlobalListeners(n){if(!this._platform.isBrowser)return;let i=n.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Yu),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Yu)}),this._rootNodeFocusListenerCount.set(i,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Vn(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(n){let i=n.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Yu),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Yu),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(n,i,o){this._setClasses(n,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(n){let i=[];return this._elementInfo.forEach((o,s)=>{(s===n||o.checkChildren&&s.contains(n))&&i.push([s,o])}),i}_isLastInteractionFromInputLabel(n){let{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!i||i===n||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA"||n.disabled)return!1;let s=n.labels;if(s){for(let a=0;a{let e=class e{constructor(n,i){this._platform=n,this._document=i,this._breakpointSubscription=g(mE).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Lr.NONE;let n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);let i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.getComputedStyle(n):null,s=(o&&o.backgroundColor||"").replace(/ /g,"");switch(n.remove(),s){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Lr.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Lr.BLACK_ON_WHITE}return Lr.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let n=this._document.body.classList;n.remove(rm,yE,DE),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===Lr.BLACK_ON_WHITE?n.add(rm,yE):i===Lr.WHITE_ON_BLACK&&n.add(rm,DE)}}};e.\u0275fac=function(i){return new(i||e)(p(je),p(W))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),GG=(()=>{let e=class e{constructor(n){n._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(i){return new(i||e)(p(am))},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[fE]});let t=e;return t})();var I1=new v("cdk-dir-doc",{providedIn:"root",factory:C1});function C1(){return g(W)}var x1=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function M1(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?x1.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var n5=(()=>{let e=class e{constructor(n){if(this.value="ltr",this.change=new X,n){let i=n.body?n.body.dir:null,o=n.documentElement?n.documentElement.dir:null;this.value=M1(i||o||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(i){return new(i||e)(p(I1,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var cm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();var A1=["*",[["mat-option"],["ng-container"]]],N1=["*","mat-option, ng-container"],R1=["text"],O1=[[["mat-icon"]],"*"],F1=["mat-icon","*"];function k1(t,e){if(t&1&&Je(0,"mat-pseudo-checkbox",1),t&2){let r=Lc();Mi("disabled",r.disabled)("state",r.selected?"checked":"unchecked")}}function P1(t,e){if(t&1&&Je(0,"mat-pseudo-checkbox",3),t&2){let r=Lc();Mi("disabled",r.disabled)}}function L1(t,e){if(t&1&&(wn(0,"span",4),bh(1),En()),t&2){let r=Lc();Ci(),Ho("(",r.group.label,")")}}var j1=["mat-internal-form-field",""],V1=["*"];var E5=(()=>{let e=class e{};e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";let t=e;return t})(),I5=(()=>{let e=class e{};e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms";let t=e;return t})();function U1(){return!0}var B1=new v("mat-sanity-checks",{providedIn:"root",factory:U1}),ln=(()=>{let e=class e{constructor(n,i,o){this._sanityChecks=i,this._document=o,this._hasDoneGlobalChecks=!1,n._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(n){return dE()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[n]}};e.\u0275fac=function(i){return new(i||e)(p(am),p(B1,8),p(W))},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[cm,cm]});let t=e;return t})();var CE=class{constructor(e,r,n,i,o){this._defaultMatcher=e,this.ngControl=r,this._parentFormGroup=n,this._parentForm=i,this._stateChanges=o,this.errorState=!1}updateErrorState(){let e=this.errorState,r=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,i=this.ngControl?this.ngControl.control:null,o=n?.isErrorState(i,r)??!1;o!==e&&(this.errorState=o,this._stateChanges.next())}};var C5=(()=>{let e=class e{isErrorState(n,i){return!!(n&&n.invalid&&(n.touched||i&&i.submitted))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var xt=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(xt||{}),dm=class{constructor(e,r,n,i=!1){this._renderer=e,this.element=r,this.config=n,this._animationForciblyDisabledThroughCss=i,this.state=xt.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},xE=Zi({passive:!0,capture:!0}),fm=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let r=Rn(e);r&&this._events.get(e.type)?.forEach((n,i)=>{(i===r||i.contains(r))&&n.forEach(o=>o.handleEvent(e))})}}addHandler(e,r,n,i){let o=this._events.get(r);if(o){let s=o.get(n);s?s.add(i):o.set(n,new Set([i]))}else this._events.set(r,new Map([[n,new Set([i])]])),e.runOutsideAngular(()=>{document.addEventListener(r,this._delegateEventHandler,xE)})}removeHandler(e,r,n){let i=this._events.get(e);if(!i)return;let o=i.get(r);o&&(o.delete(n),o.size===0&&i.delete(r),i.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,xE)))}},ME={enterDuration:225,exitDuration:150},$1=800,SE=Zi({passive:!0,capture:!0}),TE=["mousedown","touchstart"],AE=["mouseup","mouseleave","touchend","touchcancel"],Ts=class Ts{constructor(e,r,n,i){this._target=e,this._ngZone=r,this._platform=i,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=kr(n))}fadeInRipple(e,r,n={}){let i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=b(b({},ME),n.animation);n.centered&&(e=i.left+i.width/2,r=i.top+i.height/2);let s=n.radius||H1(e,r,i),a=e-i.left,c=r-i.top,u=o.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=`${a-s}px`,l.style.top=`${c-s}px`,l.style.height=`${s*2}px`,l.style.width=`${s*2}px`,n.color!=null&&(l.style.backgroundColor=n.color),l.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(l);let d=window.getComputedStyle(l),f=d.transitionProperty,h=d.transitionDuration,m=f==="none"||h==="0s"||h==="0s, 0s"||i.width===0&&i.height===0,_=new dm(this,l,n,m);l.style.transform="scale3d(1, 1, 1)",_.state=xt.FADING_IN,n.persistent||(this._mostRecentTransientRipple=_);let w=null;return!m&&(u||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let E=()=>{w&&(w.fallbackTimer=null),clearTimeout(q),this._finishRippleTransition(_)},k=()=>this._destroyRipple(_),q=setTimeout(k,u+100);l.addEventListener("transitionend",E),l.addEventListener("transitioncancel",k),w={onTransitionEnd:E,onTransitionCancel:k,fallbackTimer:q}}),this._activeRipples.set(_,w),(m||!u)&&this._finishRippleTransition(_),_}fadeOutRipple(e){if(e.state===xt.FADING_OUT||e.state===xt.HIDDEN)return;let r=e.element,n=b(b({},ME),e.config.animation);r.style.transitionDuration=`${n.exitDuration}ms`,r.style.opacity="0",e.state=xt.FADING_OUT,(e._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let r=kr(e);!this._platform.isBrowser||!r||r===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=r,TE.forEach(n=>{Ts._eventManager.addHandler(this._ngZone,n,r,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{AE.forEach(r=>{this._triggerElement.addEventListener(r,this,SE)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===xt.FADING_IN?this._startFadeOutTransition(e):e.state===xt.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let r=e===this._mostRecentTransientRipple,{persistent:n}=e.config;e.state=xt.VISIBLE,!n&&(!r||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let r=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=xt.HIDDEN,r!==null&&(e.element.removeEventListener("transitionend",r.onTransitionEnd),e.element.removeEventListener("transitioncancel",r.onTransitionCancel),r.fallbackTimer!==null&&clearTimeout(r.fallbackTimer)),e.element.remove()}_onMousedown(e){let r=om(e),n=this._lastTouchStartEvent&&Date.now(){let r=e.state===xt.VISIBLE||e.config.terminateOnPointerUp&&e.state===xt.FADING_IN;!e.config.persistent&&r&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(TE.forEach(r=>Ts._eventManager.removeHandler(r,e,this)),this._pointerUpEventsRegistered&&(AE.forEach(r=>e.removeEventListener(r,this,SE)),this._pointerUpEventsRegistered=!1))}};Ts._eventManager=new fm;var hm=Ts;function H1(t,e,r){let n=Math.max(Math.abs(t-r.left),Math.abs(t-r.right)),i=Math.max(Math.abs(e-r.top),Math.abs(e-r.bottom));return Math.sqrt(n*n+i*i)}var FE=new v("mat-ripple-global-options"),kE=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(n){this._trigger=n,this._setupTriggerEventsIfEnabled()}constructor(n,i,o,s,a){this._elementRef=n,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new hm(this,i,n,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:b(b(b({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(n,i=0,o){return typeof n=="number"?this._rippleRenderer.fadeInRipple(n,i,b(b({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,b(b({},this.rippleConfig),n))}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(P),y(je),y(FE,8),y(Kn,8))},e.\u0275dir=G({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,o){i&2&&we("mat-ripple-unbounded",o.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let t=e;return t})(),mm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[ln,ln]});let t=e;return t})(),z1=(()=>{let e=class e{constructor(n){this._animationMode=n,this.state="unchecked",this.disabled=!1,this.appearance="full"}};e.\u0275fac=function(i){return new(i||e)(y(Kn,8))},e.\u0275cmp=nt({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,o){i&2&&we("mat-pseudo-checkbox-indeterminate",o.state==="indeterminate")("mat-pseudo-checkbox-checked",o.state==="checked")("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal",o.appearance==="minimal")("mat-pseudo-checkbox-full",o.appearance==="full")("_mat-animation-noopable",o._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[at],decls:0,vars:0,template:function(i,o){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0});let t=e;return t})(),G1=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[ln]});let t=e;return t})(),PE=new v("MAT_OPTION_PARENT_COMPONENT"),W1=0,LE=new v("MatOptgroup"),x5=(()=>{let e=class e{constructor(n){this.disabled=!1,this._labelId=`mat-optgroup-label-${W1++}`,this._inert=n?.inertGroups??!1}};e.\u0275fac=function(i){return new(i||e)(y(PE,8))},e.\u0275cmp=nt({type:e,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(i,o){i&2&&Xe("role",o._inert?null:"group")("aria-disabled",o._inert?null:o.disabled.toString())("aria-labelledby",o._inert?null:o._labelId)},inputs:{label:"label",disabled:[2,"disabled","disabled",Ee]},exportAs:["matOptgroup"],standalone:!0,features:[_t([{provide:LE,useExisting:e}]),st,at],ngContentSelectors:N1,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(i,o){i&1&&(nn(A1),wn(0,"span",0)(1,"span",1),bh(2),Le(3),En()(),Le(4,1)),i&2&&(we("mdc-list-item--disabled",o.disabled),Mi("id",o._labelId),Ci(2),Ho("",o.label," "))},styles:[".mat-mdc-optgroup{color:var(--mat-optgroup-label-text-color);font-family:var(--mat-optgroup-label-text-font);line-height:var(--mat-optgroup-label-text-line-height);font-size:var(--mat-optgroup-label-text-size);letter-spacing:var(--mat-optgroup-label-text-tracking);font-weight:var(--mat-optgroup-label-text-weight)}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;outline:none}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal}"],encapsulation:2,changeDetection:0});let t=e;return t})(),q1=0,pm=class{constructor(e,r=!1){this.source=e,this.isUserInput=r}},M5=(()=>{let e=class e{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(n){this._disabled=n}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(n,i,o,s){this._element=n,this._changeDetectorRef=i,this._parent=o,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${q1++}`,this.onSelectionChange=new X,this._stateChanges=new B}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(n=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),n&&this._emitSelectionChangeEvent())}deselect(n=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),n&&this._emitSelectionChangeEvent())}focus(n,i){let o=this._getHostElement();typeof o.focus=="function"&&o.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(n){(n.keyCode===13||n.keyCode===32)&&!qu(n)&&(this._selectViaInteraction(),n.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let n=this.viewValue;n!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=n)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(n=!1){this.onSelectionChange.emit(new pm(this,n))}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(wt),y(PE,8),y(LE,8))},e.\u0275cmp=nt({type:e,selectors:[["mat-option"]],viewQuery:function(i,o){if(i&1&&SD(R1,7),i&2){let s;jc(s=Vc())&&(o._text=s.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,o){i&1&&In("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),i&2&&(gh("id",o.id),Xe("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),we("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",Ee]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[st,at],ngContentSelectors:F1,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,o){i&1&&(nn(O1),kc(0,k1,1,2,"mat-pseudo-checkbox",1),Le(1),wn(2,"span",2,0),Le(4,1),En(),kc(5,P1,1,1,"mat-pseudo-checkbox",3)(6,L1,2,1,"span",4),Je(7,"div",5)),i&2&&(Pc(o.multiple?0:-1),Ci(5),Pc(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),Ci(),Pc(o.group&&o.group._inert?6:-1),Ci(),Mi("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[z1,kE],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight)}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color);outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let t=e;return t})();function S5(t,e,r){if(r.length){let n=e.toArray(),i=r.toArray(),o=0;for(let s=0;sr+n?Math.max(0,t-n+e):r}var A5=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[mm,ln,G1]});let t=e;return t})(),NE={capture:!0},RE=["focus","mousedown","mouseenter","touchstart"],um="mat-ripple-loader-uninitialized",lm="mat-ripple-loader-class-name",OE="mat-ripple-loader-centered",Ju="mat-ripple-loader-disabled",jE=(()=>{let e=class e{constructor(){this._document=g(W,{optional:!0}),this._animationMode=g(Kn,{optional:!0}),this._globalRippleOptions=g(FE,{optional:!0}),this._platform=g(je),this._ngZone=g(P),this._hosts=new Map,this._onInteraction=n=>{let i=Rn(n);if(i instanceof HTMLElement){let o=i.closest(`[${um}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}},this._ngZone.runOutsideAngular(()=>{for(let n of RE)this._document?.addEventListener(n,this._onInteraction,NE)})}ngOnDestroy(){let n=this._hosts.keys();for(let i of n)this.destroyRipple(i);for(let i of RE)this._document?.removeEventListener(i,this._onInteraction,NE)}configureRipple(n,i){n.setAttribute(um,this._globalRippleOptions?.namespace??""),(i.className||!n.hasAttribute(lm))&&n.setAttribute(lm,i.className||""),i.centered&&n.setAttribute(OE,""),i.disabled&&n.setAttribute(Ju,"")}getRipple(n){return this._hosts.get(n)||this._createRipple(n)}setDisabled(n,i){let o=this._hosts.get(n);if(o){o.disabled=i;return}i?n.setAttribute(Ju,""):n.removeAttribute(Ju)}_createRipple(n){if(!this._document)return;let i=this._hosts.get(n);if(i)return i;n.querySelector(".mat-ripple")?.remove();let o=this._document.createElement("span");o.classList.add("mat-ripple",n.getAttribute(lm)),n.append(o);let s=new kE(new ne(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return s._isInitialized=!0,s.trigger=n,s.centered=n.hasAttribute(OE),s.disabled=n.hasAttribute(Ju),this.attachRipple(n,s),s}attachRipple(n,i){n.removeAttribute(um),this._hosts.set(n,i)}destroyRipple(n){let i=this._hosts.get(n);i&&(i.ngOnDestroy(),this._hosts.delete(n))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),N5=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=nt({type:e,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,o){i&2&&we("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[at],attrs:j1,ngContentSelectors:V1,decls:1,vars:0,template:function(i,o){i&1&&(nn(),Le(0))},styles:[".mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0});let t=e;return t})();var VE=["mat-button",""],UE=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],BE=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],Z1='.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.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)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-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)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-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[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{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.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)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-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)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-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[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{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.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)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-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)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-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:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.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)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * 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)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-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)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-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[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-button-base{text-decoration:none}.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;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',$E=".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}";var Y1=["mat-icon-button",""],K1=["*"];var Q1=new v("MAT_BUTTON_CONFIG");var X1=[{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"]}],gm=(()=>{let e=class e{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(n){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,n)}get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=n,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(n){this._disabled=n,this._updateRippleDisabled()}constructor(n,i,o,s){this._elementRef=n,this._platform=i,this._ngZone=o,this._animationMode=s,this._focusMonitor=g(IE),this._rippleLoader=g(jE),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let a=g(Q1,{optional:!0}),c=n.nativeElement,u=c.classList;this.disabledInteractive=a?.disabledInteractive??!1,this._rippleLoader?.configureRipple(c,{className:"mat-mdc-button-ripple"});for(let{attribute:l,mdcClasses:d}of X1)c.hasAttribute(l)&&u.add(...d)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(n="program",i){n?this._focusMonitor.focusVia(this._elementRef.nativeElement,n,i):this._elementRef.nativeElement.focus(i)}_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)}};e.\u0275fac=function(i){Lo()},e.\u0275dir=G({type:e,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Ee],disabled:[2,"disabled","disabled",Ee],ariaDisabled:[2,"aria-disabled","ariaDisabled",Ee],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Ee]},features:[st]});let t=e;return t})();var J1=(()=>{let e=class e extends gm{constructor(n,i,o,s){super(n,i,o,s),this._haltDisabledEvents=a=>{this.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_getAriaDisabled(){return this.ariaDisabled==null?this.disabled:this.ariaDisabled}};e.\u0275fac=function(i){Lo()},e.\u0275dir=G({type:e,inputs:{tabIndex:[2,"tabIndex","tabIndex",n=>n==null?void 0:Ih(n)]},features:[st,be]});let t=e;return t})(),G5=(()=>{let e=class e extends gm{constructor(n,i,o,s){super(n,i,o,s)}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(je),y(P),y(Kn,8))},e.\u0275cmp=nt({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(i,o){i&2&&(Xe("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Si(o.color?"mat-"+o.color:""),we("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[be,at],attrs:VE,ngContentSelectors:BE,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(i,o){i&1&&(nn(UE),Je(0,"span",0),Le(1),wn(2,"span",1),Le(3,1),En(),Le(4,2),Je(5,"span",2)(6,"span",3)),i&2&&we("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.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)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-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)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-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[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{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.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)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-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)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-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[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{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.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)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-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)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-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:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.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)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * 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)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-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)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-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[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-button-base{text-decoration:none}.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;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0});let t=e;return t})(),W5=(()=>{let e=class e extends J1{constructor(n,i,o,s){super(n,i,o,s)}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(je),y(P),y(Kn,8))},e.\u0275cmp=nt({type:e,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(i,o){i&2&&(Xe("disabled",o._getDisabledAttribute())("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-disabled",o._getDisabledAttribute()),Si(o.color?"mat-"+o.color:""),we("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[be,at],attrs:VE,ngContentSelectors:BE,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(i,o){i&1&&(nn(UE),Je(0,"span",0),Le(1),wn(2,"span",1),Le(3,1),En(),Le(4,2),Je(5,"span",2)(6,"span",3)),i&2&&we("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[Z1,$E],encapsulation:2,changeDetection:0});let t=e;return t})();var q5=(()=>{let e=class e extends gm{constructor(n,i,o,s){super(n,i,o,s),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(je),y(P),y(Kn,8))},e.\u0275cmp=nt({type:e,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(i,o){i&2&&(Xe("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Si(o.color?"mat-"+o.color:""),we("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[be,at],attrs:Y1,ngContentSelectors:K1,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,o){i&1&&(nn(),Je(0,"span",0),Le(1),Je(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',$E],encapsulation:2,changeDetection:0});let t=e;return t})();var Z5=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[ln,mm,ln]});let t=e;return t})();var eP=["*"],el;function tP(){if(el===void 0&&(el=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(el=t.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return el}function As(t){return tP()?.createHTML(t)||t}function HE(t){return Error(`Unable to find icon with the name "${t}"`)}function nP(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function zE(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function GE(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var On=class{constructor(e,r,n){this.url=e,this.svgText=r,this.options=n}},rP=(()=>{let e=class e{constructor(n,i,o,s){this._httpClient=n,this._sanitizer=i,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=o}addSvgIcon(n,i,o){return this.addSvgIconInNamespace("",n,i,o)}addSvgIconLiteral(n,i,o){return this.addSvgIconLiteralInNamespace("",n,i,o)}addSvgIconInNamespace(n,i,o,s){return this._addSvgIconConfig(n,i,new On(o,null,s))}addSvgIconResolver(n){return this._resolvers.push(n),this}addSvgIconLiteralInNamespace(n,i,o,s){let a=this._sanitizer.sanitize(Pe.HTML,o);if(!a)throw GE(o);let c=As(a);return this._addSvgIconConfig(n,i,new On("",c,s))}addSvgIconSet(n,i){return this.addSvgIconSetInNamespace("",n,i)}addSvgIconSetLiteral(n,i){return this.addSvgIconSetLiteralInNamespace("",n,i)}addSvgIconSetInNamespace(n,i,o){return this._addSvgIconSetConfig(n,new On(i,null,o))}addSvgIconSetLiteralInNamespace(n,i,o){let s=this._sanitizer.sanitize(Pe.HTML,i);if(!s)throw GE(i);let a=As(s);return this._addSvgIconSetConfig(n,new On("",a,o))}registerFontClassAlias(n,i=n){return this._fontCssClassesByAlias.set(n,i),this}classNameForFontAlias(n){return this._fontCssClassesByAlias.get(n)||n}setDefaultFontSetClass(...n){return this._defaultFontSetClass=n,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(n){let i=this._sanitizer.sanitize(Pe.RESOURCE_URL,n);if(!i)throw zE(n);let o=this._cachedIconsByUrl.get(i);return o?x(tl(o)):this._loadSvgIconFromConfig(new On(n,null)).pipe(ee(s=>this._cachedIconsByUrl.set(i,s)),C(s=>tl(s)))}getNamedSvgIcon(n,i=""){let o=WE(i,n),s=this._svgIconConfigs.get(o);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,n),s)return this._svgIconConfigs.set(o,s),this._getSvgFromConfig(s);let a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(n,a):Ht(HE(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(n){return n.svgText?x(tl(this._svgElementFromConfig(n))):this._loadSvgIconFromConfig(n).pipe(C(i=>tl(i)))}_getSvgFromIconSetConfigs(n,i){let o=this._extractIconWithNameFromAnySet(n,i);if(o)return x(o);let s=i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Re(c=>{let l=`Loading icon set URL: ${this._sanitizer.sanitize(Pe.RESOURCE_URL,a.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(l)),x(null)})));return ao(s).pipe(C(()=>{let a=this._extractIconWithNameFromAnySet(n,i);if(!a)throw HE(n);return a}))}_extractIconWithNameFromAnySet(n,i){for(let o=i.length-1;o>=0;o--){let s=i[o];if(s.svgText&&s.svgText.toString().indexOf(n)>-1){let a=this._svgElementFromConfig(s),c=this._extractSvgIconFromSet(a,n,s.options);if(c)return c}}return null}_loadSvgIconFromConfig(n){return this._fetchIcon(n).pipe(ee(i=>n.svgText=i),C(()=>this._svgElementFromConfig(n)))}_loadSvgIconSetFromConfig(n){return n.svgText?x(null):this._fetchIcon(n).pipe(ee(i=>n.svgText=i))}_extractSvgIconFromSet(n,i,o){let s=n.querySelector(`[id="${i}"]`);if(!s)return null;let a=s.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,o);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),o);let c=this._svgElementFromString(As(""));return c.appendChild(a),this._setSvgAttributes(c,o)}_svgElementFromString(n){let i=this._document.createElement("DIV");i.innerHTML=n;let o=i.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(n){let i=this._svgElementFromString(As("")),o=n.attributes;for(let s=0;sAs(l)),ht(()=>this._inProgressUrlFetches.delete(a)),ho());return this._inProgressUrlFetches.set(a,u),u}_addSvgIconConfig(n,i,o){return this._svgIconConfigs.set(WE(n,i),o),this}_addSvgIconSetConfig(n,i){let o=this._iconSetConfigs.get(n);return o?o.push(i):this._iconSetConfigs.set(n,[i]),this}_svgElementFromConfig(n){if(!n.svgElement){let i=this._svgElementFromString(n.svgText);this._setSvgAttributes(i,n.options),n.svgElement=i}return n.svgElement}_getIconConfigFromResolvers(n,i){for(let o=0;oe?e.pathname+e.search:""}}var qE=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],cP=qE.map(t=>`[${t}]`).join(", "),uP=/^url\(['"]?#(.*?)['"]?\)$/,uW=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(n){this._color=n}get svgIcon(){return this._svgIcon}set svgIcon(n){n!==this._svgIcon&&(n?this._updateSvgIcon(n):this._svgIcon&&this._clearSvgElement(),this._svgIcon=n)}get fontSet(){return this._fontSet}set fontSet(n){let i=this._cleanupFontValue(n);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(n){let i=this._cleanupFontValue(n);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(n,i,o,s,a,c){this._elementRef=n,this._iconRegistry=i,this._location=s,this._errorHandler=a,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=ae.EMPTY,c&&(c.color&&(this.color=this._defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),o||n.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(n){if(!n)return["",""];let i=n.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${n}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let n=this._elementsWithExternalReferences;if(n&&n.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(n){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(n),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(n)}_clearSvgElement(){let n=this._elementRef.nativeElement,i=n.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let o=n.childNodes[i];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let n=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>n.classList.remove(o)),i.forEach(o=>n.classList.add(o)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&n.classList.remove(this._previousFontIconClass),this.fontIcon&&n.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(n){return typeof n=="string"?n.trim().split(" ")[0]:n}_prependPathToReferences(n){let i=this._elementsWithExternalReferences;i&&i.forEach((o,s)=>{o.forEach(a=>{s.setAttribute(a.name,`url('${n}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(n){let i=n.querySelectorAll(cP),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{let c=i[s],u=c.getAttribute(a),l=u?u.match(uP):null;if(l){let d=o.get(c);d||(d=[],o.set(c,d)),d.push({name:a,value:l[1]})}})}_updateSvgIcon(n){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),n){let[i,o]=this._splitIconName(n);i&&(this._svgNamespace=i),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,i).pipe(ge(1)).subscribe(s=>this._setSvgElement(s),s=>{let a=`Error retrieving icon ${i}:${o}! ${s.message}`;this._errorHandler.handleError(new Error(a))})}}};e.\u0275fac=function(i){return new(i||e)(y(ne),y(rP),Fo("aria-hidden"),y(sP),y(Te),y(oP,8))},e.\u0275cmp=nt({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,o){i&2&&(Xe("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),Si(o.color?"mat-"+o.color:""),we("mat-icon-inline",o.inline)("mat-icon-no-color",o.color!=="primary"&&o.color!=="accent"&&o.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",Ee],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[st,at],ngContentSelectors:eP,decls:1,vars:0,template:function(i,o){i&1&&(nn(),Le(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0});let t=e;return t})(),lW=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({imports:[ln,ln]});let t=e;return t})();var Mt=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(Mt||{}),fW="*";function hW(t,e){return{type:Mt.Trigger,name:t,definitions:e,options:{}}}function pW(t,e=null){return{type:Mt.Animate,styles:e,timings:t}}function mW(t,e=null){return{type:Mt.Group,steps:t,options:e}}function gW(t,e=null){return{type:Mt.Sequence,steps:t,options:e}}function vW(t){return{type:Mt.Style,styles:t,offset:null}}function bW(t,e,r){return{type:Mt.State,name:t,styles:e,options:r}}function yW(t){return{type:Mt.Keyframes,steps:t}}function DW(t,e,r=null){return{type:Mt.Transition,expr:t,animation:e,options:r}}function _W(t=null){return{type:Mt.AnimateChild,options:t}}function wW(t,e,r=null){return{type:Mt.Query,selector:t,animation:e,options:r}}function EW(t,e){return{type:Mt.Stagger,timings:t,animation:e}}var ZE=class{constructor(e=0,r=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+r}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let r=e=="start"?this._onStartFns:this._onDoneFns;r.forEach(n=>n()),r.length=0}},YE=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let r=0,n=0,i=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++r==o&&this._onFinish()}),s.onDestroy(()=>{++n==o&&this._onDestroy()}),s.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let r=e*this.totalTime;this.players.forEach(n=>{let i=n.totalTime?Math.min(1,r/n.totalTime):1;n.setPosition(i)})}getPosition(){let e=this.players.reduce((r,n)=>r===null||n.totalTime>r.totalTime?n:r,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let r=e=="start"?this._onStartFns:this._onDoneFns;r.forEach(n=>n()),r.length=0}},IW="!";function vm(t,e){let r=!e?.manualCleanup;r&&!e?.injector&&Ao(vm);let n=r?e?.injector?.get(Cr)??g(Cr):null,i=lP(e?.equal),o;e?.requireSync?o=_n({kind:0},{equal:i}):o=_n({kind:1,value:e?.initialValue},{equal:i});let s=t.subscribe({next:a=>o.set({kind:1,value:a}),error:a=>{if(e?.rejectErrors)throw a;o.set({kind:2,error:a})}});return n?.onDestroy(s.unsubscribe.bind(s)),on(()=>{let a=o();switch(a.kind){case 1:return a.value;case 2:throw a.error;case 0:throw new I(601,"`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.")}},{equal:e?.equal})}function lP(t=Object.is){return(e,r)=>e.kind===1&&r.kind===1&&t(e.value,r.value)}var _m={};function Cm(t,e){if(_m[t]=(_m[t]||0)+1,typeof e=="function")return bm(t,(...n)=>O(b({},e(...n)),{type:t}));switch(e?e._as:"empty"){case"empty":return bm(t,()=>({type:t}));case"props":return bm(t,n=>O(b({},n),{type:t}));default:throw new Error("Unexpected config.")}}function Ki(){return{_as:"props",_p:void 0}}function bm(t,e){return Object.defineProperty(e,"type",{value:t,writable:!1})}function dP(t){return t.charAt(0).toUpperCase()+t.substring(1)}function fP(t){return t.charAt(0).toLowerCase()+t.substring(1)}function d0(t){let{source:e,events:r}=t;return Object.keys(r).reduce((n,i)=>O(b({},n),{[hP(i)]:Cm(pP(e,i),r[i])}),{})}function xm(){return Ki()}function hP(t){return t.trim().split(" ").map((e,r)=>r===0?fP(e):dP(e)).join("")}function pP(t,e){return`[${t}] ${e}`}var f0="@ngrx/store/init",Qi=(()=>{let e=class e extends de{constructor(){super({type:f0})}next(n){if(typeof n=="function")throw new TypeError(` + Dispatch expected an object, instead it received a function. + If you're using the createAction function, make sure to invoke the function + before dispatching the action. For example, someAction should be someAction().`);if(typeof n>"u")throw new TypeError("Actions must be objects");if(typeof n.type>"u")throw new TypeError("Actions must have a type property");super.next(n)}complete(){}ngOnDestroy(){super.complete()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),mP=[Qi],h0=new v("@ngrx/store Internal Root Guard"),KE=new v("@ngrx/store Internal Initial State"),Mm=new v("@ngrx/store Initial State"),p0=new v("@ngrx/store Reducer Factory"),QE=new v("@ngrx/store Internal Reducer Factory Provider"),m0=new v("@ngrx/store Initial Reducers"),ym=new v("@ngrx/store Internal Initial Reducers"),XE=new v("@ngrx/store Store Features"),JE=new v("@ngrx/store Internal Store Reducers"),Dm=new v("@ngrx/store Internal Feature Reducers"),e0=new v("@ngrx/store Internal Feature Configs"),g0=new v("@ngrx/store Internal Store Features"),t0=new v("@ngrx/store Internal Feature Reducers Token"),v0=new v("@ngrx/store Feature Reducers"),n0=new v("@ngrx/store User Provided Meta Reducers"),nl=new v("@ngrx/store Meta Reducers"),r0=new v("@ngrx/store Internal Resolved Meta Reducers"),i0=new v("@ngrx/store User Runtime Checks Config"),o0=new v("@ngrx/store Internal User Runtime Checks Config"),Ns=new v("@ngrx/store Internal Runtime Checks"),Sm=new v("@ngrx/store Check if Action types are unique"),gP=new v("@ngrx/store Root Store Provider"),vP=new v("@ngrx/store Feature State Provider");function Tm(t,e={}){let r=Object.keys(t),n={};for(let o=0;or!==e).reduce((r,n)=>Object.assign(r,{[n]:t[n]}),{})}function b0(...t){return function(e){if(t.length===0)return e;let r=t[t.length-1];return t.slice(0,-1).reduceRight((i,o)=>o(i),r(e))}}function y0(t,e){return Array.isArray(e)&&e.length>0&&(t=b0.apply(null,[...e,t])),(r,n)=>{let i=t(r);return(o,s)=>(o=o===void 0?n:o,i(o,s))}}function yP(t){let e=Array.isArray(t)&&t.length>0?b0(...t):r=>r;return(r,n)=>(r=e(r),(i,o)=>(i=i===void 0?n:i,r(i,o)))}var Rs=class extends N{},rl=class extends Qi{},DP="@ngrx/store/update-reducers",il=(()=>{let e=class e extends de{get currentReducers(){return this.reducers}constructor(n,i,o,s){super(s(o,i)),this.dispatcher=n,this.initialState=i,this.reducers=o,this.reducerFactory=s}addFeature(n){this.addFeatures([n])}addFeatures(n){let i=n.reduce((o,{reducers:s,reducerFactory:a,metaReducers:c,initialState:u,key:l})=>{let d=typeof s=="function"?yP(c)(s,u):y0(a,c)(s,u);return o[l]=d,o},{});this.addReducers(i)}removeFeature(n){this.removeFeatures([n])}removeFeatures(n){this.removeReducers(n.map(i=>i.key))}addReducer(n,i){this.addReducers({[n]:i})}addReducers(n){this.reducers=b(b({},this.reducers),n),this.updateReducers(Object.keys(n))}removeReducer(n){this.removeReducers([n])}removeReducers(n){n.forEach(i=>{this.reducers=bP(this.reducers,i)}),this.updateReducers(n)}updateReducers(n){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:DP,features:n})}ngOnDestroy(){this.complete()}};e.\u0275fac=function(i){return new(i||e)(p(rl),p(Mm),p(m0),p(p0))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),_P=[il,{provide:Rs,useExisting:il},{provide:rl,useExisting:Qi}],Os=(()=>{let e=class e extends B{ngOnDestroy(){this.complete()}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Yn(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),wP=[Os],ol=class extends N{},s0=(()=>{let e=class e extends de{constructor(n,i,o,s){super(s);let c=n.pipe(dr(Rl)).pipe(mo(i)),u={state:s},l=c.pipe(fo(EP,u));this.stateSubscription=l.subscribe(({state:d,action:f})=>{this.next(d),o.next(f)}),this.state=vm(this,{manualCleanup:!0,requireSync:!0})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}};e.INIT=f0,e.\u0275fac=function(i){return new(i||e)(p(Qi),p(Rs),p(Os),p(Mm))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function EP(t={state:void 0},[e,r]){let{state:n}=t;return{state:r(n,e),action:e}}var IP=[s0,{provide:ol,useExisting:s0}],Ut=(()=>{let e=class e extends N{constructor(n,i,o){super(),this.actionsObserver=i,this.reducerManager=o,this.source=n,this.state=n.state}select(n,...i){return xP.call(null,n,...i)(this)}selectSignal(n,i){return on(()=>n(this.state()),i)}lift(n){let i=new e(this,this.actionsObserver,this.reducerManager);return i.operator=n,i}dispatch(n){this.actionsObserver.next(n)}next(n){this.actionsObserver.next(n)}error(n){this.actionsObserver.error(n)}complete(){this.actionsObserver.complete()}addReducer(n,i){this.reducerManager.addReducer(n,i)}removeReducer(n){this.reducerManager.removeReducer(n)}};e.\u0275fac=function(i){return new(i||e)(p(ol),p(Qi),p(il))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),CP=[Ut];function xP(t,e,...r){return function(i){let o;if(typeof t=="string"){let s=[e,...r].filter(Boolean);o=i.pipe(Bl(t,...s))}else if(typeof t=="function")o=i.pipe(C(s=>t(s,e)));else throw new TypeError(`Unexpected type '${typeof t}' in select operator, expected 'string' or 'function'`);return o.pipe(Qr())}}var Am="https://ngrx.io/guide/store/configuration/runtime-checks";function a0(t){return t===void 0}function c0(t){return t===null}function D0(t){return Array.isArray(t)}function MP(t){return typeof t=="string"}function SP(t){return typeof t=="boolean"}function TP(t){return typeof t=="number"}function _0(t){return typeof t=="object"&&t!==null}function AP(t){return _0(t)&&!D0(t)}function NP(t){if(!AP(t))return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null}function wm(t){return typeof t=="function"}function RP(t){return wm(t)&&t.hasOwnProperty("\u0275cmp")}function OP(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var FP=!1;function kP(){return FP}function u0(t,e){return t===e}function PP(t,e,r){for(let n=0;ns(t));return n.memoized.apply(null,o)}let i=e.map(o=>o(t,r));return n.memoized.apply(null,[...i,r])}function jP(t,e={stateFn:LP}){return function(...r){let n=r;if(Array.isArray(n[0])){let[l,...d]=n;n=[...l,...d]}else n.length===1&&VP(n[0])&&(n=UP(n[0]));let i=n.slice(0,n.length-1),o=n[n.length-1],s=i.filter(l=>l.release&&typeof l.release=="function"),a=t(function(...l){return o.apply(null,l)}),c=w0(function(l,d){return e.stateFn.apply(null,[l,i,d,a])});function u(){c.reset(),a.reset(),s.forEach(l=>l.release())}return Object.assign(c.memoized,{release:u,projector:a.memoized,setResult:c.setResult,clearResult:c.clearResult})}}function E0(t){return sl(e=>{let r=e[t];return!kP()&&wh()&&!(t in e)&&console.warn(`@ngrx/store: The feature name "${t}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${t}', ...) or StoreModule.forFeature('${t}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),r},e=>e)}function VP(t){return!!t&&typeof t=="object"&&Object.values(t).every(e=>typeof e=="function")}function UP(t){let e=Object.values(t),r=Object.keys(t),n=(...i)=>r.reduce((o,s,a)=>O(b({},o),{[s]:i[a]}),{});return[...e,n]}function BP(t){return t instanceof v?g(t):t}function $P(t,e){return e.map((r,n)=>{if(t[n]instanceof v){let i=g(t[n]);return{key:r.key,reducerFactory:i.reducerFactory?i.reducerFactory:Tm,metaReducers:i.metaReducers?i.metaReducers:[],initialState:i.initialState}}return r})}function HP(t){return t.map(e=>e instanceof v?g(e):e)}function I0(t){return typeof t=="function"?t():t}function zP(t,e){return t.concat(e)}function GP(){if(g(Ut,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function WP(t,e){return function(r,n){let i=e.action(n)?Em(n):n,o=t(r,i);return e.state()?Em(o):o}}function Em(t){Object.freeze(t);let e=wm(t);return Object.getOwnPropertyNames(t).forEach(r=>{if(!r.startsWith("\u0275")&&OP(t,r)&&(!e||r!=="caller"&&r!=="callee"&&r!=="arguments")){let n=t[r];(_0(n)||wm(n))&&!Object.isFrozen(n)&&Em(n)}}),t}function qP(t,e){return function(r,n){if(e.action(n)){let o=Im(n);l0(o,"action")}let i=t(r,n);if(e.state()){let o=Im(i);l0(o,"state")}return i}}function Im(t,e=[]){return(a0(t)||c0(t))&&e.length===0?{path:["root"],value:t}:Object.keys(t).reduce((n,i)=>{if(n)return n;let o=t[i];return RP(o)?n:a0(o)||c0(o)||TP(o)||SP(o)||MP(o)||D0(o)?!1:NP(o)?Im(o,[...e,i]):{path:[...e,i],value:o}},!1)}function l0(t,e){if(t===!1)return;let r=t.path.join("."),n=new Error(`Detected unserializable ${e} at "${r}". ${Am}#strict${e}serializability`);throw n.value=t.value,n.unserializablePath=r,n}function ZP(t,e){return function(r,n){if(e.action(n)&&!P.isInAngularZone())throw new Error(`Action '${n.type}' running outside NgZone. ${Am}#strictactionwithinngzone`);return t(r,n)}}function YP(t){return wh()?b({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},t):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function KP({strictActionSerializability:t,strictStateSerializability:e}){return r=>t||e?qP(r,{action:n=>t&&!Nm(n),state:()=>e}):r}function QP({strictActionImmutability:t,strictStateImmutability:e}){return r=>t||e?WP(r,{action:n=>t&&!Nm(n),state:()=>e}):r}function Nm(t){return t.type.startsWith("@ngrx")}function XP({strictActionWithinNgZone:t}){return e=>t?ZP(e,{action:r=>t&&!Nm(r)}):e}function JP(t){return[{provide:o0,useValue:t},{provide:i0,useFactory:eL,deps:[o0]},{provide:Ns,deps:[i0],useFactory:YP},{provide:nl,multi:!0,deps:[Ns],useFactory:QP},{provide:nl,multi:!0,deps:[Ns],useFactory:KP},{provide:nl,multi:!0,deps:[Ns],useFactory:XP}]}function C0(){return[{provide:Sm,multi:!0,deps:[Ns],useFactory:tL}]}function eL(t){return t}function tL(t){if(!t.strictActionTypeUniqueness)return;let e=Object.entries(_m).filter(([,r])=>r>1).map(([r])=>r);if(e.length)throw new Error(`Action types are registered more than once, ${e.map(r=>`"${r}"`).join(", ")}. ${Am}#strictactiontypeuniqueness`)}function nL(t={},e={}){return[{provide:h0,useFactory:GP},{provide:KE,useValue:e.initialState},{provide:Mm,useFactory:I0,deps:[KE]},{provide:ym,useValue:t},{provide:JE,useExisting:t instanceof v?t:ym},{provide:m0,deps:[ym,[new xf(JE)]],useFactory:BP},{provide:n0,useValue:e.metaReducers?e.metaReducers:[]},{provide:r0,deps:[nl,n0],useFactory:zP},{provide:QE,useValue:e.reducerFactory?e.reducerFactory:Tm},{provide:p0,deps:[QE,r0],useFactory:y0},mP,_P,wP,IP,CP,JP(e.runtimeChecks),C0()]}function rL(t,e,r={}){return[{provide:e0,multi:!0,useValue:t instanceof Object?{}:r},{provide:XE,multi:!0,useValue:{key:t instanceof Object?t.name:t,reducerFactory:!(r instanceof v)&&r.reducerFactory?r.reducerFactory:Tm,metaReducers:!(r instanceof v)&&r.metaReducers?r.metaReducers:[],initialState:!(r instanceof v)&&r.initialState?r.initialState:void 0}},{provide:g0,deps:[e0,XE],useFactory:$P},{provide:Dm,multi:!0,useValue:t instanceof Object?t.reducer:e},{provide:t0,multi:!0,useExisting:e instanceof v?e:Dm},{provide:v0,multi:!0,deps:[Dm,[new xf(t0)]],useFactory:HP},C0()]}var Fs=(()=>{let e=class e{constructor(n,i,o,s,a,c){}};e.\u0275fac=function(i){return new(i||e)(p(Qi),p(Rs),p(Os),p(Ut),p(h0,8),p(Sm,8))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),al=(()=>{let e=class e{constructor(n,i,o,s,a){this.features=n,this.featureReducers=i,this.reducerManager=o;let c=n.map((u,l)=>{let f=i.shift()[l];return O(b({},u),{reducers:f,initialState:I0(u.initialState)})});o.addFeatures(c)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}};e.\u0275fac=function(i){return new(i||e)(p(g0),p(v0),p(il),p(Fs),p(Sm,8))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),LW=(()=>{let e=class e{static forRoot(n,i){return{ngModule:Fs,providers:[...nL(n,i)]}}static forFeature(n,i,o={}){return{ngModule:al,providers:[...rL(n,i,o)]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();function ks(...t){let e=t.pop(),r=t.map(n=>n.type);return{reducer:e,types:r}}function x0(t,...e){let r=new Map;for(let n of e)for(let i of n.types){let o=r.get(i);if(o){let s=(a,c)=>n.reducer(o(a,c),c);r.set(i,s)}else r.set(i,n.reducer)}return function(n=t,i){let o=r.get(i.type);return o?o(n,i):n}}var Om={AUTH:{ROOT:"auth",LOGIN:"login"},MODE_SELECT:{ROOT:"mode-select"},WIZARD:{ROOT:"wizard"},MODEL_COMPRESSION:{ROOT:"project-settings"},MACHINE_UNLEARNING:{ROOT:"machine-unlearning"},RUNNING:{ROOT:"running"},MODEL_TRAINING:{ROOT:"model-training"},ALGORITHM_COMPARISON:{ROOT:"algorithm-comparison"},MULTI_MODAL:{ROOT:"multi-modal"},MODEL_SPECIALIZATION:{ROOT:"model-specialization"},AWQ:{ROOT:"awq"},DEMO:{ROOT:"demo",BUTTONS:"buttons",FORM_FIELDS:"form-fields",TABLE:"table",TYPOGRAPHY:"typography",ICONS:"icons",MENU:"menu",CARDS:"cards",WIZARD:"wizard",CHIPS:"chips",CHECKBOXES:"checkboxes",NOTIFICATIONS:"notifications",DRAWER:"drawer"}};var et=d0({source:"[Core -> Auth]",events:{Login:Ki(),"Login Success":Ki(),"Login Failure":Ki(),Logout:xm(),"Logout Success":xm(),"Logout Failure":Ki()}});var iL={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},ul="__@ngrx/effects_create__";function Ps(t,e={}){let r=e.functional?t:t(),n=b(b({},iL),e);return Object.defineProperty(r,ul,{value:n}),r}function oL(t){return Object.getOwnPropertyNames(t).filter(n=>t[n]&&t[n].hasOwnProperty(ul)?t[n][ul].hasOwnProperty("dispatch"):!1).map(n=>{let i=t[n][ul];return b({propertyName:n},i)})}function sL(t){return oL(t)}function A0(t){return Object.getPrototypeOf(t)}function aL(t){return!!t.constructor&&t.constructor.name!=="Object"&&t.constructor.name!=="Function"}function N0(t){return typeof t=="function"}function M0(t){return t.filter(N0)}function cL(t){return t instanceof v||N0(t)}function uL(t,e,r){let n=A0(t),o=!!n&&n.constructor.name!=="Object"?n.constructor.name:null,s=sL(t).map(({propertyName:a,dispatch:c,useEffectsErrorHandler:u})=>{let l=typeof t[a]=="function"?t[a]():t[a],d=u?r(l,e):l;return c===!1?d.pipe(uo()):d.pipe(Ul()).pipe(C(h=>({effect:t[a],notification:h,propertyName:a,sourceName:o,sourceInstance:t})))});return va(...s)}var lL=10;function R0(t,e,r=lL){return t.pipe(Re(n=>(e&&e.handleError(n),r<=1?t:R0(t,e,r-1))))}var O0=(()=>{let e=class e extends N{constructor(n){super(),n&&(this.source=n)}lift(n){let i=new e;return i.source=this,i.operator=n,i}};e.\u0275fac=function(i){return new(i||e)(p(Os))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Ls(...t){return le(e=>t.some(r=>typeof r=="string"?r===e.type:r.type===e.type))}var F0=new v("@ngrx/effects Internal Root Guard"),cl=new v("@ngrx/effects User Provided Effects"),Fm=new v("@ngrx/effects Internal Root Effects"),k0=new v("@ngrx/effects Internal Root Effects Instances"),S0=new v("@ngrx/effects Internal Feature Effects"),P0=new v("@ngrx/effects Internal Feature Effects Instance Groups"),dL=new v("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>R0}),L0="@ngrx/effects/init",KW=Cm(L0);function fL(t,e){if(t.notification.kind==="N"){let r=t.notification.value;!hL(r)&&e.handleError(new Error(`Effect ${pL(t)} dispatched an invalid action: ${mL(r)}`))}}function hL(t){return typeof t!="function"&&t&&t.type&&typeof t.type=="string"}function pL({propertyName:t,sourceInstance:e,sourceName:r}){let n=typeof e[t]=="function";return!!r?`"${r}.${String(t)}${n?"()":""}"`:`"${String(t)}()"`}function mL(t){try{return JSON.stringify(t)}catch{return t}}var gL="ngrxOnIdentifyEffects";function vL(t){return km(t,gL)}var bL="ngrxOnRunEffects";function yL(t){return km(t,bL)}var DL="ngrxOnInitEffects";function _L(t){return km(t,DL)}function km(t,e){return t&&e in t&&typeof t[e]=="function"}var j0=(()=>{let e=class e extends B{constructor(n,i){super(),this.errorHandler=n,this.effectsErrorHandler=i}addEffects(n){this.next(n)}toActions(){return this.pipe(Da(n=>aL(n)?A0(n):n),Q(n=>n.pipe(Da(wL))),Q(n=>{let i=n.pipe(ya(s=>EL(this.errorHandler,this.effectsErrorHandler)(s)),C(s=>(fL(s,this.errorHandler),s.notification)),le(s=>s.kind==="N"&&s.value!=null),jl()),o=n.pipe(ge(1),le(_L),C(s=>s.ngrxOnInitEffects()));return va(i,o)}))}};e.\u0275fac=function(i){return new(i||e)(p(Te),p(dL))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function wL(t){return vL(t)?t.ngrxOnIdentifyEffects():""}function EL(t,e){return r=>{let n=uL(r,t,e);return yL(r)?r.ngrxOnRunEffects(n):n}}var V0=(()=>{let e=class e{get isStarted(){return!!this.effectsSubscription}constructor(n,i){this.effectSources=n,this.store=i,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}};e.\u0275fac=function(i){return new(i||e)(p(j0),p(Ut))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),U0=(()=>{let e=class e{constructor(n,i,o,s,a,c,u){this.sources=n,i.start();for(let l of s)n.addEffects(l);o.dispatch({type:L0})}addEffects(n){this.sources.addEffects(n)}};e.\u0275fac=function(i){return new(i||e)(p(j0),p(V0),p(Ut),p(k0),p(Fs,8),p(al,8),p(F0,8))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),IL=(()=>{let e=class e{constructor(n,i,o,s){let a=i.flat();for(let c of a)n.addEffects(c)}};e.\u0275fac=function(i){return new(i||e)(p(U0),p(P0),p(Fs,8),p(al,8))},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})(),QW=(()=>{let e=class e{static forFeature(...n){let i=n.flat(),o=M0(i);return{ngModule:IL,providers:[o,{provide:S0,multi:!0,useValue:i},{provide:cl,multi:!0,useValue:[]},{provide:P0,multi:!0,useFactory:T0,deps:[S0,cl]}]}}static forRoot(...n){let i=n.flat(),o=M0(i);return{ngModule:U0,providers:[o,{provide:Fm,useValue:[i]},{provide:F0,useFactory:CL},{provide:cl,multi:!0,useValue:[]},{provide:k0,useFactory:T0,deps:[Fm,cl]}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=z({type:e}),e.\u0275inj=H({});let t=e;return t})();function T0(t,e){let r=[];for(let n of t)r.push(...n);for(let n of e)r.push(...n);return r.map(n=>cL(n)?g(n):n)}function CL(){let t=g(V0,{optional:!0,skipSelf:!0}),e=g(Fm,{self:!0});if(!(e.length===1&&e[0].length===0)&&t)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}var Pm={production:!0,apiUrl:"rest",backendBaseUrl:"http://localhost:3000",websocketUrl:"ws://localhost:3000"};var js=class{get getMock(){return this.mock}get getMockDelay(){return this.mockDelay}get getMethod(){return this.method}get getUrl(){return this.url}get getParams(){return this.params}get getBody(){return this.body}get getOptions(){return this.options}constructor(e,r,n,i,o){this.mockDelay=0,this.options={},this.method=e,this.params=n,this.options=i||{},o&&(this.mock=o),this.url="",this.mock?this.url=`/mock/${r}`:this.url=`${Pm.backendBaseUrl}/${Pm.apiUrl}/${r}`}},B0=class extends js{constructor(e,r,n,i=!0){let o=new an;r&&(o=r),super("GET",e,o,n,i)}},ll=class extends js{constructor(e,r,n=!0){super("POST",e,void 0,void 0,n),this.body=r}},dl=class extends js{constructor(e,r=!0){super("PUT",e,void 0,void 0,r)}};var fl=class extends ll{constructor(e){super("login/authenticate",b({},e)),this.mock&&(this.url+="/post-response-body-200.json")}};var hl=class extends dl{constructor(){super("user/logout"),this.mock&&(this.url+="/put-response-body-200.json")}};var $0=new v("CLIENT");var Lm=E0("core");var pl=sl(Lm,t=>t.auth.isAuthenticated),H0=sl(Lm,t=>t.auth.user);var Eq=(()=>{let e=class e{constructor(n,i,o,s){this.apiClient=n,this.actions$=i,this.store=o,this.router=s,this.login$=Ps(()=>this.actions$.pipe(Ls(et.login),mo(this.store.select(pl)),le(([a,c])=>!c),Q(([a,c])=>this.apiClient.serviceCall(new fl({email:a.email,password:a.password})).pipe(C(u=>et.loginSuccess({user:u})),Re(u=>[et.loginFailure({error:u})]))))),this.loginRedirect$=Ps(()=>this.actions$.pipe(Ls(et.loginSuccess),ee(()=>this.router.navigate([`${Om.MODE_SELECT.ROOT}`]))),{dispatch:!1}),this.logout$=Ps(()=>this.actions$.pipe(Ls(et.logout),Q(()=>this.apiClient.serviceCall(new hl).pipe(C(()=>et.logoutSuccess()),Re(a=>[et.logoutFailure({error:a})]))))),this.logoutRedirect$=Ps(()=>this.actions$.pipe(Ls(et.logoutSuccess),ee(()=>this.router.navigate([`${Om.AUTH.ROOT}`]))),{dispatch:!1})}};e.\u0275fac=function(i){return new(i||e)(p($0),p(O0),p(Ut),p(Ct))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var ML={isAuthenticated:!1,user:{},error:null},Mq=x0(ML,ks(et.loginSuccess,(t,{user:e})=>O(b({},t),{isAuthenticated:!0,user:b({},e),error:null})),ks(et.loginFailure,(t,{error:e})=>O(b({},t),{error:e})),ks(et.logoutSuccess,()=>({isAuthenticated:!1,user:{},token:null,error:null})),ks(et.logoutFailure,(t,{error:e})=>O(b({},t),{error:e})));var Lq=(()=>{let e=class e{constructor(n){this.store=n,this.isAuthenticated$=this.store.select(pl),this.user$=this.store.select(H0)}dispatch(n){this.store.dispatch(n)}};e.\u0275fac=function(i){return new(i||e)(p(Ut))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();export{b as a,O as b,Um as c,SL as d,TL as e,Vr as f,ae as g,N as h,Gr as i,B as j,de as k,ro as l,pI as m,Rl as n,xe as o,AV as p,dr as q,re as r,x as s,Ht as t,kl as u,wI as v,II as w,C as x,fr as y,Q as z,so as A,Pl as B,co as C,va as D,le as E,UI as F,Re as G,Wt as H,Kr as I,ge as J,Rg as K,Qr as L,ht as M,fo as N,ho as O,HI as P,Jr as Q,po as R,Ve as S,Vn as T,zI as U,ee as V,mo as W,I as X,ye as Y,kt as Z,D as _,H as $,v as aa,XI as ba,p as ca,g as da,yi as ea,Mo as fa,hn as ga,nt as ha,z as ia,G as ja,pc as ka,yn as la,RC as ma,Fe as na,it as oa,jz as pa,Vz as qa,Uz as ra,Bz as sa,Yn as ta,Fo as ua,ke as va,Te as wa,ne as xa,X as ya,li as za,$z as Aa,Kn as Ba,Hz as Ca,zz as Da,Ci as Ea,y as Fa,bn as Ga,pi as Ha,mi as Ia,tn as Ja,P as Ka,hT as La,Bo as Ma,Pt as Na,be as Oa,st as Pa,kc as Qa,Xe as Ra,Mi as Sa,pD as Ta,we as Ua,qz as Va,Si as Wa,Zz as Xa,Pc as Ya,Yz as Za,Kz as _a,Qz as $a,wn as ab,En as bb,Je as cb,ED as db,ID as eb,MA as fb,Xz as gb,gh as hb,AA as ib,In as jb,LA as kb,Lc as lb,nn as mb,Le as nb,BA as ob,MD as pb,SD as qb,jc as rb,Vc as sb,Jz as tb,bh as ub,GA as vb,Ho as wb,WA as xb,e3 as yb,qA as zb,_t as Ab,at as Bb,t3 as Cb,n3 as Db,r3 as Eb,i3 as Fb,o3 as Gb,s3 as Hb,a3 as Ib,rn as Jb,wh as Kb,wt as Lb,Eh as Mb,Ee as Nb,Ih as Ob,ct as Pb,W as Qb,Ai as Rb,M3 as Sb,S3 as Tb,T3 as Ub,r_ as Vb,A3 as Wb,N3 as Xb,R3 as Yb,O3 as Zb,F3 as _b,k3 as $b,P3 as ac,o_ as bc,cn as cc,Wh as dc,pR as ec,Z3 as fc,Y3 as gc,A_ as hc,l4 as ic,d4 as jc,f4 as kc,Vt as lc,rr as mc,NO as nc,Ct as oc,Z_ as pc,A4 as qc,N4 as rc,R4 as sc,Mt as tc,fW as uc,hW as vc,pW as wc,mW as xc,gW as yc,vW as zc,bW as Ac,yW as Bc,DW as Cc,_W as Dc,wW as Ec,EW as Fc,ZE as Gc,YE as Hc,IW as Ic,vm as Jc,Ki as Kc,d0 as Lc,xm as Mc,f0 as Nc,Qi as Oc,Mm as Pc,Rs as Qc,rl as Rc,DP as Sc,Os as Tc,ol as Uc,Ut as Vc,sl as Wc,E0 as Xc,LW as Yc,ks as Zc,x0 as _c,Ps as $c,O0 as ad,Ls as bd,QW as cd,Om as dd,Lm as ed,$k as fd,Hk as gd,zk as hd,tm as id,pG as jd,kr as kd,je as ld,lG as md,Zi as nd,dG as od,Bk as pd,Rn as qd,dE as rd,qu as sd,fE as td,mE as ud,CG as vd,h1 as wd,p1 as xd,HG as yd,vE as zd,bE as Ad,om as Bd,sm as Cd,zG as Dd,IE as Ed,GG as Fd,n5 as Gd,cm as Hd,E5 as Id,I5 as Jd,ln as Kd,CE as Ld,C5 as Md,FE as Nd,kE as Od,mm as Pd,z1 as Qd,PE as Rd,LE as Sd,x5 as Td,M5 as Ud,S5 as Vd,T5 as Wd,A5 as Xd,jE as Yd,N5 as Zd,$u as _d,Bw as $d,Rr as ae,Rw as be,Ge as ce,Nn as de,K4 as ee,Q4 as fe,Gi as ge,Mk as he,xs as ie,Nk as je,J4 as ke,Ok as le,iE as me,oE as ne,sE as oe,jk as pe,zp as qe,eG as re,tG as se,nG as te,G5 as ue,W5 as ve,q5 as we,Z5 as xe,rP as ye,uW as ze,lW as Ae,et as Be,Pm as Ce,B0 as De,ll as Ee,$0 as Fe,Eq as Ge,Mq as He,Lq as Ie}; diff --git a/frontend/server/modelsmith-build/browser/chunk-NT2MTW7W.js b/frontend/server/modelsmith-build/browser/chunk-NT2MTW7W.js new file mode 100644 index 00000000..40bd2edc --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-NT2MTW7W.js @@ -0,0 +1 @@ +import{$ as k,B as Rt,Ba as Dt,D as kt,E as j,F as Q,Fa as w,Ga as z,Gd as ht,Ha as N,Hd as A,Jb as It,Ka as C,La as Pt,Ma as Mt,Na as I,Nb as x,Oa as it,Pa as st,Pb as At,Qb as y,Rb as Ft,T as J,U as Ot,Vc as Tt,Wc as nt,_ as g,a as B,aa as L,b as Ct,ca as c,da as tt,ed as ot,g as S,h as Et,i as St,ia as O,id as rt,j as v,ja as M,jd as u,kd as Bt,ld as D,na as xt,oa as et,od as jt,qd as Y,rd as at,s as K,sd as Lt,va as V,xa as R,ya as E}from"./chunk-NPZHNGVX.js";var Vt=nt(ot,o=>o.configs.defaultMode),zt=nt(ot,o=>o.configs.currentMode);var Re=(()=>{let t=class t{constructor(e){this.store=e,this.defaultMode$=this.store.select(Vt),this.currentMode$=this.store.select(zt)}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(i){return new(i||t)(c(Tt))},t.\u0275prov=g({token:t,factory:t.\u0275fac});let o=t;return o})();var F=class{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;t!=null&&(this._attachedHost=null,t.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(t){this._attachedHost=t}},lt=class extends F{constructor(t,s,e,i,n){super(),this.component=t,this.viewContainerRef=s,this.injector=e,this.componentFactoryResolver=i,this.projectableNodes=n}},T=class extends F{constructor(t,s,e,i){super(),this.templateRef=t,this.viewContainerRef=s,this.context=e,this.injector=i}get origin(){return this.templateRef.elementRef}attach(t,s=this.context){return this.context=s,super.attach(t)}detach(){return this.context=void 0,super.detach()}},ct=class extends F{constructor(t){super(),this.element=t instanceof R?t.nativeElement:t}},W=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){if(t instanceof lt)return this._attachedPortal=t,this.attachComponentPortal(t);if(t instanceof T)return this._attachedPortal=t,this.attachTemplatePortal(t);if(this.attachDomPortal&&t instanceof ct)return this._attachedPortal=t,this.attachDomPortal(t)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var X=class extends W{constructor(t,s,e,i,n){super(),this.outletElement=t,this._componentFactoryResolver=s,this._appRef=e,this._defaultInjector=i,this.attachDomPortal=r=>{this._document;let a=r.element;a.parentNode;let h=this._document.createComment("dom-portal");a.parentNode.insertBefore(h,a),this.outletElement.appendChild(a),this._attachedPortal=r,super.setDisposeFn(()=>{h.parentNode&&h.parentNode.replaceChild(a,h)})},this._document=n}attachComponentPortal(t){let e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector,t.projectableNodes||void 0),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector||V.NULL),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=t,i}attachTemplatePortal(t){let s=t.viewContainerRef,e=s.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return e.rootNodes.forEach(i=>this.outletElement.appendChild(i)),e.detectChanges(),this.setDisposeFn(()=>{let i=s.indexOf(e);i!==-1&&s.remove(i)}),this._attachedPortal=t,e}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}};var Te=(()=>{let t=class t extends W{constructor(e,i,n){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new E,this.attachDomPortal=r=>{this._document;let a=r.element;a.parentNode;let h=this._document.createComment("dom-portal");r.setAttachedHost(this),a.parentNode.insertBefore(h,a),this._getRootNode().appendChild(a),this._attachedPortal=r,super.setDisposeFn(()=>{h.parentNode&&h.parentNode.replaceChild(a,h)})},this._document=n}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=i.createComponent(r,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}};t.\u0275fac=function(i){return new(i||t)(w(N),w(I),w(y))},t.\u0275dir=M({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[it]});let o=t;return o})();var Nt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=O({type:t}),t.\u0275inj=k({});let o=t;return o})();var Yt=class{};function ze(o){return o&&typeof o.connect=="function"&&!(o instanceof St)}var Z=function(o){return o[o.REPLACED=0]="REPLACED",o[o.INSERTED=1]="INSERTED",o[o.MOVED=2]="MOVED",o[o.REMOVED=3]="REMOVED",o}(Z||{}),Ne=new L("_ViewRepeater"),Ht=class{applyChanges(t,s,e,i,n){t.forEachOperation((r,a,h)=>{let d,l;if(r.previousIndex==null){let f=e(r,a,h);d=s.createEmbeddedView(f.templateRef,f.context,f.index),l=Z.INSERTED}else h==null?(s.remove(a),l=Z.REMOVED):(d=s.get(a),s.move(d,h),l=Z.MOVED);n&&n({context:d?.context,operation:l,record:r})})}detach(){}};var Wt=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(t=!1,s,e=!0,i){this._multiple=t,this._emitChanges=e,this.compareWith=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new v,s&&s.length&&(t?s.forEach(n=>this._markSelected(n)):this._markSelected(s[0]),this._selectedToEmit.length=0)}select(...t){this._verifyValueAssignment(t),t.forEach(e=>this._markSelected(e));let s=this._hasQueuedChanges();return this._emitChangeEvent(),s}deselect(...t){this._verifyValueAssignment(t),t.forEach(e=>this._unmarkSelected(e));let s=this._hasQueuedChanges();return this._emitChangeEvent(),s}setSelection(...t){this._verifyValueAssignment(t);let s=this.selected,e=new Set(t);t.forEach(n=>this._markSelected(n)),s.filter(n=>!e.has(this._getConcreteValue(n,e))).forEach(n=>this._unmarkSelected(n));let i=this._hasQueuedChanges();return this._emitChangeEvent(),i}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();let s=this._hasQueuedChanges();return t&&this._emitChangeEvent(),s}isSelected(t){return this._selection.has(this._getConcreteValue(t))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){t=this._getConcreteValue(t),this.isSelected(t)||(this._multiple||this._unmarkAll(),this.isSelected(t)||this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){t=this._getConcreteValue(t),this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){t.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(t,s){if(this.compareWith){s=s??this._selection;for(let e of s)if(this.compareWith(t,e))return e;return t}else return t}};var Ye=(()=>{let t=class t{constructor(){this._listeners=[]}notify(e,i){for(let n of this._listeners)n(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();var re=20,dt=(()=>{let t=class t{constructor(e,i,n){this._ngZone=e,this._platform=i,this._scrolled=new v,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=re){return this._platform.isBrowser?new Et(i=>{this._globalSubscription||this._addGlobalListener();let n=e>0?this._scrolled.pipe(Q(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):K()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let n=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(j(r=>!r||n.indexOf(r)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((n,r)=>{this._scrollableContainsElement(r,e)&&i.push(r)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let n=Bt(i),r=e.getElementRef().nativeElement;do if(n==r)return!0;while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();return Rt(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};t.\u0275fac=function(i){return new(i||t)(c(C),c(D),c(y,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();var ae=20,$=(()=>{let t=class t{constructor(e,i,n){this._platform=e,this._change=new v,this._changeListener=r=>{this._change.next(r)},this._document=n,i.runOutsideAngular(()=>{if(e.isBrowser){let r=this._getWindow();r.addEventListener("resize",this._changeListener),r.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:i,height:n}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+n,right:e.left+i,height:n,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),n=e.documentElement,r=n.getBoundingClientRect(),a=-r.top||e.body.scrollTop||i.scrollY||n.scrollTop||0,h=-r.left||e.body.scrollLeft||i.scrollX||n.scrollLeft||0;return{top:a,left:h}}change(e=ae){return e>0?this._change.pipe(Q(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}};t.\u0275fac=function(i){return new(i||t)(c(D),c(C),c(y,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();var Xt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=O({type:t}),t.\u0275inj=k({});let o=t;return o})(),ft=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=O({type:t}),t.\u0275inj=k({imports:[A,Xt,A,Xt]});let o=t;return o})();var Zt=jt(),ut=class{constructor(t,s){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=s}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=u(-this._previousScrollPosition.left),t.style.top=u(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let t=this._document.documentElement,s=this._document.body,e=t.style,i=s.style,n=e.scrollBehavior||"",r=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),Zt&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Zt&&(e.scrollBehavior=n,i.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let s=this._document.body,e=this._viewportRuler.getViewportSize();return s.scrollHeight>e.height||s.scrollWidth>e.width}};var pt=class{constructor(t,s,e,i){this._scrollDispatcher=t,this._ngZone=s,this._viewportRuler=e,this._config=i,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(j(s=>!s||!this._overlayRef.overlayElement.contains(s.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{let s=this._viewportRuler.getViewportScrollPosition().top;Math.abs(s-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}},U=class{enable(){}disable(){}attach(){}};function _t(o,t){return t.some(s=>{let e=o.bottoms.bottom,n=o.rights.right;return e||i||n||r})}function $t(o,t){return t.some(s=>{let e=o.tops.bottom,n=o.lefts.right;return e||i||n||r})}var gt=class{constructor(t,s,e,i){this._scrollDispatcher=t,this._viewportRuler=s,this._ngZone=e,this._config=i,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 s=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();_t(s,[{width:e,height:i,bottom:i,right:e,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}},ce=(()=>{let t=class t{constructor(e,i,n,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=n,this.noop=()=>new U,this.close=a=>new pt(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new ut(this._viewportRuler,this._document),this.reposition=a=>new gt(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=r}};t.\u0275fac=function(i){return new(i||t)(c(dt),c($),c(C),c(y))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),G=class{constructor(t){if(this.scrollStrategy=new U,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){let s=Object.keys(t);for(let e of s)t[e]!==void 0&&(this[e]=t[e])}}};var mt=class{constructor(t,s){this.connectionPair=t,this.scrollableViewProperties=s}};var te=(()=>{let t=class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}};t.\u0275fac=function(i){return new(i||t)(c(y))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),de=(()=>{let t=class t extends te{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=n=>{let r=this._attachedOverlays;for(let a=r.length-1;a>-1;a--)if(r[a]._keydownEvents.observers.length>0){let h=r[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>h.next(n)):h.next(n);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)}};t.\u0275fac=function(i){return new(i||t)(c(y),c(C,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),fe=(()=>{let t=class t extends te{constructor(e,i,n){super(e),this._platform=i,this._ngZone=n,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Y(r)},this._clickListener=r=>{let a=Y(r),h=r.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;let d=this._attachedOverlays.slice();for(let l=d.length-1;l>-1;l--){let f=d[l];if(f._outsidePointerEvents.observers.length<1||!f.hasAttached())continue;if(Ut(f.overlayElement,a)||Ut(f.overlayElement,h))break;let p=f._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>p.next(r)):p.next(r)}}}add(e){if(super.add(e),!this._isAttached){let i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){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)}};t.\u0275fac=function(i){return new(i||t)(c(y),c(D),c(C,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();function Ut(o,t){let s=typeof ShadowRoot<"u"&&ShadowRoot,e=t;for(;e;){if(e===o)return!0;e=s&&e instanceof ShadowRoot?e.host:e.parentNode}return!1}var ee=(()=>{let t=class t{constructor(e,i){this._platform=i,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||at()){let n=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;rthis._backdropClick.next(p),this._backdropTransitionendHandler=p=>{this._disposeBackdrop(p.target)},this._keydownEvents=new v,this._outsidePointerEvents=new v,this._renders=new v,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy,this._afterRenderRef=At(()=>Pt(()=>{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 s=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),Mt(()=>{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 s?.onDestroy=="function"&&s.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),s}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._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=B(B({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Ct(B({},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=u(this._config.width),t.height=u(this._config.height),t.minWidth=u(this._config.minWidth),t.minHeight=u(this._config.minHeight),t.maxWidth=u(this._config.maxWidth),t.maxHeight=u(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,s,e){let i=rt(s||[]).filter(n=>!!n);i.length&&(e?t.classList.add(...i):t.classList.remove(...i))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let t=this._renders.pipe(J(kt(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)}},Gt="cdk-overlay-connected-position-bounding-box",ue=/([A-Za-z%]+)$/,yt=class{get positions(){return this._preferredPositions}constructor(t,s,e,i,n){this._viewportRuler=s,this._document=e,this._platform=i,this._overlayContainer=n,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 v,this._resizeSubscription=S.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(Gt),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,s=this._overlayRect,e=this._viewportRect,i=this._containerRect,n=[],r;for(let a of this._preferredPositions){let h=this._getOriginPoint(t,i,a),d=this._getOverlayPoint(h,s,a),l=this._getOverlayFit(d,s,e,a);if(l.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,h);return}if(this._canFitWithFlexibleDimensions(l,d,e)){n.push({position:a,origin:h,overlayRect:s,boundingBoxRect:this._calculateBoundingBoxRect(h,a)});continue}(!r||r.overlayFit.visibleAreah&&(h=l,a=d)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(r.position,r.originPoint);return}this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&P(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Gt),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 s=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,s)}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,s,e){let i;if(e.originX=="center")i=t.left+t.width/2;else{let r=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;i=e.originX=="start"?r:a}s.left<0&&(i-=s.left);let n;return e.originY=="center"?n=t.top+t.height/2:n=e.originY=="top"?t.top:t.bottom,s.top<0&&(n-=s.top),{x:i,y:n}}_getOverlayPoint(t,s,e){let i;e.overlayX=="center"?i=-s.width/2:e.overlayX==="start"?i=this._isRtl()?-s.width:0:i=this._isRtl()?0:-s.width;let n;return e.overlayY=="center"?n=-s.height/2:n=e.overlayY=="top"?0:-s.height,{x:t.x+i,y:t.y+n}}_getOverlayFit(t,s,e,i){let n=Kt(s),{x:r,y:a}=t,h=this._getOffset(i,"x"),d=this._getOffset(i,"y");h&&(r+=h),d&&(a+=d);let l=0-r,f=r+n.width-e.width,p=0-a,m=a+n.height-e.height,_=this._subtractOverflows(n.width,l,f),b=this._subtractOverflows(n.height,p,m),bt=_*b;return{visibleArea:bt,isCompletelyWithinViewport:n.width*n.height===bt,fitsInViewportVertically:b===n.height,fitsInViewportHorizontally:_==n.width}}_canFitWithFlexibleDimensions(t,s,e){if(this._hasFlexibleDimensions){let i=e.bottom-s.y,n=e.right-s.x,r=qt(this._overlayRef.getConfig().minHeight),a=qt(this._overlayRef.getConfig().minWidth),h=t.fitsInViewportVertically||r!=null&&r<=i,d=t.fitsInViewportHorizontally||a!=null&&a<=n;return h&&d}return!1}_pushOverlayOnScreen(t,s,e){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};let i=Kt(s),n=this._viewportRect,r=Math.max(t.x+i.width-n.width,0),a=Math.max(t.y+i.height-n.height,0),h=Math.max(n.top-e.top-t.y,0),d=Math.max(n.left-e.left-t.x,0),l=0,f=0;return i.width<=n.width?l=d||-r:l=t.x_&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-_/2)}let h=s.overlayX==="start"&&!i||s.overlayX==="end"&&i,d=s.overlayX==="end"&&!i||s.overlayX==="start"&&i,l,f,p;if(d)p=e.width-t.x+this._viewportMargin*2,l=t.x-this._viewportMargin;else if(h)f=t.x,l=e.right-t.x;else{let m=Math.min(e.right-t.x+e.left,t.x),_=this._lastBoundingBoxSize.width;l=m*2,f=t.x-m,l>_&&!this._isInitialRender&&!this._growAfterOpen&&(f=t.x-_/2)}return{top:r,left:f,bottom:a,right:p,width:l,height:n}}_setBoundingBoxStyles(t,s){let e=this._calculateBoundingBoxRect(t,s);!this._isInitialRender&&!this._growAfterOpen&&(e.height=Math.min(e.height,this._lastBoundingBoxSize.height),e.width=Math.min(e.width,this._lastBoundingBoxSize.width));let i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{let n=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;i.height=u(e.height),i.top=u(e.top),i.bottom=u(e.bottom),i.width=u(e.width),i.left=u(e.left),i.right=u(e.right),s.overlayX==="center"?i.alignItems="center":i.alignItems=s.overlayX==="end"?"flex-end":"flex-start",s.overlayY==="center"?i.justifyContent="center":i.justifyContent=s.overlayY==="bottom"?"flex-end":"flex-start",n&&(i.maxHeight=u(n)),r&&(i.maxWidth=u(r))}this._lastBoundingBoxSize=e,P(this._boundingBox.style,i)}_resetBoundingBoxStyles(){P(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){P(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,s){let e={},i=this._hasExactPosition(),n=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){let l=this._viewportRuler.getViewportScrollPosition();P(e,this._getExactOverlayY(s,t,l)),P(e,this._getExactOverlayX(s,t,l))}else e.position="static";let a="",h=this._getOffset(s,"x"),d=this._getOffset(s,"y");h&&(a+=`translateX(${h}px) `),d&&(a+=`translateY(${d}px)`),e.transform=a.trim(),r.maxHeight&&(i?e.maxHeight=u(r.maxHeight):n&&(e.maxHeight="")),r.maxWidth&&(i?e.maxWidth=u(r.maxWidth):n&&(e.maxWidth="")),P(this._pane.style,e)}_getExactOverlayY(t,s,e){let i={top:"",bottom:""},n=this._getOverlayPoint(s,this._overlayRect,t);if(this._isPushed&&(n=this._pushOverlayOnScreen(n,this._overlayRect,e)),t.overlayY==="bottom"){let r=this._document.documentElement.clientHeight;i.bottom=`${r-(n.y+this._overlayRect.height)}px`}else i.top=u(n.y);return i}_getExactOverlayX(t,s,e){let i={left:"",right:""},n=this._getOverlayPoint(s,this._overlayRect,t);this._isPushed&&(n=this._pushOverlayOnScreen(n,this._overlayRect,e));let r;if(this._isRtl()?r=t.overlayX==="end"?"left":"right":r=t.overlayX==="end"?"right":"left",r==="right"){let a=this._document.documentElement.clientWidth;i.right=`${a-(n.x+this._overlayRect.width)}px`}else i.left=u(n.x);return i}_getScrollVisibility(){let t=this._getOriginRect(),s=this._pane.getBoundingClientRect(),e=this._scrollables.map(i=>i.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:$t(t,e),isOriginOutsideView:_t(t,e),isOverlayClipped:$t(s,e),isOverlayOutsideView:_t(s,e)}}_subtractOverflows(t,...s){return s.reduce((e,i)=>e-Math.max(i,0),t)}_getNarrowedViewportRect(){let t=this._document.documentElement.clientWidth,s=this._document.documentElement.clientHeight,e=this._viewportRuler.getViewportScrollPosition();return{top:e.top+this._viewportMargin,left:e.left+this._viewportMargin,right:e.left+t-this._viewportMargin,bottom:e.top+s-this._viewportMargin,width:t-2*this._viewportMargin,height:s-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,s){return s==="x"?t.offsetX==null?this._offsetX:t.offsetX:t.offsetY==null?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&rt(t).forEach(s=>{s!==""&&this._appliedPanelClasses.indexOf(s)===-1&&(this._appliedPanelClasses.push(s),this._pane.classList.add(s))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){let t=this._origin;if(t instanceof R)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();let s=t.width||0,e=t.height||0;return{top:t.y,bottom:t.y+e,left:t.x,right:t.x+s,height:e,width:s}}};function P(o,t){for(let s in t)t.hasOwnProperty(s)&&(o[s]=t[s]);return o}function qt(o){if(typeof o!="number"&&o!=null){let[t,s]=o.split(ue);return!s||s==="px"?parseFloat(t):null}return o||null}function Kt(o){return{top:Math.floor(o.top),right:Math.floor(o.right),bottom:Math.floor(o.bottom),left:Math.floor(o.left),width:Math.floor(o.width),height:Math.floor(o.height)}}function pe(o,t){return o===t?!0:o.isOriginClipped===t.isOriginClipped&&o.isOriginOutsideView===t.isOriginOutsideView&&o.isOverlayClipped===t.isOverlayClipped&&o.isOverlayOutsideView===t.isOverlayOutsideView}var Qt="cdk-global-overlay-wrapper",wt=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 s=t.getConfig();this._overlayRef=t,this._width&&!s.width&&t.updateSize({width:this._width}),this._height&&!s.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(Qt),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,s=this._overlayRef.hostElement.style,e=this._overlayRef.getConfig(),{width:i,height:n,maxWidth:r,maxHeight:a}=e,h=(i==="100%"||i==="100vw")&&(!r||r==="100%"||r==="100vw"),d=(n==="100%"||n==="100vh")&&(!a||a==="100%"||a==="100vh"),l=this._xPosition,f=this._xOffset,p=this._overlayRef.getConfig().direction==="rtl",m="",_="",b="";h?b="flex-start":l==="center"?(b="center",p?_=f:m=f):p?l==="left"||l==="end"?(b="flex-end",m=f):(l==="right"||l==="start")&&(b="flex-start",_=f):l==="left"||l==="start"?(b="flex-start",m=f):(l==="right"||l==="end")&&(b="flex-end",_=f),t.position=this._cssPosition,t.marginLeft=h?"0":m,t.marginTop=d?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=h?"0":_,s.justifyContent=b,s.alignItems=d?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let t=this._overlayRef.overlayElement.style,s=this._overlayRef.hostElement,e=s.style;s.classList.remove(Qt),e.justifyContent=e.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}},_e=(()=>{let t=class t{constructor(e,i,n,r){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=r}global(){return new wt}flexibleConnectedTo(e){return new yt(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};t.\u0275fac=function(i){return new(i||t)(c($),c(y),c(D),c(ee))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),ge=0,q=(()=>{let t=class t{constructor(e,i,n,r,a,h,d,l,f,p,m,_){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=n,this._positionBuilder=r,this._keyboardDispatcher=a,this._injector=h,this._ngZone=d,this._document=l,this._directionality=f,this._location=p,this._outsideClickDispatcher=m,this._animationsModuleType=_}create(e){let i=this._createHostElement(),n=this._createPaneElement(i),r=this._createPortalOutlet(n),a=new G(e);return a.direction=a.direction||this._directionality.value,new vt(r,i,n,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(xt))}position(){return this._positionBuilder}_createPaneElement(e){let i=this._document.createElement("div");return i.id=`cdk-overlay-${ge++}`,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(It)),new X(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};t.\u0275fac=function(i){return new(i||t)(c(ce),c(ee),c(N),c(_e),c(de),c(V),c(C),c(y),c(ht),c(Ft),c(fe),c(Dt,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})(),me=[{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"}],ie=new L("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let o=tt(q);return()=>o.scrollStrategies.reposition()}}),Jt=(()=>{let t=class t{constructor(e){this.elementRef=e}};t.\u0275fac=function(i){return new(i||t)(w(R))},t.\u0275dir=M({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0});let o=t;return o})(),Li=(()=>{let t=class t{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,i,n,r,a){this._overlay=e,this._dir=a,this._backdropSubscription=S.EMPTY,this._attachSubscription=S.EMPTY,this._detachSubscription=S.EMPTY,this._positionSubscription=S.EMPTY,this._disposeOnNavigation=!1,this._ngZone=tt(C),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 E,this.positionChange=new E,this.attach=new E,this.detach=new E,this.overlayKeydown=new E,this.overlayOutsideClick=new E,this._templatePortal=new T(i,n),this._scrollStrategyFactory=r,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=me);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(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!Lt(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let n=this._getOriginElement(),r=Y(i);(!n||n!==r&&!n.contains(r))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new G({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=this.positions.map(n=>({originX:n.originX,originY:n.originY,overlayX:n.overlayX,overlayY:n.overlayY,offsetX:n.offsetX||this.offsetX,offsetY:n.offsetY||this.offsetY,panelClass:n.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(i).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 Jt?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Jt?this.origin.elementRef.nativeElement:this.origin instanceof R?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(Ot(()=>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()}};t.\u0275fac=function(i){return new(i||t)(w(q),w(z),w(I),w(ie),w(ht,8))},t.\u0275dir=M({type:t,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",x],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",x],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",x],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",x],push:[2,"cdkConnectedOverlayPush","push",x],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",x]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[st,et]});let o=t;return o})();function ve(o){return()=>o.scrollStrategies.reposition()}var ye={provide:ie,deps:[q],useFactory:ve},Vi=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=O({type:t}),t.\u0275inj=k({providers:[q,ye],imports:[A,Nt,ft,ft]});let o=t;return o})();export{Re as a,lt as b,T as c,W as d,Te as e,Nt as f,Yt as g,ze as h,Z as i,Ne as j,Ht as k,Wt as l,Ye as m,dt as n,$ as o,Xt as p,ft as q,G as r,q as s,Jt as t,Li as u,Vi as v}; diff --git a/frontend/server/modelsmith-build/browser/chunk-PNGDI5FF.js b/frontend/server/modelsmith-build/browser/chunk-PNGDI5FF.js deleted file mode 100644 index 1493b40e..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-PNGDI5FF.js +++ /dev/null @@ -1,4 +0,0 @@ -import{a as C,b as et,c as w,d as E,e as le}from"./chunk-H5CB7PWT.js";import{a as z}from"./chunk-AK2HCVXD.js";import{a as tt}from"./chunk-NO2PD4LU.js";import{a as Ze,b as Je}from"./chunk-MPLQ54VQ.js";import{$a as Q,$c as me,$d as Te,A,Aa as K,Ae as Qe,Ca as N,Cc as h,Da as p,Dc as we,Ea as L,Ec as re,Hc as T,Ma as b,Na as i,Oa as pe,P as $,Pa as I,Qa as ue,Ra as fe,Sa as ve,T as c,U as Y,Va as j,Wa as D,Wb as Ee,Wc as oe,Xc as De,Xd as Pe,Yb as be,Yd as ke,Z as M,Zb as X,Zc as ae,Zd as U,_,_b as x,be as Ae,ce as qe,ec as xe,fb as ge,fc as g,he as Ne,ja as s,jc as Z,je as Le,ka as u,kc as R,kd as Me,m as ce,me as Re,nc as H,nd as _e,ne as Fe,oc as J,od as Oe,oe as We,pb as Se,pc as he,pd as ye,pe as Be,qa as y,qe as Ve,rc as Ce,rd as Ie,re as je,sa as d,sc as ee,se as He,te as Ue,uc as te,ue as ze,ve as Ge,wa as t,we as Ke,xa as e,xc as ie,xe as Xe,ya as n,ye as $e,za as G,zc as ne,ze as Ye}from"./chunk-AIAH5BT5.js";var it=(()=>{let r=class r{};r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=c({type:r,selectors:[["ms-buttons-demo"]],decls:220,vars:0,consts:[[1,"line"],[1,"section"],[1,"parent","items-per-row-6"],["mat-button",""],["mat-button","","color","primary"],["mat-button","","color","accent"],["mat-button","","color","warn"],["mat-button","","disabled",""],["mat-button","","href","https://www.google.com/","target","_blank"],["mat-raised-button",""],["mat-raised-button","","color","primary"],["mat-raised-button","","color","accent"],["mat-raised-button","","color","warn"],["mat-raised-button","","disabled","","color","accent"],["mat-raised-button","","href","https://www.google.com/","target","_blank"],[1,"parent","items-per-row-7"],["mat-stroked-button",""],["mat-stroked-button","",1,"ms-white-stroked-button"],["mat-stroked-button","","color","primary"],["mat-stroked-button","","color","accent"],["mat-stroked-button","","color","warn"],["mat-stroked-button","","disabled","","color","accent"],["mat-stroked-button","","href","https://www.google.com/","target","_blank"],["mat-flat-button",""],["mat-flat-button","","color","primary"],["mat-flat-button","","color","accent"],["mat-flat-button","","color","warn"],["mat-flat-button","","disabled","","color","primary"],["mat-flat-button","","href","https://www.google.com/","target","_blank"],[2,"grid-column","span 2"],["mat-icon-button",""],["mat-icon-button","","color","primary"],["mat-icon-button","","color","accent"],["mat-icon-button","","color","warn"],["mat-icon-button","","disabled","","color","accent"],[1,"parent","items-per-row-5"],["checked",""],["color","primary","checked",""],["color","accent","checked",""],["color","warn","checked",""],["disabled",""]],template:function(o,l){o&1&&(t(0,"h1"),i(1,"Buttons"),e(),t(2,"div",0),n(3,"mat-divider"),e(),t(4,"div",1)(5,"h2"),i(6,"Default"),e(),t(7,"div",2)(8,"div"),i(9,"Basic"),e(),t(10,"div"),i(11,"Primary"),e(),t(12,"div"),i(13,"Accent"),e(),t(14,"div"),i(15,"Warn"),e(),t(16,"div"),i(17,"Disabled"),e(),t(18,"div"),i(19,"Link"),e(),t(20,"div")(21,"button",3),i(22,"Lorem Ipsum"),e()(),t(23,"div")(24,"button",4),i(25,"Lorem Ipsum"),e()(),t(26,"div")(27,"button",5),i(28,"Lorem Ipsum"),e()(),t(29,"div")(30,"button",6),i(31,"Lorem Ipsum"),e()(),t(32,"div")(33,"button",7),i(34,"Lorem Ipsum"),e()(),t(35,"div")(36,"a",8),i(37,"Link"),e()()(),t(38,"div",0),n(39,"mat-divider"),e()(),t(40,"div",1)(41,"h2"),i(42,"Raised buttons"),e(),t(43,"div",2)(44,"div"),i(45,"Basic"),e(),t(46,"div"),i(47,"Primary"),e(),t(48,"div"),i(49,"Accent"),e(),t(50,"div"),i(51,"Warn"),e(),t(52,"div"),i(53,"Disabled"),e(),t(54,"div"),i(55,"Link"),e(),t(56,"div")(57,"button",9),i(58,"Lorem Ipsum"),e()(),t(59,"div")(60,"button",10),i(61,"Lorem Ipsum"),e()(),t(62,"div")(63,"button",11),i(64,"Lorem Ipsum"),e()(),t(65,"div")(66,"button",12),i(67,"Lorem Ipsum"),e()(),t(68,"div")(69,"button",13),i(70,"Lorem Ipsum"),e()(),t(71,"div")(72,"a",14),i(73,"Link"),e()()(),t(74,"div",0),n(75,"mat-divider"),e()(),t(76,"div",1)(77,"h2"),i(78,"Stroked buttons"),e(),t(79,"div",15)(80,"div"),i(81,"Basic"),e(),t(82,"div"),i(83,"Basic White"),e(),t(84,"div"),i(85,"Primary"),e(),t(86,"div"),i(87,"Accent"),e(),t(88,"div"),i(89,"Warn"),e(),t(90,"div"),i(91,"Disabled"),e(),t(92,"div"),i(93,"Link"),e(),t(94,"div")(95,"button",16),i(96,"Lorem Ipsum"),e()(),t(97,"div")(98,"button",17),i(99,"Lorem Ipsum"),e()(),t(100,"div")(101,"button",18),i(102,"Lorem Ipsum"),e()(),t(103,"div")(104,"button",19),i(105,"Lorem Ipsum"),e()(),t(106,"div")(107,"button",20),i(108,"Lorem Ipsum"),e()(),t(109,"div")(110,"button",21),i(111,"Lorem Ipsum"),e()(),t(112,"div")(113,"a",22),i(114,"Link"),e()()(),t(115,"div",0),n(116,"mat-divider"),e()(),t(117,"div",1)(118,"h2"),i(119,"Flat buttons"),e(),t(120,"div",2)(121,"div"),i(122,"Basic"),e(),t(123,"div"),i(124,"Primary"),e(),t(125,"div"),i(126,"Accent"),e(),t(127,"div"),i(128,"Warn"),e(),t(129,"div"),i(130,"Disabled"),e(),t(131,"div"),i(132,"Link"),e(),t(133,"div")(134,"button",23),i(135,"Lorem Ipsum"),e()(),t(136,"div")(137,"button",24),i(138,"Lorem Ipsum"),e()(),t(139,"div")(140,"button",25),i(141,"Lorem Ipsum"),e()(),t(142,"div")(143,"button",26),i(144,"Lorem Ipsum"),e()(),t(145,"div")(146,"button",27),i(147,"Lorem Ipsum"),e()(),t(148,"div")(149,"a",28),i(150,"Link"),e()()(),t(151,"div",0),n(152,"mat-divider"),e()(),t(153,"div",1)(154,"h2"),i(155,"Icon buttons"),e(),t(156,"div",2)(157,"div"),i(158,"Basic"),e(),t(159,"div"),i(160,"Primary"),e(),t(161,"div"),i(162,"Accent"),e(),t(163,"div"),i(164,"Warn"),e(),t(165,"div",29),i(166,"Disabled"),e(),t(167,"div")(168,"button",30)(169,"mat-icon"),i(170,"more_vert"),e()()(),t(171,"div")(172,"button",31)(173,"mat-icon"),i(174,"home"),e()()(),t(175,"div")(176,"button",32)(177,"mat-icon"),i(178,"menu"),e()()(),t(179,"div")(180,"button",33)(181,"mat-icon"),i(182,"favorite"),e()()(),t(183,"div",29)(184,"button",34)(185,"mat-icon"),i(186,"open_in_new"),e()()()(),t(187,"div",0),n(188,"mat-divider"),e()(),t(189,"div",1)(190,"h2"),i(191,"Slide toggle buttons"),e(),t(192,"div",35)(193,"div"),i(194,"Basic"),e(),t(195,"div"),i(196,"Primary"),e(),t(197,"div"),i(198,"Accent"),e(),t(199,"div"),i(200,"Warn"),e(),t(201,"div"),i(202,"Disabled"),e(),t(203,"div")(204,"mat-slide-toggle",36),i(205,"Slide me!"),e()(),t(206,"div")(207,"mat-slide-toggle",37),i(208,"Slide me!"),e()(),t(209,"div")(210,"mat-slide-toggle",38),i(211,"Slide me!"),e()(),t(212,"div")(213,"mat-slide-toggle",39),i(214,"Slide me!"),e()(),t(215,"div")(216,"mat-slide-toggle",40),i(217,"Slide me!"),e()()()(),t(218,"div",0),n(219,"mat-divider"),e())},dependencies:[g,we,h,re,T,Le],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0});let a=r;return a})();var Nt=()=>["Option 1","Option 2","Option 3"],rt=(()=>{let r=class r{constructor(){}ngOnInit(){}handleSelected(m){console.log("Selected option:",m)}};r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=c({type:r,selectors:[["ag-cards-demo"]],decls:39,vars:2,consts:[[1,"line"],[1,"section"],[1,"ms-card"],[1,"heading-sub-section-title"],[1,"key-value-container","single"],[1,"key-value-pair"],[1,"key-value-key","paragraph-semibold-p4-xSmall-emphasis"],[1,"key-value-value","paragraph-regular-p4-xSmall"],[3,"selectedOption","options"]],template:function(o,l){o&1&&(t(0,"h1"),i(1,"Cards"),e(),t(2,"div",0),n(3,"mat-divider"),e(),t(4,"h2"),i(5,"Basic cards"),e(),t(6,"div",1)(7,"mat-card",2)(8,"p",3),i(9,"Card with text"),e(),t(10,"p"),i(11," Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce et cursus eros, a ultricies massa. Morbi commodo sapien magna, vitae facilisis erat blandit ac. Praesent vulputate nulla quis nibh consectetur euismod. Nulla justo dolor, molestie vitae ultricies id, malesuada id tortor. Ut rutrum nisi enim. Pellentesque sed blandit tortor, id fringilla turpis. In vel arcu nec urna dictum mollis ac sed sem. Integer orci eros, hendrerit a dui nec, auctor mattis mi. Curabitur quis tempor ex. "),e()()(),n(12,"br"),t(13,"div",1)(14,"mat-card",2)(15,"p",3),i(16,"Key Value Card"),e(),t(17,"div",4)(18,"div",5)(19,"div",6),i(20,"Key 1"),e(),t(21,"div",7),i(22,"Value 1"),e()(),n(23,"mat-divider"),t(24,"div",5)(25,"div",6),i(26,"Key 2"),e(),t(27,"div",7),i(28,"Value 2"),e()(),n(29,"mat-divider"),t(30,"div",5)(31,"div",6),i(32,"Key 1"),e(),t(33,"div",7),i(34,"Value 1"),e()()()()(),n(35,"br"),t(36,"h2"),i(37,"Option Card Selector"),e(),t(38,"ms-card-selector",8),p("selectedOption",function(k){return l.handleSelected(k)}),e()),o&2&&(s(38),d("options",j(1,Nt)))},dependencies:[g,U,z],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"]});let a=r;return a})();function Lt(a,r){if(a&1){let f=N();t(0,"li")(1,"mat-checkbox",6),ve("ngModelChange",function(o){let l=M(f).$implicit;return fe(l.completed,o)||(l.completed=o),_(o)}),p("ngModelChange",function(){M(f);let o=L();return _(o.updateAllComplete())}),i(2),e()()}if(a&2){let f=r.$implicit;s(),ue("ngModel",f.completed),d("color",f.color),s(),I(" ",f.name," ")}}var at=(()=>{let r=class r{updateAllComplete(){this.allComplete=this.task.subtasks!=null&&this.task.subtasks.every(m=>m.completed)}someComplete(){return this.task.subtasks==null?!1:this.task.subtasks.filter(m=>m.completed).length>0&&!this.allComplete}setAll(m){this.allComplete=m,this.task.subtasks!=null&&this.task.subtasks.forEach(o=>o.completed=m)}constructor(){this.task={name:"Indeterminate",completed:!1,color:"primary",subtasks:[{name:"Primary",completed:!1,color:"primary"},{name:"Accent",completed:!1,color:"accent"},{name:"Warn",completed:!1,color:"warn"}]},this.allComplete=!1}ngOnInit(){}};r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=c({type:r,selectors:[["ms-checkboxes-demo"]],decls:17,vars:6,consts:[[1,"line"],[1,"ms-card"],[3,"disabled"],[3,"change","checked","color","indeterminate"],[1,"list-none"],[4,"ngFor","ngForOf"],[3,"ngModelChange","ngModel","color"]],template:function(o,l){o&1&&(t(0,"h1"),i(1,"Checkboxes"),e(),t(2,"div",0),n(3,"mat-divider"),e(),t(4,"mat-card",1)(5,"section")(6,"mat-checkbox"),i(7,"Check me!"),e(),t(8,"mat-checkbox",2),i(9,"Disabled"),e()(),t(10,"section")(11,"span")(12,"mat-checkbox",3),p("change",function(k){return l.setAll(k.checked)}),i(13),e()(),t(14,"span")(15,"ul",4),y(16,Lt,3,3,"li",5),e()()()()),o&2&&(s(8),d("disabled",!0),s(4),d("checked",l.allComplete)("color",l.task.color)("indeterminate",l.someComplete()),s(),I(" ",l.task.name," "),s(3),d("ngForOf",l.task.subtasks))},dependencies:[ge,g,U,Te,H,Ce],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"]});let a=r;return a})();var mt=(()=>{let r=class r{constructor(){}ngOnInit(){}};r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=c({type:r,selectors:[["ms-chips-demo"]],decls:17,vars:0,consts:[[1,"line"],[1,"section"],[1,"ms-chip"],["color","primary",1,"ms-chip"],["color","accent",1,"ms-chip"],["color","warn",1,"ms-chip"]],template:function(o,l){o&1&&(t(0,"h1"),i(1,"Chips"),e(),t(2,"div",0),n(3,"mat-divider"),e(),t(4,"div",1)(5,"h2"),i(6,"Basic Chips"),e(),t(7,"div")(8,"mat-chip-set")(9,"mat-chip",2),i(10," Default "),e(),t(11,"mat-chip",3),i(12," Primary "),e(),t(13,"mat-chip",4),i(14," Accent "),e(),t(15,"mat-chip",5),i(16," Warn "),e()()()())},dependencies:[g,Ae,qe],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}.mat-standard-chip[_ngcontent-%COMP%]{transition:box-shadow .28s cubic-bezier(.4,0,.2,1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px} .mat-chip-list-wrapper .mat-chip.mat-standard-chip{margin:4px}.example-box.cdk-drag-animating[_ngcontent-%COMP%], .example-chip[_ngcontent-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.example-chip-list[_ngcontent-%COMP%]{width:100%}mat-chip[_ngcontent-%COMP%]{max-width:200px}"]});let a=r;return a})();var O=a=>[a],lt=(()=>{let r=class r{constructor(){this.RoutesList=x}};r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=c({type:r,selectors:[["ms-demo"]],decls:31,vars:39,consts:[[1,"main-container"],[1,"content","routes"],["vertical","true"],[3,"routerLink"],["mat-raised-button","","color","primary",1,"mt-2",3,"routerLink"],[1,"content"]],template:function(o,l){o&1&&(t(0,"div",0)(1,"div",1)(2,"mat-button-toggle-group",2)(3,"mat-button-toggle",3),i(4," Buttons "),e(),t(5,"mat-button-toggle",3),i(6," Typograpghy "),e(),t(7,"mat-button-toggle",3),i(8," Form Fields "),e(),t(9,"mat-button-toggle",3),i(10," Checkboxes "),e(),t(11,"mat-button-toggle",3),i(12," Menu "),e(),t(13,"mat-button-toggle",3),i(14," Tables "),e(),t(15,"mat-button-toggle",3),i(16," Icons "),e(),t(17,"mat-button-toggle",3),i(18," Cards "),e(),t(19,"mat-button-toggle",3),i(20," Chips "),e(),t(21,"mat-button-toggle",3),i(22," Notifications "),e(),t(23,"mat-button-toggle",3),i(24," Wizard "),e(),t(25,"mat-button-toggle",3),i(26," Drawer "),e()(),t(27,"button",4),i(28," Back to login "),e()(),t(29,"div",5),n(30,"router-outlet"),e()()),o&2&&(s(3),d("routerLink",D(13,O,l.RoutesList.DEMO)),s(2),d("routerLink",D(15,O,l.RoutesList.DEMO.TYPOGRAPHY)),s(2),d("routerLink",D(17,O,l.RoutesList.DEMO.FORM_FIELDS)),s(2),d("routerLink",D(19,O,l.RoutesList.DEMO.CHECKBOXES)),s(2),d("routerLink",D(21,O,l.RoutesList.DEMO.MENU)),s(2),d("routerLink",D(23,O,l.RoutesList.DEMO.TABLE)),s(2),d("routerLink",D(25,O,l.RoutesList.DEMO.ICONS)),s(2),d("routerLink",D(27,O,l.RoutesList.DEMO.CARDS)),s(2),d("routerLink",D(29,O,l.RoutesList.DEMO.CHIPS)),s(2),d("routerLink",D(31,O,l.RoutesList.DEMO.NOTIFICATIONS)),s(2),d("routerLink",D(33,O,l.RoutesList.DEMO.WIZARD)),s(2),d("routerLink",D(35,O,l.RoutesList.DEMO.DRAWER)),s(2),d("routerLink",D(37,O,"/"+l.RoutesList.AUTH.ROOT)))},dependencies:[Ee,be,h,Pe,ke],styles:[".main-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(12,1fr)}.main-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0;align-self:flex-start;grid-column:span 11;padding:14px 20px 0;width:90%}.main-container[_ngcontent-%COMP%] .routes[_ngcontent-%COMP%]{grid-column:span 1}.mat-button-toggle[_ngcontent-%COMP%]{display:flex;height:40px}"],changeDetection:0});let a=r;return a})();var st=(()=>{let r=class r{constructor(m,o){this.drawerRef=m,this.drawerConfig=o}ngOnInit(){}close(){this.drawerRef.close()}};r.\u0275fac=function(o){return new(o||r)(u(w),u(C))},r.\u0275cmp=c({type:r,selectors:[["ms-run-drawer-actions"]],decls:2,vars:0,template:function(o,l){o&1&&(t(0,"ms-drawer"),i(1,` Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. Curabitur purus lectus, sollicitudin eu aliquet in, imperdiet nec sapien. Nullam posuere erat nisl, sit amet consectetur dui aliquet consectetur. Sed mollis nibh et dolor maximus consectetur. Cras quam ex, efficitur eu lacus eu, dignissim pellentesque massa. Fusce nibh elit, iaculis ut neque at, finibus ornare libero. Duis maximus rutrum urna gravida posuere. Fusce tristique mollis venenatis. In mi augue, ullamcorper nec urna et, pellentesque pellentesque magna. Aenean porttitor ultrices efficitur. Vestibulum pellentesque tempus est, eget luctus ligula porta et. Donec interdum ante ut quam sagittis, tristique rutrum ipsum tempus. Ut posuere urna lorem. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Donec elementum vestibulum risus, et molestie sapien malesuada at. Donec malesuada vestibulum iaculis. Donec porttitor malesuada metus, vel tempor nulla gravida ut. Cras cursus felis vitae magna laoreet porta. Sed non leo tristique, rhoncus sapien et, consectetur lectus. Suspendisse potenti. Nam finibus, sapien eu tristique porttitor, ante eros pretium mauris, sed hendrerit risus eros ac lacus. Proin consectetur ligula aliquet velit vestibulum placerat. Vivamus et orci id augue tempor molestie. Morbi id nisl vitae lacus porta gravida ut vitae ante. In posuere ultrices arcu. Aliquam a finibus arcu. Sed consequat libero mi, eu fermentum arcu aliquet quis. Vestibulum iaculis rhoncus neque, quis congue justo egestas at. Ut placerat diam quis risus dapibus convallis. Donec non tempor nisl. Donec vulputate malesuada tempor. Pellentesque ac lectus eu massa tristique placerat. Proin suscipit ante risus, at elementum quam euismod eget. Nunc sollicitudin pretium eros, quis imperdiet metus aliquet at. Maecenas sit amet felis vitae nunc dignissim varius. Vivamus nibh orci, volutpat vitae rutrum eu, pharetra ac enim. Ut orci metus, luctus sed lacus vel, bibendum dapibus nulla. Nulla nisl ex, hendrerit ut pretium rhoncus, posuere vitae est. Fusce accumsan ac lorem imperdiet convallis. Etiam vehicula sapien vitae dignissim efficitur. Morbi finibus lacus in felis condimentum tristique. Maecenas aliquam ipsum facilisis sapien lobortis pellentesque.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. Curabitur purus lectus, sollicitudin eu aliquet in, imperdiet nec sapien. Nullam posuere erat nisl, sit amet consectetur dui aliquet consectetur. Sed mollis nibh et dolor maximus consectetur. Cras quam ex, efficitur eu lacus eu, dignissim pellentesque massa. Fusce nibh elit, iaculis ut neque at, finibus ornare libero. Duis maximus rutrum urna gravida posuere. Fusce tristique mollis venenatis. In mi augue, ullamcorper nec urna et, pellentesque pellentesque magna. Aenean porttitor ultrices efficitur. Vestibulum pellentesque tempus est, eget luctus ligula porta et. Donec interdum ante ut quam sagittis, tristique rutrum ipsum tempus. Ut posuere urna lorem. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Donec elementum vestibulum risus, et molestie sapien malesuada at. Donec malesuada vestibulum iaculis. Donec porttitor malesuada metus, vel tempor nulla gravida ut. Cras cursus felis vitae magna laoreet porta. Sed non leo tristique, rhoncus sapien et, consectetur lectus. Suspendisse potenti. Nam finibus, sapien eu tristique porttitor, ante eros pretium mauris, sed hendrerit risus eros ac lacus. Proin consectetur ligula aliquet velit vestibulum placerat. Vivamus et orci id augue tempor molestie. Morbi id nisl vitae lacus porta gravida ut vitae ante. In posuere ultrices arcu. Aliquam a finibus arcu. Sed consequat libero mi, eu fermentum arcu aliquet quis. Vestibulum iaculis rhoncus neque, quis congue justo egestas at. Ut placerat diam quis risus dapibus convallis. Donec non tempor nisl. Donec vulputate malesuada tempor. Pellentesque ac lectus eu massa tristique placerat. Proin suscipit ante risus, at elementum quam euismod eget. Nunc sollicitudin pretium eros, quis imperdiet metus aliquet at. Maecenas sit amet felis vitae nunc dignissim varius. Vivamus nibh orci, volutpat vitae rutrum eu, pharetra ac enim. Ut orci metus, luctus sed lacus vel, bibendum dapibus nulla. Nulla nisl ex, hendrerit ut pretium rhoncus, posuere vitae est. Fusce accumsan ac lorem imperdiet convallis. Etiam vehicula sapien vitae dignissim efficitur. Morbi finibus lacus in felis condimentum tristique. Maecenas aliquam ipsum facilisis sapien lobortis pellentesque. -`),e())},dependencies:[E],changeDetection:0});let a=r;return a})();function Rt(a,r){if(a&1){let f=N();t(0,"div",2)(1,"button",3),p("click",function(){M(f);let o=L();return _(o.onDismiss())}),i(2,"Button 1"),e(),t(3,"button",4),p("click",function(){M(f);let o=L();return _(o.onDismiss())}),i(4,"Button 2"),e(),t(5,"button",5),p("click",function(){M(f);let o=L();return _(o.onDismiss())}),i(6,"Button 3"),e()()}}var dt=(()=>{let r=class r{constructor(m,o){this.drawerRef=m,this.drawerConfig=o}ngOnInit(){}onDismiss(){this.drawerRef.close()}};r.\u0275fac=function(o){return new(o||r)(u(w),u(C))},r.\u0275cmp=c({type:r,selectors:[["ms-drawer-with-alternative-actions-template"]],decls:4,vars:1,consts:[["alternativeActions",""],[3,"actionsTemplate"],[1,"buttons-wrapper"],["mat-raised-button","","color","primary",3,"click"],["mat-flat-button","","color","accent",3,"click"],["mat-stroked-button","","color","primary",3,"click"]],template:function(o,l){if(o&1&&(t(0,"ms-drawer",1),i(1,`Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. -`),e(),y(2,Rt,7,0,"ng-template",null,0,Q)),o&2){let v=b(3);d("actionsTemplate",v)}},dependencies:[h,E],styles:[".buttons-wrapper[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:first-child){margin-left:20px}"]});let a=r;return a})();function Ft(a,r){if(a&1){let f=N();t(0,"div",2)(1,"div",3)(2,"button",4),p("click",function(){M(f);let o=L();return _(o.close())}),n(3,"mat-icon",5),e()(),t(4,"h3",6),i(5,"Different Header Style"),e()()}}var ct=(()=>{let r=class r{constructor(m,o){this.drawerRef=m,this.drawerConfig=o}ngOnInit(){}close(){this.drawerRef.close()}};r.\u0275fac=function(o){return new(o||r)(u(w),u(C))},r.\u0275cmp=c({type:r,selectors:[["ms-drawer-with-alternative-header-template"]],decls:4,vars:1,consts:[["alternativeHeader",""],[3,"headerTemplate"],[1,"header-wrapper"],[1,"close-icon"],["mat-icon-button","",3,"click"],["fontIcon","icon-close-one"],[2,"color","red"]],template:function(o,l){if(o&1&&(t(0,"ms-drawer",1),i(1,`Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit amet elit at dolor consectetur luctus. Mauris tellus ipsum, pellentesque eu vulputate et, vehicula a risus. Nunc lacus nulla, tristique non dictum ut, placerat semper nunc. Cras nulla nulla, cursus eu ultricies non, tempus eget tellus. Sed ac dapibus diam. Vestibulum et tempor sapien. Donec pretium, arcu et ornare finibus, lacus ligula laoreet lacus, sodales laoreet augue purus et elit. Duis massa dui, sagittis id vulputate eu, aliquet ornare eros. Duis libero velit, venenatis id ante a, pretium porta nibh. Donec sed metus blandit, iaculis tortor vitae, consequat diam. Nullam id justo sodales, congue leo ut, laoreet ligula. Vestibulum aliquam risus et urna commodo venenatis. Aliquam porttitor eget mauris id semper. Curabitur sed bibendum lectus, at volutpat augue. Nulla vitae nisl elit. Mauris tempor arcu vitae turpis eleifend maximus. Pellentesque tempus tellus tortor. Nunc massa leo, iaculis non nisl ac, laoreet consectetur quam. Nullam eu erat augue. Aliquam ex lacus, consequat porta laoreet non, varius vel magna. Nunc eget felis velit. Maecenas blandit dui velit, ac faucibus risus rutrum ut. In nunc elit, suscipit aliquet dictum non, scelerisque in lectus. Nulla ipsum turpis, molestie eu ipsum eget, gravida suscipit risus. Donec nec euismod est. Aliquam erat volutpat. Sed rutrum sodales lectus. -`),e(),y(2,Ft,6,0,"ng-template",null,0,Q)),o&2){let v=b(3);d("headerTemplate",v)}},dependencies:[re,T,E],styles:[".header-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:32px}"],changeDetection:0});let a=r;return a})();var pt=(()=>{let r=class r{constructor(m,o,l){this.drawerRef=m,this.drawerConfig=o,this.fb=l}ngOnInit(){this.form=this.fb.group({name:["",[R.required]],address:["",[R.required]]})}save(m){m===et.SAVE&&this.drawerRef.close({result:this.form.getRawValue(),status:m})}};r.\u0275fac=function(o){return new(o||r)(u(w),u(C),u(ne))},r.\u0275cmp=c({type:r,selectors:[["ms-drawer-with-buttons-actions"]],decls:12,vars:2,consts:[[3,"actionEvent","isSaveDisabled"],[3,"formGroup"],[1,"form-field-container"],["appearance","outline"],["agErrorDisplay","","matInput","","placeholder","Name","formControlName","name"],["agErrorDisplay","","matInput","","placeholder","Address","formControlName","address"]],template:function(o,l){o&1&&(t(0,"ms-drawer",0),p("actionEvent",function(k){return l.save(k)}),t(1,"form",1)(2,"div",2)(3,"mat-label"),i(4,"Name"),e(),t(5,"mat-form-field",3),n(6,"input",4),e()(),t(7,"div",2)(8,"mat-label"),i(9,"Address"),e(),t(10,"mat-form-field",3),n(11,"input",5),e()()()()),o&2&&(d("isSaveDisabled",l.form.invalid),s(),d("formGroup",l.form))},dependencies:[me,ae,oe,ee,Z,H,J,te,ie,E]});let a=r;return a})();var ut=(()=>{let r=class r{constructor(m,o){this.drawerRef=m,this.drawerConfig=o}ngOnInit(){}};r.\u0275fac=function(o){return new(o||r)(u(w),u(C))},r.\u0275cmp=c({type:r,selectors:[["ms-drawer-with-customizable-width"]],decls:1,vars:0,template:function(o,l){o&1&&n(0,"ms-drawer")},dependencies:[E]});let a=r;return a})();var ft=(()=>{let r=class r{constructor(m,o){this.drawerRef=m,this.drawerConfig=o,this.isSaveDisabled=!0}ngOnInit(){}};r.\u0275fac=function(o){return new(o||r)(u(w),u(C))},r.\u0275cmp=c({type:r,selectors:[["ms-drawer-with-disabled-buttons-actions"]],decls:3,vars:2,consts:[[3,"isSaveDisabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(o,l){o&1&&(t(0,"ms-drawer",0)(1,"button",1),p("click",function(){return l.isSaveDisabled=!l.isSaveDisabled}),i(2),e()()),o&2&&(d("isSaveDisabled",l.isSaveDisabled),s(2),I(" Click here to ",l.isSaveDisabled?"enable":"disable"," button "))},dependencies:[h,E]});let a=r;return a})();var vt=(()=>{let r=class r{constructor(m,o){this.drawerRef=m,this.drawerData=o}ngOnInit(){}};r.\u0275fac=function(o){return new(o||r)(u(w),u(C))},r.\u0275cmp=c({type:r,selectors:[["ms-drawer-with-injected-data"]],decls:5,vars:2,template:function(o,l){o&1&&(t(0,"ms-drawer")(1,"p"),i(2),e(),t(3,"p"),i(4),e()()),o&2&&(s(2),I("Field 1: ",l.drawerData.data.field1,""),s(2),I("Field 2: ",l.drawerData.data.field2,""))},dependencies:[E],changeDetection:0});let a=r;return a})();var gt=(()=>{let r=class r{constructor(m,o){this.drawerRef=m,this.drawerData=o}ngOnInit(){}};r.\u0275fac=function(o){return new(o||r)(u(w),u(C))},r.\u0275cmp=c({type:r,selectors:[["ms-drawer-with-only-one-button"]],decls:1,vars:0,template:function(o,l){o&1&&n(0,"ms-drawer")},dependencies:[E],changeDetection:0});let a=r;return a})();var St=(()=>{let r=class r{constructor(m){this.drawerService=m}ngOnInit(){}openDrawer(){this.drawerService.open(st,{title:"Lorem Ipsum"}).afterClosed().pipe(A(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithInjectedData(){let m={field1:"value1",field2:"value2"};this.drawerService.open(vt,{title:"Drawer with injected data",data:m}).afterClosed().pipe(A(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithAlternativeHeader(){this.drawerService.open(ct).afterClosed().pipe(A(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithOnlyOneButton(){this.drawerService.open(gt,{title:"Only one button",showSaveButton:!1,closeButtonLabel:"Close"}).afterClosed().pipe(A(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithAlternativeActions(){this.drawerService.open(dt,{title:"Alternative Footer"}).afterClosed().pipe(A(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithDisabledButtons(){this.drawerService.open(ft,{title:"Disabled buttons"}).afterClosed().pipe(A(1)).subscribe(()=>{console.log("Drawer closed!")})}openDrawerWithButtonsActions(){this.drawerService.open(pt,{title:"Buttons Actions"}).afterClosed().pipe(A(1)).subscribe(o=>{alert(`Clicked on ${o.status}, name = ${o.result.name}, address = ${o.result.address}`)})}openDrawerWithCustomizableWidth(){this.drawerService.open(ut,{title:"Drawer With Customizable Width",width:500}).afterClosed().pipe(A(1)).subscribe(()=>{console.log("Drawer closed!")})}};r.\u0275fac=function(o){return new(o||r)(u(le))},r.\u0275cmp=c({type:r,selectors:[["ms-drawer-demo"]],decls:112,vars:0,consts:[[1,"section"],[1,"parent","items-per-row-5"],["mat-raised-button","",3,"click"],[1,"line"]],template:function(o,l){o&1&&(t(0,"h1"),i(1,"Drawer"),e(),t(2,"div",0)(3,"h2"),i(4,"Description:"),e(),t(5,"p"),i(6,"Drawer Dialog it's opened using the drawer service. (ex. this.drawerService.open(COMPONENT, customData)"),e(),t(7,"p"),i(8," Those are the custom data available for "),t(9,"b"),i(10,"drawer config:"),e(),n(11,"br"),t(12,"b"),i(13,"data?: any;"),e(),i(14," | Custom data that you would need to add from outside inside the dialog. "),n(15,"br"),t(16,"b"),i(17,"title?: string;"),e(),i(18," | Dialog title "),n(19,"br"),t(20,"b"),i(21,"showSaveButton?: boolean;"),e(),i(22," | Option to configure the show/hide of the save button. "),n(23,"br"),t(24,"b"),i(25,"showDismissButton?: boolean;"),e(),i(26," | Option to configure the show/hide of the dismiss button. "),n(27,"br"),t(28,"b"),i(29,"saveButtonLabel?: string;"),e(),i(30," | Option to configure the save button label."),n(31,"br"),t(32,"b"),i(33,"dismissButtonLabel?: string;"),e(),i(34," | Option to configure the dismiss button label."),n(35,"br"),e(),t(36,"p"),i(37," On each drawer action an event it's emitted: If you click on the X icon, the event emitted it's DrawerStatus.CLOSE, if you click on save the event emitted is DrawerStatus.SAVE, if you click on dismiss the event it's DrawerStatus.DISMISS. By using this action on the actionEvent output event emitter, you can bind your function and listen to events for your custom functionality. "),e(),t(38,"p"),i(39,' Additionaly, you can change the templates of the header and footer and provide a totally custom implementation as you would need it. Check the "alternative templates" examples '),e()(),t(40,"div",0)(41,"h2"),i(42,"Basic Drawers"),e(),t(43,"div",1)(44,"div"),i(45,"Open simple drawer"),e(),t(46,"div"),i(47,"Open Drawer with Injected Data"),e(),t(48,"div"),i(49,"Open Drawer with Only One Button"),e(),t(50,"div"),i(51,"Open Drawer with Disabled Buttons"),e(),t(52,"div"),i(53,"Open Drawer with Customizable Width"),e(),t(54,"div")(55,"button",2),p("click",function(){return l.openDrawer()}),i(56,"Open Drawer"),e()(),t(57,"div")(58,"button",2),p("click",function(){return l.openDrawerWithInjectedData()}),i(59,"Open Drawer"),e()(),t(60,"div")(61,"button",2),p("click",function(){return l.openDrawerWithOnlyOneButton()}),i(62,"Open Drawer"),e()(),t(63,"div")(64,"button",2),p("click",function(){return l.openDrawerWithDisabledButtons()}),i(65,"Open Drawer"),e()(),t(66,"div")(67,"button",2),p("click",function(){return l.openDrawerWithCustomizableWidth()}),i(68,"Open Drawer"),e()()(),t(69,"div",3),n(70,"mat-divider"),e()(),t(71,"div",0)(72,"h2"),i(73,"Alternative templates examples"),e(),t(74,"div",1)(75,"div"),i(76,"Open Drawer with Alternative Header Template"),e(),t(77,"div"),i(78,"Open Drawer with Alternative Actions Template"),e(),n(79,"div")(80,"div")(81,"div"),t(82,"div")(83,"button",2),p("click",function(){return l.openDrawerWithAlternativeHeader()}),i(84,"Open Drawer"),e()(),t(85,"div")(86,"button",2),p("click",function(){return l.openDrawerWithAlternativeActions()}),i(87,"Open Drawer"),e()(),n(88,"div")(89,"div")(90,"div"),e(),t(91,"div",3),n(92,"mat-divider"),e()(),t(93,"div",0)(94,"h2"),i(95,"Drawers With Buttons Actions Check"),e(),t(96,"div",1)(97,"div"),i(98,"Open Drawer with Buttons Actions"),e(),n(99,"div")(100,"div")(101,"div")(102,"div"),t(103,"div")(104,"button",2),p("click",function(){return l.openDrawerWithButtonsActions()}),i(105,"Open Drawer"),e()(),n(106,"div")(107,"div")(108,"div")(109,"div"),e(),t(110,"div",3),n(111,"mat-divider"),e()())},dependencies:[g,h],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0});let a=r;return a})();var q,de=(q=class{constructor(r){this.fb=r,this.form=new he({})}ngOnInit(){this.form=this.fb.group({default:[null],searchBar:[null],prefilled:["Lorem Ipsum"],disabled:[{value:null,disabled:!0}],prefilledDisabled:[{value:"Lorem Ipsum",disabled:!0}],error:[null,[R.required]],icon:[null],iconPrefilled:["Lorem Ipsum"],iconDisabled:[{value:null,disabled:!0}],iconPrefilledDisabled:[{value:"Lorem Ipsum",disabled:!0}],iconError:[null,[R.required]],required:[null,[R.required]],textarea:[null],textareaPrefilled:["Lorem Ipsum"],textareaDisabled:[{value:null,disabled:!0}],textareaPrefilledAndDisabled:[{value:"Lorem Ipsum",disabled:!0}],textareaError:[null,[R.required]],dropdown:[null],dropdownPreselected:["option1"],dropdownDisabled:[{value:null,disabled:!0}],dropdownPreselectedAndDisabled:[{value:"option1",disabled:!0}]})}},q.\u0275fac=function(f){return new(f||q)(u(ne))},q.\u0275cmp=c({type:q,selectors:[["ms-form-fields-demo"]],decls:255,vars:1,consts:[[1,"line"],[3,"formGroup"],[1,"section"],[1,"parent","items-per-row-5"],[1,"form-field-container"],["msErrorDisplay","","matInput","","formControlName","default"],[1,"form-field-container","ms-white-form-field"],["msErrorDisplay","","matInput","","formControlName","prefilled"],["msErrorDisplay","","matInput","","formControlName","disabled"],["msErrorDisplay","","matInput","","formControlName","prefilledDisabled"],["msErrorDisplay","","matInput","","formControlName","error"],["appearance","outline"],["matInput","","msErrorDisplay","","placeholder","Default","formControlName","default"],["matInput","","msErrorDisplay","","placeholder","Prefilled","formControlName","prefilled"],["matInput","","msErrorDisplay","","placeholder","Disabled","formControlName","disabled"],["matInput","","msErrorDisplay","","placeholder","Prefilled and Disabled","formControlName","prefilledDisabled"],["matInput","","placeholder","Error","formControlName","error"],["appearance","fill","floatLabel","always"],["appearance","outline","floatLabel","auto"],["floatLabel","always"],["msErrorDisplay","","matInput","","formControlName","required"],["rows","4","matInput","","formControlName","textarea","msErrorDisplay",""],["rows","4","matInput","","formControlName","textareaPrefilled","msErrorDisplay",""],["rows","4","matInput","","formControlName","textareaDisabled","msErrorDisplay",""],["rows","4","matInput","","formControlName","textareaPrefilledAndDisabled","msErrorDisplay",""],["rows","4","matInput","","formControlName","textareaError","msErrorDisplay",""],["formControlName","dropdown","placeholder","Select a value"],["value","option1"],["value","option2"],["value","option3"],["value","option4"],["value","option5"],["formControlName","dropdownPreselected","placeholder","Select a value"],["formControlName","dropdownDisabled","placeholder","Select a value"],["formControlName","dropdownPreselectedAndDisabled"],[1,"parent","items-per-row-6"],["matInput","","msPasswordToggle","","msErrorDisplay","","placeholder","Default","formControlName","default"]],template:function(f,m){f&1&&(t(0,"h1"),i(1,"Form Fields"),e(),t(2,"div",0),n(3,"mat-divider"),e(),t(4,"form",1)(5,"div",2)(6,"div",2)(7,"h2"),i(8,"Default"),e(),t(9,"div",3)(10,"div",4)(11,"mat-label"),i(12," Default "),e(),t(13,"mat-form-field"),n(14,"input",5),e()(),t(15,"div",6)(16,"mat-label"),i(17," Default White "),e(),t(18,"mat-form-field"),n(19,"input",5),e()(),t(20,"div",4)(21,"mat-label"),i(22," Prefilled "),e(),t(23,"mat-form-field"),n(24,"input",7),e()(),t(25,"div",4)(26,"mat-label"),i(27," Disabled "),e(),t(28,"mat-form-field"),n(29,"input",8),e()(),t(30,"div",4)(31,"mat-label"),i(32," Prefilled & disabled "),e(),t(33,"mat-form-field"),n(34,"input",9),e()(),t(35,"div",4)(36,"mat-label"),i(37," Error "),e(),t(38,"mat-form-field"),n(39,"input",10),e()()(),t(40,"div",0),n(41,"mat-divider"),e()(),t(42,"h2"),i(43,"Appearance Outline"),e(),t(44,"div",3)(45,"div",4)(46,"mat-form-field",11)(47,"mat-label"),i(48,"Default"),e(),n(49,"input",12),e()(),t(50,"div",4)(51,"mat-form-field",11)(52,"mat-label"),i(53," Prefilled "),e(),n(54,"input",13),e()(),t(55,"div",4)(56,"mat-form-field",11)(57,"mat-label"),i(58," Disabled "),e(),n(59,"input",14),e()(),t(60,"div",4)(61,"mat-form-field",11)(62,"mat-label"),i(63," Prefilled & disabled "),e(),n(64,"input",15),e()(),t(65,"div",4)(66,"mat-form-field",11)(67,"mat-label"),i(68," Error "),e(),n(69,"input",16),t(70,"mat-error"),i(71,"Test"),e()()()(),t(72,"div",0),n(73,"mat-divider"),e()(),t(74,"div",2)(75,"h2"),i(76,"Appearance Fill & Float Label"),e(),t(77,"div",3)(78,"div",4)(79,"mat-form-field",17)(80,"mat-label"),i(81," Default "),e(),n(82,"input",5),e()(),t(83,"div")(84,"mat-form-field",17)(85,"mat-label"),i(86," Prefilled "),e(),n(87,"input",7),e()(),t(88,"div",4)(89,"mat-form-field",17)(90,"mat-label"),i(91," Disabled "),e(),n(92,"input",8),e()(),t(93,"div",4)(94,"mat-form-field",17)(95,"mat-label"),i(96," Prefilled & disabled "),e(),n(97,"input",9),e()(),t(98,"div",4)(99,"mat-form-field",17)(100,"mat-label"),i(101," Error "),e(),n(102,"input",10),e()()(),t(103,"div",0),n(104,"mat-divider"),e()(),t(105,"div",2)(106,"h2"),i(107,"Appearance Outline & Label Auto"),e(),t(108,"div",3)(109,"div",4)(110,"mat-form-field",18)(111,"mat-label"),i(112," Default "),e(),n(113,"input",5),e()(),t(114,"div",4)(115,"mat-form-field",18)(116,"mat-label"),i(117," Prefilled "),e(),n(118,"input",7),e()(),t(119,"div",4)(120,"mat-form-field",18)(121,"mat-label"),i(122," Disabled "),e(),n(123,"input",8),e()(),t(124,"div",4)(125,"mat-form-field",18)(126,"mat-label"),i(127," Prefilled & disabled "),e(),n(128,"input",9),e()(),t(129,"div",4)(130,"mat-form-field",18)(131,"mat-label"),i(132," Error "),e(),n(133,"input",10),e()()(),t(134,"div",0),n(135,"mat-divider"),e()(),t(136,"div",2)(137,"h2"),i(138,"Inputs with Validators"),e(),t(139,"div",3)(140,"div",4)(141,"mat-form-field",19)(142,"mat-label"),i(143,"Required "),e(),n(144,"input",20),e()(),n(145,"div")(146,"div"),e(),t(147,"div",0),n(148,"mat-divider"),e()(),t(149,"div",2)(150,"h2"),i(151,"Textarea"),e(),t(152,"div",3)(153,"div",4)(154,"mat-form-field",19)(155,"mat-label"),i(156,"Default prefilled"),e(),n(157,"textarea",21),e()(),t(158,"div",4)(159,"mat-form-field",19)(160,"mat-label"),i(161,"Prefilled"),e(),n(162,"textarea",22),e()(),t(163,"div",4)(164,"mat-form-field",19)(165,"mat-label"),i(166,"Disabled"),e(),n(167,"textarea",23),e()(),t(168,"div",4)(169,"mat-form-field",19)(170,"mat-label"),i(171,"Prefilled and disabled"),e(),n(172,"textarea",24),e()(),t(173,"div",4)(174,"mat-form-field",19)(175,"mat-label"),i(176,"Error"),e(),n(177,"textarea",25),e()()(),t(178,"div",0),n(179,"mat-divider"),e()(),t(180,"div",2)(181,"h2"),i(182,"Dropdowns"),e(),t(183,"div",3)(184,"div",4)(185,"mat-label"),i(186," Default"),e(),t(187,"mat-form-field",11)(188,"mat-select",26)(189,"mat-option",27),i(190,"Option 1"),e(),t(191,"mat-option",28),i(192,"Option 2"),e(),t(193,"mat-option",29),i(194,"Option 3"),e(),t(195,"mat-option",30),i(196,"Option 4"),e(),t(197,"mat-option",31),i(198,"Option 5"),e()()()(),t(199,"div",4)(200,"mat-label"),i(201," Preselected "),e(),t(202,"mat-form-field",11)(203,"mat-select",32)(204,"mat-option",27),i(205,"Option 1"),e(),t(206,"mat-option",28),i(207,"Option 2"),e(),t(208,"mat-option",29),i(209,"Option 3"),e(),t(210,"mat-option",30),i(211,"Option 4"),e(),t(212,"mat-option",31),i(213,"Option 5"),e()()()(),t(214,"div",4)(215,"mat-label"),i(216," Disabled "),e(),t(217,"mat-form-field",11)(218,"mat-select",33)(219,"mat-option",27),i(220,"Option 1"),e(),t(221,"mat-option",28),i(222,"Option 2"),e(),t(223,"mat-option",29),i(224,"Option 3"),e(),t(225,"mat-option",30),i(226,"Option 4"),e(),t(227,"mat-option",31),i(228,"Option 5"),e()()()(),t(229,"div",4)(230,"mat-label"),i(231," Preselected and disabled "),e(),t(232,"mat-form-field",11)(233,"mat-select",34)(234,"mat-option",27),i(235,"Option 1"),e(),t(236,"mat-option",28),i(237,"Option 2"),e(),t(238,"mat-option",29),i(239,"Option 3"),e(),t(240,"mat-option",30),i(241,"Option 4"),e(),t(242,"mat-option",31),i(243,"Option 5"),e()()()()(),t(244,"div",0),n(245,"mat-divider"),e()(),t(246,"div",2)(247,"div",35)(248,"div",4)(249,"mat-label"),i(250,"Password toggle"),e(),t(251,"mat-form-field",11),n(252,"input",36),e()()(),t(253,"div",0),n(254,"mat-divider"),e()()()),f&2&&(s(4),d("formGroup",m.form))},dependencies:[g,me,ae,oe,De,Ne,xe,ee,Z,H,J,te,ie,Ze],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0}),q);de=ce([Ie()],de);var Et=(()=>{let r=class r{constructor(){}ngOnInit(){}};r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=c({type:r,selectors:[["ms-icons-demo"]],decls:381,vars:0,consts:[[1,"line"],[1,"section"],[1,"parent","items-per-row-3"],["fontSet","ms","fontIcon","icon-Check"],[1,"parent","items-per-row-8"],["fontSet","ms","fontIcon","icon-User",1,"mat-primary"],["fontSet","ms","fontIcon","icon-User",1,"mat-complementary"],["fontSet","ms","fontIcon","icon-User",1,"mat-gray"],["fontSet","ms","fontIcon","icon-User",1,"mat-white"],["fontSet","ms","fontIcon","icon-User",1,"mat-accent"],["fontSet","ms","fontIcon","icon-User",1,"mat-success"],["fontSet","ms","fontIcon","icon-User",1,"mat-warn"],["fontSet","ms","fontIcon","icon-User",1,"mat-error"],[1,"parent","ten-items-per-row"],["fontSet","ms","fontIcon","icon-Alerts-Info"],["fontSet","ms","fontIcon","icon-Alerts-Negative"],["fontSet","ms","fontIcon","icon-Alerts-Positive"],["fontSet","ms","fontIcon","icon-Alerts-Warning"],["fontSet","ms","fontIcon","icon-ArrowDown"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["fontSet","ms","fontIcon","icon-ArrowRight"],["fontSet","ms","fontIcon","icon-ArrowSquareOut"],["fontSet","ms","fontIcon","icon-ArrowUp"],["fontSet","ms","fontIcon","icon-Bell"],["fontSet","ms","fontIcon","icon-CalendarBlank"],["fontSet","ms","fontIcon","icon-CaretDoubleLeft"],["fontSet","ms","fontIcon","icon-CaretDoubleRight"],["fontSet","ms","fontIcon","icon-CaretDown"],["fontSet","ms","fontIcon","icon-CaretLeft"],["fontSet","ms","fontIcon","icon-CaretRight"],["fontSet","ms","fontIcon","icon-CaretUp"],["fontSet","ms","fontIcon","icon-CheckCircle"],["fontSet","ms","fontIcon","icon-Clock"],["fontSet","ms","fontIcon","icon-Copy"],["fontSet","ms","fontIcon","icon-Crosshair"],["fontSet","ms","fontIcon","icon-DotsSix"],["fontSet","ms","fontIcon","icon-DotsThree"],["fontSet","ms","fontIcon","icon-DotsThreeVertical"],["fontSet","ms","fontIcon","icon-DownloadSimple"],["fontSet","ms","fontIcon","icon-DropdownCaretDown"],["fontSet","ms","fontIcon","icon-DropdownCaretRight"],["fontSet","ms","fontIcon","icon-DropdownCaretUp"],["fontSet","ms","fontIcon","icon-EnvelopeSimple"],["fontSet","ms","fontIcon","icon-Eye"],["fontSet","ms","fontIcon","icon-EyeSlash"],["fontSet","ms","fontIcon","icon-FunnelSimple"],["fontSet","ms","fontIcon","icon-GearSix"],["fontSet","ms","fontIcon","icon-Info"],["fontSet","ms","fontIcon","icon-Lightning"],["fontSet","ms","fontIcon","icon-ListBullets"],["fontSet","ms","fontIcon","icon-Loader"],["fontSet","ms","fontIcon","icon-Lock"],["fontSet","ms","fontIcon","icon-Magnet"],["fontSet","ms","fontIcon","icon-MagnifyingGlass"],["fontSet","ms","fontIcon","icon-MapTrifold"],["fontSet","ms","fontIcon","icon-Minus"],["fontSet","ms","fontIcon","icon-Nav"],["fontSet","ms","fontIcon","icon-Paperclip"],["fontSet","ms","fontIcon","icon-Passthrough"],["fontSet","ms","fontIcon","icon-PencilSimple"],["fontSet","ms","fontIcon","icon-Placeholder"],["fontSet","ms","fontIcon","icon-Plus"],["fontSet","ms","fontIcon","icon-Printer"],["fontSet","ms","fontIcon","icon-Prohibit"],["fontSet","ms","fontIcon","icon-Question"],["fontSet","ms","fontIcon","icon-Refresh"],["fontSet","ms","fontIcon","icon-Rocket"],["fontSet","ms","fontIcon","icon-SignOut"],["fontSet","ms","fontIcon","icon-Sort"],["fontSet","ms","fontIcon","icon-SortDown"],["fontSet","ms","fontIcon","icon-SortUp"],["fontSet","ms","fontIcon","icon-Stack"],["fontSet","ms","fontIcon","icon-StackPort"],["fontSet","ms","fontIcon","icon-TrashSimple"],["fontSet","ms","fontIcon","icon-TrendDown"],["fontSet","ms","fontIcon","icon-TrendUp"],["fontSet","ms","fontIcon","icon-UploadSimple"],["fontSet","ms","fontIcon","icon-User"],["fontSet","ms","fontIcon","icon-Users"],["fontSet","ms","fontIcon","icon-WifiHigh"],["fontSet","ms","fontIcon","icon-WifiLightning"],["fontSet","ms","fontIcon","icon-WifiLow"],["fontSet","ms","fontIcon","icon-WifiMedium"],["fontSet","ms","fontIcon","icon-WifiNone"],["fontSet","ms","fontIcon","icon-WifiSlash"],["fontSet","ms","fontIcon","icon-WifiX"],["fontSet","ms","fontIcon","icon-X"],["fontSet","ms","fontIcon","icon-XCircle"],["fontSet","ms","fontIcon","icon-Admin"],["fontSet","ms","fontIcon","icon-Environmental"],["fontSet","ms","fontIcon","icon-Inventory"],["fontSet","ms","fontIcon","icon-Systems-Manager"],[2,"grid-column","span 10"]],template:function(o,l){o&1&&(t(0,"h1"),i(1,"Icons"),e(),t(2,"div",0),n(3,"mat-divider"),e(),t(4,"div",1)(5,"h2"),i(6,"Types"),e(),t(7,"div",2)(8,"div"),i(9,"Icon from Custom Font Set"),e(),t(10,"div"),i(11,"Material Default Icons"),e(),n(12,"div"),t(13,"div"),n(14,"mat-icon",3),e(),t(15,"div")(16,"mat-icon"),i(17,"delete"),e()(),n(18,"div"),e(),t(19,"div",0),n(20,"mat-divider"),e()(),t(21,"div",1)(22,"h2"),i(23,"Custom styles"),e(),t(24,"div",4)(25,"div"),i(26,"Primary"),e(),t(27,"div"),i(28,"Complementary"),e(),t(29,"div"),i(30,"Gray"),e(),t(31,"div"),i(32,"White"),e(),t(33,"div"),i(34,"Accent"),e(),t(35,"div"),i(36,"Succes"),e(),t(37,"div"),i(38,"Warn"),e(),t(39,"div"),i(40,"Error"),e(),t(41,"div"),n(42,"mat-icon",5),e(),t(43,"div"),n(44,"mat-icon",6),e(),t(45,"div"),n(46,"mat-icon",7),e(),t(47,"div"),n(48,"mat-icon",8),e(),t(49,"div"),n(50,"mat-icon",9),e(),t(51,"div"),n(52,"mat-icon",10),e(),t(53,"div"),n(54,"mat-icon",11),e(),t(55,"div"),n(56,"mat-icon",12),e()(),t(57,"div",0),n(58,"mat-divider"),e()(),t(59,"div",1)(60,"h2"),i(61,"Custom Icons"),e(),t(62,"div",13)(63,"div"),i(64,"icon-Alerts-Info"),e(),t(65,"div"),i(66,"icon-Alerts-Negative"),e(),t(67,"div"),i(68,"icon-Alerts-Positive"),e(),t(69,"div"),i(70,"icon-Alerts-Warning"),e(),t(71,"div"),i(72,"icon-ArrowDown"),e(),t(73,"div"),i(74,"icon-ArrowLeft"),e(),t(75,"div"),i(76,"icon-ArrowRight"),e(),t(77,"div"),i(78,"icon-ArrowSquareOut"),e(),t(79,"div"),i(80,"icon-ArrowUp"),e(),t(81,"div"),i(82,"icon-Bell"),e(),t(83,"div"),n(84,"mat-icon",14),e(),t(85,"div"),n(86,"mat-icon",15),e(),t(87,"div"),n(88,"mat-icon",16),e(),t(89,"div"),n(90,"mat-icon",17),e(),t(91,"div"),n(92,"mat-icon",18),e(),t(93,"div"),n(94,"mat-icon",19),e(),t(95,"div"),n(96,"mat-icon",20),e(),t(97,"div"),n(98,"mat-icon",21),e(),t(99,"div"),n(100,"mat-icon",22),e(),t(101,"div"),n(102,"mat-icon",23),e(),t(103,"div"),i(104,"icon-CalendarBlank"),e(),t(105,"div"),i(106,"icon-CaretDoubleLeft"),e(),t(107,"div"),i(108,"icon-CaretDoubleRight"),e(),t(109,"div"),i(110,"icon-CaretDown"),e(),t(111,"div"),i(112,"icon-CaretLeft"),e(),t(113,"div"),i(114,"icon-CaretRight"),e(),t(115,"div"),i(116,"icon-CaretUp"),e(),t(117,"div"),i(118,"icon-CheckCircle"),e(),t(119,"div"),i(120,"icon-Clock"),e(),t(121,"div"),i(122,"icon-Copy"),e(),t(123,"div"),n(124,"mat-icon",24),e(),t(125,"div"),n(126,"mat-icon",25),e(),t(127,"div"),n(128,"mat-icon",26),e(),t(129,"div"),n(130,"mat-icon",27),e(),t(131,"div"),n(132,"mat-icon",28),e(),t(133,"div"),n(134,"mat-icon",29),e(),t(135,"div"),n(136,"mat-icon",30),e(),t(137,"div"),n(138,"mat-icon",31),e(),t(139,"div"),n(140,"mat-icon",32),e(),t(141,"div"),n(142,"mat-icon",33),e(),t(143,"div"),i(144,"icon-Crosshair"),e(),t(145,"div"),i(146,"icon-DotsSix"),e(),t(147,"div"),i(148,"icon-DotsThree"),e(),t(149,"div"),i(150,"icon-DotsThreeVertical"),e(),t(151,"div"),i(152,"icon-DownloadSimple"),e(),t(153,"div"),i(154,"icon-DropdownCaretDown"),e(),t(155,"div"),i(156,"icon-DropdownCaretRight"),e(),t(157,"div"),i(158,"icon-DropdownCaretUp"),e(),t(159,"div"),i(160,"icon-EnvelopeSimple"),e(),t(161,"div"),i(162,"icon-Eye"),e(),t(163,"div"),n(164,"mat-icon",34),e(),t(165,"div"),n(166,"mat-icon",35),e(),t(167,"div"),n(168,"mat-icon",36),e(),t(169,"div"),n(170,"mat-icon",37),e(),t(171,"div"),n(172,"mat-icon",38),e(),t(173,"div"),n(174,"mat-icon",39),e(),t(175,"div"),n(176,"mat-icon",40),e(),t(177,"div"),n(178,"mat-icon",41),e(),t(179,"div"),n(180,"mat-icon",42),e(),t(181,"div"),n(182,"mat-icon",43),e(),t(183,"div"),i(184,"icon-EyeSlash"),e(),t(185,"div"),i(186,"icon-FunnelSimple"),e(),t(187,"div"),i(188,"icon-GearSix"),e(),t(189,"div"),i(190,"icon-Info"),e(),t(191,"div"),i(192,"icon-Lightning"),e(),t(193,"div"),i(194,"icon-ListBullets"),e(),t(195,"div"),i(196,"icon-Loader"),e(),t(197,"div"),i(198,"icon-Lock"),e(),t(199,"div"),i(200,"icon-Magnet"),e(),t(201,"div"),i(202,"icon-MagnifyingGlass"),e(),t(203,"div"),n(204,"mat-icon",44),e(),t(205,"div"),n(206,"mat-icon",45),e(),t(207,"div"),n(208,"mat-icon",46),e(),t(209,"div"),n(210,"mat-icon",47),e(),t(211,"div"),n(212,"mat-icon",48),e(),t(213,"div"),n(214,"mat-icon",49),e(),t(215,"div"),n(216,"mat-icon",50),e(),t(217,"div"),n(218,"mat-icon",51),e(),t(219,"div"),n(220,"mat-icon",52),e(),t(221,"div"),n(222,"mat-icon",53),e(),t(223,"div"),i(224,"icon-MapTrifold"),e(),t(225,"div"),i(226,"icon-Minus"),e(),t(227,"div"),i(228,"icon-Nav"),e(),t(229,"div"),i(230,"icon-Paperclip"),e(),t(231,"div"),i(232,"icon-Passthrough"),e(),t(233,"div"),i(234,"icon-PencilSimple"),e(),t(235,"div"),i(236,"icon-Placeholder"),e(),t(237,"div"),i(238,"icon-Plus"),e(),t(239,"div"),i(240,"icon-Printer"),e(),t(241,"div"),i(242,"icon-Prohibit"),e(),t(243,"div"),n(244,"mat-icon",54),e(),t(245,"div"),n(246,"mat-icon",55),e(),t(247,"div"),n(248,"mat-icon",56),e(),t(249,"div"),n(250,"mat-icon",57),e(),t(251,"div"),n(252,"mat-icon",58),e(),t(253,"div"),n(254,"mat-icon",59),e(),t(255,"div"),n(256,"mat-icon",60),e(),t(257,"div"),n(258,"mat-icon",61),e(),t(259,"div"),n(260,"mat-icon",62),e(),t(261,"div"),n(262,"mat-icon",63),e(),t(263,"div"),i(264,"icon-Question"),e(),t(265,"div"),i(266,"icon-Refresh"),e(),t(267,"div"),i(268,"icon-Rocket"),e(),t(269,"div"),i(270,"icon-SignOut"),e(),t(271,"div"),i(272,"icon-Sort"),e(),t(273,"div"),i(274,"icon-SortDown"),e(),t(275,"div"),i(276,"icon-SortUp"),e(),t(277,"div"),i(278,"icon-Stack"),e(),t(279,"div"),i(280,"icon-StackPort"),e(),t(281,"div"),i(282,"icon-TrashSimple"),e(),t(283,"div"),n(284,"mat-icon",64),e(),t(285,"div"),n(286,"mat-icon",65),e(),t(287,"div"),n(288,"mat-icon",66),e(),t(289,"div"),n(290,"mat-icon",67),e(),t(291,"div"),n(292,"mat-icon",68),e(),t(293,"div"),n(294,"mat-icon",69),e(),t(295,"div"),n(296,"mat-icon",70),e(),t(297,"div"),n(298,"mat-icon",71),e(),t(299,"div"),n(300,"mat-icon",72),e(),t(301,"div"),n(302,"mat-icon",73),e(),t(303,"div"),i(304,"icon-TrendDown"),e(),t(305,"div"),i(306,"icon-TrendUp"),e(),t(307,"div"),i(308,"icon-UploadSimple"),e(),t(309,"div"),i(310,"icon-User"),e(),t(311,"div"),i(312,"icon-Users"),e(),t(313,"div"),i(314,"icon-WifiHigh"),e(),t(315,"div"),i(316,"icon-WifiLightning"),e(),t(317,"div"),i(318,"icon-WifiLow"),e(),t(319,"div"),i(320,"icon-WifiMedium"),e(),t(321,"div"),i(322,"icon-WifiNone"),e(),t(323,"div"),n(324,"mat-icon",74),e(),t(325,"div"),n(326,"mat-icon",75),e(),t(327,"div"),n(328,"mat-icon",76),e(),t(329,"div"),n(330,"mat-icon",77),e(),t(331,"div"),n(332,"mat-icon",78),e(),t(333,"div"),n(334,"mat-icon",79),e(),t(335,"div"),n(336,"mat-icon",80),e(),t(337,"div"),n(338,"mat-icon",81),e(),t(339,"div"),n(340,"mat-icon",82),e(),t(341,"div"),n(342,"mat-icon",83),e(),t(343,"div"),i(344,"icon-WifiSlash"),e(),t(345,"div"),i(346,"icon-WifiX"),e(),t(347,"div"),i(348,"icon-X"),e(),t(349,"div"),i(350,"icon-XCircle"),e(),t(351,"div"),i(352,"icon-Admin"),e(),t(353,"div"),i(354,"icon-Environmental"),e(),t(355,"div"),i(356,"icon-Inventory"),e(),t(357,"div"),i(358,"icon-Systems-Manager"),e(),n(359,"div")(360,"div"),t(361,"div"),n(362,"mat-icon",84),e(),t(363,"div"),n(364,"mat-icon",85),e(),t(365,"div"),n(366,"mat-icon",86),e(),t(367,"div"),n(368,"mat-icon",87),e(),t(369,"div"),n(370,"mat-icon",88),e(),t(371,"div"),n(372,"mat-icon",89),e(),t(373,"div"),n(374,"mat-icon",90),e(),t(375,"div"),n(376,"mat-icon",91),e(),n(377,"div")(378,"div"),t(379,"div",92),n(380,"mat-divider"),e()()())},dependencies:[g,T],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0});let a=r;return a})();var bt=(()=>{let r=class r{};r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=c({type:r,selectors:[["ms-menu-demo"]],decls:155,vars:11,consts:[["animals","matMenu"],["vertebrates","matMenu"],["invertebrates","matMenu"],["fish","matMenu"],["amphibians","matMenu"],["reptiles","matMenu"],["menu","matMenu"],["aboveMenu","matMenu"],["belowMenu","matMenu"],["beforeMenu","matMenu"],["afterMenu","matMenu"],[1,"section"],[1,"parent","items-per-row-2"],["mat-button","",3,"matMenuTriggerFor"],[1,"ms-mat-menu"],["mat-menu-item","",3,"matMenuTriggerFor"],["fontSet","ms","fontIcon","icon-User"],["mat-menu-item",""],["mat-menu-item","","disabled",""],[1,"line"],[1,"section","parent","items-per-row-4"],["yPosition","above","xPosition","after",1,"ms-mat-menu"],["yPosition","below",1,"ms-mat-menu"],["xPosition","before",1,"ms-mat-menu"],["xPosition","after",1,"ms-mat-menu"]],template:function(o,l){if(o&1&&(t(0,"div",11)(1,"h2"),i(2,"Menu"),e(),t(3,"div",12)(4,"div")(5,"button",13),i(6,"Animal index"),e(),t(7,"mat-menu",14,0)(9,"button",15),n(10,"mat-icon",16),i(11,"Vertebrates "),e(),t(12,"button",15),n(13,"mat-icon",16),i(14,"Invertebrates "),e()(),t(15,"mat-menu",14,1)(17,"button",15),n(18,"mat-icon",16),i(19,"Fishes "),e(),t(20,"button",15),n(21,"mat-icon",16),i(22,"Amphibians "),e(),t(23,"button",15),n(24,"mat-icon",16),i(25,"Reptiles "),e(),t(26,"button",17),n(27,"mat-icon",16),i(28,"Birds"),e(),t(29,"button",17),n(30,"mat-icon",16),i(31,"Mammals"),e()(),t(32,"mat-menu",14,2)(34,"button",17),n(35,"mat-icon",16),i(36,"Insects"),e(),t(37,"button",17),n(38,"mat-icon",16),i(39,"Molluscs"),e(),t(40,"button",17),n(41,"mat-icon",16),i(42,"Crustaceans"),e(),t(43,"button",17),n(44,"mat-icon",16),i(45,"Corals"),e(),t(46,"button",17),n(47,"mat-icon",16),i(48,"Arachnids"),e(),t(49,"button",17),n(50,"mat-icon",16),i(51,"Velvet worms"),e(),t(52,"button",17),n(53,"mat-icon",16),i(54,"Horseshoe crabs"),e()(),t(55,"mat-menu",14,3)(57,"button",17),n(58,"mat-icon",16),i(59,"Baikal oilfish"),e(),t(60,"button",17),n(61,"mat-icon",16),i(62,"Bala shark"),e(),t(63,"button",17),n(64,"mat-icon",16),i(65,"Ballan wrasse"),e(),t(66,"button",17),n(67,"mat-icon",16),i(68,"Bamboo shark"),e(),t(69,"button",17),n(70,"mat-icon",16),i(71,"Banded killifish"),e()(),t(72,"mat-menu",14,4)(74,"button",17),n(75,"mat-icon",16),i(76,"Sonoran desert toad"),e(),t(77,"button",17),n(78,"mat-icon",16),i(79,"Western toad"),e(),t(80,"button",17),n(81,"mat-icon",16),i(82,"Arroyo toad"),e(),t(83,"button",17),n(84,"mat-icon",16),i(85,"Yosemite toad"),e()(),t(86,"mat-menu",14,5)(88,"button",17),n(89,"mat-icon",16),i(90,"Banded Day Gecko"),e(),t(91,"button",17),n(92,"mat-icon",16),i(93,"Banded Gila Monster"),e(),t(94,"button",17),n(95,"mat-icon",16),i(96,"Black Tree Monitor"),e(),t(97,"button",17),n(98,"mat-icon",16),i(99,"Blue Spiny Lizard"),e(),t(100,"button",18),n(101,"mat-icon",16),i(102,"Velociraptor"),e()()(),t(103,"div")(104,"button",13),i(105,"Menu"),e(),t(106,"mat-menu",14,6)(108,"button",17),n(109,"mat-icon",16),i(110,"Item 1"),e(),t(111,"button",17),n(112,"mat-icon",16),i(113,"Item 2"),e()()()(),t(114,"div",19),n(115,"mat-divider"),e()(),t(116,"div",20)(117,"div")(118,"button",13),i(119,"Above"),e(),t(120,"mat-menu",21,7)(122,"button",17),i(123,"Item 1"),e(),t(124,"button",17),i(125,"Item 2"),e()()(),t(126,"div")(127,"button",13),i(128,"Below"),e(),t(129,"mat-menu",22,8)(131,"button",17),i(132,"Item 1"),e(),t(133,"button",17),i(134,"Item 2"),e()()(),t(135,"div")(136,"button",13),i(137,"Before"),e(),t(138,"mat-menu",23,9)(140,"button",17),i(141,"Item 1"),e(),t(142,"button",17),i(143,"Item 2"),e()()(),t(144,"div")(145,"button",13),i(146,"After"),e(),t(147,"mat-menu",24,10)(149,"button",17),i(150,"Item 1"),e(),t(151,"button",17),i(152,"Item 2"),e()()()(),t(153,"div",19),n(154,"mat-divider"),e()),o&2){let v=b(8),k=b(16),B=b(33),_t=b(56),Ot=b(73),yt=b(87),It=b(107),Pt=b(121),kt=b(130),Tt=b(139),At=b(148);s(5),d("matMenuTriggerFor",v),s(4),d("matMenuTriggerFor",k),s(3),d("matMenuTriggerFor",B),s(5),d("matMenuTriggerFor",_t),s(3),d("matMenuTriggerFor",Ot),s(3),d("matMenuTriggerFor",yt),s(81),d("matMenuTriggerFor",It),s(14),d("matMenuTriggerFor",Pt),s(9),d("matMenuTriggerFor",kt),s(9),d("matMenuTriggerFor",Tt),s(9),d("matMenuTriggerFor",At)}},dependencies:[g,h,T,Oe,_e,ye],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0});let a=r;return a})();var xt=(()=>{let r=class r{constructor(m){this.snackbarService=m}};r.\u0275fac=function(o){return new(o||r)(u(tt))},r.\u0275cmp=c({type:r,selectors:[["ms-notifications-demo"]],decls:20,vars:0,consts:[[1,"line"],[1,"section"],[1,"parent","items-per-row-8"],["mat-raised-button","","color","primary",3,"click"]],template:function(o,l){o&1&&(t(0,"h1"),i(1,"Notifications"),e(),t(2,"div",0),n(3,"mat-divider"),e(),t(4,"div",1)(5,"h2"),i(6,"Banners"),e(),t(7,"div",2)(8,"div")(9,"button",3),p("click",function(){return l.snackbarService.showSuccess("Example Success")}),i(10," Open Success "),e()(),t(11,"div")(12,"button",3),p("click",function(){return l.snackbarService.showError("Example Error")}),i(13,"Open Error"),e()(),t(14,"div")(15,"button",3),p("click",function(){return l.snackbarService.showInfo("Example Info")}),i(16,"Open Info"),e()(),t(17,"div")(18,"button",3),p("click",function(){return l.snackbarService.showWarning("Example Warning")}),i(19," Open Warning "),e()()()())},dependencies:[g,h],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"]});let a=r;return a})();function Vt(a,r){a&1&&(t(0,"mat-header-cell"),i(1," No. "),e())}function jt(a,r){if(a&1&&(t(0,"mat-cell")(1,"b"),i(2),e()()),a&2){let f=r.$implicit;s(2),pe(f.position)}}function Ht(a,r){a&1&&(t(0,"mat-header-cell"),i(1," Name "),e())}function Ut(a,r){if(a&1&&(t(0,"mat-cell"),i(1),e()),a&2){let f=r.$implicit;s(),I(" ",f.name," ")}}function zt(a,r){a&1&&(t(0,"mat-header-cell"),i(1," Weight "),e())}function Gt(a,r){if(a&1&&(t(0,"mat-cell"),i(1),e()),a&2){let f=r.$implicit;s(),I(" ",f.weight," ")}}function Kt(a,r){a&1&&(t(0,"mat-header-cell"),i(1," Symbol "),e())}function Xt(a,r){if(a&1&&(t(0,"mat-cell"),i(1),e()),a&2){let f=r.$implicit;s(),I(" ",f.symbol," ")}}function $t(a,r){a&1&&n(0,"mat-header-row")}function Yt(a,r){a&1&&n(0,"mat-row")}var ht=[{position:1,name:"Hydrogen",weight:1.0079,symbol:"H"},{position:2,name:"Helium",weight:4.0026,symbol:"He"},{position:3,name:"Lithium",weight:6.941,symbol:"Li"},{position:4,name:"Beryllium",weight:9.0122,symbol:"Be"},{position:5,name:"Boron",weight:10.811,symbol:"B"},{position:6,name:"Carbon",weight:12.0107,symbol:"C"},{position:7,name:"Nitrogen",weight:14.0067,symbol:"N"},{position:8,name:"Oxygen",weight:15.9994,symbol:"O"},{position:9,name:"Fluorine",weight:18.9984,symbol:"F"},{position:10,name:"Neon",weight:20.1797,symbol:"Ne"}],Ct=(()=>{let r=class r{constructor(){this.displayedColumnsSimple=["position","name","weight","symbol"],this.dataSourceSimple=ht,this.displayedColumns=["select","position","name","weight","symbol"],this.dataSource=new Qe(ht),this.selection=new Me(!0,[])}ngOnInit(){}};r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=c({type:r,selectors:[["ms-tables-demo"]],decls:22,vars:3,consts:[[1,"line"],[1,"ms-card"],[1,"heading-sub-section-title"],[1,"ms-table",3,"dataSource"],["matColumnDef","position"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","name"],["matColumnDef","weight"],["matColumnDef","symbol"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"]],template:function(o,l){o&1&&(t(0,"h1"),i(1,"Tables"),e(),t(2,"div",0),n(3,"mat-divider"),e(),t(4,"mat-card",1)(5,"p",2),i(6,"History"),e(),t(7,"mat-table",3),G(8,4),y(9,Vt,2,0,"mat-header-cell",5)(10,jt,3,1,"mat-cell",6),K(),G(11,7),y(12,Ht,2,0,"mat-header-cell",5)(13,Ut,2,1,"mat-cell",6),K(),G(14,8),y(15,zt,2,0,"mat-header-cell",5)(16,Gt,2,1,"mat-cell",6),K(),G(17,9),y(18,Kt,2,0,"mat-header-cell",5)(19,Xt,2,1,"mat-cell",6),K(),y(20,$t,1,0,"mat-header-row",10)(21,Yt,1,0,"mat-row",11),e()()),o&2&&(s(7),d("dataSource",l.dataSourceSimple),s(13),d("matHeaderRowDef",l.displayedColumnsSimple),s(),d("matRowDefColumns",l.displayedColumnsSimple))},dependencies:[g,Ve,He,Ke,Ue,je,Xe,ze,Ge,$e,Ye,U],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0});let a=r;return a})();var wt=(()=>{let r=class r{constructor(){}};r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=c({type:r,selectors:[["ms-typography-demo"]],decls:76,vars:0,consts:[[1,"line"],[1,"heading-primary-title"],[1,"heading-section-title"],[1,"heading-sub-section-title"],[1,"paragraph-regular-p3-default"],[1,"paragraph-bold-p3-small-bold"],[1,"paragraph-semibold-p3-small-emphasis"],[1,"paragraph-semibold-p3-default-emphasis"],[1,"paragraph-regular-p4-small"],[1,"paragraph-semibold-p4-xSmall"],[1,"key-value-container","single"],[1,"key-value-pair"],[1,"key-value-key"],[1,"key-value-value"],[1,"mat-headline-1"],[1,"mat-headline-2"],[1,"mat-headline-3"],[1,"mat-headline-4"],[1,"subtitle-1"],[1,"subtitle-2"],[1,"mat-body-1"],[1,"mat-body-2"],[1,"mat-caption"]],template:function(o,l){o&1&&(t(0,"h1"),i(1,"Typograpghy"),e(),t(2,"div",0),n(3,"mat-divider"),e(),t(4,"h1"),i(5,"Custom Typography (Figma)"),e(),t(6,"p",1),i(7,"heading-primary-title"),e(),t(8,"p",2),i(9,"heading-section-title"),e(),t(10,"p",3),i(11,"heading-sub-section-title"),e(),t(12,"p",4),i(13,"paragraph-regular-p3-default"),e(),t(14,"p",5),i(15,"paragraph-bold-p3-small-bold"),e(),t(16,"p",6),i(17,"paragraph-semibold-p3-small-emphasis"),e(),t(18,"p",7),i(19,"paragraph-semibold-p3-default-emphasis"),e(),t(20,"p",8),i(21,"paragraph-regular-p4-small"),e(),t(22,"p",9),i(23,"paragraph-semibold-p4-xSmall"),e(),n(24,"mat-divider")(25,"br"),t(26,"h1"),i(27,"Key Value Pair"),e(),t(28,"div",10)(29,"div",11)(30,"div",12),i(31,"Key 1:"),e(),t(32,"div",13),i(33,"Value 1"),e()(),t(34,"div",11)(35,"div",12),i(36,"Key 2:"),e(),t(37,"div",13),i(38,"Value 2"),e()()(),n(39,"mat-divider")(40,"br"),t(41,"h1"),i(42,"Angular Material Custom Typograpgy"),e(),t(43,"p",14),i(44,"mat-headline-1"),e(),t(45,"p",15),i(46,"mat-headline-2"),e(),t(47,"p",16),i(48,"mat-headline-3"),e(),t(49,"p",17),i(50,"mat-headline-4"),e(),t(51,"h1"),i(52,"Heading 1"),e(),t(53,"h2"),i(54,"Heading 2"),e(),t(55,"h3"),i(56,"Heading 3"),e(),t(57,"h4"),i(58,"Heading 4"),e(),t(59,"h5"),i(60,"Heading 5"),e(),t(61,"h6"),i(62,"Heading 6"),e(),n(63,"br"),t(64,"p",18),i(65,"subtitle-1"),e(),t(66,"p",19),i(67,"subtitle-2"),e(),n(68,"br"),t(69,"p",20),i(70,"mat-body-1"),e(),t(71,"p",21),i(72,"mat-body-2"),e(),n(73,"br"),t(74,"p",22),i(75,"mat-caption"),e())},dependencies:[g],styles:[".title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin-bottom:20px}.subtitle[_ngcontent-%COMP%]{font-weight:600;margin-bottom:20px}.parent[_ngcontent-%COMP%]{display:grid;column-gap:10px;row-gap:20px}.parent.items-per-row-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.parent.items-per-row-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}.parent.items-per-row-4[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}.parent.items-per-row-5[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}.parent.items-per-row-6[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}.parent.items-per-row-7[_ngcontent-%COMP%]{grid-template-columns:repeat(7,1fr)}.parent.items-per-row-8[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr)}.parent.items-per-row-9[_ngcontent-%COMP%]{grid-template-columns:repeat(9,1fr)}.parent.items-per-row-10[_ngcontent-%COMP%]{grid-template-columns:repeat(10,1fr)}.line[_ngcontent-%COMP%], .description[_ngcontent-%COMP%]{margin:20px 0}"],changeDetection:0});let a=r;return a})();var Qt=()=>["Iterative Magnitude Pruning","One-shot Magnitude Pruning"],Zt=()=>["Yes","No"],Jt=()=>["Option 1","Option 2","Option 3","Option 4"],Dt=(()=>{let r=class r{constructor(){}handleSelected(m){console.log("Selected option:",m)}};r.\u0275fac=function(o){return new(o||r)},r.\u0275cmp=c({type:r,selectors:[["ag-wizard-demo"]],decls:33,vars:6,consts:[["stepper",""],[1,"line"],[1,"section"],[1,"ms-wizard"],[1,"heading-primary-title"],[3,"selectedOption","options"],[1,"mt-4"],["mat-raised-button","","color","primary","matStepperNext",""],["mat-button","","matStepperPrevious","",1,"mr-3"],["fontSet","ms","fontIcon","icon-ArrowLeft"]],template:function(o,l){if(o&1){let v=N();t(0,"h1"),i(1,"Wizard"),e(),t(2,"div",1),n(3,"mat-divider"),e(),n(4,"br"),t(5,"div",2)(6,"mat-stepper",3,0)(8,"mat-step")(9,"p",4),i(10,"Recommended Algorithm:"),e(),t(11,"ms-card-selector",5),p("selectedOption",function(B){return M(v),_(l.handleSelected(B))}),e(),t(12,"div",6)(13,"button",7),i(14,"Next"),e()()(),t(15,"mat-step")(16,"p",4),i(17,"Do you want to have a similar or higher accuracy?"),e(),t(18,"ms-card-selector",5),p("selectedOption",function(B){return M(v),_(l.handleSelected(B))}),e(),t(19,"div",6)(20,"button",8),n(21,"mat-icon",9),i(22," Previous "),e(),t(23,"button",7),i(24,"Next"),e()()(),t(25,"mat-step")(26,"p",4),i(27,"Example question?"),e(),t(28,"ms-card-selector",5),p("selectedOption",function(B){return M(v),_(l.handleSelected(B))}),e(),t(29,"div",6)(30,"button",8),n(31,"mat-icon",9),i(32," Previous "),e()()()()()}o&2&&(s(11),d("options",j(3,Qt)),s(7),d("options",j(4,Zt)),s(10),d("options",j(5,Jt)))},dependencies:[g,h,T,Re,Fe,We,Be,z]});let a=r;return a})();var ei=[{path:"",component:lt,children:[{path:"",redirectTo:x.DEMO.BUTTONS,pathMatch:"full"},{path:x.DEMO.BUTTONS,component:it},{path:x.DEMO.FORM_FIELDS,component:de},{path:x.DEMO.CHECKBOXES,component:at},{path:x.DEMO.TYPOGRAPHY,component:wt},{path:x.DEMO.TABLE,component:Ct},{path:x.DEMO.ICONS,component:Et},{path:x.DEMO.MENU,component:bt},{path:x.DEMO.CARDS,component:rt},{path:x.DEMO.CHIPS,component:mt},{path:x.DEMO.NOTIFICATIONS,component:xt},{path:x.DEMO.WIZARD,component:Dt},{path:x.DEMO.DRAWER,component:St}]}],Mt=(()=>{let r=class r{};r.\u0275fac=function(o){return new(o||r)},r.\u0275mod=Y({type:r}),r.\u0275inj=$({imports:[X.forChild(ei),X]});let a=r;return a})();var gr=(()=>{let r=class r{};r.\u0275fac=function(o){return new(o||r)},r.\u0275mod=Y({type:r}),r.\u0275inj=$({providers:[le],imports:[X,Se,Je,Mt,z,E]});let a=r;return a})();export{gr as DemoModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-PP7DOJYP.js b/frontend/server/modelsmith-build/browser/chunk-PP7DOJYP.js new file mode 100644 index 00000000..350d9778 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-PP7DOJYP.js @@ -0,0 +1 @@ +import{e as U,f as Z,i as C}from"./chunk-HG2O7P4S.js";import{$ as u,Ab as D,Fa as r,Ka as f,Kd as w,Ld as P,Md as O,Ra as k,Ua as L,_ as T,aa as A,be as B,ca as y,de as V,fd as _,hb as N,he as z,ia as m,j as c,ja as E,jb as b,kd as I,ld as p,md as M,me as q,nd as j,o as S,oa as F,xa as x}from"./chunk-NPZHNGVX.js";var $=j({passive:!0}),K=(()=>{let i=class i{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return S;let t=I(e),s=this._monitoredElements.get(t);if(s)return s.subject;let o=new c,a="cdk-text-field-autofilled",d=l=>{l.animationName==="cdk-text-field-autofill-start"&&!t.classList.contains(a)?(t.classList.add(a),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!0}))):l.animationName==="cdk-text-field-autofill-end"&&t.classList.contains(a)&&(t.classList.remove(a),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",d,$),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:o,unlisten:()=>{t.removeEventListener("animationstart",d,$)}}),o}stopMonitoring(e){let t=I(e),s=this._monitoredElements.get(t);s&&(s.unlisten(),s.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}};i.\u0275fac=function(t){return new(t||i)(y(p),y(f))},i.\u0275prov=T({token:i,factory:i.\u0275fac,providedIn:"root"});let n=i;return n})();var W=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=m({type:i}),i.\u0275inj=u({});let n=i;return n})();var ee=new A("MAT_INPUT_VALUE_ACCESSOR"),te=["button","checkbox","file","hidden","image","radio","range","reset","submit"],ie=0,we=(()=>{let i=class i{get disabled(){return this._disabled}set disabled(e){this._disabled=_(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(B.required)??!1}set required(e){this._required=_(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&M().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}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=_(e)}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,t,s,o,a,d,l,Y,G,H){this._elementRef=e,this._platform=t,this.ngControl=s,this._autofillMonitor=Y,this._formField=H,this._uid=`mat-input-${ie++}`,this.focused=!1,this.stateChanges=new c,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(v=>M().has(v)),this._iOSKeyupListener=v=>{let h=v.target;!h.value&&h.selectionStart===0&&h.selectionEnd===0&&(h.setSelectionRange(1,1),h.setSelectionRange(0,0))};let g=this._elementRef.nativeElement,R=g.nodeName.toLowerCase();this._inputValueAccessor=l||g,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&G.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new P(d,s,a,o,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=R==="select",this._isTextarea=R==="textarea",this._isInFormField=!!H,this._isNativeSelect&&(this.controlType=g.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),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 t=this._elementRef.nativeElement;this._previousPlaceholder=e,e?t.setAttribute("placeholder",e):t.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){te.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,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.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)}};i.\u0275fac=function(t){return new(t||i)(r(x),r(p),r(V,10),r(z,8),r(q,8),r(O),r(ee,10),r(K),r(f),r(Z,8))},i.\u0275dir=E({type:i,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(t,s){t&1&&b("focus",function(){return s._focusChanged(!0)})("blur",function(){return s._focusChanged(!1)})("input",function(){return s._onInput()}),t&2&&(N("id",s.id)("disabled",s.disabled)("required",s.required),k("name",s.name||null)("readonly",s.readonly&&!s._isNativeSelect||null)("aria-invalid",s.empty&&s.required?null:s.errorState)("aria-required",s.required)("id",s.id),L("mat-input-server",s._isServer)("mat-mdc-form-field-textarea-control",s._isInFormField&&s._isTextarea)("mat-mdc-form-field-input-control",s._isInFormField)("mdc-text-field__input",s._isInFormField)("mat-mdc-native-select-inline",s._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:[D([{provide:U,useExisting:i}]),F]});let n=i;return n})(),Ce=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=m({type:i}),i.\u0275inj=u({imports:[w,C,C,W,w]});let n=i;return n})();export{we as a,Ce as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-PSFPSLKI.js b/frontend/server/modelsmith-build/browser/chunk-PSFPSLKI.js new file mode 100644 index 00000000..3be5f929 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-PSFPSLKI.js @@ -0,0 +1,2 @@ +import{b as ft,c as Zt,d as Yt,e as gt,r as Jt,s as te}from"./chunk-NT2MTW7W.js";import{$c as B,Ac as ut,Ae as Xt,Bb as H,C as _t,Cc as dt,Ce as ee,Dd as Vt,De as A,E as bt,Ea as C,Fa as v,Fe as J,G as M,Ga as wt,Ka as It,Kc as o,Lb as Ft,Lc as D,Mc as _,Oa as Dt,Qa as Q,Qb as Bt,Ra as Et,S as F,Sa as U,T as vt,Vb as Ot,Vc as b,Wb as Nt,Wc as d,Ya as jt,Zc as f,_ as l,_c as Z,a as p,aa as st,ab as y,ad as Y,b as u,bb as x,bc as Ut,bd as O,ca as s,cb as q,da as xt,dd as $t,ed as g,f as St,gb as Pt,ha as G,ib as Tt,j as k,ja as K,jb as W,k as Ct,kb as Rt,lb as ot,lc as Lt,ld as Qt,oc as zt,pa as kt,qa as yt,qb as ct,rb as lt,s as T,sb as mt,ub as I,ud as qt,ue as Kt,va as $,vb as Mt,vc as Gt,vd as Ht,wb as pt,wc as ht,x as R,xa as At,zc as X,ze as Wt}from"./chunk-NPZHNGVX.js";var ie=D({source:"[Core -> Script]",events:{"Call Script":o(),"Call Script Success":_(),"Call Script Failure":o(),"Fetch Script Status":_(),"Update Script Status":o(),"Fetch Script Status Success":o(),"Fetch Script Status Failure":o(),"Stop Script":_(),"Stop Script Success":_(),"Stop Script Failure":o(),"Get Current or Last Active Script Details":_(),"Get Current or Last Active Script Details Success":o(),"Get Current or Last Active Script Details Failure":o()}});var ne=d(g,i=>i.script.scriptStatus),re=d(g,i=>i.script.scriptDetails);var ae=(()=>{let t=class t{constructor(e){this.store=e,this.scriptStatus$=this.store.select(ne),this.scriptDetails$=this.store.select(re)}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(n){return new(n||t)(s(b))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var E=function(i){return i.SUCCESS="success",i.ERROR="error",i.INFO="info",i.WARNING="warning",i}(E||{});function ye(i,t){if(i&1){let j=Pt();y(0,"div",1)(1,"button",2),W("click",function(){kt(j);let n=ot();return yt(n.action())}),I(2),x()()}if(i&2){let j=ot();C(2),pt(" ",j.data.action," ")}}var Ae=["label"];function we(i,t){}var Ie=Math.pow(2,31)-1,N=class{constructor(t,j){this._overlayRef=j,this._afterDismissed=new k,this._afterOpened=new k,this._onAction=new k,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,Ie))}_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}},tt=new st("MatSnackBarData"),L=class{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}},De=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=K({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0});let i=t;return i})(),Ee=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=K({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0});let i=t;return i})(),je=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=K({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0});let i=t;return i})(),Pe=(()=>{let t=class t{constructor(e,n){this.snackBarRef=e,this.data=n}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}};t.\u0275fac=function(n){return new(n||t)(v(N),v(tt))},t.\u0275cmp=G({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[H],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(n,r){n&1&&(y(0,"div",0),I(1),x(),Q(2,ye,3,1,"div",1)),n&2&&(C(),pt(" ",r.data.message,` +`),C(),jt(r.hasAction?2:-1))},dependencies:[Kt,De,Ee,je],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0});let i=t;return i})(),Te={snackBarState:Gt("state",[ut("void, hidden",X({transform:"scale(0.8)",opacity:0})),ut("visible",X({transform:"scale(1)",opacity:1})),dt("* => visible",ht("150ms cubic-bezier(0, 0, 0.2, 1)")),dt("* => void, * => hidden",ht("75ms cubic-bezier(0.4, 0.0, 1, 1)",X({opacity:0})))])},Re=0,Me=(()=>{let t=class t extends Yt{constructor(e,n,r,a,c){super(),this._ngZone=e,this._elementRef=n,this._changeDetectorRef=r,this._platform=a,this.snackBarConfig=c,this._document=xt(Bt),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new k,this._onExit=new k,this._onEnter=new k,this._animationState="void",this._liveElementId=`mat-snack-bar-container-live-${Re++}`,this.attachDomPortal=h=>{this._assertNotAttached();let P=this._portalOutlet.attachDomPortal(h);return this._afterPortalAttached(),P},c.politeness==="assertive"&&!c.announcementMessage?this._live="assertive":c.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 a=this._onEnter;this._ngZone.run(()=>{a.next(),a.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(c=>e.classList.add(c)):e.classList.add(n)),this._exposeToModals();let r=this._label.nativeElement,a="mdc-snackbar__label";r.classList.toggle(a,!r.querySelector(`.${a}`))}_exposeToModals(){let e=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{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)})}};t.\u0275fac=function(n){return new(n||t)(v(It),v(At),v(Ft),v(Qt),v(L))},t.\u0275cmp=G({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,r){if(n&1&&(ct(gt,7),ct(Ae,7)),n&2){let a;lt(a=mt())&&(r._portalOutlet=a.first),lt(a=mt())&&(r._label=a.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(n,r){n&1&&Rt("@state.done",function(c){return r.onAnimationEnd(c)}),n&2&&Tt("@state",r._animationState)},standalone:!0,features:[Dt,H],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),Q(4,we,0,0,"ng-template",4),x(),q(5,"div"),x()()),n&2&&(C(5),Et("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[gt],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);border-radius:var(--mdc-snackbar-container-shape);background-color:var(--mdc-snackbar-container-color)}.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);font-size:var(--mdc-snackbar-supporting-text-size);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-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){color:var(--mat-snack-bar-button-color);--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}"],encapsulation:2,data:{animation:[Te.snackBarState]}});let i=t;return i})();function Fe(){return new L}var Be=new st("mat-snack-bar-default-options",{providedIn:"root",factory:Fe}),se=(()=>{let t=class t{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,a,c,h){this._overlay=e,this._live=n,this._injector=r,this._breakpointObserver=a,this._parentSnackBar=c,this._defaultConfig=h,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=Pe,this.snackBarContainerComponent=Me,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 a=p(p({},this._defaultConfig),r);return a.data={message:e,action:n},a.announcementMessage===e&&(a.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,a)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,n){let r=n&&n.viewContainerRef&&n.viewContainerRef.injector,a=$.create({parent:r||this._injector,providers:[{provide:L,useValue:n}]}),c=new ft(this.snackBarContainerComponent,n.viewContainerRef,a),h=e.attach(c);return h.instance.snackBarConfig=n,h.instance}_attach(e,n){let r=p(p(p({},new L),this._defaultConfig),n),a=this._createOverlay(r),c=this._attachSnackBarContainer(a,r),h=new N(c,a);if(e instanceof wt){let P=new Zt(e,null,{$implicit:r.data,snackBarRef:h});h.instance=c.attachTemplatePortal(P)}else{let P=this._createInjector(r,h),ve=new ft(e,void 0,P),xe=c.attachComponentPortal(ve);h.instance=xe.instance}return this._breakpointObserver.observe(Ht.HandsetPortrait).pipe(vt(a.detachments())).subscribe(P=>{a.overlayElement.classList.toggle(this.handsetCssClass,P.matches)}),r.announcementMessage&&c._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(h,r),this._openedSnackBarRef=h,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 Jt;n.direction=e.direction;let r=this._overlay.position().global(),a=e.direction==="rtl",c=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!a||e.horizontalPosition==="end"&&a,h=!c&&e.horizontalPosition!=="center";return c?r.left("0"):h?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 $.create({parent:r||this._injector,providers:[{provide:N,useValue:n},{provide:tt,useValue:e.data}]})}};t.\u0275fac=function(n){return new(n||t)(s(te),s(Vt),s($),s(qt),s(t,12),s(Be))},t.\u0275prov=l({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();function Oe(i,t){i&1&&q(0,"mat-icon",7)}function Ne(i,t){i&1&&q(0,"mat-icon",8)}function Ue(i,t){i&1&&(y(0,"mat-icon",9),I(1,"error_outline"),x())}function Le(i,t){i&1&&(y(0,"mat-icon",10),I(1,"warning"),x())}var ce=(()=>{let t=class t{constructor(e,n){this.bannerRef=e,this.data=n,this.NotificationTypes=E}};t.\u0275fac=function(n){return new(n||t)(v(N),v(tt))},t.\u0275cmp=G({type:t,selectors:[["ms-banner"]],standalone:!0,features:[H],decls:13,vars:6,consts:[[1,"banner"],[1,"banner-left-container"],[1,"banner-content",3,"ngSwitch"],[3,"ngSwitchCase"],[1,"banner-middle-container"],[1,"banner-right-container"],[1,"mat-gray",3,"click"],["fontSet","ms","fontIcon","icon-CheckCircle",1,"mat-success"],["fontSet","ms","fontIcon","icon-Info",1,"mat-primary"],[1,"mat-error"],[1,"mat-warn"]],template:function(n,r){n&1&&(y(0,"div",0)(1,"div",1)(2,"div",2),Q(3,Oe,1,0,"ng-template",3)(4,Ne,1,0,"ng-template",3)(5,Ue,2,0,"ng-template",3)(6,Le,2,0,"ng-template",3),x()(),y(7,"div",4)(8,"div"),I(9),x()(),y(10,"div",5)(11,"mat-icon",6),W("click",function(){return r.bannerRef.dismiss()}),I(12,"clear"),x()()()),n&2&&(C(2),U("ngSwitch",r.data.notificationType),C(),U("ngSwitchCase",r.NotificationTypes.SUCCESS),C(),U("ngSwitchCase",r.NotificationTypes.INFO),C(),U("ngSwitchCase",r.NotificationTypes.ERROR),C(),U("ngSwitchCase",r.NotificationTypes.WARNING),C(3),Mt(r.data.message))},dependencies:[Ut,Ot,Nt,Xt,Wt],styles:[".banner[_ngcontent-%COMP%]{display:flex;width:100%}.banner[_ngcontent-%COMP%] .banner-left-container[_ngcontent-%COMP%]{flex:0 1 5%}.banner[_ngcontent-%COMP%] .banner-middle-container[_ngcontent-%COMP%]{flex:0 1 90%;margin:2px 10px}.banner[_ngcontent-%COMP%] .banner-right-container[_ngcontent-%COMP%]{flex:0 1 5%}.banner[_ngcontent-%COMP%] .banner-right-container[_ngcontent-%COMP%]:hover{cursor:pointer}"]});let i=t;return i})();var ze=5e3,le=5e3,Ge=1e4,me=(()=>{let t=class t{constructor(e){this.snackbar=e}showSuccess(e){this.showBanner(e,E.SUCCESS,ze,"notification-panel-success")}showInfo(e){this.showBanner(e,E.INFO,le,"notification-panel-info")}showError(e){this.showBanner(e,E.ERROR,Ge,"notification-panel-error")}showWarning(e){this.showBanner(e,E.WARNING,le,"notification-panel-warning")}showBanner(e,n,r,a){this.snackbar.openFromComponent(ce,{duration:r,data:{message:e,notificationType:n},panelClass:a})}};t.\u0275fac=function(n){return new(n||t)(s(se))},t.\u0275prov=l({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var m=D({source:"[Core -> Charts]",events:{"Get Current Pruning Chart Data":_(),"Get Current Pruning Chart Data Success":o(),"Get Current Pruning Chart Data Failure":o(),"Get Current Quantization Chart Data":_(),"Get Current Quantization Chart Data Success":o(),"Get Current Quantization Chart Data Failure":o(),"Get Current Machine Unlearning Chart Data":_(),"Get Current Machine Unlearning Chart Data Success":o(),"Get Current Machine Unlearning Chart Data Failure":o(),"Get Chart Configuration Settings":o(),"Get Chart Configuration Settings Success":o(),"Get Chart Configuration Settings Failure":o()}});var et=class extends A{constructor(t){let j=`type=${t.join(",")}`;super(`chart-configuration-settings?${j}`,void 0,void 0,!1)}};var it=class extends A{constructor(){super("current-machine-unlearning-chart-data",void 0,void 0,!1)}};var nt=class extends A{constructor(){super("current-pruning-chart-data",void 0,void 0,!1)}};var rt=class extends A{constructor(){super("current-quantization-chart-data",void 0,void 0,!1)}};var on=(()=>{let t=class t{constructor(e,n){this.apiClient=e,this.actions$=n,this.getCurrentPruningChartData$=B(()=>this.actions$.pipe(O(m.getCurrentPruningChartData),F(()=>this.apiClient.serviceCall(new nt).pipe(R(r=>m.getCurrentPruningChartDataSuccess({pruningProgress:r})),M(r=>T(m.getCurrentPruningChartDataFailure({error:r}))))))),this.getCurrentQuantizationChartData$=B(()=>this.actions$.pipe(O(m.getCurrentQuantizationChartData),F(()=>this.apiClient.serviceCall(new rt).pipe(R(r=>m.getCurrentQuantizationChartDataSuccess({quantizationProgress:r})),M(r=>T(m.getCurrentQuantizationChartDataFailure({error:r}))))))),this.getCurrentMachineUnlearningChartData$=B(()=>this.actions$.pipe(O(m.getCurrentMachineUnlearningChartData),F(()=>this.apiClient.serviceCall(new it).pipe(R(r=>m.getCurrentMachineUnlearningChartDataSuccess({machineUnlearningProgress:r})),M(r=>T(m.getCurrentMachineUnlearningChartDataFailure({error:r}))))))),this.getChartConfigurationSettings$=B(()=>this.actions$.pipe(O(m.getChartConfigurationSettings),F(r=>this.apiClient.serviceCall(new et(r.chartTypes)).pipe(R(a=>m.getChartConfigurationSettingsSuccess({settings:a})),M(a=>T(m.getChartConfigurationSettingsFailure({error:a})))))))}};t.\u0275fac=function(n){return new(n||t)(s(J),s(Y))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var qe={pruningProgress:[],machineUnlearningProgress:void 0,quantizationProgress:void 0,settings:{},error:null},pn=Z(qe,f(m.getCurrentPruningChartDataSuccess,(i,{pruningProgress:t})=>u(p({},i),{pruningProgress:t,machineUnlearningProgress:void 0,quantizationProgress:void 0,error:null})),f(m.getCurrentPruningChartDataFailure,(i,{error:t})=>u(p({},i),{pruningProgress:[],error:t})),f(m.getCurrentQuantizationChartDataSuccess,(i,{quantizationProgress:t})=>u(p({},i),{pruningProgress:[],quantizationProgress:t,machineUnlearningProgress:void 0,error:null})),f(m.getCurrentQuantizationChartDataFailure,(i,{error:t})=>u(p({},i),{quantizationProgress:void 0,error:t})),f(m.getCurrentMachineUnlearningChartDataSuccess,(i,{machineUnlearningProgress:t})=>u(p({},i),{pruningProgress:[],quantizationProgress:void 0,machineUnlearningProgress:t,error:null})),f(m.getCurrentQuantizationChartDataFailure,(i,{error:t})=>u(p({},i),{quantizationProgress:void 0,error:t})),f(m.getCurrentPruningChartDataFailure,(i,{error:t})=>u(p({},i),{pruningProgress:[],error:t})),f(m.getChartConfigurationSettingsSuccess,(i,{settings:t})=>u(p({},i),{settings:p(p({},i.settings),t),error:null})),f(m.getChartConfigurationSettingsFailure,(i,{error:t})=>u(p({},i),{error:t})));var pe=d(g,i=>i.charts.pruningProgress),he=d(g,i=>i.charts.quantizationProgress),ue=d(g,i=>i.charts.machineUnlearningProgress),de=d(g,i=>i.charts.settings);var yn=(()=>{let t=class t{constructor(e){this.store=e,this.pruningProgress=this.store.select(pe),this.quantizationProgress$=this.store.select(he),this.machineUnlearningProgress$=this.store.select(ue),this.settings$=this.store.select(de)}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(n){return new(n||t)(s(b))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var fe=D({source:"[Core -> File]",events:{"Upload File":o(),"Upload File Success":o(),"Upload File Failure":o(),"Upload File and Call Script":o()}});var ge=(()=>{let t=class t{constructor(e){this.store=e}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(n){return new(n||t)(s(b))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var jn=(()=>{let t=class t{constructor(e,n){this.bannerService=e,this.fileFacadeService=n,this._fileSubject=new Ct(null)}get isFileLoaded(){return!!this._fileSubject.value}get file$(){return this._fileSubject.asObservable()}set file(e){this._fileSubject.next(e)}get file(){return this._fileSubject.value}clearFile(){this._fileSubject.next(null)}uploadFile(){if(!this.file){this.bannerService.showError("No file to upload.");return}this.fileFacadeService.dispatch(fe.uploadFile({file:this.file}))}};t.\u0275fac=function(n){return new(n||t)(s(me),s(ge))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var Bn=(()=>{let t=class t{constructor(e){this.router=e,this.history=[]}trackNavigationHistory(){this.addInitialUrl(),this.router.events.pipe(bt(e=>e instanceof Lt)).subscribe(e=>{this.history.push(e.urlAfterRedirects)})}addInitialUrl(){let e=this.router.url;this.history.push(e)}goToPreviousPage(e=$t.MODEL_COMPRESSION.ROOT){let n=this.getPreviousUrl();n==="/"?this.router.navigateByUrl(`/${e}`):this.router.navigateByUrl(n)}getPreviousUrl(){return this.history[this.history.length-2]||"/"}};t.\u0275fac=function(n){return new(n||t)(s(zt))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var Se=d(g,i=>i.parameters);var Gn=(()=>{let t=class t{constructor(e){this.store=e,this.parameters$=this.store.select(Se)}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(n){return new(n||t)(s(b))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var Ce=d(g,i=>i.statistics.statistics);var _e=(()=>{let t=class t{constructor(e){this.store=e,this.statistics$=this.store.select(Ce)}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(n){return new(n||t)(s(b))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var be=d(g,i=>i.terminal.messages);var Yn=(()=>{let t=class t{constructor(e){this.store=e,this.messages$=this.store.select(be)}dispatch(e){this.store.dispatch(e)}};t.\u0275fac=function(n){return new(n||t)(s(b))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var w=D({source:"[Core -> Statistics]",events:{"Get Statistics":_(),"Get Statistics Success":o(),"Get Statistics Failure":o(),"Update Statistics":o()}});var at=class extends A{constructor(){super("statistics",void 0,void 0,!1)}};var lr=(()=>{let t=class t{constructor(e,n){this.apiClient=e,this.actions$=n,this.getStatistics=B(()=>this.actions$.pipe(O(w.getStatistics),F(()=>this.apiClient.serviceCall(new at).pipe(R(r=>w.getStatisticsSuccess({statistics:r})),M(r=>T(w.getStatisticsFailure({error:r})))))))}};t.\u0275fac=function(n){return new(n||t)(s(J),s(Y))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();var Ke={statistics:{},error:null},ur=Z(Ke,f(w.getStatisticsSuccess,(i,{statistics:t})=>u(p({},i),{statistics:t,error:null})),f(w.getStatisticsFailure,(i,{error:t})=>u(p({},i),{error:t})),f(w.updateStatistics,(i,{statistics:t})=>u(p({},i),{statistics:t,error:null})));var z=function(i){return i.TERMINAL="terminal",i.SCRIPT_STATUS="script_status",i.STATISTICS="statistics",i.CHARTS_PREFIX="chart_",i}(z||{}),We=function(i){return i.UPDATE_TESTING="chart_updateTesting",i.UPDATE_LATEST_VALUE="chart_updateLatestValue",i.ENHANCE_SINGLE_PHASE_X_AXIS="chart_enhanceSinglePhaseXAxis",i}(We||{});var jr=(()=>{let t=class t{handleBeforeUnload(){this.close()}constructor(e,n){this.scriptFacadeService=e,this.statisticsFacadeService=n,this.terminalMessagesSubject=new k,this.chartsMessagesSubject=new k,this.connect()}connect(){this.close(),this.socket=new WebSocket(ee.websocketUrl),this.socket.onopen=()=>{console.log("WebSocket connected!")},this.socket.onmessage=e=>St(this,null,function*(){let n=JSON.parse(e.data),{topic:r="",data:a}=n;switch(r){case z.TERMINAL:this.terminalMessagesSubject.next(a);break;case z.SCRIPT_STATUS:this.scriptFacadeService.dispatch(ie.updateScriptStatus({status:a}));break;case z.STATISTICS:let{statistics:c}=a||{};this.statisticsFacadeService.dispatch(w.updateStatistics({statistics:c}));break;default:r.startsWith(z.CHARTS_PREFIX)?this.chartsMessagesSubject.next({topic:r,data:a}):console.warn("Unknown message type:",r)}}),this.socket.onerror=e=>{console.error("WebSocket Error:",e)},this.socket.onclose=e=>{e.wasClean?console.log(`Closed cleanly, code=${e.code}, reason=${e.reason}`):console.error("Connection died"),_t(5e3).subscribe(()=>this.connect())}}get terminalMessages$(){return this.terminalMessagesSubject.asObservable()}get chartsMessages$(){return this.chartsMessagesSubject.asObservable()}send(e){this.socket&&this.socket.readyState===this.socket.OPEN&&this.socket.send(e)}close(){this.socket&&this.socket.readyState!==this.socket.CLOSED&&this.socket.close()}};t.\u0275fac=function(n){return new(n||t)(s(ae),s(_e))},t.\u0275prov=l({token:t,factory:t.\u0275fac});let i=t;return i})();export{ie as a,ae as b,E as c,me as d,m as e,on as f,pn as g,yn as h,ge as i,fe as j,jn as k,Bn as l,Gn as m,_e as n,Yn as o,w as p,lr as q,ur as r,We as s,jr as t}; diff --git a/frontend/server/modelsmith-build/browser/chunk-PTRGCVO5.js b/frontend/server/modelsmith-build/browser/chunk-PTRGCVO5.js deleted file mode 100644 index 5ab33032..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-PTRGCVO5.js +++ /dev/null @@ -1 +0,0 @@ -import{a as lt,b as st,c as pt}from"./chunk-MVEKSYQT.js";import{a as mt}from"./chunk-2E3XMRVQ.js";import{a as le}from"./chunk-7HZCFN6L.js";import{b as nt,c as at}from"./chunk-JZLUCDH7.js";import"./chunk-OWZJXMSU.js";import{a as me}from"./chunk-VN6ZKIV6.js";import{a as w,c as V}from"./chunk-4KWEJN4U.js";import{a as ot,i as rt}from"./chunk-NO2PD4LU.js";import{b as it}from"./chunk-MPLQ54VQ.js";import{$a as Oe,A as _e,Aa as u,Ad as G,Bc as Be,Bd as Ze,C as ge,Ca as Fe,Cc as $e,Cd as c,Da as ve,Dd as qe,Ea as C,G as Q,H as Te,Hc as oe,Ic as Qe,Ja as Ne,Jd as y,Ka as Ie,Kd as Je,La as Ae,Ma as Pe,Md as D,Na as l,Nd as We,Oa as j,P as z,Pa as x,Pd as Xe,S as H,T as I,Ta as Z,U as Y,Ua as be,Y as Se,Ya as A,Z as he,Za as E,Zb as ye,Zc as re,Zd as K,_ as ue,_a as Ee,_b as De,_c as ze,_d as et,a as Ce,b as Me,dc as Ke,ec as W,fb as R,fc as Ve,gb as q,hb as Ge,he as ae,ib as we,ie as tt,ja as r,jb as xe,ka as p,kc as X,lc as v,m as F,mb as Re,nb as ke,nc as ee,ob as Le,oc as k,pb as J,pc as L,qa as d,qc as B,rd as P,s as N,sa as n,sd as f,tc as Ue,td as He,uc as je,ud as ne,vc as te,w as b,wa as m,wd as O,xa as a,xc as ie,ya as g,z as fe,za as h,zd as Ye}from"./chunk-AIAH5BT5.js";function Mt(o,e){o&1&&g(0,"mat-icon",13)}function _t(o,e){if(o&1&&(m(0,"mat-option",11),l(1),d(2,Mt,1,0,"mat-icon",12),a()),o&2){let t=e.$implicit;n("value",t.name),r(),x(" ",t.name," "),r(),n("ngIf",!t.isTrained)}}function Tt(o,e){o&1&&(m(0,"mat-option",14),l(1,"No results found"),a())}function St(o,e){if(o&1&&(h(0),d(1,_t,3,3,"mat-option",9)(2,Tt,2,0,"mat-option",10),u()),o&2){let t=e.ngIf,i=C();r(),n("ngForOf",t)("ngForTrackBy",i.trackByModel),r(),n("ngIf",t.length===0)}}var M,U=(M=class{ngOnChanges(e){e.algorithmType&&e.algorithmType.currentValue&&this.configureModels(e.algorithmType.currentValue)}get parentFormGroup(){return this.controlContainer.control}get modelFormGroup(){return this.parentFormGroup.get(this.controlKey)}get modelControl(){return this.modelFormGroup?.get(this.MODEL_CONTROL_NAME)}constructor(e,t,i,s){this.controlContainer=e,this.modelsFacadeService=t,this.scriptFacadeService=i,this.pageRunningScriptSpiningIndicatorService=s,this.controlKey="",this.PageKey=He,this.RoutesList=De,this.searchModel=new B,this.models=[],this.MODEL_CONTROL_NAME="model"}ngOnInit(){this.initializeForm(),this.listenToScriptStateChanges(),this.listenToSearchModelValueChanges(),this.configureModels(this.algorithmType)}configureModels(e){if(e)switch(this.getModelsByTypeSubscription?.unsubscribe(),this.getModelsByTypeSubscription=this.subscribeToModelsListChanges(e),this.modelsFacadeService.dispatch(w.getModelsList({algorithmType:e})),e){case c.PRUNING:{this.modelsFacadeService.dispatch(w.getCurrentOrPreviousSelectedModel({algorithmType:y.PRUNING_TRAIN}));break}case c.QUANTIZATION:{this.modelsFacadeService.dispatch(w.getCurrentOrPreviousSelectedModel({algorithmType:y.QUANTIZATION_TRAIN}));break}case c.MACHINE_UNLEARNING:{this.modelsFacadeService.dispatch(w.getCurrentOrPreviousSelectedModel({algorithmType:y.MACHINE_UNLEARNING_TRAIN}));break}}}listenToCurrentModelChanges(){this.modelsFacadeService.currentModel$.pipe(f(this)).subscribe(e=>{if(G(e))return;this.models.find(i=>i.name===e)&&this.modelControl?.patchValue(e)})}subscribeToModelsListChanges(e){let t=!1;return this.modelsFacadeService.getModelsByType(e).pipe(b(i=>!Ze(i)),N(i=>[...i].sort((s,de)=>Number(de.isTrained)-Number(s.isTrained)))).subscribe(i=>{this.models=i,this.searchModel.setValue(""),t||(this.listenToCurrentModelChanges(),t=!0)})}initializeForm(){this.parentFormGroup.addControl(this.controlKey,new L({[this.MODEL_CONTROL_NAME]:new B("",X.required)}))}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(f(this)).subscribe(e=>{O(e)?this.modelFormGroup.disable():this.modelFormGroup.enable()})}listenToSearchModelValueChanges(){this.filteredModels=this.searchModel.valueChanges.pipe(f(this),Te(""),N(e=>this.filterModels(e)))}filterModels(e){let t=e.toLowerCase();return this.models.filter(i=>i.name.toLowerCase().includes(t))}trackByModel(e,t){return t.name}ngOnDestroy(){this.parentFormGroup.removeControl(this.controlKey)}},M.\u0275fac=function(t){return new(t||M)(p(v),p(V),p(D),p(We))},M.\u0275cmp=I({type:M,selectors:[["ms-panel-model-training"]],inputs:{controlKey:"controlKey",algorithmType:"algorithmType"},standalone:!0,features:[Z([],[{provide:v,useFactory:()=>H(v,{skipSelf:!0})}]),Se,be],decls:12,vars:5,consts:[[1,"ms-card","model-card"],[1,"panel-title-wrapper"],[1,"heading-sub-section-title"],[1,"form-field-container",3,"formGroupName"],["appearance","outline","subscriptSizing","dynamic"],["formControlName","model","placeholder","Select a model..."],["label","Predefined Models"],[3,"formControl"],[4,"ngIf"],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],["disabled","",4,"ngIf"],[3,"value"],["class","mat-error","fontSet","ms","fontIcon","icon-X",4,"ngIf"],["fontSet","ms","fontIcon","icon-X",1,"mat-error"],["disabled",""]],template:function(t,i){t&1&&(m(0,"mat-card",0)(1,"div",1)(2,"div",2),l(3,"Model"),a()(),m(4,"div",3)(5,"mat-form-field",4)(6,"mat-select",5)(7,"mat-optgroup",6)(8,"mat-option"),g(9,"ngx-mat-select-search",7),a(),d(10,St,3,3,"ng-container",8),A(11,"async"),a()()()()()),t&2&&(r(4),n("formGroupName",i.controlKey),r(5),n("formControl",i.searchModel),r(),n("ngIf",E(11,3,i.filteredModels)))},dependencies:[Be,ee,k,Ue,ie,te,et,K,ze,re,tt,ae,W,Ke,Qe,oe,J,R,q,Re,at,nt,Xe],styles:[".panel-title-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:12px}.panel-title-wrapper[_ngcontent-%COMP%] .train-models[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}"]}),M);U=F([P()],U);function It(o,e){if(o&1&&(m(0,"mat-option",7),l(1),a()),o&2){let t=e.$implicit;n("value",t.key),r(),x(" ",t.value," ")}}var _,se=(_=class{get parentFormGroup(){return this.controlContainer.control}get algorithmTypeFormGroup(){return this.parentFormGroup.get(this.controlKey)}get algorithmTypeFormControl(){return this.algorithmTypeFormGroup.get(this.ALGORITHM_TYPE_CONTROL_NAME)}constructor(e,t){this.controlContainer=e,this.scriptFacadeService=t,this.controlKey="",this.algorithmTypesOptions=qe.filter(i=>i.key!==c.TRAIN&&i.key!==c.AWQ),this.ALGORITHM_TYPE_CONTROL_NAME="algorithmType"}ngOnInit(){this.initForm(),this.loadInitialData(),this.listenToScriptStateChanges()}loadInitialData(){this.scriptFacadeService.scriptDetails$.pipe(Q(1),_e(1),b(e=>!G(e?.algKey)),N(e=>e.algKey)).subscribe(e=>{switch(e){case y.PRUNING_TRAIN:{this.algorithmTypeFormControl.patchValue(c.PRUNING);break}case y.MACHINE_UNLEARNING_TRAIN:{this.algorithmTypeFormControl.patchValue(c.MACHINE_UNLEARNING);break}case y.QUANTIZATION_TRAIN:{this.algorithmTypeFormControl.patchValue(c.QUANTIZATION);break}default:this.algorithmTypeFormControl.patchValue(c.PRUNING)}}),this.scriptFacadeService.dispatch(ne.getCurrentOrLastActiveScriptDetails())}initForm(){this.parentFormGroup.addControl(this.controlKey,new L({[this.ALGORITHM_TYPE_CONTROL_NAME]:new B(c.PRUNING,X.required)}))}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(f(this)).subscribe(e=>{O(e)?this.algorithmTypeFormGroup.disable():this.algorithmTypeFormGroup.enable()})}trackByAlgorithmType(e,t){return t.key}},_.\u0275fac=function(t){return new(t||_)(p(v),p(D))},_.\u0275cmp=I({type:_,selectors:[["ms-panel-algorithm-type-for-training"]],inputs:{controlKey:"controlKey"},features:[Z([],[{provide:v,useFactory:()=>H(v,{skipSelf:!0})}])],decls:8,vars:4,consts:[[1,"ms-card","parameters-card"],[1,"heading-sub-section-title"],[3,"formGroupName"],[1,"form-field-container"],["appearance","outline","subscriptSizing","dynamic"],[3,"formControlName"],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],[3,"value"]],template:function(t,i){t&1&&(m(0,"mat-card",0)(1,"p",1),l(2,"Algorithm Type"),a(),h(3,2),m(4,"div",3)(5,"mat-form-field",4)(6,"mat-select",5),d(7,It,2,2,"mat-option",6),a()()(),u(),a()),t&2&&(r(3),n("formGroupName",i.controlKey),r(3),n("formControlName",i.ALGORITHM_TYPE_CONTROL_NAME),r(),n("ngForOf",i.algorithmTypesOptions)("ngForTrackBy",i.trackByAlgorithmType))},dependencies:[R,K,re,ae,W,ee,k,ie,te]}),_);se=F([P()],se);function Pt(o,e){if(o&1&&(h(0),l(1),A(2,"adaptiveFileSize"),u()),o&2){let t=C().$implicit;r(),j(E(2,1,t.value))}}function bt(o,e){if(o&1&&(h(0),l(1),A(2,"date"),u()),o&2){let t=C().$implicit;r(),j(Ee(2,1,t.value,"medium"))}}function Et(o,e){if(o&1&&(h(0),l(1),A(2,"readableDuration"),u()),o&2){let t=C().$implicit;r(),j(E(2,1,t.value))}}function Ot(o,e){if(o&1&&(h(0),l(1),u()),o&2){let t=C().$implicit;r(),j(t.value)}}function Gt(o,e){o&1&&(m(0,"div",15),g(1,"mat-divider"),a())}function wt(o,e){if(o&1&&(m(0,"div")(1,"div",8)(2,"div",9),l(3),A(4,"parametersLabel"),a(),m(5,"div",10),h(6,11),d(7,Pt,3,3,"ng-container",12)(8,bt,3,4,"ng-container",12)(9,Et,3,3,"ng-container",12)(10,Ot,2,1,"ng-container",13),u(),a()(),d(11,Gt,2,0,"div",14),a()),o&2){let t=e.$implicit,i=e.last;r(3),x("",E(4,6,t.key),":"),r(3),n("ngSwitch",t.key),r(),n("ngSwitchCase","file_size_bytes"),r(),n("ngSwitchCase","creation_date"),r(),n("ngSwitchCase","training_duration_seconds"),r(2),n("ngIf",!i)}}function xt(o,e){if(o&1&&(m(0,"div",6),d(1,wt,12,8,"div",7),a()),o&2){let t=C().$implicit;r(),n("ngForOf",t)}}function Rt(o,e){if(o&1&&(m(0,"div",4),d(1,xt,2,1,"div",5),a()),o&2){let t=e.$implicit;C();let i=Pe(6);r(),n("ngIf",t.length>0)("ngIfElse",i)}}function kt(o,e){o&1&&g(0,"ms-empty-state",16)}var T,pe=(T=class{constructor(e){this.modelsFacadeService=e,this.metadata={}}ngOnInit(){this.modelsFacadeService.modelMetadata$.pipe(Q(1),f(this)).subscribe(e=>{this.metadata=e})}},T.\u0275fac=function(t){return new(t||T)(p(V))},T.\u0275cmp=I({type:T,selectors:[["ms-panel-model-metadata"]],decls:7,vars:3,consts:[["noMetadata",""],[1,"ms-card","metadata-card"],[1,"heading-sub-section-title"],["class","metadata-wrapper",4,"ngIf"],[1,"metadata-wrapper"],["class","key-value-container single",4,"ngIf","ngIfElse"],[1,"key-value-container","single"],[4,"ngFor","ngForOf"],[1,"key-value-pair","space-between"],[1,"key-value-key"],[1,"key-value-value"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","pt-2",4,"ngIf"],[1,"pt-2"],["title","No metadata available"]],template:function(t,i){t&1&&(m(0,"mat-card",1)(1,"p",2),l(2,"Model Training Information"),a(),d(3,Rt,2,2,"div",3),A(4,"keyvalue"),d(5,kt,1,0,"ng-template",null,0,Oe),a()),t&2&&(r(3),n("ngIf",E(4,1,i.metadata)))},dependencies:[R,q,Ge,we,xe,Ve,K,mt,ke,Le,lt,pt,st],styles:[".metadata-wrapper[_ngcontent-%COMP%]{max-height:300px;overflow:auto;padding-right:20px}"]}),T);pe=F([P()],pe);var Dt=["panelParameters"],S,ce=(S=class{constructor(e,t,i,s){this.navigationService=e,this.scriptFacadeService=t,this.snackbarService=i,this.modelsFacadeService=s,this.form=new L({}),this.isScriptActive=!1,this.selectedAlgorithmType=c.PRUNING,this.selectedAlgorithmKey=y.PRUNING_TRAIN}ngOnInit(){this.listenToAlgorithmPanelChanges(),this.listenToScriptStateChanges(),this.listenToFormChangesToLoadModelMetadata()}listenToAlgorithmPanelChanges(){this.form.valueChanges.pipe(fe(50),N(()=>{let e=this.form.getRawValue();return e.algorithmTypeGroup&&e.algorithmTypeGroup.algorithmType}),ge(),b(e=>!!e),f(this)).subscribe(e=>{this.selectedAlgorithmType=e,this.selectedAlgorithmKey=Je[e]})}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(f(this)).subscribe(e=>{this.isScriptActive=O(e),O(e)?this.form.disable():this.form.enable()})}listenToFormChangesToLoadModelMetadata(){this.form.valueChanges.pipe(fe(50),N(e=>{let t=e.algorithmTypeGroup?.algorithmType,i=e.model?.model;return{algorithmType:t,model:i}}),ge((e,t)=>JSON.stringify(e)===JSON.stringify(t)),b(({algorithmType:e,model:t})=>!G(e)&&!G(t)),f(this)).subscribe(({algorithmType:e,model:t})=>{this.modelsFacadeService.dispatch(w.getModelMetadata({algorithmType:e,modelName:t}))})}submit(){if(Ye(this.selectedAlgorithmType)){this.snackbarService.showError("Select an algorithm before running a script.");return}let{model:e}=this.form.getRawValue(),{model:t}=e,i={alg:this.selectedAlgorithmKey,params:Me(Ce({},this.panelParametersComponent.parametersFormatted),{arch:t})};this.scriptFacadeService.dispatch(ne.callScript({configs:i}))}},S.\u0275fac=function(t){return new(t||S)(p(rt),p(D),p(ot),p(V))},S.\u0275cmp=I({type:S,selectors:[["ms-model-training"]],viewQuery:function(t,i){if(t&1&&Ne(Dt,5),t&2){let s;Ie(s=Ae())&&(i.panelParametersComponent=s.first)}},decls:17,vars:4,consts:[["panelParameters",""],[1,"heading-primary-title","title"],[1,"page-wrapper"],[1,"left",3,"formGroup"],["controlKey","algorithmTypeGroup"],["controlKey","model",3,"algorithmType"],["controlKey","params",3,"algorithm"],["mat-raised-button","","color","primary",3,"click","disabled"],["mat-stroked-button","","color","primary",1,"ml-2",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],[1,"right"]],template:function(t,i){if(t&1){let s=Fe();m(0,"p",1),l(1,"Model Training"),a(),m(2,"div",2)(3,"div",3),g(4,"ms-panel-algorithm-type-for-training",4)(5,"ms-panel-model-training",5)(6,"ms-panel-model-metadata")(7,"ms-panel-parameters",6,0),m(9,"div")(10,"button",7),ve("click",function(){return he(s),ue(i.submit())}),l(11," Run "),a(),m(12,"button",8),ve("click",function(){return he(s),ue(i.navigationService.goToPreviousPage())}),g(13,"mat-icon",9),l(14," Go back "),a()()(),m(15,"div",10),g(16,"ms-terminal"),a()()}t&2&&(r(3),n("formGroup",i.form),r(2),n("algorithmType",i.selectedAlgorithmType),r(2),n("algorithm",i.selectedAlgorithmKey),r(3),n("disabled",i.isScriptActive||i.form.invalid))},dependencies:[$e,oe,k,je,me,U,le,se,pe],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),S);ce=F([P()],ce);var Kt=[{path:"",component:ce}],ht=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=z({imports:[ye.forChild(Kt),ye]});let o=e;return o})();var go=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=z({imports:[J,it,ht,me,U,le]});let o=e;return o})();export{go as ModelTrainingModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-QBB4CRI5.js b/frontend/server/modelsmith-build/browser/chunk-QBB4CRI5.js new file mode 100644 index 00000000..56b2f98e --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-QBB4CRI5.js @@ -0,0 +1,4 @@ +import{a as C,b as E,c as K,d as _}from"./chunk-TTPGYBAP.js";import{a as q,e as O,f as J}from"./chunk-QVZ2CSJP.js";import"./chunk-WHP5P3DQ.js";import"./chunk-SMKHMGDE.js";import{b as $,i as U,k as b}from"./chunk-W4U3FJPJ.js";import"./chunk-2FJ2YO2M.js";import{a as Z,b as X}from"./chunk-PSFPSLKI.js";import{a as W,b as Y}from"./chunk-GMIVG7ET.js";import"./chunk-NT2MTW7W.js";import"./chunk-HG2O7P4S.js";import{$ as L,Ae as V,Cb as k,Ea as d,Fa as p,Sa as u,_ as Q,ab as i,bb as o,bc as F,ca as B,cb as f,dd as M,ha as h,ia as j,jb as c,mc as S,nc as H,oc as g,p as x,sc as G,ub as r,ze as T}from"./chunk-NPZHNGVX.js";var s={PRETRAINED_MODEL:"pretrained-model",PRUNING_TIME:"pruning-time",PTQ_TIME:"ptq-time",SIMILAR_ACCURACY:"similar-accuracy",HIGHER_ACCURACY:"higher-accuracy",RECOMMENDED_BASIC_PTQ:"recommended-basic-ptq",RECOMMENDED_BRECQ:"recommended-brecq",RECOMMENDED_GRASP:"recommended-grasp",RECOMMENDED_ITERATIVE:"recommended-iterative",RECOMMENDED_ITERATIVE_ONE_SHOT:"recommended-iterative-one-shot",RECOMMENDED_MINMAX:"recommended-minmax"};var ue=()=>["Yes","No"],ee=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.RECOMMENDED_BASIC_PTQ],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.RECOMMENDED_BRECQ],{relativeTo:this.route.parent})}goToPreviousPage(){this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-higher-accuracy"]],decls:14,vars:3,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you need relatively higher accuracy?"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Post-training quantization "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(6," Short PTQ time "),o()(),i(7,"ms-card-selector",3),c("selectedOption",function(v){return t.trackSelection(v)}),o(),i(8,"div",4)(9,"button",5),c("click",function(){return t.goToPreviousPage()}),f(10,"mat-icon",6),r(11," Previous "),o(),i(12,"button",7),c("click",function(){return t.handleSelection()}),r(13,"Next"),o()()),n&2&&(d(7),u("options",k(2,ue)),d(5),u("disabled",!t.selectedOption))},dependencies:[_,T,C,E]});let l=e;return l})();var he=()=>["Yes","No"],te=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.PRUNING_TIME],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-pretrained-model"]],decls:6,vars:3,consts:[[1,"heading-primary-title"],[3,"selectedOption","options"],[1,"mt-4"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you have a pre-trained model?"),o(),i(2,"ms-card-selector",1),c("selectedOption",function(v){return t.trackSelection(v)}),o(),i(3,"div",2)(4,"button",3),c("click",function(){return t.handleSelection()}),r(5,"Next"),o()()),n&2&&(d(2),u("options",k(2,he)),d(2),u("disabled",!t.selectedOption))},dependencies:[_]});let l=e;return l})();var _e=()=>["Yes","No"],ie=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.wizardSteps=s,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.RECOMMENDED_ITERATIVE],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.SIMILAR_ACCURACY],{relativeTo:this.route.parent})}goToPreviousPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-pruning-time"]],decls:14,vars:3,consts:[[1,"heading-primary-title"],[1,"paragraph-regular-p3-default","text-hint"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you tolerate long pruning time?"),o(),i(2,"p",1),r(3,` The model pruning phase may require a similar or even longer duration compared to the model training period. +`),o(),i(4,"mat-chip-set",2)(5,"mat-chip",3),c("click",function(){return t.goToPreviousPage()}),r(6," Pruning "),o()(),i(7,"ms-card-selector",4),c("selectedOption",function(v){return t.trackSelection(v)}),o(),i(8,"div",5)(9,"button",6),c("click",function(){return t.goToPreviousPage()}),f(10,"mat-icon",7),r(11," Previous "),o(),i(12,"button",8),c("click",function(){return t.handleSelection()}),r(13,"Next"),o()()),n&2&&(d(7),u("options",k(2,_e)),d(5),u("disabled",!t.selectedOption))},dependencies:[_,T,C,E]});let l=e;return l})();var fe=()=>["Yes","No"],oe=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.RECOMMENDED_MINMAX],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.HIGHER_ACCURACY],{relativeTo:this.route.parent})}goToPreviousPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-ptq-time"]],decls:14,vars:3,consts:[[1,"heading-primary-title"],[1,"paragraph-regular-p3-default","text-hint"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you tolerate long PTQ time?"),o(),i(2,"p",1),r(3,` Our system supports processing times ranging from minutes (short) to several hours (long), ensuring consistent efficiency and reliability for tasks of any duration. +`),o(),i(4,"mat-chip-set",2)(5,"mat-chip",3),c("click",function(){return t.goToPreviousPage()}),r(6," Post-training quantization "),o()(),i(7,"ms-card-selector",4),c("selectedOption",function(v){return t.trackSelection(v)}),o(),i(8,"div",5)(9,"button",6),c("click",function(){return t.goToPreviousPage()}),f(10,"mat-icon",7),r(11," Previous "),o(),i(12,"button",8),c("click",function(){return t.handleSelection()}),r(13,"Next"),o()()),n&2&&(d(7),u("options",k(2,fe)),d(5),u("disabled",!t.selectedOption))},dependencies:[_,T,C,E]});let l=e;return l})();var A,P=(A=class{constructor(e){this.scriptFacadeService=e,this.isScriptActive=!1,this.listenToScriptStateChanges()}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(Y(this)).subscribe(e=>{this.isScriptActive=$(e)})}ctaCallScript(e){if(!e)return;let z=J(e);z&&this.scriptFacadeService.dispatch(Z.callScript({configs:{alg:z}}))}},A.\u0275fac=function(z){return new(z||A)(B(X))},A.\u0275prov=Q({token:A,factory:A.\u0275fac}),A);P=x([W()],P);var ne=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=O([U.BPTQ])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.HIGHER_ACCURACY],{relativeTo:this.route.parent})}goToPTQPage(){this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${M.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(P))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-basic-ptq"]],decls:18,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Post-training quantization "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPTQPage()}),r(6," Short PTQ time "),o(),i(7,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(8," High Accuracy "),o()(),i(9,"ms-card-selector",3),c("selectedOption",function(v){return t.trackSelection(v)}),o(),i(10,"div",4)(11,"button",5),c("click",function(){return t.goToPreviousPage()}),f(12,"mat-icon",6),r(13," Previous "),o(),i(14,"button",7),c("click",function(){return t.handleSelection()}),r(15," Run "),o(),i(16,"button",8),c("click",function(){return t.goToChartPage()}),r(17,"View Chart"),o()()),n&2&&(d(9),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[_,T,C,E]});let l=e;return l})();var re=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=O([U.BRECQ])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.HIGHER_ACCURACY],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToPTQPage(){this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${M.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(P))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-brecq"]],decls:18,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Post-training quantization "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPTQPage()}),r(6," Short PTQ time "),o(),i(7,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(8," Low Accuracy "),o()(),i(9,"ms-card-selector",3),c("selectedOption",function(v){return t.trackSelection(v)}),o(),i(10,"div",4)(11,"button",5),c("click",function(){return t.goToPreviousPage()}),f(12,"mat-icon",6),r(13," Previous "),o(),i(14,"button",7),c("click",function(){return t.handleSelection()}),r(15," Run "),o(),i(16,"button",8),c("click",function(){return t.goToChartPage()}),r(17,"View Chart"),o()()),n&2&&(d(9),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[_,T,C,E]});let l=e;return l})();var ce=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=O([b.IPG,b.IPR,b.IPM])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.SIMILAR_ACCURACY],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToPruningTimePage(){this.router.navigate([s.PRUNING_TIME],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${M.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(P))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-grasp"]],decls:18,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Pruning "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPruningTimePage()}),r(6," Short pruning time "),o(),i(7,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(8," Init pruning "),o()(),i(9,"ms-card-selector",3),c("selectedOption",function(v){return t.trackSelection(v)}),o(),i(10,"div",4)(11,"button",5),c("click",function(){return t.goToPreviousPage()}),f(12,"mat-icon",6),r(13," Previous "),o(),i(14,"button",7),c("click",function(){return t.handleSelection()}),r(15," Run "),o(),i(16,"button",8),c("click",function(){return t.goToChartPage()}),r(17,"View Chart"),o()()),n&2&&(d(9),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[_,T,C,E]});let l=e;return l})();var ae=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=O([b.IMP,b.OMP])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.SIMILAR_ACCURACY],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToPruningTimePage(){this.router.navigate([s.PRUNING_TIME],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${M.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(P))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-iterative-one-shot"]],decls:18,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Pruning "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPruningTimePage()}),r(6," Long pruning time "),o(),i(7,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(8," Higher accuracy "),o()(),i(9,"ms-card-selector",3),c("selectedOption",function(v){return t.trackSelection(v)}),o(),i(10,"div",4)(11,"button",5),c("click",function(){return t.goToPreviousPage()}),f(12,"mat-icon",6),r(13," Previous "),o(),i(14,"button",7),c("click",function(){return t.handleSelection()}),r(15," Run "),o(),i(16,"button",8),c("click",function(){return t.goToChartPage()}),r(17,"View Chart"),o()()),n&2&&(d(9),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[_,T,C,E]});let l=e;return l})();var me=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=O([b.IMP])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.PRUNING_TIME],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${M.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(P))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-iterative"]],decls:16,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Pruning "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(6," Long pruning time "),o()(),i(7,"ms-card-selector",3),c("selectedOption",function(v){return t.trackSelection(v)}),o(),i(8,"div",4)(9,"button",5),c("click",function(){return t.goToPreviousPage()}),f(10,"mat-icon",6),r(11," Previous "),o(),i(12,"button",7),c("click",function(){return t.handleSelection()}),r(13," Run "),o(),i(14,"button",8),c("click",function(){return t.goToChartPage()}),r(15,"View Chart"),o()()),n&2&&(d(7),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[_,T,C,E]});let l=e;return l})();var se=(()=>{let e=class e{constructor(a,n,t){this.router=a,this.route=n,this.wizardUtilsService=t,this.selectedOption="",this.algorithms=[],this.algorithms=O([U.MINMAXPTQ])}trackSelection(a){this.selectedOption=a}handleSelection(){this.wizardUtilsService.ctaCallScript(this.selectedOption)}goToPreviousPage(){this.router.navigate([s.PTQ_TIME],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}goToChartPage(){this.router.navigate([`${M.RUNNING.ROOT}`])}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S),p(P))},e.\u0275cmp=h({type:e,selectors:[["ms-step-recommend-minmax"]],decls:16,vars:2,consts:[[1,"heading-primary-title"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",1,"mr-3",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Recommended Algorithm:"),o(),i(2,"mat-chip-set",1)(3,"mat-chip",2),c("click",function(){return t.goToPretrainedPage()}),r(4," Post-training quantization "),o(),i(5,"mat-chip",2),c("click",function(){return t.goToPreviousPage()}),r(6," Long PTQ time "),o()(),i(7,"ms-card-selector",3),c("selectedOption",function(v){return t.trackSelection(v)}),o(),i(8,"div",4)(9,"button",5),c("click",function(){return t.goToPreviousPage()}),f(10,"mat-icon",6),r(11," Previous "),o(),i(12,"button",7),c("click",function(){return t.handleSelection()}),r(13," Run "),o(),i(14,"button",8),c("click",function(){return t.goToChartPage()}),r(15,"View Chart"),o()()),n&2&&(d(7),u("options",t.algorithms),d(5),u("disabled",!t.selectedOption||t.wizardUtilsService.isScriptActive))},dependencies:[_,T,C,E]});let l=e;return l})();var Se=()=>["Yes","No"],le=(()=>{let e=class e{constructor(a,n){this.router=a,this.route=n,this.selectedOption=""}trackSelection(a){this.selectedOption=a}handleSelection(){this.selectedOption==="Yes"?this.router.navigate([s.RECOMMENDED_ITERATIVE_ONE_SHOT],{relativeTo:this.route.parent}):this.selectedOption==="No"&&this.router.navigate([s.RECOMMENDED_GRASP],{relativeTo:this.route.parent})}goToPreviousPage(){this.router.navigate([s.PRUNING_TIME],{relativeTo:this.route.parent})}goToPretrainedPage(){this.router.navigate([s.PRETRAINED_MODEL],{relativeTo:this.route.parent})}};e.\u0275fac=function(n){return new(n||e)(p(g),p(S))},e.\u0275cmp=h({type:e,selectors:[["ms-step-similar-accuracy"]],decls:16,vars:3,consts:[[1,"heading-primary-title"],[1,"paragraph-regular-p3-default","text-hint"],[1,"mt-2","mb-2"],["color","accent",1,"ms-chip",3,"click"],[3,"selectedOption","options"],[1,"mt-4"],["mat-button","",1,"mr-3",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,t){n&1&&(i(0,"p",0),r(1,"Do you want to have a similar or higher accuracy?\xA0"),o(),i(2,"p",1),r(3,` Expectations for compressed model performance: Anticipate achieving comparable or enhanced accuracy relative to the original model. +`),o(),i(4,"mat-chip-set",2)(5,"mat-chip",3),c("click",function(){return t.goToPretrainedPage()}),r(6," Pruning "),o(),i(7,"mat-chip",3),c("click",function(){return t.goToPreviousPage()}),r(8," Short pruning time "),o()(),i(9,"ms-card-selector",4),c("selectedOption",function(v){return t.trackSelection(v)}),o(),i(10,"div",5)(11,"button",6),c("click",function(){return t.goToPreviousPage()}),f(12,"mat-icon",7),r(13," Previous "),o(),i(14,"button",8),c("click",function(){return t.handleSelection()}),r(15,"Next"),o()()),n&2&&(d(9),u("options",k(2,Se)),d(5),u("disabled",!t.selectedOption))},dependencies:[_,T,C,E]});let l=e;return l})();var pe=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=h({type:e,selectors:[["ms-wizard"]],decls:5,vars:0,consts:[[1,"wizard-layout"],[1,"left"],[1,"right"]],template:function(n,t){n&1&&(i(0,"div",0)(1,"div",1),f(2,"router-outlet"),o(),i(3,"div",2),f(4,"ms-terminal"),o()())},dependencies:[H,q],styles:[".wizard-layout[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:20px;height:100%}.wizard-layout[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:45%;gap:20px}.wizard-layout[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{width:55%}"]});let l=e;return l})();var ge=[{path:"",component:pe,children:[{path:"",redirectTo:s.PRETRAINED_MODEL,pathMatch:"full"},{path:s.PRETRAINED_MODEL,component:te},{path:s.PRUNING_TIME,component:ie},{path:s.PTQ_TIME,component:oe},{path:s.SIMILAR_ACCURACY,component:le},{path:s.HIGHER_ACCURACY,component:ee},{path:s.RECOMMENDED_BASIC_PTQ,component:ne},{path:s.RECOMMENDED_BRECQ,component:re},{path:s.RECOMMENDED_GRASP,component:ce},{path:s.RECOMMENDED_ITERATIVE,component:me},{path:s.RECOMMENDED_MINMAX,component:se},{path:s.RECOMMENDED_ITERATIVE_ONE_SHOT,component:ae}]}],de=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=j({type:e}),e.\u0275inj=L({imports:[G.forChild(ge),G]});let l=e;return l})();var ci=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=j({type:e}),e.\u0275inj=L({providers:[P],imports:[F,de,q,_,V,K]});let l=e;return l})();export{ci as WizardModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-VN6ZKIV6.js b/frontend/server/modelsmith-build/browser/chunk-QVZ2CSJP.js similarity index 98% rename from frontend/server/modelsmith-build/browser/chunk-VN6ZKIV6.js rename to frontend/server/modelsmith-build/browser/chunk-QVZ2CSJP.js index fc36e242..b875fe33 100644 --- a/frontend/server/modelsmith-build/browser/chunk-VN6ZKIV6.js +++ b/frontend/server/modelsmith-build/browser/chunk-QVZ2CSJP.js @@ -1,4 +1,4 @@ -import{a as Oe,b as Ie,c as Le}from"./chunk-4KWEJN4U.js";import{l as nt,q as ot}from"./chunk-NO2PD4LU.js";import{A as $e,Ca as Ke,Cd as we,Da as ae,Ec as Ye,Ed as Ee,Fc as Je,G as ze,Gd as te,Hc as Ze,Ic as Qe,Ja as qe,Jd as ke,Ka as Ve,La as Ge,Md as ce,Na as be,Qd as st,Rd as rt,T as ge,Ta as Xe,Ua as ye,Vd as ve,Z as me,_ as Se,d as Fe,e as We,f as Ne,fa as Ce,ka as oe,m as Ue,q as je,rd as et,sd as tt,ud as it,wa as ee,xa as ie,ya as le}from"./chunk-AIAH5BT5.js";var ht=Fe((De,Pe)=>{"use strict";(function(X,N){if(typeof De=="object"&&typeof Pe=="object")Pe.exports=N();else if(typeof define=="function"&&define.amd)define([],N);else{var U=N();for(var $ in U)(typeof De=="object"?De:X)[$]=U[$]}})(self,()=>(()=>{"use strict";var X={4567:function(M,r,o){var c=this&&this.__decorate||function(i,a,l,v){var m,h=arguments.length,p=h<3?a:v===null?v=Object.getOwnPropertyDescriptor(a,l):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(i,a,l,v);else for(var b=i.length-1;b>=0;b--)(m=i[b])&&(p=(h<3?m(p):h>3?m(a,l,p):m(a,l))||p);return h>3&&p&&Object.defineProperty(a,l,p),p},u=this&&this.__param||function(i,a){return function(l,v){a(l,v,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.AccessibilityManager=void 0;let n=o(9042),d=o(6114),f=o(9924),g=o(844),_=o(5596),e=o(4725),s=o(3656),t=r.AccessibilityManager=class extends g.Disposable{constructor(i,a){super(),this._terminal=i,this._renderService=a,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let l=0;lthis._handleBoundaryFocus(l,0),this._bottomBoundaryFocusListener=l=>this._handleBoundaryFocus(l,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new f.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(l=>this._handleResize(l.rows))),this.register(this._terminal.onRender(l=>this._refreshRows(l.start,l.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(l=>this._handleChar(l))),this.register(this._terminal.onLineFeed(()=>this._handleChar(` +import{a as Oe,b as Ie,c as Le}from"./chunk-WHP5P3DQ.js";import{a as it,b as st}from"./chunk-SMKHMGDE.js";import{g as we,i as Ee,k as te,n as ke}from"./chunk-W4U3FJPJ.js";import{a as rt,b as ce,c as ve,o as nt,t as ot}from"./chunk-PSFPSLKI.js";import{a as Ye,b as Je}from"./chunk-GMIVG7ET.js";import{Ab as Xe,Ae as tt,Bb as ye,Fa as oe,J as $e,Q as ze,ab as ee,bb as ie,cb as le,d as Fe,e as We,f as Ne,gb as Ke,ha as ge,jb as ae,p as Ue,pa as me,qa as Se,qb as qe,rb as Ve,sb as Ge,ub as be,v as je,we as Ze,xe as Qe,ya as Ce,ze as et}from"./chunk-NPZHNGVX.js";var ht=Fe((De,Pe)=>{"use strict";(function(X,N){if(typeof De=="object"&&typeof Pe=="object")Pe.exports=N();else if(typeof define=="function"&&define.amd)define([],N);else{var U=N();for(var $ in U)(typeof De=="object"?De:X)[$]=U[$]}})(self,()=>(()=>{"use strict";var X={4567:function(M,r,o){var c=this&&this.__decorate||function(i,a,l,v){var m,h=arguments.length,p=h<3?a:v===null?v=Object.getOwnPropertyDescriptor(a,l):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(i,a,l,v);else for(var b=i.length-1;b>=0;b--)(m=i[b])&&(p=(h<3?m(p):h>3?m(a,l,p):m(a,l))||p);return h>3&&p&&Object.defineProperty(a,l,p),p},u=this&&this.__param||function(i,a){return function(l,v){a(l,v,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.AccessibilityManager=void 0;let n=o(9042),d=o(6114),f=o(9924),g=o(844),_=o(5596),e=o(4725),s=o(3656),t=r.AccessibilityManager=class extends g.Disposable{constructor(i,a){super(),this._terminal=i,this._renderService=a,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let l=0;lthis._handleBoundaryFocus(l,0),this._bottomBoundaryFocusListener=l=>this._handleBoundaryFocus(l,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new f.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(l=>this._handleResize(l.rows))),this.register(this._terminal.onRender(l=>this._refreshRows(l.start,l.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(l=>this._handleChar(l))),this.register(this._terminal.onLineFeed(()=>this._handleChar(` `))),this.register(this._terminal.onA11yTab(l=>this._handleTab(l))),this.register(this._terminal.onKey(l=>this._handleKey(l.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._screenDprMonitor=new _.ScreenDprMonitor(window),this.register(this._screenDprMonitor),this._screenDprMonitor.setListener(()=>this._refreshRowsDimensions()),this.register((0,s.addDisposableDomListener)(window,"resize",()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,g.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(i){for(let a=0;a0?this._charsToConsume.shift()!==i&&(this._charsToAnnounce+=i):this._charsToAnnounce+=i,i===` `&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=n.tooMuchOutput)),d.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(()=>{this._accessibilityContainer.appendChild(this._liveRegion)},0))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0,d.isMac&&this._liveRegion.remove()}_handleKey(i){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(i)||this._charsToConsume.push(i)}_refreshRows(i,a){this._liveRegionDebouncer.refresh(i,a,this._terminal.rows)}_renderRows(i,a){let l=this._terminal.buffer,v=l.lines.length.toString();for(let m=i;m<=a;m++){let h=l.translateBufferLineToString(l.ydisp+m,!0),p=(l.ydisp+m+1).toString(),b=this._rowElements[m];b&&(h.length===0?b.innerText="\xA0":b.textContent=h,b.setAttribute("aria-posinset",p),b.setAttribute("aria-setsize",v))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(i,a){let l=i.target,v=this._rowElements[a===0?1:this._rowElements.length-2];if(l.getAttribute("aria-posinset")===(a===0?"1":`${this._terminal.buffer.lines.length}`)||i.relatedTarget!==v)return;let m,h;if(a===0?(m=l,h=this._rowElements.pop(),this._rowContainer.removeChild(h)):(m=this._rowElements.shift(),h=l,this._rowContainer.removeChild(m)),m.removeEventListener("focus",this._topBoundaryFocusListener),h.removeEventListener("focus",this._bottomBoundaryFocusListener),a===0){let p=this._createAccessibilityTreeNode();this._rowElements.unshift(p),this._rowContainer.insertAdjacentElement("afterbegin",p)}else{let p=this._createAccessibilityTreeNode();this._rowElements.push(p),this._rowContainer.appendChild(p)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(a===0?-1:1),this._rowElements[a===0?1:this._rowElements.length-2].focus(),i.preventDefault(),i.stopImmediatePropagation()}_handleResize(i){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let a=this._rowContainer.children.length;ai;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){let i=document.createElement("div");return i.setAttribute("role","listitem"),i.tabIndex=-1,this._refreshRowDimensions(i),i}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let i=0;i{function o(d){return d.replace(/\r?\n/g,"\r")}function c(d,f){return f?"\x1B[200~"+d+"\x1B[201~":d}function u(d,f,g,_){d=c(d=o(d),g.decPrivateModes.bracketedPasteMode&&_.rawOptions.ignoreBracketedPasteMode!==!0),g.triggerDataEvent(d,!0),f.value=""}function n(d,f,g){let _=g.getBoundingClientRect(),e=d.clientX-_.left-10,s=d.clientY-_.top-10;f.style.width="20px",f.style.height="20px",f.style.left=`${e}px`,f.style.top=`${s}px`,f.style.zIndex="1000",f.focus()}Object.defineProperty(r,"__esModule",{value:!0}),r.rightClickHandler=r.moveTextAreaUnderMouseCursor=r.paste=r.handlePasteEvent=r.copyHandler=r.bracketTextForPaste=r.prepareTextForTerminal=void 0,r.prepareTextForTerminal=o,r.bracketTextForPaste=c,r.copyHandler=function(d,f){d.clipboardData&&d.clipboardData.setData("text/plain",f.selectionText),d.preventDefault()},r.handlePasteEvent=function(d,f,g,_){d.stopPropagation(),d.clipboardData&&u(d.clipboardData.getData("text/plain"),f,g,_)},r.paste=u,r.moveTextAreaUnderMouseCursor=n,r.rightClickHandler=function(d,f,g,_,e){n(d,f,g),e&&_.rightClickSelect(d),f.value=_.selectionText,f.select()}},7239:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ColorContrastCache=void 0;let c=o(1505);r.ColorContrastCache=class{constructor(){this._color=new c.TwoKeyMap,this._css=new c.TwoKeyMap}setCss(u,n,d){this._css.set(u,n,d)}getCss(u,n){return this._css.get(u,n)}setColor(u,n,d){this._color.set(u,n,d)}getColor(u,n){return this._color.get(u,n)}clear(){this._color.clear(),this._css.clear()}}},3656:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.addDisposableDomListener=void 0,r.addDisposableDomListener=function(o,c,u,n){o.addEventListener(c,u,n);let d=!1;return{dispose:()=>{d||(d=!0,o.removeEventListener(c,u,n))}}}},6465:function(M,r,o){var c=this&&this.__decorate||function(e,s,t,i){var a,l=arguments.length,v=l<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(e,s,t,i);else for(var m=e.length-1;m>=0;m--)(a=e[m])&&(v=(l<3?a(v):l>3?a(s,t,v):a(s,t))||v);return l>3&&v&&Object.defineProperty(s,t,v),v},u=this&&this.__param||function(e,s){return function(t,i){s(t,i,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.Linkifier2=void 0;let n=o(3656),d=o(8460),f=o(844),g=o(2585),_=r.Linkifier2=class extends f.Disposable{get currentLink(){return this._currentLink}constructor(e){super(),this._bufferService=e,this._linkProviders=[],this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new d.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new d.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,f.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,f.toDisposable)(()=>{this._lastMouseEvent=void 0})),this.register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0}))}registerLinkProvider(e){return this._linkProviders.push(e),{dispose:()=>{let s=this._linkProviders.indexOf(e);s!==-1&&this._linkProviders.splice(s,1)}}}attachToDom(e,s,t){this._element=e,this._mouseService=s,this._renderService=t,this.register((0,n.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,n.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(e){if(this._lastMouseEvent=e,!this._element||!this._mouseService)return;let s=this._positionFromMouseEvent(e,this._element,this._mouseService);if(!s)return;this._isMouseOut=!1;let t=e.composedPath();for(let i=0;i{l?.forEach(v=>{v.link.dispose&&v.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=e.y);let a=!1;for(let[l,v]of this._linkProviders.entries())s?!((i=this._activeProviderReplies)===null||i===void 0)&&i.get(l)&&(a=this._checkLinkProviderResult(l,e,a)):v.provideLinks(e.y,m=>{var h,p;if(this._isMouseOut)return;let b=m?.map(L=>({link:L}));(h=this._activeProviderReplies)===null||h===void 0||h.set(l,b),a=this._checkLinkProviderResult(l,e,a),((p=this._activeProviderReplies)===null||p===void 0?void 0:p.size)===this._linkProviders.length&&this._removeIntersectingLinks(e.y,this._activeProviderReplies)})}_removeIntersectingLinks(e,s){let t=new Set;for(let i=0;ie?this._bufferService.cols:v.link.range.end.x;for(let p=m;p<=h;p++){if(t.has(p)){a.splice(l--,1);break}t.add(p)}}}}_checkLinkProviderResult(e,s,t){var i;if(!this._activeProviderReplies)return t;let a=this._activeProviderReplies.get(e),l=!1;for(let v=0;vthis._linkAtPosition(m.link,s));v&&(t=!0,this._handleNewLink(v))}if(this._activeProviderReplies.size===this._linkProviders.length&&!t)for(let v=0;vthis._linkAtPosition(h.link,s));if(m){t=!0,this._handleNewLink(m);break}}return t}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._element||!this._mouseService||!this._currentLink)return;let s=this._positionFromMouseEvent(e,this._element,this._mouseService);s&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,s)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,s){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!s||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=s)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,f.disposeArray)(this._linkCacheDisposables))}_handleNewLink(e){if(!this._element||!this._lastMouseEvent||!this._mouseService)return;let s=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);s&&this._linkAtPosition(e.link,s)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:e.link.decorations===void 0||e.link.decorations.underline,pointerCursor:e.link.decorations===void 0||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:()=>{var t,i;return(i=(t=this._currentLink)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.decorations.pointerCursor},set:t=>{var i,a;!((i=this._currentLink)===null||i===void 0)&&i.state&&this._currentLink.state.decorations.pointerCursor!==t&&(this._currentLink.state.decorations.pointerCursor=t,this._currentLink.state.isHovered&&((a=this._element)===null||a===void 0||a.classList.toggle("xterm-cursor-pointer",t)))}},underline:{get:()=>{var t,i;return(i=(t=this._currentLink)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.decorations.underline},set:t=>{var i,a,l;!((i=this._currentLink)===null||i===void 0)&&i.state&&((l=(a=this._currentLink)===null||a===void 0?void 0:a.state)===null||l===void 0?void 0:l.decorations.underline)!==t&&(this._currentLink.state.decorations.underline=t,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,t))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(t=>{if(!this._currentLink)return;let i=t.start===0?0:t.start+1+this._bufferService.buffer.ydisp,a=this._bufferService.buffer.ydisp+1+t.end;if(this._currentLink.link.range.start.y>=i&&this._currentLink.link.range.end.y<=a&&(this._clearCurrentLink(i,a),this._lastMouseEvent&&this._element)){let l=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);l&&this._askForLink(l,!1)}})))}_linkHover(e,s,t){var i;!((i=this._currentLink)===null||i===void 0)&&i.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),s.hover&&s.hover(t,s.text)}_fireUnderlineEvent(e,s){let t=e.range,i=this._bufferService.buffer.ydisp,a=this._createLinkUnderlineEvent(t.start.x-1,t.start.y-i-1,t.end.x,t.end.y-i-1,void 0);(s?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(a)}_linkLeave(e,s,t){var i;!((i=this._currentLink)===null||i===void 0)&&i.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),s.leave&&s.leave(t,s.text)}_linkAtPosition(e,s){let t=e.range.start.y*this._bufferService.cols+e.range.start.x,i=e.range.end.y*this._bufferService.cols+e.range.end.x,a=s.y*this._bufferService.cols+s.x;return t<=a&&a<=i}_positionFromMouseEvent(e,s,t){let i=t.getCoords(e,s,this._bufferService.cols,this._bufferService.rows);if(i)return{x:i[0],y:i[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,s,t,i,a){return{x1:e,y1:s,x2:t,y2:i,cols:this._bufferService.cols,fg:a}}};r.Linkifier2=_=c([u(0,g.IBufferService)],_)},9042:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.tooMuchOutput=r.promptLabel=void 0,r.promptLabel="Terminal input",r.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(M,r,o){var c=this&&this.__decorate||function(_,e,s,t){var i,a=arguments.length,l=a<3?e:t===null?t=Object.getOwnPropertyDescriptor(e,s):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(_,e,s,t);else for(var v=_.length-1;v>=0;v--)(i=_[v])&&(l=(a<3?i(l):a>3?i(e,s,l):i(e,s))||l);return a>3&&l&&Object.defineProperty(e,s,l),l},u=this&&this.__param||function(_,e){return function(s,t){e(s,t,_)}};Object.defineProperty(r,"__esModule",{value:!0}),r.OscLinkProvider=void 0;let n=o(511),d=o(2585),f=r.OscLinkProvider=class{constructor(_,e,s){this._bufferService=_,this._optionsService=e,this._oscLinkService=s}provideLinks(_,e){var s;let t=this._bufferService.buffer.lines.get(_-1);if(!t)return void e(void 0);let i=[],a=this._optionsService.rawOptions.linkHandler,l=new n.CellData,v=t.getTrimmedLength(),m=-1,h=-1,p=!1;for(let b=0;ba?a.activate(x,B,y):g(0,B),hover:(x,B)=>{var I;return(I=a?.hover)===null||I===void 0?void 0:I.call(a,x,B,y)},leave:(x,B)=>{var I;return(I=a?.leave)===null||I===void 0?void 0:I.call(a,x,B,y)}})}p=!1,l.hasExtendedAttrs()&&l.extended.urlId?(h=b,m=l.extended.urlId):(h=-1,m=-1)}}e(i)}};function g(_,e){if(confirm(`Do you want to navigate to ${e}? @@ -6,7 +6,7 @@ WARNING: This link could potentially be dangerous`)){let s=window.open();if(s){t `:` `)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(h){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._refresh())),s.isLinux&&h&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})}_isClickInSelection(h){let p=this._getMouseBufferCoords(h),b=this._model.finalSelectionStart,L=this._model.finalSelectionEnd;return!!(b&&L&&p)&&this._areCoordsInSelection(p,b,L)}isCellInSelection(h,p){let b=this._model.finalSelectionStart,L=this._model.finalSelectionEnd;return!(!b||!L)&&this._areCoordsInSelection([h,p],b,L)}_areCoordsInSelection(h,p,b){return h[1]>p[1]&&h[1]=p[0]&&h[0]=p[0]}_selectWordAtCursor(h,p){var b,L;let y=(L=(b=this._linkifier.currentLink)===null||b===void 0?void 0:b.link)===null||L===void 0?void 0:L.range;if(y)return this._model.selectionStart=[y.start.x-1,y.start.y-1],this._model.selectionStartLength=(0,t.getRangeLength)(y,this._bufferService.cols),this._model.selectionEnd=void 0,!0;let k=this._getMouseBufferCoords(h);return!!k&&(this._selectWordAt(k,p),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(h,p){this._model.clearSelection(),h=Math.max(h,0),p=Math.min(p,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,h],this._model.selectionEnd=[this._bufferService.cols,p],this.refresh(),this._onSelectionChange.fire()}_handleTrim(h){this._model.handleTrim(h)&&this.refresh()}_getMouseBufferCoords(h){let p=this._mouseService.getCoords(h,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(p)return p[0]--,p[1]--,p[1]+=this._bufferService.buffer.ydisp,p}_getMouseEventScrollAmount(h){let p=(0,n.getCoordsRelativeToElement)(this._coreBrowserService.window,h,this._screenElement)[1],b=this._renderService.dimensions.css.canvas.height;return p>=0&&p<=b?0:(p>b&&(p-=b),p=Math.min(Math.max(p,-50),50),p/=50,p/Math.abs(p)+Math.round(14*p))}shouldForceSelection(h){return s.isMac?h.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:h.shiftKey}handleMouseDown(h){if(this._mouseDownTimeStamp=h.timeStamp,(h.button!==2||!this.hasSelection)&&h.button===0){if(!this._enabled){if(!this.shouldForceSelection(h))return;h.stopPropagation()}h.preventDefault(),this._dragScrollAmount=0,this._enabled&&h.shiftKey?this._handleIncrementalClick(h):h.detail===1?this._handleSingleClick(h):h.detail===2?this._handleDoubleClick(h):h.detail===3&&this._handleTripleClick(h),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval(()=>this._dragScroll(),50)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(h){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(h))}_handleSingleClick(h){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(h)?3:0,this._model.selectionStart=this._getMouseBufferCoords(h),!this._model.selectionStart)return;this._model.selectionEnd=void 0;let p=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);p&&p.length!==this._model.selectionStart[0]&&p.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}_handleDoubleClick(h){this._selectWordAtCursor(h,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(h){let p=this._getMouseBufferCoords(h);p&&(this._activeSelectionMode=2,this._selectLineAt(p[1]))}shouldColumnSelect(h){return h.altKey&&!(s.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(h){if(h.stopImmediatePropagation(),!this._model.selectionStart)return;let p=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(h),!this._model.selectionEnd)return void this.refresh(!0);this._activeSelectionMode===2?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));let b=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(h.ydisp+this._bufferService.rows,h.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=h.ydisp),this.refresh()}}_handleMouseUp(h){let p=h.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&p<500&&h.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){let b=this._mouseService.getCoords(h,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(b&&b[0]!==void 0&&b[1]!==void 0){let L=(0,d.moveToCellSequence)(b[0]-1,b[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(L,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){let h=this._model.finalSelectionStart,p=this._model.finalSelectionEnd,b=!(!h||!p||h[0]===p[0]&&h[1]===p[1]);b?h&&p&&(this._oldSelectionStart&&this._oldSelectionEnd&&h[0]===this._oldSelectionStart[0]&&h[1]===this._oldSelectionStart[1]&&p[0]===this._oldSelectionEnd[0]&&p[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(h,p,b)):this._oldHasSelection&&this._fireOnSelectionChange(h,p,b)}_fireOnSelectionChange(h,p,b){this._oldSelectionStart=h,this._oldSelectionEnd=p,this._oldHasSelection=b,this._onSelectionChange.fire()}_handleBufferActivate(h){this.clearSelection(),this._trimListener.dispose(),this._trimListener=h.activeBuffer.lines.onTrim(p=>this._handleTrim(p))}_convertViewportColToCharacterIndex(h,p){let b=p;for(let L=0;p>=L;L++){let y=h.loadCell(L,this._workCell).getChars().length;this._workCell.getWidth()===0?b--:y>1&&p!==L&&(b+=y-1)}return b}setSelection(h,p,b){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[h,p],this._model.selectionStartLength=b,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(h){this._isClickInSelection(h)||(this._selectWordAtCursor(h,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(h,p,b=!0,L=!0){if(h[0]>=this._bufferService.cols)return;let y=this._bufferService.buffer,k=y.lines.get(h[1]);if(!k)return;let x=y.translateBufferLineToString(h[1],!1),B=this._convertViewportColToCharacterIndex(k,h[0]),I=B,O=h[0]-B,C=0,w=0,E=0,D=0;if(x.charAt(B)===" "){for(;B>0&&x.charAt(B-1)===" ";)B--;for(;I1&&(D+=V-1,I+=V-1);j>0&&B>0&&!this._isCharWordSeparator(k.loadCell(j-1,this._workCell));){k.loadCell(j-1,this._workCell);let S=this._workCell.getChars().length;this._workCell.getWidth()===0?(C++,j--):S>1&&(E+=S-1,B-=S-1),B--,j--}for(;W1&&(D+=S-1,I+=S-1),I++,W++}}I++;let P=B+O-C+E,H=Math.min(this._bufferService.cols,I-B+C+w-E-D);if(p||x.slice(B,I).trim()!==""){if(b&&P===0&&k.getCodePoint(0)!==32){let j=y.lines.get(h[1]-1);if(j&&k.isWrapped&&j.getCodePoint(this._bufferService.cols-1)!==32){let W=this._getWordAt([this._bufferService.cols-1,h[1]-1],!1,!0,!1);if(W){let V=this._bufferService.cols-W.start;P-=V,H+=V}}}if(L&&P+H===this._bufferService.cols&&k.getCodePoint(this._bufferService.cols-1)!==32){let j=y.lines.get(h[1]+1);if(j?.isWrapped&&j.getCodePoint(0)!==32){let W=this._getWordAt([0,h[1]+1],!1,!1,!0);W&&(H+=W.length)}}return{start:P,length:H}}}_selectWordAt(h,p){let b=this._getWordAt(h,p);if(b){for(;b.start<0;)b.start+=this._bufferService.cols,h[1]--;this._model.selectionStart=[b.start,h[1]],this._model.selectionStartLength=b.length}}_selectToWordAt(h){let p=this._getWordAt(h,!0);if(p){let b=h[1];for(;p.start<0;)p.start+=this._bufferService.cols,b--;if(!this._model.areSelectionValuesReversed())for(;p.start+p.length>this._bufferService.cols;)p.length-=this._bufferService.cols,b++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?p.start:p.start+p.length,b]}}_isCharWordSeparator(h){return h.getWidth()!==0&&this._optionsService.rawOptions.wordSeparator.indexOf(h.getChars())>=0}_selectLineAt(h){let p=this._bufferService.buffer.getWrappedRangeForLine(h),b={start:{x:0,y:p.first},end:{x:this._bufferService.cols-1,y:p.last}};this._model.selectionStart=[0,p.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,t.getRangeLength)(b,this._bufferService.cols)}};r.SelectionService=m=c([u(3,a.IBufferService),u(4,a.ICoreService),u(5,g.IMouseService),u(6,a.IOptionsService),u(7,g.IRenderService),u(8,g.ICoreBrowserService)],m)},4725:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.IThemeService=r.ICharacterJoinerService=r.ISelectionService=r.IRenderService=r.IMouseService=r.ICoreBrowserService=r.ICharSizeService=void 0;let c=o(8343);r.ICharSizeService=(0,c.createDecorator)("CharSizeService"),r.ICoreBrowserService=(0,c.createDecorator)("CoreBrowserService"),r.IMouseService=(0,c.createDecorator)("MouseService"),r.IRenderService=(0,c.createDecorator)("RenderService"),r.ISelectionService=(0,c.createDecorator)("SelectionService"),r.ICharacterJoinerService=(0,c.createDecorator)("CharacterJoinerService"),r.IThemeService=(0,c.createDecorator)("ThemeService")},6731:function(M,r,o){var c=this&&this.__decorate||function(m,h,p,b){var L,y=arguments.length,k=y<3?h:b===null?b=Object.getOwnPropertyDescriptor(h,p):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(m,h,p,b);else for(var x=m.length-1;x>=0;x--)(L=m[x])&&(k=(y<3?L(k):y>3?L(h,p,k):L(h,p))||k);return y>3&&k&&Object.defineProperty(h,p,k),k},u=this&&this.__param||function(m,h){return function(p,b){h(p,b,m)}};Object.defineProperty(r,"__esModule",{value:!0}),r.ThemeService=r.DEFAULT_ANSI_COLORS=void 0;let n=o(7239),d=o(8055),f=o(8460),g=o(844),_=o(2585),e=d.css.toColor("#ffffff"),s=d.css.toColor("#000000"),t=d.css.toColor("#ffffff"),i=d.css.toColor("#000000"),a={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};r.DEFAULT_ANSI_COLORS=Object.freeze((()=>{let m=[d.css.toColor("#2e3436"),d.css.toColor("#cc0000"),d.css.toColor("#4e9a06"),d.css.toColor("#c4a000"),d.css.toColor("#3465a4"),d.css.toColor("#75507b"),d.css.toColor("#06989a"),d.css.toColor("#d3d7cf"),d.css.toColor("#555753"),d.css.toColor("#ef2929"),d.css.toColor("#8ae234"),d.css.toColor("#fce94f"),d.css.toColor("#729fcf"),d.css.toColor("#ad7fa8"),d.css.toColor("#34e2e2"),d.css.toColor("#eeeeec")],h=[0,95,135,175,215,255];for(let p=0;p<216;p++){let b=h[p/36%6|0],L=h[p/6%6|0],y=h[p%6];m.push({css:d.channels.toCss(b,L,y),rgba:d.channels.toRgba(b,L,y)})}for(let p=0;p<24;p++){let b=8+10*p;m.push({css:d.channels.toCss(b,b,b),rgba:d.channels.toRgba(b,b,b)})}return m})());let l=r.ThemeService=class extends g.Disposable{get colors(){return this._colors}constructor(m){super(),this._optionsService=m,this._contrastCache=new n.ColorContrastCache,this._halfContrastCache=new n.ColorContrastCache,this._onChangeColors=this.register(new f.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:e,background:s,cursor:t,cursorAccent:i,selectionForeground:void 0,selectionBackgroundTransparent:a,selectionBackgroundOpaque:d.color.blend(s,a),selectionInactiveBackgroundTransparent:a,selectionInactiveBackgroundOpaque:d.color.blend(s,a),ansi:r.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",()=>this._contrastCache.clear())),this.register(this._optionsService.onSpecificOptionChange("theme",()=>this._setTheme(this._optionsService.rawOptions.theme)))}_setTheme(m={}){let h=this._colors;if(h.foreground=v(m.foreground,e),h.background=v(m.background,s),h.cursor=v(m.cursor,t),h.cursorAccent=v(m.cursorAccent,i),h.selectionBackgroundTransparent=v(m.selectionBackground,a),h.selectionBackgroundOpaque=d.color.blend(h.background,h.selectionBackgroundTransparent),h.selectionInactiveBackgroundTransparent=v(m.selectionInactiveBackground,h.selectionBackgroundTransparent),h.selectionInactiveBackgroundOpaque=d.color.blend(h.background,h.selectionInactiveBackgroundTransparent),h.selectionForeground=m.selectionForeground?v(m.selectionForeground,d.NULL_COLOR):void 0,h.selectionForeground===d.NULL_COLOR&&(h.selectionForeground=void 0),d.color.isOpaque(h.selectionBackgroundTransparent)&&(h.selectionBackgroundTransparent=d.color.opacity(h.selectionBackgroundTransparent,.3)),d.color.isOpaque(h.selectionInactiveBackgroundTransparent)&&(h.selectionInactiveBackgroundTransparent=d.color.opacity(h.selectionInactiveBackgroundTransparent,.3)),h.ansi=r.DEFAULT_ANSI_COLORS.slice(),h.ansi[0]=v(m.black,r.DEFAULT_ANSI_COLORS[0]),h.ansi[1]=v(m.red,r.DEFAULT_ANSI_COLORS[1]),h.ansi[2]=v(m.green,r.DEFAULT_ANSI_COLORS[2]),h.ansi[3]=v(m.yellow,r.DEFAULT_ANSI_COLORS[3]),h.ansi[4]=v(m.blue,r.DEFAULT_ANSI_COLORS[4]),h.ansi[5]=v(m.magenta,r.DEFAULT_ANSI_COLORS[5]),h.ansi[6]=v(m.cyan,r.DEFAULT_ANSI_COLORS[6]),h.ansi[7]=v(m.white,r.DEFAULT_ANSI_COLORS[7]),h.ansi[8]=v(m.brightBlack,r.DEFAULT_ANSI_COLORS[8]),h.ansi[9]=v(m.brightRed,r.DEFAULT_ANSI_COLORS[9]),h.ansi[10]=v(m.brightGreen,r.DEFAULT_ANSI_COLORS[10]),h.ansi[11]=v(m.brightYellow,r.DEFAULT_ANSI_COLORS[11]),h.ansi[12]=v(m.brightBlue,r.DEFAULT_ANSI_COLORS[12]),h.ansi[13]=v(m.brightMagenta,r.DEFAULT_ANSI_COLORS[13]),h.ansi[14]=v(m.brightCyan,r.DEFAULT_ANSI_COLORS[14]),h.ansi[15]=v(m.brightWhite,r.DEFAULT_ANSI_COLORS[15]),m.extendedAnsi){let p=Math.min(h.ansi.length-16,m.extendedAnsi.length);for(let b=0;b{Object.defineProperty(r,"__esModule",{value:!0}),r.CircularList=void 0;let c=o(8460),u=o(844);class n extends u.Disposable{constructor(f){super(),this._maxLength=f,this.onDeleteEmitter=this.register(new c.EventEmitter),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this.register(new c.EventEmitter),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this.register(new c.EventEmitter),this.onTrim=this.onTrimEmitter.event,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(f){if(this._maxLength===f)return;let g=new Array(f);for(let _=0;_this._length)for(let g=this._length;g=f;e--)this._array[this._getCyclicIndex(e+_.length)]=this._array[this._getCyclicIndex(e)];for(let e=0;e<_.length;e++)this._array[this._getCyclicIndex(f+e)]=_[e];if(_.length&&this.onInsertEmitter.fire({index:f,amount:_.length}),this._length+_.length>this._maxLength){let e=this._length+_.length-this._maxLength;this._startIndex+=e,this._length=this._maxLength,this.onTrimEmitter.fire(e)}else this._length+=_.length}trimStart(f){f>this._length&&(f=this._length),this._startIndex+=f,this._length-=f,this.onTrimEmitter.fire(f)}shiftElements(f,g,_){if(!(g<=0)){if(f<0||f>=this._length)throw new Error("start argument out of range");if(f+_<0)throw new Error("Cannot shift elements in list beyond index 0");if(_>0){for(let s=g-1;s>=0;s--)this.set(f+s+_,this.get(f+s));let e=f+g+_-this._length;if(e>0)for(this._length+=e;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let e=0;e{Object.defineProperty(r,"__esModule",{value:!0}),r.clone=void 0,r.clone=function o(c,u=5){if(typeof c!="object")return c;let n=Array.isArray(c)?[]:{};for(let d in c)n[d]=u<=1?c[d]:c[d]&&o(c[d],u-1);return n}},8055:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.contrastRatio=r.toPaddedHex=r.rgba=r.rgb=r.css=r.color=r.channels=r.NULL_COLOR=void 0;let c=o(6114),u=0,n=0,d=0,f=0;var g,_,e,s,t;function i(l){let v=l.toString(16);return v.length<2?"0"+v:v}function a(l,v){return l>>0}}(g||(r.channels=g={})),function(l){function v(m,h){return f=Math.round(255*h),[u,n,d]=t.toChannels(m.rgba),{css:g.toCss(u,n,d,f),rgba:g.toRgba(u,n,d,f)}}l.blend=function(m,h){if(f=(255&h.rgba)/255,f===1)return{css:h.css,rgba:h.rgba};let p=h.rgba>>24&255,b=h.rgba>>16&255,L=h.rgba>>8&255,y=m.rgba>>24&255,k=m.rgba>>16&255,x=m.rgba>>8&255;return u=y+Math.round((p-y)*f),n=k+Math.round((b-k)*f),d=x+Math.round((L-x)*f),{css:g.toCss(u,n,d),rgba:g.toRgba(u,n,d)}},l.isOpaque=function(m){return(255&m.rgba)==255},l.ensureContrastRatio=function(m,h,p){let b=t.ensureContrastRatio(m.rgba,h.rgba,p);if(b)return t.toColor(b>>24&255,b>>16&255,b>>8&255)},l.opaque=function(m){let h=(255|m.rgba)>>>0;return[u,n,d]=t.toChannels(h),{css:g.toCss(u,n,d),rgba:h}},l.opacity=v,l.multiplyOpacity=function(m,h){return f=255&m.rgba,v(m,f*h/255)},l.toColorRGB=function(m){return[m.rgba>>24&255,m.rgba>>16&255,m.rgba>>8&255]}}(_||(r.color=_={})),function(l){let v,m;if(!c.isNode){let h=document.createElement("canvas");h.width=1,h.height=1;let p=h.getContext("2d",{willReadFrequently:!0});p&&(v=p,v.globalCompositeOperation="copy",m=v.createLinearGradient(0,0,1,1))}l.toColor=function(h){if(h.match(/#[\da-f]{3,8}/i))switch(h.length){case 4:return u=parseInt(h.slice(1,2).repeat(2),16),n=parseInt(h.slice(2,3).repeat(2),16),d=parseInt(h.slice(3,4).repeat(2),16),t.toColor(u,n,d);case 5:return u=parseInt(h.slice(1,2).repeat(2),16),n=parseInt(h.slice(2,3).repeat(2),16),d=parseInt(h.slice(3,4).repeat(2),16),f=parseInt(h.slice(4,5).repeat(2),16),t.toColor(u,n,d,f);case 7:return{css:h,rgba:(parseInt(h.slice(1),16)<<8|255)>>>0};case 9:return{css:h,rgba:parseInt(h.slice(1),16)>>>0}}let p=h.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(p)return u=parseInt(p[1]),n=parseInt(p[2]),d=parseInt(p[3]),f=Math.round(255*(p[5]===void 0?1:parseFloat(p[5]))),t.toColor(u,n,d,f);if(!v||!m)throw new Error("css.toColor: Unsupported css format");if(v.fillStyle=m,v.fillStyle=h,typeof v.fillStyle!="string")throw new Error("css.toColor: Unsupported css format");if(v.fillRect(0,0,1,1),[u,n,d,f]=v.getImageData(0,0,1,1).data,f!==255)throw new Error("css.toColor: Unsupported css format");return{rgba:g.toRgba(u,n,d,f),css:h}}}(e||(r.css=e={})),function(l){function v(m,h,p){let b=m/255,L=h/255,y=p/255;return .2126*(b<=.03928?b/12.92:Math.pow((b+.055)/1.055,2.4))+.7152*(L<=.03928?L/12.92:Math.pow((L+.055)/1.055,2.4))+.0722*(y<=.03928?y/12.92:Math.pow((y+.055)/1.055,2.4))}l.relativeLuminance=function(m){return v(m>>16&255,m>>8&255,255&m)},l.relativeLuminance2=v}(s||(r.rgb=s={})),function(l){function v(h,p,b){let L=h>>24&255,y=h>>16&255,k=h>>8&255,x=p>>24&255,B=p>>16&255,I=p>>8&255,O=a(s.relativeLuminance2(x,B,I),s.relativeLuminance2(L,y,k));for(;O0||B>0||I>0);)x-=Math.max(0,Math.ceil(.1*x)),B-=Math.max(0,Math.ceil(.1*B)),I-=Math.max(0,Math.ceil(.1*I)),O=a(s.relativeLuminance2(x,B,I),s.relativeLuminance2(L,y,k));return(x<<24|B<<16|I<<8|255)>>>0}function m(h,p,b){let L=h>>24&255,y=h>>16&255,k=h>>8&255,x=p>>24&255,B=p>>16&255,I=p>>8&255,O=a(s.relativeLuminance2(x,B,I),s.relativeLuminance2(L,y,k));for(;O>>0}l.ensureContrastRatio=function(h,p,b){let L=s.relativeLuminance(h>>8),y=s.relativeLuminance(p>>8);if(a(L,y)>8));if(Ia(L,s.relativeLuminance(O>>8))?B:O}return B}let k=m(h,p,b),x=a(L,s.relativeLuminance(k>>8));if(xa(L,s.relativeLuminance(B>>8))?k:B}return k}},l.reduceLuminance=v,l.increaseLuminance=m,l.toChannels=function(h){return[h>>24&255,h>>16&255,h>>8&255,255&h]},l.toColor=function(h,p,b,L){return{css:g.toCss(h,p,b,L),rgba:g.toRgba(h,p,b,L)}}}(t||(r.rgba=t={})),r.toPaddedHex=i,r.contrastRatio=a},8969:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.CoreTerminal=void 0;let c=o(844),u=o(2585),n=o(4348),d=o(7866),f=o(744),g=o(7302),_=o(6975),e=o(8460),s=o(1753),t=o(1480),i=o(7994),a=o(9282),l=o(5435),v=o(5981),m=o(2660),h=!1;class p extends c.Disposable{get onScroll(){return this._onScrollApi||(this._onScrollApi=this.register(new e.EventEmitter),this._onScroll.event(L=>{var y;(y=this._onScrollApi)===null||y===void 0||y.fire(L.position)})),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(L){for(let y in L)this.optionsService.options[y]=L[y]}constructor(L){super(),this._windowsWrappingHeuristics=this.register(new c.MutableDisposable),this._onBinary=this.register(new e.EventEmitter),this.onBinary=this._onBinary.event,this._onData=this.register(new e.EventEmitter),this.onData=this._onData.event,this._onLineFeed=this.register(new e.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onResize=this.register(new e.EventEmitter),this.onResize=this._onResize.event,this._onWriteParsed=this.register(new e.EventEmitter),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this.register(new e.EventEmitter),this._instantiationService=new n.InstantiationService,this.optionsService=this.register(new g.OptionsService(L)),this._instantiationService.setService(u.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(f.BufferService)),this._instantiationService.setService(u.IBufferService,this._bufferService),this._logService=this.register(this._instantiationService.createInstance(d.LogService)),this._instantiationService.setService(u.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(_.CoreService)),this._instantiationService.setService(u.ICoreService,this.coreService),this.coreMouseService=this.register(this._instantiationService.createInstance(s.CoreMouseService)),this._instantiationService.setService(u.ICoreMouseService,this.coreMouseService),this.unicodeService=this.register(this._instantiationService.createInstance(t.UnicodeService)),this._instantiationService.setService(u.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(i.CharsetService),this._instantiationService.setService(u.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(m.OscLinkService),this._instantiationService.setService(u.IOscLinkService,this._oscLinkService),this._inputHandler=this.register(new l.InputHandler(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this.register((0,e.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,e.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,e.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,e.forwardEvent)(this.coreService.onBinary,this._onBinary)),this.register(this.coreService.onRequestScrollToBottom(()=>this.scrollToBottom())),this.register(this.coreService.onUserInput(()=>this._writeBuffer.handleUserInput())),this.register(this.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],()=>this._handleWindowsPtyOptionChange())),this.register(this._bufferService.onScroll(y=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this.register(this._inputHandler.onScroll(y=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this._writeBuffer=this.register(new v.WriteBuffer((y,k)=>this._inputHandler.parse(y,k))),this.register((0,e.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed))}write(L,y){this._writeBuffer.write(L,y)}writeSync(L,y){this._logService.logLevel<=u.LogLevelEnum.WARN&&!h&&(this._logService.warn("writeSync is unreliable and will be removed soon."),h=!0),this._writeBuffer.writeSync(L,y)}resize(L,y){isNaN(L)||isNaN(y)||(L=Math.max(L,f.MINIMUM_COLS),y=Math.max(y,f.MINIMUM_ROWS),this._bufferService.resize(L,y))}scroll(L,y=!1){this._bufferService.scroll(L,y)}scrollLines(L,y,k){this._bufferService.scrollLines(L,y,k)}scrollPages(L){this.scrollLines(L*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(L){let y=L-this._bufferService.buffer.ydisp;y!==0&&this.scrollLines(y)}registerEscHandler(L,y){return this._inputHandler.registerEscHandler(L,y)}registerDcsHandler(L,y){return this._inputHandler.registerDcsHandler(L,y)}registerCsiHandler(L,y){return this._inputHandler.registerCsiHandler(L,y)}registerOscHandler(L,y){return this._inputHandler.registerOscHandler(L,y)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let L=!1,y=this.optionsService.rawOptions.windowsPty;y&&y.buildNumber!==void 0&&y.buildNumber!==void 0?L=y.backend==="conpty"&&y.buildNumber<21376:this.optionsService.rawOptions.windowsMode&&(L=!0),L?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){let L=[];L.push(this.onLineFeed(a.updateWindowsModeWrappedState.bind(null,this._bufferService))),L.push(this.registerCsiHandler({final:"H"},()=>((0,a.updateWindowsModeWrappedState)(this._bufferService),!1))),this._windowsWrappingHeuristics.value=(0,c.toDisposable)(()=>{for(let y of L)y.dispose()})}}}r.CoreTerminal=p},8460:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.forwardEvent=r.EventEmitter=void 0,r.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=o=>(this._listeners.push(o),{dispose:()=>{if(!this._disposed){for(let c=0;cc.fire(u))}},5435:function(M,r,o){var c=this&&this.__decorate||function(O,C,w,E){var D,P=arguments.length,H=P<3?C:E===null?E=Object.getOwnPropertyDescriptor(C,w):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")H=Reflect.decorate(O,C,w,E);else for(var j=O.length-1;j>=0;j--)(D=O[j])&&(H=(P<3?D(H):P>3?D(C,w,H):D(C,w))||H);return P>3&&H&&Object.defineProperty(C,w,H),H},u=this&&this.__param||function(O,C){return function(w,E){C(w,E,O)}};Object.defineProperty(r,"__esModule",{value:!0}),r.InputHandler=r.WindowsOptionsReportType=void 0;let n=o(2584),d=o(7116),f=o(2015),g=o(844),_=o(482),e=o(8437),s=o(8460),t=o(643),i=o(511),a=o(3734),l=o(2585),v=o(6242),m=o(6351),h=o(5941),p={"(":0,")":1,"*":2,"+":3,"-":1,".":2},b=131072;function L(O,C){if(O>24)return C.setWinLines||!1;switch(O){case 1:return!!C.restoreWin;case 2:return!!C.minimizeWin;case 3:return!!C.setWinPosition;case 4:return!!C.setWinSizePixels;case 5:return!!C.raiseWin;case 6:return!!C.lowerWin;case 7:return!!C.refreshWin;case 8:return!!C.setWinSizeChars;case 9:return!!C.maximizeWin;case 10:return!!C.fullscreenWin;case 11:return!!C.getWinState;case 13:return!!C.getWinPosition;case 14:return!!C.getWinSizePixels;case 15:return!!C.getScreenSizePixels;case 16:return!!C.getCellSizePixels;case 18:return!!C.getWinSizeChars;case 19:return!!C.getScreenSizeChars;case 20:return!!C.getIconTitle;case 21:return!!C.getWinTitle;case 22:return!!C.pushTitle;case 23:return!!C.popTitle;case 24:return!!C.setWinLines}return!1}var y;(function(O){O[O.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",O[O.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(y||(r.WindowsOptionsReportType=y={}));let k=0;class x extends g.Disposable{getAttrData(){return this._curAttrData}constructor(C,w,E,D,P,H,j,W,V=new f.EscapeSequenceParser){super(),this._bufferService=C,this._charsetService=w,this._coreService=E,this._logService=D,this._optionsService=P,this._oscLinkService=H,this._coreMouseService=j,this._unicodeService=W,this._parser=V,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new _.StringToUtf32,this._utf8Decoder=new _.Utf8ToUtf32,this._workCell=new i.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=this.register(new s.EventEmitter),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this.register(new s.EventEmitter),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this.register(new s.EventEmitter),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this.register(new s.EventEmitter),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this.register(new s.EventEmitter),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this.register(new s.EventEmitter),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this.register(new s.EventEmitter),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this.register(new s.EventEmitter),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this.register(new s.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this.register(new s.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onScroll=this.register(new s.EventEmitter),this.onScroll=this._onScroll.event,this._onTitleChange=this.register(new s.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onColor=this.register(new s.EventEmitter),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this.register(this._parser),this._dirtyRowTracker=new B(this._bufferService),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(S=>this._activeBuffer=S.activeBuffer)),this._parser.setCsiHandlerFallback((S,R)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(S),params:R.toArray()})}),this._parser.setEscHandlerFallback(S=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(S)})}),this._parser.setExecuteHandlerFallback(S=>{this._logService.debug("Unknown EXECUTE code: ",{code:S})}),this._parser.setOscHandlerFallback((S,R,A)=>{this._logService.debug("Unknown OSC code: ",{identifier:S,action:R,data:A})}),this._parser.setDcsHandlerFallback((S,R,A)=>{R==="HOOK"&&(A=A.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(S),action:R,payload:A})}),this._parser.setPrintHandler((S,R,A)=>this.print(S,R,A)),this._parser.registerCsiHandler({final:"@"},S=>this.insertChars(S)),this._parser.registerCsiHandler({intermediates:" ",final:"@"},S=>this.scrollLeft(S)),this._parser.registerCsiHandler({final:"A"},S=>this.cursorUp(S)),this._parser.registerCsiHandler({intermediates:" ",final:"A"},S=>this.scrollRight(S)),this._parser.registerCsiHandler({final:"B"},S=>this.cursorDown(S)),this._parser.registerCsiHandler({final:"C"},S=>this.cursorForward(S)),this._parser.registerCsiHandler({final:"D"},S=>this.cursorBackward(S)),this._parser.registerCsiHandler({final:"E"},S=>this.cursorNextLine(S)),this._parser.registerCsiHandler({final:"F"},S=>this.cursorPrecedingLine(S)),this._parser.registerCsiHandler({final:"G"},S=>this.cursorCharAbsolute(S)),this._parser.registerCsiHandler({final:"H"},S=>this.cursorPosition(S)),this._parser.registerCsiHandler({final:"I"},S=>this.cursorForwardTab(S)),this._parser.registerCsiHandler({final:"J"},S=>this.eraseInDisplay(S,!1)),this._parser.registerCsiHandler({prefix:"?",final:"J"},S=>this.eraseInDisplay(S,!0)),this._parser.registerCsiHandler({final:"K"},S=>this.eraseInLine(S,!1)),this._parser.registerCsiHandler({prefix:"?",final:"K"},S=>this.eraseInLine(S,!0)),this._parser.registerCsiHandler({final:"L"},S=>this.insertLines(S)),this._parser.registerCsiHandler({final:"M"},S=>this.deleteLines(S)),this._parser.registerCsiHandler({final:"P"},S=>this.deleteChars(S)),this._parser.registerCsiHandler({final:"S"},S=>this.scrollUp(S)),this._parser.registerCsiHandler({final:"T"},S=>this.scrollDown(S)),this._parser.registerCsiHandler({final:"X"},S=>this.eraseChars(S)),this._parser.registerCsiHandler({final:"Z"},S=>this.cursorBackwardTab(S)),this._parser.registerCsiHandler({final:"`"},S=>this.charPosAbsolute(S)),this._parser.registerCsiHandler({final:"a"},S=>this.hPositionRelative(S)),this._parser.registerCsiHandler({final:"b"},S=>this.repeatPrecedingCharacter(S)),this._parser.registerCsiHandler({final:"c"},S=>this.sendDeviceAttributesPrimary(S)),this._parser.registerCsiHandler({prefix:">",final:"c"},S=>this.sendDeviceAttributesSecondary(S)),this._parser.registerCsiHandler({final:"d"},S=>this.linePosAbsolute(S)),this._parser.registerCsiHandler({final:"e"},S=>this.vPositionRelative(S)),this._parser.registerCsiHandler({final:"f"},S=>this.hVPosition(S)),this._parser.registerCsiHandler({final:"g"},S=>this.tabClear(S)),this._parser.registerCsiHandler({final:"h"},S=>this.setMode(S)),this._parser.registerCsiHandler({prefix:"?",final:"h"},S=>this.setModePrivate(S)),this._parser.registerCsiHandler({final:"l"},S=>this.resetMode(S)),this._parser.registerCsiHandler({prefix:"?",final:"l"},S=>this.resetModePrivate(S)),this._parser.registerCsiHandler({final:"m"},S=>this.charAttributes(S)),this._parser.registerCsiHandler({final:"n"},S=>this.deviceStatus(S)),this._parser.registerCsiHandler({prefix:"?",final:"n"},S=>this.deviceStatusPrivate(S)),this._parser.registerCsiHandler({intermediates:"!",final:"p"},S=>this.softReset(S)),this._parser.registerCsiHandler({intermediates:" ",final:"q"},S=>this.setCursorStyle(S)),this._parser.registerCsiHandler({final:"r"},S=>this.setScrollRegion(S)),this._parser.registerCsiHandler({final:"s"},S=>this.saveCursor(S)),this._parser.registerCsiHandler({final:"t"},S=>this.windowOptions(S)),this._parser.registerCsiHandler({final:"u"},S=>this.restoreCursor(S)),this._parser.registerCsiHandler({intermediates:"'",final:"}"},S=>this.insertColumns(S)),this._parser.registerCsiHandler({intermediates:"'",final:"~"},S=>this.deleteColumns(S)),this._parser.registerCsiHandler({intermediates:'"',final:"q"},S=>this.selectProtected(S)),this._parser.registerCsiHandler({intermediates:"$",final:"p"},S=>this.requestMode(S,!0)),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},S=>this.requestMode(S,!1)),this._parser.setExecuteHandler(n.C0.BEL,()=>this.bell()),this._parser.setExecuteHandler(n.C0.LF,()=>this.lineFeed()),this._parser.setExecuteHandler(n.C0.VT,()=>this.lineFeed()),this._parser.setExecuteHandler(n.C0.FF,()=>this.lineFeed()),this._parser.setExecuteHandler(n.C0.CR,()=>this.carriageReturn()),this._parser.setExecuteHandler(n.C0.BS,()=>this.backspace()),this._parser.setExecuteHandler(n.C0.HT,()=>this.tab()),this._parser.setExecuteHandler(n.C0.SO,()=>this.shiftOut()),this._parser.setExecuteHandler(n.C0.SI,()=>this.shiftIn()),this._parser.setExecuteHandler(n.C1.IND,()=>this.index()),this._parser.setExecuteHandler(n.C1.NEL,()=>this.nextLine()),this._parser.setExecuteHandler(n.C1.HTS,()=>this.tabSet()),this._parser.registerOscHandler(0,new v.OscHandler(S=>(this.setTitle(S),this.setIconName(S),!0))),this._parser.registerOscHandler(1,new v.OscHandler(S=>this.setIconName(S))),this._parser.registerOscHandler(2,new v.OscHandler(S=>this.setTitle(S))),this._parser.registerOscHandler(4,new v.OscHandler(S=>this.setOrReportIndexedColor(S))),this._parser.registerOscHandler(8,new v.OscHandler(S=>this.setHyperlink(S))),this._parser.registerOscHandler(10,new v.OscHandler(S=>this.setOrReportFgColor(S))),this._parser.registerOscHandler(11,new v.OscHandler(S=>this.setOrReportBgColor(S))),this._parser.registerOscHandler(12,new v.OscHandler(S=>this.setOrReportCursorColor(S))),this._parser.registerOscHandler(104,new v.OscHandler(S=>this.restoreIndexedColor(S))),this._parser.registerOscHandler(110,new v.OscHandler(S=>this.restoreFgColor(S))),this._parser.registerOscHandler(111,new v.OscHandler(S=>this.restoreBgColor(S))),this._parser.registerOscHandler(112,new v.OscHandler(S=>this.restoreCursorColor(S))),this._parser.registerEscHandler({final:"7"},()=>this.saveCursor()),this._parser.registerEscHandler({final:"8"},()=>this.restoreCursor()),this._parser.registerEscHandler({final:"D"},()=>this.index()),this._parser.registerEscHandler({final:"E"},()=>this.nextLine()),this._parser.registerEscHandler({final:"H"},()=>this.tabSet()),this._parser.registerEscHandler({final:"M"},()=>this.reverseIndex()),this._parser.registerEscHandler({final:"="},()=>this.keypadApplicationMode()),this._parser.registerEscHandler({final:">"},()=>this.keypadNumericMode()),this._parser.registerEscHandler({final:"c"},()=>this.fullReset()),this._parser.registerEscHandler({final:"n"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"o"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"|"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"}"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"~"},()=>this.setgLevel(1)),this._parser.registerEscHandler({intermediates:"%",final:"@"},()=>this.selectDefaultCharset()),this._parser.registerEscHandler({intermediates:"%",final:"G"},()=>this.selectDefaultCharset());for(let S in d.CHARSETS)this._parser.registerEscHandler({intermediates:"(",final:S},()=>this.selectCharset("("+S)),this._parser.registerEscHandler({intermediates:")",final:S},()=>this.selectCharset(")"+S)),this._parser.registerEscHandler({intermediates:"*",final:S},()=>this.selectCharset("*"+S)),this._parser.registerEscHandler({intermediates:"+",final:S},()=>this.selectCharset("+"+S)),this._parser.registerEscHandler({intermediates:"-",final:S},()=>this.selectCharset("-"+S)),this._parser.registerEscHandler({intermediates:".",final:S},()=>this.selectCharset("."+S)),this._parser.registerEscHandler({intermediates:"/",final:S},()=>this.selectCharset("/"+S));this._parser.registerEscHandler({intermediates:"#",final:"8"},()=>this.screenAlignmentPattern()),this._parser.setErrorHandler(S=>(this._logService.error("Parsing error: ",S),S)),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new m.DcsHandler((S,R)=>this.requestStatusString(S,R)))}_preserveStack(C,w,E,D){this._parseStack.paused=!0,this._parseStack.cursorStartX=C,this._parseStack.cursorStartY=w,this._parseStack.decodedLength=E,this._parseStack.position=D}_logSlowResolvingAsync(C){this._logService.logLevel<=l.LogLevelEnum.WARN&&Promise.race([C,new Promise((w,E)=>setTimeout(()=>E("#SLOW_TIMEOUT"),5e3))]).catch(w=>{if(w!=="#SLOW_TIMEOUT")throw w;console.warn("async parser handler taking longer than 5000 ms")})}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(C,w){let E,D=this._activeBuffer.x,P=this._activeBuffer.y,H=0,j=this._parseStack.paused;if(j){if(E=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,w))return this._logSlowResolvingAsync(E),E;D=this._parseStack.cursorStartX,P=this._parseStack.cursorStartY,this._parseStack.paused=!1,C.length>b&&(H=this._parseStack.position+b)}if(this._logService.logLevel<=l.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+(typeof C=="string"?` "${C}"`:` "${Array.prototype.map.call(C,W=>String.fromCharCode(W)).join("")}"`),typeof C=="string"?C.split("").map(W=>W.charCodeAt(0)):C),this._parseBuffer.lengthb)for(let W=H;W0&&A.getWidth(this._activeBuffer.x-1)===2&&A.setCellFromCodePoint(this._activeBuffer.x-1,0,1,R.fg,R.bg,R.extended);for(let T=w;T=W){if(V){for(;this._activeBuffer.x=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),A=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=W-1,P===2)continue}if(S&&(A.insertCells(this._activeBuffer.x,P,this._activeBuffer.getNullCell(R),R),A.getWidth(W-1)===2&&A.setCellFromCodePoint(W-1,t.NULL_CELL_CODE,t.NULL_CELL_WIDTH,R.fg,R.bg,R.extended)),A.setCellFromCodePoint(this._activeBuffer.x++,D,P,R.fg,R.bg,R.extended),P>0)for(;--P;)A.setCellFromCodePoint(this._activeBuffer.x++,0,0,R.fg,R.bg,R.extended)}else A.getWidth(this._activeBuffer.x-1)?A.addCodepointToCell(this._activeBuffer.x-1,D):A.addCodepointToCell(this._activeBuffer.x-2,D)}E-w>0&&(A.loadCell(this._activeBuffer.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x0&&A.getWidth(this._activeBuffer.x)===0&&!A.hasContent(this._activeBuffer.x)&&A.setCellFromCodePoint(this._activeBuffer.x,0,1,R.fg,R.bg,R.extended),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(C,w){return C.final!=="t"||C.prefix||C.intermediates?this._parser.registerCsiHandler(C,w):this._parser.registerCsiHandler(C,E=>!L(E.params[0],this._optionsService.rawOptions.windowOptions)||w(E))}registerDcsHandler(C,w){return this._parser.registerDcsHandler(C,new m.DcsHandler(w))}registerEscHandler(C,w){return this._parser.registerEscHandler(C,w)}registerOscHandler(C,w){return this._parser.registerOscHandler(C,new v.OscHandler(w))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){var C;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(this._activeBuffer.x===0&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(!((C=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))===null||C===void 0)&&C.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;let w=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);w.hasWidth(this._activeBuffer.x)&&!w.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let C=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-C),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(C=this._bufferService.cols-1){this._activeBuffer.x=Math.min(C,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(C,w){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=C,this._activeBuffer.y=this._activeBuffer.scrollTop+w):(this._activeBuffer.x=C,this._activeBuffer.y=w),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(C,w){this._restrictCursor(),this._setCursor(this._activeBuffer.x+C,this._activeBuffer.y+w)}cursorUp(C){let w=this._activeBuffer.y-this._activeBuffer.scrollTop;return w>=0?this._moveCursor(0,-Math.min(w,C.params[0]||1)):this._moveCursor(0,-(C.params[0]||1)),!0}cursorDown(C){let w=this._activeBuffer.scrollBottom-this._activeBuffer.y;return w>=0?this._moveCursor(0,Math.min(w,C.params[0]||1)):this._moveCursor(0,C.params[0]||1),!0}cursorForward(C){return this._moveCursor(C.params[0]||1,0),!0}cursorBackward(C){return this._moveCursor(-(C.params[0]||1),0),!0}cursorNextLine(C){return this.cursorDown(C),this._activeBuffer.x=0,!0}cursorPrecedingLine(C){return this.cursorUp(C),this._activeBuffer.x=0,!0}cursorCharAbsolute(C){return this._setCursor((C.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(C){return this._setCursor(C.length>=2?(C.params[1]||1)-1:0,(C.params[0]||1)-1),!0}charPosAbsolute(C){return this._setCursor((C.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(C){return this._moveCursor(C.params[0]||1,0),!0}linePosAbsolute(C){return this._setCursor(this._activeBuffer.x,(C.params[0]||1)-1),!0}vPositionRelative(C){return this._moveCursor(0,C.params[0]||1),!0}hVPosition(C){return this.cursorPosition(C),!0}tabClear(C){let w=C.params[0];return w===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:w===3&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(C){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let w=C.params[0]||1;for(;w--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(C){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let w=C.params[0]||1;for(;w--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(C){let w=C.params[0];return w===1&&(this._curAttrData.bg|=536870912),w!==2&&w!==0||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(C,w,E,D=!1,P=!1){let H=this._activeBuffer.lines.get(this._activeBuffer.ybase+C);H.replaceCells(w,E,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData(),P),D&&(H.isWrapped=!1)}_resetBufferLine(C,w=!1){let E=this._activeBuffer.lines.get(this._activeBuffer.ybase+C);E&&(E.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),w),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+C),E.isWrapped=!1)}eraseInDisplay(C,w=!1){let E;switch(this._restrictCursor(this._bufferService.cols),C.params[0]){case 0:for(E=this._activeBuffer.y,this._dirtyRowTracker.markDirty(E),this._eraseInBufferLine(E++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,w);E=this._bufferService.cols&&(this._activeBuffer.lines.get(E+1).isWrapped=!1);E--;)this._resetBufferLine(E,w);this._dirtyRowTracker.markDirty(0);break;case 2:for(E=this._bufferService.rows,this._dirtyRowTracker.markDirty(E-1);E--;)this._resetBufferLine(E,w);this._dirtyRowTracker.markDirty(0);break;case 3:let D=this._activeBuffer.lines.length-this._bufferService.rows;D>0&&(this._activeBuffer.lines.trimStart(D),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-D,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-D,0),this._onScroll.fire(0))}return!0}eraseInLine(C,w=!1){switch(this._restrictCursor(this._bufferService.cols),C.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,w);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,w);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,w)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(C){this._restrictCursor();let w=C.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(n.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(n.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(C){return C.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(n.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(n.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(C.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(n.C0.ESC+"[>83;40003;0c")),!0}_is(C){return(this._optionsService.rawOptions.termName+"").indexOf(C)===0}setMode(C){for(let w=0;wq?1:2,T=C.params[0];return z=T,F=w?T===2?4:T===4?A(H.modes.insertMode):T===12?3:T===20?A(R.convertEol):0:T===1?A(E.applicationCursorKeys):T===3?R.windowOptions.setWinLines?W===80?2:W===132?1:0:0:T===6?A(E.origin):T===7?A(E.wraparound):T===8?3:T===9?A(D==="X10"):T===12?A(R.cursorBlink):T===25?A(!H.isCursorHidden):T===45?A(E.reverseWraparound):T===66?A(E.applicationKeypad):T===67?4:T===1e3?A(D==="VT200"):T===1002?A(D==="DRAG"):T===1003?A(D==="ANY"):T===1004?A(E.sendFocus):T===1005?4:T===1006?A(P==="SGR"):T===1015?4:T===1016?A(P==="SGR_PIXELS"):T===1048?1:T===47||T===1047||T===1049?A(V===S):T===2004?A(E.bracketedPasteMode):0,H.triggerDataEvent(`${n.C0.ESC}[${w?"":"?"}${z};${F}$y`),!0;var z,F}_updateAttrColor(C,w,E,D,P){return w===2?(C|=50331648,C&=-16777216,C|=a.AttributeData.fromColorRGB([E,D,P])):w===5&&(C&=-50331904,C|=33554432|255&E),C}_extractColor(C,w,E){let D=[0,0,-1,0,0,0],P=0,H=0;do{if(D[H+P]=C.params[w+H],C.hasSubParams(w+H)){let j=C.getSubParams(w+H),W=0;do D[1]===5&&(P=1),D[H+W+1+P]=j[W];while(++W=2||D[1]===2&&H+P>=5)break;D[1]&&(P=1)}while(++H+w5)&&(C=1),w.extended.underlineStyle=C,w.fg|=268435456,C===0&&(w.fg&=-268435457),w.updateExtended()}_processSGR0(C){C.fg=e.DEFAULT_ATTR_DATA.fg,C.bg=e.DEFAULT_ATTR_DATA.bg,C.extended=C.extended.clone(),C.extended.underlineStyle=0,C.extended.underlineColor&=-67108864,C.updateExtended()}charAttributes(C){if(C.length===1&&C.params[0]===0)return this._processSGR0(this._curAttrData),!0;let w=C.length,E,D=this._curAttrData;for(let P=0;P=30&&E<=37?(D.fg&=-50331904,D.fg|=16777216|E-30):E>=40&&E<=47?(D.bg&=-50331904,D.bg|=16777216|E-40):E>=90&&E<=97?(D.fg&=-50331904,D.fg|=16777224|E-90):E>=100&&E<=107?(D.bg&=-50331904,D.bg|=16777224|E-100):E===0?this._processSGR0(D):E===1?D.fg|=134217728:E===3?D.bg|=67108864:E===4?(D.fg|=268435456,this._processUnderline(C.hasSubParams(P)?C.getSubParams(P)[0]:1,D)):E===5?D.fg|=536870912:E===7?D.fg|=67108864:E===8?D.fg|=1073741824:E===9?D.fg|=2147483648:E===2?D.bg|=134217728:E===21?this._processUnderline(2,D):E===22?(D.fg&=-134217729,D.bg&=-134217729):E===23?D.bg&=-67108865:E===24?(D.fg&=-268435457,this._processUnderline(0,D)):E===25?D.fg&=-536870913:E===27?D.fg&=-67108865:E===28?D.fg&=-1073741825:E===29?D.fg&=2147483647:E===39?(D.fg&=-67108864,D.fg|=16777215&e.DEFAULT_ATTR_DATA.fg):E===49?(D.bg&=-67108864,D.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):E===38||E===48||E===58?P+=this._extractColor(C,P,D):E===53?D.bg|=1073741824:E===55?D.bg&=-1073741825:E===59?(D.extended=D.extended.clone(),D.extended.underlineColor=-1,D.updateExtended()):E===100?(D.fg&=-67108864,D.fg|=16777215&e.DEFAULT_ATTR_DATA.fg,D.bg&=-67108864,D.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",E);return!0}deviceStatus(C){switch(C.params[0]){case 5:this._coreService.triggerDataEvent(`${n.C0.ESC}[0n`);break;case 6:let w=this._activeBuffer.y+1,E=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${n.C0.ESC}[${w};${E}R`)}return!0}deviceStatusPrivate(C){if(C.params[0]===6){let w=this._activeBuffer.y+1,E=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${n.C0.ESC}[?${w};${E}R`)}return!0}softReset(C){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(C){let w=C.params[0]||1;switch(w){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}let E=w%2==1;return this._optionsService.options.cursorBlink=E,!0}setScrollRegion(C){let w=C.params[0]||1,E;return(C.length<2||(E=C.params[1])>this._bufferService.rows||E===0)&&(E=this._bufferService.rows),E>w&&(this._activeBuffer.scrollTop=w-1,this._activeBuffer.scrollBottom=E-1,this._setCursor(0,0)),!0}windowOptions(C){if(!L(C.params[0],this._optionsService.rawOptions.windowOptions))return!0;let w=C.length>1?C.params[1]:0;switch(C.params[0]){case 14:w!==2&&this._onRequestWindowsOptionsReport.fire(y.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(y.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${n.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:w!==0&&w!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),w!==0&&w!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:w!==0&&w!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),w!==0&&w!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}saveCursor(C){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(C){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(C){return this._windowTitle=C,this._onTitleChange.fire(C),!0}setIconName(C){return this._iconName=C,!0}setOrReportIndexedColor(C){let w=[],E=C.split(";");for(;E.length>1;){let D=E.shift(),P=E.shift();if(/^\d+$/.exec(D)){let H=parseInt(D);if(I(H))if(P==="?")w.push({type:0,index:H});else{let j=(0,h.parseColor)(P);j&&w.push({type:1,index:H,color:j})}}}return w.length&&this._onColor.fire(w),!0}setHyperlink(C){let w=C.split(";");return!(w.length<2)&&(w[1]?this._createHyperlink(w[0],w[1]):!w[0]&&this._finishHyperlink())}_createHyperlink(C,w){this._getCurrentLinkId()&&this._finishHyperlink();let E=C.split(":"),D,P=E.findIndex(H=>H.startsWith("id="));return P!==-1&&(D=E[P].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:D,uri:w}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(C,w){let E=C.split(";");for(let D=0;D=this._specialColors.length);++D,++w)if(E[D]==="?")this._onColor.fire([{type:0,index:this._specialColors[w]}]);else{let P=(0,h.parseColor)(E[D]);P&&this._onColor.fire([{type:1,index:this._specialColors[w],color:P}])}return!0}setOrReportFgColor(C){return this._setOrReportSpecialColor(C,0)}setOrReportBgColor(C){return this._setOrReportSpecialColor(C,1)}setOrReportCursorColor(C){return this._setOrReportSpecialColor(C,2)}restoreIndexedColor(C){if(!C)return this._onColor.fire([{type:2}]),!0;let w=[],E=C.split(";");for(let D=0;D=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){let C=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,C,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}setgLevel(C){return this._charsetService.setgLevel(C),!0}screenAlignmentPattern(){let C=new i.CellData;C.content=4194373,C.fg=this._curAttrData.fg,C.bg=this._curAttrData.bg,this._setCursor(0,0);for(let w=0;w(this._coreService.triggerDataEvent(`${n.C0.ESC}${P}${n.C0.ESC}\\`),!0))(C==='"q'?`P1$r${this._curAttrData.isProtected()?1:0}"q`:C==='"p'?'P1$r61;1"p':C==="r"?`P1$r${E.scrollTop+1};${E.scrollBottom+1}r`:C==="m"?"P1$r0m":C===" q"?`P1$r${{block:2,underline:4,bar:6}[D.cursorStyle]-(D.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(C,w){this._dirtyRowTracker.markRangeDirty(C,w)}}r.InputHandler=x;let B=class{constructor(O){this._bufferService=O,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(O){Othis.end&&(this.end=O)}markRangeDirty(O,C){O>C&&(k=O,O=C,C=k),Othis.end&&(this.end=C)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};function I(O){return 0<=O&&O<256}B=c([u(0,l.IBufferService)],B)},844:(M,r)=>{function o(c){for(let u of c)u.dispose();c.length=0}Object.defineProperty(r,"__esModule",{value:!0}),r.getDisposeArrayDisposable=r.disposeArray=r.toDisposable=r.MutableDisposable=r.Disposable=void 0,r.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(let c of this._disposables)c.dispose();this._disposables.length=0}register(c){return this._disposables.push(c),c}unregister(c){let u=this._disposables.indexOf(c);u!==-1&&this._disposables.splice(u,1)}},r.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(c){var u;this._isDisposed||c===this._value||((u=this._value)===null||u===void 0||u.dispose(),this._value=c)}clear(){this.value=void 0}dispose(){var c;this._isDisposed=!0,(c=this._value)===null||c===void 0||c.dispose(),this._value=void 0}},r.toDisposable=function(c){return{dispose:c}},r.disposeArray=o,r.getDisposeArrayDisposable=function(c){return{dispose:()=>o(c)}}},1505:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.FourKeyMap=r.TwoKeyMap=void 0;class o{constructor(){this._data={}}set(u,n,d){this._data[u]||(this._data[u]={}),this._data[u][n]=d}get(u,n){return this._data[u]?this._data[u][n]:void 0}clear(){this._data={}}}r.TwoKeyMap=o,r.FourKeyMap=class{constructor(){this._data=new o}set(c,u,n,d,f){this._data.get(c,u)||this._data.set(c,u,new o),this._data.get(c,u).set(n,d,f)}get(c,u,n,d){var f;return(f=this._data.get(c,u))===null||f===void 0?void 0:f.get(n,d)}clear(){this._data.clear()}}},6114:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.isChromeOS=r.isLinux=r.isWindows=r.isIphone=r.isIpad=r.isMac=r.getSafariVersion=r.isSafari=r.isLegacyEdge=r.isFirefox=r.isNode=void 0,r.isNode=typeof navigator>"u";let o=r.isNode?"node":navigator.userAgent,c=r.isNode?"node":navigator.platform;r.isFirefox=o.includes("Firefox"),r.isLegacyEdge=o.includes("Edge"),r.isSafari=/^((?!chrome|android).)*safari/i.test(o),r.getSafariVersion=function(){if(!r.isSafari)return 0;let u=o.match(/Version\/(\d+)/);return u===null||u.length<2?0:parseInt(u[1])},r.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(c),r.isIpad=c==="iPad",r.isIphone=c==="iPhone",r.isWindows=["Windows","Win16","Win32","WinCE"].includes(c),r.isLinux=c.indexOf("Linux")>=0,r.isChromeOS=/\bCrOS\b/.test(o)},6106:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.SortedList=void 0;let o=0;r.SortedList=class{constructor(c){this._getKey=c,this._array=[]}clear(){this._array.length=0}insert(c){this._array.length!==0?(o=this._search(this._getKey(c)),this._array.splice(o,0,c)):this._array.push(c)}delete(c){if(this._array.length===0)return!1;let u=this._getKey(c);if(u===void 0||(o=this._search(u),o===-1)||this._getKey(this._array[o])!==u)return!1;do if(this._array[o]===c)return this._array.splice(o,1),!0;while(++o=this._array.length)&&this._getKey(this._array[o])===c))do yield this._array[o];while(++o=this._array.length)&&this._getKey(this._array[o])===c))do u(this._array[o]);while(++o=u;){let d=u+n>>1,f=this._getKey(this._array[d]);if(f>c)n=d-1;else{if(!(f0&&this._getKey(this._array[d-1])===c;)d--;return d}u=d+1}}return u}}},7226:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.DebouncedIdleTask=r.IdleTaskQueue=r.PriorityTaskQueue=void 0;let c=o(6114);class u{constructor(){this._tasks=[],this._i=0}enqueue(f){this._tasks.push(f),this._start()}flush(){for(;this._is)return e-g<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(e-g))}ms`),void this._start();e=s}this.clear()}}class n extends u{_requestCallback(f){return setTimeout(()=>f(this._createDeadline(16)))}_cancelCallback(f){clearTimeout(f)}_createDeadline(f){let g=Date.now()+f;return{timeRemaining:()=>Math.max(0,g-Date.now())}}}r.PriorityTaskQueue=n,r.IdleTaskQueue=!c.isNode&&"requestIdleCallback"in window?class extends u{_requestCallback(d){return requestIdleCallback(d)}_cancelCallback(d){cancelIdleCallback(d)}}:n,r.DebouncedIdleTask=class{constructor(){this._queue=new r.IdleTaskQueue}set(d){this._queue.clear(),this._queue.enqueue(d)}flush(){this._queue.flush()}}},9282:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.updateWindowsModeWrappedState=void 0;let c=o(643);r.updateWindowsModeWrappedState=function(u){let n=u.buffer.lines.get(u.buffer.ybase+u.buffer.y-1),d=n?.get(u.cols-1),f=u.buffer.lines.get(u.buffer.ybase+u.buffer.y);f&&d&&(f.isWrapped=d[c.CHAR_DATA_CODE_INDEX]!==c.NULL_CELL_CODE&&d[c.CHAR_DATA_CODE_INDEX]!==c.WHITESPACE_CELL_CODE)}},3734:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ExtendedAttrs=r.AttributeData=void 0;class o{constructor(){this.fg=0,this.bg=0,this.extended=new c}static toColorRGB(n){return[n>>>16&255,n>>>8&255,255&n]}static fromColorRGB(n){return(255&n[0])<<16|(255&n[1])<<8|255&n[2]}clone(){let n=new o;return n.fg=this.fg,n.bg=this.bg,n.extended=this.extended.clone(),n}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}isOverline(){return 1073741824&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return(50331648&this.fg)==50331648}isBgRGB(){return(50331648&this.bg)==50331648}isFgPalette(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432}isBgPalette(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432}isFgDefault(){return(50331648&this.fg)==0}isBgDefault(){return(50331648&this.bg)==0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}}r.AttributeData=o;class c{get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(n){this._ext=n}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(n){this._ext&=-469762049,this._ext|=n<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(n){this._ext&=-67108864,this._ext|=67108863&n}get urlId(){return this._urlId}set urlId(n){this._urlId=n}constructor(n=0,d=0){this._ext=0,this._urlId=0,this._ext=n,this._urlId=d}clone(){return new c(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}}r.ExtendedAttrs=c},9092:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Buffer=r.MAX_BUFFER_SIZE=void 0;let c=o(6349),u=o(7226),n=o(3734),d=o(8437),f=o(4634),g=o(511),_=o(643),e=o(4863),s=o(7116);r.MAX_BUFFER_SIZE=4294967295,r.Buffer=class{constructor(t,i,a){this._hasScrollback=t,this._optionsService=i,this._bufferService=a,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=d.DEFAULT_ATTR_DATA.clone(),this.savedCharset=s.DEFAULT_CHARSET,this.markers=[],this._nullCell=g.CellData.fromCharData([0,_.NULL_CELL_CHAR,_.NULL_CELL_WIDTH,_.NULL_CELL_CODE]),this._whitespaceCell=g.CellData.fromCharData([0,_.WHITESPACE_CELL_CHAR,_.WHITESPACE_CELL_WIDTH,_.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new u.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new c.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(t){return t?(this._nullCell.fg=t.fg,this._nullCell.bg=t.bg,this._nullCell.extended=t.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new n.ExtendedAttrs),this._nullCell}getWhitespaceCell(t){return t?(this._whitespaceCell.fg=t.fg,this._whitespaceCell.bg=t.bg,this._whitespaceCell.extended=t.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new n.ExtendedAttrs),this._whitespaceCell}getBlankLine(t,i){return new d.BufferLine(this._bufferService.cols,this.getNullCell(t),i)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){let t=this.ybase+this.y-this.ydisp;return t>=0&&tr.MAX_BUFFER_SIZE?r.MAX_BUFFER_SIZE:i}fillViewportRows(t){if(this.lines.length===0){t===void 0&&(t=d.DEFAULT_ATTR_DATA);let i=this._rows;for(;i--;)this.lines.push(this.getBlankLine(t))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new c.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(t,i){let a=this.getNullCell(d.DEFAULT_ATTR_DATA),l=0,v=this._getCorrectBufferLength(i);if(v>this.lines.maxLength&&(this.lines.maxLength=v),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+m+1?(this.ybase--,m++,this.ydisp>0&&this.ydisp--):this.lines.push(new d.BufferLine(t,a)));else for(let h=this._rows;h>i;h--)this.lines.length>i+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(v0&&(this.lines.trimStart(h),this.ybase=Math.max(this.ybase-h,0),this.ydisp=Math.max(this.ydisp-h,0),this.savedY=Math.max(this.savedY-h,0)),this.lines.maxLength=v}this.x=Math.min(this.x,t-1),this.y=Math.min(this.y,i-1),m&&(this.y+=m),this.savedX=Math.min(this.savedX,t-1),this.scrollTop=0}if(this.scrollBottom=i-1,this._isReflowEnabled&&(this._reflow(t,i),this._cols>t))for(let m=0;m.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue(()=>this._batchedMemoryCleanup()))}_batchedMemoryCleanup(){let t=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,t=!1);let i=0;for(;this._memoryCleanupPosition100)return!0;return t}get _isReflowEnabled(){let t=this._optionsService.rawOptions.windowsPty;return t&&t.buildNumber?this._hasScrollback&&t.backend==="conpty"&&t.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(t,i){this._cols!==t&&(t>this._cols?this._reflowLarger(t,i):this._reflowSmaller(t,i))}_reflowLarger(t,i){let a=(0,f.reflowLargerGetLinesToRemove)(this.lines,this._cols,t,this.ybase+this.y,this.getNullCell(d.DEFAULT_ATTR_DATA));if(a.length>0){let l=(0,f.reflowLargerCreateNewLayout)(this.lines,a);(0,f.reflowLargerApplyNewLayout)(this.lines,l.layout),this._reflowLargerAdjustViewport(t,i,l.countRemoved)}}_reflowLargerAdjustViewport(t,i,a){let l=this.getNullCell(d.DEFAULT_ATTR_DATA),v=a;for(;v-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length=0;m--){let h=this.lines.get(m);if(!h||!h.isWrapped&&h.getTrimmedLength()<=t)continue;let p=[h];for(;h.isWrapped&&m>0;)h=this.lines.get(--m),p.unshift(h);let b=this.ybase+this.y;if(b>=m&&b0&&(l.push({start:m+p.length+v,newLines:B}),v+=B.length),p.push(...B);let I=y.length-1,O=y[I];O===0&&(I--,O=y[I]);let C=p.length-k-1,w=L;for(;C>=0;){let D=Math.min(w,O);if(p[I]===void 0)break;if(p[I].copyCellsFrom(p[C],w-D,O-D,D,!0),O-=D,O===0&&(I--,O=y[I]),w-=D,w===0){C--;let P=Math.max(C,0);w=(0,f.getWrappedLineTrimmedLength)(p,P,this._cols)}}for(let D=0;D0;)this.ybase===0?this.y0){let m=[],h=[];for(let I=0;I=0;I--)if(y&&y.start>b+k){for(let O=y.newLines.length-1;O>=0;O--)this.lines.set(I--,y.newLines[O]);I++,m.push({index:b+1,amount:y.newLines.length}),k+=y.newLines.length,y=l[++L]}else this.lines.set(I,h[b--]);let x=0;for(let I=m.length-1;I>=0;I--)m[I].index+=x,this.lines.onInsertEmitter.fire(m[I]),x+=m[I].amount;let B=Math.max(0,p+v-this.lines.maxLength);B>0&&this.lines.onTrimEmitter.fire(B)}}translateBufferLineToString(t,i,a=0,l){let v=this.lines.get(t);return v?v.translateToString(i,a,l):""}getWrappedRangeForLine(t){let i=t,a=t;for(;i>0&&this.lines.get(i).isWrapped;)i--;for(;a+10;);return t>=this._cols?this._cols-1:t<0?0:t}nextStop(t){for(t==null&&(t=this.x);!this.tabs[++t]&&t=this._cols?this._cols-1:t<0?0:t}clearMarkers(t){this._isClearing=!0;for(let i=0;i{i.line-=a,i.line<0&&i.dispose()})),i.register(this.lines.onInsert(a=>{i.line>=a.index&&(i.line+=a.amount)})),i.register(this.lines.onDelete(a=>{i.line>=a.index&&i.linea.index&&(i.line-=a.amount)})),i.register(i.onDispose(()=>this._removeMarker(i))),i}_removeMarker(t){this._isClearing||this.markers.splice(this.markers.indexOf(t),1)}}},8437:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferLine=r.DEFAULT_ATTR_DATA=void 0;let c=o(3734),u=o(511),n=o(643),d=o(482);r.DEFAULT_ATTR_DATA=Object.freeze(new c.AttributeData);let f=0;class g{constructor(e,s,t=!1){this.isWrapped=t,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*e);let i=s||u.CellData.fromCharData([0,n.NULL_CELL_CHAR,n.NULL_CELL_WIDTH,n.NULL_CELL_CODE]);for(let a=0;a>22,2097152&s?this._combined[e].charCodeAt(this._combined[e].length-1):t]}set(e,s){this._data[3*e+1]=s[n.CHAR_DATA_ATTR_INDEX],s[n.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[e]=s[1],this._data[3*e+0]=2097152|e|s[n.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=s[n.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|s[n.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(e){return this._data[3*e+0]>>22}hasWidth(e){return 12582912&this._data[3*e+0]}getFg(e){return this._data[3*e+1]}getBg(e){return this._data[3*e+2]}hasContent(e){return 4194303&this._data[3*e+0]}getCodePoint(e){let s=this._data[3*e+0];return 2097152&s?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&s}isCombined(e){return 2097152&this._data[3*e+0]}getString(e){let s=this._data[3*e+0];return 2097152&s?this._combined[e]:2097151&s?(0,d.stringFromCodePoint)(2097151&s):""}isProtected(e){return 536870912&this._data[3*e+2]}loadCell(e,s){return f=3*e,s.content=this._data[f+0],s.fg=this._data[f+1],s.bg=this._data[f+2],2097152&s.content&&(s.combinedData=this._combined[e]),268435456&s.bg&&(s.extended=this._extendedAttrs[e]),s}setCell(e,s){2097152&s.content&&(this._combined[e]=s.combinedData),268435456&s.bg&&(this._extendedAttrs[e]=s.extended),this._data[3*e+0]=s.content,this._data[3*e+1]=s.fg,this._data[3*e+2]=s.bg}setCellFromCodePoint(e,s,t,i,a,l){268435456&a&&(this._extendedAttrs[e]=l),this._data[3*e+0]=s|t<<22,this._data[3*e+1]=i,this._data[3*e+2]=a}addCodepointToCell(e,s){let t=this._data[3*e+0];2097152&t?this._combined[e]+=(0,d.stringFromCodePoint)(s):(2097151&t?(this._combined[e]=(0,d.stringFromCodePoint)(2097151&t)+(0,d.stringFromCodePoint)(s),t&=-2097152,t|=2097152):t=s|4194304,this._data[3*e+0]=t)}insertCells(e,s,t,i){if((e%=this.length)&&this.getWidth(e-1)===2&&this.setCellFromCodePoint(e-1,0,1,i?.fg||0,i?.bg||0,i?.extended||new c.ExtendedAttrs),s=0;--l)this.setCell(e+s+l,this.loadCell(e+l,a));for(let l=0;lthis.length){if(this._data.buffer.byteLength>=4*t)this._data=new Uint32Array(this._data.buffer,0,t);else{let i=new Uint32Array(t);i.set(this._data),this._data=i}for(let i=this.length;i=e&&delete this._combined[v]}let a=Object.keys(this._extendedAttrs);for(let l=0;l=e&&delete this._extendedAttrs[v]}}return this.length=e,4*t*2=0;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0}getNoBgTrimmedLength(){for(let e=this.length-1;e>=0;--e)if(4194303&this._data[3*e+0]||50331648&this._data[3*e+2])return e+(this._data[3*e+0]>>22);return 0}copyCellsFrom(e,s,t,i,a){let l=e._data;if(a)for(let m=i-1;m>=0;m--){for(let h=0;h<3;h++)this._data[3*(t+m)+h]=l[3*(s+m)+h];268435456&l[3*(s+m)+2]&&(this._extendedAttrs[t+m]=e._extendedAttrs[s+m])}else for(let m=0;m=s&&(this._combined[h-s+t]=e._combined[h])}}translateToString(e=!1,s=0,t=this.length){e&&(t=Math.min(t,this.getTrimmedLength()));let i="";for(;s>22||1}return i}}r.BufferLine=g},4841:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.getRangeLength=void 0,r.getRangeLength=function(o,c){if(o.start.y>o.end.y)throw new Error(`Buffer range end (${o.end.x}, ${o.end.y}) cannot be before start (${o.start.x}, ${o.start.y})`);return c*(o.end.y-o.start.y)+(o.end.x-o.start.x+1)}},4634:(M,r)=>{function o(c,u,n){if(u===c.length-1)return c[u].getTrimmedLength();let d=!c[u].hasContent(n-1)&&c[u].getWidth(n-1)===1,f=c[u+1].getWidth(0)===2;return d&&f?n-1:n}Object.defineProperty(r,"__esModule",{value:!0}),r.getWrappedLineTrimmedLength=r.reflowSmallerGetNewLineLengths=r.reflowLargerApplyNewLayout=r.reflowLargerCreateNewLayout=r.reflowLargerGetLinesToRemove=void 0,r.reflowLargerGetLinesToRemove=function(c,u,n,d,f){let g=[];for(let _=0;_=_&&d0&&(h>i||t[h].getTrimmedLength()===0);h--)m++;m>0&&(g.push(_+t.length-m),g.push(m)),_+=t.length-1}return g},r.reflowLargerCreateNewLayout=function(c,u){let n=[],d=0,f=u[d],g=0;for(let _=0;_o(c,t,u)).reduce((s,t)=>s+t),g=0,_=0,e=0;for(;es&&(g-=s,_++);let t=c[_].getWidth(g-1)===2;t&&g--;let i=t?n-1:n;d.push(i),e+=i}return d},r.getWrappedLineTrimmedLength=o},5295:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferSet=void 0;let c=o(8460),u=o(844),n=o(9092);class d extends u.Disposable{constructor(g,_){super(),this._optionsService=g,this._bufferService=_,this._onBufferActivate=this.register(new c.EventEmitter),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this.register(this._optionsService.onSpecificOptionChange("scrollback",()=>this.resize(this._bufferService.cols,this._bufferService.rows))),this.register(this._optionsService.onSpecificOptionChange("tabStopWidth",()=>this.setupTabStops()))}reset(){this._normal=new n.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new n.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(g){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(g),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(g,_){this._normal.resize(g,_),this._alt.resize(g,_),this.setupTabStops(g)}setupTabStops(g){this._normal.setupTabStops(g),this._alt.setupTabStops(g)}}r.BufferSet=d},511:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.CellData=void 0;let c=o(482),u=o(643),n=o(3734);class d extends n.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new n.ExtendedAttrs,this.combinedData=""}static fromCharData(g){let _=new d;return _.setFromCharData(g),_}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,c.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(g){this.fg=g[u.CHAR_DATA_ATTR_INDEX],this.bg=0;let _=!1;if(g[u.CHAR_DATA_CHAR_INDEX].length>2)_=!0;else if(g[u.CHAR_DATA_CHAR_INDEX].length===2){let e=g[u.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=e&&e<=56319){let s=g[u.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=s&&s<=57343?this.content=1024*(e-55296)+s-56320+65536|g[u.CHAR_DATA_WIDTH_INDEX]<<22:_=!0}else _=!0}else this.content=g[u.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|g[u.CHAR_DATA_WIDTH_INDEX]<<22;_&&(this.combinedData=g[u.CHAR_DATA_CHAR_INDEX],this.content=2097152|g[u.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}r.CellData=d},643:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.WHITESPACE_CELL_CODE=r.WHITESPACE_CELL_WIDTH=r.WHITESPACE_CELL_CHAR=r.NULL_CELL_CODE=r.NULL_CELL_WIDTH=r.NULL_CELL_CHAR=r.CHAR_DATA_CODE_INDEX=r.CHAR_DATA_WIDTH_INDEX=r.CHAR_DATA_CHAR_INDEX=r.CHAR_DATA_ATTR_INDEX=r.DEFAULT_EXT=r.DEFAULT_ATTR=r.DEFAULT_COLOR=void 0,r.DEFAULT_COLOR=0,r.DEFAULT_ATTR=256|r.DEFAULT_COLOR<<9,r.DEFAULT_EXT=0,r.CHAR_DATA_ATTR_INDEX=0,r.CHAR_DATA_CHAR_INDEX=1,r.CHAR_DATA_WIDTH_INDEX=2,r.CHAR_DATA_CODE_INDEX=3,r.NULL_CELL_CHAR="",r.NULL_CELL_WIDTH=1,r.NULL_CELL_CODE=0,r.WHITESPACE_CELL_CHAR=" ",r.WHITESPACE_CELL_WIDTH=1,r.WHITESPACE_CELL_CODE=32},4863:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Marker=void 0;let c=o(8460),u=o(844);class n{get id(){return this._id}constructor(f){this.line=f,this.isDisposed=!1,this._disposables=[],this._id=n._nextId++,this._onDispose=this.register(new c.EventEmitter),this.onDispose=this._onDispose.event}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,u.disposeArray)(this._disposables),this._disposables.length=0)}register(f){return this._disposables.push(f),f}}r.Marker=n,n._nextId=1},7116:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.DEFAULT_CHARSET=r.CHARSETS=void 0,r.CHARSETS={},r.DEFAULT_CHARSET=r.CHARSETS.B,r.CHARSETS[0]={"`":"\u25C6",a:"\u2592",b:"\u2409",c:"\u240C",d:"\u240D",e:"\u240A",f:"\xB0",g:"\xB1",h:"\u2424",i:"\u240B",j:"\u2518",k:"\u2510",l:"\u250C",m:"\u2514",n:"\u253C",o:"\u23BA",p:"\u23BB",q:"\u2500",r:"\u23BC",s:"\u23BD",t:"\u251C",u:"\u2524",v:"\u2534",w:"\u252C",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03C0","|":"\u2260","}":"\xA3","~":"\xB7"},r.CHARSETS.A={"#":"\xA3"},r.CHARSETS.B=void 0,r.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},r.CHARSETS.C=r.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},r.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},r.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},r.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},r.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},r.CHARSETS.E=r.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},r.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},r.CHARSETS.H=r.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},r.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},2584:(M,r)=>{var o,c,u;Object.defineProperty(r,"__esModule",{value:!0}),r.C1_ESCAPED=r.C1=r.C0=void 0,function(n){n.NUL="\0",n.SOH="",n.STX="",n.ETX="",n.EOT="",n.ENQ="",n.ACK="",n.BEL="\x07",n.BS="\b",n.HT=" ",n.LF=` `,n.VT="\v",n.FF="\f",n.CR="\r",n.SO="",n.SI="",n.DLE="",n.DC1="",n.DC2="",n.DC3="",n.DC4="",n.NAK="",n.SYN="",n.ETB="",n.CAN="",n.EM="",n.SUB="",n.ESC="\x1B",n.FS="",n.GS="",n.RS="",n.US="",n.SP=" ",n.DEL="\x7F"}(o||(r.C0=o={})),function(n){n.PAD="\x80",n.HOP="\x81",n.BPH="\x82",n.NBH="\x83",n.IND="\x84",n.NEL="\x85",n.SSA="\x86",n.ESA="\x87",n.HTS="\x88",n.HTJ="\x89",n.VTS="\x8A",n.PLD="\x8B",n.PLU="\x8C",n.RI="\x8D",n.SS2="\x8E",n.SS3="\x8F",n.DCS="\x90",n.PU1="\x91",n.PU2="\x92",n.STS="\x93",n.CCH="\x94",n.MW="\x95",n.SPA="\x96",n.EPA="\x97",n.SOS="\x98",n.SGCI="\x99",n.SCI="\x9A",n.CSI="\x9B",n.ST="\x9C",n.OSC="\x9D",n.PM="\x9E",n.APC="\x9F"}(c||(r.C1=c={})),function(n){n.ST=`${o.ESC}\\`}(u||(r.C1_ESCAPED=u={}))},7399:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.evaluateKeyboardEvent=void 0;let c=o(2584),u={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};r.evaluateKeyboardEvent=function(n,d,f,g){let _={type:0,cancel:!1,key:void 0},e=(n.shiftKey?1:0)|(n.altKey?2:0)|(n.ctrlKey?4:0)|(n.metaKey?8:0);switch(n.keyCode){case 0:n.key==="UIKeyInputUpArrow"?_.key=d?c.C0.ESC+"OA":c.C0.ESC+"[A":n.key==="UIKeyInputLeftArrow"?_.key=d?c.C0.ESC+"OD":c.C0.ESC+"[D":n.key==="UIKeyInputRightArrow"?_.key=d?c.C0.ESC+"OC":c.C0.ESC+"[C":n.key==="UIKeyInputDownArrow"&&(_.key=d?c.C0.ESC+"OB":c.C0.ESC+"[B");break;case 8:if(n.altKey){_.key=c.C0.ESC+c.C0.DEL;break}_.key=c.C0.DEL;break;case 9:if(n.shiftKey){_.key=c.C0.ESC+"[Z";break}_.key=c.C0.HT,_.cancel=!0;break;case 13:_.key=n.altKey?c.C0.ESC+c.C0.CR:c.C0.CR,_.cancel=!0;break;case 27:_.key=c.C0.ESC,n.altKey&&(_.key=c.C0.ESC+c.C0.ESC),_.cancel=!0;break;case 37:if(n.metaKey)break;e?(_.key=c.C0.ESC+"[1;"+(e+1)+"D",_.key===c.C0.ESC+"[1;3D"&&(_.key=c.C0.ESC+(f?"b":"[1;5D"))):_.key=d?c.C0.ESC+"OD":c.C0.ESC+"[D";break;case 39:if(n.metaKey)break;e?(_.key=c.C0.ESC+"[1;"+(e+1)+"C",_.key===c.C0.ESC+"[1;3C"&&(_.key=c.C0.ESC+(f?"f":"[1;5C"))):_.key=d?c.C0.ESC+"OC":c.C0.ESC+"[C";break;case 38:if(n.metaKey)break;e?(_.key=c.C0.ESC+"[1;"+(e+1)+"A",f||_.key!==c.C0.ESC+"[1;3A"||(_.key=c.C0.ESC+"[1;5A")):_.key=d?c.C0.ESC+"OA":c.C0.ESC+"[A";break;case 40:if(n.metaKey)break;e?(_.key=c.C0.ESC+"[1;"+(e+1)+"B",f||_.key!==c.C0.ESC+"[1;3B"||(_.key=c.C0.ESC+"[1;5B")):_.key=d?c.C0.ESC+"OB":c.C0.ESC+"[B";break;case 45:n.shiftKey||n.ctrlKey||(_.key=c.C0.ESC+"[2~");break;case 46:_.key=e?c.C0.ESC+"[3;"+(e+1)+"~":c.C0.ESC+"[3~";break;case 36:_.key=e?c.C0.ESC+"[1;"+(e+1)+"H":d?c.C0.ESC+"OH":c.C0.ESC+"[H";break;case 35:_.key=e?c.C0.ESC+"[1;"+(e+1)+"F":d?c.C0.ESC+"OF":c.C0.ESC+"[F";break;case 33:n.shiftKey?_.type=2:n.ctrlKey?_.key=c.C0.ESC+"[5;"+(e+1)+"~":_.key=c.C0.ESC+"[5~";break;case 34:n.shiftKey?_.type=3:n.ctrlKey?_.key=c.C0.ESC+"[6;"+(e+1)+"~":_.key=c.C0.ESC+"[6~";break;case 112:_.key=e?c.C0.ESC+"[1;"+(e+1)+"P":c.C0.ESC+"OP";break;case 113:_.key=e?c.C0.ESC+"[1;"+(e+1)+"Q":c.C0.ESC+"OQ";break;case 114:_.key=e?c.C0.ESC+"[1;"+(e+1)+"R":c.C0.ESC+"OR";break;case 115:_.key=e?c.C0.ESC+"[1;"+(e+1)+"S":c.C0.ESC+"OS";break;case 116:_.key=e?c.C0.ESC+"[15;"+(e+1)+"~":c.C0.ESC+"[15~";break;case 117:_.key=e?c.C0.ESC+"[17;"+(e+1)+"~":c.C0.ESC+"[17~";break;case 118:_.key=e?c.C0.ESC+"[18;"+(e+1)+"~":c.C0.ESC+"[18~";break;case 119:_.key=e?c.C0.ESC+"[19;"+(e+1)+"~":c.C0.ESC+"[19~";break;case 120:_.key=e?c.C0.ESC+"[20;"+(e+1)+"~":c.C0.ESC+"[20~";break;case 121:_.key=e?c.C0.ESC+"[21;"+(e+1)+"~":c.C0.ESC+"[21~";break;case 122:_.key=e?c.C0.ESC+"[23;"+(e+1)+"~":c.C0.ESC+"[23~";break;case 123:_.key=e?c.C0.ESC+"[24;"+(e+1)+"~":c.C0.ESC+"[24~";break;default:if(!n.ctrlKey||n.shiftKey||n.altKey||n.metaKey)if(f&&!g||!n.altKey||n.metaKey)!f||n.altKey||n.ctrlKey||n.shiftKey||!n.metaKey?n.key&&!n.ctrlKey&&!n.altKey&&!n.metaKey&&n.keyCode>=48&&n.key.length===1?_.key=n.key:n.key&&n.ctrlKey&&(n.key==="_"&&(_.key=c.C0.US),n.key==="@"&&(_.key=c.C0.NUL)):n.keyCode===65&&(_.type=1);else{let s=u[n.keyCode],t=s?.[n.shiftKey?1:0];if(t)_.key=c.C0.ESC+t;else if(n.keyCode>=65&&n.keyCode<=90){let i=n.ctrlKey?n.keyCode-64:n.keyCode+32,a=String.fromCharCode(i);n.shiftKey&&(a=a.toUpperCase()),_.key=c.C0.ESC+a}else if(n.keyCode===32)_.key=c.C0.ESC+(n.ctrlKey?c.C0.NUL:" ");else if(n.key==="Dead"&&n.code.startsWith("Key")){let i=n.code.slice(3,4);n.shiftKey||(i=i.toLowerCase()),_.key=c.C0.ESC+i,_.cancel=!0}}else n.keyCode>=65&&n.keyCode<=90?_.key=String.fromCharCode(n.keyCode-64):n.keyCode===32?_.key=c.C0.NUL:n.keyCode>=51&&n.keyCode<=55?_.key=String.fromCharCode(n.keyCode-51+27):n.keyCode===56?_.key=c.C0.DEL:n.keyCode===219?_.key=c.C0.ESC:n.keyCode===220?_.key=c.C0.FS:n.keyCode===221&&(_.key=c.C0.GS)}return _}},482:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Utf8ToUtf32=r.StringToUtf32=r.utf32ToString=r.stringFromCodePoint=void 0,r.stringFromCodePoint=function(o){return o>65535?(o-=65536,String.fromCharCode(55296+(o>>10))+String.fromCharCode(o%1024+56320)):String.fromCharCode(o)},r.utf32ToString=function(o,c=0,u=o.length){let n="";for(let d=c;d65535?(f-=65536,n+=String.fromCharCode(55296+(f>>10))+String.fromCharCode(f%1024+56320)):n+=String.fromCharCode(f)}return n},r.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(o,c){let u=o.length;if(!u)return 0;let n=0,d=0;if(this._interim){let f=o.charCodeAt(d++);56320<=f&&f<=57343?c[n++]=1024*(this._interim-55296)+f-56320+65536:(c[n++]=this._interim,c[n++]=f),this._interim=0}for(let f=d;f=u)return this._interim=g,n;let _=o.charCodeAt(f);56320<=_&&_<=57343?c[n++]=1024*(g-55296)+_-56320+65536:(c[n++]=g,c[n++]=_)}else g!==65279&&(c[n++]=g)}return n}},r.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(o,c){let u=o.length;if(!u)return 0;let n,d,f,g,_=0,e=0,s=0;if(this.interim[0]){let a=!1,l=this.interim[0];l&=(224&l)==192?31:(240&l)==224?15:7;let v,m=0;for(;(v=63&this.interim[++m])&&m<4;)l<<=6,l|=v;let h=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,p=h-m;for(;s=u)return 0;if(v=o[s++],(192&v)!=128){s--,a=!0;break}this.interim[m++]=v,l<<=6,l|=63&v}a||(h===2?l<128?s--:c[_++]=l:h===3?l<2048||l>=55296&&l<=57343||l===65279||(c[_++]=l):l<65536||l>1114111||(c[_++]=l)),this.interim.fill(0)}let t=u-4,i=s;for(;i=u)return this.interim[0]=n,_;if(d=o[i++],(192&d)!=128){i--;continue}if(e=(31&n)<<6|63&d,e<128){i--;continue}c[_++]=e}else if((240&n)==224){if(i>=u)return this.interim[0]=n,_;if(d=o[i++],(192&d)!=128){i--;continue}if(i>=u)return this.interim[0]=n,this.interim[1]=d,_;if(f=o[i++],(192&f)!=128){i--;continue}if(e=(15&n)<<12|(63&d)<<6|63&f,e<2048||e>=55296&&e<=57343||e===65279)continue;c[_++]=e}else if((248&n)==240){if(i>=u)return this.interim[0]=n,_;if(d=o[i++],(192&d)!=128){i--;continue}if(i>=u)return this.interim[0]=n,this.interim[1]=d,_;if(f=o[i++],(192&f)!=128){i--;continue}if(i>=u)return this.interim[0]=n,this.interim[1]=d,this.interim[2]=f,_;if(g=o[i++],(192&g)!=128){i--;continue}if(e=(7&n)<<18|(63&d)<<12|(63&f)<<6|63&g,e<65536||e>1114111)continue;c[_++]=e}}return _}}},225:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeV6=void 0;let o=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],c=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],u;r.UnicodeV6=class{constructor(){if(this.version="6",!u){u=new Uint8Array(65536),u.fill(1),u[0]=0,u.fill(0,1,32),u.fill(0,127,160),u.fill(2,4352,4448),u[9001]=2,u[9002]=2,u.fill(2,11904,42192),u[12351]=1,u.fill(2,44032,55204),u.fill(2,63744,64256),u.fill(2,65040,65050),u.fill(2,65072,65136),u.fill(2,65280,65377),u.fill(2,65504,65511);for(let n=0;nf[e][1])return!1;for(;e>=_;)if(g=_+e>>1,d>f[g][1])_=g+1;else{if(!(d=131072&&n<=196605||n>=196608&&n<=262141?2:1}}},5981:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.WriteBuffer=void 0;let c=o(8460),u=o(844);class n extends u.Disposable{constructor(f){super(),this._action=f,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new c.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(f,g){if(g!==void 0&&this._syncCalls>g)return void(this._syncCalls=0);if(this._pendingData+=f.length,this._writeBuffer.push(f),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;let _;for(this._isSyncWriting=!0;_=this._writeBuffer.shift();){this._action(_);let e=this._callbacks.shift();e&&e()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(f,g){if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=f.length,this._writeBuffer.push(f),this._callbacks.push(g),void this._innerWrite();setTimeout(()=>this._innerWrite())}this._pendingData+=f.length,this._writeBuffer.push(f),this._callbacks.push(g)}_innerWrite(f=0,g=!0){let _=f||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){let e=this._writeBuffer[this._bufferOffset],s=this._action(e,g);if(s){let i=a=>Date.now()-_>=12?setTimeout(()=>this._innerWrite(0,a)):this._innerWrite(_,a);return void s.catch(a=>(queueMicrotask(()=>{throw a}),Promise.resolve(!1))).then(i)}let t=this._callbacks[this._bufferOffset];if(t&&t(),this._bufferOffset++,this._pendingData-=e.length,Date.now()-_>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(()=>this._innerWrite())):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}r.WriteBuffer=n},5941:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.toRgbString=r.parseColor=void 0;let o=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,c=/^[\da-f]+$/;function u(n,d){let f=n.toString(16),g=f.length<2?"0"+f:f;switch(d){case 4:return f[0];case 8:return g;case 12:return(g+g).slice(0,3);default:return g+g}}r.parseColor=function(n){if(!n)return;let d=n.toLowerCase();if(d.indexOf("rgb:")===0){d=d.slice(4);let f=o.exec(d);if(f){let g=f[1]?15:f[4]?255:f[7]?4095:65535;return[Math.round(parseInt(f[1]||f[4]||f[7]||f[10],16)/g*255),Math.round(parseInt(f[2]||f[5]||f[8]||f[11],16)/g*255),Math.round(parseInt(f[3]||f[6]||f[9]||f[12],16)/g*255)]}}else if(d.indexOf("#")===0&&(d=d.slice(1),c.exec(d)&&[3,6,9,12].includes(d.length))){let f=d.length/3,g=[0,0,0];for(let _=0;_<3;++_){let e=parseInt(d.slice(f*_,f*_+f),16);g[_]=f===1?e<<4:f===2?e:f===3?e>>4:e>>8}return g}},r.toRgbString=function(n,d=16){let[f,g,_]=n;return`rgb:${u(f,d)}/${u(g,d)}/${u(_,d)}`}},5770:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.PAYLOAD_LIMIT=void 0,r.PAYLOAD_LIMIT=1e7},6351:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.DcsHandler=r.DcsParser=void 0;let c=o(482),u=o(8742),n=o(5770),d=[];r.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=d,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=d}registerHandler(g,_){this._handlers[g]===void 0&&(this._handlers[g]=[]);let e=this._handlers[g];return e.push(_),{dispose:()=>{let s=e.indexOf(_);s!==-1&&e.splice(s,1)}}}clearHandler(g){this._handlers[g]&&delete this._handlers[g]}setHandlerFallback(g){this._handlerFb=g}reset(){if(this._active.length)for(let g=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;g>=0;--g)this._active[g].unhook(!1);this._stack.paused=!1,this._active=d,this._ident=0}hook(g,_){if(this.reset(),this._ident=g,this._active=this._handlers[g]||d,this._active.length)for(let e=this._active.length-1;e>=0;e--)this._active[e].hook(_);else this._handlerFb(this._ident,"HOOK",_)}put(g,_,e){if(this._active.length)for(let s=this._active.length-1;s>=0;s--)this._active[s].put(g,_,e);else this._handlerFb(this._ident,"PUT",(0,c.utf32ToString)(g,_,e))}unhook(g,_=!0){if(this._active.length){let e=!1,s=this._active.length-1,t=!1;if(this._stack.paused&&(s=this._stack.loopPosition-1,e=_,t=this._stack.fallThrough,this._stack.paused=!1),!t&&e===!1){for(;s>=0&&(e=this._active[s].unhook(g),e!==!0);s--)if(e instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=s,this._stack.fallThrough=!1,e;s--}for(;s>=0;s--)if(e=this._active[s].unhook(!1),e instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=s,this._stack.fallThrough=!0,e}else this._handlerFb(this._ident,"UNHOOK",g);this._active=d,this._ident=0}};let f=new u.Params;f.addParam(0),r.DcsHandler=class{constructor(g){this._handler=g,this._data="",this._params=f,this._hitLimit=!1}hook(g){this._params=g.length>1||g.params[0]?g.clone():f,this._data="",this._hitLimit=!1}put(g,_,e){this._hitLimit||(this._data+=(0,c.utf32ToString)(g,_,e),this._data.length>n.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(g){let _=!1;if(this._hitLimit)_=!1;else if(g&&(_=this._handler(this._data,this._params),_ instanceof Promise))return _.then(e=>(this._params=f,this._data="",this._hitLimit=!1,e));return this._params=f,this._data="",this._hitLimit=!1,_}}},2015:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.EscapeSequenceParser=r.VT500_TRANSITION_TABLE=r.TransitionTable=void 0;let c=o(844),u=o(8742),n=o(6242),d=o(6351);class f{constructor(s){this.table=new Uint8Array(s)}setDefault(s,t){this.table.fill(s<<4|t)}add(s,t,i,a){this.table[t<<8|s]=i<<4|a}addMany(s,t,i,a){for(let l=0;lh),t=(m,h)=>s.slice(m,h),i=t(32,127),a=t(0,24);a.push(25),a.push.apply(a,t(28,32));let l=t(0,14),v;for(v in e.setDefault(1,0),e.addMany(i,0,2,0),l)e.addMany([24,26,153,154],v,3,0),e.addMany(t(128,144),v,3,0),e.addMany(t(144,152),v,3,0),e.add(156,v,0,0),e.add(27,v,11,1),e.add(157,v,4,8),e.addMany([152,158,159],v,0,7),e.add(155,v,11,3),e.add(144,v,11,9);return e.addMany(a,0,3,0),e.addMany(a,1,3,1),e.add(127,1,0,1),e.addMany(a,8,0,8),e.addMany(a,3,3,3),e.add(127,3,0,3),e.addMany(a,4,3,4),e.add(127,4,0,4),e.addMany(a,6,3,6),e.addMany(a,5,3,5),e.add(127,5,0,5),e.addMany(a,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(i,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(t(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(i,7,0,7),e.addMany(a,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(t(64,127),3,7,0),e.addMany(t(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(t(48,60),4,8,4),e.addMany(t(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(t(32,64),6,0,6),e.add(127,6,0,6),e.addMany(t(64,127),6,0,0),e.addMany(t(32,48),3,9,5),e.addMany(t(32,48),5,9,5),e.addMany(t(48,64),5,0,6),e.addMany(t(64,127),5,7,0),e.addMany(t(32,48),4,9,5),e.addMany(t(32,48),1,9,2),e.addMany(t(32,48),2,9,2),e.addMany(t(48,127),2,10,0),e.addMany(t(48,80),1,10,0),e.addMany(t(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(t(96,127),1,10,0),e.add(80,1,11,9),e.addMany(a,9,0,9),e.add(127,9,0,9),e.addMany(t(28,32),9,0,9),e.addMany(t(32,48),9,9,12),e.addMany(t(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(a,11,0,11),e.addMany(t(32,128),11,0,11),e.addMany(t(28,32),11,0,11),e.addMany(a,10,0,10),e.add(127,10,0,10),e.addMany(t(28,32),10,0,10),e.addMany(t(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(t(32,48),10,9,12),e.addMany(a,12,0,12),e.add(127,12,0,12),e.addMany(t(28,32),12,0,12),e.addMany(t(32,48),12,9,12),e.addMany(t(48,64),12,0,11),e.addMany(t(64,127),12,12,13),e.addMany(t(64,127),10,12,13),e.addMany(t(64,127),9,12,13),e.addMany(a,13,13,13),e.addMany(i,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(g,0,2,0),e.add(g,8,5,8),e.add(g,6,0,6),e.add(g,11,0,11),e.add(g,13,13,13),e}();class _ extends c.Disposable{constructor(s=r.VT500_TRANSITION_TABLE){super(),this._transitions=s,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new u.Params,this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._printHandlerFb=(t,i,a)=>{},this._executeHandlerFb=t=>{},this._csiHandlerFb=(t,i)=>{},this._escHandlerFb=t=>{},this._errorHandlerFb=t=>t,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,c.toDisposable)(()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)})),this._oscParser=this.register(new n.OscParser),this._dcsParser=this.register(new d.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},()=>!0)}_identifier(s,t=[64,126]){let i=0;if(s.prefix){if(s.prefix.length>1)throw new Error("only one byte as prefix supported");if(i=s.prefix.charCodeAt(0),i&&60>i||i>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(s.intermediates){if(s.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let l=0;lv||v>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");i<<=8,i|=v}}if(s.final.length!==1)throw new Error("final must be a single byte");let a=s.final.charCodeAt(0);if(t[0]>a||a>t[1])throw new Error(`final must be in range ${t[0]} .. ${t[1]}`);return i<<=8,i|=a,i}identToString(s){let t=[];for(;s;)t.push(String.fromCharCode(255&s)),s>>=8;return t.reverse().join("")}setPrintHandler(s){this._printHandler=s}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(s,t){let i=this._identifier(s,[48,126]);this._escHandlers[i]===void 0&&(this._escHandlers[i]=[]);let a=this._escHandlers[i];return a.push(t),{dispose:()=>{let l=a.indexOf(t);l!==-1&&a.splice(l,1)}}}clearEscHandler(s){this._escHandlers[this._identifier(s,[48,126])]&&delete this._escHandlers[this._identifier(s,[48,126])]}setEscHandlerFallback(s){this._escHandlerFb=s}setExecuteHandler(s,t){this._executeHandlers[s.charCodeAt(0)]=t}clearExecuteHandler(s){this._executeHandlers[s.charCodeAt(0)]&&delete this._executeHandlers[s.charCodeAt(0)]}setExecuteHandlerFallback(s){this._executeHandlerFb=s}registerCsiHandler(s,t){let i=this._identifier(s);this._csiHandlers[i]===void 0&&(this._csiHandlers[i]=[]);let a=this._csiHandlers[i];return a.push(t),{dispose:()=>{let l=a.indexOf(t);l!==-1&&a.splice(l,1)}}}clearCsiHandler(s){this._csiHandlers[this._identifier(s)]&&delete this._csiHandlers[this._identifier(s)]}setCsiHandlerFallback(s){this._csiHandlerFb=s}registerDcsHandler(s,t){return this._dcsParser.registerHandler(this._identifier(s),t)}clearDcsHandler(s){this._dcsParser.clearHandler(this._identifier(s))}setDcsHandlerFallback(s){this._dcsParser.setHandlerFallback(s)}registerOscHandler(s,t){return this._oscParser.registerHandler(s,t)}clearOscHandler(s){this._oscParser.clearHandler(s)}setOscHandlerFallback(s){this._oscParser.setHandlerFallback(s)}setErrorHandler(s){this._errorHandler=s}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._parseStack.state!==0&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(s,t,i,a,l){this._parseStack.state=s,this._parseStack.handlers=t,this._parseStack.handlerPos=i,this._parseStack.transition=a,this._parseStack.chunkPos=l}parse(s,t,i){let a,l=0,v=0,m=0;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,m=this._parseStack.chunkPos+1;else{if(i===void 0||this._parseStack.state===1)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");let h=this._parseStack.handlers,p=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(i===!1&&p>-1){for(;p>=0&&(a=h[p](this._params),a!==!0);p--)if(a instanceof Promise)return this._parseStack.handlerPos=p,a}this._parseStack.handlers=[];break;case 4:if(i===!1&&p>-1){for(;p>=0&&(a=h[p](),a!==!0);p--)if(a instanceof Promise)return this._parseStack.handlerPos=p,a}this._parseStack.handlers=[];break;case 6:if(l=s[this._parseStack.chunkPos],a=this._dcsParser.unhook(l!==24&&l!==26,i),a)return a;l===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(l=s[this._parseStack.chunkPos],a=this._oscParser.end(l!==24&&l!==26,i),a)return a;l===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,m=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(let h=m;h>4){case 2:for(let k=h+1;;++k){if(k>=t||(l=s[k])<32||l>126&&l=t||(l=s[k])<32||l>126&&l=t||(l=s[k])<32||l>126&&l=t||(l=s[k])<32||l>126&&l=0&&(a=p[b](this._params),a!==!0);b--)if(a instanceof Promise)return this._preserveStack(3,p,b,v,h),a;b<0&&this._csiHandlerFb(this._collect<<8|l,this._params),this.precedingCodepoint=0;break;case 8:do switch(l){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(l-48)}while(++h47&&l<60);h--;break;case 9:this._collect<<=8,this._collect|=l;break;case 10:let L=this._escHandlers[this._collect<<8|l],y=L?L.length-1:-1;for(;y>=0&&(a=L[y](),a!==!0);y--)if(a instanceof Promise)return this._preserveStack(4,L,y,v,h),a;y<0&&this._escHandlerFb(this._collect<<8|l),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|l,this._params);break;case 13:for(let k=h+1;;++k)if(k>=t||(l=s[k])===24||l===26||l===27||l>127&&l=t||(l=s[k])<32||l>127&&l{Object.defineProperty(r,"__esModule",{value:!0}),r.OscHandler=r.OscParser=void 0;let c=o(5770),u=o(482),n=[];r.OscParser=class{constructor(){this._state=0,this._active=n,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(d,f){this._handlers[d]===void 0&&(this._handlers[d]=[]);let g=this._handlers[d];return g.push(f),{dispose:()=>{let _=g.indexOf(f);_!==-1&&g.splice(_,1)}}}clearHandler(d){this._handlers[d]&&delete this._handlers[d]}setHandlerFallback(d){this._handlerFb=d}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=n}reset(){if(this._state===2)for(let d=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;d>=0;--d)this._active[d].end(!1);this._stack.paused=!1,this._active=n,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||n,this._active.length)for(let d=this._active.length-1;d>=0;d--)this._active[d].start();else this._handlerFb(this._id,"START")}_put(d,f,g){if(this._active.length)for(let _=this._active.length-1;_>=0;_--)this._active[_].put(d,f,g);else this._handlerFb(this._id,"PUT",(0,u.utf32ToString)(d,f,g))}start(){this.reset(),this._state=1}put(d,f,g){if(this._state!==3){if(this._state===1)for(;f0&&this._put(d,f,g)}}end(d,f=!0){if(this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),this._active.length){let g=!1,_=this._active.length-1,e=!1;if(this._stack.paused&&(_=this._stack.loopPosition-1,g=f,e=this._stack.fallThrough,this._stack.paused=!1),!e&&g===!1){for(;_>=0&&(g=this._active[_].end(d),g!==!0);_--)if(g instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=_,this._stack.fallThrough=!1,g;_--}for(;_>=0;_--)if(g=this._active[_].end(!1),g instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=_,this._stack.fallThrough=!0,g}else this._handlerFb(this._id,"END",d);this._active=n,this._id=-1,this._state=0}}},r.OscHandler=class{constructor(d){this._handler=d,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(d,f,g){this._hitLimit||(this._data+=(0,u.utf32ToString)(d,f,g),this._data.length>c.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(d){let f=!1;if(this._hitLimit)f=!1;else if(d&&(f=this._handler(this._data),f instanceof Promise))return f.then(g=>(this._data="",this._hitLimit=!1,g));return this._data="",this._hitLimit=!1,f}}},8742:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Params=void 0;let o=2147483647;class c{static fromArray(n){let d=new c;if(!n.length)return d;for(let f=Array.isArray(n[0])?1:0;f256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(n),this.length=0,this._subParams=new Int32Array(d),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(n),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}clone(){let n=new c(this.maxLength,this.maxSubParamsLength);return n.params.set(this.params),n.length=this.length,n._subParams.set(this._subParams),n._subParamsLength=this._subParamsLength,n._subParamsIdx.set(this._subParamsIdx),n._rejectDigits=this._rejectDigits,n._rejectSubDigits=this._rejectSubDigits,n._digitIsSub=this._digitIsSub,n}toArray(){let n=[];for(let d=0;d>8,g=255&this._subParamsIdx[d];g-f>0&&n.push(Array.prototype.slice.call(this._subParams,f,g))}return n}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(n){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(n<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=n>o?o:n}}addSubParam(n){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(n<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=n>o?o:n,this._subParamsIdx[this.length-1]++}}hasSubParams(n){return(255&this._subParamsIdx[n])-(this._subParamsIdx[n]>>8)>0}getSubParams(n){let d=this._subParamsIdx[n]>>8,f=255&this._subParamsIdx[n];return f-d>0?this._subParams.subarray(d,f):null}getSubParamsAll(){let n={};for(let d=0;d>8,g=255&this._subParamsIdx[d];g-f>0&&(n[d]=this._subParams.slice(f,g))}return n}addDigit(n){let d;if(this._rejectDigits||!(d=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;let f=this._digitIsSub?this._subParams:this.params,g=f[d-1];f[d-1]=~g?Math.min(10*g+n,o):n}}r.Params=c},5741:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.AddonManager=void 0,r.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let o=this._addons.length-1;o>=0;o--)this._addons[o].instance.dispose()}loadAddon(o,c){let u={instance:c,dispose:c.dispose,isDisposed:!1};this._addons.push(u),c.dispose=()=>this._wrappedAddonDispose(u),c.activate(o)}_wrappedAddonDispose(o){if(o.isDisposed)return;let c=-1;for(let u=0;u{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferApiView=void 0;let c=o(3785),u=o(511);r.BufferApiView=class{constructor(n,d){this._buffer=n,this.type=d}init(n){return this._buffer=n,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(n){let d=this._buffer.lines.get(n);if(d)return new c.BufferLineApiView(d)}getNullCell(){return new u.CellData}}},3785:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferLineApiView=void 0;let c=o(511);r.BufferLineApiView=class{constructor(u){this._line=u}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(u,n){if(!(u<0||u>=this._line.length))return n?(this._line.loadCell(u,n),n):this._line.loadCell(u,new c.CellData)}translateToString(u,n,d){return this._line.translateToString(u,n,d)}}},8285:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferNamespaceApi=void 0;let c=o(8771),u=o(8460),n=o(844);class d extends n.Disposable{constructor(g){super(),this._core=g,this._onBufferChange=this.register(new u.EventEmitter),this.onBufferChange=this._onBufferChange.event,this._normal=new c.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new c.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(()=>this._onBufferChange.fire(this.active))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}}r.BufferNamespaceApi=d},7975:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ParserApi=void 0,r.ParserApi=class{constructor(o){this._core=o}registerCsiHandler(o,c){return this._core.registerCsiHandler(o,u=>c(u.toArray()))}addCsiHandler(o,c){return this.registerCsiHandler(o,c)}registerDcsHandler(o,c){return this._core.registerDcsHandler(o,(u,n)=>c(u,n.toArray()))}addDcsHandler(o,c){return this.registerDcsHandler(o,c)}registerEscHandler(o,c){return this._core.registerEscHandler(o,c)}addEscHandler(o,c){return this.registerEscHandler(o,c)}registerOscHandler(o,c){return this._core.registerOscHandler(o,c)}addOscHandler(o,c){return this.registerOscHandler(o,c)}}},7090:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeApi=void 0,r.UnicodeApi=class{constructor(o){this._core=o}register(o){this._core.unicodeService.register(o)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(o){this._core.unicodeService.activeVersion=o}}},744:function(M,r,o){var c=this&&this.__decorate||function(e,s,t,i){var a,l=arguments.length,v=l<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(e,s,t,i);else for(var m=e.length-1;m>=0;m--)(a=e[m])&&(v=(l<3?a(v):l>3?a(s,t,v):a(s,t))||v);return l>3&&v&&Object.defineProperty(s,t,v),v},u=this&&this.__param||function(e,s){return function(t,i){s(t,i,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.BufferService=r.MINIMUM_ROWS=r.MINIMUM_COLS=void 0;let n=o(8460),d=o(844),f=o(5295),g=o(2585);r.MINIMUM_COLS=2,r.MINIMUM_ROWS=1;let _=r.BufferService=class extends d.Disposable{get buffer(){return this.buffers.active}constructor(e){super(),this.isUserScrolling=!1,this._onResize=this.register(new n.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new n.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(e.rawOptions.cols||0,r.MINIMUM_COLS),this.rows=Math.max(e.rawOptions.rows||0,r.MINIMUM_ROWS),this.buffers=this.register(new f.BufferSet(e,this))}resize(e,s){this.cols=e,this.rows=s,this.buffers.resize(e,s),this._onResize.fire({cols:e,rows:s})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(e,s=!1){let t=this.buffer,i;i=this._cachedBlankLine,i&&i.length===this.cols&&i.getFg(0)===e.fg&&i.getBg(0)===e.bg||(i=t.getBlankLine(e,s),this._cachedBlankLine=i),i.isWrapped=s;let a=t.ybase+t.scrollTop,l=t.ybase+t.scrollBottom;if(t.scrollTop===0){let v=t.lines.isFull;l===t.lines.length-1?v?t.lines.recycle().copyFrom(i):t.lines.push(i.clone()):t.lines.splice(l+1,0,i.clone()),v?this.isUserScrolling&&(t.ydisp=Math.max(t.ydisp-1,0)):(t.ybase++,this.isUserScrolling||t.ydisp++)}else{let v=l-a+1;t.lines.shiftElements(a+1,v-1,-1),t.lines.set(l,i.clone())}this.isUserScrolling||(t.ydisp=t.ybase),this._onScroll.fire(t.ydisp)}scrollLines(e,s,t){let i=this.buffer;if(e<0){if(i.ydisp===0)return;this.isUserScrolling=!0}else e+i.ydisp>=i.ybase&&(this.isUserScrolling=!1);let a=i.ydisp;i.ydisp=Math.max(Math.min(i.ydisp+e,i.ybase),0),a!==i.ydisp&&(s||this._onScroll.fire(i.ydisp))}};r.BufferService=_=c([u(0,g.IOptionsService)],_)},7994:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.CharsetService=void 0,r.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(o){this.glevel=o,this.charset=this._charsets[o]}setgCharset(o,c){this._charsets[o]=c,this.glevel===o&&(this.charset=c)}}},1753:function(M,r,o){var c=this&&this.__decorate||function(i,a,l,v){var m,h=arguments.length,p=h<3?a:v===null?v=Object.getOwnPropertyDescriptor(a,l):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(i,a,l,v);else for(var b=i.length-1;b>=0;b--)(m=i[b])&&(p=(h<3?m(p):h>3?m(a,l,p):m(a,l))||p);return h>3&&p&&Object.defineProperty(a,l,p),p},u=this&&this.__param||function(i,a){return function(l,v){a(l,v,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CoreMouseService=void 0;let n=o(2585),d=o(8460),f=o(844),g={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:i=>i.button!==4&&i.action===1&&(i.ctrl=!1,i.alt=!1,i.shift=!1,!0)},VT200:{events:19,restrict:i=>i.action!==32},DRAG:{events:23,restrict:i=>i.action!==32||i.button!==3},ANY:{events:31,restrict:i=>!0}};function _(i,a){let l=(i.ctrl?16:0)|(i.shift?4:0)|(i.alt?8:0);return i.button===4?(l|=64,l|=i.action):(l|=3&i.button,4&i.button&&(l|=64),8&i.button&&(l|=128),i.action===32?l|=32:i.action!==0||a||(l|=3)),l}let e=String.fromCharCode,s={DEFAULT:i=>{let a=[_(i,!1)+32,i.col+32,i.row+32];return a[0]>255||a[1]>255||a[2]>255?"":`\x1B[M${e(a[0])}${e(a[1])}${e(a[2])}`},SGR:i=>{let a=i.action===0&&i.button!==4?"m":"M";return`\x1B[<${_(i,!0)};${i.col};${i.row}${a}`},SGR_PIXELS:i=>{let a=i.action===0&&i.button!==4?"m":"M";return`\x1B[<${_(i,!0)};${i.x};${i.y}${a}`}},t=r.CoreMouseService=class extends f.Disposable{constructor(i,a){super(),this._bufferService=i,this._coreService=a,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._onProtocolChange=this.register(new d.EventEmitter),this.onProtocolChange=this._onProtocolChange.event;for(let l of Object.keys(g))this.addProtocol(l,g[l]);for(let l of Object.keys(s))this.addEncoding(l,s[l]);this.reset()}addProtocol(i,a){this._protocols[i]=a}addEncoding(i,a){this._encodings[i]=a}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(i){if(!this._protocols[i])throw new Error(`unknown protocol "${i}"`);this._activeProtocol=i,this._onProtocolChange.fire(this._protocols[i].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(i){if(!this._encodings[i])throw new Error(`unknown encoding "${i}"`);this._activeEncoding=i}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}triggerMouseEvent(i){if(i.col<0||i.col>=this._bufferService.cols||i.row<0||i.row>=this._bufferService.rows||i.button===4&&i.action===32||i.button===3&&i.action!==32||i.button!==4&&(i.action===2||i.action===3)||(i.col++,i.row++,i.action===32&&this._lastEvent&&this._equalEvents(this._lastEvent,i,this._activeEncoding==="SGR_PIXELS"))||!this._protocols[this._activeProtocol].restrict(i))return!1;let a=this._encodings[this._activeEncoding](i);return a&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(a):this._coreService.triggerDataEvent(a,!0)),this._lastEvent=i,!0}explainEvents(i){return{down:!!(1&i),up:!!(2&i),drag:!!(4&i),move:!!(8&i),wheel:!!(16&i)}}_equalEvents(i,a,l){if(l){if(i.x!==a.x||i.y!==a.y)return!1}else if(i.col!==a.col||i.row!==a.row)return!1;return i.button===a.button&&i.action===a.action&&i.ctrl===a.ctrl&&i.alt===a.alt&&i.shift===a.shift}};r.CoreMouseService=t=c([u(0,n.IBufferService),u(1,n.ICoreService)],t)},6975:function(M,r,o){var c=this&&this.__decorate||function(t,i,a,l){var v,m=arguments.length,h=m<3?i:l===null?l=Object.getOwnPropertyDescriptor(i,a):l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(t,i,a,l);else for(var p=t.length-1;p>=0;p--)(v=t[p])&&(h=(m<3?v(h):m>3?v(i,a,h):v(i,a))||h);return m>3&&h&&Object.defineProperty(i,a,h),h},u=this&&this.__param||function(t,i){return function(a,l){i(a,l,t)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CoreService=void 0;let n=o(1439),d=o(8460),f=o(844),g=o(2585),_=Object.freeze({insertMode:!1}),e=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),s=r.CoreService=class extends f.Disposable{constructor(t,i,a){super(),this._bufferService=t,this._logService=i,this._optionsService=a,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new d.EventEmitter),this.onData=this._onData.event,this._onUserInput=this.register(new d.EventEmitter),this.onUserInput=this._onUserInput.event,this._onBinary=this.register(new d.EventEmitter),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this.register(new d.EventEmitter),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=(0,n.clone)(_),this.decPrivateModes=(0,n.clone)(e)}reset(){this.modes=(0,n.clone)(_),this.decPrivateModes=(0,n.clone)(e)}triggerDataEvent(t,i=!1){if(this._optionsService.rawOptions.disableStdin)return;let a=this._bufferService.buffer;i&&this._optionsService.rawOptions.scrollOnUserInput&&a.ybase!==a.ydisp&&this._onRequestScrollToBottom.fire(),i&&this._onUserInput.fire(),this._logService.debug(`sending data "${t}"`,()=>t.split("").map(l=>l.charCodeAt(0))),this._onData.fire(t)}triggerBinaryEvent(t){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${t}"`,()=>t.split("").map(i=>i.charCodeAt(0))),this._onBinary.fire(t))}};r.CoreService=s=c([u(0,g.IBufferService),u(1,g.ILogService),u(2,g.IOptionsService)],s)},9074:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.DecorationService=void 0;let c=o(8055),u=o(8460),n=o(844),d=o(6106),f=0,g=0;class _ extends n.Disposable{get decorations(){return this._decorations.values()}constructor(){super(),this._decorations=new d.SortedList(t=>t?.marker.line),this._onDecorationRegistered=this.register(new u.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new u.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,n.toDisposable)(()=>this.reset()))}registerDecoration(t){if(t.marker.isDisposed)return;let i=new e(t);if(i){let a=i.marker.onDispose(()=>i.dispose());i.onDispose(()=>{i&&(this._decorations.delete(i)&&this._onDecorationRemoved.fire(i),a.dispose())}),this._decorations.insert(i),this._onDecorationRegistered.fire(i)}return i}reset(){for(let t of this._decorations.values())t.dispose();this._decorations.clear()}*getDecorationsAtCell(t,i,a){var l,v,m;let h=0,p=0;for(let b of this._decorations.getKeyIterator(i))h=(l=b.options.x)!==null&&l!==void 0?l:0,p=h+((v=b.options.width)!==null&&v!==void 0?v:1),t>=h&&t{var m,h,p;f=(m=v.options.x)!==null&&m!==void 0?m:0,g=f+((h=v.options.width)!==null&&h!==void 0?h:1),t>=f&&t{Object.defineProperty(r,"__esModule",{value:!0}),r.InstantiationService=r.ServiceCollection=void 0;let c=o(2585),u=o(8343);class n{constructor(...f){this._entries=new Map;for(let[g,_]of f)this.set(g,_)}set(f,g){let _=this._entries.get(f);return this._entries.set(f,g),_}forEach(f){for(let[g,_]of this._entries.entries())f(g,_)}has(f){return this._entries.has(f)}get(f){return this._entries.get(f)}}r.ServiceCollection=n,r.InstantiationService=class{constructor(){this._services=new n,this._services.set(c.IInstantiationService,this)}setService(d,f){this._services.set(d,f)}getService(d){return this._services.get(d)}createInstance(d,...f){let g=(0,u.getServiceDependencies)(d).sort((s,t)=>s.index-t.index),_=[];for(let s of g){let t=this._services.get(s.id);if(!t)throw new Error(`[createInstance] ${d.name} depends on UNKNOWN service ${s.id}.`);_.push(t)}let e=g.length>0?g[0].index:f.length;if(f.length!==e)throw new Error(`[createInstance] First service dependency of ${d.name} at position ${e+1} conflicts with ${f.length} static arguments`);return new d(...f,..._)}}},7866:function(M,r,o){var c=this&&this.__decorate||function(e,s,t,i){var a,l=arguments.length,v=l<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(e,s,t,i);else for(var m=e.length-1;m>=0;m--)(a=e[m])&&(v=(l<3?a(v):l>3?a(s,t,v):a(s,t))||v);return l>3&&v&&Object.defineProperty(s,t,v),v},u=this&&this.__param||function(e,s){return function(t,i){s(t,i,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.traceCall=r.setTraceLogger=r.LogService=void 0;let n=o(844),d=o(2585),f={trace:d.LogLevelEnum.TRACE,debug:d.LogLevelEnum.DEBUG,info:d.LogLevelEnum.INFO,warn:d.LogLevelEnum.WARN,error:d.LogLevelEnum.ERROR,off:d.LogLevelEnum.OFF},g,_=r.LogService=class extends n.Disposable{get logLevel(){return this._logLevel}constructor(e){super(),this._optionsService=e,this._logLevel=d.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",()=>this._updateLogLevel())),g=this}_updateLogLevel(){this._logLevel=f[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(e){for(let s=0;sJSON.stringify(v)).join(", ")})`);let l=i.apply(this,a);return g.trace(`GlyphRenderer#${i.name} return`,l),l}}},7302:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.OptionsService=r.DEFAULT_OPTIONS=void 0;let c=o(8460),u=o(844),n=o(6114);r.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,cursorInactiveStyle:"outline",customGlyphs:!0,drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",logger:null,scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:n.isMac,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};let d=["normal","bold","100","200","300","400","500","600","700","800","900"];class f extends u.Disposable{constructor(_){super(),this._onOptionChange=this.register(new c.EventEmitter),this.onOptionChange=this._onOptionChange.event;let e=Object.assign({},r.DEFAULT_OPTIONS);for(let s in _)if(s in e)try{let t=_[s];e[s]=this._sanitizeAndValidateOption(s,t)}catch(t){console.error(t)}this.rawOptions=e,this.options=Object.assign({},e),this._setupOptions()}onSpecificOptionChange(_,e){return this.onOptionChange(s=>{s===_&&e(this.rawOptions[_])})}onMultipleOptionChange(_,e){return this.onOptionChange(s=>{_.indexOf(s)!==-1&&e()})}_setupOptions(){let _=s=>{if(!(s in r.DEFAULT_OPTIONS))throw new Error(`No option with key "${s}"`);return this.rawOptions[s]},e=(s,t)=>{if(!(s in r.DEFAULT_OPTIONS))throw new Error(`No option with key "${s}"`);t=this._sanitizeAndValidateOption(s,t),this.rawOptions[s]!==t&&(this.rawOptions[s]=t,this._onOptionChange.fire(s))};for(let s in this.rawOptions){let t={get:_.bind(this,s),set:e.bind(this,s)};Object.defineProperty(this.options,s,t)}}_sanitizeAndValidateOption(_,e){switch(_){case"cursorStyle":if(e||(e=r.DEFAULT_OPTIONS[_]),!function(s){return s==="block"||s==="underline"||s==="bar"}(e))throw new Error(`"${e}" is not a valid value for ${_}`);break;case"wordSeparator":e||(e=r.DEFAULT_OPTIONS[_]);break;case"fontWeight":case"fontWeightBold":if(typeof e=="number"&&1<=e&&e<=1e3)break;e=d.includes(e)?e:r.DEFAULT_OPTIONS[_];break;case"cursorWidth":e=Math.floor(e);case"lineHeight":case"tabStopWidth":if(e<1)throw new Error(`${_} cannot be less than 1, value: ${e}`);break;case"minimumContrastRatio":e=Math.max(1,Math.min(21,Math.round(10*e)/10));break;case"scrollback":if((e=Math.min(e,4294967295))<0)throw new Error(`${_} cannot be less than 0, value: ${e}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(e<=0)throw new Error(`${_} cannot be less than or equal to 0, value: ${e}`);break;case"rows":case"cols":if(!e&&e!==0)throw new Error(`${_} must be numeric, value: ${e}`);break;case"windowsPty":e=e??{}}return e}}r.OptionsService=f},2660:function(M,r,o){var c=this&&this.__decorate||function(f,g,_,e){var s,t=arguments.length,i=t<3?g:e===null?e=Object.getOwnPropertyDescriptor(g,_):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(f,g,_,e);else for(var a=f.length-1;a>=0;a--)(s=f[a])&&(i=(t<3?s(i):t>3?s(g,_,i):s(g,_))||i);return t>3&&i&&Object.defineProperty(g,_,i),i},u=this&&this.__param||function(f,g){return function(_,e){g(_,e,f)}};Object.defineProperty(r,"__esModule",{value:!0}),r.OscLinkService=void 0;let n=o(2585),d=r.OscLinkService=class{constructor(f){this._bufferService=f,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(f){let g=this._bufferService.buffer;if(f.id===void 0){let a=g.addMarker(g.ybase+g.y),l={data:f,id:this._nextId++,lines:[a]};return a.onDispose(()=>this._removeMarkerFromLink(l,a)),this._dataByLinkId.set(l.id,l),l.id}let _=f,e=this._getEntryIdKey(_),s=this._entriesWithId.get(e);if(s)return this.addLineToLink(s.id,g.ybase+g.y),s.id;let t=g.addMarker(g.ybase+g.y),i={id:this._nextId++,key:this._getEntryIdKey(_),data:_,lines:[t]};return t.onDispose(()=>this._removeMarkerFromLink(i,t)),this._entriesWithId.set(i.key,i),this._dataByLinkId.set(i.id,i),i.id}addLineToLink(f,g){let _=this._dataByLinkId.get(f);if(_&&_.lines.every(e=>e.line!==g)){let e=this._bufferService.buffer.addMarker(g);_.lines.push(e),e.onDispose(()=>this._removeMarkerFromLink(_,e))}}getLinkData(f){var g;return(g=this._dataByLinkId.get(f))===null||g===void 0?void 0:g.data}_getEntryIdKey(f){return`${f.id};;${f.uri}`}_removeMarkerFromLink(f,g){let _=f.lines.indexOf(g);_!==-1&&(f.lines.splice(_,1),f.lines.length===0&&(f.data.id!==void 0&&this._entriesWithId.delete(f.key),this._dataByLinkId.delete(f.id)))}};r.OscLinkService=d=c([u(0,n.IBufferService)],d)},8343:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.createDecorator=r.getServiceDependencies=r.serviceRegistry=void 0;let o="di$target",c="di$dependencies";r.serviceRegistry=new Map,r.getServiceDependencies=function(u){return u[c]||[]},r.createDecorator=function(u){if(r.serviceRegistry.has(u))return r.serviceRegistry.get(u);let n=function(d,f,g){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");(function(_,e,s){e[o]===e?e[c].push({id:_,index:s}):(e[c]=[{id:_,index:s}],e[o]=e)})(n,d,g)};return n.toString=()=>u,r.serviceRegistry.set(u,n),n}},2585:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.IDecorationService=r.IUnicodeService=r.IOscLinkService=r.IOptionsService=r.ILogService=r.LogLevelEnum=r.IInstantiationService=r.ICharsetService=r.ICoreService=r.ICoreMouseService=r.IBufferService=void 0;let c=o(8343);var u;r.IBufferService=(0,c.createDecorator)("BufferService"),r.ICoreMouseService=(0,c.createDecorator)("CoreMouseService"),r.ICoreService=(0,c.createDecorator)("CoreService"),r.ICharsetService=(0,c.createDecorator)("CharsetService"),r.IInstantiationService=(0,c.createDecorator)("InstantiationService"),function(n){n[n.TRACE=0]="TRACE",n[n.DEBUG=1]="DEBUG",n[n.INFO=2]="INFO",n[n.WARN=3]="WARN",n[n.ERROR=4]="ERROR",n[n.OFF=5]="OFF"}(u||(r.LogLevelEnum=u={})),r.ILogService=(0,c.createDecorator)("LogService"),r.IOptionsService=(0,c.createDecorator)("OptionsService"),r.IOscLinkService=(0,c.createDecorator)("OscLinkService"),r.IUnicodeService=(0,c.createDecorator)("UnicodeService"),r.IDecorationService=(0,c.createDecorator)("DecorationService")},1480:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeService=void 0;let c=o(8460),u=o(225);r.UnicodeService=class{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new c.EventEmitter,this.onChange=this._onChange.event;let n=new u.UnicodeV6;this.register(n),this._active=n.version,this._activeProvider=n}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(n){if(!this._providers[n])throw new Error(`unknown Unicode version "${n}"`);this._active=n,this._activeProvider=this._providers[n],this._onChange.fire(n)}register(n){this._providers[n.version]=n}wcwidth(n){return this._activeProvider.wcwidth(n)}getStringCellWidth(n){let d=0,f=n.length;for(let g=0;g=f)return d+this.wcwidth(_);let e=n.charCodeAt(g);56320<=e&&e<=57343?_=1024*(_-55296)+e-56320+65536:d+=this.wcwidth(e)}d+=this.wcwidth(_)}return d}}}},N={};function U(M){var r=N[M];if(r!==void 0)return r.exports;var o=N[M]={exports:{}};return X[M].call(o.exports,o,o.exports,U),o.exports}var $={};return(()=>{var M=$;Object.defineProperty(M,"__esModule",{value:!0}),M.Terminal=void 0;let r=U(9042),o=U(3236),c=U(844),u=U(5741),n=U(8285),d=U(7975),f=U(7090),g=["cols","rows"];class _ extends c.Disposable{constructor(s){super(),this._core=this.register(new o.Terminal(s)),this._addonManager=this.register(new u.AddonManager),this._publicOptions=Object.assign({},this._core.options);let t=a=>this._core.options[a],i=(a,l)=>{this._checkReadonlyOptions(a),this._core.options[a]=l};for(let a in this._core.options){let l={get:t.bind(this,a),set:i.bind(this,a)};Object.defineProperty(this._publicOptions,a,l)}}_checkReadonlyOptions(s){if(g.includes(s))throw new Error(`Option "${s}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new d.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new f.UnicodeApi(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=this.register(new n.BufferNamespaceApi(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){let s=this._core.coreService.decPrivateModes,t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any"}return{applicationCursorKeysMode:s.applicationCursorKeys,applicationKeypadMode:s.applicationKeypad,bracketedPasteMode:s.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:s.origin,reverseWraparoundMode:s.reverseWraparound,sendFocusMode:s.sendFocus,wraparoundMode:s.wraparound}}get options(){return this._publicOptions}set options(s){for(let t in s)this._publicOptions[t]=s[t]}blur(){this._core.blur()}focus(){this._core.focus()}resize(s,t){this._verifyIntegers(s,t),this._core.resize(s,t)}open(s){this._core.open(s)}attachCustomKeyEventHandler(s){this._core.attachCustomKeyEventHandler(s)}registerLinkProvider(s){return this._core.registerLinkProvider(s)}registerCharacterJoiner(s){return this._checkProposedApi(),this._core.registerCharacterJoiner(s)}deregisterCharacterJoiner(s){this._checkProposedApi(),this._core.deregisterCharacterJoiner(s)}registerMarker(s=0){return this._verifyIntegers(s),this._core.registerMarker(s)}registerDecoration(s){var t,i,a;return this._checkProposedApi(),this._verifyPositiveIntegers((t=s.x)!==null&&t!==void 0?t:0,(i=s.width)!==null&&i!==void 0?i:0,(a=s.height)!==null&&a!==void 0?a:0),this._core.registerDecoration(s)}hasSelection(){return this._core.hasSelection()}select(s,t,i){this._verifyIntegers(s,t,i),this._core.select(s,t,i)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(s,t){this._verifyIntegers(s,t),this._core.selectLines(s,t)}dispose(){super.dispose()}scrollLines(s){this._verifyIntegers(s),this._core.scrollLines(s)}scrollPages(s){this._verifyIntegers(s),this._core.scrollPages(s)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(s){this._verifyIntegers(s),this._core.scrollToLine(s)}clear(){this._core.clear()}write(s,t){this._core.write(s,t)}writeln(s,t){this._core.write(s),this._core.write(`\r -`,t)}paste(s){this._core.paste(s)}refresh(s,t){this._verifyIntegers(s,t),this._core.refresh(s,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(s){this._addonManager.loadAddon(this,s)}static get strings(){return r}_verifyIntegers(...s){for(let t of s)if(t===1/0||isNaN(t)||t%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...s){for(let t of s)if(t&&(t===1/0||isNaN(t)||t%1!=0||t<0))throw new Error("This API only accepts positive integers")}}M.Terminal=_})(),$})())});var lt=Fe((Re,He)=>{"use strict";(function(X,N){typeof Re=="object"&&typeof He=="object"?He.exports=N():typeof define=="function"&&define.amd?define([],N):typeof Re=="object"?Re.FitAddon=N():X.FitAddon=N()})(self,()=>(()=>{"use strict";var X={};return(()=>{var N=X;Object.defineProperty(N,"__esModule",{value:!0}),N.FitAddon=void 0,N.FitAddon=class{activate(U){this._terminal=U}dispose(){}fit(){let U=this.proposeDimensions();if(!U||!this._terminal||isNaN(U.cols)||isNaN(U.rows))return;let $=this._terminal._core;this._terminal.rows===U.rows&&this._terminal.cols===U.cols||($._renderService.clear(),this._terminal.resize(U.cols,U.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let U=this._terminal._core,$=U._renderService.dimensions;if($.css.cell.width===0||$.css.cell.height===0)return;let M=this._terminal.options.scrollback===0?0:U.viewport.scrollBarWidth,r=window.getComputedStyle(this._terminal.element.parentElement),o=parseInt(r.getPropertyValue("height")),c=Math.max(0,parseInt(r.getPropertyValue("width"))),u=window.getComputedStyle(this._terminal.element),n=o-(parseInt(u.getPropertyValue("padding-top"))+parseInt(u.getPropertyValue("padding-bottom"))),d=c-(parseInt(u.getPropertyValue("padding-right"))+parseInt(u.getPropertyValue("padding-left")))-M;return{cols:Math.max(2,Math.floor(d/$.css.cell.width)),rows:Math.max(1,Math.floor(n/$.css.cell.height))}}}})(),X})())});var _t=We(ht()),ut=We(lt());var ct=(()=>{let N=class N{constructor($){this.scriptFacadeService=$,this.clearTerminal=new Ce,this.scrollToTopTerminal=new Ce,this.scrollToBottomTerminal=new Ce}ctaStopScript(){this.scriptFacadeService.dispatch(it.stopScript())}};N.\u0275fac=function(M){return new(M||N)(oe(ce))},N.\u0275cmp=ge({type:N,selectors:[["ms-terminal-toolbar"]],outputs:{clearTerminal:"clearTerminal",scrollToTopTerminal:"scrollToTopTerminal",scrollToBottomTerminal:"scrollToBottomTerminal"},standalone:!0,features:[ye],decls:10,vars:0,consts:[[1,"buttons-wrapper"],["mat-icon-button","","color","primary","matTooltip","Scroll to top",3,"click"],["fontSet","ms","fontIcon","icon-ArrowUp"],["mat-icon-button","","color","primary","matTooltip","Scroll to bottom",3,"click"],["fontSet","ms","fontIcon","icon-ArrowDown"],["mat-icon-button","","color","primary","matTooltip","Clear terminal",3,"click"],["mat-icon-button","","color","warn","matTooltip","Stop current process.",3,"click"],["fontSet","ms","fontIcon","icon-X",1,"mat-error"]],template:function(M,r){M&1&&(ee(0,"div",0)(1,"button",1),ae("click",function(){return r.scrollToTopTerminal.emit()}),le(2,"mat-icon",2),ie(),ee(3,"button",3),ae("click",function(){return r.scrollToBottomTerminal.emit()}),le(4,"mat-icon",4),ie(),ee(5,"button",5),ae("click",function(){return r.clearTerminal.emit()}),ee(6,"mat-icon"),be(7," clear_all"),ie()(),ee(8,"button",6),ae("click",function(){return r.ctaStopScript()}),le(9,"mat-icon",7),ie()())},dependencies:[Je,Ye,Qe,Ze,rt,st]});let X=N;return X})();var mt=["terminal"],se,dt=(se=class{constructor(N,U,$,M){this.websocketService=N,this.terminalFacadeService=U,this.scriptFacadeService=$,this.modelsFacadeService=M,this.messagesBuffer=[],this.displayWebSocketMessages=!1,this.terminal=new _t.Terminal({cursorBlink:!0,theme:{background:"#D0D4D9",foreground:"#000000",cursor:"#000000"}}),this.fitAddon=new ut.FitAddon,this.listenToIncommingMessages()}listenToIncommingMessages(){this.websocketService.terminalMessages$.pipe(tt(this)).subscribe(N=>{N?.data==="Script execution ended successfully."&&this.updateModelsListOnTrainAlgorithmCompletion();let U=this.formatMessageByType(N);this.displayWebSocketMessages?this.writeToTerminal(U):this.messagesBuffer.push(N)})}ngOnInit(){this.initializeTerminal(),this.loadLatestMessages()}ngAfterViewInit(){setTimeout(()=>{this.adjustHeightToParent()},0),this.fitTerminalToContainer()}writeToTerminal(N){N.split(` +`,t)}paste(s){this._core.paste(s)}refresh(s,t){this._verifyIntegers(s,t),this._core.refresh(s,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(s){this._addonManager.loadAddon(this,s)}static get strings(){return r}_verifyIntegers(...s){for(let t of s)if(t===1/0||isNaN(t)||t%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...s){for(let t of s)if(t&&(t===1/0||isNaN(t)||t%1!=0||t<0))throw new Error("This API only accepts positive integers")}}M.Terminal=_})(),$})())});var lt=Fe((Re,He)=>{"use strict";(function(X,N){typeof Re=="object"&&typeof He=="object"?He.exports=N():typeof define=="function"&&define.amd?define([],N):typeof Re=="object"?Re.FitAddon=N():X.FitAddon=N()})(self,()=>(()=>{"use strict";var X={};return(()=>{var N=X;Object.defineProperty(N,"__esModule",{value:!0}),N.FitAddon=void 0,N.FitAddon=class{activate(U){this._terminal=U}dispose(){}fit(){let U=this.proposeDimensions();if(!U||!this._terminal||isNaN(U.cols)||isNaN(U.rows))return;let $=this._terminal._core;this._terminal.rows===U.rows&&this._terminal.cols===U.cols||($._renderService.clear(),this._terminal.resize(U.cols,U.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let U=this._terminal._core,$=U._renderService.dimensions;if($.css.cell.width===0||$.css.cell.height===0)return;let M=this._terminal.options.scrollback===0?0:U.viewport.scrollBarWidth,r=window.getComputedStyle(this._terminal.element.parentElement),o=parseInt(r.getPropertyValue("height")),c=Math.max(0,parseInt(r.getPropertyValue("width"))),u=window.getComputedStyle(this._terminal.element),n=o-(parseInt(u.getPropertyValue("padding-top"))+parseInt(u.getPropertyValue("padding-bottom"))),d=c-(parseInt(u.getPropertyValue("padding-right"))+parseInt(u.getPropertyValue("padding-left")))-M;return{cols:Math.max(2,Math.floor(d/$.css.cell.width)),rows:Math.max(1,Math.floor(n/$.css.cell.height))}}}})(),X})())});var _t=We(ht()),ut=We(lt());var ct=(()=>{let N=class N{constructor($){this.scriptFacadeService=$,this.clearTerminal=new Ce,this.scrollToTopTerminal=new Ce,this.scrollToBottomTerminal=new Ce}ctaStopScript(){this.scriptFacadeService.dispatch(rt.stopScript())}};N.\u0275fac=function(M){return new(M||N)(oe(ce))},N.\u0275cmp=ge({type:N,selectors:[["ms-terminal-toolbar"]],outputs:{clearTerminal:"clearTerminal",scrollToTopTerminal:"scrollToTopTerminal",scrollToBottomTerminal:"scrollToBottomTerminal"},standalone:!0,features:[ye],decls:10,vars:0,consts:[[1,"buttons-wrapper"],["mat-icon-button","","color","primary","matTooltip","Scroll to top",3,"click"],["fontSet","ms","fontIcon","icon-ArrowUp"],["mat-icon-button","","color","primary","matTooltip","Scroll to bottom",3,"click"],["fontSet","ms","fontIcon","icon-ArrowDown"],["mat-icon-button","","color","primary","matTooltip","Clear terminal",3,"click"],["mat-icon-button","","color","warn","matTooltip","Stop current process.",3,"click"],["fontSet","ms","fontIcon","icon-X",1,"mat-error"]],template:function(M,r){M&1&&(ee(0,"div",0)(1,"button",1),ae("click",function(){return r.scrollToTopTerminal.emit()}),le(2,"mat-icon",2),ie(),ee(3,"button",3),ae("click",function(){return r.scrollToBottomTerminal.emit()}),le(4,"mat-icon",4),ie(),ee(5,"button",5),ae("click",function(){return r.clearTerminal.emit()}),ee(6,"mat-icon"),be(7," clear_all"),ie()(),ee(8,"button",6),ae("click",function(){return r.ctaStopScript()}),le(9,"mat-icon",7),ie()())},dependencies:[Qe,Ze,tt,et,st,it]});let X=N;return X})();var mt=["terminal"],se,dt=(se=class{constructor(N,U,$,M){this.websocketService=N,this.terminalFacadeService=U,this.scriptFacadeService=$,this.modelsFacadeService=M,this.messagesBuffer=[],this.displayWebSocketMessages=!1,this.terminal=new _t.Terminal({cursorBlink:!0,theme:{background:"#D0D4D9",foreground:"#000000",cursor:"#000000"}}),this.fitAddon=new ut.FitAddon,this.listenToIncommingMessages()}listenToIncommingMessages(){this.websocketService.terminalMessages$.pipe(Je(this)).subscribe(N=>{N?.data==="Script execution ended successfully."&&this.updateModelsListOnTrainAlgorithmCompletion();let U=this.formatMessageByType(N);this.displayWebSocketMessages?this.writeToTerminal(U):this.messagesBuffer.push(N)})}ngOnInit(){this.initializeTerminal(),this.loadLatestMessages()}ngAfterViewInit(){setTimeout(()=>{this.adjustHeightToParent()},0),this.fitTerminalToContainer()}writeToTerminal(N){N.split(` `).forEach($=>{this.terminal.writeln($)})}loadLatestMessages(){this.terminalFacadeService.messages$.pipe(ze(1),$e(1)).subscribe(N=>{N.forEach(U=>{let $=this.formatMessageByType(U);this.writeToTerminal($)}),this.messagesBuffer.forEach(U=>{let $=this.formatMessageByType(U);this.writeToTerminal($)}),this.messagesBuffer=[],this.displayWebSocketMessages=!0}),this.terminalFacadeService.dispatch(Ie.getLatestMessages())}logMessageWithControlChars(N){let U=N.replace(/\n/g,"\\n").replace(/\r/g,"\\r");console.log(U)}formatMessageByType(N){let U="";switch(N.type){case ve.ERROR:U="\x1B[38;5;124m";break;case ve.SUCCESS:U="\x1B[38;5;22m";break;case ve.WARNING:U="\x1B[38;5;136m";break;case ve.INFO:default:U="\x1B[38;5;0m";break}let $=N.data;return $.endsWith(` `)&&($=$.slice(0,-1)),`${U}${$}\x1B[0m`}initializeTerminal(){this.terminal.loadAddon(this.fitAddon),this.terminal.open(this.terminalDiv.nativeElement),this.terminal.writeln(`Welcome to ModelSmith terminal!\r `),this.setupResizeObserver()}setupResizeObserver(){this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=new ResizeObserver(()=>this.fitTerminalToContainer()),this.resizeObserver.observe(this.terminalDiv.nativeElement)}fitTerminalToContainer(){this.fitAddon.fit()}adjustHeightToParent(){let N=this.terminalDiv.nativeElement.parentElement.parentElement.parentElement;if(N&&N.parentElement){let $=N.parentElement.offsetHeight-170;this.terminalDiv.nativeElement.style.height=`${$}px`}}updateModelsListOnTrainAlgorithmCompletion(){return Ne(this,null,function*(){let N=yield je(this.scriptFacadeService.scriptDetails$),U={[ke.MACHINE_UNLEARNING_TRAIN]:we.MACHINE_UNLEARNING,[ke.PRUNING_TRAIN]:we.PRUNING,[ke.QUANTIZATION_TRAIN]:we.QUANTIZATION};N.algKey in U&&(this.modelsFacadeService.dispatch(Oe.getModelsList({algorithmType:U[N.algKey]})),this.modelsFacadeService.dispatch(Oe.getModelMetadata({algorithmType:U[N.algKey],modelName:N.model})))})}clearTerminal(){this.terminalFacadeService.dispatch(Ie.postClearHistory()),this.terminal.clear()}scrollToTopTerminal(){this.terminal.scrollToTop()}scrollToBottomTerminal(){this.terminal.scrollToBottom()}ngOnDestroy(){this.resizeObserver?.disconnect()}},se.\u0275fac=function(U){return new(U||se)(oe(ot),oe(nt),oe(ce),oe(Le))},se.\u0275cmp=ge({type:se,selectors:[["ms-terminal"]],viewQuery:function(U,$){if(U&1&&qe(mt,7),U&2){let M;Ve(M=Ge())&&($.terminalDiv=M.first)}},standalone:!0,features:[Xe([ce,Le]),ye],decls:9,vars:0,consts:[["terminal",""],[1,"ms-terminal-wrapper"],[1,"top-terminal-section"],[1,"heading-section-title","mb-1","flex","items-center"],[3,"clearTerminal","scrollToTopTerminal","scrollToBottomTerminal"],[1,"terminal"],[1,"terminal-wrapper"]],template:function(U,$){if(U&1){let M=Ke();ee(0,"div",1)(1,"div",2)(2,"div",3),be(3,"Terminal"),ie(),ee(4,"div")(5,"ms-terminal-toolbar",4),ae("clearTerminal",function(){return me(M),Se($.clearTerminal())})("scrollToTopTerminal",function(){return me(M),Se($.scrollToTopTerminal())})("scrollToBottomTerminal",function(){return me(M),Se($.scrollToBottomTerminal())}),ie()()(),ee(6,"div",5),le(7,"div",6,0),ie()()}},dependencies:[ct],styles:[`.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;inset:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;inset:0;z-index:10;color:transparent;pointer-events:none}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.ms-terminal-wrapper{overflow-x:auto}.ms-terminal-wrapper .terminal-wrapper{border:10px solid var(--terminal-color);background-color:var(--terminal-color);border-radius:10px}.ms-terminal-wrapper .xterm-viewport{overflow-y:auto!important}.ms-terminal-wrapper .top-terminal-section{display:flex;justify-content:space-between} @@ -46,4 +46,4 @@ xterm/css/xterm.css: * other features. *) */ -`],encapsulation:2}),se);dt=Ue([et()],dt);var ft=[{key:te.IPG,value:"GraSP pruning"},{key:te.IPM,value:"Magnitude-based init pruning"},{key:te.IPR,value:"Random init pruning"},{key:te.IMP,value:"Iterative Magnitude Pruning"},{key:te.OMP,value:"One-shot Magnitude Pruning"},{key:te.IPS,value:"Init Pruning Snip"},{key:te.IPSY,value:"Init Pruning Synflow"},{key:te.IPMB,value:"Init Pruning Magnitude Both"}],vt=[{key:Ee.BPTQ,value:"Basic PTQ"},{key:Ee.BRECQ,value:"Brec-q"},{key:Ee.MINMAXPTQ,value:"Minmax-ptq"}],St=[...ft,...vt],qi=te.IMP,Vi=X=>St.filter(N=>X.includes(N.key)).map(N=>N.value),Gi=X=>{let N=ft.find($=>$.value===X);if(N)return N.key;let U=vt.find($=>$.value===X);return U?U.key:null};export{dt as a,ft as b,vt as c,qi as d,Vi as e,Gi as f}; +`],encapsulation:2}),se);dt=Ue([Ye()],dt);var ft=[{key:te.IPG,value:"GraSP pruning"},{key:te.IPM,value:"Magnitude-based init pruning"},{key:te.IPR,value:"Random init pruning"},{key:te.IMP,value:"Iterative Magnitude Pruning"},{key:te.OMP,value:"One-shot Magnitude Pruning"},{key:te.IPS,value:"Init Pruning Snip"},{key:te.IPSY,value:"Init Pruning Synflow"},{key:te.IPMB,value:"Init Pruning Magnitude Both"}],vt=[{key:Ee.BPTQ,value:"Basic PTQ"},{key:Ee.BRECQ,value:"Brec-q"},{key:Ee.MINMAXPTQ,value:"Minmax-ptq"}],St=[...ft,...vt],qi=te.IMP,Vi=X=>St.filter(N=>X.includes(N.key)).map(N=>N.value),Gi=X=>{let N=ft.find($=>$.value===X);if(N)return N.key;let U=vt.find($=>$.value===X);return U?U.key:null};export{dt as a,ft as b,vt as c,qi as d,Vi as e,Gi as f}; diff --git a/frontend/server/modelsmith-build/browser/chunk-QWPZ5EFE.js b/frontend/server/modelsmith-build/browser/chunk-QWPZ5EFE.js new file mode 100644 index 00000000..332a1f26 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-QWPZ5EFE.js @@ -0,0 +1 @@ +import{a as ie,b as ae,c as le,e as fe,f as ge}from"./chunk-DQ7AOZDA.js";import{b as te}from"./chunk-3S6QBQVM.js";import{a as ce,b as de}from"./chunk-G267DK6J.js";import{a as F,c as ue}from"./chunk-WHP5P3DQ.js";import{b as oe,e as ne,f as re}from"./chunk-W4U3FJPJ.js";import{a as me,b as pe}from"./chunk-2FJ2YO2M.js";import{b as se}from"./chunk-PSFPSLKI.js";import{a as A,b as h}from"./chunk-GMIVG7ET.js";import{h as Q,i as Y}from"./chunk-HG2O7P4S.js";import{Ab as E,Ae as ee,Bb as L,Db as R,E as b,Ea as n,Fa as p,Fb as S,Gb as y,Qa as l,R as I,Sa as r,Tb as G,Td as k,Ub as V,Ud as j,_b as D,ab as m,bb as a,bc as K,be as $,cb as u,ce as d,da as O,db as f,dd as B,eb as g,ee as z,fe as X,ge as q,ha as P,ie as v,lb as M,le as U,ne as W,oa as N,p as T,pc as w,pe as H,te as J,ub as c,wb as x,x as _,ze as Z}from"./chunk-NPZHNGVX.js";var Ce=o=>[o];function _e(o,e){o&1&&(f(0),u(1,"ms-spining-indicator",12),g())}function Se(o,e){if(o&1&&(f(0),l(1,_e,2,0,"ng-container",9),g()),o&2){let t=e.ngIf,i=M(2);n(),r("ngIf",t===i.PageKey.MODEL_TRAINING)}}function ye(o,e){if(o&1&&(m(0,"div",10)(1,"a",11),c(2,"Train models"),a(),l(3,Se,2,1,"ng-container",9),S(4,"async"),a()),o&2){let t=M();n(),r("routerLink",R(4,Ce,"/"+t.RoutesList.MODEL_TRAINING.ROOT)),n(2),r("ngIf",y(4,2,t.pageRunningScriptSpiningIndicatorService.currentRunningPage$))}}function ve(o,e){o&1&&u(0,"mat-icon",17)}function Fe(o,e){if(o&1&&(m(0,"mat-option",15),c(1),l(2,ve,1,0,"mat-icon",16),a()),o&2){let t=e.$implicit;r("value",t.name)("disabled",!t.isTrained),n(),x(" ",t.name," "),n(),r("ngIf",!t.isTrained)}}function Te(o,e){o&1&&(m(0,"mat-option",18),c(1,"No results found"),a())}function be(o,e){if(o&1&&(f(0),l(1,Fe,3,4,"mat-option",13)(2,Te,2,0,"mat-option",14),g()),o&2){let t=e.ngIf,i=M();n(),r("ngForOf",t)("ngForTrackBy",i.trackByModel),n(),r("ngIf",t.length===0)}}var s,Me=(s=class{ngOnChanges(e){e.algorithmType&&e.algorithmType.currentValue&&this.configureModels(e.algorithmType.currentValue)}get parentFormGroup(){return this.controlContainer.control}get modelFormGroup(){return this.parentFormGroup.get(this.controlKey)}get modelControl(){return this.modelFormGroup?.get(this.MODEL_CONTROL_NAME)}constructor(e,t,i,C){this.controlContainer=e,this.modelsFacadeService=t,this.scriptFacadeService=i,this.pageRunningScriptSpiningIndicatorService=C,this.controlKey="",this.isTrainModelsPageRouteVisible=!0,this.PageKey=ae,this.RoutesList=B,this.searchModel=new v,this.models=[],this.MODEL_CONTROL_NAME="model"}ngOnInit(){this.initializeForm(),this.listenToScriptStateChanges(),this.listenToSearchModelValueChanges(),this.configureModels(this.algorithmType)}configureModels(e){e&&(this.getModelsByTypeSubscription?.unsubscribe(),this.getModelsByTypeSubscription=this.subscribeToModelsListChanges(e),this.modelsFacadeService.dispatch(F.getModelsList({algorithmType:e})),this.modelsFacadeService.dispatch(F.getCurrentOrPreviousSelectedModel({algorithmType:e})))}listenToCurrentModelChanges(){this.modelsFacadeService.currentModel$.pipe(h(this)).subscribe(e=>{if(ne(e))return;let t=this.models.find(i=>i.name===e);t&&t.isTrained&&this.modelControl?.patchValue(e)})}subscribeToModelsListChanges(e){let t=!1;return this.modelsFacadeService.getModelsByType(e).pipe(b(i=>!re(i)),_(i=>[...i].sort((C,he)=>Number(he.isTrained)-Number(C.isTrained)))).subscribe(i=>{this.models=i,this.searchModel.setValue(""),t||(this.listenToCurrentModelChanges(),t=!0)})}initializeForm(){this.parentFormGroup.addControl(this.controlKey,new q({[this.MODEL_CONTROL_NAME]:new v("",$.required)}))}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(h(this)).subscribe(e=>{oe(e)?this.modelFormGroup.disable():this.modelFormGroup.enable()})}listenToSearchModelValueChanges(){this.filteredModels=this.searchModel.valueChanges.pipe(h(this),I(""),_(e=>this.filterModels(e)))}filterModels(e){let t=e.toLowerCase();return this.models.filter(i=>i.name.toLowerCase().includes(t))}trackByModel(e,t){return t.name}ngOnDestroy(){this.parentFormGroup.removeControl(this.controlKey)}},s.\u0275fac=function(t){return new(t||s)(p(d),p(ue),p(se),p(le))},s.\u0275cmp=P({type:s,selectors:[["ms-panel-model"]],inputs:{controlKey:"controlKey",algorithmType:"algorithmType",isTrainModelsPageRouteVisible:"isTrainModelsPageRouteVisible"},standalone:!0,features:[E([],[{provide:d,useFactory:()=>O(d,{skipSelf:!0})}]),N,L],decls:13,vars:6,consts:[[1,"ms-card","model-card"],[1,"panel-title-wrapper"],[1,"heading-sub-section-title"],["class","train-models",4,"ngIf"],[1,"form-field-container",3,"formGroupName"],["appearance","outline","subscriptSizing","dynamic"],["formControlName","model","placeholder","Select a model..."],["label","Predefined Models"],[3,"formControl"],[4,"ngIf"],[1,"train-models"],[3,"routerLink"],[1,"ml-2"],[3,"value","disabled",4,"ngFor","ngForOf","ngForTrackBy"],["disabled","",4,"ngIf"],[3,"value","disabled"],["class","mat-error","fontSet","ms","fontIcon","icon-X",4,"ngIf"],["fontSet","ms","fontIcon","icon-X",1,"mat-error"],["disabled",""]],template:function(t,i){t&1&&(m(0,"mat-card",0)(1,"div",1)(2,"div",2),c(3,"Model"),a(),l(4,ye,5,6,"div",3),a(),m(5,"div",4)(6,"mat-form-field",5)(7,"mat-select",6)(8,"mat-optgroup",7)(9,"mat-option"),u(10,"ngx-mat-select-search",8),a(),l(11,be,3,3,"ng-container",9),S(12,"async"),a()()()()()),t&2&&(n(4),r("ngIf",i.isTrainModelsPageRouteVisible),n(),r("formGroupName",i.controlKey),n(5),r("formControl",i.searchModel),n(),r("ngIf",y(12,4,i.filteredModels)))},dependencies:[J,z,X,U,H,W,pe,me,Y,Q,de,ce,j,k,ee,Z,K,G,V,D,ge,fe,w,te,ie],styles:[".panel-title-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:12px}.panel-title-wrapper[_ngcontent-%COMP%] .train-models[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}"]}),s);Me=T([A()],Me);export{Me as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-R5J4FM6S.js b/frontend/server/modelsmith-build/browser/chunk-R5J4FM6S.js new file mode 100644 index 00000000..38e6de6f --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-R5J4FM6S.js @@ -0,0 +1 @@ +import{a as ue}from"./chunk-D2Y5ESR4.js";import{a as se,b as ce}from"./chunk-G267DK6J.js";import{a as ne,b as me}from"./chunk-GSC3HYC7.js";import{a as ee,b as te}from"./chunk-PP7DOJYP.js";import{d as fe}from"./chunk-QVZ2CSJP.js";import{a as re,b as ie}from"./chunk-SMKHMGDE.js";import{b as ae}from"./chunk-W4U3FJPJ.js";import{a as pe,b as le}from"./chunk-2FJ2YO2M.js";import{b as oe,m as de}from"./chunk-PSFPSLKI.js";import{a as D,b as F}from"./chunk-GMIVG7ET.js";import{a as J,d as Q,h as W,i as X}from"./chunk-HG2O7P4S.js";import{$d as k,Ab as E,Ae as Z,Bb as A,Ea as i,Fa as c,Ib as N,Q as M,Qa as d,Sa as n,Tb as O,Ub as G,Ud as $,ab as m,bb as o,bc as w,cb as v,ce as u,da as S,db as h,dd as K,eb as C,ee as L,fe as R,ge as V,ha as I,lb as f,ne as j,oa as P,ob as _,oe as U,p as y,pe as B,qe as H,re as q,tb as T,te as z,ub as s,vb as g,wb as b,x,ze as Y}from"./chunk-NPZHNGVX.js";function _e(r,t){if(r&1&&(m(0,"div",10)(1,"mat-label"),s(2),o(),m(3,"mat-form-field",11),v(4,"input",12)(5,"mat-icon",13),o()()),r&2){let e=f(),a=e.$implicit,p=e.index;i(2),g(a.label),i(2),n("formControlName",p)("placeholder",a.placeholder)("type",a.inputType),i(),_("matTooltip",a.help)}}function ge(r,t){if(r&1&&(m(0,"mat-option",16),s(1),o()),r&2){let e=t.$implicit;n("value",e.value),i(),b(" ",e.viewValue," ")}}function he(r,t){if(r&1&&(m(0,"div",10)(1,"mat-label"),s(2),o(),m(3,"mat-form-field",11)(4,"mat-select",14),d(5,ge,2,2,"mat-option",15),o(),v(6,"mat-icon",13),o()()),r&2){let e=f(),a=e.$implicit,p=e.index;i(2),g(a.label),i(2),n("formControlName",p),i(),n("ngForOf",a.options),i(),_("matTooltip",a.help)}}function Ce(r,t){if(r&1&&(m(0,"div",17)(1,"mat-checkbox",14),s(2),o(),m(3,"div",18),v(4,"mat-icon",19),o()()),r&2){let e=f(),a=e.$implicit,p=e.index;i(),n("formControlName",p),i(),g(a.label),i(2),_("matTooltip",a.help)}}function Fe(r,t){if(r&1&&(h(0),d(1,_e,6,5,"div",8)(2,he,7,4,"div",8)(3,Ce,5,3,"div",9),C()),r&2){let e=t.$implicit;i(),n("ngIf",e.inputType==="text"||e.inputType==="number"),i(),n("ngIf",e.inputType==="select"),i(),n("ngIf",e.inputType==="checkbox")}}function ye(r,t){if(r&1&&(m(0,"div",4),h(1,5),m(2,"div",6),d(3,Fe,4,3,"ng-container",7),o(),C(),o()),r&2){let e=f();i(),n("formGroupName",e.controlKey),i(2),n("ngForOf",e.parameters)}}function xe(r,t){r&1&&(m(0,"p",20),s(1,"No parameters configured."),o())}var l,ve=(l=class{ngOnChanges(t){t.algorithm&&t.algorithm.currentValue&&(this.alg=t.algorithm.currentValue,this.loadParametersForAlgorithm(this.alg))}get parentFormGroup(){return this.controlContainer.control}get paramsFormGroup(){return this.parentFormGroup.get(this.controlKey)}get parametersFormArray(){return this.paramsFormGroup.get("parametersArray")}constructor(t,e,a,p){this.fb=t,this.controlContainer=e,this.parametersFacadeService=a,this.scriptFacadeService=p,this.controlKey="",this.RoutesList=K,this.alg=fe,this.isScriptActive=!1,this.parameters=[]}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}initForm(){this.parentFormGroup.addControl(this.controlKey,new V({parametersArray:new H([])}))}loadParametersForAlgorithm(t){this.parametersFacadeService.dispatch(ue.loadParameters({arg:t})),this.parametersFacadeService.parameters$.pipe(x(e=>e[t]?.data||[]),M(1),F(this)).subscribe(e=>{this.buildFormArray(e)})}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(F(this)).subscribe(t=>{this.isScriptActive=ae(t)})}buildFormArray(t){this.parametersFormArray.clear(),t.forEach(e=>{this.parametersFormArray.push(this.fb.control(e.defaultValue))}),this.isScriptActive?this.paramsFormGroup.disable():this.paramsFormGroup.enable(),this.parameters=t}get parametersFormatted(){let t={},e=this.parametersFormArray.getRawValue();return this.parameters.forEach((a,p)=>{t[a.argName]=e[p]}),t}ngOnDestroy(){this.parentFormGroup.removeControl(this.controlKey)}},l.\u0275fac=function(e){return new(e||l)(c(q),c(u),c(de),c(oe))},l.\u0275cmp=I({type:l,selectors:[["ms-panel-parameters"]],inputs:{controlKey:"controlKey",algorithm:"algorithm"},standalone:!0,features:[E([],[{provide:u,useFactory:()=>S(u,{skipSelf:!0})}]),P,A],decls:6,vars:2,consts:[["noParametersTemplate",""],[1,"ms-card","parameters-card"],[1,"heading-sub-section-title"],["class","parameters-wrapper",4,"ngIf","ngIfElse"],[1,"parameters-wrapper"],[3,"formGroupName"],["formArrayName","parametersArray"],[4,"ngFor","ngForOf"],["class","form-field-container",4,"ngIf"],["class","form-field-container inline-container mb-[22px]",4,"ngIf"],[1,"form-field-container"],["appearance","outline"],["matInput","",3,"formControlName","placeholder","type"],["fontSet","ms","fontIcon","icon-Info","matSuffix","",3,"matTooltip"],[3,"formControlName"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"form-field-container","inline-container","mb-[22px]"],[1,"ml-2"],["fontSet","ms","fontIcon","icon-Info",3,"matTooltip"],[1,"no-parameters-message"]],template:function(e,a){if(e&1&&(m(0,"mat-card",1)(1,"p",2),s(2,"Parameters"),o(),d(3,ye,4,2,"div",3)(4,xe,2,0,"ng-template",null,0,N),o()),e&2){let p=T(5);i(3),n("ngIf",a.parameters.length)("ngIfElse",p)}},dependencies:[w,O,G,te,ee,W,J,Q,z,k,L,R,B,j,U,le,pe,X,ce,se,$,ie,re,me,ne,Z,Y],styles:[".parameters-card[_ngcontent-%COMP%] .parameters-wrapper[_ngcontent-%COMP%]{max-height:400px;overflow:auto;padding-right:20px}.parameters-card[_ngcontent-%COMP%] .parameters-wrapper[_ngcontent-%COMP%] .parameter-divider[_ngcontent-%COMP%]{margin-bottom:20px}"]}),l);ve=y([D()],ve);export{ve as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-RAX4D5PF.js b/frontend/server/modelsmith-build/browser/chunk-RAX4D5PF.js deleted file mode 100644 index deadcc01..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-RAX4D5PF.js +++ /dev/null @@ -1 +0,0 @@ -import{D as o,O as s,R as c,i as n}from"./chunk-AIAH5BT5.js";var l=function(i){return i.RUN_RECORDS_SUMMARIZED_DATA="runRecordsSummarizedData",i}(l||{}),u=[{key:l.RUN_RECORDS_SUMMARIZED_DATA,urlPattern:"/rest/run-records-summarized-data/[^/]+/[^/]+",track:!0,useRegex:!0}],d=(()=>{let t=class t{constructor(){this.loadingMap=new Map}setLoading(r,e){this.loadingMap.has(e)||this.loadingMap.set(e,new n(!1)),this.loadingMap.get(e).next(r)}getLoadingObservableForKey(r){if(this.loadingMap.has(r))return this.loadingMap.get(r).asObservable();{let e=new n(!1);return this.loadingMap.set(r,e),e.asObservable()}}};t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})(),h=(()=>{let t=class t{constructor(r){this.loadingService=r}intercept(r,e){let a=this.getMatchingConfig(r);return a&&a.track&&this.loadingService.setLoading(!0,a.key),e.handle(r).pipe(o(()=>{a&&a.track&&this.loadingService.setLoading(!1,a.key)}))}getMatchingConfig(r){let e=r.url.split("?")[0];return u.find(a=>a.track&&(a.useRegex?new RegExp(a.urlPattern).test(e):a.urlPattern===e))}};t.\u0275fac=function(e){return new(e||t)(c(d))},t.\u0275prov=s({token:t,factory:t.\u0275fac});let i=t;return i})();export{l as a,d as b,h as c}; diff --git a/frontend/server/modelsmith-build/browser/chunk-SMKHMGDE.js b/frontend/server/modelsmith-build/browser/chunk-SMKHMGDE.js new file mode 100644 index 00000000..2f598993 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-SMKHMGDE.js @@ -0,0 +1 @@ +import{b as st,n as nt,p as rt,s as m,v as at}from"./chunk-NT2MTW7W.js";import{$ as C,Ba as M,Bb as B,Ea as S,Ed as it,Fa as r,Fd as et,Gd as ot,Ka as x,Kd as w,Lb as Z,Ma as N,Na as k,Qb as $,Sa as V,Sb as Q,T as h,Ta as Y,Ua as v,a as d,aa as u,ab as y,bb as j,bc as W,da as g,fd as T,gb as H,gd as I,ha as P,ia as E,j as f,ja as R,jb as b,ld as q,nd as K,pa as A,qa as O,qb as z,rb as F,sb as X,sd as J,ub as G,va as L,vb as U,xa as p,yd as tt}from"./chunk-NPZHNGVX.js";var ut=["tooltip"],ct=20;var dt=new u("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let a=g(m);return()=>a.scrollStrategies.reposition({scrollThrottle:ct})}});function gt(a){return()=>a.scrollStrategies.reposition({scrollThrottle:ct})}var vt={provide:dt,deps:[m],useFactory:gt};function yt(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var bt=new u("mat-tooltip-default-options",{providedIn:"root",factory:yt});var lt="tooltip-panel",ht=K({passive:!0}),Tt=8,It=8,wt=24,Dt=200,Kt=(()=>{let s=class s{get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=T(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){this._disabled=T(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=I(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=I(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=t!=null?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(t,i,e,o,n,c,_,pt,mt,D,l,_t){this._overlay=t,this._elementRef=i,this._scrollDispatcher=e,this._viewContainerRef=o,this._ngZone=n,this._platform=c,this._ariaDescriber=_,this._focusMonitor=pt,this._dir=D,this._defaultOptions=l,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=Ct,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new f,this._injector=g(L),this._scrollStrategy=mt,this._document=_t,l&&(this._showDelay=l.showDelay,this._hideDelay=l.hideDelay,l.position&&(this.position=l.position),l.positionAtOrigin&&(this.positionAtOrigin=l.positionAtOrigin),l.touchGestures&&(this.touchGestures=l.touchGestures)),D.change.pipe(h(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=Tt}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(h(this._destroyed)).subscribe(t=>{t?t==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,e])=>{t.removeEventListener(i,e,ht)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let e=this._createOverlay(i);this._detach(),this._portal=this._portal||new st(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=e.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(h(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(t)}hide(t=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(t):(i._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&o._origin instanceof p)return this._overlayRef;this._detach()}let i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?t||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return e.positionChanges.pipe(h(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-${lt}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(h(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(h(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(h(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&o.keyCode===27&&!J(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){let i=t.getConfig().positionStrategy,e=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(d(d({},e.main),o.main)),this._addOffset(d(d({},e.fallback),o.fallback))])}_addOffset(t){let i=It,e=!this._dir||this._dir.value=="ltr";return t.originY==="top"?t.offsetY=-i:t.originY==="bottom"?t.offsetY=i:t.originX==="start"?t.offsetX=e?-i:i:t.originX==="end"&&(t.offsetX=e?i:-i),t}_getOrigin(){let t=!this._dir||this._dir.value=="ltr",i=this.position,e;i=="above"||i=="below"?e={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&t||i=="right"&&!t?e={originX:"start",originY:"center"}:(i=="after"||i=="right"&&t||i=="left"&&!t)&&(e={originX:"end",originY:"center"});let{x:o,y:n}=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:o,originY:n}}}_getOverlayPosition(){let t=!this._dir||this._dir.value=="ltr",i=this.position,e;i=="above"?e={overlayX:"center",overlayY:"bottom"}:i=="below"?e={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&t||i=="right"&&!t?e={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&t||i=="left"&&!t)&&(e={overlayX:"start",overlayY:"center"});let{x:o,y:n}=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:o,overlayY:n}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),N(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):t==="end"?t="start":t==="start"&&(t="end"),{x:t,y:i}}_updateCurrentPositionClass(t){let{overlayY:i,originX:e,originY:o}=t,n;if(i==="center"?this._dir&&this._dir.value==="rtl"?n=e==="end"?"left":"right":n=e==="start"?"left":"right":n=i==="bottom"&&o==="top"?"above":"below",n!==this._currentPosition){let c=this._overlayRef;if(c){let _=`${this._cssClassPrefix}-${lt}-`;c.removePanelClass(_+this._currentPosition),c.addPanelClass(_+n)}this._currentPosition=n}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",t=>{this._setupPointerExitEventsIfNeeded();let i;t.x!==void 0&&t.y!==void 0&&(i=t),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",t=>{let i=t.targetTouches?.[0],e=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>this.show(void 0,e),this._defaultOptions.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",i=>{let e=i.relatedTarget;(!e||!this._overlayRef?.overlayElement.contains(e))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",i],["touchcancel",i])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([i,e])=>{this._elementRef.nativeElement.addEventListener(i,e,ht)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){let i=this._document.elementFromPoint(t.clientX,t.clientY),e=this._elementRef.nativeElement;i!==e&&!e.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let t=this.touchGestures;if(t!=="off"){let i=this._elementRef.nativeElement,e=i.style;(t==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(e.userSelect=e.msUserSelect=e.webkitUserSelect=e.MozUserSelect="none"),(t==="on"||!i.draggable)&&(e.webkitUserDrag="none"),e.touchAction="none",e.webkitTapHighlightColor="transparent"}}};s.\u0275fac=function(i){return new(i||s)(r(m),r(p),r(nt),r(k),r(x),r(q),r(tt),r(it),r(dt),r(ot),r(bt,8),r($))},s.\u0275dir=R({type:s,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,e){i&2&&v("mat-mdc-tooltip-disabled",e.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0});let a=s;return a})(),Ct=(()=>{let s=class s{constructor(t,i,e){this._changeDetectorRef=t,this._elementRef=i,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new f,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=e==="NoopAnimations"}show(t){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>wt&&t.width>=Dt}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){let i=this._tooltip.nativeElement,e=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(t?o:e),i.classList.add(t?e:o),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let n=getComputedStyle(i);(n.getPropertyValue("animation-duration")==="0s"||n.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}};s.\u0275fac=function(i){return new(i||s)(r(Z),r(p),r(M,8))},s.\u0275cmp=P({type:s,selectors:[["mat-tooltip-component"]],viewQuery:function(i,e){if(i&1&&z(ut,7),i&2){let o;F(o=X())&&(e._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(i,e){i&1&&b("mouseleave",function(n){return e._handleMouseLeave(n)}),i&2&&Y("zoom",e.isVisible()?1:null)},standalone:!0,features:[B],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(i,e){if(i&1){let o=H();y(0,"div",1,0),b("animationend",function(c){return A(o),O(e._handleAnimationEnd(c))}),y(2,"div",2),G(3),j()()}i&2&&(v("mdc-tooltip--multiline",e._isMultiline),V("ngClass",e.tooltipClass),S(3),U(e.message))},dependencies:[Q],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color);color:var(--mdc-plain-tooltip-supporting-text-color);border-radius:var(--mdc-plain-tooltip-container-shape);font-family:var(--mdc-plain-tooltip-supporting-text-font);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0});let a=s;return a})();var Jt=(()=>{let s=class s{};s.\u0275fac=function(i){return new(i||s)},s.\u0275mod=E({type:s}),s.\u0275inj=C({providers:[vt],imports:[et,W,at,w,w,rt]});let a=s;return a})();export{Kt as a,Jt as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-TO7IPVMR.js b/frontend/server/modelsmith-build/browser/chunk-TO7IPVMR.js new file mode 100644 index 00000000..1270719d --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-TO7IPVMR.js @@ -0,0 +1 @@ +import{a as L}from"./chunk-W4U3FJPJ.js";import{a as r}from"./chunk-PSFPSLKI.js";import{$c as n,De as f,Ee as m,Fe as w,G as l,S as o,Zc as p,_ as O,_c as D,a as c,ad as T,b as s,bd as u,ca as $,s as a,x as S}from"./chunk-NPZHNGVX.js";var h=class extends f{constructor(){super("current-or-last-active-script-details",void 0,void 0,!1)}};var C=class extends f{constructor(){super("script-status",void 0,void 0,!1)}};var d=class extends m{constructor(e){super("run-script",e,!1)}};var x=class extends m{constructor(){super("stop-script",{},!1)}};var Q=(()=>{let e=class e{constructor(A,v){this.apiClient=A,this.actions$=v,this.callScript$=n(()=>this.actions$.pipe(u(r.callScript),o(({configs:i})=>this.apiClient.serviceCall(new d(i)).pipe(o(()=>[r.callScriptSuccess(),r.fetchScriptStatus()]),l(F=>a(r.callScriptFailure({error:F}))))))),this.fetchScriptStatus$=n(()=>this.actions$.pipe(u(r.fetchScriptStatus),o(()=>this.apiClient.serviceCall(new C).pipe(S(i=>{let{status:F}=i;return r.fetchScriptStatusSuccess({status:F})}),l(i=>a(r.fetchScriptStatusFailure({error:i}))))))),this.getCurrentOrLastActiveScriptDetails$=n(()=>this.actions$.pipe(u(r.getCurrentOrLastActiveScriptDetails),o(()=>this.apiClient.serviceCall(new h).pipe(S(i=>r.getCurrentOrLastActiveScriptDetailsSuccess({scriptDetails:i})),l(i=>a(r.fetchScriptStatusFailure({error:i}))))))),this.stopScript$=n(()=>this.actions$.pipe(u(r.stopScript),o(()=>this.apiClient.serviceCall(new x).pipe(S(()=>r.stopScriptSuccess()),l(i=>a(r.stopScriptFailure({error:i})))))))}};e.\u0275fac=function(v){return new(v||e)($(w),$(T))},e.\u0275prov=O({token:e,factory:e.\u0275fac});let t=e;return t})();var g={scriptStatus:L.NOT_RUNNING,scriptDetails:{},error:""},Z=D(g,p(r.callScriptSuccess,t=>s(c({},t),{error:null})),p(r.callScriptFailure,(t,{error:e})=>s(c({},t),{error:e})),p(r.getCurrentOrLastActiveScriptDetailsSuccess,(t,{scriptDetails:e})=>s(c({},t),{scriptDetails:e,error:null})),p(r.getCurrentOrLastActiveScriptDetailsFailure,(t,{error:e})=>s(c({},t),{error:e})),p(r.fetchScriptStatusSuccess,(t,{status:e})=>s(c({},t),{scriptStatus:e,error:null})),p(r.fetchScriptStatusFailure,(t,{error:e})=>s(c({},t),{error:e})),p(r.updateScriptStatus,(t,{status:e})=>s(c({},t),{scriptStatus:e,error:null})),p(r.stopScript,t=>s(c({},t),{error:null})),p(r.stopScriptSuccess,t=>s(c({},t),{error:null})),p(r.stopScriptFailure,(t,{error:e})=>s(c({},t),{error:e})));export{Q as a,Z as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-TTPGYBAP.js b/frontend/server/modelsmith-build/browser/chunk-TTPGYBAP.js new file mode 100644 index 00000000..9841f879 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-TTPGYBAP.js @@ -0,0 +1 @@ +import{a as _i,b as vi}from"./chunk-2FJ2YO2M.js";import{$ as q,Ab as ni,Ad as di,Ba as Y,Bb as I,D as T,Ea as m,Ed as si,Fa as r,Gd as hi,Ka as J,Kd as V,Lb as z,Ma as ii,Md as li,Nb as u,Nd as pi,Ob as R,Pa as D,Pd as mi,Qa as y,Qb as oi,R as S,Ra as F,S as N,Sa as M,T as g,Tb as ri,Ua as w,Wa as ti,Ya as j,Yd as ui,aa as _,ab as d,bb as l,cb as O,da as B,gb as ei,ha as f,hb as ci,ia as G,j as k,ja as K,jb as v,lb as A,mb as P,nb as C,pa as W,pb as p,qa as U,qb as ai,rb as s,sb as h,ua as $,ub as L,va as Z,vb as H,xa as E,ya as b,za as X}from"./chunk-NPZHNGVX.js";var Si=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Ei=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function Di(a,c){a&1&&(d(0,"span",3),C(1,1),l())}function Fi(a,c){a&1&&(d(0,"span",6),C(1,2),l())}var Mi=["*"];var Ai=new _("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),gi=new _("MatChipAvatar"),fi=new _("MatChipTrailingIcon"),bi=new _("MatChipRemove"),Ci=new _("MatChip"),yi=(()=>{let c=class c{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(i){this._disabled=i}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(i,t){this._elementRef=i,this._parentChip=t,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this.tabIndex=-1,this._allowFocusWhenDisabled=!1,i.nativeElement.nodeName==="BUTTON"&&i.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(i){!this.disabled&&this.isInteractive&&this._isPrimary&&(i.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(i){(i.keyCode===13||i.keyCode===32)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(i.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}};c.\u0275fac=function(t){return new(t||c)(r(E),r(Ci))},c.\u0275dir=K({type:c,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(t,e){t&1&&v("click",function(n){return e._handleClick(n)})("keydown",function(n){return e._handleKeydown(n)}),t&2&&(F("tabindex",e._getTabindex())("disabled",e._getDisabledAttribute())("aria-disabled",e.disabled),w("mdc-evolution-chip__action--primary",e._isPrimary)("mdc-evolution-chip__action--presentational",!e.isInteractive)("mdc-evolution-chip__action--trailing",!e._isPrimary))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",u],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?-1:R(i)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},standalone:!0,features:[D]});let a=c;return a})();var Ri=0,Ti=(()=>{let c=class c{_hasFocus(){return this._hasFocusInternal}get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(i){this._value=i}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(i){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,i)}constructor(i,t,e,o,n,Ii,xi,Q){this._changeDetectorRef=i,this._elementRef=t,this._ngZone=e,this._focusMonitor=o,this._globalRippleOptions=xi,this._onFocus=new k,this._onBlur=new k,this.role=null,this._hasFocusInternal=!1,this.id=`mat-mdc-chip-${Ri++}`,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this.removable=!0,this.highlighted=!1,this.disableRipple=!1,this.disabled=!1,this.tabIndex=-1,this.removed=new b,this.destroyed=new b,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=B(ui),this._injector=B(Z),this._document=n,this._animationsDisabled=Ii==="NoopAnimations",Q!=null&&(this.tabIndex=parseInt(Q)??-1),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){let i=this._elementRef.nativeElement;this._isBasicChip=i.hasAttribute(this.basicChipAttrName)||i.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=T(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(i){(i.keyCode===8&&!i.repeat||i.keyCode===46)&&(i.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(i){return this._getActions().find(t=>{let e=t._elementRef.nativeElement;return e===i||e.contains(i)})}_getActions(){let i=[];return this.primaryAction&&i.push(this.primaryAction),this.removeIcon&&i.push(this.removeIcon),this.trailingIcon&&i.push(this.trailingIcon),i}_handlePrimaryActionInteraction(){}_getTabIndex(){return this.role?this.disabled?-1:this.tabIndex:null}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(i=>{let t=i!==null;t!==this._hasFocusInternal&&(this._hasFocusInternal=t,t?this._onFocus.next({chip:this}):ii(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})),{injector:this._injector}))})}};c.\u0275fac=function(t){return new(t||c)(r(z),r(E),r(J),r(si),r(oi),r(Y,8),r(pi,8),$("tabindex"))},c.\u0275cmp=f({type:c,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,o){if(t&1&&(p(o,gi,5),p(o,fi,5),p(o,bi,5),p(o,gi,5),p(o,fi,5),p(o,bi,5)),t&2){let n;s(n=h())&&(e.leadingIcon=n.first),s(n=h())&&(e.trailingIcon=n.first),s(n=h())&&(e.removeIcon=n.first),s(n=h())&&(e._allLeadingIcons=n),s(n=h())&&(e._allTrailingIcons=n),s(n=h())&&(e._allRemoveIcons=n)}},viewQuery:function(t,e){if(t&1&&ai(yi,5),t&2){let o;s(o=h())&&(e.primaryAction=o.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:32,hostBindings:function(t,e){t&1&&v("keydown",function(n){return e._handleKeydown(n)}),t&2&&(ci("id",e.id),F("role",e.role)("tabindex",e._getTabIndex())("aria-label",e.ariaLabel),ti("mat-"+(e.color||"primary")),w("mdc-evolution-chip",!e._isBasicChip)("mdc-evolution-chip--disabled",e.disabled)("mdc-evolution-chip--with-trailing-action",e._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",e.leadingIcon)("mdc-evolution-chip--with-primary-icon",e.leadingIcon)("mdc-evolution-chip--with-avatar",e.leadingIcon)("mat-mdc-chip-with-avatar",e.leadingIcon)("mat-mdc-chip-highlighted",e.highlighted)("mat-mdc-chip-disabled",e.disabled)("mat-mdc-basic-chip",e._isBasicChip)("mat-mdc-standard-chip",!e._isBasicChip)("mat-mdc-chip-with-trailing-icon",e._hasTrailingIcon())("_mat-animation-noopable",e._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",u],highlighted:[2,"highlighted","highlighted",u],disableRipple:[2,"disableRipple","disableRipple",u],disabled:[2,"disabled","disabled",u],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?void 0:R(i)]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],standalone:!0,features:[ni([{provide:Ci,useExisting:c}]),D,I],ngContentSelectors:Ei,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(t,e){t&1&&(P(Si),O(0,"span",0),d(1,"span",1)(2,"span",2),y(3,Di,2,0,"span",3),d(4,"span",4),C(5),O(6,"span",5),l()()(),y(7,Fi,2,0,"span",6)),t&2&&(m(2),M("isInteractive",!1),m(),j(e.leadingIcon?3:-1),m(4),j(e._hasTrailingIcon()?7:-1))},dependencies:[yi],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width);border-radius:var(--mdc-chip-container-shape-radius);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color)}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size);height:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.cdk-high-contrast-active .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius);width:var(--mdc-chip-with-icon-icon-size);height:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color);--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color);--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color);--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color)}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color)}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color);opacity:var(--mdc-chip-hover-state-layer-opacity)}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color);opacity:var(--mdc-chip-selected-hover-state-layer-opacity)}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color);opacity:var(--mdc-chip-selected-focus-state-layer-opacity)}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color)}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity)}.mat-mdc-chip-remove::after{background:var(--mat-chip-trailing-action-state-layer-color)}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity)}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity)}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background:var(--mat-chip-selected-trailing-action-state-layer-color)}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-2px;bottom:-2px;left:6px;right:6px;border-radius:50%}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let a=c;return a})();var pt=(()=>{let c=class c{get chipFocusChanges(){return this._getChipStream(i=>i._onFocus)}get chipDestroyedChanges(){return this._getChipStream(i=>i.destroyed)}get chipRemovedChanges(){return this._getChipStream(i=>i.removed)}get disabled(){return this._disabled}set disabled(i){this._disabled=i,this._syncChipsState()}get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(i){this._explicitRole=i}get focused(){return this._hasFocusedChip()}constructor(i,t,e){this._elementRef=i,this._changeDetectorRef=t,this._dir=e,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new k,this._defaultRole="presentation",this._disabled=!1,this.tabIndex=0,this._explicitRole=null,this._chipActions=new X}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(i=>i._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(i=>{i.disabled=this._disabled,i._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(i){this._originatesFromChip(i)&&this._keyManager.onKeydown(i)}_isValidIndex(i){return i>=0&&i{this.tabIndex=i,this._changeDetectorRef.markForCheck()})}}_getChipStream(i){return this._chips.changes.pipe(S(null),N(()=>T(...this._chips.map(i))))}_originatesFromChip(i){let t=i.target;for(;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-mdc-chip"))return!0;t=t.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(S(this._chips)).subscribe(i=>{let t=[];i.forEach(e=>e._getActions().forEach(o=>t.push(o))),this._chipActions.reset(t),this._chipActions.notifyOnChanges()}),this._keyManager=new di(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(i=>this._skipPredicate(i)),this.chipFocusChanges.pipe(g(this._destroyed)).subscribe(({chip:i})=>{let t=i._getSourceAction(document.activeElement);t&&this._keyManager.updateActiveItem(t)}),this._dir?.change.pipe(g(this._destroyed)).subscribe(i=>this._keyManager.withHorizontalOrientation(i))}_skipPredicate(i){return!i.isInteractive||i.disabled}_trackChipSetChanges(){this._chips.changes.pipe(S(null),g(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(g(this._destroyed)).subscribe(i=>{let e=this._chips.toArray().indexOf(i.chip);this._isValidIndex(e)&&i.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=e)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let i=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),t=this._chips.toArray()[i];t.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():t.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}};c.\u0275fac=function(t){return new(t||c)(r(E),r(z),r(hi,8))},c.\u0275cmp=f({type:c,selectors:[["mat-chip-set"]],contentQueries:function(t,e,o){if(t&1&&p(o,Ti,5),t&2){let n;s(n=h())&&(e._chips=n)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(t,e){t&1&&v("keydown",function(n){return e._handleKeydown(n)}),t&2&&F("role",e.role)},inputs:{disabled:[2,"disabled","disabled",u],role:"role",tabIndex:[2,"tabIndex","tabIndex",i=>i==null?0:R(i)]},standalone:!0,features:[D,I],ngContentSelectors:Mi,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(t,e){t&1&&(P(),d(0,"div",0),C(1),l())},styles:[".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0});let a=c;return a})();var mt=(()=>{let c=class c{};c.\u0275fac=function(t){return new(t||c)},c.\u0275mod=G({type:c}),c.\u0275inj=q({providers:[li,{provide:Ai,useValue:{separatorKeyCodes:[13]}}],imports:[V,mi,V]});let a=c;return a})();function Bi(a,c){if(a&1){let x=ei();d(0,"mat-card",2),v("click",function(){let t=W(x).$implicit,e=A();return U(e.selectCard(t))}),d(1,"span",3),L(2),l()()}if(a&2){let x=c.$implicit,i=A();w("selected",i.activeCard===x),m(2),H(x)}}var Ct=(()=>{let c=class c{constructor(){this.options=[],this.selectedOption=new b,this.activeCard=null}selectCard(i){this.activeCard=this.activeCard===i?null:i,this.selectedOption.emit(this.activeCard)}trackByOption(i,t){return t}};c.\u0275fac=function(t){return new(t||c)},c.\u0275cmp=f({type:c,selectors:[["ms-card-selector"]],inputs:{options:"options"},outputs:{selectedOption:"selectedOption"},standalone:!0,features:[I],decls:2,vars:2,consts:[[1,"cards-section"],["class","ms-card action-card",3,"selected","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ms-card","action-card",3,"click"],[1,"heading-sub-section-title"]],template:function(t,e){t&1&&(d(0,"div",0),y(1,Bi,3,3,"mat-card",1),l()),t&2&&(m(),M("ngForOf",e.options)("ngForTrackBy",e.trackByOption))},dependencies:[ri,vi,_i],styles:[".cards-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}"]});let a=c;return a})();export{Ti as a,pt as b,mt as c,Ct as d}; diff --git a/frontend/server/modelsmith-build/browser/chunk-URO2J7UO.js b/frontend/server/modelsmith-build/browser/chunk-URO2J7UO.js new file mode 100644 index 00000000..a12d4a1b --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-URO2J7UO.js @@ -0,0 +1 @@ +import{c as Be,p as Ne,r as He,s as P,v as Ye}from"./chunk-NT2MTW7W.js";import{$ as _e,Ab as Pe,Ac as me,Ad as xe,Bb as ae,Bd as Ae,Cc as V,Cd as Oe,D as S,E as g,Ea as $,Ed as le,Fa as r,Ga as J,Gd as Fe,J as W,K as G,Ka as ee,Kd as ce,Lb as k,Ma as Me,Na as ye,Nb as R,Od as je,Pa as te,Pd as Le,Qa as ie,Qb as Ee,R as x,Ra as y,S as K,Sa as ne,T as A,Ua as Ie,Wa as Ce,Ya as we,a as E,aa as v,ab as I,b as pe,bb as L,bc as De,cb as se,da as O,g as D,gb as ke,ha as Z,ia as fe,j as T,ja as ge,jb as B,lb as c,m as Q,mb as oe,nb as N,nd as Te,pa as b,pb as H,qa as M,qb as Re,ra as ve,rb as C,s as X,sb as w,sd as Se,va as q,vc as re,wc as Y,xa as F,ya as j,za as be,zc as u}from"./chunk-NPZHNGVX.js";var qe=["mat-menu-item",""],$e=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Je=["mat-icon, [matMenuItemIcon]","*"];function et(a,o){a&1&&(ve(),I(0,"svg",2),se(1,"polygon",3),L())}var tt=["*"];function it(a,o){if(a&1){let m=ke();I(0,"div",0),B("keydown",function(t){b(m);let i=c();return M(i._handleKeydown(t))})("click",function(){b(m);let t=c();return M(t.closed.emit("click"))})("@transformMenu.start",function(t){b(m);let i=c();return M(i._onAnimationStart(t))})("@transformMenu.done",function(t){b(m);let i=c();return M(i._onAnimationDone(t))}),I(1,"div",1),N(2),L()()}if(a&2){let m=c();Ce(m._classList),ne("id",m.panelId)("@transformMenu",m._panelAnimationState),y("aria-label",m.ariaLabel||null)("aria-labelledby",m.ariaLabelledby||null)("aria-describedby",m.ariaDescribedby||null)}}var de=new v("MAT_MENU_PANEL"),ue=(()=>{let o=class o{constructor(e,t,i,n,s){this._elementRef=e,this._document=t,this._focusMonitor=i,this._parentMenu=n,this._changeDetectorRef=s,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new T,this._focused=new T,this._highlighted=!1,this._triggersSubmenu=!1,n?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let i=0;i enter",Y("120ms cubic-bezier(0, 0, 0.2, 1)",u({opacity:1,transform:"scale(1)"}))),V("* => void",Y("100ms 25ms linear",u({opacity:0})))]),fadeInItems:re("fadeInItems",[me("showing",u({opacity:1})),V("void => *",[u({opacity:0}),Y("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Yt=U.fadeInItems,Vt=U.transformMenu,st=0,ot=new v("mat-menu-default-options",{providedIn:"root",factory:at});function at(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}var z=(()=>{let o=class o{get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}set panelClass(e){let t=this._previousPanelClass,i=E({},this._classList);t&&t.length&&t.split(" ").forEach(n=>{i[n]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(n=>{i[n]=!0}),this._elementRef.nativeElement.className=""),this._classList=i}get classList(){return this.panelClass}set classList(e){this.panelClass=e}constructor(e,t,i,n){this._elementRef=e,this._changeDetectorRef=n,this._elevationPrefix="mat-elevation-z",this._baseElevation=null,this._directDescendantItems=new be,this._classList={},this._panelAnimationState="void",this._animationDone=new T,this.closed=new j,this.close=this.closed,this.panelId=`mat-menu-panel-${st++}`,this._injector=O(q),this.overlayPanelClass=i.overlayPanelClass||"",this._xPosition=i.xPosition,this._yPosition=i.yPosition,this.backdropClass=i.backdropClass,this.overlapTrigger=i.overlapTrigger,this.hasBackdrop=i.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new xe(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(x(this._directDescendantItems),K(e=>S(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let t=this._keyManager;if(this._panelAnimationState==="enter"&&t.activeItem?._hasFocus()){let i=e.toArray(),n=Math.max(0,Math.min(i.length-1,t.activeItemIndex||0));i[n]&&!i[n].disabled?t.setActiveItem(n):t.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe(x(this._directDescendantItems),K(t=>S(...t.map(i=>i._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let t=e.keyCode,i=this._keyManager;switch(t){case 27:Se(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(t===38||t===40)&&i.setFocusOrigin("keyboard"),i.onKeydown(e);return}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=Me(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){let i=this._keyManager;i.setFocusOrigin(e).setFirstItemActive(),!i.activeItem&&t&&t.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){if(this._baseElevation===null){let l=(typeof getComputedStyle=="function"?getComputedStyle(this._elementRef.nativeElement):null)?.getPropertyValue("--mat-menu-base-elevation-level")||"8";this._baseElevation=parseInt(l)}let t=Math.min(this._baseElevation+e,24),i=`${this._elevationPrefix}${t}`,n=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));if(!n||n===this._previousElevation){let s=E({},this._classList);this._previousElevation&&(s[this._previousElevation]=!1),s[i]=!0,this._previousElevation=i,this._classList=s}}setPositionClasses(e=this.xPosition,t=this.yPosition){this._classList=pe(E({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":t==="above","mat-menu-below":t==="below"}),this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,e.toState==="enter"&&this._keyManager.activeItemIndex===0&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(x(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}};o.\u0275fac=function(t){return new(t||o)(r(F),r(ee),r(ot),r(k))},o.\u0275cmp=Z({type:o,selectors:[["mat-menu"]],contentQueries:function(t,i,n){if(t&1&&(H(n,nt,5),H(n,ue,5),H(n,ue,4)),t&2){let s;C(s=w())&&(i.lazyContent=s.first),C(s=w())&&(i._allItems=s),C(s=w())&&(i.items=s)}},viewQuery:function(t,i){if(t&1&&Re(J,5),t&2){let n;C(n=w())&&(i.templateRef=n.first)}},hostVars:3,hostBindings:function(t,i){t&2&&y("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",R],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:R(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[Pe([{provide:de,useExisting:o}]),te,ae],ngContentSelectors:tt,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id"],[1,"mat-mdc-menu-content"]],template:function(t,i){t&1&&(oe(),ie(0,it,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.mat-mdc-menu-panel.ng-animating:has(.mat-mdc-menu-content:empty){display:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color);margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}[dir=rtl] .mat-mdc-menu-item{padding-right:var(--mat-menu-item-leading-spacing);padding-left:var(--mat-menu-item-trailing-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-right:var(--mat-menu-item-with-icon-leading-spacing);padding-left:var(--mat-menu-item-with-icon-trailing-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[U.transformMenu,U.fadeInItems]},changeDetection:0});let a=o;return a})(),Qe=new v("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let a=O(P);return()=>a.scrollStrategies.reposition()}});function rt(a){return()=>a.scrollStrategies.reposition()}var mt={provide:Qe,deps:[P],useFactory:rt},Ve=Te({passive:!0});var zt=(()=>{let o=class o{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),(t==="click"||t==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,t,i,n,s,l,d,h,p){this._overlay=e,this._element=t,this._viewContainerRef=i,this._menuItemInstance=l,this._dir=d,this._focusMonitor=h,this._ngZone=p,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=D.EMPTY,this._hoverSubscription=D.EMPTY,this._menuCloseSubscription=D.EMPTY,this._changeDetectorRef=O(k),this._handleTouchStart=_=>{Oe(_)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new j,this.onMenuOpen=this.menuOpened,this.menuClosed=new j,this.onMenuClose=this.menuClosed,this._scrollStrategy=n,this._parentMaterialMenu=s instanceof z?s:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ve)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ve),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){let e=this.menu;if(this._menuOpen||!e)return;let t=this._createOverlay(e),i=t.getConfig(),n=i.positionStrategy;this._setPosition(e,n),i.hasBackdrop=e.hasBackdrop==null?!this.triggersSubmenu():e.hasBackdrop,t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof z&&(e._startAnimation(),e._directDescendantItems.changes.pipe(A(e.close)).subscribe(()=>{n.withLockedPosition(!1).reapplyLastPosition(),n.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;let t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof z?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(g(i=>i.toState==="void"),W(1),A(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,i=e.parentMenu;for(;i;)t++,i=i.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new He({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(i=>{let n=i.connectionPair.overlayX==="start"?"after":"before",s=i.connectionPair.overlayY==="top"?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(n,s)):e.setPositionClasses(n,s)})}_setPosition(e,t){let[i,n]=e.xPosition==="before"?["end","start"]:["start","end"],[s,l]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[d,h]=[s,l],[p,_]=[i,n],f=0;if(this.triggersSubmenu()){if(_=i=e.xPosition==="before"?"start":"end",n=p=i==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let he=this._parentMaterialMenu.items.first;this._parentInnerPadding=he?he._getHostElement().offsetTop:0}f=s==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(d=s==="top"?"bottom":"top",h=l==="top"?"bottom":"top");t.withPositions([{originX:i,originY:d,overlayX:p,overlayY:s,offsetY:f},{originX:n,originY:d,overlayX:_,overlayY:s,offsetY:f},{originX:i,originY:h,overlayX:p,overlayY:l,offsetY:-f},{originX:n,originY:h,overlayX:_,overlayY:l,offsetY:-f}])}_menuClosingActions(){let e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:X(),n=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(g(s=>s!==this._menuItemInstance),g(()=>this._menuOpen)):X();return S(e,i,n,t)}_handleMousedown(e){Ae(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let t=e.keyCode;(t===13||t===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(t===39&&this.dir==="ltr"||t===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(g(e=>e===this._menuItemInstance&&!e.disabled),G(0,Q)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof z&&this.menu._isAnimating?this.menu._animationDone.pipe(W(1),G(0,Q),A(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Be(e.templateRef,this._viewContainerRef)),this._portal}};o.\u0275fac=function(t){return new(t||o)(r(P),r(F),r(ye),r(Qe),r(de,8),r(ue,10),r(Fe,8),r(le),r(ee))},o.\u0275dir=ge({type:o,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(t,i){t&1&&B("click",function(s){return i._handleClick(s)})("mousedown",function(s){return i._handleMousedown(s)})("keydown",function(s){return i._handleKeydown(s)}),t&2&&y("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0});let a=o;return a})(),Ut=(()=>{let o=class o{};o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=fe({type:o}),o.\u0275inj=_e({providers:[mt],imports:[De,Le,ce,Ye,Ne,ce]});let a=o;return a})();export{ue as a,z as b,zt as c,Ut as d}; diff --git a/frontend/server/modelsmith-build/browser/chunk-V6EH3YHO.js b/frontend/server/modelsmith-build/browser/chunk-V6EH3YHO.js new file mode 100644 index 00000000..c404e8f9 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-V6EH3YHO.js @@ -0,0 +1 @@ +import{Bb as d,ab as i,bb as o,ha as r,mb as a,nb as c}from"./chunk-NPZHNGVX.js";var l=["*"],p=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=r({type:e,selectors:[["ms-background-gradient"]],standalone:!0,features:[d],ngContentSelectors:l,decls:2,vars:0,consts:[[1,"full-page-gradient"]],template:function(n,g){n&1&&(a(),i(0,"div",0),c(1),o())},styles:[".full-page-gradient[_ngcontent-%COMP%]{height:100vh;width:100vw;background:linear-gradient(to right,var(--header-left),var(--header-right))}"]});let t=e;return t})();export{p as a}; diff --git a/frontend/server/modelsmith-build/browser/chunk-VUPIOU6P.js b/frontend/server/modelsmith-build/browser/chunk-VUPIOU6P.js new file mode 100644 index 00000000..3e0f3169 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-VUPIOU6P.js @@ -0,0 +1 @@ +import{$ as d,Bb as m,Kd as n,Ra as c,Ua as v,fd as a,ha as s,ia as l}from"./chunk-NPZHNGVX.js";var u=(()=>{let t=class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=a(e)}get inset(){return this._inset}set inset(e){this._inset=a(e)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=s({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(r,o){r&2&&(c("aria-orientation",o.vertical?"vertical":"horizontal"),v("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},standalone:!0,features:[m],decls:0,vars:0,template:function(r,o){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0});let i=t;return i})(),g=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=l({type:t}),t.\u0275inj=d({imports:[n,n]});let i=t;return i})();export{u as a,g as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-W2GP6GR3.js b/frontend/server/modelsmith-build/browser/chunk-W2GP6GR3.js new file mode 100644 index 00000000..75ca27e0 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-W2GP6GR3.js @@ -0,0 +1 @@ +import{$ as C,Ab as U,Ba as M,Bb as Q,Ea as m,Ed as Y,Fa as o,Kd as y,Lb as $,Nb as n,Ob as H,Od as Z,Pa as S,Qa as F,Ra as _,Sa as w,Ua as v,Wa as O,Ya as x,Z as I,Zd as J,_d as K,aa as z,ab as s,ae as W,bb as r,cb as l,gb as q,ha as D,hb as V,ia as E,jb as k,mb as P,nb as j,oa as R,pa as p,qa as g,qb as N,ra as L,rb as G,sb as X,tb as B,ua as T,xa as A,ya as f}from"./chunk-NPZHNGVX.js";var ce=["switch"],ie=["*"];function de(d,c){d&1&&(s(0,"div",10),L(),s(1,"svg",12),l(2,"path",13),r(),s(3,"svg",14),l(4,"path",15),r()())}var ae=new z("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),se={provide:K,useExisting:I(()=>ee),multi:!0},b=class{constructor(c,te){this.source=c,this.checked=te}},re=0,ee=(()=>{let c=class c{_createChangeEvent(t){return new b(this,t)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(t){this._checked=t,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(t,i,e,a,h,u){this._elementRef=t,this._focusMonitor=i,this._changeDetectorRef=e,this.defaults=h,this._onChange=oe=>{},this._onTouched=()=>{},this._validatorOnChange=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new f,this.toggleChange=new f,this.tabIndex=parseInt(a)||0,this.color=h.color||"accent",this._noopAnimations=u==="NoopAnimations",this.id=this._uniqueId=`mat-mdc-slide-toggle-${++re}`,this.hideIcon=h.hideIcon??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t==="keyboard"||t==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):t||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(t){t.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}validate(t){return this.required&&t.value!==!0?{required:!0}:null}registerOnValidatorChange(t){this._validatorOnChange=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new b(this,this.checked)))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}};c.\u0275fac=function(i){return new(i||c)(o(A),o(Y),o($),T("tabindex"),o(ae),o(M,8))},c.\u0275cmp=D({type:c,selectors:[["mat-slide-toggle"]],viewQuery:function(i,e){if(i&1&&N(ce,5),i&2){let a;G(a=X())&&(e._switchElement=a.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(i,e){i&2&&(V("id",e.id),_("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),O(e.color?"mat-"+e.color:""),v("mat-mdc-slide-toggle-focused",e._focused)("mat-mdc-slide-toggle-checked",e.checked)("_mat-animation-noopable",e._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",n],color:"color",disabled:[2,"disabled","disabled",n],disableRipple:[2,"disableRipple","disableRipple",n],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?0:H(t)],checked:[2,"checked","checked",n],hideIcon:[2,"hideIcon","hideIcon",n]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[U([se,{provide:W,useExisting:c,multi:!0}]),S,R,Q],ngContentSelectors:ie,decls:13,vars:24,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(i,e){if(i&1){let a=q();P(),s(0,"div",1)(1,"button",2,0),k("click",function(){return p(a),g(e._handleClick())}),l(3,"div",3),s(4,"div",4)(5,"div",5)(6,"div",6),l(7,"div",7),r(),s(8,"div",8),l(9,"div",9),r(),F(10,de,5,0,"div",10),r()()(),s(11,"label",11),k("click",function(u){return p(a),g(u.stopPropagation())}),j(12),r()()}if(i&2){let a=B(2);w("labelPosition",e.labelPosition),m(),v("mdc-switch--selected",e.checked)("mdc-switch--unselected",!e.checked)("mdc-switch--checked",e.checked)("mdc-switch--disabled",e.disabled),w("tabIndex",e.disabled?-1:e.tabIndex)("disabled",e.disabled),_("id",e.buttonId)("name",e.name)("aria-label",e.ariaLabel)("aria-labelledby",e._getAriaLabelledBy())("aria-describedby",e.ariaDescribedby)("aria-required",e.required||null)("aria-checked",e.checked),m(8),w("matRippleTrigger",a)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0),m(),x(e.hideIcon?-1:10),m(),w("for",e.buttonId),_("id",e._labelId)}},dependencies:[Z,J],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-switch-label-text-color);font-family:var(--mat-switch-label-text-font);line-height:var(--mat-switch-label-text-line-height);font-size:var(--mat-switch-label-text-size);letter-spacing:var(--mat-switch-label-text-tracking);font-weight:var(--mat-switch-label-text-weight)}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}.mdc-switch{width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color)}.mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color)}.mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation)}.mdc-switch .mdc-switch__focus-ring-wrapper,.mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height)}.mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape)}.mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width)}.mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width))}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size)}.mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size);width:var(--mdc-switch-state-layer-size)}.mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height)}.mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color)}.mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color)}.mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mdc-switch__handle{transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size);height:var(--mat-switch-unselected-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size);height:var(--mat-switch-selected-handle-size)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size);height:var(--mat-switch-with-icon-handle-size)}.mat-mdc-slide-toggle:active .mdc-switch:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size);height:var(--mat-switch-pressed-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{margin:var(--mat-switch-selected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{margin:var(--mat-switch-unselected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--selected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--unselected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin)}.mdc-switch__track::after,.mdc-switch__track::before{border-width:var(--mat-switch-track-outline-width);border-color:var(--mat-switch-track-outline-color)}.mdc-switch--selected .mdc-switch__track::after,.mdc-switch--selected .mdc-switch__track::before{border-width:var(--mat-switch-selected-track-outline-width);border-color:var(--mat-switch-selected-track-outline-color)}.mdc-switch--disabled .mdc-switch__track::after,.mdc-switch--disabled .mdc-switch__track::before{border-width:var(--mat-switch-disabled-unselected-track-outline-width);border-color:var(--mat-switch-disabled-unselected-track-outline-color)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity)}'],encapsulation:2,changeDetection:0});let d=c;return d})();var Le=(()=>{let c=class c{};c.\u0275fac=function(i){return new(i||c)},c.\u0275mod=E({type:c}),c.\u0275inj=C({imports:[ee,y,y]});let d=c;return d})();export{ee as a,Le as b}; diff --git a/frontend/server/modelsmith-build/browser/chunk-W4U3FJPJ.js b/frontend/server/modelsmith-build/browser/chunk-W4U3FJPJ.js new file mode 100644 index 00000000..c554a2e9 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-W4U3FJPJ.js @@ -0,0 +1 @@ +var I=function(e){return e.RUNNING="running",e.NOT_RUNNING="not_running",e.STOPPING="stopping",e.ERROR="error",e}(I||{});function A(e){return e?e===I.RUNNING||e===I.STOPPING:!1}function p(e){return(e===void 0||Object.prototype.toString.call(e)==="[object Object]")&&Object.keys(e||{}).length===0}function U(e){return e==null}function f(e){return e==null||e===""}function O(e){return Array.isArray(e)&&e.length===0}var n=e=>e.toLowerCase().split("_").map(N=>N.charAt(0).toUpperCase()+N.slice(1)).join(" ");var r=function(e){return e.QUANTIZATION="quantization",e.PRUNING="pruning",e.MACHINE_UNLEARNING="machine_unlearning",e.AWQ="awq",e.MULTIFLOW="multiflow",e.TRAIN="train",e}(r||{}),_=Object.entries(r).map(([e,N])=>({key:N,value:n(e)})),c=function(e){return e.BPTQ="BPTQ",e.BRECQ="BRECQ",e.MINMAXPTQ="MINMAXPTQ",e}(c||{}),o=function(e){return e.MULTIFLOW_PRUNE="MULTIFLOW_PRUNE",e}(o||{}),R=function(e){return e.IPG="IPG",e.IPM="IPM",e.IPR="IPR",e.IMP="IMP",e.OMP="OMP",e.IPS="IPS",e.IPSY="IPSY",e.IPMB="IPMB",e}(R||{}),i=function(e){return e.MU="MU",e}(i||{}),T=function(e){return e.AWQ_QUANTIZATION="AWQ_Q",e}(T||{}),t=function(e){return e.QUANTIZATION_TRAIN="Q_TRAIN",e.PRUNING_TRAIN="P_TRAIN",e.MACHINE_UNLEARNING_TRAIN="MU_TRAIN",e}(t||{}),s={[r.MACHINE_UNLEARNING]:t.MACHINE_UNLEARNING_TRAIN,[r.PRUNING]:t.PRUNING_TRAIN,[r.QUANTIZATION]:t.QUANTIZATION_TRAIN};function a(e){return Object.values(R).includes(e)?r.PRUNING:Object.values(c).includes(e)?r.QUANTIZATION:Object.values(i).includes(e)?r.MACHINE_UNLEARNING:Object.values(T).includes(e)?r.AWQ:Object.values(t).includes(e)?r.TRAIN:Object.values(o).includes(e)?r.MULTIFLOW:null}export{I as a,A as b,p as c,U as d,f as e,O as f,r as g,_ as h,c as i,o as j,R as k,i as l,T as m,t as n,s as o,a as p}; diff --git a/frontend/server/modelsmith-build/browser/chunk-WEPUEGKY.js b/frontend/server/modelsmith-build/browser/chunk-WEPUEGKY.js deleted file mode 100644 index a9dc52d4..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-WEPUEGKY.js +++ /dev/null @@ -1 +0,0 @@ -import{a as d}from"./chunk-C72SHGY6.js";import{a as u}from"./chunk-7HZCFN6L.js";import"./chunk-JZLUCDH7.js";import"./chunk-OWZJXMSU.js";import{a as f}from"./chunk-VN6ZKIV6.js";import"./chunk-4KWEJN4U.js";import"./chunk-NO2PD4LU.js";import{b as B}from"./chunk-MPLQ54VQ.js";import{Aa as I,Ca as N,Cc as D,Cd as k,Da as E,Id as T,Ja as V,Ka as L,La as j,Md as q,Na as S,P as p,T as Q,U as l,Z as P,Zb as A,_ as F,a as g,b as y,ja as m,ka as v,m as b,oc as R,pb as G,rd as O,sa as a,sd as _,uc as W,ud as U,wa as s,wd as M,xa as c,ya as C,za as w,zc as z}from"./chunk-AIAH5BT5.js";var $=["panelParameters"],o,h=(o=class{constructor(t,i){this.fb=t,this.scriptFacadeService=i,this.AlgorithmType=k,this.AWQAlgorithmsEnum=T,this.isScriptActive=!1}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(_(this)).subscribe(t=>{this.isScriptActive=M(t),M(t)?this.form.disable():this.form.enable()})}initForm(){this.form=this.fb.group({algorithm:this.fb.group({alg:[]})}),setTimeout(()=>{this.form.get("algorithm.alg")?.setValue(T.AWQ_QUANTIZATION)},0)}submit(){if(this.isScriptActive)return;let{algorithm:t,model:i}=this.form.getRawValue(),{model:e}=i,r=y(g({},t),{params:y(g({},this.panelParametersComponent.parametersFormatted),{model:e})});this.scriptFacadeService.dispatch(U.callScript({configs:r}))}},o.\u0275fac=function(i){return new(i||o)(v(z),v(q))},o.\u0275cmp=Q({type:o,selectors:[["ms-llm-quantization"]],viewQuery:function(i,e){if(i&1&&V($,5),i&2){let r;L(r=j())&&(e.panelParametersComponent=r.first)}},decls:13,vars:6,consts:[["panelParameters",""],[1,"heading-primary-title","title"],[1,"page-wrapper",3,"formGroup"],[1,"left"],[3,"formGroup"],["controlKey","model",3,"algorithmType","isTrainModelsPageRouteVisible"],["controlKey","params",3,"algorithm"],["mat-raised-button","","color","primary",3,"click","disabled"],[1,"right"]],template:function(i,e){if(i&1){let r=N();s(0,"p",1),S(1,"LLM Quantization"),c(),s(2,"div",2)(3,"div",3),w(4,4),C(5,"ms-panel-model",5)(6,"ms-panel-parameters",6,0),I(),s(8,"div")(9,"button",7),E("click",function(){return P(r),F(e.submit())}),S(10," Run "),c()()(),s(11,"div",8),C(12,"ms-terminal"),c()()}i&2&&(m(2),a("formGroup",e.form),m(2),a("formGroup",e.form),m(),a("algorithmType",e.AlgorithmType.AWQ)("isTrainModelsPageRouteVisible",!1),m(),a("algorithm",e.AWQAlgorithmsEnum.AWQ_QUANTIZATION),m(3),a("disabled",e.isScriptActive||e.form.invalid))},dependencies:[D,R,W,d,u,f],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),o);h=b([O()],h);var x=[{path:"",component:h}],Z=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[A.forChild(x),A]});let n=t;return n})();var At=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=l({type:t}),t.\u0275inj=p({imports:[G,B,Z,d,u,f]});let n=t;return n})();export{At as LlmQuantizationModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-WFJKEUUC.js b/frontend/server/modelsmith-build/browser/chunk-WFJKEUUC.js deleted file mode 100644 index 335d46cc..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-WFJKEUUC.js +++ /dev/null @@ -1 +0,0 @@ -import{a as u}from"./chunk-C72SHGY6.js";import{a as g}from"./chunk-7HZCFN6L.js";import"./chunk-JZLUCDH7.js";import"./chunk-OWZJXMSU.js";import{a as d}from"./chunk-VN6ZKIV6.js";import"./chunk-4KWEJN4U.js";import"./chunk-NO2PD4LU.js";import{b as x}from"./chunk-MPLQ54VQ.js";import{Aa as F,Ca as I,Cc as L,Cd as q,Da as T,Hd as U,Ja as R,Ka as _,La as G,Md as $,Na as h,P as l,T as P,U as c,Xb as j,Z as M,Zb as A,_ as S,_b as k,a as v,b as y,ja as m,ka as f,m as w,oc as D,pb as V,rd as B,sa as a,sd as H,uc as O,ud as K,wa as s,wd as N,xa as p,ya as b,za as E,zc as Q}from"./chunk-AIAH5BT5.js";var X=["panelParameters"],o,C=(o=class{constructor(e,i,t){this.fb=e,this.scriptFacadeService=i,this.router=t,this.AlgorithmType=q,this.MachineUnlearningAlgorithmsEnum=U,this.isScriptActive=!1}ngOnInit(){this.initForm(),this.listenToScriptStateChanges()}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(H(this)).subscribe(e=>{this.isScriptActive=N(e),N(e)?this.form.disable():this.form.enable()})}initForm(){this.form=this.fb.group({algorithm:this.fb.group({alg:[]})}),setTimeout(()=>{this.form.get("algorithm.alg")?.setValue(U.MU)},0)}submit(){if(this.isScriptActive)return;let{algorithm:e,model:i}=this.form.getRawValue(),{model:t}=i,r=y(v({},e),{params:y(v({},this.panelParametersComponent.parametersFormatted),{arch:t})});this.scriptFacadeService.dispatch(K.callScript({configs:r}))}goToChartPage(){this.router.navigate([k.RUNNING.ROOT])}},o.\u0275fac=function(i){return new(i||o)(f(Q),f($),f(j))},o.\u0275cmp=P({type:o,selectors:[["ms-machine-unlearning"]],viewQuery:function(i,t){if(i&1&&R(X,5),i&2){let r;_(r=G())&&(t.panelParametersComponent=r.first)}},decls:15,vars:5,consts:[["panelParameters",""],[1,"heading-primary-title","title"],[1,"page-wrapper",3,"formGroup"],[1,"left"],[3,"formGroup"],["controlKey","model",3,"algorithmType"],["controlKey","params",3,"algorithm"],["mat-raised-button","","color","primary",3,"click","disabled"],["mat-raised-button","","color","primary",1,"ml-2",3,"click"],[1,"right"]],template:function(i,t){if(i&1){let r=I();s(0,"p",1),h(1,"Machine Unlearning"),p(),s(2,"div",2)(3,"div",3),E(4,4),b(5,"ms-panel-model",5)(6,"ms-panel-parameters",6,0),F(),s(8,"div")(9,"button",7),T("click",function(){return M(r),S(t.submit())}),h(10," Run "),p(),s(11,"button",8),T("click",function(){return M(r),S(t.goToChartPage())}),h(12,"View Chart"),p()()(),s(13,"div",9),b(14,"ms-terminal"),p()()}i&2&&(m(2),a("formGroup",t.form),m(2),a("formGroup",t.form),m(),a("algorithmType",t.AlgorithmType.MACHINE_UNLEARNING),m(),a("algorithm",t.MachineUnlearningAlgorithmsEnum.MU),m(3),a("disabled",t.isScriptActive||t.form.invalid))},dependencies:[L,D,O,d,g,u],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),o);C=w([B()],C);var Y=[{path:"",component:C}],J=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=c({type:e}),e.\u0275inj=l({imports:[A.forChild(Y),A]});let n=e;return n})();var Ne=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=c({type:e}),e.\u0275inj=l({imports:[V,x,J,d,g,u]});let n=e;return n})();export{Ne as MachineUnlearningModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-WHP5P3DQ.js b/frontend/server/modelsmith-build/browser/chunk-WHP5P3DQ.js new file mode 100644 index 00000000..ba2e0483 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-WHP5P3DQ.js @@ -0,0 +1 @@ +import{g as o}from"./chunk-W4U3FJPJ.js";import{Kc as e,Lc as l,Mc as a,Vc as u,Wc as c,_ as n,ca as d,ed as i}from"./chunk-NPZHNGVX.js";var h=l({source:"[Models]",events:{"Get Models List":e(),"Get Models List Success":e(),"Get Models List Failure":e(),"Get Current Or Previous Selected Model":e(),"Get Current Or Previous Selected Model Success":e(),"Get Current Or Previous Selected Model Failure":e(),"Get Model Metadata":e(),"Get Model Metadata Success":e(),"Get Model Metadata Failure":e()}});var A=l({source:"[Core -> Terminal]",events:{"Get Latest Messages":a(),"Get Latest Messages Success":e(),"Get Latest Messages Failure":e(),"Post Clear History":a(),"Post Clear History Success":a(),"Post Clear History Failure":e()}});var M=s=>c(i,t=>{switch(s){case o.QUANTIZATION:return t.models.quantizationModels;case o.PRUNING:return t.models.pruningModels;case o.MACHINE_UNLEARNING:return t.models.machineUnlearningModels;case o.AWQ:return t.models.awqModels;default:return}}),m=c(i,s=>s.models.currentModel),p=c(i,s=>s.models.modelMetadata);var v=(()=>{let t=class t{constructor(r){this.store=r,this.currentModel$=this.store.select(m),this.modelMetadata$=this.store.select(p)}getModelsByType(r){return this.store.select(M(r))}dispatch(r){this.store.dispatch(r)}};t.\u0275fac=function(f){return new(f||t)(d(u))},t.\u0275prov=n({token:t,factory:t.\u0275fac});let s=t;return s})();export{h as a,A as b,v as c}; diff --git a/frontend/server/modelsmith-build/browser/chunk-XD2XL32D.js b/frontend/server/modelsmith-build/browser/chunk-XD2XL32D.js new file mode 100644 index 00000000..37df5495 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-XD2XL32D.js @@ -0,0 +1 @@ +import{ka as o}from"./chunk-NPZHNGVX.js";var l=(()=>{let t=class t{transform(a,e=2){let n=Number(a);if(isNaN(n)||n===0)return"0 Bytes";let s=1024,c=e<0?0:e,r=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],u=Math.floor(Math.log(n)/Math.log(s));return parseFloat((n/Math.pow(s,u)).toFixed(c))+" "+r[u]}};t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o({name:"adaptiveFileSize",type:t,pure:!0,standalone:!0});let i=t;return i})();var d=(()=>{let t=class t{transform(a){return{creation_date:"Creation Date",epochs:"Number of Epochs",file_size_bytes:"File Size",learning_rate:"Learning Rate",model:"Model Architecture",training_duration_seconds:"Training Duration",duration_seconds:"Total Duration",arch:"Model Architecture",best_acc:"Best Accuracy",device:"Device Used",lr:"Learning Rate",pruning_ratio:"Pruning Ratio",start_epoch:"Starting Epoch",pruning_times:"Pruning Iterations",rewinding_epoch:"Rewinding Epoch",save_dir:"Saving Directory",algorithm_key:"Algorithm Key",execution_date:"Execution Date",seed:"Random Seed",dataset:"Dataset Name",batch_size:"Batch Size",workers:"Workers",n_bits_w:"Bitwidth for Weights",channel_wise:"Channel-wise Quantization",n_bits_a:"Bitwidth for Activations",disable_8bit_head_stem:"Disable 8-bit Head and Stem",num_samples:"Number of Samples",iters_w:"Number of Iterations",weight:"Weight Parameter",keep_cpu:"Keep Calibration Data on CPU",wwq:"Weight Quantization",waq:"Activation Quantization",b_start:"Initial Temperature",b_end:"Final Temperature",warmup:"Warmup Period",awq:"Activation Weight Quantization",aaq:"Activation Activation Quantization",init_wmode:"Weight Initialization Mode",init_amode:"Activation Initialization Mode",order:"Order of Quantization",prob:"Probability",input_prob:"Input Probability",act_quant:"Apply Activation Quantization",num_indexes_to_replace:"Number of Indexes to Replace",alpha:"L1 Regularization Coefficient (Alpha)",unlearn_lr:"Learning Rate for Unlearning",unlearn_epochs:"Nr. of Epochs for L1-Sparse Unlearning",train_seed:"Random Seed for Training",class_to_replace:"Specific Class to Forget",data:"Location of the Data Corpus",indexes_to_replace:"Specific Index Data to Forget",no_aug:"No Augmentation in Training Dataset",decreasing_lr:"Decreasing Strategy",rewind_epoch:"Rewind Checkpoint",imagenet_arch:"Architecture for ImageNet Size Samples",no_l1_epochs:"Non L1 Epochs",momentum:"Momentum",weight_decay:"Weight Decay",num_workers:"Number of workers"}[a]||a}};t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o({name:"parametersLabel",type:t,pure:!0,standalone:!0});let i=t;return i})();var f=(()=>{let t=class t{transform(a){let e=Number(a);if(isNaN(e))return"Invalid duration";let n=Math.floor(e/3600),s=Math.floor(e%3600/60),c=Math.floor(e%60),r="";return n>0&&(r+=`${n}h `),(s>0||n>0)&&(r+=`${s}m `),r+=`${c}s`,r.trim()}};t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o({name:"readableDuration",type:t,pure:!0,standalone:!0});let i=t;return i})();export{l as a,d as b,f as c}; diff --git a/frontend/server/modelsmith-build/browser/chunk-YG4M2IQW.js b/frontend/server/modelsmith-build/browser/chunk-YG4M2IQW.js deleted file mode 100644 index 7b414195..00000000 --- a/frontend/server/modelsmith-build/browser/chunk-YG4M2IQW.js +++ /dev/null @@ -1 +0,0 @@ -import{a as N}from"./chunk-C72SHGY6.js";import{a as I}from"./chunk-7HZCFN6L.js";import"./chunk-JZLUCDH7.js";import"./chunk-OWZJXMSU.js";import{a as M,b as Mt,c as Nt,d as z}from"./chunk-VN6ZKIV6.js";import"./chunk-4KWEJN4U.js";import{a as Pt,h as _t}from"./chunk-NO2PD4LU.js";import{b as Ot}from"./chunk-MPLQ54VQ.js";import{A as x,Aa as Y,Ad as vt,C as Z,Ca as tt,Cc as St,Cd as f,Da as K,G as J,Gd as Ct,Ja as et,Ka as it,La as rt,Ld as At,Md as _,Na as h,P as v,Pa as U,S as W,T as C,Ta as ot,U as A,Xb as mt,Z as w,Zb as V,Zc as yt,Zd as Tt,_ as k,_b as st,a as L,b as R,dc as lt,ec as pt,fb as nt,he as Ft,ja as n,ka as c,kc as ct,lc as d,m as S,nc as ht,oc as T,pb as at,pc as F,qa as j,qc as ft,rd as O,s as $,sa as a,sd as u,uc as dt,ud as P,vc as ut,w as y,wa as m,wd as g,xa as s,xc as gt,ya as D,z as q,za as X,zd as Q}from"./chunk-AIAH5BT5.js";function Lt(r,t){if(r&1&&(m(0,"mat-option",8),h(1),s()),r&2){let e=t.$implicit;a("value",e.key),n(),U(" ",e.value," ")}}function Rt(r,t){if(r&1&&(m(0,"mat-option",8),h(1),s()),r&2){let e=t.$implicit;a("value",e.key),n(),U(" ",e.value," ")}}var l,b=(l=class{get parentFormGroup(){return this.controlContainer.control}get algorithmFormGroup(){return this.parentFormGroup.get(this.controlKey)}get algorithmFormControl(){return this.algorithmFormGroup?.get(this.ALGORITHM_CONTROL_NAME)}constructor(t,e){this.controlContainer=t,this.scriptFacadeService=e,this.controlKey="",this.pruningAlgorithmsList=Mt,this.quantAlgorithmsList=Nt,this.ALGORITHM_CONTROL_NAME="alg"}ngOnInit(){this.initForm(),this.listenToScriptStateChanges(),this.loadInitialData()}loadInitialData(){this.scriptFacadeService.scriptDetails$.pipe(J(1),x(1),y(t=>!vt(t?.algKey))).subscribe(t=>{let e=t.type,o=e===f.PRUNING||e===f.QUANTIZATION?t.algKey:z;this.algorithmFormControl?.setValue(o)}),this.scriptFacadeService.dispatch(P.getCurrentOrLastActiveScriptDetails())}initForm(){this.parentFormGroup.addControl(this.controlKey,new F({[this.ALGORITHM_CONTROL_NAME]:new ft(z,ct.required)}))}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(u(this)).subscribe(t=>{g(t)?this.algorithmFormGroup.disable():this.algorithmFormGroup.enable()})}trackByAlgorithmKey(t,e){return e.key}ngOnDestroy(){this.parentFormGroup.removeControl(this.controlKey)}},l.\u0275fac=function(e){return new(e||l)(c(d),c(_))},l.\u0275cmp=C({type:l,selectors:[["ms-panel-algorithm"]],inputs:{controlKey:"controlKey"},features:[ot([],[{provide:d,useFactory:()=>W(d,{skipSelf:!0})}])],decls:10,vars:6,consts:[[1,"ms-card","algorithm-card"],[1,"heading-sub-section-title"],[1,"form-field-container",3,"formGroupName"],["appearance","outline","subscriptSizing","dynamic"],[3,"formControlName"],["label","Pruning"],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],["label","Quantization"],[3,"value"]],template:function(e,i){e&1&&(m(0,"mat-card",0)(1,"p",1),h(2,"Algorithm"),s(),m(3,"div",2)(4,"mat-form-field",3)(5,"mat-select",4)(6,"mat-optgroup",5),j(7,Lt,2,2,"mat-option",6),s(),m(8,"mat-optgroup",7),j(9,Rt,2,2,"mat-option",6),s()()()()()),e&2&&(n(3),a("formGroupName",i.controlKey),n(2),a("formControlName",i.ALGORITHM_CONTROL_NAME),n(2),a("ngForOf",i.pruningAlgorithmsList)("ngForTrackBy",i.trackByAlgorithmKey),n(2),a("ngForOf",i.quantAlgorithmsList)("ngForTrackBy",i.trackByAlgorithmKey))},dependencies:[nt,Tt,yt,Ft,pt,lt,ht,T,gt,ut]}),l);b=S([O()],b);var H="custommodel";function It(r){let t=r.replace(/[^a-zA-Z0-9_]/g,"_");return/^[0-9_]/.test(t)&&(t="file_"+t),/.py$/.test(t)||(t+=".py"),t}var kt=["panelParameters"],p,G=(p=class{constructor(t,e,i,o){this.scriptFacadeService=t,this.fileService=e,this.snackbarService=i,this.router=o,this.form=new F({}),this.AlgorithmType=f,this.isScriptActive=!1,this.isQuantAlgorithmSelected=!1,this.selectedAlgorithm=Ct.IMP,this.selectedAlgorithmType=f.PRUNING}ngOnInit(){this.listenToAlgorithmPanelChanges(),this.listenToScriptStateChanges()}listenToAlgorithmPanelChanges(){this.form.valueChanges.pipe(q(50),$(()=>{let t=this.form.getRawValue();return t.algorithm&&t.algorithm.alg}),Z(),y(t=>!Q(t)),u(this)).subscribe(t=>{this.selectedAlgorithm=t,this.selectedAlgorithmType=At(t)})}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(u(this)).subscribe(t=>{this.isScriptActive=g(t),g(t)?this.form.disable():this.form.enable()})}submit(){if(Q(this.selectedAlgorithm)){this.snackbarService.showError("Select an algorithm before running a script.");return}let{algorithm:t,model:e}=this.form.getRawValue(),{model:i}=e;if(i===H&&!this.fileService.isFileLoaded){this.snackbarService.showError("Please select a predefined model or upload a custom file.");return}let o=i===H?It(this.fileService?.file.name):i,E=R(L({},t),{params:R(L({},this.panelParametersComponent.parametersFormatted),{arch:o})});this.scriptFacadeService.dispatch(P.callScript({configs:E}))}goToChartPage(){this.router.navigate([st.RUNNING.ROOT])}},p.\u0275fac=function(e){return new(e||p)(c(_),c(_t),c(Pt),c(mt))},p.\u0275cmp=C({type:p,selectors:[["ms-machine-unlearning"]],viewQuery:function(e,i){if(e&1&&et(kt,5),e&2){let o;it(o=rt())&&(i.panelParametersComponent=o.first)}},decls:17,vars:5,consts:[["panelAlgorithm",""],["panelParameters",""],[1,"heading-primary-title","title"],[1,"page-wrapper",3,"formGroup"],[1,"left"],[3,"formGroup"],["controlKey","algorithm"],["controlKey","model",3,"algorithmType"],["controlKey","params",3,"algorithm"],["mat-raised-button","","color","primary",3,"click","disabled"],["mat-raised-button","","color","primary",1,"ml-2",3,"click"],[1,"right"]],template:function(e,i){if(e&1){let o=tt();m(0,"p",2),h(1,"Model Compression"),s(),m(2,"div",3)(3,"div",4),X(4,5),D(5,"ms-panel-algorithm",6,0)(7,"ms-panel-model",7)(8,"ms-panel-parameters",8,1),Y(),m(10,"div")(11,"button",9),K("click",function(){return w(o),k(i.submit())}),h(12," Run "),s(),m(13,"button",10),K("click",function(){return w(o),k(i.goToChartPage())}),h(14,"View Chart"),s()()(),m(15,"div",11),D(16,"ms-terminal"),s()()}e&2&&(n(2),a("formGroup",i.form),n(2),a("formGroup",i.form),n(3),a("algorithmType",i.selectedAlgorithmType),n(),a("algorithm",i.selectedAlgorithm),n(3),a("disabled",i.isScriptActive||i.form.invalid))},dependencies:[St,T,dt,M,N,I,b],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),p);G=S([O()],G);var jt=[{path:"",component:G}],bt=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=A({type:t}),t.\u0275inj=v({imports:[V.forChild(jt),V]});let r=t;return r})();var ke=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=A({type:t}),t.\u0275inj=v({imports:[at,Ot,bt,M,N,I]});let r=t;return r})();export{ke as ModelCompressionModule}; diff --git a/frontend/server/modelsmith-build/browser/chunk-ZNUYT5NW.js b/frontend/server/modelsmith-build/browser/chunk-ZNUYT5NW.js new file mode 100644 index 00000000..0a8b7d34 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/chunk-ZNUYT5NW.js @@ -0,0 +1 @@ +import{a as pt,b as ct,c as dt}from"./chunk-XD2XL32D.js";import{a as st}from"./chunk-3GNVUME3.js";import{a as fe}from"./chunk-R5J4FM6S.js";import{b as ot,c as rt,e as mt,f as lt}from"./chunk-DQ7AOZDA.js";import{b as We}from"./chunk-3S6QBQVM.js";import"./chunk-D2Y5ESR4.js";import"./chunk-TO7IPVMR.js";import{a as pe,b as ce}from"./chunk-G267DK6J.js";import"./chunk-GSC3HYC7.js";import{a as Qe,b as ze}from"./chunk-VUPIOU6P.js";import"./chunk-PP7DOJYP.js";import{a as de}from"./chunk-QVZ2CSJP.js";import{a as w,c as V}from"./chunk-WHP5P3DQ.js";import"./chunk-SMKHMGDE.js";import{b as O,d as Xe,e as G,f as et,g as c,h as tt,n as y,o as it}from"./chunk-W4U3FJPJ.js";import{a as K,b as se}from"./chunk-2FJ2YO2M.js";import{a as le,b as L,d as nt,l as at}from"./chunk-PSFPSLKI.js";import{a as P,b as f}from"./chunk-GMIVG7ET.js";import"./chunk-NT2MTW7W.js";import{h as re,i as ne}from"./chunk-HG2O7P4S.js";import{$ as z,$b as Ue,Ab as Z,Ae as me,Bb as xe,E as b,Ea as r,Fa as p,Fb as A,Gb as E,Hb as Re,I as ye,Ib as ke,J as Ie,L as Me,Q,Qa as d,R as Ae,Sa as n,Tb as R,Td as $e,Ub as q,Ud as W,Vb as De,Wb as Le,Xb as Ke,_b as Ve,a as Fe,ab as m,ac as Be,b as Ne,bb as a,bc as J,be as X,cb as g,ce as v,da as H,db as u,dd as je,eb as h,ee,fe as k,gb as be,ge as D,ha as I,ia as Y,ie as j,jb as Te,lb as M,le as He,me as Ye,ne as te,oa as Pe,p as F,pa as Ce,pe as ie,qa as _e,qb as Ee,rb as Oe,sb as Ge,sc as Se,se as Ze,tb as we,te as oe,ub as l,ue as qe,vb as B,wb as x,x as N,xe as Je,ze as ae}from"./chunk-NPZHNGVX.js";function Tt(o,e){o&1&&g(0,"mat-icon",13)}function St(o,e){if(o&1&&(m(0,"mat-option",11),l(1),d(2,Tt,1,0,"mat-icon",12),a()),o&2){let t=e.$implicit;n("value",t.name),r(),x(" ",t.name," "),r(),n("ngIf",!t.isTrained)}}function Ft(o,e){o&1&&(m(0,"mat-option",14),l(1,"No results found"),a())}function Nt(o,e){if(o&1&&(u(0),d(1,St,3,3,"mat-option",9)(2,Ft,2,0,"mat-option",10),h()),o&2){let t=e.ngIf,i=M();r(),n("ngForOf",t)("ngForTrackBy",i.trackByModel),r(),n("ngIf",t.length===0)}}var C,U=(C=class{ngOnChanges(e){e.algorithmType&&e.algorithmType.currentValue&&this.configureModels(e.algorithmType.currentValue)}get parentFormGroup(){return this.controlContainer.control}get modelFormGroup(){return this.parentFormGroup.get(this.controlKey)}get modelControl(){return this.modelFormGroup?.get(this.MODEL_CONTROL_NAME)}constructor(e,t,i,s){this.controlContainer=e,this.modelsFacadeService=t,this.scriptFacadeService=i,this.pageRunningScriptSpiningIndicatorService=s,this.controlKey="",this.PageKey=ot,this.RoutesList=je,this.searchModel=new j,this.models=[],this.MODEL_CONTROL_NAME="model"}ngOnInit(){this.initializeForm(),this.listenToScriptStateChanges(),this.listenToSearchModelValueChanges(),this.configureModels(this.algorithmType)}configureModels(e){if(e)switch(this.getModelsByTypeSubscription?.unsubscribe(),this.getModelsByTypeSubscription=this.subscribeToModelsListChanges(e),this.modelsFacadeService.dispatch(w.getModelsList({algorithmType:e})),e){case c.PRUNING:{this.modelsFacadeService.dispatch(w.getCurrentOrPreviousSelectedModel({algorithmType:y.PRUNING_TRAIN}));break}case c.QUANTIZATION:{this.modelsFacadeService.dispatch(w.getCurrentOrPreviousSelectedModel({algorithmType:y.QUANTIZATION_TRAIN}));break}case c.MACHINE_UNLEARNING:{this.modelsFacadeService.dispatch(w.getCurrentOrPreviousSelectedModel({algorithmType:y.MACHINE_UNLEARNING_TRAIN}));break}}}listenToCurrentModelChanges(){this.modelsFacadeService.currentModel$.pipe(f(this)).subscribe(e=>{if(G(e))return;this.models.find(i=>i.name===e)&&this.modelControl?.patchValue(e)})}subscribeToModelsListChanges(e){let t=!1;return this.modelsFacadeService.getModelsByType(e).pipe(b(i=>!et(i)),N(i=>[...i].sort((s,ve)=>Number(ve.isTrained)-Number(s.isTrained)))).subscribe(i=>{this.models=i,this.searchModel.setValue(""),t||(this.listenToCurrentModelChanges(),t=!0)})}initializeForm(){this.parentFormGroup.addControl(this.controlKey,new D({[this.MODEL_CONTROL_NAME]:new j("",X.required)}))}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(f(this)).subscribe(e=>{O(e)?this.modelFormGroup.disable():this.modelFormGroup.enable()})}listenToSearchModelValueChanges(){this.filteredModels=this.searchModel.valueChanges.pipe(f(this),Ae(""),N(e=>this.filterModels(e)))}filterModels(e){let t=e.toLowerCase();return this.models.filter(i=>i.name.toLowerCase().includes(t))}trackByModel(e,t){return t.name}ngOnDestroy(){this.parentFormGroup.removeControl(this.controlKey)}},C.\u0275fac=function(t){return new(t||C)(p(v),p(V),p(L),p(rt))},C.\u0275cmp=I({type:C,selectors:[["ms-panel-model-training"]],inputs:{controlKey:"controlKey",algorithmType:"algorithmType"},standalone:!0,features:[Z([],[{provide:v,useFactory:()=>H(v,{skipSelf:!0})}]),Pe,xe],decls:12,vars:5,consts:[[1,"ms-card","model-card"],[1,"panel-title-wrapper"],[1,"heading-sub-section-title"],[1,"form-field-container",3,"formGroupName"],["appearance","outline","subscriptSizing","dynamic"],["formControlName","model","placeholder","Select a model..."],["label","Predefined Models"],[3,"formControl"],[4,"ngIf"],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],["disabled","",4,"ngIf"],[3,"value"],["class","mat-error","fontSet","ms","fontIcon","icon-X",4,"ngIf"],["fontSet","ms","fontIcon","icon-X",1,"mat-error"],["disabled",""]],template:function(t,i){t&1&&(m(0,"mat-card",0)(1,"div",1)(2,"div",2),l(3,"Model"),a()(),m(4,"div",3)(5,"mat-form-field",4)(6,"mat-select",5)(7,"mat-optgroup",6)(8,"mat-option"),g(9,"ngx-mat-select-search",7),a(),d(10,Nt,3,3,"ng-container",8),A(11,"async"),a()()()()()),t&2&&(r(4),n("formGroupName",i.controlKey),r(5),n("formControl",i.searchModel),r(),n("ngIf",E(11,3,i.filteredModels)))},dependencies:[oe,ee,k,He,ie,te,se,K,ne,re,ce,pe,W,$e,me,ae,J,R,q,Ve,lt,mt,We],styles:[".panel-title-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:12px}.panel-title-wrapper[_ngcontent-%COMP%] .train-models[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}"]}),C);U=F([P()],U);function Pt(o,e){if(o&1&&(m(0,"mat-option",7),l(1),a()),o&2){let t=e.$implicit;n("value",t.key),r(),x(" ",t.value," ")}}var _,ge=(_=class{get parentFormGroup(){return this.controlContainer.control}get algorithmTypeFormGroup(){return this.parentFormGroup.get(this.controlKey)}get algorithmTypeFormControl(){return this.algorithmTypeFormGroup.get(this.ALGORITHM_TYPE_CONTROL_NAME)}constructor(e,t){this.controlContainer=e,this.scriptFacadeService=t,this.controlKey="",this.algorithmTypesOptions=tt.filter(i=>i.key!==c.TRAIN&&i.key!==c.AWQ),this.ALGORITHM_TYPE_CONTROL_NAME="algorithmType"}ngOnInit(){this.initForm(),this.loadInitialData(),this.listenToScriptStateChanges()}loadInitialData(){this.scriptFacadeService.scriptDetails$.pipe(Q(1),Ie(1),b(e=>!G(e?.algKey)),N(e=>e.algKey)).subscribe(e=>{switch(e){case y.PRUNING_TRAIN:{this.algorithmTypeFormControl.patchValue(c.PRUNING);break}case y.MACHINE_UNLEARNING_TRAIN:{this.algorithmTypeFormControl.patchValue(c.MACHINE_UNLEARNING);break}case y.QUANTIZATION_TRAIN:{this.algorithmTypeFormControl.patchValue(c.QUANTIZATION);break}default:this.algorithmTypeFormControl.patchValue(c.PRUNING)}}),this.scriptFacadeService.dispatch(le.getCurrentOrLastActiveScriptDetails())}initForm(){this.parentFormGroup.addControl(this.controlKey,new D({[this.ALGORITHM_TYPE_CONTROL_NAME]:new j(c.PRUNING,X.required)}))}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(f(this)).subscribe(e=>{O(e)?this.algorithmTypeFormGroup.disable():this.algorithmTypeFormGroup.enable()})}trackByAlgorithmType(e,t){return t.key}},_.\u0275fac=function(t){return new(t||_)(p(v),p(L))},_.\u0275cmp=I({type:_,selectors:[["ms-panel-algorithm-type-for-training"]],inputs:{controlKey:"controlKey"},features:[Z([],[{provide:v,useFactory:()=>H(v,{skipSelf:!0})}])],decls:8,vars:4,consts:[[1,"ms-card","parameters-card"],[1,"heading-sub-section-title"],[3,"formGroupName"],[1,"form-field-container"],["appearance","outline","subscriptSizing","dynamic"],[3,"formControlName"],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],[3,"value"]],template:function(t,i){t&1&&(m(0,"mat-card",0)(1,"p",1),l(2,"Algorithm Type"),a(),u(3,2),m(4,"div",3)(5,"mat-form-field",4)(6,"mat-select",5),d(7,Pt,2,2,"mat-option",6),a()()(),h(),a()),t&2&&(r(3),n("formGroupName",i.controlKey),r(3),n("formControlName",i.ALGORITHM_TYPE_CONTROL_NAME),r(),n("ngForOf",i.algorithmTypesOptions)("ngForTrackBy",i.trackByAlgorithmType))},dependencies:[R,K,re,pe,W,ee,k,ie,te]}),_);ge=F([P()],ge);function Et(o,e){if(o&1&&(u(0),l(1),A(2,"adaptiveFileSize"),h()),o&2){let t=M().$implicit;r(),B(E(2,1,t.value))}}function Ot(o,e){if(o&1&&(u(0),l(1),A(2,"date"),h()),o&2){let t=M().$implicit;r(),B(Re(2,1,t.value,"medium"))}}function Gt(o,e){if(o&1&&(u(0),l(1),A(2,"readableDuration"),h()),o&2){let t=M().$implicit;r(),B(E(2,1,t.value))}}function wt(o,e){if(o&1&&(u(0),l(1),h()),o&2){let t=M().$implicit;r(),B(t.value)}}function xt(o,e){o&1&&(m(0,"div",15),g(1,"mat-divider"),a())}function Rt(o,e){if(o&1&&(m(0,"div")(1,"div",8)(2,"div",9),l(3),A(4,"parametersLabel"),a(),m(5,"div",10),u(6,11),d(7,Et,3,3,"ng-container",12)(8,Ot,3,4,"ng-container",12)(9,Gt,3,3,"ng-container",12)(10,wt,2,1,"ng-container",13),h(),a()(),d(11,xt,2,0,"div",14),a()),o&2){let t=e.$implicit,i=e.last;r(3),x("",E(4,6,t.key),":"),r(3),n("ngSwitch",t.key),r(),n("ngSwitchCase","file_size_bytes"),r(),n("ngSwitchCase","creation_date"),r(),n("ngSwitchCase","training_duration_seconds"),r(2),n("ngIf",!i)}}function kt(o,e){if(o&1&&(m(0,"div",6),d(1,Rt,12,8,"div",7),a()),o&2){let t=M().$implicit;r(),n("ngForOf",t)}}function Dt(o,e){if(o&1&&(m(0,"div",4),d(1,kt,2,1,"div",5),a()),o&2){let t=e.$implicit;M();let i=we(6);r(),n("ngIf",t.length>0)("ngIfElse",i)}}function Lt(o,e){o&1&&g(0,"ms-empty-state",16)}var T,ue=(T=class{constructor(e){this.modelsFacadeService=e,this.metadata={}}ngOnInit(){this.modelsFacadeService.modelMetadata$.pipe(Q(1),f(this)).subscribe(e=>{this.metadata=e})}},T.\u0275fac=function(t){return new(t||T)(p(V))},T.\u0275cmp=I({type:T,selectors:[["ms-panel-model-metadata"]],decls:7,vars:3,consts:[["noMetadata",""],[1,"ms-card","metadata-card"],[1,"heading-sub-section-title"],["class","metadata-wrapper",4,"ngIf"],[1,"metadata-wrapper"],["class","key-value-container single",4,"ngIf","ngIfElse"],[1,"key-value-container","single"],[4,"ngFor","ngForOf"],[1,"key-value-pair","space-between"],[1,"key-value-key"],[1,"key-value-value"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","pt-2",4,"ngIf"],[1,"pt-2"],["title","No metadata available"]],template:function(t,i){t&1&&(m(0,"mat-card",1)(1,"p",2),l(2,"Model Training Information"),a(),d(3,Dt,2,2,"div",3),A(4,"keyvalue"),d(5,Lt,1,0,"ng-template",null,0,ke),a()),t&2&&(r(3),n("ngIf",E(4,1,i.metadata)))},dependencies:[R,q,De,Le,Ke,st,K,Qe,Ue,Be,pt,dt,ct],styles:[".metadata-wrapper[_ngcontent-%COMP%]{max-height:300px;overflow:auto;padding-right:20px}"]}),T);ue=F([P()],ue);var Vt=["panelParameters"],S,he=(S=class{constructor(e,t,i,s){this.navigationService=e,this.scriptFacadeService=t,this.snackbarService=i,this.modelsFacadeService=s,this.form=new D({}),this.isScriptActive=!1,this.selectedAlgorithmType=c.PRUNING,this.selectedAlgorithmKey=y.PRUNING_TRAIN}ngOnInit(){this.listenToAlgorithmPanelChanges(),this.listenToScriptStateChanges(),this.listenToFormChangesToLoadModelMetadata()}listenToAlgorithmPanelChanges(){this.form.valueChanges.pipe(ye(50),N(()=>{let e=this.form.getRawValue();return e.algorithmTypeGroup&&e.algorithmTypeGroup.algorithmType}),Me(),b(e=>!!e),f(this)).subscribe(e=>{this.selectedAlgorithmType=e,this.selectedAlgorithmKey=it[e]})}listenToScriptStateChanges(){this.scriptFacadeService.scriptStatus$.pipe(f(this)).subscribe(e=>{this.isScriptActive=O(e),O(e)?this.form.disable():this.form.enable()})}listenToFormChangesToLoadModelMetadata(){this.form.valueChanges.pipe(ye(50),N(e=>{let t=e.algorithmTypeGroup?.algorithmType,i=e.model?.model;return{algorithmType:t,model:i}}),Me((e,t)=>JSON.stringify(e)===JSON.stringify(t)),b(({algorithmType:e,model:t})=>!G(e)&&!G(t)),f(this)).subscribe(({algorithmType:e,model:t})=>{this.modelsFacadeService.dispatch(w.getModelMetadata({algorithmType:e,modelName:t}))})}submit(){if(Xe(this.selectedAlgorithmType)){this.snackbarService.showError("Select an algorithm before running a script.");return}let{model:e}=this.form.getRawValue(),{model:t}=e,i={alg:this.selectedAlgorithmKey,params:Ne(Fe({},this.panelParametersComponent.parametersFormatted),{arch:t})};this.scriptFacadeService.dispatch(le.callScript({configs:i}))}},S.\u0275fac=function(t){return new(t||S)(p(at),p(L),p(nt),p(V))},S.\u0275cmp=I({type:S,selectors:[["ms-model-training"]],viewQuery:function(t,i){if(t&1&&Ee(Vt,5),t&2){let s;Oe(s=Ge())&&(i.panelParametersComponent=s.first)}},decls:17,vars:4,consts:[["panelParameters",""],[1,"heading-primary-title","title"],[1,"page-wrapper"],[1,"left",3,"formGroup"],["controlKey","algorithmTypeGroup"],["controlKey","model",3,"algorithmType"],["controlKey","params",3,"algorithm"],["mat-raised-button","","color","primary",3,"click","disabled"],["mat-stroked-button","","color","primary",1,"ml-2",3,"click"],["fontSet","ms","fontIcon","icon-ArrowLeft"],[1,"right"]],template:function(t,i){if(t&1){let s=be();m(0,"p",1),l(1,"Model Training"),a(),m(2,"div",2)(3,"div",3),g(4,"ms-panel-algorithm-type-for-training",4)(5,"ms-panel-model-training",5)(6,"ms-panel-model-metadata")(7,"ms-panel-parameters",6,0),m(9,"div")(10,"button",7),Te("click",function(){return Ce(s),_e(i.submit())}),l(11," Run "),a(),m(12,"button",8),Te("click",function(){return Ce(s),_e(i.navigationService.goToPreviousPage())}),g(13,"mat-icon",9),l(14," Go back "),a()()(),m(15,"div",10),g(16,"ms-terminal"),a()()}t&2&&(r(3),n("formGroup",i.form),r(2),n("algorithmType",i.selectedAlgorithmType),r(2),n("algorithm",i.selectedAlgorithmKey),r(3),n("disabled",i.isScriptActive||i.form.invalid))},dependencies:[de,U,fe,k,Ye,ae,qe,ge,ue],styles:[".title[_ngcontent-%COMP%]{margin-bottom:13px}"]}),S);he=F([P()],he);var Ut=[{path:"",component:he}],vt=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=z({imports:[Se.forChild(Ut),Se]});let o=e;return o})();var To=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=z({imports:[J,vt,de,U,fe,se,ze,ce,ne,Ze,oe,me,Je]});let o=e;return o})();export{To as ModelTrainingModule}; diff --git a/frontend/server/modelsmith-build/browser/index.html b/frontend/server/modelsmith-build/browser/index.html index 513cb185..a5418139 100644 --- a/frontend/server/modelsmith-build/browser/index.html +++ b/frontend/server/modelsmith-build/browser/index.html @@ -31,5 +31,5 @@ - + diff --git a/frontend/server/modelsmith-build/browser/main-AJYPV54S.js b/frontend/server/modelsmith-build/browser/main-AJYPV54S.js deleted file mode 100644 index 17222e94..00000000 --- a/frontend/server/modelsmith-build/browser/main-AJYPV54S.js +++ /dev/null @@ -1 +0,0 @@ -import{c as os}from"./chunk-RAX4D5PF.js";import{a as ns}from"./chunk-JZLUCDH7.js";import{a as ge}from"./chunk-OWZJXMSU.js";import{a as B,b as re,c as ss}from"./chunk-4KWEJN4U.js";import{a as Ie,c as Gi,d as Hi,e as Wi,f as Xi,g as te,h as Yi,i as dt,j as Zi,k as Ji,l as es,n as ts,o as rs,q as is}from"./chunk-NO2PD4LU.js";import{$b as Ne,A as ci,B as ui,Be as Vi,Cb as Yt,Cd as je,Db as tt,E as fi,Eb as Ii,F as hi,Fb as Ri,G as di,Gb as Di,Gc as xi,Hb as Zt,I as U,Ib as Fi,J as Ye,Jb as ki,Jc as w,Kc as le,L as pi,Lb as rt,M as O,Md as ft,Nb as it,Nc as ji,Nd as ht,O as R,Ob as L,Oc as er,P as ne,Pb as ae,Q as xe,Qb as Y,R as T,Rb as me,S as mi,Sb as Z,T as gi,Tb as st,Tc as Pe,Td as Qi,U as oe,Uc as tr,Vc as lt,Wb as Li,X as yi,Xb as Ce,Zb as Jt,_b as x,a as _,ac as nt,b as C,ba as Si,bb as Je,bc as ot,c as Jr,cc as at,cd as ce,d as Pn,da as Ei,db as _i,e as In,ed as ue,fd as ct,g as Gt,ga as Wt,gd as $i,hd as zi,id as Ui,j as ei,k as ti,l as ri,m as ii,ma as Ti,n as si,o as K,oa as Ze,p as ni,pb as bi,qb as wi,r as oi,rb as Ai,rd as Ki,s as z,sb as Xt,tb as Mi,ub as Oi,ud as ut,v as Ht,vb as Ci,vd as Bi,w as Oe,wb as Ni,x as Q,xb as et,xd as qi,y as ai,ya as vi,yb as Pi,z as li}from"./chunk-AIAH5BT5.js";var bn=Pn((Lf,_n)=>{"use strict";var Ra=function(e){return Da(e)&&!Fa(e)};function Da(i){return!!i&&typeof i=="object"}function Fa(i){var e=Object.prototype.toString.call(i);return e==="[object RegExp]"||e==="[object Date]"||xa(i)}var ka=typeof Symbol=="function"&&Symbol.for,La=ka?Symbol.for("react.element"):60103;function xa(i){return i.$$typeof===La}function ja(i){return Array.isArray(i)?[]:{}}function We(i,e){return e.clone!==!1&&e.isMergeableObject(i)?Le(ja(i),i,e):i}function $a(i,e,t){return i.concat(e).map(function(r){return We(r,t)})}function za(i,e){if(!e.customMerge)return Le;var t=e.customMerge(i);return typeof t=="function"?t:Le}function Ua(i){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(i).filter(function(e){return Object.propertyIsEnumerable.call(i,e)}):[]}function Tn(i){return Object.keys(i).concat(Ua(i))}function vn(i,e){try{return e in i}catch{return!1}}function Ka(i,e){return vn(i,e)&&!(Object.hasOwnProperty.call(i,e)&&Object.propertyIsEnumerable.call(i,e))}function Ba(i,e,t){var r={};return t.isMergeableObject(i)&&Tn(i).forEach(function(s){r[s]=We(i[s],t)}),Tn(e).forEach(function(s){Ka(i,s)||(vn(i,s)&&t.isMergeableObject(e[s])?r[s]=za(s,t)(i[s],e[s],t):r[s]=We(e[s],t))}),r}function Le(i,e,t){t=t||{},t.arrayMerge=t.arrayMerge||$a,t.isMergeableObject=t.isMergeableObject||Ra,t.cloneUnlessOtherwiseSpecified=We;var r=Array.isArray(e),s=Array.isArray(i),n=r===s;return n?r?t.arrayMerge(i,e,t):Ba(i,e,t):We(e,t)}Le.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,s){return Le(r,s,t)},{})};var qa=Le;_n.exports=qa});var ze="PERFORM_ACTION",Rn="REFRESH",hs="RESET",ds="ROLLBACK",ps="COMMIT",ms="SWEEP",gs="TOGGLE_ACTION",Dn="SET_ACTIONS_ACTIVE",ys="JUMP_TO_STATE",Ss="JUMP_TO_ACTION",pr="IMPORT_STATE",Es="LOCK_CHANGES",Ts="PAUSE_RECORDING",Re=class{constructor(e,t){if(this.action=e,this.timestamp=t,this.type=ze,typeof e.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}},rr=class{constructor(){this.type=Rn}},ir=class{constructor(e){this.timestamp=e,this.type=hs}},sr=class{constructor(e){this.timestamp=e,this.type=ds}},nr=class{constructor(e){this.timestamp=e,this.type=ps}},or=class{constructor(){this.type=ms}},ar=class{constructor(e){this.id=e,this.type=gs}};var lr=class{constructor(e){this.index=e,this.type=ys}},cr=class{constructor(e){this.actionId=e,this.type=Ss}},ur=class{constructor(e){this.nextLiftedState=e,this.type=pr}},fr=class{constructor(e){this.status=e,this.type=Es}},hr=class{constructor(e){this.status=e,this.type=Ts}};var yt=new xe("@ngrx/store-devtools Options"),as=new xe("@ngrx/store-devtools Initial Config");function vs(){return null}var Fn="NgRx Store DevTools";function kn(i){let e={maxAge:!1,monitor:vs,actionSanitizer:void 0,stateSanitizer:void 0,name:Fn,serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0},connectInZone:!1},t=typeof i=="function"?i():i,r=t.logOnly?{pause:!0,export:!0,test:!0}:!1,s=t.features||r||e.features;s.import===!0&&(s.import="custom");let n=Object.assign({},e,{features:s},t);if(n.maxAge&&n.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${n.maxAge}`);return n}function ls(i,e){return i.filter(t=>e.indexOf(t)<0)}function _s(i){let{computedStates:e,currentStateIndex:t}=i;if(t>=e.length){let{state:s}=e[e.length-1];return s}let{state:r}=e[t];return r}function $e(i){return new Re(i,+Date.now())}function Ln(i,e){return Object.keys(e).reduce((t,r)=>{let s=Number(r);return t[s]=bs(i,e[s],s),t},{})}function bs(i,e,t){return C(_({},e),{action:i(e.action,t)})}function xn(i,e){return e.map((t,r)=>({state:ws(i,t.state,r),error:t.error}))}function ws(i,e,t){return i(e,t)}function As(i){return i.predicate||i.actionsSafelist||i.actionsBlocklist}function jn(i,e,t,r){let s=[],n={},o=[];return i.stagedActionIds.forEach((a,l)=>{let c=i.actionsById[a];c&&(l&&mr(i.computedStates[l],c,e,t,r)||(n[a]=c,s.push(a),o.push(i.computedStates[l])))}),C(_({},i),{stagedActionIds:s,actionsById:n,computedStates:o})}function mr(i,e,t,r,s){let n=t&&!t(i,e.action),o=r&&!e.action.type.match(r.map(l=>cs(l)).join("|")),a=s&&e.action.type.match(s.map(l=>cs(l)).join("|"));return n||o||a}function cs(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ms(i){return{ngZone:i?mi(Ze):null,connectInZone:i}}var St=(()=>{let e=class e extends tt{};e.\u0275fac=(()=>{let r;return function(n){return(r||(r=Si(e)))(n||e)}})(),e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})(),pt={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},dr=new xe("@ngrx/store-devtools Redux Devtools Extension"),Os=(()=>{let e=class e{constructor(r,s,n){this.config=s,this.dispatcher=n,this.zoneConfig=Ms(this.config.connectInZone),this.devtoolsExtension=r,this.createActionStreams()}notify(r,s){if(this.devtoolsExtension)if(r.type===ze){if(s.isLocked||s.isPaused)return;let n=_s(s);if(As(this.config)&&mr(n,r,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;let o=this.config.stateSanitizer?ws(this.config.stateSanitizer,n,s.currentStateIndex):n,a=this.config.actionSanitizer?bs(this.config.actionSanitizer,r,s.nextActionId):r;this.sendToReduxDevtools(()=>this.extensionConnection.send(a,o))}else{let n=C(_({},s),{stagedActionIds:s.stagedActionIds,actionsById:this.config.actionSanitizer?Ln(this.config.actionSanitizer,s.actionsById):s.actionsById,computedStates:this.config.stateSanitizer?xn(this.config.stateSanitizer,s.computedStates):s.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,n,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new Gt(r=>{let s=this.zoneConfig.connectInZone?this.zoneConfig.ngZone.runOutsideAngular(()=>this.devtoolsExtension.connect(this.getExtensionConfig(this.config))):this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=s,s.init(),s.subscribe(n=>r.next(n)),s.unsubscribe}):ri}createActionStreams(){let r=this.createChangesObservable().pipe(hi()),s=r.pipe(Oe(f=>f.type===pt.START)),n=r.pipe(Oe(f=>f.type===pt.STOP)),o=r.pipe(Oe(f=>f.type===pt.DISPATCH),z(f=>this.unwrapAction(f.payload)),ai(f=>f.type===pr?this.dispatcher.pipe(Oe(u=>u.type===Zt),oi(1e3),li(1e3),z(()=>f),Q(()=>K(f)),ci(1)):K(f))),l=r.pipe(Oe(f=>f.type===pt.ACTION),z(f=>this.unwrapAction(f.payload))).pipe(Ye(n)),c=o.pipe(Ye(n));this.start$=s.pipe(Ye(n)),this.actions$=this.start$.pipe(U(()=>l)),this.liftedActions$=this.start$.pipe(U(()=>c))}unwrapAction(r){return typeof r=="string"?(0,eval)(`(${r})`):r}getExtensionConfig(r){let s={name:r.name,features:r.features,serialize:r.serialize,autoPause:r.autoPause??!1,trace:r.trace??!1,traceLimit:r.traceLimit??75};return r.maxAge!==!1&&(s.maxAge=r.maxAge),s}sendToReduxDevtools(r){try{r()}catch(s){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",s)}}};e.\u0275fac=function(s){return new(s||e)(T(dr),T(yt),T(St))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})(),gt={type:Yt},$n="@ngrx/store-devtools/recompute",zn={type:$n};function Cs(i,e,t,r,s){if(r)return{state:t,error:"Interrupted by an error up the chain"};let n=t,o;try{n=i(t,e)}catch(a){o=a.toString(),s.handleError(a)}return{state:n,error:o}}function mt(i,e,t,r,s,n,o,a,l){if(e>=i.length&&i.length===n.length)return i;let c=i.slice(0,e),f=n.length-(l?1:0);for(let u=e;u-1?h:Cs(t,g,d,b,a);c.push(N)}return l&&c.push(i[i.length-1]),c}function Un(i,e){return{monitorState:e(void 0,{}),nextActionId:1,actionsById:{0:$e(gt)},stagedActionIds:[0],skippedActionIds:[],committedState:i,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function Kn(i,e,t,r,s={}){return n=>(o,a)=>{let{monitorState:l,actionsById:c,nextActionId:f,stagedActionIds:u,skippedActionIds:p,committedState:g,currentStateIndex:h,computedStates:d,isLocked:b,isPaused:A}=o||e;o||(c=Object.create(c));function N(P){let v=P,D=u.slice(1,v+1);for(let I=0;ID.indexOf(I)===-1),u=[0,...u.slice(v+1)],g=d[v].state,d=d.slice(v),h=h>v?h-v:0}function k(){c={0:$e(gt)},f=1,u=[0],p=[],g=d[h].state,h=0,d=[]}let E=0;switch(a.type){case Es:{b=a.status,E=1/0;break}case Ts:{A=a.status,A?(u=[...u,f],c[f]=new Re({type:"@ngrx/devtools/pause"},+Date.now()),f++,E=u.length-1,d=d.concat(d[d.length-1]),h===u.length-2&&h++,E=1/0):k();break}case hs:{c={0:$e(gt)},f=1,u=[0],p=[],g=i,h=0,d=[];break}case ps:{k();break}case ds:{c={0:$e(gt)},f=1,u=[0],p=[],h=0,d=[];break}case gs:{let{id:P}=a;p.indexOf(P)===-1?p=[P,...p]:p=p.filter(D=>D!==P),E=u.indexOf(P);break}case Dn:{let{start:P,end:v,active:D}=a,I=[];for(let ee=P;ees.maxAge&&(d=mt(d,E,n,g,c,u,p,t,A),N(u.length-s.maxAge),E=1/0);break}case Zt:{if(d.filter(v=>v.error).length>0)E=0,s.maxAge&&u.length>s.maxAge&&(d=mt(d,E,n,g,c,u,p,t,A),N(u.length-s.maxAge),E=1/0);else{if(!A&&!b){h===u.length-1&&h++;let v=f++;c[v]=new Re(a,+Date.now()),u=[...u,v],E=u.length-1,d=mt(d,E,n,g,c,u,p,t,A)}d=d.map(v=>C(_({},v),{state:n(v.state,zn)})),h=u.length-1,s.maxAge&&u.length>s.maxAge&&N(u.length-s.maxAge),E=1/0}break}default:{E=1/0;break}}return d=mt(d,E,n,g,c,u,p,t,A),l=r(l,a),{monitorState:l,actionsById:c,nextActionId:f,stagedActionIds:u,skippedActionIds:p,committedState:g,currentStateIndex:h,computedStates:d,isLocked:b,isPaused:A}}}var us=(()=>{let e=class e{constructor(r,s,n,o,a,l,c,f){let u=Un(c,f.monitor),p=Kn(c,u,l,f.monitor,f),g=Ht(Ht(s.asObservable().pipe(di(1)),o.actions$).pipe(z($e)),r,o.liftedActions$).pipe(si(ti)),h=n.pipe(z(p)),d=Ms(f.connectInZone),b=new ei(1);this.liftedStateSubscription=g.pipe(pi(h),fs(d),fi(({state:k},[E,P])=>{let v=P(k,E);return E.type!==ze&&As(f)&&(v=jn(v,f.predicate,f.actionsSafelist,f.actionsBlocklist)),o.notify(E,v),{state:v,action:E}},{state:u,action:null})).subscribe(({state:k,action:E})=>{if(b.next(k),E.type===ze){let P=E.action;a.next(P)}}),this.extensionStartSubscription=o.start$.pipe(fs(d)).subscribe(()=>{this.refresh()});let A=b.asObservable(),N=A.pipe(z(_s));Object.defineProperty(N,"state",{value:Pi(N,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=r,this.liftedState=A,this.state=N}ngOnDestroy(){this.liftedStateSubscription.unsubscribe(),this.extensionStartSubscription.unsubscribe()}dispatch(r){this.dispatcher.next(r)}next(r){this.dispatcher.next(r)}error(r){}complete(){}performAction(r){this.dispatch(new Re(r,+Date.now()))}refresh(){this.dispatch(new rr)}reset(){this.dispatch(new ir(+Date.now()))}rollback(){this.dispatch(new sr(+Date.now()))}commit(){this.dispatch(new nr(+Date.now()))}sweep(){this.dispatch(new or)}toggleAction(r){this.dispatch(new ar(r))}jumpToAction(r){this.dispatch(new cr(r))}jumpToState(r){this.dispatch(new lr(r))}importState(r){this.dispatch(new ur(r))}lockChanges(r){this.dispatch(new fr(r))}pauseRecording(r){this.dispatch(new hr(r))}};e.\u0275fac=function(s){return new(s||e)(T(St),T(tt),T(Ri),T(Os),T(Fi),T(Ei),T(Ii),T(yt))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();function fs({ngZone:i,connectInZone:e}){return t=>e?new Gt(r=>t.subscribe({next:s=>i.run(()=>r.next(s)),error:s=>i.run(()=>r.error(s)),complete:()=>i.run(()=>r.complete())})):t}var Bn=new xe("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function qn(i,e){return!!i||e.monitor!==vs}function Qn(){let i="__REDUX_DEVTOOLS_EXTENSION__";return typeof window=="object"&&typeof window[i]<"u"?window[i]:null}function Vn(i={}){return yi([Os,St,us,{provide:as,useValue:i},{provide:Bn,deps:[dr,yt],useFactory:qn},{provide:dr,useFactory:Qn},{provide:yt,deps:[as],useFactory:kn},{provide:ki,deps:[us],useFactory:Gn},{provide:Di,useExisting:St}])}function Gn(i){return i.state}var Ns=(()=>{let e=class e{static instrument(r={}){return{ngModule:e,providers:[Vn(r)]}}};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ne({});let i=e;return i})();var j={CORE:{ROOT:"core"},SCRIPT:{ROOT:"script"},AUTH:{ROOT:"auth",USER:{ROOT:"user",JWT:"jwt"}},MODEL_COMPRESSION:{ROOT:"model-compression",PARAMETERS:{ROOT:"parameters"}},CONFIGS:{ROOT:"configs",DEFAULT_MODE:"defaultMode"}};var ye=class{static setItem(e,t){localStorage.setItem(e,JSON.stringify(t))}static getItem(e){let t=localStorage.getItem(e);return t?JSON.parse(t):null}static getNestedItem(e,t){let r=this.getItem(e);return r?this.getNestedProperty(r,t):null}static removeItem(e){localStorage.removeItem(e)}static clear(){localStorage.clear()}static getNestedProperty(e,t){if(!t)return e;let r=t.split(".");for(let s=0;s{let e=class e{constructor(r){this.router=r}canActivate(){return ye.getNestedItem(j.CORE.ROOT,`${j.AUTH.ROOT}.${j.AUTH.USER.ROOT}.${j.AUTH.USER.JWT}`)?!0:(this.router.navigate([`/${x.AUTH.ROOT}`]),!1)}};e.\u0275fac=function(s){return new(s||e)(T(Ce))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();var Et=(()=>{let e=class e{constructor(r,s){this.router=r,this.configFacadeService=s}canActivate(){let r=ye.getNestedItem(j.CORE.ROOT,`${j.CONFIGS.ROOT}.${j.CONFIGS.DEFAULT_MODE}`);return r&&(r===nt.GUIDED?(this.router.navigate([`/${x.WIZARD.ROOT}`]),this.configFacadeService.dispatch(Ne.setCurrentMode({mode:nt.GUIDED}))):(this.router.navigate([`/${x.MODEL_COMPRESSION.ROOT}`]),this.configFacadeService.dispatch(Ne.setCurrentMode({mode:nt.EXPERT})))),!0}};e.\u0275fac=function(s){return new(s||e)(T(Ce),T(at))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();var Tt=(()=>{let e=class e{constructor(r){this.router=r}canActivate(){return ye.getNestedItem(j.CORE.ROOT,`${j.AUTH.ROOT}.${j.AUTH.USER.ROOT}.${j.AUTH.USER.JWT}`)?(this.router.navigate([`/${x.MODE_SELECT.ROOT}`]),!1):!0}};e.\u0275fac=function(s){return new(s||e)(T(Ce))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();var Hn=[{path:x.AUTH.ROOT,loadChildren:()=>import("./chunk-FB4UOAYL.js").then(i=>i.AuthModule),canActivate:[Tt]},{path:x.MODE_SELECT.ROOT,loadChildren:()=>import("./chunk-NIXKNBGC.js").then(i=>i.ModeSelectModule),canActivate:[Ue,Et]},{path:x.DEMO.ROOT,loadChildren:()=>import("./chunk-PNGDI5FF.js").then(i=>i.DemoModule)},{path:"",pathMatch:"full",redirectTo:x.AUTH.ROOT},{path:"",component:Qi,canActivate:[Ue],children:[{path:"",redirectTo:x.WIZARD.ROOT,pathMatch:"full"},{path:x.WIZARD.ROOT,loadChildren:()=>import("./chunk-6A35GAJL.js").then(i=>i.WizardModule)},{path:x.MODEL_COMPRESSION.ROOT,loadChildren:()=>import("./chunk-YG4M2IQW.js").then(i=>i.ModelCompressionModule)},{path:x.MACHINE_UNLEARNING.ROOT,loadChildren:()=>import("./chunk-WFJKEUUC.js").then(i=>i.MachineUnlearningModule)},{path:x.AWQ.ROOT,loadChildren:()=>import("./chunk-WEPUEGKY.js").then(i=>i.LlmQuantizationModule)},{path:x.RUNNING.ROOT,loadChildren:()=>import("./chunk-BBURJRCW.js").then(i=>i.RunningModule)},{path:x.MODEL_TRAINING.ROOT,loadChildren:()=>import("./chunk-PTRGCVO5.js").then(i=>i.ModelTrainingModule)},{path:x.ALGORITHM_COMPARISON.ROOT,loadChildren:()=>import("./chunk-4RL3OKAB.js").then(i=>i.AlgorithmComparisonModule)},{path:x.MULTI_MODAL.ROOT,loadChildren:()=>import("./chunk-GRXBCACP.js").then(i=>i.MultiModalModule)}]}],Ps=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ne({imports:[Jt.forRoot(Hn),Jt]});let i=e;return i})();var he,vt=(he=class{constructor(){this.title="modelsmith"}ngOnInit(){}},he.\u0275fac=function(t){return new(t||he)},he.\u0275cmp=gi({type:he,selectors:[["app-root"]],decls:1,vars:0,template:function(t,r){t&1&&vi(0,"router-outlet")},dependencies:[Li]}),he);vt=ii([Ki()],vt);function Is(i){return new O(3e3,!1)}function Wn(){return new O(3100,!1)}function Xn(){return new O(3101,!1)}function Yn(i){return new O(3001,!1)}function Zn(i){return new O(3003,!1)}function Jn(i){return new O(3004,!1)}function eo(i,e){return new O(3005,!1)}function to(){return new O(3006,!1)}function ro(){return new O(3007,!1)}function io(i,e){return new O(3008,!1)}function so(i){return new O(3002,!1)}function no(i,e,t,r,s){return new O(3010,!1)}function oo(){return new O(3011,!1)}function ao(){return new O(3012,!1)}function lo(){return new O(3200,!1)}function co(){return new O(3202,!1)}function uo(){return new O(3013,!1)}function fo(i){return new O(3014,!1)}function ho(i){return new O(3015,!1)}function po(i){return new O(3016,!1)}function mo(i,e){return new O(3404,!1)}function go(i){return new O(3502,!1)}function yo(i){return new O(3503,!1)}function So(){return new O(3300,!1)}function Eo(i){return new O(3504,!1)}function To(i){return new O(3301,!1)}function vo(i,e){return new O(3302,!1)}function _o(i){return new O(3303,!1)}function bo(i,e){return new O(3400,!1)}function wo(i){return new O(3401,!1)}function Ao(i){return new O(3402,!1)}function Mo(i,e){return new O(3505,!1)}function Se(i){switch(i.length){case 0:return new Pe;case 1:return i[0];default:return new tr(i)}}function Qs(i,e,t=new Map,r=new Map){let s=[],n=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),f=c==o,u=f&&a||new Map;l.forEach((p,g)=>{let h=g,d=p;if(g!=="offset")switch(h=i.normalizePropertyName(h,s),d){case lt:d=t.get(g);break;case le:d=r.get(g);break;default:d=i.normalizeStyleValue(g,h,d,s);break}u.set(h,d)}),f||n.push(u),a=u,o=c}),s.length)throw go(s);return n}function $r(i,e,t,r){switch(e){case"start":i.onStart(()=>r(t&&yr(t,"start",i)));break;case"done":i.onDone(()=>r(t&&yr(t,"done",i)));break;case"destroy":i.onDestroy(()=>r(t&&yr(t,"destroy",i)));break}}function yr(i,e,t){let r=t.totalTime,s=!!t.disabled,n=zr(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,r??i.totalTime,s),o=i._data;return o!=null&&(n._data=o),n}function zr(i,e,t,r,s="",n=0,o){return{element:i,triggerName:e,fromState:t,toState:r,phaseName:s,totalTime:n,disabled:!!o}}function W(i,e,t){let r=i.get(e);return r||i.set(e,r=t),r}function Rs(i){let e=i.indexOf(":"),t=i.substring(1,e),r=i.slice(e+1);return[t,r]}var Oo=typeof document>"u"?null:document.documentElement;function Ur(i){let e=i.parentNode||i.host||null;return e===Oo?null:e}function Co(i){return i.substring(1,6)=="ebkit"}var ve=null,Ds=!1;function No(i){ve||(ve=Po()||{},Ds=ve.style?"WebkitAppearance"in ve.style:!1);let e=!0;return ve.style&&!Co(i)&&(e=i in ve.style,!e&&Ds&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in ve.style)),e}function Po(){return typeof document<"u"?document.body:null}function Vs(i,e){for(;e;){if(e===i)return!0;e=Ur(e)}return!1}function Gs(i,e,t){if(t)return Array.from(i.querySelectorAll(e));let r=i.querySelector(e);return r?[r]:[]}var Kr=(()=>{let e=class e{validateStyleProperty(r){return No(r)}containsElement(r,s){return Vs(r,s)}getParentElement(r){return Ur(r)}query(r,s,n){return Gs(r,s,n)}computeStyle(r,s,n){return n||""}animate(r,s,n,o,a,l=[],c){return new Pe(n,o)}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})(),Vr=class Vr{};Vr.NOOP=new Kr;var we=Vr,Ae=class{};var Io=1e3,Hs="{{",Ro="}}",Ws="ng-enter",br="ng-leave",_t="ng-trigger",Ot=".ng-trigger",Fs="ng-animating",wr=".ng-animating";function de(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Ar(parseFloat(e[1]),e[2])}function Ar(i,e){switch(e){case"s":return i*Io;default:return i}}function Ct(i,e,t){return i.hasOwnProperty("duration")?i:Do(i,e,t)}function Do(i,e,t){let r=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,s,n=0,o="";if(typeof i=="string"){let a=i.match(r);if(a===null)return e.push(Is(i)),{duration:0,delay:0,easing:""};s=Ar(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(n=Ar(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else s=i;if(!t){let a=!1,l=e.length;s<0&&(e.push(Wn()),a=!0),n<0&&(e.push(Xn()),a=!0),a&&e.splice(l,0,Is(i))}return{duration:s,delay:n,easing:o}}function Fo(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function fe(i,e,t){e.forEach((r,s)=>{let n=Br(s);t&&!t.has(s)&&t.set(s,i.style[n]),i.style[n]=r})}function be(i,e){e.forEach((t,r)=>{let s=Br(r);i.style[s]=""})}function Ke(i){return Array.isArray(i)?i.length==1?i[0]:ji(i):i}function ko(i,e,t){let r=e.params||{},s=Xs(i);s.length&&s.forEach(n=>{r.hasOwnProperty(n)||t.push(Yn(n))})}var Mr=new RegExp(`${Hs}\\s*(.+?)\\s*${Ro}`,"g");function Xs(i){let e=[];if(typeof i=="string"){let t;for(;t=Mr.exec(i);)e.push(t[1]);Mr.lastIndex=0}return e}function qe(i,e,t){let r=`${i}`,s=r.replace(Mr,(n,o)=>{let a=e[o];return a==null&&(t.push(Zn(o)),a=""),a.toString()});return s==r?i:s}var Lo=/-+([a-z0-9])/g;function Br(i){return i.replace(Lo,(...e)=>e[1].toUpperCase())}function xo(i,e){return i===0||e===0}function jo(i,e,t){if(t.size&&e.length){let r=e[0],s=[];if(t.forEach((n,o)=>{r.has(o)||s.push(o),r.set(o,n)}),s.length)for(let n=1;no.set(a,qr(i,a)))}}return e}function H(i,e,t){switch(e.type){case w.Trigger:return i.visitTrigger(e,t);case w.State:return i.visitState(e,t);case w.Transition:return i.visitTransition(e,t);case w.Sequence:return i.visitSequence(e,t);case w.Group:return i.visitGroup(e,t);case w.Animate:return i.visitAnimate(e,t);case w.Keyframes:return i.visitKeyframes(e,t);case w.Style:return i.visitStyle(e,t);case w.Reference:return i.visitReference(e,t);case w.AnimateChild:return i.visitAnimateChild(e,t);case w.AnimateRef:return i.visitAnimateRef(e,t);case w.Query:return i.visitQuery(e,t);case w.Stagger:return i.visitStagger(e,t);default:throw Jn(e.type)}}function qr(i,e){return window.getComputedStyle(i)[e]}var $o=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Nt=class extends Ae{normalizePropertyName(e,t){return Br(e)}normalizeStyleValue(e,t,r,s){let n="",o=r.toString().trim();if($o.has(t)&&r!==0&&r!=="0")if(typeof r=="number")n="px";else{let a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&s.push(eo(e,r))}return o+n}};var Pt="*";function zo(i,e){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(r=>Uo(r,t,e)):t.push(i),t}function Uo(i,e,t){if(i[0]==":"){let l=Ko(i,t);if(typeof l=="function"){e.push(l);return}i=l}let r=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(r==null||r.length<4)return t.push(ho(i)),e;let s=r[1],n=r[2],o=r[3];e.push(ks(s,o));let a=s==Pt&&o==Pt;n[0]=="<"&&!a&&e.push(ks(o,s))}function Ko(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,r)=>parseFloat(r)>parseFloat(t);case":decrement":return(t,r)=>parseFloat(r) *"}}var bt=new Set(["true","1"]),wt=new Set(["false","0"]);function ks(i,e){let t=bt.has(i)||wt.has(i),r=bt.has(e)||wt.has(e);return(s,n)=>{let o=i==Pt||i==s,a=e==Pt||e==n;return!o&&t&&typeof s=="boolean"&&(o=s?bt.has(i):wt.has(i)),!a&&r&&typeof n=="boolean"&&(a=n?bt.has(e):wt.has(e)),o&&a}}var Ys=":self",Bo=new RegExp(`s*${Ys}s*,?`,"g");function Zs(i,e,t,r){return new Or(i).build(e,t,r)}var Ls="",Or=class{constructor(e){this._driver=e}build(e,t,r){let s=new Cr(t);return this._resetContextStyleTimingState(s),H(this,Ke(e),s)}_resetContextStyleTimingState(e){e.currentQuerySelector=Ls,e.collectedStyles=new Map,e.collectedStyles.set(Ls,new Map),e.currentTime=0}visitTrigger(e,t){let r=t.queryCount=0,s=t.depCount=0,n=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(to()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==w.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(f=>{l.name=f,n.push(this.visitState(l,t))}),l.name=c}else if(a.type==w.Transition){let l=this.visitTransition(a,t);r+=l.queryCount,s+=l.depCount,o.push(l)}else t.errors.push(ro())}),{type:w.Trigger,name:e.name,states:n,transitions:o,queryCount:r,depCount:s,options:null}}visitState(e,t){let r=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(r.containsDynamicStyles){let n=new Set,o=s||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Xs(l).forEach(c=>{o.hasOwnProperty(c)||n.add(c)})})}),n.size&&t.errors.push(io(e.name,[...n.values()]))}return{type:w.State,name:e.name,style:r,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let r=H(this,Ke(e.animation),t),s=zo(e.expr,t.errors);return{type:w.Transition,matchers:s,animation:r,queryCount:t.queryCount,depCount:t.depCount,options:_e(e.options)}}visitSequence(e,t){return{type:w.Sequence,steps:e.steps.map(r=>H(this,r,t)),options:_e(e.options)}}visitGroup(e,t){let r=t.currentTime,s=0,n=e.steps.map(o=>{t.currentTime=r;let a=H(this,o,t);return s=Math.max(s,t.currentTime),a});return t.currentTime=s,{type:w.Group,steps:n,options:_e(e.options)}}visitAnimate(e,t){let r=Go(e.timings,t.errors);t.currentAnimateTimings=r;let s,n=e.styles?e.styles:er({});if(n.type==w.Keyframes)s=this.visitKeyframes(n,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};r.easing&&(c.easing=r.easing),o=er(c)}t.currentTime+=r.duration+r.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,s=l}return t.currentAnimateTimings=null,{type:w.Animate,timings:r,style:s,options:null}}visitStyle(e,t){let r=this._makeStyleAst(e,t);return this._validateStyleAst(r,t),r}_makeStyleAst(e,t){let r=[],s=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of s)typeof a=="string"?a===le?r.push(a):t.errors.push(so(a)):r.push(new Map(Object.entries(a)));let n=!1,o=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!n)){for(let l of a.values())if(l.toString().indexOf(Hs)>=0){n=!0;break}}}),{type:w.Style,styles:r,easing:o,offset:e.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(e,t){let r=t.currentAnimateTimings,s=t.currentTime,n=t.currentTime;r&&n>0&&(n-=r.duration+r.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),f=c.get(l),u=!0;f&&(n!=s&&n>=f.startTime&&s<=f.endTime&&(t.errors.push(no(l,f.startTime,f.endTime,n,s)),u=!1),n=f.startTime),u&&c.set(l,{startTime:n,endTime:s}),t.options&&ko(a,t.options,t.errors)})})}visitKeyframes(e,t){let r={type:w.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(oo()),r;let s=1,n=0,o=[],a=!1,l=!1,c=0,f=e.steps.map(A=>{let N=this._makeStyleAst(A,t),k=N.offset!=null?N.offset:Vo(N.styles),E=0;return k!=null&&(n++,E=N.offset=k),l=l||E<0||E>1,a=a||E0&&n{let k=p>0?N==g?1:p*N:o[N],E=k*b;t.currentTime=h+d.delay+E,d.duration=E,this._validateStyleAst(A,t),A.offset=k,r.styles.push(A)}),r}visitReference(e,t){return{type:w.Reference,animation:H(this,Ke(e.animation),t),options:_e(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:w.AnimateChild,options:_e(e.options)}}visitAnimateRef(e,t){return{type:w.AnimateRef,animation:this.visitReference(e.animation,t),options:_e(e.options)}}visitQuery(e,t){let r=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;let[n,o]=qo(e.selector);t.currentQuerySelector=r.length?r+" "+n:n,W(t.collectedStyles,t.currentQuerySelector,new Map);let a=H(this,Ke(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=r,{type:w.Query,selector:n,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:_e(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(uo());let r=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Ct(e.timings,t.errors,!0);return{type:w.Stagger,animation:H(this,Ke(e.animation),t),timings:r,options:null}}};function qo(i){let e=!!i.split(/\s*,\s*/).find(t=>t==Ys);return e&&(i=i.replace(Bo,"")),i=i.replace(/@\*/g,Ot).replace(/@\w+/g,t=>Ot+"-"+t.slice(1)).replace(/:animating/g,wr),[i,e]}function Qo(i){return i?_({},i):null}var Cr=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function Vo(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){let r=t;e=parseFloat(r.get("offset")),r.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Go(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let n=Ct(i,e).duration;return Sr(n,0,"")}let t=i;if(t.split(/\s+/).some(n=>n.charAt(0)=="{"&&n.charAt(1)=="{")){let n=Sr(0,0,"");return n.dynamic=!0,n.strValue=t,n}let s=Ct(t,e);return Sr(s.duration,s.delay,s.easing)}function _e(i){return i?(i=_({},i),i.params&&(i.params=Qo(i.params))):i={},i}function Sr(i,e,t){return{duration:i,delay:e,easing:t}}function Qr(i,e,t,r,s,n,o=null,a=!1){return{type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:r,duration:s,delay:n,totalTime:s+n,easing:o,subTimeline:a}}var Qe=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Ho=1,Wo=":enter",Xo=new RegExp(Wo,"g"),Yo=":leave",Zo=new RegExp(Yo,"g");function Js(i,e,t,r,s,n=new Map,o=new Map,a,l,c=[]){return new Nr().buildKeyframes(i,e,t,r,s,n,o,a,l,c)}var Nr=class{buildKeyframes(e,t,r,s,n,o,a,l,c,f=[]){c=c||new Qe;let u=new Pr(e,t,c,s,n,f,[]);u.options=l;let p=l.delay?de(l.delay):0;u.currentTimeline.delayNextStep(p),u.currentTimeline.setStyles([o],null,u.errors,l),H(this,r,u);let g=u.timelines.filter(h=>h.containsAnimation());if(g.length&&a.size){let h;for(let d=g.length-1;d>=0;d--){let b=g[d];if(b.element===t){h=b;break}}h&&!h.allowOnlyTimelineStyles()&&h.setStyles([a],null,u.errors,l)}return g.length?g.map(h=>h.buildKeyframes()):[Qr(t,[],[],[],0,p,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let r=t.subInstructions.get(t.element);if(r){let s=t.createSubContext(e.options),n=t.currentTimeline.currentTime,o=this._visitSubInstructions(r,s,s.options);n!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let r=t.createSubContext(e.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,r),this.visitReference(e.animation,r),t.transformIntoNewTimeline(r.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,r){for(let s of e){let n=s?.delay;if(n){let o=typeof n=="number"?n:de(qe(n,s?.params??{},t.errors));r.delayNextStep(o)}}}_visitSubInstructions(e,t,r){let n=t.currentTimeline.currentTime,o=r.duration!=null?de(r.duration):null,a=r.delay!=null?de(r.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);n=Math.max(n,c.duration+c.delay)}),n}visitReference(e,t){t.updateOptions(e.options,!0),H(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let r=t.subContextCount,s=t,n=e.options;if(n&&(n.params||n.delay)&&(s=t.createSubContext(n),s.transformIntoNewTimeline(),n.delay!=null)){s.previousNode.type==w.Style&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=It);let o=de(n.delay);s.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>H(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>r&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let r=[],s=t.currentTimeline.currentTime,n=e.options&&e.options.delay?de(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);n&&a.delayNextStep(n),H(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let r=e.strValue,s=t.params?qe(r,t.params,t.errors):r;return Ct(s,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let r=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;r.delay&&(t.incrementTime(r.delay),s.snapshotCurrentStyles());let n=e.style;n.type==w.Keyframes?this.visitKeyframes(n,t):(t.incrementTime(r.duration),this.visitStyle(n,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let r=t.currentTimeline,s=t.currentAnimateTimings;!s&&r.hasCurrentStyleProperties()&&r.forwardFrame();let n=s&&s.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(n):r.setStyles(e.styles,n,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let r=t.currentAnimateTimings,s=t.currentTimeline.duration,n=r.duration,a=t.createSubContext().currentTimeline;a.easing=r.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*n),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(s+n),t.previousNode=e}visitQuery(e,t){let r=t.currentTimeline.currentTime,s=e.options||{},n=s.delay?de(s.delay):0;n&&(t.previousNode.type===w.Style||r==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=It);let o=r,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,f)=>{t.currentQueryIndex=f;let u=t.createSubContext(e.options,c);n&&u.delayNextStep(n),c===t.element&&(l=u.currentTimeline),H(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let p=u.currentTimeline.currentTime;o=Math.max(o,p)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let r=t.parentContext,s=t.currentTimeline,n=e.timings,o=Math.abs(n.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(n.duration<0?"reverse":n.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime;break}let f=t.currentTimeline;l&&f.delayNextStep(l);let u=f.currentTime;H(this,e.animation,t),t.previousNode=e,r.currentStaggerTime=s.currentTime-u+(s.startTime-r.currentTimeline.startTime)}},It={},Pr=class i{constructor(e,t,r,s,n,o,a,l){this._driver=e,this.element=t,this.subInstructions=r,this._enterClassName=s,this._leaveClassName=n,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=It,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Rt(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let r=e,s=this.options;r.duration!=null&&(s.duration=de(r.duration)),r.delay!=null&&(s.delay=de(r.delay));let n=r.params;if(n){let o=s.params;o||(o=this.options.params={}),Object.keys(n).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=qe(n[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let r=e.params={};Object.keys(t).forEach(s=>{r[s]=t[s]})}}return e}createSubContext(e=null,t,r){let s=t||this.element,n=new i(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,r||0));return n.previousNode=this.previousNode,n.currentAnimateTimings=this.currentAnimateTimings,n.options=this._copyOptions(),n.updateOptions(e),n.currentQueryIndex=this.currentQueryIndex,n.currentQueryTotal=this.currentQueryTotal,n.parentContext=this,this.subContextCount++,n}transformIntoNewTimeline(e){return this.previousNode=It,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,r){let s={duration:t??e.duration,delay:this.currentTimeline.currentTime+(r??0)+e.delay,easing:""},n=new Ir(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(n),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,r,s,n,o){let a=[];if(s&&a.push(this.element),e.length>0){e=e.replace(Xo,"."+this._enterClassName),e=e.replace(Zo,"."+this._leaveClassName);let l=r!=1,c=this._driver.query(this.element,e,l);r!==0&&(c=r<0?c.slice(c.length+r,c.length):c.slice(0,r)),a.push(...c)}return!n&&a.length==0&&o.push(fo(t)),a}},Rt=class i{constructor(e,t,r,s){this._driver=e,this.element=t,this.startTime=r,this._elementTimelineStylesLookup=s,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new i(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Ho,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,r]of this._globalTimelineStyles)this._backFill.set(t,r||le),this._currentKeyframe.set(t,le);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,r,s){t&&this._previousKeyframe.set("easing",t);let n=s&&s.params||{},o=Jo(e,this._globalTimelineStyles);for(let[a,l]of o){let c=qe(l,n,r);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??le),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,r)=>{let s=this._styleSummary.get(r);(!s||t.time>s.time)&&this._updateStyle(r,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,r=this._keyframes.size===1&&this.duration===0,s=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((f,u)=>{f===lt?e.add(u):f===le&&t.add(u)}),r||c.set("offset",l/this.duration),s.push(c)});let n=[...e.values()],o=[...t.values()];if(r){let a=s[0],l=new Map(a);a.set("offset",0),l.set("offset",1),s=[a,l]}return Qr(this.element,s,n,o,this.duration,this.startTime,this.easing,!1)}},Ir=class extends Rt{constructor(e,t,r,s,n,o,a=!1){super(e,t,o.delay),this.keyframes=r,this.preStyleProps=s,this.postStyleProps=n,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:r,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){let n=[],o=r+t,a=t/o,l=new Map(e[0]);l.set("offset",0),n.push(l);let c=new Map(e[0]);c.set("offset",xs(a)),n.push(c);let f=e.length-1;for(let u=1;u<=f;u++){let p=new Map(e[u]),g=p.get("offset"),h=t+g*r;p.set("offset",xs(h/o)),n.push(p)}r=o,t=0,s="",e=n}return Qr(this.element,e,this.preStyleProps,this.postStyleProps,r,t,s,!0)}};function xs(i,e=3){let t=Math.pow(10,e-1);return Math.round(i*t)/t}function Jo(i,e){let t=new Map,r;return i.forEach(s=>{if(s==="*"){r??=e.keys();for(let n of r)t.set(n,le)}else for(let[n,o]of s)t.set(n,o)}),t}function js(i,e,t,r,s,n,o,a,l,c,f,u,p){return{type:0,element:i,triggerName:e,isRemovalTransition:s,fromState:t,fromStyles:n,toState:r,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:f,totalTime:u,errors:p}}var Er={},Dt=class{constructor(e,t,r){this._triggerName=e,this.ast=t,this._stateStyles=r}match(e,t,r,s){return ea(this.ast.matchers,e,t,r,s)}buildStyles(e,t,r){let s=this._stateStyles.get("*");return e!==void 0&&(s=this._stateStyles.get(e?.toString())||s),s?s.buildStyles(t,r):new Map}build(e,t,r,s,n,o,a,l,c,f){let u=[],p=this.ast.options&&this.ast.options.params||Er,g=a&&a.params||Er,h=this.buildStyles(r,g,u),d=l&&l.params||Er,b=this.buildStyles(s,d,u),A=new Set,N=new Map,k=new Map,E=s==="void",P={params:en(d,p),delay:this.ast.options?.delay},v=f?[]:Js(e,t,this.ast.animation,n,o,h,b,P,c,u),D=0;return v.forEach(I=>{D=Math.max(I.duration+I.delay,D)}),u.length?js(t,this._triggerName,r,s,E,h,b,[],[],N,k,D,u):(v.forEach(I=>{let ee=I.element,Me=W(N,ee,new Set);I.preStyleProps.forEach(Ee=>Me.add(Ee));let Wr=W(k,ee,new Set);I.postStyleProps.forEach(Ee=>Wr.add(Ee)),ee!==t&&A.add(ee)}),js(t,this._triggerName,r,s,E,h,b,v,[...A.values()],N,k,D))}};function ea(i,e,t,r,s){return i.some(n=>n(e,t,r,s))}function en(i,e){let t=_({},e);return Object.entries(i).forEach(([r,s])=>{s!=null&&(t[r]=s)}),t}var Rr=class{constructor(e,t,r){this.styles=e,this.defaultParams=t,this.normalizer=r}buildStyles(e,t){let r=new Map,s=en(e,this.defaultParams);return this.styles.styles.forEach(n=>{typeof n!="string"&&n.forEach((o,a)=>{o&&(o=qe(o,s,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),r.set(a,o)})}),r}};function ta(i,e,t){return new Dr(i,e,t)}var Dr=class{constructor(e,t,r){this.name=e,this.ast=t,this._normalizer=r,this.transitionFactories=[],this.states=new Map,t.states.forEach(s=>{let n=s.options&&s.options.params||{};this.states.set(s.name,new Rr(s.style,n,r))}),$s(this.states,"true","1"),$s(this.states,"false","0"),t.transitions.forEach(s=>{this.transitionFactories.push(new Dt(e,s,this.states))}),this.fallbackTransition=ra(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,r,s){return this.transitionFactories.find(o=>o.match(e,t,r,s))||null}matchStyles(e,t,r){return this.fallbackTransition.buildStyles(e,t,r)}};function ra(i,e,t){let r=[(o,a)=>!0],s={type:w.Sequence,steps:[],options:null},n={type:w.Transition,animation:s,matchers:r,options:null,queryCount:0,depCount:0};return new Dt(i,n,e)}function $s(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t))}var ia=new Qe,Fr=class{constructor(e,t,r){this.bodyNode=e,this._driver=t,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let r=[],s=[],n=Zs(this._driver,t,r,s);if(r.length)throw yo(r);s.length&&void 0,this._animations.set(e,n)}_buildPlayer(e,t,r){let s=e.element,n=Qs(this._normalizer,e.keyframes,t,r);return this._driver.animate(s,n,e.duration,e.delay,e.easing,[],!0)}create(e,t,r={}){let s=[],n=this._animations.get(e),o,a=new Map;if(n?(o=Js(this._driver,t,n,Ws,br,new Map,new Map,r,ia,s),o.forEach(f=>{let u=W(a,f.element,new Map);f.postStyleProps.forEach(p=>u.set(p,null))})):(s.push(So()),o=[]),s.length)throw Eo(s);a.forEach((f,u)=>{f.forEach((p,g)=>{f.set(g,this._driver.computeStyle(u,g,le))})});let l=o.map(f=>{let u=a.get(f.element);return this._buildPlayer(f,new Map,u)}),c=Se(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let r=this.players.indexOf(t);r>=0&&this.players.splice(r,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw To(e);return t}listen(e,t,r,s){let n=zr(t,"","","");return $r(this._getPlayer(e),r,n,s),()=>{}}command(e,t,r,s){if(r=="register"){this.register(e,s[0]);return}if(r=="create"){let o=s[0]||{};this.create(e,t,o);return}let n=this._getPlayer(e);switch(r){case"play":n.play();break;case"pause":n.pause();break;case"reset":n.reset();break;case"restart":n.restart();break;case"finish":n.finish();break;case"init":n.init();break;case"setPosition":n.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e);break}}},zs="ng-animate-queued",sa=".ng-animate-queued",Tr="ng-animate-disabled",na=".ng-animate-disabled",oa="ng-star-inserted",aa=".ng-star-inserted",la=[],tn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ca={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ie="__ng_removed",Ve=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let r=e&&e.hasOwnProperty("value"),s=r?e.value:e;if(this.value=fa(s),r){let n=e,{value:o}=n,a=Jr(n,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let r=this.options.params;Object.keys(t).forEach(s=>{r[s]==null&&(r[s]=t[s])})}}},Be="void",vr=new Ve(Be),kr=class{constructor(e,t,r){this.id=e,this.hostElement=t,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,J(t,this._hostClassName)}listen(e,t,r,s){if(!this._triggers.has(t))throw vo(r,t);if(r==null||r.length==0)throw _o(t);if(!ha(r))throw bo(r,t);let n=W(this._elementListeners,e,[]),o={name:t,phase:r,callback:s};n.push(o);let a=W(this._engine.statesByElement,e,new Map);return a.has(t)||(J(e,_t),J(e,_t+"-"+t),a.set(t,vr)),()=>{this._engine.afterFlush(()=>{let l=n.indexOf(o);l>=0&&n.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw wo(e);return t}trigger(e,t,r,s=!0){let n=this._getTrigger(t),o=new Ge(this.id,t,e),a=this._engine.statesByElement.get(e);a||(J(e,_t),J(e,_t+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new Ve(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=vr),!(c.value===Be)&&l.value===c.value){if(!ma(l.params,c.params)){let d=[],b=n.matchStyles(l.value,l.params,d),A=n.matchStyles(c.value,c.params,d);d.length?this._engine.reportError(d):this._engine.afterFlush(()=>{be(e,b),fe(e,A)})}return}let p=W(this._engine.playersByElement,e,[]);p.forEach(d=>{d.namespaceId==this.id&&d.triggerName==t&&d.queued&&d.destroy()});let g=n.matchTransition(l.value,c.value,e,c.params),h=!1;if(!g){if(!s)return;g=n.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:g,fromState:l,toState:c,player:o,isFallbackTransition:h}),h||(J(e,zs),o.onStart(()=>{De(e,zs)})),o.onDone(()=>{let d=this.players.indexOf(o);d>=0&&this.players.splice(d,1);let b=this._engine.playersByElement.get(e);if(b){let A=b.indexOf(o);A>=0&&b.splice(A,1)}}),this.players.push(o),p.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,r)=>{this._elementListeners.set(r,t.filter(s=>s.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(r=>r.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let r=this._engine.driver.query(e,Ot,!0);r.forEach(s=>{if(s[ie])return;let n=this._engine.fetchNamespacesByElement(s);n.size?n.forEach(o=>o.triggerLeaveAnimation(s,t,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(e,t,r,s){let n=this._engine.statesByElement.get(e),o=new Map;if(n){let a=[];if(n.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let f=this.trigger(e,c,Be,s);f&&a.push(f)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),r&&Se(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(t&&r){let s=new Set;t.forEach(n=>{let o=n.name;if(s.has(o))return;s.add(o);let l=this._triggers.get(o).fallbackTransition,c=r.get(o)||vr,f=new Ve(Be),u=new Ge(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:f,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(r.totalAnimations){let n=r.players.length?r.playersByQueriedElement.get(e):[];if(n&&n.length)s=!0;else{let o=e;for(;o=o.parentNode;)if(r.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)r.markElementAsRemoved(this.id,e,!1,t);else{let n=e[ie];(!n||n===tn)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,t))}}insertNode(e,t){J(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(r=>{let s=r.player;if(s.destroyed)return;let n=r.element,o=this._elementListeners.get(n);o&&o.forEach(a=>{if(a.name==r.triggerName){let l=zr(n,r.triggerName,r.fromState.value,r.toState.value);l._data=e,$r(r.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(r)}),this._queue=[],t.sort((r,s)=>{let n=r.transition.ast.depCount,o=s.transition.ast.depCount;return n==0||o==0?n-o:this._engine.driver.containsElement(r.element,s.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Lr=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,r){this.bodyNode=e,this.driver=t,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,n)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(r=>{r.queued&&e.push(r)})}),e}createNamespace(e,t){let r=new kr(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(r,t):(this.newHostElements.set(t,r),this.collectEnterElement(t)),this._namespaceLookup[e]=r}_balanceNamespaceList(e,t){let r=this._namespaceList,s=this.namespacesByHostElement;if(r.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=s.get(a);if(l){let c=r.indexOf(l);r.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||r.unshift(e)}else r.push(e);return s.set(t,e),e}register(e,t){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,t)),r}registerTrigger(e,t,r){let s=this._namespaceLookup[e];s&&s.register(t,r)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let r=this._fetchNamespace(e);this.namespacesByHostElement.delete(r.hostElement);let s=this._namespaceList.indexOf(r);s>=0&&this._namespaceList.splice(s,1),r.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,r=this.statesByElement.get(e);if(r){for(let s of r.values())if(s.namespaceId){let n=this._fetchNamespace(s.namespaceId);n&&t.add(n)}}return t}trigger(e,t,r,s){if(At(t)){let n=this._fetchNamespace(e);if(n)return n.trigger(t,r,s),!0}return!1}insertNode(e,t,r,s){if(!At(t))return;let n=t[ie];if(n&&n.setForRemoval){n.setForRemoval=!1,n.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,r)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),J(e,Tr)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),De(e,Tr))}removeNode(e,t,r){if(At(t)){let s=e?this._fetchNamespace(e):null;s?s.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r);let n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,r)}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,r,s,n){this.collectedLeaveElements.push(t),t[ie]={namespaceId:e,setForRemoval:s,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:n}}listen(e,t,r,s,n){return At(t)?this._fetchNamespace(e).listen(t,r,s,n):()=>{}}_buildInstruction(e,t,r,s,n){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,s,e.fromState.options,e.toState.options,t,n)}destroyInnerAnimations(e){let t=this.driver.query(e,Ot,!0);t.forEach(r=>this.destroyActiveAnimationsForElement(r)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,wr,!0),t.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Se(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[ie];if(t&&t.setForRemoval){if(e[ie]=tn,t.namespaceId){this.destroyInnerAnimations(e);let r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Tr)&&this.markElementAsDisabled(e,!1),this.driver.query(e,na,!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,s)=>this._balanceNamespaceList(r,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;rr()),this._flushFns=[],this._whenQuietFns.length){let r=this._whenQuietFns;this._whenQuietFns=[],t.length?Se(t).onDone(()=>{r.forEach(s=>s())}):r.forEach(s=>s())}}reportError(e){throw Ao(e)}_flushAnimations(e,t){let r=new Qe,s=[],n=new Map,o=[],a=new Map,l=new Map,c=new Map,f=new Set;this.disabledNodes.forEach(m=>{f.add(m);let y=this.driver.query(m,sa,!0);for(let S=0;S{let S=Ws+d++;h.set(y,S),m.forEach(M=>J(M,S))});let b=[],A=new Set,N=new Set;for(let m=0;mA.add(M)):N.add(y))}let k=new Map,E=Bs(p,Array.from(A));E.forEach((m,y)=>{let S=br+d++;k.set(y,S),m.forEach(M=>J(M,S))}),e.push(()=>{g.forEach((m,y)=>{let S=h.get(y);m.forEach(M=>De(M,S))}),E.forEach((m,y)=>{let S=k.get(y);m.forEach(M=>De(M,S))}),b.forEach(m=>{this.processLeaveNode(m)})});let P=[],v=[];for(let m=this._namespaceList.length-1;m>=0;m--)this._namespaceList[m].drainQueuedTransitions(t).forEach(S=>{let M=S.player,$=S.element;if(P.push(M),this.collectedEnterElements.length){let q=$[ie];if(q&&q.setForMove){if(q.previousTriggersValues&&q.previousTriggersValues.has(S.triggerName)){let Te=q.previousTriggersValues.get(S.triggerName),X=this.statesByElement.get(S.element);if(X&&X.has(S.triggerName)){let Xe=X.get(S.triggerName);Xe.value=Te,X.set(S.triggerName,Xe)}}M.destroy();return}}let se=!u||!this.driver.containsElement(u,$),G=k.get($),pe=h.get($),F=this._buildInstruction(S,r,pe,G,se);if(F.errors&&F.errors.length){v.push(F);return}if(se){M.onStart(()=>be($,F.fromStyles)),M.onDestroy(()=>fe($,F.toStyles)),s.push(M);return}if(S.isFallbackTransition){M.onStart(()=>be($,F.fromStyles)),M.onDestroy(()=>fe($,F.toStyles)),s.push(M);return}let Zr=[];F.timelines.forEach(q=>{q.stretchStartingKeyframe=!0,this.disabledNodes.has(q.element)||Zr.push(q)}),F.timelines=Zr,r.append($,F.timelines);let Nn={instruction:F,player:M,element:$};o.push(Nn),F.queriedElements.forEach(q=>W(a,q,[]).push(M)),F.preStyleProps.forEach((q,Te)=>{if(q.size){let X=l.get(Te);X||l.set(Te,X=new Set),q.forEach((Xe,Vt)=>X.add(Vt))}}),F.postStyleProps.forEach((q,Te)=>{let X=c.get(Te);X||c.set(Te,X=new Set),q.forEach((Xe,Vt)=>X.add(Vt))})});if(v.length){let m=[];v.forEach(y=>{m.push(Mo(y.triggerName,y.errors))}),P.forEach(y=>y.destroy()),this.reportError(m)}let D=new Map,I=new Map;o.forEach(m=>{let y=m.element;r.has(y)&&(I.set(y,y),this._beforeAnimationBuild(m.player.namespaceId,m.instruction,D))}),s.forEach(m=>{let y=m.element;this._getPreviousPlayers(y,!1,m.namespaceId,m.triggerName,null).forEach(M=>{W(D,y,[]).push(M),M.destroy()})});let ee=b.filter(m=>qs(m,l,c)),Me=new Map;Ks(Me,this.driver,N,c,le).forEach(m=>{qs(m,l,c)&&ee.push(m)});let Ee=new Map;g.forEach((m,y)=>{Ks(Ee,this.driver,new Set(m),l,lt)}),ee.forEach(m=>{let y=Me.get(m),S=Ee.get(m);Me.set(m,new Map([...y?.entries()??[],...S?.entries()??[]]))});let Qt=[],Xr=[],Yr={};o.forEach(m=>{let{element:y,player:S,instruction:M}=m;if(r.has(y)){if(f.has(y)){S.onDestroy(()=>fe(y,M.toStyles)),S.disabled=!0,S.overrideTotalTime(M.totalTime),s.push(S);return}let $=Yr;if(I.size>1){let G=y,pe=[];for(;G=G.parentNode;){let F=I.get(G);if(F){$=F;break}pe.push(G)}pe.forEach(F=>I.set(F,$))}let se=this._buildAnimation(S.namespaceId,M,D,n,Ee,Me);if(S.setRealPlayer(se),$===Yr)Qt.push(S);else{let G=this.playersByElement.get($);G&&G.length&&(S.parentPlayer=Se(G)),s.push(S)}}else be(y,M.fromStyles),S.onDestroy(()=>fe(y,M.toStyles)),Xr.push(S),f.has(y)&&s.push(S)}),Xr.forEach(m=>{let y=n.get(m.element);if(y&&y.length){let S=Se(y);m.setRealPlayer(S)}}),s.forEach(m=>{m.parentPlayer?m.syncPlayerEvents(m.parentPlayer):m.destroy()});for(let m=0;m!se.destroyed);$.length?da(this,y,$):this.processLeaveNode(y)}return b.length=0,Qt.forEach(m=>{this.players.push(m),m.onDone(()=>{m.destroy();let y=this.players.indexOf(m);this.players.splice(y,1)}),m.play()}),Qt}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,r,s,n){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!n||n==Be;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(r||s)&&(o=o.filter(a=>!(r&&r!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(e,t,r){let s=t.triggerName,n=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:s;for(let l of t.timelines){let c=l.element,f=c!==n,u=W(r,c,[]);this._getPreviousPlayers(c,f,o,a,t.toState).forEach(g=>{let h=g.getRealPlayer();h.beforeDestroy&&h.beforeDestroy(),g.destroy(),u.push(g)})}be(n,t.fromStyles)}_buildAnimation(e,t,r,s,n,o){let a=t.triggerName,l=t.element,c=[],f=new Set,u=new Set,p=t.timelines.map(h=>{let d=h.element;f.add(d);let b=d[ie];if(b&&b.removedBeforeQueried)return new Pe(h.duration,h.delay);let A=d!==l,N=pa((r.get(d)||la).map(D=>D.getRealPlayer())).filter(D=>{let I=D;return I.element?I.element===d:!1}),k=n.get(d),E=o.get(d),P=Qs(this._normalizer,h.keyframes,k,E),v=this._buildPlayer(h,P,N);if(h.subTimeline&&s&&u.add(d),A){let D=new Ge(e,a,d);D.setRealPlayer(v),c.push(D)}return v});c.forEach(h=>{W(this.playersByQueriedElement,h.element,[]).push(h),h.onDone(()=>ua(this.playersByQueriedElement,h.element,h))}),f.forEach(h=>J(h,Fs));let g=Se(p);return g.onDestroy(()=>{f.forEach(h=>De(h,Fs)),fe(l,t.toStyles)}),u.forEach(h=>{W(s,h,[]).push(g)}),g}_buildPlayer(e,t,r){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,r):new Pe(e.duration,e.delay)}},Ge=class{constructor(e,t,r){this.namespaceId=e,this.triggerName=t,this.element=r,this._player=new Pe,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,r)=>{t.forEach(s=>$r(e,r,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){W(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function ua(i,e,t){let r=i.get(e);if(r){if(r.length){let s=r.indexOf(t);r.splice(s,1)}r.length==0&&i.delete(e)}return r}function fa(i){return i??null}function At(i){return i&&i.nodeType===1}function ha(i){return i=="start"||i=="done"}function Us(i,e){let t=i.style.display;return i.style.display=e??"none",t}function Ks(i,e,t,r,s){let n=[];t.forEach(l=>n.push(Us(l)));let o=[];r.forEach((l,c)=>{let f=new Map;l.forEach(u=>{let p=e.computeStyle(c,u,s);f.set(u,p),(!p||p.length==0)&&(c[ie]=ca,o.push(c))}),i.set(c,f)});let a=0;return t.forEach(l=>Us(l,n[a++])),o}function Bs(i,e){let t=new Map;if(i.forEach(a=>t.set(a,[])),e.length==0)return t;let r=1,s=new Set(e),n=new Map;function o(a){if(!a)return r;let l=n.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:s.has(c)?l=r:l=o(c),n.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==r&&t.get(l).push(a)}),t}function J(i,e){i.classList?.add(e)}function De(i,e){i.classList?.remove(e)}function da(i,e,t){Se(t).onDone(()=>i.processLeaveNode(e))}function pa(i){let e=[];return rn(i,e),e}function rn(i,e){for(let t=0;ts.add(n)):e.set(i,r),t.delete(i),!0}var ke=class{constructor(e,t,r){this._driver=t,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(s,n)=>{},this._transitionEngine=new Lr(e.body,t,r),this._timelineEngine=new Fr(e.body,t,r),this._transitionEngine.onRemovalComplete=(s,n)=>this.onRemovalComplete(s,n)}registerTrigger(e,t,r,s,n){let o=e+"-"+s,a=this._triggerCache[o];if(!a){let l=[],c=[],f=Zs(this._driver,n,l,c);if(l.length)throw mo(s,l);c.length&&void 0,a=ta(s,f,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,s,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,r,s){this._transitionEngine.insertNode(e,t,r,s)}onRemove(e,t,r){this._transitionEngine.removeNode(e,t,r)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,r,s){if(r.charAt(0)=="@"){let[n,o]=Rs(r),a=s;this._timelineEngine.command(n,t,o,a)}else this._transitionEngine.trigger(e,t,r,s)}listen(e,t,r,s,n){if(r.charAt(0)=="@"){let[o,a]=Rs(r);return this._timelineEngine.listen(o,t,a,n)}return this._transitionEngine.listen(e,t,r,s,n)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function ga(i,e){let t=null,r=null;return Array.isArray(e)&&e.length?(t=_r(e[0]),e.length>1&&(r=_r(e[e.length-1]))):e instanceof Map&&(t=_r(e)),t||r?new xr(i,t,r):null}var Fe=class Fe{constructor(e,t,r){this._element=e,this._startStyles=t,this._endStyles=r,this._state=0;let s=Fe.initialStylesByElement.get(e);s||Fe.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&fe(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(fe(this._element,this._initialStyles),this._endStyles&&(fe(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Fe.initialStylesByElement.delete(this._element),this._startStyles&&(be(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(be(this._element,this._endStyles),this._endStyles=null),fe(this._element,this._initialStyles),this._state=3)}};Fe.initialStylesByElement=new WeakMap;var xr=Fe;function _r(i){let e=null;return i.forEach((t,r)=>{ya(r)&&(e=e||new Map,e.set(r,t))}),e}function ya(i){return i==="display"||i==="position"}var Ft=class{constructor(e,t,r,s){this.element=e,this.keyframes=t,this.options=r,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(r=>{t.push(Object.fromEntries(r))}),t}_triggerWebAnimation(e,t,r){return e.animate(this._convertKeyframesToObject(t),r)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,s)=>{s!=="offset"&&e.set(s,this._finished?r:qr(this.element,s))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}},kt=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Vs(e,t)}getParentElement(e){return Ur(e)}query(e,t,r){return Gs(e,t,r)}computeStyle(e,t,r){return qr(e,t)}animate(e,t,r,s,n,o=[]){let a=s==0?"both":"forwards",l={duration:r,delay:s,fill:a};n&&(l.easing=n);let c=new Map,f=o.filter(g=>g instanceof Ft);xo(r,s)&&f.forEach(g=>{g.currentSnapshot.forEach((h,d)=>c.set(d,h))});let u=Fo(t).map(g=>new Map(g));u=jo(e,u,c);let p=ga(e,u);return new Ft(e,u,l,p)}};var Mt="@",sn="@.disabled",Lt=class{constructor(e,t,r,s){this.namespaceId=e,this.delegate=t,this.engine=r,this._onDestroy=s,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,r,s=!0){this.delegate.insertBefore(e,t,r),this.engine.onInsert(this.namespaceId,t,e,s)}removeChild(e,t,r){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,r,s){this.delegate.setAttribute(e,t,r,s)}removeAttribute(e,t,r){this.delegate.removeAttribute(e,t,r)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,r,s){this.delegate.setStyle(e,t,r,s)}removeStyle(e,t,r){this.delegate.removeStyle(e,t,r)}setProperty(e,t,r){t.charAt(0)==Mt&&t==sn?this.disableAnimations(e,!!r):this.delegate.setProperty(e,t,r)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,r){return this.delegate.listen(e,t,r)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},jr=class extends Lt{constructor(e,t,r,s,n){super(t,r,s,n),this.factory=e,this.namespaceId=t}setProperty(e,t,r){t.charAt(0)==Mt?t.charAt(1)=="."&&t==sn?(r=r===void 0?!0:!!r,this.disableAnimations(e,r)):this.engine.process(this.namespaceId,e,t.slice(1),r):this.delegate.setProperty(e,t,r)}listen(e,t,r){if(t.charAt(0)==Mt){let s=Sa(e),n=t.slice(1),o="";return n.charAt(0)!=Mt&&([n,o]=Ea(n)),this.engine.listen(this.namespaceId,s,n,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,r,a)})}return this.delegate.listen(e,t,r)}};function Sa(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function Ea(i){let e=i.indexOf("."),t=i.substring(0,e),r=i.slice(e+1);return[t,r]}var xt=class{constructor(e,t,r){this.delegate=e,this.engine=t,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(s,n)=>{let o=n?.parentNode(s);o&&n.removeChild(o,s)}}createRenderer(e,t){let r="",s=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,f=c.get(s);if(!f){let u=()=>c.delete(s);f=new Lt(r,s,this.engine,u),c.set(s,f)}return f}let n=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(n,o,e,c.name,c)};return t.data.animation.forEach(a),new jr(this,o,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,r){if(e>=0&&et(r));return}let s=this._animationCallbacksBuffer;s.length==0&&queueMicrotask(()=>{this._zone.run(()=>{s.forEach(n=>{let[o,a]=n;o(a)}),this._animationCallbacksBuffer=[]})}),s.push([t,r])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var va=(()=>{let e=class e extends ke{constructor(r,s,n){super(r,s,n)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(s){return new(s||e)(T(_i),T(we),T(Ae))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();function _a(){return new Nt}function ba(i,e,t){return new xt(i,e,t)}var on=[{provide:Ae,useFactory:_a},{provide:ke,useClass:va},{provide:Ti,useFactory:ba,deps:[Ci,ke,Ze]}],nn=[{provide:we,useFactory:()=>new kt},{provide:Wt,useValue:"BrowserAnimations"},...on],wa=[{provide:we,useClass:Kr},{provide:Wt,useValue:"NoopAnimations"},...on],an=(()=>{let e=class e{static withConfig(r){return{ngModule:e,providers:r.disableAnimations?wa:nn}}};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ne({providers:nn,imports:[et]});let i=e;return i})();var jt=class{constructor(e){this.httpClient=e}get httpHeaders(){return new wi}getRequestOptions(e){let t=e.getParams||void 0;return{headers:this.httpHeaders,params:t}}serviceCall(e){return Je()&&console.log(`serviceCall@Client - ${e.getMethod} - ${e.getUrl}`),K(e).pipe(U(t=>{if(t.getMock)return this.httpClient.get(t.getUrl,this.getRequestOptions(t)).pipe(ui(t.getMockDelay));switch(t.getMethod){case"GET":return this.httpClient.get(t.getUrl,this.getRequestOptions(t));case"POST":return this.httpClient.post(t.getUrl,t.getBody,this.getRequestOptions(t));case"PUT":return this.httpClient.put(t.getUrl,null,this.getRequestOptions(t));default:throw new Error(`Unsupported method: ${t.getMethod}`)}}))}};var Ma=(()=>{let e=class e{constructor(r){this.bannerService=r}handleError(r,s){let n=s.error,{error:o}=n;switch(s.status){case 400:case 404:case 500:case 503:this.spawnNotification(o);break;case 504:this.spawnNotification(n);break;default:this.spawnNotification(o);break}return ni(()=>s)}spawnNotification(r){this.bannerService.showError(r)}};e.\u0275fac=function(s){return new(s||e)(T(Ie))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),ln=(()=>{let e=class e{constructor(r){this.errorHandler=r}intercept(r,s){return s.handle(r).pipe(Q(n=>this.errorHandler.handleError(r,n)))}};e.\u0275fac=function(s){return new(s||e)(T(Ma))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();var Oa={defaultMode:void 0,currentMode:void 0},cn=ae(Oa,L(Ne.setDefaultMode,(i,{mode:e})=>C(_({},i),{defaultMode:e})),L(Ne.setCurrentMode,(i,{mode:e})=>C(_({},i),{currentMode:e})));var He=class extends ct{constructor(e){if(!e)return;let t=new FormData;t.append("file",e),super("upload-model",t,!1)}};var un=(()=>{let e=class e{constructor(r,s,n){this.apiClient=r,this.bannerService=s,this.actions$=n,this.uploadFile$=Y(()=>this.actions$.pipe(Z(te.uploadFile),U(o=>this.apiClient.serviceCall(new He(o.file)).pipe(z(a=>te.uploadFileSuccess({data:a})),Q(a=>K(te.uploadFileFailure({error:a}))))))),this.uploadFileAndCallScript$=Y(()=>this.actions$.pipe(Z(te.uploadFileAndCallScript),U(o=>(this.bannerService.showInfo("Uploading file"),this.apiClient.serviceCall(new He(o.file)).pipe(U(a=>(this.bannerService.showSuccess("File uploaded successfully."),[te.uploadFileSuccess({data:a}),ut.callScript({configs:o.configs})])),Q(a=>K(te.uploadFileFailure({error:a}))))))))}};e.\u0275fac=function(s){return new(s||e)(T(ce),T(Ie),T(me))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();var Ca={uploading:!1},fn=ae(Ca,L(te.uploadFile,i=>C(_({},i),{uploading:!0})),L(te.uploadFileSuccess,(i,{data:e})=>C(_({},i),{uploading:!1,uploadedData:e})),L(te.uploadFileFailure,(i,{error:e})=>C(_({},i),{uploading:!1,error:e})));var Rc=rt(ot,({fileState:i})=>i.uploading),Dc=rt(ot,({fileState:i})=>i.uploadedData),Fc=rt(ot,({fileState:i})=>i.error);var Na={quantizationModels:[],pruningModels:[],machineUnlearningModels:[],awqModels:[],currentModel:"",modelMetadata:{},error:void 0},hn=ae(Na,L(B.getModelsListSuccess,(i,{algorithmType:e,models:t})=>{switch(e){case je.QUANTIZATION:return C(_({},i),{quantizationModels:t,error:void 0});case je.PRUNING:return C(_({},i),{pruningModels:t,error:void 0});case je.MACHINE_UNLEARNING:return C(_({},i),{machineUnlearningModels:t,error:void 0});case je.AWQ:return C(_({},i),{awqModels:t,error:void 0});default:return i}}),L(B.getModelsListFailure,(i,{error:e})=>C(_({},i),{error:e})),L(B.getCurrentOrPreviousSelectedModelSuccess,(i,{model:e})=>C(_({},i),{currentModel:e})),L(B.getCurrentOrPreviousSelectedModelFailure,(i,{error:e})=>C(_({},i),{error:e})),L(B.getModelMetadataSuccess,(i,{metadata:e})=>C(_({},i),{modelMetadata:e,error:void 0})),L(B.getModelMetadataFailure,(i,{error:e})=>C(_({},i),{modelMetadata:{},error:e})));var $t=class extends ue{constructor(e){super(`parameters/${e}`,void 0,void 0,!1),this.mock&&(this.url+="/get-response-body-200.json")}};var dn=(()=>{let e=class e{constructor(r,s){this.apiClient=r,this.actions$=s,this.loadParameters$=Y(()=>this.actions$.pipe(Z(ge.loadParameters),U(({arg:n})=>this.apiClient.serviceCall(new $t(n)).pipe(z(o=>ge.loadParametersSuccess({arg:n,parameters:o.parameters})),Q(o=>K(ge.loadParametersFailure({arg:n,error:o})))))))}};e.\u0275fac=function(s){return new(s||e)(T(ce),T(me))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();var Pa={},pn=ae(Pa,L(ge.loadParameters,(i,{arg:e})=>C(_({},i),{[e]:C(_({},i[e]),{loaded:!1,error:null})})),L(ge.loadParametersSuccess,(i,{arg:e,parameters:t})=>C(_({},i),{[e]:{data:t,error:null,loaded:!0}})),L(ge.loadParametersFailure,(i,{arg:e,error:t})=>C(_({},i),{[e]:C(_({},i[e]),{error:t,loaded:!0})})));var zt=class extends ue{constructor(){super("latest-messages",void 0,void 0,!1)}};var Ut=class extends ct{constructor(){super("clear-history",{},!1)}};var mn=(()=>{let e=class e{constructor(r,s){this.apiClient=r,this.actions$=s,this.getLatestMessages$=Y(()=>this.actions$.pipe(Z(re.getLatestMessages),U(()=>this.apiClient.serviceCall(new zt).pipe(z(n=>re.getLatestMessagesSuccess({messages:n})),Q(n=>K(re.getLatestMessagesFailure({error:n}))))))),this.postClearHistory$=Y(()=>this.actions$.pipe(Z(re.postClearHistory),U(()=>this.apiClient.serviceCall(new Ut).pipe(z(()=>re.postClearHistorySuccess()),Q(n=>K(re.postClearHistoryFailure({error:n})))))))}};e.\u0275fac=function(s){return new(s||e)(T(ce),T(me))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();var Ia={messages:[],error:null},gn=ae(Ia,L(re.getLatestMessagesSuccess,(i,{messages:e})=>C(_({},i),{messages:e,error:null})),L(re.getLatestMessagesFailure,(i,{error:e})=>C(_({},i),{error:e})),L(re.postClearHistoryFailure,(i,{error:e})=>C(_({},i),{error:e})));var yn={auth:zi,configs:cn,script:qi,uploadFile:fn,charts:Hi,parameters:pn,terminal:gn,statistics:rs,models:hn};var Kt=class extends ue{constructor(e){super(`current-or-previous-selected-model/${e}`,void 0,void 0,!1)}};var Bt=class extends ue{constructor(e,t){super(`model-metadata/${e}/${t}`,void 0,void 0,!1)}};var qt=class extends ue{constructor(e){super(`models-list/${e}`,void 0,void 0,!1)}};var Sn=(()=>{let e=class e{constructor(r,s){this.apiClient=r,this.actions$=s,this.loadModels$=Y(()=>this.actions$.pipe(Z(B.getModelsList),U(n=>{let{algorithmType:o}=n;return this.apiClient.serviceCall(new qt(o)).pipe(z(a=>B.getModelsListSuccess({algorithmType:o,models:a})),Q(a=>K(B.getModelsListFailure({error:a}))))}))),this.getCurrentOrPreviousSelectedModel$=Y(()=>this.actions$.pipe(Z(B.getCurrentOrPreviousSelectedModel),U(n=>this.apiClient.serviceCall(new Kt(n.algorithmType)).pipe(z(o=>B.getCurrentOrPreviousSelectedModelSuccess({model:o.model})),Q(o=>K(B.getCurrentOrPreviousSelectedModelFailure({error:o}))))))),this.getModelMetadata$=Y(()=>this.actions$.pipe(Z(B.getModelMetadata),U(n=>{let{algorithmType:o,modelName:a}=n;return this.apiClient.serviceCall(new Bt(o,a)).pipe(z(l=>B.getModelMetadataSuccess({metadata:l})),Q(l=>K(B.getModelMetadataFailure({error:l}))))})))}};e.\u0275fac=function(s){return new(s||e)(T(ce),T(me))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let i=e;return i})();var En=(()=>{let e=class e{constructor(r,s,n,o,a){if(this.registry=s,this.scriptFacadeService=n,this.navigationService=o,this.pageSpinningIndicatorService=a,r!==null)throw new Error("Core Module already loaded.");this.navigationService.trackNavigationHistory(),this.pageSpinningIndicatorService.trackCurrentRunningPage(),this.registerModelSmithIcons(),this.scriptFacadeService.dispatch(ut.fetchScriptStatus())}registerModelSmithIcons(){this.registry.registerFontClassAlias("icomoon","ms")}};e.\u0275fac=function(s){return new(s||e)(T(e,12),T(xi),T(ft),T(dt),T(ht))},e.\u0275mod=oe({type:e}),e.\u0275inj=ne({providers:[is,Ue,dt,Tt,Et,Ie,ft,at,Ui,Yi,Xi,Wi,Zi,es,Ji,ht,ss,{provide:ce,useFactory:r=>new jt(r),deps:[Ai]},{provide:ns,useValue:{placeholderLabel:"Search...",noEntriesFoundLabel:"No matching entries found..."}},{provide:Xt,useClass:ln,multi:!0},{provide:Xt,useClass:os,multi:!0},Mi(Oi())],imports:[bi,et,an,it.forFeature("core",yn),st.forFeature([$i,Bi,un,Gi,dn,mn,ts,Sn])]});let i=e;return i})();var wn=In(bn(),1);var Hr="@ngrx/store/init",Qa="@ngrx/store/update-reducers",Va=/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/,Ga=(i,e)=>typeof e=="string"&&Va.test(e)?new Date(e):e,Ha=(i,e)=>e,Wa=()=>typeof window<"u",Xa=i=>i.map(e=>{let t=e;if(typeof e=="object"&&(t=Object.keys(e)[0]),typeof t!="string")throw new TypeError(`localStorageSync Unknown Parameter Type: Expected type of string, got ${typeof t}`);return e}),Ya=(i,e,t,r)=>i.reduce((s,n)=>{let o=n,a=r?Ga:Ha,l,c;if(typeof o=="object"&&(o=Object.keys(o)[0],typeof n[o]=="function"?a=n[o]:(n[o].reviver&&(a=n[o].reviver),n[o].deserialize&&(l=n[o].deserialize)),n[o].encrypt&&n[o].decrypt?typeof n[o].encrypt=="function"&&typeof n[o].decrypt=="function"?c=n[o].decrypt:console.error(`Either encrypt or decrypt is not a function on '${n[o]}' key object.`):(n[o].encrypt||n[o].decrypt)&&console.error(`Either encrypt or decrypt function is not present on '${n[o]}' key object.`)),e!==void 0){let f=e.getItem(t(o));if(f){c&&(f=c(f));let u=new RegExp("{|\\["),p=f;return(f==="null"||f==="true"||f==="false"||u.test(f.charAt(0)))&&(p=JSON.parse(f,a)),Object.assign({},s,{[o]:l?l(p):p})}}return s},{});function An(i,e){return e.reduce((t,r)=>{if(typeof r=="string"||typeof r=="number"){let s=i?.[r];s!==void 0&&(t[r]=s)}else for(let s in r)if(Object.prototype.hasOwnProperty.call(r,s)){let n=r[s];t[s]=An(i[s],n)}return t},{})}var Za=(i,e,t,r,s,n)=>{if(n)try{if(n(i)!==!0)return}catch(o){if(o instanceof TypeError)return;throw o}e.forEach(o=>{let a=i[o],l,c,f;if(typeof o=="object"){let u=Object.keys(o)[0];if(a=i[u],typeof a<"u"&&o[u]){if(o[u].serialize)a=o[u].serialize(a);else{let p;o[u].reduce?p=o[u]:o[u].filter&&(p=o[u].filter),p&&(a=An(a,p)),o[u].encrypt&&o[u].decrypt?typeof o[u].encrypt=="function"&&(f=o[u].encrypt):(o[u].encrypt||o[u].decrypt)&&console.error(`Either encrypt or decrypt function is not present on '${o[u]}' key object.`)}l=o[u].replacer,c=o[u].space}o=u}if(typeof a<"u"&&t!==void 0)try{f&&(a=f(typeof a=="string"?a:JSON.stringify(a,l,c))),t.setItem(r(o),typeof a=="string"?a:JSON.stringify(a,l,c))}catch(u){console.warn("Unable to save state to localStorage:",u)}else if(typeof a>"u"&&s&&t!==void 0)try{t.removeItem(r(o))}catch(u){console.warn(`Exception on removing/cleaning undefined '${o}' state`,u)}})},Ja=(i,e,t)=>((t.type===Hr||t.type===Qa)&&e&&(i=(0,wn.default)(i,e,{arrayMerge:(n,o,a)=>o})),i),Mn=i=>e=>{(i.storage===void 0&&!i.checkStorageAvailability||i.checkStorageAvailability&&Wa())&&(i.storage=localStorage||window.localStorage),i.storageKeySerializer===void 0&&(i.storageKeySerializer=n=>n),i.restoreDates===void 0&&(i.restoreDates=!0);let t=i.mergeReducer;(t===void 0||typeof t!="function")&&(t=Ja);let r=Xa(i.keys),s=i.rehydrate?Ya(r,i.storage,i.storageKeySerializer,i.restoreDates):void 0;return function(n,o){let a;return o.type===Hr&&!n?a=e(n,o):a=_({},n),a=t(a,s,o),a=e(a,o),o.type!==Hr&&Za(a,r,i.storage,i.storageKeySerializer,i.removeOnUndefined,i.syncCondition),a}};function el(i){let t={keys:[{[j.CORE.ROOT]:[j.AUTH.ROOT,j.CONFIGS.ROOT,j.SCRIPT.ROOT]}],rehydrate:!0};return Mn(t)(i)}var On=[el];var Cn=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=oe({type:e,bootstrap:[vt]}),e.\u0275inj=ne({imports:[En,Ps,Vi,it.forRoot({},{metaReducers:On}),Ns.instrument({maxAge:25,logOnly:Je(),connectInZone:!0}),st.forRoot([])]});let i=e;return i})();Ni().bootstrapModule(Cn).catch(i=>console.error(i)); diff --git a/frontend/server/modelsmith-build/browser/main-YHQFGFTY.js b/frontend/server/modelsmith-build/browser/main-YHQFGFTY.js new file mode 100644 index 00000000..e5862105 --- /dev/null +++ b/frontend/server/modelsmith-build/browser/main-YHQFGFTY.js @@ -0,0 +1 @@ +import{b as jr,c as zr,h as es}from"./chunk-LBD5Y7YA.js";import{a as ye,b as Se,c as Dr}from"./chunk-NG4KGRDN.js";import{a as Ar}from"./chunk-7IMKJ6YK.js";import{c as $r}from"./chunk-NI65ARYN.js";import"./chunk-URO2J7UO.js";import{a as Fr,b as it,c as nt,d as Jr}from"./chunk-DQ7AOZDA.js";import"./chunk-3S6QBQVM.js";import{a as Ae}from"./chunk-D2Y5ESR4.js";import{a as kr,b as Lr}from"./chunk-TO7IPVMR.js";import"./chunk-G267DK6J.js";import"./chunk-GSC3HYC7.js";import{a as Or,b as Cr}from"./chunk-VUPIOU6P.js";import"./chunk-PP7DOJYP.js";import{a as H,b as le,c as Yr}from"./chunk-WHP5P3DQ.js";import"./chunk-SMKHMGDE.js";import{g as tt}from"./chunk-W4U3FJPJ.js";import{a as Dt,b as Pi,d as Ft,f as Ur,g as Br,h as Kr,i as qr,j as ae,k as Qr,l as Ii,m as Vr,n as Gr,o as Hr,q as Wr,r as Zr,t as Xr}from"./chunk-PSFPSLKI.js";import{a as Ot,b as hr}from"./chunk-GMIVG7ET.js";import{a as qe}from"./chunk-NT2MTW7W.js";import{g as Pr}from"./chunk-HG2O7P4S.js";import{$ as Si,$c as ie,Ac as bi,Ae as Nt,Ba as Ti,Bb as be,Cc as vr,D as yi,De as pe,E as Ue,Ea as Q,Ee as xt,Fa as Xe,Fb as Xn,Fe as he,G as Z,Gb as Yn,Gc as Ke,Ge as Rr,H as Fn,Hc as Oi,He as Nr,I as kn,Ia as Gn,Ib as Jn,Ic as Ct,Ie as xr,J as Ln,Jc as Er,K as jn,Ka as vt,Kb as Tt,N as zn,Nc as Ci,O as $n,Oc as At,Pc as _r,Q as Un,Qa as oe,Qb as er,Qc as Tr,Rc as wr,S as q,Sa as G,Sc as Ai,T as St,Tb as tr,Tc as Mr,Ub as wt,Uc as br,W as Bn,Wc as Pt,X as C,Yc as Je,Zc as z,_ as x,_b as ir,_c as me,a as T,aa as Ze,ab as F,ad as Ce,b as A,bb as k,bc as nr,bd as ne,c as An,ca as E,cb as $,cc as rr,cd as et,d as No,da as xe,db as Et,dc as sr,dd as P,e as xo,eb as _t,ec as Mi,ed as It,fc as or,ga as Kn,gb as Hn,gc as ar,h as gi,ha as we,hc as lr,ia as vi,ic as cr,jb as wi,jc as ur,kc as dr,l as Pn,la as qn,lb as de,ma as Me,n as In,nc as Mt,o as Rn,oc as Oe,p as yt,pa as Ei,pc as fr,q as Nn,qa as _i,qc as mr,rc as pr,s as V,sc as bt,t as xn,ta as Qn,tb as Wn,tc as M,ub as De,uc as fe,vb as Zn,vc as gr,w as Dn,wa as Vn,wb as Ye,wc as yr,x as K,yc as Sr,ye as Ir,zc as Be,ze as Rt}from"./chunk-NPZHNGVX.js";var po=No((Od,mo)=>{"use strict";var $l=function(e){return Ul(e)&&!Bl(e)};function Ul(n){return!!n&&typeof n=="object"}function Bl(n){var e=Object.prototype.toString.call(n);return e==="[object RegExp]"||e==="[object Date]"||Ql(n)}var Kl=typeof Symbol=="function"&&Symbol.for,ql=Kl?Symbol.for("react.element"):60103;function Ql(n){return n.$$typeof===ql}function Vl(n){return Array.isArray(n)?[]:{}}function pt(n,e){return e.clone!==!1&&e.isMergeableObject(n)?We(Vl(n),n,e):n}function Gl(n,e,t){return n.concat(e).map(function(i){return pt(i,t)})}function Hl(n,e){if(!e.customMerge)return We;var t=e.customMerge(n);return typeof t=="function"?t:We}function Wl(n){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n).filter(function(e){return Object.propertyIsEnumerable.call(n,e)}):[]}function uo(n){return Object.keys(n).concat(Wl(n))}function fo(n,e){try{return e in n}catch{return!1}}function Zl(n,e){return fo(n,e)&&!(Object.hasOwnProperty.call(n,e)&&Object.propertyIsEnumerable.call(n,e))}function Xl(n,e,t){var i={};return t.isMergeableObject(n)&&uo(n).forEach(function(r){i[r]=pt(n[r],t)}),uo(e).forEach(function(r){Zl(n,r)||(fo(n,r)&&t.isMergeableObject(e[r])?i[r]=Hl(r,t)(n[r],e[r],t):i[r]=pt(e[r],t))}),i}function We(n,e,t){t=t||{},t.arrayMerge=t.arrayMerge||Gl,t.isMergeableObject=t.isMergeableObject||$l,t.cloneUnlessOtherwiseSpecified=pt;var i=Array.isArray(e),r=Array.isArray(n),s=i===r;return s?i?t.arrayMerge(n,e,t):Xl(n,e,t):pt(e,t)}We.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(i,r){return We(i,r,t)},{})};var Yl=We;mo.exports=Yl});var ve,kt=(ve=class{constructor(){this.title="modelsmith"}ngOnInit(){}},ve.\u0275fac=function(t){return new(t||ve)},ve.\u0275cmp=we({type:ve,selectors:[["app-root"]],standalone:!0,features:[be],decls:1,vars:0,template:function(t,i){t&1&&$(0,"router-outlet")},dependencies:[Mt]}),ve);kt=yt([Ot()],kt);function ts(n){return new C(3e3,!1)}function Do(){return new C(3100,!1)}function Fo(){return new C(3101,!1)}function ko(n){return new C(3001,!1)}function Lo(n){return new C(3003,!1)}function jo(n){return new C(3004,!1)}function zo(n,e){return new C(3005,!1)}function $o(){return new C(3006,!1)}function Uo(){return new C(3007,!1)}function Bo(n,e){return new C(3008,!1)}function Ko(n){return new C(3002,!1)}function qo(n,e,t,i,r){return new C(3010,!1)}function Qo(){return new C(3011,!1)}function Vo(){return new C(3012,!1)}function Go(){return new C(3200,!1)}function Ho(){return new C(3202,!1)}function Wo(){return new C(3013,!1)}function Zo(n){return new C(3014,!1)}function Xo(n){return new C(3015,!1)}function Yo(n){return new C(3016,!1)}function Jo(n,e){return new C(3404,!1)}function ea(n){return new C(3502,!1)}function ta(n){return new C(3503,!1)}function ia(){return new C(3300,!1)}function na(n){return new C(3504,!1)}function ra(n){return new C(3301,!1)}function sa(n,e){return new C(3302,!1)}function oa(n){return new C(3303,!1)}function aa(n,e){return new C(3400,!1)}function la(n){return new C(3401,!1)}function ca(n){return new C(3402,!1)}function ua(n,e){return new C(3505,!1)}function Pe(n){switch(n.length){case 0:return new Ke;case 1:return n[0];default:return new Oi(n)}}function hs(n,e,t=new Map,i=new Map){let r=[],s=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==o,u=d&&a||new Map;l.forEach((p,g)=>{let f=g,m=p;if(g!=="offset")switch(f=n.normalizePropertyName(f,r),m){case Ct:m=t.get(g);break;case fe:m=i.get(g);break;default:m=n.normalizeStyleValue(g,f,m,r);break}u.set(f,m)}),d||s.push(u),a=u,o=c}),r.length)throw ea(r);return s}function Ji(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&Ri(t,"start",n)));break;case"done":n.onDone(()=>i(t&&Ri(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&Ri(t,"destroy",n)));break}}function Ri(n,e,t){let i=t.totalTime,r=!!t.disabled,s=en(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,i??n.totalTime,r),o=n._data;return o!=null&&(s._data=o),s}function en(n,e,t,i,r="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function ee(n,e,t){let i=n.get(e);return i||n.set(e,i=t),i}function is(n){let e=n.indexOf(":"),t=n.substring(1,e),i=n.slice(e+1);return[t,i]}var da=typeof document>"u"?null:document.documentElement;function tn(n){let e=n.parentNode||n.host||null;return e===da?null:e}function fa(n){return n.substring(1,6)=="ebkit"}var Fe=null,ns=!1;function ma(n){Fe||(Fe=pa()||{},ns=Fe.style?"WebkitAppearance"in Fe.style:!1);let e=!0;return Fe.style&&!fa(n)&&(e=n in Fe.style,!e&&ns&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Fe.style)),e}function pa(){return typeof document<"u"?document.body:null}function gs(n,e){for(;e;){if(e===n)return!0;e=tn(e)}return!1}function ys(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let i=n.querySelector(e);return i?[i]:[]}var nn=(()=>{let e=class e{validateStyleProperty(i){return ma(i)}containsElement(i,r){return gs(i,r)}getParentElement(i){return tn(i)}query(i,r,s){return ys(i,r,s)}computeStyle(i,r,s){return s||""}animate(i,r,s,o,a,l=[],c){return new Ke(s,o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})(),an=class an{};an.NOOP=new nn;var je=an,ze=class{};var ha=1e3,Ss="{{",ga="}}",vs="ng-enter",Li="ng-leave",Lt="ng-trigger",Bt=".ng-trigger",rs="ng-animating",ji=".ng-animating";function Ee(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:zi(parseFloat(e[1]),e[2])}function zi(n,e){switch(e){case"s":return n*ha;default:return n}}function Kt(n,e,t){return n.hasOwnProperty("duration")?n:ya(n,e,t)}function ya(n,e,t){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,s=0,o="";if(typeof n=="string"){let a=n.match(i);if(a===null)return e.push(ts(n)),{duration:0,delay:0,easing:""};r=zi(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(s=zi(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(Do()),a=!0),s<0&&(e.push(Fo()),a=!0),a&&e.splice(l,0,ts(n))}return{duration:r,delay:s,easing:o}}function Sa(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function ge(n,e,t){e.forEach((i,r)=>{let s=rn(r);t&&!t.has(r)&&t.set(r,n.style[s]),n.style[s]=i})}function Le(n,e){e.forEach((t,i)=>{let r=rn(i);n.style[r]=""})}function rt(n){return Array.isArray(n)?n.length==1?n[0]:Sr(n):n}function va(n,e,t){let i=e.params||{},r=Es(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(ko(s))})}var $i=new RegExp(`${Ss}\\s*(.+?)\\s*${ga}`,"g");function Es(n){let e=[];if(typeof n=="string"){let t;for(;t=$i.exec(n);)e.push(t[1]);$i.lastIndex=0}return e}function ot(n,e,t){let i=`${n}`,r=i.replace($i,(s,o)=>{let a=e[o];return a==null&&(t.push(Lo(o)),a=""),a.toString()});return r==i?n:r}var Ea=/-+([a-z0-9])/g;function rn(n){return n.replace(Ea,(...e)=>e[1].toUpperCase())}function _a(n,e){return n===0||e===0}function Ta(n,e,t){if(t.size&&e.length){let i=e[0],r=[];if(t.forEach((s,o)=>{i.has(o)||r.push(o),i.set(o,s)}),r.length)for(let s=1;so.set(a,sn(n,a)))}}return e}function J(n,e,t){switch(e.type){case M.Trigger:return n.visitTrigger(e,t);case M.State:return n.visitState(e,t);case M.Transition:return n.visitTransition(e,t);case M.Sequence:return n.visitSequence(e,t);case M.Group:return n.visitGroup(e,t);case M.Animate:return n.visitAnimate(e,t);case M.Keyframes:return n.visitKeyframes(e,t);case M.Style:return n.visitStyle(e,t);case M.Reference:return n.visitReference(e,t);case M.AnimateChild:return n.visitAnimateChild(e,t);case M.AnimateRef:return n.visitAnimateRef(e,t);case M.Query:return n.visitQuery(e,t);case M.Stagger:return n.visitStagger(e,t);default:throw jo(e.type)}}function sn(n,e){return window.getComputedStyle(n)[e]}var wa=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),qt=class extends ze{normalizePropertyName(e,t){return rn(e)}normalizeStyleValue(e,t,i,r){let s="",o=i.toString().trim();if(wa.has(t)&&i!==0&&i!=="0")if(typeof i=="number")s="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(zo(e,i))}return o+s}};var Qt="*";function Ma(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(i=>ba(i,t,e)):t.push(n),t}function ba(n,e,t){if(n[0]==":"){let l=Oa(n,t);if(typeof l=="function"){e.push(l);return}n=l}let i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return t.push(Xo(n)),e;let r=i[1],s=i[2],o=i[3];e.push(ss(r,o));let a=r==Qt&&o==Qt;s[0]=="<"&&!a&&e.push(ss(o,r))}function Oa(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i) *"}}var jt=new Set(["true","1"]),zt=new Set(["false","0"]);function ss(n,e){let t=jt.has(n)||zt.has(n),i=jt.has(e)||zt.has(e);return(r,s)=>{let o=n==Qt||n==r,a=e==Qt||e==s;return!o&&t&&typeof r=="boolean"&&(o=r?jt.has(n):zt.has(n)),!a&&i&&typeof s=="boolean"&&(a=s?jt.has(e):zt.has(e)),o&&a}}var _s=":self",Ca=new RegExp(`s*${_s}s*,?`,"g");function Ts(n,e,t,i){return new Ui(n).build(e,t,i)}var os="",Ui=class{constructor(e){this._driver=e}build(e,t,i){let r=new Bi(t);return this._resetContextStyleTimingState(r),J(this,rt(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=os,e.collectedStyles=new Map,e.collectedStyles.set(os,new Map),e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0,s=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push($o()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==M.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,s.push(this.visitState(l,t))}),l.name=c}else if(a.type==M.Transition){let l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(Uo())}),{type:M.Trigger,name:e.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(e,t){let i=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){let s=new Set,o=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Es(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&t.errors.push(Bo(e.name,[...s.values()]))}return{type:M.State,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let i=J(this,rt(e.animation),t),r=Ma(e.expr,t.errors);return{type:M.Transition,matchers:r,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:ke(e.options)}}visitSequence(e,t){return{type:M.Sequence,steps:e.steps.map(i=>J(this,i,t)),options:ke(e.options)}}visitGroup(e,t){let i=t.currentTime,r=0,s=e.steps.map(o=>{t.currentTime=i;let a=J(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:M.Group,steps:s,options:ke(e.options)}}visitAnimate(e,t){let i=Ra(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:Be({});if(s.type==M.Keyframes)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};i.easing&&(c.easing=i.easing),o=Be(c)}t.currentTime+=i.duration+i.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:M.Animate,timings:i,style:r,options:null}}visitStyle(e,t){let i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){let i=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===fe?i.push(a):t.errors.push(Ko(a)):i.push(new Map(Object.entries(a)));let s=!1,o=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s)){for(let l of a.values())if(l.toString().indexOf(Ss)>=0){s=!0;break}}}),{type:M.Style,styles:i,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){let i=t.currentAnimateTimings,r=t.currentTime,s=t.currentTime;i&&s>0&&(s-=i.duration+i.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l),u=!0;d&&(s!=r&&s>=d.startTime&&r<=d.endTime&&(t.errors.push(qo(l,d.startTime,d.endTime,s,r)),u=!1),s=d.startTime),u&&c.set(l,{startTime:s,endTime:r}),t.options&&va(a,t.options,t.errors)})})}visitKeyframes(e,t){let i={type:M.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Qo()),i;let r=1,s=0,o=[],a=!1,l=!1,c=0,d=e.steps.map(b=>{let I=this._makeStyleAst(b,t),j=I.offset!=null?I.offset:Ia(I.styles),v=0;return j!=null&&(s++,v=I.offset=j),l=l||v<0||v>1,a=a||v0&&s{let j=p>0?I==g?1:p*I:o[I],v=j*w;t.currentTime=f+m.delay+v,m.duration=v,this._validateStyleAst(b,t),b.offset=j,i.styles.push(b)}),i}visitReference(e,t){return{type:M.Reference,animation:J(this,rt(e.animation),t),options:ke(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:M.AnimateChild,options:ke(e.options)}}visitAnimateRef(e,t){return{type:M.AnimateRef,animation:this.visitReference(e.animation,t),options:ke(e.options)}}visitQuery(e,t){let i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;let[s,o]=Aa(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,ee(t.collectedStyles,t.currentQuerySelector,new Map);let a=J(this,rt(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:M.Query,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:ke(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Wo());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Kt(e.timings,t.errors,!0);return{type:M.Stagger,animation:J(this,rt(e.animation),t),timings:i,options:null}}};function Aa(n){let e=!!n.split(/\s*,\s*/).find(t=>t==_s);return e&&(n=n.replace(Ca,"")),n=n.replace(/@\*/g,Bt).replace(/@\w+/g,t=>Bt+"-"+t.slice(1)).replace(/:animating/g,ji),[n,e]}function Pa(n){return n?T({},n):null}var Bi=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function Ia(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Ra(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let s=Kt(n,e).duration;return Ni(s,0,"")}let t=n;if(t.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=Ni(0,0,"");return s.dynamic=!0,s.strValue=t,s}let r=Kt(t,e);return Ni(r.duration,r.delay,r.easing)}function ke(n){return n?(n=T({},n),n.params&&(n.params=Pa(n.params))):n={},n}function Ni(n,e,t){return{duration:n,delay:e,easing:t}}function on(n,e,t,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}var at=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Na=1,xa=":enter",Da=new RegExp(xa,"g"),Fa=":leave",ka=new RegExp(Fa,"g");function ws(n,e,t,i,r,s=new Map,o=new Map,a,l,c=[]){return new Ki().buildKeyframes(n,e,t,i,r,s,o,a,l,c)}var Ki=class{buildKeyframes(e,t,i,r,s,o,a,l,c,d=[]){c=c||new at;let u=new qi(e,t,c,r,s,d,[]);u.options=l;let p=l.delay?Ee(l.delay):0;u.currentTimeline.delayNextStep(p),u.currentTimeline.setStyles([o],null,u.errors,l),J(this,i,u);let g=u.timelines.filter(f=>f.containsAnimation());if(g.length&&a.size){let f;for(let m=g.length-1;m>=0;m--){let w=g[m];if(w.element===t){f=w;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,u.errors,l)}return g.length?g.map(f=>f.buildKeyframes()):[on(t,[],[],[],0,p,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let i=t.subInstructions.get(t.element);if(i){let r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,i){for(let r of e){let s=r?.delay;if(s){let o=typeof s=="number"?s:Ee(ot(s,r?.params??{},t.errors));i.delayNextStep(o)}}}_visitSubInstructions(e,t,i){let s=t.currentTimeline.currentTime,o=i.duration!=null?Ee(i.duration):null,a=i.delay!=null?Ee(i.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),J(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let i=t.subContextCount,r=t,s=e.options;if(s&&(s.params||s.delay)&&(r=t.createSubContext(s),r.transformIntoNewTimeline(),s.delay!=null)){r.previousNode.type==M.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Vt);let o=Ee(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>J(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let i=[],r=t.currentTimeline.currentTime,s=e.options&&e.options.delay?Ee(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);s&&a.delayNextStep(s),J(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let i=e.strValue,r=t.params?ot(i,t.params,t.errors):i;return Kt(r,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let i=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());let s=e.style;s.type==M.Keyframes?this.visitKeyframes(s,t):(t.incrementTime(i.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();let s=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(s):i.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let i=t.currentAnimateTimings,r=t.currentTimeline.duration,s=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){let i=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?Ee(r.delay):0;s&&(t.previousNode.type===M.Style||i==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Vt);let o=i,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{t.currentQueryIndex=d;let u=t.createSubContext(e.options,c);s&&u.delayNextStep(s),c===t.element&&(l=u.currentTimeline),J(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let p=u.currentTimeline.currentTime;o=Math.max(o,p)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let i=t.parentContext,r=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime;break}let d=t.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;J(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-u+(r.startTime-i.currentTimeline.startTime)}},Vt={},qi=class n{constructor(e,t,i,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Vt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Gt(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let i=e,r=this.options;i.duration!=null&&(r.duration=Ee(i.duration)),i.delay!=null&&(r.delay=Ee(i.delay));let s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=ot(s[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let i=e.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return e}createSubContext(e=null,t,i){let r=t||this.element,s=new n(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=Vt,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){let r={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},s=new Qi(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=e.replace(Da,"."+this._enterClassName),e=e.replace(ka,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,e,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&a.length==0&&o.push(Zo(t)),a}},Gt=class n{constructor(e,t,i,r){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Na,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||fe),this._currentKeyframe.set(t,fe);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&this._previousKeyframe.set("easing",t);let s=r&&r.params||{},o=La(e,this._globalTimelineStyles);for(let[a,l]of o){let c=ot(l,s,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??fe),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,i)=>{let r=this._styleSummary.get(i);(!r||t.time>r.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,i=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{d===Ct?e.add(u):d===fe&&t.add(u)}),i||c.set("offset",l/this.duration),r.push(c)});let s=[...e.values()],o=[...t.values()];if(i){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return on(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}},Qi=class extends Gt{constructor(e,t,i,r,s,o,a=!1){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){let s=[],o=i+t,a=t/o,l=new Map(e[0]);l.set("offset",0),s.push(l);let c=new Map(e[0]);c.set("offset",as(a)),s.push(c);let d=e.length-1;for(let u=1;u<=d;u++){let p=new Map(e[u]),g=p.get("offset"),f=t+g*i;p.set("offset",as(f/o)),s.push(p)}i=o,t=0,r="",e=s}return on(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}};function as(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function La(n,e){let t=new Map,i;return n.forEach(r=>{if(r==="*"){i??=e.keys();for(let s of i)t.set(s,fe)}else for(let[s,o]of r)t.set(s,o)}),t}function ls(n,e,t,i,r,s,o,a,l,c,d,u,p){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:p}}var xi={},Ht=class{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return ja(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(t,i):new Map}build(e,t,i,r,s,o,a,l,c,d){let u=[],p=this.ast.options&&this.ast.options.params||xi,g=a&&a.params||xi,f=this.buildStyles(i,g,u),m=l&&l.params||xi,w=this.buildStyles(r,m,u),b=new Set,I=new Map,j=new Map,v=r==="void",R={params:Ms(m,p),delay:this.ast.options?.delay},_=d?[]:ws(e,t,this.ast.animation,s,o,f,w,R,c,u),D=0;return _.forEach(N=>{D=Math.max(N.duration+N.delay,D)}),u.length?ls(t,this._triggerName,i,r,v,f,w,[],[],I,j,D,u):(_.forEach(N=>{let se=N.element,$e=ee(I,se,new Set);N.preStyleProps.forEach(Re=>$e.add(Re));let Mn=ee(j,se,new Set);N.postStyleProps.forEach(Re=>Mn.add(Re)),se!==t&&b.add(se)}),ls(t,this._triggerName,i,r,v,f,w,_,[...b.values()],I,j,D))}};function ja(n,e,t,i,r){return n.some(s=>s(e,t,i,r))}function Ms(n,e){let t=T({},e);return Object.entries(n).forEach(([i,r])=>{r!=null&&(t[i]=r)}),t}var Vi=class{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){let i=new Map,r=Ms(e,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,a)=>{o&&(o=ot(o,r,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),i.set(a,o)})}),i}};function za(n,e,t){return new Gi(n,e,t)}var Gi=class{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states=new Map,t.states.forEach(r=>{let s=r.options&&r.options.params||{};this.states.set(r.name,new Vi(r.style,s,i))}),cs(this.states,"true","1"),cs(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new Ht(e,r,this.states))}),this.fallbackTransition=$a(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,r){return this.transitionFactories.find(o=>o.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}};function $a(n,e,t){let i=[(o,a)=>!0],r={type:M.Sequence,steps:[],options:null},s={type:M.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new Ht(n,s,e)}function cs(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var Ua=new at,Hi=class{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let i=[],r=[],s=Ts(this._driver,t,i,r);if(i.length)throw ta(i);r.length&&void 0,this._animations.set(e,s)}_buildPlayer(e,t,i){let r=e.element,s=hs(this._normalizer,e.keyframes,t,i);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){let r=[],s=this._animations.get(e),o,a=new Map;if(s?(o=ws(this._driver,t,s,vs,Li,new Map,new Map,i,Ua,r),o.forEach(d=>{let u=ee(a,d.element,new Map);d.postStyleProps.forEach(p=>u.set(p,null))})):(r.push(ia()),o=[]),r.length)throw na(r);a.forEach((d,u)=>{d.forEach((p,g)=>{d.set(g,this._driver.computeStyle(u,g,fe))})});let l=o.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),c=Pe(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw ra(e);return t}listen(e,t,i,r){let s=en(t,"","","");return Ji(this._getPlayer(e),i,s,r),()=>{}}command(e,t,i,r){if(i=="register"){this.register(e,r[0]);return}if(i=="create"){let o=r[0]||{};this.create(e,t,o);return}let s=this._getPlayer(e);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e);break}}},us="ng-animate-queued",Ba=".ng-animate-queued",Di="ng-animate-disabled",Ka=".ng-animate-disabled",qa="ng-star-inserted",Qa=".ng-star-inserted",Va=[],bs={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ga={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ce="__ng_removed",lt=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let i=e&&e.hasOwnProperty("value"),r=i?e.value:e;if(this.value=Wa(r),i){let s=e,{value:o}=s,a=An(s,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let i=this.options.params;Object.keys(t).forEach(r=>{i[r]==null&&(i[r]=t[r])})}}},st="void",Fi=new lt(st),Wi=class{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,re(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.has(t))throw sa(i,t);if(i==null||i.length==0)throw oa(t);if(!Za(i))throw aa(i,t);let s=ee(this._elementListeners,e,[]),o={name:t,phase:i,callback:r};s.push(o);let a=ee(this._engine.statesByElement,e,new Map);return a.has(t)||(re(e,Lt),re(e,Lt+"-"+t),a.set(t,Fi)),()=>{this._engine.afterFlush(()=>{let l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw la(e);return t}trigger(e,t,i,r=!0){let s=this._getTrigger(t),o=new ct(this.id,t,e),a=this._engine.statesByElement.get(e);a||(re(e,Lt),re(e,Lt+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new lt(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=Fi),!(c.value===st)&&l.value===c.value){if(!Ja(l.params,c.params)){let m=[],w=s.matchStyles(l.value,l.params,m),b=s.matchStyles(c.value,c.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{Le(e,w),ge(e,b)})}return}let p=ee(this._engine.playersByElement,e,[]);p.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.destroy()});let g=s.matchTransition(l.value,c.value,e,c.params),f=!1;if(!g){if(!r)return;g=s.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:g,fromState:l,toState:c,player:o,isFallbackTransition:f}),f||(re(e,us),o.onStart(()=>{Qe(e,us)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);let w=this._engine.playersByElement.get(e);if(w){let b=w.indexOf(o);b>=0&&w.splice(b,1)}}),this.players.push(o),p.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let i=this._engine.driver.query(e,Bt,!0);i.forEach(r=>{if(r[ce])return;let s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){let s=this._engine.statesByElement.get(e),o=new Map;if(s){let a=[];if(s.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,st,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&Pe(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){let r=new Set;t.forEach(s=>{let o=s.name;if(r.has(o))return;r.add(o);let l=this._triggers.get(o).fallbackTransition,c=i.get(o)||Fi,d=new lt(st),u=new ct(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(i.totalAnimations){let s=i.players.length?i.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{let s=e[ce];(!s||s===bs)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){re(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(i=>{let r=i.player;if(r.destroyed)return;let s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){let l=en(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Ji(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{let s=i.transition.ast.depCount,o=r.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Zi=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){let i=new Wi(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){let i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=r.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||i.unshift(e)}else i.push(e);return r.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let r=this._namespaceLookup[e];r&&r.register(t,i)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(e);this.namespacesByHostElement.delete(i.hostElement);let r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,i=this.statesByElement.get(e);if(i){for(let r of i.values())if(r.namespaceId){let s=this._fetchNamespace(r.namespaceId);s&&t.add(s)}}return t}trigger(e,t,i,r){if($t(t)){let s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!$t(t))return;let s=t[ce];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),re(e,Di)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Qe(e,Di))}removeNode(e,t,i){if($t(t)){let r=e?this._fetchNamespace(e):null;r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i);let s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,i,r,s){this.collectedLeaveElements.push(t),t[ce]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return $t(t)?this._fetchNamespace(e).listen(t,i,r,s):()=>{}}_buildInstruction(e,t,i,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,Bt,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,ji,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Pe(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[ce];if(t&&t.setForRemoval){if(e[ce]=bs,t.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Di)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Ka,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],t.length?Pe(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw ca(e)}_flushAnimations(e,t){let i=new at,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(h=>{d.add(h);let y=this.driver.query(h,Ba,!0);for(let S=0;S{let S=vs+m++;f.set(y,S),h.forEach(O=>re(O,S))});let w=[],b=new Set,I=new Set;for(let h=0;hb.add(O)):I.add(y))}let j=new Map,v=ms(p,Array.from(b));v.forEach((h,y)=>{let S=Li+m++;j.set(y,S),h.forEach(O=>re(O,S))}),e.push(()=>{g.forEach((h,y)=>{let S=f.get(y);h.forEach(O=>Qe(O,S))}),v.forEach((h,y)=>{let S=j.get(y);h.forEach(O=>Qe(O,S))}),w.forEach(h=>{this.processLeaveNode(h)})});let R=[],_=[];for(let h=this._namespaceList.length-1;h>=0;h--)this._namespaceList[h].drainQueuedTransitions(t).forEach(S=>{let O=S.player,B=S.element;if(R.push(O),this.collectedEnterElements.length){let W=B[ce];if(W&&W.setForMove){if(W.previousTriggersValues&&W.previousTriggersValues.has(S.triggerName)){let Ne=W.previousTriggersValues.get(S.triggerName),te=this.statesByElement.get(S.element);if(te&&te.has(S.triggerName)){let gt=te.get(S.triggerName);gt.value=Ne,te.set(S.triggerName,gt)}}O.destroy();return}}let ue=!u||!this.driver.containsElement(u,B),Y=j.get(B),Te=f.get(B),L=this._buildInstruction(S,i,Te,Y,ue);if(L.errors&&L.errors.length){_.push(L);return}if(ue){O.onStart(()=>Le(B,L.fromStyles)),O.onDestroy(()=>ge(B,L.toStyles)),r.push(O);return}if(S.isFallbackTransition){O.onStart(()=>Le(B,L.fromStyles)),O.onDestroy(()=>ge(B,L.toStyles)),r.push(O);return}let Cn=[];L.timelines.forEach(W=>{W.stretchStartingKeyframe=!0,this.disabledNodes.has(W.element)||Cn.push(W)}),L.timelines=Cn,i.append(B,L.timelines);let Ro={instruction:L,player:O,element:B};o.push(Ro),L.queriedElements.forEach(W=>ee(a,W,[]).push(O)),L.preStyleProps.forEach((W,Ne)=>{if(W.size){let te=l.get(Ne);te||l.set(Ne,te=new Set),W.forEach((gt,hi)=>te.add(hi))}}),L.postStyleProps.forEach((W,Ne)=>{let te=c.get(Ne);te||c.set(Ne,te=new Set),W.forEach((gt,hi)=>te.add(hi))})});if(_.length){let h=[];_.forEach(y=>{h.push(ua(y.triggerName,y.errors))}),R.forEach(y=>y.destroy()),this.reportError(h)}let D=new Map,N=new Map;o.forEach(h=>{let y=h.element;i.has(y)&&(N.set(y,y),this._beforeAnimationBuild(h.player.namespaceId,h.instruction,D))}),r.forEach(h=>{let y=h.element;this._getPreviousPlayers(y,!1,h.namespaceId,h.triggerName,null).forEach(O=>{ee(D,y,[]).push(O),O.destroy()})});let se=w.filter(h=>ps(h,l,c)),$e=new Map;fs($e,this.driver,I,c,fe).forEach(h=>{ps(h,l,c)&&se.push(h)});let Re=new Map;g.forEach((h,y)=>{fs(Re,this.driver,new Set(h),l,Ct)}),se.forEach(h=>{let y=$e.get(h),S=Re.get(h);$e.set(h,new Map([...y?.entries()??[],...S?.entries()??[]]))});let pi=[],bn=[],On={};o.forEach(h=>{let{element:y,player:S,instruction:O}=h;if(i.has(y)){if(d.has(y)){S.onDestroy(()=>ge(y,O.toStyles)),S.disabled=!0,S.overrideTotalTime(O.totalTime),r.push(S);return}let B=On;if(N.size>1){let Y=y,Te=[];for(;Y=Y.parentNode;){let L=N.get(Y);if(L){B=L;break}Te.push(Y)}Te.forEach(L=>N.set(L,B))}let ue=this._buildAnimation(S.namespaceId,O,D,s,Re,$e);if(S.setRealPlayer(ue),B===On)pi.push(S);else{let Y=this.playersByElement.get(B);Y&&Y.length&&(S.parentPlayer=Pe(Y)),r.push(S)}}else Le(y,O.fromStyles),S.onDestroy(()=>ge(y,O.toStyles)),bn.push(S),d.has(y)&&r.push(S)}),bn.forEach(h=>{let y=s.get(h.element);if(y&&y.length){let S=Pe(y);h.setRealPlayer(S)}}),r.forEach(h=>{h.parentPlayer?h.syncPlayerEvents(h.parentPlayer):h.destroy()});for(let h=0;h!ue.destroyed);B.length?Xa(this,y,B):this.processLeaveNode(y)}return w.length=0,pi.forEach(h=>{this.players.push(h),h.onDone(()=>{h.destroy();let y=this.players.indexOf(h);this.players.splice(y,1)}),h.play()}),pi}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,r,s){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!s||s==st;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){let r=t.triggerName,s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:r;for(let l of t.timelines){let c=l.element,d=c!==s,u=ee(i,c,[]);this._getPreviousPlayers(c,d,o,a,t.toState).forEach(g=>{let f=g.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),g.destroy(),u.push(g)})}Le(s,t.fromStyles)}_buildAnimation(e,t,i,r,s,o){let a=t.triggerName,l=t.element,c=[],d=new Set,u=new Set,p=t.timelines.map(f=>{let m=f.element;d.add(m);let w=m[ce];if(w&&w.removedBeforeQueried)return new Ke(f.duration,f.delay);let b=m!==l,I=Ya((i.get(m)||Va).map(D=>D.getRealPlayer())).filter(D=>{let N=D;return N.element?N.element===m:!1}),j=s.get(m),v=o.get(m),R=hs(this._normalizer,f.keyframes,j,v),_=this._buildPlayer(f,R,I);if(f.subTimeline&&r&&u.add(m),b){let D=new ct(e,a,m);D.setRealPlayer(_),c.push(D)}return _});c.forEach(f=>{ee(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>Ha(this.playersByQueriedElement,f.element,f))}),d.forEach(f=>re(f,rs));let g=Pe(p);return g.onDestroy(()=>{d.forEach(f=>Qe(f,rs)),ge(l,t.toStyles)}),u.forEach(f=>{ee(r,f,[]).push(g)}),g}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new Ke(e.duration,e.delay)}},ct=class{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new Ke,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,i)=>{t.forEach(r=>Ji(e,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){ee(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function Ha(n,e,t){let i=n.get(e);if(i){if(i.length){let r=i.indexOf(t);i.splice(r,1)}i.length==0&&n.delete(e)}return i}function Wa(n){return n??null}function $t(n){return n&&n.nodeType===1}function Za(n){return n=="start"||n=="done"}function ds(n,e){let t=n.style.display;return n.style.display=e??"none",t}function fs(n,e,t,i,r){let s=[];t.forEach(l=>s.push(ds(l)));let o=[];i.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let p=e.computeStyle(c,u,r);d.set(u,p),(!p||p.length==0)&&(c[ce]=Ga,o.push(c))}),n.set(c,d)});let a=0;return t.forEach(l=>ds(l,s[a++])),o}function ms(n,e){let t=new Map;if(n.forEach(a=>t.set(a,[])),e.length==0)return t;let i=1,r=new Set(e),s=new Map;function o(a){if(!a)return i;let l=s.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:r.has(c)?l=i:l=o(c),s.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==i&&t.get(l).push(a)}),t}function re(n,e){n.classList?.add(e)}function Qe(n,e){n.classList?.remove(e)}function Xa(n,e,t){Pe(t).onDone(()=>n.processLeaveNode(e))}function Ya(n){let e=[];return Os(n,e),e}function Os(n,e){for(let t=0;tr.add(s)):e.set(n,i),t.delete(n),!0}var Ge=class{constructor(e,t,i){this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new Zi(e.body,t,i),this._timelineEngine=new Hi(e.body,t,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,t,i,r,s){let o=e+"-"+r,a=this._triggerCache[o];if(!a){let l=[],c=[],d=Ts(this._driver,s,l,c);if(l.length)throw Jo(r,l);c.length&&void 0,a=za(r,d,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,r){this._transitionEngine.insertNode(e,t,i,r)}onRemove(e,t,i){this._transitionEngine.removeNode(e,t,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,r){if(i.charAt(0)=="@"){let[s,o]=is(i),a=r;this._timelineEngine.command(s,t,o,a)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,s){if(i.charAt(0)=="@"){let[o,a]=is(i);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,i,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function el(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=ki(e[0]),e.length>1&&(i=ki(e[e.length-1]))):e instanceof Map&&(t=ki(e)),t||i?new Xi(n,t,i):null}var Ve=class Ve{constructor(e,t,i){this._element=e,this._startStyles=t,this._endStyles=i,this._state=0;let r=Ve.initialStylesByElement.get(e);r||Ve.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&ge(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ge(this._element,this._initialStyles),this._endStyles&&(ge(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Ve.initialStylesByElement.delete(this._element),this._startStyles&&(Le(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Le(this._element,this._endStyles),this._endStyles=null),ge(this._element,this._initialStyles),this._state=3)}};Ve.initialStylesByElement=new WeakMap;var Xi=Ve;function ki(n){let e=null;return n.forEach((t,i)=>{tl(i)&&(e=e||new Map,e.set(i,t))}),e}function tl(n){return n==="display"||n==="position"}var Wt=class{constructor(e,t,i,r){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(e,t,i){return e.animate(this._convertKeyframesToObject(t),i)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{r!=="offset"&&e.set(r,this._finished?i:sn(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},Zt=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return gs(e,t)}getParentElement(e){return tn(e)}query(e,t,i){return ys(e,t,i)}computeStyle(e,t,i){return sn(e,t)}animate(e,t,i,r,s,o=[]){let a=r==0?"both":"forwards",l={duration:i,delay:r,fill:a};s&&(l.easing=s);let c=new Map,d=o.filter(g=>g instanceof Wt);_a(i,r)&&d.forEach(g=>{g.currentSnapshot.forEach((f,m)=>c.set(m,f))});let u=Sa(t).map(g=>new Map(g));u=Ta(e,u,c);let p=el(e,u);return new Wt(e,u,l,p)}};var Ut="@",Cs="@.disabled",Xt=class{constructor(e,t,i,r){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,r=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,r){this.delegate.setAttribute(e,t,i,r)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,r){this.delegate.setStyle(e,t,i,r)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){t.charAt(0)==Ut&&t==Cs?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Yi=class extends Xt{constructor(e,t,i,r,s){super(t,i,r,s),this.factory=e,this.namespaceId=t}setProperty(e,t,i){t.charAt(0)==Ut?t.charAt(1)=="."&&t==Cs?(i=i===void 0?!0:!!i,this.disableAnimations(e,i)):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if(t.charAt(0)==Ut){let r=il(e),s=t.slice(1),o="";return s.charAt(0)!=Ut&&([s,o]=nl(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,i,a)})}return this.delegate.listen(e,t,i)}};function il(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function nl(n){let e=n.indexOf("."),t=n.substring(0,e),i=n.slice(e+1);return[t,i]}var Yt=class{constructor(e,t,i){this.delegate=e,this.engine=t,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(r,s)=>{let o=s?.parentNode(r);o&&s.removeChild(o,r)}}createRenderer(e,t){let i="",r=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,d=c.get(r);if(!d){let u=()=>c.delete(r);d=new Xt(i,r,this.engine,u),c.set(r,d)}return d}let s=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(s,o,e,c.name,c)};return t.data.animation.forEach(a),new Yi(this,o,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,i){if(e>=0&&et(i));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(s=>{let[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),r.push([t,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var sl=(()=>{let e=class e extends Ge{constructor(i,r,s){super(i,r,s)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(E(er),E(je),E(ze))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();function ol(){return new qt}function al(n,e,t){return new Yt(n,e,t)}var Ps=[{provide:ze,useFactory:ol},{provide:Ge,useClass:sl},{provide:Gn,useFactory:al,deps:[lr,Ge,vt]}],As=[{provide:je,useFactory:()=>new Zt},{provide:Ti,useValue:"BrowserAnimations"},...Ps],ll=[{provide:je,useClass:nn},{provide:Ti,useValue:"NoopAnimations"},...Ps],Is=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:i.disableAnimations?ll:As}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=vi({type:e}),e.\u0275inj=Si({providers:As,imports:[ur]});let n=e;return n})();var Ie=class{static setItem(e,t){localStorage.setItem(e,JSON.stringify(t))}static getItem(e){let t=localStorage.getItem(e);return t?JSON.parse(t):null}static getNestedItem(e,t){let i=this.getItem(e);return i?this.getNestedProperty(i,t):null}static removeItem(e){localStorage.removeItem(e)}static clear(){localStorage.clear()}static getNestedProperty(e,t){if(!t)return e;let i=t.split(".");for(let r=0;r{let e=class e{constructor(i){this.router=i}canActivate(){return Ie.getNestedItem(U.CORE.ROOT,`${U.AUTH.ROOT}.${U.AUTH.USER.ROOT}.${U.AUTH.USER.JWT}`)?!0:(this.router.navigate([`/${P.AUTH.ROOT}`]),!1)}};e.\u0275fac=function(r){return new(r||e)(E(Oe))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();var Jt=(()=>{let e=class e{constructor(i,r){this.router=i,this.configFacadeService=r}canActivate(){let i=Ie.getNestedItem(U.CORE.ROOT,`${U.CONFIGS.ROOT}.${U.CONFIGS.DEFAULT_MODE}`);return i&&(i===Se.GUIDED?(this.router.navigate([`/${P.WIZARD.ROOT}`]),this.configFacadeService.dispatch(ye.setCurrentMode({mode:Se.GUIDED}))):(this.router.navigate([`/${P.MODEL_COMPRESSION.ROOT}`]),this.configFacadeService.dispatch(ye.setCurrentMode({mode:Se.EXPERT})))),!0}};e.\u0275fac=function(r){return new(r||e)(E(Oe),E(qe))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();var ei=(()=>{let e=class e{constructor(i){this.router=i}canActivate(){return Ie.getNestedItem(U.CORE.ROOT,`${U.AUTH.ROOT}.${U.AUTH.USER.ROOT}.${U.AUTH.USER.JWT}`)?(this.router.navigate([`/${P.MODE_SELECT.ROOT}`]),!1):!0}};e.\u0275fac=function(r){return new(r||e)(E(Oe))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();function dl(n,e){if(n&1&&(F(0,"div")(1,"div",6),De(2),k()()),n&2){let t=de();Q(2),Ye(" ",t.item.label," ")}}function fl(n,e){n&1&&(F(0,"div"),$(1,"ms-spining-indicator"),k())}function ml(n,e){if(n&1&&(Et(0),oe(1,fl,2,0,"div",4),_t()),n&2){let t=e.ngIf,i=de();Q(),G("ngIf",i.isExpanded&&t===(i.item==null?null:i.item.key))}}var Rs=(()=>{let e=class e{constructor(i){this.pageRunningScriptSpiningIndicatorService=i,this.itemStyle="accent",this.isExpanded=!0}};e.\u0275fac=function(r){return new(r||e)(Xe(nt))},e.\u0275cmp=we({type:e,selectors:[["ms-sidenav-item"]],inputs:{item:"item",itemStyle:"itemStyle",isExpanded:"isExpanded"},standalone:!0,features:[be],decls:8,vars:6,consts:[["routerLinkActive","active-route",1,"sidenav-item",3,"routerLink"],[1,"left-side"],[1,"item-icon"],["fontSet","ms",3,"fontIcon"],[4,"ngIf"],[1,"right-side"],[1,"item-label","paragraph-semibold-p3-small-emphasis"]],template:function(r,s){r&1&&(F(0,"div",0)(1,"div",1)(2,"div",2),$(3,"mat-icon",3),k(),oe(4,dl,3,1,"div",4),k(),F(5,"div",5),oe(6,ml,2,1,"ng-container",4),Xn(7,"async"),k()()),r&2&&(G("routerLink",s.item.route),Q(3),G("fontIcon",s.item.icon),Q(),G("ngIf",s.isExpanded),Q(2),G("ngIf",Yn(7,4,s.pageRunningScriptSpiningIndicatorService.currentRunningPage$)))},dependencies:[nr,wt,ir,Nt,Rt,Fr,bt,fr,mr],styles:["html[_ngcontent-%COMP%]{color:var(--foregrounds-800)}.text-hint[_ngcontent-%COMP%]{color:var(--foregrounds-700)}.heading-primary-title[_ngcontent-%COMP%]{font-family:Montserrat;font-weight:700;font-size:1.5rem;line-height:2.125rem}.heading-section-title[_ngcontent-%COMP%]{font-weight:700;font-size:1.125rem;line-height:1.5em}.paragraph-bold-p4-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.75rem;line-height:1.125em}.paragraph-monospace-p2-large[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:400}.heading-sub-section-title[_ngcontent-%COMP%]{font-size:1rem;line-height:1.375rem;font-weight:700}.paragraph-regular-p3-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875;line-height:1.25rem}.paragraph-bold-p3-small-bold[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p2-large-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1rem;line-height:1.375rem}.paragraph-semibold-p1-xlarge-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:1.125rem;line-height:1.5rem}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p3-default-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-regular-p4-small[_ngcontent-%COMP%]{font-family:Inter;font-weight:400;font-size:.75rem;line-height:1.125rem}.paragraph-semibold-p3-small-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-weight:600;font-size:.875rem;line-height:1.25rem}.paragraph-semibold-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400}.paragraph-semibold-p4-xSmall-emphasis[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:600}.paragraph-regular-p4-xSmall[_ngcontent-%COMP%]{font-family:Inter;font-size:.75rem;line-height:1.125rem;font-weight:400;color:var(--foregrounds-750)}.paragraph-regular-p3-default[_ngcontent-%COMP%]{font-family:Inter;font-size:.875rem;line-height:1.25rem;font-weight:400}.paragraph-regular-p2-large[_ngcontent-%COMP%]{font-family:Inter;font-size:1rem;font-weight:400;line-height:1.375rem}.sidenav-item[_ngcontent-%COMP%]{padding:8px;cursor:pointer;display:flex;align-items:center;justify-content:space-between}.sidenav-item[_ngcontent-%COMP%] .left-side[_ngcontent-%COMP%], .sidenav-item[_ngcontent-%COMP%] .item-icon[_ngcontent-%COMP%]{display:flex;align-items:center}.sidenav-item[_ngcontent-%COMP%] .item-label[_ngcontent-%COMP%]{margin-left:10px;white-space:nowrap}.sidenav-item.active-route[_ngcontent-%COMP%] .item-label[_ngcontent-%COMP%]{font-family:Inter;font-weight:700;font-size:.875rem;line-height:1.25rem}[itemStyle=grey][_nghost-%COMP%] .sidenav-item[_ngcontent-%COMP%]{color:var(--foregrounds-750)}[itemStyle=grey][_nghost-%COMP%] .sidenav-item.active-route[_ngcontent-%COMP%]{background-color:var(--foregrounds-150);border-radius:8px}[itemStyle=grey][_nghost-%COMP%] .sidenav-item.active-route[_ngcontent-%COMP%] .item-label[_ngcontent-%COMP%]{color:var(--foregrounds-800)}[itemStyle=accent][_nghost-%COMP%] .sidenav-item[_ngcontent-%COMP%]{color:var(--accent-400)}"]});let n=e;return n})();var pl=[{route:"admin",label:"Admin",icon:"icon-Admin"}],hl=[{route:P.WIZARD.ROOT,label:"Wizard",icon:"icon-Question"}],gl=[{route:P.MODEL_COMPRESSION.ROOT,label:"Model Compression",icon:"icon-GearSix",key:it.MODEL_COMPRESSION},{route:P.MACHINE_UNLEARNING.ROOT,label:"Machine Unlearning",icon:"icon-Systems-Manager",key:it.MACHINE_UNLEARNING},{route:P.AWQ.ROOT,label:"LLM Quantization",icon:"icon-Lightning",key:it.AWQ},{route:P.MULTI_MODAL.ROOT,label:"Multi-modal",icon:"icon-Environmental",key:it.MODEL_SPECIALIZATION},{route:P.MODEL_SPECIALIZATION.ROOT,label:"Model Specialization",icon:"icon-MapTrifold"},{route:P.ALGORITHM_COMPARISON.ROOT,label:"Algorithm Comparison",icon:"icon-Rocket"}],Ns={guided:hl,expert:gl,common:pl};function yl(n,e){if(n&1&&(F(0,"div",15)(1,"div",16),De(2),k(),F(3,"div",17),De(4),$(5,"mat-icon",18),k()()),n&2){let t=de();Q(2),Ye(" ",t.currentMode===t.Modes.GUIDED?"Guided mode":"Expert mode"," "),Q(2),Ye(" ",t.currentMode===t.Modes.GUIDED?"Switch to expert mode":"Switch to guided mode"," ")}}function Sl(n,e){if(n&1&&(F(0,"div",19),$(1,"ms-sidenav-item",20),k()),n&2){let t=e.$implicit,i=de(2);Q(),G("item",t)("isExpanded",i.isExpanded)}}function vl(n,e){if(n&1&&(Et(0),oe(1,Sl,2,2,"div",10),_t()),n&2){let t=de();Q(),G("ngForOf",t.SidenavConstants.guided)("ngForTrackBy",t.trackByRoute)}}function El(n,e){if(n&1&&(F(0,"div",19),$(1,"ms-sidenav-item",20),k()),n&2){let t=e.$implicit,i=de(2);Q(),G("item",t)("isExpanded",i.isExpanded)}}function _l(n,e){if(n&1&&oe(0,El,2,2,"div",10),n&2){let t=de();G("ngForOf",t.SidenavConstants.expert)("ngForTrackBy",t.trackByRoute)}}function Tl(n,e){if(n&1&&(F(0,"div",19),$(1,"ms-sidenav-item",21),k()),n&2){let t=e.$implicit,i=de();Q(),G("item",t)("isExpanded",i.isExpanded)}}function wl(n,e){n&1&&(F(0,"span",22),De(1,"Collapse"),k())}var _e,ti=(_e=class{constructor(e,t){this.router=e,this.configFacadeService=t,this.SidenavConstants=Ns,this.Modes=Se,this.isExpanded=!0}ngOnInit(){this.listenToCurrentModeChanges()}listenToCurrentModeChanges(){this.configFacadeService.currentMode$.pipe(hr(this)).subscribe(e=>{this.currentMode=e})}toggleMode(){this.currentMode===Se.GUIDED?(this.router.navigate([`/${P.MODEL_COMPRESSION.ROOT}`]),this.configFacadeService.dispatch(ye.setCurrentMode({mode:Se.EXPERT}))):(this.router.navigate([`/${P.WIZARD.ROOT}`]),this.configFacadeService.dispatch(ye.setCurrentMode({mode:Se.GUIDED})))}toggleSidebar(){this.isExpanded=!this.isExpanded}trackByRoute(e,t){return t.route}},_e.\u0275fac=function(t){return new(t||_e)(Xe(Oe),Xe(qe))},_e.\u0275cmp=we({type:_e,selectors:[["ms-sidenav"]],standalone:!0,features:[be],decls:21,vars:8,consts:[["expertModeBlock",""],[1,"sidenav-wrapper"],[1,"top-section-items"],[1,"switch",3,"click"],[1,"left"],["fontSet","ms","fontIcon","icon-User"],["class","right",4,"ngIf"],[1,"mt-3"],[4,"ngIf","ngIfElse"],[1,"mt-5"],["class","sidenav-items-wrapper",4,"ngFor","ngForOf","ngForTrackBy"],[1,"mt-2","mb-4"],[1,"bottom-section-items"],[1,"sidebar-toggle",3,"click"],["class","paragraph-semibold-p3-small-emphasis",4,"ngIf"],[1,"right"],[1,"paragraph-semibold-p3-default-emphasis","text-container"],[1,"paragraph-regular-p4-small","switch-button","text-container"],["fontSet","ms","fontIcon","icon-ArrowRight",1,"switch-icon"],[1,"sidenav-items-wrapper"],["itemStyle","grey",3,"item","isExpanded"],["itemStyle","accent",3,"item","isExpanded"],[1,"paragraph-semibold-p3-small-emphasis"]],template:function(t,i){if(t&1){let r=Hn();F(0,"div",1)(1,"div",2)(2,"div",3),wi("click",function(){return Ei(r),_i(i.toggleMode())}),F(3,"div",4),$(4,"mat-icon",5),k(),oe(5,yl,6,2,"div",6),k(),F(6,"div",7),$(7,"mat-divider"),k(),oe(8,vl,2,2,"ng-container",8)(9,_l,1,2,"ng-template",null,0,Jn),F(11,"div",9),$(12,"mat-divider"),k(),oe(13,Tl,2,2,"div",10),k(),F(14,"div",11),$(15,"mat-divider"),k(),F(16,"div",12)(17,"div",13),wi("click",function(){return Ei(r),_i(i.toggleSidebar())}),F(18,"mat-icon"),De(19),k(),oe(20,wl,2,0,"span",14),k()()()}if(t&2){let r=Wn(10);G("@expandCollapse",i.isExpanded?"expanded":"collapsed"),Q(5),G("ngIf",i.isExpanded),Q(3),G("ngIf",i.currentMode===i.Modes.GUIDED)("ngIfElse",r),Q(5),G("ngForOf",i.SidenavConstants.common)("ngForTrackBy",i.trackByRoute),Q(6),Zn(i.isExpanded?"chevron_left":"chevron_right"),Q(),G("ngIf",i.isExpanded)}},dependencies:[Rs,Nt,Rt,wt,tr,Cr,Or],styles:["[_nghost-%COMP%]{height:100%}.sidenav-wrapper[_ngcontent-%COMP%]{padding:0 12px;display:flex;flex-direction:column;justify-content:space-between}.sidenav-wrapper[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%]{display:flex;cursor:pointer;height:38px}.sidenav-wrapper[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;align-items:center;color:var(--foregrounds-600);margin-left:8px}.sidenav-wrapper[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{margin-left:10px}.sidenav-wrapper[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .switch-button[_ngcontent-%COMP%]{display:flex;align-items:center;color:var(--foregrounds-750)}.sidenav-wrapper[_ngcontent-%COMP%] .switch[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .switch-button[_ngcontent-%COMP%] .switch-icon[_ngcontent-%COMP%]{margin-left:5px;font-size:16px;width:16px;height:16px}.sidenav-wrapper[_ngcontent-%COMP%] .sidenav-items-wrapper[_ngcontent-%COMP%]{margin-top:10px}.sidenav-wrapper[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center;padding:6px;cursor:pointer;transition:background-color .3s ease;color:var(--foregrounds-750)}.sidenav-wrapper[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]:hover{color:var(--foregrounds-800);background-color:var(--foregrounds-150);border-radius:8px}.sidenav-wrapper[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px;color:var(--foregrounds-750)}.text-container[_ngcontent-%COMP%]{width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],data:{animation:[gr("expandCollapse",[bi("expanded",Be({width:"230px"})),bi("collapsed",Be({width:"40px"})),vr("expanded <=> collapsed",yr("300ms ease-in-out"))])]}}),_e);ti=yt([Ot()],ti);var xs=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=we({type:e,selectors:[["ms-main-layout"]],standalone:!0,features:[be],decls:9,vars:0,consts:[[1,"container"],[1,"body"],[1,"content"],[1,"router-outlet"],[1,"footer"],["styleMode","mainLayout"]],template:function(r,s){r&1&&(F(0,"div",0),$(1,"ms-header"),F(2,"div",1),$(3,"ms-sidenav"),F(4,"div",2)(5,"div",3),$(6,"router-outlet"),k(),F(7,"div",4),$(8,"ms-footer",5),k()()()())},dependencies:[Ar,Dr,ti,bt,Mt],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-height:100vh;overflow-x:hidden;max-width:100vw}.body[_ngcontent-%COMP%]{flex:1;display:flex;margin-top:20px}.content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;margin:0 10px;overflow-x:hidden}.router-outlet[_ngcontent-%COMP%]{flex:1;padding:0 2px}ms-footer[_ngcontent-%COMP%]{height:60px}ms-header[_ngcontent-%COMP%], ms-sidenav[_ngcontent-%COMP%]{overflow-x:hidden}"]});let n=e;return n})();var Ds={records:zr};var Fs=[{path:P.AUTH.ROOT,loadChildren:()=>import("./chunk-KXYM3VZW.js").then(n=>n.AuthModule),canActivate:[ei]},{path:P.MODE_SELECT.ROOT,loadChildren:()=>import("./chunk-GU66N7RS.js").then(n=>n.ModeSelectModule),canActivate:[dt,Jt]},{path:P.DEMO.ROOT,loadChildren:()=>import("./chunk-FAKCSLDT.js").then(n=>n.DemoModule)},{path:"",pathMatch:"full",redirectTo:P.AUTH.ROOT},{path:"",component:xs,canActivate:[dt],children:[{path:"",redirectTo:P.WIZARD.ROOT,pathMatch:"full"},{path:P.WIZARD.ROOT,loadChildren:()=>import("./chunk-QBB4CRI5.js").then(n=>n.WizardModule)},{path:P.MODEL_COMPRESSION.ROOT,loadChildren:()=>import("./chunk-3RQYPCLL.js").then(n=>n.ModelCompressionModule)},{path:P.MACHINE_UNLEARNING.ROOT,loadChildren:()=>import("./chunk-KR5OA5AZ.js").then(n=>n.MachineUnlearningModule)},{path:P.AWQ.ROOT,loadChildren:()=>import("./chunk-EGVUKFEW.js").then(n=>n.LlmQuantizationModule)},{path:P.RUNNING.ROOT,loadChildren:()=>import("./chunk-ITIPNJR4.js").then(n=>n.RunningModule)},{path:P.MODEL_TRAINING.ROOT,loadChildren:()=>import("./chunk-ZNUYT5NW.js").then(n=>n.ModelTrainingModule)},{path:P.ALGORITHM_COMPARISON.ROOT,loadChildren:()=>import("./chunk-GRATYYX3.js").then(n=>n.AlgorithmComparisonModule),providers:[Me(Je.forFeature("runRecords",Ds)),Me(et.forFeature([jr]))]},{path:P.MULTI_MODAL.ROOT,loadChildren:()=>import("./chunk-C3C4GFAG.js").then(n=>n.MultiModalModule)}]}];function ks(){return[Xr,dt,Ii,ei,Jt,Pi,qe,xr,Qr,qr,Kr,Vr,Hr,Gr,nt,Yr,{provide:Kn,multi:!0,useValue(){let n=xe(Ii),e=xe(nt),t=xe(Ir),i=xe(Pi);n.trackNavigationHistory(),e.trackCurrentRunningPage(),t.registerFontClassAlias("icomoon","ms"),i.dispatch(Dt.fetchScriptStatus())}}]}function Ls(){return[{provide:Pr,useValue:{floatLabel:"always",appearance:"outline",density:"cozy"}},{provide:$r,useValue:{displayDefaultIndicatorType:!0,showError:!1}},{provide:Jr,useValue:{placeholderLabel:"Search...",noEntriesFoundLabel:"No matching entries found..."}}]}var ii=class{constructor(e){this.httpClient=e}get httpHeaders(){return new rr}getRequestOptions(e){let t=e.getParams||void 0;return{headers:this.httpHeaders,params:t}}serviceCall(e){return Tt()&&console.log(`serviceCall@Client - ${e.getMethod} - ${e.getUrl}`),V(e).pipe(q(t=>{if(t.getMock)return this.httpClient.get(t.getUrl,this.getRequestOptions(t)).pipe(jn(t.getMockDelay));switch(t.getMethod){case"GET":return this.httpClient.get(t.getUrl,this.getRequestOptions(t));case"POST":return this.httpClient.post(t.getUrl,t.getBody,this.getRequestOptions(t));case"PUT":return this.httpClient.put(t.getUrl,null,this.getRequestOptions(t));default:throw new Error(`Unsupported method: ${t.getMethod}`)}}))}};function js(){return[{provide:he,useFactory:n=>new ii(n),deps:[sr]}]}var Ml=(()=>{let e=class e{constructor(i){this.bannerService=i}handleError(i,r){let s=r.error,{error:o}=s;switch(r.status){case 400:case 404:case 500:case 503:this.spawnNotification(o);break;case 504:this.spawnNotification(s);break;default:this.spawnNotification(o);break}return xn(()=>r)}spawnNotification(i){this.bannerService.showError(i)}};e.\u0275fac=function(r){return new(r||e)(E(Ft))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),zs=(()=>{let e=class e{constructor(i){this.errorHandler=i}intercept(i,r){return r.handle(i).pipe(Z(s=>this.errorHandler.handleError(i,s)))}};e.\u0275fac=function(r){return new(r||e)(E(Ml))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();function $s(){return[{provide:Mi,useClass:zs,multi:!0},{provide:Mi,useClass:es,multi:!0}]}var mt="PERFORM_ACTION",bl="REFRESH",Vs="RESET",Gs="ROLLBACK",Hs="COMMIT",Ws="SWEEP",Zs="TOGGLE_ACTION",Ol="SET_ACTIONS_ACTIVE",Xs="JUMP_TO_STATE",Ys="JUMP_TO_ACTION",En="IMPORT_STATE",Js="LOCK_CHANGES",eo="PAUSE_RECORDING",He=class{constructor(e,t){if(this.action=e,this.timestamp=t,this.type=mt,typeof e.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}},ln=class{constructor(){this.type=bl}},cn=class{constructor(e){this.timestamp=e,this.type=Vs}},un=class{constructor(e){this.timestamp=e,this.type=Gs}},dn=class{constructor(e){this.timestamp=e,this.type=Hs}},fn=class{constructor(){this.type=Ws}},mn=class{constructor(e){this.id=e,this.type=Zs}};var pn=class{constructor(e){this.index=e,this.type=Xs}},hn=class{constructor(e){this.actionId=e,this.type=Ys}},gn=class{constructor(e){this.nextLiftedState=e,this.type=En}},yn=class{constructor(e){this.status=e,this.type=Js}},Sn=class{constructor(e){this.status=e,this.type=eo}};var oi=new Ze("@ngrx/store-devtools Options"),Us=new Ze("@ngrx/store-devtools Initial Config");function to(){return null}var Cl="NgRx Store DevTools";function Al(n){let e={maxAge:!1,monitor:to,actionSanitizer:void 0,stateSanitizer:void 0,name:Cl,serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0},connectInZone:!1},t=typeof n=="function"?n():n,i=t.logOnly?{pause:!0,export:!0,test:!0}:!1,r=t.features||i||e.features;r.import===!0&&(r.import="custom");let s=Object.assign({},e,{features:r},t);if(s.maxAge&&s.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${s.maxAge}`);return s}function Bs(n,e){return n.filter(t=>e.indexOf(t)<0)}function io(n){let{computedStates:e,currentStateIndex:t}=n;if(t>=e.length){let{state:r}=e[e.length-1];return r}let{state:i}=e[t];return i}function ft(n){return new He(n,+Date.now())}function Pl(n,e){return Object.keys(e).reduce((t,i)=>{let r=Number(i);return t[r]=no(n,e[r],r),t},{})}function no(n,e,t){return A(T({},e),{action:n(e.action,t)})}function Il(n,e){return e.map((t,i)=>({state:ro(n,t.state,i),error:t.error}))}function ro(n,e,t){return n(e,t)}function so(n){return n.predicate||n.actionsSafelist||n.actionsBlocklist}function Rl(n,e,t,i){let r=[],s={},o=[];return n.stagedActionIds.forEach((a,l)=>{let c=n.actionsById[a];c&&(l&&_n(n.computedStates[l],c,e,t,i)||(s[a]=c,r.push(a),o.push(n.computedStates[l])))}),A(T({},n),{stagedActionIds:r,actionsById:s,computedStates:o})}function _n(n,e,t,i,r){let s=t&&!t(n,e.action),o=i&&!e.action.type.match(i.map(l=>Ks(l)).join("|")),a=r&&e.action.type.match(r.map(l=>Ks(l)).join("|"));return s||o||a}function Ks(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function oo(n){return{ngZone:n?xe(vt):null,connectInZone:n}}var ai=(()=>{let e=class e extends At{};e.\u0275fac=(()=>{let i;return function(s){return(i||(i=Qn(e)))(s||e)}})(),e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})(),ni={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},vn=new Ze("@ngrx/store-devtools Redux Devtools Extension"),ao=(()=>{let e=class e{constructor(i,r,s){this.config=r,this.dispatcher=s,this.zoneConfig=oo(this.config.connectInZone),this.devtoolsExtension=i,this.createActionStreams()}notify(i,r){if(this.devtoolsExtension)if(i.type===mt){if(r.isLocked||r.isPaused)return;let s=io(r);if(so(this.config)&&_n(s,i,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;let o=this.config.stateSanitizer?ro(this.config.stateSanitizer,s,r.currentStateIndex):s,a=this.config.actionSanitizer?no(this.config.actionSanitizer,i,r.nextActionId):i;this.sendToReduxDevtools(()=>this.extensionConnection.send(a,o))}else{let s=A(T({},r),{stagedActionIds:r.stagedActionIds,actionsById:this.config.actionSanitizer?Pl(this.config.actionSanitizer,r.actionsById):r.actionsById,computedStates:this.config.stateSanitizer?Il(this.config.stateSanitizer,r.computedStates):r.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,s,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new gi(i=>{let r=this.zoneConfig.connectInZone?this.zoneConfig.ngZone.runOutsideAngular(()=>this.devtoolsExtension.connect(this.getExtensionConfig(this.config))):this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=r,r.init(),r.subscribe(s=>i.next(s)),r.unsubscribe}):Rn}createActionStreams(){let i=this.createChangesObservable().pipe($n()),r=i.pipe(Ue(d=>d.type===ni.START)),s=i.pipe(Ue(d=>d.type===ni.STOP)),o=i.pipe(Ue(d=>d.type===ni.DISPATCH),K(d=>this.unwrapAction(d.payload)),Fn(d=>d.type===En?this.dispatcher.pipe(Ue(u=>u.type===Ai),Dn(1e3),kn(1e3),K(()=>d),Z(()=>V(d)),Ln(1)):V(d))),l=i.pipe(Ue(d=>d.type===ni.ACTION),K(d=>this.unwrapAction(d.payload))).pipe(St(s)),c=o.pipe(St(s));this.start$=r.pipe(St(s)),this.actions$=this.start$.pipe(q(()=>l)),this.liftedActions$=this.start$.pipe(q(()=>c))}unwrapAction(i){return typeof i=="string"?(0,eval)(`(${i})`):i}getExtensionConfig(i){let r={name:i.name,features:i.features,serialize:i.serialize,autoPause:i.autoPause??!1,trace:i.trace??!1,traceLimit:i.traceLimit??75};return i.maxAge!==!1&&(r.maxAge=i.maxAge),r}sendToReduxDevtools(i){try{i()}catch(r){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",r)}}};e.\u0275fac=function(r){return new(r||e)(E(vn),E(oi),E(ai))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})(),si={type:Ci},Nl="@ngrx/store-devtools/recompute",xl={type:Nl};function lo(n,e,t,i,r){if(i)return{state:t,error:"Interrupted by an error up the chain"};let s=t,o;try{s=n(t,e)}catch(a){o=a.toString(),r.handleError(a)}return{state:s,error:o}}function ri(n,e,t,i,r,s,o,a,l){if(e>=n.length&&n.length===s.length)return n;let c=n.slice(0,e),d=s.length-(l?1:0);for(let u=e;u-1?f:lo(t,g,m,w,a);c.push(I)}return l&&c.push(n[n.length-1]),c}function Dl(n,e){return{monitorState:e(void 0,{}),nextActionId:1,actionsById:{0:ft(si)},stagedActionIds:[0],skippedActionIds:[],committedState:n,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function Fl(n,e,t,i,r={}){return s=>(o,a)=>{let{monitorState:l,actionsById:c,nextActionId:d,stagedActionIds:u,skippedActionIds:p,committedState:g,currentStateIndex:f,computedStates:m,isLocked:w,isPaused:b}=o||e;o||(c=Object.create(c));function I(R){let _=R,D=u.slice(1,_+1);for(let N=0;ND.indexOf(N)===-1),u=[0,...u.slice(_+1)],g=m[_].state,m=m.slice(_),f=f>_?f-_:0}function j(){c={0:ft(si)},d=1,u=[0],p=[],g=m[f].state,f=0,m=[]}let v=0;switch(a.type){case Js:{w=a.status,v=1/0;break}case eo:{b=a.status,b?(u=[...u,d],c[d]=new He({type:"@ngrx/devtools/pause"},+Date.now()),d++,v=u.length-1,m=m.concat(m[m.length-1]),f===u.length-2&&f++,v=1/0):j();break}case Vs:{c={0:ft(si)},d=1,u=[0],p=[],g=n,f=0,m=[];break}case Hs:{j();break}case Gs:{c={0:ft(si)},d=1,u=[0],p=[],f=0,m=[];break}case Zs:{let{id:R}=a;p.indexOf(R)===-1?p=[R,...p]:p=p.filter(D=>D!==R),v=u.indexOf(R);break}case Ol:{let{start:R,end:_,active:D}=a,N=[];for(let se=R;se<_;se++)N.push(se);D?p=Bs(p,N):p=[...p,...N],v=u.indexOf(R);break}case Xs:{f=a.index,v=1/0;break}case Ys:{let R=u.indexOf(a.actionId);R!==-1&&(f=R),v=1/0;break}case Ws:{u=Bs(u,p),p=[],f=Math.min(f,u.length-1);break}case mt:{if(w)return o||e;if(b||o&&_n(o.computedStates[f],a,r.predicate,r.actionsSafelist,r.actionsBlocklist)){let _=m[m.length-1];m=[...m.slice(0,-1),lo(s,a.action,_.state,_.error,t)],v=1/0;break}r.maxAge&&u.length===r.maxAge&&I(1),f===u.length-1&&f++;let R=d++;c[R]=a,u=[...u,R],v=u.length-1;break}case En:{({monitorState:l,actionsById:c,nextActionId:d,stagedActionIds:u,skippedActionIds:p,committedState:g,currentStateIndex:f,computedStates:m,isLocked:w,isPaused:b}=a.nextLiftedState);break}case Ci:{v=0,r.maxAge&&u.length>r.maxAge&&(m=ri(m,v,s,g,c,u,p,t,b),I(u.length-r.maxAge),v=1/0);break}case Ai:{if(m.filter(_=>_.error).length>0)v=0,r.maxAge&&u.length>r.maxAge&&(m=ri(m,v,s,g,c,u,p,t,b),I(u.length-r.maxAge),v=1/0);else{if(!b&&!w){f===u.length-1&&f++;let _=d++;c[_]=new He(a,+Date.now()),u=[...u,_],v=u.length-1,m=ri(m,v,s,g,c,u,p,t,b)}m=m.map(_=>A(T({},_),{state:s(_.state,xl)})),f=u.length-1,r.maxAge&&u.length>r.maxAge&&I(u.length-r.maxAge),v=1/0}break}default:{v=1/0;break}}return m=ri(m,v,s,g,c,u,p,t,b),l=i(l,a),{monitorState:l,actionsById:c,nextActionId:d,stagedActionIds:u,skippedActionIds:p,committedState:g,currentStateIndex:f,computedStates:m,isLocked:w,isPaused:b}}}var qs=(()=>{let e=class e{constructor(i,r,s,o,a,l,c,d){let u=Dl(c,d.monitor),p=Fl(c,u,l,d.monitor,d),g=yi(yi(r.asObservable().pipe(Un(1)),o.actions$).pipe(K(ft)),i,o.liftedActions$).pipe(Nn(In)),f=s.pipe(K(p)),m=oo(d.connectInZone),w=new Pn(1);this.liftedStateSubscription=g.pipe(Bn(f),Qs(m),zn(({state:j},[v,R])=>{let _=R(j,v);return v.type!==mt&&so(d)&&(_=Rl(_,d.predicate,d.actionsSafelist,d.actionsBlocklist)),o.notify(v,_),{state:_,action:v}},{state:u,action:null})).subscribe(({state:j,action:v})=>{if(w.next(j),v.type===mt){let R=v.action;a.next(R)}}),this.extensionStartSubscription=o.start$.pipe(Qs(m)).subscribe(()=>{this.refresh()});let b=w.asObservable(),I=b.pipe(K(io));Object.defineProperty(I,"state",{value:Er(I,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=i,this.liftedState=b,this.state=I}ngOnDestroy(){this.liftedStateSubscription.unsubscribe(),this.extensionStartSubscription.unsubscribe()}dispatch(i){this.dispatcher.next(i)}next(i){this.dispatcher.next(i)}error(i){}complete(){}performAction(i){this.dispatch(new He(i,+Date.now()))}refresh(){this.dispatch(new ln)}reset(){this.dispatch(new cn(+Date.now()))}rollback(){this.dispatch(new un(+Date.now()))}commit(){this.dispatch(new dn(+Date.now()))}sweep(){this.dispatch(new fn)}toggleAction(i){this.dispatch(new mn(i))}jumpToAction(i){this.dispatch(new hn(i))}jumpToState(i){this.dispatch(new pn(i))}importState(i){this.dispatch(new gn(i))}lockChanges(i){this.dispatch(new yn(i))}pauseRecording(i){this.dispatch(new Sn(i))}};e.\u0275fac=function(r){return new(r||e)(E(ai),E(At),E(Tr),E(ao),E(Mr),E(Vn),E(_r),E(oi))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();function Qs({ngZone:n,connectInZone:e}){return t=>e?new gi(i=>t.subscribe({next:r=>n.run(()=>i.next(r)),error:r=>n.run(()=>i.error(r)),complete:()=>n.run(()=>i.complete())})):t}var kl=new Ze("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function Ll(n,e){return!!n||e.monitor!==to}function jl(){let n="__REDUX_DEVTOOLS_EXTENSION__";return typeof window=="object"&&typeof window[n]<"u"?window[n]:null}function co(n={}){return qn([ao,ai,qs,{provide:Us,useValue:n},{provide:kl,deps:[vn,oi],useFactory:Ll},{provide:vn,useFactory:jl},{provide:oi,deps:[Us],useFactory:Al},{provide:br,deps:[qs],useFactory:zl},{provide:wr,useExisting:ai}])}function zl(n){return n.state}var ho=xo(po(),1);var Tn="@ngrx/store/init",Jl="@ngrx/store/update-reducers",ec=/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/,tc=(n,e)=>typeof e=="string"&&ec.test(e)?new Date(e):e,ic=(n,e)=>e,nc=()=>typeof window<"u",rc=n=>n.map(e=>{let t=e;if(typeof e=="object"&&(t=Object.keys(e)[0]),typeof t!="string")throw new TypeError(`localStorageSync Unknown Parameter Type: Expected type of string, got ${typeof t}`);return e}),sc=(n,e,t,i)=>n.reduce((r,s)=>{let o=s,a=i?tc:ic,l,c;if(typeof o=="object"&&(o=Object.keys(o)[0],typeof s[o]=="function"?a=s[o]:(s[o].reviver&&(a=s[o].reviver),s[o].deserialize&&(l=s[o].deserialize)),s[o].encrypt&&s[o].decrypt?typeof s[o].encrypt=="function"&&typeof s[o].decrypt=="function"?c=s[o].decrypt:console.error(`Either encrypt or decrypt is not a function on '${s[o]}' key object.`):(s[o].encrypt||s[o].decrypt)&&console.error(`Either encrypt or decrypt function is not present on '${s[o]}' key object.`)),e!==void 0){let d=e.getItem(t(o));if(d){c&&(d=c(d));let u=new RegExp("{|\\["),p=d;return(d==="null"||d==="true"||d==="false"||u.test(d.charAt(0)))&&(p=JSON.parse(d,a)),Object.assign({},r,{[o]:l?l(p):p})}}return r},{});function go(n,e){return e.reduce((t,i)=>{if(typeof i=="string"||typeof i=="number"){let r=n?.[i];r!==void 0&&(t[i]=r)}else for(let r in i)if(Object.prototype.hasOwnProperty.call(i,r)){let s=i[r];t[r]=go(n[r],s)}return t},{})}var oc=(n,e,t,i,r,s)=>{if(s)try{if(s(n)!==!0)return}catch(o){if(o instanceof TypeError)return;throw o}e.forEach(o=>{let a=n[o],l,c,d;if(typeof o=="object"){let u=Object.keys(o)[0];if(a=n[u],typeof a<"u"&&o[u]){if(o[u].serialize)a=o[u].serialize(a);else{let p;o[u].reduce?p=o[u]:o[u].filter&&(p=o[u].filter),p&&(a=go(a,p)),o[u].encrypt&&o[u].decrypt?typeof o[u].encrypt=="function"&&(d=o[u].encrypt):(o[u].encrypt||o[u].decrypt)&&console.error(`Either encrypt or decrypt function is not present on '${o[u]}' key object.`)}l=o[u].replacer,c=o[u].space}o=u}if(typeof a<"u"&&t!==void 0)try{d&&(a=d(typeof a=="string"?a:JSON.stringify(a,l,c))),t.setItem(i(o),typeof a=="string"?a:JSON.stringify(a,l,c))}catch(u){console.warn("Unable to save state to localStorage:",u)}else if(typeof a>"u"&&r&&t!==void 0)try{t.removeItem(i(o))}catch(u){console.warn(`Exception on removing/cleaning undefined '${o}' state`,u)}})},ac=(n,e,t)=>((t.type===Tn||t.type===Jl)&&e&&(n=(0,ho.default)(n,e,{arrayMerge:(s,o,a)=>o})),n),yo=n=>e=>{(n.storage===void 0&&!n.checkStorageAvailability||n.checkStorageAvailability&&nc())&&(n.storage=localStorage||window.localStorage),n.storageKeySerializer===void 0&&(n.storageKeySerializer=s=>s),n.restoreDates===void 0&&(n.restoreDates=!0);let t=n.mergeReducer;(t===void 0||typeof t!="function")&&(t=ac);let i=rc(n.keys),r=n.rehydrate?sc(i,n.storage,n.storageKeySerializer,n.restoreDates):void 0;return function(s,o){let a;return o.type===Tn&&!s?a=e(s,o):a=T({},s),a=t(a,r,o),a=e(a,o),o.type!==Tn&&oc(a,i,n.storage,n.storageKeySerializer,n.removeOnUndefined,n.syncCondition),a}};function lc(n){let t={keys:[{[U.CORE.ROOT]:[U.AUTH.ROOT,U.CONFIGS.ROOT,U.SCRIPT.ROOT]}],rehydrate:!0};return yo(t)(n)}var So=[lc];var cc={defaultMode:void 0,currentMode:void 0},vo=me(cc,z(ye.setDefaultMode,(n,{mode:e})=>A(T({},n),{defaultMode:e})),z(ye.setCurrentMode,(n,{mode:e})=>A(T({},n),{currentMode:e})));var ht=class extends xt{constructor(e){if(!e)return;let t=new FormData;t.append("file",e),super("upload-model",t,!1)}};var Eo=(()=>{let e=class e{constructor(i,r,s){this.apiClient=i,this.bannerService=r,this.actions$=s,this.uploadFile$=ie(()=>this.actions$.pipe(ne(ae.uploadFile),q(o=>this.apiClient.serviceCall(new ht(o.file)).pipe(K(a=>ae.uploadFileSuccess({data:a})),Z(a=>V(ae.uploadFileFailure({error:a}))))))),this.uploadFileAndCallScript$=ie(()=>this.actions$.pipe(ne(ae.uploadFileAndCallScript),q(o=>(this.bannerService.showInfo("Uploading file"),this.apiClient.serviceCall(new ht(o.file)).pipe(q(a=>(this.bannerService.showSuccess("File uploaded successfully."),[ae.uploadFileSuccess({data:a}),Dt.callScript({configs:o.configs})])),Z(a=>V(ae.uploadFileFailure({error:a}))))))))}};e.\u0275fac=function(r){return new(r||e)(E(he),E(Ft),E(Ce))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();var uc={uploading:!1},_o=me(uc,z(ae.uploadFile,n=>A(T({},n),{uploading:!0})),z(ae.uploadFileSuccess,(n,{data:e})=>A(T({},n),{uploading:!1,uploadedData:e})),z(ae.uploadFileFailure,(n,{error:e})=>A(T({},n),{uploading:!1,error:e})));var sf=Pt(It,({fileState:n})=>n.uploading),of=Pt(It,({fileState:n})=>n.uploadedData),af=Pt(It,({fileState:n})=>n.error);var dc={quantizationModels:[],pruningModels:[],machineUnlearningModels:[],awqModels:[],currentModel:"",modelMetadata:{},error:void 0},To=me(dc,z(H.getModelsListSuccess,(n,{algorithmType:e,models:t})=>{switch(e){case tt.QUANTIZATION:return A(T({},n),{quantizationModels:t,error:void 0});case tt.PRUNING:return A(T({},n),{pruningModels:t,error:void 0});case tt.MACHINE_UNLEARNING:return A(T({},n),{machineUnlearningModels:t,error:void 0});case tt.AWQ:return A(T({},n),{awqModels:t,error:void 0});default:return n}}),z(H.getModelsListFailure,(n,{error:e})=>A(T({},n),{error:e})),z(H.getCurrentOrPreviousSelectedModelSuccess,(n,{model:e})=>A(T({},n),{currentModel:e})),z(H.getCurrentOrPreviousSelectedModelFailure,(n,{error:e})=>A(T({},n),{error:e})),z(H.getModelMetadataSuccess,(n,{metadata:e})=>A(T({},n),{modelMetadata:e,error:void 0})),z(H.getModelMetadataFailure,(n,{error:e})=>A(T({},n),{modelMetadata:{},error:e})));var li=class extends pe{constructor(e){super(`parameters/${e}`,void 0,void 0,!1),this.mock&&(this.url+="/get-response-body-200.json")}};var wo=(()=>{let e=class e{constructor(i,r){this.apiClient=i,this.actions$=r,this.loadParameters$=ie(()=>this.actions$.pipe(ne(Ae.loadParameters),q(({arg:s})=>this.apiClient.serviceCall(new li(s)).pipe(K(o=>Ae.loadParametersSuccess({arg:s,parameters:o.parameters})),Z(o=>V(Ae.loadParametersFailure({arg:s,error:o})))))))}};e.\u0275fac=function(r){return new(r||e)(E(he),E(Ce))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();var fc={},Mo=me(fc,z(Ae.loadParameters,(n,{arg:e})=>A(T({},n),{[e]:A(T({},n[e]),{loaded:!1,error:null})})),z(Ae.loadParametersSuccess,(n,{arg:e,parameters:t})=>A(T({},n),{[e]:{data:t,error:null,loaded:!0}})),z(Ae.loadParametersFailure,(n,{arg:e,error:t})=>A(T({},n),{[e]:A(T({},n[e]),{error:t,loaded:!0})})));var ci=class extends pe{constructor(){super("latest-messages",void 0,void 0,!1)}};var ui=class extends xt{constructor(){super("clear-history",{},!1)}};var bo=(()=>{let e=class e{constructor(i,r){this.apiClient=i,this.actions$=r,this.getLatestMessages$=ie(()=>this.actions$.pipe(ne(le.getLatestMessages),q(()=>this.apiClient.serviceCall(new ci).pipe(K(s=>le.getLatestMessagesSuccess({messages:s})),Z(s=>V(le.getLatestMessagesFailure({error:s}))))))),this.postClearHistory$=ie(()=>this.actions$.pipe(ne(le.postClearHistory),q(()=>this.apiClient.serviceCall(new ui).pipe(K(()=>le.postClearHistorySuccess()),Z(s=>V(le.postClearHistoryFailure({error:s})))))))}};e.\u0275fac=function(r){return new(r||e)(E(he),E(Ce))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();var mc={messages:[],error:null},Oo=me(mc,z(le.getLatestMessagesSuccess,(n,{messages:e})=>A(T({},n),{messages:e,error:null})),z(le.getLatestMessagesFailure,(n,{error:e})=>A(T({},n),{error:e})),z(le.postClearHistoryFailure,(n,{error:e})=>A(T({},n),{error:e})));var Co={auth:Nr,configs:vo,script:Lr,uploadFile:_o,charts:Br,parameters:Mo,terminal:Oo,statistics:Zr,models:To};var di=class extends pe{constructor(e){super(`current-or-previous-selected-model/${e}`,void 0,void 0,!1)}};var fi=class extends pe{constructor(e,t){super(`model-metadata/${e}/${t}`,void 0,void 0,!1)}};var mi=class extends pe{constructor(e){super(`models-list/${e}`,void 0,void 0,!1)}};var Ao=(()=>{let e=class e{constructor(i,r){this.apiClient=i,this.actions$=r,this.loadModels$=ie(()=>this.actions$.pipe(ne(H.getModelsList),q(s=>{let{algorithmType:o}=s;return this.apiClient.serviceCall(new mi(o)).pipe(K(a=>H.getModelsListSuccess({algorithmType:o,models:a})),Z(a=>V(H.getModelsListFailure({error:a}))))}))),this.getCurrentOrPreviousSelectedModel$=ie(()=>this.actions$.pipe(ne(H.getCurrentOrPreviousSelectedModel),q(s=>this.apiClient.serviceCall(new di(s.algorithmType)).pipe(K(o=>H.getCurrentOrPreviousSelectedModelSuccess({model:o.model})),Z(o=>V(H.getCurrentOrPreviousSelectedModelFailure({error:o}))))))),this.getModelMetadata$=ie(()=>this.actions$.pipe(ne(H.getModelMetadata),q(s=>{let{algorithmType:o,modelName:a}=s;return this.apiClient.serviceCall(new fi(o,a)).pipe(K(l=>H.getModelMetadataSuccess({metadata:l})),Z(l=>V(H.getModelMetadataFailure({error:l}))))})))}};e.\u0275fac=function(r){return new(r||e)(E(he),E(Ce))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let n=e;return n})();function Po(){return[co({maxAge:25,logOnly:Tt(),connectInZone:!0}),Me([Je.forRoot({},{metaReducers:So}),et.forRoot([]),Je.forFeature("core",Co)]),Me(et.forFeature([Rr,kr,Eo,Ur,wo,bo,Wr,Ao]))]}var Io={providers:[Me(Is),pr(Fs),Ls(),Po(),js(),ks(),$s(),dr(),or(ar())]};cr(kt,Io).catch(n=>console.error(n));