]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/dist/en-US/main.d269a7c492a93e2ebedb.js
import ceph 16.2.7
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / dist / en-US / main.d269a7c492a93e2ebedb.js
1 var $localize=Object.assign(void 0===$localize?{}:$localize,{locale:"en-US"});
2 "use strict";(function(global){global.ng=global.ng||{};global.ng.common=global.ng.common||{};global.ng.common.locales=global.ng.common.locales||{};const u=undefined;function plural(n){let i=Math.floor(Math.abs(n)),v=n.toString().replace(/^[^.]*\.?/,"").length;if(i===1&&v===0)return 1;return 5}global.ng.common.locales["en-us-posix"]=["en-US-POSIX",[["a","p"],["AM","PM"],u],[["AM","PM"],u,u],[["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"]],u,[["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"]],u,[["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}",u,"{1} 'at' {0}",u],[".",",",";","%","+","-","E","\xD7","0/00","INF","NaN",":"],["0.######","0%","\xA4\xA00.00","0.000000E+000"],"USD","$","US Dollar",{},"ltr",plural,[[["mi","n","in the morning","in the afternoon","in the evening","at night"],["midnight","noon","in the morning","in the afternoon","in the evening","at night"],u],[["midnight","noon","morning","afternoon","evening","night"],u,u],["00:00","12:00",["06:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","06:00"]]]]})(typeof globalThis!=="undefined"&&globalThis||typeof global!=="undefined"&&global||typeof window!=="undefined"&&window);;
3 (window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"+0ag":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("8Y7J");let r=(()=>{class e{transform(e){const t=/ceph version\s+[^ ]+\s+\(.+\)\s+(.+)\s+\((.+)\)/.exec(e);return t?"dev"===t[2]?"master":t[1]:e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Qb({name:"cephReleaseName",type:e,pure:!0}),e})()},"+EKe":function(e,t,n){"use strict";var i=n("23KU"),r=n("uE2L");t.a=function(e,t,n,s){var o=!n;n||(n={});for(var a=-1,c=t.length;++a<c;){var l=t[a],u=s?s(n[l],e[l],l,n,e):void 0;void 0===u&&(u=e[l]),o?Object(r.a)(n,l,u):Object(i.a)(n,l,u)}return n}},"+fVR":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("e2NH");class r{constructor(e){this.ngZone=e}setExpandedRow(e){this.expandedRow=e}setTableRefreshTimeout(){clearTimeout(this.staleTimeout),this.ngZone.runOutsideAngular(()=>{this.staleTimeout=window.setTimeout(()=>{this.ngZone.run(()=>{this.tableStatus=new i.a("warning","The user list data might be stale. If needed, you can manually reload it.")})},1e4)})}}},"+s0g":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("wd/R"))},"//9w":function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},"/1FC":function(e,t,n){"use strict";t.a=Array.isArray},"/GqU":function(e,t,n){var i=n("RK3t"),r=n("HYAF");e.exports=function(e){return i(r(e))}},"/NlG":function(e,t,n){"use strict";n.d(t,"a",function(){return _});var i=n("8Y7J"),r=n("oxzT"),s=n("G0yt"),o=n("SVse");const a=function(e){return[e]};function c(e,t){if(1&e&&(i.Xb(0,"td",8),i.Sb(1,"i",9),i.Wb()),2&e){const e=i.nc(2);i.Db(1),i.Hb("alert-",e.bootstrapClass," ",e.typeIcon,""),i.uc("ngClass",i.zc(5,a,e.icons.large3x))}}function l(e,t){if(1&e&&(i.Xb(0,"td",10),i.Rc(1),i.Wb()),2&e){const e=i.nc(2);i.Db(1),i.Sc(e.title)}}function u(e,t){1&e&&i.Tb(0)}function d(e,t){if(1&e&&(i.Vb(0),i.Xb(1,"tr"),i.Pc(2,c,2,7,"td",4),i.Pc(3,l,2,1,"td",5),i.Wb(),i.Xb(4,"tr"),i.Xb(5,"td",6),i.Pc(6,u,1,0,"ng-container",7),i.Wb(),i.Wb(),i.Ub()),2&e){const e=i.nc(),t=i.Fc(6);i.Db(2),i.uc("ngIf",e.showIcon),i.Db(1),i.uc("ngIf",e.showTitle),i.Db(3),i.uc("ngTemplateOutlet",t)}}function h(e,t){if(1&e&&(i.Xb(0,"td",12),i.Sb(1,"i",13),i.Wb()),2&e){const e=i.nc(2);i.Db(1),i.Hb("alert-",e.bootstrapClass," ",e.typeIcon,"")}}function f(e,t){if(1&e&&(i.Xb(0,"td",10),i.Rc(1),i.Wb()),2&e){const e=i.nc(2);i.Db(1),i.Sc(e.title)}}function p(e,t){1&e&&i.Tb(0)}function m(e,t){if(1&e&&(i.Xb(0,"tr"),i.Pc(1,h,2,4,"td",11),i.Pc(2,f,2,1,"td",5),i.Xb(3,"td",6),i.Pc(4,p,1,0,"ng-container",7),i.Wb(),i.Wb()),2&e){const e=i.nc(),t=i.Fc(6);i.Db(1),i.uc("ngIf",e.showIcon),i.Db(1),i.uc("ngIf",e.showTitle),i.Db(2),i.uc("ngTemplateOutlet",t)}}function b(e,t){1&e&&i.sc(0)}const g=["*"];let _=(()=>{class e{constructor(){this.title="",this.bootstrapClass="",this.size="normal",this.showIcon=!0,this.showTitle=!0,this.dismissible=!1,this.dismissed=new i.p,this.icons=r.a}ngOnInit(){switch(this.type){case"warning":this.title=this.title||"Warning",this.typeIcon=this.typeIcon||r.a.warning,this.bootstrapClass=this.bootstrapClass||"warning";break;case"error":this.title=this.title||"Error",this.typeIcon=this.typeIcon||r.a.destroyCircle,this.bootstrapClass=this.bootstrapClass||"danger";break;case"info":this.title=this.title||"Information",this.typeIcon=this.typeIcon||r.a.infoCircle,this.bootstrapClass=this.bootstrapClass||"info";break;case"success":this.title=this.title||"Success",this.typeIcon=this.typeIcon||r.a.check,this.bootstrapClass=this.bootstrapClass||"success";break;case"danger":this.title=this.title||"Danger",this.typeIcon=this.typeIcon||r.a.warning,this.bootstrapClass=this.bootstrapClass||"danger"}}onClose(){this.dismissed.emit()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Lb({type:e,selectors:[["cd-alert-panel"]],inputs:{title:"title",bootstrapClass:"bootstrapClass",type:"type",typeIcon:"typeIcon",size:"size",showIcon:"showIcon",showTitle:"showTitle",dismissible:"dismissible"},outputs:{dismissed:"dismissed"},ngContentSelectors:g,decls:7,vars:4,consts:[[3,"type","dismissible","close"],[4,"ngIf","ngIfElse"],["slim",""],["content",""],["rowspan","2","class","alert-panel-icon",4,"ngIf"],["class","alert-panel-title",4,"ngIf"],[1,"alert-panel-text"],[4,"ngTemplateOutlet"],["rowspan","2",1,"alert-panel-icon"],["aria-hidden","true",3,"ngClass"],[1,"alert-panel-title"],["class","alert-panel-icon",4,"ngIf"],[1,"alert-panel-icon"],["aria-hidden","true"]],template:function(e,t){if(1&e&&(i.tc(),i.Xb(0,"ngb-alert",0),i.lc("close",function(){return t.onClose()}),i.Xb(1,"table"),i.Pc(2,d,7,3,"ng-container",1),i.Pc(3,m,5,3,"ng-template",null,2,i.Qc),i.Wb(),i.Wb(),i.Pc(5,b,1,0,"ng-template",null,3,i.Qc)),2&e){const e=i.Fc(4);i.vc("type",t.bootstrapClass),i.uc("dismissible",t.dismissible),i.Db(2),i.uc("ngIf","normal"===t.size)("ngIfElse",e)}},directives:[s.b,o.r,o.w,o.p],styles:[".alert-panel-icon[_ngcontent-%COMP%]{padding-right:.5em;vertical-align:top}.alert-panel-title[_ngcontent-%COMP%]{font-weight:700}"]}),e})()},"/OPJ":function(e,t,n){var i=n("0Dky"),r=n("2oRo").RegExp;e.exports=i(function(){var e=r(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})},"/X5v":function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},"/b8u":function(e,t,n){var i=n("STAE");e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"/byt":function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"/uUt":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(e,t){return n=>n.lift(new s(e,t))}class s{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new o(e,this.compare,this.keySelector))}}class o extends i.a{constructor(e,t,n){super(e),this.keySelector=n,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:n}=this;t=n?n(e):e}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:e}=this;n=e(this.key,t)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))}}},0:function(e,t,n){e.exports=n("zUnb")},"0+/T":function(e,t,n){"use strict";n.d(t,"a",function(){return T});var i=n("s7LF"),r=n("QFaf"),s=n("sb0X"),o=n("8Y7J"),a=n("G0yt"),c=n("ajRT"),l=n("SVse"),u=n("NwgZ"),d=n("ocLN"),h=n("ANnk"),f=n("f69J"),p=n("IZUe"),m=n("6+kj");function b(e,t){1&e&&o.Tb(0)}function g(e,t){1&e&&o.Tb(0)}function _(e,t){if(1&e&&(o.Xb(0,"p"),o.hc(1,21),o.oc(2,"lowercase"),o.Sb(3,"strong"),o.ec(),o.Wb()),2&e){const e=o.nc(2);o.Db(3),o.fc(o.pc(2,2,e.actionDescription))(e.itemNames[0]),o.cc(1)}}function v(e,t){if(1&e&&(o.Xb(0,"li"),o.Xb(1,"strong"),o.Rc(2),o.Wb(),o.Wb()),2&e){const e=t.$implicit;o.Db(2),o.Sc(e)}}function y(e,t){if(1&e&&(o.Xb(0,"p"),o.bc(1,22),o.oc(2,"lowercase"),o.Wb(),o.Xb(3,"ul"),o.Pc(4,v,3,1,"li",23),o.Wb()),2&e){const e=o.nc(2);o.Db(2),o.fc(o.pc(2,2,e.actionDescription)),o.cc(1),o.Db(2),o.uc("ngForOf",e.itemNames)}}function w(e,t){if(1&e&&(o.Xb(0,"span"),o.Pc(1,_,4,4,"p",10),o.Pc(2,y,5,4,"ng-template",null,20,o.Qc),o.Wb()),2&e){const e=o.Fc(3),t=o.nc();o.Db(1),o.uc("ngIf",1===t.itemNames.length)("ngIfElse",e)}}function D(e,t){if(1&e&&(o.Xb(0,"p"),o.bc(1,24),o.oc(2,"lowercase"),o.Wb()),2&e){const e=o.nc();o.Db(2),o.fc(o.pc(2,2,e.actionDescription))(e.itemDescription),o.cc(1)}}function S(e,t){1&e&&o.Tb(0)}function x(e,t){if(1&e&&(o.Rc(0),o.oc(1,"titlecase")),2&e){const e=o.nc();o.Uc(" ",o.pc(1,2,e.actionDescription)," ",e.itemDescription,"\n")}}const k=function(e){return{form:e}};let T=(()=>{class e{constructor(e){this.activeModal=e,this.actionDescription="delete"}ngOnInit(){const e={confirmation:new i.h(!1,[i.A.requiredTrue])};if(this.childFormGroup&&(e.child=this.childFormGroup),this.deletionForm=new r.a(e),!this.submitAction&&!this.submitActionObservable)throw new Error("No submit action defined")}callSubmitAction(){this.submitActionObservable?this.submitActionObservable().subscribe({error:this.stopLoadingSpinner.bind(this),complete:this.hideModal.bind(this)}):this.submitAction()}hideModal(){this.activeModal.close()}stopLoadingSpinner(){this.deletionForm.setErrors({cdSubmitButton:!0})}}return e.\u0275fac=function(t){return new(t||e)(o.Rb(a.a))},e.\u0275cmp=o.Lb({type:e,selectors:[["cd-deletion-modal"]],viewQuery:function(e,t){if(1&e&&o.Wc(s.a,3),2&e){let e;o.Ec(e=o.mc())&&(t.submitButton=e.first)}},decls:24,vars:15,consts:function(){let e,t,n,i;return e="Yes, I am sure.",t="Are you sure that you want to " + "\ufffd0\ufffd" + " " + "\ufffd#3\ufffd" + "" + "\ufffd1\ufffd" + "" + "\ufffd/#3\ufffd" + "?",n="Are you sure that you want to " + "\ufffd0\ufffd" + " the selected items?",i="Are you sure that you want to " + "\ufffd0\ufffd" + " the selected " + "\ufffd1\ufffd" + "?",[[3,"modalRef"],["modal",""],[1,"modal-title"],[4,"ngTemplateOutlet"],[1,"modal-content"],["name","deletionForm","novalidate","",3,"formGroup"],["formDir","ngForm"],[1,"modal-body"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"question"],[4,"ngIf","ngIfElse"],["noNames",""],[1,"form-group"],[1,"custom-control","custom-checkbox"],["type","checkbox","name","confirmation","id","confirmation","formControlName","confirmation","autofocus","",1,"custom-control-input"],["for","confirmation",1,"custom-control-label"],e,[1,"modal-footer"],[3,"form","submitText","submitActionEvent"],["deletionHeading",""],["manyNames",""],t,n,[4,"ngFor","ngForOf"],i]},template:function(e,t){if(1&e&&(o.Xb(0,"cd-modal",0,1),o.Vb(2,2),o.Pc(3,b,1,0,"ng-container",3),o.Ub(),o.Vb(4,4),o.Xb(5,"form",5,6),o.Xb(7,"div",7),o.Pc(8,g,1,0,"ng-container",8),o.Xb(9,"div",9),o.Pc(10,w,4,2,"span",10),o.Pc(11,D,3,4,"ng-template",null,11,o.Qc),o.Pc(13,S,1,0,"ng-container",8),o.Xb(14,"div",12),o.Xb(15,"div",13),o.Sb(16,"input",14),o.Xb(17,"label",15),o.bc(18,16),o.Wb(),o.Wb(),o.Wb(),o.Wb(),o.Wb(),o.Xb(19,"div",17),o.Xb(20,"cd-form-button-panel",18),o.lc("submitActionEvent",function(){return t.callSubmitAction()}),o.oc(21,"titlecase"),o.Wb(),o.Wb(),o.Wb(),o.Ub(),o.Wb(),o.Pc(22,x,2,4,"ng-template",null,19,o.Qc)),2&e){const e=o.Fc(12),n=o.Fc(23);o.uc("modalRef",t.activeModal),o.Db(3),o.uc("ngTemplateOutlet",n),o.Db(2),o.uc("formGroup",t.deletionForm),o.Db(3),o.uc("ngTemplateOutlet",t.bodyTemplate)("ngTemplateOutletContext",t.bodyContext),o.Db(2),o.uc("ngIf",t.itemNames)("ngIfElse",e),o.Db(3),o.uc("ngTemplateOutlet",t.childFormGroupTemplate)("ngTemplateOutletContext",o.zc(13,k,t.deletionForm)),o.Db(7),o.uc("form",t.deletionForm)("submitText",o.pc(21,11,t.actionDescription)+" "+t.itemDescription)}},directives:[c.a,l.w,i.B,i.r,i.k,u.a,l.r,d.a,h.a,i.b,f.a,i.q,i.i,p.a,m.a,l.q],pipes:[l.A,l.o],styles:[".modal-body[_ngcontent-%COMP%] .question[_ngcontent-%COMP%]{margin-top:1em}.modal-body[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700}.modal-body[_ngcontent-%COMP%] .question[_ngcontent-%COMP%] .form-check[_ngcontent-%COMP%]{padding-top:7px}"]}),e})()},"07d7":function(e,t,n){var i=n("AO7/"),r=n("busE"),s=n("sEFX");i||r(Object.prototype,"toString",s,{unsafe:!0})},"0BK2":function(e,t){e.exports={}},"0Dky":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"0GbY":function(e,t,n){var i=n("2oRo"),r=n("Fib7"),s=function(e){return r(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?s(i[e]):i[e]&&i[e][t]}},"0eef":function(e,t,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,s=r&&!i.call({1:2},1);t.f=s?function(e){var t=r(this,e);return!!t&&t.enumerable}:i},"0mo+":function(e,t,n){!function(e){"use strict";var t={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},n={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};e.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(e){return e.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===t&&e>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===t&&e<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":e<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":e<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":e<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(n("wd/R"))},"0rvr":function(e,t,n){var i=n("4zBA"),r=n("glrk"),s=n("O741");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(o){}return function(n,i){return r(n),s(i),t?e(n,i):n.__proto__=i,n}}():void 0)},"0tRk":function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(n("wd/R"))},"14Sl":function(e,t,n){"use strict";n("rB9j");var i=n("4zBA"),r=n("busE"),s=n("kmMV"),o=n("0Dky"),a=n("tiKp"),c=n("kRJp"),l=a("species"),u=RegExp.prototype;e.exports=function(e,t,n,d){var h=a(e),f=!o(function(){var t={};return t[h]=function(){return 7},7!=""[e](t)}),p=f&&!o(function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t});if(!f||!p||n){var m=i(/./[h]),b=t(h,""[e],function(e,t,n,r,o){var a=i(e),c=t.exec;return c===s||c===u.exec?f&&!o?{done:!0,value:m(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}});r(String.prototype,e,b[0]),r(u,h,b[1])}d&&c(u[h],"sham",!0)}},"1E5z":function(e,t,n){var i=n("m/L8").f,r=n("Gi26"),s=n("tiKp")("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,s)&&i(e,s,{configurable:!0,value:t})}},"1G5W":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("zx2A");function r(e){return t=>t.lift(new s(e))}class s{constructor(e){this.notifier=e}call(e,t){const n=new o(e),r=Object(i.c)(this.notifier,new i.a(n));return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n}}class o extends i.b{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},"1Ni5":function(e,t,n){"use strict";n.d(t,"b",function(){return p}),n.d(t,"a",function(){return m});var i=n("s7LF"),r=n("LvDl"),s=n.n(r),o=n("LRne"),a=n("PqYM"),c=n("eIep");function l(e,t){return t?Object(c.a)(()=>e,t):Object(c.a)(()=>e)}var u=n("lJxs"),d=n("IzEk"),h=n("Fgil"),f=n("aXbf");function p(e){return null==e||0===e.length}class m{static email(e){return p(e.value)?null:i.A.email(e)}static ip(e=0){const t=/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/i,n=/^(?:[a-f0-9]{1,4}:){7}[a-f0-9]{1,4}$/i;return i.A.pattern(4===e?t:6===e?n:new RegExp(t.source+"|"+n.source))}static number(e=!0){return i.A.pattern(e?/^-?[0-9]+$/i:/^[0-9]+$/i)}static decimalNumber(e=!0){return i.A.pattern(e?/^-?[0-9]+(.[0-9]+)?$/i:/^[0-9]+(.[0-9]+)?$/i)}static sslCert(){return i.A.pattern(/^-----BEGIN CERTIFICATE-----(\n|\r|\f)((.+)?((\n|\r|\f).+)*)(\n|\r|\f)-----END CERTIFICATE-----[\n\r\f]*$/)}static sslPrivKey(){return i.A.pattern(/^-----BEGIN RSA PRIVATE KEY-----(\n|\r|\f)((.+)?((\n|\r|\f).+)*)(\n|\r|\f)-----END RSA PRIVATE KEY-----[\n\r\f]*$/)}static pemCert(){return i.A.pattern(/^-----BEGIN .+-----$.+^-----END .+-----$/ms)}static requiredIf(e,t){let n=!1;return i=>(!n&&i.parent&&(Object.keys(e).forEach(e=>{i.parent.get(e).valueChanges.subscribe(()=>{i.updateValueAndValidity({emitEvent:!1})})}),n=!0),Object.keys(e).every(t=>{if(!i.parent)return!1;const n=i.parent.get(t).value,r=e[t];if(s.a.isObjectLike(r)){let e=!1;switch(r.op){case"empty":e=s.a.isEmpty(n);break;case"!empty":e=!s.a.isEmpty(n);break;case"equal":e=n===r.arg1;break;case"!equal":e=n!==r.arg1;break;case"minLength":s.a.isString(n)&&(e=n.length>=r.arg1)}return e}return n===r})&&(s.a.isFunction(t)?t.call(t,i.value):p(i.value))?{required:!0}:null)}static composeIf(e,t){let n=!1;return r=>(!n&&r.parent&&(Object.keys(e).forEach(e=>{r.parent.get(e).valueChanges.subscribe(()=>{r.updateValueAndValidity({emitEvent:!1})})}),n=!0),Object.keys(e).every(t=>r.parent&&r.parent.get(t).value===e[t])?i.A.compose(t)(r):null)}static custom(e,t){return n=>{const i=t.call(this,n.value);return i?{[e]:i}:null}}static validateIf(e,t,n,r=[],s=[]){n=n.concat(r),e.setValidators(e=>t.call(this)?i.A.compose(n)(e):r.length>0?i.A.compose(r)(e):null),s.forEach(t=>{t.valueChanges.subscribe(()=>{e.updateValueAndValidity({emitEvent:!1})})})}static match(e,t){return n=>{const i=n.get(e),r=n.get(t);if(!i||!r)return null;if(i.value!==r.value)r.setErrors({match:!0});else if(r.hasError("match")){const e=r.errors;s.a.unset(e,"match"),r.setErrors(s.a.isEmpty(s.a.keys(e))?null:e)}return null}}static unique(e,t=null,n,i=!1){let r;return c=>c.pristine||p(c.value)?Object(o.a)(null):(r=c.value,s.a.isFunction(n)&&null!==n()&&""!==n()&&(r=i?`${c.value}$${n()}`:`${n()}$${c.value}`),Object(a.a)().pipe(l(e.call(t,r)),Object(u.a)(e=>e?{notUnique:!0}:null),Object(d.a)(1)))}static uuid(e=!1){const t=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;return n=>n.pristine&&n.untouched?null:e||n.value?t.test(n.value)?null:{invalidUuid:"This is not a valid UUID"}:null}static binaryMin(e){return t=>{const n=new f.a,i=(new f.a).toBytes(t.value);if(e<=i)return null;const r=new h.a(n).transform(e);return{binaryMin:()=>"Size has to be at least " + r + " or more"}}}static binaryMax(e){return t=>{const n=new f.a,i=n.toBytes(t.value);if(e>=i)return null;const r=new h.a(n).transform(e);return{binaryMax:()=>"Size has to be at most " + r + " or less"}}}static passwordPolicy(e,t,n){return i=>{if(i.pristine||""===i.value)return s.a.isFunction(n)&&n(!0,0),Object(o.a)(null);let r;return s.a.isFunction(t)&&(r=t()),Object(a.a)(500).pipe(l(s.a.invoke(e,"validatePassword",i.value,r)),Object(u.a)(e=>(s.a.isFunction(n)&&n(e.valid,e.credits,e.valuation),e.valid?null:{passwordPolicy:!0})),Object(d.a)(1))}}static bucketName(){return e=>{if(e.pristine||!e.value)return Object(o.a)({required:!0});const t=[];let n;return t.push(()=>{const t=e.value;let i=!0;return(/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/i.test(t)||/^(?:[a-f0-9]{1,4}:){7}[a-f0-9]{1,4}$/i.test(t))&&(n="ipAddress",i=!1),i}),t.push(t=>s.a.inRange(t.length,3,64)?!!/^[0-9a-z.-]+$/.test(e.value)||(n="bucketNameInvalid",!1):(n="shouldBeInRange",!1)),t.push(e=>{const t=s.a.split(e,".");return s.a.every(t,e=>e!==s.a.toLower(e)||e.includes("_")?(n="containsUpperCase",!1):/^[0-9a-z-]+$/.test(e)?s.a.every([0,e.length-1],t=>(n="lowerCaseOrNumber",/[a-z]/.test(e[t])||s.a.isInteger(s.a.parseInt(e[t])))):(n="onlyLowerCaseAndNumbers",!1))}),s.a.every(t,t=>t(e.value))?Object(o.a)(null):Object(o.a)((()=>{switch(n){case"onlyLowerCaseAndNumbers":return{onlyLowerCaseAndNumbers:!0};case"shouldBeInRange":return{shouldBeInRange:!0};case"ipAddress":return{ipAddress:!0};case"containsUpperCase":return{containsUpperCase:!0};case"lowerCaseOrNumber":return{lowerCaseOrNumber:!0};default:return{bucketNameInvalid:!0}}})())}}static bucketExistence(e,t){return n=>n.pristine||!n.value?Object(o.a)({required:!0}):t.exists(n.value).pipe(Object(u.a)(t=>t===e?null:{bucketNameNotAllowed:!0}))}}},"1Y/n":function(e,t,n){var i=n("2oRo"),r=n("We1y"),s=n("ewvW"),o=n("RK3t"),a=n("B/qT"),c=i.TypeError,l=function(e){return function(t,n,i,l){r(n);var u=s(t),d=o(u),h=a(u),f=e?h-1:0,p=e?-1:1;if(i<2)for(;;){if(f in d){l=d[f],f+=p;break}if(f+=p,e?f<0:h<=f)throw c("Reduce of empty array with no initial value")}for(;e?f>=0:h>f;f+=p)f in d&&(l=n(l,d[f],f,u));return l}};e.exports={left:l(!1),right:l(!0)}},"1nQr":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("LvDl"),r=n.n(i),s=n("lJxs"),o=n("20UP");class a{constructor(e){this.pwdPolicyEnabled=e.pwd_policy_enabled,this.pwdPolicyMinLength=e.pwd_policy_min_length,this.pwdPolicyCheckLengthEnabled=e.pwd_policy_check_length_enabled,this.pwdPolicyCheckOldpwdEnabled=e.pwd_policy_check_oldpwd_enabled,this.pwdPolicyCheckUsernameEnabled=e.pwd_policy_check_username_enabled,this.pwdPolicyCheckExclusionListEnabled=e.pwd_policy_check_exclusion_list_enabled,this.pwdPolicyCheckRepetitiveCharsEnabled=e.pwd_policy_check_repetitive_chars_enabled,this.pwdPolicyCheckSequentialCharsEnabled=e.pwd_policy_check_sequential_chars_enabled,this.pwdPolicyCheckComplexityEnabled=e.pwd_policy_check_complexity_enabled}}var c=n("8Y7J");let l=(()=>{class e{constructor(e){this.settingsService=e}getHelpText(){return this.settingsService.getStandardSettings().pipe(Object(s.a)(e=>{const t=new a(e);let n=[];if(t.pwdPolicyEnabled){n.push("Required rules for passwords:");const e={pwdPolicyCheckLengthEnabled:"Must contain at least " + t.pwdPolicyMinLength + " characters",pwdPolicyCheckOldpwdEnabled:"Must not be the same as the previous one",pwdPolicyCheckUsernameEnabled:"Cannot contain the username",pwdPolicyCheckExclusionListEnabled:"Cannot contain any configured keyword",pwdPolicyCheckRepetitiveCharsEnabled:"Cannot contain any repetitive characters e.g. \"aaa\"",pwdPolicyCheckSequentialCharsEnabled:"Cannot contain any sequential characters e.g. \"abc\"",pwdPolicyCheckComplexityEnabled:"Must consist of characters from the following groups:\n * Alphabetic a-z, A-Z\n * Numbers 0-9\n * Special chars: !\"#$%& '()*+,-./:;<=>?@[\\]^_`{{|}}~\n * Any other characters (signs)"};n=n.concat(r.a.keys(e).filter(e=>r.a.get(t,e)).map(t=>"- "+r.a.get(e,t)))}return n.join("\n")}))}mapCreditsToCssClass(e){let t="very-strong";return e<10?t="too-weak":e<15?t="weak":e<20?t="ok":e<25&&(t="strong"),t}}return e.\u0275fac=function(t){return new(t||e)(c.ic(o.a))},e.\u0275prov=c.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},"1ppg":function(e,t,n){!function(e){"use strict";e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n("wd/R"))},"1rYy":function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(e){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(e)},meridiem:function(e){return e<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":e<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":e<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-\u056b\u0576":e+"-\u0580\u0564";default:return e}},week:{dow:1,doy:7}})}(n("wd/R"))},"1xZ4":function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n("wd/R"))},"20UP":function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("LvDl"),r=n.n(i),s=n("lJxs"),o=n("8Y7J"),a=n("IheW");let c=(()=>{class e{constructor(e){this.http=e,this.settings={}}getValues(e){return r.a.isArray(e)&&(e=e.join(",")),this.http.get(`api/settings?names=${e}`).pipe(Object(s.a)(e=>{const t={};return r.a.forEach(e,e=>{r.a.set(t,e.name,e.value)}),t}))}ifSettingConfigured(e,t,n){const i=this.settings[e];void 0===i?this.http.get(e).subscribe(i=>{this.settings[e]=this.getSettingsValue(i),this.ifSettingConfigured(e,t,n)},t=>{401!==t.status&&(this.settings[e]="")}):""!==i?t(i):n&&n()}disableSetting(e){this.settings[e]=""}getSettingsValue(e){return e.value||e.instance||""}validateGrafanaDashboardUrl(e){return this.http.get(`api/grafana/validation/${e}`)}getStandardSettings(){return this.http.get("ui-api/standard_settings")}}return e.\u0275fac=function(t){return new(t||e)(o.ic(a.b))},e.\u0275prov=o.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},"23KU":function(e,t,n){"use strict";var i=n("uE2L"),r=n("YHEm"),s=Object.prototype.hasOwnProperty;t.a=function(e,t,n){var o=e[t];s.call(e,t)&&Object(r.a)(o,n)&&(void 0!==n||t in e)||Object(i.a)(e,t,n)}},"25cm":function(e,t,n){"use strict";var i=n("tPH9"),r=n("/1FC");t.a=function(e,t,n){var s=t(e);return Object(r.a)(e)?s:Object(i.a)(s,n(e))}},"2EZI":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("s7LF"),r=n("QFaf"),s=n("8Y7J");let o=(()=>{class e extends i.g{group(e,t=null){const n=super.group(e,t);return new r.a(n.controls,n.validator,n.asyncValidator)}}return e.\u0275fac=function(t){return a(t||e)},e.\u0275prov=s.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const a=s.Zb(o)},"2QA8":function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("XNiG"),r=n("9ppp");class s extends i.a{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.a;return this._value}next(e){super.next(this._value=e)}}},"2bX/":function(e,t,n){var i=n("2oRo"),r=n("0GbY"),s=n("Fib7"),o=n("OpvP"),a=n("/b8u"),c=i.Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return s(t)&&o(t.prototype,c(e))}},"2fFW":function(e,t,n){"use strict";n.d(t,"a",function(){return r});let i=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=e},get useDeprecatedSynchronousErrorHandling(){return i}}},"2fjn":function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n("wd/R"))},"2oRo":function(e,t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||function(){return this}()||Function("return this")()},"2ykv":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("wd/R"))},"3/ER":function(e,t,n){"use strict";(function(e){var i=n("Ju5/"),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=r&&"object"==typeof e&&e&&!e.nodeType&&e,o=s&&s.exports===r?i.a.Buffer:void 0,a=o?o.allocUnsafe:void 0;t.a=function(e,t){if(t)return e.slice();var n=e.length,i=a?a(n):new e.constructor(n);return e.copy(i),i}}).call(this,n("3UD+")(e))},"33Wh":function(e,t,n){var i=n("yoRg"),r=n("eDl+");e.exports=Object.keys||function(e){return i(e,r)}},"3E0/":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("D0XW"),r=n("7o/Q"),s=n("WMd4");function o(e,t=i.a){var n;const r=(n=e)instanceof Date&&!isNaN(+n)?+e-t.now():Math.abs(e);return e=>e.lift(new a(r,t))}class a{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new c(e,this.delay,this.scheduler))}}class c extends r.a{constructor(e,t,n){super(e),this.delay=t,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,n=t.queue,i=e.scheduler,r=e.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){const t=Math.max(0,n[0].time-i.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(c.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,n=new l(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(s.a.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(s.a.createComplete()),this.unsubscribe()}}class l{constructor(e,t){this.time=e,this.notification=t}}},"3E1r":function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},i=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];e.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:i,longMonthsParse:i,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924"===t?e<4?e:e+12:"\u0938\u0941\u092c\u0939"===t?e:"\u0926\u094b\u092a\u0939\u0930"===t?e>=10?e:e+12:"\u0936\u093e\u092e"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0930\u093e\u0924":e<10?"\u0938\u0941\u092c\u0939":e<17?"\u0926\u094b\u092a\u0939\u0930":e<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(n("wd/R"))},"3Eq5":function(e,t,n){var i=n("We1y");e.exports=function(e,t){var n=e[t];return null==n?void 0:i(n)}},"3N8a":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("quSY");class r extends i.a{constructor(e,t){super()}schedule(e,t=0){return this}}class s extends r{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n,i=!1;try{this.work(e)}catch(r){i=!0,n=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),n}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}},"3UD+":function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},"3bBZ":function(e,t,n){var i=n("2oRo"),r=n("/byt"),s=n("eFrH"),o=n("4mDm"),a=n("kRJp"),c=n("tiKp"),l=c("iterator"),u=c("toStringTag"),d=o.values,h=function(e,t){if(e){if(e[l]!==d)try{a(e,l,d)}catch(i){e[l]=d}if(e[u]||a(e,u,t),r[t])for(var n in o)if(e[n]!==o[n])try{a(e,n,o[n])}catch(i){e[n]=o[n]}}};for(var f in r)h(i[f]&&i[f].prototype,f);h(s,"DOMTokenList")},"3cmB":function(e,t,n){"use strict";var i=n("Y7yP"),r=n("Ju5/"),s=Object(i.a)(r.a,"Map");t.a=s},"4/q3":function(e,t,n){"use strict";var i=n("7gMY"),r=n("IzLi"),s=n("pyRK"),o=Object.prototype.hasOwnProperty,a=n("5WsY");t.a=function(e){return Object(a.a)(e)?Object(i.a)(e,!0):function(e){if(!Object(r.a)(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Object(s.a)(e),n=[];for(var i in e)("constructor"!=i||!t&&o.call(e,i))&&n.push(i);return n}(e)}},"4DD9":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("8Y7J");let r=(()=>{class e{transform(e){let t=!1;switch(e){case!0:case 1:case"y":case"yes":case"t":case"true":case"on":case"1":t=!0}return t}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Qb({name:"boolean",type:e,pure:!0}),e})()},"4I5i":function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})()},"4MV3":function(e,t,n){!function(e){"use strict";var t={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},n={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};e.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(e){return e.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0ab0\u0abe\u0aa4"===t?e<4?e:e+12:"\u0ab8\u0ab5\u0abe\u0ab0"===t?e:"\u0aac\u0aaa\u0acb\u0ab0"===t?e>=10?e:e+12:"\u0ab8\u0abe\u0a82\u0a9c"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0ab0\u0abe\u0aa4":e<10?"\u0ab8\u0ab5\u0abe\u0ab0":e<17?"\u0aac\u0aaa\u0acb\u0ab0":e<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(n("wd/R"))},"4WOD":function(e,t,n){var i=n("2oRo"),r=n("Gi26"),s=n("Fib7"),o=n("ewvW"),a=n("93I0"),c=n("4Xet"),l=a("IE_PROTO"),u=i.Object,d=u.prototype;e.exports=c?u.getPrototypeOf:function(e){var t=o(e);if(r(t,l))return t[l];var n=t.constructor;return s(n)&&t instanceof n?n.prototype:t instanceof u?d:null}},"4Xet":function(e,t,n){var i=n("0Dky");e.exports=!i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},"4dOw":function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},"4l63":function(e,t,n){var i=n("I+eb"),r=n("wg0c");i({global:!0,forced:parseInt!=r},{parseInt:r})},"4mDm":function(e,t,n){"use strict";var i=n("/GqU"),r=n("RNIs"),s=n("P4y1"),o=n("afO8"),a=n("fdAy"),c="Array Iterator",l=o.set,u=o.getterFor(c);e.exports=a(Array,"Array",function(e,t){l(this,{type:c,target:i(e),index:0,kind:t})},function(){var e=u(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}},"values"),s.Arguments=s.Array,r("keys"),r("values"),r("entries")},"4syw":function(e,t,n){var i=n("busE");e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},"4zBA":function(e,t){var n=Function.prototype,i=n.bind,r=n.call,s=i&&i.bind(r);e.exports=i?function(e){return e&&s(r,e)}:function(e){return e&&function(){return r.apply(e,arguments)}}},"5+tZ":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("lJxs"),r=n("Cfvw"),s=n("zx2A");function o(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?s=>s.pipe(o((n,s)=>Object(r.a)(e(n,s)).pipe(Object(i.a)((e,i)=>t(n,e,s,i))),n)):("number"==typeof t&&(n=t),t=>t.lift(new a(e,n)))}class a{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new c(e,this.project,this.concurrent))}}class c extends s.b{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(t)}_innerSub(e){const t=new s.a(this),n=this.destination;n.add(t);const i=Object(s.c)(e,t);i!==t&&n.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"5WsY":function(e,t,n){"use strict";var i=n("vJtL"),r=n("Js68");t.a=function(e){return null!=e&&Object(r.a)(e.length)&&!Object(i.a)(e)}},"5yfJ":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("HDdC"),r=n("KqfI");const s=new i.a(r.a)},"6+QB":function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("wd/R"))},"6+kj":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("8Y7J"),r=n("sne2"),s=n("JK/P"),o=n("sb0X"),a=n("SVse"),c=n("Z21x");function l(e,t){if(1&e){const e=i.Yb();i.Xb(0,"cd-submit-button",2),i.lc("submitAction",function(){return i.Ic(e),i.nc().submitAction()}),i.Rc(1),i.Wb()}if(2&e){const e=i.nc();i.uc("disabled",e.disabled)("form",e.form),i.Db(1),i.Sc(e.submitText)}}let u=(()=>{class e{constructor(e,t,n){this.location=e,this.actionLabels=t,this.modalService=n,this.submitActionEvent=new i.p,this.backActionEvent=new i.p,this.showSubmit=!0,this.wrappingClass="",this.btnClass="",this.submitText=this.actionLabels.CREATE,this.cancelText=this.actionLabels.CANCEL,this.disabled=!1}submitAction(){this.submitActionEvent.emit()}backAction(){0===this.backActionEvent.observers.length?this.modalService.hasOpenModals()?this.modalService.dismissAll():this.location.back():this.backActionEvent.emit()}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(a.m),i.Rb(r.b),i.Rb(s.a))},e.\u0275cmp=i.Lb({type:e,selectors:[["cd-form-button-panel"]],viewQuery:function(e,t){if(1&e&&i.Wc(o.a,1),2&e){let e;i.Ec(e=i.mc())&&(t.submitButton=e.first)}},inputs:{form:"form",showSubmit:"showSubmit",wrappingClass:"wrappingClass",btnClass:"btnClass",submitText:"submitText",cancelText:"cancelText",disabled:"disabled"},outputs:{submitActionEvent:"submitActionEvent",backActionEvent:"backActionEvent"},decls:3,vars:4,consts:[[1,"m-2",3,"name","backAction"],["data-cy","submitBtn",3,"disabled","form","submitAction",4,"ngIf"],["data-cy","submitBtn",3,"disabled","form","submitAction"]],template:function(e,t){1&e&&(i.Xb(0,"div"),i.Xb(1,"cd-back-button",0),i.lc("backAction",function(){return t.backAction()}),i.Wb(),i.Pc(2,l,2,3,"cd-submit-button",1),i.Wb()),2&e&&(i.Fb(t.wrappingClass),i.Db(1),i.uc("name",t.cancelText),i.Db(1),i.uc("ngIf",t.showSubmit))},directives:[c.a,a.r,o.a],styles:[""]}),e})()},"6B0Y":function(e,t,n){!function(e){"use strict";var t={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},n={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};e.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(e){return"\u179b\u17d2\u1784\u17b6\u1785"===e},meridiem:function(e,t,n){return e<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(e){return e.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n("wd/R"))},"6HA4":function(e,t,n){"use strict";n.d(t,"a",function(){return p});var i=n("mrSG"),r=n("IheW"),s=n("LvDl"),o=n.n(s),a=n("LRne"),c=n("CqXF"),l=n("JIr8"),u=n("zNnC"),d=n("9xzX"),h=n("xTzq"),f=n("8Y7J");let p=(()=>{let e=class extends u.a{constructor(e,t){super(),this.http=e,this.rgwDaemonService=t,this.url="api/rgw/bucket"}list(e=!1,t=""){return this.rgwDaemonService.request(n=>(n=n.append("stats",e.toString()),t&&(n=n.append("uid",t)),this.http.get(this.url,{headers:{Accept:this.getVersionHeaderValue(1,1)},params:n})))}get(e){return this.rgwDaemonService.request(t=>this.http.get(`${this.url}/${e}`,{params:t}))}create(e,t,n,i,s,o,a){return this.rgwDaemonService.request(c=>this.http.post(this.url,null,{params:new r.e({fromObject:{bucket:e,uid:t,zonegroup:n,placement_target:i,lock_enabled:String(s),lock_mode:o,lock_retention_period_days:a,daemon_name:c.get("daemon_name")}})}))}update(e,t,n,i,r,s,o,a,c){return this.rgwDaemonService.request(l=>(l=(l=(l=(l=(l=(l=(l=(l=l.append("bucket_id",t)).append("uid",n)).append("versioning_state",i)).append("mfa_delete",r)).append("mfa_token_serial",s)).append("mfa_token_pin",o)).append("lock_mode",a)).append("lock_retention_period_days",c),this.http.put(`${this.url}/${e}`,null,{params:l})))}delete(e,t=!0){return this.rgwDaemonService.request(n=>(n=n.append("purge_objects",t?"true":"false"),this.http.delete(`${this.url}/${e}`,{params:n})))}exists(e){return this.get(e).pipe(Object(c.a)(!0),Object(l.a)(e=>(o.a.isFunction(e.preventDefault)&&e.preventDefault(),Object(a.a)(!1))))}getLockDays(e){return e.lock_retention_period_years>0?Math.floor(365.242*e.lock_retention_period_years):e.lock_retention_period_days||0}};return e.\u0275fac=function(t){return new(t||e)(f.ic(r.b),f.ic(d.a))},e.\u0275prov=f.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e=Object(i.b)([h.a,Object(i.d)("design:paramtypes",[r.b,d.a])],e),e})()},"6JNq":function(e,t,n){var i=n("Gi26"),r=n("Vu81"),s=n("Bs8V"),o=n("m/L8");e.exports=function(e,t){for(var n=r(t),a=o.f,c=s.f,l=0;l<n.length;l++){var u=n[l];i(e,u)||a(e,u,c(t,u))}}},"6LWA":function(e,t,n){var i=n("xrYK");e.exports=Array.isArray||function(e){return"Array"==i(e)}},"6VoE":function(e,t,n){var i=n("tiKp"),r=n("P4y1"),s=i("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[s]===e)}},"6qls":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("tz6c"),r=n("8Y7J");let s=(()=>{class e{constructor(e){this.docService=e,this.docText="documentation"}ngOnInit(){this.noSubscribe?this.docUrl=this.docService.urlGenerator(this.section):this.docService.subscribeOnce(this.section,e=>{this.docUrl=e})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(i.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-doc"]],inputs:{section:"section",docText:"docText",noSubscribe:"noSubscribe"},decls:2,vars:2,consts:[["target","_blank",3,"href"]],template:function(e,t){1&e&&(r.Xb(0,"a",0),r.Rc(1),r.Wb()),2&e&&(r.vc("href",t.docUrl,r.Lc),r.Db(1),r.Sc(t.docText))},styles:[""]}),e})()},"7BjC":function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[e+" minuti",e+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[e+" tunni",e+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[e+" kuu",e+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[e+" aasta",e+" aastat"]};return t?r[n][2]?r[n][2]:r[n][1]:i?r[n][0]:r[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d p\xe4eva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},"7C5Q":function(e,t,n){!function(e){"use strict";e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})}(n("wd/R"))},"7aV9":function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(e){return e+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(e){return"\u0db4.\u0dc0."===e||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===e},meridiem:function(e,t,n){return e>11?n?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":n?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(n("wd/R"))},"7gMY":function(e,t,n){"use strict";var i=n("9f76"),r=n("/1FC"),s=n("WOAq"),o=n("cSlR"),a=n("oYcn"),c=Object.prototype.hasOwnProperty;t.a=function(e,t){var n=Object(r.a)(e),l=!n&&Object(i.a)(e),u=!n&&!l&&Object(s.a)(e),d=!n&&!l&&!u&&Object(a.a)(e),h=n||l||u||d,f=h?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],p=f.length;for(var m in e)!t&&!c.call(e,m)||h&&("length"==m||u&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||Object(o.a)(m,p))||f.push(m);return f}},"7o/Q":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("n6bG"),r=n("gRHU"),s=n("quSY"),o=n("2QA8"),a=n("2fFW"),c=n("NJ4a");class l extends s.a{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=r.a;break;case 1:if(!e){this.destination=r.a;break}if("object"==typeof e){e instanceof l?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,e,t,n)}}[o.a](){return this}static create(e,t,n){const i=new l(e,t,n);return i.syncErrorThrowable=!1,i}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class u extends l{constructor(e,t,n,s){let o;super(),this._parentSubscriber=e;let a=this;Object(i.a)(t)?o=t:t&&(o=t.next,n=t.error,s=t.complete,t!==r.a&&(a=Object.create(t),Object(i.a)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;a.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=a.a;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(c.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(c.a)(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);a.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(c.a)(n)}}__tryOrSetError(e,t,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return a.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(Object(c.a)(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}},"8/+R":function(e,t,n){!function(e){"use strict";var t={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},n={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};e.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(e){return e.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0a30\u0a3e\u0a24"===t?e<4?e:e+12:"\u0a38\u0a35\u0a47\u0a30"===t?e:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===t?e>=10?e:e+12:"\u0a38\u0a3c\u0a3e\u0a2e"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0a30\u0a3e\u0a24":e<10?"\u0a38\u0a35\u0a47\u0a30":e<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":e<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(n("wd/R"))},"82ph":function(e,t,n){var i=n("4zBA");e.exports=i([].slice)},"85J/":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("8Y7J");let r=(()=>{class e{transform(e){const t=/ceph version\s+([^ ]+)\s+\(.+\)/.exec(e);return t?t[1]:e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Qb({name:"cephShortVersion",type:e,pure:!0}),e})()},"8M4i":function(e,t,n){"use strict";var i=n("ylTp"),r=Object.prototype,s=r.hasOwnProperty,o=r.toString,a=i.a?i.a.toStringTag:void 0,c=Object.prototype.toString,l=i.a?i.a.toStringTag:void 0;t.a=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":l&&l in Object(e)?function(e){var t=s.call(e,a),n=e[a];try{e[a]=void 0;var i=!0}catch(c){}var r=o.call(e);return i&&(t?e[a]=n:delete e[a]),r}(e):function(e){return c.call(e)}(e)}},"8Y7J":function(e,t,n){"use strict";n.d(t,"a",function(){return dn}),n.d(t,"b",function(){return $u}),n.d(t,"c",function(){return Wu}),n.d(t,"d",function(){return Pu}),n.d(t,"e",function(){return Fu}),n.d(t,"f",function(){return Pd}),n.d(t,"g",function(){return kd}),n.d(t,"h",function(){return ln}),n.d(t,"i",function(){return Sl}),n.d(t,"j",function(){return Zu}),n.d(t,"k",function(){return Uc}),n.d(t,"l",function(){return Xc}),n.d(t,"m",function(){return Vu}),n.d(t,"n",function(){return Kc}),n.d(t,"o",function(){return Ri}),n.d(t,"p",function(){return pu}),n.d(t,"q",function(){return Rn}),n.d(t,"r",function(){return Fs}),n.d(t,"s",function(){return En}),n.d(t,"t",function(){return L}),n.d(t,"u",function(){return un}),n.d(t,"v",function(){return Qs}),n.d(t,"w",function(){return bl}),n.d(t,"x",function(){return _l}),n.d(t,"y",function(){return Xu}),n.d(t,"z",function(){return Rl}),n.d(t,"A",function(){return Md}),n.d(t,"B",function(){return Il}),n.d(t,"C",function(){return yd}),n.d(t,"D",function(){return nd}),n.d(t,"E",function(){return An}),n.d(t,"F",function(){return zu}),n.d(t,"G",function(){return Nu}),n.d(t,"H",function(){return el}),n.d(t,"I",function(){return Zc}),n.d(t,"J",function(){return $i}),n.d(t,"K",function(){return nl}),n.d(t,"L",function(){return Ti}),n.d(t,"M",function(){return In}),n.d(t,"N",function(){return Ld}),n.d(t,"O",function(){return Ol}),n.d(t,"P",function(){return ld}),n.d(t,"Q",function(){return hn}),n.d(t,"R",function(){return il}),n.d(t,"S",function(){return Fl}),n.d(t,"T",function(){return F}),n.d(t,"U",function(){return wd}),n.d(t,"V",function(){return _d}),n.d(t,"W",function(){return f}),n.d(t,"X",function(){return gd}),n.d(t,"Y",function(){return Id}),n.d(t,"Z",function(){return hd}),n.d(t,"ab",function(){return Hu}),n.d(t,"bb",function(){return js}),n.d(t,"cb",function(){return Oa}),n.d(t,"db",function(){return b}),n.d(t,"eb",function(){return xi}),n.d(t,"fb",function(){return oi}),n.d(t,"gb",function(){return qn}),n.d(t,"hb",function(){return Jn}),n.d(t,"ib",function(){return ei}),n.d(t,"jb",function(){return Qn}),n.d(t,"kb",function(){return Kn}),n.d(t,"lb",function(){return Zn}),n.d(t,"mb",function(){return ka}),n.d(t,"nb",function(){return Ad}),n.d(t,"ob",function(){return Ta}),n.d(t,"pb",function(){return Ma}),n.d(t,"qb",function(){return Gn}),n.d(t,"rb",function(){return z}),n.d(t,"sb",function(){return co}),n.d(t,"tb",function(){return Ro}),n.d(t,"ub",function(){return Ao}),n.d(t,"vb",function(){return Io}),n.d(t,"wb",function(){return xa}),n.d(t,"xb",function(){return Te}),n.d(t,"yb",function(){return u}),n.d(t,"zb",function(){return Un}),n.d(t,"Ab",function(){return eo}),n.d(t,"Bb",function(){return ye}),n.d(t,"Cb",function(){return Hc}),n.d(t,"Db",function(){return jr}),n.d(t,"Eb",function(){return go}),n.d(t,"Fb",function(){return Zo}),n.d(t,"Gb",function(){return ba}),n.d(t,"Hb",function(){return ga}),n.d(t,"Ib",function(){return _a}),n.d(t,"Jb",function(){return Qo}),n.d(t,"Kb",function(){return Cu}),n.d(t,"Lb",function(){return Z}),n.d(t,"Mb",function(){return oe}),n.d(t,"Nb",function(){return w}),n.d(t,"Ob",function(){return D}),n.d(t,"Pb",function(){return ie}),n.d(t,"Qb",function(){return ae}),n.d(t,"Rb",function(){return Do}),n.d(t,"Sb",function(){return Mo}),n.d(t,"Tb",function(){return Lo}),n.d(t,"Ub",function(){return Oo}),n.d(t,"Vb",function(){return Co}),n.d(t,"Wb",function(){return To}),n.d(t,"Xb",function(){return ko}),n.d(t,"Yb",function(){return Eo}),n.d(t,"Zb",function(){return rn}),n.d(t,"ac",function(){return va}),n.d(t,"bc",function(){return Ec}),n.d(t,"cc",function(){return Rc}),n.d(t,"dc",function(){return Ac}),n.d(t,"ec",function(){return Lc}),n.d(t,"fc",function(){return Ic}),n.d(t,"gc",function(){return Pc}),n.d(t,"hc",function(){return Oc}),n.d(t,"ic",function(){return Cn}),n.d(t,"jc",function(){return on}),n.d(t,"kc",function(){return Ru}),n.d(t,"lc",function(){return Po}),n.d(t,"mc",function(){return Ou}),n.d(t,"nc",function(){return jo}),n.d(t,"oc",function(){return au}),n.d(t,"pc",function(){return cu}),n.d(t,"qc",function(){return lu}),n.d(t,"rc",function(){return uu}),n.d(t,"sc",function(){return zo}),n.d(t,"tc",function(){return No}),n.d(t,"uc",function(){return So}),n.d(t,"vc",function(){return $o}),n.d(t,"wc",function(){return Ho}),n.d(t,"xc",function(){return Xo}),n.d(t,"yc",function(){return Kl}),n.d(t,"zc",function(){return Ql}),n.d(t,"Ac",function(){return Zl}),n.d(t,"Bc",function(){return eu}),n.d(t,"Cc",function(){return tu}),n.d(t,"Dc",function(){return nu}),n.d(t,"Ec",function(){return Tu}),n.d(t,"Fc",function(){return wo}),n.d(t,"Gc",function(){return Ni}),n.d(t,"Hc",function(){return Yi}),n.d(t,"Ic",function(){return Be}),n.d(t,"Jc",function(){return Mi}),n.d(t,"Kc",function(){return Oi}),n.d(t,"Lc",function(){return Ci}),n.d(t,"Mc",function(){return re}),n.d(t,"Nc",function(){return Ko}),n.d(t,"Oc",function(){return ya}),n.d(t,"Pc",function(){return yo}),n.d(t,"Qc",function(){return Iu}),n.d(t,"Rc",function(){return da}),n.d(t,"Sc",function(){return ha}),n.d(t,"Tc",function(){return fa}),n.d(t,"Uc",function(){return pa}),n.d(t,"Vc",function(){return ma}),n.d(t,"Wc",function(){return Mu});var i=n("XNiG"),r=n("quSY"),s=n("HDdC"),o=n("VRyK"),a=n("w1tV");function c(e){for(let t in e)if(e[t]===c)return t;throw Error("Could not find renamed property on target object.")}function l(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function u(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(u).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function d(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const h=c({__forward_ref__:c});function f(e){return e.__forward_ref__=f,e.toString=function(){return u(this())},e}function p(e){return m(e)?e():e}function m(e){return"function"==typeof e&&e.hasOwnProperty(h)&&e.__forward_ref__===f}class b extends Error{constructor(e,t){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(e,t)),this.code=e}}function g(e){return"string"==typeof e?e:null==e?"":String(e)}function _(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():g(e)}function v(e,t){const n=t?` in ${t}`:"";throw new b("201",`No provider for ${_(e)} found${n}`)}function y(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}function w(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function D(e){return{providers:e.providers||[],imports:e.imports||[]}}function S(e){return x(e,T)||x(e,C)}function x(e,t){return e.hasOwnProperty(t)?e[t]:null}function k(e){return e&&(e.hasOwnProperty(M)||e.hasOwnProperty(O))?e[M]:null}const T=c({"\u0275prov":c}),M=c({"\u0275inj":c}),C=c({ngInjectableDef:c}),O=c({ngInjectorDef:c});var L=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});let E;function A(e){const t=E;return E=e,t}function I(e,t,n){const i=S(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&L.Optional?null:void 0!==t?t:void v(u(e),"Injector")}function R(e){return{toString:e}.toString()}var P=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),F=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});const W="undefined"!=typeof globalThis&&globalThis,j="undefined"!=typeof window&&window,Y="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,N="undefined"!=typeof global&&global,z=W||N||j||Y,$={},H=[],X=[],V=c({"\u0275cmp":c}),B=c({"\u0275dir":c}),U=c({"\u0275pipe":c}),q=c({"\u0275mod":c}),G=c({"\u0275loc":c}),J=c({"\u0275fac":c}),K=c({__NG_ELEMENT_ID__:c});let Q=0;function Z(e){return R(()=>{const t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===P.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||X,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||F.Emulated,id:"c",styles:e.styles||X,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,s=e.pipes;return n.id+=Q++,n.inputs=se(e.inputs,t),n.outputs=se(e.outputs),r&&r.forEach(e=>e(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(ee):null,n.pipeDefs=s?()=>("function"==typeof s?s():s).map(te):null,n})}function ee(e){return ce(e)||function(e){return e[B]||null}(e)}function te(e){return function(e){return e[U]||null}(e)}const ne={};function ie(e){const t={type:e.type,bootstrap:e.bootstrap||X,declarations:e.declarations||X,imports:e.imports||X,exports:e.exports||X,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&R(()=>{ne[e.id]=e.type}),t}function re(e,t){return R(()=>{const n=le(e,!0);n.declarations=t.declarations||X,n.imports=t.imports||X,n.exports=t.exports||X})}function se(e,t){if(null==e)return $;const n={};for(const i in e)if(e.hasOwnProperty(i)){let r=e[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,t&&(t[r]=s)}return n}const oe=Z;function ae(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function ce(e){return e[V]||null}function le(e,t){const n=e[q]||null;if(!n&&!0===t)throw new Error(`Type ${u(e)} does not have '\u0275mod' property.`);return n}const ue=20,de=10;function he(e){return Array.isArray(e)&&"object"==typeof e[1]}function fe(e){return Array.isArray(e)&&!0===e[1]}function pe(e){return 0!=(8&e.flags)}function me(e){return 2==(2&e.flags)}function be(e){return 1==(1&e.flags)}function ge(e){return null!==e.template}function _e(e,t){return e.hasOwnProperty(J)?e[J]:null}class ve{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function ye(){return we}function we(e){return e.type.prototype.ngOnChanges&&(e.setInput=Se),De}function De(){const e=xe(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===$)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function Se(e,t,n,i){const r=xe(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:$,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],c=o[a];s[a]=new ve(c&&c.currentValue,t,o===$),e[i]=t}function xe(e){return e.__ngSimpleChanges__||null}let ke;function Te(e){ke=e}function Me(){return void 0!==ke?ke:"undefined"!=typeof document?document:void 0}function Ce(e){return!!e.listen}ye.ngInherit=!0;const Oe={createRenderer:(e,t)=>Me()};function Le(e){for(;Array.isArray(e);)e=e[0];return e}function Ee(e,t){return Le(t[e])}function Ae(e,t){return Le(t[e.index])}function Ie(e,t){return e.data[t]}function Re(e,t){return e[t]}function Pe(e,t){const n=t[e];return he(n)?n:n[0]}function Fe(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function We(e){return 4==(4&e[2])}function je(e){return 128==(128&e[2])}function Ye(e,t){return null==t?null:e[t]}function Ne(e){e[18]=0}function ze(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const $e={lFrame:mt(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function He(){return $e.bindingsEnabled}function Xe(){return $e.lFrame.lView}function Ve(){return $e.lFrame.tView}function Be(e){$e.lFrame.contextLView=e}function Ue(){let e=qe();for(;null!==e&&64===e.type;)e=e.parent;return e}function qe(){return $e.lFrame.currentTNode}function Ge(){const e=$e.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Je(e,t){const n=$e.lFrame;n.currentTNode=e,n.isParent=t}function Ke(){return $e.lFrame.isParent}function Qe(){$e.lFrame.isParent=!1}function Ze(){return $e.isInCheckNoChangesMode}function et(e){$e.isInCheckNoChangesMode=e}function tt(){const e=$e.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function nt(){return $e.lFrame.bindingIndex}function it(){return $e.lFrame.bindingIndex++}function rt(e){const t=$e.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function st(e){$e.lFrame.inI18n=e}function ot(e,t){const n=$e.lFrame;n.bindingIndex=n.bindingRootIndex=e,at(t)}function at(e){$e.lFrame.currentDirectiveIndex=e}function ct(e){const t=$e.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function lt(){return $e.lFrame.currentQueryIndex}function ut(e){$e.lFrame.currentQueryIndex=e}function dt(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function ht(e,t,n){if(n&L.SkipSelf){let i=t,r=e;for(;i=i.parent,!(null!==i||n&L.Host||(i=dt(r),null===i)||(r=r[15],10&i.type)););if(null===i)return!1;t=i,e=r}const i=$e.lFrame=pt();return i.currentTNode=t,i.lView=e,!0}function ft(e){const t=pt(),n=e[1];$e.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function pt(){const e=$e.lFrame,t=null===e?null:e.child;return null===t?mt(e):t}function mt(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function bt(){const e=$e.lFrame;return $e.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const gt=bt;function _t(){const e=bt();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function vt(){return $e.lFrame.selectedIndex}function yt(e){$e.lFrame.selectedIndex=e}function wt(){const e=$e.lFrame;return Ie(e.tView,e.selectedIndex)}function Dt(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n<i;n++){const t=e.data[n].type.prototype,{ngAfterContentInit:i,ngAfterContentChecked:r,ngAfterViewInit:s,ngAfterViewChecked:o,ngOnDestroy:a}=t;i&&(e.contentHooks||(e.contentHooks=[])).push(-n,i),r&&((e.contentHooks||(e.contentHooks=[])).push(n,r),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,r)),s&&(e.viewHooks||(e.viewHooks=[])).push(-n,s),o&&((e.viewHooks||(e.viewHooks=[])).push(n,o),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,o)),null!=a&&(e.destroyHooks||(e.destroyHooks=[])).push(n,a)}}function St(e,t,n){Tt(e,t,3,n)}function xt(e,t,n,i){(3&e[2])===n&&Tt(e,t,n,i)}function kt(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Tt(e,t,n,i){const r=null!=i?i:-1,s=t.length-1;let o=0;for(let a=void 0!==i?65535&e[18]:0;a<s;a++)if("number"==typeof t[a+1]){if(o=t[a],null!=i&&o>=i)break}else t[a]<0&&(e[18]+=65536),(o<r||-1==r)&&(Mt(e,n,t,a),e[18]=(4294901760&e[18])+a+2),a++}function Mt(e,t,n,i){const r=n[i]<0,s=n[i+1],o=e[r?-n[i]:n[i]];if(r){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{s.call(o)}finally{}}}else try{s.call(o)}finally{}}const Ct=-1;class Ot{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function Lt(e,t,n){const i=Ce(e);let r=0;for(;r<n.length;){const s=n[r];if("number"==typeof s){if(0!==s)break;r++;const o=n[r++],a=n[r++],c=n[r++];i?e.setAttribute(t,a,c,o):t.setAttributeNS(o,a,c)}else{const o=s,a=n[++r];At(o)?i&&e.setProperty(t,o,a):i?e.setAttribute(t,o,a):t.setAttribute(o,a),r++}}return r}function Et(e){return 3===e||4===e||6===e}function At(e){return 64===e.charCodeAt(0)}function It(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let i=0;i<t.length;i++){const r=t[i];"number"==typeof r?n=r:0===n||Rt(e,n,r,null,-1===n||2===n?t[++i]:null)}}return e}function Rt(e,t,n,i,r){let s=0,o=e.length;if(-1===t)o=-1;else for(;s<e.length;){const n=e[s++];if("number"==typeof n){if(n===t){o=-1;break}if(n>t){o=s-1;break}}}for(;s<e.length;){const t=e[s];if("number"==typeof t)break;if(t===n){if(null===i)return void(null!==r&&(e[s+1]=r));if(i===e[s+1])return void(e[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(e.splice(o,0,t),s=o+1),e.splice(s++,0,n),null!==i&&e.splice(s++,0,i),null!==r&&e.splice(s++,0,r)}function Pt(e){return e!==Ct}function Ft(e){return 32767&e}function Wt(e,t){let n=e>>16,i=t;for(;n>0;)i=i[15],n--;return i}let jt=!0;function Yt(e){const t=jt;return jt=e,t}let Nt=0;function zt(e,t){const n=Ht(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,$t(i.data,e),$t(t,null),$t(i.blueprint,null));const r=Xt(e,t),s=e.injectorIndex;if(Pt(r)){const e=Ft(r),n=Wt(r,t),i=n[1].data;for(let r=0;r<8;r++)t[s+r]=n[e+r]|i[e+r]}return t[s+8]=r,s}function $t(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ht(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Xt(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,r=t;for(;null!==r;){const e=r[1],t=e.type;if(i=2===t?e.declTNode:1===t?r[6]:null,null===i)return Ct;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return Ct}function Vt(e,t,n){!function(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(K)&&(i=n[K]),null==i&&(i=n[K]=Nt++);const r=255&i;t.data[e+(r>>5)]|=1<<r}(e,t,n)}function Bt(e,t,n){if(n&L.Optional)return e;v(t,"NodeInjector")}function Ut(e,t,n,i){if(n&L.Optional&&void 0===i&&(i=null),0==(n&(L.Self|L.Host))){const r=e[9],s=A(void 0);try{return r?r.get(t,i,n&L.Optional):I(t,i,n&L.Optional)}finally{A(s)}}return Bt(i,t,n)}function qt(e,t,n,i=L.Default,r){if(null!==e){const s=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(K)?e[K]:void 0;return"number"==typeof t?t>=0?255&t:Jt:t}(n);if("function"==typeof s){if(!ht(t,e,i))return i&L.Host?Bt(r,n,i):Ut(t,n,i,r);try{const e=s();if(null!=e||i&L.Optional)return e;v(n)}finally{gt()}}else if("number"==typeof s){let r=null,o=Ht(e,t),a=Ct,c=i&L.Host?t[16][6]:null;for((-1===o||i&L.SkipSelf)&&(a=-1===o?Xt(e,t):t[o+8],a!==Ct&&tn(i,!1)?(r=t[1],o=Ft(a),t=Wt(a,t)):o=-1);-1!==o;){const e=t[1];if(en(s,o,e.data)){const e=Kt(o,t,n,r,i,c);if(e!==Gt)return e}a=t[o+8],a!==Ct&&tn(i,t[1].data[o+8]===c)&&en(s,o,t)?(r=e,o=Ft(a),t=Wt(a,t)):o=-1}}}return Ut(t,n,i,r)}const Gt={};function Jt(){return new nn(Ue(),Xe())}function Kt(e,t,n,i,r,s){const o=t[1],a=o.data[e+8],c=Qt(a,o,n,null==i?me(a)&&jt:i!=o&&0!=(3&a.type),r&L.Host&&s===a);return null!==c?Zt(t,o,c,a):Gt}function Qt(e,t,n,i,r){const s=e.providerIndexes,o=t.data,a=1048575&s,c=e.directiveStart,l=s>>20,u=r?a+l:e.directiveEnd;for(let d=i?a:a+l;d<u;d++){const e=o[d];if(d<c&&n===e||d>=c&&e.type===n)return d}if(r){const e=o[c];if(e&&ge(e)&&e.type===n)return c}return null}function Zt(e,t,n,i){let r=e[n];const s=t.data;if(r instanceof Ot){const o=r;o.resolving&&function(e,t){throw new b("200",`Circular dependency in DI detected for ${e}`)}(_(s[n]));const a=Yt(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?A(o.injectImpl):null;ht(e,i,L.Default);try{r=e[n]=o.factory(void 0,s,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const i=we(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{null!==c&&A(c),Yt(a),o.resolving=!1,gt()}}return r}function en(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function tn(e,t){return!(e&L.Self||e&L.Host&&t)}class nn{constructor(e,t){this._tNode=e,this._lView=t}get(e,t){return qt(this._tNode,this._lView,e,void 0,t)}}function rn(e){return R(()=>{const t=e.prototype.constructor,n=t[J]||sn(t),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const e=r[J]||sn(r);if(e&&e!==n)return e;r=Object.getPrototypeOf(r)}return e=>new e})}function sn(e){return m(e)?()=>{const t=sn(p(e));return t&&t()}:_e(e)}function on(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const e=n.length;let i=0;for(;i<e;){const r=n[i];if(Et(r))break;if(0===r)i+=2;else if("number"==typeof r)for(i++;i<e&&"string"==typeof n[i];)i++;else{if(r===t)return n[i+1];i+=2}}}return null}(Ue(),e)}const an="__parameters__";function cn(e,t,n){return R(()=>{const i=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function r(...e){if(this instanceof r)return i.apply(this,e),this;const t=new r(...e);return n.annotation=t,n;function n(e,n,i){const r=e.hasOwnProperty(an)?e[an]:Object.defineProperty(e,an,{value:[]})[an];for(;r.length<=i;)r.push(null);return(r[i]=r[i]||[]).push(t),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}const ln=function(){return cn("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>on(e)}))}();class un{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=w({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const dn=new un("AnalyzeForEntryComponents"),hn=Function;function fn(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let i=e[n];Array.isArray(i)?(t===e&&(t=e.slice(0,n)),fn(i,t)):t!==e&&t.push(i)}return t}function pn(e,t){e.forEach(e=>Array.isArray(e)?pn(e,t):t(e))}function mn(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function bn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function gn(e,t){const n=[];for(let i=0;i<e;i++)n.push(t);return n}function _n(e,t,n){let i=yn(e,t);return i>=0?e[1|i]=n:(i=~i,function(e,t,n,i){let r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function vn(e,t){const n=yn(e,t);if(n>=0)return e[1|n]}function yn(e,t){return function(e,t,n){let i=0,r=e.length>>1;for(;r!==i;){const n=i+(r-i>>1),s=e[n<<1];if(t===s)return n<<1;s>t?r=n:i=n+1}return~(r<<1)}(e,t)}const wn={},Dn=/\n/gm,Sn="__source",xn=c({provide:String,useValue:c});let kn;function Tn(e){const t=kn;return kn=e,t}function Mn(e,t=L.Default){if(void 0===kn)throw new Error("inject() must be called from an injection context");return null===kn?I(e,void 0,t):kn.get(e,t&L.Optional?null:void 0,t)}function Cn(e,t=L.Default){return(E||Mn)(p(e),t)}function On(e){const t=[];for(let n=0;n<e.length;n++){const i=p(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let e,n=L.Default;for(let t=0;t<i.length;t++){const r=i[t],s=r.__NG_DI_FLAG__;"number"==typeof s?-1===s?e=r.token:n|=s:e=r}t.push(Cn(e,n))}else t.push(Cn(i))}return t}function Ln(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}const En=Ln(cn("Inject",e=>({token:e})),-1),An=Ln(cn("Optional"),8),In=Ln(cn("SkipSelf"),4),Rn=Ln(cn("Host"),1);let Pn,Fn;function Wn(e){var t;return(null===(t=function(){if(void 0===Pn&&(Pn=null,z.trustedTypes))try{Pn=z.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(t){}return Pn}())||void 0===t?void 0:t.createHTML(e))||e}function jn(){if(void 0===Fn&&(Fn=null,z.trustedTypes))try{Fn=z.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Fn}function Yn(e){var t;return(null===(t=jn())||void 0===t?void 0:t.createHTML(e))||e}function Nn(e){var t;return(null===(t=jn())||void 0===t?void 0:t.createScriptURL(e))||e}class zn{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class $n extends zn{getTypeName(){return"HTML"}}class Hn extends zn{getTypeName(){return"Style"}}class Xn extends zn{getTypeName(){return"Script"}}class Vn extends zn{getTypeName(){return"URL"}}class Bn extends zn{getTypeName(){return"ResourceURL"}}function Un(e){return e instanceof zn?e.changingThisBreaksApplicationSecurity:e}function qn(e,t){const n=Gn(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function Gn(e){return e instanceof zn&&e.getTypeName()||null}function Jn(e){return new $n(e)}function Kn(e){return new Hn(e)}function Qn(e){return new Xn(e)}function Zn(e){return new Vn(e)}function ei(e){return new Bn(e)}function ti(e){const t=new ii(e);return function(){try{return!!(new window.DOMParser).parseFromString(Wn(""),"text/html")}catch(e){return!1}}()?new ni(t):t}class ni{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(Wn(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class ii{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const t=this.inertDocument.createElement("body");e.appendChild(t)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Wn(e),t;const n=this.inertDocument.createElement("body");return n.innerHTML=Wn(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(e){const t=e.attributes;for(let i=t.length-1;0<i;i--){const n=t.item(i).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||e.removeAttribute(n)}let n=e.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const ri=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,si=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function oi(e){return(e=String(e)).match(ri)||e.match(si)?e:"unsafe:"+e}function ai(e){return(e=String(e)).split(",").map(e=>oi(e.trim())).join(", ")}function ci(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function li(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const ui=ci("area,br,col,hr,img,wbr"),di=ci("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),hi=ci("rp,rt"),fi=li(hi,di),pi=li(ui,li(di,ci("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")),li(hi,ci("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")),fi),mi=ci("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),bi=ci("srcset"),gi=li(mi,bi,ci("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,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ci("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")),_i=ci("script,style,template");class vi{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!pi.hasOwnProperty(t))return this.sanitizedSomething=!0,!_i.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let i=0;i<n.length;i++){const e=n.item(i),t=e.name,r=t.toLowerCase();if(!gi.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let s=e.value;mi[r]&&(s=oi(s)),bi[r]&&(s=ai(s)),this.buf.push(" ",t,'="',Di(s),'"')}return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();pi.hasOwnProperty(t)&&!ui.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Di(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const yi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wi=/([^\#-~ |!])/g;function Di(e){return e.replace(/&/g,"&amp;").replace(yi,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(wi,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Si;function xi(e,t){let n=null;try{Si=Si||ti(e);let i=t?String(t):"";n=Si.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=n.innerHTML,n=Si.getInertBodyElement(i)}while(i!==s);return Wn((new vi).sanitizeChildren(ki(n)||n))}finally{if(n){const e=ki(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function ki(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Ti=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function Mi(e){const t=Li();return t?Yn(t.sanitize(Ti.HTML,e)||""):qn(e,"HTML")?Yn(Un(e)):xi(Me(),g(e))}function Ci(e){const t=Li();return t?t.sanitize(Ti.URL,e)||"":qn(e,"URL")?Un(e):oi(g(e))}function Oi(e){const t=Li();if(t)return Nn(t.sanitize(Ti.RESOURCE_URL,e)||"");if(qn(e,"ResourceURL"))return Nn(Un(e));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function Li(){const e=Xe();return e&&e[12]}function Ei(e){return e.ngDebugContext}function Ai(e){return e.ngOriginalError}function Ii(e,...t){e.error(...t)}class Ri{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e.ngErrorLogger||Ii}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?Ei(e)?Ei(e):this._findContext(Ai(e)):null}_findOriginalError(e){let t=Ai(e);for(;t&&Ai(t);)t=Ai(t);return t}}const Pi=/^>|^->|<!--|-->|--!>|<!-$/g,Fi=/(<|>)/;function Wi(e,t){e.__ngContext__=t}const ji=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(z))();function Yi(e){return{name:"window",target:e.ownerDocument.defaultView}}function Ni(e){return{name:"body",target:e.ownerDocument.body}}function zi(e){return e instanceof Function?e():e}var $i=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});let Hi;function Xi(e,t){return Hi(e,t)}function Vi(e){const t=e[3];return fe(t)?t[3]:t}function Bi(e){return qi(e[13])}function Ui(e){return qi(e[4])}function qi(e){for(;null!==e&&!fe(e);)e=e[4];return e}function Gi(e,t,n,i,r){if(null!=i){let s,o=!1;fe(i)?s=i:he(i)&&(o=!0,i=i[0]);const a=Le(i);0===e&&null!==n?null==r?ar(t,n,a):or(t,n,a,r||null,!0):1===e&&null!==n?or(t,n,a,r||null,!0):2===e?vr(t,a,o):3===e&&t.destroyNode(a),null!=s&&function(e,t,n,i,r){const s=n[7];s!==Le(n)&&Gi(t,e,i,s,r);for(let o=de;o<n.length;o++){const r=n[o];wr(r[1],r,e,t,i,s)}}(t,e,s,n,r)}}function Ji(e,t){return Ce(e)?e.createText(t):e.createTextNode(t)}function Ki(e,t,n){Ce(e)?e.setValue(t,n):t.textContent=n}function Qi(e,t){return e.createComment(function(e){return e.replace(Pi,e=>e.replace(Fi,"\u200b$1\u200b"))}(t))}function Zi(e,t,n){return Ce(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function er(e,t){const n=e[9],i=n.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,ze(r,-1)),n.splice(i,1)}function tr(e,t){if(e.length<=de)return;const n=de+t,i=e[n];if(i){const s=i[17];null!==s&&s!==e&&er(s,i),t>0&&(e[n-1][4]=i[4]);const o=bn(e,de+t);wr(i[1],r=i,r[11],2,null,null),r[0]=null,r[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}var r;return i}function nr(e,t){if(!(256&t[2])){const n=t[11];Ce(n)&&n.destroyNode&&wr(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return ir(e[1],e);for(;t;){let n=null;if(he(t))n=t[13];else{const e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)he(t)&&ir(t[1],t),t=t[3];null===t&&(t=e),he(t)&&ir(t[1],t),n=t&&t[4]}t=n}}(t)}}function ir(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i<n.length;i+=2){const e=t[n[i]];if(!(e instanceof Ot)){const t=n[i+1];if(Array.isArray(t))for(let n=0;n<t.length;n+=2){const i=e[t[n]],r=t[n+1];try{r.call(i)}finally{}}else try{t.call(e)}finally{}}}}(e,t),function(e,t){const n=e.cleanup,i=t[7];let r=-1;if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const e=n[s+1],o="function"==typeof e?e(t):Le(t[e]),a=i[r=n[s+2]],c=n[s+3];"boolean"==typeof c?o.removeEventListener(n[s],a,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const e=i[r=n[s+1]];n[s].call(e)}if(null!==i){for(let e=r+1;e<i.length;e++)(0,i[e])();t[7]=null}}(e,t),1===t[1].type&&Ce(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&fe(t[3])){n!==t[3]&&er(n,t);const i=t[19];null!==i&&i.detachView(e)}}}function rr(e,t,n){return sr(e,t.parent,n)}function sr(e,t,n){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){const t=e.data[i.directiveStart].encapsulation;if(t===F.None||t===F.Emulated)return null}return Ae(i,n)}function or(e,t,n,i,r){Ce(e)?e.insertBefore(t,n,i,r):t.insertBefore(n,i,r)}function ar(e,t,n){Ce(e)?e.appendChild(t,n):t.appendChild(n)}function cr(e,t,n,i,r){null!==i?or(e,t,n,i,r):ar(e,t,n)}function lr(e,t){return Ce(e)?e.parentNode(t):t.parentNode}function ur(e,t,n){return fr(e,t,n)}function dr(e,t,n){return 40&e.type?Ae(e,n):null}let hr,fr=dr;function pr(e,t){fr=e,hr=t}function mr(e,t,n,i){const r=rr(e,i,t),s=t[11],o=ur(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(n))for(let a=0;a<n.length;a++)cr(s,r,n[a],o,!1);else cr(s,r,n,o,!1);void 0!==hr&&hr(s,i,t,n,r)}function br(e,t){if(null!==t){const n=t.type;if(3&n)return Ae(t,e);if(4&n)return _r(-1,e[t.index]);if(8&n){const n=t.child;if(null!==n)return br(e,n);{const n=e[t.index];return fe(n)?_r(-1,n):Le(n)}}if(32&n)return Xi(t,e)()||Le(e[t.index]);{const n=gr(e,t);return null!==n?Array.isArray(n)?n[0]:br(Vi(e[16]),n):br(e,t.next)}}return null}function gr(e,t){return null!==t?e[16][6].projection[t.projection]:null}function _r(e,t){const n=de+e+1;if(n<t.length){const e=t[n],i=e[1].firstChild;if(null!==i)return br(e,i)}return t[7]}function vr(e,t,n){const i=lr(e,t);i&&function(e,t,n,i){Ce(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}function yr(e,t,n,i,r,s,o){for(;null!=n;){const a=i[n.index],c=n.type;if(o&&0===t&&(a&&Wi(Le(a),i),n.flags|=4),64!=(64&n.flags))if(8&c)yr(e,t,n.child,i,r,s,!1),Gi(t,e,r,a,s);else if(32&c){const o=Xi(n,i);let c;for(;c=o();)Gi(t,e,r,c,s);Gi(t,e,r,a,s)}else 16&c?Dr(e,t,i,n,r,s):Gi(t,e,r,a,s);n=o?n.projectionNext:n.next}}function wr(e,t,n,i,r,s){yr(n,i,e.firstChild,t,r,s,!1)}function Dr(e,t,n,i,r,s){const o=n[16],a=o[6].projection[i.projection];if(Array.isArray(a))for(let c=0;c<a.length;c++)Gi(t,e,r,a[c],s);else yr(e,t,a,o[3],r,s,!0)}function Sr(e,t,n){Ce(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function xr(e,t,n){Ce(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function kr(e,t,n){let i=e.length;for(;;){const r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){const n=t.length;if(r+n===i||e.charCodeAt(r+n)<=32)return r}n=r+1}}const Tr="ng-template";function Mr(e,t,n){let i=0;for(;i<e.length;){let r=e[i++];if(n&&"class"===r){if(r=e[i],-1!==kr(r.toLowerCase(),t,0))return!0}else if(1===r){for(;i<e.length&&"string"==typeof(r=e[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function Cr(e){return 4===e.type&&e.value!==Tr}function Or(e,t,n){return t===(4!==e.type||n?e.value:Tr)}function Lr(e,t,n){let i=4;const r=e.attrs||[],s=function(e){for(let t=0;t<e.length;t++)if(Et(e[t]))return t;return e.length}(r);let o=!1;for(let a=0;a<t.length;a++){const c=t[a];if("number"!=typeof c){if(!o)if(4&i){if(i=2|1&i,""!==c&&!Or(e,c,n)||""===c&&1===t.length){if(Er(i))return!1;o=!0}}else{const l=8&i?c:t[++a];if(8&i&&null!==e.attrs){if(!Mr(e.attrs,l,n)){if(Er(i))return!1;o=!0}continue}const u=Ar(8&i?"class":c,r,Cr(e),n);if(-1===u){if(Er(i))return!1;o=!0;continue}if(""!==l){let e;e=u>s?"":r[u+1].toLowerCase();const t=8&i?e:null;if(t&&-1!==kr(t,l,0)||2&i&&l!==e){if(Er(i))return!1;o=!0}}}}else{if(!o&&!Er(i)&&!Er(c))return!1;if(o&&Er(c))continue;o=!1,i=c|1&i}}return Er(i)||o}function Er(e){return 0==(1&e)}function Ar(e,t,n,i){if(null===t)return-1;let r=0;if(i||!n){let n=!1;for(;r<t.length;){const i=t[r];if(i===e)return r;if(3===i||6===i)n=!0;else{if(1===i||2===i){let e=t[++r];for(;"string"==typeof e;)e=t[++r];continue}if(4===i)break;if(0===i){r+=4;continue}}r+=n?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function Ir(e,t,n=!1){for(let i=0;i<t.length;i++)if(Lr(e,t[i],n))return!0;return!1}function Rr(e,t){e:for(let n=0;n<t.length;n++){const i=t[n];if(e.length===i.length){for(let t=0;t<e.length;t++)if(e[t]!==i[t])continue e;return!0}}return!1}function Pr(e,t){return e?":not("+t.trim()+")":t}function Fr(e){let t=e[0],n=1,i=2,r="",s=!1;for(;n<e.length;){let o=e[n];if("string"==typeof o)if(2&i){const t=e[++n];r+="["+o+(t.length>0?'="'+t+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||Er(o)||(t+=Pr(s,r),r=""),i=o,s=s||!Er(i);n++}return""!==r&&(t+=Pr(s,r)),t}const Wr={};function jr(e){Yr(Ve(),Xe(),vt()+e,Ze())}function Yr(e,t,n,i){if(!i)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&St(t,i,n)}else{const i=e.preOrderHooks;null!==i&&xt(t,i,0,n)}yt(n)}function Nr(e,t){return e<<17|t<<2}function zr(e){return e>>17&32767}function $r(e){return 2|e}function Hr(e){return(131068&e)>>2}function Xr(e,t){return-131069&e|t<<2}function Vr(e){return 1|e}function Br(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const r=n[i],s=n[i+1];if(-1!==s){const n=e.data[s];ut(r),n.contentQueries(2,t[s],s)}}}function Ur(e,t,n,i,r,s,o,a,c,l){const u=t.blueprint.slice();return u[0]=r,u[2]=140|i,Ne(u),u[3]=u[15]=e,u[8]=n,u[10]=o||e&&e[10],u[11]=a||e&&e[11],u[12]=c||e&&e[12]||null,u[9]=l||e&&e[9]||null,u[6]=s,u[16]=2==t.type?e[16]:u,u}function qr(e,t,n,i,r){let s=e.data[t];if(null===s)s=Gr(e,t,n,i,r),$e.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=i,s.attrs=r;const e=Ge();s.injectorIndex=null===e?-1:e.injectorIndex}return Je(s,!0),s}function Gr(e,t,n,i,r){const s=qe(),o=Ke(),a=e.data[t]=function(e,t,n,i,r,s){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,n,t,i,r);return null===e.firstChild&&(e.firstChild=a),null!==s&&(o?null==s.child&&null!==a.parent&&(s.child=a):null===s.next&&(s.next=a)),a}function Jr(e,t,n,i){if(0===n)return-1;const r=t.length;for(let s=0;s<n;s++)t.push(i),e.blueprint.push(i),e.data.push(null);return r}function Kr(e,t,n){ft(t);try{const i=e.viewQuery;null!==i&&Cs(1,i,n);const r=e.template;null!==r&&es(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Br(e,t),e.staticViewQueries&&Cs(2,e.viewQuery,n);const s=e.components;null!==s&&function(e,t){for(let n=0;n<t.length;n++)Ss(e,t[n])}(t,s)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),i}finally{t[2]&=-5,_t()}}function Qr(e,t,n,i){const r=t[2];if(256==(256&r))return;ft(t);const s=Ze();try{Ne(t),$e.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&es(e,t,n,2,i);const o=3==(3&r);if(!s)if(o){const n=e.preOrderCheckHooks;null!==n&&St(t,n,null)}else{const n=e.preOrderHooks;null!==n&&xt(t,n,0,null),kt(t,0)}if(function(e){for(let t=Bi(e);null!==t;t=Ui(t)){if(!t[2])continue;const e=t[9];for(let t=0;t<e.length;t++){const n=e[t],i=n[3];0==(1024&n[2])&&ze(i,1),n[2]|=1024}}}(t),function(e){for(let t=Bi(e);null!==t;t=Ui(t))for(let e=de;e<t.length;e++){const n=t[e],i=n[1];je(n)&&Qr(i,n,i.template,n[8])}}(t),null!==e.contentQueries&&Br(e,t),!s)if(o){const n=e.contentCheckHooks;null!==n&&St(t,n)}else{const n=e.contentHooks;null!==n&&xt(t,n,1),kt(t,1)}!function(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let e=0;e<n.length;e++){const i=n[e];if(i<0)yt(~i);else{const r=i,s=n[++e],o=n[++e];ot(s,r),o(2,t[r])}}}finally{yt(-1)}}(e,t);const a=e.components;null!==a&&function(e,t){for(let n=0;n<t.length;n++)ws(e,t[n])}(t,a);const c=e.viewQuery;if(null!==c&&Cs(2,c,i),!s)if(o){const n=e.viewCheckHooks;null!==n&&St(t,n)}else{const n=e.viewHooks;null!==n&&xt(t,n,2),kt(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),s||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,ze(t[3],-1))}finally{_t()}}function Zr(e,t,n,i){const r=t[10],s=!Ze(),o=We(t);try{s&&!o&&r.begin&&r.begin(),o&&Kr(e,t,i),Qr(e,t,n,i)}finally{s&&!o&&r.end&&r.end()}}function es(e,t,n,i,r){const s=vt(),o=2&i;try{yt(-1),o&&t.length>ue&&Yr(e,t,ue,Ze()),n(i,r)}finally{yt(s)}}function ts(e,t,n){if(pe(t)){const i=t.directiveEnd;for(let r=t.directiveStart;r<i;r++){const t=e.data[r];t.contentQueries&&t.contentQueries(1,n[r],r)}}}function ns(e,t,n){He()&&(function(e,t,n,i){const r=n.directiveStart,s=n.directiveEnd;e.firstCreatePass||zt(n,t),Wi(i,t);const o=n.initialInputs;for(let a=r;a<s;a++){const i=e.data[a],s=ge(i);s&&bs(t,n,i);const c=Zt(t,e,a,n);Wi(c,t),null!==o&&_s(0,a-r,c,i,0,o),s&&(Pe(n.index,t)[8]=c)}}(e,t,n,Ae(n,t)),128==(128&n.flags)&&function(e,t,n){const i=n.directiveStart,r=n.directiveEnd,s=n.index,o=$e.lFrame.currentDirectiveIndex;try{yt(s);for(let n=i;n<r;n++){const i=e.data[n],r=t[n];at(n),null===i.hostBindings&&0===i.hostVars&&null===i.hostAttrs||ds(i,r)}}finally{yt(-1),at(o)}}(e,t,n))}function is(e,t,n=Ae){const i=t.localNames;if(null!==i){let r=t.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?n(t,e):e[o];e[r++]=a}}}function rs(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=ss(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function ss(e,t,n,i,r,s,o,a,c,l){const u=ue+i,d=u+r,h=function(e,t){const n=[];for(let i=0;i<t;i++)n.push(i<e?null:Wr);return n}(u,d),f="function"==typeof l?l():l;return h[1]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:c,consts:f,incompleteFirstPass:!1}}function os(e,t,n,i){const r=Ls(t);null===n?r.push(i):(r.push(n),e.firstCreatePass&&Es(e).push(i,r.length-1))}function as(e,t,n){for(let i in e)if(e.hasOwnProperty(i)){const r=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,r):n[i]=[t,r]}return n}function cs(e,t,n,i,r,s,o,a){const c=Ae(t,n);let l,u=t.inputs;var d;!a&&null!=u&&(l=u[i])?(Is(e,n,l,i,r),me(t)&&function(e,t){const n=Pe(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(i="class"===(d=i)?"className":"for"===d?"htmlFor":"formaction"===d?"formAction":"innerHtml"===d?"innerHTML":"readonly"===d?"readOnly":"tabindex"===d?"tabIndex":d,r=null!=o?o(r,t.value||"",i):r,Ce(s)?s.setProperty(c,i,r):At(i)||(c.setProperty?c.setProperty(i,r):c[i]=r))}function ls(e,t,n,i){let r=!1;if(He()){const s=function(e,t,n){const i=e.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];Ir(n,o.selectors,!1)&&(r||(r=[]),Vt(zt(n,t),e,o.type),ge(o)?(hs(e,n),r.unshift(o)):r.push(o))}return r}(e,t,n),o=null===i?null:{"":-1};if(null!==s){r=!0,ps(n,e.data.length,s.length);for(let e=0;e<s.length;e++){const t=s[e];t.providersResolver&&t.providersResolver(t)}let i=!1,a=!1,c=Jr(e,t,s.length,null);for(let r=0;r<s.length;r++){const l=s[r];n.mergedAttrs=It(n.mergedAttrs,l.hostAttrs),ms(e,n,t,c,l),fs(c,l,o),null!==l.contentQueries&&(n.flags|=8),null===l.hostBindings&&null===l.hostAttrs&&0===l.hostVars||(n.flags|=128);const u=l.type.prototype;!i&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),i=!0),a||!u.ngOnChanges&&!u.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),a=!0),c++}!function(e,t){const n=t.directiveEnd,i=e.data,r=t.attrs,s=[];let o=null,a=null;for(let c=t.directiveStart;c<n;c++){const e=i[c],n=e.inputs,l=null===r||Cr(t)?null:vs(n,r);s.push(l),o=as(n,c,o),a=as(e.outputs,c,a)}null!==o&&(o.hasOwnProperty("class")&&(t.flags|=16),o.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=s,t.inputs=o,t.outputs=a}(e,n)}o&&function(e,t,n){if(t){const i=e.localNames=[];for(let e=0;e<t.length;e+=2){const r=n[t[e+1]];if(null==r)throw new b("301",`Export of name '${t[e+1]}' not found!`);i.push(t[e],r)}}}(n,i,o)}return n.mergedAttrs=It(n.mergedAttrs,n.attrs),r}function us(e,t,n,i,r,s){const o=s.hostBindings;if(o){let n=e.hostBindingOpCodes;null===n&&(n=e.hostBindingOpCodes=[]);const s=~t.index;(function(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(n)!=s&&n.push(s),n.push(i,r,o)}}function ds(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function hs(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function fs(e,t,n){if(n){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;ge(t)&&(n[""]=e)}}function ps(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ms(e,t,n,i,r){e.data[i]=r;const s=r.factory||(r.factory=_e(r.type)),o=new Ot(s,ge(r),null);e.blueprint[i]=o,n[i]=o,us(e,t,0,i,Jr(e,n,r.hostVars,Wr),r)}function bs(e,t,n){const i=Ae(t,e),r=rs(n),s=e[10],o=xs(e,Ur(e,r,null,n.onPush?64:16,i,t,s,s.createRenderer(i,n),null,null));e[t.index]=o}function gs(e,t,n,i,r,s,o){if(null==s)Ce(e)?e.removeAttribute(t,r,n):t.removeAttribute(r);else{const a=null==o?g(s):o(s,i||"",r);Ce(e)?e.setAttribute(t,r,a,n):n?t.setAttributeNS(n,r,a):t.setAttribute(r,a)}}function _s(e,t,n,i,r,s){const o=s[t];if(null!==o){const e=i.setInput;for(let t=0;t<o.length;){const r=o[t++],s=o[t++],a=o[t++];null!==e?i.setInput(n,a,r,s):n[s]=a}}}function vs(e,t){let n=null,i=0;for(;i<t.length;){const r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,e[r],t[i+1])),i+=2}else i+=2;else i+=4}return n}function ys(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function ws(e,t){const n=Pe(t,e);if(je(n)){const e=n[1];80&n[2]?Qr(e,n,e.template,n[8]):n[5]>0&&Ds(n)}}function Ds(e){for(let n=Bi(e);null!==n;n=Ui(n))for(let e=de;e<n.length;e++){const t=n[e];if(1024&t[2]){const e=t[1];Qr(e,t,e.template,t[8])}else t[5]>0&&Ds(t)}const t=e[1].components;if(null!==t)for(let n=0;n<t.length;n++){const i=Pe(t[n],e);je(i)&&i[5]>0&&Ds(i)}}function Ss(e,t){const n=Pe(t,e),i=n[1];!function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(i,n),Kr(i,n,n[8])}function xs(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function ks(e){for(;e;){e[2]|=64;const t=Vi(e);if(0!=(512&e[2])&&!t)return e;e=t}return null}function Ts(e,t,n){const i=t[10];i.begin&&i.begin();try{Qr(e,t,e.template,n)}catch(r){throw As(t,r),r}finally{i.end&&i.end()}}function Ms(e){!function(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],i=Fe(n),r=i[1];Zr(r,i,r.template,n)}}(e[8])}function Cs(e,t,n){ut(0),t(e,n)}const Os=(()=>Promise.resolve(null))();function Ls(e){return e[7]||(e[7]=[])}function Es(e){return e.cleanup||(e.cleanup=[])}function As(e,t){const n=e[9],i=n?n.get(Ri,null):null;i&&i.handleError(t)}function Is(e,t,n,i,r){for(let s=0;s<n.length;){const o=n[s++],a=n[s++],c=t[o],l=e.data[o];null!==l.setInput?l.setInput(c,r,i,a):c[a]=r}}function Rs(e,t,n){const i=Ee(t,e);Ki(e[11],i,n)}function Ps(e,t,n){let i=n?e.styles:null,r=n?e.classes:null,s=0;if(null!==t)for(let o=0;o<t.length;o++){const e=t[o];"number"==typeof e?s=e:1==s?r=d(r,e):2==s&&(i=d(i,e+": "+t[++o]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=r:e.classesWithoutHost=r}const Fs=new un("INJECTOR",-1);class Ws{get(e,t=wn){if(t===wn){const t=new Error(`NullInjectorError: No provider for ${u(e)}!`);throw t.name="NullInjectorError",t}return t}}const js=new un("Set Injector scope."),Ys={},Ns={},zs=[];let $s;function Hs(){return void 0===$s&&($s=new Ws),$s}function Xs(e,t=null,n=null,i){return new Vs(e,n,t||Hs(),i)}class Vs{constructor(e,t,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];t&&pn(t,n=>this.processProvider(n,e,t)),pn([e],e=>this.processInjectorType(e,[],r)),this.records.set(Fs,qs(void 0,this));const s=this.records.get(js);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof e?null:u(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=wn,n=L.Default){this.assertNotDestroyed();const i=Tn(this);try{if(!(n&L.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(r=e)||"object"==typeof r&&r instanceof un)&&S(e);t=n&&this.injectableDefInScope(n)?qs(Bs(e),Ys):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&L.Self?Hs():this.parent).get(e,t=n&L.Optional&&t===wn?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(u(e)),i)throw s;return function(e,t,n,i){const r=e.ngTempTokenPath;throw t[Sn]&&r.unshift(t[Sn]),e.message=function(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=u(t);if(Array.isArray(t))r=t.map(u).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let i=t[n];e.push(n+":"+("string"==typeof i?JSON.stringify(i):u(i)))}r=`{${e.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${e.replace(Dn,"\n ")}`}("\n"+e.message,r,n,i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(s,e,"R3InjectorError",this.source)}throw s}finally{Tn(i)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(u(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=p(e)))return!1;let i=k(e);const r=null==i&&e.ngModule||void 0,s=void 0===r?e:r,o=-1!==n.indexOf(s);if(void 0!==r&&(i=k(r)),null==i)return!1;if(null!=i.imports&&!o){let e;n.push(s);try{pn(i.imports,i=>{this.processInjectorType(i,t,n)&&(void 0===e&&(e=[]),e.push(i))})}finally{}if(void 0!==e)for(let t=0;t<e.length;t++){const{ngModule:n,providers:i}=e[t];pn(i,e=>this.processProvider(e,n,i||zs))}}this.injectorDefTypes.add(s);const a=_e(s)||(()=>new s);this.records.set(s,qs(a,Ys));const c=i.providers;if(null!=c&&!o){const t=e;pn(c,e=>this.processProvider(e,t,c))}return void 0!==r&&void 0!==e.providers}processProvider(e,t,n){let i=Js(e=p(e))?e:p(e&&e.provide);const r=function(e,t,n){return Gs(e)?qs(void 0,e.useValue):qs(Us(e),Ys)}(e);if(Js(e)||!0!==e.multi)this.records.get(i);else{let t=this.records.get(i);t||(t=qs(void 0,Ys,!0),t.factory=()=>On(t.multi),this.records.set(i,t)),i=e,t.multi.push(e)}this.records.set(i,r)}hydrate(e,t){var n;return t.value===Ys&&(t.value=Ns,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function Bs(e){const t=S(e),n=null!==t?t.factory:_e(e);if(null!==n)return n;if(e instanceof un)throw new Error(`Token ${u(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=gn(t,"?");throw new Error(`Can't resolve all parameters for ${u(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[T]||e[C]);if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function Us(e,t,n){let i;if(Js(e)){const t=p(e);return _e(t)||Bs(t)}if(Gs(e))i=()=>p(e.useValue);else if((r=e)&&r.useFactory)i=()=>e.useFactory(...On(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))i=()=>Cn(p(e.useExisting));else{const t=p(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return _e(t)||Bs(t);i=()=>new t(...On(e.deps))}var r;return i}function qs(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Gs(e){return null!==e&&"object"==typeof e&&xn in e}function Js(e){return"function"==typeof e}const Ks=function(e,t,n){return function(e,t=null,n=null,i){const r=Xs(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)};let Qs=(()=>{class e{static create(e,t){return Array.isArray(e)?Ks(e,t,""):Ks(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=wn,e.NULL=new Ws,e.\u0275prov=w({token:e,providedIn:"any",factory:()=>Cn(Fs)}),e.__NG_ELEMENT_ID__=-1,e})();function Zs(e,t){Dt(Fe(e)[1],Ue())}function eo(e){let t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0;const i=[e];for(;t;){let r;if(ge(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);const t=e;t.inputs=to(e.inputs),t.declaredInputs=to(e.declaredInputs),t.outputs=to(e.outputs);const n=r.hostBindings;n&&ro(e,n);const s=r.viewQuery,o=r.contentQueries;if(s&&no(e,s),o&&io(e,o),l(e.inputs,r.inputs),l(e.declaredInputs,r.declaredInputs),l(e.outputs,r.outputs),ge(r)&&r.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(r.data.animation)}}const t=r.features;if(t)for(let i=0;i<t.length;i++){const r=t[i];r&&r.ngInherit&&r(e),r===eo&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){let t=0,n=null;for(let i=e.length-1;i>=0;i--){const r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=It(r.hostAttrs,n=It(n,r.hostAttrs))}}(i)}function to(e){return e===$?{}:e===X?[]:e}function no(e,t){const n=e.viewQuery;e.viewQuery=n?(e,i)=>{t(e,i),n(e,i)}:t}function io(e,t){const n=e.contentQueries;e.contentQueries=n?(e,i,r)=>{t(e,i,r),n(e,i,r)}:t}function ro(e,t){const n=e.hostBindings;e.hostBindings=n?(e,i)=>{t(e,i),n(e,i)}:t}let so=null;function oo(){if(!so){const e=z.Symbol;if(e&&e.iterator)so=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(so=n)}}}return so}class ao{constructor(e){this.wrapped=e}static wrap(e){return new ao(e)}static unwrap(e){return ao.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof ao}}function co(e){return!!lo(e)&&(Array.isArray(e)||!(e instanceof Map)&&oo()in e)}function lo(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function uo(e,t,n){return e[t]=n}function ho(e,t){return e[t]}function fo(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function po(e,t,n,i){const r=fo(e,t,n);return fo(e,t+1,i)||r}function mo(e,t,n,i,r){const s=po(e,t,n,i);return fo(e,t+2,r)||s}function bo(e,t,n,i,r,s){const o=po(e,t,n,i);return po(e,t+2,r,s)||o}function go(e,t,n,i){const r=Xe();return fo(r,it(),t)&&(Ve(),function(e,t,n,i,r,s){const o=Ae(e,t);gs(t[11],o,s,e.value,n,i,r)}(wt(),r,e,t,n,i)),go}function _o(e,t,n,i){return fo(e,it(),n)?t+g(n)+i:Wr}function vo(e,t,n,i,r,s){const o=po(e,nt(),n,r);return rt(2),o?t+g(n)+i+g(r)+s:Wr}function yo(e,t,n,i,r,s,o,a){const c=Xe(),l=Ve(),u=e+ue,d=l.firstCreatePass?function(e,t,n,i,r,s,o,a,c){const l=t.consts,u=qr(t,e,4,o||null,Ye(l,a));ls(t,n,u,Ye(l,c)),Dt(t,u);const d=u.tViews=ss(2,u,i,r,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,l,c,t,n,i,r,s,o):l.data[u];Je(d,!1);const h=c[11].createComment("");mr(l,c,h,d),Wi(h,c),xs(c,c[u]=ys(h,c,h,d)),be(d)&&ns(l,c,d),null!=o&&is(c,d,a)}function wo(e){return Re($e.lFrame.contextLView,ue+e)}function Do(e,t=L.Default){const n=Xe();return null===n?Cn(e,t):qt(Ue(),n,p(e),t)}function So(e,t,n){const i=Xe();return fo(i,it(),t)&&cs(Ve(),wt(),i,e,t,i[11],n,!1),So}function xo(e,t,n,i,r){const s=r?"class":"style";Is(e,n,t.inputs[s],s,i)}function ko(e,t,n,i){const r=Xe(),s=Ve(),o=ue+e,a=r[11],c=r[o]=Zi(a,t,$e.lFrame.currentNamespace),l=s.firstCreatePass?function(e,t,n,i,r,s,o){const a=t.consts,c=qr(t,e,2,r,Ye(a,s));return ls(t,n,c,Ye(a,o)),null!==c.attrs&&Ps(c,c.attrs,!1),null!==c.mergedAttrs&&Ps(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(o,s,r,0,t,n,i):s.data[o];Je(l,!0);const u=l.mergedAttrs;null!==u&&Lt(a,c,u);const d=l.classes;null!==d&&xr(a,c,d);const h=l.styles;null!==h&&Sr(a,c,h),64!=(64&l.flags)&&mr(s,r,c,l),0===$e.lFrame.elementDepthCount&&Wi(c,r),$e.lFrame.elementDepthCount++,be(l)&&(ns(s,r,l),ts(s,l,r)),null!==i&&is(r,l)}function To(){let e=Ue();Ke()?Qe():(e=e.parent,Je(e,!1));const t=e;$e.lFrame.elementDepthCount--;const n=Ve();n.firstCreatePass&&(Dt(n,e),pe(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&xo(n,t,Xe(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&xo(n,t,Xe(),t.stylesWithoutHost,!1)}function Mo(e,t,n,i){ko(e,t,n,i),To()}function Co(e,t,n){const i=Xe(),r=Ve(),s=e+ue,o=r.firstCreatePass?function(e,t,n,i,r){const s=t.consts,o=Ye(s,i),a=qr(t,e,8,"ng-container",o);return null!==o&&Ps(a,o,!0),ls(t,n,a,Ye(s,r)),null!==t.queries&&t.queries.elementStart(t,a),a}(s,r,i,t,n):r.data[s];Je(o,!0);const a=i[s]=i[11].createComment("");mr(r,i,a,o),Wi(a,i),be(o)&&(ns(r,i,o),ts(r,o,i)),null!=n&&is(i,o)}function Oo(){let e=Ue();const t=Ve();Ke()?Qe():(e=e.parent,Je(e,!1)),t.firstCreatePass&&(Dt(t,e),pe(e)&&t.queries.elementEnd(e))}function Lo(e,t,n){Co(e,t,n),Oo()}function Eo(){return Xe()}function Ao(e){return!!e&&"function"==typeof e.then}function Io(e){return!!e&&"function"==typeof e.subscribe}const Ro=Io;function Po(e,t,n=!1,i){const r=Xe(),s=Ve(),o=Ue();return function(e,t,n,i,r,s,o=!1,a){const c=be(i),l=e.firstCreatePass&&Es(e),u=Ls(t);let d=!0;if(3&i.type){const h=Ae(i,t),f=a?a(h):$,p=f.target||h,m=u.length,b=a?e=>a(Le(e[i.index])).target:i.index;if(Ce(n)){let o=null;if(!a&&c&&(o=function(e,t,n,i){const r=e.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const e=r[s];if(e===n&&r[s+1]===i){const e=t[7],n=r[s+2];return e.length>n?e[n]:null}"string"==typeof e&&(s+=2)}return null}(e,t,r,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,d=!1;else{s=Wo(i,t,0,s,!1);const e=n.listen(f.name||p,r,s);u.push(s,e),l&&l.push(r,b,m,m+1)}}else s=Wo(i,t,0,s,!0),p.addEventListener(r,s,o),u.push(s),l&&l.push(r,b,m,o)}else s=Wo(i,t,0,s,!1);const h=i.outputs;let f;if(d&&null!==h&&(f=h[r])){const e=f.length;if(e)for(let n=0;n<e;n+=2){const e=t[f[n]][f[n+1]].subscribe(s),o=u.length;u.push(s,e),l&&l.push(r,i.index,o,-(o+1))}}}(s,r,r[11],o,e,t,n,i),Po}function Fo(e,t,n,i){try{return!1!==n(i)}catch(r){return As(e,r),!1}}function Wo(e,t,n,i,r){return function n(s){if(s===Function)return i;const o=2&e.flags?Pe(e.index,t):t;0==(32&t[2])&&ks(o);let a=Fo(t,0,i,s),c=n.__ngNextListenerFn__;for(;c;)a=Fo(t,0,c,s)&&a,c=c.__ngNextListenerFn__;return r&&!1===a&&(s.preventDefault(),s.returnValue=!1),a}}function jo(e=1){return function(e){return($e.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,$e.lFrame.contextLView))[8]}(e)}function Yo(e,t){let n=null;const i=function(e){const t=e.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(e);for(let r=0;r<t.length;r++){const s=t[r];if("*"!==s){if(null===i?Ir(e,s,!0):Rr(i,s))return r}else n=r}return n}function No(e){const t=Xe()[16][6];if(!t.projection){const n=t.projection=gn(e?e.length:1,null),i=n.slice();let r=t.child;for(;null!==r;){const t=e?Yo(r,e):0;null!==t&&(i[t]?i[t].projectionNext=r:n[t]=r,i[t]=r),r=r.next}}}function zo(e,t=0,n){const i=Xe(),r=Ve(),s=qr(r,ue+e,16,null,n||null);null===s.projection&&(s.projection=t),Qe(),64!=(64&s.flags)&&function(e,t,n){Dr(t[11],0,t,n,rr(e,n,t),ur(n.parent||t[6],n,t))}(r,i,s)}function $o(e,t,n){return Ho(e,"",t,"",n),$o}function Ho(e,t,n,i,r){const s=Xe(),o=_o(s,t,n,i);return o!==Wr&&cs(Ve(),wt(),s,e,o,s[11],r,!1),Ho}function Xo(e,t,n,i,r,s,o){const a=Xe(),c=vo(a,t,n,i,r,s);return c!==Wr&&cs(Ve(),wt(),a,e,c,a[11],o,!1),Xo}function Vo(e,t,n,i,r){const s=e[n+1],o=null===t;let a=i?zr(s):Hr(s),c=!1;for(;0!==a&&(!1===c||o);){const n=e[a+1];Bo(e[a],t)&&(c=!0,e[a+1]=i?Vr(n):$r(n)),a=i?zr(n):Hr(n)}c&&(e[n+1]=i?$r(s):Vr(s))}function Bo(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&yn(e,t)>=0}const Uo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function qo(e){return e.substring(Uo.key,Uo.keyEnd)}function Go(e,t){const n=Uo.textEnd;return n===t?-1:(t=Uo.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Uo.key=t,n),Jo(e,t,n))}function Jo(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Ko(e,t,n){return ta(e,t,n,!1),Ko}function Qo(e,t){return ta(e,t,null,!0),Qo}function Zo(e){na(_n,ea,e,!0)}function ea(e,t){for(let n=function(e){return function(e){Uo.key=0,Uo.keyEnd=0,Uo.value=0,Uo.valueEnd=0,Uo.textEnd=e.length}(e),Go(e,Jo(e,0,Uo.textEnd))}(t);n>=0;n=Go(t,n))_n(e,qo(t),!0)}function ta(e,t,n,i){const r=Xe(),s=Ve(),o=rt(2);s.firstUpdatePass&&ra(s,e,o,i),t!==Wr&&fo(r,o,t)&&aa(s,s.data[vt()],r,r[11],e,r[o+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=u(Un(e)))),e}(t,n),i,o)}function na(e,t,n,i){const r=Ve(),s=rt(2);r.firstUpdatePass&&ra(r,null,s,i);const o=Xe();if(n!==Wr&&fo(o,s,n)){const a=r.data[vt()];if(ua(a,i)&&!ia(r,s)){let e=i?a.classesWithoutHost:a.stylesWithoutHost;null!==e&&(n=d(e,n||"")),xo(r,a,o,n,i)}else!function(e,t,n,i,r,s,o,a){r===Wr&&(r=H);let c=0,l=0,u=0<r.length?r[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const h=c<r.length?r[c+1]:void 0,f=l<s.length?s[l+1]:void 0;let p,m=null;u===d?(c+=2,l+=2,h!==f&&(m=d,p=f)):null===d||null!==u&&u<d?(c+=2,m=u):(l+=2,m=d,p=f),null!==m&&aa(e,t,n,i,m,p,o,a),u=c<r.length?r[c]:null,d=l<s.length?s[l]:null}}(r,a,o,o[11],o[s+1],o[s+1]=function(e,t,n){if(null==n||""===n)return H;const i=[],r=Un(n);if(Array.isArray(r))for(let s=0;s<r.length;s++)e(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&e(i,s,r[s]);else"string"==typeof r&&t(i,r);return i}(e,t,n),i,s)}}function ia(e,t){return t>=e.expandoStartIndex}function ra(e,t,n,i){const r=e.data;if(null===r[n+1]){const s=r[vt()],o=ia(e,n);ua(s,i)&&null===t&&!o&&(t=!1),t=function(e,t,n,i){const r=ct(e);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=oa(n=sa(null,e,t,n,i),t.attrs,i),s=null);else{const o=t.directiveStylingLast;if(-1===o||e[o]!==r)if(n=sa(r,e,t,n,i),null===s){let n=function(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==Hr(i))return e[zr(i)]}(e,t,i);void 0!==n&&Array.isArray(n)&&(n=sa(null,e,t,n[1],i),n=oa(n,t.attrs,i),function(e,t,n,i){e[zr(n?t.classBindings:t.styleBindings)]=i}(e,t,i,n))}else s=function(e,t,n){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<r;s++)i=oa(i,e[s].hostAttrs,n);return oa(i,t.attrs,n)}(e,t,i)}return void 0!==s&&(i?t.residualClasses=s:t.residualStyles=s),n}(r,s,t,i),function(e,t,n,i,r,s){let o=s?t.classBindings:t.styleBindings,a=zr(o),c=Hr(o);e[i]=n;let l,u=!1;if(Array.isArray(n)){const e=n;l=e[1],(null===l||yn(e,l)>0)&&(u=!0)}else l=n;if(r)if(0!==c){const t=zr(e[a+1]);e[i+1]=Nr(t,a),0!==t&&(e[t+1]=Xr(e[t+1],i)),e[a+1]=131071&e[a+1]|i<<17}else e[i+1]=Nr(a,0),0!==a&&(e[a+1]=Xr(e[a+1],i)),a=i;else e[i+1]=Nr(c,0),0===a?a=i:e[c+1]=Xr(e[c+1],i),c=i;u&&(e[i+1]=$r(e[i+1])),Vo(e,l,i,!0),Vo(e,l,i,!1),function(e,t,n,i,r){const s=r?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&yn(s,t)>=0&&(n[i+1]=Vr(n[i+1]))}(t,l,e,i,s),o=Nr(a,c),s?t.classBindings=o:t.styleBindings=o}(r,s,t,n,o,i)}}function sa(e,t,n,i,r){let s=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(s=t[a],i=oa(i,s.hostAttrs,r),s!==e);)a++;return null!==e&&(n.directiveStylingLast=a),i}function oa(e,t,n){const i=n?1:2;let r=-1;if(null!==t)for(let s=0;s<t.length;s++){const o=t[s];"number"==typeof o?r=o:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),_n(e,o,!!n||t[++s]))}return void 0===e?null:e}function aa(e,t,n,i,r,s,o,a){if(!(3&t.type))return;const c=e.data,l=c[a+1];la(1==(1&l)?ca(c,t,n,r,Hr(l),o):void 0)||(la(s)||2==(2&l)&&(s=ca(c,null,n,r,a,o)),function(e,t,n,i,r){const s=Ce(e);if(t)r?s?e.addClass(n,i):n.classList.add(i):s?e.removeClass(n,i):n.classList.remove(i);else{let t=-1===i.indexOf("-")?void 0:$i.DashCase;if(null==r)s?e.removeStyle(n,i,t):n.style.removeProperty(i);else{const o="string"==typeof r&&r.endsWith("!important");o&&(r=r.slice(0,-10),t|=$i.Important),s?e.setStyle(n,i,r,t):n.style.setProperty(i,r,o?"important":"")}}}(i,o,Ee(vt(),n),r,s))}function ca(e,t,n,i,r,s){const o=null===t;let a;for(;r>0;){const t=e[r],s=Array.isArray(t),c=s?t[1]:t,l=null===c;let u=n[r+1];u===Wr&&(u=l?H:void 0);let d=l?vn(u,i):c===i?u:void 0;if(s&&!la(d)&&(d=vn(t,i)),la(d)&&(a=d,o))return a;const h=e[r+1];r=o?zr(h):Hr(h)}if(null!==t){let e=s?t.residualClasses:t.residualStyles;null!=e&&(a=vn(e,i))}return a}function la(e){return void 0!==e}function ua(e,t){return 0!=(e.flags&(t?16:32))}function da(e,t=""){const n=Xe(),i=Ve(),r=e+ue,s=i.firstCreatePass?qr(i,r,1,t,null):i.data[r],o=n[r]=Ji(n[11],t);mr(i,n,o,s),Je(s,!1)}function ha(e){return fa("",e,""),ha}function fa(e,t,n){const i=Xe(),r=_o(i,e,t,n);return r!==Wr&&Rs(i,vt(),r),fa}function pa(e,t,n,i,r){const s=Xe(),o=vo(s,e,t,n,i,r);return o!==Wr&&Rs(s,vt(),o),pa}function ma(e,t,n,i,r,s,o){const a=Xe(),c=function(e,t,n,i,r,s,o,a){const c=mo(e,nt(),n,r,o);return rt(3),c?t+g(n)+i+g(r)+s+g(o)+a:Wr}(a,e,t,n,i,r,s,o);return c!==Wr&&Rs(a,vt(),c),ma}function ba(e,t,n){na(_n,ea,_o(Xe(),e,t,n),!0)}function ga(e,t,n,i,r){na(_n,ea,vo(Xe(),e,t,n,i,r),!0)}function _a(e,t,n,i,r,s,o,a,c){na(_n,ea,function(e,t,n,i,r,s,o,a,c,l){const u=bo(e,nt(),n,r,o,c);return rt(4),u?t+g(n)+i+g(r)+s+g(o)+a+g(c)+l:Wr}(Xe(),e,t,n,i,r,s,o,a,c),!0)}function va(e,t,n){const i=Xe();return fo(i,it(),t)&&cs(Ve(),wt(),i,e,t,i[11],n,!0),va}function ya(e,t,n){const i=Xe();if(fo(i,it(),t)){const r=Ve(),s=wt();cs(r,s,i,e,t,function(e,t,n){return(null===e||ge(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}(ct(r.data),s,i),n,!0)}return ya}const wa=void 0;var Da=["en",[["a","p"],["AM","PM"],wa],[["AM","PM"],wa,wa],[["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"]],wa,[["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"]],wa,[["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}",wa,"{1} 'at' {0}",wa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let Sa={};function xa(e,t,n){"string"!=typeof t&&(n=t,t=e[Oa.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Sa[t]=e,n&&(Sa[t][Oa.ExtraData]=n)}function ka(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Ca(t);if(n)return n;const i=t.split("-")[0];if(n=Ca(i),n)return n;if("en"===i)return Da;throw new Error(`Missing locale data for the locale "${e}".`)}function Ta(e){return ka(e)[Oa.CurrencyCode]||null}function Ma(e){return ka(e)[Oa.PluralCase]}function Ca(e){return e in Sa||(Sa[e]=z.ng&&z.ng.common&&z.ng.common.locales&&z.ng.common.locales[e]),Sa[e]}var Oa=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});const La=["zero","one","two","few","many"],Ea="en-US",Aa={marker:"element"},Ia={marker:"ICU"};var Ra=function(e){return e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT",e}({});let Pa=Ea;function Fa(e){var t;null==(t=e)&&y("Expected localeId to be defined",t,null,"!="),"string"==typeof e&&(Pa=e.toLowerCase().replace(/_/g,"-"))}function Wa(e,t,n){const i=t.insertBeforeIndex,r=Array.isArray(i)?i[0]:i;return null===r?dr(e,0,n):Le(n[r])}function ja(e,t,n,i,r){const s=t.insertBeforeIndex;if(Array.isArray(s)){let o=i,a=null;if(3&t.type||(a=o,o=r),null!==o&&0==(2&t.flags))for(let t=1;t<s.length;t++)or(e,o,n[s[t]],a,!1)}}function Ya(e,t){if(e.push(t),e.length>1)for(let n=e.length-2;n>=0;n--){const i=e[n];Na(i)||za(i,t)&&null===$a(i)&&Ha(i,t.index)}}function Na(e){return!(64&e.type)}function za(e,t){return Na(t)||e.index>t.index}function $a(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function Ha(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(pr(Wa,ja),e.insertBeforeIndex=t)}function Xa(e,t){const n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function Va(e,t,n){const i=Gr(e,n,64,null,null);return Ya(t,i),i}function Ba(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}let Ua=0,qa=0;function Ga(e,t,n,i){const r=n[11];let s,o=null;for(let a=0;a<t.length;a++){const c=t[a];if("string"==typeof c){const e=t[++a];null===n[e]&&(n[e]=Ji(r,c))}else if("number"==typeof c)switch(1&c){case 0:const l=c>>>17;let u,d;if(null===o&&(o=l,s=lr(r,i)),l===o?(u=i,d=s):(u=null,d=Le(n[l])),null!==d){const t=(131070&c)>>>1;or(r,d,n[t],u,!1);const i=Xa(e,t);if(null!==i&&"object"==typeof i){const t=Ba(i,n);null!==t&&Ga(e,i.create[t],n,n[i.anchorIdx])}}break;case 1:const h=t[++a],f=t[++a];gs(r,Ee(c>>>1,n),null,null,h,f,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${c}"`)}else switch(c){case Ia:const e=t[++a],i=t[++a];null===n[i]&&Wi(n[i]=Qi(r,e),n);break;case Aa:const s=t[++a],o=t[++a];null===n[o]&&Wi(n[o]=Zi(r,s,null),n)}}}function Ja(e,t,n,i,r){for(let s=0;s<n.length;s++){const o=n[s],a=n[++s];if(o&r){let r="";for(let o=s+1;o<=s+a;o++){const s=n[o];if("string"==typeof s)r+=s;else if("number"==typeof s)if(s<0)r+=g(t[i-s]);else{const a=s>>>2;switch(3&s){case 1:const s=n[++o],c=n[++o],l=e.data[a];"string"==typeof l?gs(t[11],t[a],null,l,s,r,c):cs(e,l,t,s,r,t[11],c,!1);break;case 0:const u=t[a];null!==u&&Ki(t[11],u,r);break;case 2:Qa(e,Xa(e,a),t,r);break;case 3:Ka(e,Xa(e,a),i,t)}}}}else{const r=n[s+1];if(r>0&&3==(3&r)){const n=Xa(e,r>>>2);t[n.currentCaseLViewIndex]<0&&Ka(e,n,i,t)}}s+=a}}function Ka(e,t,n,i){let r=i[t.currentCaseLViewIndex];if(null!==r){let s=Ua;r<0&&(r=i[t.currentCaseLViewIndex]=~r,s=-1),Ja(e,i,t.update[r],n,s)}}function Qa(e,t,n,i){const r=function(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const i=function(e,t){const n=Ma(t)(parseInt(e,10)),i=La[n];return void 0!==i?i:"other"}(t,Pa);n=e.cases.indexOf(i),-1===n&&"other"!==i&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,i);if(Ba(t,n)!==r&&(Za(e,t,n),n[t.currentCaseLViewIndex]=null===r?null:~r,null!==r)){const i=n[t.anchorIdx];i&&Ga(e,t.create[r],n,i)}}function Za(e,t,n){let i=Ba(t,n);if(null!==i){const r=t.remove[i];for(let t=0;t<r.length;t++){const i=r[t];if(i>0){const e=Ee(i,n);null!==e&&vr(n[11],e)}else Za(e,Xa(e,~i),n)}}}const ec=/\ufffd(\d+):?\d*\ufffd/gi,tc=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,nc=/\ufffd(\d+)\ufffd/,ic=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,rc=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,sc=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,oc=/\uE500/g;function ac(e,t,n,i,r,s,o){const a=Jr(e,i,1,null);let c=a<<Ra.SHIFT,l=Ge();t===l&&(l=null),null===l&&(c|=Ra.APPEND_EAGERLY),o&&(c|=Ra.COMMENT,void 0===Hi&&(Hi=function(){const e=[];let t,n,i=-1;function r(e,t){i=0;const r=Ba(e,t);n=null!==r?e.remove[r]:X}function s(){if(i<n.length){const o=n[i++];return o>0?t[o]:(e.push(i,n),r(t[1].data[~o],t),s())}return 0===e.length?null:(n=e.pop(),i=e.pop(),s())}return function(n,i){for(t=i;e.length;)e.pop();return r(n.value,i),s}}())),r.push(c,null===s?"":s);const u=Gr(e,a,o?32:1,null===s?"":s,null);Ya(n,u);const d=u.index;return Je(u,!1),null!==l&&t!==l&&function(e,t){let n=e.insertBeforeIndex;var i;null===n?(pr(Wa,ja),n=e.insertBeforeIndex=[null,t]):("Expecting array here",(i=Array.isArray(n))!=!0&&y("Expecting array here",i,true,"=="),n.push(t))}(l,d),u}function cc(e,t,n,i,r,s,o){const a=o.match(ec),c=ac(e,t,n,s,i,a?null:o,!1);a&&lc(r,o,c.index,null,0,null)}function lc(e,t,n,i,r,s){const o=e.length,a=o+1;e.push(null,null);const c=o+2,l=t.split(ec);let u=0;for(let d=0;d<l.length;d++){const t=l[d];if(1&d){const n=r+parseInt(t,10);e.push(-1-n),u|=dc(n)}else""!==t&&e.push(t)}return e.push(n<<2|(i?1:0)),i&&e.push(i,s),e[o]=u,e[a]=e.length-c,u}function uc(e){let t=0;for(let n=0;n<e.length;n++){const i=e[n];"number"==typeof i&&i<0&&t++}return t}function dc(e){return 1<<Math.min(e,31)}function hc(e){let t,n,i="",r=0,s=!1;for(;null!==(t=rc.exec(e));)s?t[0]===`\ufffd/*${n}\ufffd`&&(r=t.index,s=!1):(i+=e.substring(r,t.index+t[0].length),n=t[1],s=!0);return i+=e.substr(r),i}function fc(e,t,n,i,r,s){let o=0;const a={type:r.type,currentCaseLViewIndex:Jr(e,t,1,null),anchorIdx:s,cases:[],create:[],remove:[],update:[]};!function(e,t,n){e.push(dc(t.mainBinding),2,-1-t.mainBinding,n<<2|2)}(n,r,s),function(e,t,n){const i=e.data[t];null===i?e.data[t]=n:i.value=n}(e,s,a);const c=r.values;for(let l=0;l<c.length;l++){const s=c[l],u=[];for(let e=0;e<s.length;e++){const t=s[e];if("string"!=typeof t){const n=u.push(t)-1;s[e]=`\x3c!--\ufffd${n}\ufffd--\x3e`}}o=bc(e,a,t,n,i,r.cases[l],s.join(""),u)|o}o&&function(e,t,n){e.push(t,1,n<<2|3)}(n,o,s)}function pc(e){const t=[],n=[];let i=1,r=0;const s=mc(e=e.replace(ic,function(e,t,n){return i="select"===n?0:1,r=parseInt(t.substr(1),10),""}));for(let o=0;o<s.length;){let e=s[o++].trim();1===i&&(e=e.replace(/\s*(?:=)?(\w+)\s*/,"$1")),e.length&&t.push(e);const r=mc(s[o++]);t.length>n.length&&n.push(r)}return{type:i,mainBinding:r,cases:t,values:n}}function mc(e){if(!e)return[];let t=0;const n=[],i=[],r=/[{}]/g;let s;for(r.lastIndex=0;s=r.exec(e);){const r=s.index;if("}"==s[0]){if(n.pop(),0==n.length){const n=e.substring(t,r);ic.test(n)?i.push(pc(n)):i.push(n),t=r+1}}else{if(0==n.length){const n=e.substring(t,r);i.push(n),t=r+1}n.push("{")}}const o=e.substring(t);return i.push(o),i}function bc(e,t,n,i,r,s,o,a){const c=[],l=[],u=[];t.cases.push(s),t.create.push(c),t.remove.push(l),t.update.push(u);const d=ti(Me()).getInertBodyElement(o),h=ki(d)||d;return h?gc(e,t,n,i,c,l,u,h,r,a,0):0}function gc(e,t,n,i,r,s,o,a,c,l,u){let d=0,h=a.firstChild;for(;h;){const a=Jr(e,n,1,null);switch(h.nodeType){case Node.ELEMENT_NODE:const f=h,p=f.tagName.toLowerCase();if(pi.hasOwnProperty(p)){yc(r,Aa,p,c,a),e.data[a]=p;const m=f.attributes;for(let e=0;e<m.length;e++){const t=m.item(e),n=t.name.toLowerCase();t.value.match(ec)?gi.hasOwnProperty(n)&&lc(o,t.value,a,t.name,0,mi[n]?oi:bi[n]?ai:null):wc(r,a,t)}d=gc(e,t,n,i,r,s,o,h,a,l,u+1)|d,_c(s,a,u)}break;case Node.TEXT_NODE:const m=h.textContent||"",b=m.match(ec);yc(r,null,b?"":m,c,a),_c(s,a,u),b&&(d=lc(o,m,a,null,0,null)|d);break;case Node.COMMENT_NODE:const g=nc.exec(h.textContent||"");if(g){const t=l[parseInt(g[1],10)];yc(r,Ia,"",c,a),fc(e,n,i,c,t,a),vc(s,a,u)}}h=h.nextSibling}return d}function _c(e,t,n){0===n&&e.push(t)}function vc(e,t,n){0===n&&(e.push(~t),e.push(t))}function yc(e,t,n,i,r){null!==t&&e.push(t),e.push(n,r,0|i<<17|r<<1)}function wc(e,t,n){e.push(t<<1|1,n.name,n.value)}const Dc=/\[(\ufffd.+?\ufffd?)\]/,Sc=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,xc=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,kc=/{([A-Z0-9_]+)}/g,Tc=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,Mc=/\/\*/,Cc=/\d+\:(\d+)/;function Oc(e,t,n=-1){const i=Ve(),r=Xe(),s=ue+e,o=Ye(i.consts,t),a=Ge();i.firstCreatePass&&function(e,t,n,i,r,s){const o=Ge(),a=[],c=[],l=[[]],u=(d=r=function(e,t){if(function(e){return-1===e}(t))return hc(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,i=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return hc(e.substring(n,i))}}(r,s),d.replace(oc," ")).split(sc);var d;for(let h=0;h<u.length;h++){let i=u[h];if(0==(1&h)){const s=mc(i);for(let i=0;i<s.length;i++){let u=s[i];if(0==(1&i)){const t=u;""!==t&&cc(e,o,l[0],a,c,n,t)}else{const i=u;if("object"!=typeof i)throw new Error(`Unable to parse ICU expression in "${r}" message.`);fc(e,n,c,t,i,ac(e,o,l[0],n,a,"",!0).index)}}}else{const t=47===i.charCodeAt(0),n=(i.charCodeAt(t?1:0),ue+Number.parseInt(i.substring(t?2:1)));if(t)l.shift(),Je(Ge(),!1);else{const t=Va(e,l[0],n);l.unshift([]),Je(t,!0)}}}e.data[i]={create:a,update:c}}(i,null===a?0:a.index,r,s,o,n);const c=i.data[s],l=sr(i,a===r[6]?null:a,r);!function(e,t,n,i){const r=e[11];for(let s=0;s<t.length;s++){const o=t[s++],a=t[s],c=(o&Ra.COMMENT)===Ra.COMMENT,l=(o&Ra.APPEND_EAGERLY)===Ra.APPEND_EAGERLY,u=o>>>Ra.SHIFT;let d=e[u];null===d&&(d=e[u]=c?r.createComment(a):Ji(r,a)),l&&null!==n&&or(r,n,d,i,!1)}}(r,c.create,l,a&&8&a.type?r[a.index]:null),st(!0)}function Lc(){st(!1)}function Ec(e,t,n){Oc(e,t,n),Lc()}function Ac(e,t){const n=Ve(),i=Ye(n.consts,t);!function(e,t,n){const i=Ue().index,r=[];if(e.firstCreatePass&&null===e.data[t]){for(let e=0;e<n.length;e+=2){const t=n[e],s=n[e+1];if(""!==s){if(tc.test(s))throw new Error(`ICU expressions are not supported in attributes. Message: "${s}".`);lc(r,s,i,t,uc(r),null)}}e.data[t]=r}}(n,e+ue,i)}function Ic(e){return fo(Xe(),it(),e)&&(Ua|=1<<Math.min(qa,31)),qa++,Ic}function Rc(e){!function(e,t,n){if(qa>0){const i=e.data[n];Ja(e,t,Array.isArray(i)?i:i.update,nt()-qa-1,Ua)}Ua=0,qa=0}(Ve(),Xe(),e+ue)}function Pc(e,t={}){return function(e,t={}){let n=e;if(Dc.test(e)){const e={},t=[0];n=n.replace(Sc,(n,i,r)=>{const s=i||r,o=e[s]||[];if(o.length||(s.split("|").forEach(e=>{const t=e.match(Cc),n=t?parseInt(t[1],10):0,i=Mc.test(e);o.push([n,i,e])}),e[s]=o),!o.length)throw new Error(`i18n postprocess: unmatched placeholder - ${s}`);const a=t[t.length-1];let c=0;for(let e=0;e<o.length;e++)if(o[e][0]===a){c=e;break}const[l,u,d]=o[c];return u?t.pop():a!==l&&t.push(l),o.splice(c,1),d})}return Object.keys(t).length?(n=n.replace(xc,(e,n,i,r,s,o)=>t.hasOwnProperty(i)?`${n}${t[i]}${o}`:e),n=n.replace(kc,(e,n)=>t.hasOwnProperty(n)?t[n]:e),n=n.replace(Tc,(e,n)=>{if(t.hasOwnProperty(n)){const i=t[n];if(!i.length)throw new Error(`i18n postprocess: unmatched ICU - ${e} with key: ${n}`);return i.shift()}return e}),n):n}(e,t)}function Fc(e,t,n,i,r){if(e=p(e),Array.isArray(e))for(let s=0;s<e.length;s++)Fc(e[s],t,n,i,r);else{const s=Ve(),o=Xe();let a=Js(e)?e:p(e.provide),c=Us(e);const l=Ue(),u=1048575&l.providerIndexes,d=l.directiveStart,h=l.providerIndexes>>20;if(Js(e)||!e.multi){const i=new Ot(c,r,Do),f=Yc(a,t,r?u:u+h,d);-1===f?(Vt(zt(l,o),s,a),Wc(s,e,t.length),t.push(a),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(i),o.push(i)):(n[f]=i,o[f]=i)}else{const f=Yc(a,t,u+h,d),p=Yc(a,t,u,u+h),m=f>=0&&n[f],b=p>=0&&n[p];if(r&&!b||!r&&!m){Vt(zt(l,o),s,a);const u=function(e,t,n,i,r){const s=new Ot(e,n,Do);return s.multi=[],s.index=t,s.componentProviders=0,jc(s,r,i&&!n),s}(r?zc:Nc,n.length,r,i,c);!r&&b&&(n[p].providerFactory=u),Wc(s,e,t.length,0),t.push(a),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(u),o.push(u)}else Wc(s,e,f>-1?f:p,jc(n[r?p:f],c,!r&&i));!r&&i&&b&&n[p].componentProviders++}}}function Wc(e,t,n,i){const r=Js(t);if(r||t.useClass){const s=(t.useClass||t).prototype.ngOnDestroy;if(s){const o=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){const e=o.indexOf(n);-1===e?o.push(n,[i,s]):o[e+1].push(i,s)}else o.push(n,s)}}}function jc(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Yc(e,t,n,i){for(let r=n;r<i;r++)if(t[r]===e)return r;return-1}function Nc(e,t,n,i){return $c(this.multi,[])}function zc(e,t,n,i){const r=this.multi;let s;if(this.providerFactory){const e=this.providerFactory.componentProviders,t=Zt(n,n[1],this.providerFactory.index,i);s=t.slice(0,e),$c(r,s);for(let n=e;n<t.length;n++)s.push(t[n])}else s=[],$c(r,s);return s}function $c(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function Hc(e,t=[]){return n=>{n.providersResolver=(n,i)=>function(e,t,n){const i=Ve();if(i.firstCreatePass){const r=ge(e);Fc(n,i.data,i.blueprint,r,!0),Fc(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}class Xc{}class Vc{}class Bc{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${u(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(e)}}let Uc=(()=>{class e{}return e.NULL=new Bc,e})();function qc(...e){}function Gc(e,t){return new Kc(Ae(e,t))}const Jc=function(){return Gc(Ue(),Xe())};let Kc=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=Jc,e})();function Qc(e){return e instanceof Kc?e.nativeElement:e}class Zc{}let el=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>tl(),e})();const tl=function(){const e=Xe(),t=Pe(Ue().index,e);return function(e){return e[11]}(he(t)?t:e)};let nl=(()=>{class e{}return e.\u0275prov=w({token:e,providedIn:"root",factory:()=>null}),e})();class il{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const rl=new il("11.2.14");class sl{constructor(){}supports(e){return co(e)}create(e){return new al(e)}}const ol=(e,t)=>t;class al{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||ol}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,i=0,r=null;for(;t||n;){const s=!n||t&&t.currentIndex<dl(n,i,r)?t:n,o=dl(s,i,r),a=s.currentIndex;if(s===n)i--,n=n._nextRemoved;else if(t=t._next,null==s.previousIndex)i++;else{r||(r=[]);const e=o-i,t=a-i;if(e!=t){for(let n=0;n<e;n++){const i=n<r.length?r[n]:r[n]=0,s=i+n;t<=s&&s<e&&(r[n]=i+1)}r[s.previousIndex]=t-e}}o!==a&&e(s,o,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!co(e))throw new Error(`Error trying to diff '${u(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,i,r=this._itHead,s=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],i=this._trackByFn(t,n),null!==r&&Object.is(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,n,i,t)),Object.is(r.item,n)||this._addIdentityChange(r,n)):(r=this._mismatch(r,n,i,t),s=!0),r=r._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[oo()]();let i;for(;!(i=n.next()).done;)t(i.value)}}(e,e=>{i=this._trackByFn(t,e),null!==r&&Object.is(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,e,i,t)),Object.is(r.item,e)||this._addIdentityChange(r,e)):(r=this._mismatch(r,e,i,t),s=!0),r=r._next,t++}),this.length=t;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,i){let r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,i)):e=this._addAfter(new cl(t,n),r,i),e}_verifyReinsertion(e,t,n,i){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const i=e._prevRemoved,r=e._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new ul),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ul),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class cl{constructor(e,t){this.item=e,this.trackById=t,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}}class ll{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(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,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class ul{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new ll,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function dl(e,t,n){const i=e.previousIndex;if(null===i)return i;let r=0;return n&&i<n.length&&(r=n[i]),i+t+r}class hl{constructor(){}supports(e){return e instanceof Map||lo(e)}create(){return new fl}}class fl{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||lo(e)))throw new Error(`Error trying to diff '${u(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const i=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,i)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}const n=new pl(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class pl{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 ml(){return new bl([new sl])}let bl=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||ml()),deps:[[e,new In,new An]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.\u0275prov=w({token:e,providedIn:"root",factory:ml}),e})();function gl(){return new _l([new hl])}let _l=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||gl()),deps:[[e,new In,new An]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=w({token:e,providedIn:"root",factory:gl}),e})();function vl(e,t,n,i,r=!1){for(;null!==n;){const s=t[n.index];if(null!==s&&i.push(Le(s)),fe(s))for(let e=de;e<s.length;e++){const t=s[e],n=t[1].firstChild;null!==n&&vl(t[1],t,n,i)}const o=n.type;if(8&o)vl(e,t,n.child,i);else if(32&o){const e=Xi(n,t);let r;for(;r=e();)i.push(r)}else if(16&o){const e=gr(t,n);if(Array.isArray(e))i.push(...e);else{const n=Vi(t[16]);vl(n[1],n,e,i,!0)}}n=r?n.projectionNext:n.next}return i}class yl{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return vl(t,e,t.firstChild,[])}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(fe(e)){const t=e[8],n=t?t.indexOf(this):-1;n>-1&&(tr(e,n),bn(t,n))}this._attachedToViewContainer=!1}nr(this._lView[1],this._lView)}onDestroy(e){os(this._lView[1],this._lView,null,e)}markForCheck(){ks(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Ts(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){et(!0);try{Ts(e,t,n)}finally{et(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var e;this._appRef=null,wr(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class wl extends yl{constructor(e){super(e),this._view=e}detectChanges(){Ms(this._view)}checkNoChanges(){!function(e){et(!0);try{Ms(e)}finally{et(!1)}}(this._view)}get context(){return null}}const Dl=xl;let Sl=(()=>{class e{}return e.__NG_ELEMENT_ID__=Dl,e.__ChangeDetectorRef__=!0,e})();function xl(e=!1){return function(e,t,n){if(!n&&me(e)){const n=Pe(e.index,t);return new yl(n,n)}return 47&e.type?new yl(t[16],t):null}(Ue(),Xe(),e)}const kl=[new hl],Tl=new bl([new sl]),Ml=new _l(kl),Cl=function(){return Al(Ue(),Xe())};let Ol=(()=>{class e{}return e.__NG_ELEMENT_ID__=Cl,e})();const Ll=Ol,El=class extends Ll{constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=Ur(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),Kr(t,n,e),new yl(n)}};function Al(e,t){return 4&e.type?new El(t,e,Gc(e,t)):null}class Il{}class Rl{}const Pl=function(){return zl(Ue(),Xe())};let Fl=(()=>{class e{}return e.__NG_ELEMENT_ID__=Pl,e})();const Wl=Fl,jl=class extends Wl{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return Gc(this._hostTNode,this._hostLView)}get injector(){return new nn(this._hostTNode,this._hostLView)}get parentInjector(){const e=Xt(this._hostTNode,this._hostLView);if(Pt(e)){const t=Wt(e,this._hostLView),n=Ft(e);return new nn(t[1].data[n+8],t)}return new nn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=Yl(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-de}createEmbeddedView(e,t,n){const i=e.createEmbeddedView(t||{});return this.insert(i,n),i}createComponent(e,t,n,i,r){const s=n||this.parentInjector;if(!r&&null==e.ngModule&&s){const e=s.get(Il,null);e&&(r=e)}const o=e.create(s,i,void 0,r);return this.insert(o.hostView,t),o}insert(e,t){const n=e._lView,i=n[1];if(fe(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],i=new jl(t,t[6],t[3]);i.detach(i.indexOf(e))}}const r=this._adjustIndex(t),s=this._lContainer;!function(e,t,n,i){const r=de+i,s=n.length;i>0&&(n[r-1][4]=t),i<s-de?(t[4]=n[r],mn(n,de+i,t)):(n.push(t),t[4]=null),t[3]=n;const o=t[17];null!==o&&n!==o&&function(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(o,t);const a=t[19];null!==a&&a.insertView(e),t[2]|=128}(i,n,s,r);const o=_r(r,s),a=n[11],c=lr(a,s[7]);return null!==c&&function(e,t,n,i,r,s){i[0]=r,i[6]=t,wr(e,i,n,1,r,s)}(i,s[6],a,n,c,o),e.attachToViewContainerRef(),mn(Nl(s),r,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=Yl(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),n=tr(this._lContainer,t);n&&(bn(Nl(this._lContainer),t),nr(n[1],n))}detach(e){const t=this._adjustIndex(e,-1),n=tr(this._lContainer,t);return n&&null!=bn(Nl(this._lContainer),t)?new yl(n):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function Yl(e){return e[8]}function Nl(e){return e[8]||(e[8]=[])}function zl(e,t){let n;const i=t[e.index];if(fe(i))n=i;else{let r;if(8&e.type)r=Le(i);else{const n=t[11];r=n.createComment("");const i=Ae(e,t);or(n,lr(n,i),r,function(e,t){return Ce(e)?e.nextSibling(t):t.nextSibling}(n,i),!1)}t[e.index]=n=ys(i,t,r,e),xs(t,n)}return new jl(n,e,t)}const $l={};class Hl extends Uc{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=ce(e);return new Bl(t,this.ngModule)}}function Xl(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const Vl=new un("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>ji});class Bl extends Vc{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(Fr).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Xl(this.componentDef.inputs)}get outputs(){return Xl(this.componentDef.outputs)}create(e,t,n,i){const r=(i=i||this.ngModule)?function(e,t){return{get:(n,i,r)=>{const s=e.get(n,$l,r);return s!==$l||i===$l?s:t.get(n,i,r)}}}(e,i.injector):e,s=r.get(Zc,Oe),o=r.get(nl,null),a=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",l=n?function(e,t,n){if(Ce(e))return e.selectRootElement(t,n===F.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Zi(s.createRenderer(null,this.componentDef),c,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),u=this.componentDef.onPush?576:528,d={components:[],scheduler:ji,clean:Os,playerHandler:null,flags:0},h=ss(0,null,null,1,0,null,null,null,null,null),f=Ur(null,h,d,u,null,null,s,a,o,r);let p,m;ft(f);try{const e=function(e,t,n,i,r,s){const o=n[1];n[20]=e;const a=qr(o,20,2,"#host",null),c=a.mergedAttrs=t.hostAttrs;null!==c&&(Ps(a,c,!0),null!==e&&(Lt(r,e,c),null!==a.classes&&xr(r,e,a.classes),null!==a.styles&&Sr(r,e,a.styles)));const l=i.createRenderer(e,t),u=Ur(n,rs(t),null,t.onPush?64:16,n[20],a,i,l,null,null);return o.firstCreatePass&&(Vt(zt(a,n),o,t.type),hs(o,a),ps(a,n.length,1)),xs(n,u),n[20]=u}(l,this.componentDef,f,s,a);if(l)if(n)Lt(a,l,["ng-version",rl.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let i=1,r=2;for(;i<e.length;){let s=e[i];if("string"==typeof s)2===r?""!==s&&t.push(s,e[++i]):8===r&&n.push(s);else{if(!Er(r))break;r=s}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);e&&Lt(a,l,e),t&&t.length>0&&xr(a,l,t.join(" "))}if(m=Ie(h,ue),void 0!==t){const e=m.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=t[n];e.push(null!=i?Array.from(i):null)}}p=function(e,t,n,i,r){const s=n[1],o=function(e,t,n){const i=Ue();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),ms(e,i,t,Jr(e,t,1,null),n));const r=Zt(t,e,i.directiveStart,i);Wi(r,t);const s=Ae(i,t);return s&&Wi(s,t),r}(s,n,t);if(i.components.push(o),e[8]=o,r&&r.forEach(e=>e(o,t)),t.contentQueries){const e=Ue();t.contentQueries(1,o,e.directiveStart)}const a=Ue();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(yt(a.index),us(n[1],a,0,a.directiveStart,a.directiveEnd,t),ds(t,o)),o}(e,this.componentDef,f,d,[Zs]),Kr(h,f,null)}finally{_t()}return new Ul(this.componentType,p,Gc(m,f),f,m)}}class Ul extends Xc{constructor(e,t,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.instance=t,this.hostView=this.changeDetectorRef=new wl(i),this.componentType=e}get injector(){return new nn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}const ql=new Map;class Gl extends Il{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Hl(this);const n=le(e),i=e[G]||null;i&&Fa(i),this._bootstrapComponents=zi(n.bootstrap),this._r3Injector=Xs(e,t,[{provide:Il,useValue:this},{provide:Uc,useValue:this.componentFactoryResolver}],u(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=Qs.THROW_IF_NOT_FOUND,n=L.Default){return e===Qs||e===Il||e===Fs?this:this._r3Injector.get(e,t,n)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Jl extends Rl{constructor(e){super(),this.moduleType=e,null!==le(e)&&function(e){const t=new Set;!function e(n){const i=le(n,!0),r=i.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${u(t)} vs ${u(t.name)}`)}(r,ql.get(r),n),ql.set(r,n));const s=zi(i.imports);for(const o of s)t.has(o)||(t.add(o),e(o))}(e)}(e)}create(e){return new Gl(this.moduleType,e)}}function Kl(e,t,n){const i=tt()+e,r=Xe();return r[i]===Wr?uo(r,i,n?t.call(n):t()):ho(r,i)}function Ql(e,t,n,i){return ru(Xe(),tt(),e,t,n,i)}function Zl(e,t,n,i,r){return su(Xe(),tt(),e,t,n,i,r)}function eu(e,t,n,i,r,s){return ou(Xe(),tt(),e,t,n,i,r,s)}function tu(e,t,n,i,r,s,o){return function(e,t,n,i,r,s,o,a,c){const l=t+n;return bo(e,l,r,s,o,a)?uo(e,l+4,c?i.call(c,r,s,o,a):i(r,s,o,a)):iu(e,l+4)}(Xe(),tt(),e,t,n,i,r,s,o)}function nu(e,t,n,i,r,s,o,a){const c=tt()+e,l=Xe(),u=bo(l,c,n,i,r,s);return fo(l,c+4,o)||u?uo(l,c+5,a?t.call(a,n,i,r,s,o):t(n,i,r,s,o)):ho(l,c+5)}function iu(e,t){const n=e[t];return n===Wr?void 0:n}function ru(e,t,n,i,r,s){const o=t+n;return fo(e,o,r)?uo(e,o+1,s?i.call(s,r):i(r)):iu(e,o+1)}function su(e,t,n,i,r,s,o){const a=t+n;return po(e,a,r,s)?uo(e,a+2,o?i.call(o,r,s):i(r,s)):iu(e,a+2)}function ou(e,t,n,i,r,s,o,a){const c=t+n;return mo(e,c,r,s,o)?uo(e,c+3,a?i.call(a,r,s,o):i(r,s,o)):iu(e,c+3)}function au(e,t){const n=Ve();let i;const r=e+ue;n.firstCreatePass?(i=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}throw new b("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const s=i.factory||(i.factory=_e(i.type)),o=A(Do);try{const e=Yt(!1),t=s();return Yt(e),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,Xe(),r,t),t}finally{A(o)}}function cu(e,t,n){const i=e+ue,r=Xe(),s=Re(r,i);return hu(r,du(r,i)?ru(r,tt(),t,s.transform,n,s):s.transform(n))}function lu(e,t,n,i){const r=e+ue,s=Xe(),o=Re(s,r);return hu(s,du(s,r)?su(s,tt(),t,o.transform,n,i,o):o.transform(n,i))}function uu(e,t,n,i,r){const s=e+ue,o=Xe(),a=Re(o,s);return hu(o,du(o,s)?ou(o,tt(),t,a.transform,n,i,r,a):a.transform(n,i,r))}function du(e,t){return e[1].data[t].pure}function hu(e,t){return ao.isWrapped(t)&&(t=ao.unwrap(t),e[nt()]=Wr),t}function fu(e){return t=>{setTimeout(e,void 0,t)}}const pu=class extends i.a{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){var i,s,o;let a=e,c=t||(()=>null),l=n;if(e&&"object"==typeof e){const t=e;a=null===(i=t.next)||void 0===i?void 0:i.bind(t),c=null===(s=t.error)||void 0===s?void 0:s.bind(t),l=null===(o=t.complete)||void 0===o?void 0:o.bind(t)}this.__isAsync&&(c=fu(c),a&&(a=fu(a)),l&&(l=fu(l)));const u=super.subscribe({next:a,error:c,complete:l});return e instanceof r.a&&e.add(u),u}};function mu(){return this._results[oo()]()}class bu{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=oo(),n=bu.prototype;n[t]||(n[t]=mu)}get changes(){return this._changes||(this._changes=new pu)}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,t){return this._results.reduce(e,t)}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,t){const n=this;n.dirty=!1;const i=fn(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){let r=e[i],s=t[i];if(n&&(r=n(r),s=n(s)),s!==r)return!1}return!0}(n._results,i,t))&&(n._results=i,n.length=i.length,n.last=i[this.length-1],n.first=i[0])}notifyOnChanges(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class gu{constructor(e){this.queryList=e,this.matches=null}clone(){return new gu(this.queryList)}setDirty(){this.queryList.setDirty()}}class _u{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const n=null!==e.contentQueries?e.contentQueries[0]:t.length,i=[];for(let e=0;e<n;e++){const n=t.getByIndex(e);i.push(this.queries[n.indexInDeclarationView].clone())}return new _u(i)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==Au(e,t).matches&&this.queries[t].setDirty()}}class vu{constructor(e,t,n=null){this.predicate=e,this.flags=t,this.read=n}}class yu{constructor(e=[]){this.queries=e}elementStart(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let n=0;n<this.length;n++){const i=null!==t?t.length:0,r=this.getByIndex(n).embeddedTView(e,i);r&&(r.indexInDeclarationView=n,null!==t?t.push(r):t=[r])}return null!==t?new yu(t):null}template(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class wu{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new wu(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let n=e.parent;for(;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const n=this.metadata.predicate;if(Array.isArray(n))for(let i=0;i<n.length;i++){const r=n[i];this.matchTNodeWithReadOption(e,t,Du(t,r)),this.matchTNodeWithReadOption(e,t,Qt(t,e,r,!1,!1))}else n===Ol?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Qt(t,e,n,!1,!1))}matchTNodeWithReadOption(e,t,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===Kc||i===Fl||i===Ol&&4&t.type)this.addMatch(t.index,-2);else{const n=Qt(t,e,i,!1,!1);null!==n&&this.addMatch(t.index,n)}else this.addMatch(t.index,n)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function Du(e,t){const n=e.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function Su(e,t,n,i){return-1===n?function(e,t){return 11&e.type?Gc(e,t):4&e.type?Al(e,t):null}(t,e):-2===n?function(e,t,n){return n===Kc?Gc(t,e):n===Ol?Al(t,e):n===Fl?zl(t,e):void 0}(e,t,i):Zt(e,e[1],n,t)}function xu(e,t,n,i){const r=t[19].queries[i];if(null===r.matches){const i=e.data,s=n.matches,o=[];for(let e=0;e<s.length;e+=2){const r=s[e];o.push(r<0?null:Su(t,i[r],s[e+1],n.metadata.read))}r.matches=o}return r.matches}function ku(e,t,n,i){const r=e.queries.getByIndex(n),s=r.matches;if(null!==s){const o=xu(e,t,r,n);for(let e=0;e<s.length;e+=2){const n=s[e];if(n>0)i.push(o[e/2]);else{const r=s[e+1],o=t[-n];for(let e=de;e<o.length;e++){const t=o[e];t[17]===t[3]&&ku(t[1],t,r,i)}if(null!==o[9]){const e=o[9];for(let t=0;t<e.length;t++){const n=e[t];ku(n[1],n,r,i)}}}}}return i}function Tu(e){const t=Xe(),n=Ve(),i=lt();ut(i+1);const r=Au(n,i);if(e.dirty&&We(t)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{const s=r.crossesNgTemplate?ku(n,t,i,[]):xu(n,t,r,i);e.reset(s,Qc),e.notifyOnChanges()}return!0}return!1}function Mu(e,t,n){const i=Ve();i.firstCreatePass&&(Eu(i,new vu(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),Lu(i,Xe(),t)}function Cu(e,t,n,i){const r=Ve();if(r.firstCreatePass){const s=Ue();Eu(r,new vu(t,n,i),s.index),function(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(r,e),2==(2&n)&&(r.staticContentQueries=!0)}Lu(r,Xe(),n)}function Ou(){return e=Xe(),t=lt(),e[19].queries[t].queryList;var e,t}function Lu(e,t,n){const i=new bu(4==(4&n));os(e,t,i,i.destroy),null===t[19]&&(t[19]=new _u),t[19].queries.push(new gu(i))}function Eu(e,t,n){null===e.queries&&(e.queries=new yu),e.queries.track(new wu(t,n))}function Au(e,t){return e.queries.getByIndex(t)}function Iu(e,t){return Al(e,t)}function Ru(e=L.Default){const t=xl(!0);if(null!=t||e&L.Optional)return t;v("ChangeDetectorRef")}const Pu=new un("Application Initializer");let Fu=(()=>{class e{constructor(e){this.appInits=e,this.resolve=qc,this.reject=qc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();Ao(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(Cn(Pu,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();const Wu=new un("AppId"),ju={provide:Wu,useFactory:function(){return`${Yu()}${Yu()}${Yu()}`},deps:[]};function Yu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Nu=new un("Platform Initializer"),zu=new un("Platform ID"),$u=new un("appBootstrapListener");let Hu=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();const Xu=new un("LocaleId"),Vu=new un("DefaultCurrencyCode");class Bu{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const Uu=function(e){return new Jl(e)},qu=Uu,Gu=function(e){return Promise.resolve(Uu(e))},Ju=function(e){const t=Uu(e),n=zi(le(e).declarations).reduce((e,t)=>{const n=ce(t);return n&&e.push(new Bl(n)),e},[]);return new Bu(t,n)},Ku=Ju,Qu=function(e){return Promise.resolve(Ju(e))};let Zu=(()=>{class e{constructor(){this.compileModuleSync=qu,this.compileModuleAsync=Gu,this.compileModuleAndAllComponentsSync=Ku,this.compileModuleAndAllComponentsAsync=Qu}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();const ed=(()=>Promise.resolve(0))();function td(e){"undefined"==typeof Zone?ed.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class nd{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new pu(!1),this.onMicrotaskEmpty=new pu(!1),this.onStable=new pu(!1),this.onError=new pu(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const 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&&t,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let e=z.requestAnimationFrame,t=z.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(z,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,sd(e),rd(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),sd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,s,o,a)=>{try{return od(e),n.invokeTask(r,s,o,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),ad(e)}},onInvoke:(n,i,r,s,o,a,c)=>{try{return od(e),n.invoke(r,s,o,a,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),ad(e)}},onHasTask:(t,n,i,r)=>{t.hasTask(i,r),n===i&&("microTask"==r.change?(e._hasPendingMicrotasks=r.microTask,sd(e),rd(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:(t,n,i,r)=>(t.handleError(i,r),e.runOutsideAngular(()=>e.onError.emit(r)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!nd.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(nd.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,i){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+i,e,id,qc,qc);try{return r.runTask(s,t,n)}finally{r.cancelTask(s)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}const id={};function rd(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function sd(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function od(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ad(e){e._nesting--,rd(e)}class cd{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new pu,this.onMicrotaskEmpty=new pu,this.onStable=new pu,this.onError=new pu}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,i){return e.apply(t,n)}}let ld=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{nd.assertNotInAngularZone(),td(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())td(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let i=-1;t&&t>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==i),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(Cn(nd))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})(),ud=(()=>{class e{constructor(){this._applications=new Map,pd.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return pd.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();class dd{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}function hd(e){pd=e}let fd,pd=new dd,md=!0,bd=!1;function gd(){return bd=!0,md}function _d(){if(bd)throw new Error("Cannot enable prod mode after platform setup.");md=!1}const vd=new un("AllowMultipleToken");class yd{constructor(e,t){this.name=e,this.token=t}}function wd(e,t,n=[]){const i=`Platform: ${t}`,r=new un(i);return(t=[])=>{let s=Dd();if(!s||s.injector.get(vd,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{const e=n.concat(t).concat({provide:r,useValue:!0},{provide:js,useValue:"platform"});!function(e){if(fd&&!fd.destroyed&&!fd.injector.get(vd,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");fd=e.get(Sd);const t=e.get(Nu,null);t&&t.forEach(e=>e())}(Qs.create({providers:e,name:i}))}return function(e){const t=Dd();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Dd(){return fd&&!fd.destroyed?fd:null}let Sd=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new cd:("zone.js"===e?void 0:e)||new nd({enableLongStackTrace:gd(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(t?t.ngZone:void 0,{ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1}),i=[{provide:nd,useValue:n}];return n.run(()=>{const t=Qs.create({providers:i,parent:this.injector,name:e.moduleType.name}),r=e.create(t),s=r.injector.get(Ri,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const e=n.onError.subscribe({next:e=>{s.handleError(e)}});r.onDestroy(()=>{Td(this._modules,r),e.unsubscribe()})}),function(e,t,n){try{const i=n();return Ao(i)?i.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(s,n,()=>{const e=r.injector.get(Fu);return e.runInitializers(),e.donePromise.then(()=>(Fa(r.injector.get(Xu,Ea)||Ea),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,t=[]){const n=xd({},t);return function(e,t,n){const i=new Jl(n);return Promise.resolve(i)}(0,0,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(kd);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${u(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(Cn(Qs))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();function xd(e,t){return Array.isArray(t)?t.reduce(xd,e):Object.assign(Object.assign({},e),t)}let kd=(()=>{class e{constructor(e,t,n,i,r){this._zone=e,this._injector=t,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const c=new s.a(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),l=new s.a(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{nd.assertNotInAngularZone(),td(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{nd.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(c,l.pipe(Object(a.a)()))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof Vc?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(Il),r=n.create(Qs.NULL,[],t||n.selector,i),s=r.location.nativeElement,o=r.injector.get(ld,null),a=o&&r.injector.get(ud);return o&&a&&a.registerApplication(s,o),r.onDestroy(()=>{this.detachView(r.hostView),Td(this.components,r),a&&a.unregisterApplication(s)}),this._loadComponent(r),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;Td(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get($u,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(Cn(nd),Cn(Qs),Cn(Ri),Cn(Uc),Cn(Fu))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();function Td(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Md{}class Cd{}const Od={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Ld=(()=>{class e{constructor(e,t){this._compiler=e,this._config=t||Od}load(e){return this.loadAndCompile(e)}loadAndCompile(e){let[t,i]=e.split("#");return void 0===i&&(i="default"),n("zn8P")(t).then(e=>e[i]).then(e=>Ed(e,t,i)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,i]=e.split("#"),r="NgFactory";return void 0===i&&(i="default",r=""),n("zn8P")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[i+r]).then(e=>Ed(e,t,i))}}return e.\u0275fac=function(t){return new(t||e)(Cn(Zu),Cn(Cd,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();function Ed(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}const Ad=function(e){return null},Id=wd(null,"core",[{provide:zu,useValue:"unknown"},{provide:Sd,deps:[Qs]},{provide:ud,deps:[]},{provide:Hu,deps:[]}]),Rd=[{provide:kd,useClass:kd,deps:[nd,Qs,Ri,Uc,Fu]},{provide:Vl,deps:[nd],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Fu,useClass:Fu,deps:[[new An,Pu]]},{provide:Zu,useClass:Zu,deps:[]},ju,{provide:bl,useFactory:function(){return Tl},deps:[]},{provide:_l,useFactory:function(){return Ml},deps:[]},{provide:Xu,useFactory:function(e){return Fa(e=e||"undefined"!=typeof $localize&&$localize.locale||Ea),e},deps:[[new En(Xu),new An,new In]]},{provide:Vu,useValue:"USD"}];let Pd=(()=>{class e{constructor(e){}}return e.\u0275fac=function(t){return new(t||e)(Cn(kd))},e.\u0275mod=ie({type:e}),e.\u0275inj=D({providers:Rd}),e})()},"8YOa":function(e,t,n){var i=n("I+eb"),r=n("4zBA"),s=n("0BK2"),o=n("hh1v"),a=n("Gi26"),c=n("m/L8").f,l=n("JBy8"),u=n("BX/b"),d=n("kOOl"),h=n("uy83"),f=!1,p=d("meta"),m=0,b=Object.isExtensible||function(){return!0},g=function(e){c(e,p,{value:{objectID:"O"+m++,weakData:{}}})},_=e.exports={enable:function(){_.enable=function(){},f=!0;var e=l.f,t=r([].splice),n={};n[p]=1,e(n).length&&(l.f=function(n){for(var i=e(n),r=0,s=i.length;r<s;r++)if(i[r]===p){t(i,r,1);break}return i},i({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,p)){if(!b(e))return"F";if(!t)return"E";g(e)}return e[p].objectID},getWeakData:function(e,t){if(!a(e,p)){if(!b(e))return!0;if(!t)return!1;g(e)}return e[p].weakData},onFreeze:function(e){return h&&f&&b(e)&&!a(e,p)&&g(e),e}};s[p]=!0},"8mBD":function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},"8xTl":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("LvDl"),r=n.n(i),s=n("8Y7J");let o=(()=>{class e{transform(e){return r.a.upperFirst(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=s.Qb({name:"upperFirst",type:e,pure:!0}),e})()},"9/5/":function(e,t){var n=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt,a="object"==typeof global&&global&&global.Object===Object&&global,c="object"==typeof self&&self&&self.Object===Object&&self,l=a||c||Function("return this")(),u=Object.prototype.toString,d=Math.max,h=Math.min,f=function(){return l.Date.now()};function p(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(p(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=p(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var a=r.test(e);return a||s.test(e)?o(e.slice(2),a?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,n){var i,r,s,o,a,c,l=0,u=!1,b=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function _(t){var n=i,s=r;return i=r=void 0,l=t,o=e.apply(s,n)}function v(e){return l=e,a=setTimeout(w,t),u?_(e):o}function y(e){var n=e-c;return void 0===c||n>=t||n<0||b&&e-l>=s}function w(){var e=f();if(y(e))return D(e);a=setTimeout(w,function(e){var n=t-(e-c);return b?h(n,s-(e-l)):n}(e))}function D(e){return a=void 0,g&&i?_(e):(i=r=void 0,o)}function S(){var e=f(),n=y(e);if(i=arguments,r=this,c=e,n){if(void 0===a)return v(c);if(b)return a=setTimeout(w,t),_(c)}return void 0===a&&(a=setTimeout(w,t)),o}return t=m(t)||0,p(n)&&(u=!!n.leading,s=(b="maxWait"in n)?d(m(n.maxWait)||0,t):s,g="trailing"in n?!!n.trailing:g),S.cancel=function(){void 0!==a&&clearTimeout(a),l=0,i=c=r=a=void 0},S.flush=function(){return void 0===a?o:D(f())},S}},"93I0":function(e,t,n){var i=n("VpIT"),r=n("kOOl"),s=i("keys");e.exports=function(e){return s[e]||(s[e]=r(e))}},"9Xeq":function(e,t,n){"use strict";n.d(t,"a",function(){return C});var i=n("SVse"),r=n("yT6U"),s=n("iExv"),o=n("4DD9"),a=n("a0VL"),c=n("+0ag"),l=n("85J/"),u=n("IzCI"),d=n("Fgil"),h=n("o4+5"),f=n("nSDx"),p=n("8Y7J");let m=(()=>{class e{transform(e){return encodeURIComponent(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=p.Qb({name:"encodeUri",type:e,pure:!0}),e})();var b=n("BQkM"),g=n("uYzU"),_=n("FFMq"),v=n("E2fk"),y=n("TJUb"),w=n("dEH0"),D=n("G1/K"),S=n("TYzs"),x=n("Dwqy"),k=n("Yrry"),T=n("efK2"),M=n("8xTl");let C=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=p.Pb({type:e}),e.\u0275inj=p.Ob({providers:[r.a,o.a,s.a,i.e,l.a,c.a,d.a,u.a,h.a,x.a,g.a,_.a,v.a,a.a,f.a,m,S.a,b.a,w.a,D.a,M.a,y.a,T.a,k.a],imports:[[i.c]]}),e})()},"9d/t":function(e,t,n){var i=n("2oRo"),r=n("AO7/"),s=n("Fib7"),o=n("xrYK"),a=n("tiKp")("toStringTag"),c=i.Object,l="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=c(e),a))?n:l?o(t):"Object"==(i=o(t))&&s(t.callee)?"Arguments":i}},"9f76":function(e,t,n){"use strict";var i=n("8M4i"),r=n("EUcb"),s=function(e){return Object(r.a)(e)&&"[object Arguments]"==Object(i.a)(e)},o=Object.prototype,a=o.hasOwnProperty,c=o.propertyIsEnumerable,l=s(function(){return arguments}())?s:function(e){return Object(r.a)(e)&&a.call(e,"callee")&&!c.call(e,"callee")};t.a=l},"9nlD":function(e,t,n){"use strict";n.d(t,"a",function(){return f});var i=n("LvDl"),r=n.n(i),s=n("2Vo4"),o=n("XNiG"),a=n("mtw6"),c=n("G1I9"),l=n("a0VL"),u=n("ufoC"),d=n("8Y7J"),h=n("EApP");let f=(()=>{class e{constructor(e,t,n){this.toastr=e,this.taskMessageService=t,this.cdDatePipe=n,this.hideToasties=!1,this.dataSource=new s.a([]),this.data$=this.dataSource.asObservable(),this.sidebarSubject=new o.a,this.queued=[],this.KEY="cdNotifications";const i=localStorage.getItem(this.KEY);let a=[];r.a.isString(i)&&(a=JSON.parse(i,(e,t)=>r.a.isPlainObject(t)?r.a.assign(new c.a,t):t)),this.dataSource.next(a)}removeAll(){localStorage.removeItem(this.KEY),this.dataSource.next([])}remove(e){const t=this.dataSource.getValue();t.splice(e,1),this.dataSource.next(t),localStorage.setItem(this.KEY,JSON.stringify(t))}save(e){const t=this.dataSource.getValue();for(t.push(e),t.sort((e,t)=>e.timestamp>t.timestamp?-1:1);t.length>10;)t.pop();this.dataSource.next(t),localStorage.setItem(this.KEY,JSON.stringify(t))}show(e,t,n,i,s){return window.setTimeout(()=>{let o;o=r.a.isFunction(e)?e():r.a.isObject(e)?e:new c.b(e,t,n,i,s),this.queueToShow(o)},10)}queueToShow(e){this.cancel(this.queuedTimeoutId),this.queued.find(t=>r.a.isEqual(t,e))||this.queued.push(e),this.queuedTimeoutId=window.setTimeout(()=>{this.showQueued()},500)}showQueued(){this.getUnifiedTitleQueue().forEach(e=>{const t=new c.a(e);t.isFinishedTask||this.save(t),this.showToasty(t)})}getUnifiedTitleQueue(){return Object.values(this.queueShiftByTitle()).map(e=>{const t=e[0];return e.length>1&&(t.message="<ul>"+e.map(e=>`<li>${e.message}</li>`).join("")+"</ul>"),t})}queueShiftByTitle(){const e={};let t;for(;t=this.queued.shift();)e[t.title]||(e[t.title]=[]),e[t.title].push(t);return e}showToasty(e){this.hideToasties||this.toastr[["error","info","success"][e.type]]((e.message?e.message+"<br>":"")+this.renderTimeAndApplicationHtml(e),e.title,e.options)}renderTimeAndApplicationHtml(e){return`<small class="date">${this.cdDatePipe.transform(e.timestamp)}</small><i class="float-right custom-icon ${e.applicationClass}" title="${e.application}"></i>`}notifyTask(e,t=!0){const n=this.finishedTaskToNotification(e,t);return n.isFinishedTask=!0,this.show(n)}finishedTaskToNotification(e,t=!0){let n;return n=e.success&&t?new c.b(a.a.success,this.taskMessageService.getSuccessTitle(e)):new c.b(a.a.error,this.taskMessageService.getErrorTitle(e),this.taskMessageService.getErrorMessage(e)),n.isFinishedTask=!0,n}cancel(e){window.clearTimeout(e)}suspendToasties(e){this.hideToasties=e}toggleSidebar(e=!1){this.sidebarSubject.next(e)}}return e.\u0275fac=function(t){return new(t||e)(d.ic(h.b),d.ic(u.a),d.ic(l.a))},e.\u0275prov=d.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},"9ppp":function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})()},"9rRi":function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n("wd/R"))},"9xzX":function(e,t,n){"use strict";n.d(t,"a",function(){return m});var i=n("mrSG"),r=n("IheW"),s=n("LvDl"),o=n.n(s),a=n("2Vo4"),c=n("z6cu"),l=n("LRne"),u=n("vkgz"),d=n("5+tZ"),h=n("IzEk"),f=n("xTzq"),p=n("8Y7J");let m=(()=>{let e=class{constructor(e){this.http=e,this.url="api/rgw/daemon",this.daemons=new a.a([]),this.daemons$=this.daemons.asObservable(),this.selectedDaemon=new a.a(null),this.selectedDaemon$=this.selectedDaemon.asObservable()}list(){return this.http.get(this.url).pipe(Object(u.a)(e=>{this.daemons.next(e),o.a.isEmpty(this.selectedDaemon.getValue())&&this.selectDefaultDaemon(e)}))}get(e){return this.http.get(`${this.url}/${e}`)}selectDaemon(e){this.selectedDaemon.next(e)}selectDefaultDaemon(e){if(0===e.length)return null;for(const t of e)if(t.default)return this.selectDaemon(t),t;return this.selectDaemon(e[0]),e[0]}request(e){return this.selectedDaemon.pipe(Object(d.a)(e=>o.a.isEmpty(e)?this.list().pipe(Object(d.a)(e=>o.a.isEmpty(e)?Object(c.a)("No RGW daemons found!"):this.selectedDaemon$)):Object(l.a)(e)),Object(h.a)(1),Object(d.a)(t=>{let n=new r.e;return n=n.append("daemon_name",t.id),e(n)}))}};return e.\u0275fac=function(t){return new(t||e)(p.ic(r.b))},e.\u0275prov=p.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e=Object(i.b)([f.a,Object(i.d)("design:paramtypes",[r.b])],e),e})()},"A+xa":function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(e){return e+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(e)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(e)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(n("wd/R"))},A2ZE:function(e,t,n){var i=n("4zBA"),r=n("We1y"),s=i(i.bind);e.exports=function(e,t){return r(e),void 0===t?e:s?s(e,t):function(){return e.apply(t,arguments)}}},ANnk:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("aexS"),r=n("f/UV"),s=n("8Y7J");let o=(()=>{class e{constructor(e,t,n){this.formScope=e,this.authStorageService=t,this.elementRef=n}ngAfterViewInit(){var e,t,n;this.permissions=this.authStorageService.getPermissions();const i=null===(e=this.formScope)||void 0===e?void 0:e.cdFormScope;i&&!(null===(n=null===(t=this.permissions)||void 0===t?void 0:t[i])||void 0===n?void 0:n.update)&&(this.elementRef.nativeElement.disabled=!0)}}return e.\u0275fac=function(t){return new(t||e)(s.Rb(r.a,8),s.Rb(i.a),s.Rb(s.n))},e.\u0275dir=s.Mb({type:e,selectors:[["input",3,"cdNoFormInputDisable",""],["select",3,"cdNoFormInputDisable",""],["button",3,"cdNoFormInputDisable",""],["","cdFormInputDisable",""]]}),e})()},"AO7/":function(e,t,n){var i={};i[n("tiKp")("toStringTag")]="z",e.exports="[object z]"===String(i)},AQ68:function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n("wd/R"))},Avrn:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("aexS"),r=n("8Y7J"),s=n("iInd");let o=(()=>{class e{constructor(e,t){this.router=e,this.authStorageService=t}canActivate(e,t){return!!this.authStorageService.isLoggedIn()||(this.router.navigate(["/login"],{queryParams:{returnUrl:t.url}}),!1)}canActivateChild(e,t){return this.canActivate(e,t)}}return e.\u0275fac=function(t){return new(t||e)(r.ic(s.e),r.ic(i.a))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},AvvY:function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===t&&e>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===t||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":e<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":e<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":e<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(n("wd/R"))},AwXo:function(e,t,n){"use strict";var i=n("Y7yP"),r=function(){try{var e=Object(i.a)(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();t.a=r},AxL3:function(e,t){var n=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=n},AytR:function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i={default_lang:"en-US",production:!0,year:"2021"}},"B/qT":function(e,t,n){var i=n("UMSQ");e.exports=function(e){return i(e.length)}},B55N:function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(e,t){return"\u5143"===t[1]?1:parseInt(t[1]||e,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(e){return"\u5348\u5f8c"===e},meridiem:function(e,t,n){return e<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(e){return e.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(e){return this.week()!==e.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(e,t){switch(t){case"y":return 1===e?"\u5143\u5e74":e+"\u5e74";case"d":case"D":case"DDD":return e+"\u65e5";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(n("wd/R"))},BFxc:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("7o/Q"),r=n("4I5i"),s=n("EY2u");function o(e){return function(t){return 0===e?Object(s.b)():t.lift(new a(e))}}class a{constructor(e){if(this.total=e,this.total<0)throw new r.a}call(e,t){return t.subscribe(new c(e,this.total))}}class c extends i.a{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,i=this.count++;t.length<n?t.push(e):t[i%n]=e}_complete(){const e=this.destination;let t=this.count;if(t>0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let r=0;r<n;r++){const r=t++%n;e.next(i[r])}}e.complete()}}},BQkM:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("8Y7J");let r=(()=>{class e{transform(e){return`${e} IOPS`}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Qb({name:"iops",type:e,pure:!0}),e})()},BVg3:function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,i,r){var s=e+" ";switch(i){case"s":return n||r?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return t(e)?s+(n||r?"sek\xfandur":"sek\xfandum"):s+"sek\xfanda";case"m":return n?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return t(e)?s+(n||r?"m\xedn\xfatur":"m\xedn\xfatum"):n?s+"m\xedn\xfata":s+"m\xedn\xfatu";case"hh":return t(e)?s+(n||r?"klukkustundir":"klukkustundum"):s+"klukkustund";case"d":return n?"dagur":r?"dag":"degi";case"dd":return t(e)?n?s+"dagar":s+(r?"daga":"d\xf6gum"):n?s+"dagur":s+(r?"dag":"degi");case"M":return n?"m\xe1nu\xf0ur":r?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return t(e)?n?s+"m\xe1nu\xf0ir":s+(r?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):n?s+"m\xe1nu\xf0ur":s+(r?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return n||r?"\xe1r":"\xe1ri";case"yy":return t(e)?s+(n||r?"\xe1r":"\xe1rum"):s+(n||r?"\xe1r":"\xe1ri")}}e.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},"BX/b":function(e,t,n){var i=n("xrYK"),r=n("/GqU"),s=n("JBy8").f,o=n("82ph"),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"Window"==i(e)?function(e){try{return s(e)}catch(t){return o(a)}}(e):s(r(e))}},Bs8V:function(e,t,n){var i=n("g6v/"),r=n("xluM"),s=n("0eef"),o=n("XGwC"),a=n("/GqU"),c=n("oEtG"),l=n("Gi26"),u=n("DPsx"),d=Object.getOwnPropertyDescriptor;t.f=i?d:function(e,t){if(e=a(e),t=c(t),u)try{return d(e,t)}catch(n){}if(l(e,t))return o(!r(s.f,e,t),e[t])}},ByF4:function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},C0Ia:function(e,t,n){var i=n("2oRo"),r=n("6LWA"),s=n("aO6C"),o=n("hh1v"),a=n("tiKp")("species"),c=i.Array;e.exports=function(e){var t;return r(e)&&(s(t=e.constructor)&&(t===c||r(t.prototype))||o(t)&&null===(t=t[a]))&&(t=void 0),void 0===t?c:t}},Ce4a:function(e,t,n){"use strict";var i=n("Ju5/");t.a=i.a.Uint8Array},CfRg:function(e,t,n){"use strict";var i=n("oSzE"),r=n("23KU"),s=n("+EKe"),o=n("mkut"),a=n("4/q3"),c=n("3/ER"),l=n("eAQQ"),u=n("jN84"),d=n("n561"),h=n("TFwu"),f=n("TnHx"),p=n("YM6B"),m=Object.prototype.hasOwnProperty,b=n("lkxz"),g=/\w*$/,_=n("ylTp"),v=_.a?_.a.prototype:void 0,y=v?v.valueOf:void 0,w=n("G4mU"),D=n("hYPf"),S=n("/1FC"),x=n("WOAq"),k=n("EUcb"),T=n("ovuK"),M=n("xutz"),C=M.a&&M.a.isMap,O=C?Object(T.a)(C):function(e){return Object(k.a)(e)&&"[object Map]"==Object(p.a)(e)},L=n("IzLi"),E=M.a&&M.a.isSet,A=E?Object(T.a)(E):function(e){return Object(k.a)(e)&&"[object Set]"==Object(p.a)(e)},I="[object Arguments]",R="[object Function]",P="[object Object]",F={};F[I]=F["[object Array]"]=F["[object ArrayBuffer]"]=F["[object DataView]"]=F["[object Boolean]"]=F["[object Date]"]=F["[object Float32Array]"]=F["[object Float64Array]"]=F["[object Int8Array]"]=F["[object Int16Array]"]=F["[object Int32Array]"]=F["[object Map]"]=F["[object Number]"]=F[P]=F["[object RegExp]"]=F["[object Set]"]=F["[object String]"]=F["[object Symbol]"]=F["[object Uint8Array]"]=F["[object Uint8ClampedArray]"]=F["[object Uint16Array]"]=F["[object Uint32Array]"]=!0,F["[object Error]"]=F[R]=F["[object WeakMap]"]=!1,t.a=function e(t,n,_,v,k,T){var M,C=1&n,E=2&n,W=4&n;if(_&&(M=k?_(t,v,k,T):_(t)),void 0!==M)return M;if(!Object(L.a)(t))return t;var j=Object(S.a)(t);if(j){if(M=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&m.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!C)return Object(l.a)(t,M)}else{var Y=Object(p.a)(t),N=Y==R||"[object GeneratorFunction]"==Y;if(Object(x.a)(t))return Object(c.a)(t,C);if(Y==P||Y==I||N&&!k){if(M=E||N?{}:Object(D.a)(t),!C)return E?function(e,t){return Object(s.a)(e,Object(d.a)(e),t)}(t,function(e,t){return e&&Object(s.a)(t,Object(a.a)(t),e)}(M,t)):function(e,t){return Object(s.a)(e,Object(u.a)(e),t)}(t,function(e,t){return e&&Object(s.a)(t,Object(o.a)(t),e)}(M,t))}else{if(!F[Y])return k?t:{};M=function(e,t,n){var i,r,s=e.constructor;switch(t){case"[object ArrayBuffer]":return Object(b.a)(e);case"[object Boolean]":case"[object Date]":return new s(+e);case"[object DataView]":return function(e,t){var n=t?Object(b.a)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Object(w.a)(e,n);case"[object Map]":return new s;case"[object Number]":case"[object String]":return new s(e);case"[object RegExp]":return(r=new(i=e).constructor(i.source,g.exec(i))).lastIndex=i.lastIndex,r;case"[object Set]":return new s;case"[object Symbol]":return y?Object(y.call(e)):{}}}(t,Y,C)}}T||(T=new i.a);var z=T.get(t);if(z)return z;T.set(t,M),A(t)?t.forEach(function(i){M.add(e(i,n,_,i,t,T))}):O(t)&&t.forEach(function(i,r){M.set(r,e(i,n,_,r,t,T))});var $=j?void 0:(W?E?f.a:h.a:E?a.a:o.a)(t);return function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n););}($||t,function(i,s){$&&(i=t[s=i]),Object(r.a)(M,s,e(i,n,_,s,t,T))}),M}},Cfvw:function(e,t,n){"use strict";n.d(t,"a",function(){return d});var i=n("HDdC"),r=n("SeVD"),s=n("quSY"),o=n("kJWO"),a=n("jZKg"),c=n("Lhse"),l=n("c2HN"),u=n("I55L");function d(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[o.a]}(e))return function(e,t){return new i.a(n=>{const i=new s.a;return i.add(t.schedule(()=>{const r=e[o.a]();i.add(r.subscribe({next(e){i.add(t.schedule(()=>n.next(e)))},error(e){i.add(t.schedule(()=>n.error(e)))},complete(){i.add(t.schedule(()=>n.complete()))}}))})),i})}(e,t);if(Object(l.a)(e))return function(e,t){return new i.a(n=>{const i=new s.a;return i.add(t.schedule(()=>e.then(e=>{i.add(t.schedule(()=>{n.next(e),i.add(t.schedule(()=>n.complete()))}))},e=>{i.add(t.schedule(()=>n.error(e)))}))),i})}(e,t);if(Object(u.a)(e))return Object(a.a)(e,t);if(function(e){return e&&"function"==typeof e[c.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new i.a(n=>{const i=new s.a;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=e[c.a](),i.add(t.schedule(function(){if(n.closed)return;let e,t;try{const n=r.next();e=n.value,t=n.done}catch(i){return void n.error(i)}t?n.complete():(n.next(e),this.schedule())}))})),i})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof i.a?e:new i.a(Object(r.a)(e))}},ChqD:function(e,t,n){"use strict";n.d(t,"a",function(){return h});var i=n("SVse"),r=n("s7LF"),s=n("iInd"),o=n("G0yt"),a=n("w9WL"),c=n("zWsK"),l=n("V/fk"),u=n("9Xeq"),d=n("8Y7J");let h=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=d.Pb({type:e}),e.\u0275inj=d.Ob({imports:[[i.c,a.h,c.a,r.m,o.l,o.F,u.a,l.a,s.i],a.h]}),e})()},CjzT:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},CoRJ:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(n("wd/R"))},CqXF:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(e){return t=>t.lift(new s(e))}class s{constructor(e){this.value=e}call(e,t){return t.subscribe(new o(e,this.value))}}class o extends i.a{constructor(e,t){super(e),this.value=t}_next(e){this.destination.next(this.value)}}},"D/JM":function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},D0XW:function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return s});var i=n("3N8a");const r=new(n("IjjT").a)(i.a),s=r},D4zM:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("8Y7J");let r=(()=>{class e{constructor(e,t){this.elementRef=e,this.renderer=t}ngOnInit(){this.renderer.setAttribute(this.elementRef.nativeElement,"tabindex","-1"),this.iElement=this.renderer.createElement("i"),this.renderer.addClass(this.iElement,"fa"),this.renderer.appendChild(this.elementRef.nativeElement,this.iElement),this.update()}getInputElement(){return document.getElementById(this.cdPasswordButton)}update(){const e=this.getInputElement();e&&"text"===e.type?(this.renderer.removeClass(this.iElement,"fa-eye"),this.renderer.addClass(this.iElement,"fa-eye-slash")):(this.renderer.removeClass(this.iElement,"fa-eye-slash"),this.renderer.addClass(this.iElement,"fa-eye"))}onClick(){const e=this.getInputElement();e.type="password"===e.type?"text":"password",this.update()}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.n),i.Rb(i.H))},e.\u0275dir=i.Mb({type:e,selectors:[["","cdPasswordButton",""]],hostBindings:function(e,t){1&e&&i.lc("click",function(){return t.onClick()})},inputs:{cdPasswordButton:"cdPasswordButton"}}),e})()},DH7j:function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))()},"DKr+":function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return i?r[n][0]:r[n][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(n("wd/R"))},DLK6:function(e,t,n){var i=n("4zBA"),r=n("ewvW"),s=Math.floor,o=i("".charAt),a=i("".replace),c=i("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,i,d,h){var f=n+e.length,p=i.length,m=u;return void 0!==d&&(d=r(d),m=l),a(h,m,function(r,a){var l;switch(o(a,0)){case"$":return"$";case"&":return e;case"`":return c(t,0,n);case"'":return c(t,f);case"<":l=d[c(a,1,-1)];break;default:var u=+a;if(0===u)return r;if(u>p){var h=s(u/10);return 0===h?r:h<=p?void 0===i[h-1]?o(a,1):i[h-1]+o(a,1):r}l=i[u-1]}return void 0===l?"":l})}},DNAf:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("LvDl"),r=n.n(i);class s{constructor(e){this.customValidations={},this.empty="No items selected.",this.selectionLimit={tooltip:"Deselect item to select again",text:"Selection limit reached"},this.filter="Filter tags",this.add="Add badge",this.noOptions="There are no items available.",r.a.merge(this,e)}}},DPsx:function(e,t,n){var i=n("g6v/"),r=n("0Dky"),s=n("zBJ4");e.exports=!i&&!r(function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},DSvg:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("LvDl"),r=n("vkgz"),s=n("aexS"),o=n("8Y7J"),a=n("IheW"),c=n("iInd");let l=(()=>{class e{constructor(e,t,n,i){this.authStorageService=e,this.http=t,this.router=n,this.route=i}check(e){return this.http.post("api/auth/check",{token:e})}login(e){return this.http.post("api/auth",e).pipe(Object(r.a)(e=>{this.authStorageService.set(e.username,e.permissions,e.sso,e.pwdExpirationDate,e.pwdUpdateRequired)}))}logout(e=null){return this.http.post("api/auth/logout",null).subscribe(t=>{this.authStorageService.remove();const n=i.get(this.route.snapshot.queryParams,"returnUrl","/login");this.router.navigate([n],{skipLocationChange:!0}),e&&e(),window.location.replace(t.redirect_url)})}}return e.\u0275fac=function(t){return new(t||e)(o.ic(s.a),o.ic(a.b),o.ic(c.e),o.ic(c.a))},e.\u0275prov=o.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},DVFp:function(e,t,n){var i=n("2oRo").String;e.exports=function(e){try{return i(e)}catch(t){return"Object"}}},Dkky:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n("wd/R"))},DlmY:function(e,t,n){"use strict";var i=n("Y7yP"),r=Object(i.a)(Object,"create"),s=Object.prototype.hasOwnProperty,o=Object.prototype.hasOwnProperty;function a(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}a.prototype.clear=function(){this.__data__=r?r(null):{},this.size=0},a.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},a.prototype.get=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return s.call(t,e)?t[e]:void 0},a.prototype.has=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)},a.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this};var c=a,l=n("nLtN"),u=n("3cmB"),d=function(e,t){var n,i,r=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map};function h(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}h.prototype.clear=function(){this.size=0,this.__data__={hash:new c,map:new(u.a||l.a),string:new c}},h.prototype.delete=function(e){var t=d(this,e).delete(e);return this.size-=t?1:0,t},h.prototype.get=function(e){return d(this,e).get(e)},h.prototype.has=function(e){return d(this,e).has(e)},h.prototype.set=function(e,t){var n=d(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},t.a=h},Dmvi:function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})}(n("wd/R"))},DoHr:function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};e.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"\xf6\xf6":"\xd6\xd6":n?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(e){return"\xf6s"===e||"\xd6S"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'\u0131nc\u0131";var i=e%10;return e+(t[i]||t[e%100-i]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n("wd/R"))},Dwqy:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("LvDl"),r=n.n(i),s=n("wd/R"),o=n.n(s),a=n("8Y7J");o.a.updateLocale("en",{relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}});let c=(()=>{class e{transform(e,t=!0){let n;if(n=r.a.isNumber(e)?o.a.unix(e):o()(e),!n.isValid())return"";let i=n.fromNow();return t&&(i=r.a.upperFirst(i)),i}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=a.Qb({name:"relativeDate",type:e,pure:!1}),e})()},DxQv:function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},Dzi0:function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n("wd/R"))},"E+lV":function(e,t,n){!function(e){"use strict";var t={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u0435 \u043c\u0438\u043d\u0443\u0442\u0435"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0435","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],yy:["\u0433\u043e\u0434\u0438\u043d\u0430","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"\u0434\u0430\u043d",dd:t.translate,M:"\u043c\u0435\u0441\u0435\u0446",MM:t.translate,y:"\u0433\u043e\u0434\u0438\u043d\u0443",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},E2fk:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("8Y7J");let r=(()=>{class e{transform(e){return"[DBG]"===e?"debug":"[INF]"===e?"info":"[WRN]"===e?"warn":"[ERR]"===e?"err":""}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Qb({name:"logPriority",type:e,pure:!0}),e})()},E9XD:function(e,t,n){"use strict";var i=n("I+eb"),r=n("1Y/n").left,s=n("pkCn"),o=n("LQDL"),a=n("YF1G");i({target:"Array",proto:!0,forced:!s("reduce")||!a&&o>79&&o<83},{reduce:function(e){var t=arguments.length;return r(this,e,t,t>1?arguments[1]:void 0)}})},EApP:function(e,t,n){"use strict";n.d(t,"a",function(){return R}),n.d(t,"b",function(){return E});var i=n("8Y7J"),r=n("GS7A"),s=n("XNiG"),o=n("cUpR"),a=n("SVse");const c=["toast-component",""];function l(e,t){if(1&e){const e=i.Yb();i.Xb(0,"button",5),i.lc("click",function(){return i.Ic(e),i.nc().remove()}),i.Xb(1,"span",6),i.Rc(2,"\xd7"),i.Wb(),i.Wb()}}function u(e,t){if(1&e&&(i.Vb(0),i.Rc(1),i.Ub()),2&e){const e=i.nc(2);i.Db(1),i.Tc("[",e.duplicatesCount+1,"]")}}function d(e,t){if(1&e&&(i.Xb(0,"div"),i.Rc(1),i.Pc(2,u,2,1,"ng-container",4),i.Wb()),2&e){const e=i.nc();i.Fb(e.options.titleClass),i.Eb("aria-label",e.title),i.Db(1),i.Tc(" ",e.title," "),i.Db(1),i.uc("ngIf",e.duplicatesCount)}}function h(e,t){if(1&e&&i.Sb(0,"div",7),2&e){const e=i.nc();i.Fb(e.options.messageClass),i.uc("innerHTML",e.message,i.Jc)}}function f(e,t){if(1&e&&(i.Xb(0,"div",8),i.Rc(1),i.Wb()),2&e){const e=i.nc();i.Fb(e.options.messageClass),i.Eb("aria-label",e.message),i.Db(1),i.Tc(" ",e.message," ")}}function p(e,t){if(1&e&&(i.Xb(0,"div"),i.Sb(1,"div",9),i.Wb()),2&e){const e=i.nc();i.Db(1),i.Nc("width",e.width+"%")}}function m(e,t){if(1&e){const e=i.Yb();i.Xb(0,"button",5),i.lc("click",function(){return i.Ic(e),i.nc().remove()}),i.Xb(1,"span",6),i.Rc(2,"\xd7"),i.Wb(),i.Wb()}}function b(e,t){if(1&e&&(i.Vb(0),i.Rc(1),i.Ub()),2&e){const e=i.nc(2);i.Db(1),i.Tc("[",e.duplicatesCount+1,"]")}}function g(e,t){if(1&e&&(i.Xb(0,"div"),i.Rc(1),i.Pc(2,b,2,1,"ng-container",4),i.Wb()),2&e){const e=i.nc();i.Fb(e.options.titleClass),i.Eb("aria-label",e.title),i.Db(1),i.Tc(" ",e.title," "),i.Db(1),i.uc("ngIf",e.duplicatesCount)}}function _(e,t){if(1&e&&i.Sb(0,"div",7),2&e){const e=i.nc();i.Fb(e.options.messageClass),i.uc("innerHTML",e.message,i.Jc)}}function v(e,t){if(1&e&&(i.Xb(0,"div",8),i.Rc(1),i.Wb()),2&e){const e=i.nc();i.Fb(e.options.messageClass),i.Eb("aria-label",e.message),i.Db(1),i.Tc(" ",e.message," ")}}function y(e,t){if(1&e&&(i.Xb(0,"div"),i.Sb(1,"div",9),i.Wb()),2&e){const e=i.nc();i.Db(1),i.Nc("width",e.width+"%")}}class w{constructor(e,t,n,i,r,o){this.toastId=e,this.config=t,this.message=n,this.title=i,this.toastType=r,this.toastRef=o,this._onTap=new s.a,this._onAction=new s.a,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(e){this._onAction.next(e)}onAction(){return this._onAction.asObservable()}}const D={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},S=new i.u("ToastConfig");class x{constructor(e,t){this.component=e,this.injector=t}attach(e,t){return this._attachedHost=e,e.attach(this,t)}detach(){const e=this._attachedHost;if(e)return this._attachedHost=void 0,e.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class k extends class{attach(e,t){return this._attachedPortal=e,this.attachComponentPortal(e,t)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(e){this._disposeFn=e}}{constructor(e,t,n){super(),this._hostDomElement=e,this._componentFactoryResolver=t,this._appRef=n}attachComponentPortal(e,t){const n=this._componentFactoryResolver.resolveComponentFactory(e.component);let i;return i=n.create(e.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let T=(()=>{class e{constructor(e){this._document=e}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._document.createElement("div");e.classList.add("overlay-container"),this._document.body.appendChild(e),this._containerElement=e}}return e.\u0275fac=function(t){return new(t||e)(i.ic(a.d))},e.\u0275prov=Object(i.Nb)({factory:function(){return new e(Object(i.ic)(a.d))},token:e,providedIn:"root"}),e})();class M{constructor(e){this._portalHost=e}attach(e,t=!0){return this._portalHost.attach(e,t)}detach(){return this._portalHost.detach()}}let C=(()=>{class e{constructor(e,t,n,i){this._overlayContainer=e,this._componentFactoryResolver=t,this._appRef=n,this._document=i,this._paneElements=new Map}create(e,t){return this._createOverlayRef(this.getPaneElement(e,t))}getPaneElement(e="",t){return this._paneElements.get(t)||this._paneElements.set(t,{}),this._paneElements.get(t)[e]||(this._paneElements.get(t)[e]=this._createPaneElement(e,t)),this._paneElements.get(t)[e]}_createPaneElement(e,t){const n=this._document.createElement("div");return n.id="toast-container",n.classList.add(e),n.classList.add("toast-container"),t?t.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalHost(e){return new k(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new M(this._createPortalHost(e))}}return e.\u0275fac=function(t){return new(t||e)(i.ic(T),i.ic(i.k),i.ic(i.g),i.ic(a.d))},e.\u0275prov=Object(i.Nb)({factory:function(){return new e(Object(i.ic)(T),Object(i.ic)(i.k),Object(i.ic)(i.g),Object(i.ic)(a.d))},token:e,providedIn:"root"}),e})();class O{constructor(e){this._overlayRef=e,this.duplicatesCount=0,this._afterClosed=new s.a,this._activate=new s.a,this._manualClose=new s.a,this._resetTimeout=new s.a,this._countDuplicate=new s.a}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(e,t){e&&this._resetTimeout.next(),t&&this._countDuplicate.next(++this.duplicatesCount)}}class L{constructor(e,t){this._toastPackage=e,this._parentInjector=t}get(e,t,n){return e===w?this._toastPackage:this._parentInjector.get(e,t,n)}}let E=(()=>{class e{constructor(e,t,n,i,r){this.overlay=t,this._injector=n,this.sanitizer=i,this.ngZone=r,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},e.default),e.config),e.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},e.default.iconClasses),e.config.iconClasses))}show(e,t,n={},i=""){return this._preBuildNotification(i,e,t,this.applyConfig(n))}success(e,t,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",e,t,this.applyConfig(n))}error(e,t,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",e,t,this.applyConfig(n))}info(e,t,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",e,t,this.applyConfig(n))}warning(e,t,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",e,t,this.applyConfig(n))}clear(e){for(const t of this.toasts)if(void 0!==e){if(t.toastId===e)return void t.toastRef.manualClose()}else t.toastRef.manualClose()}remove(e){const t=this._findToast(e);if(!t)return!1;if(t.activeToast.toastRef.close(),this.toasts.splice(t.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length)return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const e=this.toasts[this.currentlyActive].toastRef;e.isInactive()||(this.currentlyActive=this.currentlyActive+1,e.activate())}return!0}findDuplicate(e="",t="",n,i){const{includeTitleDuplicates:r}=this.toastrConfig;for(const s of this.toasts){const o=r&&s.title===e;if((!r||o)&&s.message===t)return s.toastRef.onDuplicate(n,i),s}return null}applyConfig(e={}){return Object.assign(Object.assign({},this.toastrConfig),e)}_findToast(e){for(let t=0;t<this.toasts.length;t++)if(this.toasts[t].toastId===e)return{index:t,activeToast:this.toasts[t]};return null}_preBuildNotification(e,t,n,i){return i.onActivateTick?this.ngZone.run(()=>this._buildNotification(e,t,n,i)):this._buildNotification(e,t,n,i)}_buildNotification(e,t,n,r){if(!r.toastComponent)throw new Error("toastComponent required");const s=this.findDuplicate(n,t,this.toastrConfig.resetTimeoutOnDuplicate&&r.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&n||t)&&this.toastrConfig.preventDuplicates&&null!==s)return s;this.previousToastMessage=t;let o=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(o=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const a=this.overlay.create(r.positionClass,this.overlayContainer);this.index=this.index+1;let c=t;t&&r.enableHtml&&(c=this.sanitizer.sanitize(i.L.HTML,t));const l=new O(a),u=new w(this.index,r,c,n,e,l),d=new L(u,this._injector),h=new x(r.toastComponent,d),f=a.attach(h,this.toastrConfig.newestOnTop);l.componentInstance=f.instance;const p={toastId:this.index,title:n||"",message:t||"",toastRef:l,onShown:l.afterActivate(),onHidden:l.afterClosed(),onTap:u.onTap(),onAction:u.onAction(),portal:f};return o||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{p.toastRef.activate()})),this.toasts.push(p),p}}return e.\u0275fac=function(t){return new(t||e)(i.ic(S),i.ic(C),i.ic(i.v),i.ic(o.b),i.ic(i.D))},e.\u0275prov=Object(i.Nb)({factory:function(){return new e(Object(i.ic)(S),Object(i.ic)(C),Object(i.ic)(i.r),Object(i.ic)(o.b),Object(i.ic)(i.D))},token:e,providedIn:"root"}),e})(),A=(()=>{class e{constructor(e,t,n){this.toastrService=e,this.toastPackage=t,this.ngZone=n,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=t.message,this.title=t.title,this.options=t.config,this.originalTimeout=t.config.timeOut,this.toastClasses=`${t.toastType} ${t.config.toastClass}`,this.sub=t.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=t.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=t.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=t.toastRef.countDuplicate().subscribe(e=>{this.duplicatesCount=e})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0!==this.options.disableTimeOut&&"extendedTimeOut"!==this.options.disableTimeOut&&0!==this.options.extendedTimeOut&&"removed"!==this.state.value&&(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(e,t){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(e),t)):this.timeout=setTimeout(()=>e(),t)}outsideInterval(e,t){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(e),t)):this.intervalId=setInterval(()=>e(),t)}runInsideAngular(e){this.ngZone?this.ngZone.run(()=>e()):e()}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(E),i.Rb(w),i.Rb(i.D))},e.\u0275cmp=i.Lb({type:e,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,t){1&e&&i.lc("click",function(){return t.tapToast()})("mouseenter",function(){return t.stickAround()})("mouseleave",function(){return t.delayedHideToast()}),2&e&&(i.Oc("@flyInOut",t.state),i.Fb(t.toastClasses),i.Nc("display",t.displayStyle))},attrs:c,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(e,t){1&e&&(i.Pc(0,l,3,0,"button",0),i.Pc(1,d,3,5,"div",1),i.Pc(2,h,1,3,"div",2),i.Pc(3,f,2,4,"div",3),i.Pc(4,p,2,2,"div",4)),2&e&&(i.uc("ngIf",t.options.closeButton),i.Db(1),i.uc("ngIf",t.title),i.Db(1),i.uc("ngIf",t.message&&t.options.enableHtml),i.Db(1),i.uc("ngIf",t.message&&!t.options.enableHtml),i.Db(1),i.uc("ngIf",t.options.progressBar))},directives:[a.r],encapsulation:2,data:{animation:[Object(r.j)("flyInOut",[Object(r.g)("inactive",Object(r.h)({opacity:0})),Object(r.g)("active",Object(r.h)({opacity:1})),Object(r.g)("removed",Object(r.h)({opacity:0})),Object(r.i)("inactive => active",Object(r.e)("{{ easeTime }}ms {{ easing }}")),Object(r.i)("active => removed",Object(r.e)("{{ easeTime }}ms {{ easing }}"))])]}}),e})();const I=Object.assign(Object.assign({},D),{toastComponent:A});let R=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[{provide:S,useValue:{default:I,config:t}}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Pb({type:e}),e.\u0275inj=i.Ob({imports:[[a.c]]}),e})(),P=(()=>{class e{constructor(e,t,n){this.toastrService=e,this.toastPackage=t,this.appRef=n,this.width=-1,this.toastClasses="",this.state="inactive",this.message=t.message,this.title=t.title,this.options=t.config,this.originalTimeout=t.config.timeOut,this.toastClasses=`${t.toastType} ${t.config.toastClass}`,this.sub=t.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=t.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=t.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=t.toastRef.countDuplicate().subscribe(e=>{this.duplicatesCount=e})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0!==this.options.disableTimeOut&&"extendedTimeOut"!==this.options.disableTimeOut&&0!==this.options.extendedTimeOut&&"removed"!==this.state&&(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(E),i.Rb(w),i.Rb(i.g))},e.\u0275cmp=i.Lb({type:e,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,t){1&e&&i.lc("click",function(){return t.tapToast()})("mouseenter",function(){return t.stickAround()})("mouseleave",function(){return t.delayedHideToast()}),2&e&&(i.Fb(t.toastClasses),i.Nc("display",t.displayStyle))},attrs:c,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function(e,t){1&e&&(i.Pc(0,m,3,0,"button",0),i.Pc(1,g,3,5,"div",1),i.Pc(2,_,1,3,"div",2),i.Pc(3,v,2,4,"div",3),i.Pc(4,y,2,2,"div",4)),2&e&&(i.uc("ngIf",t.options.closeButton),i.Db(1),i.uc("ngIf",t.title),i.Db(1),i.uc("ngIf",t.message&&t.options.enableHtml),i.Db(1),i.uc("ngIf",t.message&&!t.options.enableHtml),i.Db(1),i.uc("ngIf",t.options.progressBar))},directives:[a.r],encapsulation:2}),e})();Object.assign(Object.assign({},D),{toastComponent:P})},EHx7:function(e,t,n){var i=n("0Dky"),r=n("2oRo").RegExp;e.exports=i(function(){var e=r("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})},ENF9:function(e,t,n){"use strict";var i,r=n("2oRo"),s=n("4zBA"),o=n("4syw"),a=n("8YOa"),c=n("bWFh"),l=n("rKzb"),u=n("hh1v"),d=n("afO8").enforce,h=n("f5p1"),f=!r.ActiveXObject&&"ActiveXObject"in r,p=Object.isExtensible,m=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},b=c("WeakMap",m,l);if(h&&f){i=l.getConstructor(m,"WeakMap",!0),a.enable();var g=b.prototype,_=s(g.delete),v=s(g.has),y=s(g.get),w=s(g.set);o(g,{delete:function(e){if(u(e)&&!p(e)){var t=d(this);return t.frozen||(t.frozen=new i),_(this,e)||t.frozen.delete(e)}return _(this,e)},has:function(e){if(u(e)&&!p(e)){var t=d(this);return t.frozen||(t.frozen=new i),v(this,e)||t.frozen.has(e)}return v(this,e)},get:function(e){if(u(e)&&!p(e)){var t=d(this);return t.frozen||(t.frozen=new i),v(this,e)?y(this,e):t.frozen.get(e)}return y(this,e)},set:function(e,t){if(u(e)&&!p(e)){var n=d(this);n.frozen||(n.frozen=new i),v(this,e)?w(this,e,t):n.frozen.set(e,t)}else w(this,e,t);return this}})}},EOgW:function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(e){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===e},meridiem:function(e,t,n){return e<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(n("wd/R"))},EQ5u:function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return c});var i=n("XNiG"),r=n("HDdC"),s=(n("7o/Q"),n("quSY")),o=n("x+ZX");class a extends r.a{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new s.a,e.add(this.source.subscribe(new l(this.getSubject(),this))),e.closed&&(this._connection=null,e=s.a.EMPTY)),e}refCount(){return Object(o.a)()(this)}}const c=(()=>{const e=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class l extends i.b{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}},EUcb:function(e,t,n){"use strict";t.a=function(e){return null!=e&&"object"==typeof e}},EY2u:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return s});var i=n("HDdC");const r=new i.a(e=>e.complete());function s(e){return e?function(e){return new i.a(t=>e.schedule(()=>t.complete()))}(e):r}},EgGo:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("SVse"),r=n("sne2");class s{constructor(e){this.base=e}static concatURLSegments(e){return e.reduce(i.m.joinWithSlash)}static buildURL(e,...t){return s.concatURLSegments([...e?["/"]:[],...t])}getURL(e,t=!0,...n){return s.buildURL(t,this.base,e,...n)}getCreate(e=!0){return this.getURL(r.e.CREATE,e)}getCreateFrom(e,t=!0){return this.getURL(r.e.CREATE,t,e)}getDelete(e=!0){return this.getURL(r.e.DELETE,e)}getEdit(e,t=!0){return this.getURL(r.e.EDIT,t,e)}getUpdate(e,t=!0){return this.getURL(r.e.UPDATE,t,e)}getAdd(e=!0){return this.getURL(r.e.ADD,e)}getRemove(e=!0){return this.getURL(r.e.REMOVE,e)}getRecreate(e,t=!0){return this.getURL(r.e.RECREATE,t,e)}}},Ekvf:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("mrSG"),r=n("IheW"),s=n("lJxs"),o=n("xTzq"),a=n("o8EM"),c=n("8Y7J");let l=(()=>{let e=class{constructor(e,t){this.http=e,this.rbdConfigurationService=t,this.apiPath="api/pool"}create(e){return this.http.post(this.apiPath,e,{observe:"response"})}update(e){let t;return e.hasOwnProperty("srcpool")?(t=e.srcpool,delete e.srcpool):(t=e.pool,delete e.pool),this.http.put(`${this.apiPath}/${encodeURIComponent(t)}`,e,{observe:"response"})}delete(e){return this.http.delete(`${this.apiPath}/${e}`,{observe:"response"})}get(e){return this.http.get(`${this.apiPath}/${e}`)}getList(){return this.http.get(`${this.apiPath}?stats=true`)}getConfiguration(e){return this.http.get(`${this.apiPath}/${e}/configuration`).pipe(Object(s.a)(e=>e.map(e=>Object.assign(e,this.rbdConfigurationService.getOptionByName(e.name)))))}getInfo(){return this.http.get(`ui-${this.apiPath}/info`)}list(e=[]){const t=e.join(",");return this.http.get(`${this.apiPath}?attrs=${t}`).toPromise().then(e=>e)}};return e.\u0275fac=function(t){return new(t||e)(c.ic(r.b),c.ic(a.a))},e.\u0275prov=c.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e=Object(i.b)([o.a,Object(i.d)("design:paramtypes",[r.b,a.a])],e),e})()},EmSq:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("8Y7J"),r=n("LvDl"),s=n.n(r),o=n("Fgil"),a=n("aXbf"),c=n("s7LF");let l=(()=>{class e{constructor(e,t,n,r){this.elementRef=e,this.control=t,this.dimlessBinaryPipe=n,this.formatter=r,this.ngModelChange=new i.p,this.el=this.elementRef.nativeElement}ngOnInit(){this.setValue(this.el.value)}setValue(e){/^[\d.]+$/.test(e)&&(e+=this.defaultUnit||"m");const t=this.formatter.toBytes(e),n=this.round(t);this.el.value=this.dimlessBinaryPipe.transform(n),null!==t?(this.ngModelChange.emit(this.el.value),this.control.control.setValue(this.el.value)):(this.ngModelChange.emit(null),this.control.control.setValue(null))}round(e){if(null!==e&&0!==e){if(!s.a.isUndefined(this.minBytes)&&e<this.minBytes)return this.minBytes;if(!s.a.isUndefined(this.maxBytes)&&e>this.maxBytes)return this.maxBytes;if(!s.a.isUndefined(this.roundPower)){const t=Math.round(Math.log(e)/Math.log(this.roundPower));return Math.pow(this.roundPower,t)}}return e}onBlur(e){this.setValue(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.n),i.Rb(c.p),i.Rb(o.a),i.Rb(a.a))},e.\u0275dir=i.Mb({type:e,selectors:[["","cdDimlessBinary",""]],hostBindings:function(e,t){1&e&&i.lc("blur",function(e){return t.onBlur(e.target.value)})},inputs:{minBytes:"minBytes",maxBytes:"maxBytes",roundPower:"roundPower",defaultUnit:"defaultUnit"},outputs:{ngModelChange:"ngModelChange"}}),e})()},F8JR:function(e,t,n){"use strict";var i=n("tycR").forEach,r=n("pkCn")("forEach");e.exports=r?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},FFMq:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("8Y7J");let r=(()=>{class e{transform(e){return e.join(", ")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Qb({name:"join",type:e,pure:!0}),e})()},FMNM:function(e,t,n){var i=n("2oRo"),r=n("xluM"),s=n("glrk"),o=n("Fib7"),a=n("xrYK"),c=n("kmMV"),l=i.TypeError;e.exports=function(e,t){var n=e.exec;if(o(n)){var i=r(n,e,t);return null!==i&&s(i),i}if("RegExp"===a(e))return r(c,e,t);throw l("RegExp#exec called on incompatible receiver")}},FSuO:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("8Y7J"),r=n("LvDl"),s=n.n(r),o=n("x38r"),a=n("a0VL"),c=n("uIqm");let l=(()=>{class e{constructor(e){this.datePipe=e,this.autoReload=5e3,this.renderObjects=!1,this.appendParentKey=!0,this.hideEmpty=!1,this.hideKeys=[],this.columns=[],this.fetchData=new i.p}ngOnInit(){this.columns=[{prop:"key",flexGrow:1,cellTransformation:o.a.bold},{prop:"value",flexGrow:3}],this.customCss&&(this.columns[1].cellTransformation=o.a.classAdding),this.fetchData.observers.length>0&&this.table.fetchData.subscribe(()=>{this.fetchData.emit()}),this.useData()}ngOnChanges(){this.useData()}useData(){if(!this.data)return;let e=this.makePairs(this.data);this.hideKeys&&(e=e.filter(e=>!this.hideKeys.includes(e.key))),this.tableData=e}makePairs(e){let t=[];if(e){if(s.a.isArray(e))t=this.makePairsFromArray(e);else{if(!s.a.isObject(e))throw new Error("Wrong data format");t=this.makePairsFromObject(e)}return t=t.map(e=>(e.value=this.convertValue(e.value),e)).filter(e=>null!==e.value),s.a.sortBy(this.renderObjects?this.insertFlattenObjects(t):t,"key")}}makePairsFromArray(e){let t=[];const n=e[0];if(s.a.isArray(n)){if(2!==n.length)throw new Error(`Array contains too many elements (${n.length}). Needs to be of type [string, any][]`);t=e.map(e=>({key:e[0],value:e[1]}))}else s.a.isObject(n)&&(t=s.a.has(n,"key")&&s.a.has(n,"value")?[...e]:e.reduce((e,t)=>e.concat(this.makePairsFromObject(t)),t));return t}makePairsFromObject(e){return Object.keys(e).map(t=>({key:t,value:e[t]}))}insertFlattenObjects(e){return s.a.flattenDeep(e.map(e=>{const t=e.value,n=s.a.isObject(t);return!n||s.a.isEmpty(t)?(n&&(e.value=""),e):this.splitItemIntoItems(e)}))}splitItemIntoItems(e){return this.makePairs(e.value).map(t=>(this.appendParentKey&&(t.key=e.key+" "+t.key),t))}convertValue(e){if(s.a.isArray(e)){if(s.a.isEmpty(e)&&this.hideEmpty)return null;e=e.map(e=>s.a.isObject(e)?JSON.stringify(e):e).join(", ")}else if(s.a.isObject(e)){if(this.hideEmpty&&s.a.isEmpty(e)||!this.renderObjects)return null}else if(s.a.isString(e)){if(""===e&&this.hideEmpty)return null;this.isDate(e)&&(e=this.datePipe.transform(e)||e)}return e}isDate(e){const t="[ -:.TZ]",n="\\d{2}"+t;return e.match(new RegExp("^\\d{4}"+t+n+n+n+n+n+"\\d*Z?$"))}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(a.a))},e.\u0275cmp=i.Lb({type:e,selectors:[["cd-table-key-value"]],viewQuery:function(e,t){if(1&e&&i.Wc(c.a,3),2&e){let e;i.Ec(e=i.mc())&&(t.table=e.first)}},inputs:{data:"data",autoReload:"autoReload",renderObjects:"renderObjects",appendParentKey:"appendParentKey",hideEmpty:"hideEmpty",hideKeys:"hideKeys",customCss:"customCss"},outputs:{fetchData:"fetchData"},features:[i.Bb],decls:2,vars:9,consts:[["columnMode","flex",3,"data","columns","toolHeader","autoReload","customCss","autoSave","header","footer","limit"],["table",""]],template:function(e,t){1&e&&i.Sb(0,"cd-table",0,1),2&e&&i.uc("data",t.tableData)("columns",t.columns)("toolHeader",!1)("autoReload",t.autoReload)("customCss",t.customCss)("autoSave",!1)("header",!1)("footer",!1)("limit",0)},directives:[c.a],styles:[""]}),e})()},Fgil:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("aXbf"),r=n("8Y7J");let s=(()=>{class e{constructor(e){this.formatter=e}transform(e){return this.formatter.format_number(e,1024,["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"])}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(i.a))},e.\u0275pipe=r.Qb({name:"dimlessBinary",type:e,pure:!0}),e})()},Fib7:function(e,t){e.exports=function(e){return"function"==typeof e}},Fnuy:function(e,t,n){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n("wd/R"))},"G+Rx":function(e,t,n){var i=n("0GbY");e.exports=i("document","documentElement")},G0Uy:function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},G0yt:function(e,t,n){"use strict";n.d(t,"a",function(){return un}),n.d(t,"b",function(){return Ue}),n.d(t,"c",function(){return qe}),n.d(t,"d",function(){return at}),n.d(t,"e",function(){return tt}),n.d(t,"f",function(){return nt}),n.d(t,"g",function(){return St}),n.d(t,"h",function(){return Ut}),n.d(t,"i",function(){return tn}),n.d(t,"j",function(){return Kt}),n.d(t,"k",function(){return Qt}),n.d(t,"l",function(){return nn}),n.d(t,"m",function(){return en}),n.d(t,"n",function(){return Xt}),n.d(t,"o",function(){return mn}),n.d(t,"p",function(){return wn}),n.d(t,"q",function(){return vn}),n.d(t,"r",function(){return yn}),n.d(t,"s",function(){return Dn}),n.d(t,"t",function(){return xn}),n.d(t,"u",function(){return Sn}),n.d(t,"v",function(){return Jt}),n.d(t,"w",function(){return An}),n.d(t,"x",function(){return On}),n.d(t,"y",function(){return In}),n.d(t,"z",function(){return Pn}),n.d(t,"A",function(){return Fn}),n.d(t,"B",function(){return Gn}),n.d(t,"C",function(){return Jn}),n.d(t,"D",function(){return ei}),n.d(t,"E",function(){return Kn}),n.d(t,"F",function(){return ti}),n.d(t,"G",function(){return ui}),n.d(t,"H",function(){return di});var i=n("mrSG"),r=n("8Y7J"),s=n("SVse"),o=n("s7LF"),a=n("XNiG"),c=n("2Vo4"),l=(n("itXk"),n("PqYM"),n("5yfJ"),n("xgIS")),u=n("VRyK"),d=n("DH7j"),h=n("yCtX"),f=n("l7GE"),p=n("ZUHj");class m{call(e,t){return t.subscribe(new b(e))}}class b extends f.a{constructor(e){super(e),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(e){this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(let n=0;n<t&&!this.hasFirst;n++){const t=e[n],i=Object(p.a)(this,t,void 0,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}}notifyNext(e,t,n){if(!this.hasFirst){this.hasFirst=!0;for(let e=0;e<this.subscriptions.length;e++)if(e!==n){let t=this.subscriptions[e];t.unsubscribe(),this.remove(t)}this.subscriptions=null}this.destination.next(t)}}var g=n("HDdC"),_=n("lJxs"),v=(n("JX91"),n("/uUt"),n("eIep")),y=n("1G5W"),w=n("pLZG"),D=n("IzEk"),S=n("vkgz");function x(...e){return t=>{let n;return"function"==typeof e[e.length-1]&&(n=e.pop()),t.lift(new k(e,n))}}class k{constructor(e,t){this.observables=e,this.project=t}call(e,t){return t.subscribe(new T(e,this.observables,this.project))}}class T extends f.a{constructor(e,t,n){super(e),this.observables=t,this.project=n,this.toRespond=[];const i=t.length;this.values=new Array(i);for(let r=0;r<i;r++)this.toRespond.push(r);for(let r=0;r<i;r++){let e=t[r];this.add(Object(p.a)(this,e,void 0,r))}}notifyNext(e,t,n){this.values[n]=t;const i=this.toRespond;if(i.length>0){const e=i.indexOf(n);-1!==e&&i.splice(e,1)}}notifyComplete(){}_next(e){if(0===this.toRespond.length){const t=[e,...this.values];this.project?this._tryProject(t):this.destination.next(t)}}_tryProject(e){let t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}var M=n("3E0/"),C=n("w1tV");function O(e,t){if(1&e){const e=r.Yb();r.Xb(0,"button",1),r.lc("click",function(){return r.Ic(e),r.nc().closeHandler()}),r.Xb(1,"span",2),r.Rc(2,"\xd7"),r.Wb(),r.Wb()}}const L=["*"],E=["defaultDayTemplate"],A=["content"];function I(e,t){if(1&e&&r.Sb(0,"div",7),2&e){const e=t.currentMonth,n=t.selected,i=t.disabled,s=t.focused;r.uc("date",t.date)("currentMonth",e)("selected",n)("disabled",i)("focused",s)}}function R(e,t){if(1&e&&(r.Xb(0,"div",12),r.Rc(1),r.Wb()),2&e){const e=r.nc().$implicit,t=r.nc(2);r.Db(1),r.Uc(" ",t.i18n.getMonthFullName(e.number,e.year)," ",t.i18n.getYearNumerals(e.year)," ")}}function P(e,t){if(1&e&&(r.Xb(0,"div",9),r.Pc(1,R,2,2,"div",10),r.Sb(2,"ngb-datepicker-month",11),r.Wb()),2&e){const e=t.$implicit,n=r.nc(2);r.Db(1),r.uc("ngIf","none"===n.navigation||n.displayMonths>1&&"select"===n.navigation),r.Db(1),r.uc("month",e.firstDate)}}function F(e,t){if(1&e&&r.Pc(0,P,3,2,"div",8),2&e){const e=r.nc();r.uc("ngForOf",e.model.months)}}function W(e,t){if(1&e){const e=r.Yb();r.Xb(0,"ngb-datepicker-navigation",13),r.lc("navigate",function(t){return r.Ic(e),r.nc().onNavigateEvent(t)})("select",function(t){return r.Ic(e),r.nc().onNavigateDateSelect(t)}),r.Wb()}if(2&e){const e=r.nc();r.uc("date",e.model.firstDate)("months",e.model.months)("disabled",e.model.disabled)("showSelect","select"===e.model.navigation)("prevDisabled",e.model.prevDisabled)("nextDisabled",e.model.nextDisabled)("selectBoxes",e.model.selectBoxes)}}function j(e,t){}function Y(e,t){}function N(e,t){1&e&&r.Sb(0,"div",5)}function z(e,t){if(1&e&&(r.Xb(0,"div",6),r.Rc(1),r.Wb()),2&e){const e=t.$implicit,n=r.nc(2);r.Db(1),r.Tc(" ",n.i18n.getWeekdayShortName(e)," ")}}function $(e,t){if(1&e&&(r.Xb(0,"div",2),r.Pc(1,N,1,0,"div",3),r.Pc(2,z,2,1,"div",4),r.Wb()),2&e){const e=r.nc();r.Db(1),r.uc("ngIf",e.datepicker.showWeekNumbers),r.Db(1),r.uc("ngForOf",e.viewModel.weekdays)}}function H(e,t){if(1&e&&(r.Xb(0,"div",11),r.Rc(1),r.Wb()),2&e){const e=r.nc(2).$implicit,t=r.nc();r.Db(1),r.Sc(t.i18n.getWeekNumerals(e.number))}}function X(e,t){}function V(e,t){if(1&e&&r.Pc(0,X,0,0,"ng-template",14),2&e){const e=r.nc().$implicit,t=r.nc(3);r.uc("ngTemplateOutlet",t.datepicker.dayTemplate)("ngTemplateOutletContext",e.context)}}function B(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div",12),r.lc("click",function(n){r.Ic(e);const i=t.$implicit;return r.nc(3).doSelect(i),n.preventDefault()}),r.Pc(1,V,1,2,"ng-template",13),r.Wb()}if(2&e){const e=t.$implicit;r.Jb("disabled",e.context.disabled)("hidden",e.hidden)("ngb-dp-today",e.context.today),r.uc("tabindex",e.tabindex),r.Eb("aria-label",e.ariaLabel),r.Db(1),r.uc("ngIf",!e.hidden)}}function U(e,t){if(1&e&&(r.Xb(0,"div",8),r.Pc(1,H,2,1,"div",9),r.Pc(2,B,2,9,"div",10),r.Wb()),2&e){const e=r.nc().$implicit,t=r.nc();r.Db(1),r.uc("ngIf",t.datepicker.showWeekNumbers),r.Db(1),r.uc("ngForOf",e.days)}}function q(e,t){1&e&&r.Pc(0,U,3,2,"div",7),2&e&&r.uc("ngIf",!t.$implicit.collapsed)}function G(e,t){if(1&e){const e=r.Yb();r.Xb(0,"ngb-datepicker-navigation-select",7),r.lc("select",function(t){return r.Ic(e),r.nc().select.emit(t)}),r.Wb()}if(2&e){const e=r.nc();r.uc("date",e.date)("disabled",e.disabled)("months",e.selectBoxes.months)("years",e.selectBoxes.years)}}function J(e,t){1&e&&r.Sb(0,"div",0)}function K(e,t){1&e&&r.Sb(0,"div",0)}function Q(e,t){if(1&e&&(r.Pc(0,J,1,0,"div",9),r.Xb(1,"div",10),r.Rc(2),r.Wb(),r.Pc(3,K,1,0,"div",9)),2&e){const e=t.$implicit,n=t.index,i=r.nc(2);r.uc("ngIf",n>0),r.Db(2),r.Uc(" ",i.i18n.getMonthFullName(e.number,e.year)," ",i.i18n.getYearNumerals(e.year)," "),r.Db(1),r.uc("ngIf",n!==i.months.length-1)}}function Z(e,t){if(1&e&&r.Pc(0,Q,4,4,"ng-template",8),2&e){const e=r.nc();r.uc("ngForOf",e.months)}}const ee=["ngbDatepickerDayView",""],te=["month"],ne=["year"];function ie(e,t){if(1&e&&(r.Xb(0,"option",5),r.Rc(1),r.Wb()),2&e){const e=t.$implicit,n=r.nc();r.uc("value",e),r.Eb("aria-label",n.i18n.getMonthFullName(e,null==n.date?null:n.date.year)),r.Db(1),r.Sc(n.i18n.getMonthShortName(e,null==n.date?null:n.date.year))}}function re(e,t){if(1&e&&(r.Xb(0,"option",5),r.Rc(1),r.Wb()),2&e){const e=t.$implicit,n=r.nc();r.uc("value",e),r.Db(1),r.Sc(n.i18n.getYearNumerals(e))}}const se=["dialog"],oe=["ngbNavOutlet",""];function ae(e,t){}const ce=function(e){return{$implicit:e}};function le(e,t){if(1&e&&(r.Xb(0,"div",2),r.Pc(1,ae,0,0,"ng-template",3),r.Wb()),2&e){const e=r.nc().$implicit,t=r.nc();r.Jb("active",e.active),r.uc("id",e.panelDomId),r.Eb("role",t.paneRole?t.paneRole:t.nav.roles?"tabpanel":void 0)("aria-labelledby",e.domId),r.Db(1),r.uc("ngTemplateOutlet",(null==e.contentTpl?null:e.contentTpl.templateRef)||null)("ngTemplateOutletContext",r.zc(7,ce,e.active))}}function ue(e,t){1&e&&r.Pc(0,le,2,9,"div",1),2&e&&r.uc("ngIf",t.$implicit.isPanelInDom())}function de(e,t){if(1&e&&r.Rc(0),2&e){const e=r.nc(2);r.Sc(e.title)}}function he(e,t){}function fe(e,t){if(1&e&&(r.Xb(0,"h3",3),r.Pc(1,de,1,1,"ng-template",null,4,r.Qc),r.Pc(3,he,0,0,"ng-template",5),r.Wb()),2&e){const e=r.Fc(2),t=r.nc();r.Db(3),r.uc("ngTemplateOutlet",t.isTitleTemplate()?t.title:e)("ngTemplateOutletContext",t.context)}}function pe(e,t){if(1&e&&(r.Xb(0,"span"),r.bc(1,3),r.oc(2,"percent"),r.Wb()),2&e){const e=r.nc();r.Db(2),r.fc(r.pc(2,1,e.getValue()/e.max)),r.cc(1)}}function me(e,t){1&e&&r.Rc(0),2&e&&r.Sc(100===t.fill?"\u2605":"\u2606")}function be(e,t){}function ge(e,t){if(1&e){const e=r.Yb();r.Xb(0,"span",2),r.Rc(1),r.Wb(),r.Xb(2,"span",3),r.lc("mouseenter",function(){r.Ic(e);const n=t.index;return r.nc().enter(n+1)})("click",function(){r.Ic(e);const n=t.index;return r.nc().handleClick(n+1)}),r.Pc(3,be,0,0,"ng-template",4),r.Wb()}if(2&e){const e=t.index,n=r.nc(),i=r.Fc(1);r.Db(1),r.Tc("(",e<n.nextRate?"*":" ",")"),r.Db(1),r.Nc("cursor",n.readonly||n.disabled?"default":"pointer"),r.Db(1),r.uc("ngTemplateOutlet",n.starTemplate||n.starTemplateFromContent||i)("ngTemplateOutletContext",n.contexts[e])}}function _e(e,t){if(1&e){const e=r.Yb();r.Xb(0,"button",11),r.lc("click",function(){r.Ic(e);const t=r.nc();return t.changeHour(t.hourStep)}),r.Sb(1,"span",12),r.Xb(2,"span",13),r.bc(3,14),r.Wb(),r.Wb()}if(2&e){const e=r.nc();r.Jb("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),r.uc("disabled",e.disabled)}}function ve(e,t){if(1&e){const e=r.Yb();r.Xb(0,"button",11),r.lc("click",function(){r.Ic(e);const t=r.nc();return t.changeHour(-t.hourStep)}),r.Sb(1,"span",15),r.Xb(2,"span",13),r.bc(3,16),r.Wb(),r.Wb()}if(2&e){const e=r.nc();r.Jb("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),r.uc("disabled",e.disabled)}}function ye(e,t){if(1&e){const e=r.Yb();r.Xb(0,"button",11),r.lc("click",function(){r.Ic(e);const t=r.nc();return t.changeMinute(t.minuteStep)}),r.Sb(1,"span",12),r.Xb(2,"span",13),r.bc(3,17),r.Wb(),r.Wb()}if(2&e){const e=r.nc();r.Jb("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),r.uc("disabled",e.disabled)}}function we(e,t){if(1&e){const e=r.Yb();r.Xb(0,"button",11),r.lc("click",function(){r.Ic(e);const t=r.nc();return t.changeMinute(-t.minuteStep)}),r.Sb(1,"span",15),r.Xb(2,"span",13),r.bc(3,18),r.Wb(),r.Wb()}if(2&e){const e=r.nc();r.Jb("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),r.uc("disabled",e.disabled)}}function De(e,t){1&e&&(r.Xb(0,"div",5),r.Rc(1,":"),r.Wb())}function Se(e,t){if(1&e){const e=r.Yb();r.Xb(0,"button",11),r.lc("click",function(){r.Ic(e);const t=r.nc(2);return t.changeSecond(t.secondStep)}),r.Sb(1,"span",12),r.Xb(2,"span",13),r.bc(3,21),r.Wb(),r.Wb()}if(2&e){const e=r.nc(2);r.Jb("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),r.uc("disabled",e.disabled)}}function xe(e,t){if(1&e){const e=r.Yb();r.Xb(0,"button",11),r.lc("click",function(){r.Ic(e);const t=r.nc(2);return t.changeSecond(-t.secondStep)}),r.Sb(1,"span",15),r.Xb(2,"span",13),r.bc(3,22),r.Wb(),r.Wb()}if(2&e){const e=r.nc(2);r.Jb("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),r.uc("disabled",e.disabled)}}function ke(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div",19),r.Pc(1,Se,4,7,"button",3),r.Xb(2,"input",20),r.lc("change",function(t){return r.Ic(e),r.nc().updateSecond(t.target.value)})("input",function(t){return r.Ic(e),r.nc().formatInput(t.target)})("keydown.ArrowUp",function(t){r.Ic(e);const n=r.nc();return n.changeSecond(n.secondStep),t.preventDefault()})("keydown.ArrowDown",function(t){r.Ic(e);const n=r.nc();return n.changeSecond(-n.secondStep),t.preventDefault()}),r.Wb(),r.Pc(3,xe,4,7,"button",3),r.Wb()}if(2&e){const e=r.nc();r.Db(1),r.uc("ngIf",e.spinners),r.Db(1),r.Jb("form-control-sm",e.isSmallSize)("form-control-lg",e.isLargeSize),r.uc("value",e.formatMinSec(null==e.model?null:e.model.second))("readOnly",e.readonlyInputs)("disabled",e.disabled),r.Db(1),r.uc("ngIf",e.spinners)}}function Te(e,t){1&e&&r.Sb(0,"div",5)}function Me(e,t){if(1&e&&(r.Vb(0),r.bc(1,27),r.Ub()),2&e){const e=r.nc(2);r.Db(1),r.fc(e.i18n.getAfternoonPeriod()),r.cc(1)}}function Ce(e,t){if(1&e&&r.bc(0,28),2&e){const e=r.nc(2);r.fc(e.i18n.getMorningPeriod()),r.cc(0)}}function Oe(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div",23),r.Xb(1,"button",24),r.lc("click",function(){return r.Ic(e),r.nc().toggleMeridian()}),r.Pc(2,Me,2,1,"ng-container",25),r.Pc(3,Ce,1,1,"ng-template",null,26,r.Qc),r.Wb(),r.Wb()}if(2&e){const e=r.Fc(4),t=r.nc();r.Db(1),r.Jb("btn-sm",t.isSmallSize)("btn-lg",t.isLargeSize)("disabled",t.disabled),r.uc("disabled",t.disabled),r.Db(1),r.uc("ngIf",t.model&&t.model.hour>=12)("ngIfElse",e)}}function Le(e,t){if(1&e&&(r.Xb(0,"span"),r.Rc(1),r.Wb()),2&e){const e=r.nc().$implicit,t=r.nc();r.Fb(t.highlightClass),r.Db(1),r.Sc(e)}}function Ee(e,t){if(1&e&&r.Rc(0),2&e){const e=r.nc().$implicit;r.Sc(e)}}function Ae(e,t){if(1&e&&(r.Pc(0,Le,2,3,"span",1),r.Pc(1,Ee,1,1,"ng-template",null,2,r.Qc)),2&e){const e=t.odd,n=r.Fc(2);r.uc("ngIf",e)("ngIfElse",n)}}function Ie(e,t){if(1&e&&r.Sb(0,"ngb-highlight",2),2&e){const e=t.term;r.uc("result",(0,t.formatter)(t.result))("term",e)}}function Re(e,t){}const Pe=function(e,t,n){return{result:e,term:t,formatter:n}};function Fe(e,t){if(1&e){const e=r.Yb();r.Xb(0,"button",3),r.lc("mouseenter",function(){r.Ic(e);const n=t.index;return r.nc().markActive(n)})("click",function(){r.Ic(e);const n=t.$implicit;return r.nc().select(n)}),r.Pc(1,Re,0,0,"ng-template",4),r.Wb()}if(2&e){const e=t.$implicit,n=t.index,i=r.nc(),s=r.Fc(1);r.Jb("active",n===i.activeIdx),r.uc("id",i.id+"-"+n),r.Db(1),r.uc("ngTemplateOutlet",i.resultTemplate||s)("ngTemplateOutletContext",r.Bc(5,Pe,e,i.term,i.formatter))}}function We(e){return parseInt(`${e}`,10)}function je(e){return null!=e?`${e}`:""}function Ye(e,t,n=0){return Math.max(Math.min(e,t),n)}function Ne(e){return"string"==typeof e}function ze(e){return!isNaN(We(e))}function $e(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function He(e){return null!=e}function Xe(e){return ze(e)?`0${e}`.slice(-2):""}function Ve(e,t){return e&&e.className&&e.className.split&&e.className.split(/\s+/).indexOf(t)>=0}"undefined"==typeof Element||Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(e){let t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null});let Be=(()=>{let e=class{constructor(){this.dismissible=!0,this.type="warning"}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Nb)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Ue=(()=>{let e=class{constructor(e,t,n){this._renderer=t,this._element=n,this.close=new r.p,this.dismissible=e.dismissible,this.type=e.type}closeHandler(){this.close.emit()}ngOnChanges(e){const t=e.type;t&&!t.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${t.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${t.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}};return e.\u0275fac=function(t){return new(t||e)(r.Rb(Be),r.Rb(r.H),r.Rb(r.n))},e.\u0275cmp=r.Lb({type:e,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert"],hostVars:2,hostBindings:function(e,t){2&e&&r.Jb("alert-dismissible",t.dismissible)},inputs:{dismissible:"dismissible",type:"type"},outputs:{close:"close"},features:[r.Bb],ngContentSelectors:L,decls:2,vars:1,consts:function(){let e;return e="Close",[["type","button","class","close","aria-label",e,3,"click",4,"ngIf"],["type","button","aria-label",e,1,"close",3,"click"],["aria-hidden","true"]]},template:function(e,t){1&e&&(r.tc(),r.sc(0),r.Pc(1,O,3,0,"button",0)),2&e&&(r.Db(1),r.uc("ngIf",t.dismissible))},directives:[s.r],styles:["ngb-alert{display:block}"],encapsulation:2,changeDetection:0}),e})(),qe=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Pb({type:e}),e.\u0275inj=r.Ob({imports:[[s.c]]}),e})(),Ge=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Mb({type:e,selectors:[["","ngbButtonLabel",""]],hostVars:8,hostBindings:function(e,t){2&e&&r.Jb("btn",!0)("active",t.active)("disabled",t.disabled)("focus",t.focused)}}),e})();const Je={provide:o.o,useExisting:Object(r.W)(()=>Ke),multi:!0};let Ke=(()=>{let e=class{constructor(e,t){this._label=e,this._cd=t,this.disabled=!1,this.valueChecked=!0,this.valueUnChecked=!1,this.onChange=e=>{},this.onTouched=()=>{}}set focused(e){this._label.focused=e,e||this.onTouched()}onInputChange(e){const t=e.target.checked?this.valueChecked:this.valueUnChecked;this.onChange(t),this.onTouched(),this.writeValue(t)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._label.disabled=e}writeValue(e){this.checked=e===this.valueChecked,this._label.active=this.checked,this._cd.markForCheck()}};return e.\u0275fac=function(t){return new(t||e)(r.Rb(Ge),r.Rb(r.i))},e.\u0275dir=r.Mb({type:e,selectors:[["","ngbButton","","type","checkbox"]],hostVars:2,hostBindings:function(e,t){1&e&&r.lc("change",function(e){return t.onInputChange(e)})("focus",function(){return t.focused=!0})("blur",function(){return t.focused=!1}),2&e&&r.ac("checked",t.checked)("disabled",t.disabled)},inputs:{disabled:"disabled",valueChecked:"valueChecked",valueUnChecked:"valueUnChecked"},features:[r.Cb([Je])]}),e})();const Qe={provide:o.o,useExisting:Object(r.W)(()=>et),multi:!0};let Ze=0,et=(()=>{let e=class{constructor(){this._radios=new Set,this._value=null,this.name="ngb-radio-"+Ze++,this.onChange=e=>{},this.onTouched=()=>{}}get disabled(){return this._disabled}set disabled(e){this.setDisabledState(e)}onRadioChange(e){this.writeValue(e.value),this.onChange(e.value)}onRadioValueUpdate(){this._updateRadiosValue()}register(e){this._radios.add(e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._disabled=e,this._updateRadiosDisabled()}unregister(e){this._radios.delete(e)}writeValue(e){this._value=e,this._updateRadiosValue()}_updateRadiosValue(){this._radios.forEach(e=>e.updateValue(this._value))}_updateRadiosDisabled(){this._radios.forEach(e=>e.updateDisabled())}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Mb({type:e,selectors:[["","ngbRadioGroup",""]],hostAttrs:["role","radiogroup"],inputs:{name:"name"},features:[r.Cb([Qe])]}),e})(),tt=(()=>{let e=class{constructor(){this.collapsed=!1}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Mb({type:e,selectors:[["","ngbCollapse",""]],hostVars:4,hostBindings:function(e,t){2&e&&r.Jb("collapse",!0)("show",!t.collapsed)},inputs:{collapsed:["ngbCollapse","collapsed"]},exportAs:["ngbCollapse"]}),e})(),nt=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Pb({type:e}),e.\u0275inj=r.Ob({}),e})();class it{constructor(e,t,n){this.year=$e(e)?e:null,this.month=$e(t)?t:null,this.day=$e(n)?n:null}static from(e){return e instanceof it?e:e?new it(e.year,e.month,e.day):null}equals(e){return null!=e&&this.year===e.year&&this.month===e.month&&this.day===e.day}before(e){return!!e&&(this.year===e.year?this.month===e.month?this.day!==e.day&&this.day<e.day:this.month<e.month:this.year<e.year)}after(e){return!!e&&(this.year===e.year?this.month===e.month?this.day!==e.day&&this.day>e.day:this.month>e.month:this.year>e.year)}}function rt(e){return new it(e.getFullYear(),e.getMonth()+1,e.getDate())}function st(e){const t=new Date(e.year,e.month-1,e.day,12);return isNaN(t.getTime())||t.setFullYear(e.year),t}function ot(){return new ct}let at=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Nb)({factory:ot,token:e,providedIn:"root"}),e})(),ct=(()=>{let e=class extends at{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(e,t="d",n=1){let i=st(e),r=!0,s=i.getMonth();switch(t){case"y":i.setFullYear(i.getFullYear()+n);break;case"m":s+=n,i.setMonth(s),s%=12,s<0&&(s+=12);break;case"d":i.setDate(i.getDate()+n),r=!1;break;default:return e}return r&&i.getMonth()!==s&&i.setDate(0),rt(i)}getPrev(e,t="d",n=1){return this.getNext(e,t,-n)}getWeekday(e){let t=st(e).getDay();return 0===t?7:t}getWeekNumber(e,t){7===t&&(t=0);const n=st(e[(11-t)%7]);n.setDate(n.getDate()+4-(n.getDay()||7));const i=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((i-n.getTime())/864e5)/7)+1}getToday(){return rt(new Date)}isValid(e){if(!(e&&$e(e.year)&&$e(e.month)&&$e(e.day)))return!1;if(0===e.year)return!1;const t=st(e);return!isNaN(t.getTime())&&t.getFullYear()===e.year&&t.getMonth()+1===e.month&&t.getDate()===e.day}};return e.\u0275fac=function(t){return hi(t||e)},e.\u0275prov=r.Nb({token:e,factory:function(t){return e.\u0275fac(t)}}),e})();function lt(e,t){return!function(e,t){return!e&&!t||!!e&&!!t&&e.equals(t)}(e,t)}function ut(e,t){return!(!e&&!t||e&&t&&e.year===t.year&&e.month===t.month)}function dt(e,t,n){return e&&t&&e.before(t)?t:e&&n&&e.after(n)?n:e||null}function ht(e,t){const{minDate:n,maxDate:i,disabled:r,markDisabled:s}=t;return!(null==e||r||s&&s(e,{year:e.year,month:e.month})||n&&e.before(n)||i&&e.after(i))}let ft=(()=>{let e=class{getDayNumerals(e){return`${e.day}`}getWeekNumerals(e){return`${e}`}getYearNumerals(e){return`${e}`}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Nb)({factory:function(){return e=Object(r.ic)(r.y),new pt(e);var e},token:e,providedIn:"root"}),e})(),pt=(()=>{let e=class extends ft{constructor(e){super(),this._locale=e;const t=Object(s.F)(e,s.g.Standalone,s.B.Short);this._weekdaysShort=t.map((e,n)=>t[(n+1)%7]),this._monthsShort=Object(s.H)(e,s.g.Standalone,s.B.Abbreviated),this._monthsFull=Object(s.H)(e,s.g.Standalone,s.B.Wide)}getWeekdayShortName(e){return this._weekdaysShort[e-1]||""}getMonthShortName(e){return this._monthsShort[e-1]||""}getMonthFullName(e){return this._monthsFull[e-1]||""}getDayAriaLabel(e){const t=new Date(e.year,e.month-1,e.day);return Object(s.E)(t,"fullDate",this._locale)}};return e.\u0275fac=function(t){return new(t||e)(r.ic(r.y))},e.\u0275prov=r.Nb({token:e,factory:function(t){return e.\u0275fac(t)}}),e=Object(i.b)([Object(i.e)(0,Object(r.s)(r.y))],e),e})(),mt=(()=>{let e=class{constructor(e,t){this._calendar=e,this._i18n=t,this._VALIDATORS={dayTemplateData:e=>{if(this._state.dayTemplateData!==e)return{dayTemplateData:e}},displayMonths:e=>{if($e(e=We(e))&&e>0&&this._state.displayMonths!==e)return{displayMonths:e}},disabled:e=>{if(this._state.disabled!==e)return{disabled:e}},firstDayOfWeek:e=>{if($e(e=We(e))&&e>=0&&this._state.firstDayOfWeek!==e)return{firstDayOfWeek:e}},focusVisible:e=>{if(this._state.focusVisible!==e&&!this._state.disabled)return{focusVisible:e}},markDisabled:e=>{if(this._state.markDisabled!==e)return{markDisabled:e}},maxDate:e=>{const t=this.toValidDate(e,null);if(lt(this._state.maxDate,t))return{maxDate:t}},minDate:e=>{const t=this.toValidDate(e,null);if(lt(this._state.minDate,t))return{minDate:t}},navigation:e=>{if(this._state.navigation!==e)return{navigation:e}},outsideDays:e=>{if(this._state.outsideDays!==e)return{outsideDays:e}}},this._model$=new a.a,this._dateSelect$=new a.a,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]}}}get model$(){return this._model$.pipe(Object(w.a)(e=>e.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe(Object(w.a)(e=>null!==e))}set(e){let t=Object.keys(e).map(t=>this._VALIDATORS[t](e[t])).reduce((e,t)=>Object.assign(Object.assign({},e),t),{});Object.keys(t).length>0&&this._nextState(t)}focus(e){const t=this.toValidDate(e,null);null!=t&&!this._state.disabled&&lt(this._state.focusDate,t)&&this._nextState({focusDate:e})}focusSelect(){ht(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(e){const t=this.toValidDate(e,this._calendar.getToday());null==t||this._state.disabled||this._state.firstDate&&!ut(this._state.firstDate,t)||this._nextState({firstDate:t})}select(e,t={}){const n=this.toValidDate(e,null);null==n||this._state.disabled||(lt(this._state.selectedDate,n)&&this._nextState({selectedDate:n}),t.emitEvent&&ht(n,this._state)&&this._dateSelect$.next(n))}toValidDate(e,t){const n=it.from(e);return void 0===t&&(t=this._calendar.getToday()),this._calendar.isValid(n)?n:t}getMonth(e){for(let t of this._state.months)if(e.month===t.number&&e.year===t.year)return t;throw new Error(`month ${e.month} of year ${e.year} not found`)}_nextState(e){const t=this._updateState(e);this._patchContexts(t),this._state=t,this._model$.next(this._state)}_patchContexts(e){const{months:t,displayMonths:n,selectedDate:i,focusDate:r,focusVisible:s,disabled:o,outsideDays:a}=e;e.months.forEach(e=>{e.weeks.forEach(c=>{c.days.forEach(c=>{r&&(c.context.focused=r.equals(c.date)&&s),c.tabindex=!o&&r&&c.date.equals(r)&&r.month===e.number?0:-1,!0===o&&(c.context.disabled=!0),void 0!==i&&(c.context.selected=null!==i&&i.equals(c.date)),e.number!==c.date.month&&(c.hidden="hidden"===a||"collapsed"===a||n>1&&c.date.after(t[0].firstDate)&&c.date.before(t[n-1].lastDate))})})})}_updateState(e){const t=Object.assign({},this._state,e);let n=t.firstDate;if(("minDate"in e||"maxDate"in e)&&(function(e,t){if(t&&e&&t.before(e))throw new Error(`'maxDate' ${t} should be greater than 'minDate' ${e}`)}(t.minDate,t.maxDate),t.focusDate=dt(t.focusDate,t.minDate,t.maxDate),t.firstDate=dt(t.firstDate,t.minDate,t.maxDate),n=t.focusDate),"disabled"in e&&(t.focusVisible=!1),"selectedDate"in e&&0===this._state.months.length&&(n=t.selectedDate),"focusVisible"in e)return t;if("focusDate"in e&&(t.focusDate=dt(t.focusDate,t.minDate,t.maxDate),n=t.focusDate,0!==t.months.length&&t.focusDate&&!t.focusDate.before(t.firstDate)&&!t.focusDate.after(t.lastDate)))return t;if("firstDate"in e&&(t.firstDate=dt(t.firstDate,t.minDate,t.maxDate),n=t.firstDate),n){const i=function(e,t,n,i,r){const{displayMonths:s,months:o}=n,a=o.splice(0,o.length);return Array.from({length:s},(n,i)=>{const s=Object.assign(e.getNext(t,"m",i),{day:1});if(o[i]=null,!r){const e=a.findIndex(e=>e.firstDate.equals(s));-1!==e&&(o[i]=a.splice(e,1)[0])}return s}).forEach((t,r)=>{null===o[r]&&(o[r]=function(e,t,n,i,r={}){const{dayTemplateData:s,minDate:o,maxDate:a,firstDayOfWeek:c,markDisabled:l,outsideDays:u}=n,d=e.getToday();r.firstDate=null,r.lastDate=null,r.number=t.month,r.year=t.year,r.weeks=r.weeks||[],r.weekdays=r.weekdays||[],t=function(e,t,n){const i=e.getDaysPerWeek(),r=new it(t.year,t.month,1),s=e.getWeekday(r)%i;return e.getPrev(r,"d",(i+s-n)%i)}(e,t,c);for(let h=0;h<e.getWeeksPerMonth();h++){let n=r.weeks[h];n||(n=r.weeks[h]={number:0,days:[],collapsed:!0});const f=n.days;for(let c=0;c<e.getDaysPerWeek();c++){0===h&&(r.weekdays[c]=e.getWeekday(t));const n=new it(t.year,t.month,t.day),u=e.getNext(n),p=i.getDayAriaLabel(n);let m=!!(o&&n.before(o)||a&&n.after(a));!m&&l&&(m=l(n,{month:r.number,year:r.year}));let b=n.equals(d),g=s?s(n,{month:r.number,year:r.year}):void 0;null===r.firstDate&&n.month===r.number&&(r.firstDate=n),n.month===r.number&&u.month!==r.number&&(r.lastDate=n);let _=f[c];_||(_=f[c]={}),_.date=n,_.context=Object.assign(_.context||{},{$implicit:n,date:n,data:g,currentMonth:r.number,currentYear:r.year,disabled:m,focused:!1,selected:!1,today:b}),_.tabindex=-1,_.ariaLabel=p,_.hidden=!1,t=u}n.number=e.getWeekNumber(f.map(e=>e.date),c),n.collapsed="collapsed"===u&&f[0].date.month!==r.number&&f[f.length-1].date.month!==r.number}return r}(e,t,n,i,a.shift()||{}))}),o}(this._calendar,n,t,this._i18n,"dayTemplateData"in e||"firstDayOfWeek"in e||"markDisabled"in e||"minDate"in e||"maxDate"in e||"disabled"in e||"outsideDays"in e);t.months=i,t.firstDate=i[0].firstDate,t.lastDate=i[i.length-1].lastDate,"selectedDate"in e&&!ht(t.selectedDate,t)&&(t.selectedDate=null),"firstDate"in e&&(!t.focusDate||t.focusDate.before(t.firstDate)||t.focusDate.after(t.lastDate))&&(t.focusDate=n);const r=!this._state.firstDate||this._state.firstDate.year!==t.firstDate.year,s=!this._state.firstDate||this._state.firstDate.month!==t.firstDate.month;"select"===t.navigation?(("minDate"in e||"maxDate"in e||0===t.selectBoxes.years.length||r)&&(t.selectBoxes.years=function(e,t,n){if(!e)return[];const i=t?Math.max(t.year,e.year-500):e.year-10,r=(n?Math.min(n.year,e.year+500):e.year+10)-i+1,s=Array(r);for(let o=0;o<r;o++)s[o]=i+o;return s}(t.firstDate,t.minDate,t.maxDate)),("minDate"in e||"maxDate"in e||0===t.selectBoxes.months.length||r)&&(t.selectBoxes.months=function(e,t,n,i){if(!t)return[];let r=e.getMonths(t.year);if(n&&t.year===n.year){const e=r.findIndex(e=>e===n.month);r=r.slice(e)}if(i&&t.year===i.year){const e=r.findIndex(e=>e===i.month);r=r.slice(0,e+1)}return r}(this._calendar,t.firstDate,t.minDate,t.maxDate))):t.selectBoxes={years:[],months:[]},"arrows"!==t.navigation&&"select"!==t.navigation||!(s||r||"minDate"in e||"maxDate"in e||"disabled"in e)||(t.prevDisabled=t.disabled||function(e,t,n){const i=Object.assign(e.getPrev(t,"m"),{day:1});return null!=n&&(i.year===n.year&&i.month<n.month||i.year<n.year&&1===n.month)}(this._calendar,t.firstDate,t.minDate),t.nextDisabled=t.disabled||function(e,t,n){const i=Object.assign(e.getNext(t,"m"),{day:1});return null!=n&&i.after(n)}(this._calendar,t.lastDate,t.maxDate))}return t}};return e.\u0275fac=function(t){return new(t||e)(r.ic(at),r.ic(ft))},e.\u0275prov=r.Nb({token:e,factory:function(t){return e.\u0275fac(t)}}),e})();var bt=function(e){return e[e.PREV=0]="PREV",e[e.NEXT=1]="NEXT",e}({});let gt=(()=>{let e=class{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekdays=!0,this.showWeekNumbers=!1}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Nb)({factory:function(){return new e},token:e,providedIn:"root"}),e})();function _t(){return new yt}let vt=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Nb)({factory:_t,token:e,providedIn:"root"}),e})(),yt=(()=>{let e=class extends vt{fromModel(e){return e&&$e(e.year)&&$e(e.month)&&$e(e.day)?{year:e.year,month:e.month,day:e.day}:null}toModel(e){return e&&$e(e.year)&&$e(e.month)&&$e(e.day)?{year:e.year,month:e.month,day:e.day}:null}};return e.\u0275fac=function(t){return fi(t||e)},e.\u0275prov=r.Nb({token:e,factory:function(t){return e.\u0275fac(t)}}),e})();const wt={provide:o.o,useExisting:Object(r.W)(()=>St),multi:!0};let Dt=(()=>{let e=class{constructor(e){this.templateRef=e}};return e.\u0275fac=function(t){return new(t||e)(r.Rb(r.O))},e.\u0275dir=r.Mb({type:e,selectors:[["ng-template","ngbDatepickerContent",""]]}),e})(),St=(()=>{let e=class{constructor(e,t,n,i,s,o,c,l){this._service=e,this._calendar=t,this.i18n=n,this._elementRef=o,this._ngbDateAdapter=c,this._ngZone=l,this._controlValue=null,this._destroyed$=new a.a,this._publicState={},this.navigate=new r.p,this.dateSelect=new r.p,this.select=this.dateSelect,this.onChange=e=>{},this.onTouched=()=>{},["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekdays","showWeekNumbers","startDate"].forEach(e=>this[e]=i[e]),e.dateSelect$.pipe(Object(y.a)(this._destroyed$)).subscribe(e=>{this.dateSelect.emit(e)}),e.model$.pipe(Object(y.a)(this._destroyed$)).subscribe(e=>{const t=e.firstDate,n=this.model?this.model.firstDate:null;this._publicState={maxDate:e.maxDate,minDate:e.minDate,firstDate:e.firstDate,lastDate:e.lastDate,focusedDate:e.focusDate,months:e.months.map(e=>e.firstDate)};let i=!1;if(!t.equals(n)&&(this.navigate.emit({current:n?{year:n.year,month:n.month}:null,next:{year:t.year,month:t.month},preventDefault:()=>i=!0}),i&&null!==n))return void this._service.open(n);const r=e.selectedDate,o=e.focusDate,a=this.model?this.model.focusDate:null;this.model=e,lt(r,this._controlValue)&&(this._controlValue=r,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(r))),lt(o,a)&&a&&e.focusVisible&&this.focus(),s.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}focusDate(e){this._service.focus(it.from(e))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe(Object(D.a)(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');e&&e.focus()})}navigateTo(e){this._service.open(it.from(e?e.day?e:Object.assign(Object.assign({},e),{day:1}):null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const e=Object(l.a)(this._contentEl.nativeElement,"focusin"),t=Object(l.a)(this._contentEl.nativeElement,"focusout"),{nativeElement:n}=this._elementRef;Object(u.a)(e,t).pipe(Object(w.a)(({target:e,relatedTarget:t})=>!(Ve(e,"ngb-dp-day")&&Ve(t,"ngb-dp-day")&&n.contains(e)&&n.contains(t))),Object(y.a)(this._destroyed$)).subscribe(({type:e})=>this._ngZone.run(()=>this._service.set({focusVisible:"focusin"===e})))})}ngOnDestroy(){this._destroyed$.next()}ngOnInit(){if(void 0===this.model){const e={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays"].forEach(t=>e[t]=this[t]),this._service.set(e),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate)}ngOnChanges(e){const t={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays"].filter(t=>t in e).forEach(e=>t[e]=this[e]),this._service.set(t),"startDate"in e){const{currentValue:t,previousValue:n}=e.startDate;ut(n,t)&&this.navigateTo(this.startDate)}}onDateSelect(e){this._service.focus(e),this._service.select(e,{emitEvent:!0})}onNavigateDateSelect(e){this._service.open(e)}onNavigateEvent(e){switch(e){case bt.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case bt.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._service.set({disabled:e})}writeValue(e){this._controlValue=it.from(this._ngbDateAdapter.fromModel(e)),this._service.select(this._controlValue)}};return e.\u0275fac=function(t){return new(t||e)(r.Rb(mt),r.Rb(at),r.Rb(ft),r.Rb(gt),r.Rb(r.i),r.Rb(r.n),r.Rb(vt),r.Rb(r.D))},e.\u0275cmp=r.Lb({type:e,selectors:[["ngb-datepicker"]],contentQueries:function(e,t,n){if(1&e&&r.Kb(n,Dt,3),2&e){let e;r.Ec(e=r.mc())&&(t.contentTemplate=e.first)}},viewQuery:function(e,t){if(1&e&&(r.Wc(E,3),r.Wc(A,3)),2&e){let e;r.Ec(e=r.mc())&&(t._defaultDayTemplate=e.first),r.Ec(e=r.mc())&&(t._contentEl=e.first)}},inputs:{dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekdays:"showWeekdays",showWeekNumbers:"showWeekNumbers",startDate:"startDate"},outputs:{navigate:"navigate",dateSelect:"dateSelect",select:"select"},exportAs:["ngbDatepicker"],features:[r.Cb([wt,mt]),r.Bb],decls:10,vars:5,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select",4,"ngIf"],[1,"ngb-dp-content"],["content",""],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],["class","ngb-dp-month",4,"ngFor","ngForOf"],[1,"ngb-dp-month"],["class","ngb-dp-month-name",4,"ngIf"],[3,"month"],[1,"ngb-dp-month-name"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select"]],template:function(e,t){if(1&e&&(r.Pc(0,I,1,5,"ng-template",null,0,r.Qc),r.Pc(2,F,1,1,"ng-template",null,1,r.Qc),r.Xb(4,"div",2),r.Pc(5,W,1,7,"ngb-datepicker-navigation",3),r.Wb(),r.Xb(6,"div",4,5),r.Pc(8,j,0,0,"ng-template",6),r.Wb(),r.Pc(9,Y,0,0,"ng-template",6)),2&e){const e=r.Fc(3);r.Db(5),r.uc("ngIf","none"!==t.navigation),r.Db(1),r.Jb("ngb-dp-months",!t.contentTemplate),r.Db(2),r.uc("ngTemplateOutlet",(null==t.contentTemplate?null:t.contentTemplate.templateRef)||e),r.Db(1),r.uc("ngTemplateOutlet",t.footerTemplate)}},directives:function(){return[s.r,s.w,Vt,s.q,Tt,Mt]},styles:["ngb-datepicker{border:1px solid #dfdfdf;border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}.ngb-dp-body{z-index:1050}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:#f8f9fa;background-color:var(--light)}.ngb-dp-months{display:-ms-flexbox;display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:#f8f9fa;background-color:var(--light)}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}"],encapsulation:2,changeDetection:0}),e})();var xt=function(e){return e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowUp=38]="ArrowUp",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowDown=40]="ArrowDown",e}({});let kt=(()=>{let e=class{processKey(e,t){const{state:n,calendar:i}=t;switch(e.which){case xt.PageUp:t.focusDate(i.getPrev(n.focusedDate,e.shiftKey?"y":"m",1));break;case xt.PageDown:t.focusDate(i.getNext(n.focusedDate,e.shiftKey?"y":"m",1));break;case xt.End:t.focusDate(e.shiftKey?n.maxDate:n.lastDate);break;case xt.Home:t.focusDate(e.shiftKey?n.minDate:n.firstDate);break;case xt.ArrowLeft:t.focusDate(i.getPrev(n.focusedDate,"d",1));break;case xt.ArrowUp:t.focusDate(i.getPrev(n.focusedDate,"d",i.getDaysPerWeek()));break;case xt.ArrowRight:t.focusDate(i.getNext(n.focusedDate,"d",1));break;case xt.ArrowDown:t.focusDate(i.getNext(n.focusedDate,"d",i.getDaysPerWeek()));break;case xt.Enter:case xt.Space:t.focusSelect();break;default:return}e.preventDefault(),e.stopPropagation()}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Nb)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Tt=(()=>{let e=class{constructor(e,t,n,i){this.i18n=e,this.datepicker=t,this._keyboardService=n,this._service=i}set month(e){this.viewModel=this._service.getMonth(e)}onKeyDown(e){this._keyboardService.processKey(e,this.datepicker)}doSelect(e){e.context.disabled||e.hidden||this.datepicker.onDateSelect(e.date)}};return e.\u0275fac=function(t){return new(t||e)(r.Rb(ft),r.Rb(St),r.Rb(kt),r.Rb(mt))},e.\u0275cmp=r.Lb({type:e,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(e,t){1&e&&r.lc("keydown",function(e){return t.onKeyDown(e)})},inputs:{month:"month"},decls:2,vars:2,consts:[["class","ngb-dp-week ngb-dp-weekdays","role","row",4,"ngIf"],["ngFor","",3,"ngForOf"],["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],["class","ngb-dp-weekday ngb-dp-showweek",4,"ngIf"],["class","ngb-dp-weekday small","role","columnheader",4,"ngFor","ngForOf"],[1,"ngb-dp-weekday","ngb-dp-showweek"],["role","columnheader",1,"ngb-dp-weekday","small"],["class","ngb-dp-week","role","row",4,"ngIf"],["role","row",1,"ngb-dp-week"],["class","ngb-dp-week-number small text-muted",4,"ngIf"],["class","ngb-dp-day","role","gridcell",3,"disabled","tabindex","hidden","ngb-dp-today","click",4,"ngFor","ngForOf"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"tabindex","click"],[3,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){1&e&&(r.Pc(0,$,3,2,"div",0),r.Pc(1,q,1,1,"ng-template",1)),2&e&&(r.uc("ngIf",t.datepicker.showWeekdays),r.Db(1),r.uc("ngForOf",t.viewModel.weeks))},directives:[s.r,s.q,s.w],styles:['ngb-datepicker-month{display:block}.ngb-dp-week-number,.ngb-dp-weekday{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:#5bc0de;color:var(--info)}.ngb-dp-week{border-radius:.25rem;display:-ms-flexbox;display:flex}.ngb-dp-weekdays{border-bottom:1px solid rgba(0,0,0,.125);border-radius:0;background-color:#f8f9fa;background-color:var(--light)}.ngb-dp-day,.ngb-dp-week-number,.ngb-dp-weekday{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex="0"]{z-index:1}'],encapsulation:2}),e})(),Mt=(()=>{let e=class{constructor(e){this.i18n=e,this.navigation=bt,this.months=[],this.navigate=new r.p,this.select=new r.p}onClickPrev(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}};return e.\u0275fac=function(t){return new(t||e)(r.Rb(ft))},e.\u0275cmp=r.Lb({type:e,selectors:[["ngb-datepicker-navigation"]],inputs:{months:"months",date:"date",disabled:"disabled",showSelect:"showSelect",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",selectBoxes:"selectBoxes"},outputs:{navigate:"navigate",select:"select"},decls:8,vars:4,consts:function(){let e,t,n,i;return e="Previous month",t="Previous month",n="Next month",i="Next month",[[1,"ngb-dp-arrow"],["type","button","aria-label",e,"title",t,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-chevron"],["class","ngb-dp-navigation-select",3,"date","disabled","months","years","select",4,"ngIf"],[4,"ngIf"],[1,"ngb-dp-arrow","right"],["type","button","aria-label",n,"title",i,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years","select"],["ngFor","",3,"ngForOf"],["class","ngb-dp-arrow",4,"ngIf"],[1,"ngb-dp-month-name"]]},template:function(e,t){1&e&&(r.Xb(0,"div",0),r.Xb(1,"button",1),r.lc("click",function(e){return t.onClickPrev(e)}),r.Sb(2,"span",2),r.Wb(),r.Wb(),r.Pc(3,G,1,4,"ngb-datepicker-navigation-select",3),r.Pc(4,Z,1,1,void 0,4),r.Xb(5,"div",5),r.Xb(6,"button",6),r.lc("click",function(e){return t.onClickNext(e)}),r.Sb(7,"span",2),r.Wb(),r.Wb()),2&e&&(r.Db(1),r.uc("disabled",t.prevDisabled),r.Db(2),r.uc("ngIf",t.showSelect),r.Db(1),r.uc("ngIf",!t.showSelect),r.Db(2),r.uc("disabled",t.nextDisabled))},directives:function(){return[s.r,Bt,s.q]},styles:["ngb-datepicker-navigation{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}.right .ngb-dp-navigation-chevron{-webkit-transform:rotate(45deg);transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow.right{-ms-flex-pack:end;justify-content:flex-end}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:-ms-flexbox;display:flex;-ms-flex:1 1 9rem;flex:1 1 9rem}"],encapsulation:2,changeDetection:0}),e})();const Ct=(e,t)=>!!t&&t.some(t=>t.contains(e)),Ot=(e,t)=>!t||null!=function(e,t){return t?void 0===e.closest?null:e.closest(t):null}(e,t),Lt="undefined"!=typeof navigator&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function Et(e,t,n,i,r,s,o,a){var c;n&&e.runOutsideAngular((c=()=>{const c=Object(l.a)(t,"keydown").pipe(Object(y.a)(r),Object(w.a)(e=>e.which===xt.Escape),Object(S.a)(e=>e.preventDefault())),u=Object(l.a)(t,"mousedown").pipe(Object(_.a)(e=>{const t=e.target;return 2!==e.button&&!Ct(t,o)&&("inside"===n?Ct(t,s)&&Ot(t,a):"outside"===n?!Ct(t,s):Ot(t,a)||!Ct(t,s))}),Object(y.a)(r)),f=Object(l.a)(t,"mouseup").pipe(x(u),Object(w.a)(([e,t])=>t),Object(M.a)(0),Object(y.a)(r));(function(...e){if(1===e.length){if(!Object(d.a)(e[0]))return e[0];e=e[0]}return Object(h.a)(e,void 0).lift(new m)})([c.pipe(Object(_.a)(e=>0)),f.pipe(Object(_.a)(e=>1))]).subscribe(t=>e.run(()=>i(t)))},Lt?()=>setTimeout(()=>c(),100):c))}const At=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function It(e){const t=Array.from(e.querySelectorAll(At)).filter(e=>-1!==e.tabIndex);return[t[0],t[t.length-1]]}const Rt=(e,t,n,i=!1)=>{e.runOutsideAngular(()=>{const e=Object(l.a)(t,"focusin").pipe(Object(y.a)(n),Object(_.a)(e=>e.target));Object(l.a)(t,"keydown").pipe(Object(y.a)(n),Object(w.a)(e=>e.which===xt.Tab),x(e)).subscribe(([e,n])=>{const[i,r]=It(t);n!==i&&n!==t||!e.shiftKey||(r.focus(),e.preventDefault()),n!==r||e.shiftKey||(i.focus(),e.preventDefault())}),i&&Object(l.a)(t,"click").pipe(Object(y.a)(n),x(e),Object(_.a)(e=>e[1])).subscribe(e=>e.focus())})},Pt=/\s+/,Ft=new class{getAllStyles(e){return window.getComputedStyle(e)}getStyle(e,t){return this.getAllStyles(e)[t]}isStaticPositioned(e){return"static"===(this.getStyle(e,"position")||"static")}offsetParent(e){let t=e.offsetParent||document.documentElement;for(;t&&t!==document.documentElement&&this.isStaticPositioned(t);)t=t.offsetParent;return t||document.documentElement}position(e,t=!0){let n,i={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(e,"position"))n=e.getBoundingClientRect(),n={top:n.top,bottom:n.bottom,left:n.left,right:n.right,height:n.height,width:n.width};else{const t=this.offsetParent(e);n=this.offset(e,!1),t!==document.documentElement&&(i=this.offset(t,!1)),i.top+=t.clientTop,i.left+=t.clientLeft}return n.top-=i.top,n.bottom-=i.top,n.left-=i.left,n.right-=i.left,t&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n}offset(e,t=!0){const n=e.getBoundingClientRect(),i=window.pageYOffset-document.documentElement.clientTop,r=window.pageXOffset-document.documentElement.clientLeft;let s={height:n.height||e.offsetHeight,width:n.width||e.offsetWidth,top:n.top+i,bottom:n.bottom+i,left:n.left+r,right:n.right+r};return t&&(s.height=Math.round(s.height),s.width=Math.round(s.width),s.top=Math.round(s.top),s.bottom=Math.round(s.bottom),s.left=Math.round(s.left),s.right=Math.round(s.right)),s}positionElements(e,t,n,i){const[r="top",s="center"]=n.split("-"),o=i?this.offset(e,!1):this.position(e,!1),a=this.getAllStyles(t),c=parseFloat(a.marginTop),l=parseFloat(a.marginBottom),u=parseFloat(a.marginLeft),d=parseFloat(a.marginRight);let h=0,f=0;switch(r){case"top":h=o.top-(t.offsetHeight+c+l);break;case"bottom":h=o.top+o.height;break;case"left":f=o.left-(t.offsetWidth+u+d);break;case"right":f=o.left+o.width}switch(s){case"top":h=o.top;break;case"bottom":h=o.top+o.height-t.offsetHeight;break;case"left":f=o.left;break;case"right":f=o.left+o.width-t.offsetWidth;break;case"center":"top"===r||"bottom"===r?f=o.left+o.width/2-t.offsetWidth/2:h=o.top+o.height/2-t.offsetHeight/2}t.style.transform=`translate(${Math.round(f)}px, ${Math.round(h)}px)`;const p=t.getBoundingClientRect(),m=document.documentElement,b=window.innerHeight||m.clientHeight,g=window.innerWidth||m.clientWidth;return p.left>=0&&p.top>=0&&p.right<=g&&p.bottom<=b}};function Wt(e,t,n,i,r){let s=Array.isArray(n)?n:n.split(Pt);const o=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],a=t.classList,c=e=>{const[t,n]=e.split("-"),i=[];return r&&(i.push(`${r}-${t}`),n&&i.push(`${r}-${t}-${n}`),i.forEach(e=>{a.add(e)})),i};r&&o.forEach(e=>{a.remove(`${r}-${e}`)});let l=s.findIndex(e=>"auto"===e);l>=0&&o.forEach(function(e){null==s.find(t=>-1!==t.search("^"+e))&&s.splice(l++,1,e)});const u=t.style;u.position="absolute",u.top="0",u.left="0",u["will-change"]="transform";let d=null,h=!1;for(d of s){let n=c(d);if(Ft.positionElements(e,t,d,i)){h=!0;break}r&&n.forEach(e=>{a.remove(e)})}return h||(d=s[0],c(d),Ft.positionElements(e,t,d,i)),d}function jt(){return new Nt}let Yt=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Nb)({factory:jt,token:e,providedIn:"root"}),e})(),Nt=(()=>{let e=class extends Yt{parse(e){if(null!=e){const t=e.trim().split("-");if(1===t.length&&ze(t[0]))return{year:We(t[0]),month:null,day:null};if(2===t.length&&ze(t[0])&&ze(t[1]))return{year:We(t[0]),month:We(t[1]),day:null};if(3===t.length&&ze(t[0])&&ze(t[1])&&ze(t[2]))return{year:We(t[0]),month:We(t[1]),day:We(t[2])}}return null}format(e){return e?`${e.year}-${ze(e.month)?Xe(e.month):""}-${ze(e.day)?Xe(e.day):""}`:""}};return e.\u0275fac=function(t){return pi(t||e)},e.\u0275prov=r.Nb({token:e,factory:function(t){return e.\u0275fac(t)}}),e})(),zt=(()=>{let e=class extends gt{constructor(){super(...arguments),this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"],this.restoreFocus=!0}};return e.\u0275fac=function(t){return mi(t||e)},e.\u0275prov=Object(r.Nb)({factory:function(){return new e},token:e,providedIn:"root"}),e})();const $t={provide:o.o,useExisting:Object(r.W)(()=>Xt),multi:!0},Ht={provide:o.n,useExisting:Object(r.W)(()=>Xt),multi:!0};let Xt=(()=>{let e=class{constructor(e,t,n,i,s,o,a,c,l,u,d){this._parserFormatter=e,this._elRef=t,this._vcRef=n,this._renderer=i,this._cfr=s,this._ngZone=o,this._calendar=a,this._dateAdapter=c,this._document=l,this._changeDetector=u,this._cRef=null,this._disabled=!1,this._elWithFocus=null,this._model=null,this.dateSelect=new r.p,this.navigate=new r.p,this.closed=new r.p,this._onChange=e=>{},this._onTouched=()=>{},this._validatorChange=()=>{},["autoClose","container","positionTarget","placement"].forEach(e=>this[e]=d[e]),this._zoneSubscription=o.onStable.subscribe(()=>this._updatePopupPosition())}get disabled(){return this._disabled}set disabled(e){this._disabled=""===e||e&&"false"!==e,this.isOpen()&&this._cRef.instance.setDisabledState(this._disabled)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}registerOnValidatorChange(e){this._validatorChange=e}setDisabledState(e){this.disabled=e}validate(e){const{value:t}=e;if(null!=t){const e=this._fromDateStruct(this._dateAdapter.fromModel(t));if(!e)return{ngbDate:{invalid:t}};if(this.minDate&&e.before(it.from(this.minDate)))return{ngbDate:{minDate:{minDate:this.minDate,actual:t}}};if(this.maxDate&&e.after(it.from(this.maxDate)))return{ngbDate:{maxDate:{maxDate:this.maxDate,actual:t}}}}return null}writeValue(e){this._model=this._fromDateStruct(this._dateAdapter.fromModel(e)),this._writeModelValue(this._model)}manualDateChange(e,t=!1){const n=e!==this._inputValue;n&&(this._inputValue=e,this._model=this._fromDateStruct(this._parserFormatter.parse(e))),!n&&t||this._onChange(this._model?this._dateAdapter.toModel(this._model):""===e?null:e),t&&this._model&&this._writeModelValue(this._model)}isOpen(){return!!this._cRef}open(){if(!this.isOpen()){const e=this._cfr.resolveComponentFactory(St);this._cRef=this._vcRef.createComponent(e),this._applyPopupStyling(this._cRef.location.nativeElement),this._applyDatepickerInputs(this._cRef.instance),this._subscribeForDatepickerOutputs(this._cRef.instance),this._cRef.instance.ngOnInit(),this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)),this._cRef.instance.registerOnChange(e=>{this.writeValue(e),this._onChange(e),this._onTouched()}),this._cRef.changeDetectorRef.detectChanges(),this._cRef.instance.setDisabledState(this.disabled),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._cRef.location.nativeElement),this._elWithFocus=this._document.activeElement,Rt(this._ngZone,this._cRef.location.nativeElement,this.closed,!0),this._cRef.instance.focus(),Et(this._ngZone,this._document,this.autoClose,()=>this.close(),this.closed,[],[this._elRef.nativeElement,this._cRef.location.nativeElement])}}close(){if(this.isOpen()){this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)),this._cRef=null,this.closed.emit(),this._changeDetector.markForCheck();let e=this._elWithFocus;Ne(this.restoreFocus)?e=this._document.querySelector(this.restoreFocus):void 0!==this.restoreFocus&&(e=this.restoreFocus),e&&e.focus?e.focus():this._document.body.focus()}}toggle(){this.isOpen()?this.close():this.open()}navigateTo(e){this.isOpen()&&this._cRef.instance.navigateTo(e)}onBlur(){this._onTouched()}onFocus(){this._elWithFocus=this._elRef.nativeElement}ngOnChanges(e){(e.minDate||e.maxDate)&&(this._validatorChange(),this.isOpen()&&(e.minDate&&(this._cRef.instance.minDate=this.minDate),e.maxDate&&(this._cRef.instance.maxDate=this.maxDate),this._cRef.instance.ngOnChanges(e)))}ngOnDestroy(){this.close(),this._zoneSubscription.unsubscribe()}_applyDatepickerInputs(e){["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showNavigation","showWeekdays","showWeekNumbers"].forEach(t=>{void 0!==this[t]&&(e[t]=this[t])}),e.startDate=this.startDate||this._model}_applyPopupStyling(e){this._renderer.addClass(e,"dropdown-menu"),this._renderer.addClass(e,"show"),"body"===this.container&&this._renderer.addClass(e,"ngb-dp-body")}_subscribeForDatepickerOutputs(e){e.navigate.subscribe(e=>this.navigate.emit(e)),e.dateSelect.subscribe(e=>{this.dateSelect.emit(e),!0!==this.autoClose&&"inside"!==this.autoClose||this.close()})}_writeModelValue(e){const t=this._parserFormatter.format(e);this._inputValue=t,this._renderer.setProperty(this._elRef.nativeElement,"value",t),this.isOpen()&&(this._cRef.instance.writeValue(this._dateAdapter.toModel(e)),this._onTouched())}_fromDateStruct(e){const t=e?new it(e.year,e.month,e.day):null;return this._calendar.isValid(t)?t:null}_updatePopupPosition(){if(!this._cRef)return;let e;if(e=Ne(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget instanceof HTMLElement?this.positionTarget:this._elRef.nativeElement,this.positionTarget&&!e)throw new Error("ngbDatepicker could not find element declared in [positionTarget] to position against.");Wt(e,this._cRef.location.nativeElement,this.placement,"body"===this.container)}};return e.\u0275fac=function(t){return new(t||e)(r.Rb(Yt),r.Rb(r.n),r.Rb(r.S),r.Rb(r.H),r.Rb(r.k),r.Rb(r.D),r.Rb(at),r.Rb(vt),r.Rb(s.d),r.Rb(r.i),r.Rb(zt))},e.\u0275dir=r.Mb({type:e,selectors:[["input","ngbDatepicker",""]],hostVars:1,hostBindings:function(e,t){1&e&&r.lc("input",function(e){return t.manualDateChange(e.target.value)})("change",function(e){return t.manualDateChange(e.target.value,!0)})("focus",function(){return t.onFocus()})("blur",function(){return t.onBlur()}),2&e&&r.ac("disabled",t.disabled)},inputs:{disabled:"disabled",autoClose:"autoClose",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",minDate:"minDate",maxDate:"maxDate",navigation:"navigation",outsideDays:"outsideDays",placement:"placement",restoreFocus:"restoreFocus",showWeekdays:"showWeekdays",showWeekNumbers:"showWeekNumbers",startDate:"startDate",container:"container",positionTarget:"positionTarget"},outputs:{dateSelect:"dateSelect",navigate:"navigate",closed:"closed"},exportAs:["ngbDatepicker"],features:[r.Cb([$t,Ht,{provide:gt,useExisting:zt}]),r.Bb]}),e=Object(i.b)([Object(i.e)(8,Object(r.s)(s.d))],e),e})(),Vt=(()=>{let e=class{constructor(e){this.i18n=e}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}};return e.\u0275fac=function(t){return new(t||e)(r.Rb(ft))},e.\u0275cmp=r.Lb({type:e,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(e,t){2&e&&r.Jb("bg-primary",t.selected)("text-white",t.selected)("text-muted",t.isMuted())("outside",t.isMuted())("active",t.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},attrs:ee,decls:1,vars:1,template:function(e,t){1&e&&r.Rc(0),2&e&&r.Sc(t.i18n.getDayNumerals(t.date))},styles:["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:0 0}[ngbDatepickerDayView].outside{opacity:.5}"],encapsulation:2,changeDetection:0}),e})(),Bt=(()=>{let e=class{constructor(e,t){this.i18n=e,this._renderer=t,this.select=new r.p,this._month=-1,this._year=-1}changeMonth(e){this.select.emit(new it(this.date.year,We(e),1))}changeYear(e){this.select.emit(new it(We(e),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this._renderer.setProperty(this.monthSelect.nativeElement,"value",this._month)),this.date.year!==this._year&&(this._year=this.date.year,this._renderer.setProperty(this.yearSelect.nativeElement,"value",this._year)))}};return e.\u0275fac=function(t){return new(t||e)(r.Rb(ft),r.Rb(r.H))},e.\u0275cmp=r.Lb({type:e,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(e,t){if(1&e&&(r.Wc(te,3,r.n),r.Wc(ne,3,r.n)),2&e){let e;r.Ec(e=r.mc())&&(t.monthSelect=e.first),r.Ec(e=r.mc())&&(t.yearSelect=e.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},decls:6,vars:4,consts:function(){let e,t,n,i;return e="Select month",t="Select month",n="Select year",i="Select year",[["aria-label",e,"title",t,1,"custom-select",3,"disabled","change"],["month",""],[3,"value",4,"ngFor","ngForOf"],["aria-label",n,"title",i,1,"custom-select",3,"disabled","change"],["year",""],[3,"value"]]},template:function(e,t){1&e&&(r.Xb(0,"select",0,1),r.lc("change",function(e){return t.changeMonth(e.target.value)}),r.Pc(2,ie,2,3,"option",2),r.Wb(),r.Xb(3,"select",3,4),r.lc("change",function(e){return t.changeYear(e.target.value)}),r.Pc(5,re,2,2,"option",2),r.Wb()),2&e&&(r.uc("disabled",t.disabled),r.Db(2),r.uc("ngForOf",t.months),r.Db(1),r.uc("disabled",t.disabled),r.Db(2),r.uc("ngForOf",t.years))},directives:[s.q,o.u,o.C],styles:["ngb-datepicker-navigation-select>.custom-select{-ms-flex:1 1 auto;flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}ngb-datepicker-navigation-select>.custom-select:focus{z-index:1}ngb-datepicker-navigation-select>.custom-select::-ms-value{background-color:transparent!important}"],encapsulation:2,changeDetection:0}),e})();new Date(1882,10,12),new Date(2174,10,25);let Ut=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Pb({type:e}),e.\u0275inj=r.Ob({imports:[[s.c,o.m]]}),e})(),qt=(()=>{let e=class{constructor(){this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"]}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Nb)({factory:function(){return new e},token:e,providedIn:"root"}),e})();var Gt;let Jt=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Mb({type:e,selectors:[["",8,"navbar"]]}),e})(),Kt=(()=>{let e=class{constructor(e){this.elementRef=e,this._disabled=!1}set disabled(e){this._disabled=""===e||!0===e}get disabled(){return this._disabled}};return e.\u0275fac=function(t){return new(t||e)(r.Rb(r.n))},e.\u0275dir=r.Mb({type:e,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:2,hostBindings:function(e,t){2&e&&r.Jb("disabled",t.disabled)},inputs:{disabled:"disabled"}}),e})(),Qt=(()=>{let e=class{constructor(e,t){this.dropdown=e,this.placement="bottom",this.isOpen=!1,this.nativeElement=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(r.Rb(Object(r.W)(()=>tn)),r.Rb(r.n))},e.\u0275dir=r.Mb({type:e,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(e,t,n){if(1&e&&r.Kb(n,Kt,0),2&e){let e;r.Ec(e=r.mc())&&(t.menuItems=e)}},hostVars:5,hostBindings:function(e,t){1&e&&r.lc("keydown.ArrowUp",function(e){return t.dropdown.onKeyDown(e)})("keydown.ArrowDown",function(e){return t.dropdown.onKeyDown(e)})("keydown.Home",function(e){return t.dropdown.onKeyDown(e)})("keydown.End",function(e){return t.dropdown.onKeyDown(e)})("keydown.Enter",function(e){return t.dropdown.onKeyDown(e)})("keydown.Space",function(e){return t.dropdown.onKeyDown(e)})("keydown.Tab",function(e){return t.dropdown.onKeyDown(e)})("keydown.Shift.Tab",function(e){return t.dropdown.onKeyDown(e)}),2&e&&(r.Eb("x-placement",t.placement),r.Jb("dropdown-menu",!0)("show",t.dropdown.isOpen()))}}),e=Object(i.b)([Object(i.e)(0,Object(r.s)(Object(r.W)(()=>tn)))],e),e})(),Zt=(()=>{let e=class{constructor(e,t){this.dropdown=e,this.nativeElement=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(r.Rb(Object(r.W)(()=>tn)),r.Rb(r.n))},e.\u0275dir=r.Mb({type:e,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,t){2&e&&r.Eb("aria-expanded",t.dropdown.isOpen())}}),e=Object(i.b)([Object(i.e)(0,Object(r.s)(Object(r.W)(()=>tn)))],e),e})(),en=(()=>{let e=Gt=class extends Zt{constructor(e,t){super(e,t)}};return e.\u0275fac=function(t){return new(t||e)(r.Rb(Object(r.W)(()=>tn)),r.Rb(r.n))},e.\u0275dir=r.Mb({type:e,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,t){1&e&&r.lc("click",function(){return t.dropdown.toggle()})("keydown.ArrowUp",function(e){return t.dropdown.onKeyDown(e)})("keydown.ArrowDown",function(e){return t.dropdown.onKeyDown(e)})("keydown.Home",function(e){return t.dropdown.onKeyDown(e)})("keydown.End",function(e){return t.dropdown.onKeyDown(e)})("keydown.Tab",function(e){return t.dropdown.onKeyDown(e)})("keydown.Shift.Tab",function(e){return t.dropdown.onKeyDown(e)}),2&e&&r.Eb("aria-expanded",t.dropdown.isOpen())},features:[r.Cb([{provide:Zt,useExisting:Object(r.W)(()=>Gt)}]),r.Ab]}),e=Gt=Object(i.b)([Object(i.e)(0,Object(r.s)(Object(r.W)(()=>tn)))],e),e})(),tn=(()=>{let e=class{constructor(e,t,n,i,s,o,c){this._changeDetector=e,this._document=n,this._ngZone=i,this._elementRef=s,this._renderer=o,this._closed$=new a.a,this._bodyContainer=null,this._open=!1,this.openChange=new r.p,this.placement=t.placement,this.container=t.container,this.autoClose=t.autoClose,this.display=c?"static":"dynamic",this._zoneSubscription=i.onStable.subscribe(()=>{this._positionMenu()})}ngAfterContentInit(){this._ngZone.onStable.pipe(Object(D.a)(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(e){e.container&&this._open&&this._applyContainer(this.container),e.placement&&!e.placement.isFirstChange&&this._applyPlacementClasses()}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&this._anchor.nativeElement.focus())}_setCloseHandlers(){Et(this._ngZone,this._document,this.autoClose,e=>{this.close(),0===e&&this._anchor.nativeElement.focus()},this._closed$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._closed$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this._resetContainer(),this._closed$.next(),this._zoneSubscription.unsubscribe()}onKeyDown(e){const t=e.which,n=this._getMenuElements();let i=-1,r=null;const s=this._isEventFromToggle(e);if(!s&&n.length&&n.forEach((t,n)=>{t.contains(e.target)&&(r=t),t===this._document.activeElement&&(i=n)}),t!==xt.Space&&t!==xt.Enter){if(t!==xt.Tab){if(s||r){if(this.open(),n.length){switch(t){case xt.ArrowDown:i=Math.min(i+1,n.length-1);break;case xt.ArrowUp:if(this._isDropup()&&-1===i){i=n.length-1;break}i=Math.max(i-1,0);break;case xt.Home:i=0;break;case xt.End:i=n.length-1}n[i].focus()}e.preventDefault()}}else if(e.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===e.target)return void("body"!==this.container||e.shiftKey?e.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){const t=this._menu.nativeElement.querySelectorAll(At);e.shiftKey&&e.target===t[0]?(this._anchor.nativeElement.focus(),e.preventDefault()):e.shiftKey||e.target!==t[t.length-1]||(this._anchor.nativeElement.focus(),this.close())}else Object(l.a)(e.target,"focusout").pipe(Object(D.a)(1)).subscribe(({relatedTarget:e})=>{this._elementRef.nativeElement.contains(e)||this.close()})}}else!r||!0!==this.autoClose&&"inside"!==this.autoClose||Object(l.a)(r,"click").pipe(Object(D.a)(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(e){return this._anchor.nativeElement.contains(e.target)}_getMenuElements(){const e=this._menu;return null==e?[]:e.menuItems.filter(e=>!e.disabled).map(e=>e.elementRef.nativeElement)}_positionMenu(){const e=this._menu;this.isOpen()&&e&&this._applyPlacementClasses("dynamic"===this.display?Wt(this._anchor.nativeElement,this._bodyContainer||this._menu.nativeElement,this.placement,"body"===this.container):this._getFirstPlacement(this.placement))}_getFirstPlacement(e){return Array.isArray(e)?e[0]:e.split(" ")[0]}_resetContainer(){const e=this._renderer;if(this._menu){const t=this._menu.nativeElement;e.appendChild(this._elementRef.nativeElement,t),e.removeStyle(t,"position"),e.removeStyle(t,"transform")}this._bodyContainer&&(e.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(e=null){if(this._resetContainer(),"body"===e){const e=this._renderer,t=this._menu.nativeElement,n=this._bodyContainer=this._bodyContainer||e.createElement("div");e.setStyle(n,"position","absolute"),e.setStyle(t,"position","static"),e.setStyle(n,"z-index","1050"),e.appendChild(n,t),e.appendChild(this._document.body,n)}}_applyPlacementClasses(e){const t=this._menu;if(t){e||(e=this._getFirstPlacement(this.placement));const n=this._renderer,i=this._elementRef.nativeElement;n.removeClass(i,"dropup"),n.removeClass(i,"dropdown"),t.placement="static"===this.display?null:e;const r=-1!==e.search("^top")?"dropup":"dropdown";n.addClass(i,r);const s=this._bodyContainer;s&&(n.removeClass(s,"dropup"),n.removeClass(s,"dropdown"),n.addClass(s,r))}}};return e.\u0275fac=function(t){return new(t||e)(r.Rb(r.i),r.Rb(qt),r.Rb(s.d),r.Rb(r.D),r.Rb(r.n),r.Rb(r.H),r.Rb(Jt,8))},e.\u0275dir=r.Mb({type:e,selectors:[["","ngbDropdown",""]],contentQueries:function(e,t,n){if(1&e&&(r.Kb(n,Qt,1),r.Kb(n,Zt,1)),2&e){let e;r.Ec(e=r.mc())&&(t._menu=e.first),r.Ec(e=r.mc())&&(t._anchor=e.first)}},hostVars:2,hostBindings:function(e,t){2&e&&r.Jb("show",t.isOpen())},inputs:{_open:["open","_open"],placement:"placement",container:"container",autoClose:"autoClose",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],features:[r.Bb]}),e=Object(i.b)([Object(i.e)(2,Object(r.s)(s.d)),Object(i.e)(6,Object(r.E)())],e),e})(),nn=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Pb({type:e}),e.\u0275inj=r.Ob({}),e})(),rn=(()=>{let e=class{constructor(){this.backdrop=!0,this.keyboard=!0}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Nb)({factory:function(){return new e},token:e,providedIn:"root"}),e})();class sn{constructor(e,t,n){this.nodes=e,this.viewRef=t,this.componentRef=n}}class on{constructor(e,t,n,i,r,s){this._type=e,this._injector=t,this._viewContainerRef=n,this._renderer=i,this._componentFactoryResolver=r,this._applicationRef=s,this._windowRef=null,this._contentRef=null}open(e,t){return this._windowRef||(this._contentRef=this._getContentRef(e,t),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),this._viewContainerRef.length,this._injector,this._contentRef.nodes)),this._windowRef}close(){var e;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null,(null===(e=this._contentRef)||void 0===e?void 0:e.viewRef)&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null))}_getContentRef(e,t){if(e){if(e instanceof r.O){const n=e.createEmbeddedView(t);return this._applicationRef.attachView(n),new sn([n.rootNodes],n)}return new sn([[this._renderer.createText(`${e}`)]])}return new sn([])}}const an=()=>{};let cn=(()=>{let e=class{constructor(e){this._document=e}compensate(){const e=this._getWidth();return this._isPresent(e)?this._adjustBody(e):an}_adjustBody(e){const t=this._document.body,n=t.style.paddingRight,i=parseFloat(window.getComputedStyle(t)["padding-right"]);return t.style["padding-right"]=`${i+e}px`,()=>t.style["padding-right"]=n}_isPresent(e){const t=this._document.body.getBoundingClientRect();return window.innerWidth-(t.left+t.right)>=e-.1*e}_getWidth(){const e=this._document.createElement("div");e.className="modal-scrollbar-measure";const t=this._document.body;t.appendChild(e);const n=e.getBoundingClientRect().width-e.clientWidth;return t.removeChild(e),n}};return e.\u0275fac=function(t){return new(t||e)(r.ic(s.d))},e.\u0275prov=Object(r.Nb)({factory:function(){return new e(Object(r.ic)(s.d))},token:e,providedIn:"root"}),e=Object(i.b)([Object(i.e)(0,Object(r.s)(s.d))],e),e})(),ln=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Lb({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:2,hostBindings:function(e,t){2&e&&r.Fb("modal-backdrop fade show"+(t.backdropClass?" "+t.backdropClass:""))},inputs:{backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})();class un{close(e){}dismiss(e){}}class dn{constructor(e,t,n,i){this._windowCmptRef=e,this._contentRef=t,this._backdropCmptRef=n,this._beforeDismiss=i,e.instance.dismissEvent.subscribe(e=>{this.dismiss(e)}),this.result=new Promise((e,t)=>{this._resolve=e,this._reject=t}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}close(e){this._windowCmptRef&&(this._resolve(e),this._removeModalElements())}_dismiss(e){this._reject(e),this._removeModalElements()}dismiss(e){if(this._windowCmptRef)if(this._beforeDismiss){const t=this._beforeDismiss();t&&t.then?t.then(t=>{!1!==t&&this._dismiss(e)},()=>{}):!1!==t&&this._dismiss(e)}else this._dismiss(e)}_removeModalElements(){const e=this._windowCmptRef.location.nativeElement;if(e.parentNode.removeChild(e),this._windowCmptRef.destroy(),this._backdropCmptRef){const e=this._backdropCmptRef.location.nativeElement;e.parentNode.removeChild(e),this._backdropCmptRef.destroy()}this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._backdropCmptRef=null,this._contentRef=null}}var hn=function(e){return e[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",e}({});let fn=(()=>{let e=class{constructor(e,t,n){this._document=e,this._elRef=t,this._zone=n,this._closed$=new a.a,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new r.p}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement}ngAfterViewInit(){const{nativeElement:e}=this._elRef;if(this._zone.runOutsideAngular(()=>{Object(l.a)(e,"keydown").pipe(Object(y.a)(this._closed$),Object(w.a)(e=>e.which===xt.Escape&&this.keyboard)).subscribe(e=>requestAnimationFrame(()=>{e.defaultPrevented||this._zone.run(()=>this.dismiss(hn.ESC))}));let t=!1;Object(l.a)(this._dialogEl.nativeElement,"mousedown").pipe(Object(y.a)(this._closed$),Object(S.a)(()=>t=!1),Object(v.a)(()=>Object(l.a)(e,"mouseup").pipe(Object(y.a)(this._closed$),Object(D.a)(1))),Object(w.a)(({target:t})=>e===t)).subscribe(()=>{t=!0}),Object(l.a)(e,"click").pipe(Object(y.a)(this._closed$)).subscribe(({target:n})=>{!0!==this.backdrop||e!==n||t||this._zone.run(()=>this.dismiss(hn.BACKDROP_CLICK)),t=!1})}),!e.contains(document.activeElement)){const t=e.querySelector("[ngbAutofocus]"),n=It(e)[0];(t||n||e).focus()}}ngOnDestroy(){const e=this._document.body,t=this._elWithFocus;let n;n=t&&t.focus&&e.contains(t)?t:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>n.focus()),this._elWithFocus=null}),this._closed$.next()}};return e.\u0275fac=function(t){return new(t||e)(r.Rb(s.d),r.Rb(r.n),r.Rb(r.D))},e.\u0275cmp=r.Lb({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(e,t){if(1&e&&r.Wc(se,3),2&e){let e;r.Ec(e=r.mc())&&(t._dialogEl=e.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:5,hostBindings:function(e,t){2&e&&(r.Eb("aria-modal",!0)("aria-labelledby",t.ariaLabelledBy)("aria-describedby",t.ariaDescribedBy),r.Fb("modal fade show d-block"+(t.windowClass?" "+t.windowClass:"")))},inputs:{backdrop:"backdrop",keyboard:"keyboard",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:L,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,t){1&e&&(r.tc(),r.Xb(0,"div",0,1),r.Xb(2,"div",2),r.sc(3),r.Wb(),r.Wb()),2&e&&r.Fb("modal-dialog"+(t.size?" modal-"+t.size:"")+(t.centered?" modal-dialog-centered":"")+(t.scrollable?" modal-dialog-scrollable":""))},styles:["ngb-modal-window .component-host-scrollable{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}"],encapsulation:2}),e=Object(i.b)([Object(i.e)(0,Object(r.s)(s.d))],e),e})(),pn=(()=>{let e=class{constructor(e,t,n,i,s,o){this._applicationRef=e,this._injector=t,this._document=n,this._scrollBar=i,this._rendererFactory=s,this._ngZone=o,this._activeWindowCmptHasChanged=new a.a,this._ariaHiddenValues=new Map,this._backdropAttributes=["backdropClass"],this._modalRefs=[],this._windowAttributes=["ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass"],this._windowCmpts=[],this._activeInstances=new r.p,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const e=this._windowCmpts[this._windowCmpts.length-1];Rt(this._ngZone,e.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(e.location.nativeElement)}})}open(e,t,n,i){const r=i.container instanceof HTMLElement?i.container:He(i.container)?this._document.querySelector(i.container):this._document.body,s=this._rendererFactory.createRenderer(null,null),o=this._scrollBar.compensate(),a=()=>{this._modalRefs.length||(s.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!r)throw new Error(`The specified modal container "${i.container||"body"}" was not found in the DOM.`);const c=new un,l=this._getContentRef(e,i.injector||t,n,c,i);let u=!1!==i.backdrop?this._attachBackdrop(e,r):void 0,d=this._attachWindowComponent(e,r,l),h=new dn(d,l,u,i.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(d),h.result.then(o,o),h.result.then(a,a),c.close=e=>{h.close(e)},c.dismiss=e=>{h.dismiss(e)},this._applyWindowOptions(d.instance,i),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),u&&u.instance&&this._applyBackdropOptions(u.instance,i),h}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(t=>t.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e,t){let n=e.resolveComponentFactory(ln).create(this._injector);return this._applicationRef.attachView(n.hostView),t.appendChild(n.location.nativeElement),n}_attachWindowComponent(e,t,n){let i=e.resolveComponentFactory(fn).create(this._injector,n.nodes);return this._applicationRef.attachView(i.hostView),t.appendChild(i.location.nativeElement),i}_applyWindowOptions(e,t){this._windowAttributes.forEach(n=>{He(t[n])&&(e[n]=t[n])})}_applyBackdropOptions(e,t){this._backdropAttributes.forEach(n=>{He(t[n])&&(e[n]=t[n])})}_getContentRef(e,t,n,i,s){return n?n instanceof r.O?this._createFromTemplateRef(n,i):Ne(n)?this._createFromString(n):this._createFromComponent(e,t,n,i,s):new sn([])}_createFromTemplateRef(e,t){const n=e.createEmbeddedView({$implicit:t,close(e){t.close(e)},dismiss(e){t.dismiss(e)}});return this._applicationRef.attachView(n),new sn([n.rootNodes],n)}_createFromString(e){const t=this._document.createTextNode(`${e}`);return new sn([[t]])}_createFromComponent(e,t,n,i,s){const o=e.resolveComponentFactory(n),a=r.v.create({providers:[{provide:un,useValue:i}],parent:t}),c=o.create(a),l=c.location.nativeElement;return s.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(c.hostView),new sn([[l]],c.hostView,c)}_setAriaHidden(e){const t=e.parentElement;t&&e!==this._document.body&&(Array.from(t.children).forEach(t=>{t!==e&&"SCRIPT"!==t.nodeName&&(this._ariaHiddenValues.set(t,t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))}),this._setAriaHidden(t))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,t)=>{e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const t=()=>{const t=this._modalRefs.indexOf(e);t>-1&&(this._modalRefs.splice(t,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(t,t)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const t=this._windowCmpts.indexOf(e);t>-1&&(this._windowCmpts.splice(t,1),this._activeWindowCmptHasChanged.next())})}};return e.\u0275fac=function(t){return new(t||e)(r.ic(r.g),r.ic(r.v),r.ic(s.d),r.ic(cn),r.ic(r.I),r.ic(r.D))},e.\u0275prov=Object(r.Nb)({factory:function(){return new e(Object(r.ic)(r.g),Object(r.ic)(r.r),Object(r.ic)(s.d),Object(r.ic)(cn),Object(r.ic)(r.I),Object(r.ic)(r.D))},token:e,providedIn:"root"}),e=Object(i.b)([Object(i.e)(2,Object(r.s)(s.d))],e),e})(),mn=(()=>{let e=class{constructor(e,t,n,i){this._moduleCFR=e,this._injector=t,this._modalStack=n,this._config=i}open(e,t={}){const n=Object.assign({},this._config,t);return this._modalStack.open(this._moduleCFR,this._injector,e,n)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}};return e.\u0275fac=function(t){return new(t||e)(r.ic(r.k),r.ic(r.v),r.ic(pn),r.ic(rn))},e.\u0275prov=Object(r.Nb)({factory:function(){return new e(Object(r.ic)(r.k),Object(r.ic)(r.r),Object(r.ic)(pn),Object(r.ic)(rn))},token:e,providedIn:"root"}),e})(),bn=(()=>{let e=class{constructor(){this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!1}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Nb)({factory:function(){return new e},token:e,providedIn:"root"}),e})();const gn=e=>He(e)&&""!==e;let _n=0,vn=(()=>{let e=class{constructor(e){this.templateRef=e}};return e.\u0275fac=function(t){return new(t||e)(r.Rb(r.O))},e.\u0275dir=r.Mb({type:e,selectors:[["ng-template","ngbNavContent",""]]}),e})(),yn=(()=>{let e=class{constructor(e,t){this.elementRef=t,this.disabled=!1,this._nav=e}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){He(this.domId)||(this.domId="ngb-nav-"+_n++)}get active(){return this._nav.activeId===this.id}get id(){return gn(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(He(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}};return e.\u0275fac=function(t){return new(t||e)(r.Rb(Object(r.W)(()=>wn)),r.Rb(r.n))},e.\u0275dir=r.Mb({type:e,selectors:[["","ngbNavItem",""]],contentQueries:function(e,t,n){if(1&e&&r.Kb(n,vn,0),2&e){let e;r.Ec(e=r.mc())&&(t.contentTpls=e)}},hostVars:2,hostBindings:function(e,t){2&e&&r.Jb("nav-item",!0)},inputs:{disabled:"disabled",domId:"domId",destroyOnHide:"destroyOnHide",_id:["ngbNavItem","_id"]},exportAs:["ngbNavItem"]}),e=Object(i.b)([Object(i.e)(0,Object(r.s)(Object(r.W)(()=>wn)))],e),e})(),wn=(()=>{let e=class{constructor(e,t,n,i){this.role=e,this._cd=n,this._document=i,this.activeIdChange=new r.p,this.navChange=new r.p,this.destroyOnHide=t.destroyOnHide,this.orientation=t.orientation,this.roles=t.roles,this.keyboard=t.keyboard}click(e){e.disabled||this._updateActiveId(e.id)}onKeyDown(e){if("tablist"!==this.roles||!this.keyboard)return;const t=e.which,n=this.links.filter(e=>!e.navItem.disabled),{length:i}=n;let r=-1;if(n.forEach((e,t)=>{e.elRef.nativeElement===this._document.activeElement&&(r=t)}),i){switch(t){case xt.ArrowLeft:if("vertical"===this.orientation)return;r=(r-1+i)%i;break;case xt.ArrowRight:if("vertical"===this.orientation)return;r=(r+1)%i;break;case xt.ArrowDown:if("horizontal"===this.orientation)return;r=(r+1)%i;break;case xt.ArrowUp:if("horizontal"===this.orientation)return;r=(r-1+i)%i;break;case xt.Home:r=0;break;case xt.End:r=i-1}"changeWithArrows"===this.keyboard&&this.select(n[r].navItem.id),n[r].elRef.nativeElement.focus(),e.preventDefault()}}select(e){this._updateActiveId(e,!1)}ngAfterContentInit(){if(!He(this.activeId)){const e=this.items.first?this.items.first.id:null;gn(e)&&(this._updateActiveId(e,!1),this._cd.detectChanges())}}_updateActiveId(e,t=!0){if(this.activeId!==e){let n=!1;t&&this.navChange.emit({activeId:this.activeId,nextId:e,preventDefault:()=>{n=!0}}),n||(this.activeId=e,this.activeIdChange.emit(e))}}};return e.\u0275fac=function(t){return new(t||e)(r.jc("role"),r.Rb(bn),r.Rb(r.i),r.Rb(s.d))},e.\u0275dir=r.Mb({type:e,selectors:[["","ngbNav",""]],contentQueries:function(e,t,n){if(1&e&&(r.Kb(n,yn,0),r.Kb(n,Dn,1)),2&e){let e;r.Ec(e=r.mc())&&(t.items=e),r.Ec(e=r.mc())&&(t.links=e)}},hostVars:6,hostBindings:function(e,t){1&e&&r.lc("keydown.arrowLeft",function(e){return t.onKeyDown(e)})("keydown.arrowRight",function(e){return t.onKeyDown(e)})("keydown.arrowDown",function(e){return t.onKeyDown(e)})("keydown.arrowUp",function(e){return t.onKeyDown(e)})("keydown.Home",function(e){return t.onKeyDown(e)})("keydown.End",function(e){return t.onKeyDown(e)}),2&e&&(r.Eb("aria-orientation","vertical"===t.orientation&&"tablist"===t.roles?"vertical":void 0)("role",t.role?t.role:t.roles?"tablist":void 0),r.Jb("nav",!0)("flex-column","vertical"===t.orientation))},inputs:{destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard",activeId:"activeId"},outputs:{activeIdChange:"activeIdChange",navChange:"navChange"},exportAs:["ngbNav"]}),e=Object(i.b)([Object(i.e)(0,Object(r.h)("role")),Object(i.e)(3,Object(r.s)(s.d))],e),e})(),Dn=(()=>{let e=class{constructor(e,t,n,i){this.role=e,this.navItem=t,this.nav=n,this.elRef=i}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}};return e.\u0275fac=function(t){return new(t||e)(r.jc("role"),r.Rb(yn),r.Rb(wn),r.Rb(r.n))},e.\u0275dir=r.Mb({type:e,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostVars:14,hostBindings:function(e,t){1&e&&r.lc("click",function(e){return t.nav.click(t.navItem),e.preventDefault()}),2&e&&(r.ac("id",t.navItem.domId),r.Eb("role",t.role?t.role:t.nav.roles?"tab":void 0)("tabindex",t.navItem.disabled?-1:void 0)("aria-controls",t.navItem.isPanelInDom()?t.navItem.panelDomId:null)("aria-selected",t.navItem.active)("aria-disabled",t.navItem.disabled),r.Jb("nav-link",!0)("nav-item",t.hasNavItemClass())("active",t.navItem.active)("disabled",t.navItem.disabled))}}),e=Object(i.b)([Object(i.e)(0,Object(r.h)("role"))],e),e})(),Sn=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Lb({type:e,selectors:[["","ngbNavOutlet",""]],hostVars:2,hostBindings:function(e,t){2&e&&r.Jb("tab-content",!0)},inputs:{paneRole:"paneRole",nav:["ngbNavOutlet","nav"]},attrs:oe,decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],["class","tab-pane",3,"id","active",4,"ngIf"],[1,"tab-pane",3,"id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){1&e&&r.Pc(0,ue,1,1,"ng-template",0),2&e&&r.uc("ngForOf",t.nav.items)},directives:[s.q,s.r,s.w],encapsulation:2}),e})(),xn=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Pb({type:e}),e.\u0275inj=r.Ob({imports:[[s.c]]}),e})();class kn{constructor(e,t){this.open=e,this.close=t,t||(this.close=e)}isManual(){return"manual"===this.open||"manual"===this.close}}const Tn={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},Mn=e=>e>0?Object(M.a)(e):e=>e;function Cn(e,t,n,i,r,s,o=0,a=0){const c=function(e,t=Tn){const n=(e||"").trim();if(0===n.length)return[];const i=n.split(/\s+/).map(e=>e.split(":")).map(e=>{let n=t[e[0]]||e;return new kn(n[0],n[1])}),r=i.filter(e=>e.isManual());if(r.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===r.length&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i}(n);if(1===c.length&&c[0].isManual())return()=>{};const l=function(e,t,n,i){return new g.a(r=>{const s=[],o=()=>r.next(!0),a=()=>r.next(!1),c=()=>r.next(!i());return n.forEach(n=>{n.open===n.close?s.push(e.listen(t,n.open,c)):s.push(e.listen(t,n.open,o),e.listen(t,n.close,a))}),()=>{s.forEach(e=>e())}})}(e,t,c,i).pipe(function(e,t,n){return i=>{let r=null;const s=i.pipe(Object(_.a)(e=>({open:e})),Object(w.a)(e=>{const t=n();return t===e.open||r&&r.open!==t?(r&&r.open!==e.open&&(r=null),!1):(r=e,!0)}),Object(C.a)()),o=s.pipe(Object(w.a)(e=>e.open),Mn(e)),a=s.pipe(Object(w.a)(e=>!e.open),Mn(t));return Object(u.a)(o,a).pipe(Object(w.a)(e=>e===r&&(r=null,e.open!==n())),Object(_.a)(e=>e.open))}}(o,a,i)).subscribe(e=>e?r():s());return()=>l.unsubscribe()}let On=(()=>{let e=class{constructor(){this.autoClose=!0,this.placement="auto",this.triggers="click",this.disablePopover=!1,this.openDelay=0,this.closeDelay=0}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Nb)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Ln=0,En=(()=>{let e=class{isTitleTemplate(){return this.title instanceof r.O}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Lb({type:e,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip"],hostVars:3,hostBindings:function(e,t){2&e&&(r.ac("id",t.id),r.Fb("popover"+(t.popoverClass?" "+t.popoverClass:"")))},inputs:{title:"title",id:"id",popoverClass:"popoverClass",context:"context"},ngContentSelectors:L,decls:4,vars:1,consts:[[1,"arrow"],["class","popover-header",4,"ngIf"],[1,"popover-body"],[1,"popover-header"],["simpleTitle",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){1&e&&(r.tc(),r.Sb(0,"div",0),r.Pc(1,fe,4,2,"h3",1),r.Xb(2,"div",2),r.sc(3),r.Wb()),2&e&&(r.Db(1),r.uc("ngIf",null!=t.title))},directives:[s.r,s.w],styles:["ngb-popover-window.bs-popover-bottom>.arrow,ngb-popover-window.bs-popover-top>.arrow{left:50%;margin-left:-.5rem}ngb-popover-window.bs-popover-bottom-left>.arrow,ngb-popover-window.bs-popover-top-left>.arrow{left:2em}ngb-popover-window.bs-popover-bottom-right>.arrow,ngb-popover-window.bs-popover-top-right>.arrow{left:auto;right:2em}ngb-popover-window.bs-popover-left>.arrow,ngb-popover-window.bs-popover-right>.arrow{top:50%;margin-top:-.5rem}ngb-popover-window.bs-popover-left-top>.arrow,ngb-popover-window.bs-popover-right-top>.arrow{top:.7em}ngb-popover-window.bs-popover-left-bottom>.arrow,ngb-popover-window.bs-popover-right-bottom>.arrow{top:auto;bottom:.7em}"],encapsulation:2,changeDetection:0}),e})(),An=(()=>{let e=class{constructor(e,t,n,i,s,o,a,c,l,u){this._elementRef=e,this._renderer=t,this._ngZone=a,this._document=c,this._changeDetector=l,this.shown=new r.p,this.hidden=new r.p,this._ngbPopoverWindowId="ngb-popover-"+Ln++,this._windowRef=null,this.autoClose=o.autoClose,this.placement=o.placement,this.triggers=o.triggers,this.container=o.container,this.disablePopover=o.disablePopover,this.popoverClass=o.popoverClass,this.openDelay=o.openDelay,this.closeDelay=o.closeDelay,this._popupService=new on(En,n,s,t,i,u),this._zoneSubscription=a.onStable.subscribe(()=>{this._windowRef&&Wt(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container,"bs-popover")})}_isDisabled(){return!!this.disablePopover||!this.ngbPopover&&!this.popoverTitle}open(e){this._windowRef||this._isDisabled()||(this._windowRef=this._popupService.open(this.ngbPopover,e),this._windowRef.instance.title=this.popoverTitle,this._windowRef.instance.context=e,this._windowRef.instance.popoverClass=this.popoverClass,this._windowRef.instance.id=this._ngbPopoverWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbPopoverWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),Et(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),this.shown.emit())}close(){this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(),this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck())}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=Cn(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({ngbPopover:e,popoverTitle:t,disablePopover:n,popoverClass:i}){i&&this.isOpen()&&(this._windowRef.instance.popoverClass=i.currentValue),(e||t||n)&&this._isDisabled()&&this.close()}ngOnDestroy(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()}};return e.\u0275fac=function(t){return new(t||e)(r.Rb(r.n),r.Rb(r.H),r.Rb(r.v),r.Rb(r.k),r.Rb(r.S),r.Rb(On),r.Rb(r.D),r.Rb(s.d),r.Rb(r.i),r.Rb(r.g))},e.\u0275dir=r.Mb({type:e,selectors:[["","ngbPopover",""]],inputs:{autoClose:"autoClose",placement:"placement",triggers:"triggers",container:"container",disablePopover:"disablePopover",popoverClass:"popoverClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbPopover:"ngbPopover",popoverTitle:"popoverTitle"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbPopover"],features:[r.Bb]}),e=Object(i.b)([Object(i.e)(7,Object(r.s)(s.d))],e),e})(),In=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Pb({type:e}),e.\u0275inj=r.Ob({imports:[[s.c]]}),e})(),Rn=(()=>{let e=class{constructor(){this.max=100,this.animated=!1,this.striped=!1,this.showValue=!1}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Nb)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Pn=(()=>{let e=class{constructor(e){this.value=0,this.max=e.max,this.animated=e.animated,this.striped=e.striped,this.textType=e.textType,this.type=e.type,this.showValue=e.showValue,this.height=e.height}set max(e){this._max=!ze(e)||e<=0?100:e}get max(){return this._max}getValue(){return Ye(this.value,this.max)}getPercentValue(){return 100*this.getValue()/this.max}};return e.\u0275fac=function(t){return new(t||e)(r.Rb(Rn))},e.\u0275cmp=r.Lb({type:e,selectors:[["ngb-progressbar"]],inputs:{value:"value",max:"max",animated:"animated",striped:"striped",textType:"textType",type:"type",showValue:"showValue",height:"height"},ngContentSelectors:L,decls:4,vars:13,consts:function(){let e;return e="" + "\ufffd0\ufffd" + "",[[1,"progress"],["role","progressbar","aria-valuemin","0"],[4,"ngIf"],e]},template:function(e,t){1&e&&(r.tc(),r.Xb(0,"div",0),r.Xb(1,"div",1),r.Pc(2,pe,3,3,"span",2),r.sc(3),r.Wb(),r.Wb()),2&e&&(r.Nc("height",t.height),r.Db(1),r.Ib("progress-bar",t.type?" bg-"+t.type:"","",t.textType?" text-"+t.textType:"","\n ",t.animated?" progress-bar-animated":"","",t.striped?" progress-bar-striped":"",""),r.Nc("width",t.getPercentValue(),"%"),r.Eb("aria-valuenow",t.getValue())("aria-valuemax",t.max),r.Db(1),r.uc("ngIf",t.showValue))},directives:[s.r],pipes:[s.y],encapsulation:2,changeDetection:0}),e})(),Fn=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Pb({type:e}),e.\u0275inj=r.Ob({imports:[[s.c]]}),e})(),Wn=(()=>{let e=class{constructor(){this.max=10,this.readonly=!1,this.resettable=!1}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Nb)({factory:function(){return new e},token:e,providedIn:"root"}),e})();const jn={provide:o.o,useExisting:Object(r.W)(()=>Yn),multi:!0};let Yn=(()=>{let e=class{constructor(e,t){this._changeDetectorRef=t,this.contexts=[],this.disabled=!1,this.hover=new r.p,this.leave=new r.p,this.rateChange=new r.p(!0),this.onChange=e=>{},this.onTouched=()=>{},this.max=e.max,this.readonly=e.readonly}ariaValueText(){return`${this.nextRate} out of ${this.max}`}enter(e){this.readonly||this.disabled||this._updateState(e),this.hover.emit(e)}handleBlur(){this.onTouched()}handleClick(e){this.readonly||this.disabled||this.update(this.resettable&&this.rate===e?0:e)}handleKeyDown(e){switch(e.which){case xt.ArrowDown:case xt.ArrowLeft:this.update(this.rate-1);break;case xt.ArrowUp:case xt.ArrowRight:this.update(this.rate+1);break;case xt.Home:this.update(0);break;case xt.End:this.update(this.max);break;default:return}e.preventDefault()}ngOnChanges(e){e.rate&&this.update(this.rate)}ngOnInit(){this.contexts=Array.from({length:this.max},(e,t)=>({fill:0,index:t})),this._updateState(this.rate)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}reset(){this.leave.emit(this.nextRate),this._updateState(this.rate)}setDisabledState(e){this.disabled=e}update(e,t=!0){const n=Ye(e,this.max,0);this.readonly||this.disabled||this.rate===n||(this.rate=n,this.rateChange.emit(this.rate)),t&&(this.onChange(this.rate),this.onTouched()),this._updateState(this.rate)}writeValue(e){this.update(e,!1),this._changeDetectorRef.markForCheck()}_getFillValue(e){const t=this.nextRate-e;return t>=1?100:t<1&&t>0?parseInt((100*t).toFixed(2),10):0}_updateState(e){this.nextRate=e,this.contexts.forEach((e,t)=>e.fill=this._getFillValue(t))}};return e.\u0275fac=function(t){return new(t||e)(r.Rb(Wn),r.Rb(r.i))},e.\u0275cmp=r.Lb({type:e,selectors:[["ngb-rating"]],contentQueries:function(e,t,n){if(1&e&&r.Kb(n,r.O,1),2&e){let e;r.Ec(e=r.mc())&&(t.starTemplateFromContent=e.first)}},hostAttrs:["role","slider","aria-valuemin","0",1,"d-inline-flex"],hostVars:5,hostBindings:function(e,t){1&e&&r.lc("blur",function(){return t.handleBlur()})("keydown",function(e){return t.handleKeyDown(e)})("mouseleave",function(){return t.reset()}),2&e&&(r.ac("tabindex",t.disabled?-1:0),r.Eb("aria-valuemax",t.max)("aria-valuenow",t.nextRate)("aria-valuetext",t.ariaValueText())("aria-disabled",!!t.readonly||null))},inputs:{max:"max",readonly:"readonly",rate:"rate",resettable:"resettable",starTemplate:"starTemplate"},outputs:{hover:"hover",leave:"leave",rateChange:"rateChange"},features:[r.Cb([jn]),r.Bb],decls:3,vars:1,consts:[["t",""],["ngFor","",3,"ngForOf"],[1,"sr-only"],[3,"mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){1&e&&(r.Pc(0,me,1,1,"ng-template",null,0,r.Qc),r.Pc(2,ge,4,5,"ng-template",1)),2&e&&(r.Db(2),r.uc("ngForOf",t.contexts))},directives:[s.q,s.w],encapsulation:2,changeDetection:0}),e})();class Nn{constructor(e,t,n){this.hour=We(e),this.minute=We(t),this.second=We(n)}changeHour(e=1){this.updateHour((isNaN(this.hour)?0:this.hour)+e)}updateHour(e){this.hour=ze(e)?(e<0?24+e:e)%24:NaN}changeMinute(e=1){this.updateMinute((isNaN(this.minute)?0:this.minute)+e)}updateMinute(e){ze(e)?(this.minute=e%60<0?60+e%60:e%60,this.changeHour(Math.floor(e/60))):this.minute=NaN}changeSecond(e=1){this.updateSecond((isNaN(this.second)?0:this.second)+e)}updateSecond(e){ze(e)?(this.second=e<0?60+e%60:e%60,this.changeMinute(Math.floor(e/60))):this.second=NaN}isValid(e=!0){return ze(this.hour)&&ze(this.minute)&&(!e||ze(this.second))}toString(){return`${this.hour||0}:${this.minute||0}:${this.second||0}`}}let zn=(()=>{let e=class{constructor(){this.meridian=!1,this.spinners=!0,this.seconds=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.disabled=!1,this.readonlyInputs=!1,this.size="medium"}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Nb)({factory:function(){return new e},token:e,providedIn:"root"}),e})();function $n(){return new Xn}let Hn=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Nb)({factory:$n,token:e,providedIn:"root"}),e})(),Xn=(()=>{let e=class extends Hn{fromModel(e){return e&&$e(e.hour)&&$e(e.minute)?{hour:e.hour,minute:e.minute,second:$e(e.second)?e.second:null}:null}toModel(e){return e&&$e(e.hour)&&$e(e.minute)?{hour:e.hour,minute:e.minute,second:$e(e.second)?e.second:null}:null}};return e.\u0275fac=function(t){return bi(t||e)},e.\u0275prov=r.Nb({token:e,factory:function(t){return e.\u0275fac(t)}}),e})(),Vn=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Nb)({factory:function(){return e=Object(r.ic)(r.y),new Bn(e);var e},token:e,providedIn:"root"}),e})(),Bn=(()=>{let e=class extends Vn{constructor(e){super(),this._periods=Object(s.G)(e,s.g.Standalone,s.B.Narrow)}getMorningPeriod(){return this._periods[0]}getAfternoonPeriod(){return this._periods[1]}};return e.\u0275fac=function(t){return new(t||e)(r.ic(r.y))},e.\u0275prov=r.Nb({token:e,factory:function(t){return e.\u0275fac(t)}}),e=Object(i.b)([Object(i.e)(0,Object(r.s)(r.y))],e),e})();const Un=/[^0-9]/g,qn={provide:o.o,useExisting:Object(r.W)(()=>Gn),multi:!0};let Gn=(()=>{let e=class{constructor(e,t,n,i){this._config=e,this._ngbTimeAdapter=t,this._cd=n,this.i18n=i,this.onChange=e=>{},this.onTouched=()=>{},this.meridian=e.meridian,this.spinners=e.spinners,this.seconds=e.seconds,this.hourStep=e.hourStep,this.minuteStep=e.minuteStep,this.secondStep=e.secondStep,this.disabled=e.disabled,this.readonlyInputs=e.readonlyInputs,this.size=e.size}set hourStep(e){this._hourStep=$e(e)?e:this._config.hourStep}get hourStep(){return this._hourStep}set minuteStep(e){this._minuteStep=$e(e)?e:this._config.minuteStep}get minuteStep(){return this._minuteStep}set secondStep(e){this._secondStep=$e(e)?e:this._config.secondStep}get secondStep(){return this._secondStep}writeValue(e){const t=this._ngbTimeAdapter.fromModel(e);this.model=t?new Nn(t.hour,t.minute,t.second):new Nn,this.seconds||t&&ze(t.second)||(this.model.second=0),this._cd.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}changeHour(e){this.model.changeHour(e),this.propagateModelChange()}changeMinute(e){this.model.changeMinute(e),this.propagateModelChange()}changeSecond(e){this.model.changeSecond(e),this.propagateModelChange()}updateHour(e){const t=this.model.hour>=12,n=We(e);this.model.updateHour(this.meridian&&(t&&n<12||!t&&12===n)?n+12:n),this.propagateModelChange()}updateMinute(e){this.model.updateMinute(We(e)),this.propagateModelChange()}updateSecond(e){this.model.updateSecond(We(e)),this.propagateModelChange()}toggleMeridian(){this.meridian&&this.changeHour(12)}formatInput(e){e.value=e.value.replace(Un,"")}formatHour(e){return ze(e)?Xe(this.meridian?e%12==0?12:e%12:e%24):Xe(NaN)}formatMinSec(e){return Xe(ze(e)?e:NaN)}get isSmallSize(){return"small"===this.size}get isLargeSize(){return"large"===this.size}ngOnChanges(e){e.seconds&&!this.seconds&&this.model&&!ze(this.model.second)&&(this.model.second=0,this.propagateModelChange(!1))}propagateModelChange(e=!0){e&&this.onTouched(),this.model.isValid(this.seconds)?this.onChange(this._ngbTimeAdapter.toModel({hour:this.model.hour,minute:this.model.minute,second:this.model.second})):this.onChange(this._ngbTimeAdapter.toModel(null))}};return e.\u0275fac=function(t){return new(t||e)(r.Rb(zn),r.Rb(Hn),r.Rb(r.i),r.Rb(Vn))},e.\u0275cmp=r.Lb({type:e,selectors:[["ngb-timepicker"]],inputs:{meridian:"meridian",spinners:"spinners",seconds:"seconds",hourStep:"hourStep",minuteStep:"minuteStep",secondStep:"secondStep",readonlyInputs:"readonlyInputs",size:"size"},features:[r.Cb([qn]),r.Bb],decls:16,vars:25,consts:function(){let e,t,n,i,r,s,o,a,c,l,u,d,h,f;return e="HH",t="Hours",n="MM",i="Minutes",r="Increment hours",s="Decrement hours",o="Increment minutes",a="Decrement minutes",c="SS",l="Seconds",u="Increment seconds",d="Decrement seconds",h="" + "\ufffd0\ufffd" + "",f="" + "\ufffd0\ufffd" + "",[[3,"disabled"],[1,"ngb-tp"],[1,"ngb-tp-input-container","ngb-tp-hour"],["tabindex","-1","type","button","class","btn btn-link",3,"btn-sm","btn-lg","disabled","click",4,"ngIf"],["type","text","maxlength","2","inputmode","numeric","placeholder",e,"aria-label",t,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","input","keydown.ArrowUp","keydown.ArrowDown"],[1,"ngb-tp-spacer"],[1,"ngb-tp-input-container","ngb-tp-minute"],["type","text","maxlength","2","inputmode","numeric","placeholder",n,"aria-label",i,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","input","keydown.ArrowUp","keydown.ArrowDown"],["class","ngb-tp-spacer",4,"ngIf"],["class","ngb-tp-input-container ngb-tp-second",4,"ngIf"],["class","ngb-tp-meridian",4,"ngIf"],["tabindex","-1","type","button",1,"btn","btn-link",3,"disabled","click"],[1,"chevron","ngb-tp-chevron"],[1,"sr-only"],r,[1,"chevron","ngb-tp-chevron","bottom"],s,o,a,[1,"ngb-tp-input-container","ngb-tp-second"],["type","text","maxlength","2","inputmode","numeric","placeholder",c,"aria-label",l,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","input","keydown.ArrowUp","keydown.ArrowDown"],u,d,[1,"ngb-tp-meridian"],["type","button",1,"btn","btn-outline-primary",3,"disabled","click"],[4,"ngIf","ngIfElse"],["am",""],h,f]},template:function(e,t){1&e&&(r.Xb(0,"fieldset",0),r.Xb(1,"div",1),r.Xb(2,"div",2),r.Pc(3,_e,4,7,"button",3),r.Xb(4,"input",4),r.lc("change",function(e){return t.updateHour(e.target.value)})("input",function(e){return t.formatInput(e.target)})("keydown.ArrowUp",function(e){return t.changeHour(t.hourStep),e.preventDefault()})("keydown.ArrowDown",function(e){return t.changeHour(-t.hourStep),e.preventDefault()}),r.Wb(),r.Pc(5,ve,4,7,"button",3),r.Wb(),r.Xb(6,"div",5),r.Rc(7,":"),r.Wb(),r.Xb(8,"div",6),r.Pc(9,ye,4,7,"button",3),r.Xb(10,"input",7),r.lc("change",function(e){return t.updateMinute(e.target.value)})("input",function(e){return t.formatInput(e.target)})("keydown.ArrowUp",function(e){return t.changeMinute(t.minuteStep),e.preventDefault()})("keydown.ArrowDown",function(e){return t.changeMinute(-t.minuteStep),e.preventDefault()}),r.Wb(),r.Pc(11,we,4,7,"button",3),r.Wb(),r.Pc(12,De,2,0,"div",8),r.Pc(13,ke,4,9,"div",9),r.Pc(14,Te,1,0,"div",8),r.Pc(15,Oe,5,9,"div",10),r.Wb(),r.Wb()),2&e&&(r.Jb("disabled",t.disabled),r.uc("disabled",t.disabled),r.Db(3),r.uc("ngIf",t.spinners),r.Db(1),r.Jb("form-control-sm",t.isSmallSize)("form-control-lg",t.isLargeSize),r.uc("value",t.formatHour(null==t.model?null:t.model.hour))("readOnly",t.readonlyInputs)("disabled",t.disabled),r.Db(1),r.uc("ngIf",t.spinners),r.Db(4),r.uc("ngIf",t.spinners),r.Db(1),r.Jb("form-control-sm",t.isSmallSize)("form-control-lg",t.isLargeSize),r.uc("value",t.formatMinSec(null==t.model?null:t.model.minute))("readOnly",t.readonlyInputs)("disabled",t.disabled),r.Db(1),r.uc("ngIf",t.spinners),r.Db(1),r.uc("ngIf",t.seconds),r.Db(1),r.uc("ngIf",t.seconds),r.Db(1),r.uc("ngIf",t.meridian),r.Db(1),r.uc("ngIf",t.meridian))},directives:[s.r],styles:['ngb-timepicker{font-size:1rem}.ngb-tp{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-tp-input-container{width:4em}.ngb-tp-chevron::before{border-style:solid;border-width:.29em .29em 0 0;content:"";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{top:-.3em;-webkit-transform:rotate(135deg);transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-meridian,.ngb-tp-minute,.ngb-tp-second{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around}.ngb-tp-spacer{width:1em;text-align:center}'],encapsulation:2}),e})(),Jn=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Pb({type:e}),e.\u0275inj=r.Ob({imports:[[s.c]]}),e})(),Kn=(()=>{let e=class{constructor(){this.autoClose=!0,this.placement="auto",this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Nb)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Qn=0,Zn=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Lb({type:e,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:3,hostBindings:function(e,t){2&e&&(r.ac("id",t.id),r.Fb("tooltip show"+(t.tooltipClass?" "+t.tooltipClass:"")))},inputs:{id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:L,decls:3,vars:0,consts:[[1,"arrow"],[1,"tooltip-inner"]],template:function(e,t){1&e&&(r.tc(),r.Sb(0,"div",0),r.Xb(1,"div",1),r.sc(2),r.Wb())},styles:["ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{top:auto;bottom:.4rem}"],encapsulation:2,changeDetection:0}),e})(),ei=(()=>{let e=class{constructor(e,t,n,i,s,o,a,c,l,u){this._elementRef=e,this._renderer=t,this._ngZone=a,this._document=c,this._changeDetector=l,this.shown=new r.p,this.hidden=new r.p,this._ngbTooltipWindowId="ngb-tooltip-"+Qn++,this._windowRef=null,this.autoClose=o.autoClose,this.placement=o.placement,this.triggers=o.triggers,this.container=o.container,this.disableTooltip=o.disableTooltip,this.tooltipClass=o.tooltipClass,this.openDelay=o.openDelay,this.closeDelay=o.closeDelay,this._popupService=new on(Zn,n,s,t,i,u),this._zoneSubscription=a.onStable.subscribe(()=>{this._windowRef&&Wt(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container,"bs-tooltip")})}set ngbTooltip(e){this._ngbTooltip=e,!e&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(e){this._windowRef||!this._ngbTooltip||this.disableTooltip||(this._windowRef=this._popupService.open(this._ngbTooltip,e),this._windowRef.instance.tooltipClass=this.tooltipClass,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),Et(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),this.shown.emit())}close(){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(),this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck())}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=Cn(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:e}){e&&this.isOpen()&&(this._windowRef.instance.tooltipClass=e.currentValue)}ngOnDestroy(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()}};return e.\u0275fac=function(t){return new(t||e)(r.Rb(r.n),r.Rb(r.H),r.Rb(r.v),r.Rb(r.k),r.Rb(r.S),r.Rb(Kn),r.Rb(r.D),r.Rb(s.d),r.Rb(r.i),r.Rb(r.g))},e.\u0275dir=r.Mb({type:e,selectors:[["","ngbTooltip",""]],inputs:{autoClose:"autoClose",placement:"placement",triggers:"triggers",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[r.Bb]}),e=Object(i.b)([Object(i.e)(7,Object(r.s)(s.d))],e),e})(),ti=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Pb({type:e}),e.\u0275inj=r.Ob({}),e})(),ni=(()=>{let e=class{constructor(){this.highlightClass="ngb-highlight"}ngOnChanges(e){const t=je(this.result),n=(Array.isArray(this.term)?this.term:[this.term]).map(e=>je(e).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")).filter(e=>e);this.parts=n.length?t.split(new RegExp(`(${n.join("|")})`,"gmi")):[t]}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Lb({type:e,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term"},features:[r.Bb],decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["even",""]],template:function(e,t){1&e&&r.Pc(0,Ae,3,2,"ng-template",0),2&e&&r.uc("ngForOf",t.parts)},directives:[s.q,s.r],styles:[".ngb-highlight{font-weight:700}"],encapsulation:2,changeDetection:0}),e})(),ii=(()=>{let e=class{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=je,this.selectEvent=new r.p,this.activeChangeEvent=new r.p}hasActive(){return this.activeIdx>-1&&this.activeIdx<this.results.length}getActive(){return this.results[this.activeIdx]}markActive(e){this.activeIdx=e,this._activeChanged()}next(){this.activeIdx===this.results.length-1?this.activeIdx=this.focusFirst?(this.activeIdx+1)%this.results.length:-1:this.activeIdx++,this._activeChanged()}prev(){this.activeIdx<0?this.activeIdx=this.results.length-1:0===this.activeIdx?this.activeIdx=this.focusFirst?this.results.length-1:-1:this.activeIdx--,this._activeChanged()}resetActive(){this.activeIdx=this.focusFirst?0:-1,this._activeChanged()}select(e){this.selectEvent.emit(e)}ngOnInit(){this.resetActive()}_activeChanged(){this.activeChangeEvent.emit(this.activeIdx>=0?this.id+"-"+this.activeIdx:void 0)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Lb({type:e,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox",1,"dropdown-menu","show"],hostVars:1,hostBindings:function(e,t){1&e&&r.lc("mousedown",function(e){return e.preventDefault()}),2&e&&r.ac("id",t.id)},inputs:{focusFirst:"focusFirst",formatter:"formatter",id:"id",results:"results",term:"term",resultTemplate:"resultTemplate"},outputs:{selectEvent:"select",activeChangeEvent:"activeChange"},exportAs:["ngbTypeaheadWindow"],decls:3,vars:1,consts:[["rt",""],["ngFor","",3,"ngForOf"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"id","mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){1&e&&(r.Pc(0,Ie,1,2,"ng-template",null,0,r.Qc),r.Pc(2,Fe,2,9,"ng-template",1)),2&e&&(r.Db(2),r.uc("ngForOf",t.results))},directives:[s.q,ni,s.w],encapsulation:2}),e})();const ri=new r.u("live announcer delay",{providedIn:"root",factory:function(){return 100}});function si(e,t=!1){let n=e.body.querySelector("#ngb-live");return null==n&&t&&(n=e.createElement("div"),n.setAttribute("id","ngb-live"),n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),n.classList.add("sr-only"),e.body.appendChild(n)),n}let oi=(()=>{let e=class{constructor(e,t){this._document=e,this._delay=t}ngOnDestroy(){const e=si(this._document);e&&e.parentElement.removeChild(e)}say(e){const t=si(this._document,!0),n=this._delay;if(null!=t){t.textContent="";const i=()=>t.textContent=e;null===n?i():setTimeout(i,n)}}};return e.\u0275fac=function(t){return new(t||e)(r.ic(s.d),r.ic(ri))},e.\u0275prov=Object(r.Nb)({factory:function(){return new e(Object(r.ic)(s.d),Object(r.ic)(ri))},token:e,providedIn:"root"}),e=Object(i.b)([Object(i.e)(0,Object(r.s)(s.d)),Object(i.e)(1,Object(r.s)(ri))],e),e})(),ai=(()=>{let e=class{constructor(){this.editable=!0,this.focusFirst=!0,this.showHint=!1,this.placement=["bottom-left","bottom-right","top-left","top-right"]}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Nb)({factory:function(){return new e},token:e,providedIn:"root"}),e})();const ci={provide:o.o,useExisting:Object(r.W)(()=>ui),multi:!0};let li=0,ui=(()=>{let e=class{constructor(e,t,n,i,s,o,u,d,h,f,p,m){this._elementRef=e,this._renderer=n,this._live=d,this._document=h,this._ngZone=f,this._changeDetector=p,this._subscription=null,this._closed$=new a.a,this._inputValueBackup=null,this._windowRef=null,this.autocomplete="off",this.placement="bottom-left",this.selectItem=new r.p,this.activeDescendant=null,this.popupId="ngb-typeahead-"+li++,this._onTouched=()=>{},this._onChange=e=>{},this.container=o.container,this.editable=o.editable,this.focusFirst=o.focusFirst,this.showHint=o.showHint,this.placement=o.placement,this._valueChanges=Object(l.a)(e.nativeElement,"input").pipe(Object(_.a)(e=>e.target.value)),this._resubscribeTypeahead=new c.a(null),this._popupService=new on(ii,i,t,n,s,m),this._zoneSubscription=u.onStable.subscribe(()=>{this.isPopupOpen()&&Wt(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container)})}ngOnInit(){const e=this._valueChanges.pipe(Object(S.a)(e=>{this._inputValueBackup=this.showHint?e:null,this._onChange(this.editable?e:void 0)})).pipe(this.ngbTypeahead),t=this._resubscribeTypeahead.pipe(Object(v.a)(()=>e));this._subscription=this._subscribeToUserInput(t)}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput(),this._zoneSubscription.unsubscribe()}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}writeValue(e){this._writeInputValue(this._formatItemForInput(e)),this.showHint&&(this._inputValueBackup=e)}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead.next(null),this._closePopup(),this.showHint&&null!==this._inputValueBackup&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return null!=this._windowRef}handleBlur(){this._resubscribeTypeahead.next(null),this._onTouched()}handleKeyDown(e){if(this.isPopupOpen())switch(e.which){case xt.ArrowDown:e.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case xt.ArrowUp:e.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case xt.Enter:case xt.Tab:const t=this._windowRef.instance.getActive();He(t)&&(e.preventDefault(),e.stopPropagation(),this._selectResult(t)),this._closePopup()}}_openPopup(){this.isPopupOpen()||(this._inputValueBackup=this._elementRef.nativeElement.value,this._windowRef=this._popupService.open(),this._windowRef.instance.id=this.popupId,this._windowRef.instance.selectEvent.subscribe(e=>this._selectResultClosePopup(e)),this._windowRef.instance.activeChangeEvent.subscribe(e=>this.activeDescendant=e),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._changeDetector.markForCheck(),Et(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._elementRef.nativeElement,this._windowRef.location.nativeElement]))}_closePopup(){this._closed$.next(),this._popupService.close(),this._windowRef=null,this.activeDescendant=null}_selectResult(e){let t=!1;this.selectItem.emit({item:e,preventDefault:()=>{t=!0}}),this._resubscribeTypeahead.next(null),t||(this.writeValue(e),this._onChange(e))}_selectResultClosePopup(e){this._selectResult(e),this._closePopup()}_showHint(){var e;if(this.showHint&&(null===(e=this._windowRef)||void 0===e?void 0:e.instance.hasActive())&&null!=this._inputValueBackup){const e=this._inputValueBackup.toLowerCase(),t=this._formatItemForInput(this._windowRef.instance.getActive());e===t.substr(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+t.substr(this._inputValueBackup.length)),this._elementRef.nativeElement.setSelectionRange.apply(this._elementRef.nativeElement,[this._inputValueBackup.length,t.length])):this._writeInputValue(t)}}_formatItemForInput(e){return null!=e&&this.inputFormatter?this.inputFormatter(e):je(e)}_writeInputValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",je(e))}_subscribeToUserInput(e){return e.subscribe(e=>{e&&0!==e.length?(this._openPopup(),this._windowRef.instance.focusFirst=this.focusFirst,this._windowRef.instance.results=e,this._windowRef.instance.term=this._elementRef.nativeElement.value,this.resultFormatter&&(this._windowRef.instance.formatter=this.resultFormatter),this.resultTemplate&&(this._windowRef.instance.resultTemplate=this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint()):this._closePopup();const t=e?e.length:0;this._live.say(0===t?"No results available":`${t} result${1===t?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}};return e.\u0275fac=function(t){return new(t||e)(r.Rb(r.n),r.Rb(r.S),r.Rb(r.H),r.Rb(r.v),r.Rb(r.k),r.Rb(ai),r.Rb(r.D),r.Rb(oi),r.Rb(s.d),r.Rb(r.D),r.Rb(r.i),r.Rb(r.g))},e.\u0275dir=r.Mb({type:e,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox","aria-multiline","false"],hostVars:7,hostBindings:function(e,t){1&e&&r.lc("blur",function(){return t.handleBlur()})("keydown",function(e){return t.handleKeyDown(e)}),2&e&&(r.ac("autocomplete",t.autocomplete),r.Eb("aria-autocomplete",t.showHint?"both":"list")("aria-activedescendant",t.activeDescendant)("aria-owns",t.isPopupOpen()?t.popupId:null)("aria-expanded",t.isPopupOpen()),r.Jb("open",t.isPopupOpen()))},inputs:{autocomplete:"autocomplete",placement:"placement",container:"container",editable:"editable",focusFirst:"focusFirst",showHint:"showHint",inputFormatter:"inputFormatter",ngbTypeahead:"ngbTypeahead",resultFormatter:"resultFormatter",resultTemplate:"resultTemplate"},outputs:{selectItem:"selectItem"},exportAs:["ngbTypeahead"],features:[r.Cb([ci])]}),e=Object(i.b)([Object(i.e)(8,Object(r.s)(s.d))],e),e})(),di=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Pb({type:e}),e.\u0275inj=r.Ob({imports:[[s.c]]}),e})();const hi=r.Zb(ct),fi=r.Zb(yt),pi=r.Zb(Nt),mi=r.Zb(zt),bi=r.Zb(Xn)},"G1/K":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("LvDl"),r=n.n(i),s=n("8Y7J");let o=(()=>{class e{transform(e,t){return""===e?r.a.defaultTo(t,"n/a"):e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=s.Qb({name:"notAvailable",type:e,pure:!0}),e})()},G1I9:function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"a",function(){return o});var i=n("oxzT"),r=n("mtw6");class s{constructor(e=r.a.info,t,n,i,s="Ceph"){this.type=e,this.title=t,this.message=n,this.options=i,this.application=s,this.isFinishedTask=!1,this.classes={Ceph:"ceph-icon",Prometheus:"prometheus-icon"},this.applicationClass=this.classes[this.application]}}class o extends s{constructor(e=new s){super(e.type,e.title,e.message,e.options,e.application),this.config=e,this.textClasses=["text-danger","text-info","text-success"],this.iconClasses=[i.a.warning,i.a.info,i.a.check],this.borderClasses=["border-danger","border-info","border-success"],delete this.config,this.timestamp=(new Date).toJSON(),this.iconClass=this.iconClasses[this.type],this.textClass=this.textClasses[this.type],this.borderClass=this.borderClasses[this.type],this.isFinishedTask=e.isFinishedTask}}},G4mU:function(e,t,n){"use strict";var i=n("lkxz");t.a=function(e,t){var n=t?Object(i.a)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},"G6Q+":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("SVse"),r=n("iInd"),s=n("PCNd"),o=n("8Y7J");let a=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.Pb({type:e}),e.\u0275inj=o.Ob({imports:[[i.c,s.a,r.i]]}),e})()},GS7A:function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return r}),n.d(t,"d",function(){return f}),n.d(t,"e",function(){return a}),n.d(t,"f",function(){return c}),n.d(t,"g",function(){return u}),n.d(t,"h",function(){return l}),n.d(t,"i",function(){return d}),n.d(t,"j",function(){return o}),n.d(t,"k",function(){return p}),n.d(t,"l",function(){return m});class i{}class r{}const s="*";function o(e,t){return{type:7,name:e,definitions:t,options:{}}}function a(e,t=null){return{type:4,styles:t,timings:e}}function c(e,t=null){return{type:2,steps:e,options:t}}function l(e){return{type:6,styles:e,offset:null}}function u(e,t,n){return{type:0,name:e,styles:t,options:n}}function d(e,t,n=null){return{type:1,expr:e,animation:t,options:n}}function h(e){Promise.resolve(null).then(e)}class f{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(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(){h(()=>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(){}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class p{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 t=0,n=0,i=0;const r=this.players.length;0==r?h(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==r&&this._onFinish()}),e.onDestroy(()=>{++n==r&&this._onDestroy()}),e.onStart(()=>{++i==r&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.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){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){const e=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}const m="!"},GarU:function(e,t,n){var i=n("2oRo"),r=n("OpvP"),s=i.TypeError;e.exports=function(e,t){if(r(t,e))return e;throw s("Incorrect invocation")}},GgAd:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("8Y7J"),r=n("G0yt"),s=n("SVse"),o=n("Fgil"),a=n("o4+5");function c(e,t){if(1&e&&(i.Xb(0,"table"),i.Xb(1,"tr"),i.Xb(2,"td",4),i.Rc(3,"Used:\xa0"),i.Wb(),i.Xb(4,"td",5),i.Xb(5,"strong"),i.Rc(6),i.oc(7,"dimlessBinary"),i.oc(8,"dimless"),i.Wb(),i.Wb(),i.Wb(),i.Xb(9,"tr"),i.Xb(10,"td",4),i.Rc(11,"Free:\xa0"),i.Wb(),i.Xb(12,"td",6),i.Xb(13,"strong"),i.Rc(14),i.oc(15,"dimlessBinary"),i.oc(16,"dimless"),i.Wb(),i.Wb(),i.Wb(),i.Wb()),2&e){const e=i.nc();i.Db(6),i.Tc(" ",e.isBinary?i.pc(7,2,e.used):i.pc(8,4,e.used),""),i.Db(8),i.Sc(e.isBinary?i.pc(15,6,e.total-e.used):i.pc(16,8,e.total-e.used))}}let l=(()=>{class e{constructor(){this.isBinary=!0,this.decimals=0}ngOnChanges(){this.usedPercentage=this.total>0?this.used/this.total*100:0,this.freePercentage=100-this.usedPercentage}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Lb({type:e,selectors:[["cd-usage-bar"]],inputs:{total:"total",used:"used",isBinary:"isBinary",decimals:"decimals"},features:[i.Bb],decls:8,vars:9,consts:[["usageTooltipTpl",""],["data-placement","left",1,"progress",3,"ngbTooltip"],["role","progressbar",1,"progress-bar","bg-info"],["role","progressbar",1,"progress-bar","bg-freespace"],[1,"text-left"],[1,"text-right"],[1,"'text-right"]],template:function(e,t){if(1&e&&(i.Pc(0,c,17,10,"ng-template",null,0,i.Qc),i.Xb(2,"div",1),i.Xb(3,"div",2),i.Xb(4,"span"),i.Rc(5),i.oc(6,"number"),i.Wb(),i.Wb(),i.Sb(7,"div",3),i.Wb()),2&e){const e=i.Fc(1);i.Db(2),i.uc("ngbTooltip",e),i.Db(1),i.Nc("width",t.usedPercentage+"%"),i.Db(2),i.Tc("",i.qc(6,6,t.usedPercentage,"1.0-"+t.decimals),"%"),i.Db(2),i.Nc("width",t.freePercentage+"%")}},directives:[r.D],pipes:[s.f,o.a,a.a],styles:[".bg-info[_ngcontent-%COMP%]{background-color:#2b99a8!important}.bg-freespace[_ngcontent-%COMP%]{background-color:#ced4da!important}.progress[_ngcontent-%COMP%]{height:20px;margin-bottom:0;position:relative}.progress[_ngcontent-%COMP%] div.progress-bar[_ngcontent-%COMP%]{position:static}.progress[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#000;display:block;font-weight:400;position:absolute;width:100%}"]}),e})()},Gi26:function(e,t,n){var i=n("4zBA"),r=n("ewvW"),s=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return s(r(e),t)}},GyhO:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("LRne"),r=n("bHdf");function s(...e){return Object(r.a)(1)(Object(i.a)(...e))}},H8ED:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===n?t?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":e+" "+(i=+e,r={ss:t?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:t?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:t?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2]);var i,r}e.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:t,mm:t,h:t,hh:t,d:"\u0434\u0437\u0435\u043d\u044c",dd:t,M:"\u043c\u0435\u0441\u044f\u0446",MM:t,y:"\u0433\u043e\u0434",yy:t},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u044b":e<12?"\u0440\u0430\u043d\u0456\u0446\u044b":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-\u044b":e+"-\u0456";case"D":return e+"-\u0433\u0430";default:return e}},week:{dow:1,doy:7}})}(n("wd/R"))},HDdC:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("7o/Q"),r=n("2QA8"),s=n("gRHU"),o=n("kJWO"),a=n("mCNh"),c=n("2fFW");let l=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:o}=this,a=function(e,t,n){if(e){if(e instanceof i.a)return e;if(e[r.a])return e[r.a]()}return e||t||n?new i.a(e,t,n):new i.a(s.a)}(e,t,n);if(a.add(o?o.call(a,this.source):this.source||c.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(e){try{return this._subscribe(e)}catch(t){c.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof i.a?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=u(t))((t,n)=>{let i;i=this.subscribe(t=>{try{e(t)}catch(r){n(r),i&&i.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[o.a](){return this}pipe(...e){return 0===e.length?this:Object(a.b)(e)(this)}toPromise(e){return new(e=u(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function u(e){if(e||(e=c.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},HH4o:function(e,t,n){var i=n("tiKp")("iterator"),r=!1;try{var s=0,o={next:function(){return{done:!!s++}},return:function(){r=!0}};o[i]=function(){return this},Array.from(o,function(){throw 2})}catch(a){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var s={};s[i]=function(){return{next:function(){return{done:n=!0}}}},e(s)}catch(a){}return n}},HP3h:function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},r=function(e){return function(t,r,s,o){var a=n(t),c=i[e][n(t)];return 2===a&&(c=c[r?0:1]),c.replace(/%d/i,t)}},s=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-ly",{months:s,monthsShort:s,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n("wd/R"))},HYAF:function(e,t,n){var i=n("2oRo").TypeError;e.exports=function(e){if(null==e)throw i("Can't call method on "+e);return e}},Hd5f:function(e,t,n){var i=n("0Dky"),r=n("tiKp"),s=n("LQDL"),o=r("species");e.exports=function(e){return s>=51||!i(function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},Hicy:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a});var i=n("8Y7J"),r=n("SVse"),s=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=function(){function e(e,t,n){this._el=e,this._ngZone=t,this.platformId=n,this.clickOutsideEnabled=!0,this.attachOutsideOnClick=!1,this.delayClickOutsideInit=!1,this.emitOnBlur=!1,this.exclude="",this.excludeBeforeClick=!1,this.clickOutsideEvents="",this.clickOutside=new i.p,this._nodesExcluded=[],this._events=["click"],this._initOnClickBody=this._initOnClickBody.bind(this),this._onClickBody=this._onClickBody.bind(this),this._onWindowBlur=this._onWindowBlur.bind(this)}return e.prototype.ngOnInit=function(){Object(r.I)(this.platformId)&&this._init()},e.prototype.ngOnDestroy=function(){Object(r.I)(this.platformId)&&(this._removeClickOutsideListener(),this._removeAttachOutsideOnClickListener(),this._removeWindowBlurListener())},e.prototype.ngOnChanges=function(e){Object(r.I)(this.platformId)&&(e.attachOutsideOnClick||e.exclude||e.emitOnBlur)&&this._init()},e.prototype._init=function(){""!==this.clickOutsideEvents&&(this._events=this.clickOutsideEvents.split(",").map(function(e){return e.trim()})),this._excludeCheck(),this.attachOutsideOnClick?this._initAttachOutsideOnClickListener():this._initOnClickBody(),this.emitOnBlur&&this._initWindowBlurListener()},e.prototype._initOnClickBody=function(){this.delayClickOutsideInit?setTimeout(this._initClickOutsideListener.bind(this)):this._initClickOutsideListener()},e.prototype._excludeCheck=function(){if(this.exclude)try{var e=Array.from(document.querySelectorAll(this.exclude));e&&(this._nodesExcluded=e)}catch(t){console.error("[ng-click-outside] Check your exclude selector syntax.",t)}},e.prototype._onClickBody=function(e){this.clickOutsideEnabled&&(this.excludeBeforeClick&&this._excludeCheck(),this._el.nativeElement.contains(e.target)||this._shouldExclude(e.target)||(this._emit(e),this.attachOutsideOnClick&&this._removeClickOutsideListener()))},e.prototype._onWindowBlur=function(e){var t=this;setTimeout(function(){document.hidden||t._emit(e)})},e.prototype._emit=function(e){var t=this;this.clickOutsideEnabled&&this._ngZone.run(function(){return t.clickOutside.emit(e)})},e.prototype._shouldExclude=function(e){for(var t=0,n=this._nodesExcluded;t<n.length;t++)if(n[t].contains(e))return!0;return!1},e.prototype._initClickOutsideListener=function(){var e=this;this._ngZone.runOutsideAngular(function(){e._events.forEach(function(t){return document.addEventListener(t,e._onClickBody)})})},e.prototype._removeClickOutsideListener=function(){var e=this;this._ngZone.runOutsideAngular(function(){e._events.forEach(function(t){return document.removeEventListener(t,e._onClickBody)})})},e.prototype._initAttachOutsideOnClickListener=function(){var e=this;this._ngZone.runOutsideAngular(function(){e._events.forEach(function(t){return e._el.nativeElement.addEventListener(t,e._initOnClickBody)})})},e.prototype._removeAttachOutsideOnClickListener=function(){var e=this;this._ngZone.runOutsideAngular(function(){e._events.forEach(function(t){return e._el.nativeElement.removeEventListener(t,e._initOnClickBody)})})},e.prototype._initWindowBlurListener=function(){var e=this;this._ngZone.runOutsideAngular(function(){window.addEventListener("blur",e._onWindowBlur)})},e.prototype._removeWindowBlurListener=function(){var e=this;this._ngZone.runOutsideAngular(function(){window.removeEventListener("blur",e._onWindowBlur)})},(e=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}([(2,t=Object(i.s)(i.F),function(e,n){t(e,n,2)}),s("design:paramtypes",[i.n,i.D,Object])],e)).\u0275fac=function(t){return new(t||e)(i.Rb(i.n),i.Rb(i.D),i.Rb(i.F))},e.\u0275dir=i.Mb({type:e,selectors:[["","clickOutside",""]],inputs:{clickOutsideEnabled:"clickOutsideEnabled",attachOutsideOnClick:"attachOutsideOnClick",delayClickOutsideInit:"delayClickOutsideInit",emitOnBlur:"emitOnBlur",exclude:"exclude",excludeBeforeClick:"excludeBeforeClick",clickOutsideEvents:"clickOutsideEvents"},outputs:{clickOutside:"clickOutside"},features:[i.Bb]}),e.\u0275prov=i.Nb({token:e,factory:function(t){return e.\u0275fac(t)}}),e;var t}(),a=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Pb({type:e}),e.\u0275inj=i.Ob({}),e}()},"I+eb":function(e,t,n){var i=n("2oRo"),r=n("Bs8V").f,s=n("kRJp"),o=n("busE"),a=n("zk60"),c=n("6JNq"),l=n("lMq5");e.exports=function(e,t){var n,u,d,h,f,p=e.target,m=e.global,b=e.stat;if(n=m?i:b?i[p]||a(p,{}):(i[p]||{}).prototype)for(u in t){if(h=t[u],d=e.noTargetGet?(f=r(n,u))&&f.value:n[u],!l(m?u:p+(b?".":"#")+u,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;c(h,d)}(e.sham||d&&d.sham)&&s(h,"sham",!0),o(n,u,h,e)}}},I55L:function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=e=>e&&"number"==typeof e.length&&"function"!=typeof e},I8vh:function(e,t,n){var i=n("WSbT"),r=Math.max,s=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):s(n,t)}},IBtZ:function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(e,t,n){return"\u10d8"===n?t+"\u10e8\u10d8":t+n+"\u10e8\u10d8"})},past:function(e){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(e)?e.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(e)?e.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):e},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(e){return 0===e?e:1===e?e+"-\u10da\u10d8":e<20||e<=100&&e%20==0||e%100==0?"\u10db\u10d4-"+e:e+"-\u10d4"},week:{dow:1,doy:7}})}(n("wd/R"))},IZUe:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("LvDl"),r=n.n(i),s=n("8Y7J");let o=(()=>{class e{constructor(e){this.elementRef=e,this.focus=!0}ngAfterViewInit(){const e=this.elementRef.nativeElement;this.focus&&r.a.isFunction(e.focus)&&e.focus()}set autofocus(e){r.a.isBoolean(e)?this.focus=e:r.a.isFunction(e)&&(this.focus=e())}}return e.\u0275fac=function(t){return new(t||e)(s.Rb(s.n))},e.\u0275dir=s.Mb({type:e,selectors:[["","autofocus",""]],inputs:{autofocus:"autofocus"}}),e})()},Iab2:function(e,t,n){var i,r;void 0===(r="function"==typeof(i=function(){"use strict";function t(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){s(i.response,t,n)},i.onerror=function(){console.error("could not download file")},i.send()}function n(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}var r="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,s=r.saveAs||("object"!=typeof window||window!==r?function(){}:"download"in HTMLAnchorElement.prototype?function(e,s,o){var a=r.URL||r.webkitURL,c=document.createElement("a");c.download=s=s||e.name||"download",c.rel="noopener","string"==typeof e?(c.href=e,c.origin===location.origin?i(c):n(c.href)?t(e,s,o):i(c,c.target="_blank")):(c.href=a.createObjectURL(e),setTimeout(function(){a.revokeObjectURL(c.href)},4e4),setTimeout(function(){i(c)},0))}:"msSaveOrOpenBlob"in navigator?function(e,r,s){if(r=r||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,s),r);else if(n(e))t(e,r,s);else{var o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){i(o)})}}:function(e,n,i,s){if((s=s||open("","_blank"))&&(s.document.title=s.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,i);var o="application/octet-stream"===e.type,a=/constructor/i.test(r.HTMLElement)||r.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||o&&a)&&"object"==typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),s?s.location.href=e:location=e,s=null},l.readAsDataURL(e)}else{var u=r.URL||r.webkitURL,d=u.createObjectURL(e);s?s.location=d:location.href=d,s=null,setTimeout(function(){u.revokeObjectURL(d)},4e4)}});r.saveAs=s.saveAs=s,e.exports=s})?i.apply(t,[]):i)||(e.exports=r)},IheW:function(e,t,n){"use strict";n.d(t,"a",function(){return C}),n.d(t,"b",function(){return T}),n.d(t,"c",function(){return z}),n.d(t,"d",function(){return x}),n.d(t,"e",function(){return m});var i=n("8Y7J"),r=n("LRne"),s=n("HDdC"),o=n("bOdf"),a=n("pLZG"),c=n("lJxs"),l=n("SVse");class u{}class d{}class h{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const n=e.slice(0,t),i=n.toLowerCase(),r=e.slice(t+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(r):this.headers.set(i,[r])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const i=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(t,i))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof h?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(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new h;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof h?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);const i=("a"===e.op?this.headers.get(t):void 0)||[];i.push(...n),this.headers.set(t,i);break;case"d":const r=e.value;if(r){let e=this.headers.get(t);if(!e)return;e=e.filter(e=>-1===r.indexOf(e)),0===e.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class f{encodeKey(e){return p(e)}encodeValue(e){return p(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function p(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class m{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new f,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(e=>{const i=e.indexOf("="),[r,s]=-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],o=n.get(r)||[];o.push(s),n.set(r,o)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const n=e.fromObject[t];this.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(n=>{const i=e[n];Array.isArray(i)?i.forEach(e=>{t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new m({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(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":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(e.value),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const n=t.indexOf(e.value);-1!==n&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}function b(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function g(e){return"undefined"!=typeof Blob&&e instanceof Blob}function _(e){return"undefined"!=typeof FormData&&e instanceof FormData}class v{constructor(e,t,n,i){let r;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new h),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const n=t.indexOf("?");this.urlWithParams=t+(-1===n?"?":n<t.length-1?"&":"")+e}}else this.params=new m,this.urlWithParams=t}serializeBody(){return null===this.body?null:b(this.body)||g(this.body)||_(this.body)||"string"==typeof this.body?this.body:this.body instanceof m?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||_(this.body)?null:g(this.body)?this.body.type||null:b(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof m?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){const t=e.method||this.method,n=e.url||this.url,i=e.responseType||this.responseType,r=void 0!==e.body?e.body:this.body,s=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,o=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let a=e.headers||this.headers,c=e.params||this.params;return void 0!==e.setHeaders&&(a=Object.keys(e.setHeaders).reduce((t,n)=>t.set(n,e.setHeaders[n]),a)),e.setParams&&(c=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),c)),new v(t,n,r,{params:c,headers:a,reportProgress:o,responseType:i,withCredentials:s})}}var y=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({});class w{constructor(e,t=200,n="OK"){this.headers=e.headers||new h,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class D extends w{constructor(e={}){super(e),this.type=y.ResponseHeader}clone(e={}){return new D({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class S extends w{constructor(e={}){super(e),this.type=y.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new S({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class x extends w{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function k(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let T=(()=>{class e{constructor(e){this.handler=e}request(e,t,n={}){let i;if(e instanceof v)i=e;else{let r,s;r=n.headers instanceof h?n.headers:new h(n.headers),n.params&&(s=n.params instanceof m?n.params:new m({fromObject:n.params})),i=new v(e,t,void 0!==n.body?n.body:null,{headers:r,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=Object(r.a)(i).pipe(Object(o.a)(e=>this.handler.handle(e)));if(e instanceof v||"events"===n.observe)return s;const l=s.pipe(Object(a.a)(e=>e instanceof S));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return l.pipe(Object(c.a)(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return l.pipe(Object(c.a)(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return l.pipe(Object(c.a)(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return l.pipe(Object(c.a)(e=>e.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new m).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,k(n,t))}post(e,t,n={}){return this.request("POST",e,k(n,t))}put(e,t,n={}){return this.request("PUT",e,k(n,t))}}return e.\u0275fac=function(t){return new(t||e)(i.ic(u))},e.\u0275prov=i.Nb({token:e,factory:e.\u0275fac}),e})();class M{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const C=new i.u("HTTP_INTERCEPTORS");let O=(()=>{class e{intercept(e,t){return t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Nb({token:e,factory:e.\u0275fac}),e})();const L=/^\)\]\}',?\n/;class E{}let A=(()=>{class e{constructor(){}build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Nb({token:e,factory:e.\u0275fac}),e})(),I=(()=>{class e{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new s.a(t=>{const n=this.xhrFactory.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEach((e,t)=>n.setRequestHeader(e,t.join(","))),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&n.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();n.responseType="json"!==t?t:"text"}const i=e.serializeBody();let r=null;const s=()=>{if(null!==r)return r;const t=1223===n.status?204:n.status,i=n.statusText||"OK",s=new h(n.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return r=new D({headers:s,status:t,statusText:i,url:o}),r},o=()=>{let{headers:i,status:r,statusText:o,url:a}=s(),c=null;204!==r&&(c=void 0===n.response?n.responseText:n.response),0===r&&(r=c?200:0);let l=r>=200&&r<300;if("json"===e.responseType&&"string"==typeof c){const e=c;c=c.replace(L,"");try{c=""!==c?JSON.parse(c):null}catch(u){c=e,l&&(l=!1,c={error:u,text:c})}}l?(t.next(new S({body:c,headers:i,status:r,statusText:o,url:a||void 0})),t.complete()):t.error(new x({error:c,headers:i,status:r,statusText:o,url:a||void 0}))},a=e=>{const{url:i}=s(),r=new x({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});t.error(r)};let c=!1;const l=i=>{c||(t.next(s()),c=!0);let r={type:y.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(r.total=i.total),"text"===e.responseType&&n.responseText&&(r.partialText=n.responseText),t.next(r)},u=e=>{let n={type:y.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),e.reportProgress&&(n.addEventListener("progress",l),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),t.next({type:y.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),e.reportProgress&&(n.removeEventListener("progress",l),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return e.\u0275fac=function(t){return new(t||e)(i.ic(E))},e.\u0275prov=i.Nb({token:e,factory:e.\u0275fac}),e})();const R=new i.u("XSRF_COOKIE_NAME"),P=new i.u("XSRF_HEADER_NAME");class F{}let W=(()=>{class e{constructor(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(l.M)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)(i.ic(l.d),i.ic(i.F),i.ic(R))},e.\u0275prov=i.Nb({token:e,factory:e.\u0275fac}),e})(),j=(()=>{class e{constructor(e,t){this.tokenService=e,this.headerName=t}intercept(e,t){const n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);const i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(i.ic(F),i.ic(P))},e.\u0275prov=i.Nb({token:e,factory:e.\u0275fac}),e})(),Y=(()=>{class e{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(C,[]);this.chain=e.reduceRight((e,t)=>new M(e,t),this.backend)}return this.chain.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(i.ic(d),i.ic(i.v))},e.\u0275prov=i.Nb({token:e,factory:e.\u0275fac}),e})(),N=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:j,useClass:O}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:R,useValue:t.cookieName}:[],t.headerName?{provide:P,useValue:t.headerName}:[]]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Pb({type:e}),e.\u0275inj=i.Ob({providers:[j,{provide:C,useExisting:j,multi:!0},{provide:F,useClass:W},{provide:R,useValue:"XSRF-TOKEN"},{provide:P,useValue:"X-XSRF-TOKEN"}]}),e})(),z=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Pb({type:e}),e.\u0275inj=i.Ob({providers:[T,{provide:u,useClass:Y},I,{provide:d,useExisting:I},A,{provide:E,useExisting:A}],imports:[[N.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e})()},IjjT:function(e,t,n){"use strict";n.d(t,"a",function(){return r});let i=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})();class r extends i{constructor(e,t=i.now){super(e,()=>r.delegate&&r.delegate!==this?r.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return r.delegate&&r.delegate!==this?r.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}},ImZN:function(e,t,n){var i=n("2oRo"),r=n("A2ZE"),s=n("xluM"),o=n("glrk"),a=n("DVFp"),c=n("6VoE"),l=n("B/qT"),u=n("OpvP"),d=n("mh/w"),h=n("NaFW"),f=n("KmKo"),p=i.TypeError,m=function(e,t){this.stopped=e,this.result=t},b=m.prototype;e.exports=function(e,t,n){var i,g,_,v,y,w,D,S=!(!n||!n.AS_ENTRIES),x=!(!n||!n.IS_ITERATOR),k=!(!n||!n.INTERRUPTED),T=r(t,n&&n.that),M=function(e){return i&&f(i,"normal",e),new m(!0,e)},C=function(e){return S?(o(e),k?T(e[0],e[1],M):T(e[0],e[1])):k?T(e,M):T(e)};if(x)i=e;else{if(!(g=h(e)))throw p(a(e)+" is not iterable");if(c(g)){for(_=0,v=l(e);v>_;_++)if((y=C(e[_]))&&u(b,y))return y;return new m(!1)}i=d(e,g)}for(w=i.next;!(D=s(w,i)).done;){try{y=C(D.value)}catch(O){f(i,"throw",O)}if("object"==typeof y&&y&&u(b,y))return y}return new m(!1)}},"Ivi+":function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\uc77c";case"M":return e+"\uc6d4";case"w":case"W":return e+"\uc8fc";default:return e}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(e){return"\uc624\ud6c4"===e},meridiem:function(e,t,n){return e<12?"\uc624\uc804":"\uc624\ud6c4"}})}(n("wd/R"))},IzCI:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("aXbf"),r=n("8Y7J");let s=(()=>{class e{constructor(e){this.formatter=e}transform(e){return this.formatter.format_number(e,1024,["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s","YB/s"])}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(i.a))},e.\u0275pipe=r.Qb({name:"dimlessBinaryPerSecond",type:e,pure:!0}),e})()},IzEk:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("7o/Q"),r=n("4I5i"),s=n("EY2u");function o(e){return t=>0===e?Object(s.b)():t.lift(new a(e))}class a{constructor(e){if(this.total=e,this.total<0)throw new r.a}call(e,t){return t.subscribe(new c(e,this.total))}}class c extends i.a{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}},IzLi:function(e,t,n){"use strict";t.a=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},JBy8:function(e,t,n){var i=n("yoRg"),r=n("eDl+").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},"JCF/":function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},i=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];e.defineLocale("ku",{months:i,monthsShort:i,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(e){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(e)},meridiem:function(e,t,n){return e<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n("wd/R"))},JIr8:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("zx2A");function r(e){return function(t){const n=new s(e),i=t.lift(n);return n.caught=i}}class s{constructor(e){this.selector=e}call(e,t){return t.subscribe(new o(e,this.selector,this.caught))}}class o extends i.b{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const r=new i.a(this);this.add(r);const s=Object(i.c)(n,r);s!==r&&this.add(s)}}}},"JK/P":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("8Y7J"),r=n("G0yt");let s=(()=>{class e{constructor(e){this.modal=e}show(e,t,n){const i=this.modal.open(e,n);return t&&Object.assign(i.componentInstance,t),i}dismissAll(){this.modal.dismissAll()}hasOpenModals(){return this.modal.hasOpenModals()}}return e.\u0275fac=function(t){return new(t||e)(i.ic(r.o))},e.\u0275prov=i.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},JP8w:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("8Y7J"),r=n("G0yt");let s=(()=>{class e{constructor(e){this.nav=e,this.localStorage=window.localStorage}ngOnInit(){const e=this.localStorage.getItem(`tabset_${this.cdStatefulTab}`);e&&this.nav.select(e)}onNavChange(e){this.cdStatefulTab&&e.nextId&&this.localStorage.setItem(`tabset_${this.cdStatefulTab}`,e.nextId)}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(r.p,9))},e.\u0275dir=i.Mb({type:e,selectors:[["","cdStatefulTab",""]],hostBindings:function(e,t){1&e&&i.lc("navChange",function(e){return t.onNavChange(e)})},inputs:{cdStatefulTab:"cdStatefulTab"}}),e})()},JVSJ:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},JX91:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("GyhO"),r=n("z+Ro");function s(...e){const t=e[e.length-1];return Object(r.a)(t)?(e.pop(),n=>Object(i.a)(e,n,t)):t=>Object(i.a)(e,t)}},Js68:function(e,t,n){"use strict";t.a=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},"Ju5/":function(e,t,n){"use strict";var i=n("XqMk"),r="object"==typeof self&&self&&self.Object===Object&&self,s=i.a||r||Function("return this")();t.a=s},JvlW:function(e,t,n){!function(e){"use strict";var t={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function n(e,t,n,i){return t?r(n)[0]:i?r(n)[1]:r(n)[2]}function i(e){return e%10==0||e>10&&e<20}function r(e){return t[e].split("_")}function s(e,t,s,o){var a=e+" ";return 1===e?a+n(0,t,s[0],o):t?a+(i(e)?r(s)[1]:r(s)[0]):o?a+r(s)[1]:a+(i(e)?r(s)[1]:r(s)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function(e,t,n,i){return t?"kelios sekund\u0117s":i?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:s,m:n,mm:s,h:n,hh:s,d:n,dd:s,M:n,MM:s,y:n,yy:s},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n("wd/R"))},"K/tc":function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("wd/R"))},K6Rb:function(e,t){var n=Function.prototype,i=n.apply,r=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n.bind?r.bind(i):function(){return r.apply(i,arguments)})},KSF8:function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n("wd/R"))},KTz0:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},KmKo:function(e,t,n){var i=n("xluM"),r=n("glrk"),s=n("3Eq5");e.exports=function(e,t,n){var o,a;r(e);try{if(!(o=s(e,"return"))){if("throw"===t)throw n;return n}o=i(o,e)}catch(c){a=!0,o=c}if("throw"===t)throw n;if(a)throw o;return r(o),n}},Kqap:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new s(e,t,n))}}class s{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new o(e,this.accumulator,this.seed,this.hasSeed))}}class o extends i.a{constructor(e,t,n,i){super(e),this.accumulator=t,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}},KqfI:function(e,t,n){"use strict";function i(){}n.d(t,"a",function(){return i})},L3Qv:function(e,t,n){"use strict";t.a=function(){return!1}},LQDL:function(e,t,n){var i,r,s=n("2oRo"),o=n("NC/Y"),a=s.process,c=s.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(r=(i=u.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&o&&(!(i=o.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=o.match(/Chrome\/(\d+)/))&&(r=+i[1]),e.exports=r},LRne:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("z+Ro"),r=n("yCtX"),s=n("jZKg");function o(...e){let t=e[e.length-1];return Object(i.a)(t)?(e.pop(),Object(s.a)(e,t)):Object(r.a)(e)}},LceX:function(e,t,n){"use strict";n.r(t),n.d(t,"AuthModule",function(){return Je}),n.d(t,"RoutedAuthModule",function(){return Qe});var i=n("SVse"),r=n("s7LF"),s=n("iInd"),o=n("G0yt"),a=n("zWsK"),c=n("sne2"),l=n("PCNd"),u=n("LvDl"),d=n.n(u),h=n("cp0P"),f=n("LRne"),p=n("5+tZ"),m=n("8Y7J"),b=n("IheW");let g=(()=>{class e{constructor(e){this.http=e}list(){return this.http.get("api/role")}delete(e){return this.http.delete(`api/role/${e}`)}get(e){return this.http.get(`api/role/${e}`)}create(e){return this.http.post("api/role",e)}clone(e,t){return this.http.post(`api/role/${e}/clone`,{new_name:t})}update(e){return this.http.put(`api/role/${e.name}`,e)}exists(e){return this.list().pipe(Object(p.a)(t=>{const n=t.some(t=>t.name===e);return Object(f.a)(n)}))}}return e.\u0275fac=function(t){return new(t||e)(m.ic(b.b))},e.\u0275prov=m.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),_=(()=>{class e{constructor(e){this.http=e}list(){return this.http.get("ui-api/scope")}}return e.\u0275fac=function(t){return new(t||e)(m.ic(b.b))},e.\u0275prov=m.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var v=n("mtw6"),y=n("spCT"),w=n("QFaf"),D=n("1Ni5"),S=n("9nlD"),x=function(e){return e.editing="editing",e}({});class k{}var T=n("zc8c"),M=n("NwgZ"),C=n("ocLN"),O=n("ANnk"),L=n("f69J"),E=n("IZUe"),A=n("uIqm"),I=n("6+kj"),R=n("8xTl");const P=["headerPermissionCheckboxTpl"],F=["cellScopeCheckboxTpl"],W=["cellPermissionCheckboxTpl"];function j(e,t){1&e&&(m.Xb(0,"span",25),m.bc(1,26),m.Wb())}function Y(e,t){1&e&&(m.Xb(0,"span",25),m.bc(1,27),m.Wb())}const N=function(e){return{required:e}};function z(e,t){if(1&e){const e=m.Yb();m.Xb(0,"div",4),m.Xb(1,"form",5,6),m.Xb(3,"div",7),m.Xb(4,"div",8),m.bc(5,9),m.oc(6,"titlecase"),m.oc(7,"upperFirst"),m.Wb(),m.Xb(8,"div",10),m.Xb(9,"div",11),m.Xb(10,"label",12),m.bc(11,13),m.Wb(),m.Xb(12,"div",14),m.Sb(13,"input",15),m.Pc(14,j,2,0,"span",16),m.Pc(15,Y,2,0,"span",16),m.Wb(),m.Wb(),m.Xb(16,"div",11),m.Xb(17,"label",17),m.bc(18,18),m.Wb(),m.Xb(19,"div",14),m.Sb(20,"input",19),m.Wb(),m.Wb(),m.Xb(21,"div",11),m.Xb(22,"label",20),m.bc(23,21),m.Wb(),m.Xb(24,"div",14),m.Sb(25,"cd-table",22),m.Wb(),m.Wb(),m.Wb(),m.Xb(26,"div",23),m.Xb(27,"cd-form-button-panel",24),m.lc("submitActionEvent",function(){return m.Ic(e),m.nc().submit()}),m.oc(28,"titlecase"),m.oc(29,"upperFirst"),m.Wb(),m.Wb(),m.Wb(),m.Wb(),m.Wb()}if(2&e){const e=m.Fc(2),t=m.nc();m.Db(1),m.uc("formGroup",t.roleForm),m.Db(6),m.fc(m.pc(6,15,t.action))(m.pc(7,17,t.resource)),m.cc(5),m.Db(3),m.uc("ngClass",m.zc(23,N,t.mode!==t.roleFormMode.editing)),m.Db(4),m.uc("ngIf",t.roleForm.showError("name",e,"required")),m.Db(1),m.uc("ngIf",t.roleForm.showError("name",e,"notUnique")),m.Db(10),m.uc("data",t.scopes_permissions)("columns",t.columns)("toolHeader",!1)("autoReload",!1)("autoSave",!1)("footer",!1)("limit",0),m.Db(2),m.uc("form",t.roleForm)("submitText",m.pc(28,19,t.action)+" "+m.pc(29,21,t.resource))}}function $(e,t){if(1&e){const e=m.Yb();m.Xb(0,"div",28),m.Xb(1,"input",29),m.lc("change",function(n){m.Ic(e);const i=t.row,r=t.column;return m.nc().onClickCellCheckbox(i.scope,r.prop,n)}),m.Wb(),m.Xb(2,"label",30),m.Rc(3),m.Wb(),m.Wb()}if(2&e){const e=t.row,n=t.value,i=m.nc();m.Db(1),m.wc("id","scope_",e.scope,""),m.uc("checked",i.isRowChecked(e.scope)),m.Db(1),m.wc("for","scope_",e.scope,""),m.Db(1),m.Sc(n)}}function H(e,t){if(1&e){const e=m.Yb();m.Xb(0,"div",28),m.Xb(1,"input",31),m.lc("change",function(n){m.Ic(e);const i=t.row,r=t.column;return m.nc().onClickCellCheckbox(i.scope,r.prop,n)}),m.Wb(),m.Sb(2,"label",32),m.Wb()}if(2&e){const e=t.column,n=t.row,i=t.value;m.Db(1),m.uc("checked",i)("id",n.scope+"-"+e.prop),m.Db(1),m.uc("for",n.scope+"-"+e.prop)}}function X(e,t){if(1&e){const e=m.Yb();m.Xb(0,"div",28),m.Xb(1,"input",29),m.lc("change",function(n){m.Ic(e);const i=t.column;return m.nc().onClickHeaderCheckbox(i.prop,n)}),m.Wb(),m.Xb(2,"label",33),m.Rc(3),m.Wb(),m.Wb()}if(2&e){const e=t.column,n=m.nc();m.Db(1),m.wc("id","header_",e.prop,""),m.uc("checked",n.isHeaderChecked(e.prop)),m.Db(1),m.wc("for","header_",e.prop,""),m.Db(1),m.Sc(e.name)}}let V=(()=>{class e extends y.a{constructor(e,t,n,i,r,s){super(),this.route=e,this.router=t,this.roleService=n,this.scopeService=i,this.notificationService=r,this.actionLabels=s,this.scopes=[],this.scopes_permissions=[],this.roleFormMode=x,this.resource="role",this.createForm(),this.listenToChanges()}createForm(){this.roleForm=new w.a({name:new r.h("",{validators:[r.A.required],asyncValidators:[D.a.unique(this.roleService.exists,this.roleService)]}),description:new r.h(""),scopes_permissions:new r.h({})})}ngOnInit(){this.columns=[{prop:"scope",name:"All",flexGrow:2,cellTemplate:this.cellScopeCheckboxTpl,headerTemplate:this.headerPermissionCheckboxTpl},{prop:"read",name:"Read",flexGrow:1,cellClass:"text-center",cellTemplate:this.cellPermissionCheckboxTpl,headerTemplate:this.headerPermissionCheckboxTpl},{prop:"create",name:"Create",flexGrow:1,cellClass:"text-center",cellTemplate:this.cellPermissionCheckboxTpl,headerTemplate:this.headerPermissionCheckboxTpl},{prop:"update",name:"Update",flexGrow:1,cellClass:"text-center",cellTemplate:this.cellPermissionCheckboxTpl,headerTemplate:this.headerPermissionCheckboxTpl},{prop:"delete",name:"Delete",flexGrow:1,cellClass:"text-center",cellTemplate:this.cellPermissionCheckboxTpl,headerTemplate:this.headerPermissionCheckboxTpl}],this.router.url.startsWith("/user-management/roles/edit")?(this.mode=this.roleFormMode.editing,this.action=this.actionLabels.EDIT):this.action=this.actionLabels.CREATE,this.mode===this.roleFormMode.editing?this.initEdit():this.initCreate()}initCreate(){this.scopeService.list().subscribe(e=>{this.scopes=e,this.roleForm.get("scopes_permissions").setValue({}),this.loadingReady()})}initEdit(){this.roleForm.get("name").disable(),this.route.params.subscribe(e=>{const t=[];t.push(this.scopeService.list()),t.push(this.roleService.get(e.name)),Object(h.a)(t).subscribe(e=>{this.scopes=e[0],["name","description","scopes_permissions"].forEach(t=>this.roleForm.get(t).setValue(e[1][t])),this.loadingReady()})})}listenToChanges(){this.roleForm.get("scopes_permissions").valueChanges.subscribe(e=>{const t=[];d.a.each(this.scopes,n=>{const i={read:!1,create:!1,update:!1,delete:!1};i.scope=n,n in e&&d.a.each(e[n],e=>{i[e]=!0}),t.push(i)}),this.scopes_permissions=t})}isRowChecked(e){const t=d.a.find(this.scopes_permissions,t=>t.scope===e);return!d.a.isUndefined(t)&&t.read&&t.create&&t.update&&t.delete}isHeaderChecked(e){let t=[e];return"scope"===e&&(t=["read","create","update","delete"]),t.every(e=>this.scopes_permissions.every(t=>t[e]))}onClickCellCheckbox(e,t,n=null){const i=d.a.cloneDeep(this.roleForm.getValue("scopes_permissions"));let r=[t];"scope"===t&&(r=["read","create","update","delete"]),e in i||(i[e]=[]),n&&n.target.checked||!d.a.isEqual(r.sort(),d.a.intersection(i[e],r).sort())?i[e]=d.a.union(i[e],r):(i[e]=d.a.difference(i[e],r),d.a.isEmpty(i[e])&&d.a.unset(i,e)),this.roleForm.get("scopes_permissions").setValue(i)}onClickHeaderCheckbox(e,t){const n=d.a.cloneDeep(this.roleForm.getValue("scopes_permissions"));let i=[e];"scope"===e&&(i=["read","create","update","delete"]),d.a.each(i,e=>{d.a.each(this.scopes,i=>{t.target.checked?n[i]=d.a.union(n[i],[e]):(n[i]=d.a.difference(n[i],[e]),d.a.isEmpty(n[i])&&d.a.unset(n,i))})}),this.roleForm.get("scopes_permissions").setValue(n)}getRequest(){const e=new k;return["name","description","scopes_permissions"].forEach(t=>e[t]=this.roleForm.get(t).value),e}createAction(){const e=this.getRequest();this.roleService.create(e).subscribe(()=>{this.notificationService.show(v.a.success,"Created role '" + e.name + "'"),this.router.navigate(["/user-management/roles"])},()=>{this.roleForm.setErrors({cdSubmitButton:!0})})}editAction(){const e=this.getRequest();this.roleService.update(e).subscribe(()=>{this.notificationService.show(v.a.success,"Updated role '" + e.name + "'"),this.router.navigate(["/user-management/roles"])},()=>{this.roleForm.setErrors({cdSubmitButton:!0})})}submit(){this.mode===this.roleFormMode.editing?this.editAction():this.createAction()}}return e.\u0275fac=function(t){return new(t||e)(m.Rb(s.a),m.Rb(s.e),m.Rb(g),m.Rb(_),m.Rb(S.a),m.Rb(c.b))},e.\u0275cmp=m.Lb({type:e,selectors:[["cd-role-form"]],viewQuery:function(e,t){if(1&e&&(m.Wc(P,3),m.Wc(F,3),m.Wc(W,3)),2&e){let e;m.Ec(e=m.mc())&&(t.headerPermissionCheckboxTpl=e.first),m.Ec(e=m.mc())&&(t.cellScopeCheckboxTpl=e.first),m.Ec(e=m.mc())&&(t.cellPermissionCheckboxTpl=e.first)}},features:[m.Ab],decls:7,vars:1,consts:function(){let e,t,n,i,r,s,o,a;return e="" + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + "",t="Name",n="Name...",i="Description",r="Description...",s="Permissions",o="This field is required.",a="The chosen name is already in use.",[["class","cd-col-form",4,"cdFormLoading"],["cellScopeCheckboxTpl",""],["cellPermissionCheckboxTpl",""],["headerPermissionCheckboxTpl",""],[1,"cd-col-form"],["name","roleForm","novalidate","",3,"formGroup"],["formDir","ngForm"],[1,"card"],[1,"card-header"],e,[1,"card-body"],[1,"form-group","row"],["for","name",1,"cd-col-form-label",3,"ngClass"],t,[1,"cd-col-form-input"],["type","text","placeholder",n,"id","name","name","name","formControlName","name","autofocus","",1,"form-control"],["class","invalid-feedback",4,"ngIf"],["for","description",1,"cd-col-form-label"],i,["type","text","placeholder",r,"id","description","name","description","formControlName","description",1,"form-control"],[1,"cd-col-form-label"],s,["columnMode","flex",3,"data","columns","toolHeader","autoReload","autoSave","footer","limit"],[1,"card-footer"],["wrappingClass","text-right",3,"form","submitText","submitActionEvent"],[1,"invalid-feedback"],o,a,[1,"custom-control","custom-checkbox"],["type","checkbox",1,"custom-control-input",3,"id","checked","change"],[1,"datatable-permissions-scope-cell-label","custom-control-label",3,"for"],["type","checkbox",1,"custom-control-input",3,"checked","id","change"],[1,"custom-control-label",3,"for"],[1,"datatable-permissions-header-cell-label","custom-control-label",3,"for"]]},template:function(e,t){1&e&&(m.Pc(0,z,30,25,"div",0),m.Pc(1,$,4,4,"ng-template",null,1,m.Qc),m.Pc(3,H,3,3,"ng-template",null,2,m.Qc),m.Pc(5,X,4,4,"ng-template",null,3,m.Qc)),2&e&&m.uc("cdFormLoading",t.loading)},directives:[T.a,r.B,r.r,r.k,M.a,C.a,i.p,O.a,r.d,L.a,r.q,r.i,E.a,i.r,A.a,I.a],pipes:[i.A,R.a],styles:[".datatable-permissions-header-cell-label[_ngcontent-%COMP%], .datatable-permissions-scope-cell-label[_ngcontent-%COMP%]{font-weight:700}"]}),e})();var B=n("+fVR"),U=n("0+/T"),q=n("Rf2I"),G=n("x38r"),J=n("oxzT"),K=n("vCyI"),Q=n("nSDx"),Z=n("aexS"),ee=n("JK/P"),te=n("EgGo");let ne=(()=>{class e{constructor(e){this.router=e}}return e.\u0275fac=function(t){return new(t||e)(m.Rb(s.e))},e.\u0275cmp=m.Lb({type:e,selectors:[["cd-user-tabs"]],decls:8,vars:1,consts:function(){let e,t;return e="Users",t="Roles",[["ngbNav","",1,"nav-tabs",3,"activeId","navChange"],["nav","ngbNav"],["ngbNavItem","/user-management/users"],["ngbNavLink",""],e,["ngbNavItem","/user-management/roles"],t]},template:function(e,t){1&e&&(m.Xb(0,"ul",0,1),m.lc("navChange",function(e){return t.router.navigate([e.nextId])}),m.Xb(2,"li",2),m.Xb(3,"a",3),m.bc(4,4),m.Wb(),m.Wb(),m.Xb(5,"li",5),m.Xb(6,"a",3),m.bc(7,6),m.Wb(),m.Wb(),m.Wb()),2&e&&m.uc("activeId",t.router.url)},directives:[o.p,o.r,o.s],styles:[""]}),e})();var ie=n("S7zO");function re(e,t){if(1&e&&(m.Vb(0),m.Sb(1,"cd-table",1),m.Ub()),2&e){const e=m.nc();m.Db(1),m.uc("data",e.scopes_permissions)("columns",e.columns)("toolHeader",!1)("autoReload",!1)("autoSave",!1)("footer",!1)("limit",0)}}let se=(()=>{class e{constructor(){this.scopes_permissions=[]}ngOnInit(){this.columns=[{prop:"scope",name:"Scope",flexGrow:2},{prop:"read",name:"Read",flexGrow:1,cellClass:"text-center",cellTransformation:G.a.checkIcon},{prop:"create",name:"Create",flexGrow:1,cellClass:"text-center",cellTransformation:G.a.checkIcon},{prop:"update",name:"Update",flexGrow:1,cellClass:"text-center",cellTransformation:G.a.checkIcon},{prop:"delete",name:"Delete",flexGrow:1,cellClass:"text-center",cellTransformation:G.a.checkIcon}]}ngOnChanges(){if(this.selection){this.selectedItem=this.selection;const e=[];d.a.each(this.scopes,t=>{const n={read:!1,create:!1,update:!1,delete:!1};n.scope=t,t in this.selectedItem.scopes_permissions&&d.a.each(this.selectedItem.scopes_permissions[t],e=>{n[e]=!0}),e.push(n)}),this.scopes_permissions=e}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=m.Lb({type:e,selectors:[["cd-role-details"]],inputs:{selection:"selection",scopes:"scopes"},features:[m.Bb],decls:1,vars:1,consts:[[4,"ngIf"],["columnMode","flex",3,"data","columns","toolHeader","autoReload","autoSave","footer","limit"]],template:function(e,t){1&e&&m.Pc(0,re,2,7,"ng-container",0),2&e&&m.uc("ngIf",t.selection)},directives:[i.r,A.a],styles:[".fa[_ngcontent-%COMP%]{font-size:large}.fa.fa-square-o[_ngcontent-%COMP%]{color:#ced4da}"]}),e})(),oe=(()=>{class e extends B.a{constructor(e,t,n,i,r,s,o,a){super(),this.roleService=e,this.scopeService=t,this.emptyPipe=n,this.authStorageService=i,this.modalService=r,this.notificationService=s,this.urlBuilder=o,this.actionLabels=a,this.selection=new K.a,this.permission=this.authStorageService.getPermissions().user,this.tableActions=[{permission:"create",icon:J.a.add,routerLink:()=>this.urlBuilder.getCreate(),name:this.actionLabels.CREATE},{permission:"create",icon:J.a.clone,name:this.actionLabels.CLONE,disable:()=>!this.selection.hasSingleSelection,click:()=>this.cloneRole()},{permission:"update",icon:J.a.edit,disable:()=>!this.selection.hasSingleSelection||this.selection.first().system,routerLink:()=>this.selection.first()&&this.urlBuilder.getEdit(this.selection.first().name),name:this.actionLabels.EDIT},{permission:"delete",icon:J.a.destroy,disable:()=>!this.selection.hasSingleSelection||this.selection.first().system,click:()=>this.deleteRoleModal(),name:this.actionLabels.DELETE}]}ngOnInit(){this.columns=[{name:"Name",prop:"name",flexGrow:3},{name:"Description",prop:"description",flexGrow:5,pipe:this.emptyPipe},{name:"System Role",prop:"system",cellClass:"text-center",flexGrow:1,cellTransformation:G.a.checkIcon}]}getRoles(){Object(h.a)([this.roleService.list(),this.scopeService.list()]).subscribe(e=>{this.roles=e[0],this.scopes=e[1]})}updateSelection(e){this.selection=e}deleteRole(e){this.roleService.delete(e).subscribe(()=>{this.getRoles(),this.modalRef.close(),this.notificationService.show(v.a.success,"Deleted role '" + e + "'")},()=>{this.modalRef.componentInstance.stopLoadingSpinner()})}deleteRoleModal(){const e=this.selection.first().name;this.modalRef=this.modalService.show(U.a,{itemDescription:"Role",itemNames:[e],submitAction:()=>this.deleteRole(e)})}cloneRole(){const e=this.selection.first().name;this.modalRef=this.modalService.show(q.a,{fields:[{type:"text",name:"newName",value:`${e}_clone`,label:"New name",required:!0}],titleText:"Clone Role",submitButtonText:"Clone Role",onSubmit:t=>{this.roleService.clone(e,t.newName).subscribe(()=>{this.getRoles(),this.notificationService.show(v.a.success,"Cloned role '" + t.newName + "' from '" + e + "'")})}})}}return e.\u0275fac=function(t){return new(t||e)(m.Rb(g),m.Rb(_),m.Rb(Q.a),m.Rb(Z.a),m.Rb(ee.a),m.Rb(S.a),m.Rb(te.a),m.Rb(c.b))},e.\u0275cmp=m.Lb({type:e,selectors:[["cd-role-list"]],features:[m.Cb([{provide:te.a,useValue:new te.a("user-management/roles")}]),m.Ab],decls:4,vars:8,consts:[["columnMode","flex","identifier","name","selectionType","single",3,"data","columns","hasDetails","setExpandedRow","fetchData","updateSelection"],[1,"table-actions",3,"permission","selection","tableActions"],["cdTableDetail","",3,"selection","scopes"]],template:function(e,t){1&e&&(m.Sb(0,"cd-user-tabs"),m.Xb(1,"cd-table",0),m.lc("setExpandedRow",function(e){return t.setExpandedRow(e)})("fetchData",function(){return t.getRoles()})("updateSelection",function(e){return t.updateSelection(e)}),m.Sb(2,"cd-table-actions",1),m.Sb(3,"cd-role-details",2),m.Wb()),2&e&&(m.Db(1),m.uc("data",t.roles)("columns",t.columns)("hasDetails",!0),m.Db(1),m.uc("permission",t.permission)("selection",t.selection)("tableActions",t.tableActions),m.Db(1),m.uc("selection",t.expandedRow)("scopes",t.scopes))},directives:[ne,A.a,ie.a,se],styles:[""]}),e})();var ae=n("wd/R"),ce=n.n(ae),le=n("DSvg"),ue=n("20UP"),de=n("Mxhz"),he=n("OLbh"),fe=n("DNAf"),pe=n("2EZI"),me=n("oMSZ"),be=n("1nQr"),ge=function(e){return e.editing="editing",e}({});class _e{}var ve=n("D4zM"),ye=n("p4Cf"),we=n("ppaS"),De=n("MAOJ");const Se=["removeSelfUserReadUpdatePermissionTpl"];function xe(e,t){1&e&&(m.Xb(0,"span",28),m.bc(1,29),m.Wb())}function ke(e,t){1&e&&(m.Xb(0,"span",28),m.bc(1,30),m.Wb())}function Te(e,t){if(1&e&&m.Sb(0,"cd-helper",40),2&e){const e=m.nc(3);m.vc("html",e.passwordPolicyHelpText)}}function Me(e,t){1&e&&(m.Xb(0,"span",28),m.bc(1,41),m.Wb())}function Ce(e,t){if(1&e&&(m.Xb(0,"span",28),m.Rc(1),m.Wb()),2&e){const e=m.nc(3);m.Db(1),m.Tc(" ",e.passwordValuation," ")}}function Oe(e,t){if(1&e&&(m.Xb(0,"div",10),m.Xb(1,"label",31),m.Vb(2),m.bc(3,32),m.Ub(),m.Pc(4,Te,1,1,"cd-helper",33),m.Wb(),m.Xb(5,"div",13),m.Xb(6,"div",34),m.Sb(7,"input",35),m.Xb(8,"span",36),m.Sb(9,"button",37),m.Wb(),m.Wb(),m.Xb(10,"div",38),m.Sb(11,"div",39),m.Wb(),m.Pc(12,Me,2,0,"span",15),m.Pc(13,Ce,2,1,"span",15),m.Wb(),m.Wb()),2&e){m.nc();const e=m.Fc(2),t=m.nc();m.Db(4),m.uc("ngIf",t.passwordPolicyHelpText.length>0),m.Db(7),m.Fb(t.passwordStrengthLevelClass),m.vc("title",t.passwordValuation),m.Db(1),m.uc("ngIf",t.userForm.showError("password",e,"required")),m.Db(1),m.uc("ngIf",t.userForm.showError("password",e,"passwordPolicy"))}}function Le(e,t){1&e&&(m.Xb(0,"span",28),m.bc(1,46),m.Wb())}function Ee(e,t){1&e&&(m.Xb(0,"span",28),m.bc(1,47),m.Wb())}function Ae(e,t){if(1&e&&(m.Xb(0,"div",10),m.Xb(1,"label",42),m.bc(2,43),m.Wb(),m.Xb(3,"div",13),m.Xb(4,"div",34),m.Sb(5,"input",44),m.Xb(6,"span",36),m.Sb(7,"button",45),m.Wb(),m.Pc(8,Le,2,0,"span",15),m.Wb(),m.Pc(9,Ee,2,0,"span",15),m.Wb(),m.Wb()),2&e){m.nc();const e=m.Fc(2),t=m.nc();m.Db(8),m.uc("ngIf",t.userForm.showError("confirmpassword",e,"match")),m.Db(1),m.uc("ngIf",t.userForm.showError("confirmpassword",e,"required"))}}function Ie(e,t){1&e&&(m.Xb(0,"cd-helper",54),m.Xb(1,"p"),m.Rc(2," The Dashboard setting defining the expiration interval of passwords is currently set to "),m.Xb(3,"strong"),m.Rc(4,"0"),m.Wb(),m.Rc(5,". This means if a date is set, the user password will only expire once. "),m.Wb(),m.Xb(6,"p"),m.Rc(7," Consider configuring the Dashboard setting "),m.Xb(8,"a",55),m.Rc(9,"USER_PWD_EXPIRATION_SPAN"),m.Wb(),m.Rc(10," in order to let passwords expire periodically. "),m.Wb(),m.Wb())}function Re(e,t){1&e&&(m.Xb(0,"span",28),m.bc(1,56),m.Wb())}const Pe=function(e){return{required:e}};function Fe(e,t){if(1&e){const e=m.Yb();m.Xb(0,"div",10),m.Xb(1,"label",48),m.Vb(2),m.bc(3,49),m.Ub(),m.Pc(4,Ie,11,0,"cd-helper",50),m.Wb(),m.Xb(5,"div",13),m.Xb(6,"div",34),m.Xb(7,"input",51,52),m.lc("click",function(){return m.Ic(e),m.Fc(8).open()})("keypress",function(){return m.Ic(e),m.Fc(8).close()}),m.Wb(),m.Xb(9,"span",36),m.Xb(10,"button",53),m.lc("click",function(){return m.Ic(e),m.nc(2).clearExpirationDate()}),m.Sb(11,"i"),m.Wb(),m.Wb(),m.Pc(12,Re,2,0,"span",15),m.Wb(),m.Wb(),m.Wb()}if(2&e){m.nc();const e=m.Fc(2),t=m.nc(),n=m.Fc(4);m.Db(1),m.uc("ngClass",m.zc(7,Pe,t.pwdExpirationSettings.pwdExpirationSpan>0)),m.Db(3),m.uc("ngIf",0==t.pwdExpirationSettings.pwdExpirationSpan),m.Db(3),m.uc("ngbPopover",n),m.Db(4),m.Gb("icon-prepend ",t.icons.destroy,""),m.Db(1),m.uc("ngIf",t.userForm.showError("pwdExpirationDate",e,"required"))}}function We(e,t){1&e&&(m.Xb(0,"span",28),m.bc(1,57),m.Wb())}function je(e,t){if(1&e&&(m.Xb(0,"span",58),m.Sb(1,"cd-select-badges",59),m.Wb()),2&e){const e=m.nc(2);m.Db(1),m.uc("data",e.userForm.controls.roles.value)("options",e.allRoles)("messages",e.messages)}}function Ye(e,t){1&e&&(m.Xb(0,"div",10),m.Xb(1,"div",60),m.Xb(2,"div",61),m.Sb(3,"input",62),m.Xb(4,"label",63),m.bc(5,64),m.Wb(),m.Wb(),m.Wb(),m.Wb())}function Ne(e,t){1&e&&(m.Xb(0,"div",10),m.Xb(1,"div",60),m.Xb(2,"div",61),m.Sb(3,"input",65),m.Xb(4,"label",66),m.bc(5,67),m.Wb(),m.Wb(),m.Wb(),m.Wb())}function ze(e,t){if(1&e){const e=m.Yb();m.Xb(0,"div",3),m.Xb(1,"form",4,5),m.Xb(3,"div",6),m.Xb(4,"div",7),m.bc(5,8),m.oc(6,"titlecase"),m.oc(7,"upperFirst"),m.Wb(),m.Xb(8,"div",9),m.Xb(9,"div",10),m.Xb(10,"label",11),m.bc(11,12),m.Wb(),m.Xb(12,"div",13),m.Sb(13,"input",14),m.Pc(14,xe,2,0,"span",15),m.Pc(15,ke,2,0,"span",15),m.Wb(),m.Wb(),m.Pc(16,Oe,14,7,"div",16),m.Pc(17,Ae,10,2,"div",16),m.Pc(18,Fe,13,9,"div",16),m.Xb(19,"div",10),m.Xb(20,"label",17),m.bc(21,18),m.Wb(),m.Xb(22,"div",13),m.Sb(23,"input",19),m.Wb(),m.Wb(),m.Xb(24,"div",10),m.Xb(25,"label",20),m.bc(26,21),m.Wb(),m.Xb(27,"div",13),m.Sb(28,"input",22),m.Pc(29,We,2,0,"span",15),m.Wb(),m.Wb(),m.Xb(30,"div",10),m.Xb(31,"label",23),m.bc(32,24),m.Wb(),m.Xb(33,"div",13),m.Pc(34,je,2,3,"span",25),m.Wb(),m.Wb(),m.Pc(35,Ye,6,0,"div",16),m.Pc(36,Ne,6,0,"div",16),m.Wb(),m.Xb(37,"div",26),m.Xb(38,"cd-form-button-panel",27),m.lc("submitActionEvent",function(){return m.Ic(e),m.nc().submit()}),m.oc(39,"titlecase"),m.oc(40,"upperFirst"),m.Wb(),m.Wb(),m.Wb(),m.Wb(),m.Wb()}if(2&e){const e=m.Fc(2),t=m.nc();m.Db(1),m.uc("formGroup",t.userForm),m.Db(6),m.fc(m.pc(6,15,t.action))(m.pc(7,17,t.resource)),m.cc(5),m.Db(3),m.uc("ngClass",m.zc(23,Pe,t.mode!==t.userFormMode.editing)),m.Db(4),m.uc("ngIf",t.userForm.showError("username",e,"required")),m.Db(1),m.uc("ngIf",t.userForm.showError("username",e,"notUnique")),m.Db(1),m.uc("ngIf",!t.authStorageService.isSSO()),m.Db(1),m.uc("ngIf",!t.authStorageService.isSSO()),m.Db(1),m.uc("ngIf",!t.authStorageService.isSSO()),m.Db(11),m.uc("ngIf",t.userForm.showError("email",e,"email")),m.Db(5),m.uc("ngIf",t.allRoles),m.Db(1),m.uc("ngIf",!t.isCurrentUser()),m.Db(1),m.uc("ngIf",!t.isCurrentUser()&&!t.authStorageService.isSSO()),m.Db(2),m.uc("form",t.userForm)("submitText",m.pc(39,19,t.action)+" "+m.pc(40,21,t.resource))}}function $e(e,t){1&e&&(m.Xb(0,"p"),m.Xb(1,"strong"),m.bc(2,68),m.Wb(),m.Wb(),m.Sb(3,"br"),m.Xb(4,"p"),m.bc(5,69),m.Wb(),m.Vb(6),m.bc(7,70),m.Ub())}function He(e,t){if(1&e&&m.Sb(0,"cd-date-time-picker",71),2&e){const e=m.nc();m.uc("control",e.userForm.get("pwdExpirationDate"))("hasTime",!1)}}let Xe=(()=>{class e extends y.a{constructor(e,t,n,i,r,s,o,a,c,l,u,d){super(),this.authService=e,this.authStorageService=t,this.route=n,this.router=i,this.modalService=r,this.roleService=s,this.userService=o,this.notificationService=a,this.actionLabels=c,this.passwordPolicyService=l,this.formBuilder=u,this.settingsService=d,this.userFormMode=ge,this.messages=new fe.a({empty:"There are no roles."}),this.passwordPolicyHelpText="",this.icons=J.a,this.pwdExpirationFormat="YYYY-MM-DD",this.resource="user",this.createForm(),this.messages=new fe.a({empty:"There are no roles."})}createForm(){this.passwordPolicyService.getHelpText().subscribe(e=>{this.passwordPolicyHelpText=e}),this.userForm=this.formBuilder.group({username:["",[r.A.required],[D.a.unique(this.userService.validateUserName,this.userService)]],name:[""],password:["",[],[D.a.passwordPolicy(this.userService,()=>this.userForm.getValue("username"),(e,t,n)=>{this.passwordStrengthLevelClass=this.passwordPolicyService.mapCreditsToCssClass(t),this.passwordValuation=d.a.defaultTo(n,"")})]],confirmpassword:[""],pwdExpirationDate:[void 0],email:["",[D.a.email]],roles:[[]],enabled:[!0,[r.A.required]],pwdUpdateRequired:[!0]},{validators:[D.a.match("password","confirmpassword")]})}ngOnInit(){this.router.url.startsWith("/user-management/users/edit")?(this.mode=this.userFormMode.editing,this.action=this.actionLabels.EDIT):this.action=this.actionLabels.CREATE;const e=[this.roleService.list(),this.settingsService.getStandardSettings()];Object(h.a)(e).subscribe(e=>{if(this.allRoles=d.a.map(e[0],e=>(e.enabled=!0,e)),this.pwdExpirationSettings=new me.a(e[1]),this.mode===this.userFormMode.editing)this.initEdit();else{if(this.pwdExpirationSettings.pwdExpirationSpan>0){const e=this.userForm.get("pwdExpirationDate"),t=ce()();t.add(this.pwdExpirationSettings.pwdExpirationSpan,"day"),e.setValue(t.format(this.pwdExpirationFormat)),e.setValidators([r.A.required])}this.loadingReady()}})}initEdit(){this.disableForEdit(),this.route.params.subscribe(e=>{this.userService.get(e.username).subscribe(e=>{this.response=d.a.cloneDeep(e),this.setResponse(e),this.loadingReady()})})}disableForEdit(){this.userForm.get("username").disable()}setResponse(e){["username","name","email","roles","enabled","pwdUpdateRequired"].forEach(t=>this.userForm.get(t).setValue(e[t]));const t=e.pwdExpirationDate;t&&this.userForm.get("pwdExpirationDate").setValue(ce()(1e3*t).format(this.pwdExpirationFormat))}getRequest(){const e=new _e;["username","password","name","email","roles","enabled","pwdUpdateRequired"].forEach(t=>e[t]=this.userForm.get(t).value);const t=this.userForm.get("pwdExpirationDate").value;if(t){const n=ce()(t,this.pwdExpirationFormat);this.mode===this.userFormMode.editing&&this.response.pwdExpirationDate===n.unix()||n.set({hour:23,minute:59,second:59}),e.pwdExpirationDate=n.unix()}return e}createAction(){const e=this.getRequest();this.userService.create(e).subscribe(()=>{this.notificationService.show(v.a.success,"Created user '" + e.username + "'"),this.router.navigate(["/user-management/users"])},()=>{this.userForm.setErrors({cdSubmitButton:!0})})}editAction(){if(this.isUserRemovingNeededRolePermissions()){const e={titleText:"Update user",buttonText:"Continue",bodyTpl:this.removeSelfUserReadUpdatePermissionTpl,onSubmit:()=>{this.modalRef.close(),this.doEditAction()},onCancel:()=>{this.userForm.setErrors({cdSubmitButton:!0}),this.userForm.get("roles").reset(this.userForm.get("roles").value)}};this.modalRef=this.modalService.show(he.a,e)}else this.doEditAction()}isCurrentUser(){return this.authStorageService.getUsername()===this.userForm.getValue("username")}isUserChangingRoles(){return this.isCurrentUser()&&this.response&&!d.a.isEqual(this.response.roles,this.userForm.getValue("roles"))}isUserRemovingNeededRolePermissions(){return this.isCurrentUser()&&!this.hasUserReadUpdatePermissions(this.userForm.getValue("roles"))}hasUserReadUpdatePermissions(e=[]){for(const t of this.allRoles)if(-1!==e.indexOf(t.name)&&t.scopes_permissions.user){const e=t.scopes_permissions.user;return["read","update"].every(t=>-1!==e.indexOf(t))}return!1}doEditAction(){const e=this.getRequest();this.userService.update(e).subscribe(()=>{this.isUserChangingRoles()?this.authService.logout(()=>{this.notificationService.show(v.a.info,"You were automatically logged out because your roles have been changed.")}):(this.notificationService.show(v.a.success,"Updated user '" + e.username + "'"),this.router.navigate(["/user-management/users"]))},()=>{this.userForm.setErrors({cdSubmitButton:!0})})}clearExpirationDate(){this.userForm.get("pwdExpirationDate").setValue(void 0)}submit(){this.mode===this.userFormMode.editing?this.editAction():this.createAction()}}return e.\u0275fac=function(t){return new(t||e)(m.Rb(le.a),m.Rb(Z.a),m.Rb(s.a),m.Rb(s.e),m.Rb(ee.a),m.Rb(g),m.Rb(de.a),m.Rb(S.a),m.Rb(c.b),m.Rb(be.a),m.Rb(pe.a),m.Rb(ue.a))},e.\u0275cmp=m.Lb({type:e,selectors:[["cd-user-form"]],viewQuery:function(e,t){if(1&e&&m.Wc(Se,3),2&e){let e;m.Ec(e=m.mc())&&(t.removeSelfUserReadUpdatePermissionTpl=e.first)}},features:[m.Ab],decls:5,vars:1,consts:function(){let e,t,n,i,r,s,o,a,c,l,u,d,h,f,p,m,b,g,_,v,y;return e="" + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + "",t="Username",n="Full name",i="Email",r="Roles",s="This field is required.",o="The username already exists.",a="Password",c="This field is required.",l="Confirm password",u="Password confirmation doesn't match the password.",d="This field is required.",h="Password expiration date",f="Password expiration date...",p="This field is required.",m="Invalid email.",b="Enabled",g="User must change password at next logon",_="You are about to remove \"user read / update\" permissions from your own user.",v="If you continue, you will no longer be able to add or remove roles from any user.",y="Are you sure you want to continue?",[["class","cd-col-form",4,"cdFormLoading"],["removeSelfUserReadUpdatePermissionTpl",""],["popContent",""],[1,"cd-col-form"],["name","userForm","novalidate","",3,"formGroup"],["formDir","ngForm"],[1,"card"],[1,"card-header"],e,[1,"card-body"],[1,"form-group","row"],["for","username",1,"cd-col-form-label",3,"ngClass"],t,[1,"cd-col-form-input"],["type","text","placeholder","Username...","id","username","name","username","formControlName","username","autocomplete","off","autofocus","",1,"form-control"],["class","invalid-feedback",4,"ngIf"],["class","form-group row",4,"ngIf"],["for","name",1,"cd-col-form-label"],n,["type","text","placeholder","Full name...","id","name","name","name","formControlName","name",1,"form-control"],["for","email",1,"cd-col-form-label"],i,["type","email","placeholder","Email...","id","email","name","email","formControlName","email",1,"form-control"],[1,"cd-col-form-label"],r,["class","no-border full-height",4,"ngIf"],[1,"card-footer"],["wrappingClass","text-right",3,"form","submitText","submitActionEvent"],[1,"invalid-feedback"],s,o,["for","password",1,"cd-col-form-label"],a,["class","text-pre-wrap",3,"html",4,"ngIf"],[1,"input-group"],["type","password","placeholder","Password...","id","password","name","password","autocomplete","new-password","formControlName","password",1,"form-control"],[1,"input-group-append"],["type","button","cdPasswordButton","password",1,"btn","btn-light"],[1,"password-strength-level"],["data-toggle","tooltip",3,"title"],[1,"text-pre-wrap",3,"html"],c,["for","confirmpassword",1,"cd-col-form-label"],l,["type","password","placeholder","Confirm password...","id","confirmpassword","name","confirmpassword","autocomplete","new-password","formControlName","confirmpassword",1,"form-control"],["type","button","cdPasswordButton","confirmpassword",1,"btn","btn-light"],u,d,["for","pwdExpirationDate",1,"cd-col-form-label",3,"ngClass"],h,["class","text-pre-wrap",4,"ngIf"],["placeholder",f,"id","pwdExpirationDate","name","pwdExpirationDate","formControlName","pwdExpirationDate","triggers","manual",1,"form-control",3,"ngbPopover","click","keypress"],["p","ngbPopover"],["type","button",1,"btn","btn-light",3,"click"],[1,"text-pre-wrap"],["routerLink","/mgr-modules/edit/dashboard",1,"alert-link"],p,m,[1,"no-border","full-height"],[3,"data","options","messages"],[1,"cd-col-form-offset"],[1,"custom-control","custom-checkbox"],["type","checkbox","id","enabled","name","enabled","formControlName","enabled",1,"custom-control-input"],["for","enabled",1,"custom-control-label"],b,["type","checkbox","id","pwdUpdateRequired","name","pwdUpdateRequired","formControlName","pwdUpdateRequired",1,"custom-control-input"],["for","pwdUpdateRequired",1,"custom-control-label"],g,_,v,y,[3,"control","hasTime"]]},template:function(e,t){1&e&&(m.Pc(0,ze,41,25,"div",0),m.Pc(1,$e,8,0,"ng-template",null,1,m.Qc),m.Pc(3,He,1,2,"ng-template",null,2,m.Qc)),2&e&&m.uc("cdFormLoading",t.loading)},directives:[T.a,r.B,r.r,r.k,M.a,C.a,i.p,O.a,r.d,L.a,r.q,r.i,E.a,i.r,I.a,ve.a,ye.a,o.w,s.h,we.a,r.b,De.a],pipes:[i.A,R.a],styles:[""]}),e})();var Ve=n("a0VL");const Be=["userRolesTpl"];function Ue(e,t){if(1&e&&(m.Xb(0,"span"),m.Rc(1),m.Wb()),2&e){const e=t.$implicit,n=t.last;m.Db(1),m.Uc(" ",e,"",n?"":", "," ")}}function qe(e,t){1&e&&m.Pc(0,Ue,2,2,"span",3),2&e&&m.uc("ngForOf",t.value)}let Ge=(()=>{class e{constructor(e,t,n,i,r,s,o,a){this.userService=e,this.emptyPipe=t,this.modalService=n,this.notificationService=i,this.authStorageService=r,this.urlBuilder=s,this.cdDatePipe=o,this.actionLabels=a,this.selection=new K.a,this.permission=this.authStorageService.getPermissions().user,this.tableActions=[{permission:"create",icon:J.a.add,routerLink:()=>this.urlBuilder.getCreate(),name:this.actionLabels.CREATE},{permission:"update",icon:J.a.edit,routerLink:()=>this.selection.first()&&this.urlBuilder.getEdit(this.selection.first().username),name:this.actionLabels.EDIT},{permission:"delete",icon:J.a.destroy,click:()=>this.deleteUserModal(),name:this.actionLabels.DELETE}]}ngOnInit(){this.columns=[{name:"Username",prop:"username",flexGrow:1},{name:"Name",prop:"name",flexGrow:1,pipe:this.emptyPipe},{name:"Email",prop:"email",flexGrow:1,pipe:this.emptyPipe},{name:"Roles",prop:"roles",flexGrow:1,cellTemplate:this.userRolesTpl},{name:"Enabled",prop:"enabled",flexGrow:1,cellTransformation:G.a.checkIcon},{name:"Password expiration date",prop:"pwdExpirationDate",flexGrow:1,pipe:this.cdDatePipe}]}getUsers(){this.userService.list().subscribe(e=>{e.forEach(e=>{e.pwdExpirationDate&&e.pwdExpirationDate>0&&(e.pwdExpirationDate=1e3*e.pwdExpirationDate)}),this.users=e})}updateSelection(e){this.selection=e}deleteUser(e){this.userService.delete(e).subscribe(()=>{this.getUsers(),this.modalRef.close(),this.notificationService.show(v.a.success,"Deleted user '" + e + "'")},()=>{this.modalRef.componentInstance.stopLoadingSpinner()})}deleteUserModal(){const e=this.authStorageService.getUsername(),t=this.selection.first().username;e!==t?this.modalRef=this.modalService.show(U.a,{itemDescription:"User",itemNames:[t],submitAction:()=>this.deleteUser(t)}):this.notificationService.show(v.a.error,"Failed to delete user '" + t + "'","You are currently logged in as '" + t + "'.")}}return e.\u0275fac=function(t){return new(t||e)(m.Rb(de.a),m.Rb(Q.a),m.Rb(ee.a),m.Rb(S.a),m.Rb(Z.a),m.Rb(te.a),m.Rb(Ve.a),m.Rb(c.b))},e.\u0275cmp=m.Lb({type:e,selectors:[["cd-user-list"]],viewQuery:function(e,t){if(1&e&&m.Wc(Be,3),2&e){let e;m.Ec(e=m.mc())&&(t.userRolesTpl=e.first)}},features:[m.Cb([{provide:te.a,useValue:new te.a("user-management/users")}])],decls:5,vars:5,consts:[["columnMode","flex","identifier","username","selectionType","single",3,"data","columns","fetchData","updateSelection"],[1,"table-actions",3,"permission","selection","tableActions"],["userRolesTpl",""],[4,"ngFor","ngForOf"]],template:function(e,t){1&e&&(m.Sb(0,"cd-user-tabs"),m.Xb(1,"cd-table",0),m.lc("fetchData",function(){return t.getUsers()})("updateSelection",function(e){return t.updateSelection(e)}),m.Sb(2,"cd-table-actions",1),m.Wb(),m.Pc(3,qe,1,1,"ng-template",null,2,m.Qc)),2&e&&(m.Db(1),m.uc("data",t.users)("columns",t.columns),m.Db(1),m.uc("permission",t.permission)("selection",t.selection)("tableActions",t.tableActions))},directives:[ne,A.a,ie.a,i.q],styles:[""]}),e})(),Je=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=m.Pb({type:e}),e.\u0275inj=m.Ob({imports:[[i.c,r.m,r.x,l.a,o.t,o.y,a.a,s.i]]}),e})();const Ke=[{path:"",redirectTo:"users",pathMatch:"full"},{path:"users",data:{breadcrumbs:"Users"},children:[{path:"",component:Ge},{path:c.e.CREATE,component:Xe,data:{breadcrumbs:c.a.CREATE}},{path:`${c.e.EDIT}/:username`,component:Xe,data:{breadcrumbs:c.a.EDIT}}]},{path:"roles",data:{breadcrumbs:"Roles"},children:[{path:"",component:oe},{path:c.e.CREATE,component:V,data:{breadcrumbs:c.a.CREATE}},{path:`${c.e.EDIT}/:name`,component:V,data:{breadcrumbs:c.a.EDIT}}]}];let Qe=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=m.Pb({type:e}),e.\u0275inj=m.Ob({imports:[[Je,s.i.forChild(Ke)]]}),e})()},Lhse:function(e,t,n){"use strict";function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",function(){return r});const r=i()},Loxo:function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(n("wd/R"))},LvDl:function(e,t,n){(function(e){var i;(function(){var r,s="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",c=32,l=128,u=1/0,d=9007199254740991,h=NaN,f=4294967295,p=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",c],["partialRight",64],["rearg",256]],m="[object Arguments]",b="[object Array]",g="[object Boolean]",_="[object Date]",v="[object Error]",y="[object Function]",w="[object GeneratorFunction]",D="[object Map]",S="[object Number]",x="[object Object]",k="[object Promise]",T="[object RegExp]",M="[object Set]",C="[object String]",O="[object Symbol]",L="[object WeakMap]",E="[object ArrayBuffer]",A="[object DataView]",I="[object Float32Array]",R="[object Float64Array]",P="[object Int8Array]",F="[object Int16Array]",W="[object Int32Array]",j="[object Uint8Array]",Y="[object Uint8ClampedArray]",N="[object Uint16Array]",z="[object Uint32Array]",$=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,X=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,B=/[&<>"']/g,U=RegExp(V.source),q=RegExp(B.source),G=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),ie=/^\s+/,re=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,le=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,ge=/^(?:0|[1-9]\d*)$/,_e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ve=/($^)/,ye=/['\n\r\u2028\u2029\\]/g,we="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",De="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",xe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ke="["+xe+"]",Te="["+we+"]",Me="\\d+",Ce="["+De+"]",Oe="[^\\ud800-\\udfff"+xe+Me+"\\u2700-\\u27bf"+De+Se+"]",Le="\\ud83c[\\udffb-\\udfff]",Ee="[^\\ud800-\\udfff]",Ae="(?:\\ud83c[\\udde6-\\uddff]){2}",Ie="[\\ud800-\\udbff][\\udc00-\\udfff]",Re="["+Se+"]",Pe="(?:"+Ce+"|"+Oe+")",Fe="(?:"+Re+"|"+Oe+")",We="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",je="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ye="(?:"+Te+"|"+Le+")?",Ne="[\\ufe0e\\ufe0f]?",ze=Ne+Ye+"(?:\\u200d(?:"+[Ee,Ae,Ie].join("|")+")"+Ne+Ye+")*",$e="(?:"+["[\\u2700-\\u27bf]",Ae,Ie].join("|")+")"+ze,He="(?:"+[Ee+Te+"?",Te,Ae,Ie,"[\\ud800-\\udfff]"].join("|")+")",Xe=RegExp("['\u2019]","g"),Ve=RegExp(Te,"g"),Be=RegExp(Le+"(?="+Le+")|"+He+ze,"g"),Ue=RegExp([Re+"?"+Ce+"+"+We+"(?="+[ke,Re,"$"].join("|")+")",Fe+"+"+je+"(?="+[ke,Re+Pe,"$"].join("|")+")",Re+"?"+Pe+"+"+We,Re+"+"+je,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Me,$e].join("|"),"g"),qe=RegExp("[\\u200d\\ud800-\\udfff"+we+"\\ufe0e\\ufe0f]"),Ge=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Je=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ke=-1,Qe={};Qe[I]=Qe[R]=Qe[P]=Qe[F]=Qe[W]=Qe[j]=Qe[Y]=Qe[N]=Qe[z]=!0,Qe[m]=Qe[b]=Qe[E]=Qe[g]=Qe[A]=Qe[_]=Qe[v]=Qe[y]=Qe[D]=Qe[S]=Qe[x]=Qe[T]=Qe[M]=Qe[C]=Qe[L]=!1;var Ze={};Ze[m]=Ze[b]=Ze[E]=Ze[A]=Ze[g]=Ze[_]=Ze[I]=Ze[R]=Ze[P]=Ze[F]=Ze[W]=Ze[D]=Ze[S]=Ze[x]=Ze[T]=Ze[M]=Ze[C]=Ze[O]=Ze[j]=Ze[Y]=Ze[N]=Ze[z]=!0,Ze[v]=Ze[y]=Ze[L]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,it="object"==typeof global&&global&&global.Object===Object&&global,rt="object"==typeof self&&self&&self.Object===Object&&self,st=it||rt||Function("return this")(),ot=t&&!t.nodeType&&t,at=ot&&"object"==typeof e&&e&&!e.nodeType&&e,ct=at&&at.exports===ot,lt=ct&&it.process,ut=function(){try{return at&&at.require&&at.require("util").types||lt&&lt.binding&&lt.binding("util")}catch(e){}}(),dt=ut&&ut.isArrayBuffer,ht=ut&&ut.isDate,ft=ut&&ut.isMap,pt=ut&&ut.isRegExp,mt=ut&&ut.isSet,bt=ut&&ut.isTypedArray;function gt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function _t(e,t,n,i){for(var r=-1,s=null==e?0:e.length;++r<s;){var o=e[r];t(i,o,n(o),e)}return i}function vt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function yt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function wt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function Dt(e,t){for(var n=-1,i=null==e?0:e.length,r=0,s=[];++n<i;){var o=e[n];t(o,n,e)&&(s[r++]=o)}return s}function St(e,t){return!(null==e||!e.length)&&It(e,t,0)>-1}function xt(e,t,n){for(var i=-1,r=null==e?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}function kt(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}function Tt(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}function Mt(e,t,n,i){var r=-1,s=null==e?0:e.length;for(i&&s&&(n=e[++r]);++r<s;)n=t(n,e[r],r,e);return n}function Ct(e,t,n,i){var r=null==e?0:e.length;for(i&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function Ot(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var Lt=Wt("length");function Et(e,t,n){var i;return n(e,function(e,n,r){if(t(e,n,r))return i=n,!1}),i}function At(e,t,n,i){for(var r=e.length,s=n+(i?1:-1);i?s--:++s<r;)if(t(e[s],s,e))return s;return-1}function It(e,t,n){return t==t?function(e,t,n){for(var i=n-1,r=e.length;++i<r;)if(e[i]===t)return i;return-1}(e,t,n):At(e,Pt,n)}function Rt(e,t,n,i){for(var r=n-1,s=e.length;++r<s;)if(i(e[r],t))return r;return-1}function Pt(e){return e!=e}function Ft(e,t){var n=null==e?0:e.length;return n?Nt(e,t)/n:h}function Wt(e){return function(t){return null==t?r:t[e]}}function jt(e){return function(t){return null==e?r:e[t]}}function Yt(e,t,n,i,r){return r(e,function(e,r,s){n=i?(i=!1,e):t(n,e,r,s)}),n}function Nt(e,t){for(var n,i=-1,s=e.length;++i<s;){var o=t(e[i]);o!==r&&(n=n===r?o:n+o)}return n}function zt(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function $t(e){return e?e.slice(0,an(e)+1).replace(ie,""):e}function Ht(e){return function(t){return e(t)}}function Xt(e,t){return kt(t,function(t){return e[t]})}function Vt(e,t){return e.has(t)}function Bt(e,t){for(var n=-1,i=e.length;++n<i&&It(t,e[n],0)>-1;);return n}function Ut(e,t){for(var n=e.length;n--&&It(t,e[n],0)>-1;);return n}function qt(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}var Gt=jt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Jt=jt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Kt(e){return"\\"+et[e]}function Qt(e){return qe.test(e)}function Zt(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,i=e.length,r=0,s=[];++n<i;){var o=e[n];o!==t&&o!==a||(e[n]=a,s[r++]=n)}return s}function nn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function sn(e){return Qt(e)?function(e){for(var t=Be.lastIndex=0;Be.test(e);)++t;return t}(e):Lt(e)}function on(e){return Qt(e)?function(e){return e.match(Be)||[]}(e):function(e){return e.split("")}(e)}function an(e){for(var t=e.length;t--&&re.test(e.charAt(t)););return t}var cn=jt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),ln=function e(t){var n,i=(t=null==t?st:ln.defaults(st.Object(),t,ln.pick(st,Je))).Array,re=t.Date,we=t.Error,De=t.Function,Se=t.Math,xe=t.Object,ke=t.RegExp,Te=t.String,Me=t.TypeError,Ce=i.prototype,Oe=xe.prototype,Le=t["__core-js_shared__"],Ee=De.prototype.toString,Ae=Oe.hasOwnProperty,Ie=0,Re=(n=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Pe=Oe.toString,Fe=Ee.call(xe),We=st._,je=ke("^"+Ee.call(Ae).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ye=ct?t.Buffer:r,Ne=t.Symbol,ze=t.Uint8Array,$e=Ye?Ye.allocUnsafe:r,He=en(xe.getPrototypeOf,xe),Be=xe.create,qe=Oe.propertyIsEnumerable,et=Ce.splice,it=Ne?Ne.isConcatSpreadable:r,rt=Ne?Ne.iterator:r,ot=Ne?Ne.toStringTag:r,at=function(){try{var e=cs(xe,"defineProperty");return e({},"",{}),e}catch(t){}}(),lt=t.clearTimeout!==st.clearTimeout&&t.clearTimeout,ut=re&&re.now!==st.Date.now&&re.now,Lt=t.setTimeout!==st.setTimeout&&t.setTimeout,jt=Se.ceil,un=Se.floor,dn=xe.getOwnPropertySymbols,hn=Ye?Ye.isBuffer:r,fn=t.isFinite,pn=Ce.join,mn=en(xe.keys,xe),bn=Se.max,gn=Se.min,_n=re.now,vn=t.parseInt,yn=Se.random,wn=Ce.reverse,Dn=cs(t,"DataView"),Sn=cs(t,"Map"),xn=cs(t,"Promise"),kn=cs(t,"Set"),Tn=cs(t,"WeakMap"),Mn=cs(xe,"create"),Cn=Tn&&new Tn,On={},Ln=Ws(Dn),En=Ws(Sn),An=Ws(xn),In=Ws(kn),Rn=Ws(Tn),Pn=Ne?Ne.prototype:r,Fn=Pn?Pn.valueOf:r,Wn=Pn?Pn.toString:r;function jn(e){if(ta(e)&&!Xo(e)&&!(e instanceof $n)){if(e instanceof zn)return e;if(Ae.call(e,"__wrapped__"))return js(e)}return new zn(e)}var Yn=function(){function e(){}return function(t){if(!ea(t))return{};if(Be)return Be(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function Nn(){}function zn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function $n(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Xn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Bn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Vn;++t<n;)this.add(e[t])}function Un(e){var t=this.__data__=new Xn(e);this.size=t.size}function qn(e,t){var n=Xo(e),i=!n&&Ho(e),r=!n&&!i&&qo(e),s=!n&&!i&&!r&&la(e),o=n||i||r||s,a=o?zt(e.length,Te):[],c=a.length;for(var l in e)!t&&!Ae.call(e,l)||o&&("length"==l||r&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ms(l,c))||a.push(l);return a}function Gn(e){var t=e.length;return t?e[Vi(0,t-1)]:r}function Jn(e,t){return As(Tr(e),si(t,0,e.length))}function Kn(e){return As(Tr(e))}function Qn(e,t,n){(n!==r&&!No(e[t],n)||n===r&&!(t in e))&&ii(e,t,n)}function Zn(e,t,n){var i=e[t];Ae.call(e,t)&&No(i,n)&&(n!==r||t in e)||ii(e,t,n)}function ei(e,t){for(var n=e.length;n--;)if(No(e[n][0],t))return n;return-1}function ti(e,t,n,i){return ui(e,function(e,r,s){t(i,e,n(e),s)}),i}function ni(e,t){return e&&Mr(t,Ea(t),e)}function ii(e,t,n){"__proto__"==t&&at?at(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ri(e,t){for(var n=-1,s=t.length,o=i(s),a=null==e;++n<s;)o[n]=a?r:Ta(e,t[n]);return o}function si(e,t,n){return e==e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function oi(e,t,n,i,s,o){var a,c=1&t,l=2&t,u=4&t;if(n&&(a=s?n(e,i,s,o):n(e)),a!==r)return a;if(!ea(e))return e;var d=Xo(e);if(d){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ae.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return Tr(e,a)}else{var h=ds(e),f=h==y||h==w;if(qo(e))return yr(e,c);if(h==x||h==m||f&&!s){if(a=l||f?{}:fs(e),!c)return l?function(e,t){return Mr(e,us(e),t)}(e,function(e,t){return e&&Mr(t,Aa(t),e)}(a,e)):function(e,t){return Mr(e,ls(e),t)}(e,ni(a,e))}else{if(!Ze[h])return s?e:{};a=function(e,t,n){var i=e.constructor;switch(t){case E:return wr(e);case g:case _:return new i(+e);case A:return function(e,t){var n=t?wr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case I:case R:case P:case F:case W:case j:case Y:case N:case z:return Dr(e,n);case D:return new i;case S:case C:return new i(e);case T:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case M:return new i;case O:return Fn?xe(Fn.call(e)):{}}}(e,h,c)}}o||(o=new Un);var p=o.get(e);if(p)return p;o.set(e,a),oa(e)?e.forEach(function(i){a.add(oi(i,t,n,i,e,o))}):na(e)&&e.forEach(function(i,r){a.set(r,oi(i,t,n,r,e,o))});var b=d?r:(u?l?ts:es:l?Aa:Ea)(e);return vt(b||e,function(i,r){b&&(i=e[r=i]),Zn(a,r,oi(i,t,n,r,e,o))}),a}function ai(e,t,n){var i=n.length;if(null==e)return!i;for(e=xe(e);i--;){var s=n[i],o=e[s];if(o===r&&!(s in e)||!(0,t[s])(o))return!1}return!0}function ci(e,t,n){if("function"!=typeof e)throw new Me(s);return Cs(function(){e.apply(r,n)},t)}function li(e,t,n,i){var r=-1,s=St,o=!0,a=e.length,c=[],l=t.length;if(!a)return c;n&&(t=kt(t,Ht(n))),i?(s=xt,o=!1):t.length>=200&&(s=Vt,o=!1,t=new Bn(t));e:for(;++r<a;){var u=e[r],d=null==n?u:n(u);if(u=i||0!==u?u:0,o&&d==d){for(var h=l;h--;)if(t[h]===d)continue e;c.push(u)}else s(t,d,i)||c.push(u)}return c}jn.templateSettings={escape:G,evaluate:J,interpolate:K,variable:"",imports:{_:jn}},(jn.prototype=Nn.prototype).constructor=jn,(zn.prototype=Yn(Nn.prototype)).constructor=zn,($n.prototype=Yn(Nn.prototype)).constructor=$n,Hn.prototype.clear=function(){this.__data__=Mn?Mn(null):{},this.size=0},Hn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hn.prototype.get=function(e){var t=this.__data__;if(Mn){var n=t[e];return n===o?r:n}return Ae.call(t,e)?t[e]:r},Hn.prototype.has=function(e){var t=this.__data__;return Mn?t[e]!==r:Ae.call(t,e)},Hn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Mn&&t===r?o:t,this},Xn.prototype.clear=function(){this.__data__=[],this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=ei(t,e);return!(n<0||(n==t.length-1?t.pop():et.call(t,n,1),--this.size,0))},Xn.prototype.get=function(e){var t=this.__data__,n=ei(t,e);return n<0?r:t[n][1]},Xn.prototype.has=function(e){return ei(this.__data__,e)>-1},Xn.prototype.set=function(e,t){var n=this.__data__,i=ei(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Vn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(Sn||Xn),string:new Hn}},Vn.prototype.delete=function(e){var t=os(this,e).delete(e);return this.size-=t?1:0,t},Vn.prototype.get=function(e){return os(this,e).get(e)},Vn.prototype.has=function(e){return os(this,e).has(e)},Vn.prototype.set=function(e,t){var n=os(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Bn.prototype.add=Bn.prototype.push=function(e){return this.__data__.set(e,o),this},Bn.prototype.has=function(e){return this.__data__.has(e)},Un.prototype.clear=function(){this.__data__=new Xn,this.size=0},Un.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Un.prototype.get=function(e){return this.__data__.get(e)},Un.prototype.has=function(e){return this.__data__.has(e)},Un.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Xn){var i=n.__data__;if(!Sn||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Vn(i)}return n.set(e,t),this.size=n.size,this};var ui=Lr(_i),di=Lr(vi,!0);function hi(e,t){var n=!0;return ui(e,function(e,i,r){return n=!!t(e,i,r)}),n}function fi(e,t,n){for(var i=-1,s=e.length;++i<s;){var o=e[i],a=t(o);if(null!=a&&(c===r?a==a&&!ca(a):n(a,c)))var c=a,l=o}return l}function pi(e,t){var n=[];return ui(e,function(e,i,r){t(e,i,r)&&n.push(e)}),n}function mi(e,t,n,i,r){var s=-1,o=e.length;for(n||(n=ps),r||(r=[]);++s<o;){var a=e[s];t>0&&n(a)?t>1?mi(a,t-1,n,i,r):Tt(r,a):i||(r[r.length]=a)}return r}var bi=Er(),gi=Er(!0);function _i(e,t){return e&&bi(e,t,Ea)}function vi(e,t){return e&&gi(e,t,Ea)}function yi(e,t){return Dt(t,function(t){return Ko(e[t])})}function wi(e,t){for(var n=0,i=(t=br(t,e)).length;null!=e&&n<i;)e=e[Fs(t[n++])];return n&&n==i?e:r}function Di(e,t,n){var i=t(e);return Xo(e)?i:Tt(i,n(e))}function Si(e){return null==e?e===r?"[object Undefined]":"[object Null]":ot&&ot in xe(e)?function(e){var t=Ae.call(e,ot),n=e[ot];try{e[ot]=r;var i=!0}catch(o){}var s=Pe.call(e);return i&&(t?e[ot]=n:delete e[ot]),s}(e):function(e){return Pe.call(e)}(e)}function xi(e,t){return e>t}function ki(e,t){return null!=e&&Ae.call(e,t)}function Ti(e,t){return null!=e&&t in xe(e)}function Mi(e,t,n){for(var s=n?xt:St,o=e[0].length,a=e.length,c=a,l=i(a),u=1/0,d=[];c--;){var h=e[c];c&&t&&(h=kt(h,Ht(t))),u=gn(h.length,u),l[c]=!n&&(t||o>=120&&h.length>=120)?new Bn(c&&h):r}h=e[0];var f=-1,p=l[0];e:for(;++f<o&&d.length<u;){var m=h[f],b=t?t(m):m;if(m=n||0!==m?m:0,!(p?Vt(p,b):s(d,b,n))){for(c=a;--c;){var g=l[c];if(!(g?Vt(g,b):s(e[c],b,n)))continue e}p&&p.push(b),d.push(m)}}return d}function Ci(e,t,n){var i=null==(e=xs(e,t=br(t,e)))?e:e[Fs(Gs(t))];return null==i?r:gt(i,e,n)}function Oi(e){return ta(e)&&Si(e)==m}function Li(e,t,n,i,s){return e===t||(null==e||null==t||!ta(e)&&!ta(t)?e!=e&&t!=t:function(e,t,n,i,s,o){var a=Xo(e),c=Xo(t),l=a?b:ds(e),u=c?b:ds(t),d=(l=l==m?x:l)==x,h=(u=u==m?x:u)==x,f=l==u;if(f&&qo(e)){if(!qo(t))return!1;a=!0,d=!1}if(f&&!d)return o||(o=new Un),a||la(e)?Qr(e,t,n,i,s,o):function(e,t,n,i,r,s,o){switch(n){case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!s(new ze(e),new ze(t)));case g:case _:case S:return No(+e,+t);case v:return e.name==t.name&&e.message==t.message;case T:case C:return e==t+"";case D:var a=Zt;case M:if(a||(a=nn),e.size!=t.size&&!(1&i))return!1;var c=o.get(e);if(c)return c==t;i|=2,o.set(e,t);var l=Qr(a(e),a(t),i,r,s,o);return o.delete(e),l;case O:if(Fn)return Fn.call(e)==Fn.call(t)}return!1}(e,t,l,n,i,s,o);if(!(1&n)){var p=d&&Ae.call(e,"__wrapped__"),y=h&&Ae.call(t,"__wrapped__");if(p||y){var w=p?e.value():e,k=y?t.value():t;return o||(o=new Un),s(w,k,n,i,o)}}return!!f&&(o||(o=new Un),function(e,t,n,i,s,o){var a=1&n,c=es(e),l=c.length;if(l!=es(t).length&&!a)return!1;for(var u=l;u--;){var d=c[u];if(!(a?d in t:Ae.call(t,d)))return!1}var h=o.get(e),f=o.get(t);if(h&&f)return h==t&&f==e;var p=!0;o.set(e,t),o.set(t,e);for(var m=a;++u<l;){var b=e[d=c[u]],g=t[d];if(i)var _=a?i(g,b,d,t,e,o):i(b,g,d,e,t,o);if(!(_===r?b===g||s(b,g,n,i,o):_)){p=!1;break}m||(m="constructor"==d)}if(p&&!m){var v=e.constructor,y=t.constructor;v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,i,s,o))}(e,t,n,i,Li,s))}function Ei(e,t,n,i){var s=n.length,o=s,a=!i;if(null==e)return!o;for(e=xe(e);s--;){var c=n[s];if(a&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++s<o;){var l=(c=n[s])[0],u=e[l],d=c[1];if(a&&c[2]){if(u===r&&!(l in e))return!1}else{var h=new Un;if(i)var f=i(u,d,l,e,t,h);if(!(f===r?Li(d,u,3,i,h):f))return!1}}return!0}function Ai(e){return!(!ea(e)||(t=e,Re&&Re in t))&&(Ko(e)?je:me).test(Ws(e));var t}function Ii(e){return"function"==typeof e?e:null==e?ic:"object"==typeof e?Xo(e)?ji(e[0],e[1]):Wi(e):hc(e)}function Ri(e){if(!ys(e))return mn(e);var t=[];for(var n in xe(e))Ae.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Pi(e,t){return e<t}function Fi(e,t){var n=-1,r=Bo(e)?i(e.length):[];return ui(e,function(e,i,s){r[++n]=t(e,i,s)}),r}function Wi(e){var t=as(e);return 1==t.length&&t[0][2]?Ds(t[0][0],t[0][1]):function(n){return n===e||Ei(n,e,t)}}function ji(e,t){return gs(e)&&ws(t)?Ds(Fs(e),t):function(n){var i=Ta(n,e);return i===r&&i===t?Ma(n,e):Li(t,i,3)}}function Yi(e,t,n,i,s){e!==t&&bi(t,function(o,a){if(s||(s=new Un),ea(o))!function(e,t,n,i,s,o,a){var c=Ts(e,n),l=Ts(t,n),u=a.get(l);if(u)Qn(e,n,u);else{var d=o?o(c,l,n+"",e,t,a):r,h=d===r;if(h){var f=Xo(l),p=!f&&qo(l),m=!f&&!p&&la(l);d=l,f||p||m?Xo(c)?d=c:Uo(c)?d=Tr(c):p?(h=!1,d=yr(l,!0)):m?(h=!1,d=Dr(l,!0)):d=[]:ra(l)||Ho(l)?(d=c,Ho(c)?d=ga(c):ea(c)&&!Ko(c)||(d=fs(l))):h=!1}h&&(a.set(l,d),s(d,l,i,o,a),a.delete(l)),Qn(e,n,d)}}(e,t,a,n,Yi,i,s);else{var c=i?i(Ts(e,a),o,a+"",e,t,s):r;c===r&&(c=o),Qn(e,a,c)}},Aa)}function Ni(e,t){var n=e.length;if(n)return ms(t+=t<0?n:0,n)?e[t]:r}function zi(e,t,n){t=t.length?kt(t,function(e){return Xo(e)?function(t){return wi(t,1===e.length?e[0]:e)}:e}):[ic];var i=-1;return t=kt(t,Ht(ss())),function(e,t){var i=e.length;for(e.sort(function(e,t){return function(e,t,n){for(var i=-1,r=e.criteria,s=t.criteria,o=r.length,a=n.length;++i<o;){var c=Sr(r[i],s[i]);if(c)return i>=a?c:c*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)});i--;)e[i]=e[i].value;return e}(Fi(e,function(e,n,r){return{criteria:kt(t,function(t){return t(e)}),index:++i,value:e}}))}function $i(e,t,n){for(var i=-1,r=t.length,s={};++i<r;){var o=t[i],a=wi(e,o);n(a,o)&&Ji(s,br(o,e),a)}return s}function Hi(e,t,n,i){var r=i?Rt:It,s=-1,o=t.length,a=e;for(e===t&&(t=Tr(t)),n&&(a=kt(e,Ht(n)));++s<o;)for(var c=0,l=t[s],u=n?n(l):l;(c=r(a,u,c,i))>-1;)a!==e&&et.call(a,c,1),et.call(e,c,1);return e}function Xi(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r=t[n];if(n==i||r!==s){var s=r;ms(r)?et.call(e,r,1):cr(e,r)}}return e}function Vi(e,t){return e+un(yn()*(t-e+1))}function Bi(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=un(t/2))&&(e+=e)}while(t);return n}function Ui(e,t){return Os(Ss(e,t,ic),e+"")}function qi(e){return Gn(Na(e))}function Gi(e,t){var n=Na(e);return As(n,si(t,0,n.length))}function Ji(e,t,n,i){if(!ea(e))return e;for(var s=-1,o=(t=br(t,e)).length,a=o-1,c=e;null!=c&&++s<o;){var l=Fs(t[s]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(s!=a){var d=c[l];(u=i?i(d,l,c):r)===r&&(u=ea(d)?d:ms(t[s+1])?[]:{})}Zn(c,l,u),c=c[l]}return e}var Ki=Cn?function(e,t){return Cn.set(e,t),e}:ic,Qi=at?function(e,t){return at(e,"toString",{configurable:!0,enumerable:!1,value:ec(t),writable:!0})}:ic;function Zi(e){return As(Na(e))}function er(e,t,n){var r=-1,s=e.length;t<0&&(t=-t>s?0:s+t),(n=n>s?s:n)<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var o=i(s);++r<s;)o[r]=e[r+t];return o}function tr(e,t){var n;return ui(e,function(e,i,r){return!(n=t(e,i,r))}),!!n}function nr(e,t,n){var i=0,r=null==e?i:e.length;if("number"==typeof t&&t==t&&r<=2147483647){for(;i<r;){var s=i+r>>>1,o=e[s];null!==o&&!ca(o)&&(n?o<=t:o<t)?i=s+1:r=s}return r}return ir(e,t,ic,n)}function ir(e,t,n,i){var s=0,o=null==e?0:e.length;if(0===o)return 0;for(var a=(t=n(t))!=t,c=null===t,l=ca(t),u=t===r;s<o;){var d=un((s+o)/2),h=n(e[d]),f=h!==r,p=null===h,m=h==h,b=ca(h);if(a)var g=i||m;else g=u?m&&(i||f):c?m&&f&&(i||!p):l?m&&f&&!p&&(i||!b):!p&&!b&&(i?h<=t:h<t);g?s=d+1:o=d}return gn(o,4294967294)}function rr(e,t){for(var n=-1,i=e.length,r=0,s=[];++n<i;){var o=e[n],a=t?t(o):o;if(!n||!No(a,c)){var c=a;s[r++]=0===o?0:o}}return s}function sr(e){return"number"==typeof e?e:ca(e)?h:+e}function or(e){if("string"==typeof e)return e;if(Xo(e))return kt(e,or)+"";if(ca(e))return Wn?Wn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ar(e,t,n){var i=-1,r=St,s=e.length,o=!0,a=[],c=a;if(n)o=!1,r=xt;else if(s>=200){var l=t?null:Br(e);if(l)return nn(l);o=!1,r=Vt,c=new Bn}else c=t?[]:a;e:for(;++i<s;){var u=e[i],d=t?t(u):u;if(u=n||0!==u?u:0,o&&d==d){for(var h=c.length;h--;)if(c[h]===d)continue e;t&&c.push(d),a.push(u)}else r(c,d,n)||(c!==a&&c.push(d),a.push(u))}return a}function cr(e,t){return null==(e=xs(e,t=br(t,e)))||delete e[Fs(Gs(t))]}function lr(e,t,n,i){return Ji(e,t,n(wi(e,t)),i)}function ur(e,t,n,i){for(var r=e.length,s=i?r:-1;(i?s--:++s<r)&&t(e[s],s,e););return n?er(e,i?0:s,i?s+1:r):er(e,i?s+1:0,i?r:s)}function dr(e,t){var n=e;return n instanceof $n&&(n=n.value()),Mt(t,function(e,t){return t.func.apply(t.thisArg,Tt([e],t.args))},n)}function hr(e,t,n){var r=e.length;if(r<2)return r?ar(e[0]):[];for(var s=-1,o=i(r);++s<r;)for(var a=e[s],c=-1;++c<r;)c!=s&&(o[s]=li(o[s]||a,e[c],t,n));return ar(mi(o,1),t,n)}function fr(e,t,n){for(var i=-1,s=e.length,o=t.length,a={};++i<s;)n(a,e[i],i<o?t[i]:r);return a}function pr(e){return Uo(e)?e:[]}function mr(e){return"function"==typeof e?e:ic}function br(e,t){return Xo(e)?e:gs(e,t)?[e]:Ps(_a(e))}var gr=Ui;function _r(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:er(e,t,n)}var vr=lt||function(e){return st.clearTimeout(e)};function yr(e,t){if(t)return e.slice();var n=e.length,i=$e?$e(n):new e.constructor(n);return e.copy(i),i}function wr(e){var t=new e.constructor(e.byteLength);return new ze(t).set(new ze(e)),t}function Dr(e,t){var n=t?wr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Sr(e,t){if(e!==t){var n=e!==r,i=null===e,s=e==e,o=ca(e),a=t!==r,c=null===t,l=t==t,u=ca(t);if(!c&&!u&&!o&&e>t||o&&a&&l&&!c&&!u||i&&a&&l||!n&&l||!s)return 1;if(!i&&!o&&!u&&e<t||u&&n&&s&&!i&&!o||c&&n&&s||!a&&s||!l)return-1}return 0}function xr(e,t,n,r){for(var s=-1,o=e.length,a=n.length,c=-1,l=t.length,u=bn(o-a,0),d=i(l+u),h=!r;++c<l;)d[c]=t[c];for(;++s<a;)(h||s<o)&&(d[n[s]]=e[s]);for(;u--;)d[c++]=e[s++];return d}function kr(e,t,n,r){for(var s=-1,o=e.length,a=-1,c=n.length,l=-1,u=t.length,d=bn(o-c,0),h=i(d+u),f=!r;++s<d;)h[s]=e[s];for(var p=s;++l<u;)h[p+l]=t[l];for(;++a<c;)(f||s<o)&&(h[p+n[a]]=e[s++]);return h}function Tr(e,t){var n=-1,r=e.length;for(t||(t=i(r));++n<r;)t[n]=e[n];return t}function Mr(e,t,n,i){var s=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var c=t[o],l=i?i(n[c],e[c],c,n,e):r;l===r&&(l=e[c]),s?ii(n,c,l):Zn(n,c,l)}return n}function Cr(e,t){return function(n,i){var r=Xo(n)?_t:ti,s=t?t():{};return r(n,e,ss(i,2),s)}}function Or(e){return Ui(function(t,n){var i=-1,s=n.length,o=s>1?n[s-1]:r,a=s>2?n[2]:r;for(o=e.length>3&&"function"==typeof o?(s--,o):r,a&&bs(n[0],n[1],a)&&(o=s<3?r:o,s=1),t=xe(t);++i<s;){var c=n[i];c&&e(t,c,i,o)}return t})}function Lr(e,t){return function(n,i){if(null==n)return n;if(!Bo(n))return e(n,i);for(var r=n.length,s=t?r:-1,o=xe(n);(t?s--:++s<r)&&!1!==i(o[s],s,o););return n}}function Er(e){return function(t,n,i){for(var r=-1,s=xe(t),o=i(t),a=o.length;a--;){var c=o[e?a:++r];if(!1===n(s[c],c,s))break}return t}}function Ar(e){return function(t){var n=Qt(t=_a(t))?on(t):r,i=n?n[0]:t.charAt(0),s=n?_r(n,1).join(""):t.slice(1);return i[e]()+s}}function Ir(e){return function(t){return Mt(Ka(Ha(t).replace(Xe,"")),e,"")}}function Rr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Yn(e.prototype),i=e.apply(n,t);return ea(i)?i:n}}function Pr(e){return function(t,n,i){var s=xe(t);if(!Bo(t)){var o=ss(n,3);t=Ea(t),n=function(e){return o(s[e],e,s)}}var a=e(t,n,i);return a>-1?s[o?t[a]:a]:r}}function Fr(e){return Zr(function(t){var n=t.length,i=n,o=zn.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new Me(s);if(o&&!c&&"wrapper"==is(a))var c=new zn([],!0)}for(i=c?i:n;++i<n;){var l=is(a=t[i]),u="wrapper"==l?ns(a):r;c=u&&_s(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[is(u[0])].apply(c,u[3]):1==a.length&&_s(a)?c[l]():c.thru(a)}return function(){var e=arguments,i=e[0];if(c&&1==e.length&&Xo(i))return c.plant(i).value();for(var r=0,s=n?t[r].apply(this,e):i;++r<n;)s=t[r].call(this,s);return s}})}function Wr(e,t,n,s,o,a,c,u,d,h){var f=t&l,p=1&t,m=2&t,b=24&t,g=512&t,_=m?r:Rr(e);return function r(){for(var l=arguments.length,v=i(l),y=l;y--;)v[y]=arguments[y];if(b)var w=rs(r),D=qt(v,w);if(s&&(v=xr(v,s,o,b)),a&&(v=kr(v,a,c,b)),l-=D,b&&l<h){var S=tn(v,w);return Xr(e,t,Wr,r.placeholder,n,v,S,u,d,h-l)}var x=p?n:this,k=m?x[e]:e;return l=v.length,u?v=ks(v,u):g&&l>1&&v.reverse(),f&&d<l&&(v.length=d),this&&this!==st&&this instanceof r&&(k=_||Rr(k)),k.apply(x,v)}}function jr(e,t){return function(n,i){return function(e,t,n,i){return _i(e,function(e,r,s){t(i,n(e),r,s)}),i}(n,e,t(i),{})}}function Yr(e,t){return function(n,i){var s;if(n===r&&i===r)return t;if(n!==r&&(s=n),i!==r){if(s===r)return i;"string"==typeof n||"string"==typeof i?(n=or(n),i=or(i)):(n=sr(n),i=sr(i)),s=e(n,i)}return s}}function Nr(e){return Zr(function(t){return t=kt(t,Ht(ss())),Ui(function(n){var i=this;return e(t,function(e){return gt(e,i,n)})})})}function zr(e,t){var n=(t=t===r?" ":or(t)).length;if(n<2)return n?Bi(t,e):t;var i=Bi(t,jt(e/sn(t)));return Qt(t)?_r(on(i),0,e).join(""):i.slice(0,e)}function $r(e){return function(t,n,s){return s&&"number"!=typeof s&&bs(t,n,s)&&(n=s=r),t=fa(t),n===r?(n=t,t=0):n=fa(n),function(e,t,n,r){for(var s=-1,o=bn(jt((t-e)/(n||1)),0),a=i(o);o--;)a[r?o:++s]=e,e+=n;return a}(t,n,s=s===r?t<n?1:-1:fa(s),e)}}function Hr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ba(t),n=ba(n)),e(t,n)}}function Xr(e,t,n,i,s,o,a,l,u,d){var h=8&t;t|=h?c:64,4&(t&=~(h?64:c))||(t&=-4);var f=[e,t,s,h?o:r,h?a:r,h?r:o,h?r:a,l,u,d],p=n.apply(r,f);return _s(e)&&Ms(p,f),p.placeholder=i,Ls(p,e,t)}function Vr(e){var t=Se[e];return function(e,n){if(e=ba(e),(n=null==n?0:gn(pa(n),292))&&fn(e)){var i=(_a(e)+"e").split("e");return+((i=(_a(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var Br=kn&&1/nn(new kn([,-0]))[1]==u?function(e){return new kn(e)}:cc;function Ur(e){return function(t){var n=ds(t);return n==D?Zt(t):n==M?rn(t):function(e,t){return kt(t,function(t){return[t,e[t]]})}(t,e(t))}}function qr(e,t,n,o,u,d,h,f){var p=2&t;if(!p&&"function"!=typeof e)throw new Me(s);var m=o?o.length:0;if(m||(t&=-97,o=u=r),h=h===r?h:bn(pa(h),0),f=f===r?f:pa(f),m-=u?u.length:0,64&t){var b=o,g=u;o=u=r}var _=p?r:ns(e),v=[e,t,n,o,u,b,g,d,h,f];if(_&&function(e,t){var n=e[1],i=t[1],r=n|i;if(!(r<131||i==l&&8==n||i==l&&256==n&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==n))return e;1&i&&(e[2]=t[2],r|=1&n?0:4);var s=t[3];if(s){var o=e[3];e[3]=o?xr(o,s,t[4]):s,e[4]=o?tn(e[3],a):t[4]}(s=t[5])&&(e[5]=(o=e[5])?kr(o,s,t[6]):s,e[6]=o?tn(e[5],a):t[6]),(s=t[7])&&(e[7]=s),i&l&&(e[8]=null==e[8]?t[8]:gn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=r}(v,_),e=v[0],t=v[1],n=v[2],o=v[3],u=v[4],!(f=v[9]=v[9]===r?p?0:e.length:bn(v[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)y=8==t||16==t?function(e,t,n){var s=Rr(e);return function o(){for(var a=arguments.length,c=i(a),l=a,u=rs(o);l--;)c[l]=arguments[l];var d=a<3&&c[0]!==u&&c[a-1]!==u?[]:tn(c,u);return(a-=d.length)<n?Xr(e,t,Wr,o.placeholder,r,c,d,r,r,n-a):gt(this&&this!==st&&this instanceof o?s:e,this,c)}}(e,t,f):t!=c&&33!=t||u.length?Wr.apply(r,v):function(e,t,n,r){var s=1&t,o=Rr(e);return function t(){for(var a=-1,c=arguments.length,l=-1,u=r.length,d=i(u+c),h=this&&this!==st&&this instanceof t?o:e;++l<u;)d[l]=r[l];for(;c--;)d[l++]=arguments[++a];return gt(h,s?n:this,d)}}(e,t,n,o);else var y=function(e,t,n){var i=1&t,r=Rr(e);return function t(){return(this&&this!==st&&this instanceof t?r:e).apply(i?n:this,arguments)}}(e,t,n);return Ls((_?Ki:Ms)(y,v),e,t)}function Gr(e,t,n,i){return e===r||No(e,Oe[n])&&!Ae.call(i,n)?t:e}function Jr(e,t,n,i,s,o){return ea(e)&&ea(t)&&(o.set(t,e),Yi(e,t,r,Jr,o),o.delete(t)),e}function Kr(e){return ra(e)?r:e}function Qr(e,t,n,i,s,o){var a=1&n,c=e.length,l=t.length;if(c!=l&&!(a&&l>c))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var h=-1,f=!0,p=2&n?new Bn:r;for(o.set(e,t),o.set(t,e);++h<c;){var m=e[h],b=t[h];if(i)var g=a?i(b,m,h,t,e,o):i(m,b,h,e,t,o);if(g!==r){if(g)continue;f=!1;break}if(p){if(!Ot(t,function(e,t){if(!Vt(p,t)&&(m===e||s(m,e,n,i,o)))return p.push(t)})){f=!1;break}}else if(m!==b&&!s(m,b,n,i,o)){f=!1;break}}return o.delete(e),o.delete(t),f}function Zr(e){return Os(Ss(e,r,Xs),e+"")}function es(e){return Di(e,Ea,ls)}function ts(e){return Di(e,Aa,us)}var ns=Cn?function(e){return Cn.get(e)}:cc;function is(e){for(var t=e.name+"",n=On[t],i=Ae.call(On,t)?n.length:0;i--;){var r=n[i],s=r.func;if(null==s||s==e)return r.name}return t}function rs(e){return(Ae.call(jn,"placeholder")?jn:e).placeholder}function ss(){var e=jn.iteratee||rc;return e=e===rc?Ii:e,arguments.length?e(arguments[0],arguments[1]):e}function os(e,t){var n,i,r=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function as(e){for(var t=Ea(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,ws(r)]}return t}function cs(e,t){var n=function(e,t){return null==e?r:e[t]}(e,t);return Ai(n)?n:r}var ls=dn?function(e){return null==e?[]:(e=xe(e),Dt(dn(e),function(t){return qe.call(e,t)}))}:mc,us=dn?function(e){for(var t=[];e;)Tt(t,ls(e)),e=He(e);return t}:mc,ds=Si;function hs(e,t,n){for(var i=-1,r=(t=br(t,e)).length,s=!1;++i<r;){var o=Fs(t[i]);if(!(s=null!=e&&n(e,o)))break;e=e[o]}return s||++i!=r?s:!!(r=null==e?0:e.length)&&Zo(r)&&ms(o,r)&&(Xo(e)||Ho(e))}function fs(e){return"function"!=typeof e.constructor||ys(e)?{}:Yn(He(e))}function ps(e){return Xo(e)||Ho(e)||!!(it&&e&&e[it])}function ms(e,t){var n=typeof e;return!!(t=null==t?d:t)&&("number"==n||"symbol"!=n&&ge.test(e))&&e>-1&&e%1==0&&e<t}function bs(e,t,n){if(!ea(n))return!1;var i=typeof t;return!!("number"==i?Bo(n)&&ms(t,n.length):"string"==i&&t in n)&&No(n[t],e)}function gs(e,t){if(Xo(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ca(e))||Z.test(e)||!Q.test(e)||null!=t&&e in xe(t)}function _s(e){var t=is(e),n=jn[t];if("function"!=typeof n||!(t in $n.prototype))return!1;if(e===n)return!0;var i=ns(n);return!!i&&e===i[0]}(Dn&&ds(new Dn(new ArrayBuffer(1)))!=A||Sn&&ds(new Sn)!=D||xn&&ds(xn.resolve())!=k||kn&&ds(new kn)!=M||Tn&&ds(new Tn)!=L)&&(ds=function(e){var t=Si(e),n=t==x?e.constructor:r,i=n?Ws(n):"";if(i)switch(i){case Ln:return A;case En:return D;case An:return k;case In:return M;case Rn:return L}return t});var vs=Le?Ko:bc;function ys(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Oe)}function ws(e){return e==e&&!ea(e)}function Ds(e,t){return function(n){return null!=n&&n[e]===t&&(t!==r||e in xe(n))}}function Ss(e,t,n){return t=bn(t===r?e.length-1:t,0),function(){for(var r=arguments,s=-1,o=bn(r.length-t,0),a=i(o);++s<o;)a[s]=r[t+s];s=-1;for(var c=i(t+1);++s<t;)c[s]=r[s];return c[t]=n(a),gt(e,this,c)}}function xs(e,t){return t.length<2?e:wi(e,er(t,0,-1))}function ks(e,t){for(var n=e.length,i=gn(t.length,n),s=Tr(e);i--;){var o=t[i];e[i]=ms(o,n)?s[o]:r}return e}function Ts(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ms=Es(Ki),Cs=Lt||function(e,t){return st.setTimeout(e,t)},Os=Es(Qi);function Ls(e,t,n){var i=t+"";return Os(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return vt(p,function(n){var i="_."+n[0];t&n[1]&&!St(e,i)&&e.push(i)}),e.sort()}(function(e){var t=e.match(oe);return t?t[1].split(ae):[]}(i),n)))}function Es(e){var t=0,n=0;return function(){var i=_n(),s=16-(i-n);if(n=i,s>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function As(e,t){var n=-1,i=e.length,s=i-1;for(t=t===r?i:t;++n<t;){var o=Vi(n,s),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}var Is,Rs,Ps=(Is=Ro(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,function(e,n,i,r){t.push(i?r.replace(ue,"$1"):n||e)}),t},function(e){return 500===Rs.size&&Rs.clear(),e}),Rs=Is.cache,Is);function Fs(e){if("string"==typeof e||ca(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ws(e){if(null!=e){try{return Ee.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function js(e){if(e instanceof $n)return e.clone();var t=new zn(e.__wrapped__,e.__chain__);return t.__actions__=Tr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ys=Ui(function(e,t){return Uo(e)?li(e,mi(t,1,Uo,!0)):[]}),Ns=Ui(function(e,t){var n=Gs(t);return Uo(n)&&(n=r),Uo(e)?li(e,mi(t,1,Uo,!0),ss(n,2)):[]}),zs=Ui(function(e,t){var n=Gs(t);return Uo(n)&&(n=r),Uo(e)?li(e,mi(t,1,Uo,!0),r,n):[]});function $s(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:pa(n);return r<0&&(r=bn(i+r,0)),At(e,ss(t,3),r)}function Hs(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var s=i-1;return n!==r&&(s=pa(n),s=n<0?bn(i+s,0):gn(s,i-1)),At(e,ss(t,3),s,!0)}function Xs(e){return null!=e&&e.length?mi(e,1):[]}function Vs(e){return e&&e.length?e[0]:r}var Bs=Ui(function(e){var t=kt(e,pr);return t.length&&t[0]===e[0]?Mi(t):[]}),Us=Ui(function(e){var t=Gs(e),n=kt(e,pr);return t===Gs(n)?t=r:n.pop(),n.length&&n[0]===e[0]?Mi(n,ss(t,2)):[]}),qs=Ui(function(e){var t=Gs(e),n=kt(e,pr);return(t="function"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?Mi(n,r,t):[]});function Gs(e){var t=null==e?0:e.length;return t?e[t-1]:r}var Js=Ui(Ks);function Ks(e,t){return e&&e.length&&t&&t.length?Hi(e,t):e}var Qs=Zr(function(e,t){var n=null==e?0:e.length,i=ri(e,t);return Xi(e,kt(t,function(e){return ms(e,n)?+e:e}).sort(Sr)),i});function Zs(e){return null==e?e:wn.call(e)}var eo=Ui(function(e){return ar(mi(e,1,Uo,!0))}),to=Ui(function(e){var t=Gs(e);return Uo(t)&&(t=r),ar(mi(e,1,Uo,!0),ss(t,2))}),no=Ui(function(e){var t=Gs(e);return t="function"==typeof t?t:r,ar(mi(e,1,Uo,!0),r,t)});function io(e){if(!e||!e.length)return[];var t=0;return e=Dt(e,function(e){if(Uo(e))return t=bn(e.length,t),!0}),zt(t,function(t){return kt(e,Wt(t))})}function ro(e,t){if(!e||!e.length)return[];var n=io(e);return null==t?n:kt(n,function(e){return gt(t,r,e)})}var so=Ui(function(e,t){return Uo(e)?li(e,t):[]}),oo=Ui(function(e){return hr(Dt(e,Uo))}),ao=Ui(function(e){var t=Gs(e);return Uo(t)&&(t=r),hr(Dt(e,Uo),ss(t,2))}),co=Ui(function(e){var t=Gs(e);return t="function"==typeof t?t:r,hr(Dt(e,Uo),r,t)}),lo=Ui(io),uo=Ui(function(e){var t=e.length,n=t>1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,ro(e,n)});function ho(e){var t=jn(e);return t.__chain__=!0,t}function fo(e,t){return t(e)}var po=Zr(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,s=function(t){return ri(t,e)};return!(t>1||this.__actions__.length)&&i instanceof $n&&ms(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:fo,args:[s],thisArg:r}),new zn(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(r),e})):this.thru(s)}),mo=Cr(function(e,t,n){Ae.call(e,n)?++e[n]:ii(e,n,1)}),bo=Pr($s),go=Pr(Hs);function _o(e,t){return(Xo(e)?vt:ui)(e,ss(t,3))}function vo(e,t){return(Xo(e)?yt:di)(e,ss(t,3))}var yo=Cr(function(e,t,n){Ae.call(e,n)?e[n].push(t):ii(e,n,[t])}),wo=Ui(function(e,t,n){var r=-1,s="function"==typeof t,o=Bo(e)?i(e.length):[];return ui(e,function(e){o[++r]=s?gt(t,e,n):Ci(e,t,n)}),o}),Do=Cr(function(e,t,n){ii(e,n,t)});function So(e,t){return(Xo(e)?kt:Fi)(e,ss(t,3))}var xo=Cr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),ko=Ui(function(e,t){if(null==e)return[];var n=t.length;return n>1&&bs(e,t[0],t[1])?t=[]:n>2&&bs(t[0],t[1],t[2])&&(t=[t[0]]),zi(e,mi(t,1),[])}),To=ut||function(){return st.Date.now()};function Mo(e,t,n){return t=n?r:t,qr(e,l,r,r,r,r,t=e&&null==t?e.length:t)}function Co(e,t){var n;if("function"!=typeof t)throw new Me(s);return e=pa(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Oo=Ui(function(e,t,n){var i=1;if(n.length){var r=tn(n,rs(Oo));i|=c}return qr(e,i,t,n,r)}),Lo=Ui(function(e,t,n){var i=3;if(n.length){var r=tn(n,rs(Lo));i|=c}return qr(t,i,e,n,r)});function Eo(e,t,n){var i,o,a,c,l,u,d=0,h=!1,f=!1,p=!0;if("function"!=typeof e)throw new Me(s);function m(t){var n=i,s=o;return i=o=r,d=t,c=e.apply(s,n)}function b(e){return d=e,l=Cs(_,t),h?m(e):c}function g(e){var n=e-u;return u===r||n>=t||n<0||f&&e-d>=a}function _(){var e=To();if(g(e))return v(e);l=Cs(_,function(e){var n=t-(e-u);return f?gn(n,a-(e-d)):n}(e))}function v(e){return l=r,p&&i?m(e):(i=o=r,c)}function y(){var e=To(),n=g(e);if(i=arguments,o=this,u=e,n){if(l===r)return b(u);if(f)return vr(l),l=Cs(_,t),m(u)}return l===r&&(l=Cs(_,t)),c}return t=ba(t)||0,ea(n)&&(h=!!n.leading,a=(f="maxWait"in n)?bn(ba(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),y.cancel=function(){l!==r&&vr(l),d=0,i=u=o=l=r},y.flush=function(){return l===r?c:v(To())},y}var Ao=Ui(function(e,t){return ci(e,1,t)}),Io=Ui(function(e,t,n){return ci(e,ba(t)||0,n)});function Ro(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Me(s);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],s=n.cache;if(s.has(r))return s.get(r);var o=e.apply(this,i);return n.cache=s.set(r,o)||s,o};return n.cache=new(Ro.Cache||Vn),n}function Po(e){if("function"!=typeof e)throw new Me(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ro.Cache=Vn;var Fo=gr(function(e,t){var n=(t=1==t.length&&Xo(t[0])?kt(t[0],Ht(ss())):kt(mi(t,1),Ht(ss()))).length;return Ui(function(i){for(var r=-1,s=gn(i.length,n);++r<s;)i[r]=t[r].call(this,i[r]);return gt(e,this,i)})}),Wo=Ui(function(e,t){var n=tn(t,rs(Wo));return qr(e,c,r,t,n)}),jo=Ui(function(e,t){var n=tn(t,rs(jo));return qr(e,64,r,t,n)}),Yo=Zr(function(e,t){return qr(e,256,r,r,r,t)});function No(e,t){return e===t||e!=e&&t!=t}var zo=Hr(xi),$o=Hr(function(e,t){return e>=t}),Ho=Oi(function(){return arguments}())?Oi:function(e){return ta(e)&&Ae.call(e,"callee")&&!qe.call(e,"callee")},Xo=i.isArray,Vo=dt?Ht(dt):function(e){return ta(e)&&Si(e)==E};function Bo(e){return null!=e&&Zo(e.length)&&!Ko(e)}function Uo(e){return ta(e)&&Bo(e)}var qo=hn||bc,Go=ht?Ht(ht):function(e){return ta(e)&&Si(e)==_};function Jo(e){if(!ta(e))return!1;var t=Si(e);return t==v||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ra(e)}function Ko(e){if(!ea(e))return!1;var t=Si(e);return t==y||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qo(e){return"number"==typeof e&&e==pa(e)}function Zo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function ea(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ta(e){return null!=e&&"object"==typeof e}var na=ft?Ht(ft):function(e){return ta(e)&&ds(e)==D};function ia(e){return"number"==typeof e||ta(e)&&Si(e)==S}function ra(e){if(!ta(e)||Si(e)!=x)return!1;var t=He(e);if(null===t)return!0;var n=Ae.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ee.call(n)==Fe}var sa=pt?Ht(pt):function(e){return ta(e)&&Si(e)==T},oa=mt?Ht(mt):function(e){return ta(e)&&ds(e)==M};function aa(e){return"string"==typeof e||!Xo(e)&&ta(e)&&Si(e)==C}function ca(e){return"symbol"==typeof e||ta(e)&&Si(e)==O}var la=bt?Ht(bt):function(e){return ta(e)&&Zo(e.length)&&!!Qe[Si(e)]},ua=Hr(Pi),da=Hr(function(e,t){return e<=t});function ha(e){if(!e)return[];if(Bo(e))return aa(e)?on(e):Tr(e);if(rt&&e[rt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[rt]());var t=ds(e);return(t==D?Zt:t==M?nn:Na)(e)}function fa(e){return e?(e=ba(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function pa(e){var t=fa(e),n=t%1;return t==t?n?t-n:t:0}function ma(e){return e?si(pa(e),0,f):0}function ba(e){if("number"==typeof e)return e;if(ca(e))return h;if(ea(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ea(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=$t(e);var n=pe.test(e);return n||be.test(e)?nt(e.slice(2),n?2:8):fe.test(e)?h:+e}function ga(e){return Mr(e,Aa(e))}function _a(e){return null==e?"":or(e)}var va=Or(function(e,t){if(ys(t)||Bo(t))Mr(t,Ea(t),e);else for(var n in t)Ae.call(t,n)&&Zn(e,n,t[n])}),ya=Or(function(e,t){Mr(t,Aa(t),e)}),wa=Or(function(e,t,n,i){Mr(t,Aa(t),e,i)}),Da=Or(function(e,t,n,i){Mr(t,Ea(t),e,i)}),Sa=Zr(ri),xa=Ui(function(e,t){e=xe(e);var n=-1,i=t.length,s=i>2?t[2]:r;for(s&&bs(t[0],t[1],s)&&(i=1);++n<i;)for(var o=t[n],a=Aa(o),c=-1,l=a.length;++c<l;){var u=a[c],d=e[u];(d===r||No(d,Oe[u])&&!Ae.call(e,u))&&(e[u]=o[u])}return e}),ka=Ui(function(e){return e.push(r,Jr),gt(Ra,r,e)});function Ta(e,t,n){var i=null==e?r:wi(e,t);return i===r?n:i}function Ma(e,t){return null!=e&&hs(e,t,Ti)}var Ca=jr(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Pe.call(t)),e[t]=n},ec(ic)),Oa=jr(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Pe.call(t)),Ae.call(e,t)?e[t].push(n):e[t]=[n]},ss),La=Ui(Ci);function Ea(e){return Bo(e)?qn(e):Ri(e)}function Aa(e){return Bo(e)?qn(e,!0):function(e){if(!ea(e))return function(e){var t=[];if(null!=e)for(var n in xe(e))t.push(n);return t}(e);var t=ys(e),n=[];for(var i in e)("constructor"!=i||!t&&Ae.call(e,i))&&n.push(i);return n}(e)}var Ia=Or(function(e,t,n){Yi(e,t,n)}),Ra=Or(function(e,t,n,i){Yi(e,t,n,i)}),Pa=Zr(function(e,t){var n={};if(null==e)return n;var i=!1;t=kt(t,function(t){return t=br(t,e),i||(i=t.length>1),t}),Mr(e,ts(e),n),i&&(n=oi(n,7,Kr));for(var r=t.length;r--;)cr(n,t[r]);return n}),Fa=Zr(function(e,t){return null==e?{}:function(e,t){return $i(e,t,function(t,n){return Ma(e,n)})}(e,t)});function Wa(e,t){if(null==e)return{};var n=kt(ts(e),function(e){return[e]});return t=ss(t),$i(e,n,function(e,n){return t(e,n[0])})}var ja=Ur(Ea),Ya=Ur(Aa);function Na(e){return null==e?[]:Xt(e,Ea(e))}var za=Ir(function(e,t,n){return t=t.toLowerCase(),e+(n?$a(t):t)});function $a(e){return Ja(_a(e).toLowerCase())}function Ha(e){return(e=_a(e))&&e.replace(_e,Gt).replace(Ve,"")}var Xa=Ir(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Va=Ir(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Ba=Ar("toLowerCase"),Ua=Ir(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),qa=Ir(function(e,t,n){return e+(n?" ":"")+Ja(t)}),Ga=Ir(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ja=Ar("toUpperCase");function Ka(e,t,n){return e=_a(e),(t=n?r:t)===r?function(e){return Ge.test(e)}(e)?function(e){return e.match(Ue)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var Qa=Ui(function(e,t){try{return gt(e,r,t)}catch(n){return Jo(n)?n:new we(n)}}),Za=Zr(function(e,t){return vt(t,function(t){t=Fs(t),ii(e,t,Oo(e[t],e))}),e});function ec(e){return function(){return e}}var tc=Fr(),nc=Fr(!0);function ic(e){return e}function rc(e){return Ii("function"==typeof e?e:oi(e,1))}var sc=Ui(function(e,t){return function(n){return Ci(n,e,t)}}),oc=Ui(function(e,t){return function(n){return Ci(e,n,t)}});function ac(e,t,n){var i=Ea(t),r=yi(t,i);null!=n||ea(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=yi(t,Ea(t)));var s=!(ea(n)&&"chain"in n&&!n.chain),o=Ko(e);return vt(r,function(n){var i=t[n];e[n]=i,o&&(e.prototype[n]=function(){var t=this.__chain__;if(s||t){var n=e(this.__wrapped__),r=n.__actions__=Tr(this.__actions__);return r.push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,Tt([this.value()],arguments))})}),e}function cc(){}var lc=Nr(kt),uc=Nr(wt),dc=Nr(Ot);function hc(e){return gs(e)?Wt(Fs(e)):function(e){return function(t){return wi(t,e)}}(e)}var fc=$r(),pc=$r(!0);function mc(){return[]}function bc(){return!1}var gc,_c=Yr(function(e,t){return e+t},0),vc=Vr("ceil"),yc=Yr(function(e,t){return e/t},1),wc=Vr("floor"),Dc=Yr(function(e,t){return e*t},1),Sc=Vr("round"),xc=Yr(function(e,t){return e-t},0);return jn.after=function(e,t){if("function"!=typeof t)throw new Me(s);return e=pa(e),function(){if(--e<1)return t.apply(this,arguments)}},jn.ary=Mo,jn.assign=va,jn.assignIn=ya,jn.assignInWith=wa,jn.assignWith=Da,jn.at=Sa,jn.before=Co,jn.bind=Oo,jn.bindAll=Za,jn.bindKey=Lo,jn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Xo(e)?e:[e]},jn.chain=ho,jn.chunk=function(e,t,n){t=(n?bs(e,t,n):t===r)?1:bn(pa(t),0);var s=null==e?0:e.length;if(!s||t<1)return[];for(var o=0,a=0,c=i(jt(s/t));o<s;)c[a++]=er(e,o,o+=t);return c},jn.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,r=[];++t<n;){var s=e[t];s&&(r[i++]=s)}return r},jn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=i(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Tt(Xo(n)?Tr(n):[n],mi(t,1))},jn.cond=function(e){var t=null==e?0:e.length,n=ss();return e=t?kt(e,function(e){if("function"!=typeof e[1])throw new Me(s);return[n(e[0]),e[1]]}):[],Ui(function(n){for(var i=-1;++i<t;){var r=e[i];if(gt(r[0],this,n))return gt(r[1],this,n)}})},jn.conforms=function(e){return function(e){var t=Ea(e);return function(n){return ai(n,e,t)}}(oi(e,1))},jn.constant=ec,jn.countBy=mo,jn.create=function(e,t){var n=Yn(e);return null==t?n:ni(n,t)},jn.curry=function e(t,n,i){var s=qr(t,8,r,r,r,r,r,n=i?r:n);return s.placeholder=e.placeholder,s},jn.curryRight=function e(t,n,i){var s=qr(t,16,r,r,r,r,r,n=i?r:n);return s.placeholder=e.placeholder,s},jn.debounce=Eo,jn.defaults=xa,jn.defaultsDeep=ka,jn.defer=Ao,jn.delay=Io,jn.difference=Ys,jn.differenceBy=Ns,jn.differenceWith=zs,jn.drop=function(e,t,n){var i=null==e?0:e.length;return i?er(e,(t=n||t===r?1:pa(t))<0?0:t,i):[]},jn.dropRight=function(e,t,n){var i=null==e?0:e.length;return i?er(e,0,(t=i-(t=n||t===r?1:pa(t)))<0?0:t):[]},jn.dropRightWhile=function(e,t){return e&&e.length?ur(e,ss(t,3),!0,!0):[]},jn.dropWhile=function(e,t){return e&&e.length?ur(e,ss(t,3),!0):[]},jn.fill=function(e,t,n,i){var s=null==e?0:e.length;return s?(n&&"number"!=typeof n&&bs(e,t,n)&&(n=0,i=s),function(e,t,n,i){var s=e.length;for((n=pa(n))<0&&(n=-n>s?0:s+n),(i=i===r||i>s?s:pa(i))<0&&(i+=s),i=n>i?0:ma(i);n<i;)e[n++]=t;return e}(e,t,n,i)):[]},jn.filter=function(e,t){return(Xo(e)?Dt:pi)(e,ss(t,3))},jn.flatMap=function(e,t){return mi(So(e,t),1)},jn.flatMapDeep=function(e,t){return mi(So(e,t),u)},jn.flatMapDepth=function(e,t,n){return n=n===r?1:pa(n),mi(So(e,t),n)},jn.flatten=Xs,jn.flattenDeep=function(e){return null!=e&&e.length?mi(e,u):[]},jn.flattenDepth=function(e,t){return null!=e&&e.length?mi(e,t=t===r?1:pa(t)):[]},jn.flip=function(e){return qr(e,512)},jn.flow=tc,jn.flowRight=nc,jn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var r=e[t];i[r[0]]=r[1]}return i},jn.functions=function(e){return null==e?[]:yi(e,Ea(e))},jn.functionsIn=function(e){return null==e?[]:yi(e,Aa(e))},jn.groupBy=yo,jn.initial=function(e){return null!=e&&e.length?er(e,0,-1):[]},jn.intersection=Bs,jn.intersectionBy=Us,jn.intersectionWith=qs,jn.invert=Ca,jn.invertBy=Oa,jn.invokeMap=wo,jn.iteratee=rc,jn.keyBy=Do,jn.keys=Ea,jn.keysIn=Aa,jn.map=So,jn.mapKeys=function(e,t){var n={};return t=ss(t,3),_i(e,function(e,i,r){ii(n,t(e,i,r),e)}),n},jn.mapValues=function(e,t){var n={};return t=ss(t,3),_i(e,function(e,i,r){ii(n,i,t(e,i,r))}),n},jn.matches=function(e){return Wi(oi(e,1))},jn.matchesProperty=function(e,t){return ji(e,oi(t,1))},jn.memoize=Ro,jn.merge=Ia,jn.mergeWith=Ra,jn.method=sc,jn.methodOf=oc,jn.mixin=ac,jn.negate=Po,jn.nthArg=function(e){return e=pa(e),Ui(function(t){return Ni(t,e)})},jn.omit=Pa,jn.omitBy=function(e,t){return Wa(e,Po(ss(t)))},jn.once=function(e){return Co(2,e)},jn.orderBy=function(e,t,n,i){return null==e?[]:(Xo(t)||(t=null==t?[]:[t]),Xo(n=i?r:n)||(n=null==n?[]:[n]),zi(e,t,n))},jn.over=lc,jn.overArgs=Fo,jn.overEvery=uc,jn.overSome=dc,jn.partial=Wo,jn.partialRight=jo,jn.partition=xo,jn.pick=Fa,jn.pickBy=Wa,jn.property=hc,jn.propertyOf=function(e){return function(t){return null==e?r:wi(e,t)}},jn.pull=Js,jn.pullAll=Ks,jn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Hi(e,t,ss(n,2)):e},jn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Hi(e,t,r,n):e},jn.pullAt=Qs,jn.range=fc,jn.rangeRight=pc,jn.rearg=Yo,jn.reject=function(e,t){return(Xo(e)?Dt:pi)(e,Po(ss(t,3)))},jn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,r=[],s=e.length;for(t=ss(t,3);++i<s;){var o=e[i];t(o,i,e)&&(n.push(o),r.push(i))}return Xi(e,r),n},jn.rest=function(e,t){if("function"!=typeof e)throw new Me(s);return Ui(e,t=t===r?t:pa(t))},jn.reverse=Zs,jn.sampleSize=function(e,t,n){return t=(n?bs(e,t,n):t===r)?1:pa(t),(Xo(e)?Jn:Gi)(e,t)},jn.set=function(e,t,n){return null==e?e:Ji(e,t,n)},jn.setWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:Ji(e,t,n,i)},jn.shuffle=function(e){return(Xo(e)?Kn:Zi)(e)},jn.slice=function(e,t,n){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&bs(e,t,n)?(t=0,n=i):(t=null==t?0:pa(t),n=n===r?i:pa(n)),er(e,t,n)):[]},jn.sortBy=ko,jn.sortedUniq=function(e){return e&&e.length?rr(e):[]},jn.sortedUniqBy=function(e,t){return e&&e.length?rr(e,ss(t,2)):[]},jn.split=function(e,t,n){return n&&"number"!=typeof n&&bs(e,t,n)&&(t=n=r),(n=n===r?f:n>>>0)?(e=_a(e))&&("string"==typeof t||null!=t&&!sa(t))&&!(t=or(t))&&Qt(e)?_r(on(e),0,n):e.split(t,n):[]},jn.spread=function(e,t){if("function"!=typeof e)throw new Me(s);return t=null==t?0:bn(pa(t),0),Ui(function(n){var i=n[t],r=_r(n,0,t);return i&&Tt(r,i),gt(e,this,r)})},jn.tail=function(e){var t=null==e?0:e.length;return t?er(e,1,t):[]},jn.take=function(e,t,n){return e&&e.length?er(e,0,(t=n||t===r?1:pa(t))<0?0:t):[]},jn.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?er(e,(t=i-(t=n||t===r?1:pa(t)))<0?0:t,i):[]},jn.takeRightWhile=function(e,t){return e&&e.length?ur(e,ss(t,3),!1,!0):[]},jn.takeWhile=function(e,t){return e&&e.length?ur(e,ss(t,3)):[]},jn.tap=function(e,t){return t(e),e},jn.throttle=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new Me(s);return ea(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Eo(e,t,{leading:i,maxWait:t,trailing:r})},jn.thru=fo,jn.toArray=ha,jn.toPairs=ja,jn.toPairsIn=Ya,jn.toPath=function(e){return Xo(e)?kt(e,Fs):ca(e)?[e]:Tr(Ps(_a(e)))},jn.toPlainObject=ga,jn.transform=function(e,t,n){var i=Xo(e),r=i||qo(e)||la(e);if(t=ss(t,4),null==n){var s=e&&e.constructor;n=r?i?new s:[]:ea(e)&&Ko(s)?Yn(He(e)):{}}return(r?vt:_i)(e,function(e,i,r){return t(n,e,i,r)}),n},jn.unary=function(e){return Mo(e,1)},jn.union=eo,jn.unionBy=to,jn.unionWith=no,jn.uniq=function(e){return e&&e.length?ar(e):[]},jn.uniqBy=function(e,t){return e&&e.length?ar(e,ss(t,2)):[]},jn.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?ar(e,r,t):[]},jn.unset=function(e,t){return null==e||cr(e,t)},jn.unzip=io,jn.unzipWith=ro,jn.update=function(e,t,n){return null==e?e:lr(e,t,mr(n))},jn.updateWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:lr(e,t,mr(n),i)},jn.values=Na,jn.valuesIn=function(e){return null==e?[]:Xt(e,Aa(e))},jn.without=so,jn.words=Ka,jn.wrap=function(e,t){return Wo(mr(t),e)},jn.xor=oo,jn.xorBy=ao,jn.xorWith=co,jn.zip=lo,jn.zipObject=function(e,t){return fr(e||[],t||[],Zn)},jn.zipObjectDeep=function(e,t){return fr(e||[],t||[],Ji)},jn.zipWith=uo,jn.entries=ja,jn.entriesIn=Ya,jn.extend=ya,jn.extendWith=wa,ac(jn,jn),jn.add=_c,jn.attempt=Qa,jn.camelCase=za,jn.capitalize=$a,jn.ceil=vc,jn.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=ba(n))==n?n:0),t!==r&&(t=(t=ba(t))==t?t:0),si(ba(e),t,n)},jn.clone=function(e){return oi(e,4)},jn.cloneDeep=function(e){return oi(e,5)},jn.cloneDeepWith=function(e,t){return oi(e,5,t="function"==typeof t?t:r)},jn.cloneWith=function(e,t){return oi(e,4,t="function"==typeof t?t:r)},jn.conformsTo=function(e,t){return null==t||ai(e,t,Ea(t))},jn.deburr=Ha,jn.defaultTo=function(e,t){return null==e||e!=e?t:e},jn.divide=yc,jn.endsWith=function(e,t,n){e=_a(e),t=or(t);var i=e.length,s=n=n===r?i:si(pa(n),0,i);return(n-=t.length)>=0&&e.slice(n,s)==t},jn.eq=No,jn.escape=function(e){return(e=_a(e))&&q.test(e)?e.replace(B,Jt):e},jn.escapeRegExp=function(e){return(e=_a(e))&&ne.test(e)?e.replace(te,"\\$&"):e},jn.every=function(e,t,n){var i=Xo(e)?wt:hi;return n&&bs(e,t,n)&&(t=r),i(e,ss(t,3))},jn.find=bo,jn.findIndex=$s,jn.findKey=function(e,t){return Et(e,ss(t,3),_i)},jn.findLast=go,jn.findLastIndex=Hs,jn.findLastKey=function(e,t){return Et(e,ss(t,3),vi)},jn.floor=wc,jn.forEach=_o,jn.forEachRight=vo,jn.forIn=function(e,t){return null==e?e:bi(e,ss(t,3),Aa)},jn.forInRight=function(e,t){return null==e?e:gi(e,ss(t,3),Aa)},jn.forOwn=function(e,t){return e&&_i(e,ss(t,3))},jn.forOwnRight=function(e,t){return e&&vi(e,ss(t,3))},jn.get=Ta,jn.gt=zo,jn.gte=$o,jn.has=function(e,t){return null!=e&&hs(e,t,ki)},jn.hasIn=Ma,jn.head=Vs,jn.identity=ic,jn.includes=function(e,t,n,i){e=Bo(e)?e:Na(e),n=n&&!i?pa(n):0;var r=e.length;return n<0&&(n=bn(r+n,0)),aa(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&It(e,t,n)>-1},jn.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:pa(n);return r<0&&(r=bn(i+r,0)),It(e,t,r)},jn.inRange=function(e,t,n){return t=fa(t),n===r?(n=t,t=0):n=fa(n),function(e,t,n){return e>=gn(t,n)&&e<bn(t,n)}(e=ba(e),t,n)},jn.invoke=La,jn.isArguments=Ho,jn.isArray=Xo,jn.isArrayBuffer=Vo,jn.isArrayLike=Bo,jn.isArrayLikeObject=Uo,jn.isBoolean=function(e){return!0===e||!1===e||ta(e)&&Si(e)==g},jn.isBuffer=qo,jn.isDate=Go,jn.isElement=function(e){return ta(e)&&1===e.nodeType&&!ra(e)},jn.isEmpty=function(e){if(null==e)return!0;if(Bo(e)&&(Xo(e)||"string"==typeof e||"function"==typeof e.splice||qo(e)||la(e)||Ho(e)))return!e.length;var t=ds(e);if(t==D||t==M)return!e.size;if(ys(e))return!Ri(e).length;for(var n in e)if(Ae.call(e,n))return!1;return!0},jn.isEqual=function(e,t){return Li(e,t)},jn.isEqualWith=function(e,t,n){var i=(n="function"==typeof n?n:r)?n(e,t):r;return i===r?Li(e,t,r,n):!!i},jn.isError=Jo,jn.isFinite=function(e){return"number"==typeof e&&fn(e)},jn.isFunction=Ko,jn.isInteger=Qo,jn.isLength=Zo,jn.isMap=na,jn.isMatch=function(e,t){return e===t||Ei(e,t,as(t))},jn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:r,Ei(e,t,as(t),n)},jn.isNaN=function(e){return ia(e)&&e!=+e},jn.isNative=function(e){if(vs(e))throw new we("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ai(e)},jn.isNil=function(e){return null==e},jn.isNull=function(e){return null===e},jn.isNumber=ia,jn.isObject=ea,jn.isObjectLike=ta,jn.isPlainObject=ra,jn.isRegExp=sa,jn.isSafeInteger=function(e){return Qo(e)&&e>=-9007199254740991&&e<=d},jn.isSet=oa,jn.isString=aa,jn.isSymbol=ca,jn.isTypedArray=la,jn.isUndefined=function(e){return e===r},jn.isWeakMap=function(e){return ta(e)&&ds(e)==L},jn.isWeakSet=function(e){return ta(e)&&"[object WeakSet]"==Si(e)},jn.join=function(e,t){return null==e?"":pn.call(e,t)},jn.kebabCase=Xa,jn.last=Gs,jn.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var s=i;return n!==r&&(s=(s=pa(n))<0?bn(i+s,0):gn(s,i-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,s):At(e,Pt,s,!0)},jn.lowerCase=Va,jn.lowerFirst=Ba,jn.lt=ua,jn.lte=da,jn.max=function(e){return e&&e.length?fi(e,ic,xi):r},jn.maxBy=function(e,t){return e&&e.length?fi(e,ss(t,2),xi):r},jn.mean=function(e){return Ft(e,ic)},jn.meanBy=function(e,t){return Ft(e,ss(t,2))},jn.min=function(e){return e&&e.length?fi(e,ic,Pi):r},jn.minBy=function(e,t){return e&&e.length?fi(e,ss(t,2),Pi):r},jn.stubArray=mc,jn.stubFalse=bc,jn.stubObject=function(){return{}},jn.stubString=function(){return""},jn.stubTrue=function(){return!0},jn.multiply=Dc,jn.nth=function(e,t){return e&&e.length?Ni(e,pa(t)):r},jn.noConflict=function(){return st._===this&&(st._=We),this},jn.noop=cc,jn.now=To,jn.pad=function(e,t,n){e=_a(e);var i=(t=pa(t))?sn(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return zr(un(r),n)+e+zr(jt(r),n)},jn.padEnd=function(e,t,n){e=_a(e);var i=(t=pa(t))?sn(e):0;return t&&i<t?e+zr(t-i,n):e},jn.padStart=function(e,t,n){e=_a(e);var i=(t=pa(t))?sn(e):0;return t&&i<t?zr(t-i,n)+e:e},jn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),vn(_a(e).replace(ie,""),t||0)},jn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&bs(e,t,n)&&(t=n=r),n===r&&("boolean"==typeof t?(n=t,t=r):"boolean"==typeof e&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=fa(e),t===r?(t=e,e=0):t=fa(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var s=yn();return gn(e+s*(t-e+tt("1e-"+((s+"").length-1))),t)}return Vi(e,t)},jn.reduce=function(e,t,n){var i=Xo(e)?Mt:Yt,r=arguments.length<3;return i(e,ss(t,4),n,r,ui)},jn.reduceRight=function(e,t,n){var i=Xo(e)?Ct:Yt,r=arguments.length<3;return i(e,ss(t,4),n,r,di)},jn.repeat=function(e,t,n){return t=(n?bs(e,t,n):t===r)?1:pa(t),Bi(_a(e),t)},jn.replace=function(){var e=arguments,t=_a(e[0]);return e.length<3?t:t.replace(e[1],e[2])},jn.result=function(e,t,n){var i=-1,s=(t=br(t,e)).length;for(s||(s=1,e=r);++i<s;){var o=null==e?r:e[Fs(t[i])];o===r&&(i=s,o=n),e=Ko(o)?o.call(e):o}return e},jn.round=Sc,jn.runInContext=e,jn.sample=function(e){return(Xo(e)?Gn:qi)(e)},jn.size=function(e){if(null==e)return 0;if(Bo(e))return aa(e)?sn(e):e.length;var t=ds(e);return t==D||t==M?e.size:Ri(e).length},jn.snakeCase=Ua,jn.some=function(e,t,n){var i=Xo(e)?Ot:tr;return n&&bs(e,t,n)&&(t=r),i(e,ss(t,3))},jn.sortedIndex=function(e,t){return nr(e,t)},jn.sortedIndexBy=function(e,t,n){return ir(e,t,ss(n,2))},jn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=nr(e,t);if(i<n&&No(e[i],t))return i}return-1},jn.sortedLastIndex=function(e,t){return nr(e,t,!0)},jn.sortedLastIndexBy=function(e,t,n){return ir(e,t,ss(n,2),!0)},jn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=nr(e,t,!0)-1;if(No(e[n],t))return n}return-1},jn.startCase=qa,jn.startsWith=function(e,t,n){return e=_a(e),n=null==n?0:si(pa(n),0,e.length),t=or(t),e.slice(n,n+t.length)==t},jn.subtract=xc,jn.sum=function(e){return e&&e.length?Nt(e,ic):0},jn.sumBy=function(e,t){return e&&e.length?Nt(e,ss(t,2)):0},jn.template=function(e,t,n){var i=jn.templateSettings;n&&bs(e,t,n)&&(t=r),e=_a(e),t=wa({},t,i,Gr);var s,o,a=wa({},t.imports,i.imports,Gr),c=Ea(a),l=Xt(a,c),u=0,d=t.interpolate||ve,h="__p += '",f=ke((t.escape||ve).source+"|"+d.source+"|"+(d===K?de:ve).source+"|"+(t.evaluate||ve).source+"|$","g"),p="//# sourceURL="+(Ae.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ke+"]")+"\n";e.replace(f,function(t,n,i,r,a,c){return i||(i=r),h+=e.slice(u,c).replace(ye,Kt),n&&(s=!0,h+="' +\n__e("+n+") +\n'"),a&&(o=!0,h+="';\n"+a+";\n__p += '"),i&&(h+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),u=c+t.length,t}),h+="';\n";var m=Ae.call(t,"variable")&&t.variable;if(m){if(le.test(m))throw new we("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace($,""):h).replace(H,"$1").replace(X,"$1;"),h="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var b=Qa(function(){return De(c,p+"return "+h).apply(r,l)});if(b.source=h,Jo(b))throw b;return b},jn.times=function(e,t){if((e=pa(e))<1||e>d)return[];var n=f,i=gn(e,f);t=ss(t),e-=f;for(var r=zt(i,t);++n<e;)t(n);return r},jn.toFinite=fa,jn.toInteger=pa,jn.toLength=ma,jn.toLower=function(e){return _a(e).toLowerCase()},jn.toNumber=ba,jn.toSafeInteger=function(e){return e?si(pa(e),-9007199254740991,d):0===e?e:0},jn.toString=_a,jn.toUpper=function(e){return _a(e).toUpperCase()},jn.trim=function(e,t,n){if((e=_a(e))&&(n||t===r))return $t(e);if(!e||!(t=or(t)))return e;var i=on(e),s=on(t);return _r(i,Bt(i,s),Ut(i,s)+1).join("")},jn.trimEnd=function(e,t,n){if((e=_a(e))&&(n||t===r))return e.slice(0,an(e)+1);if(!e||!(t=or(t)))return e;var i=on(e);return _r(i,0,Ut(i,on(t))+1).join("")},jn.trimStart=function(e,t,n){if((e=_a(e))&&(n||t===r))return e.replace(ie,"");if(!e||!(t=or(t)))return e;var i=on(e);return _r(i,Bt(i,on(t))).join("")},jn.truncate=function(e,t){var n=30,i="...";if(ea(t)){var s="separator"in t?t.separator:s;n="length"in t?pa(t.length):n,i="omission"in t?or(t.omission):i}var o=(e=_a(e)).length;if(Qt(e)){var a=on(e);o=a.length}if(n>=o)return e;var c=n-sn(i);if(c<1)return i;var l=a?_r(a,0,c).join(""):e.slice(0,c);if(s===r)return l+i;if(a&&(c+=l.length-c),sa(s)){if(e.slice(c).search(s)){var u,d=l;for(s.global||(s=ke(s.source,_a(he.exec(s))+"g")),s.lastIndex=0;u=s.exec(d);)var h=u.index;l=l.slice(0,h===r?c:h)}}else if(e.indexOf(or(s),c)!=c){var f=l.lastIndexOf(s);f>-1&&(l=l.slice(0,f))}return l+i},jn.unescape=function(e){return(e=_a(e))&&U.test(e)?e.replace(V,cn):e},jn.uniqueId=function(e){var t=++Ie;return _a(e)+t},jn.upperCase=Ga,jn.upperFirst=Ja,jn.each=_o,jn.eachRight=vo,jn.first=Vs,ac(jn,(gc={},_i(jn,function(e,t){Ae.call(jn.prototype,t)||(gc[t]=e)}),gc),{chain:!1}),jn.VERSION="4.17.21",vt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){jn[e].placeholder=jn}),vt(["drop","take"],function(e,t){$n.prototype[e]=function(n){n=n===r?1:bn(pa(n),0);var i=this.__filtered__&&!t?new $n(this):this.clone();return i.__filtered__?i.__takeCount__=gn(n,i.__takeCount__):i.__views__.push({size:gn(n,f),type:e+(i.__dir__<0?"Right":"")}),i},$n.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),vt(["filter","map","takeWhile"],function(e,t){var n=t+1,i=1==n||3==n;$n.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ss(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}}),vt(["head","last"],function(e,t){var n="take"+(t?"Right":"");$n.prototype[e]=function(){return this[n](1).value()[0]}}),vt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");$n.prototype[e]=function(){return this.__filtered__?new $n(this):this[n](1)}}),$n.prototype.compact=function(){return this.filter(ic)},$n.prototype.find=function(e){return this.filter(e).head()},$n.prototype.findLast=function(e){return this.reverse().find(e)},$n.prototype.invokeMap=Ui(function(e,t){return"function"==typeof e?new $n(this):this.map(function(n){return Ci(n,e,t)})}),$n.prototype.reject=function(e){return this.filter(Po(ss(e)))},$n.prototype.slice=function(e,t){e=pa(e);var n=this;return n.__filtered__&&(e>0||t<0)?new $n(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=pa(t))<0?n.dropRight(-t):n.take(t-e)),n)},$n.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},$n.prototype.toArray=function(){return this.take(f)},_i($n.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),s=jn[i?"take"+("last"==t?"Right":""):t],o=i||/^find/.test(t);s&&(jn.prototype[t]=function(){var t=this.__wrapped__,a=i?[1]:arguments,c=t instanceof $n,l=a[0],u=c||Xo(t),d=function(e){var t=s.apply(jn,Tt([e],a));return i&&h?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(c=u=!1);var h=this.__chain__,f=!!this.__actions__.length,p=o&&!h,m=c&&!f;if(!o&&u){t=m?t:new $n(this);var b=e.apply(t,a);return b.__actions__.push({func:fo,args:[d],thisArg:r}),new zn(b,h)}return p&&m?e.apply(this,a):(b=this.thru(d),p?i?b.value()[0]:b.value():b)})}),vt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ce[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);jn.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply(Xo(r)?r:[],e)}return this[n](function(n){return t.apply(Xo(n)?n:[],e)})}}),_i($n.prototype,function(e,t){var n=jn[t];if(n){var i=n.name+"";Ae.call(On,i)||(On[i]=[]),On[i].push({name:t,func:n})}}),On[Wr(r,2).name]=[{name:"wrapper",func:r}],$n.prototype.clone=function(){var e=new $n(this.__wrapped__);return e.__actions__=Tr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Tr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Tr(this.__views__),e},$n.prototype.reverse=function(){if(this.__filtered__){var e=new $n(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},$n.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Xo(e),i=t<0,r=n?e.length:0,s=function(e,t,n){for(var i=-1,r=n.length;++i<r;){var s=n[i],o=s.size;switch(s.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=gn(t,e+o);break;case"takeRight":e=bn(e,t-o)}}return{start:e,end:t}}(0,r,this.__views__),o=s.start,a=s.end,c=a-o,l=i?a:o-1,u=this.__iteratees__,d=u.length,h=0,f=gn(c,this.__takeCount__);if(!n||!i&&r==c&&f==c)return dr(e,this.__actions__);var p=[];e:for(;c--&&h<f;){for(var m=-1,b=e[l+=t];++m<d;){var g=u[m],_=g.type,v=(0,g.iteratee)(b);if(2==_)b=v;else if(!v){if(1==_)continue e;break e}}p[h++]=b}return p},jn.prototype.at=po,jn.prototype.chain=function(){return ho(this)},jn.prototype.commit=function(){return new zn(this.value(),this.__chain__)},jn.prototype.next=function(){this.__values__===r&&(this.__values__=ha(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},jn.prototype.plant=function(e){for(var t,n=this;n instanceof Nn;){var i=js(n);i.__index__=0,i.__values__=r,t?s.__wrapped__=i:t=i;var s=i;n=n.__wrapped__}return s.__wrapped__=e,t},jn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof $n){var t=e;return this.__actions__.length&&(t=new $n(this)),(t=t.reverse()).__actions__.push({func:fo,args:[Zs],thisArg:r}),new zn(t,this.__chain__)}return this.thru(Zs)},jn.prototype.toJSON=jn.prototype.valueOf=jn.prototype.value=function(){return dr(this.__wrapped__,this.__actions__)},jn.prototype.first=jn.prototype.head,rt&&(jn.prototype[rt]=function(){return this}),jn}();st._=ln,(i=(function(){return ln}).call(t,n,t,e))===r||(e.exports=i)}).call(this)}).call(this,n("YuTi")(e))},MAOJ:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("wd/R"),r=n.n(i),s=n("8Y7J"),o=n("G0yt"),a=n("s7LF"),c=n("SVse");function l(e,t){if(1&e){const e=s.Yb();s.Xb(0,"div",0),s.Xb(1,"ngb-timepicker",4),s.lc("ngModelChange",function(t){return s.Ic(e),s.nc().time=t})("ngModelChange",function(){return s.Ic(e),s.nc().onModelChange()}),s.Wb(),s.Wb()}if(2&e){const e=s.nc();s.Db(1),s.uc("seconds",e.hasSeconds)("ngModel",e.time)}}let u=(()=>{class e{constructor(e){this.calendar=e,this.hasSeconds=!0,this.hasTime=!0}ngOnInit(){var e;this.minDate=this.calendar.getToday(),this.format=this.hasTime?this.hasSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm":"YYYY-MM-DD";let t=r()(null===(e=this.control)||void 0===e?void 0:e.value,this.format);t.isValid()&&!t.isBefore(r()())||(t=r()()),this.date={year:t.year(),month:t.month()+1,day:t.date()},this.time={hour:t.hour(),minute:t.minute(),second:t.second()},this.onModelChange()}onModelChange(){if(this.date){const e=Object.assign({},this.date,this.time);e.month--,setTimeout(()=>{this.control.setValue(r()(e).format(this.format))})}else setTimeout(()=>{this.control.setValue("")})}}return e.\u0275fac=function(t){return new(t||e)(s.Rb(o.d))},e.\u0275cmp=s.Lb({type:e,selectors:[["cd-date-time-picker"]],inputs:{control:"control",hasSeconds:"hasSeconds",hasTime:"hasTime"},decls:4,vars:3,consts:[[1,"d-flex","justify-content-center"],[3,"ngModel","minDate","ngModelChange"],["dp",""],["class","d-flex justify-content-center",4,"ngIf"],[3,"seconds","ngModel","ngModelChange"]],template:function(e,t){1&e&&(s.Xb(0,"div",0),s.Xb(1,"ngb-datepicker",1,2),s.lc("ngModelChange",function(e){return t.date=e})("ngModelChange",function(){return t.onModelChange()}),s.Wb(),s.Wb(),s.Pc(3,l,2,2,"div",3)),2&e&&(s.Db(1),s.uc("ngModel",t.date)("minDate",t.minDate),s.Db(2),s.uc("ngIf",t.hasTime))},directives:[o.g,a.q,a.t,c.r,o.B],styles:[""]}),e})()},"MO+k":function(e,t,n){e.exports=function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},n=function(e,n){return function(e){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[t[i]]=i);var r=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in r)if(r.hasOwnProperty(s)){if(!("channels"in r[s]))throw new Error("missing channels property: "+s);if(!("labels"in r[s]))throw new Error("missing channel labels property: "+s);if(r[s].labels.length!==r[s].channels)throw new Error("channel and label counts mismatch: "+s);var o=r[s].channels,a=r[s].labels;delete r[s].channels,delete r[s].labels,Object.defineProperty(r[s],"channels",{value:o}),Object.defineProperty(r[s],"labels",{value:a})}r.rgb.hsl=function(e){var t,n,i=e[0]/255,r=e[1]/255,s=e[2]/255,o=Math.min(i,r,s),a=Math.max(i,r,s),c=a-o;return a===o?t=0:i===a?t=(r-s)/c:r===a?t=2+(s-i)/c:s===a&&(t=4+(i-r)/c),(t=Math.min(60*t,360))<0&&(t+=360),n=(o+a)/2,[t,100*(a===o?0:n<=.5?c/(a+o):c/(2-a-o)),100*n]},r.rgb.hsv=function(e){var t,n,i,r,s,o=e[0]/255,a=e[1]/255,c=e[2]/255,l=Math.max(o,a,c),u=l-Math.min(o,a,c),d=function(e){return(l-e)/6/u+.5};return 0===u?r=s=0:(s=u/l,t=d(o),n=d(a),i=d(c),o===l?r=i-n:a===l?r=1/3+t-i:c===l&&(r=2/3+n-t),r<0?r+=1:r>1&&(r-=1)),[360*r,100*s,100*l]},r.rgb.hwb=function(e){var t=e[0],n=e[1],i=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,i))*100,100*(i=1-1/255*Math.max(t,Math.max(n,i)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,i=e[1]/255,r=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-i,1-r)))/(1-t)||0),100*((1-i-t)/(1-t)||0),100*((1-r-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var i=n[e];if(i)return i;var r,s,o,a=1/0;for(var c in t)if(t.hasOwnProperty(c)){var l=(s=e,o=t[c],Math.pow(s[0]-o[0],2)+Math.pow(s[1]-o[1],2)+Math.pow(s[2]-o[2],2));l<a&&(a=l,r=c)}return r},r.keyword.rgb=function(e){return t[e]},r.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,i=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)),100*(.2126*t+.7152*n+.0722*i),100*(.0193*t+.1192*n+.9505*i)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],i=t[1],s=t[2];return i/=100,s/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(n-i),200*(i-(s=s>.008856?Math.pow(s,1/3):7.787*s+16/116))]},r.hsl.rgb=function(e){var t,n,i,r,s,o=e[0]/360,a=e[1]/100,c=e[2]/100;if(0===a)return[s=255*c,s,s];t=2*c-(n=c<.5?c*(1+a):c+a-c*a),r=[0,0,0];for(var l=0;l<3;l++)(i=o+1/3*-(l-1))<0&&i++,i>1&&i--,r[l]=255*(s=6*i<1?t+6*(n-t)*i:2*i<1?n:3*i<2?t+(n-t)*(2/3-i)*6:t);return r},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,i=e[2]/100,r=n,s=Math.max(i,.01);return n*=(i*=2)<=1?i:2-i,r*=s<=1?s:2-s,[t,100*(0===i?2*r/(s+r):2*n/(i+n)),(i+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,i=e[2]/100,r=Math.floor(t)%6,s=t-Math.floor(t),o=255*i*(1-n),a=255*i*(1-n*s),c=255*i*(1-n*(1-s));switch(i*=255,r){case 0:return[i,c,o];case 1:return[a,i,o];case 2:return[o,i,c];case 3:return[o,a,i];case 4:return[c,o,i];case 5:return[i,o,a]}},r.hsv.hsl=function(e){var t,n,i,r=e[0],s=e[1]/100,o=e[2]/100,a=Math.max(o,.01);return i=(2-s)*o,n=s*a,[r,100*(n=(n/=(t=(2-s)*a)<=1?t:2-t)||0),100*(i/=2)]},r.hwb.rgb=function(e){var t,n,i,r,s,o,a,c=e[0]/360,l=e[1]/100,u=e[2]/100,d=l+u;switch(d>1&&(l/=d,u/=d),i=6*c-(t=Math.floor(6*c)),0!=(1&t)&&(i=1-i),r=l+i*((n=1-u)-l),t){default:case 6:case 0:s=n,o=r,a=l;break;case 1:s=r,o=n,a=l;break;case 2:s=l,o=n,a=r;break;case 3:s=l,o=r,a=n;break;case 4:s=r,o=l,a=n;break;case 5:s=n,o=l,a=r}return[255*s,255*o,255*a]},r.cmyk.rgb=function(e){var t=e[1]/100,n=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,e[0]/100*(1-i)+i)),255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i))]},r.xyz.rgb=function(e){var t,n,i,r=e[0]/100,s=e[1]/100,o=e[2]/100;return n=-.9689*r+1.8758*s+.0415*o,i=.0557*r+-.204*s+1.057*o,t=(t=3.2406*r+-1.5372*s+-.4986*o)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:12.92*i,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(i=Math.min(Math.max(0,i),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],i=e[2];return n/=100,i/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},r.lab.xyz=function(e){var t,n,i;t=e[1]/500+(n=(e[0]+16)/116),i=n-e[2]/200;var r=Math.pow(n,3),s=Math.pow(t,3),o=Math.pow(i,3);return n=r>.008856?r:(n-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,i=o>.008856?o:(i-16/116)/7.787,[t*=95.047,n*=100,i*=108.883]},r.lab.lch=function(e){var t,n=e[0],i=e[1],r=e[2];return(t=360*Math.atan2(r,i)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(i*i+r*r),t]},r.lch.lab=function(e){var t,n=e[1];return t=e[2]/360*2*Math.PI,[e[0],n*Math.cos(t),n*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],i=e[2],s=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(s=Math.round(s/50)))return 30;var o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===s&&(o+=60),o},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],i=e[2];return t===n&&n===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map(function(e){return e+e}).join(""));var i=parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},r.rgb.hcg=function(e){var t,n=e[0]/255,i=e[1]/255,r=e[2]/255,s=Math.max(Math.max(n,i),r),o=Math.min(Math.min(n,i),r),a=s-o;return t=a<=0?0:s===n?(i-r)/a%6:s===i?2+(r-n)/a:4+(n-i)/a+4,t/=6,[360*(t%=1),100*a,100*(a<1?o/(1-a):0)]},r.hsl.hcg=function(e){var t,n=e[1]/100,i=e[2]/100,r=0;return(t=i<.5?2*n*i:2*n*(1-i))<1&&(r=(i-.5*t)/(1-t)),[e[0],100*t,100*r]},r.hsv.hcg=function(e){var t=e[2]/100,n=e[1]/100*t,i=0;return n<1&&(i=(t-n)/(1-n)),[e[0],100*n,100*i]},r.hcg.rgb=function(e){var t=e[1]/100,n=e[2]/100;if(0===t)return[255*n,255*n,255*n];var i,r=[0,0,0],s=e[0]/360%1*6,o=s%1,a=1-o;switch(Math.floor(s)){case 0:r[0]=1,r[1]=o,r[2]=0;break;case 1:r[0]=a,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=o;break;case 3:r[0]=0,r[1]=a,r[2]=1;break;case 4:r[0]=o,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=a}return[255*(t*r[0]+(i=(1-t)*n)),255*(t*r[1]+i),255*(t*r[2]+i)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),i=0;return n>0&&(i=t/n),[e[0],100*i,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],100*i,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=1-e[2]/100,n=t-e[1]/100,i=0;return n<1&&(i=(t-n)/(1-n)),[e[0],100*n,100*i]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}(n={exports:{}}),n.exports}();function i(e,t){return function(n){return t(e(n))}}function r(e,t){for(var r=[t[e].parent,e],s=n[t[e].parent][e],o=t[e].parent;t[o].parent;)r.unshift(t[o].parent),s=i(n[t[o].parent][o],s),o=t[o].parent;return s.conversion=r,s}var s={};Object.keys(n).forEach(function(e){s[e]={},Object.defineProperty(s[e],"channels",{value:n[e].channels}),Object.defineProperty(s[e],"labels",{value:n[e].labels});var t=function(e){for(var t=function(e){var t=function(){for(var e={},t=Object.keys(n),i=t.length,r=0;r<i;r++)e[t[r]]={distance:-1,parent:null};return e}(),i=[e];for(t[e].distance=0;i.length;)for(var r=i.pop(),s=Object.keys(n[r]),o=s.length,a=0;a<o;a++){var c=s[a],l=t[c];-1===l.distance&&(l.distance=t[r].distance+1,l.parent=r,i.unshift(c))}return t}(e),i={},s=Object.keys(t),o=s.length,a=0;a<o;a++){var c=s[a];null!==t[c].parent&&(i[c]=r(c,t))}return i}(e);Object.keys(t).forEach(function(n){var i=t[n];s[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var i=n.length,r=0;r<i;r++)n[r]=Math.round(n[r]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(i),s[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(i)})});var o=s,a={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},c={getRgba:l,getHsla:u,getRgb:function(e){var t=l(e);return t&&t.slice(0,3)},getHsl:function(e){var t=u(e);return t&&t.slice(0,3)},getHwb:d,getAlpha:function(e){var t=l(e);return t||(t=u(e))||(t=d(e))?t[3]:void 0},hexString:function(e,t){return t=void 0!==t&&3===e.length?t:e[3],"#"+b(e[0])+b(e[1])+b(e[2])+(t>=0&&t<1?b(Math.round(255*t)):"")},rgbString:function(e,t){return t<1||e[3]&&e[3]<1?h(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:h,percentString:function(e,t){return t<1||e[3]&&e[3]<1?f(e,t):"rgb("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%)"},percentaString:f,hslString:function(e,t){return t<1||e[3]&&e[3]<1?p(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:p,hwbString:function(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return g[e.slice(0,3)]}};function l(e){if(e){var t=[0,0,0],n=1,i=e.match(/^#([a-fA-F0-9]{3,4})$/i),r="";if(i){r=(i=i[1])[3];for(var s=0;s<t.length;s++)t[s]=parseInt(i[s]+i[s],16);r&&(n=Math.round(parseInt(r+r,16)/255*100)/100)}else if(i=e.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)){for(r=i[2],i=i[1],s=0;s<t.length;s++)t[s]=parseInt(i.slice(2*s,2*s+2),16);r&&(n=Math.round(parseInt(r,16)/255*100)/100)}else if(i=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(s=0;s<t.length;s++)t[s]=parseInt(i[s+1]);n=parseFloat(i[4])}else if(i=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(s=0;s<t.length;s++)t[s]=Math.round(2.55*parseFloat(i[s+1]));n=parseFloat(i[4])}else if(i=e.match(/(\w+)/)){if("transparent"==i[1])return[0,0,0,0];if(!(t=a[i[1]]))return}for(s=0;s<t.length;s++)t[s]=m(t[s],0,255);return n=n||0==n?m(n,0,1):1,t[3]=n,t}}function u(e){if(e){var t=e.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[m(parseInt(t[1]),0,360),m(parseFloat(t[2]),0,100),m(parseFloat(t[3]),0,100),m(isNaN(n)?1:n,0,1)]}}}function d(e){if(e){var t=e.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[m(parseInt(t[1]),0,360),m(parseFloat(t[2]),0,100),m(parseFloat(t[3]),0,100),m(isNaN(n)?1:n,0,1)]}}}function h(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function f(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function p(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function m(e,t,n){return Math.min(Math.max(t,e),n)}function b(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var g={};for(var _ in a)g[a[_]]=_;var v=function(e){return e instanceof v?e:this instanceof v?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof e?(t=c.getRgba(e))?this.setValues("rgb",t):(t=c.getHsla(e))?this.setValues("hsl",t):(t=c.getHwb(e))&&this.setValues("hwb",t):"object"==typeof e&&(void 0!==(t=e).r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):void 0===t.c&&void 0===t.cyan||this.setValues("cmyk",t)))):new v(e);var t};v.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return c.hexString(this.values.rgb)},rgbString:function(){return c.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return c.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return c.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return c.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return c.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return c.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return c.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;n<e.length;n++){var i=e[n]/255;t[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=this,i=e,r=void 0===t?.5:t,s=2*r-1,o=n.alpha()-i.alpha(),a=((s*o==-1?s:(s+o)/(1+s*o))+1)/2,c=1-a;return this.rgb(a*n.red()+c*i.red(),a*n.green()+c*i.green(),a*n.blue()+c*i.blue()).alpha(n.alpha()*r+i.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new v,i=this.values,r=n.values;for(var s in i)i.hasOwnProperty(s)&&("[object Array]"===(t={}.toString.call(e=i[s]))?r[s]=e.slice(0):"[object Number]"===t?r[s]=e:console.error("unexpected color value:",e));return n}},v.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},v.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},v.prototype.getValues=function(e){for(var t=this.values,n={},i=0;i<e.length;i++)n[e.charAt(i)]=t[e][i];return 1!==t.alpha&&(n.a=t.alpha),n},v.prototype.setValues=function(e,t){var n,i,r=this.values,s=this.spaces,a=this.maxes,c=1;if(this.valid=!0,"alpha"===e)c=t;else if(t.length)r[e]=t.slice(0,e.length),c=t[e.length];else if(void 0!==t[e.charAt(0)]){for(n=0;n<e.length;n++)r[e][n]=t[e.charAt(n)];c=t.a}else if(void 0!==t[s[e][0]]){var l=s[e];for(n=0;n<e.length;n++)r[e][n]=t[l[n]];c=t.alpha}if(r.alpha=Math.max(0,Math.min(1,void 0===c?r.alpha:c)),"alpha"===e)return!1;for(n=0;n<e.length;n++)i=Math.max(0,Math.min(a[e][n],r[e][n])),r[e][n]=Math.round(i);for(var u in s)u!==e&&(r[u]=o[e][u](r[e]));return!0},v.prototype.setSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"==typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n),this)},v.prototype.setChannel=function(e,t,n){var i=this.values[e];return void 0===n?i[t]:(n===i[t]||(i[t]=n,this.setValues(e,i)),this)},"undefined"!=typeof window&&(window.Color=v);var y=v;function w(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}var D,S={noop:function(){},uid:(D=0,function(){return D++}),isNullOrUndef:function(e){return null==e},isArray:function(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)},isObject:function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},isFinite:function(e){return("number"==typeof e||e instanceof Number)&&isFinite(e)},valueOrDefault:function(e,t){return void 0===e?t:e},valueAtIndexOrDefault:function(e,t,n){return S.valueOrDefault(S.isArray(e)?e[t]:e,n)},callback:function(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)},each:function(e,t,n,i){var r,s,o;if(S.isArray(e))if(s=e.length,i)for(r=s-1;r>=0;r--)t.call(n,e[r],r);else for(r=0;r<s;r++)t.call(n,e[r],r);else if(S.isObject(e))for(s=(o=Object.keys(e)).length,r=0;r<s;r++)t.call(n,e[o[r]],o[r])},arrayEquals:function(e,t){var n,i,r,s;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(s=t[n],(r=e[n])instanceof Array&&s instanceof Array){if(!S.arrayEquals(r,s))return!1}else if(r!==s)return!1;return!0},clone:function(e){if(S.isArray(e))return e.map(S.clone);if(S.isObject(e)){for(var t=Object.create(e),n=Object.keys(e),i=n.length,r=0;r<i;++r)t[n[r]]=S.clone(e[n[r]]);return t}return e},_merger:function(e,t,n,i){if(w(e)){var r=t[e],s=n[e];S.isObject(r)&&S.isObject(s)?S.merge(r,s,i):t[e]=S.clone(s)}},_mergerIf:function(e,t,n){if(w(e)){var i=t[e],r=n[e];S.isObject(i)&&S.isObject(r)?S.mergeIf(i,r):t.hasOwnProperty(e)||(t[e]=S.clone(r))}},merge:function(e,t,n){var i,r,s,o,a,c=S.isArray(t)?t:[t],l=c.length;if(!S.isObject(e))return e;for(i=(n=n||{}).merger||S._merger,r=0;r<l;++r)if(S.isObject(t=c[r]))for(a=0,o=(s=Object.keys(t)).length;a<o;++a)i(s[a],e,t,n);return e},mergeIf:function(e,t){return S.merge(e,t,{merger:S._mergerIf})},extend:Object.assign||function(e){return S.merge(e,[].slice.call(arguments,1),{merger:function(e,t,n){t[e]=n[e]}})},inherits:function(e){var t=this,n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},i=function(){this.constructor=n};return i.prototype=t.prototype,n.prototype=new i,n.extend=S.inherits,e&&S.extend(n.prototype,e),n.__super__=t.prototype,n},_deprecated:function(e,t,n,i){void 0!==t&&console.warn(e+': "'+n+'" is deprecated. Please use "'+i+'" instead')}},x=S;S.callCallback=S.callback,S.indexOf=function(e,t,n){return Array.prototype.indexOf.call(e,t,n)},S.getValueOrDefault=S.valueOrDefault,S.getValueAtIndexOrDefault=S.valueAtIndexOrDefault;var k={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:1===e?1:(n||(n=.3),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:1===e?1:(n||(n=.3),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.45),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),e<1?i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-k.easeOutBounce(1-e)},easeOutBounce:function(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:function(e){return e<.5?.5*k.easeInBounce(2*e):.5*k.easeOutBounce(2*e-1)+.5}},T={effects:k};x.easingEffects=k;var M=Math.PI,C=M/180,O=2*M,L=M/2,E=M/4,A=2*M/3,I={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,i,r,s){if(s){var o=Math.min(s,r/2,i/2),a=t+o,c=n+o,l=t+i-o,u=n+r-o;e.moveTo(t,c),a<l&&c<u?(e.arc(a,c,o,-M,-L),e.arc(l,c,o,-L,0),e.arc(l,u,o,0,L),e.arc(a,u,o,L,M)):a<l?(e.moveTo(a,n),e.arc(l,c,o,-L,L),e.arc(a,c,o,L,M+L)):c<u?(e.arc(a,c,o,-M,0),e.arc(a,u,o,0,M)):e.arc(a,c,o,-M,M),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,i,r)},drawPoint:function(e,t,n,i,r,s){var o,a,c,l,u,d=(s||0)*C;if(t&&"object"==typeof t&&("[object HTMLImageElement]"===(o=t.toString())||"[object HTMLCanvasElement]"===o))return e.save(),e.translate(i,r),e.rotate(d),e.drawImage(t,-t.width/2,-t.height/2,t.width,t.height),void e.restore();if(!(isNaN(n)||n<=0)){switch(e.beginPath(),t){default:e.arc(i,r,n,0,O),e.closePath();break;case"triangle":e.moveTo(i+Math.sin(d)*n,r-Math.cos(d)*n),d+=A,e.lineTo(i+Math.sin(d)*n,r-Math.cos(d)*n),d+=A,e.lineTo(i+Math.sin(d)*n,r-Math.cos(d)*n),e.closePath();break;case"rectRounded":l=n-(u=.516*n),a=Math.cos(d+E)*l,c=Math.sin(d+E)*l,e.arc(i-a,r-c,u,d-M,d-L),e.arc(i+c,r-a,u,d-L,d),e.arc(i+a,r+c,u,d,d+L),e.arc(i-c,r+a,u,d+L,d+M),e.closePath();break;case"rect":if(!s){l=Math.SQRT1_2*n,e.rect(i-l,r-l,2*l,2*l);break}d+=E;case"rectRot":a=Math.cos(d)*n,c=Math.sin(d)*n,e.moveTo(i-a,r-c),e.lineTo(i+c,r-a),e.lineTo(i+a,r+c),e.lineTo(i-c,r+a),e.closePath();break;case"crossRot":d+=E;case"cross":a=Math.cos(d)*n,c=Math.sin(d)*n,e.moveTo(i-a,r-c),e.lineTo(i+a,r+c),e.moveTo(i+c,r-a),e.lineTo(i-c,r+a);break;case"star":a=Math.cos(d)*n,c=Math.sin(d)*n,e.moveTo(i-a,r-c),e.lineTo(i+a,r+c),e.moveTo(i+c,r-a),e.lineTo(i-c,r+a),d+=E,a=Math.cos(d)*n,c=Math.sin(d)*n,e.moveTo(i-a,r-c),e.lineTo(i+a,r+c),e.moveTo(i+c,r-a),e.lineTo(i-c,r+a);break;case"line":a=Math.cos(d)*n,c=Math.sin(d)*n,e.moveTo(i-a,r-c),e.lineTo(i+a,r+c);break;case"dash":e.moveTo(i,r),e.lineTo(i+Math.cos(d)*n,r+Math.sin(d)*n)}e.fill(),e.stroke()}},_isPointInArea:function(e,t){var n=1e-6;return e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,n,i){var r=n.steppedLine;if(r){if("middle"===r){var s=(t.x+n.x)/2;e.lineTo(s,i?n.y:t.y),e.lineTo(s,i?t.y:n.y)}else"after"===r&&!i||"after"!==r&&i?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}else n.tension?e.bezierCurveTo(i?t.controlPointPreviousX:t.controlPointNextX,i?t.controlPointPreviousY:t.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):e.lineTo(n.x,n.y)}},R=I;x.clear=I.clear,x.drawRoundedRectangle=function(e){e.beginPath(),I.roundedRect.apply(I,arguments)};var P={_set:function(e,t){return x.merge(this[e]||(this[e]={}),t)}};P._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var F=P,W=x.valueOrDefault,j={toLineHeight:function(e,t){var n=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e},toPadding:function(e){var t,n,i,r;return x.isObject(e)?(t=+e.top||0,n=+e.right||0,i=+e.bottom||0,r=+e.left||0):t=n=i=r=+e||0,{top:t,right:n,bottom:i,left:r,height:t+i,width:r+n}},_parseFont:function(e){var t=F.global,n=W(e.fontSize,t.defaultFontSize),i={family:W(e.fontFamily,t.defaultFontFamily),lineHeight:x.options.toLineHeight(W(e.lineHeight,t.defaultLineHeight),n),size:n,style:W(e.fontStyle,t.defaultFontStyle),weight:null,string:""};return i.string=function(e){return!e||x.isNullOrUndef(e.size)||x.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(i),i},resolve:function(e,t,n,i){var r,s,o,a=!0;for(r=0,s=e.length;r<s;++r)if(void 0!==(o=e[r])&&(void 0!==t&&"function"==typeof o&&(o=o(t),a=!1),void 0!==n&&x.isArray(o)&&(o=o[n],a=!1),void 0!==o))return i&&!a&&(i.cacheable=!1),o}},Y={_factorize:function(e){var t,n=[],i=Math.sqrt(e);for(t=1;t<i;t++)e%t==0&&(n.push(t),n.push(e/t));return i===(0|i)&&n.push(i),n.sort(function(e,t){return e-t}).pop(),n},log10:Math.log10||function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t);return e===Math.pow(10,n)?n:t}},N=Y;x.log10=Y.log10;var z=x,$=R,H=j,X=N;z.easing=T,z.canvas=$,z.options=H,z.math=X,z.rtl={getRtlAdapter:function(e,t,n){return e?function(e,t){return{x:function(n){return e+e+t-n},setWidth:function(e){t=e},textAlign:function(e){return"center"===e?e:"right"===e?"left":"right"},xPlus:function(e,t){return e-t},leftForLtr:function(e,t){return e-t}}}(t,n):{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}}},overrideTextDirection:function(e,t){var n,i;"ltr"!==t&&"rtl"!==t||(i=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)},restoreTextDirection:function(e){var t=e.prevTextDirection;void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}};var V=function(e){z.extend(this,e),this.initialize.apply(this,arguments)};z.extend(V.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=z.extend({},e._model)),e._start={},e},transition:function(e){var t=this,n=t._model,i=t._start,r=t._view;return n&&1!==e?(r||(r=t._view={}),i||(i=t._start={}),function(e,t,n,i){var r,s,o,a,c,l,u,d,h,f=Object.keys(n);for(r=0,s=f.length;r<s;++r)if(l=n[o=f[r]],t.hasOwnProperty(o)||(t[o]=l),(a=t[o])!==l&&"_"!==o[0]){if(e.hasOwnProperty(o)||(e[o]=a),(u=typeof l)==typeof(c=e[o]))if("string"===u){if((d=y(c)).valid&&(h=y(l)).valid){t[o]=h.mix(d,i).rgbString();continue}}else if(z.isFinite(c)&&z.isFinite(l)){t[o]=c+(l-c)*i;continue}t[o]=l}}(i,r,n,e),t):(t._view=z.extend({},n),t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return z.isNumber(this._model.x)&&z.isNumber(this._model.y)}}),V.extend=z.inherits;var B=V,U=B.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),q=U;Object.defineProperty(U.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(U.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}}),F._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:z.noop,onComplete:z.noop}});var G={animations:[],request:null,addAnimation:function(e,t,n,i){var r,s,o=this.animations;for(t.chart=e,t.startTime=Date.now(),t.duration=n,i||(e.animating=!0),r=0,s=o.length;r<s;++r)if(o[r].chart===e)return void(o[r]=t);o.push(t),1===o.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=z.findIndex(this.animations,function(t){return t.chart===e});-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var e=this;null===e.request&&(e.request=z.requestAnimFrame.call(window,function(){e.request=null,e.startDigest()}))},startDigest:function(){var e=this;e.advance(),e.animations.length>0&&e.requestAnimationFrame()},advance:function(){for(var e,t,n,i,r=this.animations,s=0;s<r.length;)t=(e=r[s]).chart,n=e.numSteps,i=Math.floor((Date.now()-e.startTime)/e.duration*n)+1,e.currentStep=Math.min(i,n),z.callback(e.render,[t,e],t),z.callback(e.onAnimationProgress,[e],t),e.currentStep>=n?(z.callback(e.onAnimationComplete,[e],t),t.animating=!1,r.splice(s,1)):++s}},J=z.options.resolve,K=["push","pop","shift","splice","unshift"];function Q(e,t){var n=e._chartjs;if(n){var i=n.listeners,r=i.indexOf(t);-1!==r&&i.splice(r,1),i.length>0||(K.forEach(function(t){delete e[t]}),delete e._chartjs)}}var Z=function(e,t){this.initialize(e,t)};z.extend(Z.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){var n=this;n.chart=e,n.index=t,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),n=e.chart,i=n.scales,r=e.getDataset(),s=n.options.scales;null!==t.xAxisID&&t.xAxisID in i&&!r.xAxisID||(t.xAxisID=r.xAxisID||s.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in i&&!r.yAxisID||(t.yAxisID=r.yAxisID||s.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&Q(this._data,this)},createMetaDataset:function(){var e=this,t=e.datasetElementType;return t&&new t({_chart:e.chart,_datasetIndex:e.index})},createMetaData:function(e){var t=this,n=t.dataElementType;return n&&new n({_chart:t.chart,_datasetIndex:t.index,_index:e})},addElements:function(){var e,t,n=this,i=n.getMeta(),r=n.getDataset().data||[],s=i.data;for(e=0,t=r.length;e<t;++e)s[e]=s[e]||n.createMetaData(e);i.dataset=i.dataset||n.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e,t,n=this,i=n.getDataset(),r=i.data||(i.data=[]);n._data!==r&&(n._data&&Q(n._data,n),r&&Object.isExtensible(r)&&(t=n,(e=r)._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),K.forEach(function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),i=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),r=i.apply(this,t);return z.each(e._chartjs.listeners,function(e){"function"==typeof e[n]&&e[n].apply(e,t)}),r}})}))),n._data=r),n.resyncElements()},_configure:function(){var e=this;e._config=z.merge(Object.create(null),[e.chart.options.datasets[e._type],e.getDataset()],{merger:function(e,t,n){"_meta"!==e&&"data"!==e&&z._merger(e,t,n)}})},_update:function(e){var t=this;t._configure(),t._cachedDataOpts=null,t.update(e)},update:z.noop,transition:function(e){for(var t=this.getMeta(),n=t.data||[],i=n.length,r=0;r<i;++r)n[r].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],n=t.length,i=0;for(e.dataset&&e.dataset.draw();i<n;++i)t[i].draw()},getStyle:function(e){var t,n=this,i=n.getMeta(),r=i.dataset;return n._configure(),!1!==(t=r&&void 0===e?n._resolveDatasetElementOptions(r||{}):n._resolveDataElementOptions(i.data[e=e||0]||{},e)).fill&&null!==t.fill||(t.backgroundColor=t.borderColor),t},_resolveDatasetElementOptions:function(e,t){var n,i,r,s,o=this,a=o.chart,c=o._config,l=e.custom||{},u=a.options.elements[o.datasetElementType.prototype._type]||{},d=o._datasetElementOptions,h={},f={chart:a,dataset:o.getDataset(),datasetIndex:o.index,hover:t};for(n=0,i=d.length;n<i;++n)r=d[n],s=t?"hover"+r.charAt(0).toUpperCase()+r.slice(1):r,h[r]=J([l[s],c[s],u[s]],f);return h},_resolveDataElementOptions:function(e,t){var n=this,i=e&&e.custom,r=n._cachedDataOpts;if(r&&!i)return r;var s,o,a,c,l=n.chart,u=n._config,d=l.options.elements[n.dataElementType.prototype._type]||{},h=n._dataElementOptions,f={},p={chart:l,dataIndex:t,dataset:n.getDataset(),datasetIndex:n.index},m={cacheable:!i};if(i=i||{},z.isArray(h))for(o=0,a=h.length;o<a;++o)f[c=h[o]]=J([i[c],u[c],d[c]],p,t,m);else for(o=0,a=(s=Object.keys(h)).length;o<a;++o)f[c=s[o]]=J([i[c],u[h[c]],u[c],d[c]],p,t,m);return m.cacheable&&(n._cachedDataOpts=Object.freeze(f)),f},removeHoverStyle:function(e){z.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,i=e.custom||{},r=e._model,s=z.getHoverColor;e.$previousStyle={backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:r.borderWidth},r.backgroundColor=J([i.hoverBackgroundColor,t.hoverBackgroundColor,s(r.backgroundColor)],void 0,n),r.borderColor=J([i.hoverBorderColor,t.hoverBorderColor,s(r.borderColor)],void 0,n),r.borderWidth=J([i.hoverBorderWidth,t.hoverBorderWidth,r.borderWidth],void 0,n)},_removeDatasetHoverStyle:function(){var e=this.getMeta().dataset;e&&this.removeHoverStyle(e)},_setDatasetHoverStyle:function(){var e,t,n,i,r,s,o=this.getMeta().dataset,a={};if(o){for(s=o._model,r=this._resolveDatasetElementOptions(o,!0),e=0,t=(i=Object.keys(r)).length;e<t;++e)a[n=i[e]]=s[n],s[n]=r[n];o.$previousStyle=a}},resyncElements:function(){var e=this,t=e.getMeta(),n=e.getDataset().data,i=t.data.length,r=n.length;r<i?t.data.splice(r,i-r):r>i&&e.insertElements(i,r-i)},insertElements:function(e,t){for(var n=0;n<t;++n)this.addElementAndReset(e+n)},onDataPush:function(){var e=arguments.length;this.insertElements(this.getDataset().data.length-e,e)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),Z.extend=z.inherits;var ee=Z,te=2*Math.PI;function ne(e,t){var n=t.startAngle,i=t.endAngle,r=t.pixelMargin,s=r/t.outerRadius,o=t.x,a=t.y;e.beginPath(),e.arc(o,a,t.outerRadius,n-s,i+s),t.innerRadius>r?e.arc(o,a,t.innerRadius-r,i+(s=r/t.innerRadius),n-s,!0):e.arc(o,a,r,i+Math.PI/2,n-Math.PI/2),e.closePath(),e.clip()}F._set("global",{elements:{arc:{backgroundColor:F.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var ie=B.extend({_type:"arc",inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var n=this._view;if(n){for(var i=z.getAngleFromPoint(n,{x:e,y:t}),r=i.angle,s=i.distance,o=n.startAngle,a=n.endAngle;a<o;)a+=te;for(;r>a;)r-=te;for(;r<o;)r+=te;return r>=o&&r<=a&&s>=n.innerRadius&&s<=n.outerRadius}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e,t=this._chart.ctx,n=this._view,i="inner"===n.borderAlign?.33:0,r={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-i,0),pixelMargin:i,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/te)};if(t.save(),t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,r.fullCircles){for(r.endAngle=r.startAngle+te,t.beginPath(),t.arc(r.x,r.y,r.outerRadius,r.startAngle,r.endAngle),t.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),t.closePath(),e=0;e<r.fullCircles;++e)t.fill();r.endAngle=r.startAngle+n.circumference%te}t.beginPath(),t.arc(r.x,r.y,r.outerRadius,r.startAngle,r.endAngle),t.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),t.closePath(),t.fill(),n.borderWidth&&function(e,t,n){var i="inner"===t.borderAlign;i?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),n.fullCircles&&function(e,t,n,i){var r,s=n.endAngle;for(i&&(n.endAngle=n.startAngle+te,ne(e,n),n.endAngle=s,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=te,n.fullCircles--)),e.beginPath(),e.arc(n.x,n.y,n.innerRadius,n.startAngle+te,n.startAngle,!0),r=0;r<n.fullCircles;++r)e.stroke();for(e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.startAngle+te),r=0;r<n.fullCircles;++r)e.stroke()}(e,t,n,i),i&&ne(e,n),e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.endAngle),e.arc(n.x,n.y,n.innerRadius,n.endAngle,n.startAngle,!0),e.closePath(),e.stroke()}(t,n,r),t.restore()}}),re=z.valueOrDefault,se=F.global.defaultColor;F._set("global",{elements:{line:{tension:.4,backgroundColor:se,borderWidth:3,borderColor:se,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var oe=B.extend({_type:"line",draw:function(){var e,t,n,i=this,r=i._view,s=i._chart.ctx,o=r.spanGaps,a=i._children.slice(),c=F.global,l=c.elements.line,u=-1,d=i._loop;if(a.length){if(i._loop){for(e=0;e<a.length;++e)if(t=z.previousItem(a,e),!a[e]._view.skip&&t._view.skip){a=a.slice(e).concat(a.slice(0,e)),d=o;break}d&&a.push(a[0])}for(s.save(),s.lineCap=r.borderCapStyle||l.borderCapStyle,s.setLineDash&&s.setLineDash(r.borderDash||l.borderDash),s.lineDashOffset=re(r.borderDashOffset,l.borderDashOffset),s.lineJoin=r.borderJoinStyle||l.borderJoinStyle,s.lineWidth=re(r.borderWidth,l.borderWidth),s.strokeStyle=r.borderColor||c.defaultColor,s.beginPath(),(n=a[0]._view).skip||(s.moveTo(n.x,n.y),u=0),e=1;e<a.length;++e)n=a[e]._view,t=-1===u?z.previousItem(a,e):a[u],n.skip||(u!==e-1&&!o||-1===u?s.moveTo(n.x,n.y):z.canvas.lineTo(s,t._view,n),u=e);d&&s.closePath(),s.stroke(),s.restore()}}}),ae=z.valueOrDefault,ce=F.global.defaultColor;function le(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}F._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:ce,borderColor:ce,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var ue=B.extend({_type:"point",inRange:function(e,t){var n=this._view;return!!n&&Math.pow(e-n.x,2)+Math.pow(t-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:le,inXRange:le,inYRange:function(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius},getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,n=this._chart.ctx,i=t.pointStyle,r=t.rotation,s=t.radius,o=t.x,a=t.y,c=F.global,l=c.defaultColor;t.skip||(void 0===e||z.canvas._isPointInArea(t,e))&&(n.strokeStyle=t.borderColor||l,n.lineWidth=ae(t.borderWidth,c.elements.point.borderWidth),n.fillStyle=t.backgroundColor||l,z.canvas.drawPoint(n,i,s,o,a,r))}}),de=F.global.defaultColor;function he(e){return e&&void 0!==e.width}function fe(e){var t,n,i,r,s;return he(e)?(t=e.x-(s=e.width/2),n=e.x+s,i=Math.min(e.y,e.base),r=Math.max(e.y,e.base)):(s=e.height/2,t=Math.min(e.x,e.base),n=Math.max(e.x,e.base),i=e.y-s,r=e.y+s),{left:t,top:i,right:n,bottom:r}}function pe(e,t,n){return e===t?n:e===n?t:e}function me(e,t,n){var i=null===t,r=null===n,s=!(!e||i&&r)&&fe(e);return s&&(i||t>=s.left&&t<=s.right)&&(r||n>=s.top&&n<=s.bottom)}F._set("global",{elements:{rectangle:{backgroundColor:de,borderColor:de,borderSkipped:"bottom",borderWidth:0}}});var be=B.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,n=function(e){var t=fe(e),n=t.right-t.left,i=t.bottom-t.top,r=function(e,t,n){var i,r,s,o,a=e.borderWidth,c=function(e){var t=e.borderSkipped,n={};return t?(e.horizontal?e.base>e.x&&(t=pe(t,"left","right")):e.base<e.y&&(t=pe(t,"bottom","top")),n[t]=!0,n):n}(e);return z.isObject(a)?(i=+a.top||0,r=+a.right||0,s=+a.bottom||0,o=+a.left||0):i=r=s=o=+a||0,{t:c.top||i<0?0:i>n?n:i,r:c.right||r<0?0:r>t?t:r,b:c.bottom||s<0?0:s>n?n:s,l:c.left||o<0?0:o>t?t:o}}(e,n/2,i/2);return{outer:{x:t.left,y:t.top,w:n,h:i},inner:{x:t.left+r.l,y:t.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b}}}(t),i=n.outer,r=n.inner;e.fillStyle=t.backgroundColor,e.fillRect(i.x,i.y,i.w,i.h),i.w===r.w&&i.h===r.h||(e.save(),e.beginPath(),e.rect(i.x,i.y,i.w,i.h),e.clip(),e.fillStyle=t.borderColor,e.rect(r.x,r.y,r.w,r.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return me(this._view,e,t)},inLabelRange:function(e,t){var n=this._view;return he(n)?me(n,e,null):me(n,null,t)},inXRange:function(e){return me(this._view,e,null)},inYRange:function(e){return me(this._view,null,e)},getCenterPoint:function(){var e,t,n=this._view;return he(n)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return he(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),ge={},_e=oe,ve=ue,ye=be;ge.Arc=ie,ge.Line=_e,ge.Point=ve,ge.Rectangle=ye;var we=z._deprecated,De=z.valueOrDefault;F._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),F._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var Se=ee.extend({dataElementType:ge.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e,t,n=this;ee.prototype.initialize.apply(n,arguments),(e=n.getMeta()).stack=n.getDataset().stack,e.bar=!0,t=n._getIndexScale().options,we("bar chart",t.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),we("bar chart",t.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),we("bar chart",t.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),we("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),we("bar chart",t.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var t,n,i=this,r=i.getMeta().data;for(i._ruler=i.getRuler(),t=0,n=r.length;t<n;++t)i.updateElement(r[t],t,e)},updateElement:function(e,t,n){var i=this,r=i.getMeta(),s=i.getDataset(),o=i._resolveDataElementOptions(e,t);e._xScale=i.getScaleForId(r.xAxisID),e._yScale=i.getScaleForId(r.yAxisID),e._datasetIndex=i.index,e._index=t,e._model={backgroundColor:o.backgroundColor,borderColor:o.borderColor,borderSkipped:o.borderSkipped,borderWidth:o.borderWidth,datasetLabel:s.label,label:i.chart.data.labels[t]},z.isArray(s.data[t])&&(e._model.borderSkipped=null),i._updateElementGeometry(e,t,n,o),e.pivot()},_updateElementGeometry:function(e,t,n,i){var r=this,s=e._model,o=r._getValueScale(),a=o.getBasePixel(),c=o.isHorizontal(),l=r._ruler||r.getRuler(),u=r.calculateBarValuePixels(r.index,t,i),d=r.calculateBarIndexPixels(r.index,t,l,i);s.horizontal=c,s.base=n?a:u.base,s.x=c?n?a:u.head:d.center,s.y=c?d.center:n?a:u.head,s.height=c?d.size:void 0,s.width=c?void 0:d.size},_getStacks:function(e){var t,n,i=this._getIndexScale(),r=i._getMatchingVisibleMetas(this._type),s=i.options.stacked,o=r.length,a=[];for(t=0;t<o&&(n=r[t],(!1===s||-1===a.indexOf(n.stack)||void 0===s&&void 0===n.stack)&&a.push(n.stack),n.index!==e);++t);return a},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var n=this._getStacks(e),i=void 0!==t?n.indexOf(t):-1;return-1===i?n.length-1:i},getRuler:function(){var e,t,n=this,i=n._getIndexScale(),r=[];for(e=0,t=n.getMeta().data.length;e<t;++e)r.push(i.getPixelForValue(null,e,n.index));return{pixels:r,start:i._startPixel,end:i._endPixel,stackCount:n.getStackCount(),scale:i}},calculateBarValuePixels:function(e,t,n){var i,r,s,o,a,c,l,u=this,d=u.chart,h=u._getValueScale(),f=h.isHorizontal(),p=d.data.datasets,m=h._getMatchingVisibleMetas(u._type),b=h._parseValue(p[e].data[t]),g=n.minBarLength,_=h.options.stacked,v=u.getMeta().stack,y=void 0===b.start?0:b.max>=0&&b.min>=0?b.min:b.max,w=void 0===b.start?b.end:b.max>=0&&b.min>=0?b.max-b.min:b.min-b.max,D=m.length;if(_||void 0===_&&void 0!==v)for(i=0;i<D&&(r=m[i]).index!==e;++i)r.stack===v&&(s=void 0===(l=h._parseValue(p[r.index].data[t])).start?l.end:l.min>=0&&l.max>=0?l.max:l.min,(b.min<0&&s<0||b.max>=0&&s>0)&&(y+=s));return o=h.getPixelForValue(y),c=(a=h.getPixelForValue(y+w))-o,void 0!==g&&Math.abs(c)<g&&(c=g,a=w>=0&&!f||w<0&&f?o-g:o+g),{size:c,base:o,head:a,center:a+c/2}},calculateBarIndexPixels:function(e,t,n,i){var r="flex"===i.barThickness?function(e,t,n){var i,r=t.pixels,s=r[e],o=e>0?r[e-1]:null,a=e<r.length-1?r[e+1]:null,c=n.categoryPercentage;return null===o&&(o=s-(null===a?t.end-t.start:a-s)),null===a&&(a=s+s-o),i=s-(s-Math.min(o,a))/2*c,{chunk:Math.abs(a-o)/2*c/t.stackCount,ratio:n.barPercentage,start:i}}(t,n,i):function(e,t,n){var i,r,s=n.barThickness,o=t.stackCount,a=t.pixels[e],c=z.isNullOrUndef(s)?function(e,t){var n,i,r,s,o=e._length;for(r=1,s=t.length;r<s;++r)o=Math.min(o,Math.abs(t[r]-t[r-1]));for(r=0,s=e.getTicks().length;r<s;++r)i=e.getPixelForTick(r),o=r>0?Math.min(o,Math.abs(i-n)):o,n=i;return o}(t.scale,t.pixels):-1;return z.isNullOrUndef(s)?(i=c*n.categoryPercentage,r=n.barPercentage):(i=s*o,r=1),{chunk:i/o,ratio:r,start:a-i/2}}(t,n,i),s=this.getStackIndex(e,this.getMeta().stack),o=r.start+r.chunk*s+r.chunk/2,a=Math.min(De(i.maxBarThickness,1/0),r.chunk*r.ratio);return{base:o-a/2,head:o+a/2,center:o,size:a}},draw:function(){var e=this,t=e.chart,n=e._getValueScale(),i=e.getMeta().data,r=e.getDataset(),s=i.length,o=0;for(z.canvas.clipArea(t.ctx,t.chartArea);o<s;++o){var a=n._parseValue(r.data[o]);isNaN(a.min)||isNaN(a.max)||i[o].draw()}z.canvas.unclipArea(t.ctx)},_resolveDataElementOptions:function(){var e=this,t=z.extend({},ee.prototype._resolveDataElementOptions.apply(e,arguments)),n=e._getIndexScale().options,i=e._getValueScale().options;return t.barPercentage=De(n.barPercentage,t.barPercentage),t.barThickness=De(n.barThickness,t.barThickness),t.categoryPercentage=De(n.categoryPercentage,t.categoryPercentage),t.maxBarThickness=De(n.maxBarThickness,t.maxBarThickness),t.minBarLength=De(i.minBarLength,t.minBarLength),t}}),xe=z.valueOrDefault,ke=z.options.resolve;F._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return(t.datasets[e.datasetIndex].label||"")+": ("+e.xLabel+", "+e.yLabel+", "+t.datasets[e.datasetIndex].data[e.index].r+")"}}}});var Te=ee.extend({dataElementType:ge.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(e){var t=this,n=t.getMeta();z.each(n.data,function(n,i){t.updateElement(n,i,e)})},updateElement:function(e,t,n){var i=this,r=i.getMeta(),s=e.custom||{},o=i.getScaleForId(r.xAxisID),a=i.getScaleForId(r.yAxisID),c=i._resolveDataElementOptions(e,t),l=i.getDataset().data[t],u=i.index,d=n?o.getPixelForDecimal(.5):o.getPixelForValue("object"==typeof l?l:NaN,t,u),h=n?a.getBasePixel():a.getPixelForValue(l,t,u);e._xScale=o,e._yScale=a,e._options=c,e._datasetIndex=u,e._index=t,e._model={backgroundColor:c.backgroundColor,borderColor:c.borderColor,borderWidth:c.borderWidth,hitRadius:c.hitRadius,pointStyle:c.pointStyle,rotation:c.rotation,radius:n?0:c.radius,skip:s.skip||isNaN(d)||isNaN(h),x:d,y:h},e.pivot()},setHoverStyle:function(e){var t=e._model,n=e._options,i=z.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=xe(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=xe(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=xe(n.hoverBorderWidth,n.borderWidth),t.radius=n.radius+n.hoverRadius},_resolveDataElementOptions:function(e,t){var n=this,i=n.chart,r=n.getDataset(),s=e.custom||{},o=r.data[t]||{},a=ee.prototype._resolveDataElementOptions.apply(n,arguments),c={chart:i,dataIndex:t,dataset:r,datasetIndex:n.index};return n._cachedDataOpts===a&&(a=z.extend({},a)),a.radius=ke([s.radius,o.r,n._config.radius,i.options.elements.point.radius],c,t),a}}),Me=z.valueOrDefault,Ce=Math.PI,Oe=2*Ce,Le=Ce/2;F._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t,n,i,r=document.createElement("ul"),s=e.data,o=s.datasets,a=s.labels;if(r.setAttribute("class",e.id+"-legend"),o.length)for(t=0,n=o[0].data.length;t<n;++t)(i=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[0].backgroundColor[t],a[t]&&i.appendChild(document.createTextNode(a[t]));return r.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,i){var r=e.getDatasetMeta(0),s=r.controller.getStyle(i);return{text:n,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,lineWidth:s.borderWidth,hidden:isNaN(t.datasets[0].data[i])||r.data[i].hidden,index:i}}):[]}},onClick:function(e,t){var n,i,r,s=t.index,o=this.chart;for(n=0,i=(o.data.datasets||[]).length;n<i;++n)(r=o.getDatasetMeta(n)).data[s]&&(r.data[s].hidden=!r.data[s].hidden);o.update()}},cutoutPercentage:50,rotation:-Le,circumference:Oe,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.labels[e.index],i=": "+t.datasets[e.datasetIndex].data[e.index];return z.isArray(n)?(n=n.slice())[0]+=i:n+=i,n}}}});var Ee=ee.extend({dataElementType:ge.Arc,linkScales:z.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&++t;return t},update:function(e){var t,n,i=this,r=i.chart,s=r.chartArea,o=r.options,a=1,c=1,l=0,u=0,d=i.getMeta(),h=d.data,f=o.cutoutPercentage/100||0,p=o.circumference,m=i._getRingWeight(i.index);if(p<Oe){var b=o.rotation%Oe,g=(b+=b>=Ce?-Oe:b<-Ce?Oe:0)+p,_=Math.cos(b),v=Math.sin(b),y=Math.cos(g),w=Math.sin(g),D=b<=0&&g>=0||g>=Oe,S=b<=Le&&g>=Le||g>=Oe+Le,x=b<=-Le&&g>=-Le||g>=Ce+Le,k=b===-Ce||g>=Ce?-1:Math.min(_,_*f,y,y*f),T=x?-1:Math.min(v,v*f,w,w*f),M=D?1:Math.max(_,_*f,y,y*f),C=S?1:Math.max(v,v*f,w,w*f);a=(M-k)/2,c=(C-T)/2,l=-(M+k)/2,u=-(C+T)/2}for(t=0,n=h.length;t<n;++t)h[t]._options=i._resolveDataElementOptions(h[t],t);for(r.borderWidth=i.getMaxBorderWidth(),r.outerRadius=Math.max(Math.min((s.right-s.left-r.borderWidth)/a,(s.bottom-s.top-r.borderWidth)/c)/2,0),r.innerRadius=Math.max(r.outerRadius*f,0),r.radiusLength=(r.outerRadius-r.innerRadius)/(i._getVisibleDatasetWeightTotal()||1),r.offsetX=l*r.outerRadius,r.offsetY=u*r.outerRadius,d.total=i.calculateTotal(),i.outerRadius=r.outerRadius-r.radiusLength*i._getRingWeightOffset(i.index),i.innerRadius=Math.max(i.outerRadius-r.radiusLength*m,0),t=0,n=h.length;t<n;++t)i.updateElement(h[t],t,e)},updateElement:function(e,t,n){var i=this,r=i.chart,s=r.chartArea,o=r.options,a=o.animation,c=(s.left+s.right)/2,l=(s.top+s.bottom)/2,u=o.rotation,d=o.rotation,h=i.getDataset(),f=n&&a.animateRotate||e.hidden?0:i.calculateCircumference(h.data[t])*(o.circumference/Oe),p=e._options||{};z.extend(e,{_datasetIndex:i.index,_index:t,_model:{backgroundColor:p.backgroundColor,borderColor:p.borderColor,borderWidth:p.borderWidth,borderAlign:p.borderAlign,x:c+r.offsetX,y:l+r.offsetY,startAngle:u,endAngle:d,circumference:f,outerRadius:n&&a.animateScale?0:i.outerRadius,innerRadius:n&&a.animateScale?0:i.innerRadius,label:z.valueAtIndexOrDefault(h.label,t,r.data.labels[t])}});var m=e._model;n&&a.animateRotate||(m.startAngle=0===t?o.rotation:i.getMeta().data[t-1]._model.endAngle,m.endAngle=m.startAngle+m.circumference),e.pivot()},calculateTotal:function(){var e,t=this.getDataset(),n=this.getMeta(),i=0;return z.each(n.data,function(n,r){e=t.data[r],isNaN(e)||n.hidden||(i+=Math.abs(e))}),i},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?Oe*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,n,i,r,s,o,a,c,l=0,u=this.chart;if(!e)for(t=0,n=u.data.datasets.length;t<n;++t)if(u.isDatasetVisible(t)){e=(i=u.getDatasetMeta(t)).data,t!==this.index&&(s=i.controller);break}if(!e)return 0;for(t=0,n=e.length;t<n;++t)r=e[t],s?(s._configure(),o=s._resolveDataElementOptions(r,t)):o=r._options,"inner"!==o.borderAlign&&(l=(c=o.hoverBorderWidth)>(l=(a=o.borderWidth)>l?a:l)?c:l);return l},setHoverStyle:function(e){var t=e._model,n=e._options,i=z.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=Me(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=Me(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=Me(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t},_getRingWeight:function(e){return Math.max(Me(this.chart.data.datasets[e].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});F._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),F._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var Ae=Se.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),Ie=z.valueOrDefault,Re=z.options.resolve,Pe=z.canvas._isPointInArea;function Fe(e,t){var n=e&&e.options.ticks||{},i=n.reverse,r=void 0===n.min?t:0,s=void 0===n.max?t:0;return{start:i?s:r,end:i?r:s}}function We(e,t,n){var i=n/2,r=Fe(e,i),s=Fe(t,i);return{top:s.end,right:r.end,bottom:s.start,left:r.start}}function je(e){var t,n,i,r;return z.isObject(e)?(t=e.top,n=e.right,i=e.bottom,r=e.left):t=n=i=r=e,{top:t,right:n,bottom:i,left:r}}F._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var Ye=ee.extend({datasetElementType:ge.Line,dataElementType:ge.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(e){var t,n,i=this,r=i.getMeta(),s=r.dataset,o=r.data||[],a=i._config,c=i._showLine=Ie(a.showLine,i.chart.options.showLines);for(i._xScale=i.getScaleForId(r.xAxisID),i._yScale=i.getScaleForId(r.yAxisID),c&&(void 0!==a.tension&&void 0===a.lineTension&&(a.lineTension=a.tension),s._scale=i._yScale,s._datasetIndex=i.index,s._children=o,s._model=i._resolveDatasetElementOptions(s),s.pivot()),t=0,n=o.length;t<n;++t)i.updateElement(o[t],t,e);for(c&&0!==s._model.tension&&i.updateBezierControlPoints(),t=0,n=o.length;t<n;++t)o[t].pivot()},updateElement:function(e,t,n){var i,r,s=this,o=s.getMeta(),a=e.custom||{},c=s.getDataset(),l=s.index,u=c.data[t],d=s._xScale,h=s._yScale,f=o.dataset._model,p=s._resolveDataElementOptions(e,t);i=d.getPixelForValue("object"==typeof u?u:NaN,t,l),r=n?h.getBasePixel():s.calculatePointY(u,t,l),e._xScale=d,e._yScale=h,e._options=p,e._datasetIndex=l,e._index=t,e._model={x:i,y:r,skip:a.skip||isNaN(i)||isNaN(r),radius:p.radius,pointStyle:p.pointStyle,rotation:p.rotation,backgroundColor:p.backgroundColor,borderColor:p.borderColor,borderWidth:p.borderWidth,tension:Ie(a.tension,f?f.tension:0),steppedLine:!!f&&f.steppedLine,hitRadius:p.hitRadius}},_resolveDatasetElementOptions:function(e){var t=this,n=t._config,i=e.custom||{},r=t.chart.options,s=r.elements.line,o=ee.prototype._resolveDatasetElementOptions.apply(t,arguments);return o.spanGaps=Ie(n.spanGaps,r.spanGaps),o.tension=Ie(n.lineTension,s.tension),o.steppedLine=Re([i.steppedLine,n.steppedLine,s.stepped]),o.clip=je(Ie(n.clip,We(t._xScale,t._yScale,o.borderWidth))),o},calculatePointY:function(e,t,n){var i,r,s,o,a,c,l=this.chart,u=this._yScale,d=0,h=0;if(u.options.stacked){for(o=+u.getRightValue(e),c=(a=l._getSortedVisibleDatasetMetas()).length,i=0;i<c&&(r=a[i]).index!==n;++i)"line"===r.type&&r.yAxisID===u.id&&((s=+u.getRightValue(l.data.datasets[r.index].data[t]))<0?h+=s||0:d+=s||0);return u.getPixelForValue(o<0?h+o:d+o)}return u.getPixelForValue(e)},updateBezierControlPoints:function(){var e,t,n,i,r=this.chart,s=this.getMeta(),o=s.dataset._model,a=r.chartArea,c=s.data||[];function l(e,t,n){return Math.max(Math.min(e,n),t)}if(o.spanGaps&&(c=c.filter(function(e){return!e._model.skip})),"monotone"===o.cubicInterpolationMode)z.splineCurveMonotone(c);else for(e=0,t=c.length;e<t;++e)n=c[e]._model,i=z.splineCurve(z.previousItem(c,e)._model,n,z.nextItem(c,e)._model,o.tension),n.controlPointPreviousX=i.previous.x,n.controlPointPreviousY=i.previous.y,n.controlPointNextX=i.next.x,n.controlPointNextY=i.next.y;if(r.options.elements.line.capBezierPoints)for(e=0,t=c.length;e<t;++e)Pe(n=c[e]._model,a)&&(e>0&&Pe(c[e-1]._model,a)&&(n.controlPointPreviousX=l(n.controlPointPreviousX,a.left,a.right),n.controlPointPreviousY=l(n.controlPointPreviousY,a.top,a.bottom)),e<c.length-1&&Pe(c[e+1]._model,a)&&(n.controlPointNextX=l(n.controlPointNextX,a.left,a.right),n.controlPointNextY=l(n.controlPointNextY,a.top,a.bottom)))},draw:function(){var e,t=this,n=t.chart,i=t.getMeta(),r=i.data||[],s=n.chartArea,o=n.canvas,a=0,c=r.length;for(t._showLine&&(z.canvas.clipArea(n.ctx,{left:!1===(e=i.dataset._model.clip).left?0:s.left-e.left,right:!1===e.right?o.width:s.right+e.right,top:!1===e.top?0:s.top-e.top,bottom:!1===e.bottom?o.height:s.bottom+e.bottom}),i.dataset.draw(),z.canvas.unclipArea(n.ctx));a<c;++a)r[a].draw(s)},setHoverStyle:function(e){var t=e._model,n=e._options,i=z.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Ie(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=Ie(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=Ie(n.hoverBorderWidth,n.borderWidth),t.radius=Ie(n.hoverRadius,n.radius)}}),Ne=z.options.resolve;F._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var t,n,i,r=document.createElement("ul"),s=e.data,o=s.datasets,a=s.labels;if(r.setAttribute("class",e.id+"-legend"),o.length)for(t=0,n=o[0].data.length;t<n;++t)(i=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[0].backgroundColor[t],a[t]&&i.appendChild(document.createTextNode(a[t]));return r.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,i){var r=e.getDatasetMeta(0),s=r.controller.getStyle(i);return{text:n,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,lineWidth:s.borderWidth,hidden:isNaN(t.datasets[0].data[i])||r.data[i].hidden,index:i}}):[]}},onClick:function(e,t){var n,i,r,s=t.index,o=this.chart;for(n=0,i=(o.data.datasets||[]).length;n<i;++n)(r=o.getDatasetMeta(n)).data[s].hidden=!r.data[s].hidden;o.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}});var ze=ee.extend({dataElementType:ge.Arc,linkScales:z.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,i,r=this,s=r.getDataset(),o=r.getMeta(),a=r.chart.options.startAngle||0,c=r._starts=[],l=r._angles=[],u=o.data;for(r._updateRadius(),o.count=r.countVisibleElements(),t=0,n=s.data.length;t<n;t++)c[t]=a,i=r._computeAngle(t),l[t]=i,a+=i;for(t=0,n=u.length;t<n;++t)u[t]._options=r._resolveDataElementOptions(u[t],t),r.updateElement(u[t],t,e)},_updateRadius:function(){var e=this,t=e.chart,n=t.chartArea,i=t.options,r=Math.min(n.right-n.left,n.bottom-n.top);t.outerRadius=Math.max(r/2,0),t.innerRadius=Math.max(i.cutoutPercentage?t.outerRadius/100*i.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),e.outerRadius=t.outerRadius-t.radiusLength*e.index,e.innerRadius=e.outerRadius-t.radiusLength},updateElement:function(e,t,n){var i=this,r=i.chart,s=i.getDataset(),o=r.options,a=o.animation,c=r.scale,l=r.data.labels,u=c.xCenter,d=c.yCenter,h=o.startAngle,f=e.hidden?0:c.getDistanceFromCenterForValue(s.data[t]),p=i._starts[t],m=p+(e.hidden?0:i._angles[t]),b=a.animateScale?0:c.getDistanceFromCenterForValue(s.data[t]),g=e._options||{};z.extend(e,{_datasetIndex:i.index,_index:t,_scale:c,_model:{backgroundColor:g.backgroundColor,borderColor:g.borderColor,borderWidth:g.borderWidth,borderAlign:g.borderAlign,x:u,y:d,innerRadius:0,outerRadius:n?b:f,startAngle:n&&a.animateRotate?h:p,endAngle:n&&a.animateRotate?h:m,label:z.valueAtIndexOrDefault(l,t,l[t])}}),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),n=0;return z.each(t.data,function(t,i){isNaN(e.data[i])||t.hidden||n++}),n},setHoverStyle:function(e){var t=e._model,n=e._options,i=z.getHoverColor,r=z.valueOrDefault;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=r(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=r(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=r(n.hoverBorderWidth,n.borderWidth)},_computeAngle:function(e){var t=this,n=this.getMeta().count,i=t.getDataset(),r=t.getMeta();return isNaN(i.data[e])||r.data[e].hidden?0:Ne([t.chart.options.elements.arc.angle,2*Math.PI/n],{chart:t.chart,dataIndex:e,dataset:i,datasetIndex:t.index},e)}});F._set("pie",z.clone(F.doughnut)),F._set("pie",{cutoutPercentage:0});var $e=Ee,He=z.valueOrDefault;F._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var Xe=ee.extend({datasetElementType:ge.Line,dataElementType:ge.Point,linkScales:z.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,i=this,r=i.getMeta(),s=r.dataset,o=r.data||[],a=i.chart.scale,c=i._config;for(void 0!==c.tension&&void 0===c.lineTension&&(c.lineTension=c.tension),s._scale=a,s._datasetIndex=i.index,s._children=o,s._loop=!0,s._model=i._resolveDatasetElementOptions(s),s.pivot(),t=0,n=o.length;t<n;++t)i.updateElement(o[t],t,e);for(i.updateBezierControlPoints(),t=0,n=o.length;t<n;++t)o[t].pivot()},updateElement:function(e,t,n){var i=this,r=e.custom||{},s=i.getDataset(),o=i.chart.scale,a=o.getPointPositionForValue(t,s.data[t]),c=i._resolveDataElementOptions(e,t),l=i.getMeta().dataset._model,u=n?o.xCenter:a.x,d=n?o.yCenter:a.y;e._scale=o,e._options=c,e._datasetIndex=i.index,e._index=t,e._model={x:u,y:d,skip:r.skip||isNaN(u)||isNaN(d),radius:c.radius,pointStyle:c.pointStyle,rotation:c.rotation,backgroundColor:c.backgroundColor,borderColor:c.borderColor,borderWidth:c.borderWidth,tension:He(r.tension,l?l.tension:0),hitRadius:c.hitRadius}},_resolveDatasetElementOptions:function(){var e=this,t=e._config,n=e.chart.options,i=ee.prototype._resolveDatasetElementOptions.apply(e,arguments);return i.spanGaps=He(t.spanGaps,n.spanGaps),i.tension=He(t.lineTension,n.elements.line.tension),i},updateBezierControlPoints:function(){var e,t,n,i,r=this.getMeta(),s=this.chart.chartArea,o=r.data||[];function a(e,t,n){return Math.max(Math.min(e,n),t)}for(r.dataset._model.spanGaps&&(o=o.filter(function(e){return!e._model.skip})),e=0,t=o.length;e<t;++e)n=o[e]._model,i=z.splineCurve(z.previousItem(o,e,!0)._model,n,z.nextItem(o,e,!0)._model,n.tension),n.controlPointPreviousX=a(i.previous.x,s.left,s.right),n.controlPointPreviousY=a(i.previous.y,s.top,s.bottom),n.controlPointNextX=a(i.next.x,s.left,s.right),n.controlPointNextY=a(i.next.y,s.top,s.bottom)},setHoverStyle:function(e){var t=e._model,n=e._options,i=z.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=He(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=He(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=He(n.hoverBorderWidth,n.borderWidth),t.radius=He(n.hoverRadius,n.radius)}});F._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}}),F._set("global",{datasets:{scatter:{showLine:!1}}});var Ve={bar:Se,bubble:Te,doughnut:Ee,horizontalBar:Ae,line:Ye,polarArea:ze,pie:$e,radar:Xe,scatter:Ye};function Be(e,t){return e.native?{x:e.x,y:e.y}:z.getRelativePosition(e,t)}function Ue(e,t){var n,i,r,s,o,a,c=e._getSortedVisibleDatasetMetas();for(i=0,s=c.length;i<s;++i)for(r=0,o=(n=c[i].data).length;r<o;++r)(a=n[r])._view.skip||t(a)}function qe(e,t){var n=[];return Ue(e,function(e){e.inRange(t.x,t.y)&&n.push(e)}),n}function Ge(e,t,n,i){var r=Number.POSITIVE_INFINITY,s=[];return Ue(e,function(e){if(!n||e.inRange(t.x,t.y)){var o=e.getCenterPoint(),a=i(t,o);a<r?(s=[e],r=a):a===r&&s.push(e)}}),s}function Je(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,i){var r=t?Math.abs(e.x-i.x):0,s=n?Math.abs(e.y-i.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(s,2))}}function Ke(e,t,n){var i=Be(t,e);n.axis=n.axis||"x";var r=Je(n.axis),s=n.intersect?qe(e,i):Ge(e,i,!1,r),o=[];return s.length?(e._getSortedVisibleDatasetMetas().forEach(function(e){var t=e.data[s[0]._index];t&&!t._view.skip&&o.push(t)}),o):[]}var Qe={modes:{single:function(e,t){var n=Be(t,e),i=[];return Ue(e,function(e){if(e.inRange(n.x,n.y))return i.push(e),i}),i.slice(0,1)},label:Ke,index:Ke,dataset:function(e,t,n){var i=Be(t,e);n.axis=n.axis||"xy";var r=Je(n.axis),s=n.intersect?qe(e,i):Ge(e,i,!1,r);return s.length>0&&(s=e.getDatasetMeta(s[0]._datasetIndex).data),s},"x-axis":function(e,t){return Ke(e,t,{intersect:!1})},point:function(e,t){return qe(e,Be(t,e))},nearest:function(e,t,n){var i=Be(t,e);n.axis=n.axis||"xy";var r=Je(n.axis);return Ge(e,i,n.intersect,r)},x:function(e,t,n){var i=Be(t,e),r=[],s=!1;return Ue(e,function(e){e.inXRange(i.x)&&r.push(e),e.inRange(i.x,i.y)&&(s=!0)}),n.intersect&&!s&&(r=[]),r},y:function(e,t,n){var i=Be(t,e),r=[],s=!1;return Ue(e,function(e){e.inYRange(i.y)&&r.push(e),e.inRange(i.x,i.y)&&(s=!0)}),n.intersect&&!s&&(r=[]),r}}},Ze=z.extend;function et(e,t){return z.where(e,function(e){return e.pos===t})}function tt(e,t){return e.sort(function(e,n){var i=t?n:e,r=t?e:n;return i.weight===r.weight?i.index-r.index:i.weight-r.weight})}function nt(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function it(e,t,n){var i,r,s=n.box,o=e.maxPadding;if(n.size&&(e[n.pos]-=n.size),n.size=n.horizontal?s.height:s.width,e[n.pos]+=n.size,s.getPadding){var a=s.getPadding();o.top=Math.max(o.top,a.top),o.left=Math.max(o.left,a.left),o.bottom=Math.max(o.bottom,a.bottom),o.right=Math.max(o.right,a.right)}if(i=t.outerWidth-nt(o,e,"left","right"),r=t.outerHeight-nt(o,e,"top","bottom"),i!==e.w||r!==e.h){e.w=i,e.h=r;var c=n.horizontal?[i,e.w]:[r,e.h];return!(c[0]===c[1]||isNaN(c[0])&&isNaN(c[1]))}}function rt(e,t){var n,i=t.maxPadding;return n={left:0,top:0,right:0,bottom:0},(e?["left","right"]:["top","bottom"]).forEach(function(e){n[e]=Math.max(t[e],i[e])}),n}function st(e,t,n){var i,r,s,o,a,c,l=[];for(i=0,r=e.length;i<r;++i)(o=(s=e[i]).box).update(s.width||t.w,s.height||t.h,rt(s.horizontal,t)),it(t,n,s)&&(c=!0,l.length&&(a=!0)),o.fullWidth||l.push(s);return a&&st(l,t,n)||c}function ot(e,t,n){var i,r,s,o,a=n.padding,c=t.x,l=t.y;for(i=0,r=e.length;i<r;++i)o=(s=e[i]).box,s.horizontal?(o.left=o.fullWidth?a.left:t.left,o.right=o.fullWidth?n.outerWidth-a.right:t.left+t.w,o.top=l,o.bottom=l+o.height,o.width=o.right-o.left,l=o.bottom):(o.left=c,o.right=c+o.width,o.top=t.top,o.bottom=t.top+t.h,o.height=o.bottom-o.top,c=o.right);t.x=c,t.y=l}F._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var at,ct={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw:function(){t.draw.apply(t,arguments)}}]},e.boxes.push(t)},removeBox:function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure:function(e,t,n){for(var i,r=["fullWidth","position","weight"],s=r.length,o=0;o<s;++o)n.hasOwnProperty(i=r[o])&&(t[i]=n[i])},update:function(e,t,n){if(e){var i=z.options.toPadding((e.options.layout||{}).padding),r=t-i.width,s=n-i.height,o=function(e){var t=function(e){var t,n,i,r=[];for(t=0,n=(e||[]).length;t<n;++t)r.push({index:t,box:i=e[t],pos:i.position,horizontal:i.isHorizontal(),weight:i.weight});return r}(e),n=tt(et(t,"left"),!0),i=tt(et(t,"right")),r=tt(et(t,"top"),!0),s=tt(et(t,"bottom"));return{leftAndTop:n.concat(r),rightAndBottom:i.concat(s),chartArea:et(t,"chartArea"),vertical:n.concat(i),horizontal:r.concat(s)}}(e.boxes),a=o.vertical,c=o.horizontal,l=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:r,vBoxMaxWidth:r/2/a.length,hBoxMaxHeight:s/2}),u=Ze({maxPadding:Ze({},i),w:r,h:s,x:i.left,y:i.top},i);(function(e,t){var n,i,r;for(n=0,i=e.length;n<i;++n)(r=e[n]).width=r.horizontal?r.box.fullWidth&&t.availableWidth:t.vBoxMaxWidth,r.height=r.horizontal&&t.hBoxMaxHeight})(a.concat(c),l),st(a,u,l),st(c,u,l)&&st(a,u,l),function(e){var t=e.maxPadding;function n(n){var i=Math.max(t[n]-e[n],0);return e[n]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(u),ot(o.leftAndTop,u,l),u.x+=u.w,u.y+=u.h,ot(o.rightAndBottom,u,l),e.chartArea={left:u.left,top:u.top,right:u.left+u.w,bottom:u.top+u.h},z.each(o.chartArea,function(t){var n=t.box;Ze(n,e.chartArea),n.update(u.w,u.h)})}}},lt=(at=Object.freeze({__proto__:null,default:"/*\r\n * DOM element rendering detection\r\n * https://davidwalsh.name/detect-node-insertion\r\n */\r\n@keyframes chartjs-render-animation {\r\n\tfrom { opacity: 0.99; }\r\n\tto { opacity: 1; }\r\n}\r\n\r\n.chartjs-render-monitor {\r\n\tanimation: chartjs-render-animation 0.001s;\r\n}\r\n\r\n/*\r\n * DOM element resizing detection\r\n * https://github.com/marcj/css-element-queries\r\n */\r\n.chartjs-size-monitor,\r\n.chartjs-size-monitor-expand,\r\n.chartjs-size-monitor-shrink {\r\n\tposition: absolute;\r\n\tdirection: ltr;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\tvisibility: hidden;\r\n\tz-index: -1;\r\n}\r\n\r\n.chartjs-size-monitor-expand > div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n"}))&&at.default||at,ut="chartjs-size-monitor",dt="chartjs-render-monitor",ht=["animationstart","webkitAnimationStart"],ft={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function pt(e,t){var n=z.getStyle(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):void 0}var mt=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(n){}return e}()&&{passive:!0};function bt(e,t,n){e.addEventListener(t,n,mt)}function gt(e,t,n){e.removeEventListener(t,n,mt)}function _t(e,t,n,i,r){return{type:e,chart:t,native:r||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function vt(e){var t=document.createElement("div");return t.className=e||"",t}var yt={disableCSSInjection:!1,_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,_ensureLoaded:function(e){if(!this.disableCSSInjection){var t=e.getRootNode?e.getRootNode():document;!function(e,t){var n=e.$chartjs||(e.$chartjs={});if(!n.containsStyles){n.containsStyles=!0,t="/* Chart.js */\n"+t;var i=document.createElement("style");i.setAttribute("type","text/css"),i.appendChild(document.createTextNode(t)),e.appendChild(i)}}(t.host?t:document.head,lt)}},acquireContext:function(e,t){"string"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(this._ensureLoaded(e),function(e,t){var n=e.style,i=e.getAttribute("height"),r=e.getAttribute("width");if(e.$chartjs={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===r||""===r){var s=pt(e,"width");void 0!==s&&(e.width=s)}if(null===i||""===i)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var o=pt(e,"height");void 0!==s&&(e.height=o)}}(e,t),n):null},releaseContext:function(e){var t=e.canvas;if(t.$chartjs){var n=t.$chartjs.initial;["height","width"].forEach(function(e){var i=n[e];z.isNullOrUndef(i)?t.removeAttribute(e):t.setAttribute(e,i)}),z.each(n.style||{},function(e,n){t.style[n]=e}),t.width=t.width,delete t.$chartjs}},addEventListener:function(e,t,n){var i=e.canvas;if("resize"!==t){var r=n.$chartjs||(n.$chartjs={});bt(i,t,(r.proxies||(r.proxies={}))[e.id+"_"+t]=function(t){n(function(e,t){var n=ft[e.type]||e.type,i=z.getRelativePosition(e,t);return _t(n,t,i.x,i.y,e)}(t,e))})}else!function(e,t,n){var i,r,s,o,a=e.$chartjs||(e.$chartjs={}),c=a.resizer=function(e){var t=1e6,n=vt(ut),i=vt(ut+"-expand"),r=vt(ut+"-shrink");i.appendChild(vt()),r.appendChild(vt()),n.appendChild(i),n.appendChild(r),n._reset=function(){i.scrollLeft=t,i.scrollTop=t,r.scrollLeft=t,r.scrollTop=t};var s=function(){n._reset(),e()};return bt(i,"scroll",s.bind(i,"expand")),bt(r,"scroll",s.bind(r,"shrink")),n}((i=function(){if(a.resizer){var i=n.options.maintainAspectRatio&&e.parentNode,r=i?i.clientWidth:0;t(_t("resize",n)),i&&i.clientWidth<r&&n.canvas&&t(_t("resize",n))}},s=!1,o=[],function(){o=Array.prototype.slice.call(arguments),r=r||this,s||(s=!0,z.requestAnimFrame.call(window,function(){s=!1,i.apply(r,o)}))}));!function(e,t){var n=e.$chartjs||(e.$chartjs={}),i=n.renderProxy=function(e){"chartjs-render-animation"===e.animationName&&t()};z.each(ht,function(t){bt(e,t,i)}),n.reflow=!!e.offsetParent,e.classList.add(dt)}(e,function(){if(a.resizer){var t=e.parentNode;t&&t!==c.parentNode&&t.insertBefore(c,t.firstChild),c._reset()}})}(i,n,e)},removeEventListener:function(e,t,n){var i,r,s,o=e.canvas;if("resize"!==t){var a=((n.$chartjs||{}).proxies||{})[e.id+"_"+t];a&&gt(o,t,a)}else s=(r=(i=o).$chartjs||{}).resizer,delete r.resizer,function(e){var t=e.$chartjs||{},n=t.renderProxy;n&&(z.each(ht,function(t){gt(e,t,n)}),delete t.renderProxy),e.classList.remove(dt)}(i),s&&s.parentNode&&s.parentNode.removeChild(s)}};z.addEvent=bt,z.removeEvent=gt;var wt=z.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},yt._enabled?yt:{acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}});F._set("global",{plugins:{}});var Dt={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach(function(e){-1===t.indexOf(e)&&t.push(e)}),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach(function(e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,n){var i,r,s,o,a,c=this.descriptors(e),l=c.length;for(i=0;i<l;++i)if("function"==typeof(a=(s=(r=c[i]).plugin)[t])&&((o=[e].concat(n||[])).push(r.options),!1===a.apply(s,o)))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var n=[],i=[],r=e&&e.config||{},s=r.options&&r.options.plugins||{};return this._plugins.concat(r.plugins||[]).forEach(function(e){if(-1===n.indexOf(e)){var t=e.id,r=s[t];!1!==r&&(!0===r&&(r=z.clone(F.global.plugins[t])),n.push(e),i.push({plugin:e,options:r||{}}))}}),t.descriptors=i,t.id=this._cacheId,i},_invalidate:function(e){delete e.$plugins}},St={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=z.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?z.merge(Object.create(null),[F.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){var n=this;n.defaults.hasOwnProperty(e)&&(n.defaults[e]=z.extend(n.defaults[e],t))},addScalesToLayout:function(e){z.each(e.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,ct.addBox(e,t)})}},xt=z.valueOrDefault,kt=z.rtl.getRtlAdapter;F._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:z.noop,title:function(e,t){var n="",i=t.labels,r=i?i.length:0;if(e.length>0){var s=e[0];s.label?n=s.label:s.xLabel?n=s.xLabel:r>0&&s.index<r&&(n=i[s.index])}return n},afterTitle:z.noop,beforeBody:z.noop,beforeLabel:z.noop,label:function(e,t){var n=t.datasets[e.datasetIndex].label||"";return n&&(n+=": "),z.isNullOrUndef(e.value)?n+=e.yLabel:n+=e.value,n},labelColor:function(e,t){var n=t.getDatasetMeta(e.datasetIndex).data[e.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:z.noop,afterBody:z.noop,beforeFooter:z.noop,footer:z.noop,afterFooter:z.noop}}});var Tt={average:function(e){if(!e.length)return!1;var t,n,i=0,r=0,s=0;for(t=0,n=e.length;t<n;++t){var o=e[t];if(o&&o.hasValue()){var a=o.tooltipPosition();i+=a.x,r+=a.y,++s}}return{x:i/s,y:r/s}},nearest:function(e,t){var n,i,r,s=t.x,o=t.y,a=Number.POSITIVE_INFINITY;for(n=0,i=e.length;n<i;++n){var c=e[n];if(c&&c.hasValue()){var l=c.getCenterPoint(),u=z.distanceBetweenPoints(t,l);u<a&&(a=u,r=c)}}if(r){var d=r.tooltipPosition();s=d.x,o=d.y}return{x:s,y:o}}};function Mt(e,t){return t&&(z.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Ct(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function Ot(e){var t=F.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:xt(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:xt(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:xt(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:xt(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:xt(e.titleFontStyle,t.defaultFontStyle),titleFontSize:xt(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:xt(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:xt(e.footerFontStyle,t.defaultFontStyle),footerFontSize:xt(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function Lt(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function Et(e){return Mt([],Ct(e))}var At=B.extend({initialize:function(){this._model=Ot(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options.callbacks,n=t.beforeTitle.apply(e,arguments),i=t.title.apply(e,arguments),r=t.afterTitle.apply(e,arguments),s=[];return s=Mt(s,Ct(n)),s=Mt(s,Ct(i)),Mt(s,Ct(r))},getBeforeBody:function(){return Et(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,i=n._options.callbacks,r=[];return z.each(e,function(e){var s={before:[],lines:[],after:[]};Mt(s.before,Ct(i.beforeLabel.call(n,e,t))),Mt(s.lines,i.label.call(n,e,t)),Mt(s.after,Ct(i.afterLabel.call(n,e,t))),r.push(s)}),r},getAfterBody:function(){return Et(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,n=t.beforeFooter.apply(e,arguments),i=t.footer.apply(e,arguments),r=t.afterFooter.apply(e,arguments),s=[];return s=Mt(s,Ct(n)),s=Mt(s,Ct(i)),Mt(s,Ct(r))},update:function(e){var t,n,i,r,s,o,a,c,l,u,d=this,h=d._options,f=d._model,p=d._model=Ot(h),m=d._active,b=d._data,g={xAlign:f.xAlign,yAlign:f.yAlign},_={x:f.x,y:f.y},v={width:f.width,height:f.height},y={x:f.caretX,y:f.caretY};if(m.length){p.opacity=1;var w=[],D=[];y=Tt[h.position].call(d,m,d._eventPosition);var S=[];for(t=0,n=m.length;t<n;++t)S.push((r=void 0,s=void 0,void 0,void 0,c=void 0,l=void 0,u=void 0,r=(i=m[t])._xScale,s=i._yScale||i._scale,o=i._index,l=(c=i._chart.getDatasetMeta(a=i._datasetIndex).controller)._getIndexScale(),u=c._getValueScale(),{xLabel:r?r.getLabelForIndex(o,a):"",yLabel:s?s.getLabelForIndex(o,a):"",label:l?""+l.getLabelForIndex(o,a):"",value:u?""+u.getLabelForIndex(o,a):"",index:o,datasetIndex:a,x:i._model.x,y:i._model.y}));h.filter&&(S=S.filter(function(e){return h.filter(e,b)})),h.itemSort&&(S=S.sort(function(e,t){return h.itemSort(e,t,b)})),z.each(S,function(e){w.push(h.callbacks.labelColor.call(d,e,d._chart)),D.push(h.callbacks.labelTextColor.call(d,e,d._chart))}),p.title=d.getTitle(S,b),p.beforeBody=d.getBeforeBody(S,b),p.body=d.getBody(S,b),p.afterBody=d.getAfterBody(S,b),p.footer=d.getFooter(S,b),p.x=y.x,p.y=y.y,p.caretPadding=h.caretPadding,p.labelColors=w,p.labelTextColors=D,p.dataPoints=S,_=function(e,t,n,i){var r=e.x,s=e.y,o=e.caretPadding,a=n.xAlign,c=n.yAlign,l=e.caretSize+o,u=e.cornerRadius+o;return"right"===a?r-=t.width:"center"===a&&((r-=t.width/2)+t.width>i.width&&(r=i.width-t.width),r<0&&(r=0)),"top"===c?s+=l:s-="bottom"===c?t.height+l:t.height/2,"center"===c?"left"===a?r+=l:"right"===a&&(r-=l):"left"===a?r-=u:"right"===a&&(r+=u),{x:r,y:s}}(p,v=function(e,t){var n=e._chart.ctx,i=2*t.yPadding,r=0,s=t.body,o=s.reduce(function(e,t){return e+t.before.length+t.lines.length+t.after.length},0),a=t.title.length,c=t.footer.length,l=t.titleFontSize,u=t.bodyFontSize,d=t.footerFontSize;i+=a*l,i+=a?(a-1)*t.titleSpacing:0,i+=a?t.titleMarginBottom:0,i+=(o+=t.beforeBody.length+t.afterBody.length)*u,i+=o?(o-1)*t.bodySpacing:0,i+=c?t.footerMarginTop:0,i+=c*d,i+=c?(c-1)*t.footerSpacing:0;var h=0,f=function(e){r=Math.max(r,n.measureText(e).width+h)};return n.font=z.fontString(l,t._titleFontStyle,t._titleFontFamily),z.each(t.title,f),n.font=z.fontString(u,t._bodyFontStyle,t._bodyFontFamily),z.each(t.beforeBody.concat(t.afterBody),f),h=t.displayColors?u+2:0,z.each(s,function(e){z.each(e.before,f),z.each(e.lines,f),z.each(e.after,f)}),h=0,n.font=z.fontString(d,t._footerFontStyle,t._footerFontFamily),z.each(t.footer,f),{width:r+=2*t.xPadding,height:i}}(this,p),g=function(e,t){var n,i,r,s,o,a=e._model,c=e._chart,l=e._chart.chartArea,u="center",d="center";a.y<t.height?d="top":a.y>c.height-t.height&&(d="bottom");var h=(l.left+l.right)/2,f=(l.top+l.bottom)/2;"center"===d?(n=function(e){return e<=h},i=function(e){return e>h}):(n=function(e){return e<=t.width/2},i=function(e){return e>=c.width-t.width/2}),r=function(e){return e+t.width+a.caretSize+a.caretPadding>c.width},s=function(e){return e-t.width-a.caretSize-a.caretPadding<0},o=function(e){return e<=f?"top":"bottom"},n(a.x)?(u="left",r(a.x)&&(u="center",d=o(a.y))):i(a.x)&&(u="right",s(a.x)&&(u="center",d=o(a.y)));var p=e._options;return{xAlign:p.xAlign?p.xAlign:u,yAlign:p.yAlign?p.yAlign:d}}(this,v),d._chart)}else p.opacity=0;return p.xAlign=g.xAlign,p.yAlign=g.yAlign,p.x=_.x,p.y=_.y,p.width=v.width,p.height=v.height,p.caretX=y.x,p.caretY=y.y,d._model=p,e&&h.custom&&h.custom.call(d,p),d},drawCaret:function(e,t){var n=this._chart.ctx,i=this.getCaretPosition(e,t,this._view);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)},getCaretPosition:function(e,t,n){var i,r,s,o,a,c,l=n.caretSize,u=n.cornerRadius,d=n.xAlign,h=n.yAlign,f=e.x,p=e.y,m=t.width,b=t.height;if("center"===h)a=p+b/2,"left"===d?(r=(i=f)-l,s=i,o=a+l,c=a-l):(r=(i=f+m)+l,s=i,o=a-l,c=a+l);else if("left"===d?(i=(r=f+u+l)-l,s=r+l):"right"===d?(i=(r=f+m-u-l)-l,s=r+l):(i=(r=n.caretX)-l,s=r+l),"top"===h)a=(o=p)-l,c=o;else{a=(o=p+b)+l,c=o;var g=s;s=i,i=g}return{x1:i,x2:r,x3:s,y1:o,y2:a,y3:c}},drawTitle:function(e,t,n){var i,r,s,o=t.title,a=o.length;if(a){var c=kt(t.rtl,t.x,t.width);for(e.x=Lt(t,t._titleAlign),n.textAlign=c.textAlign(t._titleAlign),n.textBaseline="middle",i=t.titleFontSize,r=t.titleSpacing,n.fillStyle=t.titleFontColor,n.font=z.fontString(i,t._titleFontStyle,t._titleFontFamily),s=0;s<a;++s)n.fillText(o[s],c.x(e.x),e.y+i/2),e.y+=i+r,s+1===a&&(e.y+=t.titleMarginBottom-r)}},drawBody:function(e,t,n){var i,r,s,o,a,c,l,u,d=t.bodyFontSize,h=t.bodySpacing,f=t._bodyAlign,p=t.body,m=t.displayColors,b=0,g=m?Lt(t,"left"):0,_=kt(t.rtl,t.x,t.width),v=function(t){n.fillText(t,_.x(e.x+b),e.y+d/2),e.y+=d+h},y=_.textAlign(f);for(n.textAlign=f,n.textBaseline="middle",n.font=z.fontString(d,t._bodyFontStyle,t._bodyFontFamily),e.x=Lt(t,y),n.fillStyle=t.bodyFontColor,z.each(t.beforeBody,v),b=m&&"right"!==y?"center"===f?d/2+1:d+2:0,a=0,l=p.length;a<l;++a){for(i=p[a],s=t.labelColors[a],n.fillStyle=r=t.labelTextColors[a],z.each(i.before,v),c=0,u=(o=i.lines).length;c<u;++c){if(m){var w=_.x(g);n.fillStyle=t.legendColorBackground,n.fillRect(_.leftForLtr(w,d),e.y,d,d),n.lineWidth=1,n.strokeStyle=s.borderColor,n.strokeRect(_.leftForLtr(w,d),e.y,d,d),n.fillStyle=s.backgroundColor,n.fillRect(_.leftForLtr(_.xPlus(w,1),d-2),e.y+1,d-2,d-2),n.fillStyle=r}v(o[c])}z.each(i.after,v)}b=0,z.each(t.afterBody,v),e.y-=h},drawFooter:function(e,t,n){var i,r,s=t.footer,o=s.length;if(o){var a=kt(t.rtl,t.x,t.width);for(e.x=Lt(t,t._footerAlign),e.y+=t.footerMarginTop,n.textAlign=a.textAlign(t._footerAlign),n.textBaseline="middle",i=t.footerFontSize,n.fillStyle=t.footerFontColor,n.font=z.fontString(i,t._footerFontStyle,t._footerFontFamily),r=0;r<o;++r)n.fillText(s[r],a.x(e.x),e.y+i/2),e.y+=i+t.footerSpacing}},drawBackground:function(e,t,n,i){n.fillStyle=t.backgroundColor,n.strokeStyle=t.borderColor,n.lineWidth=t.borderWidth;var r=t.xAlign,s=t.yAlign,o=e.x,a=e.y,c=i.width,l=i.height,u=t.cornerRadius;n.beginPath(),n.moveTo(o+u,a),"top"===s&&this.drawCaret(e,i),n.lineTo(o+c-u,a),n.quadraticCurveTo(o+c,a,o+c,a+u),"center"===s&&"right"===r&&this.drawCaret(e,i),n.lineTo(o+c,a+l-u),n.quadraticCurveTo(o+c,a+l,o+c-u,a+l),"bottom"===s&&this.drawCaret(e,i),n.lineTo(o+u,a+l),n.quadraticCurveTo(o,a+l,o,a+l-u),"center"===s&&"left"===r&&this.drawCaret(e,i),n.lineTo(o,a+u),n.quadraticCurveTo(o,a,o+u,a),n.closePath(),n.fill(),t.borderWidth>0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},i={x:t.x,y:t.y},r=Math.abs(t.opacity<.001)?0:t.opacity;this._options.enabled&&(t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length)&&(e.save(),e.globalAlpha=r,this.drawBackground(i,t,e,n),i.y+=t.yPadding,z.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(i,t,e),this.drawBody(i,t,e),this.drawFooter(i,t,e),z.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t,n=this,i=n._options;return n._lastActive=n._lastActive||[],"mouseout"===e.type?n._active=[]:(n._active=n._chart.getElementsAtEventForMode(e,i.mode,i),i.reverse&&n._active.reverse()),(t=!z.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(i.enabled||i.custom)&&(n._eventPosition={x:e.x,y:e.y},n.update(!0),n.pivot())),t}});At.positioners=Tt;var It=z.valueOrDefault;function Rt(){return z.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,i){if("xAxes"===e||"yAxes"===e){var r,s,o,a=n[e].length;for(t[e]||(t[e]=[]),r=0;r<a;++r)s=It((o=n[e][r]).type,"xAxes"===e?"category":"linear"),r>=t[e].length&&t[e].push({}),z.merge(t[e][r],!t[e][r].type||o.type&&o.type!==t[e][r].type?[St.getScaleDefaults(s),o]:o)}else z._merger(e,t,n,i)}})}function Pt(){return z.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,i){var r=t[e]||Object.create(null),s=n[e];"scales"===e?t[e]=Rt(r,s):"scale"===e?t[e]=z.merge(r,[St.getScaleDefaults(s.type),s]):z._merger(e,t,n,i)}})}function Ft(e){var t=e.options;z.each(e.scales,function(t){ct.removeBox(e,t)}),t=Pt(F.global,F[e.config.type],t),e.options=e.config.options=t,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=t.tooltips,e.tooltip.initialize()}function Wt(e,t,n){var i,r=function(e){return e.id===i};do{i=t+n++}while(z.findIndex(e,r)>=0);return i}function jt(e){return"top"===e||"bottom"===e}function Yt(e,t){return function(n,i){return n[e]===i[e]?n[t]-i[t]:n[e]-i[e]}}F._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var Nt=function(e,t){return this.construct(e,t),this};z.extend(Nt.prototype,{construct:function(e,t){var n=this;t=function(e){var t=(e=e||Object.create(null)).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Pt(F.global,F[e.type],e.options||{}),e}(t);var i=wt.acquireContext(e,t),r=i&&i.canvas,s=r&&r.height,o=r&&r.width;n.id=z.uid(),n.ctx=i,n.canvas=r,n.config=t,n.width=o,n.height=s,n.aspectRatio=s?o/s:null,n.options=t.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,Nt.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(e){n.config.data=e}}),i&&r?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return Dt.notify(e,"beforeInit"),z.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),Dt.notify(e,"afterInit"),e},clear:function(){return z.canvas.clear(this),this},stop:function(){return G.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,i=t.canvas,r=n.maintainAspectRatio&&t.aspectRatio||null,s=Math.max(0,Math.floor(z.getMaximumWidth(i))),o=Math.max(0,Math.floor(r?s/r:z.getMaximumHeight(i)));if((t.width!==s||t.height!==o)&&(i.width=t.width=s,i.height=t.height=o,i.style.width=s+"px",i.style.height=o+"px",z.retinaScale(t,n.devicePixelRatio),!e)){var a={width:s,height:o};Dt.notify(t,"resize",[a]),n.onResize&&n.onResize(t,a),t.stop(),t.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;z.each(t.xAxes,function(e,n){e.id||(e.id=Wt(t.xAxes,"x-axis-",n))}),z.each(t.yAxes,function(e,n){e.id||(e.id=Wt(t.yAxes,"y-axis-",n))}),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,n=e.scales||{},i=[],r=Object.keys(n).reduce(function(e,t){return e[t]=!1,e},{});t.scales&&(i=i.concat((t.scales.xAxes||[]).map(function(e){return{options:e,dtype:"category",dposition:"bottom"}}),(t.scales.yAxes||[]).map(function(e){return{options:e,dtype:"linear",dposition:"left"}}))),t.scale&&i.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),z.each(i,function(t){var i=t.options,s=i.id,o=It(i.type,t.dtype);jt(i.position)!==jt(t.dposition)&&(i.position=t.dposition),r[s]=!0;var a=null;if(s in n&&n[s].type===o)(a=n[s]).options=i,a.ctx=e.ctx,a.chart=e;else{var c=St.getScaleConstructor(o);if(!c)return;a=new c({id:s,type:o,options:i,ctx:e.ctx,chart:e}),n[a.id]=a}a.mergeTicksOptions(),t.isDefault&&(e.scale=a)}),z.each(r,function(e,t){e||delete n[t]}),e.scales=n,St.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,n=this,i=[],r=n.data.datasets;for(e=0,t=r.length;e<t;e++){var s=r[e],o=n.getDatasetMeta(e),a=s.type||n.config.type;if(o.type&&o.type!==a&&(n.destroyDatasetMeta(e),o=n.getDatasetMeta(e)),o.type=a,o.order=s.order||0,o.index=e,o.controller)o.controller.updateIndex(e),o.controller.linkScales();else{var c=Ve[o.type];if(void 0===c)throw new Error('"'+o.type+'" is not a chart type.');o.controller=new c(n,e),i.push(o.controller)}}return i},resetElements:function(){var e=this;z.each(e.data.datasets,function(t,n){e.getDatasetMeta(n).controller.reset()},e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var t,n,i=this;if(e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]}),Ft(i),Dt._invalidate(i),!1!==Dt.notify(i,"beforeUpdate")){i.tooltip._data=i.data;var r=i.buildOrUpdateControllers();for(t=0,n=i.data.datasets.length;t<n;t++)i.getDatasetMeta(t).controller.buildOrUpdateElements();i.updateLayout(),i.options.animation&&i.options.animation.duration&&z.each(r,function(e){e.reset()}),i.updateDatasets(),i.tooltip.initialize(),i.lastActive=[],Dt.notify(i,"afterUpdate"),i._layers.sort(Yt("z","_idx")),i._bufferedRender?i._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:i.render(e)}},updateLayout:function(){var e=this;!1!==Dt.notify(e,"beforeLayout")&&(ct.update(this,this.width,this.height),e._layers=[],z.each(e.boxes,function(t){t._configure&&t._configure(),e._layers.push.apply(e._layers,t._layers())},e),e._layers.forEach(function(e,t){e._idx=t}),Dt.notify(e,"afterScaleUpdate"),Dt.notify(e,"afterLayout"))},updateDatasets:function(){var e=this;if(!1!==Dt.notify(e,"beforeDatasetsUpdate")){for(var t=0,n=e.data.datasets.length;t<n;++t)e.updateDataset(t);Dt.notify(e,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this,n=t.getDatasetMeta(e),i={meta:n,index:e};!1!==Dt.notify(t,"beforeDatasetUpdate",[i])&&(n.controller._update(),Dt.notify(t,"afterDatasetUpdate",[i]))},render:function(e){var t=this;e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]});var n=t.options.animation,i=It(e.duration,n&&n.duration),r=e.lazy;if(!1!==Dt.notify(t,"beforeRender")){var s=function(e){Dt.notify(t,"afterRender"),z.callback(n&&n.onComplete,[e],t)};if(n&&i){var o=new q({numSteps:i/16.66,easing:e.easing||n.easing,render:function(e,t){var n=t.currentStep,i=n/t.numSteps;e.draw((0,z.easing.effects[t.easing])(i),i,n)},onAnimationProgress:n.onProgress,onAnimationComplete:s});G.addAnimation(t,o,i,r)}else t.draw(),s(new q({numSteps:0,chart:t}));return t}},draw:function(e){var t,n,i=this;if(i.clear(),z.isNullOrUndef(e)&&(e=1),i.transition(e),!(i.width<=0||i.height<=0)&&!1!==Dt.notify(i,"beforeDraw",[e])){for(n=i._layers,t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(i.chartArea);for(i.drawDatasets(e);t<n.length;++t)n[t].draw(i.chartArea);i._drawTooltip(e),Dt.notify(i,"afterDraw",[e])}},transition:function(e){for(var t=this,n=0,i=(t.data.datasets||[]).length;n<i;++n)t.isDatasetVisible(n)&&t.getDatasetMeta(n).controller.transition(e);t.tooltip.transition(e)},_getSortedDatasetMetas:function(e){var t,n,i=this,r=[];for(t=0,n=(i.data.datasets||[]).length;t<n;++t)e&&!i.isDatasetVisible(t)||r.push(i.getDatasetMeta(t));return r.sort(Yt("order","index")),r},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(e){var t,n,i=this;if(!1!==Dt.notify(i,"beforeDatasetsDraw",[e])){for(n=(t=i._getSortedVisibleDatasetMetas()).length-1;n>=0;--n)i.drawDataset(t[n],e);Dt.notify(i,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n={meta:e,index:e.index,easingValue:t};!1!==Dt.notify(this,"beforeDatasetDraw",[n])&&(e.controller.draw(t),Dt.notify(this,"afterDatasetDraw",[n]))},_drawTooltip:function(e){var t=this,n=t.tooltip,i={tooltip:n,easingValue:e};!1!==Dt.notify(t,"beforeTooltipDraw",[i])&&(n.draw(),Dt.notify(t,"afterTooltipDraw",[i]))},getElementAtEvent:function(e){return Qe.modes.single(this,e)},getElementsAtEvent:function(e){return Qe.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return Qe.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var i=Qe.modes[t];return"function"==typeof i?i(this,e,n):[]},getDatasetAtEvent:function(e){return Qe.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this,n=t.data.datasets[e];n._meta||(n._meta={});var i=n._meta[t.id];return i||(i=n._meta[t.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n.order||0,index:e}),i},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t<n;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,n=this.data.datasets[e],i=n._meta&&n._meta[t];i&&(i.controller.destroy(),delete n._meta[t])},destroy:function(){var e,t,n=this,i=n.canvas;for(n.stop(),e=0,t=n.data.datasets.length;e<t;++e)n.destroyDatasetMeta(e);i&&(n.unbindEvents(),z.canvas.clear(n),wt.releaseContext(n.ctx),n.canvas=null,n.ctx=null),Dt.notify(n,"destroy"),delete Nt.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new At({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var e=this,t=e._listeners={},n=function(){e.eventHandler.apply(e,arguments)};z.each(e.options.events,function(i){wt.addEventListener(e,i,n),t[i]=n}),e.options.responsive&&(n=function(){e.resize()},wt.addEventListener(e,"resize",n),t.resize=n)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,z.each(t,function(t,n){wt.removeEventListener(e,n,t)}))},updateHoverStyle:function(e,t,n){var i,r,s,o=n?"set":"remove";for(r=0,s=e.length;r<s;++r)(i=e[r])&&this.getDatasetMeta(i._datasetIndex).controller[o+"HoverStyle"](i);"dataset"===t&&this.getDatasetMeta(e[0]._datasetIndex).controller["_"+o+"DatasetHoverStyle"]()},eventHandler:function(e){var t=this,n=t.tooltip;if(!1!==Dt.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var i=t.handleEvent(e);n&&(i=n._start?n.handleEvent(e):i|n.handleEvent(e)),Dt.notify(t,"afterEvent",[e]);var r=t._bufferedRequest;return r?t.render(r):i&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var t,n=this,i=n.options||{},r=i.hover;return n.lastActive=n.lastActive||[],n.active="mouseout"===e.type?[]:n.getElementsAtEventForMode(e,r.mode,r),z.callback(i.onHover||i.hover.onHover,[e.native,n.active],n),"mouseup"!==e.type&&"click"!==e.type||i.onClick&&i.onClick.call(n,e.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,r.mode,!1),n.active.length&&r.mode&&n.updateHoverStyle(n.active,r.mode,!0),t=!z.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,t}}),Nt.instances={};var zt=Nt;function $t(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function Ht(e){this.options=e||{}}Nt.Controller=Nt,Nt.types={},z.configMerge=Pt,z.scaleMerge=Rt,z.extend(Ht.prototype,{formats:$t,parse:$t,format:$t,add:$t,diff:$t,startOf:$t,endOf:$t,_create:function(e){return e}}),Ht.override=function(e){z.extend(Ht.prototype,e)};var Xt={_date:Ht},Vt={formatters:{values:function(e){return z.isArray(e)?e:""+e},linear:function(e,t,n){var i=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(i)>1&&e!==Math.floor(e)&&(i=e-Math.floor(e));var r=z.log10(Math.abs(i)),s="";if(0!==e)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var o=z.log10(Math.abs(e)),a=Math.floor(o)-Math.floor(r);a=Math.max(Math.min(a,20),0),s=e.toExponential(a)}else{var c=-1*Math.floor(r);c=Math.max(Math.min(c,20),0),s=e.toFixed(c)}else s="0";return s},logarithmic:function(e,t,n){var i=e/Math.pow(10,Math.floor(z.log10(e)));return 0===e?"0":1===i||2===i||5===i||0===t||t===n.length-1?e.toExponential():""}}},Bt=z.isArray,Ut=z.isNullOrUndef,qt=z.valueOrDefault,Gt=z.valueAtIndexOrDefault;function Jt(e,t,n){var i,r=e.getTicks().length,s=Math.min(t,r-1),o=e.getPixelForTick(s),a=e._startPixel,c=e._endPixel,l=1e-6;if(!(n&&(i=1===r?Math.max(o-a,c-o):0===t?(e.getPixelForTick(1)-o)/2:(o-e.getPixelForTick(s-1))/2,(o+=s<t?i:-i)<a-l||o>c+l)))return o}function Kt(e){return e.drawTicks?e.tickMarkLength:0}function Qt(e){var t,n;return e.display?(t=z.options._parseFont(e),n=z.options.toPadding(e.padding),t.lineHeight+n.height):0}function Zt(e,t){return z.extend(z.options._parseFont({fontFamily:qt(t.fontFamily,e.fontFamily),fontSize:qt(t.fontSize,e.fontSize),fontStyle:qt(t.fontStyle,e.fontStyle),lineHeight:qt(t.lineHeight,e.lineHeight)}),{color:z.options.resolve([t.fontColor,e.fontColor,F.global.defaultFontColor])})}function en(e){var t=Zt(e,e.minor);return{minor:t,major:e.major.enabled?Zt(e,e.major):t}}function tn(e){var t,n,i,r=[];for(n=0,i=e.length;n<i;++n)void 0!==(t=e[n])._index&&r.push(t);return r}function nn(e,t,n,i){var r,s,o,a,c=qt(n,0),l=Math.min(qt(i,e.length),e.length),u=0;for(t=Math.ceil(t),i&&(t=(r=i-n)/Math.floor(r/t)),a=c;a<0;)u++,a=Math.round(c+u*t);for(s=Math.max(c,0);s<l;s++)o=e[s],s===a?(o._index=s,u++,a=Math.round(c+u*t)):delete o.label}F._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:Vt.formatters.values,minor:{},major:{}}});var rn=B.extend({zeroLineIndex:0,getPadding:function(){var e=this;return{left:e.paddingLeft||0,top:e.paddingTop||0,right:e.paddingRight||0,bottom:e.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){z.callback(this.options.beforeUpdate,[this])},update:function(e,t,n){var i,r,s,o,a,c=this,l=c.options.ticks,u=l.sampleSize;if(c.beforeUpdate(),c.maxWidth=e,c.maxHeight=t,c.margins=z.extend({left:0,right:0,top:0,bottom:0},n),c._ticks=null,c.ticks=null,c._labelSizes=null,c._maxLabelLines=0,c.longestLabelWidth=0,c.longestTextCache=c.longestTextCache||{},c._gridLineItems=null,c._labelItems=null,c.beforeSetDimensions(),c.setDimensions(),c.afterSetDimensions(),c.beforeDataLimits(),c.determineDataLimits(),c.afterDataLimits(),c.beforeBuildTicks(),o=c.buildTicks()||[],(!(o=c.afterBuildTicks(o)||o)||!o.length)&&c.ticks)for(o=[],i=0,r=c.ticks.length;i<r;++i)o.push({value:c.ticks[i],major:!1});return c._ticks=o,s=c._convertTicksToLabels((a=u<o.length)?function(e,t){for(var n=[],i=e.length/t,r=0,s=e.length;r<s;r+=i)n.push(e[Math.floor(r)]);return n}(o,u):o),c._configure(),c.beforeCalculateTickRotation(),c.calculateTickRotation(),c.afterCalculateTickRotation(),c.beforeFit(),c.fit(),c.afterFit(),c._ticksToDraw=l.display&&(l.autoSkip||"auto"===l.source)?c._autoSkip(o):o,a&&(s=c._convertTicksToLabels(c._ticksToDraw)),c.ticks=s,c.afterUpdate(),c.minSize},_configure:function(){var e,t,n=this,i=n.options.ticks.reverse;n.isHorizontal()?(e=n.left,t=n.right):(e=n.top,t=n.bottom,i=!i),n._startPixel=e,n._endPixel=t,n._reversePixels=i,n._length=t-e},afterUpdate:function(){z.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){z.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){z.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){z.callback(this.options.beforeDataLimits,[this])},determineDataLimits:z.noop,afterDataLimits:function(){z.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){z.callback(this.options.beforeBuildTicks,[this])},buildTicks:z.noop,afterBuildTicks:function(e){var t=this;return Bt(e)&&e.length?z.callback(t.options.afterBuildTicks,[t,e]):(t.ticks=z.callback(t.options.afterBuildTicks,[t,t.ticks])||t.ticks,e)},beforeTickToLabelConversion:function(){z.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this,t=e.options.ticks;e.ticks=e.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){z.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){z.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e,t,n,i,r,s,o,a=this,c=a.options,l=c.ticks,u=a.getTicks().length,d=l.minRotation||0,h=l.maxRotation,f=d;!a._isVisible()||!l.display||d>=h||u<=1||!a.isHorizontal()?a.labelRotation=d:(t=(e=a._getLabelSizes()).widest.width,n=e.highest.height-e.highest.offset,i=Math.min(a.maxWidth,a.chart.width-t),t+6>(r=c.offset?a.maxWidth/u:i/(u-1))&&(r=i/(u-(c.offset?.5:1)),s=a.maxHeight-Kt(c.gridLines)-l.padding-Qt(c.scaleLabel),o=Math.sqrt(t*t+n*n),f=z.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/r,1)),Math.asin(Math.min(s/o,1))-Math.asin(n/o))),f=Math.max(d,Math.min(h,f))),a.labelRotation=f)},afterCalculateTickRotation:function(){z.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){z.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=e.chart,i=e.options,r=i.ticks,s=i.scaleLabel,o=i.gridLines,a=e._isVisible(),c="bottom"===i.position,l=e.isHorizontal();if(l?t.width=e.maxWidth:a&&(t.width=Kt(o)+Qt(s)),l?a&&(t.height=Kt(o)+Qt(s)):t.height=e.maxHeight,r.display&&a){var u=en(r),d=e._getLabelSizes(),h=d.first,f=d.last,p=d.widest,m=d.highest,b=.4*u.minor.lineHeight,g=r.padding;if(l){var _=0!==e.labelRotation,v=z.toRadians(e.labelRotation),y=Math.cos(v),w=Math.sin(v);t.height=Math.min(e.maxHeight,t.height+(w*p.width+y*(m.height-(_?m.offset:0))+(_?0:b))+g);var D,S,x=e.getPixelForTick(0)-e.left,k=e.right-e.getPixelForTick(e.getTicks().length-1);_?(D=c?y*h.width+w*h.offset:w*(h.height-h.offset),S=c?w*(f.height-f.offset):y*f.width+w*f.offset):(D=h.width/2,S=f.width/2),e.paddingLeft=Math.max((D-x)*e.width/(e.width-x),0)+3,e.paddingRight=Math.max((S-k)*e.width/(e.width-k),0)+3}else t.width=Math.min(e.maxWidth,t.width+(r.mirror?0:p.width+g+b)),e.paddingTop=h.height/2,e.paddingBottom=f.height/2}e.handleMargins(),l?(e.width=e._length=n.width-e.margins.left-e.margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=n.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this;e.margins&&(e.margins.left=Math.max(e.paddingLeft,e.margins.left),e.margins.top=Math.max(e.paddingTop,e.margins.top),e.margins.right=Math.max(e.paddingRight,e.margins.right),e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom))},afterFit:function(){z.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(Ut(e))return NaN;if(("number"==typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},_convertTicksToLabels:function(e){var t,n,i,r=this;for(r.ticks=e.map(function(e){return e.value}),r.beforeTickToLabelConversion(),t=r.convertTicksToLabels(e)||r.ticks,r.afterTickToLabelConversion(),n=0,i=e.length;n<i;++n)e[n].label=t[n];return t},_getLabelSizes:function(){var e=this,t=e._labelSizes;return t||(e._labelSizes=t=function(e,t,n,i){var r,s,o,a,c,l,u,d,h,f,p,m,b,g=n.length,_=[],v=[],y=[],w=0,D=0;for(r=0;r<g;++r){if(a=n[r].label,e.font=l=(c=n[r].major?t.major:t.minor).string,u=i[l]=i[l]||{data:{},gc:[]},d=c.lineHeight,h=f=0,Ut(a)||Bt(a)){if(Bt(a))for(s=0,o=a.length;s<o;++s)Ut(p=a[s])||Bt(p)||(h=z.measureText(e,u.data,u.gc,h,p),f+=d)}else h=z.measureText(e,u.data,u.gc,h,a),f=d;_.push(h),v.push(f),y.push(d/2),w=Math.max(h,w),D=Math.max(f,D)}function S(e){return{width:_[e]||0,height:v[e]||0,offset:y[e]||0}}return function(e,t){z.each(e,function(e){var n,i=e.gc,r=i.length/2;if(r>t){for(n=0;n<r;++n)delete e.data[i[n]];i.splice(0,r)}})}(i,g),m=_.indexOf(w),b=v.indexOf(D),{first:S(0),last:S(g-1),widest:S(m),highest:S(b)}}(e.ctx,en(e.options.ticks),e.getTicks(),e.longestTextCache),e.longestLabelWidth=t.widest.width),t},_parseValue:function(e){var t,n,i,r;return Bt(e)?(t=+this.getRightValue(e[0]),n=+this.getRightValue(e[1]),i=Math.min(t,n),r=Math.max(t,n)):(t=void 0,n=e=+this.getRightValue(e),i=e,r=e),{min:i,max:r,start:t,end:n}},_getScaleLabel:function(e){var t=this._parseValue(e);return void 0!==t.start?"["+t.start+", "+t.end+"]":+this.getRightValue(e)},getLabelForIndex:z.noop,getPixelForValue:z.noop,getValueForPixel:z.noop,getPixelForTick:function(e){var t=this,n=t.options.offset,i=t._ticks.length,r=1/Math.max(i-(n?0:1),1);return e<0||e>i-1?null:t.getPixelForDecimal(e*r+(n?r/2:0))},getPixelForDecimal:function(e){var t=this;return t._reversePixels&&(e=1-e),t._startPixel+e*t._length},getDecimalForPixel:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this,t=e.min,n=e.max;return e.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0},_autoSkip:function(e){var t,n,i,r,s=this,o=s.options.ticks,a=o.maxTicksLimit||s._length/s._tickSize()+1,c=o.major.enabled?function(e){var t,n,i=[];for(t=0,n=e.length;t<n;t++)e[t].major&&i.push(t);return i}(e):[],l=c.length,u=c[0],d=c[l-1];if(l>a)return function(e,t,n){var i,r,s=0,o=t[0];for(n=Math.ceil(n),i=0;i<e.length;i++)r=e[i],i===o?(r._index=i,o=t[++s*n]):delete r.label}(e,c,l/a),tn(e);if(i=function(e,t,n,i){var r,s,o,a,c=function(e){var t,n,i=e.length;if(i<2)return!1;for(n=e[0],t=1;t<i;++t)if(e[t]-e[t-1]!==n)return!1;return n}(e),l=(t.length-1)/i;if(!c)return Math.max(l,1);for(o=0,a=(r=z.math._factorize(c)).length-1;o<a;o++)if((s=r[o])>l)return s;return Math.max(l,1)}(c,e,0,a),l>0){for(t=0,n=l-1;t<n;t++)nn(e,i,c[t],c[t+1]);return nn(e,i,z.isNullOrUndef(r=l>1?(d-u)/(l-1):null)?0:u-r,u),nn(e,i,d,z.isNullOrUndef(r)?e.length:d+r),tn(e)}return nn(e,i),tn(e)},_tickSize:function(){var e=this,t=e.options.ticks,n=z.toRadians(e.labelRotation),i=Math.abs(Math.cos(n)),r=Math.abs(Math.sin(n)),s=e._getLabelSizes(),o=t.autoSkipPadding||0,a=s?s.widest.width+o:0,c=s?s.highest.height+o:0;return e.isHorizontal()?c*i>a*r?a/i:c/r:c*r<a*i?c/i:a/r},_isVisible:function(){var e,t,n,i=this,r=i.chart,s=i.options.display;if("auto"!==s)return!!s;for(e=0,t=r.data.datasets.length;e<t;++e)if(r.isDatasetVisible(e)&&((n=r.getDatasetMeta(e)).xAxisID===i.id||n.yAxisID===i.id))return!0;return!1},_computeGridLineItems:function(e){var t,n,i,r,s,o,a,c,l,u,d,h,f,p,m,b,g,_=this,v=_.chart,y=_.options,w=y.gridLines,D=y.position,S=w.offsetGridLines,x=_.isHorizontal(),k=_._ticksToDraw,T=k.length+(S?1:0),M=Kt(w),C=[],O=w.drawBorder?Gt(w.lineWidth,0,0):0,L=O/2,E=z._alignPixel,A=function(e){return E(v,e,O)};for("top"===D?(t=A(_.bottom),a=_.bottom-M,l=t-L,d=A(e.top)+L,f=e.bottom):"bottom"===D?(t=A(_.top),d=e.top,f=A(e.bottom)-L,a=t+L,l=_.top+M):"left"===D?(t=A(_.right),o=_.right-M,c=t-L,u=A(e.left)+L,h=e.right):(t=A(_.left),u=e.left,h=A(e.right)-L,o=t+L,c=_.left+M),n=0;n<T;++n)Ut((i=k[n]||{}).label)&&n<k.length||(n===_.zeroLineIndex&&y.offset===S?(p=w.zeroLineWidth,m=w.zeroLineColor,b=w.zeroLineBorderDash||[],g=w.zeroLineBorderDashOffset||0):(p=Gt(w.lineWidth,n,1),m=Gt(w.color,n,"rgba(0,0,0,0.1)"),b=w.borderDash||[],g=w.borderDashOffset||0),void 0!==(r=Jt(_,i._index||n,S))&&(s=E(v,r,p),x?o=c=u=h=s:a=l=d=f=s,C.push({tx1:o,ty1:a,tx2:c,ty2:l,x1:u,y1:d,x2:h,y2:f,width:p,color:m,borderDash:b,borderDashOffset:g})));return C.ticksLength=T,C.borderValue=t,C},_computeLabelItems:function(){var e,t,n,i,r,s,o,a,c,l,u,d,h=this,f=h.options,p=f.ticks,m=f.position,b=p.mirror,g=h.isHorizontal(),_=h._ticksToDraw,v=en(p),y=p.padding,w=Kt(f.gridLines),D=-z.toRadians(h.labelRotation),S=[];for("top"===m?(s=h.bottom-w-y,o=D?"left":"center"):"bottom"===m?(s=h.top+w+y,o=D?"right":"center"):"left"===m?(r=h.right-(b?0:w)-y,o=b?"left":"right"):(r=h.left+(b?0:w)+y,o=b?"right":"left"),e=0,t=_.length;e<t;++e)Ut(i=(n=_[e]).label)||(a=h.getPixelForTick(n._index||e)+p.labelOffset,l=(c=n.major?v.major:v.minor).lineHeight,u=Bt(i)?i.length:1,g?(r=a,d="top"===m?((D?1:.5)-u)*l:(D?0:.5)*l):(s=a,d=(1-u)*l/2),S.push({x:r,y:s,rotation:D,label:i,font:c,textOffset:d,textAlign:o}));return S},_drawGrid:function(e){var t=this,n=t.options.gridLines;if(n.display){var i,r,s,o,a,c=t.ctx,l=t.chart,u=z._alignPixel,d=n.drawBorder?Gt(n.lineWidth,0,0):0,h=t._gridLineItems||(t._gridLineItems=t._computeGridLineItems(e));for(s=0,o=h.length;s<o;++s)r=(a=h[s]).color,(i=a.width)&&r&&(c.save(),c.lineWidth=i,c.strokeStyle=r,c.setLineDash&&(c.setLineDash(a.borderDash),c.lineDashOffset=a.borderDashOffset),c.beginPath(),n.drawTicks&&(c.moveTo(a.tx1,a.ty1),c.lineTo(a.tx2,a.ty2)),n.drawOnChartArea&&(c.moveTo(a.x1,a.y1),c.lineTo(a.x2,a.y2)),c.stroke(),c.restore());if(d){var f,p,m,b,g=d,_=Gt(n.lineWidth,h.ticksLength-1,1),v=h.borderValue;t.isHorizontal()?(f=u(l,t.left,g)-g/2,p=u(l,t.right,_)+_/2,m=b=v):(m=u(l,t.top,g)-g/2,b=u(l,t.bottom,_)+_/2,f=p=v),c.lineWidth=d,c.strokeStyle=Gt(n.color,0),c.beginPath(),c.moveTo(f,m),c.lineTo(p,b),c.stroke()}}},_drawLabels:function(){var e=this;if(e.options.ticks.display){var t,n,i,r,s,o,a,c,l=e.ctx,u=e._labelItems||(e._labelItems=e._computeLabelItems());for(t=0,i=u.length;t<i;++t){if(o=(s=u[t]).font,l.save(),l.translate(s.x,s.y),l.rotate(s.rotation),l.font=o.string,l.fillStyle=o.color,l.textBaseline="middle",l.textAlign=s.textAlign,c=s.textOffset,Bt(a=s.label))for(n=0,r=a.length;n<r;++n)l.fillText(""+a[n],0,c),c+=o.lineHeight;else l.fillText(a,0,c);l.restore()}}},_drawTitle:function(){var e=this,t=e.ctx,n=e.options,i=n.scaleLabel;if(i.display){var r,s,o=qt(i.fontColor,F.global.defaultFontColor),a=z.options._parseFont(i),c=z.options.toPadding(i.padding),l=a.lineHeight/2,u=n.position,d=0;if(e.isHorizontal())r=e.left+e.width/2,s="bottom"===u?e.bottom-l-c.bottom:e.top+l+c.top;else{var h="left"===u;r=h?e.left+l+c.top:e.right-l-c.top,s=e.top+e.height/2,d=h?-.5*Math.PI:.5*Math.PI}t.save(),t.translate(r,s),t.rotate(d),t.textAlign="center",t.textBaseline="middle",t.fillStyle=o,t.font=a.string,t.fillText(i.labelString,0,0),t.restore()}},draw:function(e){var t=this;t._isVisible()&&(t._drawGrid(e),t._drawTitle(),t._drawLabels())},_layers:function(){var e=this,t=e.options,n=t.ticks&&t.ticks.z||0,i=t.gridLines&&t.gridLines.z||0;return e._isVisible()&&n!==i&&e.draw===e._draw?[{z:i,draw:function(){e._drawGrid.apply(e,arguments),e._drawTitle.apply(e,arguments)}},{z:n,draw:function(){e._drawLabels.apply(e,arguments)}}]:[{z:n,draw:function(){e.draw.apply(e,arguments)}}]},_getMatchingVisibleMetas:function(e){var t=this,n=t.isHorizontal();return t.chart._getSortedVisibleDatasetMetas().filter(function(i){return(!e||i.type===e)&&(n?i.xAxisID===t.id:i.yAxisID===t.id)})}});rn.prototype._draw=rn.prototype.draw;var sn=rn,on=z.isNullOrUndef,an=sn.extend({determineDataLimits:function(){var e,t=this,n=t._getLabels(),i=t.options.ticks,r=i.min,s=i.max,o=0,a=n.length-1;void 0!==r&&(e=n.indexOf(r))>=0&&(o=e),void 0!==s&&(e=n.indexOf(s))>=0&&(a=e),t.minIndex=o,t.maxIndex=a,t.min=n[o],t.max=n[a]},buildTicks:function(){var e=this,t=e._getLabels(),n=e.minIndex,i=e.maxIndex;e.ticks=0===n&&i===t.length-1?t:t.slice(n,i+1)},getLabelForIndex:function(e,t){var n=this,i=n.chart;return i.getDatasetMeta(t).controller._getValueScaleId()===n.id?n.getRightValue(i.data.datasets[t].data[e]):n._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,n=e.ticks;sn.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),n&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(n.length-(t?0:1),1))},getPixelForValue:function(e,t,n){var i,r,s,o=this;return on(t)||on(n)||(e=o.chart.data.datasets[n].data[t]),on(e)||(i=o.isHorizontal()?e.x:e.y),(void 0!==i||void 0!==e&&isNaN(t))&&(r=o._getLabels(),e=z.valueOrDefault(i,e),t=-1!==(s=r.indexOf(e))?s:t,isNaN(t)&&(t=e)),o.getPixelForDecimal((t-o._startValue)/o._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=this,n=Math.round(t._startValue+t.getDecimalForPixel(e)*t._valueRange);return Math.min(Math.max(n,0),t.ticks.length-1)},getBasePixel:function(){return this.bottom}});an._defaults={position:"bottom"};var cn=z.isNullOrUndef,ln=sn.extend({getRightValue:function(e){return"string"==typeof e?+e:sn.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=z.sign(e.min),i=z.sign(e.max);n<0&&i<0?e.max=0:n>0&&i>0&&(e.min=0)}var r=void 0!==t.min||void 0!==t.suggestedMin,s=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(e.min=null===e.min?t.suggestedMin:Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(e.max=null===e.max?t.suggestedMax:Math.max(e.max,t.suggestedMax)),r!==s&&e.min>=e.max&&(r?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this,n=t.options.ticks,i=n.stepSize,r=n.maxTicksLimit;return i?e=Math.ceil(t.max/i)-Math.floor(t.min/i)+1:(e=t._computeTickLimit(),r=r||11),r&&(e=Math.min(r,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:z.noop,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),i={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,precision:t.precision,stepSize:z.valueOrDefault(t.fixedStepSize,t.stepSize)},r=e.ticks=function(e,t){var n,i,r,s,o=[],a=e.stepSize,c=a||1,l=e.maxTicks-1,u=e.min,d=e.max,h=e.precision,f=t.min,p=t.max,m=z.niceNum((p-f)/l/c)*c;if(m<1e-14&&cn(u)&&cn(d))return[f,p];(s=Math.ceil(p/m)-Math.floor(f/m))>l&&(m=z.niceNum(s*m/l/c)*c),a||cn(h)?n=Math.pow(10,z._decimalPlaces(m)):(n=Math.pow(10,h),m=Math.ceil(m*n)/n),i=Math.floor(f/m)*m,r=Math.ceil(p/m)*m,a&&(!cn(u)&&z.almostWhole(u/m,m/1e3)&&(i=u),!cn(d)&&z.almostWhole(d/m,m/1e3)&&(r=d)),s=z.almostEquals(s=(r-i)/m,Math.round(s),m/1e3)?Math.round(s):Math.ceil(s),i=Math.round(i*n)/n,r=Math.round(r*n)/n,o.push(cn(u)?i:u);for(var b=1;b<s;++b)o.push(Math.round((i+b*m)*n)/n);return o.push(cn(d)?r:d),o}(i,e);e.handleDirectionalChanges(),e.max=z.max(r),e.min=z.min(r),t.reverse?(r.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),sn.prototype.convertTicksToLabels.call(e)},_configure:function(){var e,t=this,n=t.getTicks(),i=t.min,r=t.max;sn.prototype._configure.call(t),t.options.offset&&n.length&&(i-=e=(r-i)/Math.max(n.length-1,1)/2,r+=e),t._startValue=i,t._endValue=r,t._valueRange=r-i}}),un={position:"left",ticks:{callback:Vt.formatters.linear}};function dn(e,t,n,i){var r,s,o=e.options,a=function(e,t,n){var i=[n.type,void 0===t&&void 0===n.stack?n.index:"",n.stack].join(".");return void 0===e[i]&&(e[i]={pos:[],neg:[]}),e[i]}(t,o.stacked,n),c=a.pos,l=a.neg,u=i.length;for(r=0;r<u;++r)s=e._parseValue(i[r]),isNaN(s.min)||isNaN(s.max)||n.data[r].hidden||(c[r]=c[r]||0,l[r]=l[r]||0,o.relativePoints?c[r]=100:s.min<0||s.max<0?l[r]+=s.min:c[r]+=s.max)}function hn(e,t,n){var i,r,s=n.length;for(i=0;i<s;++i)r=e._parseValue(n[i]),isNaN(r.min)||isNaN(r.max)||t.data[i].hidden||(e.min=Math.min(e.min,r.min),e.max=Math.max(e.max,r.max))}var fn=ln.extend({determineDataLimits:function(){var e,t,n,i,r=this,s=r.options,o=r.chart.data.datasets,a=r._getMatchingVisibleMetas(),c=s.stacked,l={},u=a.length;if(r.min=Number.POSITIVE_INFINITY,r.max=Number.NEGATIVE_INFINITY,void 0===c)for(e=0;!c&&e<u;++e)c=void 0!==(t=a[e]).stack;for(e=0;e<u;++e)n=o[(t=a[e]).index].data,c?dn(r,l,t,n):hn(r,t,n);z.each(l,function(e){i=e.pos.concat(e.neg),r.min=Math.min(r.min,z.min(i)),r.max=Math.max(r.max,z.max(i))}),r.min=z.isFinite(r.min)&&!isNaN(r.min)?r.min:0,r.max=z.isFinite(r.max)&&!isNaN(r.max)?r.max:1,r.handleTickRangeOptions()},_computeTickLimit:function(){var e,t=this;return t.isHorizontal()?Math.ceil(t.width/40):(e=z.options._parseFont(t.options.ticks),Math.ceil(t.height/e.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this;return t.getPixelForDecimal((+t.getRightValue(e)-t._startValue)/t._valueRange)},getValueForPixel:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange},getPixelForTick:function(e){var t=this.ticksAsNumbers;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])}});fn._defaults=un;var pn=z.valueOrDefault,mn=z.math.log10,bn={position:"left",ticks:{callback:Vt.formatters.logarithmic}};function gn(e,t){return z.isFinite(e)&&e>=0?e:t}var _n=sn.extend({determineDataLimits:function(){var e,t,n,i,r,s,o=this,a=o.options,c=o.chart,l=c.data.datasets,u=o.isHorizontal();function d(e){return u?e.xAxisID===o.id:e.yAxisID===o.id}o.min=Number.POSITIVE_INFINITY,o.max=Number.NEGATIVE_INFINITY,o.minNotZero=Number.POSITIVE_INFINITY;var h=a.stacked;if(void 0===h)for(e=0;e<l.length;e++)if(t=c.getDatasetMeta(e),c.isDatasetVisible(e)&&d(t)&&void 0!==t.stack){h=!0;break}if(a.stacked||h){var f={};for(e=0;e<l.length;e++){var p=[(t=c.getDatasetMeta(e)).type,void 0===a.stacked&&void 0===t.stack?e:"",t.stack].join(".");if(c.isDatasetVisible(e)&&d(t))for(void 0===f[p]&&(f[p]=[]),r=0,s=(i=l[e].data).length;r<s;r++){var m=f[p];n=o._parseValue(i[r]),isNaN(n.min)||isNaN(n.max)||t.data[r].hidden||n.min<0||n.max<0||(m[r]=m[r]||0,m[r]+=n.max)}}z.each(f,function(e){if(e.length>0){var t=z.min(e),n=z.max(e);o.min=Math.min(o.min,t),o.max=Math.max(o.max,n)}})}else for(e=0;e<l.length;e++)if(t=c.getDatasetMeta(e),c.isDatasetVisible(e)&&d(t))for(r=0,s=(i=l[e].data).length;r<s;r++)n=o._parseValue(i[r]),isNaN(n.min)||isNaN(n.max)||t.data[r].hidden||n.min<0||n.max<0||(o.min=Math.min(n.min,o.min),o.max=Math.max(n.max,o.max),0!==n.min&&(o.minNotZero=Math.min(n.min,o.minNotZero)));o.min=z.isFinite(o.min)?o.min:null,o.max=z.isFinite(o.max)?o.max:null,o.minNotZero=z.isFinite(o.minNotZero)?o.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;e.min=gn(t.min,e.min),e.max=gn(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(mn(e.min))-1),e.max=Math.pow(10,Math.floor(mn(e.max))+1)):(e.min=1,e.max=10)),null===e.min&&(e.min=Math.pow(10,Math.floor(mn(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(mn(e.min))+1):10),null===e.minNotZero&&(e.minNotZero=e.min>0?e.min:e.max<1?Math.pow(10,Math.floor(mn(e.max))):1)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),i={min:gn(t.min),max:gn(t.max)},r=e.ticks=function(e,t){var n,i,r=[],s=pn(e.min,Math.pow(10,Math.floor(mn(t.min)))),o=Math.floor(mn(t.max)),a=Math.ceil(t.max/Math.pow(10,o));0===s?(n=Math.floor(mn(t.minNotZero)),i=Math.floor(t.minNotZero/Math.pow(10,n)),r.push(s),s=i*Math.pow(10,n)):(n=Math.floor(mn(s)),i=Math.floor(s/Math.pow(10,n)));var c=n<0?Math.pow(10,Math.abs(n)):1;do{r.push(s),10==++i&&(i=1,c=++n>=0?1:c),s=Math.round(i*Math.pow(10,n)*c)/c}while(n<o||n===o&&i<a);var l=pn(e.max,s);return r.push(l),r}(i,e);e.max=z.max(r),e.min=z.min(r),t.reverse?(n=!n,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n&&r.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),sn.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){var t=this.tickValues;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])},_getFirstTickValue:function(e){var t=Math.floor(mn(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,n=0;sn.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),n=pn(e.options.ticks.fontSize,F.global.defaultFontSize)/e._length),e._startValue=mn(t),e._valueOffset=n,e._valueRange=(mn(e.max)-mn(t))/(1-n)},getPixelForValue:function(e){var t=this,n=0;return(e=+t.getRightValue(e))>t.min&&e>0&&(n=(mn(e)-t._startValue)/t._valueRange+t._valueOffset),t.getPixelForDecimal(n)},getValueForPixel:function(e){var t=this,n=t.getDecimalForPixel(e);return 0===n&&0===t.min?0:Math.pow(10,t._startValue+(n-t._valueOffset)*t._valueRange)}});_n._defaults=bn;var vn=z.valueOrDefault,yn=z.valueAtIndexOrDefault,wn=z.options.resolve,Dn={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:Vt.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function Sn(e){var t=e.ticks;return t.display&&e.display?vn(t.fontSize,F.global.defaultFontSize)+2*t.backdropPaddingY:0}function xn(e,t,n,i,r){return e===i||e===r?{start:t-n/2,end:t+n/2}:e<i||e>r?{start:t-n,end:t}:{start:t,end:t+n}}function kn(e){return 0===e||180===e?"center":e<180?"left":"right"}function Tn(e,t,n,i){var r,s,o=n.y+i/2;if(z.isArray(t))for(r=0,s=t.length;r<s;++r)e.fillText(t[r],n.x,o),o+=i;else e.fillText(t,n.x,o)}function Mn(e,t,n){90===e||270===e?n.y-=t.h/2:(e>270||e<90)&&(n.y-=t.h)}function Cn(e){return z.isNumber(e)?e:0}var On=ln.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=Sn(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;z.each(t.data.datasets,function(r,s){if(t.isDatasetVisible(s)){var o=t.getDatasetMeta(s);z.each(r.data,function(t,r){var s=+e.getRightValue(t);isNaN(s)||o.data[r].hidden||(n=Math.min(s,n),i=Math.max(s,i))})}}),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=i===Number.NEGATIVE_INFINITY?0:i,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Sn(this.options))},convertTicksToLabels:function(){var e=this;ln.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(function(){var t=z.callback(e.options.pointLabels.callback,arguments,e);return t||0===t?t:""})},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this,t=e.options;t.display&&t.pointLabels.display?function(e){var t,n,i,r=z.options._parseFont(e.options.pointLabels),s={l:0,r:e.width,t:0,b:e.height-e.paddingTop},o={};e.ctx.font=r.string,e._pointLabelSizes=[];var a,c,l,u=e.chart.data.labels.length;for(t=0;t<u;t++){i=e.getPointPosition(t,e.drawingArea+5),a=e.ctx,c=r.lineHeight,n=z.isArray(l=e.pointLabels[t])?{w:z.longestText(a,a.font,l),h:l.length*c}:{w:a.measureText(l).width,h:c},e._pointLabelSizes[t]=n;var d=e.getIndexAngle(t),h=z.toDegrees(d)%360,f=xn(h,i.x,n.w,0,180),p=xn(h,i.y,n.h,90,270);f.start<s.l&&(s.l=f.start,o.l=d),f.end>s.r&&(s.r=f.end,o.r=d),p.start<s.t&&(s.t=p.start,o.t=d),p.end>s.b&&(s.b=p.end,o.b=d)}e.setReductions(e.drawingArea,s,o)}(e):e.setCenterPoint(0,0,0,0)},setReductions:function(e,t,n){var i=this,r=t.l/Math.sin(n.l),s=Math.max(t.r-i.width,0)/Math.sin(n.r),o=-t.t/Math.cos(n.t),a=-Math.max(t.b-(i.height-i.paddingTop),0)/Math.cos(n.b);r=Cn(r),s=Cn(s),o=Cn(o),a=Cn(a),i.drawingArea=Math.min(Math.floor(e-(r+s)/2),Math.floor(e-(o+a)/2)),i.setCenterPoint(r,s,o,a)},setCenterPoint:function(e,t,n,i){var r=this,s=n+r.drawingArea,o=r.height-r.paddingTop-i-r.drawingArea;r.xCenter=Math.floor((e+r.drawingArea+(r.width-t-r.drawingArea))/2+r.left),r.yCenter=Math.floor((s+o)/2+r.top+r.paddingTop)},getIndexAngle:function(e){var t=this.chart,n=(e*(360/t.data.labels.length)+((t.options||{}).startAngle||0))%360;return(n<0?n+360:n)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(z.isNullOrUndef(e))return NaN;var n=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this,i=n.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(i)*t+n.xCenter,y:Math.sin(i)*t+n.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this,n=t.min,i=t.max;return t.getPointPositionForValue(e||0,t.beginAtZero?0:n<0&&i<0?i:n>0&&i>0?n:0)},_drawGrid:function(){var e,t,n,i=this,r=i.ctx,s=i.options,o=s.gridLines,a=s.angleLines,c=vn(a.lineWidth,o.lineWidth),l=vn(a.color,o.color);if(s.pointLabels.display&&function(e){var t=e.ctx,n=e.options,i=n.pointLabels,r=Sn(n),s=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),o=z.options._parseFont(i);t.save(),t.font=o.string,t.textBaseline="middle";for(var a=e.chart.data.labels.length-1;a>=0;a--){var c=e.getPointPosition(a,s+(0===a?r/2:0)+5),l=yn(i.fontColor,a,F.global.defaultFontColor);t.fillStyle=l;var u=e.getIndexAngle(a),d=z.toDegrees(u);t.textAlign=kn(d),Mn(d,e._pointLabelSizes[a],c),Tn(t,e.pointLabels[a],c,o.lineHeight)}t.restore()}(i),o.display&&z.each(i.ticks,function(e,n){0!==n&&(t=i.getDistanceFromCenterForValue(i.ticksAsNumbers[n]),function(e,t,n,i){var r,s=e.ctx,o=t.circular,a=e.chart.data.labels.length,c=yn(t.color,i-1),l=yn(t.lineWidth,i-1);if((o||a)&&c&&l){if(s.save(),s.strokeStyle=c,s.lineWidth=l,s.setLineDash&&(s.setLineDash(t.borderDash||[]),s.lineDashOffset=t.borderDashOffset||0),s.beginPath(),o)s.arc(e.xCenter,e.yCenter,n,0,2*Math.PI);else{r=e.getPointPosition(0,n),s.moveTo(r.x,r.y);for(var u=1;u<a;u++)r=e.getPointPosition(u,n),s.lineTo(r.x,r.y)}s.closePath(),s.stroke(),s.restore()}}(i,o,t,n))}),a.display&&c&&l){for(r.save(),r.lineWidth=c,r.strokeStyle=l,r.setLineDash&&(r.setLineDash(wn([a.borderDash,o.borderDash,[]])),r.lineDashOffset=wn([a.borderDashOffset,o.borderDashOffset,0])),e=i.chart.data.labels.length-1;e>=0;e--)t=i.getDistanceFromCenterForValue(s.ticks.reverse?i.min:i.max),n=i.getPointPosition(e,t),r.beginPath(),r.moveTo(i.xCenter,i.yCenter),r.lineTo(n.x,n.y),r.stroke();r.restore()}},_drawLabels:function(){var e=this,t=e.ctx,n=e.options.ticks;if(n.display){var i,r,s=e.getIndexAngle(0),o=z.options._parseFont(n),a=vn(n.fontColor,F.global.defaultFontColor);t.save(),t.font=o.string,t.translate(e.xCenter,e.yCenter),t.rotate(s),t.textAlign="center",t.textBaseline="middle",z.each(e.ticks,function(s,c){(0!==c||n.reverse)&&(i=e.getDistanceFromCenterForValue(e.ticksAsNumbers[c]),n.showLabelBackdrop&&(r=t.measureText(s).width,t.fillStyle=n.backdropColor,t.fillRect(-r/2-n.backdropPaddingX,-i-o.size/2-n.backdropPaddingY,r+2*n.backdropPaddingX,o.size+2*n.backdropPaddingY)),t.fillStyle=a,t.fillText(s,0,-i))}),t.restore()}},_drawTitle:z.noop});On._defaults=Dn;var Ln=z._deprecated,En=z.options.resolve,An=z.valueOrDefault,In=Number.MIN_SAFE_INTEGER||-9007199254740991,Rn=Number.MAX_SAFE_INTEGER||9007199254740991,Pn={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Fn=Object.keys(Pn);function Wn(e,t){return e-t}function jn(e){return z.valueOrDefault(e.time.min,e.ticks.min)}function Yn(e){return z.valueOrDefault(e.time.max,e.ticks.max)}function Nn(e,t,n,i){var r=function(e,t,n){for(var i,r,s,o=0,a=e.length-1;o>=0&&o<=a;){if(s=e[i=o+a>>1],!(r=e[i-1]||null))return{lo:null,hi:s};if(s[t]<n)o=i+1;else{if(!(r[t]>n))return{lo:r,hi:s};a=i-1}}return{lo:s,hi:null}}(e,t,n),s=r.lo?r.hi?r.lo:e[e.length-2]:e[0],o=r.lo?r.hi?r.hi:e[e.length-1]:e[1],a=o[t]-s[t];return s[i]+(o[i]-s[i])*(a?(n-s[t])/a:0)}function zn(e,t){var n=e._adapter,i=e.options.time,r=i.parser,s=r||i.format,o=t;return"function"==typeof r&&(o=r(o)),z.isFinite(o)||(o="string"==typeof s?n.parse(o,s):n.parse(o)),null!==o?+o:(r||"function"!=typeof s||(o=s(t),z.isFinite(o)||(o=n.parse(o))),o)}function $n(e,t){if(z.isNullOrUndef(t))return null;var n=e.options.time,i=zn(e,e.getRightValue(t));return null===i||n.round&&(i=+e._adapter.startOf(i,n.round)),i}function Hn(e,t,n,i){var r,s,o=Fn.length;for(r=Fn.indexOf(e);r<o-1;++r)if((s=Pn[Fn[r]]).common&&Math.ceil((n-t)/((s.steps?s.steps:Rn)*s.size))<=i)return Fn[r];return Fn[o-1]}function Xn(e,t,n){var i,r,s=[],o={},a=t.length;for(i=0;i<a;++i)o[r=t[i]]=i,s.push({value:r,major:!1});return 0!==a&&n?function(e,t,n,i){var r,s,o=e._adapter,a=+o.startOf(t[0].value,i),c=t[t.length-1].value;for(r=a;r<=c;r=+o.add(r,1,i))(s=n[r])>=0&&(t[s].major=!0);return t}(e,s,o,n):s}var Vn=sn.extend({initialize:function(){this.mergeTicksOptions(),sn.prototype.initialize.call(this)},update:function(){var e=this,t=e.options,n=t.time||(t.time={}),i=e._adapter=new Xt._date(t.adapters.date);return Ln("time scale",n.format,"time.format","time.parser"),Ln("time scale",n.min,"time.min","ticks.min"),Ln("time scale",n.max,"time.max","ticks.max"),z.mergeIf(n.displayFormats,i.formats()),sn.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),sn.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,i,r,s,o,a=this,c=a.chart,l=a._adapter,u=a.options,d=u.time.unit||"day",h=Rn,f=In,p=[],m=[],b=[],g=a._getLabels();for(e=0,n=g.length;e<n;++e)b.push($n(a,g[e]));for(e=0,n=(c.data.datasets||[]).length;e<n;++e)if(c.isDatasetVisible(e))if(z.isObject((r=c.data.datasets[e].data)[0]))for(m[e]=[],t=0,i=r.length;t<i;++t)s=$n(a,r[t]),p.push(s),m[e][t]=s;else m[e]=b.slice(0),o||(p=p.concat(b),o=!0);else m[e]=[];b.length&&(h=Math.min(h,b[0]),f=Math.max(f,b[b.length-1])),p.length&&(p=n>1?function(e){var t,n,i,r={},s=[];for(t=0,n=e.length;t<n;++t)r[i=e[t]]||(r[i]=!0,s.push(i));return s}(p).sort(Wn):p.sort(Wn),h=Math.min(h,p[0]),f=Math.max(f,p[p.length-1])),h=$n(a,jn(u))||h,f=$n(a,Yn(u))||f,h=h===Rn?+l.startOf(Date.now(),d):h,f=f===In?+l.endOf(Date.now(),d)+1:f,a.min=Math.min(h,f),a.max=Math.max(h+1,f),a._table=[],a._timestamps={data:p,datasets:m,labels:b}},buildTicks:function(){var e,t,n,i=this,r=i.min,s=i.max,o=i.options,a=o.ticks,c=o.time,l=i._timestamps,u=[],d=i.getLabelCapacity(r),h=a.source,f=o.distribution;for(l="data"===h||"auto"===h&&"series"===f?l.data:"labels"===h?l.labels:function(e,t,n,i){var r,s=e._adapter,o=e.options,a=o.time,c=a.unit||Hn(a.minUnit,t,n,i),l=En([a.stepSize,a.unitStepSize,1]),u="week"===c&&a.isoWeekday,d=t,h=[];if(u&&(d=+s.startOf(d,"isoWeek",u)),d=+s.startOf(d,u?"day":c),s.diff(n,t,c)>1e5*l)throw t+" and "+n+" are too far apart with stepSize of "+l+" "+c;for(r=d;r<n;r=+s.add(r,l,c))h.push(r);return r!==n&&"ticks"!==o.bounds||h.push(r),h}(i,r,s,d),"ticks"===o.bounds&&l.length&&(r=l[0],s=l[l.length-1]),r=$n(i,jn(o))||r,s=$n(i,Yn(o))||s,e=0,t=l.length;e<t;++e)(n=l[e])>=r&&n<=s&&u.push(n);return i.min=r,i.max=s,i._unit=c.unit||(a.autoSkip?Hn(c.minUnit,i.min,i.max,d):function(e,t,n,i,r){var s,o;for(s=Fn.length-1;s>=Fn.indexOf(n);s--)if(Pn[o=Fn[s]].common&&e._adapter.diff(r,i,o)>=t-1)return o;return Fn[n?Fn.indexOf(n):0]}(i,u.length,c.minUnit,i.min,i.max)),i._majorUnit=a.major.enabled&&"year"!==i._unit?function(e){for(var t=Fn.indexOf(e)+1,n=Fn.length;t<n;++t)if(Pn[Fn[t]].common)return Fn[t]}(i._unit):void 0,i._table=function(e,t,n,i){if("linear"===i||!e.length)return[{time:t,pos:0},{time:n,pos:1}];var r,s,o,a,c,l=[],u=[t];for(r=0,s=e.length;r<s;++r)(a=e[r])>t&&a<n&&u.push(a);for(u.push(n),r=0,s=u.length;r<s;++r)c=u[r+1],a=u[r],void 0!==(o=u[r-1])&&void 0!==c&&Math.round((c+o)/2)===a||l.push({time:a,pos:r/(s-1)});return l}(i._timestamps.data,r,s,f),i._offsets=function(e,t,n,i,r){var s,o,a=0,c=0;return r.offset&&t.length&&(s=Nn(e,"time",t[0],"pos"),a=1===t.length?1-s:(Nn(e,"time",t[1],"pos")-s)/2,o=Nn(e,"time",t[t.length-1],"pos"),c=1===t.length?o:(o-Nn(e,"time",t[t.length-2],"pos"))/2),{start:a,end:c,factor:1/(a+1+c)}}(i._table,u,0,0,o),a.reverse&&u.reverse(),Xn(i,u,i._majorUnit)},getLabelForIndex:function(e,t){var n=this,i=n._adapter,r=n.chart.data,s=n.options.time,o=r.labels&&e<r.labels.length?r.labels[e]:"",a=r.datasets[t].data[e];return z.isObject(a)&&(o=n.getRightValue(a)),s.tooltipFormat?i.format(zn(n,o),s.tooltipFormat):"string"==typeof o?o:i.format(zn(n,o),s.displayFormats.datetime)},tickFormatFunction:function(e,t,n,i){var r=this,s=r.options,o=s.time.displayFormats,a=r._majorUnit,c=o[a],l=n[t],u=s.ticks,d=a&&c&&l&&l.major,h=r._adapter.format(e,i||(d?c:o[r._unit])),f=d?u.major:u.minor,p=En([f.callback,f.userCallback,u.callback,u.userCallback]);return p?p(h,t,n):h},convertTicksToLabels:function(e){var t,n,i=[];for(t=0,n=e.length;t<n;++t)i.push(this.tickFormatFunction(e[t].value,t,e));return i},getPixelForOffset:function(e){var t=this,n=t._offsets,i=Nn(t._table,"time",e,"pos");return t.getPixelForDecimal((n.start+i)*n.factor)},getPixelForValue:function(e,t,n){var i=this,r=null;if(void 0!==t&&void 0!==n&&(r=i._timestamps.datasets[n][t]),null===r&&(r=$n(i,e)),null!==r)return i.getPixelForOffset(r)},getPixelForTick:function(e){var t=this.getTicks();return e>=0&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this,n=t._offsets,i=t.getDecimalForPixel(e)/n.factor-n.end,r=Nn(t._table,"pos",i,"time");return t._adapter._create(r)},_getLabelSize:function(e){var t=this,n=t.options.ticks,i=t.ctx.measureText(e).width,r=z.toRadians(t.isHorizontal()?n.maxRotation:n.minRotation),s=Math.cos(r),o=Math.sin(r),a=An(n.fontSize,F.global.defaultFontSize);return{w:i*s+a*o,h:i*o+a*s}},getLabelWidth:function(e){return this._getLabelSize(e).w},getLabelCapacity:function(e){var t=this,n=t.options.time,i=n.displayFormats,r=i[n.unit]||i.millisecond,s=t.tickFormatFunction(e,0,Xn(t,[e],t._majorUnit),r),o=t._getLabelSize(s),a=Math.floor(t.isHorizontal()?t.width/o.w:t.height/o.h);return t.options.offset&&a--,a>0?a:1}});Vn._defaults={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};var Bn={category:an,linear:fn,logarithmic:_n,radialLinear:On,time:Vn},Un={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};Xt._date.override("function"==typeof e?{_id:"moment",formats:function(){return Un},parse:function(t,n){return"string"==typeof t&&"string"==typeof n?t=e(t,n):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,n){return e(t).format(n)},add:function(t,n,i){return e(t).add(n,i).valueOf()},diff:function(t,n,i){return e(t).diff(e(n),i)},startOf:function(t,n,i){return t=e(t),"isoWeek"===n?t.isoWeekday(i).valueOf():t.startOf(n).valueOf()},endOf:function(t,n){return e(t).endOf(n).valueOf()},_create:function(t){return e(t)}}:{}),F._set("global",{plugins:{filler:{propagate:!0}}});var qn={dataset:function(e){var t=e.fill,n=e.chart,i=n.getDatasetMeta(t),r=i&&n.isDatasetVisible(t)&&i.dataset._children||[],s=r.length||0;return s?function(e,t){return t<s&&r[t]._view||null}:null},boundary:function(e){var t=e.boundary,n=t?t.x:null,i=t?t.y:null;return z.isArray(t)?function(e,n){return t[n]}:function(e){return{x:null===n?e.x:n,y:null===i?e.y:i}}}};function Gn(e,t,n){var i,r=e._model||{},s=r.fill;if(void 0===s&&(s=!!r.backgroundColor),!1===s||null===s)return!1;if(!0===s)return"origin";if(i=parseFloat(s,10),isFinite(i)&&Math.floor(i)===i)return"-"!==s[0]&&"+"!==s[0]||(i=t+i),!(i===t||i<0||i>=n)&&i;switch(s){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return s;default:return!1}}function Jn(e){return(e.el._scale||{}).getPointPositionForValue?function(e){var t,n,i,r,s,o=e.el._scale,a=o.options,c=o.chart.data.labels.length,l=e.fill,u=[];if(!c)return null;for(n=a.ticks.reverse?o.min:o.max,i=o.getPointPositionForValue(0,t=a.ticks.reverse?o.max:o.min),r=0;r<c;++r)s="start"===l||"end"===l?o.getPointPositionForValue(r,"start"===l?t:n):o.getBasePosition(r),a.gridLines.circular&&(s.cx=i.x,s.cy=i.y,s.angle=o.getIndexAngle(r)-Math.PI/2),u.push(s);return u}(e):function(e){var t,n=e.el._model||{},i=e.el._scale||{},r=e.fill,s=null;if(isFinite(r))return null;if("start"===r?s=void 0===n.scaleBottom?i.bottom:n.scaleBottom:"end"===r?s=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?s=n.scaleZero:i.getBasePixel&&(s=i.getBasePixel()),null!=s){if(void 0!==s.x&&void 0!==s.y)return s;if(z.isFinite(s))return{x:(t=i.isHorizontal())?s:null,y:t?null:s}}return null}(e)}function Kn(e,t,n){var i,r=e[t].fill,s=[t];if(!n)return r;for(;!1!==r&&-1===s.indexOf(r);){if(!isFinite(r))return r;if(!(i=e[r]))return!1;if(i.visible)return r;s.push(r),r=i.fill}return!1}function Qn(e){var t=e.fill,n="dataset";return!1===t?null:(isFinite(t)||(n="boundary"),qn[n](e))}function Zn(e){return e&&!e.skip}function ei(e,t,n,i,r){var s,o,a,c;if(i&&r){for(e.moveTo(t[0].x,t[0].y),s=1;s<i;++s)z.canvas.lineTo(e,t[s-1],t[s]);if(void 0===n[0].angle)for(e.lineTo(n[r-1].x,n[r-1].y),s=r-1;s>0;--s)z.canvas.lineTo(e,n[s],n[s-1],!0);else for(o=n[0].cx,a=n[0].cy,c=Math.sqrt(Math.pow(n[0].x-o,2)+Math.pow(n[0].y-a,2)),s=r-1;s>0;--s)e.arc(o,a,c,n[s].angle,n[s-1].angle,!0)}}function ti(e,t,n,i,r,s){var o,a,c,l,u,d,h,f,p=t.length,m=i.spanGaps,b=[],g=[],_=0,v=0;for(e.beginPath(),o=0,a=p;o<a;++o)u=n(l=t[c=o%p]._view,c,i),d=Zn(l),h=Zn(u),s&&void 0===f&&d&&(a=p+(f=o+1)),d&&h?(_=b.push(l),v=g.push(u)):_&&v&&(m?(d&&b.push(l),h&&g.push(u)):(ei(e,b,g,_,v),_=v=0,b=[],g=[]));ei(e,b,g,_,v),e.closePath(),e.fillStyle=r,e.fill()}var ni={id:"filler",afterDatasetsUpdate:function(e,t){var n,i,r,s,o=(e.data.datasets||[]).length,a=t.propagate,c=[];for(i=0;i<o;++i)s=null,(r=(n=e.getDatasetMeta(i)).dataset)&&r._model&&r instanceof ge.Line&&(s={visible:e.isDatasetVisible(i),fill:Gn(r,i,o),chart:e,el:r}),n.$filler=s,c.push(s);for(i=0;i<o;++i)(s=c[i])&&(s.fill=Kn(c,i,a),s.boundary=Jn(s),s.mapper=Qn(s))},beforeDatasetsDraw:function(e){var t,n,i,r,s,o,a,c=e._getSortedVisibleDatasetMetas(),l=e.ctx;for(n=c.length-1;n>=0;--n)(t=c[n].$filler)&&t.visible&&(s=(i=t.el)._children||[],a=(r=i._view).backgroundColor||F.global.defaultColor,(o=t.mapper)&&a&&s.length&&(z.canvas.clipArea(l,e.chartArea),ti(l,s,o,r,a,i._loop),z.canvas.unclipArea(l)))}},ii=z.rtl.getRtlAdapter,ri=z.noop,si=z.valueOrDefault;function oi(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}F._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,i=this.chart,r=i.getDatasetMeta(n);r.hidden=null===r.hidden?!i.data.datasets[n].hidden:null,i.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.options.legend||{},i=n.labels&&n.labels.usePointStyle;return e._getSortedDatasetMetas().map(function(n){var r=n.controller.getStyle(i?0:void 0);return{text:t[n.index].label,fillStyle:r.backgroundColor,hidden:!e.isDatasetVisible(n.index),lineCap:r.borderCapStyle,lineDash:r.borderDash,lineDashOffset:r.borderDashOffset,lineJoin:r.borderJoinStyle,lineWidth:r.borderWidth,strokeStyle:r.borderColor,pointStyle:r.pointStyle,rotation:r.rotation,datasetIndex:n.index}},this)}}},legendCallback:function(e){var t,n,i,r=document.createElement("ul"),s=e.data.datasets;for(r.setAttribute("class",e.id+"-legend"),t=0,n=s.length;t<n;t++)(i=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=s[t].backgroundColor,s[t].label&&i.appendChild(document.createTextNode(s[t].label));return r.outerHTML}});var ai=B.extend({initialize:function(e){var t=this;z.extend(t,e),t.legendHitBoxes=[],t._hoveredItem=null,t.doughnutMode=!1},beforeUpdate:ri,update:function(e,t,n){var i=this;return i.beforeUpdate(),i.maxWidth=e,i.maxHeight=t,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:ri,beforeSetDimensions:ri,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:ri,beforeBuildLabels:ri,buildLabels:function(){var e=this,t=e.options.labels||{},n=z.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter(function(n){return t.filter(n,e.chart.data)})),e.options.reverse&&n.reverse(),e.legendItems=n},afterBuildLabels:ri,beforeFit:ri,fit:function(){var e=this,t=e.options,n=t.labels,i=t.display,r=e.ctx,s=z.options._parseFont(n),o=s.size,a=e.legendHitBoxes=[],c=e.minSize,l=e.isHorizontal();if(l?(c.width=e.maxWidth,c.height=i?10:0):(c.width=i?10:0,c.height=e.maxHeight),i){if(r.font=s.string,l){var u=e.lineWidths=[0],d=0;r.textAlign="left",r.textBaseline="middle",z.each(e.legendItems,function(e,t){var i=oi(n,o)+o/2+r.measureText(e.text).width;(0===t||u[u.length-1]+i+2*n.padding>c.width)&&(d+=o+n.padding,u[u.length-(t>0?0:1)]=0),a[t]={left:0,top:0,width:i,height:o},u[u.length-1]+=i+n.padding}),c.height+=d}else{var h=n.padding,f=e.columnWidths=[],p=e.columnHeights=[],m=n.padding,b=0,g=0;z.each(e.legendItems,function(e,t){var i=oi(n,o)+o/2+r.measureText(e.text).width;t>0&&g+o+2*h>c.height&&(m+=b+n.padding,f.push(b),p.push(g),b=0,g=0),b=Math.max(b,i),g+=o+h,a[t]={left:0,top:0,width:i,height:o}}),m+=b,f.push(b),p.push(g),c.width+=m}e.width=c.width,e.height=c.height}else e.width=c.width=e.height=c.height=0},afterFit:ri,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,i=F.global,r=i.defaultColor,s=i.elements.line,o=e.height,a=e.columnHeights,c=e.width,l=e.lineWidths;if(t.display){var u,d=ii(t.rtl,e.left,e.minSize.width),h=e.ctx,f=si(n.fontColor,i.defaultFontColor),p=z.options._parseFont(n),m=p.size;h.textAlign=d.textAlign("left"),h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=f,h.fillStyle=f,h.font=p.string;var b=oi(n,m),g=e.legendHitBoxes,_=function(e,i){switch(t.align){case"start":return n.padding;case"end":return e-i;default:return(e-i+n.padding)/2}},v=e.isHorizontal();u=v?{x:e.left+_(c,l[0]),y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+_(o,a[0]),line:0},z.rtl.overrideTextDirection(e.ctx,t.textDirection);var y=m+n.padding;z.each(e.legendItems,function(t,i){var f=h.measureText(t.text).width,p=b+m/2+f,w=u.x,D=u.y;d.setWidth(e.minSize.width),v?i>0&&w+p+n.padding>e.left+e.minSize.width&&(D=u.y+=y,u.line++,w=u.x=e.left+_(c,l[u.line])):i>0&&D+y>e.top+e.minSize.height&&(w=u.x=w+e.columnWidths[u.line]+n.padding,u.line++,D=u.y=e.top+_(o,a[u.line]));var S=d.x(w);(function(e,t,i){if(!(isNaN(b)||b<=0)){h.save();var o=si(i.lineWidth,s.borderWidth);if(h.fillStyle=si(i.fillStyle,r),h.lineCap=si(i.lineCap,s.borderCapStyle),h.lineDashOffset=si(i.lineDashOffset,s.borderDashOffset),h.lineJoin=si(i.lineJoin,s.borderJoinStyle),h.lineWidth=o,h.strokeStyle=si(i.strokeStyle,r),h.setLineDash&&h.setLineDash(si(i.lineDash,s.borderDash)),n&&n.usePointStyle){var a=b*Math.SQRT2/2,c=d.xPlus(e,b/2);z.canvas.drawPoint(h,i.pointStyle,a,c,t+m/2,i.rotation)}else h.fillRect(d.leftForLtr(e,b),t,b,m),0!==o&&h.strokeRect(d.leftForLtr(e,b),t,b,m);h.restore()}})(S,D,t),g[i].left=d.leftForLtr(S,g[i].width),g[i].top=D,function(e,t,n,i){var r=m/2,s=d.xPlus(e,b+r),o=t+r;h.fillText(n.text,s,o),n.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(s,o),h.lineTo(d.xPlus(s,i),o),h.stroke())}(S,D,t,f),v?u.x+=p+n.padding:u.y+=y}),z.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var n,i,r,s=this;if(e>=s.left&&e<=s.right&&t>=s.top&&t<=s.bottom)for(r=s.legendHitBoxes,n=0;n<r.length;++n)if(e>=(i=r[n]).left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height)return s.legendItems[n];return null},handleEvent:function(e){var t,n=this,i=n.options,r="mouseup"===e.type?"click":e.type;if("mousemove"===r){if(!i.onHover&&!i.onLeave)return}else{if("click"!==r)return;if(!i.onClick)return}t=n._getLegendItemAt(e.x,e.y),"click"===r?t&&i.onClick&&i.onClick.call(n,e.native,t):(i.onLeave&&t!==n._hoveredItem&&(n._hoveredItem&&i.onLeave.call(n,e.native,n._hoveredItem),n._hoveredItem=t),i.onHover&&t&&i.onHover.call(n,e.native,t))}});function ci(e,t){var n=new ai({ctx:e.ctx,options:t,chart:e});ct.configure(e,n,t),ct.addBox(e,n),e.legend=n}var li={id:"legend",_element:ai,beforeInit:function(e){var t=e.options.legend;t&&ci(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(z.mergeIf(t,F.global.legend),n?(ct.configure(e,n,t),n.options=t):ci(e,t)):n&&(ct.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},ui=z.noop;F._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var di=B.extend({initialize:function(e){z.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:ui,update:function(e,t,n){var i=this;return i.beforeUpdate(),i.maxWidth=e,i.maxHeight=t,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:ui,beforeSetDimensions:ui,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:ui,beforeBuildLabels:ui,buildLabels:ui,afterBuildLabels:ui,beforeFit:ui,fit:function(){var e,t=this,n=t.options,i=t.minSize={},r=t.isHorizontal();n.display?(e=(z.isArray(n.text)?n.text.length:1)*z.options._parseFont(n).lineHeight+2*n.padding,t.width=i.width=r?t.maxWidth:e,t.height=i.height=r?e:t.maxHeight):t.width=i.width=t.height=i.height=0},afterFit:ui,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=e.options;if(n.display){var i,r,s,o=z.options._parseFont(n),a=o.lineHeight,c=a/2+n.padding,l=0,u=e.top,d=e.left,h=e.bottom,f=e.right;t.fillStyle=z.valueOrDefault(n.fontColor,F.global.defaultFontColor),t.font=o.string,e.isHorizontal()?(r=d+(f-d)/2,s=u+c,i=f-d):(r="left"===n.position?d+c:f-c,s=u+(h-u)/2,i=h-u,l=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(r,s),t.rotate(l),t.textAlign="center",t.textBaseline="middle";var p=n.text;if(z.isArray(p))for(var m=0,b=0;b<p.length;++b)t.fillText(p[b],0,m,i),m+=a;else t.fillText(p,0,0,i);t.restore()}}});function hi(e,t){var n=new di({ctx:e.ctx,options:t,chart:e});ct.configure(e,n,t),ct.addBox(e,n),e.titleBlock=n}var fi={},pi=ni,mi=li,bi={id:"title",_element:di,beforeInit:function(e){var t=e.options.title;t&&hi(e,t)},beforeUpdate:function(e){var t=e.options.title,n=e.titleBlock;t?(z.mergeIf(t,F.global.title),n?(ct.configure(e,n,t),n.options=t):hi(e,t)):n&&(ct.removeBox(e,n),delete e.titleBlock)}};for(var gi in fi.filler=pi,fi.legend=mi,fi.title=bi,zt.helpers=z,function(){function e(e,t,n){var i;return"string"==typeof e?(i=parseInt(e,10),-1!==e.indexOf("%")&&(i=i/100*t.parentNode[n])):i=e,i}function t(e){return null!=e&&"none"!==e}function n(n,i,r){var s=document.defaultView,o=z._getParentNode(n),a=s.getComputedStyle(n)[i],c=s.getComputedStyle(o)[i],l=t(a),u=t(c),d=Number.POSITIVE_INFINITY;return l||u?Math.min(l?e(a,n,r):d,u?e(c,o,r):d):"none"}z.where=function(e,t){if(z.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return z.each(e,function(e){t(e)&&n.push(e)}),n},z.findIndex=Array.prototype.findIndex?function(e,t,n){return e.findIndex(t,n)}:function(e,t,n){n=void 0===n?e:n;for(var i=0,r=e.length;i<r;++i)if(t.call(n,e[i],i,e))return i;return-1},z.findNextWhere=function(e,t,n){z.isNullOrUndef(n)&&(n=-1);for(var i=n+1;i<e.length;i++){var r=e[i];if(t(r))return r}},z.findPreviousWhere=function(e,t,n){z.isNullOrUndef(n)&&(n=e.length);for(var i=n-1;i>=0;i--){var r=e[i];if(t(r))return r}},z.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},z.almostEquals=function(e,t,n){return Math.abs(e-t)<n},z.almostWhole=function(e,t){var n=Math.round(e);return n-t<=e&&n+t>=e},z.max=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.max(e,t)},Number.NEGATIVE_INFINITY)},z.min=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.min(e,t)},Number.POSITIVE_INFINITY)},z.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0==(e=+e)||isNaN(e)?e:e>0?1:-1},z.toRadians=function(e){return e*(Math.PI/180)},z.toDegrees=function(e){return e*(180/Math.PI)},z._decimalPlaces=function(e){if(z.isFinite(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}},z.getAngleFromPoint=function(e,t){var n=t.x-e.x,i=t.y-e.y,r=Math.sqrt(n*n+i*i),s=Math.atan2(i,n);return s<-.5*Math.PI&&(s+=2*Math.PI),{angle:s,distance:r}},z.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},z.aliasPixel=function(e){return e%2==0?0:.5},z._alignPixel=function(e,t,n){var i=e.currentDevicePixelRatio,r=n/2;return Math.round((t-r)*i)/i+r},z.splineCurve=function(e,t,n,i){var r=e.skip?t:e,s=t,o=n.skip?t:n,a=Math.sqrt(Math.pow(s.x-r.x,2)+Math.pow(s.y-r.y,2)),c=Math.sqrt(Math.pow(o.x-s.x,2)+Math.pow(o.y-s.y,2)),l=a/(a+c),u=c/(a+c),d=i*(l=isNaN(l)?0:l),h=i*(u=isNaN(u)?0:u);return{previous:{x:s.x-d*(o.x-r.x),y:s.y-d*(o.y-r.y)},next:{x:s.x+h*(o.x-r.x),y:s.y+h*(o.y-r.y)}}},z.EPSILON=Number.EPSILON||1e-14,z.splineCurveMonotone=function(e){var t,n,i,r,s,o,a,c,l,u=(e||[]).map(function(e){return{model:e._model,deltaK:0,mK:0}}),d=u.length;for(t=0;t<d;++t)if(!(i=u[t]).model.skip){if(n=t>0?u[t-1]:null,(r=t<d-1?u[t+1]:null)&&!r.model.skip){var h=r.model.x-i.model.x;i.deltaK=0!==h?(r.model.y-i.model.y)/h:0}i.mK=!n||n.model.skip?i.deltaK:!r||r.model.skip?n.deltaK:this.sign(n.deltaK)!==this.sign(i.deltaK)?0:(n.deltaK+i.deltaK)/2}for(t=0;t<d-1;++t)r=u[t+1],(i=u[t]).model.skip||r.model.skip||(z.almostEquals(i.deltaK,0,this.EPSILON)?i.mK=r.mK=0:(s=i.mK/i.deltaK,o=r.mK/i.deltaK,(c=Math.pow(s,2)+Math.pow(o,2))<=9||(a=3/Math.sqrt(c),i.mK=s*a*i.deltaK,r.mK=o*a*i.deltaK)));for(t=0;t<d;++t)(i=u[t]).model.skip||(r=t<d-1?u[t+1]:null,(n=t>0?u[t-1]:null)&&!n.model.skip&&(i.model.controlPointPreviousX=i.model.x-(l=(i.model.x-n.model.x)/3),i.model.controlPointPreviousY=i.model.y-l*i.mK),r&&!r.model.skip&&(i.model.controlPointNextX=i.model.x+(l=(r.model.x-i.model.x)/3),i.model.controlPointNextY=i.model.y+l*i.mK))},z.nextItem=function(e,t,n){return n?t>=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},z.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},z.niceNum=function(e,t){var n=Math.floor(z.log10(e)),i=e/Math.pow(10,n);return(t?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},z.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},z.getRelativePosition=function(e,t){var n,i,r=e.originalEvent||e,s=e.target||e.srcElement,o=s.getBoundingClientRect(),a=r.touches;a&&a.length>0?(n=a[0].clientX,i=a[0].clientY):(n=r.clientX,i=r.clientY);var c=parseFloat(z.getStyle(s,"padding-left")),l=parseFloat(z.getStyle(s,"padding-top")),u=parseFloat(z.getStyle(s,"padding-right")),d=parseFloat(z.getStyle(s,"padding-bottom")),h=o.bottom-o.top-l-d;return{x:n=Math.round((n-o.left-c)/(o.right-o.left-c-u)*s.width/t.currentDevicePixelRatio),y:i=Math.round((i-o.top-l)/h*s.height/t.currentDevicePixelRatio)}},z.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},z.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},z._calculatePadding=function(e,t,n){return(t=z.getStyle(e,t)).indexOf("%")>-1?n*parseInt(t,10)/100:parseInt(t,10)},z._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},z.getMaximumWidth=function(e){var t=z._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,i=n-z._calculatePadding(t,"padding-left",n)-z._calculatePadding(t,"padding-right",n),r=z.getConstraintWidth(e);return isNaN(r)?i:Math.min(i,r)},z.getMaximumHeight=function(e){var t=z._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,i=n-z._calculatePadding(t,"padding-top",n)-z._calculatePadding(t,"padding-bottom",n),r=z.getConstraintHeight(e);return isNaN(r)?i:Math.min(i,r)},z.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},z.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var i=e.canvas,r=e.height,s=e.width;i.height=r*n,i.width=s*n,e.ctx.scale(n,n),i.style.height||i.style.width||(i.style.height=r+"px",i.style.width=s+"px")}},z.fontString=function(e,t,n){return t+" "+e+"px "+n},z.longestText=function(e,t,n,i){var r=(i=i||{}).data=i.data||{},s=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(r=i.data={},s=i.garbageCollect=[],i.font=t),e.font=t;var o,a,c,l,u,d=0,h=n.length;for(o=0;o<h;o++)if(null!=(l=n[o])&&!0!==z.isArray(l))d=z.measureText(e,r,s,d,l);else if(z.isArray(l))for(a=0,c=l.length;a<c;a++)null==(u=l[a])||z.isArray(u)||(d=z.measureText(e,r,s,d,u));var f=s.length/2;if(f>n.length){for(o=0;o<f;o++)delete r[s[o]];s.splice(0,f)}return d},z.measureText=function(e,t,n,i,r){var s=t[r];return s||(s=t[r]=e.measureText(r).width,n.push(r)),s>i&&(i=s),i},z.numberOfLabelLines=function(e){var t=1;return z.each(e,function(e){z.isArray(e)&&e.length>t&&(t=e.length)}),t},z.color=y?function(e){return e instanceof CanvasGradient&&(e=F.global.defaultColor),y(e)}:function(e){return console.error("Color.js not found!"),e},z.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:z.color(e).saturate(.5).darken(.1).rgbString()}}(),zt._adapters=Xt,zt.Animation=q,zt.animationService=G,zt.controllers=Ve,zt.DatasetController=ee,zt.defaults=F,zt.Element=B,zt.elements=ge,zt.Interaction=Qe,zt.layouts=ct,zt.platform=wt,zt.plugins=Dt,zt.Scale=sn,zt.scaleService=St,zt.Ticks=Vt,zt.Tooltip=At,zt.helpers.each(Bn,function(e,t){zt.scaleService.registerScaleType(t,e,e._defaults)}),fi)fi.hasOwnProperty(gi)&&zt.plugins.register(fi[gi]);zt.platform.initialize();var _i=zt;return"undefined"!=typeof window&&(window.Chart=zt),zt.Chart=zt,zt.Legend=fi.legend._element,zt.Title=fi.title._element,zt.pluginService=zt.plugins,zt.PluginBase=zt.Element.extend({}),zt.canvasHelpers=zt.helpers.canvas,zt.layoutService=zt.layouts,zt.LinearScaleBase=ln,zt.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(e){zt[e]=function(t,n){return new zt(t,zt.helpers.merge(n||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}}),_i}(function(){try{return n("wd/R")}catch(e){}}())},MuvH:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("8Y7J"),r=n("IheW");let s=(()=>{class e{constructor(e){this.http=e}findValue(e,t){if(e.value)return e.value.find(e=>e.section===t)}getValue(e,t){let n=this.findValue(e,t);if(!n){const i=t.indexOf(".");-1!==i&&(n=this.findValue(e,t.substring(0,i)))}return n||(n=this.findValue(e,"global")),n?n.value:e.default}getConfigData(){return this.http.get("api/cluster_conf/")}get(e){return this.http.get(`api/cluster_conf/${e}`)}filter(e){return this.http.get(`api/cluster_conf/filter?names=${e.join(",")}`)}create(e){return this.http.post("api/cluster_conf/",e)}delete(e,t){return this.http.delete(`api/cluster_conf/${e}?section=${t}`)}bulkCreate(e){return this.http.put("api/cluster_conf/",e)}}return e.\u0275fac=function(t){return new(t||e)(i.ic(r.b))},e.\u0275prov=i.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},Mxhz:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("LRne"),r=n("CqXF"),s=n("JIr8"),o=n("8Y7J"),a=n("IheW");let c=(()=>{class e{constructor(e){this.http=e}list(){return this.http.get("api/user")}delete(e){return this.http.delete(`api/user/${e}`)}get(e){return this.http.get(`api/user/${e}`)}create(e){return this.http.post("api/user",e)}update(e){return this.http.put(`api/user/${e.username}`,e)}changePassword(e,t,n){return this.http.post(`api/user/${e}/change_password`,{old_password:t,new_password:n})}validateUserName(e){return this.get(e).pipe(Object(r.a)(!0),Object(s.a)(e=>(e.preventDefault(),Object(i.a)(!1))))}validatePassword(e,t=null,n=null){return this.http.post("api/user/validate_password",{password:e,username:t,old_password:n})}}return e.\u0275fac=function(t){return new(t||e)(o.ic(a.b))},e.\u0275prov=o.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},"N+g0":function(e,t,n){var i=n("g6v/"),r=n("m/L8"),s=n("glrk"),o=n("/GqU"),a=n("33Wh");e.exports=i?Object.defineProperties:function(e,t){s(e);for(var n,i=o(t),c=a(t),l=c.length,u=0;l>u;)r.f(e,n=c[u++],i[n]);return e}},"NC/Y":function(e,t,n){var i=n("0GbY");e.exports=i("navigator","userAgent")||""},NEZu:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e,t,n,i){this.customColors={backgroundColor:void 0,borderColor:void 0},this.checkOffset=!1,this.chartEl=e.nativeElement,this.getStyleLeft=n,this.getStyleTop=i,this.tooltipEl=t.nativeElement}customTooltips(e){if(0===e.opacity)return void(this.tooltipEl.style.opacity=0);if(this.tooltipEl.classList.remove("above","below","no-transform"),this.tooltipEl.classList.add(e.yAlign?e.yAlign:"no-transform"),e.body){const t=e.title||[],n=e.body.map(e=>e.lines);let i="<thead>";t.forEach(e=>{i+="<tr><th>"+this.getTitle(e)+"</th></tr>"}),i+="</thead><tbody>",n.forEach((t,n)=>{const r=e.labelColors[n];let s="background:"+(this.customColors.backgroundColor||r.backgroundColor);s+="; border-color:"+(this.customColors.borderColor||r.borderColor),s+="; border-width: 2px",i+='<tr><td nowrap><span class="chartjs-tooltip-key" style="'+s+'"></span>'+this.getBody(t)+"</td></tr>"}),i+="</tbody>",this.tooltipEl.querySelector("table").innerHTML=i}const t=this.chartEl.offsetTop,n=this.chartEl.offsetLeft;if(this.checkOffset){const t=e.width/2;this.tooltipEl.classList.remove("transform-left"),this.tooltipEl.classList.remove("transform-right"),e.caretX-t<0?this.tooltipEl.classList.add("transform-left"):e.caretX+t>this.chartEl.width&&this.tooltipEl.classList.add("transform-right")}this.tooltipEl.style.left=this.getStyleLeft(e,n),this.tooltipEl.style.top=this.getStyleTop(e,t),this.tooltipEl.style.opacity=1,this.tooltipEl.style.fontFamily=e._fontFamily,this.tooltipEl.style.fontSize=e.fontSize,this.tooltipEl.style.fontStyle=e._fontStyle,this.tooltipEl.style.padding=e.yPadding+"px "+e.xPadding+"px"}getBody(e){return e}getTitle(e){return e}}},NJ4a:function(e,t,n){"use strict";function i(e){setTimeout(()=>{throw e},0)}n.d(t,"a",function(){return i})},NJ9Y:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("sVev"),r=n("pLZG"),s=n("BFxc"),o=n("XDbj"),a=n("xbPD"),c=n("SpAZ");function l(e,t){const n=arguments.length>=2;return l=>l.pipe(e?Object(r.a)((t,n)=>e(t,n,l)):c.a,Object(s.a)(1),n?Object(a.a)(t):Object(o.a)(()=>new i.a))}},NaFW:function(e,t,n){var i=n("9d/t"),r=n("3Eq5"),s=n("P4y1"),o=n("tiKp")("iterator");e.exports=function(e){if(null!=e)return r(e,o)||r(e,"@@iterator")||s[i(e)]}},NwgZ:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("8Y7J"),r=n("s7LF");let s=(()=>{class e{constructor(){this.validSubmit=new i.p}onSubmit(){this.markAsTouchedAndDirty(this.formGroup),this.formGroup.valid&&this.validSubmit.emit(this.formGroup.value)}markAsTouchedAndDirty(e){e instanceof r.j?Object.keys(e.controls).forEach(t=>this.markAsTouchedAndDirty(e.controls[t])):e instanceof r.e?e.controls.forEach(e=>this.markAsTouchedAndDirty(e)):e instanceof r.h&&e.enabled&&(e.markAsDirty(),e.markAsTouched(),e.updateValueAndValidity())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Mb({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.lc("submit",function(){return t.onSubmit()})},inputs:{formGroup:"formGroup"},outputs:{validSubmit:"validSubmit"}}),e})()},O741:function(e,t,n){var i=n("2oRo"),r=n("Fib7"),s=i.String,o=i.TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw o("Can't set "+s(e)+" as a prototype")}},OIYi:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n("wd/R"))},OLbh:function(e,t,n){"use strict";n.d(t,"a",function(){return f});var i=n("s7LF"),r=n("8Y7J"),s=n("G0yt"),o=n("ajRT"),a=n("SVse"),c=n("NwgZ"),l=n("6+kj");function u(e,t){1&e&&(r.Xb(0,"span",11),r.Sb(1,"i",12),r.Wb())}function d(e,t){1&e&&r.Tb(0)}function h(e,t){if(1&e&&(r.Xb(0,"p"),r.Rc(1),r.Wb()),2&e){const e=r.nc();r.Db(1),r.Tc(" ",e.description," ")}}let f=(()=>{class e{constructor(e){this.activeModal=e,this.warning=!1,this.showSubmit=!0,this.boundCancel=this.cancel.bind(this),this.canceled=!1,this.confirmationForm=new i.j({})}ngOnInit(){if(this.bodyContext=this.bodyContext||{},this.bodyContext.$implicit=this.bodyData,!this.onSubmit)throw new Error("No submit action defined");if(!this.buttonText)throw new Error("No action name defined");if(!this.titleText)throw new Error("No title defined");if(!this.bodyTpl&&!this.description)throw new Error("No description defined")}ngOnDestroy(){this.onCancel&&this.canceled&&this.onCancel()}cancel(){this.canceled=!0,this.activeModal.close()}stopLoadingSpinner(){this.confirmationForm.setErrors({cdSubmitButton:!0})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(s.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-confirmation-modal"]],decls:12,vars:9,consts:[[3,"hide"],[1,"modal-title"],["class","text-warning",4,"ngIf"],[1,"modal-content"],["name","confirmationForm","novalidate","",3,"formGroup"],["formDir","ngForm"],[1,"modal-body"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],[1,"modal-footer"],[3,"form","submitText","showSubmit","submitActionEvent","backActionEvent"],[1,"text-warning"],[1,"fa","fa-exclamation-triangle","fa-1x"]],template:function(e,t){1&e&&(r.Xb(0,"cd-modal",0),r.lc("hide",function(){return t.cancel()}),r.Vb(1,1),r.Pc(2,u,2,0,"span",2),r.Rc(3),r.Ub(),r.Vb(4,3),r.Xb(5,"form",4,5),r.Xb(7,"div",6),r.Pc(8,d,1,0,"ng-container",7),r.Pc(9,h,2,1,"p",8),r.Wb(),r.Xb(10,"div",9),r.Xb(11,"cd-form-button-panel",10),r.lc("submitActionEvent",function(){return t.onSubmit(t.confirmationForm.value)})("backActionEvent",function(){return t.boundCancel()}),r.Wb(),r.Wb(),r.Wb(),r.Ub(),r.Wb()),2&e&&(r.Db(2),r.uc("ngIf",t.warning),r.Db(1),r.Sc(t.titleText),r.Db(2),r.uc("formGroup",t.confirmationForm),r.Db(3),r.uc("ngTemplateOutlet",t.bodyTpl)("ngTemplateOutletContext",t.bodyContext),r.Db(1),r.uc("ngIf",t.description),r.Db(2),r.uc("form",t.confirmationForm)("submitText",t.buttonText)("showSubmit",t.showSubmit))},directives:[o.a,a.r,i.B,i.r,i.k,c.a,a.w,l.a],styles:[""]}),e})()},Oaa7:function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},Ob0Z:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function i(e,t,n,i){var r="";if(t)switch(n){case"s":r="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":r="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":r="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":r="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":r="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":r="%d \u0924\u093e\u0938";break;case"d":r="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":r="%d \u0926\u093f\u0935\u0938";break;case"M":r="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":r="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":r="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":r="%d \u0935\u0930\u094d\u0937\u0947"}else switch(n){case"s":r="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":r="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":r="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":r="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":r="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":r="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":r="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":r="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":r="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":r="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":r="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":r="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return r.replace(/%d/i,e)}e.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u092a\u0939\u093e\u091f\u0947"===t||"\u0938\u0915\u093e\u0933\u0940"===t?e:"\u0926\u0941\u092a\u093e\u0930\u0940"===t||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===t||"\u0930\u093e\u0924\u094d\u0930\u0940"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"\u092a\u0939\u093e\u091f\u0947":e<12?"\u0938\u0915\u093e\u0933\u0940":e<17?"\u0926\u0941\u092a\u093e\u0930\u0940":e<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(n("wd/R"))},OjkT:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924\u093f"===t?e<4?e:e+12:"\u092c\u093f\u0939\u093e\u0928"===t?e:"\u0926\u093f\u0909\u0901\u0938\u094b"===t?e>=10?e:e+12:"\u0938\u093e\u0901\u091d"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"\u0930\u093e\u0924\u093f":e<12?"\u092c\u093f\u0939\u093e\u0928":e<16?"\u0926\u093f\u0909\u0901\u0938\u094b":e<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(n("wd/R"))},OmwH:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(n("wd/R"))},OpvP:function(e,t,n){var i=n("4zBA");e.exports=i({}.isPrototypeOf)},Oxv6:function(e,t,n){!function(e){"use strict";var t={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};e.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0448\u0430\u0431"===t?e<4?e:e+12:"\u0441\u0443\u0431\u04b3"===t?e:"\u0440\u04ef\u0437"===t?e>=11?e:e+12:"\u0431\u0435\u0433\u043e\u04b3"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0448\u0430\u0431":e<11?"\u0441\u0443\u0431\u04b3":e<16?"\u0440\u04ef\u0437":e<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("wd/R"))},P4y1:function(e,t){e.exports={}},PA2r:function(e,t,n){!function(e){"use strict";var t="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),n="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),i=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],r=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function s(e){return e>1&&e<5&&1!=~~(e/10)}function o(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return t||i?r+(s(e)?"sekundy":"sekund"):r+"sekundami";case"m":return t?"minuta":i?"minutu":"minutou";case"mm":return t||i?r+(s(e)?"minuty":"minut"):r+"minutami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?r+(s(e)?"hodiny":"hodin"):r+"hodinami";case"d":return t||i?"den":"dnem";case"dd":return t||i?r+(s(e)?"dny":"dn\xed"):r+"dny";case"M":return t||i?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return t||i?r+(s(e)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):r+"m\u011bs\xedci";case"y":return t||i?"rok":"rokem";case"yy":return t||i?r+(s(e)?"roky":"let"):r+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},PCNd:function(e,t,n){"use strict";n.d(t,"a",function(){return f});var i=n("SVse"),r=n("TKcr"),s=n("V/fk"),o=n("ChqD"),a=n("yGOH"),c=n("9Xeq"),l=n("Avrn"),u=n("aexS"),d=n("aXbf"),h=n("8Y7J");let f=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Pb({type:e}),e.\u0275inj=h.Ob({providers:[u.a,l.a,d.a,r.a],imports:[[i.c,c.a,s.a,o.a,a.a],s.a,c.a,o.a,a.a]}),e})()},PKPk:function(e,t,n){"use strict";var i=n("ZUd8").charAt,r=n("V37c"),s=n("afO8"),o=n("fdAy"),a="String Iterator",c=s.set,l=s.getterFor(a);o(String,"String",function(e){c(this,{type:a,string:r(e),index:0})},function(){var e,t=l(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=i(n,r),t.index+=e.length,{value:e,done:!1})})},PeUW:function(e,t,n){!function(e){"use strict";var t={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},n={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};e.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(e){return e+"\u0bb5\u0ba4\u0bc1"},preparse:function(e){return e.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(e,t,n){return e<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":e<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":e<10?" \u0b95\u0bbe\u0bb2\u0bc8":e<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":e<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":e<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(e,t){return 12===e&&(e=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===t?e<2?e:e+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===t||"\u0b95\u0bbe\u0bb2\u0bc8"===t||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n("wd/R"))},PhyI:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r});var i=function(e){return e[e.global=0]="global",e[e.pool=1]="pool",e[e.image=2]="image",e}({}),r=function(e){return e[e.bps=0]="bps",e[e.iops=1]="iops",e[e.milliseconds=2]="milliseconds",e}({})},PpIw:function(e,t,n){!function(e){"use strict";var t={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},n={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};e.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(e){return e.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===t?e<4?e:e+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===t?e:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===t?e>=10?e:e+12:"\u0cb8\u0c82\u0c9c\u0cc6"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":e<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":e<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":e<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(e){return e+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(n("wd/R"))},PqYM:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("HDdC"),r=n("D0XW"),s=n("Y7HM"),o=n("z+Ro");function a(e=0,t,n){let a=-1;return Object(s.a)(t)?a=Number(t)<1?1:Number(t):Object(o.a)(t)&&(n=t),Object(o.a)(n)||(n=r.a),new i.a(t=>{const i=Object(s.a)(e)?e:+e-n.now();return n.schedule(c,i,{index:0,period:a,subscriber:t})})}function c(e){const{index:t,period:n,subscriber:i}=e;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}},QFaf:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("s7LF");class r extends i.j{constructor(e,t,n){super(e,t,n),this.controls=e}get(e){const t=this._get(e);if(!t)throw new Error(`Control '${e}' could not be found!`);return t}_get(e){return super.get(e)||Object.values(this.controls).filter(e=>e.get).map(t=>t instanceof r?t._get(e):t.get(e)).find(e=>Boolean(e))}getValue(e){return this.get(e).value}silentSet(e,t){this.get(e).setValue(t,{emitEvent:!1})}showError(e,t,n){const i=this.get(e);return(t.submitted||i.dirty)&&(n?i.hasError(n):i.invalid)}}},QTAa:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("t/zF");class r extends i.a{}},QWBl:function(e,t,n){"use strict";var i=n("I+eb"),r=n("F8JR");i({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},Qj4J:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(n("wd/R"))},RAwQ:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?r[n][0]:r[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d M\xe9int",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},RK3t:function(e,t,n){var i=n("2oRo"),r=n("4zBA"),s=n("0Dky"),o=n("xrYK"),a=i.Object,c=r("".split);e.exports=s(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"==o(e)?c(e,""):a(e)}:a},RNIs:function(e,t,n){var i=n("tiKp"),r=n("fHMY"),s=n("m/L8"),o=i("unscopables"),a=Array.prototype;null==a[o]&&s.f(a,o,{configurable:!0,value:r(null)}),e.exports=function(e){a[o][e]=!0}},Rf2I:function(e,t,n){"use strict";n.d(t,"a",function(){return I});var i=n("s7LF"),r=n("LvDl"),s=n.n(r),o=n("2EZI"),a=n("Fgil"),c=n("aXbf"),l=n("8Y7J"),u=n("G0yt"),d=n("ajRT"),h=n("SVse"),f=n("NwgZ"),p=n("6+kj"),m=n("ANnk"),b=n("f69J"),g=n("EmSq"),_=n("ppaS");function v(e,t){if(1&e&&(l.Vb(0,10),l.Rc(1),l.Ub()),2&e){const e=l.nc();l.Db(1),l.Tc(" ",e.titleText," ")}}function y(e,t){if(1&e&&(l.Xb(0,"p"),l.Rc(1),l.Wb()),2&e){const e=l.nc();l.Db(1),l.Sc(e.message)}}const w=function(e){return{required:e}};function D(e,t){if(1&e&&(l.Xb(0,"label",18),l.Rc(1),l.Wb()),2&e){const e=l.nc().$implicit;l.uc("ngClass",l.zc(3,w,!0===(null==e?null:e.required)))("for",e.name),l.Db(1),l.Tc(" ",e.label," ")}}function S(e,t){if(1&e&&l.Sb(0,"input",19),2&e){const e=l.nc().$implicit;l.uc("type",e.type)("id",e.name)("name",e.name)("formControlName",e.name)}}function x(e,t){if(1&e&&l.Sb(0,"input",20),2&e){const e=l.nc().$implicit;l.uc("id",e.name)("name",e.name)("formControlName",e.name)}}function k(e,t){if(1&e&&(l.Xb(0,"option",24),l.Rc(1),l.Wb()),2&e){const e=l.nc(2).$implicit;l.uc("ngValue",null),l.Db(1),l.Tc(" ",null==e||null==e.typeConfig?null:e.typeConfig.placeholder," ")}}function T(e,t){if(1&e&&(l.Xb(0,"option",25),l.Rc(1),l.Wb()),2&e){const e=t.$implicit;l.uc("value",e.value),l.Db(1),l.Tc(" ",e.text," ")}}function M(e,t){if(1&e&&(l.Xb(0,"select",21),l.Pc(1,k,2,2,"option",22),l.Pc(2,T,2,2,"option",23),l.Wb()),2&e){const e=l.nc().$implicit;l.uc("id",e.name)("formControlName",e.name),l.Db(1),l.uc("ngIf",null==e||null==e.typeConfig?null:e.typeConfig.placeholder),l.Db(1),l.uc("ngForOf",null==e||null==e.typeConfig?null:e.typeConfig.options)}}function C(e,t){if(1&e&&l.Sb(0,"cd-select-badges",26),2&e){const e=l.nc().$implicit;l.uc("id",e.name)("data",e.value)("customBadges",null==e||null==e.typeConfig?null:e.typeConfig.customBadges)("options",null==e||null==e.typeConfig?null:e.typeConfig.options)("messages",null==e||null==e.typeConfig?null:e.typeConfig.messages)}}function O(e,t){if(1&e&&(l.Xb(0,"span",27),l.Rc(1),l.Wb()),2&e){const e=l.nc().$implicit,t=l.nc();l.Db(1),l.Tc(" ",t.getError(e)," ")}}const L=function(e,t){return{"cd-col-form-input":e,"col-sm-12":t}},E=function(){return["text","number"]};function A(e,t){if(1&e&&(l.Vb(0),l.Xb(1,"div"),l.Pc(2,D,2,5,"label",11),l.Xb(3,"div",12),l.Pc(4,S,1,4,"input",13),l.Pc(5,x,1,3,"input",14),l.Pc(6,M,3,4,"select",15),l.Pc(7,C,1,5,"cd-select-badges",16),l.Pc(8,O,2,1,"span",17),l.Wb(),l.Wb(),l.Ub()),2&e){const e=t.$implicit,n=l.nc(),i=l.Fc(4);l.Db(1),l.Gb("form-group row cd-",e.name,"-form-group"),l.Db(1),l.uc("ngIf",e.label),l.Db(1),l.uc("ngClass",l.Ac(10,L,e.label,!e.label)),l.Db(1),l.uc("ngIf",l.yc(13,E).includes(e.type)),l.Db(1),l.uc("ngIf","binary"===e.type),l.Db(1),l.uc("ngIf","select"===e.type),l.Db(1),l.uc("ngIf","select-badges"===e.type),l.Db(1),l.uc("ngIf",n.formGroup.showError(e.name,i))}}let I=(()=>{class e{constructor(e,t,n,i){this.activeModal=e,this.formBuilder=t,this.formatter=n,this.dimlessBinaryPipe=i}ngOnInit(){this.createForm()}createForm(){const e={};this.fields.forEach(t=>{e[t.name]=this.createFormControl(t)}),this.formGroup=this.formBuilder.group(e)}createFormControl(e){let t=[];return s.a.isBoolean(e.required)&&e.required&&t.push(i.A.required),e.validators&&(t=t.concat(e.validators)),new i.h(s.a.defaultTo("binary"===e.type?this.dimlessBinaryPipe.transform(e.value):e.value,null),{validators:t})}getError(e){const t=this.formGroup.get(e.name).errors;return Object.keys(t).map(n=>this.getErrorMessage(n,t[n],e.errors)).join("<br>")}getErrorMessage(e,t,n){if(n){const t=n[e];if(t)return t}return["binaryMin","binaryMax"].includes(e)?t():"required"===e?"This field is required.":"An error occurred."}onSubmitForm(e){this.fields.filter(e=>"binary"===e.type).map(e=>e.name).forEach(t=>{const n=e[t];n&&(e[t]=this.formatter.toBytes(n))}),this.activeModal.close(),s.a.isFunction(this.onSubmit)&&this.onSubmit(e)}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(u.a),l.Rb(o.a),l.Rb(c.a),l.Rb(a.a))},e.\u0275cmp=l.Lb({type:e,selectors:[["cd-form-modal"]],decls:10,vars:7,consts:[[3,"modalRef"],["class","modal-title",4,"ngIf"],[1,"modal-content"],["novalidate","",3,"formGroup"],["formDir","ngForm"],[1,"modal-body"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"modal-footer"],[3,"form","submitText","submitActionEvent"],[1,"modal-title"],["class","cd-col-form-label",3,"ngClass","for",4,"ngIf"],[3,"ngClass"],["class","form-control",3,"type","id","name","formControlName",4,"ngIf"],["type","text","class","form-control","cdDimlessBinary","",3,"id","name","formControlName",4,"ngIf"],["class","form-control custom-select",3,"id","formControlName",4,"ngIf"],[3,"id","data","customBadges","options","messages",4,"ngIf"],["class","invalid-feedback",4,"ngIf"],[1,"cd-col-form-label",3,"ngClass","for"],[1,"form-control",3,"type","id","name","formControlName"],["type","text","cdDimlessBinary","",1,"form-control",3,"id","name","formControlName"],[1,"form-control","custom-select",3,"id","formControlName"],[3,"ngValue",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"ngValue"],[3,"value"],[3,"id","data","customBadges","options","messages"],[1,"invalid-feedback"]],template:function(e,t){1&e&&(l.Xb(0,"cd-modal",0),l.Pc(1,v,2,1,"ng-container",1),l.Vb(2,2),l.Xb(3,"form",3,4),l.Xb(5,"div",5),l.Pc(6,y,2,1,"p",6),l.Pc(7,A,9,14,"ng-container",7),l.Wb(),l.Xb(8,"div",8),l.Xb(9,"cd-form-button-panel",9),l.lc("submitActionEvent",function(){return t.onSubmitForm(t.formGroup.value)}),l.Wb(),l.Wb(),l.Wb(),l.Ub(),l.Wb()),2&e&&(l.uc("modalRef",t.activeModal),l.Db(1),l.uc("ngIf",t.titleText),l.Db(2),l.uc("formGroup",t.formGroup),l.Db(3),l.uc("ngIf",t.message),l.Db(1),l.uc("ngForOf",t.fields),l.Db(2),l.uc("form",t.formGroup)("submitText",t.submitButtonText))},directives:[d.a,h.r,i.B,i.r,i.k,f.a,h.q,p.a,h.p,m.a,i.d,b.a,i.q,i.i,g.a,i.z,i.u,i.C,_.a],styles:[""]}),e})()},Rm1S:function(e,t,n){"use strict";var i=n("xluM"),r=n("14Sl"),s=n("glrk"),o=n("UMSQ"),a=n("V37c"),c=n("HYAF"),l=n("3Eq5"),u=n("iqWW"),d=n("FMNM");r("match",function(e,t,n){return[function(t){var n=c(this),r=null==t?void 0:l(t,e);return r?i(r,t,n):new RegExp(t)[e](a(n))},function(e){var i=s(this),r=a(e),c=n(t,i,r);if(c.done)return c.value;if(!i.global)return d(i,r);var l=i.unicode;i.lastIndex=0;for(var h,f=[],p=0;null!==(h=d(i,r));){var m=a(h[0]);f[p]=m,""===m&&(i.lastIndex=u(r,o(i.lastIndex),l)),p++}return 0===p?null:f}]})},RnhZ:function(e,t,n){var i={"./af":"K/tc","./af.js":"K/tc","./ar":"jnO4","./ar-dz":"o1bE","./ar-dz.js":"o1bE","./ar-kw":"Qj4J","./ar-kw.js":"Qj4J","./ar-ly":"HP3h","./ar-ly.js":"HP3h","./ar-ma":"CoRJ","./ar-ma.js":"CoRJ","./ar-sa":"gjCT","./ar-sa.js":"gjCT","./ar-tn":"bYM6","./ar-tn.js":"bYM6","./ar.js":"jnO4","./az":"SFxW","./az.js":"SFxW","./be":"H8ED","./be.js":"H8ED","./bg":"hKrs","./bg.js":"hKrs","./bm":"p/rL","./bm.js":"p/rL","./bn":"kEOa","./bn-bd":"loYQ","./bn-bd.js":"loYQ","./bn.js":"kEOa","./bo":"0mo+","./bo.js":"0mo+","./br":"aIdf","./br.js":"aIdf","./bs":"JVSJ","./bs.js":"JVSJ","./ca":"1xZ4","./ca.js":"1xZ4","./cs":"PA2r","./cs.js":"PA2r","./cv":"A+xa","./cv.js":"A+xa","./cy":"l5ep","./cy.js":"l5ep","./da":"DxQv","./da.js":"DxQv","./de":"tGlX","./de-at":"s+uk","./de-at.js":"s+uk","./de-ch":"u3GI","./de-ch.js":"u3GI","./de.js":"tGlX","./dv":"WYrj","./dv.js":"WYrj","./el":"jUeY","./el.js":"jUeY","./en-au":"Dmvi","./en-au.js":"Dmvi","./en-ca":"OIYi","./en-ca.js":"OIYi","./en-gb":"Oaa7","./en-gb.js":"Oaa7","./en-ie":"4dOw","./en-ie.js":"4dOw","./en-il":"czMo","./en-il.js":"czMo","./en-in":"7C5Q","./en-in.js":"7C5Q","./en-nz":"b1Dy","./en-nz.js":"b1Dy","./en-sg":"t+mt","./en-sg.js":"t+mt","./eo":"Zduo","./eo.js":"Zduo","./es":"iYuL","./es-do":"CjzT","./es-do.js":"CjzT","./es-mx":"tbfe","./es-mx.js":"tbfe","./es-us":"Vclq","./es-us.js":"Vclq","./es.js":"iYuL","./et":"7BjC","./et.js":"7BjC","./eu":"D/JM","./eu.js":"D/JM","./fa":"jfSC","./fa.js":"jfSC","./fi":"gekB","./fi.js":"gekB","./fil":"1ppg","./fil.js":"1ppg","./fo":"ByF4","./fo.js":"ByF4","./fr":"nyYc","./fr-ca":"2fjn","./fr-ca.js":"2fjn","./fr-ch":"Dkky","./fr-ch.js":"Dkky","./fr.js":"nyYc","./fy":"cRix","./fy.js":"cRix","./ga":"USCx","./ga.js":"USCx","./gd":"9rRi","./gd.js":"9rRi","./gl":"iEDd","./gl.js":"iEDd","./gom-deva":"qvJo","./gom-deva.js":"qvJo","./gom-latn":"DKr+","./gom-latn.js":"DKr+","./gu":"4MV3","./gu.js":"4MV3","./he":"x6pH","./he.js":"x6pH","./hi":"3E1r","./hi.js":"3E1r","./hr":"S6ln","./hr.js":"S6ln","./hu":"WxRl","./hu.js":"WxRl","./hy-am":"1rYy","./hy-am.js":"1rYy","./id":"UDhR","./id.js":"UDhR","./is":"BVg3","./is.js":"BVg3","./it":"bpih","./it-ch":"bxKX","./it-ch.js":"bxKX","./it.js":"bpih","./ja":"B55N","./ja.js":"B55N","./jv":"tUCv","./jv.js":"tUCv","./ka":"IBtZ","./ka.js":"IBtZ","./kk":"bXm7","./kk.js":"bXm7","./km":"6B0Y","./km.js":"6B0Y","./kn":"PpIw","./kn.js":"PpIw","./ko":"Ivi+","./ko.js":"Ivi+","./ku":"JCF/","./ku.js":"JCF/","./ky":"lgnt","./ky.js":"lgnt","./lb":"RAwQ","./lb.js":"RAwQ","./lo":"sp3z","./lo.js":"sp3z","./lt":"JvlW","./lt.js":"JvlW","./lv":"uXwI","./lv.js":"uXwI","./me":"KTz0","./me.js":"KTz0","./mi":"aIsn","./mi.js":"aIsn","./mk":"aQkU","./mk.js":"aQkU","./ml":"AvvY","./ml.js":"AvvY","./mn":"lYtQ","./mn.js":"lYtQ","./mr":"Ob0Z","./mr.js":"Ob0Z","./ms":"6+QB","./ms-my":"ZAMP","./ms-my.js":"ZAMP","./ms.js":"6+QB","./mt":"G0Uy","./mt.js":"G0Uy","./my":"honF","./my.js":"honF","./nb":"bOMt","./nb.js":"bOMt","./ne":"OjkT","./ne.js":"OjkT","./nl":"+s0g","./nl-be":"2ykv","./nl-be.js":"2ykv","./nl.js":"+s0g","./nn":"uEye","./nn.js":"uEye","./oc-lnc":"Fnuy","./oc-lnc.js":"Fnuy","./pa-in":"8/+R","./pa-in.js":"8/+R","./pl":"jVdC","./pl.js":"jVdC","./pt":"8mBD","./pt-br":"0tRk","./pt-br.js":"0tRk","./pt.js":"8mBD","./ro":"lyxo","./ro.js":"lyxo","./ru":"lXzo","./ru.js":"lXzo","./sd":"Z4QM","./sd.js":"Z4QM","./se":"//9w","./se.js":"//9w","./si":"7aV9","./si.js":"7aV9","./sk":"e+ae","./sk.js":"e+ae","./sl":"gVVK","./sl.js":"gVVK","./sq":"yPMs","./sq.js":"yPMs","./sr":"zx6S","./sr-cyrl":"E+lV","./sr-cyrl.js":"E+lV","./sr.js":"zx6S","./ss":"Ur1D","./ss.js":"Ur1D","./sv":"X709","./sv.js":"X709","./sw":"dNwA","./sw.js":"dNwA","./ta":"PeUW","./ta.js":"PeUW","./te":"XLvN","./te.js":"XLvN","./tet":"V2x9","./tet.js":"V2x9","./tg":"Oxv6","./tg.js":"Oxv6","./th":"EOgW","./th.js":"EOgW","./tk":"Wv91","./tk.js":"Wv91","./tl-ph":"Dzi0","./tl-ph.js":"Dzi0","./tlh":"z3Vd","./tlh.js":"z3Vd","./tr":"DoHr","./tr.js":"DoHr","./tzl":"z1FC","./tzl.js":"z1FC","./tzm":"wQk9","./tzm-latn":"tT3J","./tzm-latn.js":"tT3J","./tzm.js":"wQk9","./ug-cn":"YRex","./ug-cn.js":"YRex","./uk":"raLr","./uk.js":"raLr","./ur":"UpQW","./ur.js":"UpQW","./uz":"Loxo","./uz-latn":"AQ68","./uz-latn.js":"AQ68","./uz.js":"Loxo","./vi":"KSF8","./vi.js":"KSF8","./x-pseudo":"/X5v","./x-pseudo.js":"/X5v","./yo":"fzPg","./yo.js":"fzPg","./zh-cn":"XDpg","./zh-cn.js":"XDpg","./zh-hk":"SatO","./zh-hk.js":"SatO","./zh-mo":"OmwH","./zh-mo.js":"OmwH","./zh-tw":"kOpN","./zh-tw.js":"kOpN"};function r(e){var t=s(e);return n(t)}function s(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=s,e.exports=r,r.id="RnhZ"},S6ln:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},S7zO:function(e,t,n){"use strict";n.d(t,"a",function(){return g});var i=n("LvDl"),r=n.n(i),s=n("oxzT"),o=(n("vCyI"),n("jKX/"),n("8Y7J")),a=n("SVse"),c=n("iInd"),l=n("G0yt");const u=function(e){return{disabled:e}},d=function(e){return[e]};function h(e,t){if(1&e){const e=o.Yb();o.Vb(0),o.Xb(1,"button",3),o.lc("click",function(){o.Ic(e);const t=o.nc();return t.useClickAction(t.currentAction)}),o.Sb(2,"i",4),o.Xb(3,"span"),o.Rc(4),o.Wb(),o.Wb(),o.Ub()}if(2&e){const e=o.nc();o.Db(1),o.Gb("btn btn-",e.btnColor,""),o.vc("title",e.useDisableDesc(e.currentAction)),o.uc("ngClass",o.zc(9,u,e.disableSelectionAction(e.currentAction)))("routerLink",e.useRouterLink(e.currentAction))("preserveFragment",e.currentAction.preserveFragment?"":null),o.Db(1),o.uc("ngClass",o.zc(11,d,e.currentAction.icon)),o.Db(2),o.Sc(e.currentAction.name)}}function f(e,t){if(1&e&&(o.Vb(0),o.Rc(1),o.Ub()),2&e){const e=o.nc(2);o.Db(1),o.Tc("",e.dropDownOnly," ")}}function p(e,t){1&e&&o.Sb(0,"span",10)}function m(e,t){if(1&e){const e=o.Yb();o.Vb(0),o.Xb(1,"button",11),o.lc("click",function(){o.Ic(e);const n=t.$implicit;return o.nc(2).useClickAction(n)}),o.Sb(2,"i",4),o.Xb(3,"span"),o.Rc(4),o.Wb(),o.Wb(),o.Ub()}if(2&e){const e=t.$implicit,n=o.nc(2);o.Db(1),o.Fb(n.toClassName(e)),o.vc("title",n.useDisableDesc(e)),o.uc("routerLink",n.useRouterLink(e))("preserveFragment",e.preserveFragment?"":null)("disabled",n.disableSelectionAction(e)),o.Db(1),o.uc("ngClass",o.zc(9,d,e.icon)),o.Db(2),o.Sc(e.name)}}function b(e,t){if(1&e&&(o.Xb(0,"div",5),o.Xb(1,"button",6),o.Pc(2,f,2,1,"ng-container",1),o.Pc(3,p,1,0,"span",7),o.Wb(),o.Xb(4,"div",8),o.Pc(5,m,5,11,"ng-container",9),o.Wb(),o.Wb()),2&e){const e=o.nc();o.Db(1),o.Gb("btn btn-",e.btnColor," dropdown-toggle-split"),o.Db(1),o.uc("ngIf",e.dropDownOnly),o.Db(1),o.uc("ngIf",!e.dropDownOnly),o.Db(2),o.uc("ngForOf",e.dropDownActions)}}let g=(()=>{class e{constructor(){this.btnColor="accent",this.dropDownActions=[],this.icons=s.a}ngOnInit(){this.removeActionsWithNoPermissions(),this.onSelectionChange()}ngOnChanges(e){e.selection&&this.onSelectionChange()}onSelectionChange(){this.updateDropDownActions(),this.updateCurrentAction()}toClassName(e){return e.name.replace(/ /g,"-").replace(/[^a-z-]/gi,"").toLowerCase()}removeActionsWithNoPermissions(){if(!this.permission)return void(this.tableActions=[]);const e=Object.keys(this.permission).filter(e=>this.permission[e]);this.tableActions=this.tableActions.filter(t=>e.includes(t.permission))}updateDropDownActions(){this.dropDownActions=this.tableActions.filter(e=>e.visible?e.visible(this.selection):e)}updateCurrentAction(){if(this.dropDownOnly)return void(this.currentAction=void 0);let e=this.dropDownActions.find(e=>this.showableAction(e));!e&&this.dropDownActions.length>0&&(e=this.dropDownActions[0]),this.currentAction=e}showableAction(e){const t=e.canBePrimary,n=this.selection.hasSingleSelection,i="create"===e.permission?!n:n;return t&&t(this.selection)||!t&&i}useRouterLink(e){if(e.routerLink&&!this.disableSelectionAction(e))return r.a.isString(e.routerLink)?e.routerLink:e.routerLink()}disableSelectionAction(e){const t=e.disable;if(t)return Boolean(t(this.selection));const n=e.permission,i=this.selection.hasSingleSelection&&this.selection.first();return Boolean(["update","delete"].includes(n)&&(!i||i.cdExecuting))}useClickAction(e){return!this.disableSelectionAction(e)&&e.click&&e.click()}useDisableDesc(e){if(e.disable){const t=e.disable(this.selection);return r.a.isString(t)?t:void 0}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Lb({type:e,selectors:[["cd-table-actions"]],inputs:{permission:"permission",selection:"selection",tableActions:"tableActions",btnColor:"btnColor",dropDownOnly:"dropDownOnly"},features:[o.Bb],decls:3,vars:2,consts:[[1,"btn-group"],[4,"ngIf"],["class","btn-group","ngbDropdown","","role","group","aria-label","Button group with nested dropdown",4,"ngIf"],["type","button",3,"title","ngClass","routerLink","preserveFragment","click"],[3,"ngClass"],["ngbDropdown","","role","group","aria-label","Button group with nested dropdown",1,"btn-group"],["ngbDropdownToggle",""],["class","sr-only",4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu"],[4,"ngFor","ngForOf"],[1,"sr-only"],["ngbDropdownItem","",3,"title","routerLink","preserveFragment","disabled","click"]],template:function(e,t){1&e&&(o.Xb(0,"div",0),o.Pc(1,h,5,13,"ng-container",1),o.Pc(2,b,6,6,"div",2),o.Wb()),2&e&&(o.Db(1),o.uc("ngIf",t.currentAction),o.Db(1),o.uc("ngIf",t.dropDownActions.length>1))},directives:[a.r,a.p,c.f,l.i,l.m,l.k,a.q,l.j],styles:["button.disabled[_ngcontent-%COMP%]{cursor:default!important;pointer-events:auto}"]}),e})()},SFrS:function(e,t,n){var i=n("2oRo"),r=n("xluM"),s=n("Fib7"),o=n("hh1v"),a=i.TypeError;e.exports=function(e,t){var n,i;if("string"===t&&s(n=e.toString)&&!o(i=r(n,e)))return i;if(s(n=e.valueOf)&&!o(i=r(n,e)))return i;if("string"!==t&&s(n=e.toString)&&!o(i=r(n,e)))return i;throw a("Can't convert object to primitive value")}},SFxW:function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(e){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gec\u0259":e<12?"s\u0259h\u0259r":e<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(e){if(0===e)return e+"-\u0131nc\u0131";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("wd/R"))},STAE:function(e,t,n){var i=n("LQDL"),r=n("0Dky");e.exports=!!Object.getOwnPropertySymbols&&!r(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41})},SVse:function(e,t,n){"use strict";n.d(t,"a",function(){return y}),n.d(t,"b",function(){return We}),n.d(t,"c",function(){return Qe}),n.d(t,"d",function(){return c}),n.d(t,"e",function(){return $e}),n.d(t,"f",function(){return qe}),n.d(t,"g",function(){return C}),n.d(t,"h",function(){return D}),n.d(t,"i",function(){return Xe}),n.d(t,"j",function(){return Ve}),n.d(t,"k",function(){return Be}),n.d(t,"l",function(){return d}),n.d(t,"m",function(){return S}),n.d(t,"n",function(){return _}),n.d(t,"o",function(){return je}),n.d(t,"p",function(){return ve}),n.d(t,"q",function(){return we}),n.d(t,"r",function(){return Se}),n.d(t,"s",function(){return Le}),n.d(t,"t",function(){return Me}),n.d(t,"u",function(){return Ce}),n.d(t,"v",function(){return Oe}),n.d(t,"w",function(){return Ee}),n.d(t,"x",function(){return w}),n.d(t,"y",function(){return Ge}),n.d(t,"z",function(){return l}),n.d(t,"A",function(){return Ne}),n.d(t,"B",function(){return O}),n.d(t,"C",function(){return ze}),n.d(t,"D",function(){return tt}),n.d(t,"E",function(){return J}),n.d(t,"F",function(){return I}),n.d(t,"G",function(){return A}),n.d(t,"H",function(){return R}),n.d(t,"I",function(){return et}),n.d(t,"J",function(){return a}),n.d(t,"K",function(){return Ze}),n.d(t,"L",function(){return s}),n.d(t,"M",function(){return _e}),n.d(t,"N",function(){return o});var i=n("8Y7J");let r=null;function s(){return r}function o(e){r||(r=e)}class a{}const c=new i.u("DocumentToken");let l=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Nb)({factory:u,token:e,providedIn:"platform"}),e})();function u(){return Object(i.ic)(h)}const d=new i.u("Location Initialized");let h=(()=>{class e extends l{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=s().getLocation(),this._history=s().getHistory()}getBaseHrefFromDOM(){return s().getBaseHref(this._doc)}onPopState(e){s().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){s().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}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(e){this.location.pathname=e}pushState(e,t,n){f()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){f()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(i.ic(c))},e.\u0275prov=Object(i.Nb)({factory:p,token:e,providedIn:"platform"}),e})();function f(){return!!window.history.pushState}function p(){return new h(Object(i.ic)(c))}function m(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function b(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function g(e){return e&&"?"!==e[0]?"?"+e:e}let _=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Nb)({factory:v,token:e,providedIn:"root"}),e})();function v(e){const t=Object(i.ic)(c).location;return new w(Object(i.ic)(l),t&&t.origin||"")}const y=new i.u("appBaseHref");let w=(()=>{class e extends _{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return m(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+g(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,i){const r=this.prepareExternalUrl(n+g(i));this._platformLocation.pushState(e,t,r)}replaceState(e,t,n,i){const r=this.prepareExternalUrl(n+g(i));this._platformLocation.replaceState(e,t,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(i.ic(l),i.ic(y,8))},e.\u0275prov=i.Nb({token:e,factory:e.\u0275fac}),e})(),D=(()=>{class e extends _{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=m(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,i){let r=this.prepareExternalUrl(n+g(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}replaceState(e,t,n,i){let r=this.prepareExternalUrl(n+g(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(i.ic(l),i.ic(y,8))},e.\u0275prov=i.Nb({token:e,factory:e.\u0275fac}),e})(),S=(()=>{class e{constructor(e,t){this._subject=new i.p,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=b(k(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+g(t))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,k(t)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+g(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+g(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)}))}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}return e.\u0275fac=function(t){return new(t||e)(i.ic(_),i.ic(l))},e.normalizeQueryParams=g,e.joinWithSlash=m,e.stripTrailingSlash=b,e.\u0275prov=Object(i.Nb)({factory:x,token:e,providedIn:"root"}),e})();function x(){return new S(Object(i.ic)(_),Object(i.ic)(l))}function k(e){return e.replace(/\/index.html$/,"")}var T=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}({}),M=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),C=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}({}),O=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}({}),L=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}({}),E=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function A(e,t,n){const r=Object(i.mb)(e),s=$([r[i.cb.DayPeriodsFormat],r[i.cb.DayPeriodsStandalone]],t);return $(s,n)}function I(e,t,n){const r=Object(i.mb)(e),s=$([r[i.cb.DaysFormat],r[i.cb.DaysStandalone]],t);return $(s,n)}function R(e,t,n){const r=Object(i.mb)(e),s=$([r[i.cb.MonthsFormat],r[i.cb.MonthsStandalone]],t);return $(s,n)}function P(e,t){return $(Object(i.mb)(e)[i.cb.DateFormat],t)}function F(e,t){return $(Object(i.mb)(e)[i.cb.TimeFormat],t)}function W(e,t){return $(Object(i.mb)(e)[i.cb.DateTimeFormat],t)}function j(e,t){const n=Object(i.mb)(e),r=n[i.cb.NumberSymbols][t];if(void 0===r){if(t===E.CurrencyDecimal)return n[i.cb.NumberSymbols][E.Decimal];if(t===E.CurrencyGroup)return n[i.cb.NumberSymbols][E.Group]}return r}function Y(e,t){return Object(i.mb)(e)[i.cb.NumberFormats][t]}const N=i.pb;function z(e){if(!e[i.cb.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[i.cb.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function $(e,t){for(let n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function H(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const X=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,V={},B=/((?:[^GyYMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?: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}|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]*)/;var U=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}({}),q=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}({}),G=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}({});function J(e,t,n,i){let r=function(e){if(le(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[t,n=1,i=1]=e.split("-").map(e=>+e);return K(t,n-1,i)}const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let n;if(n=e.match(X))return function(e){const t=new Date(0);let n=0,i=0;const r=e[8]?t.setUTCFullYear:t.setFullYear,s=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),i=Number(e[9]+e[11])),r.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const o=Number(e[4]||0)-n,a=Number(e[5]||0)-i,c=Number(e[6]||0),l=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return s.call(t,o,a,c,l),t}(n)}const t=new Date(e);if(!le(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=Q(n,t)||t;let s,o=[];for(;t;){if(s=B.exec(t),!s){o.push(t);break}{o=o.concat(s.slice(1));const e=o.pop();if(!e)break;t=e}}let a=r.getTimezoneOffset();i&&(a=ce(i,a),r=function(e,t,n){const i=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(ce(t,i)-i))}(r,i));let c="";return o.forEach(e=>{const t=function(e){if(ae[e])return ae[e];let t;switch(e){case"G":case"GG":case"GGG":t=ne(G.Eras,O.Abbreviated);break;case"GGGG":t=ne(G.Eras,O.Wide);break;case"GGGGG":t=ne(G.Eras,O.Narrow);break;case"y":t=te(q.FullYear,1,0,!1,!0);break;case"yy":t=te(q.FullYear,2,0,!0,!0);break;case"yyy":t=te(q.FullYear,3,0,!1,!0);break;case"yyyy":t=te(q.FullYear,4,0,!1,!0);break;case"Y":t=oe(1);break;case"YY":t=oe(2,!0);break;case"YYY":t=oe(3);break;case"YYYY":t=oe(4);break;case"M":case"L":t=te(q.Month,1,1);break;case"MM":case"LL":t=te(q.Month,2,1);break;case"MMM":t=ne(G.Months,O.Abbreviated);break;case"MMMM":t=ne(G.Months,O.Wide);break;case"MMMMM":t=ne(G.Months,O.Narrow);break;case"LLL":t=ne(G.Months,O.Abbreviated,C.Standalone);break;case"LLLL":t=ne(G.Months,O.Wide,C.Standalone);break;case"LLLLL":t=ne(G.Months,O.Narrow,C.Standalone);break;case"w":t=se(1);break;case"ww":t=se(2);break;case"W":t=se(1,!0);break;case"d":t=te(q.Date,1);break;case"dd":t=te(q.Date,2);break;case"E":case"EE":case"EEE":t=ne(G.Days,O.Abbreviated);break;case"EEEE":t=ne(G.Days,O.Wide);break;case"EEEEE":t=ne(G.Days,O.Narrow);break;case"EEEEEE":t=ne(G.Days,O.Short);break;case"a":case"aa":case"aaa":t=ne(G.DayPeriods,O.Abbreviated);break;case"aaaa":t=ne(G.DayPeriods,O.Wide);break;case"aaaaa":t=ne(G.DayPeriods,O.Narrow);break;case"b":case"bb":case"bbb":t=ne(G.DayPeriods,O.Abbreviated,C.Standalone,!0);break;case"bbbb":t=ne(G.DayPeriods,O.Wide,C.Standalone,!0);break;case"bbbbb":t=ne(G.DayPeriods,O.Narrow,C.Standalone,!0);break;case"B":case"BB":case"BBB":t=ne(G.DayPeriods,O.Abbreviated,C.Format,!0);break;case"BBBB":t=ne(G.DayPeriods,O.Wide,C.Format,!0);break;case"BBBBB":t=ne(G.DayPeriods,O.Narrow,C.Format,!0);break;case"h":t=te(q.Hours,1,-12);break;case"hh":t=te(q.Hours,2,-12);break;case"H":t=te(q.Hours,1);break;case"HH":t=te(q.Hours,2);break;case"m":t=te(q.Minutes,1);break;case"mm":t=te(q.Minutes,2);break;case"s":t=te(q.Seconds,1);break;case"ss":t=te(q.Seconds,2);break;case"S":t=te(q.FractionalSeconds,1);break;case"SS":t=te(q.FractionalSeconds,2);break;case"SSS":t=te(q.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=ie(U.Short);break;case"ZZZZZ":t=ie(U.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ie(U.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=ie(U.Long);break;default:return null}return ae[e]=t,t}(e);c+=t?t(r,n,a):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function K(e,t,n){const i=new Date(0);return i.setFullYear(e,t,n),i.setHours(0,0,0),i}function Q(e,t){const n=function(e){return Object(i.mb)(e)[i.cb.LocaleId]}(e);if(V[n]=V[n]||{},V[n][t])return V[n][t];let r="";switch(t){case"shortDate":r=P(e,L.Short);break;case"mediumDate":r=P(e,L.Medium);break;case"longDate":r=P(e,L.Long);break;case"fullDate":r=P(e,L.Full);break;case"shortTime":r=F(e,L.Short);break;case"mediumTime":r=F(e,L.Medium);break;case"longTime":r=F(e,L.Long);break;case"fullTime":r=F(e,L.Full);break;case"short":const t=Q(e,"shortTime"),n=Q(e,"shortDate");r=Z(W(e,L.Short),[t,n]);break;case"medium":const i=Q(e,"mediumTime"),s=Q(e,"mediumDate");r=Z(W(e,L.Medium),[i,s]);break;case"long":const o=Q(e,"longTime"),a=Q(e,"longDate");r=Z(W(e,L.Long),[o,a]);break;case"full":const c=Q(e,"fullTime"),l=Q(e,"fullDate");r=Z(W(e,L.Full),[c,l])}return r&&(V[n][t]=r),r}function Z(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function ee(e,t,n="-",i,r){let s="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,s=n));let o=String(e);for(;o.length<t;)o="0"+o;return i&&(o=o.substr(o.length-t)),s+o}function te(e,t,n=0,i=!1,r=!1){return function(s,o){let a=function(e,t){switch(e){case q.FullYear:return t.getFullYear();case q.Month:return t.getMonth();case q.Date:return t.getDate();case q.Hours:return t.getHours();case q.Minutes:return t.getMinutes();case q.Seconds:return t.getSeconds();case q.FractionalSeconds:return t.getMilliseconds();case q.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}(e,s);if((n>0||a>-n)&&(a+=n),e===q.Hours)0===a&&-12===n&&(a=12);else if(e===q.FractionalSeconds)return c=t,ee(a,3).substr(0,c);var c;const l=j(o,E.MinusSign);return ee(a,t,l,i,r)}}function ne(e,t,n=C.Format,r=!1){return function(s,o){return function(e,t,n,r,s,o){switch(n){case G.Months:return R(t,s,r)[e.getMonth()];case G.Days:return I(t,s,r)[e.getDay()];case G.DayPeriods:const a=e.getHours(),c=e.getMinutes();if(o){const e=function(e){const t=Object(i.mb)(e);return z(t),(t[i.cb.ExtraData][2]||[]).map(e=>"string"==typeof e?H(e):[H(e[0]),H(e[1])])}(t),n=function(e,t,n){const r=Object(i.mb)(e);z(r);const s=$([r[i.cb.ExtraData][0],r[i.cb.ExtraData][1]],t)||[];return $(s,n)||[]}(t,s,r),o=e.findIndex(e=>{if(Array.isArray(e)){const[t,n]=e,i=a>=t.hours&&c>=t.minutes,r=a<n.hours||a===n.hours&&c<n.minutes;if(t.hours<n.hours){if(i&&r)return!0}else if(i||r)return!0}else if(e.hours===a&&e.minutes===c)return!0;return!1});if(-1!==o)return n[o]}return A(t,s,r)[a<12?0:1];case G.Eras:return function(e,t){return $(Object(i.mb)(e)[i.cb.Eras],t)}(t,r)[e.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(s,o,e,t,n,r)}}function ie(e){return function(t,n,i){const r=-1*i,s=j(n,E.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(e){case U.Short:return(r>=0?"+":"")+ee(o,2,s)+ee(Math.abs(r%60),2,s);case U.ShortGMT:return"GMT"+(r>=0?"+":"")+ee(o,1,s);case U.Long:return"GMT"+(r>=0?"+":"")+ee(o,2,s)+":"+ee(Math.abs(r%60),2,s);case U.Extended:return 0===i?"Z":(r>=0?"+":"")+ee(o,2,s)+":"+ee(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${e}"`)}}}function re(e){return K(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function se(e,t=!1){return function(n,i){let r;if(t){const e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,t=n.getDate();r=1+Math.floor((t+e)/7)}else{const e=re(n),t=function(e){const t=K(e,0,1).getDay();return K(e,0,1+(t<=4?4:11)-t)}(e.getFullYear()),i=e.getTime()-t.getTime();r=1+Math.round(i/6048e5)}return ee(r,e,j(i,E.MinusSign))}}function oe(e,t=!1){return function(n,i){return ee(re(n).getFullYear(),e,j(i,E.MinusSign),t)}}const ae={};function ce(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function le(e){return e instanceof Date&&!isNaN(e.valueOf())}const ue=/^(\d+)?\.((\d+)(-(\d+))?)?$/,de=".",he="0";function fe(e,t,n,i,r,s,o=!1){let a="",c=!1;if(isFinite(e)){let l=function(e){let t,n,i,r,s,o=Math.abs(e)+"",a=0;for((n=o.indexOf(de))>-1&&(o=o.replace(de,"")),(i=o.search(/e/i))>0?(n<0&&(n=i),n+=+o.slice(i+1),o=o.substring(0,i)):n<0&&(n=o.length),i=0;o.charAt(i)===he;i++);if(i===(s=o.length))t=[0],n=1;else{for(s--;o.charAt(s)===he;)s--;for(n-=i,t=[],r=0;i<=s;i++,r++)t[r]=Number(o.charAt(i))}return n>22&&(t=t.splice(0,21),a=n-1,n=1),{digits:t,exponent:a,integerLen:n}}(e);o&&(l=function(e){if(0===e.digits[0])return e;const t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(l));let u=t.minInt,d=t.minFrac,h=t.maxFrac;if(s){const e=s.match(ue);if(null===e)throw new Error(`${s} is not a valid digit info`);const t=e[1],n=e[3],i=e[5];null!=t&&(u=me(t)),null!=n&&(d=me(n)),null!=i?h=me(i):null!=n&&d>h&&(h=d)}!function(e,t,n){if(t>n)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${n}).`);let i=e.digits,r=i.length-e.integerLen;const s=Math.min(Math.max(t,r),n);let o=s+e.integerLen,a=i[o];if(o>0){i.splice(Math.max(e.integerLen,o));for(let e=o;e<i.length;e++)i[e]=0}else{r=Math.max(0,r),e.integerLen=1,i.length=Math.max(1,o=s+1),i[0]=0;for(let e=1;e<o;e++)i[e]=0}if(a>=5)if(o-1<0){for(let t=0;t>o;t--)i.unshift(0),e.integerLen++;i.unshift(1),e.integerLen++}else i[o-1]++;for(;r<Math.max(0,s);r++)i.push(0);let c=0!==s;const l=t+e.integerLen,u=i.reduceRight(function(e,t,n,i){return i[n]=(t+=e)<10?t:t-10,c&&(0===i[n]&&n>=l?i.pop():c=!1),t>=10?1:0},0);u&&(i.unshift(u),e.integerLen++)}(l,d,h);let f=l.digits,p=l.integerLen;const m=l.exponent;let b=[];for(c=f.every(e=>!e);p<u;p++)f.unshift(0);for(;p<0;p++)f.unshift(0);p>0?b=f.splice(p,f.length):(b=f,f=[0]);const g=[];for(f.length>=t.lgSize&&g.unshift(f.splice(-t.lgSize,f.length).join(""));f.length>t.gSize;)g.unshift(f.splice(-t.gSize,f.length).join(""));f.length&&g.unshift(f.join("")),a=g.join(j(n,i)),b.length&&(a+=j(n,r)+b.join("")),m&&(a+=j(n,E.Exponential)+"+"+m)}else a=j(n,E.Infinity);return a=e<0&&!c?t.negPre+a+t.negSuf:t.posPre+a+t.posSuf,a}function pe(e,t="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=e.split(";"),r=i[0],s=i[1],o=-1!==r.indexOf(de)?r.split(de):[r.substring(0,r.lastIndexOf(he)+1),r.substring(r.lastIndexOf(he)+1)],a=o[0],c=o[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let u=0;u<c.length;u++){const e=c.charAt(u);e===he?n.minFrac=n.maxFrac=u+1:"#"===e?n.maxFrac=u+1:n.posSuf+=e}const l=a.split(",");if(n.gSize=l[1]?l[1].length:0,n.lgSize=l[2]||l[1]?(l[2]||l[1]).length:0,s){const e=r.length-n.posPre.length-n.posSuf.length,t=s.indexOf("#");n.negPre=s.substr(0,t).replace(/'/g,""),n.negSuf=s.substr(t+e).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function me(e){const t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}class be{}let ge=(()=>{class e extends be{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(N(t||this.locale)(e)){case M.Zero:return"zero";case M.One:return"one";case M.Two:return"two";case M.Few:return"few";case M.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(i.ic(i.y))},e.\u0275prov=i.Nb({token:e,factory:e.\u0275fac}),e})();function _e(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[i,r]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(i.trim()===t)return decodeURIComponent(r)}return null}let ve=(()=>{class e{constructor(e,t,n,i){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(i.sb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Object(i.yb)(e.item)}`);this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.w),i.Rb(i.x),i.Rb(i.n),i.Rb(i.H))},e.\u0275dir=i.Mb({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e})();class ye{constructor(e,t,n,i){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let we=(()=>{class e{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,i)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new ye(null,this._ngForOf,-1,-1),null===i?void 0:i),r=new De(e,n);t.push(r)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,i);const s=new De(e,r);t.push(s)}});for(let n=0;n<t.length;n++)this._perViewChange(t[n].view,t[n].record);for(let n=0,i=this._viewContainer.length;n<i;n++){const e=this._viewContainer.get(n);e.context.index=n,e.context.count=i,e.context.ngForOf=this._ngForOf}e.forEachIdentityChange(e=>{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.S),i.Rb(i.O),i.Rb(i.w))},e.\u0275dir=i.Mb({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class De{constructor(e,t){this.record=e,this.view=t}}let Se=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new xe,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){ke("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){ke("ngIfElse",e),this._elseTemplateRef=e,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(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.S),i.Rb(i.O))},e.\u0275dir=i.Mb({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class xe{constructor(){this.$implicit=null,this.ngIf=null}}function ke(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Object(i.yb)(t)}'.`)}class Te{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,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()}}let Me=(()=>{class e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Mb({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e})(),Ce=(()=>{class e{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new Te(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.S),i.Rb(i.O),i.Rb(Me,9))},e.\u0275dir=i.Mb({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e})(),Oe=(()=>{class e{constructor(e,t,n){n._addDefault(new Te(e,t))}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.S),i.Rb(i.O),i.Rb(Me,9))},e.\u0275dir=i.Mb({type:e,selectors:[["","ngSwitchDefault",""]]}),e})(),Le=(()=>{class e{constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){const[n,i]=e.split(".");null!=(t=null!=t&&i?`${t}${i}`:t)?this._renderer.setStyle(this._ngEl.nativeElement,n,t):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(e){e.forEachRemovedItem(e=>this._setStyle(e.key,null)),e.forEachAddedItem(e=>this._setStyle(e.key,e.currentValue)),e.forEachChangedItem(e=>this._setStyle(e.key,e.currentValue))}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.n),i.Rb(i.x),i.Rb(i.H))},e.\u0275dir=i.Mb({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e})(),Ee=(()=>{class e{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const e=this._viewContainerRef;this._viewRef&&e.remove(e.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?e.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(e){const t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)}_hasContextShapeChanged(e){const t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){for(let e of n)if(-1===t.indexOf(e))return!0;return!1}return!0}_updateExistingContext(e){for(let t of Object.keys(e))this._viewRef.context[t]=this.ngTemplateOutletContext[t]}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.S))},e.\u0275dir=i.Mb({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.Bb]}),e})();function Ae(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${Object(i.yb)(e)}'`)}class Ie{createSubscription(e,t){return e.subscribe({next:t,error:e=>{throw e}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class Re{createSubscription(e,t){return e.then(t,e=>{throw e})}dispose(e){}onDestroy(e){}}const Pe=new Re,Fe=new Ie;let We=(()=>{class e{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,t=>this._updateLatestValue(e,t))}_selectStrategy(t){if(Object(i.ub)(t))return Pe;if(Object(i.vb)(t))return Fe;throw Ae(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}return e.\u0275fac=function(t){return new(t||e)(i.kc())},e.\u0275pipe=i.Qb({name:"async",type:e,pure:!1}),e})(),je=(()=>{class e{transform(t){if(null==t)return null;if("string"!=typeof t)throw Ae(e,t);return t.toLowerCase()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Qb({name:"lowercase",type:e,pure:!0}),e})();const Ye=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;let Ne=(()=>{class e{transform(t){if(null==t)return null;if("string"!=typeof t)throw Ae(e,t);return t.replace(Ye,e=>e[0].toUpperCase()+e.substr(1).toLowerCase())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Qb({name:"titlecase",type:e,pure:!0}),e})(),ze=(()=>{class e{transform(t){if(null==t)return null;if("string"!=typeof t)throw Ae(e,t);return t.toUpperCase()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Qb({name:"uppercase",type:e,pure:!0}),e})(),$e=(()=>{class e{constructor(e){this.locale=e}transform(t,n="mediumDate",i,r){if(null==t||""===t||t!=t)return null;try{return J(t,n,r||this.locale,i)}catch(s){throw Ae(e,s.message)}}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.y))},e.\u0275pipe=i.Qb({name:"date",type:e,pure:!0}),e})();const He=/#/g;let Xe=(()=>{class e{constructor(e){this._localization=e}transform(t,n,i){if(null==t)return"";if("object"!=typeof n||null===n)throw Ae(e,n);return n[function(e,t,n,i){let r=`=${e}`;if(t.indexOf(r)>-1)return r;if(r=n.getPluralCategory(e,i),t.indexOf(r)>-1)return r;if(t.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${e}"`)}(t,Object.keys(n),this._localization,i)].replace(He,t.toString())}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(be))},e.\u0275pipe=i.Qb({name:"i18nPlural",type:e,pure:!0}),e})(),Ve=(()=>{class e{transform(e){return JSON.stringify(e,null,2)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Qb({name:"json",type:e,pure:!1}),e})(),Be=(()=>{class e{constructor(e){this.differs=e,this.keyValues=[]}transform(e,t=Ue){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());const n=this.differ.diff(e);return n&&(this.keyValues=[],n.forEachItem(e=>{this.keyValues.push({key:e.key,value:e.currentValue})}),this.keyValues.sort(t)),this.keyValues}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.x))},e.\u0275pipe=i.Qb({name:"keyvalue",type:e,pure:!1}),e})();function Ue(e,t){const n=e.key,i=t.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n<i?-1:1;if("number"==typeof n&&"number"==typeof i)return n-i;if("boolean"==typeof n&&"boolean"==typeof i)return n<i?-1:1;const r=String(n),s=String(i);return r==s?0:r<s?-1:1}let qe=(()=>{class e{constructor(e){this._locale=e}transform(t,n,i){if(!Je(t))return null;i=i||this._locale;try{return function(e,t,n){return fe(e,pe(Y(t,T.Decimal),j(t,E.MinusSign)),t,E.Group,E.Decimal,n)}(Ke(t),i,n)}catch(r){throw Ae(e,r.message)}}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.y))},e.\u0275pipe=i.Qb({name:"number",type:e,pure:!0}),e})(),Ge=(()=>{class e{constructor(e){this._locale=e}transform(t,n,i){if(!Je(t))return null;i=i||this._locale;try{return function(e,t,n){return fe(e,pe(Y(t,T.Percent),j(t,E.MinusSign)),t,E.Group,E.Decimal,n,!0).replace(new RegExp("%","g"),j(t,E.PercentSign))}(Ke(t),i,n)}catch(r){throw Ae(e,r.message)}}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.y))},e.\u0275pipe=i.Qb({name:"percent",type:e,pure:!0}),e})();function Je(e){return!(null==e||""===e||e!=e)}function Ke(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error(`${e} is not a number`);return e}let Qe=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Pb({type:e}),e.\u0275inj=i.Ob({providers:[{provide:be,useClass:ge}]}),e})();const Ze="browser";function et(e){return e===Ze}let tt=(()=>{class e{}return e.\u0275prov=Object(i.Nb)({token:e,providedIn:"root",factory:()=>new nt(Object(i.ic)(c),window)}),e})();class nt{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const t=function(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let i=n.currentNode;for(;i;){const e=i.shadowRoot;if(e){const n=e.getElementById(t)||e.querySelector(`[name="${t}"]`);if(n)return n}i=n.nextNode()}}return null}(this.document,e);t&&(this.scrollToElement(t),this.attemptFocus(t))}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=it(this.window.history)||it(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function it(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}},SatO:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1200?"\u4e0a\u5348":1200===i?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(n("wd/R"))},SeVD:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("ngJS"),r=n("NJ4a"),s=n("Lhse"),o=n("kJWO"),a=n("I55L"),c=n("c2HN"),l=n("XoHu");const u=e=>{if(e&&"function"==typeof e[o.a])return u=e,e=>{const t=u[o.a]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(Object(a.a)(e))return Object(i.a)(e);if(Object(c.a)(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,r.a),e);if(e&&"function"==typeof e[s.a])return t=e,e=>{const n=t[s.a]();for(;;){let t;try{t=n.next()}catch(i){return e.error(i),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=Object(l.a)(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,n,u}},SpAZ:function(e,t,n){"use strict";function i(e){return e}n.d(t,"a",function(){return i})},SxV6:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("sVev"),r=n("pLZG"),s=n("IzEk"),o=n("xbPD"),a=n("XDbj"),c=n("SpAZ");function l(e,t){const n=arguments.length>=2;return l=>l.pipe(e?Object(r.a)((t,n)=>e(t,n,l)):c.a,Object(s.a)(1),n?Object(o.a)(t):Object(a.a)(()=>new i.a))}},TFwu:function(e,t,n){"use strict";var i=n("25cm"),r=n("jN84"),s=n("mkut");t.a=function(e){return Object(i.a)(e,s.a,r.a)}},TJUb:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("LvDl"),r=n.n(i),s=n("8Y7J");let o=(()=>{class e{transform(e,t){return r.a.isPlainObject(t)?r.a.get(t,e,e):e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=s.Qb({name:"map",type:e,pure:!0}),e})()},TKcr:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{propertyValue(e){return getComputedStyle(document.body).getPropertyValue(`--${e}`)}}},TWQb:function(e,t,n){var i=n("/GqU"),r=n("I8vh"),s=n("B/qT"),o=function(e){return function(t,n,o){var a,c=i(t),l=s(c),u=r(o,l);if(e&&n!=n){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},TYzs:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("8Y7J");let r=(()=>{class e{transform(e){const t=parseInt(e,10);return isNaN(t)?e:e+(1===Math.floor(t/10)?"th":t%10==1?"st":t%10==2?"nd":t%10==3?"rd":"th")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Qb({name:"ordinal",type:e,pure:!0}),e})()},TeQF:function(e,t,n){"use strict";var i=n("I+eb"),r=n("tycR").filter;i({target:"Array",proto:!0,forced:!n("Hd5f")("filter")},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},TnHx:function(e,t,n){"use strict";var i=n("25cm"),r=n("n561"),s=n("4/q3");t.a=function(e){return Object(i.a)(e,s.a,r.a)}},TuBq:function(e,t,n){var i=n("icBU"),r=n("kbA8");e.exports=function(e){return e?("{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2)),g(function(e){return e.split("\\\\").join(s).split("\\{").join(o).split("\\}").join(a).split("\\,").join(c).split("\\.").join(l)}(e),!0).map(d)):[]};var s="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",c="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function u(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function d(e){return e.split(s).join("\\").split(o).join("{").split(a).join("}").split(c).join(",").split(l).join(".")}function h(e){if(!e)return[""];var t=[],n=r("{","}",e);if(!n)return e.split(",");var i=n.body,s=n.post,o=n.pre.split(",");o[o.length-1]+="{"+i+"}";var a=h(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),t.push.apply(t,o),t}function f(e){return"{"+e+"}"}function p(e){return/^-?0\d/.test(e)}function m(e,t){return e<=t}function b(e,t){return e>=t}function g(e,t){var n=[],s=r("{","}",e);if(!s||/\$$/.test(s.pre))return[e];var o,c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),d=c||l,_=s.body.indexOf(",")>=0;if(!d&&!_)return s.post.match(/,.*\}/)?g(e=s.pre+"{"+s.body+a+s.post):[e];if(d)o=s.body.split(/\.\./);else if(1===(o=h(s.body)).length&&1===(o=g(o[0],!1).map(f)).length)return(w=s.post.length?g(s.post,!1):[""]).map(function(e){return s.pre+o[0]+e});var v,y=s.pre,w=s.post.length?g(s.post,!1):[""];if(d){var D=u(o[0]),S=u(o[1]),x=Math.max(o[0].length,o[1].length),k=3==o.length?Math.abs(u(o[2])):1,T=m;S<D&&(k*=-1,T=b);var M=o.some(p);v=[];for(var C=D;T(C,S);C+=k){var O;if(l)"\\"===(O=String.fromCharCode(C))&&(O="");else if(O=String(C),M){var L=x-O.length;if(L>0){var E=new Array(L+1).join("0");O=C<0?"-"+E+O.slice(1):E+O}}v.push(O)}}else v=i(o,function(e){return g(e,!1)});for(var A=0;A<v.length;A++)for(var I=0;I<w.length;I++){var R=y+v[A]+w[I];(!t||d||R)&&n.push(R)}return n}},U6JX:function(e,t,n){"use strict";t.a=function(e,t){return function(n){return e(t(n))}}},UDhR:function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(n("wd/R"))},UMSQ:function(e,t,n){var i=n("WSbT"),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},USCx:function(e,t,n){!function(e){"use strict";e.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n("wd/R"))},UpQW:function(e,t,n){!function(e){"use strict";var t=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],n=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(e){return"\u0634\u0627\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(n("wd/R"))},Ur1D:function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n("wd/R"))},UudT:function(e,t,n){"use strict";var i=n("U6JX"),r=Object(i.a)(Object.getPrototypeOf,Object);t.a=r},UxlC:function(e,t,n){"use strict";var i=n("K6Rb"),r=n("xluM"),s=n("4zBA"),o=n("14Sl"),a=n("0Dky"),c=n("glrk"),l=n("Fib7"),u=n("WSbT"),d=n("UMSQ"),h=n("V37c"),f=n("HYAF"),p=n("iqWW"),m=n("3Eq5"),b=n("DLK6"),g=n("FMNM"),_=n("tiKp")("replace"),v=Math.max,y=Math.min,w=s([].concat),D=s([].push),S=s("".indexOf),x=s("".slice),k="$0"==="a".replace(/./,"$0"),T=!!/./[_]&&""===/./[_]("a","$0");o("replace",function(e,t,n){var s=T?"$":"$0";return[function(e,n){var i=f(this),s=null==e?void 0:m(e,_);return s?r(s,e,i,n):r(t,h(i),e,n)},function(e,r){var o=c(this),a=h(e);if("string"==typeof r&&-1===S(r,s)&&-1===S(r,"$<")){var f=n(t,o,a,r);if(f.done)return f.value}var m=l(r);m||(r=h(r));var _=o.global;if(_){var k=o.unicode;o.lastIndex=0}for(var T=[];;){var M=g(o,a);if(null===M)break;if(D(T,M),!_)break;""===h(M[0])&&(o.lastIndex=p(a,d(o.lastIndex),k))}for(var C,O="",L=0,E=0;E<T.length;E++){for(var A=h((M=T[E])[0]),I=v(y(u(M.index),a.length),0),R=[],P=1;P<M.length;P++)D(R,void 0===(C=M[P])?C:String(C));var F=M.groups;if(m){var W=w([A],R,I,a);void 0!==F&&D(W,F);var j=h(i(r,void 0,W))}else j=b(A,a,I,R,F,r);I>=L&&(O+=x(a,L,I)+j,L=I+A.length)}return O+x(a,L)}]},!!a(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!k||T)},"V/fk":function(e,t,n){"use strict";n.d(t,"a",function(){return f});var i=n("SVse"),r=n("s7LF"),s=n("iInd"),o=n("G0yt"),a=n("Hicy"),c=n("hrfs"),l=n("WF9J"),u=n("yGOH"),d=n("9Xeq"),h=n("8Y7J");let f=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Pb({type:e}),e.\u0275inj=h.Ob({providers:[],imports:[[i.c,r.m,r.x,o.c,o.y,o.A,o.F,c.b,r.x,d.a,u.a,o.l,a.b,l.b,s.i,o.h,o.C]]}),e})()},V2x9:function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},V37c:function(e,t,n){var i=n("2oRo"),r=n("9d/t"),s=i.String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return s(e)}},VRyK:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("HDdC"),r=n("z+Ro"),s=n("bHdf"),o=n("yCtX");function a(...e){let t=Number.POSITIVE_INFINITY,n=null,a=e[e.length-1];return Object(r.a)(a)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof a&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof i.a?e[0]:Object(s.a)(t)(Object(o.a)(e,n))}},VTlA:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("mSOc"),r=n("ufoC"),s=n("8Y7J");let o=(()=>{class e{constructor(e,t){this.taskMessageService=e,this.summaryService=t}init(e,t,n,i,r,s,o){this.getUpdate=e,this.preProcessing=t,this.setList=n,this.onFetchError=i,this.taskFilter=r,this.itemFilter=s,this.builders=o||{},this.summaryDataSubscription=this.summaryService.subscribe(e=>{this.summary=e,this.fetch()},this.onFetchError)}fetch(){this.getUpdate().subscribe(e=>{this.updateData(e,this.summary.executing_tasks.filter(this.taskFilter))},this.onFetchError)}updateData(e,t){const n=this.preProcessing?this.preProcessing(e):e;this.addMissing(n,t),n.forEach(e=>{const n=t.filter(t=>this.itemFilter(e,t));e.cdExecuting=this.getTaskAction(n)}),this.setList(n)}addMissing(e,t){const n=this.builders.default;t.forEach(t=>{const i=e.find(e=>this.itemFilter(e,t)),r=this.builders[t.name];i||!r&&!n||e.push(r?r(t.metadata):n(t.metadata))})}getTaskAction(e){if(0!==e.length)return e.map(e=>{const t=e.progress?` ${e.progress}%`:"";return this.taskMessageService.getRunningText(e)+"..."+t}).join(", ")}ngOnDestroy(){this.summaryDataSubscription&&this.summaryDataSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(s.ic(r.a),s.ic(i.a))},e.\u0275prov=s.Nb({token:e,factory:e.\u0275fac}),e})()},VXsX:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("LvDl"),r=n.n(i),s=n("8Y7J");class o{constructor(e,t,n){this.name=e,this.metadata=t,this.onTaskFinished=n}}let a=(()=>{class e{constructor(){this.subscriptions=[]}init(e){return e.subscribe(e=>{const t=e.executing_tasks,n=e.finished_tasks,i=[];for(const r of this.subscriptions){const e=this._getTask(r,n),s=this._getTask(r,t);null!==e&&null===s&&r.onTaskFinished(e),null!==s&&i.push(r),this.subscriptions=i}})}subscribe(e,t,n){this.subscriptions.push(new o(e,t,n))}_getTask(e,t){for(const n of t)if(n.name===e.name&&r.a.isEqual(n.metadata,e.metadata))return n;return null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=s.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},Vclq:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(n("wd/R"))},Vhfg:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("lJxs"),r=n("WE5d"),s=n("ej+x"),o=n("8Y7J");let a=(()=>{class e{constructor(e){this.featureToggles=e}canActivate(e){return this.featureToggles.get().pipe(Object(i.a)(t=>{if(!1===t[e.routeConfig.path])throw new r.b;return!0}))}canActivateChild(e){return this.canActivate(e.parent)}}return e.\u0275fac=function(t){return new(t||e)(o.ic(s.a))},e.\u0275prov=o.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},VpIT:function(e,t,n){var i=n("xDBR"),r=n("xs3f");(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.0",mode:i?"pure":"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})},Vu81:function(e,t,n){var i=n("0GbY"),r=n("4zBA"),s=n("JBy8"),o=n("dBg+"),a=n("glrk"),c=r([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=s.f(a(e)),n=o.f;return n?c(t,n(e)):t}},VxPD:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("yJti"),r=n("e2NH");class s extends r.a{constructor(e=i.a.ValueOk,t=""){switch(super(),e){case i.a.ValueOk:this.type="light",this.msg="";break;case i.a.ValueNone:this.type="info",this.msg=(t?"Retrieving data for " + t + ".":"Retrieving data.")+" "+"Please wait...";break;case i.a.ValueStale:this.type="warning",this.msg=t?"Displaying previously cached data for " + t + ".":"Displaying previously cached data.";break;case i.a.ValueException:this.type="danger",this.msg=(t?"Could not load data for " + t + ".":"Could not load data.")+" "+"Please check the cluster health."}}}},WE5d:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"c",function(){return o});var i=n("oxzT");class r extends Error{}class s extends r{constructor(){super(...arguments),this.header="Page Not Found",this.message="Sorry, we couldn\u2019t find what you were looking for.\n The page you requested may have been changed or moved.",this.icon=i.a.warning}}class o extends r{constructor(){super(...arguments),this.header="User Denied",this.message="Sorry, the user does not exist in Ceph.\n You'll be logged out from the Identity Provider when you retry logging in.",this.icon=i.a.warning}}},WF9J:function(e,t,n){"use strict";n.d(t,"a",function(){return re}),n.d(t,"b",function(){return se}),n("TeQF"),n("QWBl"),n("4mDm"),n("zKZe"),n("07d7"),n("4l63"),n("PKPk"),n("ENF9"),n("3bBZ");var i,r=n("hKI/"),s=n.n(r),o=n("9/5/"),a=n.n(o),c=n("uyHG"),l=n.n(c),u=[],d="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(i||(i={}));var h,f=function(e){return Object.freeze(e)},p=function(e,t){this.inlineSize=e,this.blockSize=t,f(this)},m=function(){function e(e,t,n,i){return this.x=e,this.y=t,this.width=n,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,f(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),b=function(e){return e instanceof SVGElement&&"getBBox"in e},g=function(e){if(b(e)){var t=e.getBBox();return!t.width&&!t.height}return!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},_=function(e){var t,n;if(e instanceof Element)return!0;var i=null===(n=null===(t=e)||void 0===t?void 0:t.ownerDocument)||void 0===n?void 0:n.defaultView;return!!(i&&e instanceof i.Element)},v="undefined"!=typeof window?window:{},y=new WeakMap,w=/auto|scroll/,D=/^tb|vertical/,S=/msie|trident/i.test(v.navigator&&v.navigator.userAgent),x=function(e){return parseFloat(e||"0")},k=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new p((n?t:e)||0,(n?e:t)||0)},T=f({devicePixelContentBoxSize:k(),borderBoxSize:k(),contentBoxSize:k(),contentRect:new m(0,0,0,0)}),M=function(e,t){if(void 0===t&&(t=!1),y.has(e)&&!t)return y.get(e);if(g(e))return y.set(e,T),T;var n=getComputedStyle(e),i=b(e)&&e.ownerSVGElement&&e.getBBox(),r=!S&&"border-box"===n.boxSizing,s=D.test(n.writingMode||""),o=!i&&w.test(n.overflowY||""),a=!i&&w.test(n.overflowX||""),c=i?0:x(n.paddingTop),l=i?0:x(n.paddingRight),u=i?0:x(n.paddingBottom),d=i?0:x(n.paddingLeft),h=i?0:x(n.borderTopWidth),p=i?0:x(n.borderRightWidth),_=i?0:x(n.borderBottomWidth),v=d+l,M=c+u,C=(i?0:x(n.borderLeftWidth))+p,O=h+_,L=a?e.offsetHeight-O-e.clientHeight:0,E=o?e.offsetWidth-C-e.clientWidth:0,A=r?v+C:0,I=r?M+O:0,R=i?i.width:x(n.width)-A-E,P=i?i.height:x(n.height)-I-L,F=R+v+E+C,W=P+M+L+O,j=f({devicePixelContentBoxSize:k(Math.round(R*devicePixelRatio),Math.round(P*devicePixelRatio),s),borderBoxSize:k(F,W,s),contentBoxSize:k(R,P,s),contentRect:new m(d,c,R,P)});return y.set(e,j),j},C=function(e,t,n){var r=M(e,n),s=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case i.DEVICE_PIXEL_CONTENT_BOX:return a;case i.BORDER_BOX:return s;default:return o}},O=function(e){var t=M(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=f([t.borderBoxSize]),this.contentBoxSize=f([t.contentBoxSize]),this.devicePixelContentBoxSize=f([t.devicePixelContentBoxSize])},L=function(e){if(g(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},E=function(){var e=1/0,t=[];u.forEach(function(n){if(0!==n.activeTargets.length){var i=[];n.activeTargets.forEach(function(t){var n=new O(t.target),r=L(t.target);i.push(n),t.lastReportedSize=C(t.target,t.observedBox),r<e&&(e=r)}),t.push(function(){n.callback.call(n.observer,i,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0,i=t;n<i.length;n++)(0,i[n])();return e},A=function(e){u.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(L(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},I=[],R=0,P={attributes:!0,characterData:!0,childList:!0,subtree:!0},F=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],W=function(e){return void 0===e&&(e=0),Date.now()+e},j=!1,Y=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!j){j=!0;var n,i=W(e);n=function(){var n=!1;try{n=function(){var e,t=0;for(A(t);u.some(function(e){return e.activeTargets.length>0});)t=E(),A(t);return u.some(function(e){return e.skippedTargets.length>0})&&("function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:d}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=d),window.dispatchEvent(e)),t>0}()}finally{if(j=!1,e=i-W(),!R)return;n?t.run(1e3):e>0?t.run(e):t.start()}},function(e){if(!h){var t=0,i=document.createTextNode("");new MutationObserver(function(){return I.splice(0).forEach(function(e){return e()})}).observe(i,{characterData:!0}),h=function(){i.textContent=""+(t?t--:t++)}}I.push(function(){requestAnimationFrame(n)}),h()}()}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,P)};document.body?t():v.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),F.forEach(function(t){return v.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),F.forEach(function(t){return v.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),N=function(e){!R&&e>0&&Y.start(),!(R+=e)&&Y.stop()},z=function(){function e(e,t){this.target=e,this.observedBox=t||i.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=C(this.target,this.observedBox,!0);return b(e=this.target)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),$=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},H=new WeakMap,X=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},V=function(){function e(){}return e.connect=function(e,t){var n=new $(e,t);H.set(e,n)},e.observe=function(e,t,n){var i=H.get(e),r=0===i.observationTargets.length;X(i.observationTargets,t)<0&&(r&&u.push(i),i.observationTargets.push(new z(t,n&&n.box)),N(1),Y.schedule())},e.unobserve=function(e,t){var n=H.get(e),i=X(n.observationTargets,t);i>=0&&(1===n.observationTargets.length&&u.splice(u.indexOf(n),1),n.observationTargets.splice(i,1),N(-1))},e.disconnect=function(e){var t=this,n=H.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),B=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");V.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!_(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");V.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!_(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");V.unobserve(this,e)},e.prototype.disconnect=function(){V.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),U=n("AxL3"),q=n.n(U);function G(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}function J(e){return e&&e.ownerDocument?e.ownerDocument:document}n("E9XD"),n("sMBO"),n("rB9j"),n("Rm1S"),n("UxlC");var K=null,Q=null;function Z(e){if(null===K){var t=J(e);if(void 0===t)return K=0;var n=t.body,i=t.createElement("div");i.classList.add("simplebar-hide-scrollbar"),n.appendChild(i);var r=i.getBoundingClientRect().right;n.removeChild(i),K=r}return K}q.a&&window.addEventListener("resize",function(){Q!==window.devicePixelRatio&&(Q=window.devicePixelRatio,K=null)});var ee=function(){function e(t,n){var i=this;this.onScroll=function(){var e=G(i.el);i.scrollXTicking||(e.requestAnimationFrame(i.scrollX),i.scrollXTicking=!0),i.scrollYTicking||(e.requestAnimationFrame(i.scrollY),i.scrollYTicking=!0)},this.scrollX=function(){i.axis.x.isOverflowing&&(i.showScrollbar("x"),i.positionScrollbar("x")),i.scrollXTicking=!1},this.scrollY=function(){i.axis.y.isOverflowing&&(i.showScrollbar("y"),i.positionScrollbar("y")),i.scrollYTicking=!1},this.onMouseEnter=function(){i.showScrollbar("x"),i.showScrollbar("y")},this.onMouseMove=function(e){i.mouseX=e.clientX,i.mouseY=e.clientY,(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseMoveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseMoveForAxis("y")},this.onMouseLeave=function(){i.onMouseMove.cancel(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseLeaveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseLeaveForAxis("y"),i.mouseX=-1,i.mouseY=-1},this.onWindowResize=function(){i.scrollbarWidth=i.getScrollbarWidth(),i.hideNativeScrollbar()},this.hideScrollbars=function(){i.axis.x.track.rect=i.axis.x.track.el.getBoundingClientRect(),i.axis.y.track.rect=i.axis.y.track.el.getBoundingClientRect(),i.isWithinBounds(i.axis.y.track.rect)||(i.axis.y.scrollbar.el.classList.remove(i.classNames.visible),i.axis.y.isVisible=!1),i.isWithinBounds(i.axis.x.track.rect)||(i.axis.x.scrollbar.el.classList.remove(i.classNames.visible),i.axis.x.isVisible=!1)},this.onPointerEvent=function(e){var t,n;i.axis.x.track.rect=i.axis.x.track.el.getBoundingClientRect(),i.axis.y.track.rect=i.axis.y.track.el.getBoundingClientRect(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&(t=i.isWithinBounds(i.axis.x.track.rect)),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&(n=i.isWithinBounds(i.axis.y.track.rect)),(t||n)&&(e.preventDefault(),e.stopPropagation(),"mousedown"===e.type&&(t&&(i.axis.x.scrollbar.rect=i.axis.x.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.x.scrollbar.rect)?i.onDragStart(e,"x"):i.onTrackClick(e,"x")),n&&(i.axis.y.scrollbar.rect=i.axis.y.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.y.scrollbar.rect)?i.onDragStart(e,"y"):i.onTrackClick(e,"y"))))},this.drag=function(t){var n=i.axis[i.draggedAxis].track,r=n.rect[i.axis[i.draggedAxis].sizeAttr],s=i.axis[i.draggedAxis].scrollbar,o=i.contentWrapperEl[i.axis[i.draggedAxis].scrollSizeAttr],a=parseInt(i.elStyles[i.axis[i.draggedAxis].sizeAttr],10);t.preventDefault(),t.stopPropagation();var c=(("y"===i.draggedAxis?t.pageY:t.pageX)-n.rect[i.axis[i.draggedAxis].offsetAttr]-i.axis[i.draggedAxis].dragOffset)/(r-s.size)*(o-a);"x"===i.draggedAxis&&(c=i.isRtl&&e.getRtlHelpers().isRtlScrollbarInverted?c-(r+s.size):c,c=i.isRtl&&e.getRtlHelpers().isRtlScrollingInverted?-c:c),i.contentWrapperEl[i.axis[i.draggedAxis].scrollOffsetAttr]=c},this.onEndDrag=function(e){var t=J(i.el),n=G(i.el);e.preventDefault(),e.stopPropagation(),i.el.classList.remove(i.classNames.dragging),t.removeEventListener("mousemove",i.drag,!0),t.removeEventListener("mouseup",i.onEndDrag,!0),i.removePreventClickId=n.setTimeout(function(){t.removeEventListener("click",i.preventClick,!0),t.removeEventListener("dblclick",i.preventClick,!0),i.removePreventClickId=null})},this.preventClick=function(e){e.preventDefault(),e.stopPropagation()},this.el=t,this.minScrollbarWidth=20,this.options=Object.assign({},e.defaultOptions,{},n),this.classNames=Object.assign({},e.defaultOptions.classNames,{},this.options.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,e.instances.has(this.el)||(this.recalculate=s()(this.recalculate.bind(this),64),this.onMouseMove=s()(this.onMouseMove.bind(this),64),this.hideScrollbars=a()(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=a()(this.onWindowResize.bind(this),64,{leading:!0}),e.getRtlHelpers=l()(e.getRtlHelpers),this.init())}e.getRtlHelpers=function(){var t=document.createElement("div");t.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';var n=t.firstElementChild;document.body.appendChild(n);var i=n.firstElementChild;n.scrollLeft=0;var r=e.getOffset(n),s=e.getOffset(i);n.scrollLeft=999;var o=e.getOffset(i);return{isRtlScrollingInverted:r.left!==s.left&&s.left-o.left!=0,isRtlScrollbarInverted:r.left!==s.left}},e.getOffset=function(e){var t=e.getBoundingClientRect(),n=J(e),i=G(e);return{top:t.top+(i.pageYOffset||n.documentElement.scrollTop),left:t.left+(i.pageXOffset||n.documentElement.scrollLeft)}};var t=e.prototype;return t.init=function(){e.instances.set(this.el,this),q.a&&(this.initDOM(),this.setAccessibilityAttributes(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.initDOM=function(){var e=this;if(Array.prototype.filter.call(this.el.children,function(t){return t.classList.contains(e.classNames.wrapper)}).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentWrapperEl.classList.add(this.classNames.contentWrapper),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.contentEl.classList.add(this.classNames.contentEl),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var t=document.createElement("div"),n=document.createElement("div");t.classList.add(this.classNames.track),n.classList.add(this.classNames.scrollbar),t.appendChild(n),this.axis.x.track.el=t.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=t.cloneNode(!0),this.axis.y.track.el.classList.add(this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector("."+this.classNames.scrollbar),this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar),this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible)),this.el.setAttribute("data-simplebar","init")},t.setAccessibilityAttributes=function(){var e=this.options.ariaLabel||"scrollable content";this.contentWrapperEl.setAttribute("tabindex","0"),this.contentWrapperEl.setAttribute("role","region"),this.contentWrapperEl.setAttribute("aria-label",e)},t.initListeners=function(){var e=this,t=G(this.el);this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach(function(t){e.el.addEventListener(t,e.onPointerEvent,!0)}),["touchstart","touchend","touchmove"].forEach(function(t){e.el.addEventListener(t,e.onPointerEvent,{capture:!0,passive:!0})}),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.addEventListener("scroll",this.onScroll),t.addEventListener("resize",this.onWindowResize);var n=!1;this.resizeObserver=new(t.ResizeObserver||B)(function(){n&&e.recalculate()}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),t.requestAnimationFrame(function(){n=!0}),this.mutationObserver=new t.MutationObserver(this.recalculate),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})},t.recalculate=function(){var e=G(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;var t=this.heightAutoObserverEl.offsetHeight<=1,n=this.heightAutoObserverEl.offsetWidth<=1,i=this.contentEl.offsetWidth,r=this.contentWrapperEl.offsetWidth,s=this.elStyles.overflowX,o=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft,this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var a=this.contentEl.scrollHeight,c=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=t?"auto":"100%",this.placeholderEl.style.width=n?i+"px":"auto",this.placeholderEl.style.height=a+"px";var l=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=c>i,this.axis.y.isOverflowing=a>l,this.axis.x.isOverflowing="hidden"!==s&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==o&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar();var u=this.axis.x.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&c>r-(this.axis.y.isOverflowing?this.scrollbarWidth:0),this.axis.y.isOverflowing=this.axis.y.isOverflowing&&a>l-u,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px",this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px",this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")},t.getScrollbarSize=function(e){if(void 0===e&&(e="y"),!this.axis[e].isOverflowing)return 0;var t,n=this.axis[e].track.el[this.axis[e].offsetSizeAttr];return t=Math.max(~~(n/this.contentEl[this.axis[e].scrollSizeAttr]*n),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(t=Math.min(t,this.options.scrollbarMaxSize)),t},t.positionScrollbar=function(t){if(void 0===t&&(t="y"),this.axis[t].isOverflowing){var n=this.contentWrapperEl[this.axis[t].scrollSizeAttr],i=this.axis[t].track.el[this.axis[t].offsetSizeAttr],r=parseInt(this.elStyles[this.axis[t].sizeAttr],10),s=this.axis[t].scrollbar,o=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],a=~~((o="x"===t&&this.isRtl&&e.getRtlHelpers().isRtlScrollingInverted?-o:o)/(n-r)*(i-s.size));a="x"===t&&this.isRtl&&e.getRtlHelpers().isRtlScrollbarInverted?a+(i-s.size):a,s.el.style.transform="x"===t?"translate3d("+a+"px, 0, 0)":"translate3d(0, "+a+"px, 0)"}},t.toggleTrackVisibility=function(e){void 0===e&&(e="y");var t=this.axis[e].track.el,n=this.axis[e].scrollbar.el;this.axis[e].isOverflowing||this.axis[e].forceVisible?(t.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll"):(t.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden"),n.style.display=this.axis[e].isOverflowing?"block":"none"},t.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+this.scrollbarWidth+"px":0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0},t.onMouseMoveForAxis=function(e){void 0===e&&(e="y"),this.axis[e].track.rect=this.axis[e].track.el.getBoundingClientRect(),this.axis[e].scrollbar.rect=this.axis[e].scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis[e].scrollbar.rect)?this.axis[e].scrollbar.el.classList.add(this.classNames.hover):this.axis[e].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[e].track.rect)?(this.showScrollbar(e),this.axis[e].track.el.classList.add(this.classNames.hover)):this.axis[e].track.el.classList.remove(this.classNames.hover)},t.onMouseLeaveForAxis=function(e){void 0===e&&(e="y"),this.axis[e].track.el.classList.remove(this.classNames.hover),this.axis[e].scrollbar.el.classList.remove(this.classNames.hover)},t.showScrollbar=function(e){void 0===e&&(e="y"),this.axis[e].isVisible||(this.axis[e].scrollbar.el.classList.add(this.classNames.visible),this.axis[e].isVisible=!0),this.options.autoHide&&this.hideScrollbars()},t.onDragStart=function(e,t){void 0===t&&(t="y");var n=J(this.el),i=G(this.el);this.axis[t].dragOffset=("y"===t?e.pageY:e.pageX)-this.axis[t].scrollbar.rect[this.axis[t].offsetAttr],this.draggedAxis=t,this.el.classList.add(this.classNames.dragging),n.addEventListener("mousemove",this.drag,!0),n.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(n.addEventListener("click",this.preventClick,!0),n.addEventListener("dblclick",this.preventClick,!0)):(i.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.onTrackClick=function(e,t){var n=this;if(void 0===t&&(t="y"),this.options.clickOnTrack){var i=G(this.el);this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect();var r=this.axis[t].scrollbar.rect[this.axis[t].offsetAttr],s=parseInt(this.elStyles[this.axis[t].sizeAttr],10),o=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],a=("y"===t?this.mouseY-r:this.mouseX-r)<0?-1:1,c=-1===a?o-s:o+s;!function e(){var r,s;-1===a?o>c&&(n.contentWrapperEl.scrollTo(((r={})[n.axis[t].offsetAttr]=o-=n.options.clickOnTrackSpeed,r)),i.requestAnimationFrame(e)):o<c&&(n.contentWrapperEl.scrollTo(((s={})[n.axis[t].offsetAttr]=o+=n.options.clickOnTrackSpeed,s)),i.requestAnimationFrame(e))}()}},t.getContentElement=function(){return this.contentEl},t.getScrollElement=function(){return this.contentWrapperEl},t.getScrollbarWidth=function(){try{return"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Z(this.el)}catch(e){return Z(this.el)}},t.removeListeners=function(){var e=this,t=G(this.el);this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach(function(t){e.el.removeEventListener(t,e.onPointerEvent,!0)}),["touchstart","touchend","touchmove"].forEach(function(t){e.el.removeEventListener(t,e.onPointerEvent,{capture:!0,passive:!0})}),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.recalculate.cancel(),this.onMouseMove.cancel(),this.hideScrollbars.cancel(),this.onWindowResize.cancel()},t.unMount=function(){this.removeListeners(),e.instances.delete(this.el)},t.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.findChild=function(e,t){var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(e){return n.call(e,t)})[0]},e}();ee.defaultOptions={autoHide:!0,forceVisible:!1,clickOnTrack:!0,clickOnTrackSpeed:40,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3},ee.instances=new WeakMap;var te=ee,ne=n("8Y7J");const ie=["*"];let re=(()=>{class e{constructor(e){this.elRef=e}ngOnInit(){}ngAfterViewInit(){this.SimpleBar=new te(this.elRef.nativeElement,this.options||{})}ngOnDestroy(){this.SimpleBar.unMount(),this.SimpleBar=null}}return e.\u0275fac=function(t){return new(t||e)(ne.Rb(ne.n))},e.\u0275cmp=ne.Lb({type:e,selectors:[["ngx-simplebar"]],hostAttrs:["data-simplebar","init"],inputs:{options:"options"},ngContentSelectors:ie,decls:13,vars:0,consts:[[1,"simplebar-wrapper"],[1,"simplebar-height-auto-observer-wrapper"],[1,"simplebar-height-auto-observer"],[1,"simplebar-mask"],[1,"simplebar-offset"],[1,"simplebar-content-wrapper"],[1,"simplebar-content"],[1,"simplebar-placeholder"],[1,"simplebar-track","simplebar-horizontal"],[1,"simplebar-scrollbar"],[1,"simplebar-track","simplebar-vertical"]],template:function(e,t){1&e&&(ne.tc(),ne.Xb(0,"div",0),ne.Xb(1,"div",1),ne.Sb(2,"div",2),ne.Wb(),ne.Xb(3,"div",3),ne.Xb(4,"div",4),ne.Xb(5,"div",5),ne.Xb(6,"div",6),ne.sc(7),ne.Wb(),ne.Wb(),ne.Wb(),ne.Wb(),ne.Sb(8,"div",7),ne.Wb(),ne.Xb(9,"div",8),ne.Sb(10,"div",9),ne.Wb(),ne.Xb(11,"div",10),ne.Sb(12,"div",9),ne.Wb())},styles:["[data-simplebar]{position:relative;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;flex-wrap:wrap;-webkit-box-pack:start;justify-content:flex-start;align-content:flex-start;-webkit-box-align:start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:' ';display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;-webkit-box-flex:inherit;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:'';background:#000;border-radius:7px;left:2px;right:2px;opacity:0;-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;-webkit-transition:opacity linear;transition:opacity linear}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-track.simplebar-vertical .simplebar-scrollbar:before{top:2px;bottom:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar:before{height:100%;left:2px;right:2px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:2px;height:7px;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.hs-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}","ngx-simplebar{display:block}"],encapsulation:2}),e})(),se=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ne.Pb({type:e}),e.\u0275inj=ne.Ob({imports:[[]]}),e})()},WJ6P:function(e,t,n){"use strict";t.a=function(){return[]}},WJkJ:function(e,t){e.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},WKiH:function(e,t,n){var i=n("4zBA"),r=n("HYAF"),s=n("V37c"),o=n("WJkJ"),a=i("".replace),c="["+o+"]",l=RegExp("^"+c+c+"*"),u=RegExp(c+c+"*$"),d=function(e){return function(t){var n=s(r(t));return 1&e&&(n=a(n,l,"")),2&e&&(n=a(n,u,"")),n}};e.exports={start:d(1),end:d(2),trim:d(3)}},WMd4:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("EY2u"),r=n("LRne"),s=n("z6cu");let o=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return Object(r.a)(this.value);case"E":return Object(s.a)(this.error);case"C":return Object(i.b)()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})()},WOAq:function(e,t,n){"use strict";(function(e){var i=n("Ju5/"),r=n("L3Qv"),s="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=s&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===s?i.a.Buffer:void 0;t.a=(a?a.isBuffer:void 0)||r.a}).call(this,n("3UD+")(e))},WSbT:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){var t=+e;return t!=t||0===t?0:(t>0?i:n)(t)}},WYrj:function(e,t,n){!function(e){"use strict";var t=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],n=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(e){return"\u0789\u078a"===e},meridiem:function(e,t,n){return e<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(n("wd/R"))},We1y:function(e,t,n){var i=n("2oRo"),r=n("Fib7"),s=n("DVFp"),o=i.TypeError;e.exports=function(e){if(r(e))return e;throw o(s(e)+" is not a function")}},Wv91:function(e,t,n){!function(e){"use strict";var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var i=e%10;return e+(t[i]||t[e%100-i]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n("wd/R"))},WxRl:function(e,t,n){!function(e){"use strict";var t="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function n(e,t,n,i){var r=e;switch(n){case"s":return i||t?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return r+(i||t)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(i||t?" perc":" perce");case"mm":return r+(i||t?" perc":" perce");case"h":return"egy"+(i||t?" \xf3ra":" \xf3r\xe1ja");case"hh":return r+(i||t?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(i||t?" nap":" napja");case"dd":return r+(i||t?" nap":" napja");case"M":return"egy"+(i||t?" h\xf3nap":" h\xf3napja");case"MM":return r+(i||t?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(i||t?" \xe9v":" \xe9ve");case"yy":return r+(i||t?" \xe9v":" \xe9ve")}return""}function i(e){return(e?"":"[m\xfalt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return i.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return i.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},X709:function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})}(n("wd/R"))},XDbj:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("sVev"),r=n("7o/Q");function s(e=c){return t=>t.lift(new o(e))}class o{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new a(e,this.errorFactory))}}class a extends r.a{constructor(e,t){super(e),this.errorFactory=t,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function c(){return new i.a}},XDpg:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(e){return e.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(e){return this.week()!==e.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u5468";default:return e}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(n("wd/R"))},XFyV:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("oxzT"),r=n("8Y7J"),s=n("G0yt"),o=n("SVse");const a=function(e,t){return[e,t]},c=["*"];let l=(()=>{class e{constructor(){this.icons=i.a}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-loading-panel"]],ngContentSelectors:c,decls:4,vars:5,consts:[["type","info",3,"dismissible"],["aria-hidden","true",1,"mr-2",3,"ngClass"]],template:function(e,t){1&e&&(r.tc(),r.Xb(0,"ngb-alert",0),r.Xb(1,"strong"),r.Sb(2,"i",1),r.Wb(),r.sc(3),r.Wb()),2&e&&(r.uc("dismissible",!1),r.Db(2),r.uc("ngClass",r.Ac(2,a,t.icons.spinner,t.icons.spin)))},directives:[s.b,o.p],styles:[""]}),e})()},XGwC:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},XLvN:function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===t?e<4?e:e+12:"\u0c09\u0c26\u0c2f\u0c02"===t?e:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===t?e>=10?e:e+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":e<10?"\u0c09\u0c26\u0c2f\u0c02":e<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":e<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(n("wd/R"))},XNiG:function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"a",function(){return u});var i=n("HDdC"),r=n("7o/Q"),s=n("quSY"),o=n("9ppp"),a=n("Ylt2"),c=n("2QA8");class l extends r.a{constructor(e){super(e),this.destination=e}}let u=(()=>{class e extends i.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.a](){return new l(this)}lift(e){const t=new d(this,this);return t.operator=e,t}next(e){if(this.closed)throw new o.a;if(!this.isStopped){const{observers:t}=this,n=t.length,i=t.slice();for(let r=0;r<n;r++)i[r].next(e)}}error(e){if(this.closed)throw new o.a;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,i=t.slice();for(let r=0;r<n;r++)i[r].error(e);this.observers.length=0}complete(){if(this.closed)throw new o.a;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let i=0;i<t;i++)n[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new o.a;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new o.a;return this.hasError?(e.error(this.thrownError),s.a.EMPTY):this.isStopped?(e.complete(),s.a.EMPTY):(this.observers.push(e),new a.a(this,e))}asObservable(){const e=new i.a;return e.source=this,e}}return e.create=(e,t)=>new d(e,t),e})();class d extends u{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):s.a.EMPTY}}},Xnc8:function(e,t,n){var i=n("g6v/"),r=n("Gi26"),s=Function.prototype,o=i&&Object.getOwnPropertyDescriptor,a=r(s,"name"),c=a&&"something"===(function(){}).name,l=a&&(!i||i&&o(s,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},XoHu:function(e,t,n){"use strict";function i(e){return null!==e&&"object"==typeof e}n.d(t,"a",function(){return i})},XqMk:function(e,t,n){"use strict";var i="object"==typeof global&&global&&global.Object===Object&&global;t.a=i},Y7HM:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("DH7j");function r(e){return!Object(i.a)(e)&&e-parseFloat(e)+1>=0}},Y7yP:function(e,t,n){"use strict";var i,r=n("vJtL"),s=n("Ju5/").a["__core-js_shared__"],o=(i=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",a=n("IzLi"),c=n("dLWn"),l=/^\[object .+?Constructor\]$/,u=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.a=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Object(a.a)(e)||(t=e,o&&o in t))&&(Object(r.a)(e)?u:l).test(Object(c.a)(e));var t}(n)?n:void 0}},YF1G:function(e,t,n){var i=n("xrYK"),r=n("2oRo");e.exports="process"==i(r.process)},YHEm:function(e,t,n){"use strict";t.a=function(e,t){return e===t||e!=e&&t!=t}},YM6B:function(e,t,n){"use strict";var i=n("Y7yP"),r=n("Ju5/"),s=Object(i.a)(r.a,"DataView"),o=n("3cmB"),a=Object(i.a)(r.a,"Promise"),c=Object(i.a)(r.a,"Set"),l=Object(i.a)(r.a,"WeakMap"),u=n("8M4i"),d=n("dLWn"),h="[object Map]",f="[object Promise]",p="[object Set]",m="[object WeakMap]",b="[object DataView]",g=Object(d.a)(s),_=Object(d.a)(o.a),v=Object(d.a)(a),y=Object(d.a)(c),w=Object(d.a)(l),D=u.a;(s&&D(new s(new ArrayBuffer(1)))!=b||o.a&&D(new o.a)!=h||a&&D(a.resolve())!=f||c&&D(new c)!=p||l&&D(new l)!=m)&&(D=function(e){var t=Object(u.a)(e),n="[object Object]"==t?e.constructor:void 0,i=n?Object(d.a)(n):"";if(i)switch(i){case g:return b;case _:return h;case v:return f;case y:return p;case w:return m}return t}),t.a=D},YNrV:function(e,t,n){"use strict";var i=n("g6v/"),r=n("4zBA"),s=n("xluM"),o=n("0Dky"),a=n("33Wh"),c=n("dBg+"),l=n("0eef"),u=n("ewvW"),d=n("RK3t"),h=Object.assign,f=Object.defineProperty,p=r([].concat);e.exports=!h||o(function(){if(i&&1!==h({b:1},h(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=h({},e)[n]||a(h({},t)).join("")!=r})?function(e,t){for(var n=u(e),r=arguments.length,o=1,h=c.f,f=l.f;r>o;)for(var m,b=d(arguments[o++]),g=h?p(a(b),h(b)):a(b),_=g.length,v=0;_>v;)m=g[v++],i&&!s(f,b,m)||(n[m]=b[m]);return n}:h},YRex:function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===t||"\u0633\u06d5\u06be\u06d5\u0631"===t||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===t?e:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===t||"\u0643\u06d5\u0686"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":i<900?"\u0633\u06d5\u06be\u06d5\u0631":i<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":i<1230?"\u0686\u06c8\u0634":i<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return e+"-\u06be\u06d5\u067e\u062a\u06d5";default:return e}},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(n("wd/R"))},Ylt2:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("quSY");class r extends i.a{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},Yrry:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("8Y7J"),r=n("cUpR");let s=(()=>{class e{constructor(e){this.domSanitizer=e}transform(e){return this.domSanitizer.sanitize(i.L.HTML,e)}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(r.b))},e.\u0275pipe=i.Qb({name:"sanitizeHtml",type:e,pure:!0}),e})()},YuTi:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},Z21x:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("8Y7J"),r=n("sne2"),s=n("SVse"),o=n("ANnk");let a=(()=>{class e{constructor(e,t){this.location=e,this.actionLabels=t,this.backAction=new i.p,this.name=this.actionLabels.CANCEL}back(){0===this.backAction.observers.length?this.location.back():this.backAction.emit()}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(s.m),i.Rb(r.b))},e.\u0275cmp=i.Lb({type:e,selectors:[["cd-back-button"]],inputs:{name:"name"},outputs:{backAction:"backAction"},decls:2,vars:1,consts:[["type","button",1,"btn","btn-light","tc_backButton",3,"click"]],template:function(e,t){1&e&&(i.Xb(0,"button",0),i.lc("click",function(){return t.back()}),i.Rc(1),i.Wb()),2&e&&(i.Db(1),i.Tc(" ",t.name,"\n"))},directives:[o.a],styles:[""]}),e})()},Z4QM:function(e,t,n){!function(e){"use strict";var t=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],n=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(e){return"\u0634\u0627\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(n("wd/R"))},ZAMP:function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("wd/R"))},ZUHj:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("7o/Q");class r extends i.a{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var s=n("SeVD"),o=n("HDdC");function a(e,t,n,i,a=new r(e,n,i)){if(!a.closed)return t instanceof o.a?t.subscribe(a):Object(s.a)(t)(a)}},ZUd8:function(e,t,n){var i=n("4zBA"),r=n("WSbT"),s=n("V37c"),o=n("HYAF"),a=i("".charAt),c=i("".charCodeAt),l=i("".slice),u=function(e){return function(t,n){var i,u,d=s(o(t)),h=r(n),f=d.length;return h<0||h>=f?e?"":void 0:(i=c(d,h))<55296||i>56319||h+1===f||(u=c(d,h+1))<56320||u>57343?e?a(d,h):i:e?l(d,h,h+2):u-56320+(i-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},Zduo:function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n("wd/R"))},ZfDv:function(e,t,n){var i=n("C0Ia");e.exports=function(e,t){return new(i(e))(0===t?0:t)}},a0VL:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("8Y7J"),r=n("SVse");let s=(()=>{class e{constructor(e){this.datePipe=e}transform(e){return null===e||""===e?"":this.datePipe.transform(e,"shortDate")+" "+this.datePipe.transform(e,"mediumTime")}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(r.e))},e.\u0275pipe=i.Qb({name:"cdDate",type:e,pure:!0}),e})()},a96k:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e,t,n,i=!0){this.selected=e,this.name=t,this.description=n,this.enabled=i}}},aIdf:function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){return e>9?n(e%10):e}var i=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],r=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,s=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:s,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:s,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(n(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(e){return e+(1===e?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})}(n("wd/R"))},aIsn:function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},aO6C:function(e,t,n){var i=n("4zBA"),r=n("0Dky"),s=n("Fib7"),o=n("9d/t"),a=n("0GbY"),c=n("iSVu"),l=function(){},u=[],d=a("Reflect","construct"),h=/^\s*(?:class|function)\b/,f=i(h.exec),p=!h.exec(l),m=function(e){if(!s(e))return!1;try{return d(l,u,e),!0}catch(t){return!1}};e.exports=!d||r(function(){var e;return m(m.call)||!m(Object)||!m(function(){e=!0})||e})?function(e){if(!s(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return p||!!f(h,c(e))}:m},aQkU:function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-\u0435\u0432":0===n?e+"-\u0435\u043d":n>10&&n<20?e+"-\u0442\u0438":1===t?e+"-\u0432\u0438":2===t?e+"-\u0440\u0438":7===t||8===t?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(n("wd/R"))},aXbf:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("LvDl"),r=n.n(i),s=n("8Y7J");let o=(()=>{class e{format_number(e,t,n,i=1){if(r.a.isString(e)&&(e=Number(e)),!r.a.isNumber(e))return"-";let s=e<1?0:Math.floor(Math.log(e)/Math.log(t));s=s>=n.length?n.length-1:s;let o=r.a.round(e/Math.pow(t,s),i).toString();return""===o?"-":(""!==n[s]&&(o=`${o} ${n[s]}`),o)}toBytes(e,t=null){const n=["b","k","m","g","t","p","e","z","y"],i=RegExp("^(\\d+(.\\d+)?) ?(["+n.join("")+"]?(b|ib|B/s)?)?$","i").exec(e);if(null===i)return t;let s=parseFloat(i[1]);return r.a.isString(i[3])&&(s*=Math.pow(1024,n.indexOf(i[3].toLowerCase()[0]))),Math.round(s)}toMilliseconds(e){const t=/^\s*(\d+)\s*(ms)?\s*$/i.exec(e);return null!==t?+t[1]:0}toIops(e){const t=/^\s*(\d+)\s*(IOPS)?\s*$/i.exec(e);return null!==t?+t[1]:0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=s.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},aexS:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("2Vo4"),r=n("jKX/"),s=n("8Y7J");let o=(()=>{class e{constructor(){this.isPwdDisplayedSource=new i.a(!1),this.isPwdDisplayed$=this.isPwdDisplayedSource.asObservable()}set(e,t={},n=!1,i=null,s=!1){localStorage.setItem("dashboard_username",e),localStorage.setItem("dashboard_permissions",JSON.stringify(new r.a(t))),localStorage.setItem("user_pwd_expiration_date",String(i)),localStorage.setItem("user_pwd_update_required",String(s)),localStorage.setItem("sso",String(n))}remove(){localStorage.removeItem("dashboard_username"),localStorage.removeItem("user_pwd_expiration_data"),localStorage.removeItem("user_pwd_update_required")}isLoggedIn(){return null!==localStorage.getItem("dashboard_username")}getUsername(){return localStorage.getItem("dashboard_username")}getPermissions(){return JSON.parse(localStorage.getItem("dashboard_permissions")||JSON.stringify(new r.a({})))}getPwdExpirationDate(){return Number(localStorage.getItem("user_pwd_expiration_date"))}getPwdUpdateRequired(){return"true"===localStorage.getItem("user_pwd_update_required")}isSSO(){return"true"===localStorage.getItem("sso")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=s.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},afO8:function(e,t,n){var i,r,s,o=n("f5p1"),a=n("2oRo"),c=n("4zBA"),l=n("hh1v"),u=n("kRJp"),d=n("Gi26"),h=n("xs3f"),f=n("93I0"),p=n("0BK2"),m="Object already initialized",b=a.TypeError;if(o||h.state){var g=h.state||(h.state=new(0,a.WeakMap)),_=c(g.get),v=c(g.has),y=c(g.set);i=function(e,t){if(v(g,e))throw new b(m);return t.facade=e,y(g,e,t),t},r=function(e){return _(g,e)||{}},s=function(e){return v(g,e)}}else{var w=f("state");p[w]=!0,i=function(e,t){if(d(e,w))throw new b(m);return t.facade=e,u(e,w,t),t},r=function(e){return d(e,w)?e[w]:{}},s=function(e){return d(e,w)}}e.exports={set:i,get:r,has:s,enforce:function(e){return s(e)?r(e):i(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw b("Incompatible receiver, "+e+" required");return n}}}},ajRT:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("8Y7J"),r=n("iInd"),s=n("SVse"),o=n("ANnk");const a=[[["",8,"modal-title"]],[["",8,"modal-content"]]],c=[".modal-title",".modal-content"];let l=(()=>{class e{constructor(e){this.router=e,this.hide=new i.p}close(){var e;this.pageURL?this.router.navigate([this.pageURL,{outlets:{modal:null}}]):null===(e=this.modalRef)||void 0===e||e.close(),this.hide.emit()}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(r.e))},e.\u0275cmp=i.Lb({type:e,selectors:[["cd-modal"]],inputs:{modalRef:"modalRef",pageURL:"pageURL"},outputs:{hide:"hide"},ngContentSelectors:c,decls:10,vars:2,consts:[[3,"ngClass"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title","float-left"],["type","button","aria-label","Close",1,"close","float-right",3,"click"],["aria-hidden","true"]],template:function(e,t){1&e&&(i.tc(a),i.Xb(0,"div",0),i.Xb(1,"div",0),i.Xb(2,"div",1),i.Xb(3,"div",2),i.Xb(4,"h4",3),i.sc(5),i.Wb(),i.Xb(6,"button",4),i.lc("click",function(){return t.close()}),i.Xb(7,"span",5),i.Rc(8,"\xd7"),i.Wb(),i.Wb(),i.Wb(),i.sc(9,1),i.Wb(),i.Wb(),i.Wb()),2&e&&(i.uc("ngClass",t.pageURL?"modal":""),i.Db(1),i.uc("ngClass",t.pageURL?"modal-dialog":""))},directives:[s.p,o.a],styles:[".modal-header[_ngcontent-%COMP%]{background-color:#e9ecef;border-bottom:1px solid #ced4da;border-radius:5px 5px 0 0} cd-modal .modal-footer{background-color:#e9ecef;border-bottom:1px solid #ced4da;border-radius:0 0 5px 5px} cd-modal .modal-body{max-height:70vh;overflow-x:hidden;overflow-y:auto}button.close[_ngcontent-%COMP%]{outline:none}"]}),e})()},b1Dy:function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},b5OY:function(e,t,n){"use strict";n.d(t,"a",function(){return _});var i=n("mrSG"),r=n("IheW"),s=n("LRne"),o=n("5+tZ"),a=n("xTzq"),c=n("8Y7J");let l=(()=>{let e=class{constructor(e){this.http=e,this.url="api/perf_counters"}list(){return this.http.get(this.url)}get(e,t){return this.http.get(`${this.url}/${e}/${t}`).pipe(Object(o.a)(e=>Object(s.a)(e.counters)))}};return e.\u0275fac=function(t){return new(t||e)(c.ic(r.b))},e.\u0275prov=c.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e=Object(i.b)([a.a,Object(i.d)("design:paramtypes",[r.b])],e),e})();var u=n("SVse"),d=n("uIqm"),h=n("/NlG"),f=n("o4+5");const p=["valueTpl"];function m(e,t){if(1&e&&(c.Rc(0),c.oc(1,"dimless")),2&e){const e=t.row;c.Uc(" ",c.pc(1,2,e.value)," ",e.unit," ")}}function b(e,t){if(1&e){const e=c.Yb();c.Xb(0,"cd-table",2),c.lc("fetchData",function(t){return c.Ic(e),c.nc().getCounters(t)}),c.Pc(1,m,2,4,"ng-template",null,3,c.Qc),c.Wb()}if(2&e){const e=c.nc();c.uc("data",e.counters)("columns",e.columns)("autoSave",!1)}}function g(e,t){1&e&&(c.Xb(0,"cd-alert-panel",4),c.bc(1,5),c.Wb())}let _=(()=>{class e{constructor(e){this.performanceCounterService=e,this.columns=[],this.counters=[]}ngOnInit(){this.columns=[{name:"Name",prop:"name",flexGrow:1},{name:"Description",prop:"description",flexGrow:1},{name:"Value",prop:"value",cellTemplate:this.valueTpl,flexGrow:1}]}getCounters(e){this.performanceCounterService.get(this.serviceType,this.serviceId).subscribe(e=>{this.counters=e},t=>{404===t.status?(t.preventDefault(),this.counters=null):e.error()})}}return e.\u0275fac=function(t){return new(t||e)(c.Rb(l))},e.\u0275cmp=c.Lb({type:e,selectors:[["cd-table-performance-counter"]],viewQuery:function(e,t){if(1&e&&c.Wc(p,1),2&e){let e;c.Ec(e=c.mc())&&(t.valueTpl=e.first)}},inputs:{serviceType:"serviceType",serviceId:"serviceId"},decls:3,vars:2,consts:function(){let e;return e="Performance counters not available",[["columnMode","flex",3,"data","columns","autoSave","fetchData",4,"ngIf","ngIfElse"],["warning",""],["columnMode","flex",3,"data","columns","autoSave","fetchData"],["valueTpl",""],["type","warning"],e]},template:function(e,t){if(1&e&&(c.Pc(0,b,3,3,"cd-table",0),c.Pc(1,g,2,0,"ng-template",null,1,c.Qc)),2&e){const e=c.Fc(2);c.uc("ngIf",t.counters)("ngIfElse",e)}},directives:[u.r,d.a,h.a],pipes:[f.a],styles:[""]}),e})()},bHdf:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("5+tZ"),r=n("SpAZ");function s(e=Number.POSITIVE_INFINITY){return Object(i.a)(r.a,e)}},bOMt:function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},bOdf:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("5+tZ");function r(e,t){return Object(i.a)(e,t,1)}},bWFh:function(e,t,n){"use strict";var i=n("I+eb"),r=n("2oRo"),s=n("4zBA"),o=n("lMq5"),a=n("busE"),c=n("8YOa"),l=n("ImZN"),u=n("GarU"),d=n("Fib7"),h=n("hh1v"),f=n("0Dky"),p=n("HH4o"),m=n("1E5z"),b=n("cVYH");e.exports=function(e,t,n){var g=-1!==e.indexOf("Map"),_=-1!==e.indexOf("Weak"),v=g?"set":"add",y=r[e],w=y&&y.prototype,D=y,S={},x=function(e){var t=s(w[e]);a(w,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(_&&!h(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return _&&!h(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(_&&!h(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(o(e,!d(y)||!(_||w.forEach&&!f(function(){(new y).entries().next()}))))D=n.getConstructor(t,e,g,v),c.enable();else if(o(e,!0)){var k=new D,T=k[v](_?{}:-0,1)!=k,M=f(function(){k.has(1)}),C=p(function(e){new y(e)}),O=!_&&f(function(){for(var e=new y,t=5;t--;)e[v](t,t);return!e.has(-0)});C||((D=t(function(e,t){u(e,w);var n=b(new y,e,D);return null!=t&&l(t,n[v],{that:n,AS_ENTRIES:g}),n})).prototype=w,w.constructor=D),(M||O)&&(x("delete"),x("has"),g&&x("get")),(O||T)&&x(v),_&&w.clear&&delete w.clear}return S[e]=D,i({global:!0,forced:D!=y},S),m(D,e),_||n.setStrong(D,e,g),D}},bXm7:function(e,t,n){!function(e){"use strict";var t={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};e.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("wd/R"))},bYM6:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(n("wd/R"))},bpih:function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},busE:function(e,t,n){var i=n("2oRo"),r=n("Fib7"),s=n("Gi26"),o=n("kRJp"),a=n("zk60"),c=n("iSVu"),l=n("afO8"),u=n("Xnc8").CONFIGURABLE,d=l.get,h=l.enforce,f=String(String).split("String");(e.exports=function(e,t,n,c){var l,d=!!c&&!!c.unsafe,p=!!c&&!!c.enumerable,m=!!c&&!!c.noTargetGet,b=c&&void 0!==c.name?c.name:t;r(n)&&("Symbol("===String(b).slice(0,7)&&(b="["+String(b).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!s(n,"name")||u&&n.name!==b)&&o(n,"name",b),(l=h(n)).source||(l.source=f.join("string"==typeof b?b:""))),e!==i?(d?!m&&e[t]&&(p=!0):delete e[t],p?e[t]=n:o(e,t,n)):p?e[t]=n:a(t,n)})(Function.prototype,"toString",function(){return r(this)&&d(this).source||c(this)})},bxKX:function(e,t,n){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},c2HN:function(e,t,n){"use strict";function i(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",function(){return i})},cEzo:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("e0ae"),r=n("oxzT"),s=n("8Y7J"),o=n("EApP"),a=n("ANnk"),c=n("SVse");const l=function(e){return[e]};let u=(()=>{class e{constructor(e){this.toastr=e,this.byId=!0,this.icons=r.a}getText(){return document.getElementById(this.source).value}onClick(){try{const e=Object(i.a)(),t=this.byId?this.getText():this.source,n=()=>{this.toastr.success("Copied text to the clipboard successfully.")};["firefox","ie","ios","safari"].includes(e.name)?navigator.clipboard.writeText(t).then(()=>n()):navigator.permissions.query({name:"clipboard-write"}).then(e=>{"granted"!==e.state&&"prompt"!==e.state||navigator.clipboard.writeText(t).then(()=>n())})}catch(e){this.toastr.error("Failed to copy text to the clipboard.")}}}return e.\u0275fac=function(t){return new(t||e)(s.Rb(o.b))},e.\u0275cmp=s.Lb({type:e,selectors:[["cd-copy-2-clipboard-button"]],hostBindings:function(e,t){1&e&&s.lc("click",function(){return t.onClick()})},inputs:{source:"source",byId:"byId"},decls:2,vars:3,consts:function(){let e;return e="Copy to Clipboard",[["type","button","title",e,1,"btn","btn-light",3,"click"],[3,"ngClass"]]},template:function(e,t){1&e&&(s.Xb(0,"button",0),s.lc("click",function(){return t.onClick()}),s.Sb(1,"i",1),s.Wb()),2&e&&(s.Db(1),s.uc("ngClass",s.zc(1,l,t.icons.clipboard)))},directives:[a.a,c.p],styles:[""]}),e})()},cRix:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("wd/R"))},cSlR:function(e,t,n){"use strict";var i=/^(?:0|[1-9]\d*)$/;t.a=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&i.test(e))&&e>-1&&e%1==0&&e<t}},cUpR:function(e,t,n){"use strict";n.d(t,"a",function(){return j}),n.d(t,"b",function(){return A}),n.d(t,"c",function(){return $}),n.d(t,"d",function(){return F}),n.d(t,"e",function(){return D});var i=n("SVse"),r=n("8Y7J");class s extends i.J{constructor(){super()}supportsDOMEvents(){return!0}}class o extends s{static makeCurrent(){Object(i.N)(new o)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).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,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=c||(c=document.querySelector("base"),c)?c.getAttribute("href"):null;return null==t?null:(n=t,a||(a=document.createElement("a")),a.setAttribute("href",n),"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname);var n}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return Object(i.M)(document.cookie,e)}}let a,c=null;const l=new r.u("TRANSITION_ID"),u=[{provide:r.d,useFactory:function(e,t,n){return()=>{n.get(r.e).donePromise.then(()=>{const n=Object(i.L)();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[l,i.d,r.v],multi:!0}];class d{static init(){Object(r.Z)(new d)}addToWindow(e){r.rb.getAngularTestability=(t,n=!0)=>{const i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},r.rb.getAllAngularTestabilities=()=>e.getAllTestabilities(),r.rb.getAllAngularRootElements=()=>e.getAllRootElements(),r.rb.frameworkStabilizers||(r.rb.frameworkStabilizers=[]),r.rb.frameworkStabilizers.push(e=>{const t=r.rb.getAllAngularTestabilities();let n=t.length,i=!1;const s=function(t){i=i||t,n--,0==n&&e(i)};t.forEach(function(e){e.whenStable(s)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?Object(i.L)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const h=new r.u("EventManagerPlugins");let f=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let i=0;i<n.length;i++){const t=n[i];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error(`No event manager plugin found for event ${e}`)}}return e.\u0275fac=function(t){return new(t||e)(r.ic(h),r.ic(r.D))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac}),e})();class p{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const r=Object(i.L)().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,n)}}let m=(()=>{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac}),e})(),b=(()=>{class e extends m{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,n){e.forEach(e=>{const i=this._doc.createElement("style");i.textContent=e,n.push(t.appendChild(i))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(g),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,n)=>{this._addStylesToHost(e,n,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(g))}}return e.\u0275fac=function(t){return new(t||e)(r.ic(i.d))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac}),e})();function g(e){Object(i.L)().remove(e)}const _={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/"},v=/%COMP%/g;function y(e,t,n){for(let i=0;i<t.length;i++){let r=t[i];Array.isArray(r)?y(e,r,n):(r=r.replace(v,e),n.push(r))}return n}function w(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let D=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new S(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case r.T.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new x(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case 1:case r.T.ShadowDom:return new k(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=y(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(r.ic(f),r.ic(b),r.ic(r.c))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac}),e})();class S{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(_[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,i){if(i){t=i+":"+t;const r=_[i];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const i=_[n];i?e.removeAttributeNS(i,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,i){i&(r.J.DashCase|r.J.Important)?e.style.setProperty(t,n,i&r.J.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&r.J.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,w(n)):this.eventManager.addEventListener(e,t,w(n))}}class x extends S{constructor(e,t,n,i){super(e),this.component=n;const r=y(i+"-"+n.id,n.styles,[]);t.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(v,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(v,i+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class k extends S{constructor(e,t,n,i){super(e),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=y(i.id,i.styles,[]);for(let s=0;s<r.length;s++){const e=document.createElement("style");e.textContent=r[s],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let T=(()=>{class e extends p{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}return e.\u0275fac=function(t){return new(t||e)(r.ic(i.d))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac}),e})();const M=["alt","control","meta","shift"],C={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},O={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},L={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let E=(()=>{class e extends p{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,r){const s=e.parseEventName(n),o=e.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(i.L)().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const n=t.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const r=e._normalizeKey(n.pop());let s="";if(M.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),s+=e+".")}),s+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=i,o.fullKey=s,o}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&O.hasOwnProperty(t)&&(t=O[t]))}return C[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),M.forEach(i=>{i!=n&&(0,L[i])(e)&&(t+=i+".")}),t+=n,t}static eventCallback(t,n,i){return r=>{e.getEventFullKey(r)===t&&i.runGuarded(()=>n(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(r.ic(i.d))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac}),e})(),A=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Nb)({factory:function(){return Object(r.ic)(R)},token:e,providedIn:"root"}),e})();function I(e){return new R(e.get(i.d))}let R=(()=>{class e extends A{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case r.L.NONE:return t;case r.L.HTML:return Object(r.gb)(t,"HTML")?Object(r.zb)(t):Object(r.eb)(this._doc,String(t)).toString();case r.L.STYLE:return Object(r.gb)(t,"Style")?Object(r.zb)(t):t;case r.L.SCRIPT:if(Object(r.gb)(t,"Script"))return Object(r.zb)(t);throw new Error("unsafe value used in a script context");case r.L.URL:return Object(r.qb)(t),Object(r.gb)(t,"URL")?Object(r.zb)(t):Object(r.fb)(String(t));case r.L.RESOURCE_URL:if(Object(r.gb)(t,"ResourceURL"))return Object(r.zb)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return Object(r.hb)(e)}bypassSecurityTrustStyle(e){return Object(r.kb)(e)}bypassSecurityTrustScript(e){return Object(r.jb)(e)}bypassSecurityTrustUrl(e){return Object(r.lb)(e)}bypassSecurityTrustResourceUrl(e){return Object(r.ib)(e)}}return e.\u0275fac=function(t){return new(t||e)(r.ic(i.d))},e.\u0275prov=Object(r.Nb)({factory:function(){return I(Object(r.ic)(r.r))},token:e,providedIn:"root"}),e})();const P=[{provide:r.F,useValue:i.K},{provide:r.G,useValue:function(){o.makeCurrent(),d.init()},multi:!0},{provide:i.d,useFactory:function(){return Object(r.xb)(document),document},deps:[]}],F=Object(r.U)(r.Y,"browser",P),W=[[],{provide:r.bb,useValue:"root"},{provide:r.o,useFactory:function(){return new r.o},deps:[]},{provide:h,useClass:T,multi:!0,deps:[i.d,r.D,r.F]},{provide:h,useClass:E,multi:!0,deps:[i.d]},[],{provide:D,useClass:D,deps:[f,b,r.c]},{provide:r.I,useExisting:D},{provide:m,useExisting:b},{provide:b,useClass:b,deps:[i.d]},{provide:r.P,useClass:r.P,deps:[r.D]},{provide:f,useClass:f,deps:[h,r.D]},[]];let j=(()=>{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:r.c,useValue:t.appId},{provide:l,useExisting:r.c},u]}}}return e.\u0275fac=function(t){return new(t||e)(r.ic(e,12))},e.\u0275mod=r.Pb({type:e}),e.\u0275inj=r.Ob({providers:W,imports:[i.c,r.f]}),e})();const Y="undefined"!=typeof window&&window||{};class N{constructor(e,t){this.msPerTick=e,this.numTicks=t}}class z{constructor(e){this.appRef=e.injector.get(r.g)}timeChangeDetection(e){const t=e&&e.record,n="Change Detection",r=null!=Y.console.profile;t&&r&&Y.console.profile(n);const s=Object(i.L)().performanceNow();let o=0;for(;o<5||Object(i.L)().performanceNow()-s<500;)this.appRef.tick(),o++;const a=Object(i.L)().performanceNow();t&&r&&Y.console.profileEnd(n);const c=(a-s)/o;return Y.console.log(`ran ${o} change detection cycles`),Y.console.log(`${c.toFixed(2)} ms per check`),new N(c,o)}}function $(e){return"profiler",t=new z(e),"undefined"!=typeof COMPILED&&COMPILED||((r.rb.ng=r.rb.ng||{}).profiler=t),e;var t}},cVYH:function(e,t,n){var i=n("Fib7"),r=n("hh1v"),s=n("0rvr");e.exports=function(e,t,n){var o,a;return s&&i(o=t.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&s(e,a),e}},cp0P:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("HDdC"),r=n("DH7j"),s=n("lJxs"),o=n("XoHu"),a=n("Cfvw");function c(...e){if(1===e.length){const t=e[0];if(Object(r.a)(t))return l(t,null);if(Object(o.a)(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return l(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return l(e=1===e.length&&Object(r.a)(e[0])?e[0]:e,null).pipe(Object(s.a)(e=>t(...e)))}return l(e,null)}function l(e,t){return new i.a(n=>{const i=e.length;if(0===i)return void n.complete();const r=new Array(i);let s=0,o=0;for(let c=0;c<i;c++){const l=Object(a.a)(e[c]);let u=!1;n.add(l.subscribe({next:e=>{u||(u=!0,o++),r[c]=e},error:e=>n.error(e),complete:()=>{s++,s!==i&&u||(o===i&&n.next(t?t.reduce((e,t,n)=>(e[t]=r[n],e),{}):r),n.complete())}}))}})}},czMo:function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n("wd/R"))},"d+Og":function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("LvDl"),r=n.n(i),s=n("kJI8");let o=(()=>{class e{constructor(e){if(this.type=e,!this.isValidType())throw new Error("Wrong placement group category type");this.setTypeStates()}isValidType(){return e.VALID_CATEGORIES.includes(this.type)}setTypeStates(){switch(this.type){case e.CATEGORY_CLEAN:this.states=["active","clean"];break;case e.CATEGORY_WORKING:this.states=["activating","backfill_wait","backfilling","creating","deep","degraded","forced_backfill","forced_recovery","peering","peered","recovering","recovery_wait","repair","scrubbing","snaptrim","snaptrim_wait"];break;case e.CATEGORY_WARNING:this.states=["backfill_toofull","backfill_unfound","down","incomplete","inconsistent","recovery_toofull","recovery_unfound","remapped","snaptrim_error","stale","undersized"];break;default:this.states=[]}}}return e.CATEGORY_CLEAN="clean",e.CATEGORY_WORKING="working",e.CATEGORY_WARNING="warning",e.CATEGORY_UNKNOWN="unknown",e.VALID_CATEGORIES=[e.CATEGORY_CLEAN,e.CATEGORY_WORKING,e.CATEGORY_WARNING,e.CATEGORY_UNKNOWN],e})();var a=n("8Y7J");let c=(()=>{class e{constructor(){this.categories=this.createCategories()}getAllTypes(){return o.VALID_CATEGORIES}getTypeByStates(e){const t=this.getPgStatesFromText(e);if(0===t.length)return o.CATEGORY_UNKNOWN;const n=r.a.zipObject(o.VALID_CATEGORIES,o.VALID_CATEGORIES.map(e=>r.a.intersection(this.categories[e].states,t).length));if(n[o.CATEGORY_WARNING]>0)return o.CATEGORY_WARNING;const i=n[o.CATEGORY_WORKING];return t.length>n[o.CATEGORY_CLEAN]+i?o.CATEGORY_UNKNOWN:i?o.CATEGORY_WORKING:o.CATEGORY_CLEAN}createCategories(){return r.a.zipObject(o.VALID_CATEGORIES,o.VALID_CATEGORIES.map(e=>new o(e)))}getPgStatesFromText(e){const t=e.replace(/[^a-z]+/g," ").trim().split(" ");return r.a.uniq(t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=a.Nb({token:e,factory:e.\u0275fac,providedIn:s.a}),e})()},"dBg+":function(e,t){t.f=Object.getOwnPropertySymbols},dEH0:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("8Y7J");let r=(()=>{class e{transform(e){return`${e} ms`}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Qb({name:"milliseconds",type:e,pure:!0}),e})()},dLWn:function(e,t,n){"use strict";var i=Function.prototype.toString;t.a=function(e){if(null!=e){try{return i.call(e)}catch(t){}try{return e+""}catch(t){}}return""}},dNwA:function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n("wd/R"))},dgut:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("NEZu"),r=n("Fgil"),s=n("8Y7J"),o=n("SVse"),a=n("hrfs");const c=["sparkCanvas"],l=["sparkTooltip"];let u=(()=>{class e{constructor(e){this.dimlessBinaryPipe=e,this.style={height:"30px",width:"100px"},this.colors=[{backgroundColor:"rgba(40,140,234,0.2)",borderColor:"rgba(40,140,234,1)",pointBackgroundColor:"rgba(40,140,234,1)",pointBorderColor:"#fff",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(40,140,234,0.8)"}],this.options={animation:{duration:0},responsive:!0,maintainAspectRatio:!1,legend:{display:!1},elements:{line:{borderWidth:1}},tooltips:{enabled:!1,mode:"index",intersect:!1,custom:void 0,callbacks:{label:e=>this.isBinary?this.dimlessBinaryPipe.transform(e.yLabel):e.yLabel,title:()=>""}},scales:{yAxes:[{display:!1}],xAxes:[{display:!1}]}},this.datasets=[{data:[]}],this.labels=[]}ngOnInit(){const e=new i.a(this.chartCanvasRef,this.chartTooltipRef,(e,t)=>t+e.caretX+"px",e=>e.caretY-e.height-e.yPadding-5+"px");e.customColors={backgroundColor:this.colors[0].pointBackgroundColor,borderColor:this.colors[0].pointBorderColor},this.options.tooltips.custom=t=>{e.customTooltips(t)}}ngOnChanges(e){this.datasets[0].data=e.data.currentValue,this.labels=[...Array(e.data.currentValue.length)]}}return e.\u0275fac=function(t){return new(t||e)(s.Rb(r.a))},e.\u0275cmp=s.Lb({type:e,selectors:[["cd-sparkline"]],viewQuery:function(e,t){if(1&e&&(s.Wc(c,3),s.Wc(l,3)),2&e){let e;s.Ec(e=s.mc())&&(t.chartCanvasRef=e.first),s.Ec(e=s.mc())&&(t.chartTooltipRef=e.first)}},inputs:{data:"data",style:"style",isBinary:"isBinary"},features:[s.Bb],decls:6,vars:6,consts:[[1,"chart-container",3,"ngStyle"],["baseChart","",3,"labels","datasets","options","colors","chartType"],["sparkCanvas",""],[1,"chartjs-tooltip"],["sparkTooltip",""]],template:function(e,t){1&e&&(s.Xb(0,"div",0),s.Sb(1,"canvas",1,2),s.Xb(3,"div",3,4),s.Sb(5,"table"),s.Wb(),s.Wb()),2&e&&(s.uc("ngStyle",t.style),s.Db(1),s.uc("labels",t.labels)("datasets",t.datasets)("options",t.options)("colors",t.colors)("chartType","line"))},directives:[o.s,a.a],styles:['.chart-container[_ngcontent-%COMP%]{cursor:pointer;margin:auto;overflow:visible;position:absolute}canvas[_ngcontent-%COMP%]{user-select:none}.chartjs-tooltip[_ngcontent-%COMP%]{background:#000000b3;border-radius:3px;color:#fff;font-family:Helvetica Neue,Helvetica,Arial,sans-serif!important;opacity:0;pointer-events:none;position:absolute;transform:translate(-50%);transition:all .1s ease}.chartjs-tooltip.transform-left[_ngcontent-%COMP%]{transform:translate(-10%)}.chartjs-tooltip.transform-left[_ngcontent-%COMP%]:after{left:10%}.chartjs-tooltip.transform-right[_ngcontent-%COMP%]{transform:translate(-90%)}.chartjs-tooltip.transform-right[_ngcontent-%COMP%]:after{left:90%}.chartjs-tooltip[_ngcontent-%COMP%]:after{border:5px solid #0000;border-top-color:#000;content:" ";left:50%;margin-left:-5px;position:absolute;top:100%} .chartjs-tooltip-key{display:inline-block;height:10px;margin-right:10px;width:10px}.chart-container[_ngcontent-%COMP%]{position:static!important}']}),e})()},"e+ae":function(e,t,n){!function(e){"use strict";var t="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),n="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function i(e){return e>1&&e<5}function r(e,t,n,r){var s=e+" ";switch(n){case"s":return t||r?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return t||r?s+(i(e)?"sekundy":"sek\xfand"):s+"sekundami";case"m":return t?"min\xfata":r?"min\xfatu":"min\xfatou";case"mm":return t||r?s+(i(e)?"min\xfaty":"min\xfat"):s+"min\xfatami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?s+(i(e)?"hodiny":"hod\xedn"):s+"hodinami";case"d":return t||r?"de\u0148":"d\u0148om";case"dd":return t||r?s+(i(e)?"dni":"dn\xed"):s+"d\u0148ami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?s+(i(e)?"mesiace":"mesiacov"):s+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?s+(i(e)?"roky":"rokov"):s+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 4:case 5:return"[minul\xfd] dddd [o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},e0ae:function(e,t,n){"use strict";n.d(t,"a",function(){return d});var i=function(e,t,n){this.name=e,this.version=t,this.os=n,this.type="browser"},r=function(e){this.version=e,this.type="node",this.name="node",this.os=process.platform},s=function(e,t,n,i){this.name=e,this.version=t,this.os=n,this.bot=i,this.type="bot-device"},o=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},a=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},c=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,l=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],u=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function d(e){return e?h(e):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new a:"undefined"!=typeof navigator?h(navigator.userAgent):"undefined"!=typeof process&&process.version?new r(process.version.slice(1)):null}function h(e){var t=function(e){return""!==e&&l.reduce(function(t,n){var i=n[0];if(t)return t;var r=n[1].exec(e);return!!r&&[i,r]},!1)}(e);if(!t)return null;var n=t[0],r=t[1];if("searchbot"===n)return new o;var a=r[1]&&r[1].split(/[._]/).slice(0,3);a?a.length<3&&(a=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var s=arguments[t],o=0,a=s.length;o<a;o++,r++)i[r]=s[o];return i}(a,function(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}(3-a.length))):a=[];var d=a.join("."),h=function(e){for(var t=0,n=u.length;t<n;t++){var i=u[t],r=i[0];if(i[1].exec(e))return r}return null}(e),f=c.exec(e);return f&&f[1]?new s(n,d,h,f[1]):new i(n,d,h)}},e2NH:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e="light",t=""){this.type=e,this.msg=t}}},eAQQ:function(e,t,n){"use strict";t.a=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}},"eCU+":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("mrSG"),r=n("IheW"),s=n("5+tZ"),o=n("lJxs"),a=n("9xzX"),c=n("xTzq"),l=n("8Y7J");let u=(()=>{let e=class{constructor(e,t){this.http=e,this.rgwDaemonService=t,this.url="api/rgw/site"}get(e){return this.rgwDaemonService.request(t=>(e&&(t=t.append("query",e)),this.http.get(this.url,{params:t})))}isDefaultRealm(){return this.get("default-realm").pipe(Object(s.a)(e=>this.rgwDaemonService.selectedDaemon$.pipe(Object(o.a)(t=>t.realm_name===e))))}};return e.\u0275fac=function(t){return new(t||e)(l.ic(r.b),l.ic(a.a))},e.\u0275prov=l.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e=Object(i.b)([c.a,Object(i.d)("design:paramtypes",[r.b,a.a])],e),e})()},"eDl+":function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},eFrH:function(e,t,n){var i=n("zBJ4")("span").classList,r=i&&i.constructor&&i.constructor.prototype;e.exports=r===Object.prototype?void 0:r},eIep:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("lJxs"),r=n("Cfvw"),s=n("zx2A");function o(e,t){return"function"==typeof t?n=>n.pipe(o((n,s)=>Object(r.a)(e(n,s)).pipe(Object(i.a)((e,i)=>t(n,e,s,i))))):t=>t.lift(new a(e))}class a{constructor(e){this.project=e}call(e,t){return t.subscribe(new c(e,this.project))}}class c extends s.b{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new s.a(this),i=this.destination;i.add(n),this.innerSubscription=Object(s.c)(e,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}},efK2:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("LvDl"),r=n.n(i),s=n("8Y7J");let o=(()=>{class e{transform(e,t,n){return r.a.isString(e)?(n=r.a.defaultTo(n,""),r.a.truncate(e,{length:t,omission:n})):e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=s.Qb({name:"truncate",type:e,pure:!0}),e})()},"ej+x":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("lOp/"),r=n("8Y7J"),s=n("IheW");let o=(()=>{class e{constructor(e,t){this.http=e,this.timerService=t,this.API_URL="api/feature_toggles",this.REFRESH_INTERVAL=3e4,this.featureToggleMap$=this.timerService.get(()=>this.http.get(this.API_URL),this.REFRESH_INTERVAL)}get(){return this.featureToggleMap$}}return e.\u0275fac=function(t){return new(t||e)(r.ic(s.b),r.ic(i.a))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},ewvW:function(e,t,n){var i=n("2oRo"),r=n("HYAF"),s=i.Object;e.exports=function(e){return s(r(e))}},"f/UV":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("8Y7J");let r=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Mb({type:e,selectors:[["","cdFormScope",""]],inputs:{cdFormScope:"cdFormScope"}}),e})()},f5p1:function(e,t,n){var i=n("2oRo"),r=n("Fib7"),s=n("iSVu"),o=i.WeakMap;e.exports=r(o)&&/native code/.test(s(o))},f69J:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("8Y7J"),r=n("s7LF");let s=(()=>{class e{constructor(e){this.parent=e}get validClass(){return!!this.control&&this.control.valid&&(this.control.touched||this.control.dirty)}get invalidClass(){return!!this.control&&this.control.invalid&&this.control.touched&&this.control.dirty}get path(){return[...this.parent.path,this.formControlName]}get control(){return this.formDirective&&this.formDirective.getControl(this)}get formDirective(){return this.parent?this.parent.formDirective:null}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(r.c,13))},e.\u0275dir=i.Mb({type:e,selectors:[["",8,"form-control"],["",8,"form-check-input"],["",8,"custom-control-input"]],hostVars:4,hostBindings:function(e,t){2&e&&i.Jb("is-valid",t.validClass)("is-invalid",t.invalidClass)},inputs:{formControlName:"formControlName",formControl:"formControl"}}),e})()},fHMY:function(e,t,n){var i,r=n("glrk"),s=n("N+g0"),o=n("eDl+"),a=n("0BK2"),c=n("G+Rx"),l=n("zBJ4"),u=n("93I0")("IE_PROTO"),d=function(){},h=function(e){return"<script>"+e+"<\/script>"},f=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},p=function(){try{i=new ActiveXObject("htmlfile")}catch(r){}var e,t;p="undefined"!=typeof document?document.domain&&i?f(i):((t=l("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F):f(i);for(var n=o.length;n--;)delete p.prototype[o[n]];return p()};a[u]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=r(e),n=new d,d.prototype=null,n[u]=e):n=p(),void 0===t?n:s(n,t)}},fdAy:function(e,t,n){"use strict";var i=n("I+eb"),r=n("xluM"),s=n("xDBR"),o=n("Xnc8"),a=n("Fib7"),c=n("ntOU"),l=n("4WOD"),u=n("0rvr"),d=n("1E5z"),h=n("kRJp"),f=n("busE"),p=n("tiKp"),m=n("P4y1"),b=n("rpNk"),g=o.PROPER,_=o.CONFIGURABLE,v=b.IteratorPrototype,y=b.BUGGY_SAFARI_ITERATORS,w=p("iterator"),D="keys",S="values",x="entries",k=function(){return this};e.exports=function(e,t,n,o,p,b,T){c(n,t,o);var M,C,O,L=function(e){if(e===p&&P)return P;if(!y&&e in I)return I[e];switch(e){case D:case S:case x:return function(){return new n(this,e)}}return function(){return new n(this)}},E=t+" Iterator",A=!1,I=e.prototype,R=I[w]||I["@@iterator"]||p&&I[p],P=!y&&R||L(p),F="Array"==t&&I.entries||R;if(F&&(M=l(F.call(new e)))!==Object.prototype&&M.next&&(s||l(M)===v||(u?u(M,v):a(M[w])||f(M,w,k)),d(M,E,!0,!0),s&&(m[E]=k)),g&&p==S&&R&&R.name!==S&&(!s&&_?h(I,"name",S):(A=!0,P=function(){return r(R,this)})),p)if(C={values:L(S),keys:b?P:L(D),entries:L(x)},T)for(O in C)(y||A||!(O in I))&&f(I,O,C[O]);else i({target:t,proto:!0,forced:y||A},C);return s&&!T||I[w]===P||f(I,w,P,{name:p}),m[t]=P,C}},fzPg:function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(n("wd/R"))},"g6v/":function(e,t,n){var i=n("0Dky");e.exports=!i(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},gRHU:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("2fFW"),r=n("NJ4a");const s={closed:!0,next(e){},error(e){if(i.a.useDeprecatedSynchronousErrorHandling)throw e;Object(r.a)(e)},complete(){}}},gVVK:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"nekaj sekund":"nekaj sekundami";case"ss":return r+(1===e?t?"sekundo":"sekundi":2===e?t||i?"sekundi":"sekundah":e<5?t||i?"sekunde":"sekundah":"sekund");case"m":return t?"ena minuta":"eno minuto";case"mm":return r+(1===e?t?"minuta":"minuto":2===e?t||i?"minuti":"minutama":e<5?t||i?"minute":"minutami":t||i?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return r+(1===e?t?"ura":"uro":2===e?t||i?"uri":"urama":e<5?t||i?"ure":"urami":t||i?"ur":"urami");case"d":return t||i?"en dan":"enim dnem";case"dd":return r+(1===e?t||i?"dan":"dnem":2===e?t||i?"dni":"dnevoma":t||i?"dni":"dnevi");case"M":return t||i?"en mesec":"enim mesecem";case"MM":return r+(1===e?t||i?"mesec":"mesecem":2===e?t||i?"meseca":"mesecema":e<5?t||i?"mesece":"meseci":t||i?"mesecev":"meseci");case"y":return t||i?"eno leto":"enim letom";case"yy":return r+(1===e?t||i?"leto":"letom":2===e?t||i?"leti":"letoma":e<5?t||i?"leta":"leti":t||i?"let":"leti")}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},gekB:function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),n=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",t[7],t[8],t[9]];function i(e,i,r,s){var o="";switch(r){case"s":return s?"muutaman sekunnin":"muutama sekunti";case"ss":o=s?"sekunnin":"sekuntia";break;case"m":return s?"minuutin":"minuutti";case"mm":o=s?"minuutin":"minuuttia";break;case"h":return s?"tunnin":"tunti";case"hh":o=s?"tunnin":"tuntia";break;case"d":return s?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":o=s?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return s?"kuukauden":"kuukausi";case"MM":o=s?"kuukauden":"kuukautta";break;case"y":return s?"vuoden":"vuosi";case"yy":o=s?"vuoden":"vuotta"}return function(e,i){return e<10?i?n[e]:t[e]:e}(e,s)+" "+o}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},gjCT:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};e.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(n("wd/R"))},glrk:function(e,t,n){var i=n("2oRo"),r=n("hh1v"),s=i.String,o=i.TypeError;e.exports=function(e){if(r(e))return e;throw o(s(e)+" is not an object")}},"hKI/":function(e,t){var n="Expected a function",i=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,c="object"==typeof global&&global&&global.Object===Object&&global,l="object"==typeof self&&self&&self.Object===Object&&self,u=c||l||Function("return this")(),d=Object.prototype.toString,h=Math.max,f=Math.min,p=function(){return u.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=s.test(e);return n||o.test(e)?a(e.slice(2),n?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,i){var r=!0,s=!0;if("function"!=typeof e)throw new TypeError(n);return m(i)&&(r="leading"in i?!!i.leading:r,s="trailing"in i?!!i.trailing:s),function(e,t,i){var r,s,o,a,c,l,u=0,d=!1,g=!1,_=!0;if("function"!=typeof e)throw new TypeError(n);function v(t){var n=r,i=s;return r=s=void 0,u=t,a=e.apply(i,n)}function y(e){return u=e,c=setTimeout(D,t),d?v(e):a}function w(e){var n=e-l;return void 0===l||n>=t||n<0||g&&e-u>=o}function D(){var e=p();if(w(e))return S(e);c=setTimeout(D,function(e){var n=t-(e-l);return g?f(n,o-(e-u)):n}(e))}function S(e){return c=void 0,_&&r?v(e):(r=s=void 0,a)}function x(){var e=p(),n=w(e);if(r=arguments,s=this,l=e,n){if(void 0===c)return y(l);if(g)return c=setTimeout(D,t),v(l)}return void 0===c&&(c=setTimeout(D,t)),a}return t=b(t)||0,m(i)&&(d=!!i.leading,o=(g="maxWait"in i)?h(b(i.maxWait)||0,t):o,_="trailing"in i?!!i.trailing:_),x.cancel=function(){void 0!==c&&clearTimeout(c),u=0,r=l=s=c=void 0},x.flush=function(){return void 0===c?a:S(p())},x}(e,t,{leading:r,maxWait:t,trailing:s})}},hKrs:function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-\u0435\u0432":0===n?e+"-\u0435\u043d":n>10&&n<20?e+"-\u0442\u0438":1===t?e+"-\u0432\u0438":2===t?e+"-\u0440\u0438":7===t||8===t?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(n("wd/R"))},hYPf:function(e,t,n){"use strict";var i=n("IzLi"),r=Object.create,s=function(){function e(){}return function(t){if(!Object(i.a)(t))return{};if(r)return r(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),o=n("UudT"),a=n("pyRK");t.a=function(e){return"function"!=typeof e.constructor||Object(a.a)(e)?{}:s(Object(o.a)(e))}},hh1v:function(e,t,n){var i=n("Fib7");e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},honF:function(e,t,n){!function(e){"use strict";var t={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},n={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};e.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(e){return e.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n("wd/R"))},hrfs:function(e,t,n){"use strict";n.d(t,"a",function(){return b}),n.d(t,"b",function(){return g});var i=n("8Y7J"),r=n("2Vo4"),s=n("CfRg"),o=n("MO+k");const a=[[255,99,132],[54,162,235],[255,206,86],[231,233,237],[75,192,192],[151,187,205],[220,220,220],[247,70,74],[70,191,189],[253,180,92],[148,159,177],[77,83,96]];function c(e,t){return"rgba("+e.concat(t).join(",")+")"}function l(e,t){return Math.floor(Math.random()*(t-e+1))+e}function u(e){return{backgroundColor:e.map(e=>c(e,.6)),borderColor:e.map(()=>"#fff"),pointBackgroundColor:e.map(e=>c(e,1)),pointBorderColor:e.map(()=>"#fff"),pointHoverBackgroundColor:e.map(e=>c(e,1)),pointHoverBorderColor:e.map(e=>c(e,1))}}function d(){return[l(0,255),l(0,255),l(0,255)]}function h(e){return a[e]||d()}function f(e){const t=new Array(e);for(let n=0;n<e;n++)t[n]=a[n]||d();return t}let p=(()=>{class e{constructor(){this.pColorschemesOptions={},this.colorschemesOptions=new r.a({})}setColorschemesOptions(e){this.pColorschemesOptions=e,this.colorschemesOptions.next(e)}getColorschemesOptions(){return this.pColorschemesOptions}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Nb)({factory:function(){return new e},token:e,providedIn:"root"}),e})();const m={Default:0,Update:1,Refresh:2};m[m.Default]="Default",m[m.Update]="Update",m[m.Refresh]="Refresh";let b=(()=>{class e{constructor(e,t){this.element=e,this.themeService=t,this.options={},this.chartClick=new i.p,this.chartHover=new i.p,this.old={dataExists:!1,dataLength:0,datasetsExists:!1,datasetsLength:0,datasetsDataObjects:[],datasetsDataLengths:[],colorsExists:!1,colors:[],labelsExist:!1,labels:[],legendExists:!1,legend:{}},this.subs=[]}static registerPlugin(e){o.pluginService.register(e)}static unregisterPlugin(e){o.pluginService.unregister(e)}ngOnInit(){this.ctx=this.element.nativeElement.getContext("2d"),this.refresh(),this.subs.push(this.themeService.colorschemesOptions.subscribe(e=>this.themeChanged(e)))}themeChanged(e){this.refresh()}ngDoCheck(){if(!this.chart)return;let e=m.Default;const t=t=>{e=t>e?t:e};switch(!!this.data!==this.old.dataExists&&(this.propagateDataToDatasets(this.data),this.old.dataExists=!!this.data,t(m.Update)),this.data&&this.data.length!==this.old.dataLength&&(this.old.dataLength=this.data&&this.data.length||0,t(m.Update)),!!this.datasets!==this.old.datasetsExists&&(this.old.datasetsExists=!!this.datasets,t(m.Update)),this.datasets&&this.datasets.length!==this.old.datasetsLength&&(this.old.datasetsLength=this.datasets&&this.datasets.length||0,t(m.Update)),this.datasets&&this.datasets.filter((e,t)=>e.data!==this.old.datasetsDataObjects[t]).length&&(this.old.datasetsDataObjects=this.datasets.map(e=>e.data),t(m.Update)),this.datasets&&this.datasets.filter((e,t)=>e.data.length!==this.old.datasetsDataLengths[t]).length&&(this.old.datasetsDataLengths=this.datasets.map(e=>e.data.length),t(m.Update)),!!this.colors!==this.old.colorsExists&&(this.old.colorsExists=!!this.colors,this.updateColors(),t(m.Update)),this.colors&&this.colors.filter((e,t)=>!this.colorsEqual(e,this.old.colors[t])).length&&(this.old.colors=this.colors.map(e=>this.copyColor(e)),this.updateColors(),t(m.Update)),!!this.labels!==this.old.labelsExist&&(this.old.labelsExist=!!this.labels,t(m.Update)),this.labels&&this.labels.filter((e,t)=>!this.labelsEqual(e,this.old.labels[t])).length&&(this.old.labels=this.labels.map(e=>this.copyLabel(e)),t(m.Update)),!!this.options.legend!==this.old.legendExists&&(this.old.legendExists=!!this.options.legend,t(m.Refresh)),this.options.legend&&this.options.legend.position!==this.old.legend.position&&(this.old.legend.position=this.options.legend.position,t(m.Refresh)),e){case m.Default:break;case m.Update:this.update();break;case m.Refresh:this.refresh()}}copyLabel(e){return Array.isArray(e)?[...e]:e}labelsEqual(e,t){return Array.isArray(e)===Array.isArray(t)&&(Array.isArray(e)||e===t)&&(!Array.isArray(e)||e.length===t.length)&&(!Array.isArray(e)||0===e.filter((e,n)=>e!==t[n]).length)}copyColor(e){return{backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderColor:e.borderColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,pointBorderColor:e.pointBorderColor,pointBackgroundColor:e.pointBackgroundColor,pointBorderWidth:e.pointBorderWidth,pointRadius:e.pointRadius,pointHoverRadius:e.pointHoverRadius,pointHitRadius:e.pointHitRadius,pointHoverBackgroundColor:e.pointHoverBackgroundColor,pointHoverBorderColor:e.pointHoverBorderColor,pointHoverBorderWidth:e.pointHoverBorderWidth,pointStyle:e.pointStyle,hoverBackgroundColor:e.hoverBackgroundColor,hoverBorderColor:e.hoverBorderColor,hoverBorderWidth:e.hoverBorderWidth}}colorsEqual(e,t){return!e==!t&&(!e||e.backgroundColor===t.backgroundColor&&e.borderWidth===t.borderWidth&&e.borderColor===t.borderColor&&e.borderCapStyle===t.borderCapStyle&&e.borderDash===t.borderDash&&e.borderDashOffset===t.borderDashOffset&&e.borderJoinStyle===t.borderJoinStyle&&e.pointBorderColor===t.pointBorderColor&&e.pointBackgroundColor===t.pointBackgroundColor&&e.pointBorderWidth===t.pointBorderWidth&&e.pointRadius===t.pointRadius&&e.pointHoverRadius===t.pointHoverRadius&&e.pointHitRadius===t.pointHitRadius&&e.pointHoverBackgroundColor===t.pointHoverBackgroundColor&&e.pointHoverBorderColor===t.pointHoverBorderColor&&e.pointHoverBorderWidth===t.pointHoverBorderWidth&&e.pointStyle===t.pointStyle&&e.hoverBackgroundColor===t.hoverBackgroundColor&&e.hoverBorderColor===t.hoverBorderColor&&e.hoverBorderWidth===t.hoverBorderWidth)}updateColors(){this.datasets.forEach((e,t)=>{this.colors&&this.colors[t]?Object.assign(e,this.colors[t]):Object.assign(e,function(e,t,n){if("pie"===e||"doughnut"===e)return u(f(n));if("polarArea"===e)return{backgroundColor:(i=f(n)).map(e=>c(e,.6)),borderColor:i.map(e=>c(e,1)),hoverBackgroundColor:i.map(e=>c(e,.8)),hoverBorderColor:i.map(e=>c(e,1))};var i;if("line"===e||"radar"===e)return function(e){return{backgroundColor:c(e,.4),borderColor:c(e,1),pointBackgroundColor:c(e,1),pointBorderColor:"#fff",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:c(e,.8)}}(h(t));if("bar"===e||"horizontalBar"===e)return function(e){return{backgroundColor:c(e,.6),borderColor:c(e,1),hoverBackgroundColor:c(e,.8),hoverBorderColor:c(e,1)}}(h(t));if("bubble"===e)return u(f(n));if("scatter"===e)return u(f(n));throw new Error(`getColors - Unsupported chart type ${e}`)}(this.chartType,t,e.data.length),Object.assign({},e))})}ngOnChanges(e){let t=m.Default;const n=e=>{t=e>t?e:t};switch(e.hasOwnProperty("data")&&e.data.currentValue&&(this.propagateDataToDatasets(e.data.currentValue),n(m.Update)),e.hasOwnProperty("datasets")&&e.datasets.currentValue&&(this.propagateDatasetsToData(e.datasets.currentValue),n(m.Update)),e.hasOwnProperty("labels")&&(this.chart&&(this.chart.data.labels=e.labels.currentValue),n(m.Update)),e.hasOwnProperty("legend")&&(this.chart&&(this.chart.config.options.legend.display=e.legend.currentValue,this.chart.generateLegend()),n(m.Update)),e.hasOwnProperty("options")&&n(m.Refresh),t){case m.Update:this.update();break;case m.Refresh:case m.Default:this.refresh()}}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.subs.forEach(e=>e.unsubscribe())}update(e){if(this.chart)return this.chart.update(e)}hideDataset(e,t){this.chart.getDatasetMeta(e).hidden=t,this.chart.update()}isDatasetHidden(e){return this.chart.getDatasetMeta(e).hidden}toBase64Image(){return this.chart.toBase64Image()}getChartConfiguration(){const e=this.getDatasets(),t=Object.assign({},this.options);!1===this.legend&&(t.legend={display:!1}),t.hover=t.hover||{},t.hover.onHover||(t.hover.onHover=(e,t)=>{t&&!t.length||this.chartHover.emit({event:e,active:t})}),t.onClick||(t.onClick=(e,t)=>{this.chartClick.emit({event:e,active:t})});const n=this.smartMerge(t,this.themeService.getColorschemesOptions());return{type:this.chartType,data:{labels:this.labels||[],datasets:e},plugins:this.plugins,options:n}}getChartBuilder(e){const t=this.getChartConfiguration();return new o.Chart(e,t)}smartMerge(e,t,n=0){var i;if(0===n&&(i=e,e=Object(s.a)(i,5)),Object.keys(t).forEach(i=>{if(Array.isArray(t[i])){const r=e[i];r&&r.forEach(e=>{this.smartMerge(e,t[i][0],n+1)})}else"object"==typeof t[i]?(i in e||(e[i]={}),this.smartMerge(e[i],t[i],n+1)):e[i]=t[i]}),0===n)return e}isMultiLineLabel(e){return Array.isArray(e)}joinLabel(e){return e?this.isMultiLineLabel(e)?e.join(" "):e:null}propagateDatasetsToData(e){this.data=this.datasets.map(e=>e.data),this.chart&&(this.chart.data.datasets=e),this.updateColors()}propagateDataToDatasets(e){this.isMultiDataSet(e)?this.datasets&&e.length===this.datasets.length?this.datasets.forEach((t,n)=>{t.data=e[n]}):(this.datasets=e.map((e,t)=>({data:e,label:this.joinLabel(this.labels[t])||`Label ${t}`})),this.chart&&(this.chart.data.datasets=this.datasets)):this.datasets?(this.datasets[0]||(this.datasets[0]={}),this.datasets[0].data=e,this.datasets.splice(1)):(this.datasets=[{data:e}],this.chart&&(this.chart.data.datasets=this.datasets)),this.updateColors()}isMultiDataSet(e){return Array.isArray(e[0])}getDatasets(){if(!this.datasets&&!this.data)throw new Error(`ng-charts configuration error, data or datasets field are required to render chart ${this.chartType}`);return this.datasets?(this.propagateDatasetsToData(this.datasets),this.datasets):this.data?(this.propagateDataToDatasets(this.data),this.datasets):void 0}refresh(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.ctx&&(this.chart=this.getChartBuilder(this.ctx))}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.n),i.Rb(p))},e.\u0275dir=i.Mb({type:e,selectors:[["canvas","baseChart",""]],inputs:{options:"options",data:"data",datasets:"datasets",labels:"labels",chartType:"chartType",colors:"colors",legend:"legend",plugins:"plugins"},outputs:{chartClick:"chartClick",chartHover:"chartHover"},exportAs:["base-chart"],features:[i.Bb]}),e})(),g=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Pb({type:e}),e.\u0275inj=i.Ob({imports:[[]]}),e})()},iEDd:function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},iExv:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("8Y7J");let r=(()=>{class e{transform(e,t="Yes",n="No"){return Boolean(e)?t:n}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Qb({name:"booleanText",type:e,pure:!0}),e})()},iInd:function(e,t,n){"use strict";n.d(t,"a",function(){return We}),n.d(t,"b",function(){return R}),n.d(t,"c",function(){return I}),n.d(t,"d",function(){return hn}),n.d(t,"e",function(){return rn}),n.d(t,"f",function(){return sn}),n.d(t,"g",function(){return cn}),n.d(t,"h",function(){return on}),n.d(t,"i",function(){return yn}),n.d(t,"j",function(){return ln});var i=n("SVse"),r=n("8Y7J"),s=n("Cfvw"),o=n("LRne"),a=n("2Vo4"),c=n("itXk"),l=n("HDdC"),u=n("sVev"),d=n("GyhO"),h=n("EY2u");function f(e){return new l.a(t=>{let n;try{n=e()}catch(i){return void t.error(i)}return(n?Object(s.a)(n):Object(h.b)()).subscribe(t)})}var p=n("EQ5u"),m=n("XNiG"),b=n("lJxs"),g=n("eIep"),_=n("IzEk"),v=n("JX91"),y=n("Kqap"),w=n("pLZG"),D=n("JIr8"),S=n("bOdf"),x=n("NJ9Y"),k=n("SxV6"),T=n("5+tZ"),M=n("vkgz"),C=n("BFxc"),O=n("x+ZX"),L=n("nYR2"),E=n("bHdf");class A{constructor(e,t){this.id=e,this.url=t}}class I extends A{constructor(e,t,n="imperative",i=null){super(e,t),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class R extends A{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class P extends A{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class F extends A{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class W extends A{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class j extends A{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Y extends A{constructor(e,t,n,i,r){super(e,t),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class N extends A{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class z extends A{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ${constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class H{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class X{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class V{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class B{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class U{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class q{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const G="primary";class J{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function K(e){return new J(e)}function Q(e){const t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function Z(e,t,n){const i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length<e.length))return null;const r={};for(let s=0;s<i.length;s++){const t=i[s],n=e[s];if(t.startsWith(":"))r[t.substring(1)]=n;else if(t!==n.path)return null}return{consumed:e.slice(0,i.length),posParams:r}}function ee(e,t){const n=e?Object.keys(e):void 0,i=t?Object.keys(t):void 0;if(!n||!i||n.length!=i.length)return!1;let r;for(let s=0;s<n.length;s++)if(r=n[s],!te(e[r],t[r]))return!1;return!0}function te(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const n=[...e].sort(),i=[...t].sort();return n.every((e,t)=>i[t]===e)}return e===t}function ne(e){return Array.prototype.concat.apply([],e)}function ie(e){return e.length>0?e[e.length-1]:null}function re(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function se(e){return Object(r.tb)(e)?e:Object(r.ub)(e)?Object(s.a)(Promise.resolve(e)):Object(o.a)(e)}function oe(e,t,n){return n?function(e,t){return ee(e,t)}(e.queryParams,t.queryParams)&&ae(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>te(e[n],t[n]))}(e.queryParams,t.queryParams)&&ce(e.root,t.root)}function ae(e,t){if(!fe(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children){if(!e.children[n])return!1;if(!ae(e.children[n],t.children[n]))return!1}return!0}function ce(e,t){return le(e,t,t.segments)}function le(e,t,n){if(e.segments.length>n.length)return!!fe(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!fe(e.segments,n))return!1;for(const n in t.children){if(!e.children[n])return!1;if(!ce(e.children[n],t.children[n]))return!1}return!0}{const i=n.slice(0,e.segments.length),r=n.slice(e.segments.length);return!!fe(e.segments,i)&&!!e.children.primary&&le(e.children.primary,t,r)}}class ue{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=K(this.queryParams)),this._queryParamMap}toString(){return be.serialize(this)}}class de{constructor(e,t){this.segments=e,this.children=t,this.parent=null,re(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ge(this)}}class he{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=K(this.parameters)),this._parameterMap}toString(){return xe(this)}}function fe(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}class pe{}class me{parse(e){const t=new Oe(e);return new ue(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){var t;return`/${_e(e.root,!0)}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${ye(t)}=${ye(e)}`).join("&"):`${ye(t)}=${ye(n)}`});return t.length?`?${t.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const be=new me;function ge(e){return e.segments.map(e=>xe(e)).join("/")}function _e(e,t){if(!e.hasChildren())return ge(e);if(t){const t=e.children.primary?_e(e.children.primary,!1):"",n=[];return re(e.children,(e,t)=>{t!==G&&n.push(`${t}:${_e(e,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}{const t=function(e,t){let n=[];return re(e.children,(e,i)=>{i===G&&(n=n.concat(t(e,i)))}),re(e.children,(e,i)=>{i!==G&&(n=n.concat(t(e,i)))}),n}(e,(t,n)=>n===G?[_e(e.children.primary,!1)]:[`${n}:${_e(t,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${ge(e)}/${t[0]}`:`${ge(e)}/(${t.join("//")})`}}function ve(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ye(e){return ve(e).replace(/%3B/gi,";")}function we(e){return ve(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function De(e){return decodeURIComponent(e)}function Se(e){return De(e.replace(/\+/g,"%20"))}function xe(e){return`${we(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${we(e)}=${we(t[e])}`).join("")}`;var t}const ke=/^[^\/()?;=#]+/;function Te(e){const t=e.match(ke);return t?t[0]:""}const Me=/^[^=?&#]+/,Ce=/^[^?&#]+/;class Oe{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new de([],{}):new de([],this.parseChildren())}parseQueryParams(){const 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("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new de(e,t)),n}parseSegment(){const e=Te(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new he(De(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Te(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=Te(this.remaining);e&&(n=e,this.capture(n))}e[De(t)]=De(n)}parseQueryParam(e){const t=function(e){const t=e.match(Me);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(Ce);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const i=Se(t),r=Se(n);if(e.hasOwnProperty(i)){let t=e[i];Array.isArray(t)||(t=[t],e[i]=t),t.push(r)}else e[i]=r}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Te(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let r;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r=G);const s=this.parseChildren();t[r]=1===Object.keys(s).length?s.primary:new de([],s),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class Le{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=Ee(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=Ee(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=Ae(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return Ae(e,this._root).map(e=>e.value)}}function Ee(e,t){if(e===t.value)return t;for(const n of t.children){const t=Ee(e,n);if(t)return t}return null}function Ae(e,t){if(e===t.value)return[t];for(const n of t.children){const i=Ae(e,n);if(i.length)return i.unshift(t),i}return[]}class Ie{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function Re(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class Pe extends Le{constructor(e,t){super(e),this.snapshot=t,ze(this,e)}toString(){return this.snapshot.toString()}}function Fe(e,t){const n=function(e,t){const n=new Ye([],{},{},"",{},G,t,null,e.root,-1,{});return new Ne("",new Ie(n,[]))}(e,t),i=new a.a([new he("",{})]),r=new a.a({}),s=new a.a({}),o=new a.a({}),c=new a.a(""),l=new We(i,r,o,c,s,G,t,n.root);return l.snapshot=n.root,new Pe(new Ie(l,[]),n)}class We{constructor(e,t,n,i,r,s,o,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this._futureSnapshot=a}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._paramMap=this.params.pipe(Object(b.a)(e=>K(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(b.a)(e=>K(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function je(e,t="emptyOnly"){const n=e.pathFromRoot;let i=0;if("always"!==t)for(i=n.length-1;i>=1;){const e=n[i],t=n[i-1];if(e.routeConfig&&""===e.routeConfig.path)i--;else{if(t.component)break;i--}}return function(e){return e.reduce((e,t)=>({params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class Ye{constructor(e,t,n,i,r,s,o,a,c,l,u){this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=l,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||(this._paramMap=K(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=K(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ne extends Le{constructor(e,t){super(t),this.url=e,ze(this,t)}toString(){return $e(this._root)}}function ze(e,t){t.value._routerState=e,t.children.forEach(t=>ze(e,t))}function $e(e){const t=e.children.length>0?` { ${e.children.map($e).join(", ")} } `:"";return`${e.value}${t}`}function He(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,ee(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),ee(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!ee(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),ee(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function Xe(e,t){var n,i;return ee(e.params,t.params)&&fe(n=e.url,i=t.url)&&n.every((e,t)=>ee(e.parameters,i[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||Xe(e.parent,t.parent))}function Ve(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=t.value;const r=function(e,t,n){return t.children.map(t=>{for(const i of n.children)if(e.shouldReuseRoute(t.value,i.value.snapshot))return Ve(e,t,i);return Ve(e,t)})}(e,t,n);return new Ie(i,r)}{if(e.shouldAttach(t.value)){const n=e.retrieve(t.value);if(null!==n){const e=n.route;return Be(t,e),e}}const n=new We(new a.a((i=t.value).url),new a.a(i.params),new a.a(i.queryParams),new a.a(i.fragment),new a.a(i.data),i.outlet,i.component,i),r=t.children.map(t=>Ve(e,t));return new Ie(n,r)}var i}function Be(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(let n=0;n<e.children.length;++n)Be(e.children[n],t.children[n])}function Ue(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function qe(e){return"object"==typeof e&&null!=e&&e.outlets}function Ge(e,t,n,i,r){let s={};return i&&re(i,(e,t)=>{s[t]=Array.isArray(e)?e.map(e=>`${e}`):`${e}`}),new ue(n.root===e?t:Je(n.root,e,t),s,r)}function Je(e,t,n){const i={};return re(e.children,(e,r)=>{i[r]=e===t?n:Je(e,t,n)}),new de(e.segments,i)}class Ke{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&Ue(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(qe);if(i&&i!==ie(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Qe{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function Ze(e,t,n){if(e||(e=new de([],{})),0===e.segments.length&&e.hasChildren())return et(e,t,n);const i=function(e,t,n){let i=0,r=t;const s={match:!1,pathIndex:0,commandIndex:0};for(;r<e.segments.length;){if(i>=n.length)return s;const t=e.segments[r],o=n[i];if(qe(o))break;const a=`${o}`,c=i<n.length-1?n[i+1]:null;if(r>0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!rt(a,c,t))return s;i+=2}else{if(!rt(a,{},t))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){const t=new de(e.segments.slice(0,i.pathIndex),{});return t.children.primary=new de(e.segments.slice(i.pathIndex),e.children),et(t,0,r)}return i.match&&0===r.length?new de(e.segments,{}):i.match&&!e.hasChildren()?tt(e,t,n):i.match?et(e,0,r):tt(e,t,n)}function et(e,t,n){if(0===n.length)return new de(e.segments,{});{const i=function(e){return qe(e[0])?e[0].outlets:{[G]:e}}(n),r={};return re(i,(n,i)=>{"string"==typeof n&&(n=[n]),null!==n&&(r[i]=Ze(e.children[i],t,n))}),re(e.children,(e,t)=>{void 0===i[t]&&(r[t]=e)}),new de(e.segments,r)}}function tt(e,t,n){const i=e.segments.slice(0,t);let r=0;for(;r<n.length;){const s=n[r];if(qe(s)){const e=nt(s.outlets);return new de(i,e)}if(0===r&&Ue(n[0])){i.push(new he(e.segments[t].path,it(n[0]))),r++;continue}const o=qe(s)?s.outlets.primary:`${s}`,a=r<n.length-1?n[r+1]:null;o&&a&&Ue(a)?(i.push(new he(o,it(a))),r+=2):(i.push(new he(o,{})),r++)}return new de(i,{})}function nt(e){const t={};return re(e,(e,n)=>{"string"==typeof e&&(e=[e]),null!==e&&(t[n]=tt(new de([],{}),0,e))}),t}function it(e){const t={};return re(e,(e,n)=>t[n]=`${e}`),t}function rt(e,t,n){return e==n.path&&ee(t,n.parameters)}class st{constructor(e,t,n,i){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=i}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),He(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const i=Re(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,i[t],n),delete i[t]}),re(i,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const i=e.value,r=t?t.value:null;if(i===r)if(i.component){const r=n.getContext(i.outlet);r&&this.deactivateChildRoutes(e,t,r.children)}else this.deactivateChildRoutes(e,t,n);else r&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:i})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet),i=n&&e.value.component?n.children:t,r=Re(e);for(const s of Object.keys(r))this.deactivateRouteAndItsChildren(r[s],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(e,t,n){const i=Re(t);e.children.forEach(e=>{this.activateRoutes(e,i[e.value.outlet],n),this.forwardEvent(new U(e.value.snapshot))}),e.children.length&&this.forwardEvent(new V(e.value.snapshot))}activateRoutes(e,t,n){const i=e.value,r=t?t.value:null;if(He(i),i===r)if(i.component){const r=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,r.children)}else this.activateChildRoutes(e,t,n);else if(i.component){const t=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const e=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),ot(e.route)}else{const n=function(e){for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(i.snapshot),r=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=i,t.resolver=r,t.outlet&&t.outlet.activateWith(i,r),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function ot(e){He(e.value),e.children.forEach(ot)}class at{constructor(e,t){this.routes=e,this.module=t}}function ct(e){return"function"==typeof e}function lt(e){return e instanceof ue}const ut=Symbol("INITIAL_VALUE");function dt(){return Object(g.a)(e=>Object(c.a)(e.map(e=>e.pipe(Object(_.a)(1),Object(v.a)(ut)))).pipe(Object(y.a)((e,t)=>{let n=!1;return t.reduce((e,i,r)=>{if(e!==ut)return e;if(i===ut&&(n=!0),!n){if(!1===i)return i;if(r===t.length-1||lt(i))return i}return e},e)},ut),Object(w.a)(e=>e!==ut),Object(b.a)(e=>lt(e)?e:!0===e),Object(_.a)(1)))}let ht=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Lb({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&r.Sb(0,"router-outlet")},directives:function(){return[ln]},encapsulation:2}),e})();function ft(e,t=""){for(let n=0;n<e.length;n++){const i=e[n];pt(i,mt(t,i))}}function pt(e,t){e.children&&ft(e.children,t)}function mt(e,t){return t?e||t.path?e&&!t.path?`${e}/`:!e&&t.path?t.path:`${e}/${t.path}`:"":e}function bt(e){const t=e.children&&e.children.map(bt),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&n.outlet!==G&&(n.component=ht),n}function gt(e){return e.outlet||G}function _t(e,t){const n=e.filter(e=>gt(e)===t);return n.push(...e.filter(e=>gt(e)!==t)),n}const vt={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function yt(e,t,n){var i;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},vt):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(t.matcher||Z)(n,e,t);if(!r)return Object.assign({},vt);const s={};re(r.posParams,(e,t)=>{s[t]=e.path});const o=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function wt(e,t,n,i,r="corrected"){if(n.length>0&&function(e,t,n){return n.some(n=>Dt(e,t,n)&&gt(n)!==G)}(e,n,i)){const r=new de(t,function(e,t,n,i){const r={};r.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;for(const s of n)if(""===s.path&&gt(s)!==G){const n=new de([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,r[gt(s)]=n}return r}(e,t,i,new de(n,e.children)));return r._sourceSegment=e,r._segmentIndexShift=t.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(n=>Dt(e,t,n))}(e,n,i)){const s=new de(e.segments,function(e,t,n,i,r,s){const o={};for(const a of i)if(Dt(e,n,a)&&!r[gt(a)]){const n=new de([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===s?e.segments.length:t.length,o[gt(a)]=n}return Object.assign(Object.assign({},r),o)}(e,t,n,i,e.children,r));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}const s=new de(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Dt(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function St(e,t,n,i){return!!(gt(e)===i||i!==G&&Dt(t,n,e))&&("**"===e.path||yt(t,e,n).matched)}function xt(e,t,n){return 0===t.length&&!e.children[n]}class kt{constructor(e){this.segmentGroup=e||null}}class Tt{constructor(e){this.urlTree=e}}function Mt(e){return new l.a(t=>t.error(new kt(e)))}function Ct(e){return new l.a(t=>t.error(new Tt(e)))}function Ot(e){return new l.a(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class Lt{constructor(e,t,n,i,s){this.configLoader=t,this.urlSerializer=n,this.urlTree=i,this.config=s,this.allowRedirects=!0,this.ngModule=e.get(r.B)}apply(){const e=wt(this.urlTree.root,[],[],this.config).segmentGroup,t=new de(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,t,G).pipe(Object(b.a)(e=>this.createUrlTree(Et(e),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(D.a)(e=>{if(e instanceof Tt)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof kt)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,G).pipe(Object(b.a)(t=>this.createUrlTree(Et(t),e.queryParams,e.fragment))).pipe(Object(D.a)(e=>{if(e instanceof kt)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const i=e.segments.length>0?new de([],{[G]:e}):e;return new ue(i,t,n)}expandSegmentGroup(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Object(b.a)(e=>new de([],e))):this.expandSegment(e,n,t,n.segments,i,!0)}expandChildren(e,t,n){const i=[];for(const r of Object.keys(n.children))"primary"===r?i.unshift(r):i.push(r);return Object(s.a)(i).pipe(Object(S.a)(i=>{const r=n.children[i],s=_t(t,i);return this.expandSegmentGroup(e,s,r,i).pipe(Object(b.a)(e=>({segment:e,outlet:i})))}),Object(y.a)((e,t)=>(e[t.outlet]=t.segment,e),{}),Object(x.a)())}expandSegment(e,t,n,i,r,a){return Object(s.a)(n).pipe(Object(S.a)(s=>this.expandSegmentAgainstRoute(e,t,n,s,i,r,a).pipe(Object(D.a)(e=>{if(e instanceof kt)return Object(o.a)(null);throw e}))),Object(k.a)(e=>!!e),Object(D.a)((e,n)=>{if(e instanceof u.a||"EmptyError"===e.name){if(xt(t,i,r))return Object(o.a)(new de([],{}));throw new kt(t)}throw e}))}expandSegmentAgainstRoute(e,t,n,i,r,s,o){return St(i,t,r,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,s):Mt(t):Mt(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,i){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Ct(r):this.lineralizeSegments(n,r).pipe(Object(T.a)(n=>{const r=new de(n,{});return this.expandSegment(e,r,t,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,s){const{matched:o,consumedSegments:a,lastChild:c,positionalParamSegments:l}=yt(t,i,r);if(!o)return Mt(t);const u=this.applyRedirectCommands(a,i.redirectTo,l);return i.redirectTo.startsWith("/")?Ct(u):this.lineralizeSegments(i,u).pipe(Object(T.a)(i=>this.expandSegment(e,t,n,i.concat(r.slice(c)),s,!1)))}matchSegmentAgainstRoute(e,t,n,i,r){if("**"===n.path)return n.loadChildren?(n._loadedConfig?Object(o.a)(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(Object(b.a)(e=>(n._loadedConfig=e,new de(i,{})))):Object(o.a)(new de(i,{}));const{matched:s,consumedSegments:a,lastChild:c}=yt(t,n,i);if(!s)return Mt(t);const l=i.slice(c);return this.getChildConfig(e,n,i).pipe(Object(T.a)(e=>{const i=e.module,s=e.routes,{segmentGroup:c,slicedSegments:u}=wt(t,a,l,s),d=new de(c.segments,c.children);if(0===u.length&&d.hasChildren())return this.expandChildren(i,s,d).pipe(Object(b.a)(e=>new de(a,e)));if(0===s.length&&0===u.length)return Object(o.a)(new de(a,{}));const h=gt(n)===r;return this.expandSegment(i,d,s,u,h?G:r,!0).pipe(Object(b.a)(e=>new de(a.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?Object(o.a)(new at(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Object(o.a)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(Object(T.a)(n=>n?this.configLoader.load(e.injector,t).pipe(Object(b.a)(e=>(t._loadedConfig=e,e))):function(e){return new l.a(t=>t.error(Q(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):Object(o.a)(new at([],e))}runCanLoadGuards(e,t,n){const i=t.canLoad;if(!i||0===i.length)return Object(o.a)(!0);const r=i.map(i=>{const r=e.get(i);let s;if(function(e){return e&&ct(e.canLoad)}(r))s=r.canLoad(t,n);else{if(!ct(r))throw new Error("Invalid CanLoad guard");s=r(t,n)}return se(s)});return Object(o.a)(r).pipe(dt(),Object(M.a)(e=>{if(!lt(e))return;const t=Q(`Redirecting to "${this.urlSerializer.serialize(e)}"`);throw t.url=e,t}),Object(b.a)(e=>!0===e))}lineralizeSegments(e,t){let n=[],i=t.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Object(o.a)(n);if(i.numberOfChildren>1||!i.children.primary)return Ot(e.redirectTo);i=i.children.primary}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,i){const r=this.createSegmentGroup(e,t.root,n,i);return new ue(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return re(e,(e,i)=>{if("string"==typeof e&&e.startsWith(":")){const r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}createSegmentGroup(e,t,n,i){const r=this.createSegments(e,t.segments,n,i);let s={};return re(t.children,(t,r)=>{s[r]=this.createSegmentGroup(e,t,n,i)}),new de(r,s)}createSegments(e,t,n,i){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,i):this.findOrReturn(t,n))}findPosParam(e,t,n){const i=n[t.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return i}findOrReturn(e,t){let n=0;for(const i of t){if(i.path===e.path)return t.splice(n),i;n++}return e}}function Et(e){const t={};for(const n of Object.keys(e.children)){const i=Et(e.children[n]);(i.segments.length>0||i.hasChildren())&&(t[n]=i)}return function(e){if(1===e.numberOfChildren&&e.children.primary){const t=e.children.primary;return new de(e.segments.concat(t.segments),t.children)}return e}(new de(e.segments,t))}class At{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class It{constructor(e,t){this.component=e,this.route=t}}function Rt(e,t,n){const i=e._root;return Ft(i,t?t._root:null,n,[i.value])}function Pt(e,t,n){const i=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function Ft(e,t,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=Re(t);return e.children.forEach(e=>{!function(e,t,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=e.value,o=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const c=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!fe(e.url,t.url);case"pathParamsOrQueryParamsChange":return!fe(e.url,t.url)||!ee(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Xe(e,t)||!ee(e.queryParams,t.queryParams);case"paramsChange":default:return!Xe(e,t)}}(o,s,s.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new At(i)):(s.data=o.data,s._resolvedData=o._resolvedData),Ft(e,t,s.component?a?a.children:null:n,i,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new It(a.outlet.component,o))}else o&&Wt(t,a,r),r.canActivateChecks.push(new At(i)),Ft(e,null,s.component?a?a.children:null:n,i,r)}(e,s[e.value.outlet],n,i.concat([e.value]),r),delete s[e.value.outlet]}),re(s,(e,t)=>Wt(e,n.getContext(t),r)),r}function Wt(e,t,n){const i=Re(e),r=e.value;re(i,(e,i)=>{Wt(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new It(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}class jt{}function Yt(e){return new l.a(t=>t.error(e))}class Nt{constructor(e,t,n,i,r,s){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=s}recognize(){const e=wt(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,G);if(null===t)return null;const n=new Ye([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},G,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Ie(n,t),r=new Ne(this.url,i);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(e){const t=e.value,n=je(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=[];for(const r of Object.keys(t.children)){const i=t.children[r],s=_t(e,r),o=this.processSegmentGroup(s,i,r);if(null===o)return null;n.push(...o)}const i=$t(n);return i.sort((e,t)=>e.value.outlet===G?-1:t.value.outlet===G?1:e.value.outlet.localeCompare(t.value.outlet)),i}processSegment(e,t,n,i){for(const r of e){const e=this.processSegmentAgainstRoute(r,t,n,i);if(null!==e)return e}return xt(t,n,i)?[]:null}processSegmentAgainstRoute(e,t,n,i){if(e.redirectTo||!St(e,t,n,i))return null;let r,s=[],o=[];if("**"===e.path){const i=n.length>0?ie(n).parameters:{};r=new Ye(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Vt(e),gt(e),e.component,e,Ht(t),Xt(t)+n.length,Bt(e))}else{const i=yt(t,e,n);if(!i.matched)return null;s=i.consumedSegments,o=n.slice(i.lastChild),r=new Ye(s,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Vt(e),gt(e),e.component,e,Ht(t),Xt(t)+s.length,Bt(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:c,slicedSegments:l}=wt(t,s,o,a.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution);if(0===l.length&&c.hasChildren()){const e=this.processChildren(a,c);return null===e?null:[new Ie(r,e)]}if(0===a.length&&0===l.length)return[new Ie(r,[])];const u=gt(e)===i,d=this.processSegment(a,c,l,u?G:i);return null===d?null:[new Ie(r,d)]}}function zt(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function $t(e){const t=[],n=new Set;for(const i of e){if(!zt(i)){t.push(i);continue}const e=t.find(e=>i.value.routeConfig===e.value.routeConfig);void 0!==e?(e.children.push(...i.children),n.add(e)):t.push(i)}for(const i of n){const e=$t(i.children);t.push(new Ie(i.value,e))}return t.filter(e=>!n.has(e))}function Ht(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function Xt(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Vt(e){return e.data||{}}function Bt(e){return e.resolve||{}}function Ut(e){return Object(g.a)(t=>{const n=e(t);return n?Object(s.a)(n).pipe(Object(b.a)(()=>t)):Object(o.a)(t)})}class qt extends class{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}{}const Gt=new r.u("ROUTES");class Jt{constructor(e,t,n,i){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=i}load(e,t){if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);const n=this.loadModuleFactory(t.loadChildren).pipe(Object(b.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const i=n.create(e);return new at(ne(i.injector.get(Gt,void 0,r.t.Self|r.t.Optional)).map(bt),i)}),Object(D.a)(e=>{throw t._loader$=void 0,e}));return t._loader$=new p.a(n,()=>new m.a).pipe(Object(O.a)()),t._loader$}loadModuleFactory(e){return"string"==typeof e?Object(s.a)(this.loader.load(e)):se(e()).pipe(Object(T.a)(e=>e instanceof r.z?Object(o.a)(e):Object(s.a)(this.compiler.compileModuleAsync(e))))}}class Kt{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Qt,this.attachRef=null}}class Qt{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Kt,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class Zt{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function en(e){throw e}function tn(e,t,n){return t.parse("/")}function nn(e,t){return Object(o.a)(null)}let rn=(()=>{class e{constructor(e,t,n,i,s,o,c,l){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=i,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new m.a,this.errorHandler=en,this.malformedUriErrorHandler=tn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:nn,afterPreactivation:nn},this.urlHandlingStrategy=new Zt,this.routeReuseStrategy=new qt,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=s.get(r.B),this.console=s.get(r.ab);const u=s.get(r.D);this.isNgZoneEnabled=u instanceof r.D&&r.D.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new ue(new de([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Jt(o,c,e=>this.triggerEvent(new $(e)),e=>this.triggerEvent(new H(e))),this.routerState=Fe(this.currentUrlTree,this.rootComponentType),this.transitions=new a.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(e){const t=this.events;return e.pipe(Object(w.a)(e=>0!==e.id),Object(b.a)(e=>Object.assign(Object.assign({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),Object(g.a)(e=>{let n=!1,i=!1;return Object(o.a)(e).pipe(Object(M.a)(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(g.a)(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Object(o.a)(e).pipe(Object(g.a)(e=>{const n=this.transitions.getValue();return t.next(new I(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?h.a:Promise.resolve(e)}),(i=this.ngModule.injector,r=this.configLoader,s=this.urlSerializer,a=this.config,Object(g.a)(e=>function(e,t,n,i,r){return new Lt(e,t,n,i,r).apply()}(i,r,s,e.extractedUrl,a).pipe(Object(b.a)(t=>Object.assign(Object.assign({},e),{urlAfterRedirects:t}))))),Object(M.a)(e=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,t,n,i,r){return Object(T.a)(s=>function(e,t,n,i,r="emptyOnly",s="legacy"){try{const a=new Nt(e,t,n,i,r,s).recognize();return null===a?Yt(new jt):Object(o.a)(a)}catch(a){return Yt(a)}}(e,t,s.urlAfterRedirects,n(s.urlAfterRedirects),i,r).pipe(Object(b.a)(e=>Object.assign(Object.assign({},s),{targetSnapshot:e}))))}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(M.a)(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects);const n=new W(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));var i,r,s,a;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:r,restoredState:s,extras:a}=e,c=new I(n,this.serializeUrl(i),r,s);t.next(c);const l=Fe(i,this.rootComponentType).snapshot;return Object(o.a)(Object.assign(Object.assign({},e),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),h.a}),Ut(e=>{const{targetSnapshot:t,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),Object(M.a)(e=>{const t=new j(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),Object(b.a)(e=>Object.assign(Object.assign({},e),{guards:Rt(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return Object(T.a)(n=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:a,canDeactivateChecks:c}}=n;return 0===c.length&&0===a.length?Object(o.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return Object(s.a)(e).pipe(Object(T.a)(e=>function(e,t,n,i,r){const s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!s||0===s.length)return Object(o.a)(!0);const a=s.map(s=>{const o=Pt(s,t,r);let a;if(function(e){return e&&ct(e.canDeactivate)}(o))a=se(o.canDeactivate(e,t,n,i));else{if(!ct(o))throw new Error("Invalid CanDeactivate guard");a=se(o(e,t,n,i))}return a.pipe(Object(k.a)())});return Object(o.a)(a).pipe(dt())}(e.component,e.route,n,t,i)),Object(k.a)(e=>!0!==e,!0))}(c,i,r,e).pipe(Object(T.a)(n=>n&&"boolean"==typeof n?function(e,t,n,i){return Object(s.a)(t).pipe(Object(S.a)(t=>Object(d.a)(function(e,t){return null!==e&&t&&t(new X(e)),Object(o.a)(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new B(e)),Object(o.a)(!0)}(t.route,i),function(e,t,n){const i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(e=>function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)).filter(e=>null!==e).map(t=>f(()=>{const r=t.guards.map(r=>{const s=Pt(r,t.node,n);let o;if(function(e){return e&&ct(e.canActivateChild)}(s))o=se(s.canActivateChild(i,e));else{if(!ct(s))throw new Error("Invalid CanActivateChild guard");o=se(s(i,e))}return o.pipe(Object(k.a)())});return Object(o.a)(r).pipe(dt())}));return Object(o.a)(r).pipe(dt())}(e,t.path,n),function(e,t,n){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return Object(o.a)(!0);const r=i.map(i=>f(()=>{const r=Pt(i,t,n);let s;if(function(e){return e&&ct(e.canActivate)}(r))s=se(r.canActivate(t,e));else{if(!ct(r))throw new Error("Invalid CanActivate guard");s=se(r(t,e))}return s.pipe(Object(k.a)())}));return Object(o.a)(r).pipe(dt())}(e,t.route,n))),Object(k.a)(e=>!0!==e,!0))}(i,a,e,t):Object(o.a)(n)),Object(b.a)(e=>Object.assign(Object.assign({},n),{guardsResult:e})))})}(this.ngModule.injector,e=>this.triggerEvent(e)),Object(M.a)(e=>{if(lt(e.guardsResult)){const t=Q(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}const t=new Y(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),Object(w.a)(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new P(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),Ut(e=>{if(e.guards.canActivateChecks.length)return Object(o.a)(e).pipe(Object(M.a)(e=>{const t=new N(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),Object(g.a)(e=>{let n=!1;return Object(o.a)(e).pipe((i=this.paramsInheritanceStrategy,r=this.ngModule.injector,Object(T.a)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:n}}=e;if(!n.length)return Object(o.a)(e);let a=0;return Object(s.a)(n).pipe(Object(S.a)(e=>function(e,t,n,i){return function(e,t,n,i){const r=Object.keys(e);if(0===r.length)return Object(o.a)({});const a={};return Object(s.a)(r).pipe(Object(T.a)(r=>function(e,t,n,i){const r=Pt(e,t,i);return se(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(Object(M.a)(e=>{a[r]=e}))),Object(C.a)(1),Object(T.a)(()=>Object.keys(a).length===r.length?Object(o.a)(a):h.a))}(e._resolve,e,t,i).pipe(Object(b.a)(t=>(e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),je(e,n).resolve),null)))}(e.route,t,i,r)),Object(M.a)(()=>a++),Object(C.a)(1),Object(T.a)(t=>a===n.length?Object(o.a)(e):h.a))})),Object(M.a)({next:()=>n=!0,complete:()=>{if(!n){const n=new P(e.id,this.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");t.next(n),e.resolve(!1)}}}));var i,r}),Object(M.a)(e=>{const t=new z(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),Ut(e=>{const{targetSnapshot:t,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),Object(b.a)(e=>{const t=function(e,t,n){const i=Ve(e,t._root,n?n._root:void 0);return new Pe(i,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:t})}),Object(M.a)(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),(r=this.rootContexts,a=this.routeReuseStrategy,c=e=>this.triggerEvent(e),Object(b.a)(e=>(new st(a,e.targetRouterState,e.currentRouterState,c).activate(r),e))),Object(M.a)({next(){n=!0},complete(){n=!0}}),Object(L.a)(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new P(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null}),Object(D.a)(n=>{if(i=!0,(r=n)&&r.ngNavigationCancelingError){const i=lt(n.url);i||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const r=new P(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(r),i?setTimeout(()=>{const t=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(t,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const i=new F(e.id,this.serializeUrl(e.extractedUrl),n);t.next(i);try{e.resolve(this.errorHandler(n))}catch(s){e.reject(s)}}var r;return h.a}));var r,a,c}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t=this.extractLocationChangeInfoFromEvent(e);this.shouldScheduleNavigation(this.lastLocationChangeInfo,t)&&setTimeout(()=>{const{source:e,state:n,urlTree:i}=t,r={replaceUrl:!0};if(n){const e=Object.assign({},n);delete e.navigationId,0!==Object.keys(e).length&&(r.state=e)}this.scheduleNavigation(i,e,n,r)},0),this.lastLocationChangeInfo=t}))}extractLocationChangeInfoFromEvent(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(e,t){if(!e)return!0;const n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){ft(e),this.config=e.map(bt),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:n,queryParams:i,fragment:r,queryParamsHandling:s,preserveFragment:o}=t,a=n||this.routerState.root,c=o?this.currentUrlTree.fragment:r;let l=null;switch(s){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}return null!==l&&(l=this.removeEmptyProps(l)),function(e,t,n,i,r){if(0===n.length)return Ge(t.root,t.root,t,i,r);const s=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Ke(!0,0,e);let t=0,n=!1;const i=e.reduce((e,i,r)=>{if("object"==typeof i&&null!=i){if(i.outlets){const t={};return re(i.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(i.segmentPath)return[...e,i.segmentPath]}return"string"!=typeof i?[...e,i]:0===r?(i.split("/").forEach((i,r)=>{0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[...e,i]},[]);return new Ke(n,t,i)}(n);if(s.toRoot())return Ge(t.root,new de([],{}),t,i,r);const o=function(e,t,n){if(e.isAbsolute)return new Qe(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){const e=n.snapshot._urlSegment;return new Qe(e,e===t.root,0)}const i=Ue(e.commands[0])?0:1;return function(e,t,n){let i=e,r=t,s=n;for(;s>r;){if(s-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new Qe(i,!1,r-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(s,t,e),a=o.processChildren?et(o.segmentGroup,o.index,s.commands):Ze(o.segmentGroup,o.index,s.commands);return Ge(o.segmentGroup,a,t,i,r)}(a,this.currentUrlTree,e,l,c)}navigateByUrl(e,t={skipLocationChange:!1}){const n=lt(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t<e.length;t++){const n=e[t];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${t}`)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}isActive(e,t){if(lt(e))return oe(this.currentUrlTree,e,t);const n=this.parseUrl(e);return oe(this.currentUrlTree,n,t)}removeEmptyProps(e){return Object.keys(e).reduce((t,n)=>{const i=e[n];return null!=i&&(t[n]=i),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new R(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,i,r){if(this.disposed)return Promise.resolve(!1);const s=this.getTransition(),o="imperative"!==t&&"imperative"===(null==s?void 0:s.source),a=(this.lastSuccessfulId===s.id||this.currentNavigation?s.rawUrl:s.urlAfterRedirects).toString()===e.toString();if(o&&a)return Promise.resolve(!0);let c,l,u;r?(c=r.resolve,l=r.reject,u=r.promise):u=new Promise((e,t)=>{c=e,l=t});const d=++this.navigationId;return this.setTransition({id:d,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:i,resolve:c,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,i){const r=this.urlSerializer.serialize(e);i=i||{},this.location.isCurrentPathEqualTo(r)||t?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return e.\u0275fac=function(t){return new(t||e)(r.ic(r.Q),r.ic(pe),r.ic(Qt),r.ic(i.m),r.ic(r.v),r.ic(r.A),r.ic(r.j),r.ic(void 0))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac}),e})(),sn=(()=>{class e{constructor(e,t,n,i,r){this.router=e,this.route=t,this.commands=[],this.onChanges=new m.a,null==n&&i.setAttribute(r.nativeElement,"tabindex","0")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}onClick(){const e={skipLocationChange:an(this.skipLocationChange),replaceUrl:an(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:an(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(rn),r.Rb(We),r.jc("tabindex"),r.Rb(r.H),r.Rb(r.n))},e.\u0275dir=r.Mb({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&r.lc("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.Bb]}),e})(),on=(()=>{class e{constructor(e,t,n){this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.onChanges=new m.a,this.subscription=e.events.subscribe(e=>{e instanceof R&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,n,i,r){if(0!==e||t||n||i||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:an(this.skipLocationChange),replaceUrl:an(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:an(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(rn),r.Rb(We),r.Rb(i.n))},e.\u0275dir=r.Mb({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&r.lc("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(r.ac("href",t.href,r.Lc),r.Eb("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.Bb]}),e})();function an(e){return""===e||!!e}let cn=(()=>{class e{constructor(e,t,n,i,r,s){this.router=e,this.element=t,this.renderer=n,this.cdr=i,this.link=r,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=e.events.subscribe(e=>{e instanceof R&&this.update()})}ngAfterContentInit(){Object(o.a)(this.links.changes,this.linksWithHrefs.changes,Object(o.a)(null)).pipe(Object(E.a)()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var e;null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe();const t=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(e=>!!e).map(e=>e.onChanges);this.linkInputChangesSubscription=Object(s.a)(t).pipe(Object(E.a)()).subscribe(e=>{this.isActive!==this.isLinkActive(this.router)(e)&&this.update()})}set routerLinkActive(e){const t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter(e=>!!e)}ngOnChanges(e){this.update()}ngOnDestroy(){var e;this.routerEventsSubscription.unsubscribe(),null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const e=this.hasActiveLinks();this.isActive!==e&&(this.isActive=e,this.cdr.markForCheck(),this.classes.forEach(t=>{e?this.renderer.addClass(this.element.nativeElement,t):this.renderer.removeClass(this.element.nativeElement,t)}))})}isLinkActive(e){return t=>e.isActive(t.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(rn),r.Rb(r.n),r.Rb(r.H),r.Rb(r.i),r.Rb(sn,8),r.Rb(on,8))},e.\u0275dir=r.Mb({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(e,t,n){if(1&e&&(r.Kb(n,sn,1),r.Kb(n,on,1)),2&e){let e;r.Ec(e=r.mc())&&(t.links=e),r.Ec(e=r.mc())&&(t.linksWithHrefs=e)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[r.Bb]}),e})(),ln=(()=>{class e{constructor(e,t,n,i,s){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.p,this.deactivateEvents=new r.p,this.name=i||G,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new un(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Qt),r.Rb(r.S),r.Rb(r.k),r.jc("name"),r.Rb(r.i))},e.\u0275dir=r.Mb({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e})();class un{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===We?this.route:e===Qt?this.childContexts:this.parent.get(e,t)}}class dn{}class hn{preload(e,t){return t().pipe(Object(D.a)(()=>Object(o.a)(null)))}}class fn{preload(e,t){return Object(o.a)(null)}}let pn=(()=>{class e{constructor(e,t,n,i,r){this.router=e,this.injector=i,this.preloadingStrategy=r,this.loader=new Jt(t,n,t=>e.triggerEvent(new $(t)),t=>e.triggerEvent(new H(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(w.a)(e=>e instanceof R),Object(S.a)(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(r.B);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const i of t)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const e=i._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(e,i)):i.children&&n.push(this.processRoutes(e,i.children));return Object(s.a)(n).pipe(Object(E.a)(),Object(b.a)(e=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>(t._loadedConfig?Object(o.a)(t._loadedConfig):this.loader.load(e.injector,t)).pipe(Object(T.a)(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}return e.\u0275fac=function(t){return new(t||e)(r.ic(rn),r.ic(r.A),r.ic(r.j),r.ic(r.v),r.ic(dn))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac}),e})(),mn=(()=>{class e{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof I?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof R&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof q&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new q(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(r.ic(rn),r.ic(i.D),r.ic(void 0))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac}),e})();const bn=new r.u("ROUTER_CONFIGURATION"),gn=new r.u("ROUTER_FORROOT_GUARD"),_n=[i.m,{provide:pe,useClass:me},{provide:rn,useFactory:function(e,t,n,r,s,o,a,c={},l,u){const d=new rn(null,e,t,n,r,s,o,ne(a));if(l&&(d.urlHandlingStrategy=l),u&&(d.routeReuseStrategy=u),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(c,d),c.enableTracing){const e=Object(i.L)();d.events.subscribe(t=>{e.logGroup(`Router Event: ${t.constructor.name}`),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return d},deps:[pe,Qt,i.m,r.v,r.A,r.j,Gt,bn,[class{},new r.E],[class{},new r.E]]},Qt,{provide:We,useFactory:function(e){return e.routerState.root},deps:[rn]},{provide:r.A,useClass:r.N},pn,fn,hn,{provide:bn,useValue:{enableTracing:!1}}];function vn(){return new r.C("Router",rn)}let yn=(()=>{class e{constructor(e,t){}static forRoot(t,n){return{ngModule:e,providers:[_n,xn(t),{provide:gn,useFactory:Sn,deps:[[rn,new r.E,new r.M]]},{provide:bn,useValue:n||{}},{provide:i.n,useFactory:Dn,deps:[i.z,[new r.s(i.a),new r.E],bn]},{provide:mn,useFactory:wn,deps:[rn,i.D,bn]},{provide:dn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:fn},{provide:r.C,multi:!0,useFactory:vn},[kn,{provide:r.d,multi:!0,useFactory:Tn,deps:[kn]},{provide:Cn,useFactory:Mn,deps:[kn]},{provide:r.b,multi:!0,useExisting:Cn}]]}}static forChild(t){return{ngModule:e,providers:[xn(t)]}}}return e.\u0275fac=function(t){return new(t||e)(r.ic(gn,8),r.ic(rn,8))},e.\u0275mod=r.Pb({type:e}),e.\u0275inj=r.Ob({}),e})();function wn(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new mn(e,t,n)}function Dn(e,t,n={}){return n.useHash?new i.h(e,t):new i.x(e,t)}function Sn(e){return"guarded"}function xn(e){return[{provide:r.a,multi:!0,useValue:e},{provide:Gt,multi:!0,useValue:e}]}let kn=(()=>{class e{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new m.a}appInitializer(){return this.injector.get(i.l,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(rn),i=this.injector.get(bn);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),e(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Object(o.a)(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()):e(!0),t})}bootstrapListener(e){const t=this.injector.get(bn),n=this.injector.get(pn),i=this.injector.get(mn),s=this.injector.get(rn),o=this.injector.get(r.g);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||s.initialNavigation(),n.setUpPreloading(),i.init(),s.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return e.\u0275fac=function(t){return new(t||e)(r.ic(r.v))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac}),e})();function Tn(e){return e.appInitializer.bind(e)}function Mn(e){return e.bootstrapListener.bind(e)}const Cn=new r.u("Router Initializer")},iSVu:function(e,t,n){var i=n("4zBA"),r=n("Fib7"),s=n("xs3f"),o=i(Function.toString);r(s.inspectSource)||(s.inspectSource=function(e){return o(e)}),e.exports=s.inspectSource},iYuL:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(n("wd/R"))},icBU:function(e,t){e.exports=function(e,t){for(var i=[],r=0;r<e.length;r++){var s=t(e[r],r);n(s)?i.push.apply(i,s):i.push(s)}return i};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},insk:function(e,t,n){"use strict";n.d(t,"a",function(){return v});var i=n("20UP"),r=n("oxzT"),s=n("8Y7J"),o=n("cUpR"),a=n("SVse"),c=n("XFyV"),l=n("/NlG"),u=n("6qls"),d=n("ANnk"),h=n("s7LF");function f(e,t){1&e&&(s.Xb(0,"cd-loading-panel"),s.bc(1,2),s.Wb())}function p(e,t){1&e&&(s.Xb(0,"cd-alert-panel",3),s.hc(1,4),s.Sb(2,"cd-doc",5),s.ec(),s.Wb())}function m(e,t){1&e&&(s.Xb(0,"cd-alert-panel",3),s.hc(1,6),s.Sb(2,"cd-doc",5),s.ec(),s.Wb())}function b(e,t){if(1&e&&(s.Xb(0,"option",19),s.Rc(1),s.Wb()),2&e){const e=t.$implicit;s.uc("ngValue",e.value),s.Db(1),s.Tc("",e.name," ")}}const g=function(e){return[e]};function _(e,t){if(1&e){const e=s.Yb();s.Vb(0),s.Xb(1,"div",7),s.Xb(2,"div",8),s.Xb(3,"div",9),s.Xb(4,"label",10),s.bc(5,11),s.Wb(),s.Xb(6,"select",12),s.lc("ngModelChange",function(t){return s.Ic(e),s.nc().time=t})("ngModelChange",function(t){return s.Ic(e),s.nc().onTimepickerChange(t)}),s.Pc(7,b,2,2,"option",13),s.Wb(),s.Xb(8,"button",14),s.lc("click",function(){return s.Ic(e),s.nc().reset()}),s.Sb(9,"i",15),s.Wb(),s.Wb(),s.Wb(),s.Wb(),s.Xb(10,"div",7),s.Xb(11,"div",8),s.Xb(12,"div",16),s.Sb(13,"iframe",17,18),s.Wb(),s.Wb(),s.Wb(),s.Ub()}if(2&e){const e=s.nc();s.Db(6),s.uc("ngModel",e.time),s.Db(1),s.uc("ngForOf",e.grafanaTimes),s.Db(2),s.uc("ngClass",s.zc(5,g,e.icons.undo)),s.Db(4),s.uc("src",e.grafanaSrc,s.Kc)("ngClass",e.panelStyle)}}let v=(()=>{class e{constructor(e,t){this.sanitizer=e,this.settingsService=t,this.grafanaExist=!1,this.mode="&kiosk",this.datasource="Dashboard1",this.loading=!0,this.styles={},this.dashboardExist=!0,this.icons=r.a,this.DEFAULT_TIME="from=now-1h&to=now",this.grafanaTimes=[{name:"Last 5 minutes",value:"from=now-5m&to=now"},{name:"Last 15 minutes",value:"from=now-15m&to=now"},{name:"Last 30 minutes",value:"from=now-30m&to=now"},{name:"Last 1 hour (Default)",value:"from=now-1h&to=now"},{name:"Last 3 hours",value:"from=now-3h&to=now"},{name:"Last 6 hours",value:"from=now-6h&to=now"},{name:"Last 12 hours",value:"from=now-12h&to=now"},{name:"Last 24 hours",value:"from=now-24h&to=now"},{name:"Yesterday",value:"from=now-1d%2Fd&to=now-1d%2Fd"},{name:"Today so far",value:"from=now%2Fd&to=now"},{name:"Day before yesterday",value:"from=now-2d%2Fd&to=now-2d%2Fd"},{name:"Last 2 days",value:"from=now-2d&to=now"},{name:"This day last week",value:"from=now-7d%2Fd&to=now-7d%2Fd"},{name:"Previous week",value:"from=now-1w%2Fw&to=now-1w%2Fw"},{name:"This week so far",value:"from=now%2Fw&to=now"},{name:"Last 7 days",value:"from=now-7d&to=now"},{name:"Previous month",value:"from=now-1M%2FM&to=now-1M%2FM"},{name:"This month so far",value:"from=now%2FM&to=now"},{name:"Last 30 days",value:"from=now-30d&to=now"},{name:"Last 90 days",value:"from=now-90d&to=now"},{name:"Last 6 months",value:"from=now-6M&to=now"},{name:"Last 1 year",value:"from=now-1y&to=now"},{name:"Previous year",value:"from=now-1y%2Fy&to=now-1y%2Fy"},{name:"This year so far",value:"from=now%2Fy&to=now"},{name:"Last 2 years",value:"from=now-2y&to=now"},{name:"Last 5 years",value:"from=now-5y&to=now"}]}ngOnInit(){this.time=this.DEFAULT_TIME,this.styles={one:"grafana_one",two:"grafana_two",three:"grafana_three",four:"grafana_four"},this.settingsService.ifSettingConfigured("api/grafana/url",e=>{this.grafanaExist=!0,this.loading=!1,this.baseUrl=e+"/d/",this.getFrame()}),this.panelStyle=this.styles[this.grafanaStyle]}getFrame(){this.settingsService.validateGrafanaDashboardUrl(this.uid).subscribe(e=>this.dashboardExist=200===e),this.url=this.baseUrl+this.uid+"/"+this.grafanaPath+"&refresh=2s"+`&var-datasource=${this.datasource}`+this.mode+"&"+this.time,this.grafanaSrc=this.sanitizer.bypassSecurityTrustResourceUrl(this.url)}onTimepickerChange(){this.grafanaExist&&this.getFrame()}reset(){this.time=this.DEFAULT_TIME,this.grafanaExist&&this.getFrame()}ngOnChanges(){this.grafanaExist&&this.getFrame()}}return e.\u0275fac=function(t){return new(t||e)(s.Rb(o.b),s.Rb(i.a))},e.\u0275cmp=s.Lb({type:e,selectors:[["cd-grafana"]],inputs:{grafanaPath:"grafanaPath",grafanaStyle:"grafanaStyle",uid:"uid"},features:[s.Bb],decls:4,vars:4,consts:function(){let e,t,n,i,r;return e="Loading panel data...",t="Please consult the " + "\ufffd#2\ufffd" + "" + "\ufffd/#2\ufffd" + " on how to configure and enable the monitoring functionality.",n="Grafana Dashboard doesn't exist. Please refer to " + "\ufffd#2\ufffd" + "" + "\ufffd/#2\ufffd" + " on how to add dashboards to Grafana.",i="Grafana Time Picker",r="Reset Settings",[[4,"ngIf"],["type","info",4,"ngIf"],e,["type","info"],t,["section","grafana"],n,[1,"row"],[1,"col"],[1,"form-inline","timepicker"],["for","timepicker",1,"ml-1","my-1"],i,["id","timepicker","name","timepicker",1,"custom-select","my-1","mx-3",3,"ngModel","ngModelChange"],[3,"ngValue",4,"ngFor","ngForOf"],["title",r,1,"btn","btn-light","my-1",3,"click"],[3,"ngClass"],[1,"grafana-container"],["id","iframe","frameborder","0","scrolling","no",1,"grafana",3,"src","ngClass"],["iframe",""],[3,"ngValue"]]},template:function(e,t){1&e&&(s.Pc(0,f,2,0,"cd-loading-panel",0),s.Pc(1,p,3,0,"cd-alert-panel",1),s.Pc(2,m,3,0,"cd-alert-panel",1),s.Pc(3,_,15,7,"ng-container",0)),2&e&&(s.uc("ngIf",t.loading&&t.grafanaExist),s.Db(1),s.uc("ngIf",!t.grafanaExist),s.Db(1),s.uc("ngIf",!t.dashboardExist),s.Db(1),s.uc("ngIf",t.grafanaExist&&t.dashboardExist))},directives:[a.r,c.a,l.a,u.a,d.a,h.z,h.q,h.t,a.q,a.p,h.u,h.C],styles:[".grafana[_ngcontent-%COMP%]{height:600px;width:100%;z-index:0}.grafana_one[_ngcontent-%COMP%]{height:400px}.grafana_two[_ngcontent-%COMP%]{height:750px}.grafana_three[_ngcontent-%COMP%]{height:900px}.grafana_four[_ngcontent-%COMP%]{height:1160px}.timepicker[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700}.dropdown-menu[_ngcontent-%COMP%]{left:auto;right:20px;top:20px}"]}),e})()},iqWW:function(e,t,n){"use strict";var i=n("ZUd8").charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},itXk:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("z+Ro"),r=n("DH7j"),s=n("l7GE"),o=n("ZUHj"),a=n("yCtX");const c={};function l(...e){let t,n;return Object(i.a)(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&Object(r.a)(e[0])&&(e=e[0]),Object(a.a)(e,n).lift(new u(t))}class u{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new d(e,this.resultSelector))}}class d extends s.a{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(c),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n<t;n++){const t=e[n];this.add(Object(o.a)(this,t,void 0,n))}}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,n){const i=this.values,r=this.toRespond?i[n]===c?--this.toRespond:this.toRespond:0;i[n]=t,0===r&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}},"jKX/":function(e,t,n){"use strict";n.d(t,"a",function(){return r});class i{constructor(e=[]){["read","create","update","delete"].forEach(t=>this[t]=e.includes(t))}}class r{constructor(e){this.hosts=new i(e.hosts),this.configOpt=new i(e["config-opt"]),this.pool=new i(e.pool),this.osd=new i(e.osd),this.monitor=new i(e.monitor),this.rbdImage=new i(e["rbd-image"]),this.iscsi=new i(e.iscsi),this.rbdMirroring=new i(e["rbd-mirroring"]),this.rgw=new i(e.rgw),this.cephfs=new i(e.cephfs),this.manager=new i(e.manager),this.log=new i(e.log),this.user=new i(e.user),this.grafana=new i(e.grafana),this.prometheus=new i(e.prometheus),this.nfs=new i(e["nfs-ganesha"])}}},jN84:function(e,t,n){"use strict";var i=n("WJ6P"),r=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols;t.a=s?function(e){return null==e?[]:(e=Object(e),function(t,n){for(var i=-1,s=null==t?0:t.length,o=0,a=[];++i<s;){var c=t[i];r.call(e,c)&&(a[o++]=c)}return a}(s(e)))}:i.a},jUeY:function(e,t,n){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(e,t,n){return e>11?n?"\u03bc\u03bc":"\u039c\u039c":n?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(e){return"\u03bc"===(e+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT";default:return"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n,i=this._calendarEl[e],r=t&&t.hours();return n=i,("undefined"!=typeof Function&&n instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(i=i.apply(t)),i.replace("{}",r%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(n("wd/R"))},jVDg:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e,t,n){this.poolName=e,this.namespace=t,this.imageName=n}static fromString(e){const t=e.split("/");return new this(t[0],t.length>=3?t[1]:null,t.length>=3?t[2]:t[1])}getNameSpace(){return this.namespace?`${this.namespace}/`:""}toString(){return`${this.poolName}/${this.getNameSpace()}${this.imageName}`}toStringEncoded(){return encodeURIComponent(`${this.poolName}/${this.getNameSpace()}${this.imageName}`)}}},jVdC:function(e,t,n){!function(e){"use strict";var t="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),i=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function r(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function s(e,t,n){var i=e+" ";switch(n){case"ss":return i+(r(e)?"sekundy":"sekund");case"m":return t?"minuta":"minut\u0119";case"mm":return i+(r(e)?"minuty":"minut");case"h":return t?"godzina":"godzin\u0119";case"hh":return i+(r(e)?"godziny":"godzin");case"ww":return i+(r(e)?"tygodnie":"tygodni");case"MM":return i+(r(e)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return i+(r(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,i){return e?/D MMMM/.test(i)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:s,m:s,mm:s,h:s,hh:s,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:s,M:"miesi\u0105c",MM:s,y:"rok",yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},jZKg:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("HDdC"),r=n("quSY");function s(e,t){return new i.a(n=>{const i=new r.a;let s=0;return i.add(t.schedule(function(){s!==e.length?(n.next(e[s++]),n.closed||i.add(this.schedule())):n.complete()})),i})}},jfSC:function(e,t,n){!function(e){"use strict";var t={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},n={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};e.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(e){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(e)},meridiem:function(e,t,n){return e<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(e){return e.replace(/[\u06f0-\u06f9]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(n("wd/R"))},jnO4:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},i=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},s=function(e){return function(t,n,s,o){var a=i(t),c=r[e][i(t)];return 2===a&&(c=c[n?0:1]),c.replace(/%d/i,t)}},o=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar",{months:o,monthsShort:o,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:s("s"),ss:s("s"),m:s("m"),mm:s("m"),h:s("h"),hh:s("h"),d:s("d"),dd:s("d"),M:s("M"),MM:s("M"),y:s("y"),yy:s("y")},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n("wd/R"))},jtHE:function(e,t,n){"use strict";n.d(t,"a",function(){return f});var i=n("XNiG"),r=n("3N8a");class s extends r.a{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}}var o=n("IjjT");class a extends o.a{}const c=new a(s);var l=n("quSY"),u=n("pxpQ"),d=n("9ppp"),h=n("Ylt2");class f extends i.a{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){if(!this.isStopped){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}super.next(e)}nextTimeWindow(e){this.isStopped||(this._events.push(new p(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,r=n.length;let s;if(this.closed)throw new d.a;if(this.isStopped||this.hasError?s=l.a.EMPTY:(this.observers.push(e),s=new h.a(this,e)),i&&e.add(e=new u.a(e,i)),t)for(let o=0;o<r&&!e.closed;o++)e.next(n[o]);else for(let o=0;o<r&&!e.closed;o++)e.next(n[o].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),s}_getNow(){return(this.scheduler||c).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,r=i.length;let s=0;for(;s<r&&!(e-i[s].time<n);)s++;return r>t&&(s=Math.max(s,r-t)),s>0&&i.splice(0,s),i}}class p{constructor(e,t){this.time=e,this.value=t}}},kEOa:function(e,t,n){!function(e){"use strict";var t={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},n={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(e){return e.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u09b0\u09be\u09a4"===t&&e>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===t&&e<5||"\u09ac\u09bf\u0995\u09be\u09b2"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u09b0\u09be\u09a4":e<10?"\u09b8\u0995\u09be\u09b2":e<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":e<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(n("wd/R"))},kJI8:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("SVse"),r=n("G0yt"),s=n("zWsK"),o=n("ChqD"),a=n("PCNd"),c=n("8Y7J");let l=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=c.Pb({type:e}),e.\u0275inj=c.Ob({imports:[[i.c,o.a,a.a,r.t,s.a]]}),e})()},kJWO:function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},kOOl:function(e,t,n){var i=n("4zBA"),r=0,s=Math.random(),o=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++r+s,36)}},kOpN:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(n("wd/R"))},kRJp:function(e,t,n){var i=n("g6v/"),r=n("m/L8"),s=n("XGwC");e.exports=i?function(e,t,n){return r.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e}},kbA8:function(e,t,n){"use strict";function i(e,t,n){e instanceof RegExp&&(e=r(e,n)),t instanceof RegExp&&(t=r(t,n));var i=s(e,t,n);return i&&{start:i[0],end:i[1],pre:n.slice(0,i[0]),body:n.slice(i[0]+e.length,i[1]),post:n.slice(i[1]+t.length)}}function r(e,t){var n=t.match(e);return n?n[0]:null}function s(e,t,n){var i,r,s,o,a,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(i=[],s=n.length;u>=0&&!a;)u==c?(i.push(u),c=n.indexOf(e,u+1)):1==i.length?a=[i.pop(),l]:((r=i.pop())<s&&(s=r,o=l),l=n.indexOf(t,u+1)),u=c<l&&c>=0?c:l;i.length&&(a=[s,o])}return a}e.exports=i,i.range=s},kmMV:function(e,t,n){"use strict";var i,r,s=n("xluM"),o=n("4zBA"),a=n("V37c"),c=n("rW0t"),l=n("n3/R"),u=n("VpIT"),d=n("fHMY"),h=n("afO8").get,f=n("/OPJ"),p=n("EHx7"),m=u("native-string-replace",String.prototype.replace),b=RegExp.prototype.exec,g=b,_=o("".charAt),v=o("".indexOf),y=o("".replace),w=o("".slice),D=(r=/b*/g,s(b,i=/a/,"a"),s(b,r,"a"),0!==i.lastIndex||0!==r.lastIndex),S=l.UNSUPPORTED_Y||l.BROKEN_CARET,x=void 0!==/()??/.exec("")[1];(D||x||S||f||p)&&(g=function(e){var t,n,i,r,o,l,u,f=this,p=h(f),k=a(e),T=p.raw;if(T)return T.lastIndex=f.lastIndex,t=s(g,T,k),f.lastIndex=T.lastIndex,t;var M=p.groups,C=S&&f.sticky,O=s(c,f),L=f.source,E=0,A=k;if(C&&(O=y(O,"y",""),-1===v(O,"g")&&(O+="g"),A=w(k,f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==_(k,f.lastIndex-1))&&(L="(?: "+L+")",A=" "+A,E++),n=new RegExp("^(?:"+L+")",O)),x&&(n=new RegExp("^"+L+"$(?!\\s)",O)),D&&(i=f.lastIndex),r=s(b,C?n:f,A),C?r?(r.input=w(r.input,E),r[0]=w(r[0],E),r.index=f.lastIndex,f.lastIndex+=r[0].length):f.lastIndex=0:D&&r&&(f.lastIndex=f.global?r.index+r[0].length:i),x&&r&&r.length>1&&s(m,r[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r&&M)for(r.groups=l=d(null),o=0;o<M.length;o++)l[(u=M[o])[0]]=r[u[1]];return r}),e.exports=g},"kn/O":function(e,t,n){"use strict";n.d(t,"a",function(){return h});var i=n("HDdC"),r=n("mtw6"),s=n("G1I9"),o=n("QTAa"),a=n("9nlD"),c=n("mSOc"),l=n("VXsX"),u=n("ufoC"),d=n("8Y7J");let h=(()=>{class e{constructor(e,t,n,i){this.notificationService=e,this.summaryService=t,this.taskMessageService=n,this.taskManagerService=i}wrapTaskAroundCall({task:e,call:t}){return new i.a(n=>{t.subscribe(t=>{202===t.status?this._handleExecutingTasks(e):(this.summaryService.refresh(),e.success=!0,this.notificationService.notifyTask(e))},t=>{e.success=!1,e.exception=t.error,n.error(t)},()=>{n.complete()})})}_handleExecutingTasks(e){const t=new s.b(r.a.info,this.taskMessageService.getRunningTitle(e));t.isFinishedTask=!0,this.notificationService.show(t);const n=new o.a(e.name,e.metadata);this.summaryService.addRunningTask(n),this.taskManagerService.subscribe(n.name,n.metadata,e=>{this.notificationService.notifyTask(e)})}}return e.\u0275fac=function(t){return new(t||e)(d.ic(a.a),d.ic(c.a),d.ic(u.a),d.ic(l.a))},e.\u0275prov=d.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},kvvV:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("t/zF");class r extends i.a{}},l5ep:function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n("wd/R"))},l7GE:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");class r extends i.a{notifyNext(e,t,n,i,r){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}},lJxs:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new s(e,t))}}class s{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new o(e,this.project,this.thisArg))}}class o extends i.a{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}},lMq5:function(e,t,n){var i=n("0Dky"),r=n("Fib7"),s=/#|\.prototype\./,o=function(e,t){var n=c[a(e)];return n==u||n!=l&&(r(t)?i(t):!!t)},a=o.normalize=function(e){return String(e).replace(s,".").toLowerCase()},c=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},"lOp/":function(e,t,n){"use strict";n.d(t,"a",function(){return f});var i=n("PqYM"),r=n("pxpQ"),s=n("eIep"),o=n("jtHE"),a=n("D0XW"),c=n("8Y7J");class l{constructor(e){this.zone=e,this.scheduler=a.b}now(){return this.scheduler.now()}}let u=(()=>{class e extends l{constructor(e){super(e)}schedule(...e){return this.zone.runOutsideAngular(()=>this.scheduler.schedule.apply(this.scheduler,e))}}return e.\u0275fac=function(t){return new(t||e)(c.ic(c.D))},e.\u0275prov=c.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),d=(()=>{class e extends l{constructor(e){super(e)}schedule(...e){return this.zone.run(()=>this.scheduler.schedule.apply(this.scheduler,e))}}return e.\u0275fac=function(t){return new(t||e)(c.ic(c.D))},e.\u0275prov=c.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),h=(()=>{class e{constructor(e,t){this.leave=e,this.enter=t}}return e.\u0275fac=function(t){return new(t||e)(c.ic(u),c.ic(d))},e.\u0275prov=c.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),f=(()=>{class e{constructor(e){this.ngZone=e,this.DEFAULT_REFRESH_INTERVAL=5e3,this.DEFAULT_DUE_TIME=0}get(e,t=this.DEFAULT_REFRESH_INTERVAL,n=this.DEFAULT_DUE_TIME){return Object(i.a)(n,t,this.ngZone.leave).pipe(Object(r.b)(this.ngZone.enter),Object(s.a)(e),function(e,t,n){let i;return i=e&&"object"==typeof e?e:{bufferSize:e,windowTime:void 0,refCount:!1,scheduler:void 0},e=>e.lift(function({bufferSize:e=Number.POSITIVE_INFINITY,windowTime:t=Number.POSITIVE_INFINITY,refCount:n,scheduler:i}){let r,s,a=0,c=!1,l=!1;return function(u){let d;a++,!r||c?(c=!1,r=new o.a(e,t,i),d=r.subscribe(this),s=u.subscribe({next(e){r.next(e)},error(e){c=!0,r.error(e)},complete(){l=!0,s=void 0,r.complete()}})):d=r.subscribe(this),this.add(()=>{a--,d.unsubscribe(),s&&!l&&n&&0===a&&(s.unsubscribe(),s=void 0,r=void 0)})}}(i))}({refCount:!0,bufferSize:1}))}}return e.\u0275fac=function(t){return new(t||e)(c.ic(h))},e.\u0275prov=c.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},lXzo:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":e+" "+(i=+e,r={ss:t?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:t?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2]);var i,r}var n=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];e.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:t,m:t,mm:t,h:"\u0447\u0430\u0441",hh:t,d:"\u0434\u0435\u043d\u044c",dd:t,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:t,M:"\u043c\u0435\u0441\u044f\u0446",MM:t,y:"\u0433\u043e\u0434",yy:t},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u0438":e<12?"\u0443\u0442\u0440\u0430":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-\u0439";case"D":return e+"-\u0433\u043e";case"w":case"W":return e+"-\u044f";default:return e}},week:{dow:1,doy:4}})}(n("wd/R"))},lYtQ:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){switch(n){case"s":return t?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return e+(t?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return e+(t?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return e+(t?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return e+(t?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return e+(t?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return e+(t?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return e}}e.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(e){return"\u04ae\u0425"===e},meridiem:function(e,t,n){return e<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" \u04e9\u0434\u04e9\u0440";default:return e}}})}(n("wd/R"))},lgnt:function(e,t,n){!function(e){"use strict";var t={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};e.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("wd/R"))},lkxz:function(e,t,n){"use strict";var i=n("Ce4a");t.a=function(e){var t=new e.constructor(e.byteLength);return new i.a(t).set(new i.a(e)),t}},loYQ:function(e,t,n){!function(e){"use strict";var t={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},n={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(e){return e.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u09b0\u09be\u09a4"===t?e<4?e:e+12:"\u09ad\u09cb\u09b0"===t||"\u09b8\u0995\u09be\u09b2"===t?e:"\u09a6\u09c1\u09aa\u09c1\u09b0"===t?e>=3?e:e+12:"\u09ac\u09bf\u0995\u09be\u09b2"===t||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u09b0\u09be\u09a4":e<6?"\u09ad\u09cb\u09b0":e<12?"\u09b8\u0995\u09be\u09b2":e<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":e<18?"\u09ac\u09bf\u0995\u09be\u09b2":e<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(n("wd/R"))},lyxo:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=" ";return(e%100>=20||e>=100&&e%100==0)&&(i=" de "),e+i+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:t,m:"un minut",mm:t,h:"o or\u0103",hh:t,d:"o zi",dd:t,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:t,M:"o lun\u0103",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n("wd/R"))},"m/L8":function(e,t,n){var i=n("2oRo"),r=n("g6v/"),s=n("DPsx"),o=n("glrk"),a=n("oEtG"),c=i.TypeError,l=Object.defineProperty;t.f=r?l:function(e,t,n){if(o(e),t=a(t),o(n),s)try{return l(e,t,n)}catch(i){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},mCNh:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return s});var i=n("SpAZ");function r(...e){return s(e)}function s(e){return 0===e.length?i.a:1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}}},mSOc:function(e,t,n){"use strict";n.d(t,"a",function(){return d});var i=n("LvDl"),r=n.n(i),s=n("2Vo4"),o=n("pLZG"),a=n("SxV6"),c=n("lOp/"),l=n("8Y7J"),u=n("IheW");let d=(()=>{class e{constructor(e,t){this.http=e,this.timerService=t,this.REFRESH_INTERVAL=5e3,this.summaryDataSource=new s.a(null),this.summaryData$=this.summaryDataSource.asObservable()}startPolling(){return this.timerService.get(()=>this.retrieveSummaryObservable(),this.REFRESH_INTERVAL).subscribe(this.retrieveSummaryObserver())}refresh(){return this.retrieveSummaryObservable().subscribe(this.retrieveSummaryObserver())}retrieveSummaryObservable(){return this.http.get("api/summary")}retrieveSummaryObserver(){return e=>{this.summaryDataSource.next(e)}}subscribeOnce(e,t){return this.summaryData$.pipe(Object(o.a)(e=>!!e),Object(a.a)()).subscribe(e,t)}subscribe(e,t){return this.summaryData$.pipe(Object(o.a)(e=>!!e)).subscribe(e,t)}addRunningTask(e){const t=this.summaryDataSource.getValue();t&&(r.a.isArray(t.executing_tasks)?t.executing_tasks.find(t=>t.name===e.name&&r.a.isEqual(t.metadata,e.metadata))||t.executing_tasks.push(e):t.executing_tasks=[e],this.summaryDataSource.next(t))}}return e.\u0275fac=function(t){return new(t||e)(l.ic(u.b),l.ic(c.a))},e.\u0275prov=l.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},"mh/w":function(e,t,n){var i=n("2oRo"),r=n("xluM"),s=n("We1y"),o=n("glrk"),a=n("DVFp"),c=n("NaFW"),l=i.TypeError;e.exports=function(e,t){var n=arguments.length<2?c(e):t;if(s(n))return o(r(n,e));throw l(a(e)+" is not iterable")}},mkut:function(e,t,n){"use strict";var i=n("7gMY"),r=n("pyRK"),s=n("U6JX"),o=Object(s.a)(Object.keys,Object),a=Object.prototype.hasOwnProperty,c=n("5WsY");t.a=function(e){return Object(c.a)(e)?Object(i.a)(e):function(e){if(!Object(r.a)(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}},mrSG:function(e,t,n){"use strict";function i(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function r(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}function s(e,t){return function(n,i){t(n,i,e)}}function o(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function a(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{c(i.next(e))}catch(t){s(t)}}function a(e){try{c(i.throw(e))}catch(t){s(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}c((i=i.apply(e,t||[])).next())})}function c(e,t){var n,i,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(a){s=[6,a],i=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}n.d(t,"f",function(){return i}),n.d(t,"b",function(){return r}),n.d(t,"e",function(){return s}),n.d(t,"d",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"c",function(){return c})},mtw6:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){return e[e.error=0]="error",e[e.info=1]="info",e[e.success=2]="success",e}({})},"n3/R":function(e,t,n){var i=n("0Dky"),r=n("2oRo").RegExp;t.UNSUPPORTED_Y=i(function(){var e=r("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),t.BROKEN_CARET=i(function(){var e=r("^r","gy");return e.lastIndex=2,null!=e.exec("str")})},n561:function(e,t,n){"use strict";var i=n("tPH9"),r=n("UudT"),s=n("jN84"),o=n("WJ6P");t.a=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Object(i.a)(t,Object(s.a)(e)),e=Object(r.a)(e);return t}:o.a},n6bG:function(e,t,n){"use strict";function i(e){return"function"==typeof e}n.d(t,"a",function(){return i})},nLtN:function(e,t,n){"use strict";var i=n("YHEm"),r=function(e,t){for(var n=e.length;n--;)if(Object(i.a)(e[n][0],t))return n;return-1},s=Array.prototype.splice;function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}o.prototype.clear=function(){this.__data__=[],this.size=0},o.prototype.delete=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():s.call(t,n,1),--this.size,0))},o.prototype.get=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]},o.prototype.has=function(e){return r(this.__data__,e)>-1},o.prototype.set=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},t.a=o},nQ07:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("LvDl"),r=n.n(i);class s{static updateChanged(e,t){let n=!1;return Object.keys(t).forEach(i=>{const s=t[i];r.a.isEqual(s,e[i])||(e[i]=s,n=!0)}),n}static cdVersionHeader(e,t){return`application/vnd.ceph.api.v${e}.${t}+json`}}},nSDx:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("LvDl"),r=n.n(i),s=n("8Y7J");let o=(()=>{class e{transform(e){return r.a.isUndefined(e)||r.a.isNull(e)?"-":e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=s.Qb({name:"empty",type:e,pure:!0}),e})()},nYR2:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("7o/Q"),r=n("quSY");function s(e){return t=>t.lift(new o(e))}class o{constructor(e){this.callback=e}call(e,t){return t.subscribe(new a(e,this.callback))}}class a extends i.a{constructor(e,t){super(e),this.add(new r.a(t))}}},ngJS:function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=e=>t=>{for(let n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()}},ntOU:function(e,t,n){"use strict";var i=n("rpNk").IteratorPrototype,r=n("fHMY"),s=n("XGwC"),o=n("1E5z"),a=n("P4y1"),c=function(){return this};e.exports=function(e,t,n){var l=t+" Iterator";return e.prototype=r(i,{next:s(1,n)}),o(e,l,!1,!0),a[l]=c,e}},nyYc:function(e,t,n){!function(e){"use strict";var t=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,n=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];e.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:t,monthsShortRegex:t,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n("wd/R"))},o1bE:function(e,t,n){!function(e){"use strict";var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},i=function(e){return function(i,r,s,o){var a=t(i),c=n[e][t(i)];return 2===a&&(c=c[r?0:1]),c.replace(/%d/i,i)}},r=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-dz",{months:r,monthsShort:r,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(n("wd/R"))},"o4+5":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("aXbf"),r=n("8Y7J");let s=(()=>{class e{constructor(e){this.formatter=e}transform(e){return this.formatter.format_number(e,1e3,["","k","M","G","T","P","E","Z","Y"])}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(i.a))},e.\u0275pipe=r.Qb({name:"dimless",type:e,pure:!0}),e})()},o8EM:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("PhyI"),r=n("8Y7J");let s=(()=>{class e{constructor(){this.sections=[{heading:"Quality of Service",class:"quality-of-service",options:[{name:"rbd_qos_bps_limit",displayName:"BPS Limit",description:"The desired limit of IO bytes per second.",type:i.b.bps},{name:"rbd_qos_iops_limit",displayName:"IOPS Limit",description:"The desired limit of IO operations per second.",type:i.b.iops},{name:"rbd_qos_read_bps_limit",displayName:"Read BPS Limit",description:"The desired limit of read bytes per second.",type:i.b.bps},{name:"rbd_qos_read_iops_limit",displayName:"Read IOPS Limit",description:"The desired limit of read operations per second.",type:i.b.iops},{name:"rbd_qos_write_bps_limit",displayName:"Write BPS Limit",description:"The desired limit of write bytes per second.",type:i.b.bps},{name:"rbd_qos_write_iops_limit",displayName:"Write IOPS Limit",description:"The desired limit of write operations per second.",type:i.b.iops},{name:"rbd_qos_bps_burst",displayName:"BPS Burst",description:"The desired burst limit of IO bytes.",type:i.b.bps},{name:"rbd_qos_iops_burst",displayName:"IOPS Burst",description:"The desired burst limit of IO operations.",type:i.b.iops},{name:"rbd_qos_read_bps_burst",displayName:"Read BPS Burst",description:"The desired burst limit of read bytes.",type:i.b.bps},{name:"rbd_qos_read_iops_burst",displayName:"Read IOPS Burst",description:"The desired burst limit of read operations.",type:i.b.iops},{name:"rbd_qos_write_bps_burst",displayName:"Write BPS Burst",description:"The desired burst limit of write bytes.",type:i.b.bps},{name:"rbd_qos_write_iops_burst",displayName:"Write IOPS Burst",description:"The desired burst limit of write operations.",type:i.b.iops}]}]}static getOptionsFromSections(e){return e.map(e=>e.options).reduce((e,t)=>e.concat(t))}filterConfigOptionsByName(t){return e.getOptionsFromSections(this.sections).filter(e=>e.name===t)}getOptionValueByName(e,t,n=""){const i=this.filterConfigOptionsByName(e);return 1===i.length?i.pop()[t]:n}getWritableSections(){return this.sections.map(e=>(e.options=e.options.filter(e=>!e.readOnly),e))}getOptionFields(){return e.getOptionsFromSections(this.sections)}getWritableOptionFields(){return e.getOptionsFromSections(this.getWritableSections())}getOptionByName(e){return this.filterConfigOptionsByName(e).pop()}getDisplayName(e){return this.getOptionValueByName(e,"displayName")}getDescription(e){return this.getOptionValueByName(e,"description")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},oEtG:function(e,t,n){var i=n("wE6v"),r=n("2bX/");e.exports=function(e){var t=i(e,"string");return r(t)?t:t+""}},oMSZ:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){this.pwdExpirationSpan=0,this.pwdExpirationSpan=e.user_pwd_expiration_span,this.pwdExpirationWarning1=e.user_pwd_expiration_warning_1,this.pwdExpirationWarning2=e.user_pwd_expiration_warning_2}}},oSzE:function(e,t,n){"use strict";var i=n("nLtN"),r=n("3cmB"),s=n("DlmY");function o(e){var t=this.__data__=new i.a(e);this.size=t.size}o.prototype.clear=function(){this.__data__=new i.a,this.size=0},o.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},o.prototype.get=function(e){return this.__data__.get(e)},o.prototype.has=function(e){return this.__data__.has(e)},o.prototype.set=function(e,t){var n=this.__data__;if(n instanceof i.a){var o=n.__data__;if(!r.a||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new s.a(o)}return n.set(e,t),this.size=n.size,this},t.a=o},oYcn:function(e,t,n){"use strict";var i=n("8M4i"),r=n("Js68"),s=n("EUcb"),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1;var a=n("ovuK"),c=n("xutz"),l=c.a&&c.a.isTypedArray,u=l?Object(a.a)(l):function(e){return Object(s.a)(e)&&Object(r.a)(e.length)&&!!o[Object(i.a)(e)]};t.a=u},ocLN:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("s7LF"),r=n("8Y7J");let s=(()=>{class e{constructor(e){this.elRef=e,this.validationDisabled=!1}get hasErrors(){return this.formControlNames.some(e=>!e.valid&&e.dirty&&e.touched)&&!this.validationDisabled}get hasSuccess(){return!this.formControlNames.some(e=>!e.valid)&&this.formControlNames.some(e=>e.dirty&&e.touched)&&!this.validationDisabled}get label(){const e=this.elRef.nativeElement.querySelector("label");return e&&e.textContent?e.textContent.trim():"This field"}get isDirtyAndTouched(){return this.formControlNames.some(e=>e.dirty&&e.touched)}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(r.n))},e.\u0275dir=r.Mb({type:e,selectors:[["",8,"form-group"]],contentQueries:function(e,t,n){if(1&e&&r.Kb(n,i.i,0),2&e){let e;r.Ec(e=r.mc())&&(t.formControlNames=e)}},hostVars:4,hostBindings:function(e,t){2&e&&r.Jb("has-error",t.hasErrors)("has-success",t.hasSuccess)},inputs:{validationDisabled:"validationDisabled"}}),e})()},"ohO+":function(e,t,n){"use strict";n.d(t,"a",function(){return es}),n.d(t,"b",function(){return _s}),n.d(t,"c",function(){return Ws});var i=n("8Y7J"),r=n("SVse"),s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function c(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,s=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=s.next()).done;)o.push(i.value)}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return o}function l(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(c(arguments[t]));return e}var u=[];Object.freeze(u);var d={};Object.freeze(d);var h={};function f(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:h}function p(){return++Ee.mobxGuid}function m(e){throw b(!1,e),"X"}function b(e,t){if(!e)throw new Error("[mobx] "+(t||"An invariant failed, however the error is obfuscated because this is an production build."))}function g(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var _=function(){};function v(e){return null!==e&&"object"==typeof e}function y(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function w(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function D(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function S(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return v(e)&&!0===e[n]}}function x(e){return void 0!==f().Map&&e instanceof f().Map}function k(e){return e instanceof Set}function T(e){for(var t=[];;){var n=e.next();if(n.done)break;t.push(n.value)}return t}function M(){return"function"==typeof Symbol&&Symbol.toPrimitive||"@@toPrimitive"}function C(e){return null===e?null:"object"==typeof e?""+e:e}function O(){return"function"==typeof Symbol&&Symbol.iterator||"@@iterator"}function L(e,t){D(e,O(),t)}function E(e){return e[O()]=I,e}function A(){return"function"==typeof Symbol&&Symbol.toStringTag||"@@toStringTag"}function I(){return this}var R=function(){function e(e){void 0===e&&(e="Atom@"+p()),this.name=e,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=oe.NOT_TRACKING}return e.prototype.onBecomeUnobserved=function(){},e.prototype.onBecomeObserved=function(){},e.prototype.reportObserved=function(){return We(this)},e.prototype.reportChanged=function(){Pe(),function(e){if(e.lowestObserverState!==oe.STALE){e.lowestObserverState=oe.STALE;for(var t=e.observers,n=t.length;n--;){var i=t[n];i.dependenciesState===oe.UP_TO_DATE&&(i.isTracing!==ae.NONE&&je(i,e),i.onBecomeStale()),i.dependenciesState=oe.STALE}}}(this),Fe()},e.prototype.toString=function(){return this.name},e}(),P=S("Atom",R);function F(e,t){return e===t}var W={identity:F,structural:function(e,t){return Gt(e,t)},default:function(e,t){return function(e,t){return"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}(e,t)||F(e,t)},shallow:function(e,t){return Gt(e,t,1)}},j={},Y={};function N(e,t){var n=t?j:Y;return n[e]||(n[e]={configurable:!0,enumerable:t,get:function(){return z(this),this[e]},set:function(t){z(this),this[e]=t}})}function z(e){if(!0!==e.__mobxDidRunLazyInitializers){var t=e.__mobxDecorators;if(t)for(var n in w(e,"__mobxDidRunLazyInitializers",!0),t){var i=t[n];i.propertyCreator(e,i.prop,i.descriptor,i.decoratorTarget,i.decoratorArguments)}}}function $(e,t){return function(){var n,i=function(i,r,s,o){return!0===o?(t(i,r,s,i,n),null):(Object.prototype.hasOwnProperty.call(i,"__mobxDecorators")||w(i,"__mobxDecorators",a({},i.__mobxDecorators)),i.__mobxDecorators[r]={prop:r,propertyCreator:t,descriptor:s,decoratorTarget:i,decoratorArguments:n},N(r,e))};return H(arguments)?(n=u,i.apply(null,arguments)):(n=Array.prototype.slice.call(arguments),i)}}function H(e){return(2===e.length||3===e.length)&&"string"==typeof e[1]||4===e.length&&!0===e[3]}function X(e,t,n){return ct(e)?e:Array.isArray(e)?te.array(e,{name:n}):y(e)?te.object(e,void 0,{name:n}):x(e)?te.map(e,{name:n}):k(e)?te.set(e,{name:n}):e}function V(e){return e}function B(e){var t=$(!0,function(t,n,i,r,s){!function(e,t,n,i){var r=Nt(e);if(dt(r)){var s=ft(r,{object:e,name:t,type:"add",newValue:n});if(!s)return;n=s.newValue}n=(r.values[t]=new Te(n,i,r.name+"."+t,!1)).value,Object.defineProperty(e,t,function(e){return zt[e]||(zt[e]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.read(this,e)},set:function(t){this.$mobx.write(this,e,t)}})}(t)),r.keys&&r.keys.push(t),function(e,t,n,i){var r=pt(e),s=He(),o=r||s?{type:"add",object:t,name:n,newValue:i}:null;s&&Ve(a({},o,{name:e.name,key:n})),r&&bt(e,o),s&&Ue()}(r,e,t,n)}(t,n,i?i.initializer?i.initializer.call(t):i.value:void 0,e)}),n=("undefined"!=typeof process&&process,t);return n.enhancer=e,n}var U={deep:!0,name:void 0,defaultDecorator:void 0};function q(e){return null==e?U:"string"==typeof e?{name:e,deep:!0}:e}function G(e){return e.defaultDecorator?e.defaultDecorator.enhancer:!1===e.deep?V:X}Object.freeze(U),Object.freeze({deep:!1,name:void 0,defaultDecorator:void 0});var J=B(X),K=B(function(e,t,n){return null==e||Vt(e)||Et(e)||Pt(e)||jt(e)?e:Array.isArray(e)?te.array(e,{name:n,deep:!1}):y(e)?te.object(e,void 0,{name:n,deep:!1}):x(e)?te.map(e,{name:n,deep:!1}):k(e)?te.set(e,{name:n,deep:!1}):m(!1)}),Q=B(V),Z=B(function(e,t,n){return Gt(e,t)?t:e}),ee={box:function(e,t){arguments.length>2&&ne("box");var n=q(t);return new Te(e,G(n),n.name,!0,n.equals)},shallowBox:function(e,t){return arguments.length>2&&ne("shallowBox"),te.box(e,{name:t,deep:!1})},array:function(e,t){arguments.length>2&&ne("array");var n=q(t);return new kt(e,G(n),n.name)},shallowArray:function(e,t){return arguments.length>2&&ne("shallowArray"),te.array(e,{name:t,deep:!1})},map:function(e,t){arguments.length>2&&ne("map");var n=q(t);return new It(e,G(n),n.name)},shallowMap:function(e,t){return arguments.length>2&&ne("shallowMap"),te.map(e,{name:t,deep:!1})},set:function(e,t){arguments.length>2&&ne("set");var n=q(t);return new Wt(e,G(n),n.name)},object:function(e,t,n){"string"==typeof arguments[1]&&ne("object");var i=q(n);return st({},e,t,i)},shallowObject:function(e,t){return"string"==typeof arguments[1]&&ne("shallowObject"),te.object(e,{},{name:t,deep:!1})},ref:Q,shallow:K,deep:J,struct:Z},te=function(e,t,n){if("string"==typeof arguments[1])return J.apply(null,arguments);if(ct(e))return e;var i=y(e)?te.object(e,t,n):Array.isArray(e)?te.array(e,t):x(e)?te.map(e,t):k(e)?te.set(e,t):e;if(i!==e)return i;m(!1)};function ne(e){m("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}Object.keys(ee).forEach(function(e){return te[e]=ee[e]});var ie=$(!1,function(e,t,n,i,r){var s,o,c,l;s=e,o=t,c=a({get:n.get,set:n.set},r[0]||{}),l=Nt(s),c.name=l.name+"."+o,c.context=s,l.values[o]=new Me(c),Object.defineProperty(s,o,function(e){return $t[e]||($t[e]={configurable:Ee.computedConfigurable,enumerable:!1,get:function(){return Ht(this).read(this,e)},set:function(t){Ht(this).write(this,e,t)}})}(o))}),re=ie({equals:W.structural}),se=function(e,t,n){if("string"==typeof t)return ie.apply(null,arguments);if(null!==e&&"object"==typeof e&&1===arguments.length)return ie.apply(null,arguments);var i="object"==typeof t?t:{};return i.get=e,i.set="function"==typeof t?t:i.set,i.name=i.name||e.name||"",new Me(i)};se.struct=re;var oe=function(e){return e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE",e}({}),ae=function(e){return e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK",e}({}),ce=function(){return function(e){this.cause=e}}();function le(e){return e instanceof ce}function ue(e){switch(e.dependenciesState){case oe.UP_TO_DATE:return!1;case oe.NOT_TRACKING:case oe.STALE:return!0;case oe.POSSIBLY_STALE:for(var t=me(),n=e.observing,i=n.length,r=0;r<i;r++){var s=n[r];if(Ce(s)){if(Ee.disableErrorBoundaries)s.get();else try{s.get()}catch(o){return be(t),!0}if(e.dependenciesState===oe.STALE)return be(t),!0}}return ve(e),be(t),!1}}function de(e){var t=e.observers.length>0;Ee.computationDepth>0&&t&&m(!1),Ee.allowStateChanges||!t&&"strict"!==Ee.enforceActions||m(!1)}function he(e,t,n){var i=ge(!0);ve(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++Ee.runId;var r,s=Ee.trackingDerivation;if(Ee.trackingDerivation=e,!0===Ee.disableErrorBoundaries)r=t.call(n);else try{r=t.call(n)}catch(o){r=new ce(o)}return Ee.trackingDerivation=s,function(e){for(var t=e.observing,n=e.observing=e.newObserving,i=oe.UP_TO_DATE,r=0,s=e.unboundDepsCount,o=0;o<s;o++)0===(a=n[o]).diffValue&&(a.diffValue=1,r!==o&&(n[r]=a),r++),a.dependenciesState>i&&(i=a.dependenciesState);for(n.length=r,e.newObserving=null,s=t.length;s--;)0===(a=t[s]).diffValue&&Ie(a,e),a.diffValue=0;for(;r--;){var a;1===(a=n[r]).diffValue&&(a.diffValue=0,Ae(a,e))}i!==oe.UP_TO_DATE&&(e.dependenciesState=i,e.onBecomeStale())}(e),_e(i),r}function fe(e){var t=e.observing;e.observing=[];for(var n=t.length;n--;)Ie(t[n],e);e.dependenciesState=oe.NOT_TRACKING}function pe(e){var t=me(),n=e();return be(t),n}function me(){var e=Ee.trackingDerivation;return Ee.trackingDerivation=null,e}function be(e){Ee.trackingDerivation=e}function ge(e){var t=Ee.allowStateReads;return Ee.allowStateReads=e,t}function _e(e){Ee.allowStateReads=e}function ve(e){if(e.dependenciesState!==oe.UP_TO_DATE){e.dependenciesState=oe.UP_TO_DATE;for(var t=e.observing,n=t.length;n--;)t[n].lowestObserverState=oe.UP_TO_DATE}}var ye=0,we=1;function De(e,t){var n=function(){return Se(e,t,this,arguments)};return n.isMobxAction=!0,n}function Se(e,t,n,i){var r=function(e,t,n){var i=He()&&!!e,r=0;if(i){r=Date.now();var s=n&&n.length||0,o=new Array(s);if(s>0)for(var a=0;a<s;a++)o[a]=n[a];Ve({type:"action",name:e,object:t,arguments:o})}var c=me();Pe();var l={prevDerivation:c,prevAllowStateChanges:xe(!0),prevAllowStateReads:ge(!0),notifySpy:i,startTime:r,actionId:we++,parentActionId:ye};return ye=l.actionId,l}(e,n,i);try{return t.apply(n,i)}catch(s){throw r.error=s,s}finally{!function(e){ye!==e.actionId&&m("invalid action stack. did you forget to finish an action?"),ye=e.parentActionId,void 0!==e.error&&(Ee.suppressReactionErrors=!0),ke(e.prevAllowStateChanges),_e(e.prevAllowStateReads),Fe(),be(e.prevDerivation),e.notifySpy&&Ue({time:Date.now()-e.startTime}),Ee.suppressReactionErrors=!1}(r)}}function xe(e){var t=Ee.allowStateChanges;return Ee.allowStateChanges=e,t}function ke(e){Ee.allowStateChanges=e}var Te=function(e){function t(t,n,i,r,s){void 0===i&&(i="ObservableValue@"+p()),void 0===r&&(r=!0),void 0===s&&(s=W.default);var o=e.call(this,i)||this;return o.enhancer=n,o.name=i,o.equals=s,o.hasUnreportedChange=!1,o.value=n(t,void 0,i),r&&He()&&Xe({type:"create",name:o.name,newValue:""+o.value}),o}return o(t,e),t.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.prototype.set=function(e){var t=this.value;if((e=this.prepareNewValue(e))!==Ee.UNCHANGED){var n=He();n&&Ve({type:"update",name:this.name,newValue:e,oldValue:t}),this.setNewValue(e),n&&Ue()}},t.prototype.prepareNewValue=function(e){if(de(this),dt(this)){var t=ft(this,{object:this,type:"update",newValue:e});if(!t)return Ee.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?Ee.UNCHANGED:e},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),pt(this)&&bt(this,{type:"update",object:this,newValue:e,oldValue:t})},t.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},t.prototype.intercept=function(e){return ht(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),mt(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.value+"]"},t.prototype.valueOf=function(){return C(this.get())},t}(R);Te.prototype[M()]=Te.prototype.valueOf,S("ObservableValue",Te);var Me=function(){function e(e){this.dependenciesState=oe.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=oe.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+p(),this.value=new ce(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=ae.NONE,this.derivation=e.get,this.name=e.name||"ComputedValue@"+p(),e.set&&(this.setter=De(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?W.structural:W.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return e.prototype.onBecomeStale=function(){!function(e){if(e.lowestObserverState===oe.UP_TO_DATE){e.lowestObserverState=oe.POSSIBLY_STALE;for(var t=e.observers,n=t.length;n--;){var i=t[n];i.dependenciesState===oe.UP_TO_DATE&&(i.dependenciesState=oe.POSSIBLY_STALE,i.isTracing!==ae.NONE&&je(i,e),i.onBecomeStale())}}}(this)},e.prototype.onBecomeUnobserved=function(){},e.prototype.onBecomeObserved=function(){},e.prototype.get=function(){this.isComputing&&m("Cycle detected in computation "+this.name+": "+this.derivation),0!==Ee.inBatch||0!==this.observers.length||this.keepAlive?(We(this),ue(this)&&this.trackAndCompute()&&function(e){if(e.lowestObserverState!==oe.STALE){e.lowestObserverState=oe.STALE;for(var t=e.observers,n=t.length;n--;){var i=t[n];i.dependenciesState===oe.POSSIBLY_STALE?i.dependenciesState=oe.STALE:i.dependenciesState===oe.UP_TO_DATE&&(e.lowestObserverState=oe.UP_TO_DATE)}}}(this)):ue(this)&&(this.warnAboutUntrackedRead(),Pe(),this.value=this.computeValue(!1),Fe());var e=this.value;if(le(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(le(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){b(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else b(!1,!1)},e.prototype.trackAndCompute=function(){He()&&Xe({object:this.scope,type:"compute",name:this.name});var e=this.value,t=this.dependenciesState===oe.NOT_TRACKING,n=this.computeValue(!0),i=t||le(e)||le(n)||!this.equals(e,n);return i&&(this.value=n),i},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,Ee.computationDepth++,e)t=he(this,this.derivation,this.scope);else if(!0===Ee.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(n){t=new ce(n)}return Ee.computationDepth--,this.isComputing=!1,t},e.prototype.suspend=function(){this.keepAlive||(fe(this),this.value=void 0)},e.prototype.observe=function(e,t){var n=this,i=!0,r=void 0;return Ze(function(){var s=n.get();if(!i||t){var o=me();e({type:"update",object:n,newValue:s,oldValue:r}),be(o)}i=!1,r=s})},e.prototype.warnAboutUntrackedRead=function(){},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return C(this.get())},e}();Me.prototype[M()]=Me.prototype.valueOf;var Ce=S("ComputedValue",Me),Oe=function(){return function(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1}}(),Le=!0,Ee=function(){var e=f();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Le=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Oe).version&&(Le=!1),Le?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Oe):(setTimeout(function(){m("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new Oe)}();function Ae(e,t){var n=e.observers.length;n&&(e.observersIndexes[t.__mapid]=n),e.observers[n]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Ie(e,t){if(1===e.observers.length)e.observers.length=0,Re(e);else{var n=e.observers,i=e.observersIndexes,r=n.pop();if(r!==t){var s=i[t.__mapid]||0;s?i[r.__mapid]=s:delete i[r.__mapid],n[s]=r}delete i[t.__mapid]}}function Re(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,Ee.pendingUnobservations.push(e))}function Pe(){Ee.inBatch++}function Fe(){if(0==--Ee.inBatch){ze();for(var e=Ee.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,0===n.observers.length&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBecomeUnobserved()),n instanceof Me&&n.suspend())}Ee.pendingUnobservations=[]}}function We(e){var t=Ee.trackingDerivation;return null!==t?(t.runId!==e.lastAccessedBy&&(e.lastAccessedBy=t.runId,t.newObserving[t.unboundDepsCount++]=e,e.isBeingObserved||(e.isBeingObserved=!0,e.onBecomeObserved())),!0):(0===e.observers.length&&Ee.inBatch>0&&Re(e),!1)}function je(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===ae.BREAK){var n=[];Ye(ot(Bt(e,void 0)),n,1),new Function("debugger;\n/*\nTracing '"+e.name+"'\n\nYou are entering this break point because derivation '"+e.name+"' is being traced and '"+t.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof Me?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}}function Ye(e,t,n){t.length>=1e3?t.push("(and many more)"):(t.push(""+new Array(n).join("\t")+e.name),e.dependencies&&e.dependencies.forEach(function(e){return Ye(e,t,n+1)}))}var Ne=function(){function e(e,t,n,i){void 0===e&&(e="Reaction@"+p()),void 0===i&&(i=!1),this.name=e,this.onInvalidate=t,this.errorHandler=n,this.requiresObservable=i,this.observing=[],this.newObserving=[],this.dependenciesState=oe.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+p(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=ae.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Ee.pendingReactions.push(this),ze())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if(Pe(),this._isScheduled=!1,ue(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&He()&&Xe({name:this.name,type:"scheduled-reaction"})}catch(e){this.reportExceptionInDerivation(e)}}Fe()}},e.prototype.track=function(e){Pe();var t,n=He();n&&(t=Date.now(),Ve({name:this.name,type:"reaction"})),this._isRunning=!0;var i=he(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&fe(this),le(i)&&this.reportExceptionInDerivation(i.cause),n&&Ue({time:Date.now()-t}),Fe()},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(Ee.disableErrorBoundaries)throw e;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";Ee.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,e),He()&&Xe({type:"error",name:this.name,message:n,error:""+e}),Ee.globalReactionErrorHandlers.forEach(function(n){return n(e,t)})}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Pe(),fe(this),Fe()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.trace=function(e){void 0===e&&(e=!1),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=!1;"boolean"==typeof e[e.length-1]&&(n=e.pop());var i=lt(e);if(!i)return m(!1);i.isTracing===ae.NONE&&console.log("[mobx.trace] '"+i.name+"' tracing enabled"),i.isTracing=n?ae.BREAK:ae.LOG}(this,e)},e}();function ze(){Ee.inBatch>0||Ee.isRunningReactions||function(){Ee.isRunningReactions=!0;for(var e=Ee.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var n=e.splice(0),i=0,r=n.length;i<r;i++)n[i].runReaction()}Ee.isRunningReactions=!1}()}var $e=S("Reaction",Ne);function He(){return!!Ee.spyListeners.length}function Xe(e){if(Ee.spyListeners.length)for(var t=Ee.spyListeners,n=0,i=t.length;n<i;n++)t[n](e)}function Ve(e){Xe(a({},e,{spyReportStart:!0}))}var Be={spyReportEnd:!0};function Ue(e){Xe(e?a({},e,{spyReportEnd:!0}):Be)}function qe(){m(!1)}function Ge(e){return function(t,n,i){if(i){if(i.value)return{value:De(e,i.value),enumerable:!1,configurable:!0,writable:!0};var r=i.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return De(e,r.call(this))}}}return Je(e).apply(this,arguments)}}function Je(e){return function(t,n,i){Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:function(){},set:function(t){w(this,n,Ke(e,t))}})}}var Ke=function(e,t,n,i){return 1===arguments.length&&"function"==typeof e?De(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof t?De(e,t):1===arguments.length&&"string"==typeof e?Ge(e):!0!==i?Ge(t).apply(null,arguments):void(e[t]=De(e.name||t,n.value))};function Qe(e,t,n){w(e,t,De(t,n.bind(e)))}function Ze(e,t){void 0===t&&(t=d);var n,i=t&&t.name||e.name||"Autorun@"+p();if(t.scheduler||t.delay){var r=tt(t),s=!1;n=new Ne(i,function(){s||(s=!0,r(function(){s=!1,n.isDisposed||n.track(o)}))},t.onError,t.requiresObservable)}else n=new Ne(i,function(){this.track(o)},t.onError,t.requiresObservable);function o(){e(n)}return n.schedule(),n.getDisposer()}Ke.bound=function(e,t,n,i){return!0===i?(Qe(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return Qe(this,t,n.value||n.initializer.call(this)),this[t]},set:qe}:{enumerable:!1,configurable:!0,set:function(e){Qe(this,t,e)},get:function(){}}};var et=function(e){return e()};function tt(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:et}function nt(e,t,n){void 0===n&&(n=d),"boolean"==typeof n&&(n={fireImmediately:n});var i,r,s,o=n.name||"Reaction@"+p(),a=Ke(o,n.onError?(i=n.onError,r=t,function(){try{return r.apply(this,arguments)}catch(e){i.call(this,e)}}):t),c=!n.scheduler&&!n.delay,l=tt(n),u=!0,h=!1,f=n.compareStructural?W.structural:n.equals||W.default,m=new Ne(o,function(){u||c?b():h||(h=!0,l(b))},n.onError,n.requiresObservable);function b(){if(h=!1,!m.isDisposed){var t=!1;m.track(function(){var n=e(m);t=u||!f(s,n),s=n}),u&&n.fireImmediately&&a(s,m),u||!0!==t||a(s,m),u&&(u=!1)}}return m.schedule(),m.getDisposer()}function it(e,t,n){return rt("onBecomeUnobserved",e,t,n)}function rt(e,t,n,i){var r="function"==typeof i?Bt(t,n):Bt(t),s="function"==typeof i?i:n,o=r[e];return"function"!=typeof o?m(!1):(r[e]=function(){o.call(this),s.call(this)},function(){r[e]=o})}function st(e,t,n,i){var r=(i=q(i)).defaultDecorator||(!1===i.deep?Q:J);z(e),Nt(e,i.name,r.enhancer),Pe();try{for(var s in t){var o=Object.getOwnPropertyDescriptor(t,s),a=(n&&s in n?n[s]:o.get?ie:r)(e,s,o,!0);a&&Object.defineProperty(e,s,a)}}finally{Fe()}return e}function ot(e){var t,n,i={name:e.name};return e.observing&&e.observing.length>0&&(i.dependencies=(t=e.observing,n=[],t.forEach(function(e){-1===n.indexOf(e)&&n.push(e)}),n).map(ot)),i}function at(e,t){if(null==e)return!1;if(void 0!==t){if(Vt(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return Vt(e)||!!e.$mobx||P(e)||$e(e)||Ce(e)}function ct(e){return 1!==arguments.length&&m(!1),at(e)}function lt(e){switch(e.length){case 0:return Ee.trackingDerivation;case 1:return Bt(e[0]);case 2:return Bt(e[0],e[1])}}function ut(e,t){void 0===t&&(t=void 0),Pe();try{return e.apply(t)}finally{Fe()}}function dt(e){return void 0!==e.interceptors&&e.interceptors.length>0}function ht(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),g(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function ft(e,t){var n=me();try{var i=e.interceptors;if(i)for(var r=0,s=i.length;r<s&&(b(!(t=i[r](t))||t.type,"Intercept handlers should return nothing or a change object"),t);r++);return t}finally{be(n)}}function pt(e){return void 0!==e.changeListeners&&e.changeListeners.length>0}function mt(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),g(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function bt(e,t){var n=me(),i=e.changeListeners;if(i){for(var r=0,s=(i=i.slice()).length;r<s;r++)i[r](t);be(n)}}var gt,_t,vt,yt,wt=(gt=!1,_t={},Object.defineProperty(_t,"0",{set:function(){gt=!0}}),Object.create(_t)[0]=1,!1===gt),Dt=0,St=function(){return function(){}}();vt=St,yt=Array.prototype,void 0!==Object.setPrototypeOf?Object.setPrototypeOf(vt.prototype,yt):void 0!==vt.prototype.__proto__?vt.prototype.__proto__=yt:vt.prototype=yt,Object.isFrozen(Array)&&["constructor","push","shift","concat","pop","unshift","replace","find","findIndex","splice","reverse","sort"].forEach(function(e){Object.defineProperty(St.prototype,e,{configurable:!0,writable:!0,value:Array.prototype[e]})});var xt=function(){function e(e,t,n,i){this.array=n,this.owned=i,this.values=[],this.lastKnownLength=0,this.atom=new R(e||"ObservableArray@"+p()),this.enhancer=function(n,i){return t(n,i,e+"[..]")}}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.dehanceValues=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},e.prototype.intercept=function(e){return ht(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),mt(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e!==t)if(e>t){for(var n=new Array(e-t),i=0;i<e-t;i++)n[i]=void 0;this.spliceWithArray(t,0,n)}else this.spliceWithArray(e,t-e)},e.prototype.updateArrayLength=function(e,t){if(e!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed. Did you use peek() to change it?");this.lastKnownLength+=t,t>0&&e+t+1>Dt&&Ot(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){var i=this;de(this.atom);var r=this.values.length;if(void 0===e?e=0:e>r?e=r:e<0&&(e=Math.max(0,r+e)),t=1===arguments.length?r-e:null==t?0:Math.max(0,Math.min(t,r-e)),void 0===n&&(n=u),dt(this)){var s=ft(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!s)return u;t=s.removedCount,n=s.added}var o=(n=0===n.length?n:n.map(function(e){return i.enhancer(e,void 0)})).length-t;this.updateArrayLength(r,o);var a=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,a),this.dehanceValues(a)},e.prototype.spliceItemsIntoValues=function(e,t,n){var i;if(n.length<1e4)return(i=this.values).splice.apply(i,l([e,t],n));var r=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),r},e.prototype.notifyArrayChildUpdate=function(e,t,n){var i=!this.owned&&He(),r=pt(this),s=r||i?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;i&&Ve(a({},s,{name:this.atom.name})),this.atom.reportChanged(),r&&bt(this,s),i&&Ue()},e.prototype.notifyArraySplice=function(e,t,n){var i=!this.owned&&He(),r=pt(this),s=r||i?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;i&&Ve(a({},s,{name:this.atom.name})),this.atom.reportChanged(),r&&bt(this,s),i&&Ue()},e}(),kt=function(e){function t(t,n,i,r){void 0===i&&(i="ObservableArray@"+p()),void 0===r&&(r=!1);var s=e.call(this)||this,o=new xt(i,n,s,r);if(D(s,"$mobx",o),t&&t.length){var a=xe(!0);s.spliceWithArray(0,0,t),ke(a)}return wt&&Object.defineProperty(o.array,"0",Tt),s}return o(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.$mobx.atom.reportObserved(),Array.prototype.concat.apply(this.peek(),e.map(function(e){return Et(e)?e.peek():e}))},t.prototype.replace=function(e){return this.$mobx.spliceWithArray(0,this.$mobx.values.length,e)},t.prototype.toJS=function(){return this.slice()},t.prototype.toJSON=function(){return this.toJS()},t.prototype.peek=function(){return this.$mobx.atom.reportObserved(),this.$mobx.dehanceValues(this.$mobx.values)},t.prototype.find=function(e,t,n){void 0===n&&(n=0);var i=this.findIndex.apply(this,arguments);return-1===i?void 0:this.get(i)},t.prototype.findIndex=function(e,t,n){void 0===n&&(n=0);for(var i=this.peek(),r=i.length,s=n;s<r;s++)if(e.call(t,i[s],s,this))return s;return-1},t.prototype.splice=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];switch(arguments.length){case 0:return[];case 1:return this.$mobx.spliceWithArray(e);case 2:return this.$mobx.spliceWithArray(e,t)}return this.$mobx.spliceWithArray(e,t,n)},t.prototype.spliceWithArray=function(e,t,n){return this.$mobx.spliceWithArray(e,t,n)},t.prototype.push=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.$mobx;return n.spliceWithArray(n.values.length,0,e),n.values.length},t.prototype.pop=function(){return this.splice(Math.max(this.$mobx.values.length-1,0),1)[0]},t.prototype.shift=function(){return this.splice(0,1)[0]},t.prototype.unshift=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.$mobx;return n.spliceWithArray(0,0,e),n.values.length},t.prototype.reverse=function(){var e=this.slice();return e.reverse.apply(e,arguments)},t.prototype.sort=function(e){var t=this.slice();return t.sort.apply(t,arguments)},t.prototype.remove=function(e){var t=this.$mobx.dehanceValues(this.$mobx.values).indexOf(e);return t>-1&&(this.splice(t,1),!0)},t.prototype.move=function(e,t){function n(e){if(e<0)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(n.call(this,e),n.call(this,t),e!==t){var i,r=this.$mobx.values;i=e<t?l(r.slice(0,e),r.slice(e+1,t+1),[r[e]],r.slice(t+1)):l(r.slice(0,t),[r[e]],r.slice(t,e),r.slice(e+1)),this.replace(i)}},t.prototype.get=function(e){var t=this.$mobx;if(t){if(e<t.values.length)return t.atom.reportObserved(),t.dehanceValue(t.values[e]);console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+t.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}},t.prototype.set=function(e,t){var n=this.$mobx,i=n.values;if(e<i.length){de(n.atom);var r=i[e];if(dt(n)){var s=ft(n,{type:"update",object:this,index:e,newValue:t});if(!s)return;t=s.newValue}(t=n.enhancer(t,r))!==r&&(i[e]=t,n.notifyArrayChildUpdate(e,t,r))}else{if(e!==i.length)throw new Error("[mobx.array] Index out of bounds, "+e+" is larger than "+i.length);n.spliceWithArray(e,0,[t])}},t}(St);L(kt.prototype,function(){this.$mobx.atom.reportObserved();var e=this,t=0;return E({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})}),Object.defineProperty(kt.prototype,"length",{enumerable:!1,configurable:!0,get:function(){return this.$mobx.getArrayLength()},set:function(e){this.$mobx.setArrayLength(e)}}),w(kt.prototype,A(),"Array"),["every","filter","forEach","indexOf","join","lastIndexOf","map","reduce","reduceRight","slice","some","toString","toLocaleString"].forEach(function(e){var t=Array.prototype[e];b("function"==typeof t,"Base function not defined on Array prototype: '"+e+"'"),w(kt.prototype,e,function(){return t.apply(this.peek(),arguments)})}),function(e,t){for(var n=0;n<t.length;n++)w(e,t[n],e[t[n]])}(kt.prototype,["constructor","intercept","observe","clear","concat","get","replace","toJS","toJSON","peek","find","findIndex","splice","spliceWithArray","push","pop","set","shift","unshift","reverse","sort","remove","move","toString","toLocaleString"]);var Tt=Mt(0);function Mt(e){return{enumerable:!1,configurable:!1,get:function(){return this.get(e)},set:function(t){this.set(e,t)}}}function Ct(e){Object.defineProperty(kt.prototype,""+e,Mt(e))}function Ot(e){for(var t=Dt;t<e;t++)Ct(t);Dt=e}Ot(1e3);var Lt=S("ObservableArrayAdministration",xt);function Et(e){return v(e)&&Lt(e.$mobx)}var At={},It=function(){function e(e,t,n){if(void 0===t&&(t=X),void 0===n&&(n="ObservableMap@"+p()),this.enhancer=t,this.name=n,this.$mobx=At,this._keys=new kt(void 0,V,this.name+".keys()",!0),"function"!=typeof Map)throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(e)}return e.prototype._has=function(e){return this._data.has(e)},e.prototype.has=function(e){var t=this;if(!Ee.trackingDerivation)return this._has(e);var n=this._hasMap.get(e);if(!n){var i=n=new Te(this._has(e),V,this.name+"."+Rt(e)+"?",!1);this._hasMap.set(e,i),it(i,function(){return t._hasMap.delete(e)})}return n.get()},e.prototype.set=function(e,t){var n=this._has(e);if(dt(this)){var i=ft(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!i)return this;t=i.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if(dt(this)&&!(r=ft(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var n=He(),i=pt(this),r=i||n?{type:"delete",object:this,oldValue:this._data.get(e).value,name:e}:null;return n&&Ve(a({},r,{name:this.name,key:e})),ut(function(){t._keys.remove(e),t._updateHasMapEntry(e,!1),t._data.get(e).setNewValue(void 0),t._data.delete(e)}),i&&bt(this,r),n&&Ue(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap.get(e);n&&n.setNewValue(t)},e.prototype._updateValue=function(e,t){var n=this._data.get(e);if((t=n.prepareNewValue(t))!==Ee.UNCHANGED){var i=He(),r=pt(this),s=r||i?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;i&&Ve(a({},s,{name:this.name,key:e})),n.setNewValue(t),r&&bt(this,s),i&&Ue()}},e.prototype._addValue=function(e,t){var n=this;ut(function(){var i=new Te(t,n.enhancer,n.name+"."+Rt(e),!1);n._data.set(e,i),t=i.value,n._updateHasMapEntry(e,!0),n._keys.push(e)});var i=He(),r=pt(this),s=r||i?{type:"add",object:this,name:e,newValue:t}:null;i&&Ve(a({},s,{name:this.name,key:e})),r&&bt(this,s),i&&Ue()},e.prototype.get=function(e){return this.has(e)?this.dehanceValue(this._data.get(e).get()):this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.keys=function(){return this._keys[O()]()},e.prototype.values=function(){var e=this,t=0;return E({next:function(){return t<e._keys.length?{value:e.get(e._keys[t++]),done:!1}:{value:void 0,done:!0}}})},e.prototype.entries=function(){var e=this,t=0;return E({next:function(){if(t<e._keys.length){var n=e._keys[t++];return{value:[n,e.get(n)],done:!1}}return{done:!0}}})},e.prototype.forEach=function(e,t){var n=this;this._keys.forEach(function(i){return e.call(t,n.get(i),i,n)})},e.prototype.merge=function(e){var t=this;return Pt(e)&&(e=e.toJS()),ut(function(){y(e)?Object.keys(e).forEach(function(n){return t.set(n,e[n])}):Array.isArray(e)?e.forEach(function(e){var n=c(e,2);return t.set(n[0],n[1])}):x(e)?e.constructor!==Map?m("Cannot initialize from classes that inherit from Map: "+e.constructor.name):e.forEach(function(e,n){return t.set(n,e)}):null!=e&&m("Cannot initialize map from "+e)}),this},e.prototype.clear=function(){var e=this;ut(function(){pe(function(){e._keys.slice().forEach(function(t){return e.delete(t)})})})},e.prototype.replace=function(e){var t=this;return ut(function(){for(var n,i=x(n=e)||Pt(n)?n:Array.isArray(n)?new Map(n):y(n)?new Map(Object.entries(n)):m("Cannot convert to map from '"+n+"'"),r=t._keys,s=Array.from(i.keys()),o=!1,a=0;a<r.length;a++){var c=r[a];r.length===s.length&&c!==s[a]&&(o=!0),i.has(c)||(o=!0,t.delete(c))}i.forEach(function(e,n){t._data.has(n)||(o=!0),t.set(n,e)}),o&&t._keys.replace(s)}),this},Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.toPOJO=function(){var e=this,t={};return this._keys.forEach(function(n){return t["symbol"==typeof n?n:Rt(n)]=e.get(n)}),t},e.prototype.toJS=function(){var e=this,t=new Map;return this._keys.forEach(function(n){return t.set(n,e.get(n))}),t},e.prototype.toJSON=function(){return this.toPOJO()},e.prototype.toString=function(){var e=this;return this.name+"[{ "+this._keys.map(function(t){return Rt(t)+": "+e.get(t)}).join(", ")+" }]"},e.prototype.observe=function(e,t){return mt(this,e)},e.prototype.intercept=function(e){return ht(this,e)},e}();function Rt(e){return e&&e.toString?e.toString():new String(e).toString()}L(It.prototype,function(){return this.entries()}),D(It.prototype,A(),"Map");var Pt=S("ObservableMap",It),Ft={},Wt=function(){function e(e,t,n){if(void 0===t&&(t=X),void 0===n&&(n="ObservableSet@"+p()),this.name=n,this.$mobx=Ft,this._data=new Set,this._atom=function(e,t,n){void 0===t&&(t=_),void 0===n&&(n=_);var i=new R(e);return rt("onBecomeObserved",i,t,void 0),it(i,n),i}(this.name),"function"!=typeof Set)throw new Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");this.enhancer=function(e,i){return t(e,i,n)},e&&this.replace(e)}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.clear=function(){var e=this;ut(function(){pe(function(){e._data.forEach(function(t){e.delete(t)})})})},e.prototype.forEach=function(e,t){var n=this;this._data.forEach(function(i){e.call(t,i,i,n)})},Object.defineProperty(e.prototype,"size",{get:function(){return this._atom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this;if(de(this._atom),dt(this)&&!(r=ft(this,{type:"add",object:this,newValue:e})))return this;if(!this.has(e)){ut(function(){t._data.add(t.enhancer(e,void 0)),t._atom.reportChanged()});var n=He(),i=pt(this),r=i||n?{type:"add",object:this,newValue:e}:null;i&&bt(this,r)}return this},e.prototype.delete=function(e){var t=this;if(dt(this)&&!(r=ft(this,{type:"delete",object:this,oldValue:e})))return!1;if(this.has(e)){var n=He(),i=pt(this),r=i||n?{type:"delete",object:this,oldValue:e}:null;return ut(function(){t._atom.reportChanged(),t._data.delete(e)}),i&&bt(this,r),!0}return!1},e.prototype.has=function(e){return this._atom.reportObserved(),this._data.has(this.dehanceValue(e))},e.prototype.entries=function(){var e=0,t=T(this.keys()),n=T(this.values());return E({next:function(){var i=e;return e+=1,i<n.length?{value:[t[i],n[i]],done:!1}:{done:!0}}})},e.prototype.keys=function(){return this.values()},e.prototype.values=function(){this._atom.reportObserved();var e,t=this,n=0;return void 0!==this._data.values?e=T(this._data.values()):(e=[],this._data.forEach(function(t){return e.push(t)})),E({next:function(){return n<e.length?{value:t.dehanceValue(e[n++]),done:!1}:{done:!0}}})},e.prototype.replace=function(e){var t=this;return jt(e)&&(e=e.toJS()),ut(function(){Array.isArray(e)||k(e)?(t.clear(),e.forEach(function(e){return t.add(e)})):null!=e&&m("Cannot initialize set from "+e)}),this},e.prototype.observe=function(e,t){return mt(this,e)},e.prototype.intercept=function(e){return ht(this,e)},e.prototype.toJS=function(){return new Set(this)},e.prototype.toString=function(){return this.name+"[ "+T(this.keys()).join(", ")+" ]"},e}();L(Wt.prototype,function(){return this.values()}),D(Wt.prototype,A(),"Set");var jt=S("ObservableSet",Wt),Yt=function(){function e(e,t,n){this.target=e,this.name=t,this.defaultEnhancer=n,this.values={}}return e.prototype.read=function(e,t){if(this.target===e||(this.illegalAccess(e,t),this.values[t]))return this.values[t].get()},e.prototype.write=function(e,t,n){var i=this.target;i!==e&&this.illegalAccess(e,t);var r=this.values[t];if(r instanceof Me)r.set(n);else{if(dt(this)){if(!(c=ft(this,{type:"update",object:i,name:t,newValue:n})))return;n=c.newValue}if((n=r.prepareNewValue(n))!==Ee.UNCHANGED){var s=pt(this),o=He(),c=s||o?{type:"update",object:i,oldValue:r.value,name:t,newValue:n}:null;o&&Ve(a({},c,{name:this.name,key:t})),r.setNewValue(n),s&&bt(this,c),o&&Ue()}}},e.prototype.remove=function(e){if(this.values[e]){var t=this.target;if(dt(this)&&!(s=ft(this,{object:t,name:e,type:"remove"})))return;try{Pe();var n=pt(this),i=He(),r=this.values[e].get();this.keys&&this.keys.remove(e),delete this.values[e],delete this.target[e];var s=n||i?{type:"remove",object:t,oldValue:r,name:e}:null;i&&Ve(a({},s,{name:this.name,key:e})),n&&bt(this,s),i&&Ue()}finally{Fe()}}},e.prototype.illegalAccess=function(e,t){console.warn("Property '"+t+"' of '"+e+"' was accessed through the prototype chain. Use 'decorate' instead to declare the prop or access it statically through it's owner")},e.prototype.observe=function(e,t){return mt(this,e)},e.prototype.intercept=function(e){return ht(this,e)},e.prototype.getKeys=function(){var e=this;return void 0===this.keys&&(this.keys=new kt(Object.keys(this.values).filter(function(t){return e.values[t]instanceof Te}),V,"keys("+this.name+")",!0)),this.keys.slice()},e}();function Nt(e,t,n){void 0===t&&(t=""),void 0===n&&(n=X);var i=e.$mobx;return i||(y(e)||(t=(e.constructor.name||"ObservableObject")+"@"+p()),t||(t="ObservableObject@"+p()),D(e,"$mobx",i=new Yt(e,t,n)),i)}var zt=Object.create(null),$t=Object.create(null);function Ht(e){return e.$mobx||(z(e),e.$mobx)}var Xt=S("ObservableObjectAdministration",Yt);function Vt(e){return!!v(e)&&(z(e),Xt(e.$mobx))}function Bt(e,t){if("object"==typeof e&&null!==e){if(Et(e))return void 0!==t&&m(!1),e.$mobx.atom;if(jt(e))return e.$mobx;if(Pt(e)){var n=e;return void 0===t?Bt(n._keys):((i=n._data.get(t)||n._hasMap.get(t))||m(!1),i)}var i;if(z(e),Vt(e))return t?((i=e.$mobx.values[t])||m(!1),i):m(!1);if(P(e)||Ce(e)||$e(e))return e}else if("function"==typeof e&&$e(e.$mobx))return e.$mobx;return m(!1)}function Ut(e,t){return e||m("Expecting some object"),void 0!==t?Ut(Bt(e,t)):P(e)||Ce(e)||$e(e)||Pt(e)||jt(e)?e:(z(e),e.$mobx?e.$mobx:void m(!1))}var qt=Object.prototype.toString;function Gt(e,t,n){return void 0===n&&(n=-1),Jt(e,t,n)}function Jt(e,t,n,i,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var s=typeof e;if("function"!==s&&"object"!==s&&"object"!=typeof t)return!1;e=Kt(e),t=Kt(t);var o=qt.call(e);if(o!==qt.call(t))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t)}var a="[object Array]"===o;if(!a){if("object"!=typeof e||"object"!=typeof t)return!1;var c=e.constructor,l=t.constructor;if(c!==l&&!("function"==typeof c&&c instanceof c&&"function"==typeof l&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),r=r||[];for(var u=(i=i||[]).length;u--;)if(i[u]===e)return r[u]===t;if(i.push(e),r.push(t),a){if((u=e.length)!==t.length)return!1;for(;u--;)if(!Jt(e[u],t[u],n-1,i,r))return!1}else{var d=Object.keys(e),h=void 0;if(u=d.length,Object.keys(t).length!==u)return!1;for(;u--;)if(!Qt(t,h=d[u])||!Jt(e[h],t[h],n-1,i,r))return!1}return i.pop(),r.pop(),!0}function Kt(e){return Et(e)?e.peek():x(e)||Pt(e)||k(e)||jt(e)?T(e.entries()):e}function Qt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return Ee.spyListeners.push(e),g(function(){Ee.spyListeners=Ee.spyListeners.filter(function(t){return t!==e})})},extras:{getDebugName:function(e,t){return(void 0!==t?Bt(e,t):Vt(e)||Pt(e)||jt(e)?Ut(e):Bt(e)).name}},$mobx:"$mobx"});var Zt,en,tn,nn,rn=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},sn=function(e){return e},on=Math.max,an=function(e,t,n){return t=on(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,s=on(i.length-t,0),o=Array(s);++r<s;)o[r]=i[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=i[r];return a[t]=n(o),rn(e,this,a)}},cn=n("AwXo"),ln=Date.now,un=(Zt=cn.a?function(e,t){return Object(cn.a)(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:sn,en=0,tn=0,function(){var e=ln(),t=16-(e-tn);if(tn=e,t>0){if(++en>=800)return arguments[0]}else en=0;return Zt.apply(void 0,arguments)}),dn=function(e,t){return un(an(e,t,sn),e+"")},hn=n("oSzE"),fn=n("uE2L"),pn=n("YHEm"),mn=function(e,t,n){(void 0!==n&&!Object(pn.a)(e[t],n)||void 0===n&&!(t in e))&&Object(fn.a)(e,t,n)},bn=function(e,t,n){for(var i=-1,r=Object(e),s=n(e),o=s.length;o--;){var a=s[++i];if(!1===t(r[a],a,r))break}return e},gn=n("3/ER"),_n=n("G4mU"),vn=n("eAQQ"),yn=n("hYPf"),wn=n("9f76"),Dn=n("/1FC"),Sn=n("5WsY"),xn=n("EUcb"),kn=n("WOAq"),Tn=n("vJtL"),Mn=n("IzLi"),Cn=n("8M4i"),On=n("UudT"),Ln=Function.prototype.toString,En=Object.prototype.hasOwnProperty,An=Ln.call(Object),In=function(e){if(!Object(xn.a)(e)||"[object Object]"!=Object(Cn.a)(e))return!1;var t=Object(On.a)(e);if(null===t)return!0;var n=En.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ln.call(n)==An},Rn=n("oYcn"),Pn=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Fn=n("+EKe"),Wn=n("4/q3"),jn=function e(t,n,i,r,s){t!==n&&bn(n,function(o,a){if(s||(s=new hn.a),Object(Mn.a)(o))!function(e,t,n,i,r,s,o){var a,c=Pn(e,n),l=Pn(t,n),u=o.get(l);if(u)mn(e,n,u);else{var d=s?s(c,l,n+"",e,t,o):void 0,h=void 0===d;if(h){var f=Object(Dn.a)(l),p=!f&&Object(kn.a)(l),m=!f&&!p&&Object(Rn.a)(l);d=l,f||p||m?Object(Dn.a)(c)?d=c:(a=c,Object(xn.a)(a)&&Object(Sn.a)(a)?d=Object(vn.a)(c):p?(h=!1,d=Object(gn.a)(l,!0)):m?(h=!1,d=Object(_n.a)(l,!0)):d=[]):In(l)||Object(wn.a)(l)?(d=c,Object(wn.a)(c)?d=function(e){return Object(Fn.a)(e,Object(Wn.a)(e))}(c):Object(Mn.a)(c)&&!Object(Tn.a)(c)||(d=Object(yn.a)(l))):h=!1}h&&(o.set(l,d),r(d,l,i,s,o),o.delete(l)),mn(e,n,d)}}(t,n,a,i,e,r,s);else{var c=r?r(Pn(t,a),o,a+"",t,n,s):void 0;void 0===c&&(c=o),mn(t,a,c)}},Wn.a)},Yn=function e(t,n,i,r,s,o){return Object(Mn.a)(t)&&Object(Mn.a)(n)&&(o.set(n,t),jn(t,n,void 0,e,o),o.delete(n)),t},Nn=n("cSlR"),zn=function(e,t,n){if(!Object(Mn.a)(n))return!1;var i=typeof t;return!!("number"==i?Object(Sn.a)(n)&&Object(Nn.a)(t,n.length):"string"==i&&t in n)&&Object(pn.a)(n[t],e)},$n=(nn=function(e,t,n,i){jn(e,t,n,i)},dn(function(e,t){var n=-1,i=t.length,r=i>1?t[i-1]:void 0,s=i>2?t[2]:void 0;for(r=nn.length>3&&"function"==typeof r?(i--,r):void 0,s&&zn(t[0],t[1],s)&&(r=i<3?void 0:r,i=1),e=Object(e);++n<i;){var o=t[n];o&&nn(e,o,n,r)}return e})),Hn=dn(function(e){return e.push(void 0,Yn),rn($n,void 0,e)}),Xn=function(e){return"symbol"==typeof e||Object(xn.a)(e)&&"[object Symbol]"==Object(Cn.a)(e)},Vn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bn=/^\w*$/,Un=function(e,t){if(Object(Dn.a)(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Xn(e))||Bn.test(e)||!Vn.test(e)||null!=t&&e in Object(t)},qn=n("DlmY");function Gn(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],s=n.cache;if(s.has(r))return s.get(r);var o=e.apply(this,i);return n.cache=s.set(r,o)||s,o};return n.cache=new(Gn.Cache||qn.a),n}Gn.Cache=qn.a;var Jn,Kn,Qn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zn=/\\(\\)?/g,ei=(Jn=Gn(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Qn,function(e,n,i,r){t.push(i?r.replace(Zn,"$1"):n||e)}),t},function(e){return 500===Kn.size&&Kn.clear(),e}),Kn=Jn.cache,Jn),ti=n("ylTp"),ni=function(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r},ii=ti.a?ti.a.prototype:void 0,ri=ii?ii.toString:void 0,si=function e(t){if("string"==typeof t)return t;if(Object(Dn.a)(t))return ni(t,e)+"";if(Xn(t))return ri?ri.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},oi=function(e){return null==e?"":si(e)},ai=function(e,t){return Object(Dn.a)(e)?e:Un(e,t)?[e]:ei(oi(e))},ci=function(e){if("string"==typeof e||Xn(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},li=function(e,t){for(var n=0,i=(t=ai(t,e)).length;null!=e&&n<i;)e=e[ci(t[n++])];return n&&n==i?e:void 0},ui=function(e,t,n){var i=null==e?void 0:li(e,t);return void 0===i?n:i},di=n("CfRg"),hi=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},fi=function(e,t){return null==(e=function(e,t){return t.length<2?e:li(e,function(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(r);++i<r;)s[i]=e[i+t];return s}(t,0,-1))}(e,t=ai(t,e)))||delete e[ci(hi(t))]},pi=function(e){return In(e)?void 0:e},mi=n("tPH9"),bi=ti.a?ti.a.isConcatSpreadable:void 0,gi=function(e){return Object(Dn.a)(e)||Object(wn.a)(e)||!!(bi&&e&&e[bi])},_i=function e(t,n,i,r,s){var o=-1,a=t.length;for(i||(i=gi),s||(s=[]);++o<a;){var c=t[o];n>0&&i(c)?n>1?e(c,n-1,i,r,s):Object(mi.a)(s,c):r||(s[s.length]=c)}return s},vi=function(e){return null!=e&&e.length?_i(e,1):[]},yi=function(e){return un(an(e,void 0,vi),e+"")},wi=n("TnHx"),Di=yi(function(e,t){var n={};if(null==e)return n;var i=!1;t=ni(t,function(t){return t=ai(t,e),i||(i=t.length>1),t}),Object(Fn.a)(e,Object(wi.a)(e),n),i&&(n=Object(di.a)(n,7,pi));for(var r=t.length;r--;)fi(n,t[r]);return n}),Si=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1};function xi(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qn.a;++t<n;)this.add(e[t])}xi.prototype.add=xi.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},xi.prototype.has=function(e){return this.__data__.has(e)};var ki=xi,Ti=function(e,t){return e.has(t)},Mi=function(e,t,n,i,r,s){var o=1&n,a=e.length,c=t.length;if(a!=c&&!(o&&c>a))return!1;var l=s.get(e),u=s.get(t);if(l&&u)return l==t&&u==e;var d=-1,h=!0,f=2&n?new ki:void 0;for(s.set(e,t),s.set(t,e);++d<a;){var p=e[d],m=t[d];if(i)var b=o?i(m,p,d,t,e,s):i(p,m,d,e,t,s);if(void 0!==b){if(b)continue;h=!1;break}if(f){if(!Si(t,function(e,t){if(!Ti(f,t)&&(p===e||r(p,e,n,i,s)))return f.push(t)})){h=!1;break}}else if(p!==m&&!r(p,m,n,i,s)){h=!1;break}}return s.delete(e),s.delete(t),h},Ci=n("Ce4a"),Oi=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n},Li=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n},Ei=ti.a?ti.a.prototype:void 0,Ai=Ei?Ei.valueOf:void 0,Ii=n("TFwu"),Ri=Object.prototype.hasOwnProperty,Pi=n("YM6B"),Fi="[object Arguments]",Wi="[object Array]",ji="[object Object]",Yi=Object.prototype.hasOwnProperty,Ni=function e(t,n,i,r,s){return t===n||(null==t||null==n||!Object(xn.a)(t)&&!Object(xn.a)(n)?t!=t&&n!=n:function(e,t,n,i,r,s){var o=Object(Dn.a)(e),a=Object(Dn.a)(t),c=o?Wi:Object(Pi.a)(e),l=a?Wi:Object(Pi.a)(t),u=(c=c==Fi?ji:c)==ji,d=(l=l==Fi?ji:l)==ji,h=c==l;if(h&&Object(kn.a)(e)){if(!Object(kn.a)(t))return!1;o=!0,u=!1}if(h&&!u)return s||(s=new hn.a),o||Object(Rn.a)(e)?Mi(e,t,n,i,r,s):function(e,t,n,i,r,s,o){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new Ci.a(e),new Ci.a(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Object(pn.a)(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=Oi;case"[object Set]":if(a||(a=Li),e.size!=t.size&&!(1&i))return!1;var c=o.get(e);if(c)return c==t;i|=2,o.set(e,t);var l=Mi(a(e),a(t),i,r,s,o);return o.delete(e),l;case"[object Symbol]":if(Ai)return Ai.call(e)==Ai.call(t)}return!1}(e,t,c,n,i,r,s);if(!(1&n)){var f=u&&Yi.call(e,"__wrapped__"),p=d&&Yi.call(t,"__wrapped__");if(f||p){var m=f?e.value():e,b=p?t.value():t;return s||(s=new hn.a),r(m,b,n,i,s)}}return!!h&&(s||(s=new hn.a),function(e,t,n,i,r,s){var o=1&n,a=Object(Ii.a)(e),c=a.length;if(c!=Object(Ii.a)(t).length&&!o)return!1;for(var l=c;l--;){var u=a[l];if(!(o?u in t:Ri.call(t,u)))return!1}var d=s.get(e),h=s.get(t);if(d&&h)return d==t&&h==e;var f=!0;s.set(e,t),s.set(t,e);for(var p=o;++l<c;){var m=e[u=a[l]],b=t[u];if(i)var g=o?i(b,m,u,t,e,s):i(m,b,u,e,t,s);if(!(void 0===g?m===b||r(m,b,n,i,s):g)){f=!1;break}p||(p="constructor"==u)}if(f&&!p){var _=e.constructor,v=t.constructor;_==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof v&&v instanceof v||(f=!1)}return s.delete(e),s.delete(t),f}(e,t,n,i,r,s))}(t,n,i,r,e,s))},zi=function(e){return e==e&&!Object(Mn.a)(e)},$i=n("mkut"),Hi=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}},Xi=function(e,t){return null!=e&&t in Object(e)},Vi=n("Js68"),Bi=function(e,t){return null!=e&&function(e,t,n){for(var i=-1,r=(t=ai(t,e)).length,s=!1;++i<r;){var o=ci(t[i]);if(!(s=null!=e&&n(e,o)))break;e=e[o]}return s||++i!=r?s:!!(r=null==e?0:e.length)&&Object(Vi.a)(r)&&Object(Nn.a)(o,r)&&(Object(Dn.a)(e)||Object(wn.a)(e))}(e,t,Xi)},Ui=function(e){return"function"==typeof e?e:null==e?sn:"object"==typeof e?Object(Dn.a)(e)?(r=e[1],Un(i=e[0])&&zi(r)?Hi(ci(i),r):function(e){var t=ui(e,i);return void 0===t&&t===r?Bi(e,i):Ni(r,t,3)}):1==(n=function(e){for(var t=Object($i.a)(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,zi(r)]}return t}(t=e)).length&&n[0][2]?Hi(n[0][0],n[0][1]):function(e){return e===t||function(e,t,n,i){var r=n.length,s=r;if(null==e)return!s;for(e=Object(e);r--;){var o=n[r];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++r<s;){var a=(o=n[r])[0],c=e[a],l=o[1];if(o[2]){if(void 0===c&&!(a in e))return!1}else{var u,d=new hn.a;if(!(void 0===u?Ni(l,c,3,i,d):u))return!1}}return!0}(e,0,n)}:function(e){return Un(e)?(t=ci(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return li(t,e)}}(e);var t}(e);var t,n,i,r},qi=function(e,t){if(null==e)return e;if(!Object(Sn.a)(e))return function(e,t){return e&&bn(e,t,$i.a)}(e,t);for(var n=e.length,i=-1,r=Object(e);++i<n&&!1!==t(r[i],i,r););return e},Gi=function(e,t){var n;return qi(e,function(e,i,r){return!(n=t(e,i,r))}),!!n},Ji=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0},Ki=function(e,t){var n=!0;return qi(e,function(e,i,r){return n=!!t(e,i,r)}),n},Qi=function(e){return e&&e.length?e[0]:void 0},Zi=function(e){for(var t=-1,n=null==e?0:e.length,i=0,r=[];++t<n;){var s=e[t];s&&(r[i++]=s)}return r},er=function(e,t,n,i){for(var r=e.length,s=n+(i?1:-1);i?s--:++s<r;)if(t(e[s],s,e))return s;return-1},tr=/\s/,nr=/^\s+/,ir=/^[-+]0x[0-9a-f]+$/i,rr=/^0b[01]+$/i,sr=/^0o[0-7]+$/i,or=parseInt,ar=function(e){if("number"==typeof e)return e;if(Xn(e))return NaN;if(Object(Mn.a)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Object(Mn.a)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;var n;e=(n=e)?n.slice(0,function(e){for(var t=e.length;t--&&tr.test(e.charAt(t)););return t}(n)+1).replace(nr,""):n;var i=rr.test(e);return i||sr.test(e)?or(e.slice(2),i?2:8):ir.test(e)?NaN:+e},cr=function(e){var t=function(e){return e?1/0===(e=ar(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}(e),n=t%1;return t==t?n?t-n:t:0},lr=Math.max,ur=function(e,t,n){var i=Object(e);if(!Object(Sn.a)(e)){var r=Ui(t);e=Object($i.a)(e),t=function(e){return r(i[e],e,i)}}var s=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:cr(n);return r<0&&(r=lr(i+r,0)),er(e,Ui(t),r)}(e,t,n);return s>-1?i[r?e[s]:s]:void 0},dr=function(e){return"string"==typeof e||!Object(Dn.a)(e)&&Object(xn.a)(e)&&"[object String]"==Object(Cn.a)(e)},hr=n("Ju5/"),fr=function(){return hr.a.Date.now()},pr=Math.max,mr=Math.min,br=function(e){return e!=e},gr=Math.max,_r=function(e,t,n,i){var r;e=Object(Sn.a)(e)?e:null==(r=e)?[]:function(e,t){return ni(t,function(t){return e[t]})}(r,Object($i.a)(r)),n=n&&!i?cr(n):0;var s=e.length;return n<0&&(n=gr(s+n,0)),dr(e)?n<=s&&e.indexOf(t,n)>-1:!!s&&function(e,t,n){return t==t?function(e,t,n){for(var i=n-1,r=e.length;++i<r;)if(e[i]===t)return i;return-1}(e,t,n):er(e,br,n)}(e,t,n)>-1},vr=n("23KU"),yr=function(e,t,n,i){if(!Object(Mn.a)(e))return e;for(var r=-1,s=(t=ai(t,e)).length,o=s-1,a=e;null!=a&&++r<s;){var c=ci(t[r]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(r!=o){var u=a[c];void 0===(l=i?i(u,c,a):void 0)&&(l=Object(Mn.a)(u)?u:Object(Nn.a)(t[r+1])?[]:{})}Object(vr.a)(a,c,l),a=a[c]}return e},wr=yi(function(e,t){return null==e?{}:function(e,t){return function(e,t,n){for(var i=-1,r=t.length,s={};++i<r;){var o=t[i],a=li(e,o);n(0,o)&&yr(s,ai(o,e),a)}return s}(e,t,function(t,n){return Bi(e,n)})}(e,t)});function Dr(e,t){1&e&&(i.Xb(0,"span"),i.Rc(1,"loading..."),i.Wb())}const Sr=function(e){return{$implicit:e}};function xr(e,t){if(1&e&&(i.Vb(0),i.Xb(1,"div"),i.sc(2),i.Wb(),i.Ub()),2&e){const e=i.nc();i.Db(1),i.Nc("height",e.getTotalHeight())}}const kr=function(){return{dontDetach:!0}},Tr=["*"],Mr=["loadingTemplate"],Cr=["treeNodeTemplate"],Or=["treeNodeWrapperTemplate"],Lr=["treeNodeFullTemplate"],Er=["viewport"],Ar=function(e,t,n,i){return{loadingTemplate:e,treeNodeTemplate:t,treeNodeWrapperTemplate:n,treeNodeFullTemplate:i}};function Ir(e,t){if(1&e&&i.Sb(0,"tree-node-collection",4),2&e){const e=i.nc();i.uc("nodes",e.treeModel.roots)("treeModel",e.treeModel)("templates",i.Cc(3,Ar,e.loadingTemplate,e.treeNodeTemplate,e.treeNodeWrapperTemplate,e.treeNodeFullTemplate))}}function Rr(e,t){if(1&e&&i.Sb(0,"tree-node-drop-slot",5),2&e){const e=i.nc();i.uc("dropIndex",0)("node",e.treeModel.virtualRoot)}}function Pr(e,t){if(1&e&&i.Sb(0,"tree-node-drop-slot",6),2&e){const e=i.nc(3);i.uc("dropIndex",e.node.index)("node",e.node.parent)}}function Fr(e,t){if(1&e&&(i.Xb(0,"div"),i.Pc(1,Pr,1,2,"tree-node-drop-slot",3),i.Sb(2,"tree-node-wrapper",4),i.Sb(3,"tree-node-children",5),i.Sb(4,"tree-node-drop-slot",6),i.Wb()),2&e){const e=i.nc(2);i.Fb(e.node.getClass()),i.Jb("tree-node",!0)("tree-node-expanded",e.node.isExpanded&&e.node.hasChildren)("tree-node-collapsed",e.node.isCollapsed&&e.node.hasChildren)("tree-node-leaf",e.node.isLeaf)("tree-node-active",e.node.isActive)("tree-node-focused",e.node.isFocused),i.Db(1),i.uc("ngIf",0===e.index),i.Db(1),i.uc("node",e.node)("index",e.index)("templates",e.templates),i.Db(1),i.uc("node",e.node)("templates",e.templates),i.Db(1),i.uc("dropIndex",e.node.index+1)("node",e.node.parent)}}const Wr=function(e,t,n,i){return{$implicit:e,node:t,index:n,templates:i}};function jr(e,t){if(1&e&&(i.Vb(0),i.Pc(1,Fr,5,22,"div",1),i.Tb(2,2),i.Ub()),2&e){const e=i.nc();i.Db(1),i.uc("ngIf",!e.templates.treeNodeFullTemplate),i.Db(1),i.uc("ngTemplateOutlet",e.templates.treeNodeFullTemplate)("ngTemplateOutletContext",i.Cc(3,Wr,e.node,e.node,e.index,e.templates))}}function Yr(e,t){if(1&e&&(i.Xb(0,"span"),i.Rc(1),i.Wb()),2&e){const e=i.nc();i.Db(1),i.Sc(e.node.displayField)}}const Nr=function(e,t,n){return{$implicit:e,node:t,index:n}};function zr(e,t){if(1&e){const e=i.Yb();i.Xb(0,"span",3),i.lc("click",function(t){return i.Ic(e),i.nc(2).node.mouseAction("expanderClick",t)}),i.Sb(1,"span",4),i.Wb()}if(2&e){const e=i.nc(2);i.Jb("toggle-children-wrapper-expanded",e.node.isExpanded)("toggle-children-wrapper-collapsed",e.node.isCollapsed)}}function $r(e,t){1&e&&i.Sb(0,"span",5)}function Hr(e,t){if(1&e&&(i.Vb(0),i.Pc(1,zr,2,4,"span",1),i.Pc(2,$r,1,0,"span",2),i.Ub()),2&e){const e=i.nc();i.Db(1),i.uc("ngIf",e.node.hasChildren),i.Db(1),i.uc("ngIf",!e.node.hasChildren)}}function Xr(e,t){if(1&e&&i.Sb(0,"tree-node-collection",4),2&e){const e=i.nc(3);i.uc("nodes",e.node.children)("templates",e.templates)("treeModel",e.node.treeModel)}}function Vr(e,t){if(1&e&&i.Sb(0,"tree-loading-component",5),2&e){const e=i.nc(3);i.Nc("padding-left",e.node.getNodePadding()),i.uc("template",e.templates.loadingTemplate)("node",e.node)}}function Br(e,t){if(1&e&&(i.Xb(0,"div"),i.Pc(1,Xr,1,3,"tree-node-collection",2),i.Pc(2,Vr,1,4,"tree-loading-component",3),i.Wb()),2&e){const e=i.nc(2);i.Jb("tree-children",!0)("tree-children-no-padding",e.node.options.levelPadding),i.Db(1),i.uc("ngIf",e.node.children),i.Db(1),i.uc("ngIf",!e.node.children)}}function Ur(e,t){if(1&e&&(i.Vb(0),i.Pc(1,Br,3,6,"div",1),i.Ub()),2&e){const e=i.nc();i.Db(1),i.uc("treeAnimateOpen",e.node.isExpanded)("treeAnimateOpenSpeed",e.node.options.animateSpeed)("treeAnimateOpenAcceleration",e.node.options.animateAcceleration)("treeAnimateOpenEnabled",e.node.options.animateExpand)}}function qr(e,t){if(1&e&&i.Sb(0,"tree-node",2),2&e){const e=t.$implicit,n=t.index,r=i.nc(2);i.uc("node",e)("index",n)("templates",r.templates)}}function Gr(e,t){if(1&e&&(i.Vb(0),i.Xb(1,"div"),i.Pc(2,qr,1,3,"tree-node",1),i.Wb(),i.Ub()),2&e){const e=i.nc();i.Db(1),i.Nc("margin-top",e.marginTop),i.Db(1),i.uc("ngForOf",e.viewportNodes)("ngForTrackBy",e.trackNode)}}function Jr(e,t){if(1&e&&i.Sb(0,"tree-node-checkbox",4),2&e){const e=i.nc(2);i.uc("node",e.node)}}function Kr(e,t){if(1&e){const e=i.Yb();i.Xb(0,"div",2),i.Pc(1,Jr,1,1,"tree-node-checkbox",3),i.Sb(2,"tree-node-expander",4),i.Xb(3,"div",5),i.lc("click",function(t){return i.Ic(e),i.nc().node.mouseAction("click",t)})("dblclick",function(t){return i.Ic(e),i.nc().node.mouseAction("dblClick",t)})("mouseover",function(t){return i.Ic(e),i.nc().node.mouseAction("mouseOver",t)})("mouseout",function(t){return i.Ic(e),i.nc().node.mouseAction("mouseOut",t)})("contextmenu",function(t){return i.Ic(e),i.nc().node.mouseAction("contextMenu",t)})("treeDrop",function(t){return i.Ic(e),i.nc().node.onDrop(t)})("treeDropDragOver",function(t){return i.Ic(e),i.nc().node.mouseAction("dragOver",t)})("treeDropDragLeave",function(t){return i.Ic(e),i.nc().node.mouseAction("dragLeave",t)})("treeDropDragEnter",function(t){return i.Ic(e),i.nc().node.mouseAction("dragEnter",t)}),i.Sb(4,"tree-node-content",6),i.Wb(),i.Wb()}if(2&e){const e=i.nc();i.Nc("padding-left",e.node.getNodePadding()),i.Db(1),i.uc("ngIf",e.node.options.useCheckbox),i.Db(1),i.uc("node",e.node),i.Db(1),i.Jb("node-content-wrapper-active",e.node.isActive)("node-content-wrapper-focused",e.node.isFocused),i.uc("treeAllowDrop",e.node.allowDrop)("allowDragoverStyling",e.node.allowDragoverStyling())("treeDrag",e.node)("treeDragEnabled",e.node.allowDrag()),i.Db(1),i.uc("node",e.node)("index",e.index)("template",e.templates.treeNodeTemplate)}}function Qr(e,t){if(1&e){const e=i.Yb();i.Vb(0),i.Xb(1,"input",1),i.lc("click",function(t){return i.Ic(e),i.nc().node.mouseAction("checkboxClick",t)}),i.Wb(),i.Ub()}if(2&e){const e=i.nc();i.Db(1),i.uc("checked",e.node.isSelected)("indeterminate",e.node.isPartiallySelected)}}let Zr=(()=>{class e{constructor(e,t){this.templateRef=e,this.viewContainer=t,this.templateBindings={}}ngOnInit(){this.view=this.viewContainer.createEmbeddedView(this.templateRef),this.dispose&&this.dispose(),this.shouldDetach()&&this.view.detach(),this.autoDetect(this.view)}shouldDetach(){return this.treeMobxAutorun&&this.treeMobxAutorun.detach}autoDetect(e){this.dispose=Ze(()=>e.detectChanges())}ngOnDestroy(){this.dispose&&this.dispose()}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.O),i.Rb(i.S))},e.\u0275dir=i.Mb({type:e,selectors:[["","treeMobxAutorun",""]],inputs:{treeMobxAutorun:"treeMobxAutorun"}}),e})();const es={TOGGLE_ACTIVE:(e,t,n)=>t&&t.toggleActivated(),TOGGLE_ACTIVE_MULTI:(e,t,n)=>t&&t.toggleActivated(!0),TOGGLE_SELECTED:(e,t,n)=>t&&t.toggleSelected(),ACTIVATE:(e,t,n)=>t.setIsActive(!0),DEACTIVATE:(e,t,n)=>t.setIsActive(!1),SELECT:(e,t,n)=>t.setIsSelected(!0),DESELECT:(e,t,n)=>t.setIsSelected(!1),FOCUS:(e,t,n)=>t.focus(),TOGGLE_EXPANDED:(e,t,n)=>t.hasChildren&&t.toggleExpanded(),EXPAND:(e,t,n)=>t.expand(),COLLAPSE:(e,t,n)=>t.collapse(),DRILL_DOWN:(e,t,n)=>e.focusDrillDown(),DRILL_UP:(e,t,n)=>e.focusDrillUp(),NEXT_NODE:(e,t,n)=>e.focusNextNode(),PREVIOUS_NODE:(e,t,n)=>e.focusPreviousNode(),MOVE_NODE:(e,t,n,{from:i,to:r})=>{n.ctrlKey?e.copyNode(i,r):e.moveNode(i,r)}},ts={mouse:{click:es.TOGGLE_ACTIVE,dblClick:null,contextMenu:null,expanderClick:es.TOGGLE_EXPANDED,checkboxClick:es.TOGGLE_SELECTED,drop:es.MOVE_NODE},keys:{39:es.DRILL_DOWN,37:es.DRILL_UP,40:es.NEXT_NODE,38:es.PREVIOUS_NODE,32:es.TOGGLE_ACTIVE,13:es.TOGGLE_ACTIVE}};class ns{constructor(e={}){this.options=e,this.actionMapping=Hn({},this.options.actionMapping,ts),e.rtl&&(this.actionMapping.keys[39]=ui(e,["actionMapping","keys",39])||es.DRILL_UP,this.actionMapping.keys[37]=ui(e,["actionMapping","keys",37])||es.DRILL_DOWN)}get hasChildrenField(){return this.options.hasChildrenField||"hasChildren"}get childrenField(){return this.options.childrenField||"children"}get displayField(){return this.options.displayField||"name"}get idField(){return this.options.idField||"id"}get isExpandedField(){return this.options.isExpandedField||"isExpanded"}get getChildren(){return this.options.getChildren}get levelPadding(){return this.options.levelPadding||0}get useVirtualScroll(){return this.options.useVirtualScroll}get animateExpand(){return this.options.animateExpand}get animateSpeed(){return this.options.animateSpeed||1}get animateAcceleration(){return this.options.animateAcceleration||1.2}get scrollOnActivate(){return void 0===this.options.scrollOnActivate||this.options.scrollOnActivate}get rtl(){return!!this.options.rtl}get rootId(){return this.options.rootId}get useCheckbox(){return this.options.useCheckbox}get useTriState(){return void 0===this.options.useTriState||this.options.useTriState}get scrollContainer(){return this.options.scrollContainer}get allowDragoverStyling(){return void 0===this.options.allowDragoverStyling||this.options.allowDragoverStyling}getNodeClone(e){return this.options.getNodeClone?this.options.getNodeClone(e):Di(Object.assign({},e.data),["id"])}allowDrop(e,t,n){return this.options.allowDrop instanceof Function?this.options.allowDrop(e,t,n):void 0===this.options.allowDrop||this.options.allowDrop}allowDrag(e){return this.options.allowDrag instanceof Function?this.options.allowDrag(e):this.options.allowDrag}nodeClass(e){return this.options.nodeClass?this.options.nodeClass(e):""}nodeHeight(e){if(e.data.virtual)return 0;let t=this.options.nodeHeight||22;return"function"==typeof t&&(t=t(e)),t+(0===e.index?2:1)*this.dropSlotHeight}get dropSlotHeight(){return"number"==typeof(e=this.options.dropSlotHeight)||Object(xn.a)(e)&&"[object Number]"==Object(Cn.a)(e)?this.options.dropSlotHeight:2;var e}}const is={toggleExpanded:"toggleExpanded",activate:"activate",deactivate:"deactivate",nodeActivate:"nodeActivate",nodeDeactivate:"nodeDeactivate",select:"select",deselect:"deselect",focus:"focus",blur:"blur",initialized:"initialized",updateData:"updateData",moveNode:"moveNode",copyNode:"copyNode",event:"event",loadNodeChildren:"loadNodeChildren",changeFilter:"changeFilter",stateChange:"stateChange"};var rs=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},ss=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let os=(()=>{class e{constructor(e,t,n,i){this.data=e,this.parent=t,this.treeModel=n,this.position=0,this.allowDrop=(e,t)=>this.options.allowDrop(e,{parent:this,index:0},t),this.allowDragoverStyling=()=>this.options.allowDragoverStyling,null==this.id&&(this.id=Math.floor(1e13*Math.random())),this.index=i,this.getField("children")&&this._initChildren(),this.autoLoadChildren()}get isHidden(){return this.treeModel.isHidden(this)}get isExpanded(){return this.treeModel.isExpanded(this)}get isActive(){return this.treeModel.isActive(this)}get isFocused(){return this.treeModel.isNodeFocused(this)}get isSelected(){return this.isSelectable()?this.treeModel.isSelected(this):(e=this.children,t=e=>e.isSelected,(Object(Dn.a)(e)?Si:Gi)(e,Ui(t)));var e,t}get isAllSelected(){return this.isSelectable()?this.treeModel.isSelected(this):(e=this.children,t=e=>e.isAllSelected,(Object(Dn.a)(e)?Ji:Ki)(e,Ui(t)));var e,t}get isPartiallySelected(){return this.isSelected&&!this.isAllSelected}get level(){return this.parent?this.parent.level+1:0}get path(){return this.parent?[...this.parent.path,this.id]:[]}get elementRef(){throw"Element Ref is no longer supported since introducing virtual scroll\n\n You may use a template to obtain a reference to the element"}get originalNode(){return this._originalNode}get hasChildren(){return!!(this.getField("hasChildren")||this.children&&this.children.length>0)}get isCollapsed(){return!this.isExpanded}get isLeaf(){return!this.hasChildren}get isRoot(){return this.parent.data.virtual}get realParent(){return this.isRoot?null:this.parent}get options(){return this.treeModel.options}fireEvent(e){this.treeModel.fireEvent(e)}get displayField(){return this.getField("display")}get id(){return this.getField("id")}set id(e){this.setField("id",e)}getField(e){return this.data[this.options[`${e}Field`]]}setField(e,t){this.data[this.options[`${e}Field`]]=t}_findAdjacentSibling(e,t=!1){const n=this._getParentsChildren(t),i=n.indexOf(this);return n.length>i+e?n[i+e]:null}findNextSibling(e=!1){return this._findAdjacentSibling(1,e)}findPreviousSibling(e=!1){return this._findAdjacentSibling(-1,e)}getVisibleChildren(){return this.visibleChildren}get visibleChildren(){return(this.children||[]).filter(e=>!e.isHidden)}getFirstChild(e=!1){return Qi((e?this.visibleChildren:this.children)||[])}getLastChild(e=!1){return hi((e?this.visibleChildren:this.children)||[])}findNextNode(e=!0,t=!1){return e&&this.isExpanded&&this.getFirstChild(t)||this.findNextSibling(t)||this.parent&&this.parent.findNextNode(!1,t)}findPreviousNode(e=!1){let t=this.findPreviousSibling(e);return t?t._getLastOpenDescendant(e):this.realParent}_getLastOpenDescendant(e=!1){const t=this.getLastChild(e);return this.isCollapsed||!t?this:t._getLastOpenDescendant(e)}_getParentsChildren(e=!1){return this.parent&&(e?this.parent.getVisibleChildren():this.parent.children)||[]}getIndexInParent(e=!1){return this._getParentsChildren(e).indexOf(this)}isDescendantOf(e){return this===e||this.parent&&this.parent.isDescendantOf(e)}getNodePadding(){return this.options.levelPadding*(this.level-1)+"px"}getClass(){return[this.options.nodeClass(this),`tree-node-level-${this.level}`].join(" ")}onDrop(e){this.mouseAction("drop",e.event,{from:e.element,to:{parent:this,index:0,dropOnNode:!0}})}allowDrag(){return this.options.allowDrag(this)}loadNodeChildren(){return this.options.getChildren?Promise.resolve(this.options.getChildren(this)).then(e=>{e&&(this.setField("children",e),this._initChildren(),this.options.useTriState&&this.treeModel.isSelected(this)&&this.setIsSelected(!0),this.children.forEach(e=>{e.getField("isExpanded")&&e.hasChildren&&e.expand()}))}).then(()=>{this.fireEvent({eventName:is.loadNodeChildren,node:this})}):Promise.resolve()}expand(){return this.isExpanded||this.toggleExpanded(),this}collapse(){return this.isExpanded&&this.toggleExpanded(),this}doForAll(e){Promise.resolve(e(this)).then(()=>{this.children&&this.children.forEach(t=>t.doForAll(e))})}expandAll(){this.doForAll(e=>e.expand())}collapseAll(){this.doForAll(e=>e.collapse())}ensureVisible(){return this.realParent&&(this.realParent.expand(),this.realParent.ensureVisible()),this}toggleExpanded(){return this.setIsExpanded(!this.isExpanded),this}setIsExpanded(e){return this.hasChildren&&this.treeModel.setExpandedNode(this,e),this}autoLoadChildren(){this.handler=nt(()=>this.isExpanded,e=>{!this.children&&this.hasChildren&&e&&this.loadNodeChildren()},{fireImmediately:!0})}dispose(){this.children&&this.children.forEach(e=>e.dispose()),this.handler&&this.handler(),this.parent=null,this.children=null}setIsActive(e,t=!1){return this.treeModel.setActiveNode(this,e,t),e&&this.focus(this.options.scrollOnActivate),this}isSelectable(){return this.isLeaf||!this.children||!this.options.useTriState}setIsSelected(e){return this.isSelectable()?this.treeModel.setSelectedNode(this,e):this.visibleChildren.forEach(t=>t.setIsSelected(e)),this}toggleSelected(){return this.setIsSelected(!this.isSelected),this}toggleActivated(e=!1){return this.setIsActive(!this.isActive,e),this}setActiveAndVisible(e=!1){return this.setIsActive(!0,e).ensureVisible(),setTimeout(this.scrollIntoView.bind(this)),this}scrollIntoView(e=!1){this.treeModel.virtualScroll.scrollIntoView(this,e)}focus(e=!0){let t=this.treeModel.getFocusedNode();return this.treeModel.setFocusedNode(this),e&&this.scrollIntoView(),t&&this.fireEvent({eventName:is.blur,node:t}),this.fireEvent({eventName:is.focus,node:this}),this}blur(){let e=this.treeModel.getFocusedNode();return this.treeModel.setFocusedNode(null),e&&this.fireEvent({eventName:is.blur,node:this}),this}setIsHidden(e){this.treeModel.setIsHidden(this,e)}hide(){this.setIsHidden(!0)}show(){this.setIsHidden(!1)}mouseAction(e,t,n=null){this.treeModel.setFocus(!0);const i=this.options.actionMapping.mouse[e];i&&i(this.treeModel,this,t,n)}getSelfHeight(){return this.options.nodeHeight(this)}_initChildren(){this.children=this.getField("children").map((t,n)=>new e(t,this,this.treeModel,n))}}return rs([se,ss("design:type",Object),ss("design:paramtypes",[])],e.prototype,"isHidden",null),rs([se,ss("design:type",Object),ss("design:paramtypes",[])],e.prototype,"isExpanded",null),rs([se,ss("design:type",Object),ss("design:paramtypes",[])],e.prototype,"isActive",null),rs([se,ss("design:type",Object),ss("design:paramtypes",[])],e.prototype,"isFocused",null),rs([se,ss("design:type",Object),ss("design:paramtypes",[])],e.prototype,"isSelected",null),rs([se,ss("design:type",Object),ss("design:paramtypes",[])],e.prototype,"isAllSelected",null),rs([se,ss("design:type",Object),ss("design:paramtypes",[])],e.prototype,"isPartiallySelected",null),rs([te,ss("design:type",Array)],e.prototype,"children",void 0),rs([te,ss("design:type",Number)],e.prototype,"index",void 0),rs([te,ss("design:type",Object)],e.prototype,"position",void 0),rs([te,ss("design:type",Number)],e.prototype,"height",void 0),rs([se,ss("design:type",Number),ss("design:paramtypes",[])],e.prototype,"level",null),rs([se,ss("design:type",Array),ss("design:paramtypes",[])],e.prototype,"path",null),rs([se,ss("design:type",Object),ss("design:paramtypes",[])],e.prototype,"visibleChildren",null),rs([Ke,ss("design:type",Function),ss("design:paramtypes",[Object]),ss("design:returntype",void 0)],e.prototype,"setIsSelected",null),rs([Ke,ss("design:type",Function),ss("design:paramtypes",[]),ss("design:returntype",void 0)],e.prototype,"_initChildren",null),e})();var as=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},cs=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let ls=(()=>{class e{constructor(){this.options=new ns,this.eventNames=Object.keys(is),this.expandedNodeIds={},this.selectedLeafNodeIds={},this.activeNodeIds={},this.hiddenNodeIds={},this.focusedNodeId=null,this.firstUpdate=!0,this.subscriptions=[]}fireEvent(e){e.treeModel=this,this.events[e.eventName].emit(e),this.events.event.emit(e)}subscribe(e,t){const n=this.events[e].subscribe(t);this.subscriptions.push(n)}getFocusedNode(){return this.focusedNode}getActiveNode(){return this.activeNodes[0]}getActiveNodes(){return this.activeNodes}getVisibleRoots(){return this.virtualRoot.visibleChildren}getFirstRoot(e=!1){return Qi(e?this.getVisibleRoots():this.roots)}getLastRoot(e=!1){return hi(e?this.getVisibleRoots():this.roots)}get isFocused(){return e.focusedTree===this}isNodeFocused(e){return this.focusedNode===e}isEmptyTree(){return this.roots&&0===this.roots.length}get focusedNode(){return this.focusedNodeId?this.getNodeById(this.focusedNodeId):null}get expandedNodes(){const e=Object.keys(this.expandedNodeIds).filter(e=>this.expandedNodeIds[e]).map(e=>this.getNodeById(e));return Zi(e)}get activeNodes(){const e=Object.keys(this.activeNodeIds).filter(e=>this.activeNodeIds[e]).map(e=>this.getNodeById(e));return Zi(e)}get hiddenNodes(){const e=Object.keys(this.hiddenNodeIds).filter(e=>this.hiddenNodeIds[e]).map(e=>this.getNodeById(e));return Zi(e)}get selectedLeafNodes(){const e=Object.keys(this.selectedLeafNodeIds).filter(e=>this.selectedLeafNodeIds[e]).map(e=>this.getNodeById(e));return Zi(e)}getNodeByPath(e,t=null){if(!e)return null;if(t=t||this.virtualRoot,0===e.length)return t;if(!t.children)return null;const n=e.shift(),i=ur(t.children,{id:n});return i?this.getNodeByPath(e,i):null}getNodeById(e){const t=e.toString();return this.getNodeBy(e=>e.id.toString()===t)}getNodeBy(e,t=null){if(!(t=t||this.virtualRoot).children)return null;const n=ur(t.children,e);if(n)return n;for(let i of t.children){const t=this.getNodeBy(e,i);if(t)return t}}isExpanded(e){return this.expandedNodeIds[e.id]}isHidden(e){return this.hiddenNodeIds[e.id]}isActive(e){return this.activeNodeIds[e.id]}isSelected(e){return this.selectedLeafNodeIds[e.id]}ngOnDestroy(){this.dispose(),this.unsubscribeAll()}dispose(){this.virtualRoot&&this.virtualRoot.dispose()}unsubscribeAll(){this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions=[]}setData({nodes:e,options:t=null,events:n=null}){t&&(this.options=new ns(t)),n&&(this.events=n),e&&(this.nodes=e),this.update()}update(){let e={id:this.options.rootId,virtual:!0,[this.options.childrenField]:this.nodes};this.dispose(),this.virtualRoot=new os(e,null,this,0),this.roots=this.virtualRoot.children,this.firstUpdate?this.roots&&(this.firstUpdate=!1,this._calculateExpandedNodes()):this.fireEvent({eventName:is.updateData})}setFocusedNode(e){this.focusedNodeId=e?e.id:null}setFocus(t){e.focusedTree=t?this:null}doForAll(e){this.roots.forEach(t=>t.doForAll(e))}focusNextNode(){let e=this.getFocusedNode(),t=e?e.findNextNode(!0,!0):this.getFirstRoot(!0);t&&t.focus()}focusPreviousNode(){let e=this.getFocusedNode(),t=e?e.findPreviousNode(!0):this.getLastRoot(!0);t&&t.focus()}focusDrillDown(){let e=this.getFocusedNode();if(e&&e.isCollapsed&&e.hasChildren)e.toggleExpanded();else{let t=e?e.getFirstChild(!0):this.getFirstRoot(!0);t&&t.focus()}}focusDrillUp(){let e=this.getFocusedNode();if(e)if(e.isExpanded)e.toggleExpanded();else{let t=e.realParent;t&&t.focus()}}setActiveNode(e,t,n=!1){n?this._setActiveNodeMulti(e,t):this._setActiveNodeSingle(e,t),t?(e.focus(this.options.scrollOnActivate),this.fireEvent({eventName:is.activate,node:e}),this.fireEvent({eventName:is.nodeActivate,node:e})):(this.fireEvent({eventName:is.deactivate,node:e}),this.fireEvent({eventName:is.nodeDeactivate,node:e}))}setSelectedNode(e,t){this.selectedLeafNodeIds=Object.assign({},this.selectedLeafNodeIds,{[e.id]:t}),t?(e.focus(),this.fireEvent({eventName:is.select,node:e})):this.fireEvent({eventName:is.deselect,node:e})}setExpandedNode(e,t){this.expandedNodeIds=Object.assign({},this.expandedNodeIds,{[e.id]:t}),this.fireEvent({eventName:is.toggleExpanded,node:e,isExpanded:t})}expandAll(){this.roots.forEach(e=>e.expandAll())}collapseAll(){this.roots.forEach(e=>e.collapseAll())}setIsHidden(e,t){this.hiddenNodeIds=Object.assign({},this.hiddenNodeIds,{[e.id]:t})}setHiddenNodeIds(e){this.hiddenNodeIds=e.reduce((e,t)=>Object.assign(e,{[t]:!0}),{})}performKeyAction(e,t){const n=this.options.actionMapping.keys[t.keyCode];return!!n&&(t.preventDefault(),n(this,e,t),!0)}filterNodes(e,t=!0){let n;if(!e)return this.clearFilter();if(dr(e))n=t=>-1!==t.displayField.toLowerCase().indexOf(e.toLowerCase());else{if(!Object(Tn.a)(e))return console.error("Don't know what to do with filter",e),void console.error("Should be either a string or function");n=e}const i={};this.roots.forEach(e=>this._filterNode(i,e,n,t)),this.hiddenNodeIds=i,this.fireEvent({eventName:is.changeFilter})}clearFilter(){this.hiddenNodeIds={},this.fireEvent({eventName:is.changeFilter})}moveNode(e,t){const n=e.getIndexInParent(),i=e.parent;if(!this.canMoveNode(e,t,n))return;const r=i.getField("children");t.parent.getField("children")||t.parent.setField("children",[]);const s=t.parent.getField("children"),o=r.splice(n,1)[0];let a=i===t.parent&&t.index>n?t.index-1:t.index;s.splice(a,0,o),i.treeModel.update(),t.parent.treeModel!==i.treeModel&&t.parent.treeModel.update(),this.fireEvent({eventName:is.moveNode,node:o,to:{parent:t.parent.data,index:a},from:{parent:i.data,index:n}})}copyNode(e,t){const n=e.getIndexInParent();if(!this.canMoveNode(e,t,n))return;t.parent.getField("children")||t.parent.setField("children",[]);const i=t.parent.getField("children"),r=this.options.getNodeClone(e);i.splice(t.index,0,r),e.treeModel.update(),t.parent.treeModel!==e.treeModel&&t.parent.treeModel.update(),this.fireEvent({eventName:is.copyNode,node:r,to:{parent:t.parent.data,index:t.index}})}getState(){return{expandedNodeIds:this.expandedNodeIds,selectedLeafNodeIds:this.selectedLeafNodeIds,activeNodeIds:this.activeNodeIds,hiddenNodeIds:this.hiddenNodeIds,focusedNodeId:this.focusedNodeId}}setState(e){e&&Object.assign(this,{expandedNodeIds:e.expandedNodeIds||{},selectedLeafNodeIds:e.selectedLeafNodeIds||{},activeNodeIds:e.activeNodeIds||{},hiddenNodeIds:e.hiddenNodeIds||{},focusedNodeId:e.focusedNodeId})}subscribeToState(e){Ze(()=>e(this.getState()))}canMoveNode(e,t,n){return n||e.getIndexInParent(),(e.parent!==t.parent||n!==t.index)&&!t.parent.isDescendantOf(e)}calculateExpandedNodes(){this._calculateExpandedNodes()}_filterNode(e,t,n,i){let r=n(t);return t.children&&t.children.forEach(t=>{this._filterNode(e,t,n,i)&&(r=!0)}),r||(e[t.id]=!0),i&&r&&t.ensureVisible(),r}_calculateExpandedNodes(e=null){(e=e||this.virtualRoot).data[this.options.isExpandedField]&&(this.expandedNodeIds=Object.assign({},this.expandedNodeIds,{[e.id]:!0})),e.children&&e.children.forEach(e=>this._calculateExpandedNodes(e))}_setActiveNodeSingle(e,t){this.activeNodes.filter(t=>t!==e).forEach(e=>{this.fireEvent({eventName:is.deactivate,node:e}),this.fireEvent({eventName:is.nodeDeactivate,node:e})}),this.activeNodeIds=t?{[e.id]:!0}:{}}_setActiveNodeMulti(e,t){this.activeNodeIds=Object.assign({},this.activeNodeIds,{[e.id]:t})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Nb({token:e,factory:e.\u0275fac}),e.focusedTree=null,as([te,cs("design:type",Array)],e.prototype,"roots",void 0),as([te,cs("design:type",Object)],e.prototype,"expandedNodeIds",void 0),as([te,cs("design:type",Object)],e.prototype,"selectedLeafNodeIds",void 0),as([te,cs("design:type",Object)],e.prototype,"activeNodeIds",void 0),as([te,cs("design:type",Object)],e.prototype,"hiddenNodeIds",void 0),as([te,cs("design:type",Object)],e.prototype,"focusedNodeId",void 0),as([te,cs("design:type",os)],e.prototype,"virtualRoot",void 0),as([se,cs("design:type",Object),cs("design:paramtypes",[])],e.prototype,"focusedNode",null),as([se,cs("design:type",Object),cs("design:paramtypes",[])],e.prototype,"expandedNodes",null),as([se,cs("design:type",Object),cs("design:paramtypes",[])],e.prototype,"activeNodes",null),as([se,cs("design:type",Object),cs("design:paramtypes",[])],e.prototype,"hiddenNodes",null),as([se,cs("design:type",Object),cs("design:paramtypes",[])],e.prototype,"selectedLeafNodes",null),as([Ke,cs("design:type",Function),cs("design:paramtypes",[Object]),cs("design:returntype",void 0)],e.prototype,"setData",null),as([Ke,cs("design:type",Function),cs("design:paramtypes",[]),cs("design:returntype",void 0)],e.prototype,"update",null),as([Ke,cs("design:type",Function),cs("design:paramtypes",[Object]),cs("design:returntype",void 0)],e.prototype,"setFocusedNode",null),as([Ke,cs("design:type",Function),cs("design:paramtypes",[Object]),cs("design:returntype",void 0)],e.prototype,"setFocus",null),as([Ke,cs("design:type",Function),cs("design:paramtypes",[Object]),cs("design:returntype",void 0)],e.prototype,"doForAll",null),as([Ke,cs("design:type",Function),cs("design:paramtypes",[]),cs("design:returntype",void 0)],e.prototype,"focusNextNode",null),as([Ke,cs("design:type",Function),cs("design:paramtypes",[]),cs("design:returntype",void 0)],e.prototype,"focusPreviousNode",null),as([Ke,cs("design:type",Function),cs("design:paramtypes",[]),cs("design:returntype",void 0)],e.prototype,"focusDrillDown",null),as([Ke,cs("design:type",Function),cs("design:paramtypes",[]),cs("design:returntype",void 0)],e.prototype,"focusDrillUp",null),as([Ke,cs("design:type",Function),cs("design:paramtypes",[Object,Object,Object]),cs("design:returntype",void 0)],e.prototype,"setActiveNode",null),as([Ke,cs("design:type",Function),cs("design:paramtypes",[Object,Object]),cs("design:returntype",void 0)],e.prototype,"setSelectedNode",null),as([Ke,cs("design:type",Function),cs("design:paramtypes",[Object,Object]),cs("design:returntype",void 0)],e.prototype,"setExpandedNode",null),as([Ke,cs("design:type",Function),cs("design:paramtypes",[]),cs("design:returntype",void 0)],e.prototype,"expandAll",null),as([Ke,cs("design:type",Function),cs("design:paramtypes",[]),cs("design:returntype",void 0)],e.prototype,"collapseAll",null),as([Ke,cs("design:type",Function),cs("design:paramtypes",[Object,Object]),cs("design:returntype",void 0)],e.prototype,"setIsHidden",null),as([Ke,cs("design:type",Function),cs("design:paramtypes",[Object]),cs("design:returntype",void 0)],e.prototype,"setHiddenNodeIds",null),as([Ke,cs("design:type",Function),cs("design:paramtypes",[Object,Object]),cs("design:returntype",void 0)],e.prototype,"filterNodes",null),as([Ke,cs("design:type",Function),cs("design:paramtypes",[]),cs("design:returntype",void 0)],e.prototype,"clearFilter",null),as([Ke,cs("design:type",Function),cs("design:paramtypes",[Object,Object]),cs("design:returntype",void 0)],e.prototype,"moveNode",null),as([Ke,cs("design:type",Function),cs("design:paramtypes",[Object,Object]),cs("design:returntype",void 0)],e.prototype,"copyNode",null),as([Ke,cs("design:type",Function),cs("design:paramtypes",[Object]),cs("design:returntype",void 0)],e.prototype,"setState",null),e})(),us=(()=>{class e{constructor(){this._draggedElement=null}set(e){this._draggedElement=e}get(){return this._draggedElement}isDragging(){return!!this.get()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Nb)({factory:function(){return new e},token:e,providedIn:"root"}),e})();var ds=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},hs=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};const fs=150;let ps=(()=>{class e{constructor(e){this.treeModel=e,this.yBlocks=0,this.x=0,this.viewportHeight=null,this.viewport=null,e.virtualScroll=this,this._dispose=[Ze(()=>this.fixScroll())]}get y(){return this.yBlocks*fs}get totalHeight(){return this.treeModel.virtualRoot?this.treeModel.virtualRoot.height:0}fireEvent(e){this.treeModel.fireEvent(e)}init(){const e=this.recalcPositions.bind(this);e(),this._dispose=[...this._dispose,nt(()=>this.treeModel.roots,e),nt(()=>this.treeModel.expandedNodeIds,e),nt(()=>this.treeModel.hiddenNodeIds,e)],this.treeModel.subscribe(is.loadNodeChildren,e)}isEnabled(){return this.treeModel.options.useVirtualScroll}_setYBlocks(e){this.yBlocks=e}recalcPositions(){this.treeModel.virtualRoot.height=this._getPositionAfter(this.treeModel.getVisibleRoots(),0)}_getPositionAfter(e,t){let n=t;return e.forEach(e=>{e.position=n,n=this._getPositionAfterNode(e,n)}),n}_getPositionAfterNode(e,t){let n=e.getSelfHeight()+t;return e.children&&e.isExpanded&&(n=this._getPositionAfter(e.visibleChildren,n)),e.height=n-t,n}clear(){this._dispose.forEach(e=>e())}setViewport(e){Object.assign(this,{viewport:e,x:e.scrollLeft,yBlocks:Math.round(e.scrollTop/fs),viewportHeight:e.getBoundingClientRect?e.getBoundingClientRect().height:0})}scrollIntoView(e,t,n=!0){if(e.options.scrollContainer){const i=e.options.scrollContainer,r=i.getBoundingClientRect().height,s=i.getBoundingClientRect().top,o=this.viewport.getBoundingClientRect().top+e.position-s;(t||o<i.scrollTop||o+e.getSelfHeight()>i.scrollTop+r)&&(i.scrollTop=n?o-r/2:o)}else(t||e.position<this.y||e.position+e.getSelfHeight()>this.y+this.viewportHeight)&&this.viewport&&(this.viewport.scrollTop=n?e.position-this.viewportHeight/2:e.position,this._setYBlocks(Math.floor(this.viewport.scrollTop/fs)))}getViewportNodes(e){if(!e)return[];const t=e.filter(e=>!e.isHidden);if(!this.isEnabled())return t;if(!this.viewportHeight||!t.length)return[];const n=ms(t,e=>e.position+500>this.y||e.position+e.height>this.y),i=ms(t,e=>e.position-500>this.y+this.viewportHeight,n),r=[];if(i-n>(1e3+this.viewportHeight)/t[0].treeModel.options.options.nodeHeight)return[];for(let s=n;s<=i;s++)r.push(t[s]);return r}fixScroll(){const e=Math.max(0,this.totalHeight-this.viewportHeight);this.y<0&&this._setYBlocks(0),this.y>e&&this._setYBlocks(e/fs)}}return e.\u0275fac=function(t){return new(t||e)(i.ic(ls))},e.\u0275prov=i.Nb({token:e,factory:e.\u0275fac}),ds([te,hs("design:type",Object)],e.prototype,"yBlocks",void 0),ds([te,hs("design:type",Object)],e.prototype,"x",void 0),ds([te,hs("design:type",Object)],e.prototype,"viewportHeight",void 0),ds([se,hs("design:type",Object),hs("design:paramtypes",[])],e.prototype,"y",null),ds([se,hs("design:type",Object),hs("design:paramtypes",[])],e.prototype,"totalHeight",null),ds([Ke,hs("design:type",Function),hs("design:paramtypes",[Object]),hs("design:returntype",void 0)],e.prototype,"_setYBlocks",null),ds([Ke,hs("design:type",Function),hs("design:paramtypes",[]),hs("design:returntype",void 0)],e.prototype,"recalcPositions",null),ds([Ke,hs("design:type",Function),hs("design:paramtypes",[Object]),hs("design:returntype",void 0)],e.prototype,"setViewport",null),ds([Ke,hs("design:type",Function),hs("design:paramtypes",[Object,Object,Object]),hs("design:returntype",void 0)],e.prototype,"scrollIntoView",null),e})();function ms(e,t,n=0){let i=n,r=e.length-1;for(;i!==r;){let n=Math.floor((i+r)/2);t(e[n])?r=n:i=i===n?r:n}return i}let bs=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Lb({type:e,selectors:[["tree-loading-component"]],inputs:{template:"template",node:"node"},decls:2,vars:5,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){1&e&&(i.Pc(0,Dr,2,0,"span",0),i.Tb(1,1)),2&e&&(i.uc("ngIf",!t.template),i.Db(1),i.uc("ngTemplateOutlet",t.template)("ngTemplateOutletContext",i.zc(3,Sr,t.node)))},directives:[r.r,r.w],encapsulation:2}),e})(),gs=(()=>{class e{constructor(e,t,n){this.elementRef=e,this.ngZone=t,this.virtualScroll=n,this.setViewport=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Object(Mn.a)(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),function(e,t,n){var i,r,s,o,a,c,l=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=i,s=r;return i=r=void 0,l=t,o=e.apply(s,n)}function p(e){return l=e,a=setTimeout(b,t),u?f(e):o}function m(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-l>=s}function b(){var e=fr();if(m(e))return g(e);a=setTimeout(b,function(e){var n=t-(e-c);return d?mr(n,s-(e-l)):n}(e))}function g(e){return a=void 0,h&&i?f(e):(i=r=void 0,o)}function _(){var e=fr(),n=m(e);if(i=arguments,r=this,c=e,n){if(void 0===a)return p(c);if(d)return clearTimeout(a),a=setTimeout(b,t),f(c)}return void 0===a&&(a=setTimeout(b,t)),o}return t=ar(t)||0,Object(Mn.a)(n)&&(u=!!n.leading,s=(d="maxWait"in n)?pr(ar(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),_.cancel=function(){void 0!==a&&clearTimeout(a),l=0,i=c=r=a=void 0},_.flush=function(){return void 0===a?o:g(fr())},_}(e,t,{leading:i,maxWait:t,trailing:r})}(()=>{this.virtualScroll.setViewport(this.elementRef.nativeElement)},17),this.scrollEventHandler=this.setViewport.bind(this)}ngOnInit(){this.virtualScroll.init()}ngAfterViewInit(){setTimeout(()=>{this.setViewport(),this.virtualScroll.fireEvent({eventName:is.initialized})});let e=this.elementRef.nativeElement;this.ngZone.runOutsideAngular(()=>{e.addEventListener("scroll",this.scrollEventHandler)})}ngOnDestroy(){this.virtualScroll.clear(),this.elementRef.nativeElement.removeEventListener("scroll",this.scrollEventHandler)}getTotalHeight(){return this.virtualScroll.isEnabled()&&this.virtualScroll.totalHeight+"px"||"auto"}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.n),i.Rb(i.D),i.Rb(ps))},e.\u0275cmp=i.Lb({type:e,selectors:[["tree-viewport"]],features:[i.Cb([ps])],ngContentSelectors:Tr,decls:1,vars:2,consts:[[4,"treeMobxAutorun"]],template:function(e,t){1&e&&(i.tc(),i.Pc(0,xr,3,2,"ng-container",0)),2&e&&i.uc("treeMobxAutorun",i.yc(1,kr))},directives:[Zr],encapsulation:2}),e})(),_s=(()=>{class e{constructor(e,t){this.treeModel=e,this.treeDraggedElement=t,e.eventNames.forEach(e=>this[e]=new i.p),e.subscribeToState(e=>this.stateChange.emit(e))}set nodes(e){}set options(e){}set focused(e){this.treeModel.setFocus(e)}set state(e){this.treeModel.setState(e)}onKeydown(e){if(!this.treeModel.isFocused)return;if(_r(["input","textarea"],document.activeElement.tagName.toLowerCase()))return;const t=this.treeModel.getFocusedNode();this.treeModel.performKeyAction(t,e)}onMousedown(e){(function e(t,n){return!t||t.localName!==n&&e(t.parentElement,n)})(e.target,"tree-root")&&this.treeModel.setFocus(!1)}ngOnChanges(e){(e.options||e.nodes)&&this.treeModel.setData({options:e.options&&e.options.currentValue,nodes:e.nodes&&e.nodes.currentValue,events:wr(this,this.treeModel.eventNames)})}sizeChanged(){this.viewportComponent.setViewport()}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(ls),i.Rb(us))},e.\u0275cmp=i.Lb({type:e,selectors:[["Tree"],["tree-root"]],contentQueries:function(e,t,n){if(1&e&&(i.Kb(n,Mr,1),i.Kb(n,Cr,1),i.Kb(n,Or,1),i.Kb(n,Lr,1)),2&e){let e;i.Ec(e=i.mc())&&(t.loadingTemplate=e.first),i.Ec(e=i.mc())&&(t.treeNodeTemplate=e.first),i.Ec(e=i.mc())&&(t.treeNodeWrapperTemplate=e.first),i.Ec(e=i.mc())&&(t.treeNodeFullTemplate=e.first)}},viewQuery:function(e,t){if(1&e&&i.Wc(Er,1),2&e){let e;i.Ec(e=i.mc())&&(t.viewportComponent=e.first)}},hostBindings:function(e,t){1&e&&i.lc("keydown",function(e){return t.onKeydown(e)},!1,i.Gc)("mousedown",function(e){return t.onMousedown(e)},!1,i.Gc)},inputs:{nodes:"nodes",options:"options",focused:"focused",state:"state"},outputs:{toggleExpanded:"toggleExpanded",activate:"activate",deactivate:"deactivate",nodeActivate:"nodeActivate",nodeDeactivate:"nodeDeactivate",select:"select",deselect:"deselect",focus:"focus",blur:"blur",updateData:"updateData",initialized:"initialized",moveNode:"moveNode",copyNode:"copyNode",loadNodeChildren:"loadNodeChildren",changeFilter:"changeFilter",event:"event",stateChange:"stateChange"},features:[i.Cb([ls]),i.Bb],decls:5,vars:6,consts:[["viewport",""],[1,"angular-tree-component"],[3,"nodes","treeModel","templates",4,"ngIf"],["class","empty-tree-drop-slot",3,"dropIndex","node",4,"ngIf"],[3,"nodes","treeModel","templates"],[1,"empty-tree-drop-slot",3,"dropIndex","node"]],template:function(e,t){1&e&&(i.Xb(0,"tree-viewport",null,0),i.Xb(2,"div",1),i.Pc(3,Ir,1,8,"tree-node-collection",2),i.Pc(4,Rr,1,2,"tree-node-drop-slot",3),i.Wb(),i.Wb()),2&e&&(i.Db(2),i.Jb("node-dragging",t.treeDraggedElement.isDragging())("angular-tree-component-rtl",t.treeModel.options.rtl),i.Db(1),i.uc("ngIf",t.treeModel.roots),i.Db(1),i.uc("ngIf",t.treeModel.isEmptyTree()))},directives:function(){return[gs,r.r,Os,ws]},encapsulation:2}),e})(),vs=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Lb({type:e,selectors:[["TreeNode"],["tree-node"]],inputs:{node:"node",index:"index",templates:"templates"},decls:1,vars:2,consts:[[4,"treeMobxAutorun"],[3,"class","tree-node","tree-node-expanded","tree-node-collapsed","tree-node-leaf","tree-node-active","tree-node-focused",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"dropIndex","node",4,"ngIf"],[3,"node","index","templates"],[3,"node","templates"],[3,"dropIndex","node"]],template:function(e,t){1&e&&i.Pc(0,jr,3,8,"ng-container",0),2&e&&i.uc("treeMobxAutorun",i.yc(1,kr))},directives:function(){return[Zr,r.r,r.w,Ls,Ss,ws]},encapsulation:2}),e})(),ys=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Lb({type:e,selectors:[["tree-node-content"]],inputs:{node:"node",index:"index",template:"template"},decls:2,vars:7,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){1&e&&(i.Pc(0,Yr,2,1,"span",0),i.Tb(1,1)),2&e&&(i.uc("ngIf",!t.template),i.Db(1),i.uc("ngTemplateOutlet",t.template)("ngTemplateOutletContext",i.Bc(3,Nr,t.node,t.node,t.index)))},directives:[r.r,r.w],encapsulation:2}),e})(),ws=(()=>{class e{onDrop(e){this.node.mouseAction("drop",e.event,{from:e.element,to:{parent:this.node,index:this.dropIndex}})}allowDrop(e,t){return this.node.options.allowDrop(e,{parent:this.node,index:this.dropIndex},t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Lb({type:e,selectors:[["TreeNodeDropSlot"],["tree-node-drop-slot"]],inputs:{node:"node",dropIndex:"dropIndex"},decls:1,vars:2,consts:[[1,"node-drop-slot",3,"treeAllowDrop","allowDragoverStyling","treeDrop"]],template:function(e,t){1&e&&(i.Xb(0,"div",0),i.lc("treeDrop",function(e){return t.onDrop(e)}),i.Wb()),2&e&&i.uc("treeAllowDrop",t.allowDrop.bind(t))("allowDragoverStyling",!0)},directives:function(){return[Rs]},encapsulation:2}),e})(),Ds=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Lb({type:e,selectors:[["tree-node-expander"]],inputs:{node:"node"},decls:1,vars:2,consts:[[4,"treeMobxAutorun"],["class","toggle-children-wrapper",3,"toggle-children-wrapper-expanded","toggle-children-wrapper-collapsed","click",4,"ngIf"],["class","toggle-children-placeholder",4,"ngIf"],[1,"toggle-children-wrapper",3,"click"],[1,"toggle-children"],[1,"toggle-children-placeholder"]],template:function(e,t){1&e&&i.Pc(0,Hr,3,2,"ng-container",0),2&e&&i.uc("treeMobxAutorun",i.yc(1,kr))},directives:[Zr,r.r],encapsulation:2}),e})(),Ss=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Lb({type:e,selectors:[["tree-node-children"]],inputs:{node:"node",templates:"templates"},decls:1,vars:2,consts:[[4,"treeMobxAutorun"],[3,"tree-children","tree-children-no-padding",4,"treeAnimateOpen","treeAnimateOpenSpeed","treeAnimateOpenAcceleration","treeAnimateOpenEnabled"],[3,"nodes","templates","treeModel",4,"ngIf"],["class","tree-node-loading",3,"padding-left","template","node",4,"ngIf"],[3,"nodes","templates","treeModel"],[1,"tree-node-loading",3,"template","node"]],template:function(e,t){1&e&&i.Pc(0,Ur,2,4,"ng-container",0),2&e&&i.uc("treeMobxAutorun",i.yc(1,kr))},directives:function(){return[Zr,Fs,r.r,Os,bs]},encapsulation:2}),e})();const xs=Object.assign(function(...e){return Ke(...e)},Ke),ks=Object.assign(function(...e){return se(...e)},se),Ts=Object.assign(function(...e){return te(...e)},te);var Ms=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},Cs=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Os=(()=>{class e{constructor(){this._dispose=[]}get nodes(){return this._nodes}set nodes(e){this.setNodes(e)}get marginTop(){const e=this.viewportNodes&&this.viewportNodes.length&&this.viewportNodes[0];return(e&&e.parent?e.position-e.parent.position-e.parent.getSelfHeight():0)+"px"}setNodes(e){this._nodes=e}ngOnInit(){this.virtualScroll=this.treeModel.virtualScroll,this._dispose=[nt(()=>this.virtualScroll.getViewportNodes(this.nodes).map(e=>e.index),e=>{this.viewportNodes=e.map(e=>this.nodes[e])},{compareStructural:!0,fireImmediately:!0}),nt(()=>this.nodes,e=>{this.viewportNodes=this.virtualScroll.getViewportNodes(e)})]}ngOnDestroy(){this._dispose.forEach(e=>e())}trackNode(e,t){return t.id}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Lb({type:e,selectors:[["tree-node-collection"]],inputs:{nodes:"nodes",treeModel:"treeModel",templates:"templates"},decls:1,vars:2,consts:[[4,"treeMobxAutorun"],[3,"node","index","templates",4,"ngFor","ngForOf","ngForTrackBy"],[3,"node","index","templates"]],template:function(e,t){1&e&&i.Pc(0,Gr,3,4,"ng-container",0),2&e&&i.uc("treeMobxAutorun",i.yc(1,kr))},directives:[Zr,r.q,vs],encapsulation:2}),Ms([Ts,Cs("design:type",Object)],e.prototype,"_nodes",void 0),Ms([Ts,Cs("design:type",Array)],e.prototype,"viewportNodes",void 0),Ms([ks,Cs("design:type",String),Cs("design:paramtypes",[])],e.prototype,"marginTop",null),Ms([xs,Cs("design:type",Function),Cs("design:paramtypes",[Object]),Cs("design:returntype",void 0)],e.prototype,"setNodes",null),e})(),Ls=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Lb({type:e,selectors:[["tree-node-wrapper"]],inputs:{node:"node",index:"index",templates:"templates"},decls:2,vars:8,consts:[["class","node-wrapper",3,"padding-left",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"node-wrapper"],[3,"node",4,"ngIf"],[3,"node"],[1,"node-content-wrapper",3,"treeAllowDrop","allowDragoverStyling","treeDrag","treeDragEnabled","click","dblclick","mouseover","mouseout","contextmenu","treeDrop","treeDropDragOver","treeDropDragLeave","treeDropDragEnter"],[3,"node","index","template"]],template:function(e,t){1&e&&(i.Pc(0,Kr,5,15,"div",0),i.Tb(1,1)),2&e&&(i.uc("ngIf",!t.templates.treeNodeWrapperTemplate),i.Db(1),i.uc("ngTemplateOutlet",t.templates.treeNodeWrapperTemplate)("ngTemplateOutletContext",i.Cc(3,Wr,t.node,t.node,t.index,t.templates)))},directives:function(){return[r.r,r.w,Ds,Ps,Rs,ys,Es]},encapsulation:2}),e})(),Es=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Lb({type:e,selectors:[["tree-node-checkbox"]],inputs:{node:"node"},decls:1,vars:2,consts:[[4,"treeMobxAutorun"],["type","checkbox",1,"tree-node-checkbox",3,"checked","indeterminate","click"]],template:function(e,t){1&e&&i.Pc(0,Qr,2,2,"ng-container",0),2&e&&i.uc("treeMobxAutorun",i.yc(1,kr))},directives:[Zr],encapsulation:2}),e})();const As="is-dragging-over",Is="is-dragging-over-disabled";let Rs=(()=>{class e{constructor(e,t,n,r){this.el=e,this.renderer=t,this.treeDraggedElement=n,this.ngZone=r,this.allowDragoverStyling=!0,this.onDropCallback=new i.p,this.onDragOverCallback=new i.p,this.onDragLeaveCallback=new i.p,this.onDragEnterCallback=new i.p,this._allowDrop=(e,t)=>!0,this.dragOverEventHandler=this.onDragOver.bind(this),this.dragEnterEventHandler=this.onDragEnter.bind(this),this.dragLeaveEventHandler=this.onDragLeave.bind(this)}set treeAllowDrop(e){this._allowDrop=e instanceof Function?e:(t,n)=>e}allowDrop(e){return this._allowDrop(this.treeDraggedElement.get(),e)}ngAfterViewInit(){let e=this.el.nativeElement;this.ngZone.runOutsideAngular(()=>{e.addEventListener("dragover",this.dragOverEventHandler),e.addEventListener("dragenter",this.dragEnterEventHandler),e.addEventListener("dragleave",this.dragLeaveEventHandler)})}ngOnDestroy(){let e=this.el.nativeElement;e.removeEventListener("dragover",this.dragOverEventHandler),e.removeEventListener("dragenter",this.dragEnterEventHandler),e.removeEventListener("dragleave",this.dragLeaveEventHandler)}onDragOver(e){if(!this.allowDrop(e))return this.allowDragoverStyling?this.addDisabledClass():void 0;this.onDragOverCallback.emit({event:e,element:this.treeDraggedElement.get()}),e.preventDefault(),this.allowDragoverStyling&&this.addClass()}onDragEnter(e){this.allowDrop(e)&&(e.preventDefault(),this.onDragEnterCallback.emit({event:e,element:this.treeDraggedElement.get()}))}onDragLeave(e){if(!this.allowDrop(e))return this.allowDragoverStyling?this.removeDisabledClass():void 0;this.onDragLeaveCallback.emit({event:e,element:this.treeDraggedElement.get()}),this.allowDragoverStyling&&this.removeClass()}onDrop(e){this.allowDrop(e)&&(e.preventDefault(),this.onDropCallback.emit({event:e,element:this.treeDraggedElement.get()}),this.allowDragoverStyling&&this.removeClass(),this.treeDraggedElement.set(null))}addClass(){this.renderer.addClass(this.el.nativeElement,As)}removeClass(){this.renderer.removeClass(this.el.nativeElement,As)}addDisabledClass(){this.renderer.addClass(this.el.nativeElement,Is)}removeDisabledClass(){this.renderer.removeClass(this.el.nativeElement,Is)}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.n),i.Rb(i.H),i.Rb(us),i.Rb(i.D))},e.\u0275dir=i.Mb({type:e,selectors:[["","treeDrop",""]],hostBindings:function(e,t){1&e&&i.lc("drop",function(e){return t.onDrop(e)})},inputs:{allowDragoverStyling:"allowDragoverStyling",treeAllowDrop:"treeAllowDrop"},outputs:{onDropCallback:"treeDrop",onDragOverCallback:"treeDropDragOver",onDragLeaveCallback:"treeDropDragLeave",onDragEnterCallback:"treeDropDragEnter"}}),e})(),Ps=(()=>{class e{constructor(e,t,n,i){this.el=e,this.renderer=t,this.treeDraggedElement=n,this.ngZone=i,this.dragEventHandler=this.onDrag.bind(this)}ngAfterViewInit(){let e=this.el.nativeElement;this.ngZone.runOutsideAngular(()=>{e.addEventListener("drag",this.dragEventHandler)})}ngDoCheck(){this.renderer.setAttribute(this.el.nativeElement,"draggable",this.treeDragEnabled?"true":"false")}ngOnDestroy(){this.el.nativeElement.removeEventListener("drag",this.dragEventHandler)}onDragStart(e){e.dataTransfer.setData("text",e.target.id),this.treeDraggedElement.set(this.draggedElement),this.draggedElement.mouseAction&&this.draggedElement.mouseAction("dragStart",e)}onDrag(e){this.draggedElement.mouseAction&&this.draggedElement.mouseAction("drag",e)}onDragEnd(){this.draggedElement.mouseAction&&this.draggedElement.mouseAction("dragEnd"),this.treeDraggedElement.set(null)}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.n),i.Rb(i.H),i.Rb(us),i.Rb(i.D))},e.\u0275dir=i.Mb({type:e,selectors:[["","treeDrag",""]],hostBindings:function(e,t){1&e&&i.lc("dragstart",function(e){return t.onDragStart(e)})("dragend",function(){return t.onDragEnd()})},inputs:{draggedElement:["treeDrag","draggedElement"],treeDragEnabled:"treeDragEnabled"}}),e})(),Fs=(()=>{class e{constructor(e,t,n){this.renderer=e,this.templateRef=t,this.viewContainerRef=n}set isOpen(e){e?(this._show(),this.isEnabled&&!1===this._isOpen&&this._animateOpen()):this.isEnabled?this._animateClose():this._hide(),this._isOpen=!!e}_show(){this.innerElement||(this.innerElement=this.viewContainerRef.createEmbeddedView(this.templateRef).rootNodes[0])}_hide(){this.viewContainerRef.clear(),this.innerElement=null}_animateOpen(){let e=this.animateSpeed,t=this.animateAcceleration,n=0;this.renderer.setStyle(this.innerElement,"max-height","0"),setTimeout(()=>{const i=setInterval(()=>{if(!this._isOpen||!this.innerElement)return clearInterval(i);n+=e;const r=Math.round(n);this.renderer.setStyle(this.innerElement,"max-height",`${r}px`);const s=this.innerElement.getBoundingClientRect?this.innerElement.getBoundingClientRect().height:0;e*=t,t*=1.005,s<r&&(this.renderer.setStyle(this.innerElement,"max-height",null),clearInterval(i))},17)})}_animateClose(){if(!this.innerElement)return;let e=this.animateSpeed,t=this.animateAcceleration,n=this.innerElement.getBoundingClientRect().height;const i=setInterval(()=>{if(this._isOpen||!this.innerElement)return clearInterval(i);n-=e,this.renderer.setStyle(this.innerElement,"max-height",`${n}px`),e*=t,t*=1.005,n<=0&&(this.viewContainerRef.clear(),this.innerElement=null,clearInterval(i))},17)}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.H),i.Rb(i.O),i.Rb(i.S))},e.\u0275dir=i.Mb({type:e,selectors:[["","treeAnimateOpen",""]],inputs:{isOpen:["treeAnimateOpen","isOpen"],animateSpeed:["treeAnimateOpenSpeed","animateSpeed"],animateAcceleration:["treeAnimateOpenAcceleration","animateAcceleration"],isEnabled:["treeAnimateOpenEnabled","isEnabled"]}}),e})(),Ws=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Pb({type:e}),e.\u0275inj=i.Ob({providers:[],imports:[[r.c]]}),e})()},ovuK:function(e,t,n){"use strict";t.a=function(e){return function(t){return e(t)}}},oxzT:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){return e.add="fa fa-plus",e.addCircle="fa fa-plus-circle",e.minusCircle="fa fa-minus-circle",e.edit="fa fa-pencil",e.destroy="fa fa-times",e.destroyCircle="fa fa-times-circle",e.exchange="fa fa-exchange",e.copy="fa fa-copy",e.clipboard="fa fa-clipboard",e.flatten="fa fa-chain-broken",e.trash="fa fa-trash-o",e.lock="fa fa-lock",e.unlock="fa fa-unlock",e.clone="fa fa-clone",e.undo="fa fa-undo",e.search="fa fa-search",e.start="fa fa-play",e.stop="fa fa-stop",e.analyse="fa fa-stethoscope",e.deepCheck="fa fa-cog",e.reweight="fa fa-balance-scale",e.left="fa fa-arrow-left",e.right="fa fa-arrow-right",e.down="fa fa-arrow-down",e.erase="fa fa-eraser",e.user="fa fa-user",e.users="fa fa-users",e.share="fa fa-share-alt",e.key="fa fa-key-modern",e.warning="fa fa-exclamation-triangle",e.info="fa fa-info",e.infoCircle="fa fa-info-circle",e.questionCircle="fa fa-question-circle-o",e.check="fa fa-check",e.show="fa fa-eye",e.paragraph="fa fa-paragraph",e.terminal="fa fa-terminal",e.magic="fa fa-magic",e.hourglass="fa fa-hourglass-o",e.filledHourglass="fa fa-hourglass",e.table="fa fa-table",e.spinner="fa fa-spinner",e.refresh="fa fa-refresh",e.bullseye="fa fa-bullseye",e.disk="fa fa-hdd-o",e.server="fa fa-server",e.filter="fa fa-filter",e.lineChart="fa fa-line-chart",e.signOut="fa fa-sign-out",e.health="fa fa-heartbeat",e.circle="fa fa-circle",e.bell="fa fa-bell",e.tag="fa fa-tag",e.leftArrow="fa fa-angle-left",e.rightArrow="fa fa-angle-right",e.leftArrowDouble="fa fa-angle-double-left",e.rightArrowDouble="fa fa-angle-double-right",e.flag="fa fa-flag",e.clearFilters="fa fa-window-close",e.download="fa fa-download",e.upload="fa fa-upload",e.close="fa fa-times",e.json="fa fa-file-code-o",e.text="fa fa-file-text",e.wrench="fa fa-wrench",e.enter="fa fa-sign-in",e.exit="fa fa-sign-out",e.large="fa fa-lg",e.large2x="fa fa-2x",e.large3x="fa fa-3x",e.stack="fa fa-stack",e.stack1x="fa fa-stack-1x",e.stack2x="fa fa-stack-2x",e.pulse="fa fa-pulse",e.spin="fa fa-spin",e.inverse="fa fa-inverse",e}({})},"p/rL":function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n("wd/R"))},p4Cf:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("oxzT"),r=n("8Y7J"),s=n("SVse"),o=n("G0yt");function a(e,t){if(1&e&&(r.Sb(0,"div",2),r.sc(1)),2&e){const e=r.nc();r.Fb(e.class),r.uc("innerHtml",e.html,r.Jc)}}const c=function(e){return[e]},l=["*"];let u=(()=>{class e{constructor(){this.icons=i.a}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-helper"]],inputs:{class:"class",html:"html"},ngContentSelectors:l,decls:3,vars:4,consts:[["popoverTpl",""],["aria-hidden","true",3,"ngClass","ngbPopover","click"],[3,"innerHtml"]],template:function(e,t){if(1&e&&(r.tc(),r.Pc(0,a,2,3,"ng-template",null,0,r.Qc),r.Xb(2,"i",1),r.lc("click",function(e){return e.preventDefault()}),r.Wb()),2&e){const e=r.Fc(1);r.Db(2),r.uc("ngClass",r.zc(2,c,t.icons.questionCircle))("ngbPopover",e)}},directives:[s.p,o.w],styles:["i[_ngcontent-%COMP%]{color:#2b99a8;cursor:pointer;padding-left:4px}"]}),e})()},pLZG:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(e,t){return function(n){return n.lift(new s(e,t))}}class s{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new o(e,this.predicate,this.thisArg))}}class o extends i.a{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}},pkCn:function(e,t,n){"use strict";var i=n("0Dky");e.exports=function(e,t){var n=[][e];return!!n&&i(function(){n.call(null,t||function(){throw 1},1)})}},ppaS:function(e,t,n){"use strict";n.d(t,"a",function(){return d});var i=n("8Y7J"),r=n("oxzT"),s=n("DNAf"),o=n("wnGv"),a=n("SVse");const c=["cdSelect"],l=function(e){return[e]};function u(e,t){if(1&e){const e=i.Yb();i.Xb(0,"span"),i.Xb(1,"span",4),i.Xb(2,"span",5),i.Rc(3),i.Wb(),i.Xb(4,"a",6),i.lc("click",function(){i.Ic(e);const n=t.$implicit;return i.nc(),i.Fc(1).removeItem(n)}),i.Sb(5,"i",7),i.Wb(),i.Wb(),i.Wb()}if(2&e){const e=t.$implicit,n=i.nc();i.Db(3),i.Sc(e),i.Db(2),i.uc("ngClass",i.zc(2,l,n.icons.destroy))}}let d=(()=>{class e{constructor(){this.data=[],this.options=[],this.messages=new s.a({}),this.customBadges=!1,this.customBadgeValidators=[],this.selection=new i.p,this.icons=r.a}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Lb({type:e,selectors:[["cd-select-badges"]],viewQuery:function(e,t){if(1&e&&i.Wc(c,3),2&e){let e;i.Ec(e=i.mc())&&(t.cdSelect=e.first)}},inputs:{data:"data",options:"options",messages:"messages",selectionLimit:"selectionLimit",customBadges:"customBadges",customBadgeValidators:"customBadgeValidators"},outputs:{selection:"selection"},decls:4,vars:10,consts:[["elemClass","mr-2 select-menu-edit",3,"data","options","messages","selectionLimit","customBadges","customBadgeValidators","selection"],["cdSelect",""],[3,"ngClass"],[4,"ngFor","ngForOf"],[1,"badge","badge-dark","mr-2"],[1,"mr-2"],[1,"badge-remove",3,"click"],["aria-hidden","true",3,"ngClass"]],template:function(e,t){1&e&&(i.Xb(0,"cd-select",0,1),i.lc("selection",function(e){return t.selection.emit(e)}),i.Sb(2,"i",2),i.Wb(),i.Pc(3,u,6,4,"span",3)),2&e&&(i.uc("data",t.data)("options",t.options)("messages",t.messages)("selectionLimit",t.selectionLimit)("customBadges",t.customBadges)("customBadgeValidators",t.customBadgeValidators),i.Db(2),i.uc("ngClass",i.zc(8,l,t.icons.edit)),i.Db(1),i.uc("ngForOf",t.data))},directives:[o.a,a.p,a.q],styles:[".badge-remove[_ngcontent-%COMP%]{color:#fff}i.fa-pencil[_ngcontent-%COMP%]{font-size:1.1rem}"]}),e})()},pxpQ:function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"a",function(){return a});var i=n("7o/Q"),r=n("WMd4");function s(e,t=0){return function(n){return n.lift(new o(e,t))}}class o{constructor(e,t=0){this.scheduler=e,this.delay=t}call(e,t){return t.subscribe(new a(e,this.scheduler,this.delay))}}class a extends i.a{constructor(e,t,n=0){super(e),this.scheduler=t,this.delay=n}static dispatch(e){const{notification:t,destination:n}=e;t.observe(n),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(a.dispatch,this.delay,new c(e,this.destination)))}_next(e){this.scheduleMessage(r.a.createNext(e))}_error(e){this.scheduleMessage(r.a.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(r.a.createComplete()),this.unsubscribe()}}class c{constructor(e,t){this.notification=e,this.destination=t}}},pyRK:function(e,t,n){"use strict";var i=Object.prototype;t.a=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||i)}},quSY:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("DH7j"),r=n("XoHu"),s=n("n6bG");const o=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();let a=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:a,_unsubscribe:l,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;e<n.length;++e)n[e].remove(this);if(Object(s.a)(l)){a&&(this._unsubscribe=void 0);try{l.call(this)}catch(d){t=d instanceof o?c(d.errors):[d]}}if(Object(i.a)(u)){let e=-1,n=u.length;for(;++e<n;){const n=u[e];if(Object(r.a)(n))try{n.unsubscribe()}catch(d){t=t||[],d instanceof o?t=t.concat(c(d.errors)):t.push(d)}}}if(t)throw new o(t)}add(t){let n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){const t=n;n=new e,n._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:i}=n;if(null===i)n._parentOrParents=this;else if(i instanceof e){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[n]:r.push(n),n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}var t;return e.EMPTY=((t=new e).closed=!0,t),e})();function c(e){return e.reduce((e,t)=>e.concat(t instanceof o?t.errors:t),[])}},qvJo:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[e+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",e+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[e+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",e+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[e+" \u0935\u0930\u093e\u0902\u0928\u0940",e+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[e+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",e+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[e+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",e+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[e+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",e+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return i?r[n][0]:r[n][1]}e.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(e,t){switch(t){case"D":return e+"\u0935\u0947\u0930";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924\u0940"===t?e<4?e:e+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===t?e:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===t?e>12?e:e+12:"\u0938\u093e\u0902\u091c\u0947"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0930\u093e\u0924\u0940":e<12?"\u0938\u0915\u093e\u0933\u0940\u0902":e<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":e<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(n("wd/R"))},rB9j:function(e,t,n){"use strict";var i=n("I+eb"),r=n("kmMV");i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},rKzb:function(e,t,n){"use strict";var i=n("4zBA"),r=n("4syw"),s=n("8YOa").getWeakData,o=n("glrk"),a=n("hh1v"),c=n("GarU"),l=n("ImZN"),u=n("tycR"),d=n("Gi26"),h=n("afO8"),f=h.set,p=h.getterFor,m=u.find,b=u.findIndex,g=i([].splice),_=0,v=function(e){return e.frozen||(e.frozen=new y)},y=function(){this.entries=[]},w=function(e,t){return m(e.entries,function(e){return e[0]===t})};y.prototype={get:function(e){var t=w(this,e);if(t)return t[1]},has:function(e){return!!w(this,e)},set:function(e,t){var n=w(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=b(this.entries,function(t){return t[0]===e});return~t&&g(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,i){var u=e(function(e,r){c(e,h),f(e,{type:t,id:_++,frozen:void 0}),null!=r&&l(r,e[i],{that:e,AS_ENTRIES:n})}),h=u.prototype,m=p(t),b=function(e,t,n){var i=m(e),r=s(o(t),!0);return!0===r?v(i).set(t,n):r[i.id]=n,e};return r(h,{delete:function(e){var t=m(this);if(!a(e))return!1;var n=s(e);return!0===n?v(t).delete(e):n&&d(n,t.id)&&delete n[t.id]},has:function(e){var t=m(this);if(!a(e))return!1;var n=s(e);return!0===n?v(t).has(e):n&&d(n,t.id)}}),r(h,n?{get:function(e){var t=m(this);if(a(e)){var n=s(e);return!0===n?v(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return b(this,e,t)}}:{add:function(e){return b(this,e,!0)}}),u}}},rW0t:function(e,t,n){"use strict";var i=n("glrk");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},raLr:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===n?t?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":e+" "+(i=+e,r={ss:t?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:t?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:t?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2]);var i,r}function n(e){return function(){return e+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}e.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function(e,t){var n={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(t)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:n("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:n("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:n("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:n("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return n("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:t,m:t,mm:t,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:t,d:"\u0434\u0435\u043d\u044c",dd:t,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:t,y:"\u0440\u0456\u043a",yy:t},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u0456":e<12?"\u0440\u0430\u043d\u043a\u0443":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-\u0439";case"D":return e+"-\u0433\u043e";default:return e}},week:{dow:1,doy:7}})}(n("wd/R"))},rpNk:function(e,t,n){"use strict";var i,r,s,o=n("0Dky"),a=n("Fib7"),c=n("fHMY"),l=n("4WOD"),u=n("busE"),d=n("tiKp"),h=n("xDBR"),f=d("iterator"),p=!1;[].keys&&("next"in(s=[].keys())?(r=l(l(s)))!==Object.prototype&&(i=r):p=!0),null==i||o(function(){var e={};return i[f].call(e)!==e})?i={}:h&&(i=c(i)),a(i[f])||u(i,f,function(){return this}),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},"s+uk":function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},s7LF:function(e,t,n){"use strict";n.d(t,"a",function(){return le}),n.d(t,"b",function(){return d}),n.d(t,"c",function(){return F}),n.d(t,"d",function(){return p}),n.d(t,"e",function(){return he}),n.d(t,"f",function(){return Re}),n.d(t,"g",function(){return Ke}),n.d(t,"h",function(){return ue}),n.d(t,"i",function(){return We}),n.d(t,"j",function(){return de}),n.d(t,"k",function(){return Le}),n.d(t,"l",function(){return Ae}),n.d(t,"m",function(){return Ge}),n.d(t,"n",function(){return g}),n.d(t,"o",function(){return l}),n.d(t,"p",function(){return j}),n.d(t,"q",function(){return N}),n.d(t,"r",function(){return z}),n.d(t,"s",function(){return me}),n.d(t,"t",function(){return ye}),n.d(t,"u",function(){return ze}),n.d(t,"v",function(){return Se}),n.d(t,"w",function(){return Me}),n.d(t,"x",function(){return Je}),n.d(t,"y",function(){return Ue}),n.d(t,"z",function(){return Ne}),n.d(t,"A",function(){return y}),n.d(t,"B",function(){return we}),n.d(t,"C",function(){return Ve});var i=n("8Y7J"),r=n("SVse"),s=n("Cfvw"),o=n("cp0P"),a=n("lJxs");class c{}const l=new i.u("NgValueAccessor"),u={provide:l,useExisting:Object(i.W)(()=>d),multi:!0};let d=(()=>{class e extends c{constructor(e,t){super(),this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.H),i.Rb(i.n))},e.\u0275dir=i.Mb({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&i.lc("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[i.Cb([u]),i.Ab]}),e})();const h={provide:l,useExisting:Object(i.W)(()=>p),multi:!0},f=new i.u("CompositionEventMode");let p=(()=>{class e{constructor(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=e=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=Object(r.L)()?Object(r.L)().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.H),i.Rb(i.n),i.Rb(f,8))},e.\u0275dir=i.Mb({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(e,t){1&e&&i.lc("input",function(e){return t._handleInput(e.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(e){return t._compositionEnd(e.target.value)})},features:[i.Cb([h])]}),e})();function m(e){return null==e||0===e.length}function b(e){return null!=e&&"number"==typeof e.length}const g=new i.u("NgValidators"),_=new i.u("NgAsyncValidators"),v=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class y{static min(e){return function(e){return t=>{if(m(t.value)||m(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}(e)}static max(e){return function(e){return t=>{if(m(t.value)||m(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}(e)}static required(e){return w(e)}static requiredTrue(e){return function(e){return!0===e.value?null:{required:!0}}(e)}static email(e){return function(e){return m(e.value)||v.test(e.value)?null:{email:!0}}(e)}static minLength(e){return function(e){return t=>m(t.value)||!b(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}(e)}static maxLength(e){return function(e){return t=>b(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}(e)}static pattern(e){return function(e){if(!e)return D;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(m(e.value))return null;const i=e.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}(e)}static nullValidator(e){return null}static compose(e){return C(e)}static composeAsync(e){return L(e)}}function w(e){return m(e.value)?{required:!0}:null}function D(e){return null}function S(e){return null!=e}function x(e){const t=Object(i.ub)(e)?Object(s.a)(e):e;return Object(i.tb)(t),t}function k(e){let t={};return e.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function T(e,t){return t.map(t=>t(e))}function M(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}function C(e){if(!e)return null;const t=e.filter(S);return 0==t.length?null:function(e){return k(T(e,t))}}function O(e){return null!=e?C(M(e)):null}function L(e){if(!e)return null;const t=e.filter(S);return 0==t.length?null:function(e){const n=T(e,t).map(x);return Object(o.a)(n).pipe(Object(a.a)(k))}}function E(e){return null!=e?L(M(e)):null}function A(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function I(e){return e._rawValidators}function R(e){return e._rawAsyncValidators}let P=(()=>{class e{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=O(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=E(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){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Mb({type:e}),e})(),F=(()=>{class e extends P{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(t){return W(t||e)},e.\u0275dir=i.Mb({type:e,features:[i.Ab]}),e})();const W=i.Zb(F);class j extends P{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Y{constructor(e){this._cd=e}is(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}let N=(()=>{class e extends Y{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(j,2))},e.\u0275dir=i.Mb({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.Jb("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[i.Ab]}),e})(),z=(()=>{class e extends Y{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(F,10))},e.\u0275dir=i.Mb({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.Jb("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[i.Ab]}),e})();function $(e,t){return[...t.path,e]}function H(e,t){B(e,t,!0),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&q(e,t)})}(e,t),function(e,t){const n=(e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&q(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){const n=e=>{t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function X(e,t,n=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),U(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function V(e,t){e.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function B(e,t,n){const i=I(e);null!==t.validator?e.setValidators(A(i,t.validator)):"function"==typeof i&&e.setValidators([i]);const r=R(e);if(null!==t.asyncValidator?e.setAsyncValidators(A(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]),n){const n=()=>e.updateValueAndValidity();V(t._rawValidators,n),V(t._rawAsyncValidators,n)}}function U(e,t,n){let i=!1;if(null!==e){if(null!==t.validator){const n=I(e);if(Array.isArray(n)&&n.length>0){const r=n.filter(e=>e!==t.validator);r.length!==n.length&&(i=!0,e.setValidators(r))}}if(null!==t.asyncValidator){const n=R(e);if(Array.isArray(n)&&n.length>0){const r=n.filter(e=>e!==t.asyncValidator);r.length!==n.length&&(i=!0,e.setAsyncValidators(r))}}}if(n){const e=()=>{};V(t._rawValidators,e),V(t._rawAsyncValidators,e)}return i}function q(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function G(e,t){B(e,t,!1)}function J(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function K(e,t){e._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Q(e,t){if(!t)return null;let n,i,r;return Array.isArray(t),t.forEach(e=>{e.constructor===p?n=e:Object.getPrototypeOf(e.constructor)===c?i=e:r=e}),r||i||n||null}function Z(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ee="VALID",te="INVALID",ne="PENDING",ie="DISABLED";function re(e){return(ce(e)?e.validators:e)||null}function se(e){return Array.isArray(e)?O(e):e||null}function oe(e,t){return(ce(t)?t.asyncValidators:e)||null}function ae(e){return Array.isArray(e)?E(e):e||null}function ce(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class le{constructor(e,t){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=se(this._rawValidators),this._composedAsyncValidatorFn=ae(this._rawAsyncValidators)}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 valid(){return this.status===ee}get invalid(){return this.status===te}get pending(){return this.status==ne}get disabled(){return this.status===ie}get enabled(){return this.status!==ie}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=se(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=ae(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=ne,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=ie,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=ee,this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==ee&&this.status!==ne||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ie:ee}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=ne,this._hasOwnPendingAsyncValidator=!0;const t=x(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;let i=e;return t.forEach(e=>{i=i instanceof de?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof he&&i.at(e)||null}),i}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new i.p,this.statusChanges=new i.p}_calculateStatus(){return this._allControlsDisabled()?ie:this.errors?te:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ne)?ne:this._anyControlsHaveStatus(te)?te:ee}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){ce(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ue extends le{constructor(e=null,t,n){super(re(t),oe(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Z(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Z(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(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}}class de extends le{constructor(e,t,n){super(re(t),oe(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof ue?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const n=this.controls[t];n&&e(n,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const n=this.controls[t];if(this.contains(t)&&e(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,i)=>{n=t(n,e,i)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class he extends le{constructor(e,t,n){super(re(t),oe(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof ue?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const 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)}}const fe={provide:F,useExisting:Object(i.W)(()=>me)},pe=(()=>Promise.resolve(null))();let me=(()=>{class e extends F{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.p,this.form=new de({},O(e),E(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){pe.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),H(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){pe.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),Z(this._directives,e)})}addFormGroup(e){pe.then(()=>{const t=this._findContainer(e.path),n=new de({});G(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){pe.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){pe.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,K(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(g,10),i.Rb(_,10))},e.\u0275dir=i.Mb({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&i.lc("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Cb([fe]),i.Ab]}),e})(),be=(()=>{class e extends F{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return $(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return e.\u0275fac=function(t){return ge(t||e)},e.\u0275dir=i.Mb({type:e,features:[i.Ab]}),e})();const ge=i.Zb(be),_e={provide:j,useExisting:Object(i.W)(()=>ye)},ve=(()=>Promise.resolve(null))();let ye=(()=>{class e extends j{constructor(e,t,n,r){super(),this.control=new ue,this._registered=!1,this.update=new i.p,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=Q(0,r)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),J(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?$(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){H(this.control,this),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()}_updateValue(e){ve.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;ve.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(F,9),i.Rb(g,10),i.Rb(_,10),i.Rb(l,10))},e.\u0275dir=i.Mb({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i.Cb([_e]),i.Ab,i.Bb]}),e})(),we=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Mb({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})();const De={provide:l,useExisting:Object(i.W)(()=>Se),multi:!0};let Se=(()=>{class e extends c{constructor(e,t){super(),this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.H),i.Rb(i.n))},e.\u0275dir=i.Mb({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&i.lc("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[i.Cb([De]),i.Ab]}),e})();const xe={provide:l,useExisting:Object(i.W)(()=>Me),multi:!0};let ke=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Pb({type:e}),e.\u0275inj=i.Ob({}),e})(),Te=(()=>{class e{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Nb)({factory:function(){return new e},token:e,providedIn:ke}),e})(),Me=(()=>{class e extends c{constructor(e,t,n,i){super(),this._renderer=e,this._elementRef=t,this._registry=n,this._injector=i,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(j),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.H),i.Rb(i.n),i.Rb(Te),i.Rb(i.v))},e.\u0275dir=i.Mb({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&i.lc("change",function(){return t.onChange()})("blur",function(){return t.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[i.Cb([xe]),i.Ab]}),e})();const Ce=new i.u("NgModelWithFormControlWarning"),Oe={provide:F,useExisting:Object(i.W)(()=>Le)};let Le=(()=>{class e extends F{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.p,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(U(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return H(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){X(e.control||null,e,!1),Z(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,K(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,n=this.form.get(e.path);t!==n&&(X(t||null,e),n instanceof ue&&(H(n,e),e.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);G(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function(e,t){return U(e,t,!1)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){B(this.form,this,!1),this._oldForm&&U(this._oldForm,this,!1)}_checkFormPresent(){}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(g,10),i.Rb(_,10))},e.\u0275dir=i.Mb({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.lc("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Cb([Oe]),i.Ab,i.Bb]}),e})();const Ee={provide:F,useExisting:Object(i.W)(()=>Ae)};let Ae=(()=>{class e extends be{constructor(e,t,n){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}_checkParentType(){Pe(this._parent)}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(F,13),i.Rb(g,10),i.Rb(_,10))},e.\u0275dir=i.Mb({type:e,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[i.Cb([Ee]),i.Ab]}),e})();const Ie={provide:F,useExisting:Object(i.W)(()=>Re)};let Re=(()=>{class e extends F{constructor(e,t,n){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}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 $(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Pe(this._parent)}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(F,13),i.Rb(g,10),i.Rb(_,10))},e.\u0275dir=i.Mb({type:e,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[i.Cb([Ie]),i.Ab]}),e})();function Pe(e){return!(e instanceof Ae||e instanceof Le||e instanceof Re)}const Fe={provide:j,useExisting:Object(i.W)(()=>We)};let We=(()=>{class e extends j{constructor(e,t,n,r,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new i.p,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=Q(0,r)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),J(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return $(null==this.name?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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(F,13),i.Rb(g,10),i.Rb(_,10),i.Rb(l,10),i.Rb(Ce,8))},e.\u0275dir=i.Mb({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i.Cb([Fe]),i.Ab,i.Bb]}),e._ngModelWarningSentOnce=!1,e})();const je={provide:l,useExisting:Object(i.W)(()=>Ne),multi:!0};function Ye(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let Ne=(()=>{class e extends c{constructor(e,t){super(),this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=Ye(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.H),i.Rb(i.n))},e.\u0275dir=i.Mb({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&i.lc("change",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.Cb([je]),i.Ab]}),e})(),ze=(()=>{class e{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(Ye(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.n),i.Rb(i.H),i.Rb(Ne,9))},e.\u0275dir=i.Mb({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const $e={provide:l,useExisting:Object(i.W)(()=>Xe),multi:!0};function He(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let Xe=(()=>{class e extends c{constructor(e,t){super(),this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=(e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)}}else t=(e,t)=>{e._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const n=[];if(void 0!==t.selectedOptions){const e=t.selectedOptions;for(let t=0;t<e.length;t++){const i=e.item(t),r=this._getOptionValue(i.value);n.push(r)}}else{const e=t.options;for(let t=0;t<e.length;t++){const i=e.item(t);if(i.selected){const e=this._getOptionValue(i.value);n.push(e)}}}this.value=n,e(n)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(e){const t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t)._value,e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.H),i.Rb(i.n))},e.\u0275dir=i.Mb({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&i.lc("change",function(e){return t.onChange(e.target)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.Cb([$e]),i.Ab]}),e})(),Ve=(()=>{class e{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(He(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(He(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.n),i.Rb(i.H),i.Rb(Xe,9))},e.\u0275dir=i.Mb({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const Be={provide:g,useExisting:Object(i.W)(()=>Ue),multi:!0};let Ue=(()=>{class e{constructor(){this._required=!1}get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&"false"!=`${e}`,this._onChange&&this._onChange()}validate(e){return this.required?w(e):null}registerOnValidatorChange(e){this._onChange=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Mb({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&i.Eb("required",t.required?"":null)},inputs:{required:"required"},features:[i.Cb([Be])]}),e})(),qe=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Pb({type:e}),e.\u0275inj=i.Ob({imports:[[ke]]}),e})(),Ge=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Pb({type:e}),e.\u0275inj=i.Ob({imports:[qe]}),e})(),Je=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Ce,useValue:t.warnOnNgModelWithFormControl}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Pb({type:e}),e.\u0275inj=i.Ob({imports:[qe]}),e})(),Ke=(()=>{class e{group(e,t=null){const n=this._reduceControls(e);let i,r=null,s=null;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(r=null!=t.validators?t.validators:null,s=null!=t.asyncValidators?t.asyncValidators:null,i=null!=t.updateOn?t.updateOn:void 0):(r=null!=t.validator?t.validator:null,s=null!=t.asyncValidator?t.asyncValidator:null)),new de(n,{asyncValidators:s,updateOn:i,validators:r})}control(e,t,n){return new ue(e,t,n)}array(e,t,n){const i=e.map(e=>this._createControl(e));return new he(i,t,n)}_reduceControls(e){const t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){return e instanceof ue||e instanceof de||e instanceof he?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Nb)({factory:function(){return new e},token:e,providedIn:Je}),e})()},sEFX:function(e,t,n){"use strict";var i=n("AO7/"),r=n("9d/t");e.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},sMBO:function(e,t,n){var i=n("g6v/"),r=n("Xnc8").EXISTS,s=n("4zBA"),o=n("m/L8").f,a=Function.prototype,c=s(a.toString),l=/^\s*function ([^ (]*)/,u=s(l.exec);i&&!r&&o(a,"name",{configurable:!0,get:function(){try{return u(l,c(this))[1]}catch(e){return""}}})},sVev:function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=(()=>{function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e})()},sb0X:function(e,t,n){"use strict";n.d(t,"a",function(){return f});var i=n("8Y7J"),r=n("s7LF"),s=n("LvDl"),o=n.n(s),a=n("oxzT"),c=n("ANnk"),l=n("SVse");const u=function(e,t){return[e,t]};function d(e,t){if(1&e&&(i.Xb(0,"span"),i.Sb(1,"i",2),i.Wb()),2&e){const e=i.nc();i.Db(1),i.uc("ngClass",i.Ac(1,u,e.icons.spinner,e.icons.spin))}}const h=["*"];let f=(()=>{class e{constructor(e){this.elRef=e,this.type="submit",this.disabled=!1,this.submitAction=new i.p,this.loading=!1,this.icons=a.a}ngOnInit(){this.form.statusChanges.subscribe(()=>{o.a.has(this.form.errors,"cdSubmitButton")&&(this.loading=!1,o.a.unset(this.form.errors,"cdSubmitButton"),this.form instanceof r.a&&this.form.updateValueAndValidity())})}submit(e){this.focusButton(),this.form instanceof r.k&&this.form.onSubmit(e),this.form.invalid?this.focusInvalid():(this.loading=!0,this.submitAction.emit())}focusButton(){this.elRef.nativeElement.offsetParent.querySelector(`button[type="${this.type}"]`).focus()}focusInvalid(){const e=this.elRef.nativeElement.offsetParent.querySelector("input.ng-invalid, select.ng-invalid");e&&e.focus()}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.n))},e.\u0275cmp=i.Lb({type:e,selectors:[["cd-submit-button"]],inputs:{form:"form",type:"type",disabled:"disabled",btnClass:"btnClass"},outputs:{submitAction:"submitAction"},ngContentSelectors:h,decls:3,vars:4,consts:[[1,"btn","btn-accent","tc_submitButton",3,"type","ngClass","disabled","click"],[4,"ngIf"],[3,"ngClass"]],template:function(e,t){1&e&&(i.tc(),i.Xb(0,"button",0),i.lc("click",function(e){return t.submit(e)}),i.sc(1),i.Pc(2,d,2,4,"span",1),i.Wb()),2&e&&(i.uc("type",t.type)("ngClass",t.btnClass)("disabled",t.loading||t.disabled),i.Db(2),i.uc("ngIf",t.loading))},directives:[c.a,l.p,l.r],styles:[""]}),e})()},sne2:function(e,t,n){"use strict";n.d(t,"c",function(){return s}),n.d(t,"e",function(){return o}),n.d(t,"a",function(){return a}),n.d(t,"b",function(){return c}),n.d(t,"d",function(){return l});var i=n("AytR"),r=n("8Y7J");let s=(()=>{class e{}return e.organization="ceph",e.projectName="Ceph Dashboard",e.license="Free software (LGPL 2.1).",e.copyright="Copyright(c) "+i.a.year+" Ceph contributors.",e.cephLogo="assets/Ceph_Logo.svg",e})();var o=function(e){return e.CREATE="create",e.EDIT="edit",e.UPDATE="update",e.REMOVE="remove",e.DELETE="delete",e.ADD="add",e.COPY="copy",e.CLONE="clone",e.RECREATE="recreate",e.EXPIRE="expire",e}({}),a=function(e){return e.CREATE="Create",e.DELETE="Delete",e.ADD="Add",e.REMOVE="Remove",e.EDIT="Edit",e.CANCEL="Cancel",e.COPY="Copy",e.CLONE="Clone",e.UPDATE="Update",e.EVICT="Evict",e.SHOW="Show",e.RECREATE="Recreate",e.EXPIRE="Expire",e}({});let c=(()=>{class e{constructor(){this.CREATE="Create",this.DELETE="Delete",this.ADD="Add",this.SET="Set",this.SUBMIT="Submit",this.REMOVE="Remove",this.UNSET="Unset",this.EDIT="Edit",this.UPDATE="Update",this.CANCEL="Cancel",this.PREVIEW="Preview",this.MOVE="Move",this.NEXT="Next",this.BACK="Back",this.CLONE="Clone",this.COPY="Copy",this.DEEP_SCRUB="Deep Scrub",this.DESTROY="Destroy",this.EVICT="Evict",this.FLATTEN="Flatten",this.MARK_DOWN="Mark Down",this.MARK_IN="Mark In",this.MARK_LOST="Mark Lost",this.MARK_OUT="Mark Out",this.PROTECT="Protect",this.PURGE="Purge",this.RENAME="Rename",this.RESTORE="Restore",this.REWEIGHT="Reweight",this.ROLLBACK="Rollback",this.SCRUB="Scrub",this.SHOW="Show",this.TRASH="Move to Trash",this.UNPROTECT="Unprotect",this.CHANGE="Change",this.FLAGS="Flags",this.ENTER_MAINTENANCE="Enter Maintenance",this.EXIT_MAINTENANCE="Exit Maintenance",this.RECREATE="Recreate",this.EXPIRE="Expire"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),l=(()=>{class e{constructor(){this.CREATED="Created",this.DELETED="Deleted",this.ADDED="Added",this.REMOVED="Removed",this.EDITED="Edited",this.CANCELED="Canceled",this.PREVIEWED="Previewed",this.MOVED="Moved",this.CLONED="Cloned",this.COPIED="Copied",this.DEEP_SCRUBBED="Deep Scrubbed",this.DESTROYED="Destroyed",this.FLATTENED="Flattened",this.MARKED_DOWN="Marked Down",this.MARKED_IN="Marked In",this.MARKED_LOST="Marked Lost",this.MARKED_OUT="Marked Out",this.PROTECTED="Protected",this.PURGED="Purged",this.RENAMED="Renamed",this.RESTORED="Restored",this.REWEIGHTED="Reweighted",this.ROLLED_BACK="Rolled back",this.SCRUBBED="Scrubbed",this.SHOWED="Showed",this.TRASHED="Moved to Trash",this.UNPROTECTED="Unprotected",this.CHANGE="Change",this.RECREATED="Recreated",this.EXPIRED="Expired"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},sp3z:function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(e){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===e},meridiem:function(e,t,n){return e<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(e){return"\u0e97\u0eb5\u0ec8"+e}})}(n("wd/R"))},spCT:function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return r});var i=function(e){return e[e.Loading=0]="Loading",e[e.Ready=1]="Ready",e[e.Error=2]="Error",e[e.None=3]="None",e}({});class r{constructor(){this.loading=i.Loading}loadingStart(){this.loading=i.Loading}loadingReady(){this.loading=i.Ready}loadingError(){this.loading=i.Error}loadingNone(){this.loading=i.None}}},st4c:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("8Y7J"),r=n("IheW");let s=(()=>{class e{constructor(e){this.http=e,this.apiPath="api/crush_rule",this.formTooltips={root:"The name of the node under which data should be placed.",failure_domain:"The type of CRUSH nodes across which we should separate replicas.",device_class:"The device class data should be placed on."}}create(e){return this.http.post(this.apiPath,e,{observe:"response"})}delete(e){return this.http.delete(`${this.apiPath}/${e}`,{observe:"response"})}getInfo(){return this.http.get(`ui-${this.apiPath}/info`)}}return e.\u0275fac=function(t){return new(t||e)(i.ic(r.b))},e.\u0275prov=i.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},"t+mt":function(e,t,n){!function(e){"use strict";e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},"t/zF":function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e,t){this.name=e,this.metadata=t}}},tGlX:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},tPH9:function(e,t,n){"use strict";t.a=function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}},tT3J:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n("wd/R"))},tUCv:function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n("wd/R"))},tbfe:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(n("wd/R"))},tiKp:function(e,t,n){var i=n("2oRo"),r=n("VpIT"),s=n("Gi26"),o=n("kOOl"),a=n("STAE"),c=n("/b8u"),l=r("wks"),u=i.Symbol,d=u&&u.for,h=c?u:u&&u.withoutSetter||o;e.exports=function(e){if(!s(l,e)||!a&&"string"!=typeof l[e]){var t="Symbol."+e;l[e]=a&&s(u,e)?u[e]:c&&d?d(t):h(t)}return l[e]}},tycR:function(e,t,n){var i=n("A2ZE"),r=n("4zBA"),s=n("RK3t"),o=n("ewvW"),a=n("B/qT"),c=n("ZfDv"),l=r([].push),u=function(e){var t=1==e,n=2==e,r=3==e,u=4==e,d=6==e,h=7==e,f=5==e||d;return function(p,m,b,g){for(var _,v,y=o(p),w=s(y),D=i(m,b),S=a(w),x=0,k=g||c,T=t?k(p,S):n||h?k(p,0):void 0;S>x;x++)if((f||x in w)&&(v=D(_=w[x],x,y),e))if(t)T[x]=v;else if(v)switch(e){case 3:return!0;case 5:return _;case 6:return x;case 2:l(T,_)}else switch(e){case 4:return!1;case 7:l(T,_)}return d?-1:r||u?u:T}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},tz6c:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("2Vo4"),r=n("pLZG"),s=n("lJxs"),o=n("SxV6"),a=n("+0ag"),c=n("mSOc"),l=n("8Y7J");let u=(()=>{class e{constructor(e,t){this.summaryservice=e,this.cephReleaseNamePipe=t,this.releaseDataSource=new i.a(null),this.releaseData$=this.releaseDataSource.asObservable(),this.summaryservice.subscribeOnce(e=>{const t=this.cephReleaseNamePipe.transform(e.version);this.releaseDataSource.next(t)})}urlGenerator(e,t="master"){const n=`https://docs.ceph.com/en/${"master"===t?"latest":t}/`,i="https://ceph.io/";return{iscsi:`${n}mgr/dashboard/#enabling-iscsi-management`,prometheus:`${n}mgr/dashboard/#enabling-prometheus-alerting`,"nfs-ganesha":`${n}mgr/dashboard/#configuring-nfs-ganesha-in-the-dashboard`,"rgw-nfs":`${n}radosgw/nfs`,rgw:`${n}mgr/dashboard/#enabling-the-object-gateway-management-frontend`,dashboard:`${n}mgr/dashboard`,grafana:`${n}mgr/dashboard/#enabling-the-embedding-of-grafana-dashboards`,orch:`${n}mgr/orchestrator`,pgs:`${i}pgcalc`,help:`${i}help/`,security:`${i}security/`,trademarks:`${i}legal-page/trademarks/`,"dashboard-landing-page-status":`${n}mgr/dashboard/#dashboard-landing-page-status`,"dashboard-landing-page-performance":`${n}mgr/dashboard/#dashboard-landing-page-performance`,"dashboard-landing-page-capacity":`${n}mgr/dashboard/#dashboard-landing-page-capacity`}[e]}subscribeOnce(e,t,n){return this.releaseData$.pipe(Object(r.a)(e=>!!e),Object(s.a)(t=>this.urlGenerator(e,t)),Object(o.a)()).subscribe(t,n)}}return e.\u0275fac=function(t){return new(t||e)(l.ic(c.a),l.ic(a.a))},e.\u0275prov=l.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},u3GI:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},uE2L:function(e,t,n){"use strict";var i=n("AwXo");t.a=function(e,t,n){"__proto__"==t&&i.a?Object(i.a)(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},uEye:function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},uIqm:function(e,t,n){"use strict";n.d(t,"a",function(){return ye});var i=n("8Y7J"),r=n("w9WL"),s=n("LvDl"),o=n.n(s),a=n("PqYM"),c=n("HDdC"),l=n("e2NH"),u=n("x38r"),d=n("oxzT");class h{constructor(e){this.errorConfig={resetData:!0,displayError:!0},this.error=e}}var f=n("vCyI"),p=n("SVse"),m=n("G0yt"),b=n("s7LF"),g=n("dgut"),_=n("iInd"),v=n("4DD9"),y=n("o4+5"),w=n("zWsK"),D=n("yT6U"),S=n("TJUb"),x=n("efK2");const k=["tableCellBoldTpl"],T=["sparklineTpl"],M=["routerLinkTpl"],C=["checkIconTpl"],O=["perSecondTpl"],L=["executingTpl"],E=["classAddingTpl"],A=["badgeTpl"],I=["mapTpl"],R=["truncateTpl"],P=["rowDetailsTpl"];function F(e,t){1&e&&(i.Xb(0,"div",20),i.Xb(1,"div",21),i.sc(2),i.Wb(),i.Wb())}function W(e,t){if(1&e){const e=i.Yb();i.Vb(0),i.Xb(1,"button",36),i.lc("click",function(){i.Ic(e);const n=t.$implicit;return i.nc(3).onSelectFilter(n),!1}),i.Rc(2),i.Wb(),i.Ub()}if(2&e){const e=t.$implicit;i.Db(2),i.Sc(e.column.name)}}const j=function(e){return[e]};function Y(e,t){if(1&e&&i.Sb(0,"i",28),2&e){const e=i.nc(4);i.uc("ngClass",i.zc(1,j,e.icons.check))}}function N(e,t){if(1&e){const e=i.Yb();i.Vb(0),i.Xb(1,"button",36),i.lc("click",function(){i.Ic(e);const n=t.$implicit,r=i.nc(3);return r.onChangeFilter(r.selectedFilter,n),!1}),i.Rc(2),i.Pc(3,Y,1,3,"i",37),i.Wb(),i.Ub()}if(2&e){const e=t.$implicit,n=i.nc(3);i.Db(2),i.Tc(" ",e.formatted," "),i.Db(1),i.uc("ngIf",void 0!==n.selectedFilter.value&&n.selectedFilter.value.raw===e.raw)}}const z=function(e,t){return[e,t]};function $(e,t){if(1&e&&(i.Xb(0,"div",32),i.Xb(1,"div",33),i.Xb(2,"button",34),i.Sb(3,"i",28),i.Rc(4),i.Wb(),i.Xb(5,"div",29),i.Pc(6,W,3,1,"ng-container",30),i.Wb(),i.Wb(),i.Xb(7,"div",35),i.Xb(8,"button",34),i.Rc(9),i.Wb(),i.Xb(10,"div",29),i.Pc(11,N,4,2,"ng-container",30),i.Wb(),i.Wb(),i.Wb()),2&e){const e=i.nc(2);i.Db(3),i.uc("ngClass",i.Ac(7,z,e.icons.large,e.icons.filter)),i.Db(1),i.Tc(" ",e.selectedFilter.column.name," "),i.Db(2),i.uc("ngForOf",e.columnFilters),i.Db(2),i.Jb("disabled",0===e.selectedFilter.options.length),i.Db(1),i.Tc(" ",e.selectedFilter.value?e.selectedFilter.value.formatted:"Any"," "),i.Db(2),i.uc("ngForOf",e.selectedFilter.options)}}function H(e,t){if(1&e){const e=i.Yb();i.Xb(0,"div",38),i.Xb(1,"span",39),i.Xb(2,"span",40),i.Sb(3,"i",28),i.Wb(),i.Wb(),i.Xb(4,"input",41),i.lc("ngModelChange",function(t){return i.Ic(e),i.nc(2).search=t})("keyup",function(){return i.Ic(e),i.nc(2).updateFilter()}),i.Wb(),i.Xb(5,"div",42),i.Xb(6,"button",43),i.lc("click",function(){return i.Ic(e),i.nc(2).onClearSearch()}),i.Sb(7,"i"),i.Wb(),i.Wb(),i.Wb()}if(2&e){const e=i.nc(2);i.Db(3),i.uc("ngClass",i.zc(5,j,e.icons.search)),i.Db(1),i.uc("ngModel",e.search),i.Db(3),i.Gb("icon-prepend ",e.icons.destroy,"")}}function X(e,t){if(1&e){const e=i.Yb();i.Xb(0,"div",44),i.Xb(1,"input",45),i.lc("click",function(t){return i.Ic(e),i.nc(2).setLimit(t)})("keyup",function(t){return i.Ic(e),i.nc(2).setLimit(t)})("blur",function(t){return i.Ic(e),i.nc(2).setLimit(t)}),i.Wb(),i.Wb()}if(2&e){const e=i.nc(2);i.Db(1),i.uc("value",e.userConfig.limit)}}function V(e,t){if(1&e){const e=i.Yb();i.Xb(0,"button",36),i.lc("click",function(){i.Ic(e);const t=i.nc().$implicit;return i.nc(2).toggleColumn(t),!1}),i.Xb(1,"div",47),i.Sb(2,"input",48),i.Xb(3,"label",49),i.Rc(4),i.Wb(),i.Wb(),i.Wb()}if(2&e){const e=i.nc().$implicit;i.Db(2),i.uc("name",e.prop)("id",e.prop)("checked",!e.isHidden),i.Db(1),i.uc("for",e.prop),i.Db(1),i.Sc(e.name)}}function B(e,t){if(1&e&&(i.Vb(0),i.Pc(1,V,5,5,"button",46),i.Ub()),2&e){const e=t.$implicit;i.Db(1),i.uc("ngIf",""!==e.name)}}function U(e,t){if(1&e){const e=i.Yb();i.Xb(0,"div",50),i.Xb(1,"button",51),i.lc("click",function(){return i.Ic(e),i.nc(2).refreshBtn()}),i.Sb(2,"i",28),i.Wb(),i.Wb()}if(2&e){const e=i.nc(2);i.Db(1),i.Fb("btn btn-"+e.status.type),i.uc("ngbTooltip",e.status.msg),i.Db(1),i.Jb("fa-spin",e.updating||e.loadingIndicator),i.uc("ngClass",i.Ac(6,z,e.icons.large,e.icons.refresh))}}function q(e,t){if(1&e&&(i.Xb(0,"div",20),i.Xb(1,"div",21),i.sc(2,1),i.Wb(),i.Pc(3,$,12,10,"div",22),i.Pc(4,H,8,7,"div",23),i.Pc(5,X,2,1,"div",24),i.Xb(6,"div",25),i.Xb(7,"div",26),i.Xb(8,"button",27),i.Sb(9,"i",28),i.Wb(),i.Xb(10,"div",29),i.Pc(11,B,2,1,"ng-container",30),i.Wb(),i.Wb(),i.Wb(),i.Pc(12,U,3,9,"div",31),i.Wb()),2&e){const e=i.nc();i.Db(3),i.uc("ngIf",0!==e.columnFilters.length),i.Db(1),i.uc("ngIf",e.searchField),i.Db(1),i.uc("ngIf",e.limit),i.Db(4),i.uc("ngClass",i.Ac(6,z,e.icons.large,e.icons.table)),i.Db(2),i.uc("ngForOf",e.columns),i.Db(1),i.uc("ngIf",e.fetchData.observers.length>0)}}function G(e,t){if(1&e){const e=i.Yb();i.Xb(0,"span",56),i.Xb(1,"span",57),i.Rc(2),i.Wb(),i.Xb(3,"a",58),i.lc("click",function(){i.Ic(e);const t=i.nc().$implicit;return i.nc(2).onChangeFilter(t),!1}),i.Sb(4,"i",59),i.Wb(),i.Wb()}if(2&e){const e=i.nc().$implicit,t=i.nc(2);i.Db(2),i.Uc("",e.column.name,": ",e.value.formatted,""),i.Db(2),i.uc("ngClass",i.zc(3,j,t.icons.destroy))}}function J(e,t){if(1&e&&(i.Xb(0,"span"),i.Pc(1,G,5,5,"span",55),i.Wb()),2&e){const e=t.$implicit;i.Db(1),i.uc("ngIf",e.value)}}function K(e,t){if(1&e){const e=i.Yb();i.Xb(0,"div",20),i.Xb(1,"div",52),i.Pc(2,J,2,1,"span",30),i.Xb(3,"a",53),i.lc("click",function(){return i.Ic(e),i.nc().onClearFilters(),!1}),i.Vb(4),i.bc(5,54),i.Ub(),i.Wb(),i.Wb(),i.Wb()}if(2&e){const e=i.nc();i.Db(2),i.uc("ngForOf",e.columnFilters)}}function Q(e,t){1&e&&i.sc(0,2)}function Z(e,t){if(1&e&&(i.Xb(0,"span"),i.Rc(1),i.Vb(2),i.bc(3,64),i.Ub(),i.Rc(4," / "),i.Wb()),2&e){const e=i.nc().selectedCount;i.Db(1),i.Tc(" ",e," ")}}function ee(e,t){if(1&e&&(i.Xb(0,"span"),i.Rc(1),i.Vb(2),i.bc(3,65),i.Ub(),i.Rc(4," / "),i.Wb()),2&e){const e=i.nc().rowCount;i.Db(1),i.Tc(" ",e," ")}}function te(e,t){if(1&e){const e=i.Yb();i.Xb(0,"div",60),i.Pc(1,Z,5,1,"span",61),i.Pc(2,ee,5,1,"span",61),i.Xb(3,"span"),i.Rc(4),i.Vb(5),i.bc(6,62),i.Ub(),i.Wb(),i.Wb(),i.Xb(7,"datatable-pager",63),i.lc("change",function(t){return i.Ic(e),i.nc(),i.Fc(5).onFooterPage(t)}),i.Wb()}if(2&e){const e=t.rowCount,n=t.pageSize,r=t.curPage,s=i.nc();i.Db(1),i.uc("ngIf",s.selectionType),i.Db(1),i.uc("ngIf",e!=(null==s.data?null:s.data.length)),i.Db(2),i.Tc(" ",(null==s.data?null:s.data.length)||0," "),i.Db(3),i.uc("pagerLeftArrowIcon",s.paginationClasses.pagerLeftArrow)("pagerRightArrowIcon",s.paginationClasses.pagerRightArrow)("pagerPreviousIcon",s.paginationClasses.pagerPrevious)("pagerNextIcon",s.paginationClasses.pagerNext)("page",r)("size",n)("count",e)("hidden",!(e/n>1))}}function ne(e,t){if(1&e&&(i.Xb(0,"strong"),i.Rc(1),i.Wb()),2&e){const e=t.value;i.Db(1),i.Sc(e)}}function ie(e,t){if(1&e&&i.Sb(0,"cd-sparkline",66),2&e){const e=t.row;i.uc("data",t.value)("isBinary",e.cdIsBinary)}}function re(e,t){if(1&e&&(i.Xb(0,"a",67),i.Rc(1),i.Wb()),2&e){const e=t.row,n=t.value;i.uc("routerLink",i.zc(3,j,e.cdLink))("queryParams",e.cdParams),i.Db(1),i.Sc(n)}}function se(e,t){if(1&e&&(i.Sb(0,"i",68),i.oc(1,"boolean")),2&e){const e=t.value,n=i.nc();i.uc("ngClass",i.zc(4,j,n.icons.check))("hidden",!i.pc(1,2,e))}}function oe(e,t){1&e&&(i.Rc(0),i.oc(1,"dimless")),2&e&&i.Tc(" ",i.pc(1,1,t.value)," /s\n")}function ae(e,t){if(1&e&&i.Sb(0,"i",28),2&e){const e=i.nc(2);i.uc("ngClass",i.Ac(1,z,e.icons.spinner,e.icons.spin))}}function ce(e,t){if(1&e&&(i.Xb(0,"span",28),i.Rc(1),i.Wb()),2&e){const e=i.nc(),t=e.column,n=e.row;i.uc("ngClass",null!=t&&null!=t.customTemplateConfig&&t.customTemplateConfig.executingClass?t.customTemplateConfig.executingClass:"text-muted italic"),i.Db(1),i.Tc("(",n.cdExecuting,")")}}function le(e,t){if(1&e&&(i.Pc(0,ae,1,4,"i",37),i.Xb(1,"span",28),i.Rc(2),i.Wb(),i.Pc(3,ce,2,2,"span",37)),2&e){const e=t.column,n=t.row,r=t.value;i.uc("ngIf",n.cdExecuting),i.Db(1),i.uc("ngClass",null==e||null==e.customTemplateConfig?null:e.customTemplateConfig.valueClass),i.Db(1),i.Tc(" ",r," "),i.Db(1),i.uc("ngIf",n.cdExecuting)}}function ue(e,t){if(1&e&&(i.Xb(0,"span"),i.oc(1,"pipeFunction"),i.Rc(2),i.Wb()),2&e){const e=t.value,n=i.nc();i.Fb(i.rc(1,4,e,n.useCustomClass,n)),i.Db(2),i.Sc(e)}}function de(e,t){if(1&e&&(i.Xb(0,"span",70),i.Rc(1),i.Wb()),2&e){const e=i.nc().$implicit,t=i.nc().column;i.uc("ngClass",null!=t&&null!=t.customTemplateConfig&&t.customTemplateConfig.map&&null!=t&&null!=t.customTemplateConfig&&null!=t.customTemplateConfig.map[e]&&t.customTemplateConfig.map[e].class?t.customTemplateConfig.map[e].class:null!=t&&null!=t.customTemplateConfig&&t.customTemplateConfig.class?t.customTemplateConfig.class:"badge-primary"),i.Db(1),i.Tc(" ",null!=t&&null!=t.customTemplateConfig&&t.customTemplateConfig.map&&null!=t&&null!=t.customTemplateConfig&&null!=t.customTemplateConfig.map[e]&&t.customTemplateConfig.map[e].value?t.customTemplateConfig.map[e].value:null!=t&&null!=t.customTemplateConfig&&t.customTemplateConfig.prefix?t.customTemplateConfig.prefix+e:e," ")}}function he(e,t){1&e&&(i.Xb(0,"span"),i.Rc(1,"\xa0"),i.Wb())}function fe(e,t){if(1&e&&(i.Xb(0,"span"),i.Pc(1,de,2,2,"span",69),i.Pc(2,he,2,0,"span",61),i.Wb()),2&e){const e=t.$implicit,n=t.last,r=i.nc().column;i.Db(1),i.uc("ngIf",null!=r&&null!=r.customTemplateConfig&&r.customTemplateConfig.map&&null!=r&&null!=r.customTemplateConfig&&null!=r.customTemplateConfig.map[e]&&r.customTemplateConfig.map[e].value?r.customTemplateConfig.map[e].value:null!=r&&null!=r.customTemplateConfig&&r.customTemplateConfig.prefix?r.customTemplateConfig.prefix+e:e),i.Db(1),i.uc("ngIf",!n)}}function pe(e,t){1&e&&(i.Pc(0,fe,3,2,"span",30),i.oc(1,"array")),2&e&&i.uc("ngForOf",i.pc(1,1,t.value))}function me(e,t){if(1&e&&(i.Xb(0,"span"),i.Rc(1),i.oc(2,"map"),i.Wb()),2&e){const e=t.column,n=t.value;i.Db(1),i.Sc(i.qc(2,1,n,null==e?null:e.customTemplateConfig))}}function be(e,t){if(1&e&&(i.Xb(0,"span",71),i.Rc(1),i.oc(2,"truncate"),i.Wb()),2&e){const e=t.column,n=t.value;i.uc("title",n),i.Db(1),i.Sc(i.rc(2,2,n,null==e||null==e.customTemplateConfig?null:e.customTemplateConfig.length,null==e||null==e.customTemplateConfig?null:e.customTemplateConfig.omission))}}function ge(e,t){if(1&e){const e=i.Yb();i.Xb(0,"a",72),i.lc("click",function(n){i.Ic(e);const r=t.row,s=t.expanded;return i.nc().toggleExpandRow(r,s,n)}),i.Wb()}if(2&e){const e=t.expanded;i.Jb("expand-collapse-icon-right",!e)("expand-collapse-icon-down",e)}}const _e=[[["",8,"only-table-actions"]],[["",8,"table-actions"]],[["","cdTableDetail",""]]],ve=[".only-table-actions",".table-actions","[cdTableDetail]"];let ye=(()=>{class e{constructor(e,t){this.ngZone=e,this.cdRef=t,this.columnMode="flex",this.onlyActionHeader=!1,this.toolHeader=!0,this.searchField=!0,this.header=!0,this.footer=!0,this.limit=10,this.hasDetails=!1,this.autoReload=5e3,this.identifier="id",this.forceIdentifier=!1,this.selectionType=void 0,this.updateSelectionOnRefresh="onChange",this.updateExpandedOnRefresh="onChange",this.autoSave=!0,this.searchableObjects=!1,this.extraFilterableColumns=[],this.status=new l.a,this.fetchData=new i.p,this.updateSelection=new i.p,this.setExpandedRow=new i.p,this.columnFiltersChanged=new i.p,this.selection=new f.a,this.expanded=void 0,this.icons=d.a,this.cellTemplates={},this.search="",this.rows=[],this.loadingIndicator=!0,this.paginationClasses={pagerLeftArrow:d.a.leftArrowDouble,pagerRightArrow:d.a.rightArrowDouble,pagerPrevious:d.a.leftArrow,pagerNext:d.a.rightArrow},this.userConfig={},this.localStorage=window.localStorage,this.updating=!1,this.columnFilters=[]}get columnFiltered(){return o.a.some(this.columnFilters,e=>void 0!==e.value)}static prepareSearch(e){return(e=e.toLowerCase().replace(/,/g,"")).match(/['"][^'"]+['"]/)&&(e=e.replace(/['"][^'"]+['"]/g,e=>e.replace(/(['"])([^'"]+)(['"])/g,"$2").replace(/ /g,"+"))),e.split(" ").filter(e=>e)}ngOnInit(){if(this.localColumns=o.a.clone(this.columns),this.table.element.addEventListener("mouseenter",e=>e.stopPropagation()),this._addTemplates(),!this.sorts){const e=-1!==o.a.findIndex(this.localColumns,["prop",this.identifier]);this.sorts=this.createSortingDefinition(e?this.identifier:this.localColumns[0].prop+""),e||this.forceIdentifier||(this.identifier=this.localColumns[0].prop+"")}this.initUserConfig(),this.localColumns.forEach(e=>{e.cellTransformation&&(e.cellTemplate=this.cellTemplates[e.cellTransformation]),e.flexGrow||(e.flexGrow=e.prop+""===this.identifier?1:2),e.resizeable||(e.resizeable=!1)}),this.initExpandCollapseColumn(),this.initCheckboxColumn(),this.filterHiddenColumns(),this.initColumnFilters(),this.updateColumnFilterOptions(),this.updateSelection.emit(new f.a),this.fetchData.observers.length>0&&(this.loadingIndicator=!0),o.a.isInteger(this.autoReload)&&this.autoReload>0?this.ngZone.runOutsideAngular(()=>{this.reloadSubscriber=Object(a.a)(0,this.autoReload).subscribe(()=>{this.ngZone.run(()=>this.reloadData())})}):this.autoReload?this.useData():this.reloadData()}initUserConfig(){this.autoSave&&(this.tableName=this._calculateUniqueTableName(this.localColumns),this._loadUserConfig(),this._initUserConfigAutoSave()),this.userConfig.limit||(this.userConfig.limit=this.limit),this.userConfig.sorts||(this.userConfig.sorts=this.sorts),this.userConfig.columns?this.localColumns.forEach((e,t)=>{e.isHidden=this.userConfig.columns[t].isHidden}):this.updateUserColumns()}_calculateUniqueTableName(e){const t=e=>{if(!o.a.isString(e))return 0;let t=0;for(let n=0;n<e.length;n++)t+=e.charCodeAt(n)*n;return t};return e.reduce((e,n,i)=>(t(n.prop)+t(n.name))*(i+1)+e,0).toString()}_loadUserConfig(){const e=this.localStorage.getItem(this.tableName);e&&(this.userConfig=JSON.parse(e))}_initUserConfigAutoSave(){const e=new c.a(this._initUserConfigProxy.bind(this));this.saveSubscriber=e.subscribe(this._saveUserConfig.bind(this))}_initUserConfigProxy(e){this.userConfig=new Proxy(this.userConfig,{set:(t,n,i)=>(t[n]=i,e.next(t),!0)})}_saveUserConfig(e){this.localStorage.setItem(this.tableName,JSON.stringify(e))}updateUserColumns(){this.userConfig.columns=this.localColumns.map(e=>({prop:e.prop,name:e.name,isHidden:!!e.isHidden}))}initCheckboxColumn(){"multiClick"===this.selectionType&&this.localColumns.unshift({prop:void 0,resizeable:!1,sortable:!1,draggable:!1,checkboxable:!0,canAutoResize:!1,cellClass:"cd-datatable-checkbox",width:30})}initExpandCollapseColumn(){this.hasDetails&&this.localColumns.unshift({prop:void 0,resizeable:!1,sortable:!1,draggable:!1,isHidden:!1,canAutoResize:!1,cellClass:"cd-datatable-expand-collapse",width:40,cellTemplate:this.rowDetailsTpl})}filterHiddenColumns(){this.tableColumns=this.localColumns.filter(e=>!e.isHidden)}initColumnFilters(){let e=o.a.filter(this.localColumns,{filterable:!0});e=[...e,...this.extraFilterableColumns],this.columnFilters=e.map(e=>({column:e,options:[],value:e.filterInitValue?this.createColumnFilterOption(e.filterInitValue,e.pipe):void 0})),this.selectedFilter=o.a.first(this.columnFilters)}createColumnFilterOption(e,t){return{raw:o.a.toString(e),formatted:t?t.transform(e):o.a.toString(e)}}updateColumnFilterOptions(){this.columnFilters.forEach(e=>{let t=[];if(o.a.isUndefined(e.column.filterOptions)){const n=o.a.filter(o.a.map(this.data,e.column.prop),e=>o.a.isString(e)&&""!==e||o.a.isBoolean(e)||o.a.isFinite(e)||o.a.isDate(e));t=o.a.sortedUniq(n.sort())}else t=e.column.filterOptions;const n=t.map(t=>this.createColumnFilterOption(t,e.column.pipe));e.value&&o.a.isUndefined(o.a.find(n,{raw:e.value.raw}))&&(e.value=void 0),e.options=n})}onSelectFilter(e){this.selectedFilter=e}onChangeFilter(e,t){e.value=o.a.isEqual(e.value,t)?void 0:t,this.updateFilter()}doColumnFiltering(){const e=[];let t=[...this.data],n=[];return this.columnFilters.forEach(i=>{if(void 0===i.value)return;e.push({name:i.column.name,prop:i.column.prop,value:i.value});const s=o.a.partition(t,e=>{const t=Object(r.j)(i.column.prop)(e,i.column.prop);return o.a.isUndefined(i.column.filterPredicate)?`${t}`===i.value.raw:i.column.filterPredicate(e,i.value.raw)});t=s[0],n=[...n,...s[1]]}),this.columnFiltersChanged.emit({filters:e,data:t,dataOut:n}),o.a.forEach(this.selection.selected,e=>{void 0===o.a.find(t,{[this.identifier]:e[this.identifier]})&&(this.selection=new f.a,this.onSelect(this.selection))}),t}ngOnDestroy(){this.reloadSubscriber&&this.reloadSubscriber.unsubscribe(),this.saveSubscriber&&this.saveSubscriber.unsubscribe()}ngAfterContentChecked(){this.table&&this.table.element.clientWidth!==this.currentWidth&&(this.currentWidth=this.table.element.clientWidth,this.table.recalculate(),o.a.get(this.table,"cd").markForCheck())}_addTemplates(){this.cellTemplates.bold=this.tableCellBoldTpl,this.cellTemplates.checkIcon=this.checkIconTpl,this.cellTemplates.sparkline=this.sparklineTpl,this.cellTemplates.routerLink=this.routerLinkTpl,this.cellTemplates.perSecond=this.perSecondTpl,this.cellTemplates.executing=this.executingTpl,this.cellTemplates.classAdding=this.classAddingTpl,this.cellTemplates.badge=this.badgeTpl,this.cellTemplates.map=this.mapTpl,this.cellTemplates.truncate=this.truncateTpl}useCustomClass(e){if(!this.customCss)throw new Error("Custom classes are not set!");const t=Object.keys(this.customCss),n=Object.values(this.customCss).map((n,i)=>(o.a.isFunction(n)&&n(e)||n===e)&&t[i]).filter(e=>e).join(" ");return o.a.isEmpty(n)?void 0:n}ngOnChanges(e){e.data&&e.data.currentValue&&this.useData()}setLimit(e){const t=parseInt(e.target.value,10);t>0&&(this.userConfig.limit=t)}reloadData(){if(!this.updating){this.status=new l.a;const e=new h(()=>{e.errorConfig.displayError&&(this.status=new l.a("danger","Failed to load data.")),e.errorConfig.resetData&&(this.data=[]),this.useData()});this.fetchData.emit(e),this.updating=!0}}refreshBtn(){this.loadingIndicator=!0,this.reloadData()}rowIdentity(){return e=>{const t=e[this.identifier];if(o.a.isUndefined(t))throw new Error(`Wrong identifier "${this.identifier}" -> "${t}"`);return t}}useData(){this.data&&(this.updateColumnFilterOptions(),this.updateFilter(),this.reset(),this.updateSelected(),this.updateExpanded())}reset(){this.loadingIndicator=!1,this.updating=!1}updateSelected(){if("never"===this.updateSelectionOnRefresh)return;const e=[];this.selection.selected.forEach(t=>{for(const n of this.data)t[this.identifier]===n[this.identifier]&&e.push(n)}),"onChange"===this.updateSelectionOnRefresh&&o.a.isEqual(this.selection.selected,e)||(this.selection.selected=e,this.onSelect(this.selection))}updateExpanded(){if(o.a.isUndefined(this.expanded)||"never"===this.updateExpandedOnRefresh)return;const e=this.expanded[this.identifier],t=o.a.find(this.data,t=>e===t[this.identifier]);"onChange"===this.updateExpandedOnRefresh&&o.a.isEqual(this.expanded,t)||(this.expanded=t,this.setExpandedRow.emit(t))}onSelect(e){o.a.has(e,"selected")&&(this.selection.selected=e.selected),this.updateSelection.emit(o.a.clone(this.selection))}toggleColumn(e){const t=e.prop,n=!e.isHidden;n&&1===this.tableColumns.length?e.isHidden=!0:(o.a.find(this.localColumns,e=>e.prop===t).isHidden=n,this.updateColumns())}updateColumns(){this.updateUserColumns(),this.filterHiddenColumns();const e=this.userConfig.sorts[0].prop;o.a.find(this.tableColumns,t=>t.prop===e)||(this.userConfig.sorts=this.createSortingDefinition(this.tableColumns[0].prop)),this.table.recalculate(),this.cdRef.detectChanges()}createSortingDefinition(e){return[{prop:e,dir:r.i.asc}]}changeSorting({sorts:e}){this.userConfig.sorts=e}onClearSearch(){this.search="",this.updateFilter()}onClearFilters(){this.columnFilters.forEach(e=>{e.value=void 0}),this.selectedFilter=o.a.first(this.columnFilters),this.updateFilter()}updateFilter(){let t=0!==this.columnFilters.length?this.doColumnFiltering():this.data;if(this.search.length>0&&t){const n=this.localColumns.filter(e=>e.cellTransformation!==u.a.sparkline);t=this.subSearch(t,e.prepareSearch(this.search),n),this.table.offset=0}this.rows=t}subSearch(e,t,n){if(0===t.length||0===e.length)return e;const i=t.pop().replace(/\+/g," ").split(":"),r=[...n];return 2===i.length&&(n=r.filter(e=>-1!==e.name.toLowerCase().indexOf(i[0]))),e=this.basicDataSearch(o.a.last(i),e,n),this.subSearch(e,t,r)}basicDataSearch(e,t,n){return 0===e.length?t:t.filter(t=>n.filter(n=>{let i=o.a.get(t,n.prop);if(o.a.isUndefined(n.pipe)||(i=n.pipe.transform(i)),o.a.isUndefined(i)||o.a.isNull(i))return!1;if(o.a.isArray(i)?i=i.join(" "):(o.a.isNumber(i)||o.a.isBoolean(i))&&(i=i.toString()),o.a.isObjectLike(i)){if(!this.searchableObjects)return!1;i=JSON.stringify(i)}return-1!==i.toLowerCase().indexOf(e)}).length>0)}getRowClass(){return()=>({clickable:!o.a.isUndefined(this.selectionType)})}toggleExpandRow(e,t,n){n.stopPropagation(),t?(this.expanded=void 0,this.setExpandedRow.emit(void 0)):(this.expanded=e,this.table.rowDetail.collapseAllRows(),this.setExpandedRow.emit(e)),this.table.rowDetail.toggleExpandRow(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.D),i.Rb(i.i))},e.\u0275cmp=i.Lb({type:e,selectors:[["cd-table"]],viewQuery:function(e,t){if(1&e&&(i.Wc(r.d,3),i.Wc(k,3),i.Wc(T,3),i.Wc(M,3),i.Wc(C,3),i.Wc(O,3),i.Wc(L,3),i.Wc(E,3),i.Wc(A,3),i.Wc(I,3),i.Wc(R,3),i.Wc(P,3)),2&e){let e;i.Ec(e=i.mc())&&(t.table=e.first),i.Ec(e=i.mc())&&(t.tableCellBoldTpl=e.first),i.Ec(e=i.mc())&&(t.sparklineTpl=e.first),i.Ec(e=i.mc())&&(t.routerLinkTpl=e.first),i.Ec(e=i.mc())&&(t.checkIconTpl=e.first),i.Ec(e=i.mc())&&(t.perSecondTpl=e.first),i.Ec(e=i.mc())&&(t.executingTpl=e.first),i.Ec(e=i.mc())&&(t.classAddingTpl=e.first),i.Ec(e=i.mc())&&(t.badgeTpl=e.first),i.Ec(e=i.mc())&&(t.mapTpl=e.first),i.Ec(e=i.mc())&&(t.truncateTpl=e.first),i.Ec(e=i.mc())&&(t.rowDetailsTpl=e.first)}},inputs:{data:"data",columns:"columns",sorts:"sorts",columnMode:"columnMode",onlyActionHeader:"onlyActionHeader",toolHeader:"toolHeader",searchField:"searchField",header:"header",footer:"footer",limit:"limit",hasDetails:"hasDetails",autoReload:"autoReload",identifier:"identifier",forceIdentifier:"forceIdentifier",selectionType:"selectionType",updateSelectionOnRefresh:"updateSelectionOnRefresh",updateExpandedOnRefresh:"updateExpandedOnRefresh",autoSave:"autoSave",searchableObjects:"searchableObjects",customCss:"customCss",extraFilterableColumns:"extraFilterableColumns",status:"status"},outputs:{fetchData:"fetchData",updateSelection:"updateSelection",setExpandedRow:"setExpandedRow",columnFiltersChanged:"columnFiltersChanged"},features:[i.Bb],ngContentSelectors:ve,decls:33,vars:17,consts:function(){let e,t,n,i,r;return e="Clear filters",t="total",n="selected",i="found",r="Expand/Collapse Row",[[1,"dataTables_wrapper"],["class","dataTables_header clearfix",4,"ngIf"],[1,"bootstrap","cd-datatable",3,"cssClasses","selectionType","selected","sorts","columns","columnMode","rows","rowClass","headerHeight","footerHeight","limit","loadingIndicator","rowIdentity","rowHeight","select","sort"],["table",""],["rowHeight","auto"],["detailRow",""],["ngx-datatable-row-detail-template",""],["ngx-datatable-footer-template",""],["tableCellBoldTpl",""],["sparklineTpl",""],["routerLinkTpl",""],["checkIconTpl",""],["perSecondTpl",""],["executingTpl",""],["classAddingTpl",""],["badgeTpl",""],["mapTpl",""],["truncateTpl",""],["ngx-datatable-cell-template",""],["rowDetailsTpl",""],[1,"dataTables_header","clearfix"],[1,"cd-datatable-actions"],["class","btn-group widget-toolbar",4,"ngIf"],["class","input-group search",4,"ngIf"],["class","input-group dataTables_paginate",4,"ngIf"],[1,"widget-toolbar"],["ngbDropdown","","autoClose","outside",1,"tc_menuitem"],["ngbDropdownToggle","",1,"btn","btn-light","tc_columnBtn"],[3,"ngClass"],["ngbDropdownMenu",""],[4,"ngFor","ngForOf"],["class","widget-toolbar tc_refreshBtn",4,"ngIf"],[1,"btn-group","widget-toolbar"],["ngbDropdown","","placement","bottom-right",1,"tc_filter_name"],["ngbDropdownToggle","",1,"btn","btn-light"],["ngbDropdown","","placement","bottom-right",1,"tc_filter_option"],["ngbDropdownItem","",3,"click"],[3,"ngClass",4,"ngIf"],[1,"input-group","search"],[1,"input-group-prepend"],[1,"input-group-text"],["type","text",1,"form-control",3,"ngModel","ngModelChange","keyup"],[1,"input-group-append"],["type","button",1,"btn","btn-light",3,"click"],[1,"input-group","dataTables_paginate"],["type","number","min","1","max","9999",1,"form-control",3,"value","click","keyup","blur"],["ngbDropdownItem","",3,"click",4,"ngIf"],[1,"custom-control","custom-checkbox","py-0"],["type","checkbox",1,"custom-control-input",3,"name","id","checked"],[1,"custom-control-label",3,"for"],[1,"widget-toolbar","tc_refreshBtn"],["type","button",3,"ngbTooltip","click"],[1,"filter-chips"],["href","",1,"tc_clearSelections",3,"click"],e,["class","badge badge-info mr-2",4,"ngIf"],[1,"badge","badge-info","mr-2"],[1,"mr-2"],[1,"badge-remove",3,"click"],["aria-hidden","true",3,"ngClass"],[1,"page-count"],[4,"ngIf"],t,[3,"pagerLeftArrowIcon","pagerRightArrowIcon","pagerPreviousIcon","pagerNextIcon","page","size","count","hidden","change"],n,i,[3,"data","isBinary"],[3,"routerLink","queryParams"],[3,"ngClass","hidden"],["class","badge",3,"ngClass",4,"ngIf"],[1,"badge",3,"ngClass"],["data-toggle","tooltip",3,"title"],["href","javascript:void(0)","title",r,1,"expand-collapse-icon","tc_expand-collapse",3,"click"]]},template:function(e,t){1&e&&(i.tc(_e),i.Xb(0,"div",0),i.Pc(1,F,3,0,"div",1),i.Pc(2,q,13,9,"div",1),i.Pc(3,K,6,1,"div",1),i.Xb(4,"ngx-datatable",2,3),i.lc("select",function(e){return t.onSelect(e)})("sort",function(e){return t.changeSorting(e)}),i.Xb(6,"ngx-datatable-row-detail",4,5),i.Pc(8,Q,1,0,"ng-template",6),i.Wb(),i.Xb(9,"ngx-datatable-footer"),i.Pc(10,te,8,11,"ng-template",7),i.Wb(),i.Wb(),i.Wb(),i.Pc(11,ne,2,1,"ng-template",null,8,i.Qc),i.Pc(13,ie,1,2,"ng-template",null,9,i.Qc),i.Pc(15,re,2,5,"ng-template",null,10,i.Qc),i.Pc(17,se,2,6,"ng-template",null,11,i.Qc),i.Pc(19,oe,2,3,"ng-template",null,12,i.Qc),i.Pc(21,le,4,4,"ng-template",null,13,i.Qc),i.Pc(23,ue,3,8,"ng-template",null,14,i.Qc),i.Pc(25,pe,2,3,"ng-template",null,15,i.Qc),i.Pc(27,me,3,4,"ng-template",null,16,i.Qc),i.Pc(29,be,3,6,"ng-template",null,17,i.Qc),i.Pc(31,ge,1,4,"ng-template",18,19,i.Qc)),2&e&&(i.Db(1),i.uc("ngIf",t.onlyActionHeader),i.Db(1),i.uc("ngIf",t.toolHeader),i.Db(1),i.uc("ngIf",t.toolHeader&&t.columnFiltered),i.Db(1),i.uc("cssClasses",t.paginationClasses)("selectionType",t.selectionType)("selected",t.selection.selected)("sorts",t.userConfig.sorts)("columns",t.tableColumns)("columnMode",t.columnMode)("rows",t.rows)("rowClass",t.getRowClass())("headerHeight",t.header?"auto":0)("footerHeight",t.footer?"auto":0)("limit",t.userConfig.limit>0?t.userConfig.limit:void 0)("loadingIndicator",t.loadingIndicator)("rowIdentity",t.rowIdentity())("rowHeight","auto"))},directives:[p.r,r.d,r.f,r.g,r.e,r.b,r.a,m.i,m.m,p.p,m.k,p.q,m.j,b.d,b.q,b.t,m.D,r.c,g.a,_.h],pipes:[v.a,y.a,w.b,D.a,S.a,x.a],styles:['@charset "UTF-8";.dataTables_wrapper[_ngcontent-%COMP%]{margin-bottom:25px}.dataTables_wrapper[_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]{border-left:1px solid #00000017;display:inline-block;height:30px;margin-left:5px;padding-left:5px;vertical-align:middle}.dataTables_wrapper[_ngcontent-%COMP%] .widget-toolbar[_ngcontent-%COMP%]{border-left:1px solid #00000017;float:right;padding:0 8px}.dataTables_wrapper[_ngcontent-%COMP%] .widget-toolbar[_ngcontent-%COMP%] .form-check[_ngcontent-%COMP%]{padding-left:0}.dataTables_wrapper[_ngcontent-%COMP%] .dataTables_length[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{line-height:25px;text-align:right}.dataTables_header[_ngcontent-%COMP%]{background-color:#f8f9fa;border:1px solid #ced4da;border-bottom:0;padding:5px;position:relative}.dataTables_header[_ngcontent-%COMP%] .cd-datatable-actions[_ngcontent-%COMP%]{float:left}.dataTables_header[_ngcontent-%COMP%] .form-group[_ngcontent-%COMP%]{padding-left:8px}.dataTables_header[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]{border-left:1px solid #00000017;float:right;max-width:250px;padding-left:8px;padding-right:8px;width:40%}.dataTables_header[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{height:30px}.dataTables_header[_ngcontent-%COMP%] .input-group.dataTables_paginate[_ngcontent-%COMP%]{min-width:85px;padding-right:8px;width:8%}.dataTables_header[_ngcontent-%COMP%] .filter-chips[_ngcontent-%COMP%]{float:right;padding:0 8px}.dataTables_header[_ngcontent-%COMP%] .filter-chips[_ngcontent-%COMP%] .badge-remove[_ngcontent-%COMP%]{color:#fff} cd-table .cd-datatable{border:1px solid #ced4da;margin-bottom:0;max-width:none!important} cd-table .cd-datatable .progress-linear{display:block;height:5px;margin:0;padding:0;position:relative;width:100%} cd-table .cd-datatable .progress-linear .container{background-color:#2b99a8} cd-table .cd-datatable .progress-linear .container .bar{background-color:#2b99a8;height:100%;left:0;overflow:hidden;position:absolute;width:100%} cd-table .cd-datatable .progress-linear .container .bar:before{animation:progress-loading 3s linear infinite;background-color:#2b99a8;content:"";display:block;height:100%;left:-200px;position:absolute;width:200px} cd-table .cd-datatable .datatable-header{background-clip:padding-box;background-color:#f8f9fa;background-image:linear-gradient(180deg,#f8f9fa 0,#e9ecef);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#fffafafa",endColorstr="#ffededed",GradientType=0)} cd-table .cd-datatable .datatable-header .sort-asc, cd-table .cd-datatable .datatable-header .sort-desc{color:#2b99a8} cd-table .cd-datatable .datatable-header .datatable-header-cell{border:0;border-bottom:1px solid #ced4da;border-left:1px solid #ced4da;padding:5px;font-weight:700;text-align:left} cd-table .cd-datatable .datatable-header .datatable-header-cell .datatable-header-cell-label:after{font-family:ForkAwesome;font-weight:400;height:9px;left:10px;line-height:12px;position:relative;vertical-align:initial;width:12px} cd-table .cd-datatable .datatable-header .datatable-header-cell.sortable .datatable-header-cell-label:after{content:" \uf0dc"} cd-table .cd-datatable .datatable-header .datatable-header-cell.sortable.sort-active.sort-asc .datatable-header-cell-label:after{content:" \uf160"} cd-table .cd-datatable .datatable-header .datatable-header-cell.sortable.sort-active.sort-desc .datatable-header-cell-label:after{content:" \uf161"} cd-table .cd-datatable .datatable-header .datatable-header-cell:first-child{border-left:0} cd-table .cd-datatable .datatable-body{margin-bottom:-6px} cd-table .cd-datatable .datatable-body .empty-row{background-color:#c8ecf1;font-style:italic;font-weight:700;padding-bottom:5px;padding-top:5px;text-align:center} cd-table .cd-datatable .datatable-body .datatable-body-row.clickable:hover .datatable-row-group{background-color:#c8ecf1;transition-duration:.3s;transition-property:background;transition-timing-function:linear} cd-table .cd-datatable .datatable-body .datatable-body-row.datatable-row-even{background-color:#fff} cd-table .cd-datatable .datatable-body .datatable-body-row.datatable-row-odd{background-color:#f8f9fa} cd-table .cd-datatable .datatable-body .datatable-body-row.active, cd-table .cd-datatable .datatable-body .datatable-body-row.active:hover{background-color:#9fdee6} cd-table .cd-datatable .datatable-body .datatable-body-row .datatable-body-cell{border:0;border-bottom:1px solid #ced4da;border-left:1px solid #ced4da;padding:5px} cd-table .cd-datatable .datatable-body .datatable-body-row .datatable-body-cell:first-child{border-left:0} cd-table .cd-datatable .datatable-body .datatable-body-row .datatable-body-cell .datatable-body-cell-label{display:block;height:100%} cd-table .cd-datatable .datatable-body .datatable-row-detail{border-bottom:2px solid #ced4da;overflow-y:visible!important;padding:20px} cd-table .cd-datatable .datatable-body .expand-collapse-icon{display:block;height:100%;text-align:center} cd-table .cd-datatable .datatable-body .expand-collapse-icon:hover{text-decoration:none} cd-table .cd-datatable .datatable-body .expand-collapse-icon-right:before{color:#212529;font-family:ForkAwesome,sans-serif;font-size:1rem;line-height:1;content:"\uf105"} cd-table .cd-datatable .datatable-body .expand-collapse-icon-down:before{color:#212529;font-family:ForkAwesome,sans-serif;font-size:1rem;line-height:1;content:"\uf107"} cd-table .cd-datatable .datatable-footer .page-count, cd-table .cd-datatable .datatable-footer .selected-count{font-style:italic;min-height:2rem;padding-left:.3rem;padding-top:.3rem} cd-table .cd-datatable .cd-datatable-checkbox{text-align:center}@keyframes progress-loading{0%{left:-200px;width:15%}50%{width:30%}70%{width:70%}80%{left:50%}95%{left:120%}to{left:100%}}'],changeDetection:0}),e})()},uXwI:function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function i(e,i,r){return e+" "+n(t[r],e,i)}function r(e,i,r){return n(t[r],e,i)}e.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function(e,t){return t?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:i,m:r,mm:i,h:r,hh:i,d:r,dd:i,M:r,MM:i,y:r,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},uYzU:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("8Y7J");let r=(()=>{class e{transform(e){switch(e){case"user:rbd":return"user:rbd (tcmu-runner)";default:return e}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Qb({name:"iscsiBackstore",type:e,pure:!0}),e})()},ufoC:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=function(e){return e.auth="Login",e.cephfs="CephFS",e.rbd="RBD",e.pool="Pool",e.osd="OSD",e.role="Role",e.user="User",e}({}),r=n("jVDg"),s=n("8Y7J");class o{constructor(e,t,n){this.running=e,this.failure=t,this.success=n}}class a{constructor(e,t,n){this.operation=e,this.involves=t,this.errors=n||(()=>({}))}failure(e){return "Failed to " + this.operation.failure + " " + this.involves(e) + ""}running(e){return`${this.operation.running} ${this.involves(e)}`}success(e){return`${this.operation.success} ${this.involves(e)}`}}let c=(()=>{class e{constructor(){this.defaultMessage=this.newTaskMessage(new o("Executing","execute","Executed"),e=>e&&(i[e.component]||e.component)||"unknown task",()=>({})),this.commonOperations={create:new o("Creating","create","Created"),update:new o("Updating","update","Updated"),delete:new o("Deleting","delete","Deleted"),add:new o("Adding","add","Added"),remove:new o("Removing","remove","Removed"),import:new o("Importing","import","Imported")},this.rbd={default:e=>"RBD '" + e.image_spec + "'",create:e=>{const t=new r.a(e.pool_name,e.namespace,e.image_name).toString();return "RBD '" + t + "'"},child:e=>{const t=new r.a(e.child_pool_name,e.child_namespace,e.child_image_name).toString();return "RBD '" + t + "'"},destination:e=>{const t=new r.a(e.dest_pool_name,e.dest_namespace,e.dest_image_name).toString();return "RBD '" + t + "'"},snapshot:e=>"RBD snapshot '" + e.image_spec + "@" + e.snapshot_name + "'"},this.rbd_mirroring={site_name:()=>"mirroring site name",bootstrap:()=>"bootstrap token",pool:e=>"mirror mode for pool '" + e.pool_name + "'",pool_peer:e=>"mirror peer for pool '" + e.pool_name + "'"},this.grafana={update_dashboards:()=>"all dashboards"},this.messages={"host/add":this.newTaskMessage(this.commonOperations.add,e=>this.host(e)),"host/remove":this.newTaskMessage(this.commonOperations.remove,e=>this.host(e)),"host/identify_device":this.newTaskMessage(new o("Identifying","identify","Identified"),e=>"device '" + e.device + "' on host '" + e.hostname + "'"),"osd/create":this.newTaskMessage(this.commonOperations.create,e=>"OSDs (DriveGroups: " + e.tracking_id + ")"),"osd/delete":this.newTaskMessage(this.commonOperations.delete,e=>this.osd(e)),"pool/create":this.newTaskMessage(this.commonOperations.create,e=>this.pool(e),e=>({17:"Name is already used by " + this.pool(e) + "."})),"pool/edit":this.newTaskMessage(this.commonOperations.update,e=>this.pool(e),e=>({17:"Name is already used by " + this.pool(e) + "."})),"pool/delete":this.newTaskMessage(this.commonOperations.delete,e=>this.pool(e)),"ecp/create":this.newTaskMessage(this.commonOperations.create,e=>this.ecp(e),e=>({17:"Name is already used by " + this.ecp(e) + "."})),"ecp/delete":this.newTaskMessage(this.commonOperations.delete,e=>this.ecp(e)),"crushRule/create":this.newTaskMessage(this.commonOperations.create,e=>this.crushRule(e),e=>({17:"Name is already used by " + this.crushRule(e) + "."})),"crushRule/delete":this.newTaskMessage(this.commonOperations.delete,e=>this.crushRule(e)),"rbd/create":this.newTaskMessage(this.commonOperations.create,this.rbd.create,e=>({17:"Name is already used by " + this.rbd.create(e) + "."})),"rbd/edit":this.newTaskMessage(this.commonOperations.update,this.rbd.default,e=>({17:"Name is already used by " + this.rbd.default(e) + "."})),"rbd/delete":this.newTaskMessage(this.commonOperations.delete,this.rbd.default,e=>({16:"" + this.rbd.default(e) + " is busy.",39:"" + this.rbd.default(e) + " contains snapshots."})),"rbd/clone":this.newTaskMessage(new o("Cloning","clone","Cloned"),this.rbd.child,e=>({17:"Name is already used by " + this.rbd.child(e) + ".",22:"Snapshot of " + this.rbd.child(e) + " must be protected."})),"rbd/copy":this.newTaskMessage(new o("Copying","copy","Copied"),this.rbd.destination,e=>({17:"Name is already used by " + this.rbd.destination(e) + "."})),"rbd/flatten":this.newTaskMessage(new o("Flattening","flatten","Flattened"),this.rbd.default),"rbd/snap/create":this.newTaskMessage(this.commonOperations.create,this.rbd.snapshot,e=>({17:"Name is already used by " + this.rbd.snapshot(e) + "."})),"rbd/snap/edit":this.newTaskMessage(this.commonOperations.update,this.rbd.snapshot,e=>({16:"Cannot unprotect " + this.rbd.snapshot(e) + " because it contains child images."})),"rbd/snap/delete":this.newTaskMessage(this.commonOperations.delete,this.rbd.snapshot,e=>({16:"Cannot delete " + this.rbd.snapshot(e) + " because it's protected."})),"rbd/snap/rollback":this.newTaskMessage(new o("Rolling back","rollback","Rolled back"),this.rbd.snapshot),"rbd/trash/move":this.newTaskMessage(new o("Moving","move","Moved"),e=>"image '" + e.image_spec + "' to trash",()=>({2:"Could not find image."})),"rbd/trash/restore":this.newTaskMessage(new o("Restoring","restore","Restored"),e=>"image '" + e.image_id_spec + "' into '" + e.new_image_name + "'",e=>({17:"Image name '" + e.new_image_name + "' is already in use."})),"rbd/trash/remove":this.newTaskMessage(new o("Deleting","delete","Deleted"),e=>"image '" + e.image_id_spec + "'"),"rbd/trash/purge":this.newTaskMessage(new o("Purging","purge","Purged"),e=>{let t="all pools";return e.pool_name&&(t=`'${e.pool_name}'`),"images from " + t + ""}),"rbd/mirroring/site_name/edit":this.newTaskMessage(this.commonOperations.update,this.rbd_mirroring.site_name,()=>({})),"rbd/mirroring/bootstrap/create":this.newTaskMessage(this.commonOperations.create,this.rbd_mirroring.bootstrap,()=>({})),"rbd/mirroring/bootstrap/import":this.newTaskMessage(this.commonOperations.import,this.rbd_mirroring.bootstrap,()=>({})),"rbd/mirroring/pool/edit":this.newTaskMessage(this.commonOperations.update,this.rbd_mirroring.pool,()=>({16:"Cannot disable mirroring because it contains a peer."})),"rbd/mirroring/peer/add":this.newTaskMessage(this.commonOperations.create,this.rbd_mirroring.pool_peer,()=>({})),"rbd/mirroring/peer/edit":this.newTaskMessage(this.commonOperations.update,this.rbd_mirroring.pool_peer,()=>({})),"rbd/mirroring/peer/delete":this.newTaskMessage(this.commonOperations.delete,this.rbd_mirroring.pool_peer,()=>({})),"iscsi/target/create":this.newTaskMessage(this.commonOperations.create,e=>this.iscsiTarget(e)),"iscsi/target/edit":this.newTaskMessage(this.commonOperations.update,e=>this.iscsiTarget(e)),"iscsi/target/delete":this.newTaskMessage(this.commonOperations.delete,e=>this.iscsiTarget(e)),"nfs/create":this.newTaskMessage(this.commonOperations.create,e=>this.nfs(e)),"nfs/edit":this.newTaskMessage(this.commonOperations.update,e=>this.nfs(e)),"nfs/delete":this.newTaskMessage(this.commonOperations.delete,e=>this.nfs(e)),"grafana/dashboards/update":this.newTaskMessage(this.commonOperations.update,this.grafana.update_dashboards,()=>({})),"service/create":this.newTaskMessage(this.commonOperations.create,e=>this.service(e)),"service/edit":this.newTaskMessage(this.commonOperations.update,e=>this.service(e)),"service/delete":this.newTaskMessage(this.commonOperations.delete,e=>this.service(e))}}newTaskMessage(e,t,n){return new a(e,t,n)}host(e){return "host '" + e.hostname + "'"}osd(e){return "OSD '" + e.svc_id + "'"}pool(e){return "pool '" + e.pool_name + "'"}ecp(e){return "erasure code profile '" + e.name + "'"}crushRule(e){return "crush rule '" + e.name + "'"}iscsiTarget(e){return "target '" + e.target_iqn + "'"}nfs(e){return "NFS '" + e.cluster_id + ":" + (e.export_id ? e.export_id : e.path) + "'"}service(e){return "Service '" + e.service_name + "'"}_getTaskTitle(e){return e.name&&e.name.startsWith("progress/")?this.newTaskMessage(new o(e.name.replace("progress/",""),"",e.name.replace("progress/","")),e=>""):this.messages[e.name]||this.defaultMessage}getSuccessTitle(e){return this._getTaskTitle(e).success(e.metadata)}getErrorMessage(e){return this._getTaskTitle(e).errors(e.metadata)[e.exception.code]||e.exception.detail}getErrorTitle(e){return this._getTaskTitle(e).failure(e.metadata)}getRunningTitle(e){return this._getTaskTitle(e).running(e.metadata)}getRunningText(e){return this._getTaskTitle(e).operation.running}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=s.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},uy83:function(e,t,n){var i=n("0Dky");e.exports=!i(function(){return Object.isExtensible(Object.preventExtensions({}))})},uyHG:function(e,t){var n,i="__lodash_hash_undefined__",r=/^\[object .+?Constructor\]$/,s="object"==typeof global&&global&&global.Object===Object&&global,o="object"==typeof self&&self&&self.Object===Object&&self,a=s||o||Function("return this")(),c=Array.prototype,l=Function.prototype,u=Object.prototype,d=a["__core-js_shared__"],h=(n=/[^.]+$/.exec(d&&d.keys&&d.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",f=l.toString,p=u.hasOwnProperty,m=u.toString,b=RegExp("^"+f.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),g=c.splice,_=k(a,"Map"),v=k(Object,"create");function y(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function w(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function D(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function S(e,t){for(var n,i,r=e.length;r--;)if((n=e[r][0])===(i=t)||n!=n&&i!=i)return r;return-1}function x(e,t){var n,i,r=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function k(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!M(e)||(t=e,h&&h in t))&&(function(e){var t=M(e)?m.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}(e)?b:r).test(function(e){if(null!=e){try{return f.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e));var t}(n)?n:void 0}function T(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],s=n.cache;if(s.has(r))return s.get(r);var o=e.apply(this,i);return n.cache=s.set(r,o),o};return n.cache=new(T.Cache||D),n}function M(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}y.prototype.clear=function(){this.__data__=v?v(null):{}},y.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},y.prototype.get=function(e){var t=this.__data__;if(v){var n=t[e];return n===i?void 0:n}return p.call(t,e)?t[e]:void 0},y.prototype.has=function(e){var t=this.__data__;return v?void 0!==t[e]:p.call(t,e)},y.prototype.set=function(e,t){return this.__data__[e]=v&&void 0===t?i:t,this},w.prototype.clear=function(){this.__data__=[]},w.prototype.delete=function(e){var t=this.__data__,n=S(t,e);return!(n<0||(n==t.length-1?t.pop():g.call(t,n,1),0))},w.prototype.get=function(e){var t=this.__data__,n=S(t,e);return n<0?void 0:t[n][1]},w.prototype.has=function(e){return S(this.__data__,e)>-1},w.prototype.set=function(e,t){var n=this.__data__,i=S(n,e);return i<0?n.push([e,t]):n[i][1]=t,this},D.prototype.clear=function(){this.__data__={hash:new y,map:new(_||w),string:new y}},D.prototype.delete=function(e){return x(this,e).delete(e)},D.prototype.get=function(e){return x(this,e).get(e)},D.prototype.has=function(e){return x(this,e).has(e)},D.prototype.set=function(e,t){return x(this,e).set(e,t),this},T.Cache=D,e.exports=T},vCyI:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{constructor(e){this._selected=[],e&&(this._selected=e),this.update()}update(){this.hasSelection=this._selected.length>0,this.hasSingleSelection=1===this._selected.length,this.hasMultiSelection=this._selected.length>1}set selected(e){this._selected=e,this.update()}get selected(){return this._selected}add(e){this._selected.push(e),this.update()}first(){return this.hasSelection?this._selected[0]:null}}},vJtL:function(e,t,n){"use strict";var i=n("8M4i"),r=n("IzLi");t.a=function(e){if(!Object(r.a)(e))return!1;var t=Object(i.a)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},vkgz:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("7o/Q"),r=n("KqfI"),s=n("n6bG");function o(e,t,n){return function(i){return i.lift(new a(e,t,n))}}class a{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new c(e,this.nextOrObserver,this.error,this.complete))}}class c extends i.a{constructor(e,t,n,i){super(e),this._tapNext=r.a,this._tapError=r.a,this._tapComplete=r.a,this._tapError=n||r.a,this._tapComplete=i||r.a,Object(s.a)(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||r.a,this._tapError=t.error||r.a,this._tapComplete=t.complete||r.a)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}},w1tV:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("EQ5u"),r=n("x+ZX"),s=n("XNiG");function o(){return new s.a}function a(){return e=>{return Object(r.a)()((t=o,function(e){let n;n="function"==typeof t?t:function(){return t};const r=Object.create(e,i.b);return r.source=e,r.subjectFactory=n,r})(e));var t}}},w9WL:function(e,t,n){"use strict";n.d(t,"a",function(){return Pe}),n.d(t,"b",function(){return ue}),n.d(t,"c",function(){return ft}),n.d(t,"d",function(){return ut}),n.d(t,"e",function(){return Ne}),n.d(t,"f",function(){return Ye}),n.d(t,"g",function(){return je}),n.d(t,"h",function(){return xt}),n.d(t,"i",function(){return ct}),n.d(t,"j",function(){return ye});var i=n("8Y7J"),r=n("SVse"),s=n("XNiG"),o=n("xgIS"),a=n("2Vo4"),c=n("1G5W"),l=n("mrSG");const u=["*"];function d(e,t){1&e&&i.Sb(0,"datatable-progress")}function h(e,t){if(1&e&&i.Sb(0,"datatable-summary-row",9),2&e){const e=i.nc(2);i.uc("rowHeight",e.summaryHeight)("offsetX",e.offsetX)("innerWidth",e.innerWidth)("rows",e.rows)("columns",e.columns)}}function f(e,t){if(1&e){const e=i.Yb();i.Xb(0,"datatable-body-row",13),i.lc("treeAction",function(){i.Ic(e);const t=i.nc().$implicit;return i.nc(2).onTreeAction(t)})("activate",function(t){i.Ic(e);const n=i.nc().index,r=i.nc(2);return i.Fc(2).onActivate(t,r.indexes.first+n)}),i.Wb()}if(2&e){const e=i.nc().$implicit,t=i.nc(2),n=i.Fc(2);i.uc("isSelected",n.getRowSelected(e))("innerWidth",t.innerWidth)("offsetX",t.offsetX)("columns",t.columns)("rowHeight",t.getRowHeight(e))("row",e)("rowIndex",t.getRowIndex(e))("expanded",t.getRowExpanded(e))("rowClass",t.rowClass)("displayCheck",t.displayCheck)("treeStatus",e&&e.treeStatus)}}function p(e,t){if(1&e){const e=i.Yb();i.Xb(0,"datatable-body-row",15),i.lc("activate",function(n){i.Ic(e);const r=t.index;return i.nc(4),i.Fc(2).onActivate(n,r)}),i.Wb()}if(2&e){const e=t.$implicit,n=i.nc(2).$implicit,r=i.nc(2),s=i.Fc(2);i.uc("isSelected",s.getRowSelected(e))("innerWidth",r.innerWidth)("offsetX",r.offsetX)("columns",r.columns)("rowHeight",r.getRowHeight(e))("row",e)("group",n.value)("rowIndex",r.getRowIndex(e))("expanded",r.getRowExpanded(e))("rowClass",r.rowClass)}}function m(e,t){if(1&e&&i.Pc(0,p,1,10,"datatable-body-row",14),2&e){const e=i.nc().$implicit,t=i.nc(2);i.uc("ngForOf",e.value)("ngForTrackBy",t.rowTrackingFn)}}function b(e,t){if(1&e){const e=i.Yb();i.Xb(0,"datatable-row-wrapper",10),i.lc("rowContextmenu",function(t){return i.Ic(e),i.nc(2).rowContextmenu.emit(t)}),i.Pc(1,f,1,11,"datatable-body-row",11),i.Pc(2,m,1,2,"ng-template",null,12,i.Qc),i.Wb()}if(2&e){const e=t.$implicit,n=t.index,r=i.Fc(3),s=i.nc(2);i.uc("groupedRows",s.groupedRows)("innerWidth",s.innerWidth)("ngStyle",s.getRowsStyles(e))("rowDetail",s.rowDetail)("groupHeader",s.groupHeader)("offsetX",s.offsetX)("detailRowHeight",s.getDetailRowHeight(e&&e[n],n))("row",e)("expanded",s.getRowExpanded(e))("rowIndex",s.getRowIndex(e&&e[n])),i.Db(1),i.uc("ngIf",!s.groupedRows)("ngIfElse",r)}}function g(e,t){if(1&e&&i.Sb(0,"datatable-summary-row",16),2&e){const e=i.nc(2);i.uc("ngStyle",e.getBottomSummaryRowStyles())("rowHeight",e.summaryHeight)("offsetX",e.offsetX)("innerWidth",e.innerWidth)("rows",e.rows)("columns",e.columns)}}function _(e,t){if(1&e){const e=i.Yb();i.Xb(0,"datatable-scroller",5),i.lc("scroll",function(t){return i.Ic(e),i.nc().onBodyScroll(t)}),i.Pc(1,h,1,5,"datatable-summary-row",6),i.Pc(2,b,4,12,"datatable-row-wrapper",7),i.Pc(3,g,1,6,"datatable-summary-row",8),i.Wb()}if(2&e){const e=i.nc();i.uc("scrollbarV",e.scrollbarV)("scrollbarH",e.scrollbarH)("scrollHeight",e.scrollHeight)("scrollWidth",null==e.columnGroupWidths?null:e.columnGroupWidths.total),i.Db(1),i.uc("ngIf",e.summaryRow&&"top"===e.summaryPosition),i.Db(1),i.uc("ngForOf",e.temp)("ngForTrackBy",e.rowTrackingFn),i.Db(1),i.uc("ngIf",e.summaryRow&&"bottom"===e.summaryPosition)}}function v(e,t){if(1&e&&i.Sb(0,"div",17),2&e){const e=i.nc();i.uc("innerHTML",e.emptyMessage,i.Jc)}}function y(e,t){if(1&e){const e=i.Yb();i.Xb(0,"datatable-header-cell",4),i.lc("resize",function(n){i.Ic(e);const r=t.$implicit;return i.nc(2).onColumnResized(n,r)})("longPressStart",function(t){return i.Ic(e),i.nc(2).onLongPressStart(t)})("longPressEnd",function(t){return i.Ic(e),i.nc(2).onLongPressEnd(t)})("sort",function(t){return i.Ic(e),i.nc(2).onSort(t)})("select",function(t){return i.Ic(e),i.nc(2).select.emit(t)})("columnContextmenu",function(t){return i.Ic(e),i.nc(2).columnContextmenu.emit(t)}),i.Wb()}if(2&e){const e=t.$implicit,n=i.nc(2);i.uc("resizeEnabled",e.resizeable)("pressModel",e)("pressEnabled",n.reorderable&&e.draggable)("dragX",n.reorderable&&e.draggable&&e.dragging)("dragY",!1)("dragModel",e)("dragEventTarget",n.dragEventTarget)("headerHeight",n.headerHeight)("isTarget",e.isTarget)("targetMarkerTemplate",n.targetMarkerTemplate)("targetMarkerContext",e.targetMarkerContext)("column",e)("sortType",n.sortType)("sorts",n.sorts)("selectionType",n.selectionType)("sortAscendingIcon",n.sortAscendingIcon)("sortDescendingIcon",n.sortDescendingIcon)("sortUnsetIcon",n.sortUnsetIcon)("allRowsSelected",n.allRowsSelected)}}function w(e,t){if(1&e&&(i.Xb(0,"div",2),i.Pc(1,y,1,19,"datatable-header-cell",3),i.Wb()),2&e){const e=t.$implicit,n=i.nc();i.Fb("datatable-row-"+e.type),i.uc("ngStyle",n._styleByGroup[e.type]),i.Db(1),i.uc("ngForOf",e.columns)("ngForTrackBy",n.columnTrackingFn)}}function D(e,t){if(1&e){const e=i.Yb();i.Xb(0,"datatable-header",4),i.lc("sort",function(t){return i.Ic(e),i.nc().onColumnSort(t)})("resize",function(t){return i.Ic(e),i.nc().onColumnResize(t)})("reorder",function(t){return i.Ic(e),i.nc().onColumnReorder(t)})("select",function(t){return i.Ic(e),i.nc().onHeaderSelect(t)})("columnContextmenu",function(t){return i.Ic(e),i.nc().onColumnContextmenu(t)}),i.oc(1,"async"),i.Wb()}if(2&e){const e=i.nc();i.uc("sorts",e.sorts)("sortType",e.sortType)("scrollbarH",e.scrollbarH)("innerWidth",e._innerWidth)("offsetX",i.pc(1,15,e._offsetX))("dealsWithGroup",void 0!==e.groupedRows)("columns",e._internalColumns)("headerHeight",e.headerHeight)("reorderable",e.reorderable)("targetMarkerTemplate",e.targetMarkerTemplate)("sortAscendingIcon",e.cssClasses.sortAscending)("sortDescendingIcon",e.cssClasses.sortDescending)("sortUnsetIcon",e.cssClasses.sortUnset)("allRowsSelected",e.allRowsSelected)("selectionType",e.selectionType)}}function S(e,t){if(1&e){const e=i.Yb();i.Xb(0,"datatable-footer",5),i.lc("page",function(t){return i.Ic(e),i.nc().onFooterPage(t)}),i.Wb()}if(2&e){const e=i.nc();i.uc("rowCount",e.rowCount)("pageSize",e.pageSize)("offset",e.offset)("footerHeight",e.footerHeight)("footerTemplate",e.footer)("totalMessage",e.messages.totalMessage)("pagerLeftArrowIcon",e.cssClasses.pagerLeftArrow)("pagerRightArrowIcon",e.cssClasses.pagerRightArrow)("pagerPreviousIcon",e.cssClasses.pagerPrevious)("selectedCount",e.selected.length)("selectedMessage",!!e.selectionType&&e.messages.selectedMessage)("pagerNextIcon",e.cssClasses.pagerNext)}}function x(e,t){}function k(e,t){if(1&e&&i.Pc(0,x,0,0,"ng-template",5),2&e){const e=i.nc();i.uc("ngTemplateOutlet",e.targetMarkerTemplate)("ngTemplateOutletContext",e.targetMarkerContext)}}function T(e,t){if(1&e){const e=i.Yb();i.Xb(0,"label",6),i.Xb(1,"input",7),i.lc("change",function(){i.Ic(e);const t=i.nc();return t.select.emit(!t.allRowsSelected)}),i.Wb(),i.Wb()}if(2&e){const e=i.nc();i.Db(1),i.uc("checked",e.allRowsSelected)}}function M(e,t){if(1&e){const e=i.Yb();i.Xb(0,"span",8),i.Xb(1,"span",9),i.lc("click",function(){return i.Ic(e),i.nc().onSort()}),i.Wb(),i.Wb()}if(2&e){const e=i.nc();i.Db(1),i.uc("innerHTML",e.name,i.Jc)}}function C(e,t){}function O(e,t){if(1&e&&i.Pc(0,C,0,0,"ng-template",5),2&e){const e=i.nc();i.uc("ngTemplateOutlet",e.column.headerTemplate)("ngTemplateOutletContext",e.cellContext)}}function L(e,t){}const E=function(e,t,n,i,r){return{rowCount:e,pageSize:t,selectedCount:n,curPage:i,offset:r}};function A(e,t){if(1&e&&i.Pc(0,L,0,0,"ng-template",4),2&e){const e=i.nc();i.uc("ngTemplateOutlet",e.footerTemplate.template)("ngTemplateOutletContext",i.Dc(2,E,e.rowCount,e.pageSize,e.selectedCount,e.curPage,e.offset))}}function I(e,t){if(1&e&&(i.Xb(0,"span"),i.Rc(1),i.Wb()),2&e){const e=i.nc(2);i.Db(1),i.Uc(" ",null==e.selectedCount?null:e.selectedCount.toLocaleString()," ",e.selectedMessage," / ")}}function R(e,t){if(1&e&&(i.Xb(0,"div",5),i.Pc(1,I,2,2,"span",1),i.Rc(2),i.Wb()),2&e){const e=i.nc();i.Db(1),i.uc("ngIf",e.selectedMessage),i.Db(1),i.Uc(" ",null==e.rowCount?null:e.rowCount.toLocaleString()," ",e.totalMessage," ")}}function P(e,t){if(1&e){const e=i.Yb();i.Xb(0,"datatable-pager",6),i.lc("change",function(t){return i.Ic(e),i.nc().page.emit(t)}),i.Wb()}if(2&e){const e=i.nc();i.uc("pagerLeftArrowIcon",e.pagerLeftArrowIcon)("pagerRightArrowIcon",e.pagerRightArrowIcon)("pagerPreviousIcon",e.pagerPreviousIcon)("pagerNextIcon",e.pagerNextIcon)("page",e.curPage)("size",e.pageSize)("count",e.rowCount)("hidden",!e.isVisible)}}const F=function(e){return{"selected-count":e}};function W(e,t){if(1&e){const e=i.Yb();i.Xb(0,"li",6),i.Xb(1,"a",7),i.lc("click",function(){i.Ic(e);const n=t.$implicit;return i.nc().selectPage(n.number)}),i.Rc(2),i.Wb(),i.Wb()}if(2&e){const e=t.$implicit,n=i.nc();i.Jb("active",e.number===n.page),i.Eb("aria-label","page "+e.number),i.Db(2),i.Tc(" ",e.text," ")}}function j(e,t){if(1&e){const e=i.Yb();i.Xb(0,"datatable-body-cell",3),i.lc("activate",function(n){i.Ic(e);const r=t.index;return i.nc(2).onActivate(n,r)})("treeAction",function(){return i.Ic(e),i.nc(2).onTreeAction()}),i.Wb()}if(2&e){const e=t.$implicit,n=i.nc(2);i.uc("row",n.row)("group",n.group)("expanded",n.expanded)("isSelected",n.isSelected)("rowIndex",n.rowIndex)("column",e)("rowHeight",n.rowHeight)("displayCheck",n.displayCheck)("treeStatus",n.treeStatus)}}function Y(e,t){if(1&e&&(i.Xb(0,"div",1),i.Pc(1,j,1,9,"datatable-body-cell",2),i.Wb()),2&e){const e=t.$implicit,n=i.nc();i.Gb("datatable-row-",e.type," datatable-row-group"),i.uc("ngStyle",n._groupStyles[e.type]),i.Db(1),i.uc("ngForOf",e.columns)("ngForTrackBy",n.columnTrackingFn)}}function N(e,t){}function z(e,t){if(1&e&&i.Pc(0,N,0,0,"ng-template",4),2&e){const e=i.nc(2);i.uc("ngTemplateOutlet",e.groupHeader.template)("ngTemplateOutletContext",e.groupContext)}}function $(e,t){if(1&e&&(i.Xb(0,"div",3),i.Pc(1,z,1,2,void 0,1),i.Wb()),2&e){const e=i.nc();i.uc("ngStyle",e.getGroupHeaderStyle()),i.Db(1),i.uc("ngIf",e.groupHeader&&e.groupHeader.template)}}function H(e,t){1&e&&i.sc(0,0,["*ngIf","(groupHeader && groupHeader.template && expanded) || !groupHeader || !groupHeader.template"])}function X(e,t){}function V(e,t){if(1&e&&i.Pc(0,X,0,0,"ng-template",4),2&e){const e=i.nc(2);i.uc("ngTemplateOutlet",e.rowDetail.template)("ngTemplateOutletContext",e.rowContext)}}function B(e,t){if(1&e&&(i.Xb(0,"div",5),i.Pc(1,V,1,2,void 0,1),i.Wb()),2&e){const e=i.nc();i.Nc("height",e.detailRowHeight,"px"),i.Db(1),i.uc("ngIf",e.rowDetail&&e.rowDetail.template)}}const U=["cellTemplate"];function q(e,t){if(1&e){const e=i.Yb();i.Xb(0,"label",4),i.Xb(1,"input",5),i.lc("click",function(t){return i.Ic(e),i.nc().onCheckboxChange(t)}),i.Wb(),i.Wb()}if(2&e){const e=i.nc();i.Db(1),i.uc("checked",e.isSelected)}}function G(e,t){1&e&&i.Sb(0,"i",11)}function J(e,t){1&e&&i.Sb(0,"i",12)}function K(e,t){1&e&&i.Sb(0,"i",13)}function Q(e,t){if(1&e){const e=i.Yb();i.Xb(0,"button",7),i.lc("click",function(){return i.Ic(e),i.nc(2).onTreeAction()}),i.Xb(1,"span"),i.Pc(2,G,1,0,"i",8),i.Pc(3,J,1,0,"i",9),i.Pc(4,K,1,0,"i",10),i.Wb(),i.Wb()}if(2&e){const e=i.nc(2);i.uc("disabled","disabled"===e.treeStatus),i.Db(2),i.uc("ngIf","loading"===e.treeStatus),i.Db(1),i.uc("ngIf","collapsed"===e.treeStatus),i.Db(1),i.uc("ngIf","expanded"===e.treeStatus||"disabled"===e.treeStatus)}}function Z(e,t){}const ee=function(e){return{cellContext:e}};function te(e,t){if(1&e&&i.Pc(0,Z,0,0,"ng-template",14),2&e){const e=i.nc(2);i.uc("ngTemplateOutlet",e.column.treeToggleTemplate)("ngTemplateOutletContext",i.zc(2,ee,e.cellContext))}}function ne(e,t){if(1&e&&(i.Vb(0),i.Pc(1,Q,5,4,"button",6),i.Pc(2,te,1,4,void 0,2),i.Ub()),2&e){const e=i.nc();i.Db(1),i.uc("ngIf",!e.column.treeToggleTemplate),i.Db(1),i.uc("ngIf",e.column.treeToggleTemplate)}}function ie(e,t){if(1&e&&i.Sb(0,"span",15),2&e){const e=i.nc();i.uc("title",e.sanitizedValue)("innerHTML",e.value,i.Jc)}}function re(e,t){}function se(e,t){if(1&e&&i.Pc(0,re,0,0,"ng-template",14,16,i.Qc),2&e){const e=i.nc();i.uc("ngTemplateOutlet",e.column.cellTemplate)("ngTemplateOutletContext",e.cellContext)}}function oe(e,t){if(1&e&&i.Sb(0,"datatable-body-row",1),2&e){const e=i.nc();i.uc("innerWidth",e.innerWidth)("offsetX",e.offsetX)("columns",e._internalColumns)("rowHeight",e.rowHeight)("row",e.summaryRow)("rowIndex",-1)}}let ae=(()=>{class e{constructor(e){this.document=e,this.width=this.getWidth()}getWidth(){const e=this.document.createElement("div");e.style.visibility="hidden",e.style.width="100px",e.style.msOverflowStyle="scrollbar",this.document.body.appendChild(e);const t=e.offsetWidth;e.style.overflow="scroll";const n=this.document.createElement("div");n.style.width="100%",e.appendChild(n);const i=n.offsetWidth;return e.parentNode.removeChild(e),t-i}}return e.\u0275fac=function(t){return new(t||e)(i.ic(r.d))},e.\u0275prov=i.Nb({token:e,factory:e.\u0275fac}),e})(),ce=(()=>{class e{getDimensions(e){return e.getBoundingClientRect()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Nb({token:e,factory:e.\u0275fac}),e})(),le=(()=>{class e{constructor(){this.columnInputChanges=new s.a}get columnInputChanges$(){return this.columnInputChanges.asObservable()}onInputChange(){this.columnInputChanges.next()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Nb({token:e,factory:e.\u0275fac}),e})(),ue=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.O))},e.\u0275dir=i.Mb({type:e,selectors:[["","ngx-datatable-footer-template",""]]}),e})(),de=(()=>{class e{constructor(e,t){this.element=e,this.zone=t,this.isVisible=!1,this.visible=new i.p}ngOnInit(){this.runCheck()}ngOnDestroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{const{offsetHeight:t,offsetWidth:n}=this.element.nativeElement;t&&n?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),50)}))};this.timeout=setTimeout(()=>e())}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.n),i.Rb(i.D))},e.\u0275dir=i.Mb({type:e,selectors:[["","visibilityObserver",""]],hostVars:2,hostBindings:function(e,t){2&e&&i.Jb("visible",t.isVisible)},outputs:{visible:"visible"}}),e})(),he=(()=>{class e{constructor(e){this.dragX=!0,this.dragY=!0,this.dragStart=new i.p,this.dragging=new i.p,this.dragEnd=new i.p,this.isDragging=!1,this.element=e.nativeElement}ngOnChanges(e){e.dragEventTarget&&e.dragEventTarget.currentValue&&this.dragModel.dragging&&this.onMousedown(e.dragEventTarget.currentValue)}ngOnDestroy(){this._destroySubscription()}onMouseup(e){this.isDragging&&(this.isDragging=!1,this.element.classList.remove("dragging"),this.subscription&&(this._destroySubscription(),this.dragEnd.emit({event:e,element:this.element,model:this.dragModel})))}onMousedown(e){if(e.target.classList.contains("draggable")&&(this.dragX||this.dragY)){e.preventDefault(),this.isDragging=!0;const t={x:e.clientX,y:e.clientY},n=Object(o.a)(document,"mouseup");this.subscription=n.subscribe(e=>this.onMouseup(e));const i=Object(o.a)(document,"mousemove").pipe(Object(c.a)(n)).subscribe(e=>this.move(e,t));this.subscription.add(i),this.dragStart.emit({event:e,element:this.element,model:this.dragModel})}}move(e,t){if(!this.isDragging)return;const n=e.clientY-t.y;this.dragX&&(this.element.style.left=e.clientX-t.x+"px"),this.dragY&&(this.element.style.top=`${n}px`),this.element.classList.add("dragging"),this.dragging.emit({event:e,element:this.element,model:this.dragModel})}_destroySubscription(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.n))},e.\u0275dir=i.Mb({type:e,selectors:[["","draggable",""]],inputs:{dragX:"dragX",dragY:"dragY",dragEventTarget:"dragEventTarget",dragModel:"dragModel"},outputs:{dragStart:"dragStart",dragging:"dragging",dragEnd:"dragEnd"},features:[i.Bb]}),e})(),fe=(()=>{class e{constructor(e,t){this.renderer=t,this.resizeEnabled=!0,this.resize=new i.p,this.resizing=!1,this.element=e.nativeElement}ngAfterViewInit(){const e=this.renderer;this.resizeHandle=e.createElement("span"),e.addClass(this.resizeHandle,this.resizeEnabled?"resize-handle":"resize-handle--not-resizable"),e.appendChild(this.element,this.resizeHandle)}ngOnDestroy(){this._destroySubscription(),this.renderer.destroyNode?this.renderer.destroyNode(this.resizeHandle):this.resizeHandle&&this.renderer.removeChild(this.renderer.parentNode(this.resizeHandle),this.resizeHandle)}onMouseup(){this.resizing=!1,this.subscription&&!this.subscription.closed&&(this._destroySubscription(),this.resize.emit(this.element.clientWidth))}onMousedown(e){const t=e.target.classList.contains("resize-handle"),n=this.element.clientWidth,i=e.screenX;if(t){e.stopPropagation(),this.resizing=!0;const t=Object(o.a)(document,"mouseup");this.subscription=t.subscribe(e=>this.onMouseup());const r=Object(o.a)(document,"mousemove").pipe(Object(c.a)(t)).subscribe(e=>this.move(e,n,i));this.subscription.add(r)}}move(e,t,n){const i=t+(e.screenX-n);(!this.minWidth||i>=this.minWidth)&&(!this.maxWidth||i<=this.maxWidth)&&(this.element.style.width=`${i}px`)}_destroySubscription(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.n),i.Rb(i.H))},e.\u0275dir=i.Mb({type:e,selectors:[["","resizeable",""]],hostVars:2,hostBindings:function(e,t){1&e&&i.lc("mousedown",function(e){return t.onMousedown(e)}),2&e&&i.Jb("resizeable",t.resizeEnabled)},inputs:{resizeEnabled:"resizeEnabled",minWidth:"minWidth",maxWidth:"maxWidth"},outputs:{resize:"resize"}}),e})(),pe=(()=>{class e{constructor(e,t){this.document=t,this.reorder=new i.p,this.targetChanged=new i.p,this.differ=e.find({}).create()}ngAfterContentInit(){this.updateSubscriptions(),this.draggables.changes.subscribe(this.updateSubscriptions.bind(this))}ngOnDestroy(){this.draggables.forEach(e=>{e.dragStart.unsubscribe(),e.dragging.unsubscribe(),e.dragEnd.unsubscribe()})}updateSubscriptions(){const e=this.differ.diff(this.createMapDiffs());if(e){const t=({currentValue:e,previousValue:t})=>{n({previousValue:t}),e&&(e.dragStart.subscribe(this.onDragStart.bind(this)),e.dragging.subscribe(this.onDragging.bind(this)),e.dragEnd.subscribe(this.onDragEnd.bind(this)))},n=({previousValue:e})=>{e&&(e.dragStart.unsubscribe(),e.dragging.unsubscribe(),e.dragEnd.unsubscribe())};e.forEachAddedItem(t),e.forEachRemovedItem(n)}}onDragStart(){this.positions={};let e=0;for(const t of this.draggables.toArray()){const n=t.element,i=parseInt(n.offsetLeft.toString(),0);this.positions[t.dragModel.prop]={left:i,right:i+parseInt(n.offsetWidth.toString(),0),index:e++,element:n}}}onDragging({model:e,event:t}){const n=this.positions[e.prop],i=this.isTarget(e,t);i?this.lastDraggingIndex!==i.i&&(this.targetChanged.emit({prevIndex:this.lastDraggingIndex,newIndex:i.i,initialIndex:n.index}),this.lastDraggingIndex=i.i):this.lastDraggingIndex!==n.index&&(this.targetChanged.emit({prevIndex:this.lastDraggingIndex,initialIndex:n.index}),this.lastDraggingIndex=n.index)}onDragEnd({element:e,model:t,event:n}){const i=this.positions[t.prop],r=this.isTarget(t,n);r&&this.reorder.emit({prevIndex:i.index,newIndex:r.i,model:t}),this.lastDraggingIndex=void 0,e.style.left="auto"}isTarget(e,t){let n=0;const i=this.document.elementsFromPoint(t.x||t.clientX,t.y||t.clientY);for(const r in this.positions){const t=this.positions[r];if(e.prop!==r&&i.find(e=>e===t.element))return{pos:t,i:n};n++}}createMapDiffs(){return this.draggables.toArray().reduce((e,t)=>(e[t.dragModel.$$id]=t,e),{})}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.x),i.Rb(r.d))},e.\u0275dir=i.Mb({type:e,selectors:[["","orderable",""]],contentQueries:function(e,t,n){if(1&e&&i.Kb(n,he,1),2&e){let e;i.Ec(e=i.mc())&&(t.draggables=e)}},outputs:{reorder:"reorder",targetChanged:"targetChanged"}}),e})(),me=(()=>{class e{constructor(){this.pressEnabled=!0,this.duration=500,this.longPressStart=new i.p,this.longPressing=new i.p,this.longPressEnd=new i.p,this.mouseX=0,this.mouseY=0}get press(){return this.pressing}get isLongPress(){return this.isLongPressing}onMouseDown(e){if(1!==e.which||!this.pressEnabled)return;if(e.target.classList.contains("resize-handle"))return;this.mouseX=e.clientX,this.mouseY=e.clientY,this.pressing=!0,this.isLongPressing=!1;const t=Object(o.a)(document,"mouseup");this.subscription=t.subscribe(e=>this.onMouseup()),this.timeout=setTimeout(()=>{this.isLongPressing=!0,this.longPressStart.emit({event:e,model:this.pressModel}),this.subscription.add(Object(o.a)(document,"mousemove").pipe(Object(c.a)(t)).subscribe(e=>this.onMouseMove(e))),this.loop(e)},this.duration),this.loop(e)}onMouseMove(e){if(this.pressing&&!this.isLongPressing){const t=Math.abs(e.clientX-this.mouseX)>10,n=Math.abs(e.clientY-this.mouseY)>10;(t||n)&&this.endPress()}}loop(e){this.isLongPressing&&(this.timeout=setTimeout(()=>{this.longPressing.emit({event:e,model:this.pressModel}),this.loop(e)},50))}endPress(){clearTimeout(this.timeout),this.isLongPressing=!1,this.pressing=!1,this._destroySubscription(),this.longPressEnd.emit({model:this.pressModel})}onMouseup(){this.endPress()}ngOnDestroy(){this._destroySubscription()}_destroySubscription(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Mb({type:e,selectors:[["","long-press",""]],hostVars:4,hostBindings:function(e,t){1&e&&i.lc("mousedown",function(e){return t.onMouseDown(e)}),2&e&&i.Jb("press",t.press)("longpress",t.isLongPress)},inputs:{pressEnabled:"pressEnabled",duration:"duration",pressModel:"pressModel"},outputs:{longPressStart:"longPressStart",longPressing:"longPressing",longPressEnd:"longPressEnd"}}),e})(),be=(()=>{class e{constructor(e,t,n){this.ngZone=e,this.renderer=n,this.scrollbarV=!1,this.scrollbarH=!1,this.scroll=new i.p,this.scrollYPos=0,this.scrollXPos=0,this.prevScrollYPos=0,this.prevScrollXPos=0,this._scrollEventListener=null,this.element=t.nativeElement}ngOnInit(){if(this.scrollbarV||this.scrollbarH){const e=this.renderer;this.parentElement=e.parentNode(e.parentNode(this.element)),this._scrollEventListener=this.onScrolled.bind(this),this.parentElement.addEventListener("scroll",this._scrollEventListener)}}ngOnDestroy(){this._scrollEventListener&&(this.parentElement.removeEventListener("scroll",this._scrollEventListener),this._scrollEventListener=null)}setOffset(e){this.parentElement&&(this.parentElement.scrollTop=e)}onScrolled(e){const t=e.currentTarget;requestAnimationFrame(()=>{this.scrollYPos=t.scrollTop,this.scrollXPos=t.scrollLeft,this.updateOffset()})}updateOffset(){let e;this.scrollYPos<this.prevScrollYPos?e="down":this.scrollYPos>this.prevScrollYPos&&(e="up"),this.scroll.emit({direction:e,scrollYPos:this.scrollYPos,scrollXPos:this.scrollXPos}),this.prevScrollYPos=this.scrollYPos,this.prevScrollXPos=this.scrollXPos}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.D),i.Rb(i.n),i.Rb(i.H))},e.\u0275cmp=i.Lb({type:e,selectors:[["datatable-scroller"]],hostAttrs:[1,"datatable-scroll"],hostVars:4,hostBindings:function(e,t){2&e&&i.Nc("height",t.scrollHeight,"px")("width",t.scrollWidth,"px")},inputs:{scrollbarV:"scrollbarV",scrollbarH:"scrollbarH",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth"},outputs:{scroll:"scroll"},ngContentSelectors:u,decls:1,vars:0,template:function(e,t){1&e&&(i.tc(),i.sc(0))},encapsulation:2,changeDetection:0}),e})(),ge=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.O))},e.\u0275dir=i.Mb({type:e,selectors:[["","ngx-datatable-group-header-template",""]]}),e})(),_e=(()=>{class e{constructor(){this.rowHeight=0,this.toggle=new i.p}get template(){return this._templateInput||this._templateQuery}toggleExpandGroup(e){this.toggle.emit({type:"group",value:e})}expandAllGroups(){this.toggle.emit({type:"all",value:!0})}collapseAllGroups(){this.toggle.emit({type:"all",value:!1})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Mb({type:e,selectors:[["ngx-datatable-group-header"]],contentQueries:function(e,t,n){if(1&e&&i.Kb(n,ge,3,i.O),2&e){let e;i.Ec(e=i.mc())&&(t._templateQuery=e.first)}},inputs:{rowHeight:"rowHeight",_templateInput:["template","_templateInput"]},outputs:{toggle:"toggle"}}),e})();function ve(){return""}function ye(e){return null==e?ve:"number"==typeof e?we:-1!==e.indexOf(".")?Se:De}function we(e,t){if(null==e)return"";if(!e||null==t)return e;const n=e[t];return null==n?"":n}function De(e,t){if(null==e)return"";if(!e||!t)return e;const n=e[t];return null==n?"":n}function Se(e,t){if(null==e)return"";if(!e||!t)return e;let n=e[t];if(void 0!==n)return n;n=e;const i=t.split(".");if(i.length)for(let r=0;r<i.length;r++)if(n=n[i[r]],null==n)return"";return n}function xe(e){return e&&(t=>ye(e)(t,e))}function ke(e,t,n){if(t&&n){const i={},r=e.length;let s=null;i[0]=new Te;const o=e.reduce((e,t)=>{const i=n(t);return-1===e.indexOf(i)&&e.push(i),e},[]);for(let t=0;t<r;t++)i[n(e[t])]=new Te(e[t]);for(let c=0;c<r;c++){s=i[n(e[c])];let r=0;const a=t(s.row);a&&o.indexOf(a)>-1&&(r=a),s.parent=i[r],s.row.level=s.parent.row.level+1,s.parent.children.push(s)}let a=[];return i[0].flatten(function(){a=[...a,this.row]},!0),a}return e}class Te{constructor(e=null){e||(e={level:-1,treeStatus:"expanded"}),this.row=e,this.parent=null,this.children=[]}flatten(e,t){if("expanded"===this.row.treeStatus)for(let n=0,i=this.children.length;n<i;n++){const i=this.children[n];e.apply(i,Array.prototype.slice.call(arguments,2)),t&&i.flatten.apply(i,arguments)}}}function Me(e){return(e=(e=(e=e.replace(/[^a-zA-Z0-9 ]/g," ")).replace(/([a-z](?=[A-Z]))/g,"$1 ")).replace(/([^a-zA-Z0-9 ])|^[0-9]+/g,"").trim().toLowerCase()).replace(/([ 0-9]+)([a-zA-Z])/g,function(e,t,n){return t.trim()+n.toUpperCase()})}function Ce(e){if(!e)return;let t=!1;for(const n of e)n.$$id||(n.$$id=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)),Oe(n.prop)&&n.name&&(n.prop=Me(n.name)),n.$$valueGetter||(n.$$valueGetter=ye(n.prop)),!Oe(n.prop)&&Oe(n.name)&&(n.name=String(n.prop).replace(/([A-Z])/g,e=>` ${e}`).replace(/^./,e=>e.toUpperCase())),Oe(n.prop)&&Oe(n.name)&&(n.name=""),n.hasOwnProperty("resizeable")||(n.resizeable=!0),n.hasOwnProperty("sortable")||(n.sortable=!0),n.hasOwnProperty("draggable")||(n.draggable=!0),n.hasOwnProperty("canAutoResize")||(n.canAutoResize=!0),n.hasOwnProperty("width")||(n.width=150),n.hasOwnProperty("isTreeColumn")&&n.isTreeColumn&&!t?t=!0:n.isTreeColumn=!1}function Oe(e){return null==e}var Le=function(e){return e.standard="standard",e.flex="flex",e.force="force",e}({}),Ee=function(e){return e.single="single",e.multi="multi",e.multiClick="multiClick",e.cell="cell",e.checkbox="checkbox",e}({}),Ae=function(e){return e.single="single",e.multi="multi",e}({}),Ie=function(e){return e.header="header",e.body="body",e}({});let Re=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.O))},e.\u0275dir=i.Mb({type:e,selectors:[["","ngx-datatable-header-template",""]]}),e})(),Pe=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.O))},e.\u0275dir=i.Mb({type:e,selectors:[["","ngx-datatable-cell-template",""]]}),e})(),Fe=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.O))},e.\u0275dir=i.Mb({type:e,selectors:[["","ngx-datatable-tree-toggle",""]]}),e})(),We=(()=>{class e{constructor(e){this.columnChangesService=e,this.isFirstChange=!0}get cellTemplate(){return this._cellTemplateInput||this._cellTemplateQuery}get headerTemplate(){return this._headerTemplateInput||this._headerTemplateQuery}get treeToggleTemplate(){return this._treeToggleTemplateInput||this._treeToggleTemplateQuery}ngOnChanges(){this.isFirstChange?this.isFirstChange=!1:this.columnChangesService.onInputChange()}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(le))},e.\u0275dir=i.Mb({type:e,selectors:[["ngx-datatable-column"]],contentQueries:function(e,t,n){if(1&e&&(i.Kb(n,Pe,3,i.O),i.Kb(n,Re,3,i.O),i.Kb(n,Fe,3,i.O)),2&e){let e;i.Ec(e=i.mc())&&(t._cellTemplateQuery=e.first),i.Ec(e=i.mc())&&(t._headerTemplateQuery=e.first),i.Ec(e=i.mc())&&(t._treeToggleTemplateQuery=e.first)}},inputs:{name:"name",prop:"prop",frozenLeft:"frozenLeft",frozenRight:"frozenRight",flexGrow:"flexGrow",resizeable:"resizeable",comparator:"comparator",pipe:"pipe",sortable:"sortable",draggable:"draggable",canAutoResize:"canAutoResize",minWidth:"minWidth",width:"width",maxWidth:"maxWidth",checkboxable:"checkboxable",headerCheckboxable:"headerCheckboxable",headerClass:"headerClass",cellClass:"cellClass",isTreeColumn:"isTreeColumn",treeLevelIndent:"treeLevelIndent",summaryFunc:"summaryFunc",summaryTemplate:"summaryTemplate",_cellTemplateInput:["cellTemplate","_cellTemplateInput"],_headerTemplateInput:["headerTemplate","_headerTemplateInput"],_treeToggleTemplateInput:["treeToggleTemplate","_treeToggleTemplateInput"]},features:[i.Bb]}),e})(),je=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.O))},e.\u0275dir=i.Mb({type:e,selectors:[["","ngx-datatable-row-detail-template",""]]}),e})(),Ye=(()=>{class e{constructor(){this.rowHeight=0,this.toggle=new i.p}get template(){return this._templateInput||this._templateQuery}toggleExpandRow(e){this.toggle.emit({type:"row",value:e})}expandAllRows(){this.toggle.emit({type:"all",value:!0})}collapseAllRows(){this.toggle.emit({type:"all",value:!1})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Mb({type:e,selectors:[["ngx-datatable-row-detail"]],contentQueries:function(e,t,n){if(1&e&&i.Kb(n,je,3,i.O),2&e){let e;i.Ec(e=i.mc())&&(t._templateQuery=e.first)}},inputs:{rowHeight:"rowHeight",_templateInput:["template","_templateInput"]},outputs:{toggle:"toggle"}}),e})(),Ne=(()=>{class e{get template(){return this._templateInput||this._templateQuery}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Mb({type:e,selectors:[["ngx-datatable-footer"]],contentQueries:function(e,t,n){if(1&e&&i.Kb(n,ue,1,i.O),2&e){let e;i.Ec(e=i.mc())&&(t._templateQuery=e.first)}},inputs:{footerHeight:"footerHeight",totalMessage:"totalMessage",selectedMessage:"selectedMessage",pagerLeftArrowIcon:"pagerLeftArrowIcon",pagerRightArrowIcon:"pagerRightArrowIcon",pagerPreviousIcon:"pagerPreviousIcon",pagerNextIcon:"pagerNextIcon",_templateInput:["template","_templateInput"]}}),e})();function ze(e){const t={left:[],center:[],right:[]};if(e)for(const n of e)n.frozenLeft?t.left.push(n):n.frozenRight?t.right.push(n):t.center.push(n);return t}function $e(e,t){return{left:He(e.left),center:He(e.center),right:He(e.right),total:Math.floor(He(t))}}function He(e,t){let n=0;if(e)for(const i of e)n+=parseFloat(t&&i[t]?i[t]:i.width);return n}function Xe(e){const t=[],n=ze(e);return t.push({type:"left",columns:n.left}),t.push({type:"center",columns:n.center}),t.push({type:"right",columns:n.right}),t}class Ve{constructor(){this.treeArray=[]}clearCache(){this.treeArray=[]}initCache(e){const{rows:t,rowHeight:n,detailRowHeight:i,externalVirtual:r,rowCount:s,rowIndexes:o,rowExpansions:a}=e,c="function"==typeof n,l="function"==typeof i;if(!c&&isNaN(n))throw new Error(`Row Height cache initialization failed. Please ensure that 'rowHeight' is a\n valid number or function value: (${n}) when 'scrollbarV' is enabled.`);if(!l&&isNaN(i))throw new Error(`Row Height cache initialization failed. Please ensure that 'detailRowHeight' is a\n valid number or function value: (${i}) when 'scrollbarV' is enabled.`);const u=r?s:t.length;this.treeArray=new Array(u);for(let d=0;d<u;++d)this.treeArray[d]=0;for(let d=0;d<u;++d){const e=t[d];let r=n;c&&(r=n(e));const s=a.has(e);e&&s&&(r+=l?i(e,o.get(e)):i),this.update(d,r)}}getRowIndex(e){return 0===e?0:this.calcRowIndex(e)}update(e,t){if(!this.treeArray.length)throw new Error(`Update at index ${e} with value ${t} failed:\n Row Height cache not initialized.`);const n=this.treeArray.length;for(e|=0;e<n;)this.treeArray[e]+=t,e|=e+1}query(e){if(!this.treeArray.length)throw new Error(`query at index ${e} failed: Fenwick tree array not initialized.`);let t=0;for(e|=0;e>=0;)t+=this.treeArray[e],e=(e&e+1)-1;return t}queryBetween(e,t){return this.query(t)-this.query(e-1)}calcRowIndex(e){if(!this.treeArray.length)return 0;let t=-1;const n=this.treeArray.length;for(let i=Math.pow(2,n.toString(2).length-1);0!==i;i>>=1){const r=t+i;r<n&&e>=this.treeArray[r]&&(e-=this.treeArray[r],t=r)}return t+1}}const Be={},Ue="undefined"!=typeof document?document.createElement("div").style:void 0,qe=function(){const e="undefined"!=typeof window?window.getComputedStyle(document.documentElement,""):void 0,t=void 0!==e?Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/):null,n=null!==t?t[1]:void 0,i=void 0!==n?"WebKit|Moz|MS|O".match(new RegExp("("+n+")","i"))[1]:void 0;return i?{dom:i,lowercase:n,css:`-${n}-`,js:n[0].toUpperCase()+n.substr(1)}:void 0}();function Ge(e){const t=Me(e);return Be[t]||(void 0!==qe&&void 0!==Ue[qe.css+e]?Be[t]=qe.css+e:void 0!==Ue[e]&&(Be[t]=e)),Be[t]}const Je="undefined"!=typeof window?Ge("transform"):void 0,Ke="undefined"!=typeof window?Ge("backfaceVisibility"):void 0,Qe="undefined"!=typeof window?!!Ge("transform"):void 0,Ze="undefined"!=typeof window?!!Ge("perspective"):void 0,et="undefined"!=typeof window?window.navigator.userAgent:"Chrome",tt=/Safari\//.test(et)&&!/Chrome\//.test(et);function nt(e,t,n){void 0!==Je&&Qe?!tt&&Ze?(e[Je]=`translate3d(${t}px, ${n}px, 0)`,e[Ke]="hidden"):e[Me(Je)]=`translate(${t}px, ${n}px)`:(e.top=`${n}px`,e.left=`${t}px`)}let it=(()=>{class e{constructor(e){this.cd=e,this.selected=[],this.scroll=new i.p,this.page=new i.p,this.activate=new i.p,this.select=new i.p,this.detailToggle=new i.p,this.rowContextmenu=new i.p(!1),this.treeAction=new i.p,this.rowHeightsCache=new Ve,this.temp=[],this.offsetY=0,this.indexes={},this.rowIndexes=new WeakMap,this.rowExpansions=[],this.getDetailRowHeight=(e,t)=>{if(!this.rowDetail)return 0;const n=this.rowDetail.rowHeight;return"function"==typeof n?n(e,t):n},this.rowTrackingFn=(e,t)=>{const n=this.getRowIndex(t);return this.trackByProp?t[this.trackByProp]:n}}set pageSize(e){this._pageSize=e,this.recalcLayout()}get pageSize(){return this._pageSize}set rows(e){this._rows=e,this.recalcLayout()}get rows(){return this._rows}set columns(e){this._columns=e;const t=ze(e);this.columnGroupWidths=$e(t,e)}get columns(){return this._columns}set offset(e){this._offset=e,(!this.scrollbarV||this.scrollbarV&&!this.virtualization)&&this.recalcLayout()}get offset(){return this._offset}set rowCount(e){this._rowCount=e,this.recalcLayout()}get rowCount(){return this._rowCount}get bodyWidth(){return this.scrollbarH?this.innerWidth+"px":"100%"}set bodyHeight(e){this._bodyHeight=this.scrollbarV?e+"px":"auto",this.recalcLayout()}get bodyHeight(){return this._bodyHeight}get selectEnabled(){return!!this.selectionType}get scrollHeight(){if(this.scrollbarV&&this.virtualization&&this.rowCount)return this.rowHeightsCache.query(this.rowCount-1)}ngOnInit(){this.rowDetail&&(this.listener=this.rowDetail.toggle.subscribe(({type:e,value:t})=>{"row"===e&&this.toggleRowExpansion(t),"all"===e&&this.toggleAllRows(t),this.updateIndexes(),this.updateRows(),this.cd.markForCheck()})),this.groupHeader&&(this.listener=this.groupHeader.toggle.subscribe(({type:e,value:t})=>{"group"===e&&this.toggleRowExpansion(t),"all"===e&&this.toggleAllRows(t),this.updateIndexes(),this.updateRows(),this.cd.markForCheck()}))}ngOnDestroy(){(this.rowDetail||this.groupHeader)&&this.listener.unsubscribe()}updateOffsetY(e){this.scroller&&(this.scrollbarV&&this.virtualization&&e?e=this.rowHeightsCache.query(this.pageSize*e-1):this.scrollbarV&&!this.virtualization&&(e=0),this.scroller.setOffset(e||0))}onBodyScroll(e){const t=e.scrollYPos,n=e.scrollXPos;this.offsetY===t&&this.offsetX===n||this.scroll.emit({offsetY:t,offsetX:n}),this.offsetY=t,this.offsetX=n,this.updateIndexes(),this.updatePage(e.direction),this.updateRows()}updatePage(e){let t=this.indexes.first/this.pageSize;"up"===e?t=Math.ceil(t):"down"===e&&(t=Math.floor(t)),void 0===e||isNaN(t)||this.page.emit({offset:t})}updateRows(){const{first:e,last:t}=this.indexes;let n=e,i=0;const r=[];if(this.groupedRows){let e=3;for(1===this.groupedRows.length&&(e=this.groupedRows[0].value.length);n<t&&n<this.groupedRows.length;){const e=this.groupedRows[n];this.rowIndexes.set(e,n),e.value&&e.value.forEach((e,t)=>{this.rowIndexes.set(e,`${n}-${t}`)}),r[i]=e,i++,n++}}else for(;n<t&&n<this.rowCount;){const e=this.rows[n];e&&(this.rowIndexes.set(e,n),r[i]=e),i++,n++}this.temp=r}getRowHeight(e){return"function"==typeof this.rowHeight?this.rowHeight(e):this.rowHeight}getGroupHeight(e){let t=0;if(e.value)for(let n=0;n<e.value.length;n++)t+=this.getRowAndDetailHeight(e.value[n]);return t}getRowAndDetailHeight(e){let t=this.getRowHeight(e);return this.getRowExpanded(e)&&(t+=this.getDetailRowHeight(e)),t}getRowsStyles(e){const t={};if(this.groupedRows&&(t.width=this.columnGroupWidths.total),this.scrollbarV&&this.virtualization){let n=0;if(this.groupedRows){const t=e[e.length-1];n=t?this.getRowIndex(t):0}else n=this.getRowIndex(e);nt(t,0,this.rowHeightsCache.query(n-1))}return t}getBottomSummaryRowStyles(){if(!this.scrollbarV||!this.rows||!this.rows.length)return null;const e={position:"absolute"};return nt(e,0,this.rowHeightsCache.query(this.rows.length-1)),e}hideIndicator(){setTimeout(()=>this.loadingIndicator=!1,500)}updateIndexes(){let e=0,t=0;if(this.scrollbarV)if(this.virtualization){const n=parseInt(this.bodyHeight,0);e=this.rowHeightsCache.getRowIndex(this.offsetY),t=this.rowHeightsCache.getRowIndex(n+this.offsetY)+1}else e=0,t=this.rowCount;else this.externalPaging||(e=Math.max(this.offset*this.pageSize,0)),t=Math.min(e+this.pageSize,this.rowCount);this.indexes={first:e,last:t}}refreshRowHeightCache(){if(this.scrollbarV&&(!this.scrollbarV||this.virtualization)&&(this.rowHeightsCache.clearCache(),this.rows&&this.rows.length)){const e=new Set;for(const t of this.rows)this.getRowExpanded(t)&&e.add(t);this.rowHeightsCache.initCache({rows:this.rows,rowHeight:this.rowHeight,detailRowHeight:this.getDetailRowHeight,externalVirtual:this.scrollbarV&&this.externalPaging,rowCount:this.rowCount,rowIndexes:this.rowIndexes,rowExpansions:e})}}getAdjustedViewPortIndex(){const e=this.indexes.first;return this.scrollbarV&&this.virtualization&&this.rowHeightsCache.query(e-1)<=this.offsetY?e-1:e}toggleRowExpansion(e){const t=this.getAdjustedViewPortIndex(),n=this.getRowExpandedIdx(e,this.rowExpansions),i=n>-1;if(this.scrollbarV&&this.virtualization){const t=this.getDetailRowHeight(e)*(i?-1:1),n=this.getRowIndex(e);this.rowHeightsCache.update(n,t)}i?this.rowExpansions.splice(n,1):this.rowExpansions.push(e),this.detailToggle.emit({rows:[e],currentIndex:t})}toggleAllRows(e){this.rowExpansions=[];const t=this.getAdjustedViewPortIndex();if(e)for(const n of this.rows)this.rowExpansions.push(n);this.scrollbarV&&this.recalcLayout(),this.detailToggle.emit({rows:this.rows,currentIndex:t})}recalcLayout(){this.refreshRowHeightCache(),this.updateIndexes(),this.updateRows()}columnTrackingFn(e,t){return t.$$id}stylesByGroup(e){const t=this.columnGroupWidths,n=this.offsetX,i={width:`${t[e]}px`};if("left"===e)nt(i,n,0);else if("right"===e){const e=parseInt(this.innerWidth+"",0);nt(i,-1*(t.total-e-n),0)}return i}getRowExpanded(e){if(0===this.rowExpansions.length&&this.groupExpansionDefault)for(const t of this.groupedRows)this.rowExpansions.push(t);return this.getRowExpandedIdx(e,this.rowExpansions)>-1}getRowExpandedIdx(e,t){if(!t||!t.length)return-1;const n=this.rowIdentity(e);return t.findIndex(e=>this.rowIdentity(e)===n)}getRowIndex(e){return this.rowIndexes.get(e)||0}onTreeAction(e){this.treeAction.emit({row:e})}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.i))},e.\u0275cmp=i.Lb({type:e,selectors:[["datatable-body"]],viewQuery:function(e,t){if(1&e&&i.Wc(be,1),2&e){let e;i.Ec(e=i.mc())&&(t.scroller=e.first)}},hostAttrs:[1,"datatable-body"],hostVars:4,hostBindings:function(e,t){2&e&&i.Nc("width",t.bodyWidth)("height",t.bodyHeight)},inputs:{selected:"selected",pageSize:"pageSize",rows:"rows",columns:"columns",offset:"offset",rowCount:"rowCount",bodyHeight:"bodyHeight",offsetX:"offsetX",loadingIndicator:"loadingIndicator",scrollbarV:"scrollbarV",scrollbarH:"scrollbarH",externalPaging:"externalPaging",rowHeight:"rowHeight",emptyMessage:"emptyMessage",selectionType:"selectionType",rowIdentity:"rowIdentity",rowDetail:"rowDetail",groupHeader:"groupHeader",selectCheck:"selectCheck",displayCheck:"displayCheck",trackByProp:"trackByProp",rowClass:"rowClass",groupedRows:"groupedRows",groupExpansionDefault:"groupExpansionDefault",innerWidth:"innerWidth",groupRowsBy:"groupRowsBy",virtualization:"virtualization",summaryRow:"summaryRow",summaryPosition:"summaryPosition",summaryHeight:"summaryHeight"},outputs:{scroll:"scroll",page:"page",activate:"activate",select:"select",detailToggle:"detailToggle",rowContextmenu:"rowContextmenu",treeAction:"treeAction"},decls:5,vars:9,consts:[[4,"ngIf"],[3,"selected","rows","selectCheck","selectEnabled","selectionType","rowIdentity","select","activate"],["selector",""],[3,"scrollbarV","scrollbarH","scrollHeight","scrollWidth","scroll",4,"ngIf"],["class","empty-row",3,"innerHTML",4,"ngIf"],[3,"scrollbarV","scrollbarH","scrollHeight","scrollWidth","scroll"],[3,"rowHeight","offsetX","innerWidth","rows","columns",4,"ngIf"],[3,"groupedRows","innerWidth","ngStyle","rowDetail","groupHeader","offsetX","detailRowHeight","row","expanded","rowIndex","rowContextmenu",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngStyle","rowHeight","offsetX","innerWidth","rows","columns",4,"ngIf"],[3,"rowHeight","offsetX","innerWidth","rows","columns"],[3,"groupedRows","innerWidth","ngStyle","rowDetail","groupHeader","offsetX","detailRowHeight","row","expanded","rowIndex","rowContextmenu"],["tabindex","-1",3,"isSelected","innerWidth","offsetX","columns","rowHeight","row","rowIndex","expanded","rowClass","displayCheck","treeStatus","treeAction","activate",4,"ngIf","ngIfElse"],["groupedRowsTemplate",""],["tabindex","-1",3,"isSelected","innerWidth","offsetX","columns","rowHeight","row","rowIndex","expanded","rowClass","displayCheck","treeStatus","treeAction","activate"],["tabindex","-1",3,"isSelected","innerWidth","offsetX","columns","rowHeight","row","group","rowIndex","expanded","rowClass","activate",4,"ngFor","ngForOf","ngForTrackBy"],["tabindex","-1",3,"isSelected","innerWidth","offsetX","columns","rowHeight","row","group","rowIndex","expanded","rowClass","activate"],[3,"ngStyle","rowHeight","offsetX","innerWidth","rows","columns"],[1,"empty-row",3,"innerHTML"]],template:function(e,t){1&e&&(i.Pc(0,d,1,0,"datatable-progress",0),i.Xb(1,"datatable-selection",1,2),i.lc("select",function(e){return t.select.emit(e)})("activate",function(e){return t.activate.emit(e)}),i.Pc(3,_,4,8,"datatable-scroller",3),i.Pc(4,v,1,1,"div",4),i.Wb()),2&e&&(i.uc("ngIf",t.loadingIndicator),i.Db(1),i.uc("selected",t.selected)("rows",t.rows)("selectCheck",t.selectCheck)("selectEnabled",t.selectEnabled)("selectionType",t.selectionType)("rowIdentity",t.rowIdentity),i.Db(2),i.uc("ngIf",null==t.rows?null:t.rows.length),i.Db(1),i.uc("ngIf",!(null!=t.rows&&t.rows.length||t.loadingIndicator)))},directives:function(){return[r.r,yt,pt,be,r.q,St,gt,r.s,bt]},encapsulation:2,changeDetection:0}),e})(),rt=(()=>{class e{constructor(e){this.cd=e,this.sort=new i.p,this.reorder=new i.p,this.resize=new i.p,this.select=new i.p,this.columnContextmenu=new i.p(!1),this._columnGroupWidths={total:100},this._styleByGroup={left:{},center:{},right:{}},this.destroyed=!1}set innerWidth(e){this._innerWidth=e,setTimeout(()=>{if(this._columns){const e=ze(this._columns);this._columnGroupWidths=$e(e,this._columns),this.setStylesByGroup()}})}get innerWidth(){return this._innerWidth}set headerHeight(e){this._headerHeight="auto"!==e?`${e}px`:e}get headerHeight(){return this._headerHeight}set columns(e){this._columns=e;const t=ze(e);this._columnsByPin=Xe(e),setTimeout(()=>{this._columnGroupWidths=$e(t,e),this.setStylesByGroup()})}get columns(){return this._columns}set offsetX(e){this._offsetX=e,this.setStylesByGroup()}get offsetX(){return this._offsetX}ngOnDestroy(){this.destroyed=!0}onLongPressStart({event:e,model:t}){t.dragging=!0,this.dragEventTarget=e}onLongPressEnd({event:e,model:t}){this.dragEventTarget=e,setTimeout(()=>{const e=this._columns.find(e=>e.$$id===t.$$id);e&&(e.dragging=!1)},5)}get headerWidth(){return this.scrollbarH?this.innerWidth+"px":"100%"}trackByGroups(e,t){return t.type}columnTrackingFn(e,t){return t.$$id}onColumnResized(e,t){e<=t.minWidth?e=t.minWidth:e>=t.maxWidth&&(e=t.maxWidth),this.resize.emit({column:t,prevValue:t.width,newValue:e})}onColumnReordered({prevIndex:e,newIndex:t,model:n}){const i=this.getColumn(t);i.isTarget=!1,i.targetMarkerContext=void 0,this.reorder.emit({column:n,prevValue:e,newValue:t})}onTargetChanged({prevIndex:e,newIndex:t,initialIndex:n}){if(e||0===e){const t=this.getColumn(e);t.isTarget=!1,t.targetMarkerContext=void 0}if(t||0===t){const e=this.getColumn(t);e.isTarget=!0,n!==t&&(e.targetMarkerContext={class:"targetMarker ".concat(n>t?"dragFromRight":"dragFromLeft")})}}getColumn(e){const t=this._columnsByPin[0].columns.length;if(e<t)return this._columnsByPin[0].columns[e];const n=this._columnsByPin[1].columns.length;return e<t+n?this._columnsByPin[1].columns[e-t]:this._columnsByPin[2].columns[e-t-n]}onSort({column:e,prevValue:t,newValue:n}){if(e.dragging)return;const i=this.calcNewSorts(e,t,n);this.sort.emit({sorts:i,column:e,prevValue:t,newValue:n})}calcNewSorts(e,t,n){let i=0;this.sorts||(this.sorts=[]);const r=this.sorts.map((t,n)=>((t=Object.assign({},t)).prop===e.prop&&(i=n),t));return void 0===n?r.splice(i,1):t?r[i].dir=n:(this.sortType===Ae.single&&r.splice(0,this.sorts.length),r.push({dir:n,prop:e.prop})),r}setStylesByGroup(){this._styleByGroup.left=this.calcStylesByGroup("left"),this._styleByGroup.center=this.calcStylesByGroup("center"),this._styleByGroup.right=this.calcStylesByGroup("right"),this.destroyed||this.cd.detectChanges()}calcStylesByGroup(e){const t=this._columnGroupWidths,n={width:`${t[e]}px`};return"center"===e?nt(n,-1*this.offsetX,0):"right"===e&&nt(n,-1*(t.total-this.innerWidth),0),n}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.i))},e.\u0275cmp=i.Lb({type:e,selectors:[["datatable-header"]],hostAttrs:[1,"datatable-header"],hostVars:4,hostBindings:function(e,t){2&e&&i.Nc("height",t.headerHeight)("width",t.headerWidth)},inputs:{innerWidth:"innerWidth",headerHeight:"headerHeight",columns:"columns",offsetX:"offsetX",sorts:"sorts",sortAscendingIcon:"sortAscendingIcon",sortDescendingIcon:"sortDescendingIcon",sortUnsetIcon:"sortUnsetIcon",scrollbarH:"scrollbarH",dealsWithGroup:"dealsWithGroup",targetMarkerTemplate:"targetMarkerTemplate",sortType:"sortType",allRowsSelected:"allRowsSelected",selectionType:"selectionType",reorderable:"reorderable"},outputs:{sort:"sort",reorder:"reorder",resize:"resize",select:"select",columnContextmenu:"columnContextmenu"},decls:2,vars:4,consts:[["orderable","",1,"datatable-header-inner",3,"reorder","targetChanged"],[3,"class","ngStyle",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngStyle"],["resizeable","","long-press","","draggable","",3,"resizeEnabled","pressModel","pressEnabled","dragX","dragY","dragModel","dragEventTarget","headerHeight","isTarget","targetMarkerTemplate","targetMarkerContext","column","sortType","sorts","selectionType","sortAscendingIcon","sortDescendingIcon","sortUnsetIcon","allRowsSelected","resize","longPressStart","longPressEnd","sort","select","columnContextmenu",4,"ngFor","ngForOf","ngForTrackBy"],["resizeable","","long-press","","draggable","",3,"resizeEnabled","pressModel","pressEnabled","dragX","dragY","dragModel","dragEventTarget","headerHeight","isTarget","targetMarkerTemplate","targetMarkerContext","column","sortType","sorts","selectionType","sortAscendingIcon","sortDescendingIcon","sortUnsetIcon","allRowsSelected","resize","longPressStart","longPressEnd","sort","select","columnContextmenu"]],template:function(e,t){1&e&&(i.Xb(0,"div",0),i.lc("reorder",function(e){return t.onColumnReordered(e)})("targetChanged",function(e){return t.onTargetChanged(e)}),i.Pc(1,w,2,5,"div",1),i.Wb()),2&e&&(i.Nc("width",t._columnGroupWidths.total,"px"),i.Db(1),i.uc("ngForOf",t._columnsByPin)("ngForTrackBy",t.trackByGroups))},directives:function(){return[pe,r.q,r.s,dt,fe,me,he]},encapsulation:2,changeDetection:0}),e})();function st(e,t,n){let i,r,s;n=n||{};let o=null,a=0;function c(){a=!1===n.leading?0:+new Date,o=null,s=e.apply(i,r)}return function(){const l=+new Date;a||!1!==n.leading||(a=l);const u=t-(l-a);return i=this,r=arguments,u<=0?(clearTimeout(o),o=null,a=l,s=e.apply(i,r)):o||!1===n.trailing||(o=setTimeout(c,u)),s}}function ot(e,t){for(const n of t){const t=e.indexOf(n);e.splice(t,1)}}function at(e,t=300){let n=0;for(const i of e)n+=i.width||t;return n}var ct=function(e){return e.asc="asc",e.desc="desc",e}({});function lt(e,t){if(null==e&&(e=0),null==t&&(t=0),e instanceof Date&&t instanceof Date){if(e<t)return-1;if(e>t)return 1}else if(isNaN(parseFloat(e))||!isFinite(e)||isNaN(parseFloat(t))||!isFinite(t)){if(e=String(e),t=String(t),e.toLowerCase()<t.toLowerCase())return-1;if(e.toLowerCase()>t.toLowerCase())return 1}else{if(parseFloat(e)<parseFloat(t))return-1;if(parseFloat(e)>parseFloat(t))return 1}return 0}let ut=(()=>{class e{constructor(e,t,n,r,s,o,c){this.scrollbarHelper=e,this.dimensionsHelper=t,this.cd=n,this.columnChangesService=o,this.configuration=c,this.selected=[],this.scrollbarV=!1,this.scrollbarH=!1,this.rowHeight=30,this.columnMode=Le.standard,this.headerHeight=30,this.footerHeight=0,this.externalPaging=!1,this.externalSorting=!1,this.loadingIndicator=!1,this.reorderable=!0,this.swapColumns=!0,this.sortType=Ae.single,this.sorts=[],this.cssClasses={sortAscending:"datatable-icon-up",sortDescending:"datatable-icon-down",sortUnset:"datatable-icon-sort-unset",pagerLeftArrow:"datatable-icon-left",pagerRightArrow:"datatable-icon-right",pagerPrevious:"datatable-icon-prev",pagerNext:"datatable-icon-skip"},this.messages={emptyMessage:"No data to display",totalMessage:"total",selectedMessage:"selected"},this.groupExpansionDefault=!1,this.selectAllRowsOnPage=!1,this.virtualization=!0,this.summaryRow=!1,this.summaryHeight=30,this.summaryPosition="top",this.scroll=new i.p,this.activate=new i.p,this.select=new i.p,this.sort=new i.p,this.page=new i.p,this.reorder=new i.p,this.resize=new i.p,this.tableContextmenu=new i.p(!1),this.treeAction=new i.p,this.rowCount=0,this._offsetX=new a.a(0),this._count=0,this._offset=0,this._subscriptions=[],this.rowIdentity=e=>this._groupRowsBy?e.key:e,this.element=r.nativeElement,this.rowDiffer=s.find({}).create(),this.configuration&&this.configuration.messages&&(this.messages=Object.assign({},this.configuration.messages))}set rows(e){this._rows=e,e&&(this._internalRows=[...e]),this.externalSorting||this.sortInternalRows(),this._internalRows=ke(this._internalRows,xe(this.treeFromRelation),xe(this.treeToRelation)),this.recalculate(),this._rows&&this._groupRowsBy&&(this.groupedRows=this.groupArrayBy(this._rows,this._groupRowsBy)),this.cd.markForCheck()}get rows(){return this._rows}set groupRowsBy(e){e&&(this._groupRowsBy=e,this._rows&&this._groupRowsBy&&(this.groupedRows=this.groupArrayBy(this._rows,this._groupRowsBy)))}get groupRowsBy(){return this._groupRowsBy}set columns(e){e&&(this._internalColumns=[...e],Ce(this._internalColumns),this.recalculateColumns()),this._columns=e}get columns(){return this._columns}set limit(e){this._limit=e,this.recalculate()}get limit(){return this._limit}set count(e){this._count=e,this.recalculate()}get count(){return this._count}set offset(e){this._offset=e}get offset(){return Math.max(Math.min(this._offset,Math.ceil(this.rowCount/this.pageSize)-1),0)}get isFixedHeader(){const e=this.headerHeight;return"string"!=typeof e||"auto"!==e}get isFixedRow(){return"auto"!==this.rowHeight}get isVertScroll(){return this.scrollbarV}get isVirtualized(){return this.virtualization}get isHorScroll(){return this.scrollbarH}get isSelectable(){return void 0!==this.selectionType}get isCheckboxSelection(){return this.selectionType===Ee.checkbox}get isCellSelection(){return this.selectionType===Ee.cell}get isSingleSelection(){return this.selectionType===Ee.single}get isMultiSelection(){return this.selectionType===Ee.multi}get isMultiClickSelection(){return this.selectionType===Ee.multiClick}set columnTemplates(e){this._columnTemplates=e,this.translateColumns(e)}get columnTemplates(){return this._columnTemplates}get allRowsSelected(){let e=this.rows&&this.selected&&this.selected.length===this.rows.length;if(this.bodyComponent&&this.selectAllRowsOnPage){const t=this.bodyComponent.indexes;e=this.selected.length===t.last-t.first}return this.selected&&this.rows&&0!==this.rows.length&&e}ngOnInit(){this.recalculate()}ngAfterViewInit(){this.externalSorting||this.sortInternalRows(),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(()=>{this.recalculate(),this.externalPaging&&this.scrollbarV&&this.page.emit({count:this.count,pageSize:this.pageSize,limit:this.limit,offset:0})})}ngAfterContentInit(){this.columnTemplates.changes.subscribe(e=>this.translateColumns(e)),this.listenForColumnInputChanges()}translateColumns(e){if(e){const t=e.toArray();t.length&&(this._internalColumns=function(e){const t=[];for(const n of e){const e={},i=Object.getOwnPropertyNames(n);for(const t of i)e[t]=n[t];n.headerTemplate&&(e.headerTemplate=n.headerTemplate),n.cellTemplate&&(e.cellTemplate=n.cellTemplate),n.summaryFunc&&(e.summaryFunc=n.summaryFunc),n.summaryTemplate&&(e.summaryTemplate=n.summaryTemplate),t.push(e)}return t}(t),Ce(this._internalColumns),this.recalculateColumns(),this.sortInternalRows(),this.cd.markForCheck())}}groupArrayBy(e,t){const n=new Map;return e.forEach(e=>{const i=e[t];n.has(i)?n.get(i).push(e):n.set(i,[e])}),Array.from(n,e=>({key:e[0],value:e[1]}))}ngDoCheck(){this.rowDiffer.diff(this.rows)&&(this.externalSorting?this._internalRows=[...this.rows]:this.sortInternalRows(),this._internalRows=ke(this._internalRows,xe(this.treeFromRelation),xe(this.treeToRelation)),this.recalculatePages(),this.cd.markForCheck())}recalculate(){this.recalculateDims(),this.recalculateColumns(),this.cd.markForCheck()}onWindowResize(){this.recalculate()}recalculateColumns(e=this._internalColumns,t=-1,n=this.scrollbarH){if(!e)return;let i=this._innerWidth;return this.scrollbarV&&(i-=this.scrollbarHelper.width),this.columnMode===Le.force?function(e,t,n,i,r=300){const s=e.slice(n+1,e.length).filter(e=>!1!==e.canAutoResize);for(const d of s)d.$$oldWidth||(d.$$oldWidth=d.width);let o=0,a=!1,c=at(e,r),l=t-c;const u=[];do{o=l/s.length,a=c>=t;for(const e of s){if(a&&i)e.width=e.$$oldWidth||e.width||r;else{const t=(e.width||r)+o;e.minWidth&&t<e.minWidth?(e.width=e.minWidth,u.push(e)):e.maxWidth&&t>e.maxWidth?(e.width=e.maxWidth,u.push(e)):e.width=t}e.width=Math.max(0,e.width)}c=at(e),l=t-c,ot(s,u)}while(l>1&&0!==s.length)}(e,i,t,n):this.columnMode===Le.flex&&function(e,t){const n=function(e,t){let n=0;for(const i of e)n+=i.width;return n}(e),i=function(e){let t=0;for(const n of e)t+=n.flexGrow||0;return t}(e),r=ze(e);n!==t&&function(e,t,n){for(const s in e)for(const i of e[s])i.canAutoResize?i.width=0:(t-=i.width,n-=i.flexGrow?i.flexGrow:0);const i={};let r=t;do{const t=r/n;r=0;for(const n in e)for(const s of e[n])if(s.canAutoResize&&!i[s.prop]){const e=s.width+s.flexGrow*t;void 0!==s.minWidth&&e<s.minWidth?(r+=e-s.minWidth,s.width=s.minWidth,i[s.prop]=!0):s.width=e}}while(0!==r)}(r,t,i)}(e,i),e}recalculateDims(){const e=this.dimensionsHelper.getDimensions(this.element);if(this._innerWidth=Math.floor(e.width),this.scrollbarV){let t=e.height;this.headerHeight&&(t-=this.headerHeight),this.footerHeight&&(t-=this.footerHeight),this.bodyHeight=t}this.recalculatePages()}recalculatePages(){this.pageSize=this.calcPageSize(),this.rowCount=this.calcRowCount()}onBodyPage({offset:e}){this.externalPaging&&!this.virtualization||(this.offset=e,this.page.emit({count:this.count,pageSize:this.pageSize,limit:this.limit,offset:this.offset}))}onBodyScroll(e){this._offsetX.next(e.offsetX),this.scroll.emit(e),this.cd.detectChanges()}onFooterPage(e){this.offset=e.page-1,this.bodyComponent.updateOffsetY(this.offset),this.page.emit({count:this.count,pageSize:this.pageSize,limit:this.limit,offset:this.offset}),this.selectAllRowsOnPage&&(this.selected=[],this.select.emit({selected:this.selected}))}calcPageSize(e=this.rows){if(this.scrollbarV&&this.virtualization){const e=Math.ceil(this.bodyHeight/this.rowHeight);return Math.max(e,0)}return void 0!==this.limit?this.limit:e?e.length:0}calcRowCount(e=this.rows){return this.externalPaging?this.count:e?this.groupedRows?this.groupedRows.length:null!=this.treeFromRelation&&null!=this.treeToRelation?this._internalRows.length:e.length:0}onColumnContextmenu({event:e,column:t}){this.tableContextmenu.emit({event:e,type:Ie.header,content:t})}onRowContextmenu({event:e,row:t}){this.tableContextmenu.emit({event:e,type:Ie.body,content:t})}onColumnResize({column:e,newValue:t}){if(void 0===e)return;let n;const i=this._internalColumns.map((i,r)=>((i=Object.assign({},i)).$$id===e.$$id&&(n=r,i.width=t,i.$$oldWidth=t),i));this.recalculateColumns(i,n),this._internalColumns=i,this.resize.emit({column:e,newValue:t})}onColumnReorder({column:e,newValue:t,prevValue:n}){const i=this._internalColumns.map(e=>Object.assign({},e));if(this.swapColumns){const r=i[t];i[t]=e,i[n]=r}else if(t>n){const e=i[n];for(let r=n;r<t;r++)i[r]=i[r+1];i[t]=e}else{const e=i[n];for(let r=n;r>t;r--)i[r]=i[r-1];i[t]=e}this._internalColumns=i,this.reorder.emit({column:e,newValue:t,prevValue:n})}onColumnSort(e){this.selectAllRowsOnPage&&(this.selected=[],this.select.emit({selected:this.selected})),this.sorts=e.sorts,!1===this.externalSorting&&this.sortInternalRows(),this._internalRows=ke(this._internalRows,xe(this.treeFromRelation),xe(this.treeToRelation)),this.offset=0,this.bodyComponent.updateOffsetY(this.offset),this.sort.emit(e)}onHeaderSelect(e){if(this.bodyComponent&&this.selectAllRowsOnPage){const e=this.bodyComponent.indexes.first,t=this.bodyComponent.indexes.last,n=this.selected.length===t-e;this.selected=[],n||this.selected.push(...this._internalRows.slice(e,t))}else{const e=this.selected.length===this.rows.length;this.selected=[],e||this.selected.push(...this.rows)}this.select.emit({selected:this.selected})}onBodySelect(e){this.select.emit(e)}onTreeAction(e){const t=e.row,n=this._rows.findIndex(t=>t[this.treeToRelation]===e.row[this.treeToRelation]);this.treeAction.emit({row:t,rowIndex:n})}ngOnDestroy(){this._subscriptions.forEach(e=>e.unsubscribe())}listenForColumnInputChanges(){this._subscriptions.push(this.columnChangesService.columnInputChanges$.subscribe(()=>{this.columnTemplates&&this.columnTemplates.notifyOnChanges()}))}sortInternalRows(){this._internalRows=function(e,t,n){if(!e)return[];if(!n||!n.length||!t)return[...e];const i=new Map;e.forEach((e,t)=>i.set(e,t));const r=[...e],s=t.reduce((e,t)=>(t.comparator&&"function"==typeof t.comparator&&(e[t.prop]=t.comparator),e),{}),o=n.map(e=>{const t=e.prop;return{prop:t,dir:e.dir,valueGetter:ye(t),compareFn:s[t]||lt}});return r.sort(function(e,t){for(const n of o){const{prop:i,valueGetter:r}=n,s=r(e,i),o=r(t,i),a=n.dir!==ct.desc?n.compareFn(s,o,e,t,n.dir):-n.compareFn(s,o,e,t,n.dir);if(0!==a)return a}return i.has(e)&&i.has(t)?i.get(e)<i.get(t)?-1:1:0})}(this._internalRows,this._internalColumns,this.sorts)}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(ae,4),i.Rb(ce,4),i.Rb(i.i),i.Rb(i.n),i.Rb(i.x),i.Rb(le),i.Rb("configuration",8))},e.\u0275cmp=i.Lb({type:e,selectors:[["ngx-datatable"]],contentQueries:function(e,t,n){if(1&e&&(i.Kb(n,Ye,1),i.Kb(n,_e,1),i.Kb(n,Ne,1),i.Kb(n,We,0)),2&e){let e;i.Ec(e=i.mc())&&(t.rowDetail=e.first),i.Ec(e=i.mc())&&(t.groupHeader=e.first),i.Ec(e=i.mc())&&(t.footer=e.first),i.Ec(e=i.mc())&&(t.columnTemplates=e)}},viewQuery:function(e,t){if(1&e&&(i.Wc(it,1),i.Wc(rt,1)),2&e){let e;i.Ec(e=i.mc())&&(t.bodyComponent=e.first),i.Ec(e=i.mc())&&(t.headerComponent=e.first)}},hostAttrs:[1,"ngx-datatable"],hostVars:22,hostBindings:function(e,t){1&e&&i.lc("resize",function(){return t.onWindowResize()},!1,i.Hc),2&e&&i.Jb("fixed-header",t.isFixedHeader)("fixed-row",t.isFixedRow)("scroll-vertical",t.isVertScroll)("virtualized",t.isVirtualized)("scroll-horz",t.isHorScroll)("selectable",t.isSelectable)("checkbox-selection",t.isCheckboxSelection)("cell-selection",t.isCellSelection)("single-selection",t.isSingleSelection)("multi-selection",t.isMultiSelection)("multi-click-selection",t.isMultiClickSelection)},inputs:{selected:"selected",scrollbarV:"scrollbarV",scrollbarH:"scrollbarH",rowHeight:"rowHeight",columnMode:"columnMode",headerHeight:"headerHeight",footerHeight:"footerHeight",externalPaging:"externalPaging",externalSorting:"externalSorting",loadingIndicator:"loadingIndicator",reorderable:"reorderable",swapColumns:"swapColumns",sortType:"sortType",sorts:"sorts",cssClasses:"cssClasses",messages:"messages",groupExpansionDefault:"groupExpansionDefault",selectAllRowsOnPage:"selectAllRowsOnPage",virtualization:"virtualization",summaryRow:"summaryRow",summaryHeight:"summaryHeight",summaryPosition:"summaryPosition",rowIdentity:"rowIdentity",rows:"rows",groupedRows:"groupedRows",groupRowsBy:"groupRowsBy",columns:"columns",limit:"limit",count:"count",offset:"offset",targetMarkerTemplate:"targetMarkerTemplate",selectionType:"selectionType",rowClass:"rowClass",selectCheck:"selectCheck",displayCheck:"displayCheck",trackByProp:"trackByProp",treeFromRelation:"treeFromRelation",treeToRelation:"treeToRelation"},outputs:{scroll:"scroll",activate:"activate",select:"select",sort:"sort",page:"page",reorder:"reorder",resize:"resize",tableContextmenu:"tableContextmenu",treeAction:"treeAction"},decls:5,vars:34,consts:[["visibilityObserver","",3,"visible"],[3,"sorts","sortType","scrollbarH","innerWidth","offsetX","dealsWithGroup","columns","headerHeight","reorderable","targetMarkerTemplate","sortAscendingIcon","sortDescendingIcon","sortUnsetIcon","allRowsSelected","selectionType","sort","resize","reorder","select","columnContextmenu",4,"ngIf"],[3,"groupRowsBy","groupedRows","rows","groupExpansionDefault","scrollbarV","scrollbarH","virtualization","loadingIndicator","externalPaging","rowHeight","rowCount","offset","trackByProp","columns","pageSize","offsetX","rowDetail","groupHeader","selected","innerWidth","bodyHeight","selectionType","emptyMessage","rowIdentity","rowClass","selectCheck","displayCheck","summaryRow","summaryHeight","summaryPosition","page","activate","rowContextmenu","select","scroll","treeAction"],[3,"rowCount","pageSize","offset","footerHeight","footerTemplate","totalMessage","pagerLeftArrowIcon","pagerRightArrowIcon","pagerPreviousIcon","selectedCount","selectedMessage","pagerNextIcon","page",4,"ngIf"],[3,"sorts","sortType","scrollbarH","innerWidth","offsetX","dealsWithGroup","columns","headerHeight","reorderable","targetMarkerTemplate","sortAscendingIcon","sortDescendingIcon","sortUnsetIcon","allRowsSelected","selectionType","sort","resize","reorder","select","columnContextmenu"],[3,"rowCount","pageSize","offset","footerHeight","footerTemplate","totalMessage","pagerLeftArrowIcon","pagerRightArrowIcon","pagerPreviousIcon","selectedCount","selectedMessage","pagerNextIcon","page"]],template:function(e,t){1&e&&(i.Xb(0,"div",0),i.lc("visible",function(){return t.recalculate()}),i.Pc(1,D,2,17,"datatable-header",1),i.Xb(2,"datatable-body",2),i.lc("page",function(e){return t.onBodyPage(e)})("activate",function(e){return t.activate.emit(e)})("rowContextmenu",function(e){return t.onRowContextmenu(e)})("select",function(e){return t.onBodySelect(e)})("scroll",function(e){return t.onBodyScroll(e)})("treeAction",function(e){return t.onTreeAction(e)}),i.oc(3,"async"),i.Wb(),i.Pc(4,S,1,12,"datatable-footer",3),i.Wb()),2&e&&(i.Db(1),i.uc("ngIf",t.headerHeight),i.Db(1),i.uc("groupRowsBy",t.groupRowsBy)("groupedRows",t.groupedRows)("rows",t._internalRows)("groupExpansionDefault",t.groupExpansionDefault)("scrollbarV",t.scrollbarV)("scrollbarH",t.scrollbarH)("virtualization",t.virtualization)("loadingIndicator",t.loadingIndicator)("externalPaging",t.externalPaging)("rowHeight",t.rowHeight)("rowCount",t.rowCount)("offset",t.offset)("trackByProp",t.trackByProp)("columns",t._internalColumns)("pageSize",t.pageSize)("offsetX",i.pc(3,32,t._offsetX))("rowDetail",t.rowDetail)("groupHeader",t.groupHeader)("selected",t.selected)("innerWidth",t._innerWidth)("bodyHeight",t.bodyHeight)("selectionType",t.selectionType)("emptyMessage",t.messages.emptyMessage)("rowIdentity",t.rowIdentity)("rowClass",t.rowClass)("selectCheck",t.selectCheck)("displayCheck",t.displayCheck)("summaryRow",t.summaryRow)("summaryHeight",t.summaryHeight)("summaryPosition",t.summaryPosition),i.Db(2),i.uc("ngIf",t.footerHeight))},directives:function(){return[de,r.r,it,rt,ht]},pipes:function(){return[r.b]},styles:[".ngx-datatable{display:block;justify-content:center;overflow:hidden;position:relative;transform:translateZ(0)}.ngx-datatable [hidden]{display:none!important}.ngx-datatable *,.ngx-datatable :after,.ngx-datatable :before{box-sizing:border-box}.ngx-datatable.scroll-vertical .datatable-body{overflow-y:auto}.ngx-datatable.scroll-vertical.virtualized .datatable-body .datatable-row-wrapper{position:absolute}.ngx-datatable.scroll-horz .datatable-body{-webkit-overflow-scrolling:touch;overflow-x:auto}.ngx-datatable.fixed-header .datatable-header .datatable-header-inner{white-space:nowrap}.ngx-datatable.fixed-header .datatable-header .datatable-header-inner .datatable-header-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ngx-datatable.fixed-row .datatable-scroll,.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row{white-space:nowrap}.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row .datatable-body-cell,.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row .datatable-body-group-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ngx-datatable .datatable-body-row,.ngx-datatable .datatable-header-inner,.ngx-datatable .datatable-row-center{-o-flex-flow:row;display:flex;flex-direction:row;flex-flow:row}.ngx-datatable .datatable-body-cell,.ngx-datatable .datatable-header-cell{display:inline-block;line-height:1.625;overflow-x:hidden;vertical-align:top}.ngx-datatable .datatable-body-cell:focus,.ngx-datatable .datatable-header-cell:focus{outline:none}.ngx-datatable .datatable-row-left,.ngx-datatable .datatable-row-right{z-index:9}.ngx-datatable .datatable-row-center,.ngx-datatable .datatable-row-group,.ngx-datatable .datatable-row-left,.ngx-datatable .datatable-row-right{position:relative}.ngx-datatable .datatable-header{display:block;overflow:hidden}.ngx-datatable .datatable-header .datatable-header-inner{-webkit-align-items:stretch;align-items:stretch}.ngx-datatable .datatable-header .datatable-header-cell{display:inline-block;position:relative}.ngx-datatable .datatable-header .datatable-header-cell.sortable .datatable-header-cell-wrapper{cursor:pointer}.ngx-datatable .datatable-header .datatable-header-cell.longpress .datatable-header-cell-wrapper{cursor:move}.ngx-datatable .datatable-header .datatable-header-cell .sort-btn{cursor:pointer;display:inline-block;line-height:100%;vertical-align:middle}.ngx-datatable .datatable-header .datatable-header-cell .resize-handle,.ngx-datatable .datatable-header .datatable-header-cell .resize-handle--not-resizable{bottom:0;display:inline-block;padding:0 4px;position:absolute;right:0;top:0;visibility:hidden;width:5px}.ngx-datatable .datatable-header .datatable-header-cell .resize-handle{cursor:ew-resize}.ngx-datatable .datatable-header .datatable-header-cell.resizeable:hover .resize-handle,.ngx-datatable .datatable-header .datatable-header-cell:hover .resize-handle--not-resizable{visibility:visible}.ngx-datatable .datatable-header .datatable-header-cell .targetMarker{bottom:0;position:absolute;top:0}.ngx-datatable .datatable-header .datatable-header-cell .targetMarker.dragFromLeft{right:0}.ngx-datatable .datatable-header .datatable-header-cell .targetMarker.dragFromRight{left:0}.ngx-datatable .datatable-header .datatable-header-cell .datatable-header-cell-template-wrap{height:inherit}.ngx-datatable .datatable-body{display:block;position:relative;z-index:10}.ngx-datatable .datatable-body .datatable-scroll{display:inline-block}.ngx-datatable .datatable-body .datatable-row-detail{overflow-y:hidden}.ngx-datatable .datatable-body .datatable-row-wrapper{display:flex;flex-direction:column}.ngx-datatable .datatable-body .datatable-body-row{outline:none}.ngx-datatable .datatable-body .datatable-body-row>div{display:flex}.ngx-datatable .datatable-footer{display:block;overflow:auto;width:100%}.ngx-datatable .datatable-footer .datatable-footer-inner{align-items:center;display:flex;width:100%}.ngx-datatable .datatable-footer .selected-count .page-count{flex:1 1 40%}.ngx-datatable .datatable-footer .selected-count .datatable-pager{flex:1 1 60%}.ngx-datatable .datatable-footer .page-count{flex:1 1 20%}.ngx-datatable .datatable-footer .datatable-pager{flex:1 1 80%;text-align:right}.ngx-datatable .datatable-footer .datatable-pager .pager,.ngx-datatable .datatable-footer .datatable-pager .pager li{display:inline-block;list-style:none;margin:0;padding:0}.ngx-datatable .datatable-footer .datatable-pager .pager li,.ngx-datatable .datatable-footer .datatable-pager .pager li a{outline:none}.ngx-datatable .datatable-footer .datatable-pager .pager li a{cursor:pointer;display:inline-block}.ngx-datatable .datatable-footer .datatable-pager .pager li.disabled a{cursor:not-allowed}"],encapsulation:2,changeDetection:0}),Object(l.b)([function(e,t,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,t,{configurable:!0,enumerable:n.enumerable,value:st(n.value,5,void 0)}),this[t]}}}],e.prototype,"onWindowResize",null),e})(),dt=(()=>{class e{constructor(e){this.cd=e,this.sort=new i.p,this.select=new i.p,this.columnContextmenu=new i.p(!1),this.sortFn=this.onSort.bind(this),this.selectFn=this.select.emit.bind(this.select),this.cellContext={column:this.column,sortDir:this.sortDir,sortFn:this.sortFn,allRowsSelected:this.allRowsSelected,selectFn:this.selectFn}}set allRowsSelected(e){this._allRowsSelected=e,this.cellContext.allRowsSelected=e}get allRowsSelected(){return this._allRowsSelected}set column(e){this._column=e,this.cellContext.column=e,this.cd.markForCheck()}get column(){return this._column}set sorts(e){this._sorts=e,this.sortDir=this.calcSortDir(e),this.cellContext.sortDir=this.sortDir,this.sortClass=this.calcSortClass(this.sortDir),this.cd.markForCheck()}get sorts(){return this._sorts}get columnCssClasses(){let e="datatable-header-cell";if(this.column.sortable&&(e+=" sortable"),this.column.resizeable&&(e+=" resizeable"),this.column.headerClass)if("string"==typeof this.column.headerClass)e+=" "+this.column.headerClass;else if("function"==typeof this.column.headerClass){const t=this.column.headerClass({column:this.column});if("string"==typeof t)e+=t;else if("object"==typeof t){const n=Object.keys(t);for(const i of n)!0===t[i]&&(e+=` ${i}`)}}const t=this.sortDir;return t&&(e+=` sort-active sort-${t}`),e}get name(){return void 0===this.column.headerTemplate?this.column.name:void 0}get minWidth(){return this.column.minWidth}get maxWidth(){return this.column.maxWidth}get width(){return this.column.width}get isCheckboxable(){return this.column.checkboxable&&this.column.headerCheckboxable&&this.selectionType===Ee.checkbox}onContextmenu(e){this.columnContextmenu.emit({event:e,column:this.column})}ngOnInit(){this.sortClass=this.calcSortClass(this.sortDir)}calcSortDir(e){if(e&&this.column){const t=e.find(e=>e.prop===this.column.prop);if(t)return t.dir}}onSort(){if(!this.column.sortable)return;const e=(t=this.sortDir,this.sortType===Ae.single?t===ct.asc?ct.desc:ct.asc:t?t===ct.asc?ct.desc:void 0:ct.asc);var t;this.sort.emit({column:this.column,prevValue:this.sortDir,newValue:e})}calcSortClass(e){if(this.cellContext.column.sortable)return e===ct.asc?`sort-btn sort-asc ${this.sortAscendingIcon}`:e===ct.desc?`sort-btn sort-desc ${this.sortDescendingIcon}`:`sort-btn ${this.sortUnsetIcon}`}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.i))},e.\u0275cmp=i.Lb({type:e,selectors:[["datatable-header-cell"]],hostAttrs:[1,"datatable-header-cell"],hostVars:11,hostBindings:function(e,t){1&e&&i.lc("contextmenu",function(e){return t.onContextmenu(e)}),2&e&&(i.Eb("title",t.name),i.Fb(t.columnCssClasses),i.Nc("min-width",t.minWidth,"px")("max-width",t.maxWidth,"px")("width",t.width,"px")("height",t.headerHeight,"px"))},inputs:{allRowsSelected:"allRowsSelected",column:"column",sorts:"sorts",sortType:"sortType",sortAscendingIcon:"sortAscendingIcon",sortDescendingIcon:"sortDescendingIcon",sortUnsetIcon:"sortUnsetIcon",isTarget:"isTarget",targetMarkerTemplate:"targetMarkerTemplate",targetMarkerContext:"targetMarkerContext",selectionType:"selectionType",headerHeight:"headerHeight"},outputs:{sort:"sort",select:"select",columnContextmenu:"columnContextmenu"},decls:6,vars:6,consts:[[1,"datatable-header-cell-template-wrap"],[4,"ngIf"],["class","datatable-checkbox",4,"ngIf"],["class","datatable-header-cell-wrapper",4,"ngIf"],[3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"datatable-checkbox"],["type","checkbox",3,"checked","change"],[1,"datatable-header-cell-wrapper"],[1,"datatable-header-cell-label","draggable",3,"innerHTML","click"]],template:function(e,t){1&e&&(i.Xb(0,"div",0),i.Pc(1,k,1,2,void 0,1),i.Pc(2,T,2,1,"label",2),i.Pc(3,M,2,1,"span",3),i.Pc(4,O,1,2,void 0,1),i.Xb(5,"span",4),i.lc("click",function(){return t.onSort()}),i.Wb(),i.Wb()),2&e&&(i.Db(1),i.uc("ngIf",t.isTarget),i.Db(1),i.uc("ngIf",t.isCheckboxable),i.Db(1),i.uc("ngIf",!t.column.headerTemplate),i.Db(1),i.uc("ngIf",t.column.headerTemplate),i.Db(1),i.Fb(t.sortClass))},directives:[r.r,r.w],encapsulation:2,changeDetection:0}),e})(),ht=(()=>{class e{constructor(){this.selectedCount=0,this.page=new i.p}get isVisible(){return this.rowCount/this.pageSize>1}get curPage(){return this.offset+1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Lb({type:e,selectors:[["datatable-footer"]],hostAttrs:[1,"datatable-footer"],inputs:{selectedCount:"selectedCount",footerHeight:"footerHeight",rowCount:"rowCount",pageSize:"pageSize",offset:"offset",pagerLeftArrowIcon:"pagerLeftArrowIcon",pagerRightArrowIcon:"pagerRightArrowIcon",pagerPreviousIcon:"pagerPreviousIcon",pagerNextIcon:"pagerNextIcon",totalMessage:"totalMessage",footerTemplate:"footerTemplate",selectedMessage:"selectedMessage"},outputs:{page:"page"},decls:4,vars:8,consts:[[1,"datatable-footer-inner",3,"ngClass"],[4,"ngIf"],["class","page-count",4,"ngIf"],[3,"pagerLeftArrowIcon","pagerRightArrowIcon","pagerPreviousIcon","pagerNextIcon","page","size","count","hidden","change",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"page-count"],[3,"pagerLeftArrowIcon","pagerRightArrowIcon","pagerPreviousIcon","pagerNextIcon","page","size","count","hidden","change"]],template:function(e,t){1&e&&(i.Xb(0,"div",0),i.Pc(1,A,1,8,void 0,1),i.Pc(2,R,3,3,"div",2),i.Pc(3,P,1,8,"datatable-pager",3),i.Wb()),2&e&&(i.Nc("height",t.footerHeight,"px"),i.uc("ngClass",i.zc(6,F,t.selectedMessage)),i.Db(1),i.uc("ngIf",t.footerTemplate),i.Db(1),i.uc("ngIf",!t.footerTemplate),i.Db(1),i.uc("ngIf",!t.footerTemplate))},directives:function(){return[r.p,r.r,r.w,ft]},encapsulation:2,changeDetection:0}),e})(),ft=(()=>{class e{constructor(){this.change=new i.p,this._count=0,this._page=1,this._size=0}set size(e){this._size=e,this.pages=this.calcPages()}get size(){return this._size}set count(e){this._count=e,this.pages=this.calcPages()}get count(){return this._count}set page(e){this._page=e,this.pages=this.calcPages()}get page(){return this._page}get totalPages(){const e=this.size<1?1:Math.ceil(this.count/this.size);return Math.max(e||0,1)}canPrevious(){return this.page>1}canNext(){return this.page<this.totalPages}prevPage(){this.selectPage(this.page-1)}nextPage(){this.selectPage(this.page+1)}selectPage(e){e>0&&e<=this.totalPages&&e!==this.page&&(this.page=e,this.change.emit({page:e}))}calcPages(e){const t=[];let n=1,i=this.totalPages;e=e||this.page,5<this.totalPages&&(n=e-Math.floor(2.5),i=e+Math.floor(2.5),n<1?(n=1,i=Math.min(n+5-1,this.totalPages)):i>this.totalPages&&(n=Math.max(this.totalPages-5+1,1),i=this.totalPages));for(let r=n;r<=i;r++)t.push({number:r,text:r});return t}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Lb({type:e,selectors:[["datatable-pager"]],hostAttrs:[1,"datatable-pager"],inputs:{size:"size",count:"count",page:"page",pagerLeftArrowIcon:"pagerLeftArrowIcon",pagerRightArrowIcon:"pagerRightArrowIcon",pagerPreviousIcon:"pagerPreviousIcon",pagerNextIcon:"pagerNextIcon"},outputs:{change:"change"},decls:14,vars:21,consts:[[1,"pager"],["role","button","aria-label","go to first page","href","javascript:void(0)",3,"click"],["role","button","aria-label","go to previous page","href","javascript:void(0)",3,"click"],["role","button","class","pages",3,"active",4,"ngFor","ngForOf"],["role","button","aria-label","go to next page","href","javascript:void(0)",3,"click"],["role","button","aria-label","go to last page","href","javascript:void(0)",3,"click"],["role","button",1,"pages"],["href","javascript:void(0)",3,"click"]],template:function(e,t){1&e&&(i.Xb(0,"ul",0),i.Xb(1,"li"),i.Xb(2,"a",1),i.lc("click",function(){return t.selectPage(1)}),i.Sb(3,"i"),i.Wb(),i.Wb(),i.Xb(4,"li"),i.Xb(5,"a",2),i.lc("click",function(){return t.prevPage()}),i.Sb(6,"i"),i.Wb(),i.Wb(),i.Pc(7,W,3,4,"li",3),i.Xb(8,"li"),i.Xb(9,"a",4),i.lc("click",function(){return t.nextPage()}),i.Sb(10,"i"),i.Wb(),i.Wb(),i.Xb(11,"li"),i.Xb(12,"a",5),i.lc("click",function(){return t.selectPage(t.totalPages)}),i.Sb(13,"i"),i.Wb(),i.Wb(),i.Wb()),2&e&&(i.Db(1),i.Jb("disabled",!t.canPrevious()),i.Db(2),i.Fb(t.pagerPreviousIcon),i.Db(1),i.Jb("disabled",!t.canPrevious()),i.Db(2),i.Fb(t.pagerLeftArrowIcon),i.Db(1),i.uc("ngForOf",t.pages),i.Db(1),i.Jb("disabled",!t.canNext()),i.Db(2),i.Fb(t.pagerRightArrowIcon),i.Db(1),i.Jb("disabled",!t.canNext()),i.Db(2),i.Fb(t.pagerNextIcon))},directives:[r.q],encapsulation:2,changeDetection:0}),e})(),pt=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Lb({type:e,selectors:[["datatable-progress"]],decls:3,vars:0,consts:[["role","progressbar",1,"progress-linear"],[1,"container"],[1,"bar"]],template:function(e,t){1&e&&(i.Xb(0,"div",0),i.Xb(1,"div",1),i.Sb(2,"div",2),i.Wb(),i.Wb())},encapsulation:2,changeDetection:0}),e})();var mt=function(e){return e[e.up=38]="up",e[e.down=40]="down",e[e.return=13]="return",e[e.escape=27]="escape",e[e.left=37]="left",e[e.right=39]="right",e}({});let bt=(()=>{class e{constructor(e,t,n,r){this.differs=e,this.scrollbarHelper=t,this.cd=n,this.treeStatus="collapsed",this.activate=new i.p,this.treeAction=new i.p,this._groupStyles={left:{},center:{},right:{}},this._element=r.nativeElement,this._rowDiffer=e.find({}).create()}set columns(e){this._columns=e,this.recalculateColumns(e),this.buildStylesByGroup()}get columns(){return this._columns}set innerWidth(e){if(this._columns){const e=ze(this._columns);this._columnGroupWidths=$e(e,this._columns)}this._innerWidth=e,this.recalculateColumns(),this.buildStylesByGroup()}get innerWidth(){return this._innerWidth}set offsetX(e){this._offsetX=e,this.buildStylesByGroup()}get offsetX(){return this._offsetX}get cssClass(){let e="datatable-body-row";if(this.isSelected&&(e+=" active"),this.rowIndex%2!=0&&(e+=" datatable-row-odd"),this.rowIndex%2==0&&(e+=" datatable-row-even"),this.rowClass){const t=this.rowClass(this.row);if("string"==typeof t)e+=` ${t}`;else if("object"==typeof t){const n=Object.keys(t);for(const i of n)!0===t[i]&&(e+=` ${i}`)}}return e}get columnsTotalWidths(){return this._columnGroupWidths.total}ngDoCheck(){this._rowDiffer.diff(this.row)&&this.cd.markForCheck()}trackByGroups(e,t){return t.type}columnTrackingFn(e,t){return t.$$id}buildStylesByGroup(){this._groupStyles.left=this.calcStylesByGroup("left"),this._groupStyles.center=this.calcStylesByGroup("center"),this._groupStyles.right=this.calcStylesByGroup("right"),this.cd.markForCheck()}calcStylesByGroup(e){const t=this._columnGroupWidths,n=this.offsetX,i={width:`${t[e]}px`};if("left"===e)nt(i,n,0);else if("right"===e){const e=parseInt(this.innerWidth+"",0);nt(i,-1*(t.total-e-n+this.scrollbarHelper.width),0)}return i}onActivate(e,t){e.cellIndex=t,e.rowElement=this._element,this.activate.emit(e)}onKeyDown(e){const t=e.keyCode;(t===mt.return||t===mt.down||t===mt.up||t===mt.left||t===mt.right)&&e.target===this._element&&(e.preventDefault(),e.stopPropagation(),this.activate.emit({type:"keydown",event:e,row:this.row,rowElement:this._element}))}onMouseenter(e){this.activate.emit({type:"mouseenter",event:e,row:this.row,rowElement:this._element})}recalculateColumns(e=this.columns){this._columns=e;const t=ze(this._columns);this._columnsByPin=Xe(this._columns),this._columnGroupWidths=$e(t,this._columns)}onTreeAction(){this.treeAction.emit()}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.x),i.Rb(ae,4),i.Rb(i.i),i.Rb(i.n))},e.\u0275cmp=i.Lb({type:e,selectors:[["datatable-body-row"]],hostVars:6,hostBindings:function(e,t){1&e&&i.lc("keydown",function(e){return t.onKeyDown(e)})("mouseenter",function(e){return t.onMouseenter(e)}),2&e&&(i.Fb(t.cssClass),i.Nc("width",t.columnsTotalWidths,"px")("height",t.rowHeight,"px"))},inputs:{treeStatus:"treeStatus",columns:"columns",innerWidth:"innerWidth",offsetX:"offsetX",expanded:"expanded",rowClass:"rowClass",row:"row",group:"group",isSelected:"isSelected",rowIndex:"rowIndex",displayCheck:"displayCheck",rowHeight:"rowHeight"},outputs:{activate:"activate",treeAction:"treeAction"},decls:1,vars:2,consts:[[3,"class","ngStyle",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngStyle"],["tabindex","-1",3,"row","group","expanded","isSelected","rowIndex","column","rowHeight","displayCheck","treeStatus","activate","treeAction",4,"ngFor","ngForOf","ngForTrackBy"],["tabindex","-1",3,"row","group","expanded","isSelected","rowIndex","column","rowHeight","displayCheck","treeStatus","activate","treeAction"]],template:function(e,t){1&e&&i.Pc(0,Y,2,6,"div",0),2&e&&i.uc("ngForOf",t._columnsByPin)("ngForTrackBy",t.trackByGroups)},directives:function(){return[r.q,r.s,_t]},encapsulation:2,changeDetection:0}),e})(),gt=(()=>{class e{constructor(e,t){this.cd=e,this.differs=t,this.rowContextmenu=new i.p(!1),this.groupContext={group:this.row,expanded:this.expanded,rowIndex:this.rowIndex},this.rowContext={row:this.row,expanded:this.expanded,rowIndex:this.rowIndex},this._expanded=!1,this.rowDiffer=t.find({}).create()}set rowIndex(e){this._rowIndex=e,this.rowContext.rowIndex=e,this.groupContext.rowIndex=e,this.cd.markForCheck()}get rowIndex(){return this._rowIndex}set expanded(e){this._expanded=e,this.groupContext.expanded=e,this.rowContext.expanded=e,this.cd.markForCheck()}get expanded(){return this._expanded}ngDoCheck(){this.rowDiffer.diff(this.row)&&(this.rowContext.row=this.row,this.groupContext.group=this.row,this.cd.markForCheck())}onContextmenu(e){this.rowContextmenu.emit({event:e,row:this.row})}getGroupHeaderStyle(){const e={};return e.transform="translate3d("+this.offsetX+"px, 0px, 0px)",e["backface-visibility"]="hidden",e.width=this.innerWidth,e}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.i),i.Rb(i.x))},e.\u0275cmp=i.Lb({type:e,selectors:[["datatable-row-wrapper"]],hostAttrs:[1,"datatable-row-wrapper"],hostBindings:function(e,t){1&e&&i.lc("contextmenu",function(e){return t.onContextmenu(e)})},inputs:{rowIndex:"rowIndex",expanded:"expanded",innerWidth:"innerWidth",rowDetail:"rowDetail",groupHeader:"groupHeader",offsetX:"offsetX",detailRowHeight:"detailRowHeight",row:"row",groupedRows:"groupedRows"},outputs:{rowContextmenu:"rowContextmenu"},ngContentSelectors:u,decls:3,vars:3,consts:[["class","datatable-group-header",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","datatable-row-detail",3,"height",4,"ngIf"],[1,"datatable-group-header",3,"ngStyle"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"datatable-row-detail"]],template:function(e,t){1&e&&(i.tc(),i.Pc(0,$,2,2,"div",0),i.Pc(1,H,1,0,"ng-content",1),i.Pc(2,B,2,3,"div",2)),2&e&&(i.uc("ngIf",t.groupHeader&&t.groupHeader.template),i.Db(1),i.uc("ngIf",t.groupHeader&&t.groupHeader.template&&t.expanded||!t.groupHeader||!t.groupHeader.template),i.Db(1),i.uc("ngIf",t.rowDetail&&t.rowDetail.template&&t.expanded))},directives:[r.r,r.s,r.w],encapsulation:2,changeDetection:0}),e})(),_t=(()=>{class e{constructor(e,t){this.cd=t,this.activate=new i.p,this.treeAction=new i.p,this.isFocused=!1,this.onCheckboxChangeFn=this.onCheckboxChange.bind(this),this.activateFn=this.activate.emit.bind(this.activate),this.cellContext={onCheckboxChangeFn:this.onCheckboxChangeFn,activateFn:this.activateFn,row:this.row,group:this.group,value:this.value,column:this.column,rowHeight:this.rowHeight,isSelected:this.isSelected,rowIndex:this.rowIndex,treeStatus:this.treeStatus,onTreeAction:this.onTreeAction.bind(this)},this._element=e.nativeElement}set group(e){this._group=e,this.cellContext.group=e,this.checkValueUpdates(),this.cd.markForCheck()}get group(){return this._group}set rowHeight(e){this._rowHeight=e,this.cellContext.rowHeight=e,this.checkValueUpdates(),this.cd.markForCheck()}get rowHeight(){return this._rowHeight}set isSelected(e){this._isSelected=e,this.cellContext.isSelected=e,this.cd.markForCheck()}get isSelected(){return this._isSelected}set expanded(e){this._expanded=e,this.cellContext.expanded=e,this.cd.markForCheck()}get expanded(){return this._expanded}set rowIndex(e){this._rowIndex=e,this.cellContext.rowIndex=e,this.checkValueUpdates(),this.cd.markForCheck()}get rowIndex(){return this._rowIndex}set column(e){this._column=e,this.cellContext.column=e,this.checkValueUpdates(),this.cd.markForCheck()}get column(){return this._column}set row(e){this._row=e,this.cellContext.row=e,this.checkValueUpdates(),this.cd.markForCheck()}get row(){return this._row}set sorts(e){this._sorts=e,this.calcSortDir=this.calcSortDir(e)}get sorts(){return this._sorts}set treeStatus(e){this._treeStatus="collapsed"!==e&&"expanded"!==e&&"loading"!==e&&"disabled"!==e?"collapsed":e,this.cellContext.treeStatus=this._treeStatus,this.checkValueUpdates(),this.cd.markForCheck()}get treeStatus(){return this._treeStatus}get columnCssClasses(){let e="datatable-body-cell";if(this.column.cellClass)if("string"==typeof this.column.cellClass)e+=" "+this.column.cellClass;else if("function"==typeof this.column.cellClass){const t=this.column.cellClass({row:this.row,group:this.group,column:this.column,value:this.value,rowHeight:this.rowHeight});if("string"==typeof t)e+=" "+t;else if("object"==typeof t){const n=Object.keys(t);for(const i of n)!0===t[i]&&(e+=` ${i}`)}}return this.sortDir||(e+=" sort-active"),this.isFocused&&(e+=" active"),this.sortDir===ct.asc&&(e+=" sort-asc"),this.sortDir===ct.desc&&(e+=" sort-desc"),e}get width(){return this.column.width}get minWidth(){return this.column.minWidth}get maxWidth(){return this.column.maxWidth}get height(){const e=this.rowHeight;return isNaN(e)?e:e+"px"}ngDoCheck(){this.checkValueUpdates()}ngOnDestroy(){this.cellTemplate&&this.cellTemplate.clear()}checkValueUpdates(){let e="";if(this.row&&this.column){const t=this.column.$$valueGetter(this.row,this.column.prop),n=this.column.pipe;n?e=n.transform(t):void 0!==e&&(e=t)}else e="";this.value!==e&&(this.value=e,this.cellContext.value=e,this.sanitizedValue=null!=e?this.stripHtml(e):e,this.cd.markForCheck())}onFocus(){this.isFocused=!0}onBlur(){this.isFocused=!1}onClick(e){this.activate.emit({type:"click",event:e,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element})}onDblClick(e){this.activate.emit({type:"dblclick",event:e,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element})}onKeyDown(e){const t=e.keyCode;(t===mt.return||t===mt.down||t===mt.up||t===mt.left||t===mt.right)&&e.target===this._element&&(e.preventDefault(),e.stopPropagation(),this.activate.emit({type:"keydown",event:e,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element}))}onCheckboxChange(e){this.activate.emit({type:"checkbox",event:e,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element,treeStatus:"collapsed"})}calcSortDir(e){if(!e)return;const t=e.find(e=>e.prop===this.column.prop);return t?t.dir:void 0}stripHtml(e){return e.replace?e.replace(/<\/?[^>]+(>|$)/g,""):e}onTreeAction(){this.treeAction.emit(this.row)}calcLeftMargin(e,t){return e.isTreeColumn?t.level*(null!=e.treeLevelIndent?e.treeLevelIndent:50):0}}return e.\u0275fac=function(t){return new(t||e)(i.Rb(i.n),i.Rb(i.i))},e.\u0275cmp=i.Lb({type:e,selectors:[["datatable-body-cell"]],viewQuery:function(e,t){if(1&e&&i.Wc(U,3,i.S),2&e){let e;i.Ec(e=i.mc())&&(t.cellTemplate=e.first)}},hostVars:10,hostBindings:function(e,t){1&e&&i.lc("focus",function(){return t.onFocus()})("blur",function(){return t.onBlur()})("click",function(e){return t.onClick(e)})("dblclick",function(e){return t.onDblClick(e)})("keydown",function(e){return t.onKeyDown(e)}),2&e&&(i.Fb(t.columnCssClasses),i.Nc("width",t.width,"px")("min-width",t.minWidth,"px")("max-width",t.maxWidth,"px")("height",t.height))},inputs:{group:"group",rowHeight:"rowHeight",isSelected:"isSelected",expanded:"expanded",rowIndex:"rowIndex",column:"column",row:"row",sorts:"sorts",treeStatus:"treeStatus",displayCheck:"displayCheck"},outputs:{activate:"activate",treeAction:"treeAction"},decls:5,vars:6,consts:[[1,"datatable-body-cell-label"],["class","datatable-checkbox",4,"ngIf"],[4,"ngIf"],[3,"title","innerHTML",4,"ngIf"],[1,"datatable-checkbox"],["type","checkbox",3,"checked","click"],["class","datatable-tree-button",3,"disabled","click",4,"ngIf"],[1,"datatable-tree-button",3,"disabled","click"],["class","icon datatable-icon-collapse",4,"ngIf"],["class","icon datatable-icon-up",4,"ngIf"],["class","icon datatable-icon-down",4,"ngIf"],[1,"icon","datatable-icon-collapse"],[1,"icon","datatable-icon-up"],[1,"icon","datatable-icon-down"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"title","innerHTML"],["cellTemplate",""]],template:function(e,t){1&e&&(i.Xb(0,"div",0),i.Pc(1,q,2,1,"label",1),i.Pc(2,ne,3,2,"ng-container",2),i.Pc(3,ie,1,2,"span",3),i.Pc(4,se,2,2,void 0,2),i.Wb()),2&e&&(i.Nc("margin-left",t.calcLeftMargin(t.column,t.row),"px"),i.Db(1),i.uc("ngIf",t.column.checkboxable&&(!t.displayCheck||t.displayCheck(t.row,t.column,t.value))),i.Db(1),i.uc("ngIf",t.column.isTreeColumn),i.Db(1),i.uc("ngIf",!t.column.cellTemplate),i.Db(1),i.uc("ngIf",t.column.cellTemplate))},directives:[r.r,r.w],encapsulation:2,changeDetection:0}),e})();function vt(e,t,n){const i=n(t,e);return i>-1?e.splice(i,1):e.push(t),e}let yt=(()=>{class e{constructor(){this.activate=new i.p,this.select=new i.p}selectRow(e,t,n){if(!this.selectEnabled)return;const i=this.selectionType===Ee.checkbox,r=this.selectionType===Ee.multiClick;let s=[];s=this.selectionType===Ee.multi||i||r?e.shiftKey?function(e,t,n,i,r){const s=n<i;for(let o=0;o<t.length;o++){const r=t[o],a=o>=i&&o<=n,c=o<=i&&o>=n;let l={start:0,end:0};l=s?{start:n,end:i}:{start:i,end:n+1},(s&&c||!s&&a)&&o>=l.start&&o<=l.end&&e.push(r)}return e}([],this.rows,t,this.prevIndex,this.getRowSelectedIdx.bind(this)):vt(e.ctrlKey||e.metaKey||r||i?[...this.selected]:[],n,this.getRowSelectedIdx.bind(this)):vt([],n,this.getRowSelectedIdx.bind(this)),"function"==typeof this.selectCheck&&(s=s.filter(this.selectCheck.bind(this))),this.selected.splice(0,this.selected.length),this.selected.push(...s),this.prevIndex=t,this.select.emit({selected:s})}onActivate(e,t){const{type:n,event:i,row:r}=e,s=this.selectionType===Ee.checkbox;!s&&("click"===n||"dblclick"===n)||s&&"checkbox"===n?this.selectRow(i,t,r):"keydown"===n&&(i.keyCode===mt.return?this.selectRow(i,t,r):this.onKeyboardFocus(e)),this.activate.emit(e)}onKeyboardFocus(e){const{keyCode:t}=e.event;if(t===mt.up||t===mt.down||t===mt.right||t===mt.left){const n=this.selectionType===Ee.cell;e.cellElement&&n?n&&this.focusCell(e.cellElement,e.rowElement,t,e.cellIndex):this.focusRow(e.rowElement,t)}}focusRow(e,t){const n=this.getPrevNextRow(e,t);n&&n.focus()}getPrevNextRow(e,t){const n=e.parentElement;if(n){let e;if(t===mt.up?e=n.previousElementSibling:t===mt.down&&(e=n.nextElementSibling),e&&e.children.length)return e.children[0]}}focusCell(e,t,n,i){let r;if(n===mt.left)r=e.previousElementSibling;else if(n===mt.right)r=e.nextElementSibling;else if(n===mt.up||n===mt.down){const e=this.getPrevNextRow(t,n);if(e){const t=e.getElementsByClassName("datatable-body-cell");t.length&&(r=t[i])}}r&&r.focus()}getRowSelected(e){return this.getRowSelectedIdx(e,this.selected)>-1}getRowSelectedIdx(e,t){if(!t||!t.length)return-1;const n=this.rowIdentity(e);return t.findIndex(e=>this.rowIdentity(e)===n)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Lb({type:e,selectors:[["datatable-selection"]],inputs:{rows:"rows",selected:"selected",selectEnabled:"selectEnabled",selectionType:"selectionType",rowIdentity:"rowIdentity",selectCheck:"selectCheck"},outputs:{activate:"activate",select:"select"},ngContentSelectors:u,decls:1,vars:0,template:function(e,t){1&e&&(i.tc(),i.sc(0))},encapsulation:2,changeDetection:0}),e})();function wt(e){const t=e.filter(e=>!!e);return t.length?t.some(e=>"number"!=typeof e)?null:t.reduce((e,t)=>e+t):null}function Dt(e){return null}let St=(()=>{class e{constructor(){this.summaryRow={}}ngOnChanges(){this.columns&&this.rows&&(this.updateInternalColumns(),this.updateValues())}updateInternalColumns(){this._internalColumns=this.columns.map(e=>Object.assign(Object.assign({},e),{cellTemplate:e.summaryTemplate}))}updateValues(){this.summaryRow={},this.columns.filter(e=>!e.summaryTemplate).forEach(e=>{const t=this.rows.map(t=>t[e.prop]),n=this.getSummaryFunction(e);this.summaryRow[e.prop]=e.pipe?e.pipe.transform(n(t)):n(t)})}getSummaryFunction(e){return void 0===e.summaryFunc?wt:null===e.summaryFunc?Dt:e.summaryFunc}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Lb({type:e,selectors:[["datatable-summary-row"]],hostAttrs:[1,"datatable-summary-row"],inputs:{rows:"rows",columns:"columns",rowHeight:"rowHeight",offsetX:"offsetX",innerWidth:"innerWidth"},features:[i.Bb],decls:1,vars:1,consts:[["tabindex","-1",3,"innerWidth","offsetX","columns","rowHeight","row","rowIndex",4,"ngIf"],["tabindex","-1",3,"innerWidth","offsetX","columns","rowHeight","row","rowIndex"]],template:function(e,t){1&e&&i.Pc(0,oe,1,6,"datatable-body-row",0),2&e&&i.uc("ngIf",t.summaryRow&&t._internalColumns)},directives:[r.r,bt],encapsulation:2}),e})(),xt=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[{provide:"configuration",useValue:t}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Pb({type:e}),e.\u0275inj=i.Ob({providers:[ae,ce,le],imports:[[r.c]]}),e})();"undefined"==typeof document||document.elementsFromPoint||(document.elementsFromPoint=function(e,t){const n=[],i=[];let r,s,o;for(;(r=document.elementFromPoint(e,t))&&-1===n.indexOf(r)&&null!=r;)n.push(r),i.push({value:r.style.getPropertyValue("pointer-events"),priority:r.style.getPropertyPriority("pointer-events")}),r.style.setProperty("pointer-events","none","important");for(s=i.length;o=i[--s];)n[s].style.setProperty("pointer-events",o.value?o.value:"",o.priority);return n})},wE6v:function(e,t,n){var i=n("2oRo"),r=n("xluM"),s=n("hh1v"),o=n("2bX/"),a=n("3Eq5"),c=n("SFrS"),l=n("tiKp"),u=i.TypeError,d=l("toPrimitive");e.exports=function(e,t){if(!s(e)||o(e))return e;var n,i=a(e,d);if(i){if(void 0===t&&(t="default"),n=r(i,e,t),!s(n)||o(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},wQk9:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(n("wd/R"))},"wd/R":function(e,t,n){(function(e){e.exports=function(){"use strict";var t,i;function r(){return t.apply(null,arguments)}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function l(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function f(e,t){for(var n in t)a(t,n)&&(e[n]=t[n]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,i){return xt(e,t,n,i,!0).utc()}function m(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function b(e){if(null==e._isValid){var t=m(e),n=i.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function g(e){var t=p(NaN);return null!=e?f(m(t),e):m(t).userInvalidated=!0,t}i=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),i=n.length>>>0;for(t=0;t<i;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var _=r.momentProperties=[],v=!1;function y(e,t){var n,i,r;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=m(t)),l(t._locale)||(e._locale=t._locale),_.length>0)for(n=0;n<_.length;n++)l(r=t[i=_[n]])||(e[i]=r);return e}function w(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,r.updateOffset(this),v=!1)}function D(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function S(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function x(e,t){var n=!0;return f(function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,s,o,c=[];for(s=0;s<arguments.length;s++){if(i="","object"==typeof arguments[s]){for(o in i+="\n["+s+"] ",arguments[0])a(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[s];c.push(i)}S(e+"\nArguments: "+Array.prototype.slice.call(c).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var k,T={};function M(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),T[e]||(S(t),T[e]=!0)}function C(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function O(e,t){var n,i=f({},e);for(n in t)a(t,n)&&(o(e[n])&&o(t[n])?(i[n]={},f(i[n],e[n]),f(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)a(e,n)&&!a(t,n)&&o(e[n])&&(i[n]=f({},i[n]));return i}function L(e){null!=e&&this.set(e)}function E(e,t,n){var i=""+Math.abs(e);return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,t-i.length)).toString().substr(1)+i}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,k=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var A=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,I=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},P={};function F(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(P[e]=r),t&&(P[t[0]]=function(){return E(r.apply(this,arguments),t[1],t[2])}),n&&(P[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function W(e,t){return e.isValid()?(t=j(t,e.localeData()),R[t]=R[t]||function(e){var t,n,i,r=e.match(A);for(t=0,n=r.length;t<n;t++)r[t]=P[r[t]]?P[r[t]]:(i=r[t]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(t){var i,s="";for(i=0;i<n;i++)s+=C(r[i])?r[i].call(t,e):r[i];return s}}(t),R[t](e)):e.localeData().invalidDate()}function j(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(I.lastIndex=0;n>=0&&I.test(e);)e=e.replace(I,i),I.lastIndex=0,n-=1;return e}var Y={};function N(e,t){var n=e.toLowerCase();Y[n]=Y[n+"s"]=Y[t]=e}function z(e){return"string"==typeof e?Y[e]||Y[e.toLowerCase()]:void 0}function $(e){var t,n,i={};for(n in e)a(e,n)&&(t=z(n))&&(i[t]=e[n]);return i}var H={};function X(e,t){H[e]=t}function V(e){return e%4==0&&e%100!=0||e%400==0}function B(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function U(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=B(t)),n}function q(e,t){return function(n){return null!=n?(J(this,e,n),r.updateOffset(this,t),this):G(this,e)}}function G(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function J(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&V(e.year())&&1===e.month()&&29===e.date()?(n=U(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),De(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var K,Q=/\d/,Z=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ne=/[+-]?\d{6}/,ie=/\d\d?/,re=/\d\d\d\d?/,se=/\d\d\d\d\d\d?/,oe=/\d{1,3}/,ae=/\d{1,4}/,ce=/[+-]?\d{1,6}/,le=/\d+/,ue=/[+-]?\d+/,de=/Z|[+-]\d\d:?\d\d/gi,he=/Z|[+-]\d\d(?::?\d\d)?/gi,fe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function pe(e,t,n){K[e]=C(t)?t:function(e,i){return e&&n?n:t}}function me(e,t){return a(K,e)?K[e](t._strict,t._locale):new RegExp(be(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r})))}function be(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}K={};var ge,_e={};function ve(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),u(t)&&(i=function(e,n){n[t]=U(e)}),n=0;n<e.length;n++)_e[e[n]]=i}function ye(e,t){ve(e,function(e,n,i,r){i._w=i._w||{},t(e,i._w,i,r)})}function we(e,t,n){null!=t&&a(_e,e)&&_e[e](t,n._a,n,e)}function De(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%12+12)%12;return e+=(t-n)/12,1===n?V(e)?29:28:31-n%7%2}ge=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},F("M",["MM",2],"Mo",function(){return this.month()+1}),F("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),F("MMMM",0,0,function(e){return this.localeData().months(this,e)}),N("month","M"),X("month",8),pe("M",ie),pe("MM",ie,Z),pe("MMM",function(e,t){return t.monthsShortRegex(e)}),pe("MMMM",function(e,t){return t.monthsRegex(e)}),ve(["M","MM"],function(e,t){t[1]=U(e)-1}),ve(["MMM","MMMM"],function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);null!=r?t[1]=r:m(n).invalidMonth=e});var Se="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),xe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ke=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Te=fe,Me=fe;function Ce(e,t,n){var i,r,s,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=p([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=ge.call(this._shortMonthsParse,o))?r:null:-1!==(r=ge.call(this._longMonthsParse,o))?r:null:"MMM"===t?-1!==(r=ge.call(this._shortMonthsParse,o))||-1!==(r=ge.call(this._longMonthsParse,o))?r:null:-1!==(r=ge.call(this._longMonthsParse,o))||-1!==(r=ge.call(this._shortMonthsParse,o))?r:null}function Oe(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=U(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),De(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Le(e){return null!=e?(Oe(this,e),r.updateOffset(this,!0),this):G(this,"Month")}function Ee(){function e(e,t){return t.length-e.length}var t,n,i=[],r=[],s=[];for(t=0;t<12;t++)n=p([2e3,t]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),s.push(this.months(n,"")),s.push(this.monthsShort(n,""));for(i.sort(e),r.sort(e),s.sort(e),t=0;t<12;t++)i[t]=be(i[t]),r[t]=be(r[t]);for(t=0;t<24;t++)s[t]=be(s[t]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ae(e){return V(e)?366:365}F("Y",0,0,function(){var e=this.year();return e<=9999?E(e,4):"+"+e}),F(0,["YY",2],0,function(){return this.year()%100}),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),N("year","y"),X("year",1),pe("Y",ue),pe("YY",ie,Z),pe("YYYY",ae,te),pe("YYYYY",ce,ne),pe("YYYYYY",ce,ne),ve(["YYYYY","YYYYYY"],0),ve("YYYY",function(e,t){t[0]=2===e.length?r.parseTwoDigitYear(e):U(e)}),ve("YY",function(e,t){t[0]=r.parseTwoDigitYear(e)}),ve("Y",function(e,t){t[0]=parseInt(e,10)}),r.parseTwoDigitYear=function(e){return U(e)+(U(e)>68?1900:2e3)};var Ie=q("FullYear",!0);function Re(e,t,n,i,r,s,o){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,i,r,s,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,i,r,s,o),a}function Pe(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Fe(e,t,n){var i=7+t-n;return-(7+Pe(e,0,i).getUTCDay()-t)%7+i-1}function We(e,t,n,i,r){var s,o,a=1+7*(t-1)+(7+n-i)%7+Fe(e,i,r);return a<=0?o=Ae(s=e-1)+a:a>Ae(e)?(s=e+1,o=a-Ae(e)):(s=e,o=a),{year:s,dayOfYear:o}}function je(e,t,n){var i,r,s=Fe(e.year(),t,n),o=Math.floor((e.dayOfYear()-s-1)/7)+1;return o<1?i=o+Ye(r=e.year()-1,t,n):o>Ye(e.year(),t,n)?(i=o-Ye(e.year(),t,n),r=e.year()+1):(r=e.year(),i=o),{week:i,year:r}}function Ye(e,t,n){var i=Fe(e,t,n),r=Fe(e+1,t,n);return(Ae(e)-i+r)/7}function Ne(e,t){return e.slice(t,7).concat(e.slice(0,t))}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),X("week",5),X("isoWeek",5),pe("w",ie),pe("ww",ie,Z),pe("W",ie),pe("WW",ie,Z),ye(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=U(e)}),F("d",0,"do","day"),F("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),F("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),F("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),X("day",11),X("weekday",11),X("isoWeekday",11),pe("d",ie),pe("e",ie),pe("E",ie),pe("dd",function(e,t){return t.weekdaysMinRegex(e)}),pe("ddd",function(e,t){return t.weekdaysShortRegex(e)}),pe("dddd",function(e,t){return t.weekdaysRegex(e)}),ye(["dd","ddd","dddd"],function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:m(n).invalidWeekday=e}),ye(["d","e","E"],function(e,t,n,i){t[i]=U(e)});var ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),$e="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),He="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xe=fe,Ve=fe,Be=fe;function Ue(e,t,n){var i,r,s,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=p([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=ge.call(this._weekdaysParse,o))?r:null:"ddd"===t?-1!==(r=ge.call(this._shortWeekdaysParse,o))?r:null:-1!==(r=ge.call(this._minWeekdaysParse,o))?r:null:"dddd"===t?-1!==(r=ge.call(this._weekdaysParse,o))||-1!==(r=ge.call(this._shortWeekdaysParse,o))||-1!==(r=ge.call(this._minWeekdaysParse,o))?r:null:"ddd"===t?-1!==(r=ge.call(this._shortWeekdaysParse,o))||-1!==(r=ge.call(this._weekdaysParse,o))||-1!==(r=ge.call(this._minWeekdaysParse,o))?r:null:-1!==(r=ge.call(this._minWeekdaysParse,o))||-1!==(r=ge.call(this._weekdaysParse,o))||-1!==(r=ge.call(this._shortWeekdaysParse,o))?r:null}function qe(){function e(e,t){return t.length-e.length}var t,n,i,r,s,o=[],a=[],c=[],l=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),i=be(this.weekdaysMin(n,"")),r=be(this.weekdaysShort(n,"")),s=be(this.weekdays(n,"")),o.push(i),a.push(r),c.push(s),l.push(i),l.push(r),l.push(s);o.sort(e),a.sort(e),c.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ge(){return this.hours()%12||12}function Je(e,t){F(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ke(e,t){return t._meridiemParse}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,Ge),F("k",["kk",2],0,function(){return this.hours()||24}),F("hmm",0,0,function(){return""+Ge.apply(this)+E(this.minutes(),2)}),F("hmmss",0,0,function(){return""+Ge.apply(this)+E(this.minutes(),2)+E(this.seconds(),2)}),F("Hmm",0,0,function(){return""+this.hours()+E(this.minutes(),2)}),F("Hmmss",0,0,function(){return""+this.hours()+E(this.minutes(),2)+E(this.seconds(),2)}),Je("a",!0),Je("A",!1),N("hour","h"),X("hour",13),pe("a",Ke),pe("A",Ke),pe("H",ie),pe("h",ie),pe("k",ie),pe("HH",ie,Z),pe("hh",ie,Z),pe("kk",ie,Z),pe("hmm",re),pe("hmmss",se),pe("Hmm",re),pe("Hmmss",se),ve(["H","HH"],3),ve(["k","kk"],function(e,t,n){var i=U(e);t[3]=24===i?0:i}),ve(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ve(["h","hh"],function(e,t,n){t[3]=U(e),m(n).bigHour=!0}),ve("hmm",function(e,t,n){var i=e.length-2;t[3]=U(e.substr(0,i)),t[4]=U(e.substr(i)),m(n).bigHour=!0}),ve("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=U(e.substr(0,i)),t[4]=U(e.substr(i,2)),t[5]=U(e.substr(r)),m(n).bigHour=!0}),ve("Hmm",function(e,t,n){var i=e.length-2;t[3]=U(e.substr(0,i)),t[4]=U(e.substr(i))}),ve("Hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=U(e.substr(0,i)),t[4]=U(e.substr(i,2)),t[5]=U(e.substr(r))});var Qe,Ze=q("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Se,monthsShort:xe,week:{dow:0,doy:6},weekdays:ze,weekdaysMin:He,weekdaysShort:$e,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function it(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}function rt(e){return e?e.toLowerCase().replace("_","-"):e}function st(t){var i=null;if(void 0===tt[t]&&void 0!==e&&e&&e.exports)try{i=Qe._abbr,n("RnhZ")("./"+t),ot(i)}catch(r){tt[t]=null}return tt[t]}function ot(e,t){var n;return e&&((n=l(t)?ct(e):at(e,t))?Qe=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Qe._abbr}function at(e,t){if(null!==t){var n,i=et;if(t.abbr=e,null!=tt[e])M("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])i=tt[t.parentLocale]._config;else{if(null==(n=st(t.parentLocale)))return nt[t.parentLocale]||(nt[t.parentLocale]=[]),nt[t.parentLocale].push({name:e,config:t}),null;i=n._config}return tt[e]=new L(O(i,t)),nt[e]&&nt[e].forEach(function(e){at(e.name,e.config)}),ot(e),tt[e]}return delete tt[e],null}function ct(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Qe;if(!s(e)){if(t=st(e))return t;e=[e]}return function(e){for(var t,n,i,r,s=0;s<e.length;){for(t=(r=rt(e[s]).split("-")).length,n=(n=rt(e[s+1]))?n.split("-"):null;t>0;){if(i=st(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&it(r,n)>=t-1)break;t--}s++}return Qe}(e)}function lt(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>De(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,m(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),m(e)._overflowWeeks&&-1===t&&(t=7),m(e)._overflowWeekday&&-1===t&&(t=8),m(e).overflow=t),e}var ut=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ht=/Z|[+-]\d\d(?::?\d\d)?/,ft=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],pt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],mt=/^\/?Date\((-?\d+)/i,bt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,gt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _t(e){var t,n,i,r,s,o,a=e._i,c=ut.exec(a)||dt.exec(a);if(c){for(m(e).iso=!0,t=0,n=ft.length;t<n;t++)if(ft[t][1].exec(c[1])){r=ft[t][0],i=!1!==ft[t][2];break}if(null==r)return void(e._isValid=!1);if(c[3]){for(t=0,n=pt.length;t<n;t++)if(pt[t][1].exec(c[3])){s=(c[2]||" ")+pt[t][0];break}if(null==s)return void(e._isValid=!1)}if(!i&&null!=s)return void(e._isValid=!1);if(c[4]){if(!ht.exec(c[4]))return void(e._isValid=!1);o="Z"}e._f=r+(s||"")+(o||""),Dt(e)}else e._isValid=!1}function vt(e){var t,n,i,r,s,o,a,c,l,u=bt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){if(n=u[3],i=u[2],r=u[5],s=u[6],o=u[7],a=[(c=u[4],l=parseInt(c,10),l<=49?2e3+l:l<=999?1900+l:l),xe.indexOf(n),parseInt(i,10),parseInt(r,10),parseInt(s,10)],o&&a.push(parseInt(o,10)),!function(e,t,n){return!e||$e.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(m(n).weekdayMismatch=!0,n._isValid=!1,!1)}(u[1],t=a,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return gt[e];if(t)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}(u[8],u[9],u[10]),e._d=Pe.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function yt(e,t,n){return null!=e?e:null!=t?t:n}function wt(e){var t,n,i,s,o,a=[];if(!e._d){for(i=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,i,r,s,o,a,c,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(s=1,o=4,n=yt(t.GG,e._a[0],je(kt(),1,4).year),i=yt(t.W,1),((r=yt(t.E,1))<1||r>7)&&(c=!0)):(s=e._locale._week.dow,o=e._locale._week.doy,l=je(kt(),s,o),n=yt(t.gg,e._a[0],l.year),i=yt(t.w,l.week),null!=t.d?((r=t.d)<0||r>6)&&(c=!0):null!=t.e?(r=t.e+s,(t.e<0||t.e>6)&&(c=!0)):r=s),i<1||i>Ye(n,s,o)?m(e)._overflowWeeks=!0:null!=c?m(e)._overflowWeekday=!0:(a=We(n,i,r,s,o),e._a[0]=a.year,e._dayOfYear=a.dayOfYear)}(e),null!=e._dayOfYear&&(o=yt(e._a[0],i[0]),(e._dayOfYear>Ae(o)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=Pe(o,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=i[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Pe:Re).apply(null,a),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==s&&(m(e).weekdayMismatch=!0)}}function Dt(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],m(e).empty=!0;var t,n,i,s,o,a,c=""+e._i,l=c.length,u=0;for(i=j(e._f,e._locale).match(A)||[],t=0;t<i.length;t++)(n=(c.match(me(s=i[t],e))||[])[0])&&((o=c.substr(0,c.indexOf(n))).length>0&&m(e).unusedInput.push(o),c=c.slice(c.indexOf(n)+n.length),u+=n.length),P[s]?(n?m(e).empty=!1:m(e).unusedTokens.push(s),we(s,n,e)):e._strict&&!n&&m(e).unusedTokens.push(s);m(e).charsLeftOver=l-u,c.length>0&&m(e).unusedInput.push(c),e._a[3]<=12&&!0===m(e).bigHour&&e._a[3]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(a=m(e).era)&&(e._a[0]=e._locale.erasConvertYear(a,e._a[0])),wt(e),lt(e)}else vt(e);else _t(e)}function St(e){var t=e._i,n=e._f;return e._locale=e._locale||ct(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),D(t)?new w(lt(t)):(d(t)?e._d=t:s(n)?function(e){var t,n,i,r,s,o,a=!1;if(0===e._f.length)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<e._f.length;r++)s=0,o=!1,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],Dt(t),b(t)&&(o=!0),s+=m(t).charsLeftOver,s+=10*m(t).unusedTokens.length,m(t).score=s,a?s<i&&(i=s,n=t):(null==i||s<i||o)&&(i=s,n=t,o&&(a=!0));f(e,n||t)}(e):n?Dt(e):function(e){var t=e._i;l(t)?e._d=new Date(r.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=mt.exec(e._i);null===t?(_t(e),!1===e._isValid&&(delete e._isValid,vt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):s(t)?(e._a=h(t.slice(0),function(e){return parseInt(e,10)}),wt(e)):o(t)?function(e){if(!e._d){var t=$(e._i);e._a=h([t.year,t.month,void 0===t.day?t.date:t.day,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),wt(e)}}(e):u(t)?e._d=new Date(t):r.createFromInputFallback(e)}(e),b(e)||(e._d=null),e))}function xt(e,t,n,i,r){var a,l={};return!0!==t&&!1!==t||(i=t,t=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(o(e)&&c(e)||s(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=r,l._l=n,l._i=e,l._f=t,l._strict=i,(a=new w(lt(St(l))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function kt(e,t,n,i){return xt(e,t,n,i,!1)}r.createFromInputFallback=x("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),r.ISO_8601=function(){},r.RFC_2822=function(){};var Tt=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=kt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()}),Mt=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=kt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()});function Ct(e,t){var n,i;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return kt();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}var Ot=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Lt(e){var t=$(e),n=t.year||0,i=t.quarter||0,r=t.month||0,s=t.week||t.isoWeek||0,o=t.day||0,c=t.hour||0,l=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,n,i=!1;for(t in e)if(a(e,t)&&(-1===ge.call(Ot,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<Ot.length;++n)if(e[Ot[n]]){if(i)return!1;parseFloat(e[Ot[n]])!==U(e[Ot[n]])&&(i=!0)}return!0}(t),this._milliseconds=+d+1e3*u+6e4*l+1e3*c*60*60,this._days=+o+7*s,this._months=+r+3*i+12*n,this._data={},this._locale=ct(),this._bubble()}function Et(e){return e instanceof Lt}function At(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function It(e,t){F(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+E(~~(e/60),2)+t+E(~~e%60,2)})}It("Z",":"),It("ZZ",""),pe("Z",he),pe("ZZ",he),ve(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Pt(he,e)});var Rt=/([\+\-]|\d\d)/gi;function Pt(e,t){var n,i,r=(t||"").match(e);return null===r?null:0===(i=60*(n=((r[r.length-1]||[])+"").match(Rt)||["-",0,0])[1]+U(n[2]))?0:"+"===n[0]?i:-i}function Ft(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(D(e)||d(e)?e.valueOf():kt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):kt(e).local()}function Wt(e){return-Math.round(e._d.getTimezoneOffset())}function jt(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Yt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Nt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function zt(e,t){var n,i,r,s,o,c,l=e,d=null;return Et(e)?l={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(l={},t?l[t]=+e:l.milliseconds=+e):(d=Yt.exec(e))?(n="-"===d[1]?-1:1,l={y:0,d:U(d[2])*n,h:U(d[3])*n,m:U(d[4])*n,s:U(d[5])*n,ms:U(At(1e3*d[6]))*n}):(d=Nt.exec(e))?l={y:$t(d[2],n="-"===d[1]?-1:1),M:$t(d[3],n),w:$t(d[4],n),d:$t(d[5],n),h:$t(d[6],n),m:$t(d[7],n),s:$t(d[8],n)}:null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(s=kt(l.from),o=kt(l.to),r=s.isValid()&&o.isValid()?(o=Ft(o,s),s.isBefore(o)?c=Ht(s,o):((c=Ht(o,s)).milliseconds=-c.milliseconds,c.months=-c.months),c):{milliseconds:0,months:0},(l={}).ms=r.milliseconds,l.M=r.months),i=new Lt(l),Et(e)&&a(e,"_locale")&&(i._locale=e._locale),Et(e)&&a(e,"_isValid")&&(i._isValid=e._isValid),i}function $t(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ht(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Xt(e,t){return function(n,i){var r;return null===i||isNaN(+i)||(M(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),Vt(this,zt(n,i),e),this}}function Vt(e,t,n,i){var s=t._milliseconds,o=At(t._days),a=At(t._months);e.isValid()&&(i=null==i||i,a&&Oe(e,G(e,"Month")+a*n),o&&J(e,"Date",G(e,"Date")+o*n),s&&e._d.setTime(e._d.valueOf()+s*n),i&&r.updateOffset(e,o||a))}zt.fn=Lt.prototype,zt.invalid=function(){return zt(NaN)};var Bt=Xt(1,"add"),Ut=Xt(-1,"subtract");function qt(e){return"string"==typeof e||e instanceof String}function Gt(e){return D(e)||d(e)||qt(e)||u(e)||function(e){var t=s(e),n=!1;return t&&(n=0===e.filter(function(t){return!u(t)&&qt(e)}).length),t&&n}(e)||function(e){var t,n=o(e)&&!c(e),i=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<r.length;t+=1)i=i||a(e,r[t]);return n&&i}(e)||null==e}function Jt(e){var t,n=o(e)&&!c(e),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<r.length;t+=1)i=i||a(e,r[t]);return n&&i}function Kt(e,t){if(e.date()<t.date())return-Kt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months");return-(n+(t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i)))||0}function Qt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ct(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Zt=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function en(){return this._locale}var tn=1e3,nn=6e4,rn=36e5,sn=126227808e5;function on(e,t){return(e%t+t)%t}function an(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-sn:new Date(e,t,n).valueOf()}function cn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-sn:Date.UTC(e,t,n)}function ln(e,t){return t.erasAbbrRegex(e)}function un(){var e,t,n=[],i=[],r=[],s=[],o=this.eras();for(e=0,t=o.length;e<t;++e)i.push(be(o[e].name)),n.push(be(o[e].abbr)),r.push(be(o[e].narrow)),s.push(be(o[e].name)),s.push(be(o[e].abbr)),s.push(be(o[e].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function dn(e,t){F(0,[e,e.length],0,t)}function hn(e,t,n,i,r){var s;return null==e?je(this,i,r).year:(t>(s=Ye(e,i,r))&&(t=s),fn.call(this,e,t,n,i,r))}function fn(e,t,n,i,r){var s=We(e,t,n,i,r),o=Pe(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),pe("N",ln),pe("NN",ln),pe("NNN",ln),pe("NNNN",function(e,t){return t.erasNameRegex(e)}),pe("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),ve(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,i){var r=n._locale.erasParse(e,i,n._strict);r?m(n).era=r:m(n).invalidEra=e}),pe("y",le),pe("yy",le),pe("yyy",le),pe("yyyy",le),pe("yo",function(e,t){return t._eraYearOrdinalRegex||le}),ve(["y","yy","yyy","yyyy"],0),ve(["yo"],function(e,t,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),t[0]=n._locale.eraYearOrdinalParse?n._locale.eraYearOrdinalParse(e,r):parseInt(e,10)}),F(0,["gg",2],0,function(){return this.weekYear()%100}),F(0,["GG",2],0,function(){return this.isoWeekYear()%100}),dn("gggg","weekYear"),dn("ggggg","weekYear"),dn("GGGG","isoWeekYear"),dn("GGGGG","isoWeekYear"),N("weekYear","gg"),N("isoWeekYear","GG"),X("weekYear",1),X("isoWeekYear",1),pe("G",ue),pe("g",ue),pe("GG",ie,Z),pe("gg",ie,Z),pe("GGGG",ae,te),pe("gggg",ae,te),pe("GGGGG",ce,ne),pe("ggggg",ce,ne),ye(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=U(e)}),ye(["gg","GG"],function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)}),F("Q",0,"Qo","quarter"),N("quarter","Q"),X("quarter",7),pe("Q",Q),ve("Q",function(e,t){t[1]=3*(U(e)-1)}),F("D",["DD",2],"Do","date"),N("date","D"),X("date",9),pe("D",ie),pe("DD",ie,Z),pe("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ve(["D","DD"],2),ve("Do",function(e,t){t[2]=U(e.match(ie)[0])});var pn=q("Date",!0);F("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),X("dayOfYear",4),pe("DDD",oe),pe("DDDD",ee),ve(["DDD","DDDD"],function(e,t,n){n._dayOfYear=U(e)}),F("m",["mm",2],0,"minute"),N("minute","m"),X("minute",14),pe("m",ie),pe("mm",ie,Z),ve(["m","mm"],4);var mn=q("Minutes",!1);F("s",["ss",2],0,"second"),N("second","s"),X("second",15),pe("s",ie),pe("ss",ie,Z),ve(["s","ss"],5);var bn,gn,_n=q("Seconds",!1);for(F("S",0,0,function(){return~~(this.millisecond()/100)}),F(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,function(){return 10*this.millisecond()}),F(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),F(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),F(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),F(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),F(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),N("millisecond","ms"),X("millisecond",16),pe("S",oe,Q),pe("SS",oe,Z),pe("SSS",oe,ee),bn="SSSS";bn.length<=9;bn+="S")pe(bn,le);function vn(e,t){t[6]=U(1e3*("0."+e))}for(bn="S";bn.length<=9;bn+="S")ve(bn,vn);gn=q("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var yn=w.prototype;function wn(e){return e}yn.add=Bt,yn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Gt(arguments[0])?(e=arguments[0],t=void 0):Jt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||kt(),i=Ft(n,this).startOf("day"),s=r.calendarFormat(this,i)||"sameElse",o=t&&(C(t[s])?t[s].call(this,n):t[s]);return this.format(o||this.localeData().calendar(s,this,kt(n)))},yn.clone=function(){return new w(this)},yn.diff=function(e,t,n){var i,r,s;if(!this.isValid())return NaN;if(!(i=Ft(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=z(t)){case"year":s=Kt(this,i)/12;break;case"month":s=Kt(this,i);break;case"quarter":s=Kt(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-r)/864e5;break;case"week":s=(this-i-r)/6048e5;break;default:s=this-i}return n?s:B(s)},yn.endOf=function(e){var t,n;if(void 0===(e=z(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?cn:an,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=rn-on(t+(this._isUTC?0:this.utcOffset()*nn),rn)-1;break;case"minute":t=this._d.valueOf(),t+=nn-on(t,nn)-1;break;case"second":t=this._d.valueOf(),t+=tn-on(t,tn)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},yn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=W(this,e);return this.localeData().postformat(t)},yn.from=function(e,t){return this.isValid()&&(D(e)&&e.isValid()||kt(e).isValid())?zt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},yn.fromNow=function(e){return this.from(kt(),e)},yn.to=function(e,t){return this.isValid()&&(D(e)&&e.isValid()||kt(e).isValid())?zt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},yn.toNow=function(e){return this.to(kt(),e)},yn.get=function(e){return C(this[e=z(e)])?this[e]():this},yn.invalidAt=function(){return m(this).overflow},yn.isAfter=function(e,t){var n=D(e)?e:kt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=z(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},yn.isBefore=function(e,t){var n=D(e)?e:kt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=z(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},yn.isBetween=function(e,t,n,i){var r=D(e)?e:kt(e),s=D(t)?t:kt(t);return!!(this.isValid()&&r.isValid()&&s.isValid())&&("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(s,n):!this.isAfter(s,n))},yn.isSame=function(e,t){var n,i=D(e)?e:kt(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=z(t)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},yn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},yn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},yn.isValid=function(){return b(this)},yn.lang=Zt,yn.locale=Qt,yn.localeData=en,yn.max=Mt,yn.min=Tt,yn.parsingFlags=function(){return f({},m(this))},yn.set=function(e,t){if("object"==typeof e){var n,i=function(e){var t,n=[];for(t in e)a(e,t)&&n.push({unit:t,priority:H[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=$(e));for(n=0;n<i.length;n++)this[i[n].unit](e[i[n].unit])}else if(C(this[e=z(e)]))return this[e](t);return this},yn.startOf=function(e){var t,n;if(void 0===(e=z(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?cn:an,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=on(t+(this._isUTC?0:this.utcOffset()*nn),rn);break;case"minute":t=this._d.valueOf(),t-=on(t,nn);break;case"second":t=this._d.valueOf(),t-=on(t,tn)}return this._d.setTime(t),r.updateOffset(this,!0),this},yn.subtract=Ut,yn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},yn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},yn.toDate=function(){return new Date(this.valueOf())},yn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?W(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",W(n,"Z")):W(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},yn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n="moment",i="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+n+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+i+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(yn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),yn.toJSON=function(){return this.isValid()?this.toISOString():null},yn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},yn.unix=function(){return Math.floor(this.valueOf()/1e3)},yn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},yn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},yn.eraName=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].name;if(i[e].until<=n&&n<=i[e].since)return i[e].name}return""},yn.eraNarrow=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].narrow;if(i[e].until<=n&&n<=i[e].since)return i[e].narrow}return""},yn.eraAbbr=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].abbr;if(i[e].until<=n&&n<=i[e].since)return i[e].abbr}return""},yn.eraYear=function(){var e,t,n,i,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=s[e].since<=s[e].until?1:-1,i=this.clone().startOf("day").valueOf(),s[e].since<=i&&i<=s[e].until||s[e].until<=i&&i<=s[e].since)return(this.year()-r(s[e].since).year())*n+s[e].offset;return this.year()},yn.year=Ie,yn.isLeapYear=function(){return V(this.year())},yn.weekYear=function(e){return hn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},yn.isoWeekYear=function(e){return hn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},yn.quarter=yn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},yn.month=Le,yn.daysInMonth=function(){return De(this.year(),this.month())},yn.week=yn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},yn.isoWeek=yn.isoWeeks=function(e){var t=je(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},yn.weeksInYear=function(){var e=this.localeData()._week;return Ye(this.year(),e.dow,e.doy)},yn.weeksInWeekYear=function(){var e=this.localeData()._week;return Ye(this.weekYear(),e.dow,e.doy)},yn.isoWeeksInYear=function(){return Ye(this.year(),1,4)},yn.isoWeeksInISOWeekYear=function(){return Ye(this.isoWeekYear(),1,4)},yn.date=pn,yn.day=yn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},yn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},yn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},yn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},yn.hour=yn.hours=Ze,yn.minute=yn.minutes=mn,yn.second=yn.seconds=_n,yn.millisecond=yn.milliseconds=gn,yn.utcOffset=function(e,t,n){var i,s=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Pt(he,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Wt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),s!==e&&(!t||this._changeInProgress?Vt(this,zt(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:Wt(this)},yn.utc=function(e){return this.utcOffset(0,e)},yn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Wt(this),"m")),this},yn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Pt(de,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},yn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?kt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},yn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},yn.isLocal=function(){return!!this.isValid()&&!this._isUTC},yn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},yn.isUtc=jt,yn.isUTC=jt,yn.zoneAbbr=function(){return this._isUTC?"UTC":""},yn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},yn.dates=x("dates accessor is deprecated. Use date instead.",pn),yn.months=x("months accessor is deprecated. Use month instead",Le),yn.years=x("years accessor is deprecated. Use year instead",Ie),yn.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),yn.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return y(t,this),(t=St(t))._a?(e=t._isUTC?p(t._a):kt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var i,r=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),o=0;for(i=0;i<r;i++)U(e[i])!==U(t[i])&&o++;return o+s}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var Dn=L.prototype;function Sn(e,t,n,i){var r=ct(),s=p().set(i,t);return r[n](s,e)}function xn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return Sn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Sn(e,i,n,"month");return r}function kn(e,t,n,i){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var r,s=ct(),o=e?s._week.dow:0,a=[];if(null!=n)return Sn(t,(n+o)%7,i,"day");for(r=0;r<7;r++)a[r]=Sn(t,(r+o)%7,i,"day");return a}Dn.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return C(i)?i.call(t,n):i},Dn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(A).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},Dn.invalidDate=function(){return this._invalidDate},Dn.ordinal=function(e){return this._ordinal.replace("%d",e)},Dn.preparse=wn,Dn.postformat=wn,Dn.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return C(r)?r(e,t,n,i):r.replace(/%d/i,e)},Dn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return C(n)?n(t):n.replace(/%s/i,t)},Dn.set=function(e){var t,n;for(n in e)a(e,n)&&(C(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Dn.eras=function(e,t){var n,i,s,o=this._eras||ct("en")._eras;for(n=0,i=o.length;n<i;++n){switch(typeof o[n].since){case"string":s=r(o[n].since).startOf("day"),o[n].since=s.valueOf()}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":s=r(o[n].until).startOf("day").valueOf(),o[n].until=s.valueOf()}}return o},Dn.erasParse=function(e,t,n){var i,r,s,o,a,c=this.eras();for(e=e.toUpperCase(),i=0,r=c.length;i<r;++i)if(s=c[i].name.toUpperCase(),o=c[i].abbr.toUpperCase(),a=c[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return c[i];break;case"NNNN":if(s===e)return c[i];break;case"NNNNN":if(a===e)return c[i]}else if([s,o,a].indexOf(e)>=0)return c[i]},Dn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},Dn.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||un.call(this),e?this._erasAbbrRegex:this._erasRegex},Dn.erasNameRegex=function(e){return a(this,"_erasNameRegex")||un.call(this),e?this._erasNameRegex:this._erasRegex},Dn.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||un.call(this),e?this._erasNarrowRegex:this._erasRegex},Dn.months=function(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ke).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone},Dn.monthsShort=function(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ke.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Dn.monthsParse=function(e,t,n){var i,r,s;if(this._monthsParseExact)return Ce.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=p([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},Dn.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Ee.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Me),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Dn.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Ee.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Te),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Dn.week=function(e){return je(e,this._week.dow,this._week.doy).week},Dn.firstDayOfYear=function(){return this._week.doy},Dn.firstDayOfWeek=function(){return this._week.dow},Dn.weekdays=function(e,t){var n=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ne(n,this._week.dow):e?n[e.day()]:n},Dn.weekdaysMin=function(e){return!0===e?Ne(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Dn.weekdaysShort=function(e){return!0===e?Ne(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Dn.weekdaysParse=function(e,t,n){var i,r,s;if(this._weekdaysParseExact)return Ue.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=p([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},Dn.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Xe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Dn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ve),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Dn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Be),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Dn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Dn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===U(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=x("moment.lang is deprecated. Use moment.locale instead.",ot),r.langData=x("moment.langData is deprecated. Use moment.localeData instead.",ct);var Tn=Math.abs;function Mn(e,t,n,i){var r=zt(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function Cn(e){return e<0?Math.floor(e):Math.ceil(e)}function On(e){return 4800*e/146097}function Ln(e){return 146097*e/4800}function En(e){return function(){return this.as(e)}}var An=En("ms"),In=En("s"),Rn=En("m"),Pn=En("h"),Fn=En("d"),Wn=En("w"),jn=En("M"),Yn=En("Q"),Nn=En("y");function zn(e){return function(){return this.isValid()?this._data[e]:NaN}}var $n=zn("milliseconds"),Hn=zn("seconds"),Xn=zn("minutes"),Vn=zn("hours"),Bn=zn("days"),Un=zn("months"),qn=zn("years"),Gn=Math.round,Jn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Kn(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}var Qn=Math.abs;function Zn(e){return(e>0)-(e<0)||+e}function ei(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,r,s,o,a,c=Qn(this._milliseconds)/1e3,l=Qn(this._days),u=Qn(this._months),d=this.asSeconds();return d?(e=B(c/60),t=B(e/60),c%=60,e%=60,n=B(u/12),u%=12,i=c?c.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",s=Zn(this._months)!==Zn(d)?"-":"",o=Zn(this._days)!==Zn(d)?"-":"",a=Zn(this._milliseconds)!==Zn(d)?"-":"",r+"P"+(n?s+n+"Y":"")+(u?s+u+"M":"")+(l?o+l+"D":"")+(t||e||c?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(c?a+i+"S":"")):"P0D"}var ti=Lt.prototype;return ti.isValid=function(){return this._isValid},ti.abs=function(){var e=this._data;return this._milliseconds=Tn(this._milliseconds),this._days=Tn(this._days),this._months=Tn(this._months),e.milliseconds=Tn(e.milliseconds),e.seconds=Tn(e.seconds),e.minutes=Tn(e.minutes),e.hours=Tn(e.hours),e.months=Tn(e.months),e.years=Tn(e.years),this},ti.add=function(e,t){return Mn(this,e,t,1)},ti.subtract=function(e,t){return Mn(this,e,t,-1)},ti.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=z(e))||"quarter"===e||"year"===e)switch(n=this._months+On(t=this._days+i/864e5),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ln(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},ti.asMilliseconds=An,ti.asSeconds=In,ti.asMinutes=Rn,ti.asHours=Pn,ti.asDays=Fn,ti.asWeeks=Wn,ti.asMonths=jn,ti.asQuarters=Yn,ti.asYears=Nn,ti.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*U(this._months/12):NaN},ti._bubble=function(){var e,t,n,i,r,s=this._milliseconds,o=this._days,a=this._months,c=this._data;return s>=0&&o>=0&&a>=0||s<=0&&o<=0&&a<=0||(s+=864e5*Cn(Ln(a)+o),o=0,a=0),c.milliseconds=s%1e3,e=B(s/1e3),c.seconds=e%60,t=B(e/60),c.minutes=t%60,n=B(t/60),c.hours=n%24,o+=B(n/24),a+=r=B(On(o)),o-=Cn(Ln(r)),i=B(a/12),a%=12,c.days=o,c.months=a,c.years=i,this},ti.clone=function(){return zt(this)},ti.get=function(e){return e=z(e),this.isValid()?this[e+"s"]():NaN},ti.milliseconds=$n,ti.seconds=Hn,ti.minutes=Xn,ti.hours=Vn,ti.days=Bn,ti.weeks=function(){return B(this.days()/7)},ti.months=Un,ti.years=qn,ti.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,s=Jn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(s=Object.assign({},Jn,t),null!=t.s&&null==t.ss&&(s.ss=t.s-1)),i=function(e,t,n,i){var r=zt(e).abs(),s=Gn(r.as("s")),o=Gn(r.as("m")),a=Gn(r.as("h")),c=Gn(r.as("d")),l=Gn(r.as("M")),u=Gn(r.as("w")),d=Gn(r.as("y")),h=s<=n.ss&&["s",s]||s<n.s&&["ss",s]||o<=1&&["m"]||o<n.m&&["mm",o]||a<=1&&["h"]||a<n.h&&["hh",a]||c<=1&&["d"]||c<n.d&&["dd",c];return null!=n.w&&(h=h||u<=1&&["w"]||u<n.w&&["ww",u]),(h=h||l<=1&&["M"]||l<n.M&&["MM",l]||d<=1&&["y"]||["yy",d])[2]=t,h[3]=+e>0,h[4]=i,Kn.apply(null,h)}(this,!r,s,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)},ti.toISOString=ei,ti.toString=ei,ti.toJSON=ei,ti.locale=Qt,ti.localeData=en,ti.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ei),ti.lang=Zt,F("X",0,0,"unix"),F("x",0,0,"valueOf"),pe("x",ue),pe("X",/[+-]?\d+(\.\d{1,3})?/),ve("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),ve("x",function(e,t,n){n._d=new Date(U(e))}),r.version="2.29.1",t=kt,r.fn=yn,r.min=function(){return Ct("isBefore",[].slice.call(arguments,0))},r.max=function(){return Ct("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=p,r.unix=function(e){return kt(1e3*e)},r.months=function(e,t){return xn(e,t,"months")},r.isDate=d,r.locale=ot,r.invalid=g,r.duration=zt,r.isMoment=D,r.weekdays=function(e,t,n){return kn(e,t,n,"weekdays")},r.parseZone=function(){return kt.apply(null,arguments).parseZone()},r.localeData=ct,r.isDuration=Et,r.monthsShort=function(e,t){return xn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return kn(e,t,n,"weekdaysMin")},r.defineLocale=at,r.updateLocale=function(e,t){if(null!=t){var n,i,r=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(O(tt[e]._config,t)):(null!=(i=st(e))&&(r=i._config),t=O(r,t),null==i&&(t.abbr=e),(n=new L(t)).parentLocale=tt[e],tt[e]=n),ot(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===ot()&&ot(e)):null!=tt[e]&&delete tt[e]);return tt[e]},r.locales=function(){return k(tt)},r.weekdaysShort=function(e,t,n){return kn(e,t,n,"weekdaysShort")},r.normalizeUnits=z,r.relativeTimeRounding=function(e){return void 0===e?Gn:"function"==typeof e&&(Gn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Jn[e]&&(void 0===t?Jn[e]:(Jn[e]=t,"s"===e&&(Jn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=yn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n("YuTi")(e))},wg0c:function(e,t,n){var i=n("2oRo"),r=n("0Dky"),s=n("4zBA"),o=n("V37c"),a=n("WKiH").trim,c=n("WJkJ"),l=i.parseInt,u=i.Symbol,d=u&&u.iterator,h=/^[+-]?0x/i,f=s(h.exec),p=8!==l(c+"08")||22!==l(c+"0x16")||d&&!r(function(){l(Object(d))});e.exports=p?function(e,t){var n=a(o(e));return l(n,t>>>0||(f(h,n)?16:10))}:l},wnGv:function(e,t,n){"use strict";n.d(t,"a",function(){return E});var i=n("8Y7J"),r=n("s7LF"),s=n("LvDl"),o=n.n(s),a=n("oxzT"),c=n("QFaf"),l=n("DNAf"),u=n("a96k"),d=n("SVse"),h=n("NwgZ"),f=n("ANnk"),p=n("f69J"),m=n("G0yt");function b(e,t){if(1&e&&(i.Xb(0,"span",12),i.Rc(1),i.Wb()),2&e){const e=i.nc().$implicit,t=i.nc(2);i.Db(1),i.Tc(" ",t.messages.customValidations[e]," ")}}function g(e,t){if(1&e&&(i.Vb(0),i.Pc(1,b,2,1,"span",11),i.Ub()),2&e){const e=t.$implicit;i.nc();const n=i.Fc(1),r=i.nc();i.Db(1),i.uc("ngIf",r.form.showError("filter",n)&&r.filter.hasError(e))}}const _=function(e){return[e]};function v(e,t){if(1&e&&i.Sb(0,"i",18),2&e){const e=i.nc(3);i.uc("ngClass",i.zc(1,_,e.icons.check))}}function y(e,t){if(1&e&&(i.Vb(0),i.Sb(1,"br"),i.Xb(2,"small",19),i.Rc(3),i.Wb(),i.Ub()),2&e){const e=i.nc().$implicit;i.Db(3),i.Tc(" ",e.description,"\xa0 ")}}const w=function(e){return{"help-block disabled":e}};function D(e,t){if(1&e){const e=i.Yb();i.Xb(0,"div",13),i.lc("click",function(){i.Ic(e);const n=t.$implicit;return i.nc(2).triggerSelection(n)}),i.Xb(1,"div",14),i.Pc(2,v,1,3,"i",15),i.Rc(3," \xa0 "),i.Wb(),i.Xb(4,"div",16),i.Rc(5),i.Pc(6,y,4,1,"ng-container",17),i.Wb(),i.Wb()}if(2&e){const e=t.$implicit,n=i.nc(2);i.uc("ngClass",i.zc(4,w,!(n.data.length!==n.selectionLimit&&e.enabled||e.selected))),i.Db(2),i.uc("ngIf",e.selected),i.Db(3),i.Tc(" ",e.name," "),i.Db(1),i.uc("ngIf",e.description)}}function S(e,t){if(1&e){const e=i.Yb();i.Xb(0,"div",20),i.lc("click",function(){return i.Ic(e),i.nc(2).addCustomOption()}),i.Xb(1,"div",14),i.Sb(2,"i",18),i.Rc(3," \xa0 "),i.Wb(),i.Xb(4,"div",16),i.Rc(5),i.Wb(),i.Wb()}if(2&e){const e=i.nc(2);i.Db(2),i.uc("ngClass",i.zc(3,_,e.icons.tag)),i.Db(3),i.Uc(" ",e.messages.add," '",e.filter.value,"' ")}}function x(e,t){if(1&e&&(i.Xb(0,"span",23),i.Rc(1),i.Wb()),2&e){const e=i.nc(3);i.uc("ngbTooltip",e.messages.selectionLimit.tooltip),i.Db(1),i.Tc(" ",e.messages.selectionLimit.text," ")}}function k(e,t){if(1&e&&(i.Xb(0,"div",21),i.Pc(1,x,2,2,"span",22),i.Wb()),2&e){const e=i.nc(2);i.Db(1),i.uc("ngIf",e.data.length===e.selectionLimit)}}function T(e,t){if(1&e){const e=i.Yb();i.Xb(0,"form",4,5),i.Xb(2,"div"),i.Xb(3,"input",6),i.lc("keyup",function(t){i.Ic(e);const n=i.nc();return 13==t.keyCode?n.selectOption():n.updateFilter()}),i.Wb(),i.Pc(4,g,2,1,"ng-container",7),i.Wb(),i.Wb(),i.Pc(5,D,7,6,"div",8),i.Pc(6,S,6,5,"div",9),i.Pc(7,k,2,1,"div",10)}if(2&e){const e=i.nc();i.uc("formGroup",e.form),i.Db(3),i.uc("placeholder",e.messages.filter),i.Db(1),i.uc("ngForOf",e.Object.keys(e.messages.customValidations)),i.Db(1),i.uc("ngForOf",e.filteredOptions),i.Db(1),i.uc("ngIf",e.isCreatable()),i.Db(1),i.uc("ngIf",e.data.length===e.selectionLimit)}}function M(e,t){if(1&e&&(i.Xb(0,"a",24),i.sc(1),i.Wb()),2&e){const e=i.nc(),t=i.Fc(1);i.uc("ngClass",e.elemClass)("ngbPopover",t)}}function C(e,t){if(1&e&&(i.Xb(0,"span",25),i.Rc(1),i.Wb()),2&e){const e=i.nc();i.Db(1),i.Tc(" ",e.messages.empty,"\n")}}function O(e,t){if(1&e&&(i.Xb(0,"span",25),i.Rc(1),i.Wb()),2&e){const e=i.nc();i.Db(1),i.Tc(" ",e.messages.noOptions,"\n")}}const L=["*"];let E=(()=>{class e{constructor(){this.data=[],this.options=[],this.messages=new l.a({}),this.customBadges=!1,this.customBadgeValidators=[],this.selection=new i.p,this.Object=Object,this.filteredOptions=[],this.icons=a.a}ngOnInit(){this.initFilter(),this.data.length>0&&this.initMissingOptions(),this.options=o.a.sortBy(this.options,["name"]),this.updateOptions()}initFilter(){this.filter=new r.h("",{validators:this.customBadgeValidators}),this.form=new c.a({filter:this.filter}),this.filteredOptions=[...this.options||[]]}initMissingOptions(){const e=this.options.map(e=>e.name);this.data.filter(t=>-1===e.indexOf(t)).forEach(e=>this.addOption(e)),this.forceOptionsToReflectData()}addOption(e){this.options.push(new u.a(!1,e,"")),this.options=o.a.sortBy(this.options,["name"]),this.triggerSelection(this.options.find(t=>t.name===e))}triggerSelection(e){!e||this.selectionLimit&&!e.selected&&this.data.length>=this.selectionLimit||(e.selected=!e.selected,this.updateOptions(),this.selection.emit({option:e}))}updateOptions(){this.data.splice(0,this.data.length),this.options.forEach(e=>{e.selected&&this.data.push(e.name)}),this.updateFilter()}updateFilter(){this.filteredOptions=this.options.filter(e=>e.name.includes(this.filter.value))}forceOptionsToReflectData(){this.options.forEach(e=>{-1!==this.data.indexOf(e.name)&&(e.selected=!0)})}ngOnChanges(){this.filter&&this.updateFilter(),this.options&&this.data&&0!==this.data.length&&this.forceOptionsToReflectData()}selectOption(){0===this.filteredOptions.length?this.addCustomOption():(this.triggerSelection(this.filteredOptions[0]),this.resetFilter())}addCustomOption(){this.isCreatable()&&(this.addOption(this.filter.value),this.resetFilter())}isCreatable(){return this.customBadges&&this.filter.valid&&this.filter.value.length>0&&this.filteredOptions.every(e=>e.name!==this.filter.value)}resetFilter(){this.filter.setValue(""),this.updateFilter()}removeItem(e){this.triggerSelection(this.options.find(t=>t.name===e&&t.selected))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Lb({type:e,selectors:[["cd-select"]],inputs:{elemClass:"elemClass",data:"data",options:"options",messages:"messages",selectionLimit:"selectionLimit",customBadges:"customBadges",customBadgeValidators:"customBadgeValidators"},outputs:{selection:"selection"},features:[i.Bb],ngContentSelectors:L,decls:5,vars:3,consts:[["popTemplate",""],["class","select-menu-edit float-left","data-testid","select-menu-edit",3,"ngClass","ngbPopover",4,"ngIf"],["class","form-text text-muted float-left",4,"ngIf"],["class","form-text text-muted float-left",4,"ngIf"],["name","form","novalidate","",3,"formGroup"],["formDir","ngForm"],["type","text","formControlName","filter",1,"form-control","text-center",3,"placeholder","keyup"],[4,"ngFor","ngForOf"],["class","select-menu-item",3,"ngClass","click",4,"ngFor","ngForOf"],["class","select-menu-item",3,"click",4,"ngIf"],["class","is-invalid",4,"ngIf"],["class","invalid-feedback text-center d-block",4,"ngIf"],[1,"invalid-feedback","text-center","d-block"],[1,"select-menu-item",3,"ngClass","click"],[1,"select-menu-item-icon"],["aria-hidden","true",3,"ngClass",4,"ngIf"],[1,"select-menu-item-content"],[4,"ngIf"],["aria-hidden","true",3,"ngClass"],[1,"form-text","text-muted"],[1,"select-menu-item",3,"click"],[1,"is-invalid"],["class","form-text text-muted text-center text-warning",3,"ngbTooltip",4,"ngIf"],[1,"form-text","text-muted","text-center","text-warning",3,"ngbTooltip"],["data-testid","select-menu-edit",1,"select-menu-edit","float-left",3,"ngClass","ngbPopover"],[1,"form-text","text-muted","float-left"]],template:function(e,t){1&e&&(i.tc(),i.Pc(0,T,8,6,"ng-template",null,0,i.Qc),i.Pc(2,M,2,2,"a",1),i.Pc(3,C,2,1,"span",2),i.Pc(4,O,2,1,"span",3)),2&e&&(i.Db(2),i.uc("ngIf",t.customBadges||t.options.length>0),i.Db(1),i.uc("ngIf",0===t.data.length&&!(!t.customBadges&&0===t.options.length)),i.Db(1),i.uc("ngIf",!t.customBadges&&0===t.options.length))},directives:[d.r,r.B,r.r,r.k,h.a,f.a,r.d,p.a,r.q,r.i,d.q,d.p,m.D,m.w],styles:[".select-menu-item[_ngcontent-%COMP%]{border-bottom:1px solid #00000017;cursor:pointer;display:block;font-size:1rem}.select-menu-item[_ngcontent-%COMP%]:hover{background-color:#e9ecef}.select-menu-item-icon[_ngcontent-%COMP%]{float:left;padding:.5em;width:3em}.select-menu-item-content[_ngcontent-%COMP%]{padding:.5em}.select-menu-item-content[_ngcontent-%COMP%] .form-text[_ngcontent-%COMP%]{display:flex}"]}),e})()},"x+ZX":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(){return function(e){return e.lift(new s(e))}}class s{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const i=new o(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}class o extends i.a{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}},x38r:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){return e.bold="bold",e.sparkline="sparkline",e.perSecond="perSecond",e.checkIcon="checkIcon",e.routerLink="routerLink",e.executing="executing",e.classAdding="classAdding",e.badge="badge",e.map="map",e.truncate="truncate",e}({})},x6pH:function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(e){return 2===e?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":e+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(e){return 2===e?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":e+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(e){return 2===e?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":e+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(e){return 2===e?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":e%10==0&&10!==e?e+" \u05e9\u05e0\u05d4":e+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(e){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(e)},meridiem:function(e,t,n){return e<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":e<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":e<12?n?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":e<18?n?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(n("wd/R"))},xDBR:function(e,t){e.exports=!1},xTzq:function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return o});var i=n("LvDl"),r=n.n(i);function s(...e){switch(e.length){case 1:return a.apply(void 0,e);case 3:return c.apply(void 0,e);default:throw new Error}}function o(e,t,n){const i=`__ignore_${t}`;Array.isArray(e[i])?e[i].push(n):e[i]=[n]}function a(e){for(const t of Object.getOwnPropertyNames(e.prototype)){const n=Object.getOwnPropertyDescriptor(e.prototype,t),i="constructor"===t;n.value instanceof Function&&!i&&(c(e.prototype,t,n),Object.defineProperty(e.prototype,t,n))}}function c(e,t,n){void 0===n&&(n=Object.getOwnPropertyDescriptor(e,t));const i=n.value;n.value=function(){const n=`__ignore_${t}`,s=e[n]||[],o=[];for(let e=0;e<arguments.length;e++)o[e]=r.a.isString(arguments[e])&&-1===s.indexOf(e)?encodeURIComponent(arguments[e]):arguments[e];const a=i.apply(this,o);return a}}},xbPD:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(e=null){return t=>t.lift(new s(e))}class s{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new o(e,this.defaultValue))}}class o extends i.a{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},xgIS:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("HDdC"),r=n("DH7j"),s=n("n6bG"),o=n("lJxs");function a(e,t,n,l){return Object(s.a)(n)&&(l=n,n=void 0),l?a(e,t,n).pipe(Object(o.a)(e=>Object(r.a)(e)?l(...e):l(e))):new i.a(i=>{c(e,t,function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},i,n)})}function c(e,t,n,i,r){let s;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){const i=e;e.addEventListener(t,n,r),s=()=>i.removeEventListener(t,n,r)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){const i=e;e.on(t,n),s=()=>i.off(t,n)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){const i=e;e.addListener(t,n),s=()=>i.removeListener(t,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let s=0,o=e.length;s<o;s++)c(e[s],t,n,i,r)}i.add(s)}},xluM:function(e,t){var n=Function.prototype.call;e.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},xrYK:function(e,t,n){var i=n("4zBA"),r=i({}.toString),s=i("".slice);e.exports=function(e){return s(r(e),8,-1)}},xs3f:function(e,t,n){var i=n("2oRo"),r=n("zk60"),s="__core-js_shared__",o=i[s]||r(s,{});e.exports=o},xutz:function(e,t,n){"use strict";(function(e){var i=n("XqMk"),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=r&&"object"==typeof e&&e&&!e.nodeType&&e,o=s&&s.exports===r&&i.a.process,a=function(){try{return s&&s.require&&s.require("util").types||o&&o.binding&&o.binding("util")}catch(e){}}();t.a=a}).call(this,n("3UD+")(e))},yCtX:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("HDdC"),r=n("ngJS"),s=n("jZKg");function o(e,t){return t?Object(s.a)(e,t):new i.a(Object(r.a)(e))}},yGOH:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("8Y7J");let r=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Pb({type:e}),e.\u0275inj=i.Ob({imports:[[]]}),e})()},yJti:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){return e[e.ValueOk=0]="ValueOk",e[e.ValueStale=1]="ValueStale",e[e.ValueNone=2]="ValueNone",e[e.ValueException=3]="ValueException",e}({})},yPMs:function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},yT6U:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("LvDl"),r=n.n(i),s=n("8Y7J");let o=(()=>{class e{transform(e,t=!1){let n=e;return(!r.a.isArray(e)||r.a.isArray(e)&&t)&&(n=[e]),n}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=s.Qb({name:"array",type:e,pure:!0}),e})()},ylTp:function(e,t,n){"use strict";var i=n("Ju5/");t.a=i.a.Symbol},yoRg:function(e,t,n){var i=n("4zBA"),r=n("Gi26"),s=n("/GqU"),o=n("TWQb").indexOf,a=n("0BK2"),c=i([].push);e.exports=function(e,t){var n,i=s(e),l=0,u=[];for(n in i)!r(a,n)&&r(i,n)&&c(u,n);for(;t.length>l;)r(i,n=t[l++])&&(~o(u,n)||c(u,n));return u}},"z+Ro":function(e,t,n){"use strict";function i(e){return e&&"function"==typeof e.schedule}n.d(t,"a",function(){return i})},z1FC:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[e+" m\xeduts",e+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[e+" \xfeoras",e+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return i||t?r[n][0]:r[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},z3Vd:function(e,t,n){!function(e){"use strict";var t="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,i,r){var s=function(e){var n=Math.floor(e%1e3/100),i=Math.floor(e%100/10),r=e%10,s="";return n>0&&(s+=t[n]+"vatlh"),i>0&&(s+=(""!==s?" ":"")+t[i]+"maH"),r>0&&(s+=(""!==s?" ":"")+t[r]),""===s?"pagh":s}(e);switch(i){case"ss":return s+" lup";case"mm":return s+" tup";case"hh":return s+" rep";case"dd":return s+" jaj";case"MM":return s+" jar";case"yy":return s+" DIS"}}e.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu\u2019":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa\u2019 tup",mm:n,h:"wa\u2019 rep",hh:n,d:"wa\u2019 jaj",dd:n,M:"wa\u2019 jar",MM:n,y:"wa\u2019 DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},z6cu:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("HDdC");function r(e,t){return new i.a(t?n=>t.schedule(s,0,{error:e,subscriber:n}):t=>t.error(e))}function s({error:e,subscriber:t}){t.error(e)}},zBJ4:function(e,t,n){var i=n("2oRo"),r=n("hh1v"),s=i.document,o=r(s)&&r(s.createElement);e.exports=function(e){return o?s.createElement(e):{}}},zKZe:function(e,t,n){var i=n("I+eb"),r=n("YNrV");i({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},zNnC:function(e,t,n){"use strict";n.d(t,"a",function(){return i});class i{getVersionHeaderValue(e,t){return`application/vnd.ceph.api.v${e}.${t}+json`}}},zUnb:function(e,t,n){"use strict";n.r(t);var i=n("cUpR"),r=n("8Y7J"),s=n("SVse"),o=n("IheW"),a=n("GS7A");function c(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function l(e){switch(e.length){case 0:return new a.d;case 1:return e[0];default:return new a.k(e)}}function u(e,t,n,i,r={},s={}){const o=[],c=[];let l=-1,u=null;if(i.forEach(e=>{const n=e.offset,i=n==l,d=i&&u||{};Object.keys(e).forEach(n=>{let i=n,c=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,o),c){case a.l:c=r[n];break;case a.a:c=s[n];break;default:c=t.normalizeStyleValue(n,i,c,o)}d[i]=c}),i||c.push(d),u=d,l=n}),o.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${o.join(e)}`)}return c}function d(e,t,n,i){switch(t){case"start":e.onStart(()=>i(n&&h(n,"start",e)));break;case"done":e.onDone(()=>i(n&&h(n,"done",e)));break;case"destroy":e.onDestroy(()=>i(n&&h(n,"destroy",e)))}}function h(e,t,n){const i=n.totalTime,r=f(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),s=e._data;return null!=s&&(r._data=s),r}function f(e,t,n,i,r="",s=0,o){return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function p(e,t,n){let i;return e instanceof Map?(i=e.get(t),i||e.set(t,i=n)):(i=e[t],i||(i=e[t]=n)),i}function m(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let b=(e,t)=>!1,g=(e,t)=>!1,_=(e,t,n)=>[];const v=c();(v||"undefined"!=typeof Element)&&(b=(e,t)=>e.contains(t),g=(()=>{if(v||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):g}})(),_=(e,t,n)=>{let i=[];if(n){const n=e.querySelectorAll(t);for(let e=0;e<n.length;e++)i.push(n[e])}else{const n=e.querySelector(t);n&&i.push(n)}return i});let y=null,w=!1;function D(e){y||(y=("undefined"!=typeof document?document.body:null)||{},w=!!y.style&&"WebkitAppearance"in y.style);let t=!0;return y.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in y.style,!t&&w)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in y.style),t}const S=g,x=b,k=_;function T(e){const t={};return Object.keys(e).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]}),t}let M=(()=>{class e{validateStyleProperty(e){return D(e)}matchesElement(e,t){return S(e,t)}containsElement(e,t){return x(e,t)}query(e,t,n){return k(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,i,r,s=[],o){return new a.d(n,i)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac}),e})(),C=(()=>{class e{}return e.NOOP=new M,e})();const O="ng-enter",L="ng-leave",E="ng-trigger",A=".ng-trigger",I="ng-animating",R=".ng-animating";function P(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:F(parseFloat(t[1]),t[2])}function F(e,t){switch(t){case"s":return 1e3*e;default:return e}}function W(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let i,r=0,s="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};i=F(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=F(parseFloat(o),n[4]));const a=n[5];a&&(s=a)}else i=e;if(!n){let n=!1,s=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(s,0,`The provided timing value "${e}" is invalid.`)}return{duration:i,delay:r,easing:s}}(e,t,n)}function j(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function Y(e,t,n={}){if(t)for(let i in e)n[i]=e[i];else j(e,n);return n}function N(e,t,n){return n?t+":"+n+";":""}function z(e){let t="";for(let n=0;n<e.style.length;n++){const i=e.style.item(n);t+=N(0,i,e.style.getPropertyValue(i))}for(const n in e.style)e.style.hasOwnProperty(n)&&!n.startsWith("_")&&(t+=N(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[n]));e.setAttribute("style",t)}function $(e,t,n){e.style&&(Object.keys(t).forEach(i=>{const r=J(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[r]),e.style[r]=t[i]}),c()&&z(e))}function H(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=J(t);e.style[n]=""}),c()&&z(e))}function X(e){return Array.isArray(e)?1==e.length?e[0]:Object(a.f)(e):e}const V=new RegExp("{{\\s*(.+?)\\s*}}","g");function B(e){let t=[];if("string"==typeof e){let n;for(;n=V.exec(e);)t.push(n[1]);V.lastIndex=0}return t}function U(e,t,n){const i=e.toString(),r=i.replace(V,(e,i)=>{let r=t[i];return t.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),r=""),r.toString()});return r==i?e:r}function q(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const G=/-+([a-z0-9])/g;function J(e){return e.replace(G,(...e)=>e[1].toUpperCase())}function K(e,t){return 0===e||0===t}function Q(e,t,n){const i=Object.keys(n);if(i.length&&t.length){let s=t[0],o=[];if(i.forEach(e=>{s.hasOwnProperty(e)||o.push(e),s[e]=n[e]}),o.length)for(var r=1;r<t.length;r++){let n=t[r];o.forEach(function(t){n[t]=ee(e,t)})}}return t}function Z(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error(`Unable to resolve animation metadata node #${t.type}`)}}function ee(e,t){return window.getComputedStyle(e)[t]}const te="*";function ne(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(e=>function(e,t,n){if(":"==e[0]){const i=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(`The transition alias value "${e}" is not supported`),"* => *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}const i=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const r=i[1],s=i[2],o=i[3];t.push(se(r,o)),"<"!=s[0]||r==te&&o==te||t.push(se(o,r))}(e,n,t)):n.push(e),n}const ie=new Set(["true","1"]),re=new Set(["false","0"]);function se(e,t){const n=ie.has(e)||re.has(e),i=ie.has(t)||re.has(t);return(r,s)=>{let o=e==te||e==r,a=t==te||t==s;return!o&&n&&"boolean"==typeof r&&(o=r?ie.has(e):re.has(e)),!a&&i&&"boolean"==typeof s&&(a=s?ie.has(t):re.has(t)),o&&a}}const oe=new RegExp("s*:selfs*,?","g");function ae(e,t,n){return new ce(e).build(t,n)}class ce{constructor(e){this._driver=e}build(e,t){const n=new le(t);return this._resetContextStyleTimingState(n),Z(this,X(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,i=t.depCount=0;const r=[],s=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,i=n.name;i.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,r.push(this.visitState(n,t))}),n.name=i}else if(1==e.type){const r=this.visitTransition(e,t);n+=r.queryCount,i+=r.depCount,s.push(r)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:r,transitions:s,queryCount:n,depCount:i,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){const r=new Set,s=i||{};if(n.styles.forEach(e=>{if(ue(e)){const t=e;Object.keys(t).forEach(e=>{B(t[e]).forEach(e=>{s.hasOwnProperty(e)||r.add(e)})})}}),r.size){const n=q(r.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=Z(this,X(e.animation),t);return{type:1,matchers:ne(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:de(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>Z(this,e,t)),options:de(e.options)}}visitGroup(e,t){const n=t.currentTime;let i=0;const r=e.steps.map(e=>{t.currentTime=n;const r=Z(this,e,t);return i=Math.max(i,t.currentTime),r});return t.currentTime=i,{type:3,steps:r,options:de(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return he(W(e,t).duration,0,"");const i=e;if(i.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=he(0,0,"");return e.dynamic=!0,e.strValue=i,e}return n=n||W(i,t),he(n.duration,n.delay,n.easing)}(e.timings,t.errors);let i;t.currentAnimateTimings=n;let r=e.styles?e.styles:Object(a.h)({});if(5==r.type)i=this.visitKeyframes(r,t);else{let r=e.styles,s=!1;if(!r){s=!0;const e={};n.easing&&(e.easing=n.easing),r=Object(a.h)(e)}t.currentTime+=n.duration+n.delay;const o=this.visitStyle(r,t);o.isEmptyStep=s,i=o}return t.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?e==a.a?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let i=!1,r=null;return n.forEach(e=>{if(ue(e)){const t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(let e in t)if(t[e].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let i=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const s=t.collectedStyles[t.currentQuerySelector],o=s[n];let a=!0;o&&(r!=i&&r>=o.startTime&&i<=o.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${i}ms"`),a=!1),r=o.startTime),a&&(s[n]={startTime:r,endTime:i}),t.options&&function(e,t,n){const i=t.params||{},r=B(e);r.length&&r.forEach(e=>{i.hasOwnProperty(e)||n.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[n],t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const r=[];let s=!1,o=!1,a=0;const c=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let c=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(ue(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(ue(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),l=0;return null!=c&&(i++,l=n.offset=c),o=o||l<0||l>1,s=s||l<a,a=l,r.push(l),n});o&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),s&&t.errors.push("Please ensure that all keyframe offsets are in order");const l=e.steps.length;let u=0;i>0&&i<l?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(u=1/(l-1));const d=l-1,h=t.currentTime,f=t.currentAnimateTimings,p=f.duration;return c.forEach((e,i)=>{const s=u>0?i==d?1:u*i:r[i],o=s*p;t.currentTime=h+f.delay+o,f.duration=o,this._validateStyleAst(e,t),e.offset=s,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:Z(this,X(e.animation),t),options:de(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:de(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:de(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;const[r,s]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>":self"==e);return t&&(e=e.replace(oe,"")),[e=e.replace(/@\*/g,A).replace(/@\w+/g,e=>".ng-trigger-"+e.substr(1)).replace(/:animating/g,R),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,p(t.collectedStyles,t.currentQuerySelector,{});const o=Z(this,X(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:o,originalSelector:e.selector,options:de(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:W(e.timings,t.errors,!0);return{type:12,animation:Z(this,X(e.animation),t),timings:n,options:null}}}class le{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={},this.options=null}}function ue(e){return!Array.isArray(e)&&"object"==typeof e}function de(e){var t;return e?(e=j(e)).params&&(e.params=(t=e.params)?j(t):null):e={},e}function he(e,t,n){return{duration:e,delay:t,easing:n}}function fe(e,t,n,i,r,s,o=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class pe{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const me=new RegExp(":enter","g"),be=new RegExp(":leave","g");function ge(e,t,n,i,r,s={},o={},a,c,l=[]){return(new _e).buildKeyframes(e,t,n,i,r,s,o,a,c,l)}class _e{buildKeyframes(e,t,n,i,r,s,o,a,c,l=[]){c=c||new pe;const u=new ye(e,t,c,i,r,l,[]);u.options=a,u.currentTimeline.setStyles([s],null,u.errors,a),Z(this,n,u);const d=u.timelines.filter(e=>e.containsAnimation());if(d.length&&Object.keys(o).length){const e=d[d.length-1];e.allowOnlyTimelineStyles()||e.setStyles([o],null,u.errors,a)}return d.length?d.map(e=>e.buildKeyframes()):[fe(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,s=this._visitSubInstructions(n,i,i.options);r!=s&&t.transformIntoNewTimeline(s)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let i=t.currentTimeline.currentTime;const r=null!=n.duration?P(n.duration):null,s=null!=n.delay?P(n.delay):null;return 0!==r&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,r,s);i=Math.max(i,n.duration+n.delay)}),i}visitReference(e,t){t.updateOptions(e.options,!0),Z(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let i=t;const r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),null!=r.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ve);const e=P(r.delay);i.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>Z(this,e,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let i=t.currentTimeline.currentTime;const r=e.options&&e.options.delay?P(e.options.delay):0;e.steps.forEach(s=>{const o=t.createSubContext(e.options);r&&o.delayNextStep(r),Z(this,s,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return W(t.params?U(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());const r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,s=t.createSubContext().currentTimeline;s.easing=n.easing,e.styles.forEach(e=>{s.forwardTime((e.offset||0)*r),s.setStyles(e.styles,e.easing,t.errors,t.options),s.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(s),t.transformIntoNewTimeline(i+r),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?P(i.delay):0;r&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ve);let s=n;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{t.currentQueryIndex=i;const o=t.createSubContext(e.options,n);r&&o.delayNextStep(r),n===t.element&&(a=o.currentTimeline),Z(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,o.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,i=t.currentTimeline,r=e.timings,s=Math.abs(r.duration),o=s*(t.currentQueryTotal-1);let a=s*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const c=t.currentTimeline;a&&c.delayNextStep(a);const l=c.currentTime;Z(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}const ve={};class ye{constructor(e,t,n,i,r,s,o,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=s,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ve,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new we(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let i=this.options;null!=n.duration&&(i.duration=P(n.duration)),null!=n.delay&&(i.delay=P(n.delay));const r=n.params;if(r){let e=i.params;e||(e=this.options.params={}),Object.keys(r).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=U(r[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const i=t||this.element,r=new ye(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=ve,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new De(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,i,r,s){let o=[];if(i&&o.push(this.element),e.length>0){e=(e=e.replace(me,"."+this._enterClassName)).replace(be,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),o.push(...t)}return r||0!=o.length||s.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),o}}class we{constructor(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),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.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new we(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=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||a.a,this._currentKeyframe[e]=a.a}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,i){t&&(this._previousKeyframe.easing=t);const r=i&&i.params||{},s=function(e,t){const n={};let i;return e.forEach(e=>{"*"===e?(i=i||Object.keys(t),i.forEach(e=>{n[e]=a.a})):Y(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(s).forEach(e=>{const t=U(s[e],r,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:a.a),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],i=e._styleSummary[t];(!n||i.time>n.time)&&this._updateStyle(t,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((r,s)=>{const o=Y(r,!0);Object.keys(o).forEach(n=>{const i=o[n];i==a.l?e.add(n):i==a.a&&t.add(n)}),n||(o.offset=s/this.duration),i.push(o)});const r=e.size?q(e.values()):[],s=t.size?q(t.values()):[];if(n){const e=i[0],t=j(e);e.offset=0,t.offset=1,i=[e,t]}return fe(this.element,i,r,s,this.duration,this.startTime,this.easing,!1)}}class De extends we{constructor(e,t,n,i,r,s,o=!1){super(e,t,s.delay),this.element=t,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){const r=[],s=n+t,o=t/s,a=Y(e[0],!1);a.offset=0,r.push(a);const c=Y(e[0],!1);c.offset=Se(o),r.push(c);const l=e.length-1;for(let i=1;i<=l;i++){let o=Y(e[i],!1);o.offset=Se((t+o.offset*n)/s),r.push(o)}n=s,t=0,i="",e=r}return fe(this.element,e,this.preStyleProps,this.postStyleProps,n,t,i,!0)}}function Se(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class xe{}class ke extends xe{normalizePropertyName(e,t){return J(e)}normalizeStyleValue(e,t,n,i){let r="";const s=n.toString().trim();if(Te[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&i.push(`Please provide a CSS unit value for ${e}:${n}`)}return s+r}}const Te=(()=>function(e){const t={};return e.forEach(e=>t[e]=!0),t}("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".split(",")))();function Me(e,t,n,i,r,s,o,a,c,l,u,d,h){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:d,errors:h}}const Ce={};class Oe{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,i){return function(e,t,n,i,r){return e.some(e=>e(t,n,i,r))}(this.ast.matchers,e,t,n,i)}buildStyles(e,t,n){const i=this._stateStyles["*"],r=this._stateStyles[e],s=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):s}build(e,t,n,i,r,s,o,a,c,l){const u=[],d=this.ast.options&&this.ast.options.params||Ce,h=this.buildStyles(n,o&&o.params||Ce,u),f=a&&a.params||Ce,m=this.buildStyles(i,f,u),b=new Set,g=new Map,_=new Map,v="void"===i,y={params:Object.assign(Object.assign({},d),f)},w=l?[]:ge(e,t,this.ast.animation,r,s,h,m,y,c,u);let D=0;if(w.forEach(e=>{D=Math.max(e.duration+e.delay,D)}),u.length)return Me(t,this._triggerName,n,i,v,h,m,[],[],g,_,D,u);w.forEach(e=>{const n=e.element,i=p(g,n,{});e.preStyleProps.forEach(e=>i[e]=!0);const r=p(_,n,{});e.postStyleProps.forEach(e=>r[e]=!0),n!==t&&b.add(n)});const S=q(b.values());return Me(t,this._triggerName,n,i,v,h,m,w,S,g,_,D)}}class Le{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},i=j(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const r=e;Object.keys(r).forEach(e=>{let s=r[e];s.length>1&&(s=U(s,i,t)),n[e]=s})}}),n}}class Ee{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new Le(e.style,e.options&&e.options.params||{})}),Ae(this.states,"true","1"),Ae(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new Oe(e,t,this.states))}),this.fallbackTransition=new Oe(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,i){return this.transitionFactories.find(r=>r.match(e,t,n,i))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function Ae(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const Ie=new pe;class Re{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],i=ae(this._driver,t,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[e]=i}_buildPlayer(e,t,n){const i=e.element,r=u(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const i=[],r=this._animations[e];let s;const o=new Map;if(r?(s=ge(this._driver,t,r,O,L,{},{},n,Ie,i),s.forEach(e=>{const t=p(o,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),s=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);o.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,a.a)})});const c=l(s.map(e=>{const t=o.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=c,c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error(`Unable to find the timeline player referenced by ${e}`);return t}listen(e,t,n,i){const r=f(t,"","","");return d(this._getPlayer(e),n,r,i),()=>{}}command(e,t,n,i){if("register"==n)return void this.register(e,i[0]);if("create"==n)return void this.create(e,t,i[0]||{});const r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}}const Pe="ng-animate-queued",Fe="ng-animate-disabled",We=".ng-animate-disabled",je=[],Ye={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ne={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class ze{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=null!=(i=n?e.value:e)?i:null,n){const t=j(e);delete t.value,this.options=t}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const $e="void",He=new ze($e);class Xe{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Ke(t,this._hostClassName)}listen(e,t,n,i){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var r;const s=p(this._elementListeners,e,[]),o={name:t,phase:n,callback:i};s.push(o);const a=p(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Ke(e,E),Ke(e,"ng-trigger-"+t),a[t]=He),()=>{this._engine.afterFlush(()=>{const e=s.indexOf(o);e>=0&&s.splice(e,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,i=!0){const r=this._getTrigger(t),s=new Be(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(Ke(e,E),Ke(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o={}));let a=o[t];const c=new ze(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),o[t]=c,a||(a=He),c.value!==$e&&a.value===c.value){if(!function(e,t){const n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(let r=0;r<n.length;r++){const i=n[r];if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}(a.params,c.params)){const t=[],n=r.matchStyles(a.value,a.params,t),i=r.matchStyles(c.value,c.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush(()=>{H(e,n),$(e,i)})}return}const l=p(this._engine.playersByElement,e,[]);l.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let u=r.matchTransition(a.value,c.value,e,c.params),d=!1;if(!u){if(!i)return;u=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:u,fromState:a,toState:c,player:s,isFallbackTransition:d}),d||(Ke(e,Pe),s.onStart(()=>{Qe(e,Pe)})),s.onDone(()=>{let t=this.players.indexOf(s);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(s);e>=0&&n.splice(e,1)}}),this.players.push(s),l.push(s),s}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const n=this._engine.driver.query(e,A,!0);n.forEach(e=>{if(e.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(e=>this.clearElementCache(e)))}triggerLeaveAnimation(e,t,n,i){const r=this._engine.statesByElement.get(e);if(r){const s=[];if(Object.keys(r).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,$e,i);n&&s.push(n)}}),s.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&l(s).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){const i=new Set;t.forEach(t=>{const r=t.name;if(i.has(r))return;i.add(r);const s=this._triggers[r].fallbackTransition,o=n[r]||He,a=new ze($e),c=new Be(this.id,r,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:r,transition:s,fromState:o,toState:a,player:c,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)i=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)n.markElementAsRemoved(this.id,e,!1,t);else{const i=e.__ng_removed;i&&i!==Ye||(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){Ke(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const r=n.element,s=this._elementListeners.get(r);s&&s.forEach(t=>{if(t.name==n.triggerName){const i=f(r,n.triggerName,n.fromState.value,n.toState.value);i._data=e,d(n.player,t.phase,i,t.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,i=t.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(t=>t.element===e)||t,t}}class Ve{constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,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=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new Xe(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let i=0;i<e.length;i++){const r=n[e[i]].namespaceId;if(r){const e=this._fetchNamespace(r);e&&t.add(e)}}}return t}trigger(e,t,n,i){if(Ue(t)){const r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),!0}return!1}insertNode(e,t,n,i){if(!Ue(t))return;const r=t.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const i=this._fetchNamespace(e);i&&i.insertNode(t,n)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Ke(e,Fe)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Qe(e,Fe))}removeNode(e,t,n,i){if(Ue(t)){const r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,i)}}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,i,r){return Ue(t)?this._fetchNamespace(e).listen(t,n,i,r):()=>{}}_buildInstruction(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,A,!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,R,!0),t.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return l(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=Ye,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,We)&&this.markElementAsDisabled(e,!1),this.driver.query(e,We,!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Ke(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{t=this._flushAnimations(n,e)}finally{for(let e=0;e<n.length;e++)n[e]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(e=>e()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?l(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${e.join("\n")}`)}_flushAnimations(e,t){const n=new pe,i=[],r=new Map,s=[],o=new Map,c=new Map,u=new Map,d=new Set;this.disabledNodes.forEach(e=>{d.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let n=0;n<t.length;n++)d.add(t[n])});const h=this.bodyNode,f=Array.from(this.statesByElement.keys()),m=Je(f,this.collectedEnterElements),b=new Map;let g=0;m.forEach((e,t)=>{const n=O+g++;b.set(t,n),e.forEach(e=>Ke(e,n))});const _=[],v=new Set,y=new Set;for(let a=0;a<this.collectedLeaveElements.length;a++){const e=this.collectedLeaveElements[a],t=e.__ng_removed;t&&t.setForRemoval&&(_.push(e),v.add(e),t.hasAnimation?this.driver.query(e,".ng-star-inserted",!0).forEach(e=>v.add(e)):y.add(e))}const w=new Map,D=Je(f,Array.from(v));D.forEach((e,t)=>{const n=L+g++;w.set(t,n),e.forEach(e=>Ke(e,n))}),e.push(()=>{m.forEach((e,t)=>{const n=b.get(t);e.forEach(e=>Qe(e,n))}),D.forEach((e,t)=>{const n=w.get(t);e.forEach(e=>Qe(e,n))}),_.forEach(e=>{this.processLeaveNode(e)})});const S=[],x=[];for(let a=this._namespaceList.length-1;a>=0;a--)this._namespaceList[a].drainQueuedTransitions(t).forEach(e=>{const t=e.player,r=e.element;if(S.push(t),this.collectedEnterElements.length){const e=r.__ng_removed;if(e&&e.setForMove)return void t.destroy()}const a=!h||!this.driver.containsElement(h,r),l=w.get(r),d=b.get(r),f=this._buildInstruction(e,n,d,l,a);if(f.errors&&f.errors.length)x.push(f);else{if(a)return t.onStart(()=>H(r,f.fromStyles)),t.onDestroy(()=>$(r,f.toStyles)),void i.push(t);if(e.isFallbackTransition)return t.onStart(()=>H(r,f.fromStyles)),t.onDestroy(()=>$(r,f.toStyles)),void i.push(t);f.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(r,f.timelines),s.push({instruction:f,player:t,element:r}),f.queriedElements.forEach(e=>p(o,e,[]).push(t)),f.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=c.get(t);e||c.set(t,e=new Set),n.forEach(t=>e.add(t))}}),f.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let i=u.get(t);i||u.set(t,i=new Set),n.forEach(e=>i.add(e))})}});if(x.length){const e=[];x.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),S.forEach(e=>e.destroy()),this.reportError(e)}const k=new Map,T=new Map;s.forEach(e=>{const t=e.element;n.has(t)&&(T.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,k))}),i.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{p(k,t,[]).push(e),e.destroy()})});const M=_.filter(e=>tt(e,c,u)),C=new Map;Ge(C,this.driver,y,u,a.a).forEach(e=>{tt(e,c,u)&&M.push(e)});const E=new Map;m.forEach((e,t)=>{Ge(E,this.driver,new Set(e),c,a.l)}),M.forEach(e=>{const t=C.get(e),n=E.get(e);C.set(e,Object.assign(Object.assign({},t),n))});const A=[],I=[],P={};s.forEach(e=>{const{element:t,player:s,instruction:o}=e;if(n.has(t)){if(d.has(t))return s.onDestroy(()=>$(t,o.toStyles)),s.disabled=!0,s.overrideTotalTime(o.totalTime),void i.push(s);let e=P;if(T.size>1){let n=t;const i=[];for(;n=n.parentNode;){const t=T.get(n);if(t){e=t;break}i.push(n)}i.forEach(t=>T.set(t,e))}const n=this._buildAnimation(s.namespaceId,o,k,r,E,C);if(s.setRealPlayer(n),e===P)A.push(s);else{const t=this.playersByElement.get(e);t&&t.length&&(s.parentPlayer=l(t)),i.push(s)}}else H(t,o.fromStyles),s.onDestroy(()=>$(t,o.toStyles)),I.push(s),d.has(t)&&i.push(s)}),I.forEach(e=>{const t=r.get(e.element);if(t&&t.length){const n=l(t);e.setRealPlayer(n)}}),i.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let a=0;a<_.length;a++){const e=_[a],t=e.__ng_removed;if(Qe(e,L),t&&t.hasAnimation)continue;let n=[];if(o.size){let t=o.get(e);t&&t.length&&n.push(...t);let i=this.driver.query(e,R,!0);for(let e=0;e<i.length;e++){let t=o.get(i[e]);t&&t.length&&n.push(...t)}}const i=n.filter(e=>!e.destroyed);i.length?Ze(this,e,i):this.processLeaveNode(e)}return _.length=0,A.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),A}elementContainsData(e,t){let n=!1;const i=t.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,i,r){let s=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(s=t)}else{const t=this.playersByElement.get(e);if(t){const e=!r||r==$e;t.forEach(t=>{t.queued||(e||t.triggerName==i)&&s.push(t)})}}return(n||i)&&(s=s.filter(e=>!(n&&n!=e.namespaceId||i&&i!=e.triggerName))),s}_beforeAnimationBuild(e,t,n){const i=t.element,r=t.isRemovalTransition?void 0:e,s=t.isRemovalTransition?void 0:t.triggerName;for(const o of t.timelines){const e=o.element,a=e!==i,c=p(n,e,[]);this._getPreviousPlayers(e,a,r,s,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),c.push(e)})}H(i,t.fromStyles)}_buildAnimation(e,t,n,i,r,s){const o=t.triggerName,c=t.element,d=[],h=new Set,f=new Set,m=t.timelines.map(t=>{const l=t.element;h.add(l);const p=l.__ng_removed;if(p&&p.removedBeforeQueried)return new a.d(t.duration,t.delay);const m=l!==c,b=function(e){const t=[];return et(e,t),t}((n.get(l)||je).map(e=>e.getRealPlayer())).filter(e=>!!e.element&&e.element===l),g=r.get(l),_=s.get(l),v=u(0,this._normalizer,0,t.keyframes,g,_),y=this._buildPlayer(t,v,b);if(t.subTimeline&&i&&f.add(l),m){const t=new Be(e,o,l);t.setRealPlayer(y),d.push(t)}return y});d.forEach(e=>{p(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>function(e,t,n){let i;if(e instanceof Map){if(i=e.get(t),i){if(i.length){const e=i.indexOf(n);i.splice(e,1)}0==i.length&&e.delete(t)}}else if(i=e[t],i){if(i.length){const e=i.indexOf(n);i.splice(e,1)}0==i.length&&delete e[t]}return i}(this.playersByQueriedElement,e.element,e))}),h.forEach(e=>Ke(e,I));const b=l(m);return b.onDestroy(()=>{h.forEach(e=>Qe(e,I)),$(c,t.toStyles)}),f.forEach(e=>{p(i,e,[]).push(b)}),b}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new a.d(e.duration,e.delay)}}class Be{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new a.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>d(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){p(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&&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){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Ue(e){return e&&1===e.nodeType}function qe(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function Ge(e,t,n,i,r){const s=[];n.forEach(e=>s.push(qe(e)));const o=[];i.forEach((n,i)=>{const s={};n.forEach(e=>{const n=s[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=Ne,o.push(i))}),e.set(i,s)});let a=0;return n.forEach(e=>qe(e,s[a++])),o}function Je(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const i=new Set(t),r=new Map;function s(e){if(!e)return 1;let t=r.get(e);if(t)return t;const o=e.parentNode;return t=n.has(o)?o:i.has(o)?1:s(o),r.set(e,t),t}return t.forEach(e=>{const t=s(e);1!==t&&n.get(t).push(e)}),n}function Ke(e,t){if(e.classList)e.classList.add(t);else{let n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function Qe(e,t){if(e.classList)e.classList.remove(t);else{let n=e.$$classes;n&&delete n[t]}}function Ze(e,t,n){l(n).onDone(()=>e.processLeaveNode(t))}function et(e,t){for(let n=0;n<e.length;n++){const i=e[n];i instanceof a.k?et(i.players,t):t.push(i)}}function tt(e,t,n){const i=n.get(e);if(!i)return!1;let r=t.get(e);return r?i.forEach(e=>r.add(e)):t.set(e,i),n.delete(e),!0}class nt{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Ve(e,t,n),this._timelineEngine=new Re(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,i,r){const s=e+"-"+i;let o=this._triggerCache[s];if(!o){const e=[],t=ae(this._driver,r,e);if(e.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);o=function(e,t){return new Ee(e,t)}(i,t),this._triggerCache[s]=o}this._transitionEngine.registerTrigger(t,i,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}onRemove(e,t,n,i){this._transitionEngine.removeNode(e,t,i||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,i){if("@"==n.charAt(0)){const[e,r]=m(n);this._timelineEngine.command(e,t,r,i)}else this._transitionEngine.trigger(e,t,n,i)}listen(e,t,n,i,r){if("@"==n.charAt(0)){const[e,i]=m(n);return this._timelineEngine.listen(e,t,i,r)}return this._transitionEngine.listen(e,t,n,i,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function it(e,t){let n=null,i=null;return Array.isArray(t)&&t.length?(n=st(t[0]),t.length>1&&(i=st(t[t.length-1]))):t&&(n=st(t)),n||i?new rt(e,n,i):null}let rt=(()=>{class e{constructor(t,n,i){this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;let r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&$(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&($(this._element,this._initialStyles),this._endStyles&&($(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(H(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(H(this._element,this._endStyles),this._endStyles=null),$(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function st(e){let t=null;const n=Object.keys(e);for(let i=0;i<n.length;i++){const r=n[i];ot(r)&&(t=t||{},t[r]=e[r])}return t}function ot(e){return"display"===e||"position"===e}const at="animation",ct="animationend";class lt{constructor(e,t,n,i,r,s,o){this._element=e,this._name=t,this._duration=n,this._delay=i,this._easing=r,this._fillMode=s,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=e=>this._handleCallback(e)}apply(){!function(e,t){const n=mt(e,"").trim();n.length&&(function(e,t){let n=0;for(let i=0;i<e.length;i++)","===e.charAt(i)&&n++}(n),t=`${n}, ${t}`),pt(e,"",t)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),ft(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){ut(this._element,this._name,"paused")}resume(){ut(this._element,this._name,"running")}setPosition(e){const t=dt(this._element,this._name);this._position=e*this._duration,pt(this._element,"Delay",`-${this._position}ms`,t)}getPosition(){return this._position}_handleCallback(e){const t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),ft(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=mt(e,"").split(","),i=ht(n,t);i>=0&&(n.splice(i,1),pt(e,"",n.join(",")))}(this._element,this._name))}}function ut(e,t,n){pt(e,"PlayState",n,dt(e,t))}function dt(e,t){const n=mt(e,"");return n.indexOf(",")>0?ht(n.split(","),t):ht([n],t)}function ht(e,t){for(let n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function ft(e,t,n){n?e.removeEventListener(ct,t):e.addEventListener(ct,t)}function pt(e,t,n,i){const r=at+t;if(null!=i){const t=e.style[r];if(t.length){const e=t.split(",");e[i]=n,n=e.join(",")}}e.style[r]=n}function mt(e,t){return e.style[at+t]||""}class bt{constructor(e,t,n,i,r,s,o,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=i+r,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new lt(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:ee(this.element,n))})}this.currentSnapshot=e}}class gt extends a.d{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=T(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class _t{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(e){return D(e)}matchesElement(e,t){return S(e,t)}containsElement(e,t){return x(e,t)}query(e,t,n){return k(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>T(e));let i=`@keyframes ${t} {\n`,r="";n.forEach(e=>{r=" ";const t=parseFloat(e.offset);i+=`${r}${100*t}% {\n`,r+=" ",Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+=`${r}animation-timing-function: ${n};\n`));default:return void(i+=`${r}${t}: ${n};\n`)}}),i+=`${r}}\n`}),i+="}\n";const s=document.createElement("style");return s.textContent=i,s}animate(e,t,n,i,r,s=[],o){const a=s.filter(e=>e instanceof bt),c={};K(n,i)&&a.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>c[e]=t[e])});const l=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=Q(e,t,c));if(0==n)return new gt(e,l);const u="gen_css_kf_"+this._count++,d=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(d);const h=it(e,t),f=new bt(e,t,u,n,i,r,l,h);return f.onDestroy(()=>{var e;(e=d).parentNode.removeChild(e)}),f}}class vt{constructor(e,t,n,i){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(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}_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){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:ee(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class yt{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(wt().toString()),this._cssKeyframesDriver=new _t}validateStyleProperty(e){return D(e)}matchesElement(e,t){return S(e,t)}containsElement(e,t){return x(e,t)}query(e,t,n){return k(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,i,r,s=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,s);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(a.easing=r);const c={},l=s.filter(e=>e instanceof vt);K(n,i)&&l.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>c[e]=t[e])});const u=it(e,t=Q(e,t=t.map(e=>Y(e,!1)),c));return new vt(e,t,a,u)}}function wt(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let Dt=(()=>{class e extends a.b{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:r.T.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?Object(a.f)(e):e;return kt(this._renderer,null,t,"register",[n]),new St(t,this._renderer)}}return e.\u0275fac=function(t){return new(t||e)(r.ic(r.I),r.ic(s.d))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac}),e})();class St extends a.c{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new xt(this._id,e,t||{},this._renderer)}}class xt{constructor(e,t,n,i){this.id=e,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return kt(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function kt(e,t,n,i,r){return e.setProperty(t,`@@${n}:${i}`,r)}const Tt="@",Mt="@.disabled";let Ct=(()=>{class e{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new Ot("",n,this.engine),this._rendererCache.set(n,e)),e}const i=t.id,r=t.id+"-"+this._currentId;this._currentId++,this.engine.register(r,e);const s=t=>{Array.isArray(t)?t.forEach(s):this.engine.registerTrigger(i,r,e,t.name,t)};return t.data.animation.forEach(s),new Lt(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&e<this._microtaskId?this._zone.run(()=>t(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return e.\u0275fac=function(t){return new(t||e)(r.ic(r.I),r.ic(nt),r.ic(r.D))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac}),e})();class Ot{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,i=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,i){this.delegate.setStyle(e,t,n,i)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==Tt&&t==Mt?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class Lt extends Ot{constructor(e,t,n,i){super(t,n,i),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==Tt?"."==t.charAt(1)&&t==Mt?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==Tt){const i=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let r=t.substr(1),s="";return r.charAt(0)!=Tt&&([r,s]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(r)),this.engine.listen(this.namespaceId,i,r,s,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}let Et=(()=>{class e extends nt{constructor(e,t,n){super(e.body,t,n)}}return e.\u0275fac=function(t){return new(t||e)(r.ic(s.d),r.ic(C),r.ic(xe))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac}),e})();const At=[{provide:C,useFactory:function(){return"function"==typeof wt()?new yt:new _t}},{provide:new r.u("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:a.b,useClass:Dt},{provide:xe,useFactory:function(){return new ke}},{provide:nt,useClass:Et},{provide:r.I,useFactory:function(e,t,n){return new Ct(e,t,n)},deps:[i.e,nt,r.D]}];let It=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Pb({type:e}),e.\u0275inj=r.Ob({providers:At,imports:[i.a]}),e})();var Rt=n("EApP"),Pt=n("iInd"),Ft=n("LvDl"),Wt=n.n(Ft),jt=n("mrSG"),Yt=n("xTzq");let Nt=(()=>{let e=class{constructor(e){this.http=e,this.baseURL="api/cephfs",this.baseUiURL="ui-api/cephfs"}list(){return this.http.get(`${this.baseURL}`)}lsDir(e,t){let n=`${this.baseUiURL}/${e}/ls_dir?depth=2`;return t&&(n+=`&path=${encodeURIComponent(t)}`),this.http.get(n)}getCephfs(e){return this.http.get(`${this.baseURL}/${e}`)}getTabs(e){return this.http.get(`ui-api/cephfs/${e}/tabs`)}getClients(e){return this.http.get(`${this.baseURL}/${e}/clients`)}evictClient(e,t){return this.http.delete(`${this.baseURL}/${e}/client/${t}`)}getMdsCounters(e){return this.http.get(`${this.baseURL}/${e}/mds_counters`)}mkSnapshot(e,t,n){let i=new o.e;return i=i.append("path",t),Wt.a.isUndefined(n)||(i=i.append("name",n)),this.http.post(`${this.baseURL}/${e}/snapshot`,null,{params:i})}rmSnapshot(e,t,n){let i=new o.e;return i=i.append("path",t),i=i.append("name",n),this.http.delete(`${this.baseURL}/${e}/snapshot`,{params:i})}quota(e,t,n){let i=new o.e;return i=i.append("path",t),this.http.put(`${this.baseURL}/${e}/quota`,n,{observe:"response",params:i})}};return e.\u0275fac=function(t){return new(t||e)(r.ic(o.b))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e=Object(jt.b)([Yt.a,Object(jt.d)("design:paramtypes",[o.b])],e),e})();var zt=n("+fVR"),$t=n("x38r"),Ht=n("vCyI"),Xt=n("a0VL"),Vt=n("uIqm"),Bt=n("PqYM"),Ut=n("VxPD"),qt=n("yJti"),Gt=n("aexS"),Jt=n("G0yt"),Kt=n("JP8w"),Qt=n("Fgil"),Zt=n("o4+5"),en=n("FSuO"),tn=n("wd/R"),nn=n.n(tn),rn=n("NEZu"),sn=n("hrfs");const on=["chartCanvas"],an=["chartTooltip"];let cn=(()=>{class e{constructor(){this.lhsCounter="mds_mem.ino",this.rhsCounter="mds_server.handle_client_request",this.chart={datasets:[{label:this.lhsCounter,yAxisID:"LHS",data:[],lineTension:.1},{label:this.rhsCounter,yAxisID:"RHS",data:[],lineTension:.1}],options:{title:{text:"",display:!0},responsive:!0,maintainAspectRatio:!1,legend:{position:"top"},scales:{xAxes:[{position:"top",type:"time",time:{displayFormats:{quarter:"MMM YYYY"}},ticks:{maxRotation:0}}],yAxes:[{id:"LHS",type:"linear",position:"left"},{id:"RHS",type:"linear",position:"right"}]},tooltips:{enabled:!1,mode:"index",intersect:!1,position:"nearest",callbacks:{title:(e,t)=>{let n=0;if(e.length>0){const i=e[0];n=t.datasets[i.datasetIndex].data[i.index].x}return n.toString()}}}},chartType:"line"}}ngOnInit(){Wt.a.isUndefined(this.mdsCounter)||(this.setChartTooltip(),this.updateChart())}ngOnChanges(){Wt.a.isUndefined(this.mdsCounter)||this.updateChart()}setChartTooltip(){const e=new rn.a(this.chartCanvas,this.chartTooltip,e=>e.caretX+"px",e=>e.caretY-e.height-23+"px");e.getTitle=e=>nn()(e,"x").format("LTS"),e.checkOffset=!0,Wt.a.merge(this.chart,{options:{title:{text:this.mdsCounter.name},tooltips:{custom:t=>e.customTooltips(t)}}})}updateChart(){const e=[{data:this.convertTimeSeries(this.mdsCounter[this.lhsCounter])},{data:this.deltaTimeSeries(this.mdsCounter[this.rhsCounter])}];Wt.a.merge(this.chart,{datasets:e}),this.chart.datasets=[...this.chart.datasets]}convertTimeSeries(e){const t=[];return Wt.a.each(e,e=>{t.push({x:1e3*e[0],y:e[1]})}),t.shift(),t}deltaTimeSeries(e){let t,n=e[0];const i=[];for(t=1;t<e.length;t++){const r=e[t];i.push({x:1e3*r[0],y:r[1]-n[1]}),n=r}return i}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-cephfs-chart"]],viewQuery:function(e,t){if(1&e&&(r.Wc(on,3),r.Wc(an,3)),2&e){let e;r.Ec(e=r.mc())&&(t.chartCanvas=e.first),r.Ec(e=r.mc())&&(t.chartTooltip=e.first)}},inputs:{mdsCounter:"mdsCounter"},features:[r.Bb],decls:6,vars:3,consts:[[1,"chart-container"],["baseChart","",3,"datasets","options","chartType"],["chartCanvas",""],[1,"chartjs-tooltip"],["chartTooltip",""]],template:function(e,t){1&e&&(r.Xb(0,"div",0),r.Sb(1,"canvas",1,2),r.Xb(3,"div",3,4),r.Sb(5,"table"),r.Wb(),r.Wb()),2&e&&(r.Db(1),r.uc("datasets",t.chart.datasets)("options",t.chart.options)("chartType",t.chart.chartType))},directives:[sn.a],styles:['.chart-container[_ngcontent-%COMP%]{cursor:pointer;margin:auto;overflow:visible;position:absolute}canvas[_ngcontent-%COMP%]{user-select:none}.chartjs-tooltip[_ngcontent-%COMP%]{background:#000000b3;border-radius:3px;color:#fff;font-family:Helvetica Neue,Helvetica,Arial,sans-serif!important;opacity:0;pointer-events:none;position:absolute;transform:translate(-50%);transition:all .1s ease}.chartjs-tooltip.transform-left[_ngcontent-%COMP%]{transform:translate(-10%)}.chartjs-tooltip.transform-left[_ngcontent-%COMP%]:after{left:10%}.chartjs-tooltip.transform-right[_ngcontent-%COMP%]{transform:translate(-90%)}.chartjs-tooltip.transform-right[_ngcontent-%COMP%]:after{left:90%}.chartjs-tooltip[_ngcontent-%COMP%]:after{border:5px solid #0000;border-top-color:#000;content:" ";left:50%;margin-left:-5px;position:absolute;top:100%} .chartjs-tooltip-key{display:inline-block;height:10px;margin-right:10px;width:10px}.chart-container[_ngcontent-%COMP%]{height:500px;margin-bottom:20px;position:relative;width:100%}']}),e})();var ln=n("GgAd");const un=["poolUsageTpl"],dn=["activityTmpl"];function hn(e,t){if(1&e&&(r.Xb(0,"div",0),r.Xb(1,"div",11),r.Sb(2,"cd-cephfs-chart",12),r.Wb(),r.Wb()),2&e){const e=t.$implicit;r.Db(2),r.uc("mdsCounter",e)}}function fn(e,t){if(1&e&&r.Sb(0,"cd-usage-bar",13),2&e){const e=t.row;r.uc("total",e.size)("used",e.used)}}function pn(e,t){1&e&&(r.Rc(0),r.oc(1,"dimless")),2&e&&r.Uc(" ","standby-replay"===t.row.state?"Evts":"Reqs",": ",r.pc(1,2,t.value)," /s\n")}let mn=(()=>{class e{constructor(e,t){this.dimlessBinary=e,this.dimless=t,this.standbys=[],this.objectValues=Object.values}ngOnChanges(){this.setStandbys()}setStandbys(){this.standbys=[{key:"Standby daemons",value:this.data.standbys}]}ngOnInit(){this.columns={ranks:[{prop:"rank",name:"Rank"},{prop:"state",name:"State"},{prop:"mds",name:"Daemon"},{prop:"activity",name:"Activity",cellTemplate:this.activityTmpl},{prop:"dns",name:"Dentries",pipe:this.dimless},{prop:"inos",name:"Inodes",pipe:this.dimless},{prop:"dirs",name:"Dirs",pipe:this.dimless},{prop:"caps",name:"Caps",pipe:this.dimless}],pools:[{prop:"pool",name:"Pool"},{prop:"type",name:"Type"},{prop:"size",name:"Size",pipe:this.dimlessBinary},{name:"Usage",cellTemplate:this.poolUsageTpl,comparator:(e,t,n,i)=>{const r=n.used/n.avail,s=i.used/i.avail;return r===s?0:r>s?1:-1}}]}}trackByFn(e,t){return t.name}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Qt.a),r.Rb(Zt.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-cephfs-detail"]],viewQuery:function(e,t){if(1&e&&(r.Wc(un,3),r.Wc(dn,3)),2&e){let e;r.Ec(e=r.mc())&&(t.poolUsageTpl=e.first),r.Ec(e=r.mc())&&(t.activityTmpl=e.first)}},inputs:{data:"data"},features:[r.Bb],decls:19,vars:9,consts:function(){let e,t,n,i;return e="Ranks",t="Standbys",n="Pools",i="MDS performance counters",[[1,"row"],[1,"col-sm-6"],e,[3,"data","columns","toolHeader"],t,[3,"data"],n,i,["class","row",4,"ngFor","ngForOf","ngForTrackBy"],["poolUsageTpl",""],["activityTmpl",""],[1,"col-md-12"],[3,"mdsCounter"],[3,"total","used"]]},template:function(e,t){1&e&&(r.Xb(0,"div",0),r.Xb(1,"div",1),r.Xb(2,"legend"),r.bc(3,2),r.Wb(),r.Sb(4,"cd-table",3),r.Xb(5,"legend"),r.bc(6,4),r.Wb(),r.Sb(7,"cd-table-key-value",5),r.Wb(),r.Xb(8,"div",1),r.Xb(9,"legend"),r.bc(10,6),r.Wb(),r.Sb(11,"cd-table",3),r.Wb(),r.Wb(),r.Xb(12,"legend"),r.bc(13,7),r.Wb(),r.Pc(14,hn,3,1,"div",8),r.Pc(15,fn,1,2,"ng-template",null,9,r.Qc),r.Pc(17,pn,2,4,"ng-template",null,10,r.Qc)),2&e&&(r.Db(4),r.uc("data",t.data.ranks)("columns",t.columns.ranks)("toolHeader",!1),r.Db(3),r.uc("data",t.standbys),r.Db(4),r.uc("data",t.data.pools)("columns",t.columns.pools)("toolHeader",!1),r.Db(3),r.uc("ngForOf",t.objectValues(t.data.mdsCounters))("ngForTrackBy",t.trackByFn))},directives:[Vt.a,en.a,s.q,cn,ln.a],pipes:[Zt.a],styles:[".progress[_ngcontent-%COMP%]{margin-bottom:0}"]}),e})();var bn=n("0+/T"),gn=n("sne2"),_n=n("oxzT"),vn=n("mtw6"),yn=n("JK/P"),wn=n("9nlD"),Dn=n("S7zO");let Sn=(()=>{class e{constructor(e,t,n,i,s){this.cephfsService=e,this.modalService=t,this.notificationService=n,this.authStorageService=i,this.actionLabels=s,this.triggerApiUpdate=new r.p,this.selection=new Ht.a,this.permission=this.authStorageService.getPermissions().cephfs,this.tableActions=[{permission:"update",icon:_n.a.signOut,click:()=>this.evictClientModal(),name:this.actionLabels.EVICT}]}ngOnInit(){this.columns=[{prop:"id",name:"id"},{prop:"type",name:"type"},{prop:"state",name:"state"},{prop:"version",name:"version"},{prop:"hostname",name:"Host"},{prop:"root",name:"root"}]}updateSelection(e){this.selection=e}evictClient(e){this.cephfsService.evictClient(this.id,e).subscribe(()=>{this.triggerApiUpdate.emit(),this.modalRef.close(),this.notificationService.show(vn.a.success,"Evicted client '" + e + "'")},()=>{this.modalRef.componentInstance.stopLoadingSpinner()})}evictClientModal(){const e=this.selection.first().id;this.modalRef=this.modalService.show(bn.a,{itemDescription:"client",itemNames:[e],actionDescription:"evict",submitAction:()=>this.evictClient(e)})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Nt),r.Rb(yn.a),r.Rb(wn.a),r.Rb(Gt.a),r.Rb(gn.b))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-cephfs-clients"]],inputs:{id:"id",clients:"clients"},outputs:{triggerApiUpdate:"triggerApiUpdate"},decls:2,vars:7,consts:[["selectionType","single",3,"data","columns","status","autoReload","fetchData","updateSelection"],[1,"table-actions",3,"permission","selection","tableActions"]],template:function(e,t){1&e&&(r.Xb(0,"cd-table",0),r.lc("fetchData",function(){return t.triggerApiUpdate.emit()})("updateSelection",function(e){return t.updateSelection(e)}),r.Sb(1,"cd-table-actions",1),r.Wb()),2&e&&(r.uc("data",t.clients.data)("columns",t.columns)("status",t.clients.status)("autoReload",-1),r.Db(1),r.uc("permission",t.permission)("selection",t.selection)("tableActions",t.tableActions))},directives:[Vt.a,Dn.a],styles:[""]}),e})();var xn=n("s7LF"),kn=n("ohO+"),Tn=n("OLbh"),Mn=n("Rf2I"),Cn=n("1Ni5"),On=n("ANnk");const Ln=["origin"],En=function(e,t){return[e,t]};function An(e,t){if(1&e&&r.Sb(0,"i",5),2&e){const e=r.nc(2);r.uc("ngClass",r.Ac(1,En,e.icons.spinner,e.icons.spin))}}function In(e,t){if(1&e&&(r.Xb(0,"tree-root",10),r.Pc(1,An,1,4,"ng-template",null,11,r.Qc),r.Wb()),2&e){const e=r.nc();r.uc("nodes",e.nodes)("options",e.treeOptions)}}function Rn(e,t){if(1&e){const e=r.Yb();r.Vb(0),r.Xb(1,"legend"),r.bc(2,17),r.Wb(),r.Xb(3,"cd-table",18),r.lc("updateSelection",function(t){return r.Ic(e),r.nc(2).quota.updateSelection(t)}),r.Sb(4,"cd-table-actions",19),r.Wb(),r.Ub()}if(2&e){const e=r.nc(2);r.Db(3),r.uc("data",e.settings)("columns",e.quota.columns)("limit",0)("footer",!1)("onlyActionHeader",!0)("forceIdentifier",!0)("toolHeader",!1),r.Db(1),r.uc("permission",e.permission)("selection",e.quota.selection)("tableActions",e.quota.tableActions)}}function Pn(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div",12),r.Xb(1,"div",2),r.Xb(2,"div",3),r.Rc(3),r.Wb(),r.Xb(4,"div",6),r.Pc(5,Rn,5,10,"ng-container",13),r.Xb(6,"legend"),r.bc(7,14),r.Wb(),r.Xb(8,"cd-table",15),r.lc("updateSelection",function(t){return r.Ic(e),r.nc().snapshot.updateSelection(t)}),r.Sb(9,"cd-table-actions",16),r.Wb(),r.Wb(),r.Wb(),r.Wb()}if(2&e){const e=r.nc();r.Db(3),r.Tc(" ",e.selectedDir.path," "),r.Db(2),r.uc("ngIf","/"!==e.selectedDir.path),r.Db(3),r.uc("data",e.selectedDir.snapshots)("columns",e.snapshot.columns),r.Db(1),r.uc("permission",e.permission)("selection",e.snapshot.selection)("tableActions",e.snapshot.tableActions)}}function Fn(e,t){if(1&e){const e=r.Yb();r.Xb(0,"span",20),r.lc("click",function(){r.Ic(e);const n=t.value;return r.nc().selectOrigin(n)}),r.Rc(1),r.Wb()}if(2&e){const e=t.value;r.Db(1),r.Sc(e)}}let Wn=(()=>{class e{constructor(e,t,n,i,r,s,o){this.authStorageService=e,this.modalService=t,this.cephfsService=n,this.cdDatePipe=i,this.actionLabels=r,this.notificationService=s,this.dimlessBinaryPipe=o,this.icons=_n.a,this.loadingIndicator=!1,this.loading={},this.treeOptions={useVirtualScroll:!0,getChildren:e=>this.updateDirectory(e.id),actionMapping:{mouse:{click:this.selectAndShowNode.bind(this),expanderClick:this.selectAndShowNode.bind(this)}}}}selectAndShowNode(e,t,n){kn.a.TOGGLE_EXPANDED(e,t,n),this.selectNode(t)}selectNode(e){kn.a.TOGGLE_ACTIVE(void 0,e,void 0),this.selectedDir=this.getDirectory(e),"/"!==e.id&&this.setSettings(e)}ngOnInit(){this.permission=this.authStorageService.getPermissions().cephfs,this.setUpQuotaTable(),this.setUpSnapshotTable()}setUpQuotaTable(){this.quota={columns:[{prop:"row.name",name:"Name",flexGrow:1},{prop:"row.value",name:"Value",sortable:!1,flexGrow:1},{prop:"row.originPath",name:"Origin",sortable:!1,cellTemplate:this.originTmpl,flexGrow:1}],selection:new Ht.a,updateSelection:e=>{this.quota.selection=e},tableActions:[{name:this.actionLabels.SET,icon:_n.a.edit,permission:"update",visible:e=>!e.hasSelection||e.first()&&0===e.first().dirValue,click:()=>this.updateQuotaModal()},{name:this.actionLabels.UPDATE,icon:_n.a.edit,permission:"update",visible:e=>e.first()&&e.first().dirValue>0,click:()=>this.updateQuotaModal()},{name:this.actionLabels.UNSET,icon:_n.a.destroy,permission:"update",disable:e=>!e.hasSelection||e.first()&&0===e.first().dirValue,click:()=>this.unsetQuotaModal()}]}}setUpSnapshotTable(){this.snapshot={columns:[{prop:"name",name:"Name",flexGrow:1},{prop:"path",name:"Path",isHidden:!0,flexGrow:2},{prop:"created",name:"Created",flexGrow:1,pipe:this.cdDatePipe}],selection:new Ht.a,updateSelection:e=>{this.snapshot.selection=e},tableActions:[{name:this.actionLabels.CREATE,icon:_n.a.add,permission:"create",canBePrimary:e=>!e.hasSelection,click:()=>this.createSnapshot(),disable:()=>this.disableCreateSnapshot()},{name:this.actionLabels.DELETE,icon:_n.a.destroy,permission:"delete",click:()=>this.deleteSnapshotModal(),canBePrimary:e=>e.hasSelection,disable:e=>!e.hasSelection}]}}disableCreateSnapshot(){const e=this.selectedDir.path.split("/").slice(1);return e.length>=4&&"volumes"===e[0]&&"Cannot create snapshots for files/folders in the subvolume " + e[2] + ""}ngOnChanges(){this.selectedDir=void 0,this.dirs=[],this.requestedPaths=[],this.nodeIds={},this.id&&(this.setRootNode(),this.firstCall())}setRootNode(){this.nodes=[{name:"/",id:"/",isExpanded:!0}]}firstCall(){setTimeout(()=>{this.getNode("/").loadNodeChildren()},10)}updateDirectory(e){if(this.unsetLoadingIndicator(),this.requestedPaths.includes(e)){if(!0===this.loading[e])return}else this.requestedPaths.push(e);return new Promise(t=>{this.setLoadingIndicator(e,!0),this.cephfsService.lsDir(this.id,e).subscribe(n=>{this.updateTreeStructure(n),this.updateQuotaTable(),this.updateTree(),t(this.getChildren(e)),this.setLoadingIndicator(e,!1)})})}setLoadingIndicator(e,t){this.loading[e]=t,this.unsetLoadingIndicator()}getSubDirectories(e,t=this.dirs){return t.filter(t=>t.parent===e)}getChildren(e){const t=this.getSubTree(e);return Wt.a.sortBy(this.getSubDirectories(e),"path").map(e=>this.createNode(e,t))}createNode(e,t){return this.nodeIds[e.path]=e,t||this.getSubTree(e.parent),{name:e.name,id:e.path,hasChildren:this.getSubDirectories(e.path,t).length>0}}getSubTree(e){return this.dirs.filter(t=>t.parent&&t.parent.startsWith(e))}setSettings(e){const t=(e,t)=>e?t?t(e):e:"";this.settings=[this.getQuota(e,"max_files",t),this.getQuota(e,"max_bytes",e=>t(e,e=>this.dimlessBinaryPipe.transform(e)))]}getQuota(e,t,n){const i=e.id;e=this.getOrigin(e,t);const r=this.getDirectory(e),s=r.quotas[t];let o=s,a=r.path;if(e.id===i)if("/"===e.parent.id)o=0;else{const n=this.getDirectory(this.getOrigin(e.parent,t));o=n.quotas[t],a=n.path}return{row:{name:"max_bytes"===t?"Max size":"Max files",value:n(s),originPath:s?r.path:""},quotaKey:t,dirValue:this.nodeIds[i].quotas[t],nextTreeMaximum:{value:o,path:o?a:""}}}getOrigin(e,t){if(e.parent&&"/"!==e.parent.id){const n=this.getQuotaFromTree(e,t),i=this.getOrigin(e.parent,t),r=this.getQuotaFromTree(i,t);return 0===n||0!==r&&r<n?i:e}return e}getQuotaFromTree(e,t){return this.getDirectory(e).quotas[t]}getDirectory(e){return this.nodeIds[e.id]}selectOrigin(e){this.selectNode(this.getNode(e))}getNode(e){return this.treeComponent.treeModel.getNodeById(e)}updateQuotaModal(){const e=this.selectedDir.path,t=this.quota.selection.first(),n=t.nextTreeMaximum,i=t.quotaKey,r=t.dirValue;this.modalService.show(Mn.a,{titleText:this.getModalQuotaTitle(0===r?this.actionLabels.SET:this.actionLabels.UPDATE,e),message:n.value?"The inherited " + this.getQuotaValueFromPathMsg(n.value, n.path) + " is the maximum value to be used.":void 0,fields:[this.getQuotaFormField(t.row.name,i,r,n.value)],submitButtonText:"Save",onSubmit:e=>this.updateQuota(e)})}getModalQuotaTitle(e,t){return "" + e + " CephFS " + this.getQuotaName() + " quota for '" + t + "'"}getQuotaName(){return this.isBytesQuotaSelected()?"size":"files"}isBytesQuotaSelected(){return"max_bytes"===this.quota.selection.first().quotaKey}getQuotaValueFromPathMsg(e,t){return e=this.isBytesQuotaSelected()?this.dimlessBinaryPipe.transform(e):e,"" + this.getQuotaName() + " quota " + e + " from '" + t + "'"}getQuotaFormField(e,t,n,i){const r="max_bytes"===t,s=[r?Cn.a.binaryMin(0):xn.A.min(0)];i&&s.push(r?Cn.a.binaryMax(i):xn.A.max(i));const o={type:r?"binary":"number",label:e,name:t,value:n,validators:s,required:!0};return r||(o.errors={min:"Value has to be at least 0 or more",max:"Value has to be at most " + i + " or less"}),o}updateQuota(e,t){const n=this.selectedDir.path,i=this.quota.selection.first().quotaKey,r=0===this.selectedDir.quotas[i]?this.actionLabels.SET:0===e[i]?this.actionLabels.UNSET:"Updated";this.cephfsService.quota(this.id,n,e).subscribe(()=>{t&&t(),this.notificationService.show(vn.a.success,this.getModalQuotaTitle(r,n)),this.forceDirRefresh()})}unsetQuotaModal(){const e=this.selectedDir.path,t=this.quota.selection.first(),n=t.quotaKey,i=t.nextTreeMaximum,r=t.dirValue,s=this.getQuotaValueFromPathMsg(i.value,i.path),o=i.value>0?i.value>r?"in order to inherit " + s + "":"which isn't used because of the inheritance of " + s + "":"in order to have no quota on the directory";this.modalRef=this.modalService.show(Tn.a,{titleText:this.getModalQuotaTitle(this.actionLabels.UNSET,e),buttonText:this.actionLabels.UNSET,description:"" + this.actionLabels.UNSET + " " + this.getQuotaValueFromPathMsg(r, e) + " " + o + ".",onSubmit:()=>this.updateQuota({[n]:0},()=>this.modalRef.close())})}createSnapshot(){const e=this.selectedDir.path;this.modalService.show(Mn.a,{titleText:"Create Snapshot",message:"Please enter the name of the snapshot.",fields:[{type:"text",name:"name",value:`${nn()().toISOString(!0)}`,required:!0}],submitButtonText:"Create Snapshot",onSubmit:t=>{this.cephfsService.mkSnapshot(this.id,e,t.name).subscribe(t=>{this.notificationService.show(vn.a.success,"Created snapshot '" + t + "' for '" + e + "'"),this.forceDirRefresh()})}})}forceDirRefresh(e){if(!e){const t=this.selectedDir;if(!t)throw new Error("This function can only be called without path if an selection was made");e=t.parent?t.parent:t.path}this.getNode(e).loadNodeChildren()}updateTreeStructure(e){const t=(e,t)=>{const n=e.filter(e=>e.parent===t),i=n.map(e=>e.path);return{children:n,paths:i}};Wt.a.uniq(e.map(e=>e.parent).sort()).forEach(n=>{const i=t(e,n),r=t(this.dirs,n);r.children.forEach(e=>{i.paths.includes(e.path)||this.removeOldDirectory(e)}),i.children.forEach(e=>{r.paths.includes(e.path)?this.updateExistingDirectory(r.children,e):this.addNewDirectory(e)})})}removeOldDirectory(e){const t=e.path;Wt.a.remove(this.dirs,e=>e.path===t),delete this.nodeIds[t],this.updateDirectoriesParentNode(e)}updateDirectoriesParentNode(e){const t=e.parent;if(!t)return;const n=this.getNode(t);if(!n)return;const i=this.getChildren(t);n.data.children=i,n.data.hasChildren=i.length>0,this.treeComponent.treeModel.update()}addNewDirectory(e){this.dirs.push(e),this.nodeIds[e.path]=e,this.updateDirectoriesParentNode(e)}updateExistingDirectory(e,t){const n=e.find(e=>e.path===t.path);Object.assign(n,t)}updateQuotaTable(){const e=this.selectedDir?this.getNode(this.selectedDir.path):void 0;e&&"/"!==e.id&&this.setSettings(e)}updateTree(e=!1){this.loadingIndicator&&!e||(this.treeComponent.treeModel.update(),this.nodes=[...this.nodes],this.treeComponent.sizeChanged())}deleteSnapshotModal(){this.modalRef=this.modalService.show(bn.a,{itemDescription:"CephFs Snapshot",itemNames:this.snapshot.selection.selected.map(e=>e.name),submitAction:()=>this.deleteSnapshot()})}deleteSnapshot(){const e=this.selectedDir.path;this.snapshot.selection.selected.forEach(t=>{const n=t.name;this.cephfsService.rmSnapshot(this.id,e,n).subscribe(()=>{this.notificationService.show(vn.a.success,"Deleted snapshot '" + n + "' for '" + e + "'")})}),this.modalRef.close(),this.forceDirRefresh()}refreshAllDirectories(){this.loadingIndicator=!0,this.requestedPaths.map(e=>this.forceDirRefresh(e));const e=setInterval(()=>{this.updateTree(!0),this.loadingIndicator||clearInterval(e)},3e3)}unsetLoadingIndicator(){this.loadingIndicator&&(clearTimeout(this.loadingTimeout),this.loadingTimeout=setTimeout(()=>{if(Object.values(this.loading).some(e=>e))return this.unsetLoadingIndicator();this.loadingIndicator=!1,this.updateTree()},3e3))}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Gt.a),r.Rb(yn.a),r.Rb(Nt),r.Rb(Xt.a),r.Rb(gn.b),r.Rb(wn.a),r.Rb(Qt.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-cephfs-directories"]],viewQuery:function(e,t){if(1&e&&(r.Wc(kn.b,1),r.Wc(Ln,3)),2&e){let e;r.Ec(e=r.mc())&&(t.treeComponent=e.first),r.Ec(e=r.mc())&&(t.originTmpl=e.first)}},inputs:{id:"id"},features:[r.Bb],decls:11,vars:10,consts:function(){let e,t;return e="Snapshots",t="Quotas",[[1,"row"],[1,"col-sm-4","pr-0"],[1,"card"],[1,"card-header"],["type","button",1,"btn","btn-light","pull-right",3,"click"],[3,"ngClass"],[1,"card-body"],[3,"nodes","options",4,"ngIf"],["class","col-sm-8 metadata",4,"ngIf"],["origin",""],[3,"nodes","options"],["loadingTemplate",""],[1,"col-sm-8","metadata"],[4,"ngIf"],e,["identifier","name","forceIdentifier","true","selectionType","multiClick",3,"data","columns","updateSelection"],[1,"table-actions",3,"permission","selection","tableActions"],t,["selectionType","single","identifier","quotaKey",3,"data","columns","limit","footer","onlyActionHeader","forceIdentifier","toolHeader","updateSelection"],[1,"only-table-actions",3,"permission","selection","tableActions"],[1,"quota-origin",3,"click"]]},template:function(e,t){1&e&&(r.Xb(0,"div",0),r.Xb(1,"div",1),r.Xb(2,"div",2),r.Xb(3,"div",3),r.Xb(4,"button",4),r.lc("click",function(){return t.refreshAllDirectories()}),r.Sb(5,"i",5),r.Wb(),r.Wb(),r.Xb(6,"div",6),r.Pc(7,In,3,2,"tree-root",7),r.Wb(),r.Wb(),r.Wb(),r.Pc(8,Pn,10,7,"div",8),r.Wb(),r.Pc(9,Fn,2,1,"ng-template",null,9,r.Qc)),2&e&&(r.Db(4),r.Jb("disabled",t.loadingIndicator),r.Db(1),r.Jb("fa-spin",t.loadingIndicator),r.uc("ngClass",r.Ac(7,En,t.icons.large,t.icons.refresh)),r.Db(2),r.uc("ngIf",t.nodes),r.Db(1),r.uc("ngIf",t.selectedDir))},directives:[On.a,s.p,s.r,kn.b,Vt.a,Dn.a],styles:["cd-cephfs-directories tree-root .tree-children{overflow:inherit}.quota-origin[_ngcontent-%COMP%]{color:#2b99a8;cursor:pointer}.quota-origin[_ngcontent-%COMP%]:hover{color:#212529}"]}),e})();var jn=n("insk");function Yn(e,t){if(1&e&&r.Sb(0,"cd-cephfs-detail",15),2&e){const e=r.nc(2);r.uc("data",e.details)}}function Nn(e,t){if(1&e){const e=r.Yb();r.Xb(0,"cd-cephfs-clients",16),r.lc("triggerApiUpdate",function(){return r.Ic(e),r.nc(2).refresh()}),r.Wb()}if(2&e){const e=r.nc(2);r.uc("id",e.id)("clients",e.clients)}}function zn(e,t){if(1&e&&r.Sb(0,"cd-cephfs-directories",17),2&e){const e=r.nc(2);r.uc("id",e.id)}}function $n(e,t){if(1&e&&r.Sb(0,"cd-grafana",18),2&e){const e=r.nc(2);r.uc("grafanaPath","mds-performance?var-mds_servers=mds."+e.grafanaId)}}function Hn(e,t){if(1&e){const e=r.Yb();r.Vb(0),r.Xb(1,"ul",1,2),r.lc("navChange",function(){return r.Ic(e),r.nc().softRefresh()}),r.Xb(3,"li",3),r.Xb(4,"a",4),r.bc(5,5),r.Wb(),r.Pc(6,Yn,1,1,"ng-template",6),r.Wb(),r.Xb(7,"li",7),r.Xb(8,"a",4),r.Vb(9),r.bc(10,8),r.Ub(),r.Xb(11,"span",9),r.Rc(12),r.Wb(),r.Wb(),r.Pc(13,Nn,1,2,"ng-template",6),r.Wb(),r.Xb(14,"li",10),r.Xb(15,"a",4),r.bc(16,11),r.Wb(),r.Pc(17,zn,1,1,"ng-template",6),r.Wb(),r.Xb(18,"li",12),r.Xb(19,"a",4),r.bc(20,13),r.Wb(),r.Pc(21,$n,1,1,"ng-template",6),r.Wb(),r.Wb(),r.Sb(22,"div",14),r.Ub()}if(2&e){const e=r.Fc(2),t=r.nc();r.Db(12),r.Sc(t.clients.data.length),r.Db(10),r.uc("ngbNavOutlet",e)}}let Xn=(()=>{class e{constructor(e,t,n){this.ngZone=e,this.authStorageService=t,this.cephfsService=n,this.clients={data:[],status:new Ut.a(qt.a.ValueNone)},this.details={standbys:"",pools:[],ranks:[],mdsCounters:{},name:""},this.grafanaPermission=this.authStorageService.getPermissions().grafana}ngOnChanges(){this.selection?this.selection.id!==this.id&&this.setupSelected(this.selection.id,this.selection.mdsmap.info):this.unsubscribeInterval()}setupSelected(e,t){this.id=e;const n=Wt.a.first(Object.values(t));this.grafanaId=n&&n.name,this.details={standbys:"",pools:[],ranks:[],mdsCounters:{},name:""},this.clients={data:[],status:new Ut.a(qt.a.ValueNone)},this.updateInterval()}updateInterval(){this.unsubscribeInterval(),this.subscribeInterval()}unsubscribeInterval(){this.reloadSubscriber&&this.reloadSubscriber.unsubscribe()}subscribeInterval(){this.ngZone.runOutsideAngular(()=>this.reloadSubscriber=Object(Bt.a)(0,5e3).subscribe(()=>this.ngZone.run(()=>this.refresh())))}refresh(){this.cephfsService.getTabs(this.id).subscribe(e=>{this.data=e,this.softRefresh()},()=>{this.clients.status=new Ut.a(qt.a.ValueException)})}softRefresh(){const e=Wt.a.cloneDeep(this.data);this.clients=e.clients,this.clients.status=new Ut.a(this.clients.status),this.details={standbys:e.standbys,pools:e.pools,ranks:e.ranks,mdsCounters:e.mds_counters,name:e.name}}ngOnDestroy(){this.unsubscribeInterval()}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(r.D),r.Rb(Gt.a),r.Rb(Nt))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-cephfs-tabs"]],inputs:{selection:"selection"},features:[r.Bb],decls:1,vars:1,consts:function(){let e,t,n,i;return e="Details",t="Clients",n="Directories",i="Performance Details",[[4,"ngIf"],["ngbNav","","cdStatefulTab","cephfs-tabs",1,"nav-tabs",3,"navChange"],["nav","ngbNav"],["ngbNavItem","details"],["ngbNavLink",""],e,["ngbNavContent",""],["ngbNavItem","clients"],t,[1,"badge","badge-pill","badge-tab","ml-1"],["ngbNavItem","directories"],n,["ngbNavItem","performance-details"],i,[3,"ngbNavOutlet"],[3,"data"],[3,"id","clients","triggerApiUpdate"],[3,"id"],["uid","tbO9LAiZz","grafanaStyle","one",3,"grafanaPath"]]},template:function(e,t){1&e&&r.Pc(0,Hn,23,2,"ng-container",0),2&e&&r.uc("ngIf",t.selection)},directives:[s.r,Jt.p,Kt.a,Jt.r,Jt.s,Jt.q,Jt.u,mn,Sn,Wn,jn.a],styles:[""]}),e})(),Vn=(()=>{class e extends zt.a{constructor(e,t){super(),this.cephfsService=e,this.cdDatePipe=t,this.filesystems=[],this.selection=new Ht.a}ngOnInit(){this.columns=[{name:"Name",prop:"mdsmap.fs_name",flexGrow:2},{name:"Created",prop:"mdsmap.created",flexGrow:2,pipe:this.cdDatePipe},{name:"Enabled",prop:"mdsmap.enabled",flexGrow:1,cellTransformation:$t.a.checkIcon}]}loadFilesystems(e){this.cephfsService.list().subscribe(e=>{this.filesystems=e},()=>{e.error()})}updateSelection(e){this.selection=e}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Nt),r.Rb(Xt.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-cephfs-list"]],features:[r.Ab],decls:2,vars:4,consts:[["columnMode","flex","identifier","id","forceIdentifier","true","selectionType","single",3,"data","columns","hasDetails","fetchData","setExpandedRow","updateSelection"],["cdTableDetail","",3,"selection"]],template:function(e,t){1&e&&(r.Xb(0,"cd-table",0),r.lc("fetchData",function(e){return t.loadFilesystems(e)})("setExpandedRow",function(e){return t.setExpandedRow(e)})("updateSelection",function(e){return t.updateSelection(e)}),r.Sb(1,"cd-cephfs-tabs",1),r.Wb()),2&e&&(r.uc("data",t.filesystems)("columns",t.columns)("hasDetails",!0),r.Db(1),r.uc("selection",t.expandedRow))},directives:[Vt.a,Xn],styles:[""]}),e})();var Bn=n("MuvH");let Un=(()=>{class e{static getType(e){const t=Wt.a.find(this.knownTypes,t=>t.name===e);if(void 0!==t)return t;throw new Error('Found unknown type "'+e+'" for config option.')}static getTypeValidators(t){const n=e.getType(t.type);if("bool"===n.name||"str"===n.name)return;const i={validators:[],patternHelpText:n.patternHelpText};return n.isNumberType?(t.max&&""!==t.max&&(i.max=t.max,i.validators.push(xn.A.max(t.max))),t.min&&""!==t.min?(i.min=t.min,i.validators.push(xn.A.min(t.min))):"defaultMin"in n&&(i.min=n.defaultMin,i.validators.push(xn.A.min(n.defaultMin))),i.validators.push("float"===t.type?Cn.a.decimalNumber():Cn.a.number(n.allowsNegative))):"addr"===t.type?i.validators=[Cn.a.ip()]:"uuid"===t.type&&(i.validators=[Cn.a.uuid()]),i}static getTypeStep(e,t){if(["uint","int","size","secs"].includes(e))return 1;if("float"===e){if(null!==t&&-1!==t.toString().indexOf(".")){const e=t.toString().split(".");return Math.pow(10,-e[1].length)}return.1}}}return e.knownTypes=[{name:"uint",inputType:"number",humanReadable:"Unsigned integer value",defaultMin:0,patternHelpText:"The entered value needs to be an unsigned number.",isNumberType:!0,allowsNegative:!1},{name:"int",inputType:"number",humanReadable:"Integer value",patternHelpText:"The entered value needs to be a number.",isNumberType:!0,allowsNegative:!0},{name:"size",inputType:"number",humanReadable:"Unsigned integer value (>=16bit)",defaultMin:0,patternHelpText:"The entered value needs to be a unsigned number.",isNumberType:!0,allowsNegative:!1},{name:"secs",inputType:"number",humanReadable:"Number of seconds",defaultMin:1,patternHelpText:"The entered value needs to be a number >= 1.",isNumberType:!0,allowsNegative:!1},{name:"float",inputType:"number",humanReadable:"Double value",patternHelpText:"The entered value needs to be a number or decimal.",isNumberType:!0,allowsNegative:!0},{name:"str",inputType:"text",humanReadable:"Text",isNumberType:!1},{name:"addr",inputType:"text",humanReadable:"IPv4 or IPv6 address",patternHelpText:"The entered value needs to be a valid IP address.",isNumberType:!1},{name:"uuid",inputType:"text",humanReadable:"UUID",patternHelpText:"The entered value is not a valid UUID, e.g.: 67dcac9f-2c03-4d6c-b7bd-1210b3a259a8",isNumberType:!1},{name:"bool",inputType:"checkbox",humanReadable:"Boolean value",isNumberType:!1}],e})();var qn=n("spCT"),Gn=n("QFaf");class Jn{constructor(){this.value=[]}}var Kn=n("zc8c"),Qn=n("NwgZ"),Zn=n("ocLN"),ei=n("f69J"),ti=n("6+kj");function ni(e,t){1&e&&(r.Xb(0,"div",8),r.Xb(1,"label",9),r.bc(2,20),r.Wb(),r.Xb(3,"div",11),r.Xb(4,"textarea",21),r.Rc(5," "),r.Wb(),r.Wb(),r.Wb())}function ii(e,t){1&e&&(r.Xb(0,"div",8),r.Xb(1,"label",9),r.bc(2,22),r.Wb(),r.Xb(3,"div",11),r.Xb(4,"textarea",23),r.Rc(5," "),r.Wb(),r.Wb(),r.Wb())}function ri(e,t){1&e&&(r.Xb(0,"div",8),r.Xb(1,"label",9),r.bc(2,24),r.Wb(),r.Xb(3,"div",11),r.Sb(4,"input",25),r.Wb(),r.Wb())}function si(e,t){1&e&&(r.Xb(0,"div",8),r.Xb(1,"label",9),r.bc(2,26),r.Wb(),r.Xb(3,"div",11),r.Sb(4,"input",27),r.Wb(),r.Wb())}function oi(e,t){if(1&e&&(r.Xb(0,"span",30),r.Xb(1,"span",31),r.Rc(2),r.Wb(),r.Wb()),2&e){const e=t.$implicit;r.Db(2),r.Sc(e)}}function ai(e,t){if(1&e&&(r.Xb(0,"div",8),r.Xb(1,"label",9),r.bc(2,28),r.Wb(),r.Xb(3,"div",11),r.Pc(4,oi,3,1,"span",29),r.Wb(),r.Wb()),2&e){const e=r.nc(2);r.Db(4),r.uc("ngForOf",e.configForm.getValue("services"))}}function ci(e,t){if(1&e&&(r.Xb(0,"div",8),r.Xb(1,"label",32),r.Rc(2),r.Wb(),r.Xb(3,"div",11),r.Xb(4,"select",33),r.Xb(5,"option",34),r.bc(6,35),r.Wb(),r.Xb(7,"option",34),r.bc(8,36),r.Wb(),r.Xb(9,"option",34),r.bc(10,37),r.Wb(),r.Wb(),r.Wb(),r.Wb()),2&e){const e=r.nc().$implicit;r.Db(1),r.uc("for",e),r.Db(1),r.Tc("",e," "),r.Db(2),r.uc("formControlName",e),r.Db(1),r.uc("ngValue",null),r.Db(2),r.uc("ngValue",!0),r.Db(2),r.uc("ngValue",!1)}}function li(e,t){if(1&e&&(r.Xb(0,"span",40),r.Rc(1),r.Wb()),2&e){const e=r.nc(4);r.Db(1),r.Tc(" ",e.patternHelpText," ")}}function ui(e,t){if(1&e&&(r.Xb(0,"span",40),r.Rc(1),r.Wb()),2&e){const e=r.nc(4);r.Db(1),r.Tc(" ",e.patternHelpText," ")}}function di(e,t){if(1&e&&(r.Xb(0,"span",40),r.bc(1,41),r.Wb()),2&e){const e=r.nc(4);r.Db(1),r.fc(e.maxValue),r.cc(1)}}function hi(e,t){if(1&e&&(r.Xb(0,"span",40),r.bc(1,42),r.Wb()),2&e){const e=r.nc(4);r.Db(1),r.fc(e.minValue),r.cc(1)}}function fi(e,t){if(1&e&&(r.Xb(0,"div",8),r.Xb(1,"label",32),r.Rc(2),r.Wb(),r.Xb(3,"div",11),r.Sb(4,"input",38),r.Pc(5,li,2,1,"span",39),r.Pc(6,ui,2,1,"span",39),r.Pc(7,di,2,1,"span",39),r.Pc(8,hi,2,1,"span",39),r.Wb(),r.Wb()),2&e){const e=r.nc().$implicit;r.nc();const t=r.Fc(2),n=r.nc();r.Db(1),r.uc("for",e),r.Db(1),r.Tc("",e," "),r.Db(2),r.uc("type",n.inputType)("id",e)("placeholder",n.humanReadableType)("formControlName",e)("step",n.getStep(n.type,n.configForm.getValue(e))),r.Db(1),r.uc("ngIf",n.configForm.showError(e,t,"pattern")),r.Db(1),r.uc("ngIf",n.configForm.showError(e,t,"invalidUuid")),r.Db(1),r.uc("ngIf",n.configForm.showError(e,t,"max")),r.Db(1),r.uc("ngIf",n.configForm.showError(e,t,"min"))}}function pi(e,t){if(1&e&&(r.Vb(0),r.Pc(1,ci,11,6,"div",13),r.Pc(2,fi,9,11,"div",13),r.Ub()),2&e){const e=r.nc(2);r.Db(1),r.uc("ngIf","bool"===e.type),r.Db(1),r.uc("ngIf","bool"!==e.type)}}function mi(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div",1),r.Xb(1,"form",2,3),r.Xb(3,"div",4),r.Xb(4,"div",5),r.Vb(5,6),r.Rc(6,"Edit"),r.Ub(),r.Rc(7),r.Wb(),r.Xb(8,"div",7),r.Xb(9,"div",8),r.Xb(10,"label",9),r.bc(11,10),r.Wb(),r.Xb(12,"div",11),r.Sb(13,"input",12),r.Wb(),r.Wb(),r.Pc(14,ni,6,0,"div",13),r.Pc(15,ii,6,0,"div",13),r.Pc(16,ri,5,0,"div",13),r.Pc(17,si,5,0,"div",13),r.Pc(18,ai,5,1,"div",13),r.Xb(19,"div",14),r.Xb(20,"h3",15),r.bc(21,16),r.Wb(),r.Pc(22,pi,3,2,"ng-container",17),r.Wb(),r.Wb(),r.Xb(23,"div",18),r.Xb(24,"cd-form-button-panel",19),r.lc("submitActionEvent",function(){return r.Ic(e),r.nc().submit()}),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Wb()}if(2&e){const e=r.nc();r.Db(1),r.uc("formGroup",e.configForm),r.Db(6),r.Tc(" ",e.configForm.getValue("name")," "),r.Db(7),r.uc("ngIf",e.configForm.getValue("desc")),r.Db(1),r.uc("ngIf",e.configForm.getValue("long_desc")),r.Db(1),r.uc("ngIf",""!==e.configForm.getValue("default")),r.Db(1),r.uc("ngIf",""!==e.configForm.getValue("daemon_default")),r.Db(1),r.uc("ngIf",e.configForm.getValue("services").length>0),r.Db(4),r.uc("ngForOf",e.availSections),r.Db(2),r.uc("form",e.configForm)("submitText",e.actionLabels.UPDATE)}}let bi=(()=>{class e extends qn.a{constructor(e,t,n,i,r){super(),this.actionLabels=e,this.route=t,this.router=n,this.configService=i,this.notificationService=r,this.availSections=["global","mon","mgr","osd","mds","client"],this.createForm()}createForm(){const e={name:new xn.h({value:null}),desc:new xn.h({value:null}),long_desc:new xn.h({value:null}),values:new xn.j({}),default:new xn.h({value:null}),daemon_default:new xn.h({value:null}),services:new xn.h([])};this.availSections.forEach(t=>{e.values.addControl(t,new xn.h(null))}),this.configForm=new Gn.a(e)}ngOnInit(){this.route.params.subscribe(e=>{this.configService.get(e.name).subscribe(e=>{this.setResponse(e),this.loadingReady()})})}getValidators(e){const t=Un.getTypeValidators(e);if(t)return this.patternHelpText=t.patternHelpText,"max"in t&&""!==t.max&&(this.maxValue=t.max),"min"in t&&""!==t.min&&(this.minValue=t.min),t.validators}getStep(e,t){return Un.getTypeStep(e,t)}setResponse(e){this.response=e;const t=this.getValidators(e);this.configForm.get("name").setValue(e.name),this.configForm.get("desc").setValue(e.desc),this.configForm.get("long_desc").setValue(e.long_desc),this.configForm.get("default").setValue(e.default),this.configForm.get("daemon_default").setValue(e.daemon_default),this.configForm.get("services").setValue(e.services),this.response.value&&this.response.value.forEach(e=>{let t=null;t="true"===e.value||"false"!==e.value&&e.value,this.configForm.get("values").get(e.section).setValue(t)}),this.availSections.forEach(e=>{this.configForm.get("values").get(e).setValidators(t)});const n=Un.getType(e.type);this.type=n.name,this.inputType=n.inputType,this.humanReadableType=n.humanReadable}createRequest(){const e=[];if(this.availSections.forEach(t=>{const n=this.configForm.getValue(t);null!==n&&""!==n&&e.push({section:t,value:n})}),!Wt.a.isEqual(this.response.value,e)){const t=new Jn;return t.name=this.configForm.getValue("name"),t.value=e,t}return null}submit(){const e=this.createRequest();e&&this.configService.create(e).subscribe(()=>{this.notificationService.show(vn.a.success,"Updated config option " + e.name + ""),this.router.navigate(["/configuration"])},()=>{this.configForm.setErrors({cdSubmitButton:!0})}),this.router.navigate(["/configuration"])}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(gn.b),r.Rb(Pt.a),r.Rb(Pt.e),r.Rb(Bn.a),r.Rb(wn.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-configuration-form"]],features:[r.Ab],decls:1,vars:1,consts:function(){let e,t,n,i,r,s,o,a,c,l,u,d;return e="Name",t="Values",n="Description",i="Long description",r="Default",s="Daemon default",o="Services",a="-- Default --",c="true",l="false",u="The entered value is too high! It must not be greater than " + "\ufffd0\ufffd" + ".",d="The entered value is too low! It must not be lower than " + "\ufffd0\ufffd" + ".",[["class","cd-col-form",4,"cdFormLoading"],[1,"cd-col-form"],["name","configForm","novalidate","",3,"formGroup"],["formDir","ngForm"],[1,"card"],[1,"card-header"],["i18",""],[1,"card-body"],[1,"form-group","row"],[1,"cd-col-form-label"],e,[1,"cd-col-form-input"],["type","text","id","name","formControlName","name","readonly","",1,"form-control"],["class","form-group row",4,"ngIf"],["formGroupName","values"],[1,"cd-header"],t,[4,"ngFor","ngForOf"],[1,"card-footer"],["wrappingClass","text-right",3,"form","submitText","submitActionEvent"],n,["id","desc","formControlName","desc","readonly","",1,"form-control","resize-vertical"],i,["id","long_desc","formControlName","long_desc","readonly","",1,"form-control","resize-vertical"],r,["type","text","id","default","formControlName","default","readonly","",1,"form-control"],s,["type","text","id","daemon_default","formControlName","daemon_default","readonly","",1,"form-control"],o,["class","form-component-badge",4,"ngFor","ngForOf"],[1,"form-component-badge"],[1,"badge","badge-dark"],[1,"cd-col-form-label",3,"for"],["id","pool","name","pool",1,"form-control","custom-select",3,"formControlName"],[3,"ngValue"],a,c,l,[1,"form-control",3,"type","id","placeholder","formControlName","step"],["class","invalid-feedback",4,"ngIf"],[1,"invalid-feedback"],u,d]},template:function(e,t){1&e&&r.Pc(0,mi,25,10,"div",0),2&e&&r.uc("cdFormLoading",t.loading)},directives:[Kn.a,xn.B,xn.r,Qn.a,xn.k,Zn.a,On.a,xn.d,ei.a,xn.q,xn.i,s.r,xn.l,s.q,ti.a,xn.z,xn.u,xn.C],styles:[".form-component-badge[_ngcontent-%COMP%]{display:block;height:34px}.form-component-badge[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-top:7px}.resize-vertical[_ngcontent-%COMP%]{resize:vertical}"]}),e})();var gi=n("iExv");function _i(e,t){if(1&e&&(r.Xb(0,"span"),r.Rc(1),r.Sb(2,"br"),r.Wb()),2&e){const e=t.$implicit,n=t.last;r.Db(1),r.Vc(" ",e.section,": ",e.value,"",n?"":",","")}}function vi(e,t){if(1&e&&(r.Xb(0,"span"),r.Xb(1,"span",23),r.Xb(2,"span",24),r.Rc(3),r.oc(4,"uppercase"),r.Wb(),r.Wb(),r.Wb()),2&e){const e=t.$implicit,n=r.nc(2);r.Db(1),r.vc("title",n.flags[e]),r.Db(2),r.Sc(r.pc(4,2,e))}}function yi(e,t){if(1&e&&(r.Xb(0,"span"),r.Xb(1,"span",24),r.Rc(2),r.Wb(),r.Wb()),2&e){const e=t.$implicit;r.Db(2),r.Sc(e)}}function wi(e,t){if(1&e&&(r.Vb(0),r.Xb(1,"table",1),r.Xb(2,"tbody"),r.Xb(3,"tr"),r.Xb(4,"td",2),r.bc(5,3),r.Wb(),r.Xb(6,"td",4),r.Rc(7),r.Wb(),r.Wb(),r.Xb(8,"tr"),r.Xb(9,"td",5),r.bc(10,6),r.Wb(),r.Xb(11,"td"),r.Rc(12),r.Wb(),r.Wb(),r.Xb(13,"tr"),r.Xb(14,"td",5),r.bc(15,7),r.Wb(),r.Xb(16,"td"),r.Rc(17),r.Wb(),r.Wb(),r.Xb(18,"tr"),r.Xb(19,"td",5),r.bc(20,8),r.Wb(),r.Xb(21,"td"),r.Pc(22,_i,3,3,"span",9),r.Wb(),r.Wb(),r.Xb(23,"tr"),r.Xb(24,"td",5),r.bc(25,10),r.Wb(),r.Xb(26,"td"),r.Rc(27),r.Wb(),r.Wb(),r.Xb(28,"tr"),r.Xb(29,"td",5),r.bc(30,11),r.Wb(),r.Xb(31,"td"),r.Rc(32),r.Wb(),r.Wb(),r.Xb(33,"tr"),r.Xb(34,"td",5),r.bc(35,12),r.Wb(),r.Xb(36,"td"),r.Rc(37),r.Wb(),r.Wb(),r.Xb(38,"tr"),r.Xb(39,"td",5),r.bc(40,13),r.Wb(),r.Xb(41,"td"),r.Rc(42),r.Wb(),r.Wb(),r.Xb(43,"tr"),r.Xb(44,"td",5),r.bc(45,14),r.Wb(),r.Xb(46,"td"),r.Rc(47),r.Wb(),r.Wb(),r.Xb(48,"tr"),r.Xb(49,"td",5),r.bc(50,15),r.Wb(),r.Xb(51,"td"),r.Pc(52,vi,5,4,"span",9),r.Wb(),r.Wb(),r.Xb(53,"tr"),r.Xb(54,"td",5),r.bc(55,16),r.Wb(),r.Xb(56,"td"),r.Pc(57,yi,3,1,"span",9),r.Wb(),r.Wb(),r.Xb(58,"tr"),r.Xb(59,"td",5),r.bc(60,17),r.Wb(),r.Xb(61,"td"),r.Rc(62),r.Wb(),r.Wb(),r.Xb(63,"tr"),r.Xb(64,"td",5),r.bc(65,18),r.Wb(),r.Xb(66,"td"),r.Rc(67),r.Wb(),r.Wb(),r.Xb(68,"tr"),r.Xb(69,"td",5),r.bc(70,19),r.Wb(),r.Xb(71,"td"),r.Rc(72),r.oc(73,"booleanText"),r.Wb(),r.Wb(),r.Xb(74,"tr"),r.Xb(75,"td",5),r.bc(76,20),r.Wb(),r.Xb(77,"td"),r.Rc(78),r.Wb(),r.Wb(),r.Xb(79,"tr"),r.Xb(80,"td",5),r.bc(81,21),r.Wb(),r.Xb(82,"td"),r.Rc(83),r.Wb(),r.Wb(),r.Xb(84,"tr"),r.Xb(85,"td",5),r.bc(86,22),r.Wb(),r.Xb(87,"td"),r.Rc(88),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Ub()),2&e){const e=r.nc();r.Db(7),r.Sc(e.selection.name),r.Db(5),r.Sc(e.selection.desc),r.Db(5),r.Sc(e.selection.long_desc),r.Db(5),r.uc("ngForOf",e.selection.value),r.Db(5),r.Sc(e.selection.default),r.Db(5),r.Sc(e.selection.daemon_default),r.Db(5),r.Sc(e.selection.type),r.Db(5),r.Sc(e.selection.min),r.Db(5),r.Sc(e.selection.max),r.Db(5),r.uc("ngForOf",e.selection.flags),r.Db(5),r.uc("ngForOf",e.selection.services),r.Db(5),r.Sc(e.selection.source),r.Db(5),r.Sc(e.selection.level),r.Db(5),r.Sc(r.pc(73,17,e.selection.can_update_at_runtime)),r.Db(6),r.Sc(e.selection.tags),r.Db(5),r.Sc(e.selection.enum_values),r.Db(5),r.Sc(e.selection.see_also)}}let Di=(()=>{class e{constructor(){this.flags={runtime:"The value can be updated at runtime.",no_mon_update:"Daemons/clients do not pull this value from the\n monitor config database. We disallow setting this option via 'ceph config\n set ...'. This option should be configured via ceph.conf or via the\n command line.",startup:"Option takes effect only during daemon startup.",cluster_create:"Option only affects cluster creation.",create:"Option only affects daemon creation."}}ngOnChanges(){this.selection&&(this.selection.services=Wt.a.split(this.selection.services,","))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-configuration-details"]],inputs:{selection:"selection"},features:[r.Bb],decls:1,vars:1,consts:function(){let e,t,n,i,r,s,o,a,c,l,u,d,h,f,p,m,b;return e="Name",t="Description",n="Long description",i="Current values",r="Default",s="Daemon default",o="Type",a="Min",c="Max",l="Flags",u="Services",d="Source",h="Level",f="Can be updated at runtime (editable)",p="Tags",m="Enum values",b="See also",[[4,"ngIf"],[1,"table","table-striped","table-bordered"],[1,"bold","w-25"],e,[1,"w-75"],[1,"bold"],t,n,i,[4,"ngFor","ngForOf"],r,s,o,a,c,l,u,d,h,f,p,m,b,[3,"title"],[1,"badge","badge-dark","mr-2"]]},template:function(e,t){1&e&&r.Pc(0,wi,89,19,"ng-container",0),2&e&&r.uc("ngIf",t.selection)},directives:[s.r,s.q],pipes:[gi.a,s.C],styles:[""]}),e})();const Si=["confValTpl"],xi=["confFlagTpl"];function ki(e,t){if(1&e&&(r.Xb(0,"span"),r.Rc(1),r.Sb(2,"br"),r.Wb()),2&e){const e=t.$implicit,n=t.last;r.Db(1),r.Vc(" ",e.section,": ",e.value,"",n?"":",","")}}function Ti(e,t){if(1&e&&(r.Xb(0,"span"),r.Pc(1,ki,3,3,"span",5),r.Wb()),2&e){const e=r.nc().value;r.Db(1),r.uc("ngForOf",e)}}function Mi(e,t){1&e&&r.Pc(0,Ti,2,1,"span",4),2&e&&r.uc("ngIf",t.value)}let Ci=(()=>{class e extends zt.a{constructor(e,t,n){super(),this.authStorageService=e,this.configurationService=t,this.actionLabels=n,this.data=[],this.icons=_n.a,this.selection=new Ht.a,this.filters=[{name:"Level",prop:"level",filterOptions:["basic","advanced","dev"],filterInitValue:"basic",filterPredicate:(e,t)=>{let n;return function(e){e[e.basic=0]="basic",e[e.advanced=1]="advanced",e[e.dev=2]="dev"}(n||(n={})),n[e.level]<=n[t]}},{name:"Service",prop:"services",filterOptions:["mon","mgr","osd","mds","common","mds_client","rgw"],filterPredicate:(e,t)=>e.services.includes(t)},{name:"Source",prop:"source",filterOptions:["mon"],filterPredicate:(e,t)=>!!e.hasOwnProperty("source")&&e.source.includes(t)},{name:"Modified",prop:"modified",filterOptions:["yes","no"],filterPredicate:(e,t)=>!("yes"!==t||!e.hasOwnProperty("value"))||"no"===t&&!e.hasOwnProperty("value")}],this.permission=this.authStorageService.getPermissions().configOpt;const i=()=>this.selection.first()&&`${encodeURIComponent(this.selection.first().name)}`;this.tableActions=[{permission:"update",icon:_n.a.edit,routerLink:()=>`/configuration/edit/${i()}`,name:this.actionLabels.EDIT,disable:()=>!this.isEditable(this.selection)}]}ngOnInit(){this.columns=[{canAutoResize:!0,prop:"name",name:"Name"},{prop:"desc",name:"Description",cellClass:"wrap"},{prop:"value",name:"Current value",cellClass:"wrap",cellTemplate:this.confValTpl},{prop:"default",name:"Default",cellClass:"wrap"},{prop:"can_update_at_runtime",name:"Editable",cellTransformation:$t.a.checkIcon,flexGrow:.4,cellClass:"text-center"}]}updateSelection(e){this.selection=e}getConfigurationList(e){this.configurationService.getConfigData().subscribe(e=>{this.data=e},()=>{e.error()})}isEditable(e){return 1===e.selected.length&&e.selected[0].can_update_at_runtime}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Gt.a),r.Rb(Bn.a),r.Rb(gn.b))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-configuration"]],viewQuery:function(e,t){if(1&e&&(r.Wc(Si,3),r.Wc(xi,1)),2&e){let e;r.Ec(e=r.mc())&&(t.confValTpl=e.first),r.Ec(e=r.mc())&&(t.confFlagTpl=e.first)}},features:[r.Ab],decls:5,vars:8,consts:[["selectionType","single",3,"data","columns","extraFilterableColumns","hasDetails","fetchData","setExpandedRow","updateSelection"],[1,"table-actions",3,"permission","selection","tableActions"],["cdTableDetail","",3,"selection"],["confValTpl",""],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(e,t){1&e&&(r.Xb(0,"cd-table",0),r.lc("fetchData",function(e){return t.getConfigurationList(e)})("setExpandedRow",function(e){return t.setExpandedRow(e)})("updateSelection",function(e){return t.updateSelection(e)}),r.Sb(1,"cd-table-actions",1),r.Sb(2,"cd-configuration-details",2),r.Wb(),r.Pc(3,Mi,1,1,"ng-template",null,3,r.Qc)),2&e&&(r.uc("data",t.data)("columns",t.columns)("extraFilterableColumns",t.filters)("hasDetails",!0),r.Db(1),r.uc("permission",t.permission)("selection",t.selection)("tableActions",t.tableActions),r.Db(1),r.uc("selection",t.expandedRow))},directives:[Vt.a,Dn.a,Di,s.r,s.q],styles:[".filter[_ngcontent-%COMP%]{padding-right:8px}.fa-stack[_ngcontent-%COMP%]{font-size:.79rem}.fa-stack[_ngcontent-%COMP%] .fa-stack-1x[_ngcontent-%COMP%]{margin-left:8px;margin-top:5px} cd-configuration datatable-body-cell.wrap{word-break:break-all}"]}),e})();var Oi=n("cp0P"),Li=n("nYR2");let Ei=(()=>{class e{constructor(e){this.http=e,this.baseURL="api/cluster"}getStatus(){return this.http.get(`${this.baseURL}`,{headers:{Accept:"application/vnd.ceph.api.v0.1+json"}})}updateStatus(e){return this.http.put(`${this.baseURL}`,{status:e},{headers:{Accept:"application/vnd.ceph.api.v0.1+json"}})}}return e.\u0275fac=function(t){return new(t||e)(r.ic(o.b))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Ai=n("LRne"),Ii=n("lJxs"),Ri=n("Kqap"),Pi=n("BFxc"),Fi=n("xbPD"),Wi=n("mCNh");function ji(e,t,n){return 0===n?[t]:(e.push(t),e)}function Yi(){return function(e,t){return arguments.length>=2?function(n){return Object(Wi.a)(Object(Ri.a)(e,t),Object(Pi.a)(1),Object(Fi.a)(t))(n)}:function(t){return Object(Wi.a)(Object(Ri.a)((t,n,i)=>e(t,n,i+1)),Object(Pi.a)(1))(t)}}(ji,[])}var Ni=n("5+tZ"),zi=n("zNnC"),$i=n("nQ07");let Hi=(()=>{class e{calculateAdditionalData(e){if(!e.life_expectancy_min||!e.life_expectancy_max)return e.state="unknown",e;const t=e=>!!Number.parseFloat(e),n=(e,n)=>e&&n&&t(e)&&t(n)?nn.a.duration(nn()(e).diff(nn()(n))).asWeeks():null,i=nn.a.duration(nn()(nn.a.now()).diff(nn()(e.life_expectancy_stamp))).asWeeks(),r=n(e.life_expectancy_max,e.life_expectancy_stamp),s=n(e.life_expectancy_min,e.life_expectancy_stamp);return e.state=i>1?"stale":null!==r&&r<=2?"bad":null!==s&&s<=4?"warning":"good",e.life_expectancy_weeks={max:null!==r?Math.round(r):null,min:null!==s?Math.round(s):null},e}readable(e){return e.readableDaemons=e.daemons.join(" "),e}prepareDevice(e){return this.readable(this.calculateAdditionalData(e))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Xi=(()=>{class e extends zi.a{constructor(e,t){super(),this.http=e,this.deviceService=t,this.baseURL="api/host",this.baseUIURL="ui-api/host",this.predefinedLabels=["mon","mgr","osd","mds","rgw","nfs","iscsi","rbd","grafana"]}list(e){return this.http.get(this.baseURL,{headers:{Accept:"application/vnd.ceph.api.v1.1+json"},params:{facts:e}})}create(e,t,n,i){return this.http.post(this.baseURL,{hostname:e,addr:t,labels:n,status:i},{observe:"response",headers:{Accept:$i.a.cdVersionHeader("0","1")}})}delete(e){return this.http.delete(`${this.baseURL}/${e}`,{observe:"response"})}getDevices(e){return this.http.get(`${this.baseURL}/${e}/devices`).pipe(Object(Ii.a)(e=>e.map(e=>this.deviceService.prepareDevice(e))))}getSmartData(e){return this.http.get(`${this.baseURL}/${e}/smart`)}getDaemons(e){return this.http.get(`${this.baseURL}/${e}/daemons`)}getLabels(){return this.http.get(`${this.baseUIURL}/labels`)}update(e,t=!1,n=[],i=!1,r=!1){return this.http.put(`${this.baseURL}/${e}`,{update_labels:t,labels:n,maintenance:i,force:r},{headers:{Accept:this.getVersionHeaderValue(0,1)}})}identifyDevice(e,t,n){return this.http.post(`${this.baseURL}/${e}/identify_device`,{device:t,duration:n})}getInventoryParams(e){let t=new o.e;return e&&(t=t.append("refresh",Wt.a.toString(e))),t}getInventory(e,t){const n=this.getInventoryParams(t);return this.http.get(`${this.baseURL}/${e}/inventory`,{params:n})}inventoryList(e){const t=this.getInventoryParams(e);return this.http.get(`${this.baseUIURL}/inventory`,{params:t})}inventoryDeviceList(e,t){let n;return n=e?this.getInventory(e,t).pipe(Yi()):this.inventoryList(t),n.pipe(Object(Ni.a)(e=>{const t=Wt.a.flatMap(e,e=>e.devices.map(t=>(t.hostname=e.name,t.uid=t.device_id?t.device_id:`${t.hostname}-${t.path}`,t)));return Object(Ai.a)(t)}))}}return e.\u0275fac=function(t){return new(t||e)(r.ic(o.b),r.ic(Hi))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Vi=(()=>{class e{constructor(e,t){this.http=e,this.deviceService=t,this.path="api/osd",this.osdDevices=[],this.osdRecvSpeedModalPriorities={KNOWN_PRIORITIES:[{name:null,text:"-- Select the priority --",values:{osd_max_backfills:null,osd_recovery_max_active:null,osd_recovery_max_single_start:null,osd_recovery_sleep:null}},{name:"low",text:"Low",values:{osd_max_backfills:1,osd_recovery_max_active:1,osd_recovery_max_single_start:1,osd_recovery_sleep:.5}},{name:"default",text:"Default",values:{osd_max_backfills:1,osd_recovery_max_active:3,osd_recovery_max_single_start:1,osd_recovery_sleep:0}},{name:"high",text:"High",values:{osd_max_backfills:4,osd_recovery_max_active:4,osd_recovery_max_single_start:4,osd_recovery_sleep:0}}]}}create(e){const t={method:"drive_groups",data:e,tracking_id:Wt.a.join(Wt.a.map(e,"service_id"),", ")};return this.http.post(this.path,t,{observe:"response"})}getList(){return this.http.get(`${this.path}`)}getDetails(e){return this.http.get(`${this.path}/${e}`)}getSmartData(e){return this.http.get(`${this.path}/${e}/smart`)}scrub(e,t){return this.http.post(`${this.path}/${e}/scrub?deep=${t}`,null)}getFlags(){return this.http.get(`${this.path}/flags`)}updateFlags(e){return this.http.put(`${this.path}/flags`,{flags:e})}updateIndividualFlags(e,t){return this.http.put(`${this.path}/flags/individual`,{flags:e,ids:t})}markOut(e){return this.http.put(`${this.path}/${e}/mark`,{action:"out"})}markIn(e){return this.http.put(`${this.path}/${e}/mark`,{action:"in"})}markDown(e){return this.http.put(`${this.path}/${e}/mark`,{action:"down"})}reweight(e,t){return this.http.post(`${this.path}/${e}/reweight`,{weight:t})}update(e,t){return this.http.put(`${this.path}/${e}`,{device_class:t})}markLost(e){return this.http.put(`${this.path}/${e}/mark`,{action:"lost"})}purge(e){return this.http.post(`${this.path}/${e}/purge`,null)}destroy(e){return this.http.post(`${this.path}/${e}/destroy`,null)}delete(e,t,n){return this.http.delete(`${this.path}/${e}`,{observe:"response",params:{preserve_id:t?"true":"false",force:n?"true":"false"}})}safeToDestroy(e){return this.http.get(`${this.path}/safe_to_destroy?ids=${e}`)}safeToDelete(e){return this.http.get(`${this.path}/safe_to_delete?svc_ids=${e}`)}getDevices(e){return this.http.get(`${this.path}/${e}/devices`).pipe(Object(Ii.a)(e=>e.map(e=>this.deviceService.prepareDevice(e))))}}return e.\u0275fac=function(t){return new(t||e)(r.ic(o.b),r.ic(Hi))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Bi=n("kvvV"),Ui=n("kn/O"),qi=n("2Vo4");const Gi=[{stepIndex:1,isComplete:!1}];let Ji=(()=>{class e{constructor(){this.currentStep$=new qi.a(null),this.steps$=new qi.a(Gi),this.currentStep$.next(this.steps$.value[0])}setTotalSteps(e){const t=[];for(let n=1;n<=e;n++)t.push({stepIndex:n,isComplete:!1});this.steps$=new qi.a(t)}setCurrentStep(e){this.currentStep$.next(e)}getCurrentStep(){return this.currentStep$.asObservable()}getSteps(){return this.steps$.asObservable()}moveToNextStep(){this.currentStep$.next(this.steps$.value[this.currentStep$.value.stepIndex])}moveToPreviousStep(){this.currentStep$.next(this.steps$.value[this.currentStep$.value.stepIndex-1-1])}isLastStep(){return this.currentStep$.value.stepIndex===this.steps$.value.length}isFirstStep(){var e;return(null===(e=this.currentStep$.value)||void 0===e?void 0:e.stepIndex)-1==0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Ki=n("aXbf");class Qi{constructor(){this.reset(),this.formatterService=new Ki.a,this.deviceSelectionAttrs={"sys_api.vendor":{name:"vendor"},"sys_api.model":{name:"model"},device_id:{name:"device_id"},human_readable_type:{name:"rotational",formatter:e=>"hdd"===e.toLowerCase()},"sys_api.size":{name:"size",formatter:e=>this.formatterService.format_number(e,1024,["B","KB","MB","GB","TB","PB"]).replace(" ","")}}}reset(){this.spec={service_type:"osd",service_id:`dashboard-${Wt.a.now()}`}}setName(e){this.spec.service_id=e}setHostPattern(e){this.spec.host_pattern=e}setDeviceSelection(e,t){const n=`${e}_devices`;this.spec[n]={},t.forEach(e=>{const t=this.deviceSelectionAttrs[e.prop];t&&(this.spec[n][t.name]=t.formatter?t.formatter(e.value.raw):e.value.raw)})}clearDeviceSelection(e){delete this.spec[`${e}_devices`]}setSlots(e,t){const n=`${e}_slots`;0===t?delete this.spec[n]:this.spec[n]=t}setFeature(e,t){t?this.spec[e]=!0:delete this.spec[e]}}const Zi=function(e){return{active:e}};function er(e,t){if(1&e){const e=r.Yb();r.Xb(0,"ul",4),r.Xb(1,"li",5),r.Xb(2,"a",6),r.lc("click",function(){r.Ic(e);const n=t.$implicit;return r.nc().onStepClick(n)}),r.Xb(3,"span",7),r.bc(4,8),r.Wb(),r.Xb(5,"span"),r.bc(6,9),r.Wb(),r.Wb(),r.Wb(),r.Wb()}if(2&e){const e=t.$implicit,n=t.index,i=r.nc();r.Db(2),r.uc("ngClass",r.zc(4,Zi,i.currentStep.stepIndex===e.stepIndex)),r.Db(1),r.uc("ngClass",r.zc(6,Zi,i.currentStep.stepIndex===e.stepIndex)),r.Db(1),r.fc(e.stepIndex),r.cc(4),r.Db(2),r.fc(i.stepsTitle[n]),r.cc(6)}}let tr=(()=>{class e{constructor(e){this.stepsService=e}ngOnInit(){this.stepsService.setTotalSteps(this.stepsTitle.length),this.steps=this.stepsService.getSteps(),this.currentStepSub=this.stepsService.getCurrentStep().subscribe(e=>{this.currentStep=e})}onStepClick(e){this.stepsService.setCurrentStep(e)}ngOnDestroy(){this.currentStepSub.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Ji))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-wizard"]],inputs:{stepsTitle:"stepsTitle"},decls:5,vars:3,consts:function(){let e,t;return e="" + "\ufffd0\ufffd" + "",t="" + "\ufffd0\ufffd" + "",[[1,"card-body"],[1,"row","m-7"],[1,"col"],["class","nav nav-pills flex-column",4,"ngFor","ngForOf"],[1,"nav","nav-pills","flex-column"],[1,"nav-item"],[1,"nav-link",3,"ngClass","click"],[1,"circle-step",3,"ngClass"],e,t]},template:function(e,t){1&e&&(r.Xb(0,"div",0),r.Xb(1,"div",1),r.Xb(2,"nav",2),r.Pc(3,er,7,8,"ul",3),r.oc(4,"async"),r.Wb(),r.Wb(),r.Wb()),2&e&&(r.Db(3),r.uc("ngForOf",r.pc(4,1,t.steps)))},directives:[s.q,s.p],pipes:[s.b],styles:[".card-body[_ngcontent-%COMP%]{padding-left:0}span.circle-step[_ngcontent-%COMP%]{background:#adb5bd;border-radius:.8em;color:#fff;display:inline-block;font-weight:700;line-height:1.6em;margin-right:5px;text-align:center;width:1.6em}span.circle-step.active[_ngcontent-%COMP%]{background-color:#2b99a8}.nav-pills[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{background-color:#fff;color:#343a40}.nav-pills[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%]{color:#2b99a8}"]}),e})();var nr=n("Z21x"),ir=n("quSY");let rr=(()=>{class e{constructor(e){this.http=e,this.url="api/orchestrator",this.disableMessages={noOrchestrator:"The feature is disabled because Orchestrator is not available.",missingFeature:"The Orchestrator backend doesn't support this feature."}}status(){return this.http.get(`${this.url}/status`)}hasFeature(e,t){return Wt.a.every(t,t=>Wt.a.get(e.features,`${t}.available`))}getTableActionDisableDesc(e,t){return!!e&&(e.available?!this.hasFeature(e,t)&&this.disableMessages.missingFeature:this.disableMessages.noOrchestrator)}}return e.\u0275fac=function(t){return new(t||e)(r.ic(o.b))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var sr=n("DNAf"),or=function(e){return e.HOST_LIST="get_hosts",e.HOST_ADD="add_host",e.HOST_REMOVE="remove_host",e.HOST_LABEL_ADD="add_host_label",e.HOST_LABEL_REMOVE="remove_host_label",e.HOST_MAINTENANCE_ENTER="enter_host_maintenance",e.HOST_MAINTENANCE_EXIT="exit_host_maintenance",e.HOST_FACTS="get_facts",e.SERVICE_LIST="describe_service",e.SERVICE_CREATE="apply",e.SERVICE_EDIT="apply",e.SERVICE_DELETE="remove_service",e.SERVICE_RELOAD="service_action",e.DAEMON_LIST="list_daemons",e.OSD_GET_REMOVE_STATUS="remove_osds_status",e.OSD_CREATE="apply_drivegroups",e.OSD_DELETE="remove_osds",e.DEVICE_LIST="get_inventory",e.DEVICE_BLINK_LIGHT="blink_device_light",e}({}),ar=n("EgGo"),cr=n("TuBq"),lr=n.n(cr),ur=n("ajRT"),dr=n("p4Cf"),hr=n("IZUe"),fr=n("ppaS"),pr=n("8xTl");function mr(e,t){1&e&&(r.Xb(0,"span",29),r.bc(1,30),r.Wb())}function br(e,t){1&e&&(r.Xb(0,"span",29),r.bc(1,31),r.Wb())}function gr(e,t){1&e&&(r.Xb(0,"span",29),r.bc(1,35),r.Wb())}function _r(e,t){if(1&e&&(r.Xb(0,"div",8),r.Xb(1,"label",32),r.bc(2,33),r.Wb(),r.Xb(3,"div",15),r.Sb(4,"input",34),r.Pc(5,gr,2,0,"span",17),r.Wb(),r.Wb()),2&e){r.nc();const e=r.Fc(2),t=r.nc();r.Db(5),r.uc("ngIf",t.hostForm.showError("addr",e,"pattern"))}}function vr(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div"),r.Xb(1,"form",5,6),r.Xb(3,"div",7),r.Xb(4,"div",8),r.Xb(5,"label",9),r.Vb(6),r.bc(7,10),r.Ub(),r.Xb(8,"cd-helper"),r.Xb(9,"p"),r.bc(10,11),r.Wb(),r.Xb(11,"ul"),r.Xb(12,"li"),r.hc(13,12),r.Sb(14,"samp"),r.ec(),r.Wb(),r.Xb(15,"li"),r.hc(16,13),r.Sb(17,"samp"),r.ec(),r.Wb(),r.Xb(18,"li"),r.hc(19,14),r.Sb(20,"samp"),r.ec(),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Xb(21,"div",15),r.Xb(22,"input",16),r.lc("keyup",function(){return r.Ic(e),r.nc().checkHostNameValue()}),r.Wb(),r.Pc(23,mr,2,0,"span",17),r.Pc(24,br,2,0,"span",17),r.Wb(),r.Wb(),r.Pc(25,_r,6,1,"div",18),r.Xb(26,"div",8),r.Xb(27,"label",19),r.bc(28,20),r.Wb(),r.Xb(29,"div",15),r.Sb(30,"cd-select-badges",21),r.Wb(),r.Wb(),r.Xb(31,"div",8),r.Xb(32,"div",22),r.Xb(33,"div",23),r.Sb(34,"input",24),r.Xb(35,"label",25),r.bc(36,26),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Xb(37,"div",27),r.Xb(38,"cd-form-button-panel",28),r.lc("submitActionEvent",function(){return r.Ic(e),r.nc().submit()}),r.oc(39,"titlecase"),r.oc(40,"upperFirst"),r.Wb(),r.Wb(),r.Wb(),r.Wb()}if(2&e){const e=r.Fc(2),t=r.nc();r.Db(1),r.uc("formGroup",t.hostForm),r.Db(22),r.uc("ngIf",t.hostForm.showError("hostname",e,"required")),r.Db(1),r.uc("ngIf",t.hostForm.showError("hostname",e,"uniqueName")),r.Db(1),r.uc("ngIf",!t.hostPattern),r.Db(5),r.uc("data",t.hostForm.controls.labels.value)("options",t.labelsOption)("customBadges",!0)("messages",t.messages),r.Db(8),r.uc("form",t.hostForm)("submitText",r.pc(39,10,t.action)+" "+r.pc(40,12,t.resource))}}let yr=(()=>{class e extends qn.a{constructor(e,t,n,i,r){super(),this.router=e,this.actionLabels=t,this.hostService=n,this.taskWrapper=i,this.activeModal=r,this.hostnameArray=[],this.hostPattern=!1,this.labelsOption=[],this.messages=new sr.a({empty:"There are no labels.",filter:"Filter or add labels",add:"Add label"}),this.resource="host",this.action=this.actionLabels.ADD}ngOnInit(){this.router.url.includes("hosts")&&(this.pageURL="hosts"),this.createForm(),this.hostService.list("false").subscribe(e=>{this.hostnames=e.map(e=>e.hostname),this.loadingReady()}),this.hostService.getLabels().subscribe(e=>{const t=new Set(e.concat(this.hostService.predefinedLabels));this.labelsOption=Array.from(t).map(e=>({enabled:!0,name:e,selected:!1,description:null}))})}checkHostNameValue(){const e=this.hostForm.get("hostname").value;this.hostPattern=!!e.match(/[()\[\]{},]/g)}createForm(){this.hostForm=new Gn.a({hostname:new xn.h("",{validators:[xn.A.required,Cn.a.custom("uniqueName",e=>this.hostnames&&-1!==this.hostnames.indexOf(e))]}),addr:new xn.h("",{validators:[Cn.a.ip()]}),labels:new xn.h([]),maintenance:new xn.h({value:!1,disabled:"hosts"!==this.pageURL})})}isCommaSeparatedPattern(e){return e.includes(",")}isRangeTypePattern(e){return e.includes("[")&&e.includes("]")&&!e.match(/(?![^(]*\)),/g)}replaceBraces(e){return e.replace(/(?<=\d)\s*-\s*(?=\d)/g,"..").replace(/\(/g,"{").replace(/\)/g,"}").replace(/\[/g,"{").replace(/]/g,"}")}checkHostNamePattern(e){if(this.isRangeTypePattern(e)){const t=this.replaceBraces(e);this.hostnameArray=lr()(t)}else if(this.isCommaSeparatedPattern(e)){let t=[];t=e.split(","),t.forEach(e=>{if(this.isRangeTypePattern(e)){const t=this.replaceBraces(e);this.hostnameArray=this.hostnameArray.concat(lr()(t))}else this.hostnameArray.push(e)})}else this.hostnameArray.push(e)}submit(){const e=this.hostForm.get("hostname").value;this.checkHostNamePattern(e),this.addr=this.hostForm.get("addr").value,this.status=this.hostForm.get("maintenance").value?"maintenance":"",this.allLabels=this.hostForm.get("labels").value,"hosts"===this.pageURL||this.allLabels.includes("_no_schedule")||this.allLabels.push("_no_schedule"),this.hostnameArray.forEach(e=>{this.taskWrapper.wrapTaskAroundCall({task:new Bi.a("host/"+gn.e.ADD,{hostname:e}),call:this.hostService.create(e,this.addr,this.allLabels,this.status)}).subscribe({error:()=>{this.hostForm.setErrors({cdSubmitButton:!0})},complete:()=>{"hosts"===this.pageURL?this.router.navigate([this.pageURL,{outlets:{modal:null}}]):this.activeModal.close()}})})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Pt.e),r.Rb(gn.b),r.Rb(Xi),r.Rb(Ui.a),r.Rb(Jt.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-host-form"]],features:[r.Ab],decls:7,vars:9,consts:function(){let e,t,n,i,r,s,o,a,c,l,u,d;return e="" + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + "",t="Hostname",n="To add multiple hosts at once, you can enter:",i="a comma-separated list of hostnames " + "\ufffd#14\ufffd" + "(e.g.: example-01,example-02,example-03)" + "\ufffd/#14\ufffd" + ",",r="a range expression " + "\ufffd#17\ufffd" + "(e.g.: example-[01-03].ceph)" + "\ufffd/#17\ufffd" + ",",s="a comma separated range expression " + "\ufffd#20\ufffd" + "(e.g.: example-[01-05].lab.com,example2-[1-4].lab.com,example3-[001-006].lab.com)" + "\ufffd/#20\ufffd" + "",o="Labels",a="Maintenance Mode",c="This field is required.",l="The chosen hostname is already in use.",u="Network address",d="The value is not a valid IP address.",[[3,"pageURL","modalRef"],[1,"modal-title"],e,[1,"modal-content"],[4,"cdFormLoading"],["name","hostForm","novalidate","",3,"formGroup"],["formDir","ngForm"],[1,"modal-body"],[1,"form-group","row"],["for","hostname",1,"cd-col-form-label","required"],t,n,i,r,s,[1,"cd-col-form-input"],["type","text","placeholder","mon-123","id","hostname","name","hostname","formControlName","hostname","autofocus","",1,"form-control",3,"keyup"],["class","invalid-feedback",4,"ngIf"],["class","form-group row",4,"ngIf"],["for","labels",1,"cd-col-form-label"],o,["id","labels",3,"data","options","customBadges","messages"],[1,"cd-col-form-offset"],[1,"custom-control","custom-checkbox"],["id","maintenance","type","checkbox","formControlName","maintenance",1,"custom-control-input"],["for","maintenance",1,"custom-control-label"],a,[1,"modal-footer"],["wrappingClass","text-right",3,"form","submitText","submitActionEvent"],[1,"invalid-feedback"],c,l,["for","addr",1,"cd-col-form-label"],u,["type","text","placeholder","192.168.0.1","id","addr","name","addr","formControlName","addr",1,"form-control"],d]},template:function(e,t){1&e&&(r.Xb(0,"cd-modal",0),r.Xb(1,"span",1),r.bc(2,2),r.oc(3,"titlecase"),r.oc(4,"upperFirst"),r.Wb(),r.Vb(5,3),r.Pc(6,vr,41,14,"div",4),r.Ub(),r.Wb()),2&e&&(r.uc("pageURL",t.pageURL)("modalRef",t.activeModal),r.Db(4),r.fc(r.pc(3,5,t.action))(r.pc(4,7,t.resource)),r.cc(2),r.Db(2),r.uc("cdFormLoading",t.loading))},directives:[ur.a,Kn.a,xn.B,xn.r,Qn.a,xn.k,Zn.a,dr.a,On.a,xn.d,ei.a,xn.q,xn.i,hr.a,s.r,fr.a,xn.b,ti.a],pipes:[s.A,pr.a],styles:[""]}),e})();n("jKX/");var wr=n("/NlG");const Dr=["deviceLocation"],Sr=["lifeExpectancy"],xr=["lifeExpectancyTimestamp"];function kr(e,t){if(1&e&&r.Sb(0,"cd-table",5),2&e){const e=r.nc();r.uc("data",e.devices)("columns",e.columns)}}function Tr(e,t){1&e&&(r.Xb(0,"cd-alert-panel",6),r.bc(1,7),r.Wb())}function Mr(e,t){if(1&e&&(r.Xb(0,"span"),r.Rc(1),r.Wb()),2&e){const e=t.$implicit;r.Db(1),r.Sc(e.dev)}}function Cr(e,t){1&e&&r.Pc(0,Mr,2,1,"span",8),2&e&&r.uc("ngForOf",t.value)}function Or(e,t){if(1&e&&(r.Xb(0,"span"),r.Rc(1),r.oc(2,"i18nPlural"),r.Wb()),2&e){const e=r.nc().value,t=r.nc();r.Db(1),r.Tc("> ",r.qc(2,1,e.min,t.translationMapping),"")}}function Lr(e,t){if(1&e&&(r.Xb(0,"span"),r.Rc(1),r.oc(2,"i18nPlural"),r.Wb()),2&e){const e=r.nc().value,t=r.nc();r.Db(1),r.Tc("< ",r.qc(2,1,e.max,t.translationMapping),"")}}function Er(e,t){if(1&e&&(r.Xb(0,"span"),r.Rc(1),r.oc(2,"i18nPlural"),r.Wb()),2&e){const e=r.nc().value,t=r.nc();r.Db(1),r.Uc("",e.min," to ",r.qc(2,2,e.max,t.translationMapping),"")}}function Ar(e,t){if(1&e&&(r.Pc(0,Or,3,4,"span",9),r.Pc(1,Lr,3,4,"span",9),r.Pc(2,Er,3,5,"span",9)),2&e){const e=t.value;r.uc("ngIf",e.min&&!e.max),r.Db(1),r.uc("ngIf",e.max&&!e.min),r.Db(1),r.uc("ngIf",e.max&&e.min)}}function Ir(e,t){1&e&&r.Rc(0),2&e&&r.Tc(" ",t.value,"\n")}let Rr=(()=>{class e{constructor(e,t,n){this.hostService=e,this.datePipe=t,this.osdService=n,this.hostname="",this.osdId=null,this.devices=null,this.columns=[],this.translationMapping={"=1":"# week",other:"# weeks"}}ngOnInit(){this.columns=[{prop:"devid",name:"Device ID",minWidth:200},{prop:"state",name:"State of Health",flexGrow:1,cellTransformation:$t.a.badge,customTemplateConfig:{map:{good:{value:"Good",class:"badge-success"},warning:{value:"Warning",class:"badge-warning"},bad:{value:"Bad",class:"badge-danger"},stale:{value:"Stale",class:"badge-info"},unknown:{value:"Unknown",class:"badge-dark"}}}},{prop:"life_expectancy_weeks",name:"Life Expectancy",cellTemplate:this.lifeExpectancyTemplate},{prop:"life_expectancy_stamp",name:"Prediction Creation Date",cellTemplate:this.lifeExpectancyTimestampTemplate,pipe:this.datePipe,isHidden:!0},{prop:"location",name:"Device Name",cellTemplate:this.locationTemplate},{prop:"readableDaemons",name:"Daemons"}]}ngOnChanges(){const e=e=>this.devices=e;this.hostname?this.hostService.getDevices(this.hostname).subscribe(e):null!==this.osdId&&this.osdService.getDevices(this.osdId).subscribe(e)}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Xi),r.Rb(s.e),r.Rb(Vi))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-device-list"]],viewQuery:function(e,t){if(1&e&&(r.Wc(Dr,3),r.Wc(Sr,3),r.Wc(xr,3)),2&e){let e;r.Ec(e=r.mc())&&(t.locationTemplate=e.first),r.Ec(e=r.mc())&&(t.lifeExpectancyTemplate=e.first),r.Ec(e=r.mc())&&(t.lifeExpectancyTimestampTemplate=e.first)}},inputs:{hostname:"hostname",osdId:"osdId"},features:[r.Bb],decls:8,vars:2,consts:function(){let e;return e="Neither hostname nor OSD ID given",[[3,"data","columns",4,"ngIf"],["type","warning",4,"ngIf"],["deviceLocation",""],["lifeExpectancy",""],["lifeExpectancyTimestamp",""],[3,"data","columns"],["type","warning"],e,[4,"ngFor","ngForOf"],[4,"ngIf"]]},template:function(e,t){1&e&&(r.Pc(0,kr,1,2,"cd-table",0),r.Pc(1,Tr,2,0,"cd-alert-panel",1),r.Pc(2,Cr,1,1,"ng-template",null,2,r.Qc),r.Pc(4,Ar,3,3,"ng-template",null,3,r.Qc),r.Pc(6,Ir,1,1,"ng-template",null,4,r.Qc)),2&e&&(r.uc("ngIf",t.hostname||null!==t.osdId),r.Db(1),r.uc("ngIf",""===t.hostname&&null===t.osdId))},directives:[s.r,Vt.a,wr.a,s.q],pipes:[s.i],styles:[""]}),e})();var Pr=n("6qls");function Fr(e,t){1&e&&(r.Xb(0,"cd-alert-panel",2),r.bc(1,3),r.Wb())}function Wr(e,t){1&e&&(r.Xb(0,"cd-alert-panel",2),r.hc(1,4),r.Sb(2,"cd-doc",5),r.ec(),r.Wb())}let jr=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-orchestrator-doc-panel"]],inputs:{missingFeatures:"missingFeatures"},decls:3,vars:2,consts:function(){let e,t;return e="The feature is not supported in the current Orchestrator.",t="Orchestrator is not available. Please consult the " + "\ufffd#2\ufffd" + "" + "\ufffd/#2\ufffd" + " on how to configure and enable the functionality.",[["type","info",4,"ngIf","ngIfElse"],["elseBlock",""],["type","info"],e,t,["section","orch"]]},template:function(e,t){if(1&e&&(r.Pc(0,Fr,2,0,"cd-alert-panel",0),r.Pc(1,Wr,3,0,"ng-template",null,1,r.Qc)),2&e){const e=r.Fc(2);r.uc("ngIf",t.missingFeatures)("ngIfElse",e)}},directives:[s.r,wr.a,Pr.a],styles:[""]}),e})(),Yr=(()=>{class e{constructor(e,t,n,i,s,o){this.authStorageService=e,this.dimlessBinary=t,this.modalService=n,this.notificationService=i,this.orchService=s,this.hostService=o,this.devices=[],this.showAvailDeviceOnly=!1,this.hiddenColumns=[],this.filterColumns=["hostname","human_readable_type","available","sys_api.vendor","sys_api.model","sys_api.size"],this.selectionType=void 0,this.filterChange=new r.p,this.fetchInventory=new r.p,this.icons=_n.a,this.columns=[],this.selection=new Ht.a,this.orchStatus=void 0,this.actionOrchFeatures={identify:[or.DEVICE_BLINK_LIGHT]}}ngOnInit(){this.permission=this.authStorageService.getPermissions().osd,this.tableActions=[{permission:"update",icon:_n.a.show,click:()=>this.identifyDevice(),name:"Identify",disable:e=>this.getDisable("identify",e),canBePrimary:e=>!e.hasSingleSelection,visible:()=>Wt.a.isString(this.selectionType)}];const e=[{name:"Hostname",prop:"hostname",flexGrow:1},{name:"Device path",prop:"path",flexGrow:1},{name:"Type",prop:"human_readable_type",flexGrow:1,cellTransformation:$t.a.badge,customTemplateConfig:{map:{hdd:{value:"HDD",class:"badge-hdd"},ssd:{value:"SSD",class:"badge-ssd"}}}},{name:"Available",prop:"available",flexGrow:1,cellClass:"text-center",cellTransformation:$t.a.checkIcon},{name:"Vendor",prop:"sys_api.vendor",flexGrow:1},{name:"Model",prop:"sys_api.model",flexGrow:1},{name:"Size",prop:"sys_api.size",flexGrow:1,pipe:this.dimlessBinary},{name:"OSDs",prop:"osd_ids",flexGrow:1,cellTransformation:$t.a.badge,customTemplateConfig:{class:"badge-dark",prefix:"osd."}}];this.columns=e.filter(e=>!this.hiddenColumns.includes(e.prop)),Wt.a.forEach(this.filterColumns,e=>{const t=Wt.a.find(this.columns,{prop:e});t&&(t.filterable=!0)}),this.fetchInventory.observers.length>0&&(this.fetchInventorySub=this.table.fetchData.subscribe(()=>{this.fetchInventory.emit()}))}getDevices(){this.showAvailDeviceOnly?this.hostService.inventoryDeviceList().subscribe(e=>{this.devices=Wt.a.filter(e,"available"),this.devices=[...this.devices]},()=>{this.devices=[]}):this.devices=[...this.devices]}ngOnDestroy(){this.fetchInventorySub&&this.fetchInventorySub.unsubscribe()}onColumnFiltersChanged(e){this.filterChange.emit(e)}getDisable(e,t){return!t.hasSingleSelection||this.orchService.getTableActionDisableDesc(this.orchStatus,this.actionOrchFeatures[e])}updateSelection(e){this.selection=e}identifyDevice(){const e=this.selection.first(),t=e.hostname,n=e.path||e.device_id;this.modalService.show(Mn.a,{titleText:"Identify device " + n + "",message:"Please enter the duration how long to blink the LED.",fields:[{type:"select",name:"duration",value:300,required:!0,typeConfig:{options:[{text:"1 minute",value:60},{text:"2 minutes",value:120},{text:"5 minutes",value:300},{text:"10 minutes",value:600},{text:"15 minutes",value:900}]}}],submitButtonText:"Execute",onSubmit:e=>{this.hostService.identifyDevice(t,n,e.duration).subscribe(()=>{this.notificationService.show(vn.a.success,"Identifying '" + n + "' started on host '" + t + "'")})}})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Gt.a),r.Rb(Qt.a),r.Rb(yn.a),r.Rb(wn.a),r.Rb(rr),r.Rb(Xi))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-inventory-devices"]],viewQuery:function(e,t){if(1&e&&r.Wc(Vt.a,3),2&e){let e;r.Ec(e=r.mc())&&(t.table=e.first)}},inputs:{devices:"devices",showAvailDeviceOnly:"showAvailDeviceOnly",hiddenColumns:"hiddenColumns",filterColumns:"filterColumns",selectionType:"selectionType",orchStatus:"orchStatus"},outputs:{filterChange:"filterChange",fetchInventory:"fetchInventory"},decls:2,vars:8,consts:[["identifier","uid","columnMode","flex",3,"data","columns","forceIdentifier","selectionType","searchField","fetchData","updateSelection","columnFiltersChanged"],[1,"table-actions",3,"permission","selection","tableActions"]],template:function(e,t){1&e&&(r.Xb(0,"cd-table",0),r.lc("fetchData",function(){return t.getDevices()})("updateSelection",function(e){return t.updateSelection(e)})("columnFiltersChanged",function(e){return t.onColumnFiltersChanged(e)}),r.Sb(1,"cd-table-actions",1),r.Wb()),2&e&&(r.uc("data",t.devices)("columns",t.columns)("forceIdentifier",!0)("selectionType",t.selectionType)("searchField",!1),r.Db(1),r.uc("permission",t.permission)("selection",t.selection)("tableActions",t.tableActions))},directives:[Vt.a,Dn.a],styles:[".filter[_ngcontent-%COMP%]{padding-right:8px}.fa-stack[_ngcontent-%COMP%]{font-size:.79rem}.fa-stack[_ngcontent-%COMP%] .fa-stack-1x[_ngcontent-%COMP%]{margin-left:8px;margin-top:5px}"]}),e})();function Nr(e,t){1&e&&r.Sb(0,"cd-orchestrator-doc-panel")}const zr=function(){return[]},$r=function(){return["hostname"]};function Hr(e,t){if(1&e){const e=r.Yb();r.Vb(0),r.Xb(1,"legend"),r.bc(2,1),r.Wb(),r.Xb(3,"div",2),r.Xb(4,"div",3),r.Xb(5,"cd-inventory-devices",4),r.lc("fetchInventory",function(){return r.Ic(e),r.nc().refresh()}),r.Wb(),r.Wb(),r.Wb(),r.Ub()}if(2&e){const e=r.nc();r.Db(5),r.uc("devices",e.devices)("hiddenColumns",void 0===e.hostname?r.yc(3,zr):r.yc(4,$r))("orchStatus",e.orchStatus)}}let Xr=(()=>{class e{constructor(e,t,n){this.orchService=e,this.hostService=t,this.ngZone=n,this.reloadInterval=5e3,this.firstRefresh=!0,this.icons=_n.a,this.showDocPanel=!1,this.devices=[]}ngOnInit(){this.orchService.status().subscribe(e=>{this.orchStatus=e,this.showDocPanel=!e.available,e.available&&this.ngZone.runOutsideAngular(()=>{this.reloadSubscriber=Object(Bt.a)(this.reloadInterval,this.reloadInterval).subscribe(()=>{this.ngZone.run(()=>{this.getInventory(!1)})})})})}ngOnDestroy(){var e;null===(e=this.reloadSubscriber)||void 0===e||e.unsubscribe()}ngOnChanges(){var e;(null===(e=this.orchStatus)||void 0===e?void 0:e.available)&&(this.devices=[],this.getInventory(!1))}getInventory(e){""!==this.hostname&&this.hostService.inventoryDeviceList(this.hostname,e).subscribe(e=>{this.devices=e},()=>{this.devices=[]})}refresh(){this.getInventory(!this.firstRefresh),this.firstRefresh=!1}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(rr),r.Rb(Xi),r.Rb(r.D))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-inventory"]],inputs:{hostname:"hostname"},features:[r.Bb],decls:2,vars:2,consts:function(){let e;return e="Physical Disks",[[4,"ngIf"],e,[1,"row"],[1,"col-md-12"],["selectionType","single",3,"devices","hiddenColumns","orchStatus","fetchInventory"]]},template:function(e,t){1&e&&(r.Pc(0,Nr,1,0,"cd-orchestrator-doc-panel",0),r.Pc(1,Hr,6,5,"ng-container",0)),2&e&&(r.uc("ngIf",t.showDocPanel),r.Db(1),r.uc("ngIf",null==t.orchStatus?null:t.orchStatus.available))},directives:[s.r,jr,Yr],styles:[""]}),e})(),Vr=(()=>{class e{constructor(e){this.http=e,this.url="api/service"}list(e){const t=e?{params:(new o.e).set("service_name",e)}:{};return this.http.get(this.url,t)}getDaemons(e){return this.http.get(`${this.url}/${e}/daemons`)}create(e){return this.http.post(this.url,{service_name:e.service_id?`${e.service_type}.${e.service_id}`:e.service_type,service_spec:e},{observe:"response"})}delete(e){return this.http.delete(`${this.url}/${e}`,{observe:"response"})}getKnownTypes(){return this.http.get(`${this.url}/known_types`)}}return e.\u0275fac=function(t){return new(t||e)(r.ic(o.b))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Br=n("Dwqy"),Ur=n("zWsK");const qr=["statusTpl"],Gr=["listTpl"],Jr=["daemonsTable"];function Kr(e,t){1&e&&r.Sb(0,"cd-orchestrator-doc-panel")}function Qr(e,t){if(1&e){const e=r.Yb();r.Xb(0,"cd-table",6,7),r.lc("fetchData",function(t){return r.Ic(e),r.nc(2).getDaemons(t)}),r.Wb()}if(2&e){const e=r.nc(2);r.uc("data",e.daemons)("columns",e.columns)}}function Zr(e,t){if(1&e&&(r.Xb(0,"div"),r.Pc(1,Qr,2,2,"cd-table",5),r.Wb()),2&e){const e=r.nc();r.Db(1),r.uc("ngIf",e.hasOrchestrator)}}function es(e,t){if(1&e){const e=r.Yb();r.Xb(0,"cd-table",6,7),r.lc("fetchData",function(t){return r.Ic(e),r.nc(3).getDaemons(t)}),r.Wb()}if(2&e){const e=r.nc(3);r.uc("data",e.daemons)("columns",e.columns)}}function ts(e,t){if(1&e&&r.Pc(0,es,2,2,"cd-table",5),2&e){const e=r.nc(2);r.uc("ngIf",e.hasOrchestrator)}}function ns(e,t){if(1&e){const e=r.Yb();r.Xb(0,"cd-table",6,17),r.lc("fetchData",function(t){return r.Ic(e),r.nc(3).getServices(t)}),r.Wb()}if(2&e){const e=r.nc(3);r.uc("data",e.services)("columns",e.serviceColumns)}}function is(e,t){if(1&e&&r.Pc(0,ns,2,2,"cd-table",5),2&e){const e=r.nc(2);r.uc("ngIf",e.hasOrchestrator)}}function rs(e,t){if(1&e&&(r.Vb(0),r.Xb(1,"ul",8,9),r.Xb(3,"li",10),r.Xb(4,"a",11),r.bc(5,12),r.Wb(),r.Pc(6,ts,1,1,"ng-template",13),r.Wb(),r.Xb(7,"li",14),r.Xb(8,"a",11),r.bc(9,15),r.Wb(),r.Pc(10,is,1,1,"ng-template",13),r.Wb(),r.Wb(),r.Sb(11,"div",16),r.Ub()),2&e){const e=r.Fc(2);r.Db(11),r.uc("ngbNavOutlet",e)}}function ss(e,t){if(1&e&&(r.Xb(0,"span",18),r.oc(1,"pipeFunction"),r.Rc(2),r.Wb()),2&e){const e=t.row,n=r.nc();r.uc("ngClass",r.qc(1,2,e,n.getStatusClass)),r.Db(2),r.Tc(" ",e.status_desc," ")}}const os=function(e){return[e]};function as(e,t){if(1&e&&(r.Xb(0,"span"),r.Sb(1,"i",25),r.Wb()),2&e){const e=r.nc(4);r.Db(1),r.uc("ngClass",r.zc(1,os,e.icons.infoCircle))}}function cs(e,t){if(1&e&&(r.Xb(0,"span"),r.Sb(1,"i",25),r.Wb()),2&e){const e=r.nc(4);r.Db(1),r.uc("ngClass",r.zc(1,os,e.icons.warning))}}function ls(e,t){if(1&e&&(r.Xb(0,"li",23),r.Xb(1,"b"),r.Rc(2),r.oc(3,"relativeDate"),r.Wb(),r.Xb(4,"span",24),r.Rc(5),r.Wb(),r.Sb(6,"br"),r.Pc(7,as,2,3,"span",0),r.Pc(8,cs,2,3,"span",0),r.Rc(9),r.Wb()),2&e){const e=t.$implicit;r.Db(2),r.Tc("",r.pc(3,5,e.created)," - "),r.Db(3),r.Sc(e.subject),r.Db(2),r.uc("ngIf","INFO"===e.level),r.Db(1),r.uc("ngIf","ERROR"===e.level),r.Db(1),r.Tc(" ",e.message," ")}}function us(e,t){if(1&e&&(r.Xb(0,"ul",21),r.Pc(1,ls,10,7,"li",22),r.Wb()),2&e){const e=r.nc().value,t=r.nc();r.Db(1),r.uc("ngForOf",e)("ngForTrackBy",t.trackByFn)}}function ds(e,t){1&e&&(r.Xb(0,"div"),r.Xb(1,"span"),r.Rc(2,"No data available"),r.Wb(),r.Wb())}function hs(e,t){if(1&e&&r.Pc(0,ds,3,0,"div",0),2&e){const e=r.nc().value;r.uc("ngIf",0===(null==e?null:e.length))}}function fs(e,t){if(1&e&&(r.Pc(0,us,2,2,"ul",19),r.Pc(1,hs,1,1,"ng-template",null,20,r.Qc)),2&e){const e=t.value,n=r.Fc(2);r.uc("ngIf",null==e?null:e.length)("ngIfElse",n)}}let ps=(()=>{class e{constructor(e,t,n,i){this.hostService=e,this.cephServiceService=t,this.orchService=n,this.relativeDatePipe=i,this.icons=_n.a,this.daemons=[],this.services=[],this.columns=[],this.serviceColumns=[],this.hasOrchestrator=!1,this.showDocPanel=!1}ngOnInit(){this.columns=[{name:"Hostname",prop:"hostname",flexGrow:2,filterable:!0},{name:"Daemon type",prop:"daemon_type",flexGrow:1,filterable:!0},{name:"Daemon ID",prop:"daemon_id",flexGrow:1,filterable:!0},{name:"Container ID",prop:"container_id",flexGrow:2,filterable:!0,cellTransformation:$t.a.truncate,customTemplateConfig:{length:12}},{name:"Container Image name",prop:"container_image_name",flexGrow:3,filterable:!0},{name:"Container Image ID",prop:"container_image_id",flexGrow:2,filterable:!0,cellTransformation:$t.a.truncate,customTemplateConfig:{length:12}},{name:"Version",prop:"version",flexGrow:1,filterable:!0},{name:"Status",prop:"status_desc",flexGrow:1,filterable:!0,cellTemplate:this.statusTpl},{name:"Last Refreshed",prop:"last_refresh",pipe:this.relativeDatePipe,flexGrow:1},{name:"Daemon Events",prop:"events",flexGrow:5,cellTemplate:this.listTpl}],this.serviceColumns=[{name:"Service Name",prop:"service_name",flexGrow:2,filterable:!0},{name:"Service Type",prop:"service_type",flexGrow:1,filterable:!0},{name:"Service Events",prop:"events",flexGrow:5,cellTemplate:this.listTpl}],this.orchService.status().subscribe(e=>{this.hasOrchestrator=e.available,this.showDocPanel=!e.available})}ngOnChanges(){Wt.a.isUndefined(this.daemonsTable)||this.daemonsTable.reloadData()}ngAfterViewInit(){this.daemonsTableTplsSub=this.daemonsTableTpls.changes.subscribe(e=>{this.daemonsTable=e.first})}ngOnDestroy(){this.daemonsTableTplsSub&&this.daemonsTableTplsSub.unsubscribe(),this.serviceSub&&this.serviceSub.unsubscribe()}getStatusClass(e){return Wt.a.get({"-1":"badge-danger",0:"badge-warning",1:"badge-success"},e.status,"badge-dark")}getDaemons(e){let t;if(this.hostname)t=this.hostService.getDaemons(this.hostname);else{if(!this.serviceName)return void(this.daemons=[]);t=this.cephServiceService.getDaemons(this.serviceName)}t.subscribe(e=>{this.daemons=e},()=>{this.daemons=[],e.error()})}getServices(e){this.serviceSub=this.cephServiceService.list(this.serviceName).subscribe(e=>{this.services=e},()=>{this.services=[],e.error()})}trackByFn(e,t){return t.created}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Xi),r.Rb(Vr),r.Rb(rr),r.Rb(Br.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-service-daemon-list"]],viewQuery:function(e,t){if(1&e&&(r.Wc(qr,3),r.Wc(Gr,3),r.Wc(Jr,1)),2&e){let e;r.Ec(e=r.mc())&&(t.statusTpl=e.first),r.Ec(e=r.mc())&&(t.listTpl=e.first),r.Ec(e=r.mc())&&(t.daemonsTableTpls=e)}},inputs:{serviceName:"serviceName",hostname:"hostname",flag:"flag"},features:[r.Bb],decls:8,vars:3,consts:function(){let e,t;return e="Details",t="Service Events",[[4,"ngIf"],[4,"ngIf","ngIfElse"],["serviceDetailsTpl",""],["statusTpl",""],["listTpl",""],["columnMode","flex",3,"data","columns","fetchData",4,"ngIf"],["columnMode","flex",3,"data","columns","fetchData"],["daemonsTable",""],["ngbNav","","cdStatefulTab","service-details",1,"nav-tabs"],["nav","ngbNav"],["ngbNavItem","details"],["ngbNavLink",""],e,["ngbNavContent",""],["ngbNavItem","service_events"],t,[3,"ngbNavOutlet"],["serviceTable",""],[1,"badge",3,"ngClass"],["class","list-group list-group-flush",4,"ngIf","ngIfElse"],["noEventsAvailable",""],[1,"list-group","list-group-flush"],["class","list-group-item",4,"ngFor","ngForOf","ngForTrackBy"],[1,"list-group-item"],[1,"badge","badge-info"],["aria-hidden","true",3,"ngClass"]]},template:function(e,t){if(1&e&&(r.Pc(0,Kr,1,0,"cd-orchestrator-doc-panel",0),r.Pc(1,Zr,2,1,"div",1),r.Pc(2,rs,12,1,"ng-template",null,2,r.Qc),r.Pc(4,ss,3,5,"ng-template",null,3,r.Qc),r.Pc(6,fs,3,2,"ng-template",null,4,r.Qc)),2&e){const e=r.Fc(3);r.uc("ngIf",t.showDocPanel),r.Db(1),r.uc("ngIf","hostDetails"===t.flag)("ngIfElse",e)}},directives:[s.r,jr,Vt.a,Jt.p,Kt.a,Jt.r,Jt.s,Jt.q,Jt.u,s.p,s.q],pipes:[Ur.b,Br.a],styles:[".fa-info-circle[_ngcontent-%COMP%]{color:#2b99a8}.fa-exclamation-triangle[_ngcontent-%COMP%]{color:#ef5c55}.list-group-item[_ngcontent-%COMP%]{background-color:initial;border-width:0}"]}),e})();var ms=n("XFyV");const bs=["innerNav"];function gs(e,t){1&e&&(r.Xb(0,"cd-alert-panel",5),r.bc(1,6),r.Wb())}function _s(e,t){1&e&&(r.Xb(0,"cd-alert-panel",7),r.bc(1,8),r.Wb())}function vs(e,t){1&e&&(r.Xb(0,"cd-alert-panel",10),r.bc(1,11),r.Wb())}function ys(e,t){if(1&e&&(r.Vb(0),r.Xb(1,"cd-alert-panel",20),r.Rc(2),r.Wb(),r.Ub()),2&e){const e=r.nc(2).$implicit;r.Db(2),r.Sc(e.value.userMessage)}}function ws(e,t){1&e&&(r.Xb(0,"cd-alert-panel",23),r.bc(1,24),r.Wb())}function Ds(e,t){1&e&&(r.Vb(0),r.Xb(1,"cd-alert-panel",26),r.bc(2,27),r.Wb(),r.Ub())}function Ss(e,t){1&e&&(r.Xb(0,"cd-alert-panel",28),r.bc(1,29),r.Wb())}function xs(e,t){if(1&e&&(r.Pc(0,Ds,3,0,"ng-container",0),r.Pc(1,Ss,2,0,"ng-template",null,25,r.Qc)),2&e){const e=r.Fc(2),t=r.nc(3).$implicit;r.uc("ngIf",t.value.info.smart_status.passed)("ngIfElse",e)}}function ks(e,t){if(1&e&&(r.Pc(0,ws,2,0,"cd-alert-panel",21),r.oc(1,"pipeFunction"),r.Pc(2,xs,3,2,"ng-template",null,22,r.Qc)),2&e){const e=r.Fc(3),t=r.nc(2).$implicit,n=r.nc(4);r.uc("ngIf",r.qc(1,2,null==t.value.info?null:t.value.info.smart_status,n.isEmpty))("ngIfElse",e)}}function Ts(e,t){if(1&e&&r.Sb(0,"cd-table-key-value",36),2&e){const e=r.nc(4).$implicit;r.uc("renderObjects",!0)("data",e.value.info)}}function Ms(e,t){1&e&&(r.Xb(0,"cd-alert-panel",37),r.bc(1,38),r.Wb())}function Cs(e,t){if(1&e&&(r.Pc(0,Ts,1,2,"cd-table-key-value",34),r.oc(1,"pipeFunction"),r.Pc(2,Ms,2,0,"cd-alert-panel",35),r.oc(3,"pipeFunction")),2&e){const e=r.nc(3).$implicit,t=r.nc(4);r.uc("ngIf",!r.qc(1,2,e.value.info,t.isEmpty)),r.Db(2),r.uc("ngIf",r.qc(3,5,e.value.info,t.isEmpty))}}function Os(e,t){if(1&e&&r.Sb(0,"cd-table",42),2&e){const e=r.nc(4).$implicit,t=r.nc(4);r.uc("data",e.value.smart.attributes.table)("columns",t.smartDataColumns)}}function Ls(e,t){if(1&e&&r.Sb(0,"cd-table-key-value",43),2&e){const e=r.nc(4).$implicit;r.uc("renderObjects",!0)("data",e.value.smart.nvmeData)}}function Es(e,t){1&e&&(r.Xb(0,"cd-alert-panel",44),r.bc(1,45),r.Wb())}function As(e,t){if(1&e&&(r.Pc(0,Os,1,2,"cd-table",39),r.Pc(1,Ls,1,2,"cd-table-key-value",40),r.Pc(2,Es,2,0,"cd-alert-panel",41)),2&e){const e=r.nc(3).$implicit;r.uc("ngIf",null==e.value.smart?null:e.value.smart.attributes),r.Db(1),r.uc("ngIf",null==e.value.smart?null:e.value.smart.nvmeData),r.Db(1),r.uc("ngIf",!(null!=e.value.smart&&e.value.smart.attributes||null!=e.value.smart&&e.value.smart.nvmeData))}}function Is(e,t){if(1&e&&(r.Vb(0),r.Xb(1,"ul",12,30),r.Xb(3,"li",31),r.Xb(4,"a",17),r.bc(5,32),r.Wb(),r.Pc(6,Cs,4,8,"ng-template",18),r.Wb(),r.Xb(7,"li",31),r.Xb(8,"a",17),r.bc(9,33),r.Wb(),r.Pc(10,As,3,3,"ng-template",18),r.Wb(),r.Wb(),r.Sb(11,"div",15),r.Ub()),2&e){const e=r.Fc(2);r.Db(3),r.uc("ngbNavItem",1),r.Db(4),r.uc("ngbNavItem",2),r.Db(4),r.uc("ngbNavOutlet",e)}}function Rs(e,t){if(1&e&&(r.Pc(0,ys,3,1,"ng-container",0),r.Pc(1,ks,4,5,"ng-template",null,19,r.Qc),r.Pc(3,Is,12,3,"ng-container",4),r.oc(4,"pipeFunction"),r.oc(5,"pipeFunction")),2&e){const e=r.Fc(2),t=r.nc().$implicit,n=r.nc(4);r.uc("ngIf",t.value.error)("ngIfElse",e),r.Db(3),r.uc("ngIf",!r.qc(4,3,t.value.info,n.isEmpty)||!r.qc(5,6,t.value.smart,n.isEmpty))}}function Ps(e,t){if(1&e&&(r.Xb(0,"li",16),r.Xb(1,"a",17),r.Rc(2),r.Wb(),r.Pc(3,Rs,6,9,"ng-template",18),r.Wb()),2&e){const e=t.$implicit;r.Db(2),r.Uc("",e.value.device," (",e.value.identifier,")")}}function Fs(e,t){if(1&e&&(r.Vb(0),r.Xb(1,"ul",12,13),r.Pc(3,Ps,4,2,"li",14),r.oc(4,"keyvalue"),r.Wb(),r.Sb(5,"div",15),r.Ub()),2&e){const e=r.Fc(2),t=r.nc(3);r.Db(3),r.uc("ngForOf",r.pc(4,2,t.data)),r.Db(2),r.uc("ngbNavOutlet",e)}}function Ws(e,t){if(1&e&&(r.Vb(0),r.Pc(1,vs,2,0,"cd-alert-panel",9),r.oc(2,"pipeFunction"),r.Pc(3,Fs,6,4,"ng-container",4),r.oc(4,"pipeFunction"),r.Ub()),2&e){const e=r.nc(2);r.Db(1),r.uc("ngIf",r.qc(2,2,e.data,e.isEmpty)),r.Db(2),r.uc("ngIf",!r.qc(4,5,e.data,e.isEmpty))}}function js(e,t){if(1&e&&(r.Vb(0),r.Pc(1,gs,2,0,"cd-alert-panel",2),r.Pc(2,_s,2,0,"cd-alert-panel",3),r.Pc(3,Ws,5,8,"ng-container",4),r.Ub()),2&e){const e=r.nc();r.Db(1),r.uc("ngIf",e.error),r.Db(1),r.uc("ngIf",e.incompatible),r.Db(1),r.uc("ngIf",!e.error&&!e.incompatible)}}function Ys(e,t){1&e&&(r.Xb(0,"cd-loading-panel"),r.bc(1,46),r.Wb())}let Ns=(()=>{class e{constructor(e,t){this.osdService=e,this.hostService=t,this.osdId=null,this.hostname=null,this.loading=!1,this.incompatible=!1,this.error=!1,this.data={},this.isEmpty=Wt.a.isEmpty}isSmartError(e){return void 0!==Wt.a.get(e,"error")}isNvmeSmartData(e){return"nvme"===Wt.a.get(e,"device.protocol","").toLowerCase()}isHddSmartData(e){return"ata"===Wt.a.get(e,"device.protocol","").toLowerCase()}fetchData(e){const t={};Wt.a.each(e,(e,n)=>{if(this.isSmartError(e)){let i="";i=-22===e.smartctl_error_code?"Smartctl has received an unknown argument (error code " + e.smartctl_error_code + "). You may be using an incompatible version of smartmontools. Version >= 7.0 of smartmontools is required to successfully retrieve data.":"An error with error code " + e.smartctl_error_code + " occurred.",t[n]={error:e.error,smartctl_error_code:e.smartctl_error_code,smartctl_output:e.smartctl_output,userMessage:i,device:e.dev,identifier:e.nvme_vendor}}else 1!==e.json_format_version[0]?this.incompatible=!0:this.isHddSmartData(e)?t[n]=this.extractHddData(e):this.isNvmeSmartData(e)&&(t[n]=this.extractNvmeData(e))}),this.data=t,this.loading=!1}extractNvmeData(e){return{info:Wt.a.omitBy(e,(e,t)=>["nvme_smart_health_information_log"].includes(t)),smart:{nvmeData:e.nvme_smart_health_information_log},device:e.device.name,identifier:e.serial_number}}extractHddData(e){const t=Wt.a.omitBy(e,(e,t)=>["ata_smart_attributes","ata_smart_selective_self_test_log","ata_smart_data"].includes(t));return{info:t,smart:{attributes:e.ata_smart_attributes,data:e.ata_smart_data},device:t.device.name,identifier:t.serial_number}}updateData(){this.loading=!0,null!==this.osdId?this.osdService.getSmartData(this.osdId).subscribe({next:this.fetchData.bind(this),error:e=>{e.preventDefault(),this.error=e,this.loading=!1}}):null!==this.hostname&&this.hostService.getSmartData(this.hostname).subscribe({next:this.fetchData.bind(this),error:e=>{e.preventDefault(),this.error=e,this.loading=!1}})}ngOnInit(){this.smartDataColumns=[{prop:"id",name:"ID"},{prop:"name",name:"Name"},{prop:"raw.value",name:"Raw"},{prop:"thresh",name:"Threshold"},{prop:"value",name:"Value"},{prop:"when_failed",name:"When Failed"},{prop:"worst",name:"Worst"}]}ngOnChanges(e){this.data={},e.osdId?this.osdId=e.osdId.currentValue:e.hostname&&(this.hostname=e.hostname.currentValue),this.updateData()}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Vi),r.Rb(Xi))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-smart-list"]],viewQuery:function(e,t){if(1&e&&r.Wc(bs,1),2&e){let e;r.Ec(e=r.mc())&&(t.nav=e.first)}},inputs:{osdId:"osdId",hostname:"hostname"},features:[r.Bb],decls:3,vars:2,consts:function(){let e,t,n,i,r,s,o,a,c,l,u,d,h,f;return e="Failed to retrieve SMART data.",t="The data received has the JSON format version 2.x and is currently incompatible with the dashboard.",n="No SMART data available.",i="SMART overall-health self-assessment test result",r="unknown",s="SMART overall-health self-assessment test result",o="passed",a="SMART overall-health self-assessment test result",c="failed",l="Device Information",u="SMART",d="No device information available for this device.",h="No SMART data available for this device.",f="SMART data is loading.",[[4,"ngIf","ngIfElse"],["isLoading",""],["type","error",4,"ngIf"],["type","warning",4,"ngIf"],[4,"ngIf"],["type","error"],e,["type","warning"],t,["type","info",4,"ngIf"],["type","info"],n,["ngbNav","",1,"nav-tabs"],["nav","ngbNav"],["ngbNavItem","",4,"ngFor","ngForOf"],[3,"ngbNavOutlet"],["ngbNavItem",""],["ngbNavLink",""],["ngbNavContent",""],["noError",""],["id","alert-error","type","warning"],["id","alert-self-test-unknown","size","slim","type","warning","title",i,4,"ngIf","ngIfElse"],["hasSmartStatus",""],["id","alert-self-test-unknown","size","slim","type","warning","title",i],r,["selfTestFailed",""],["id","alert-self-test-passed","size","slim","type","info","title",s],o,["id","alert-self-test-failed","size","slim","type","warning","title",a],c,["innerNav","ngbNav"],[3,"ngbNavItem"],l,u,[3,"renderObjects","data",4,"ngIf"],["id","alert-device-info-unavailable","type","info",4,"ngIf"],[3,"renderObjects","data"],["id","alert-device-info-unavailable","type","info"],d,["updateSelectionOnRefresh","never",3,"data","columns",4,"ngIf"],["updateSelectionOnRefresh","never",3,"renderObjects","data",4,"ngIf"],["id","alert-device-smart-data-unavailable","type","info",4,"ngIf"],["updateSelectionOnRefresh","never",3,"data","columns"],["updateSelectionOnRefresh","never",3,"renderObjects","data"],["id","alert-device-smart-data-unavailable","type","info"],h,f]},template:function(e,t){if(1&e&&(r.Pc(0,js,4,3,"ng-container",0),r.Pc(1,Ys,2,0,"ng-template",null,1,r.Qc)),2&e){const e=r.Fc(2);r.uc("ngIf",!t.loading)("ngIfElse",e)}},directives:[s.r,wr.a,Jt.p,s.q,Jt.u,Jt.r,Jt.s,Jt.q,en.a,Vt.a,ms.a],pipes:[Ur.b,s.k],styles:[""]}),e})();function zs(e,t){if(1&e&&r.Sb(0,"cd-device-list",14),2&e){const e=r.nc(2);r.uc("hostname",e.selection.hostname)}}function $s(e,t){if(1&e&&r.Sb(0,"cd-inventory",14),2&e){const e=r.nc(3);r.uc("hostname",e.selectedHostname)}}function Hs(e,t){1&e&&(r.Xb(0,"li",15),r.Xb(1,"a",5),r.bc(2,16),r.Wb(),r.Pc(3,$s,1,1,"ng-template",7),r.Wb())}function Xs(e,t){if(1&e&&r.Sb(0,"cd-service-daemon-list",19),2&e){const e=r.nc(3);r.uc("hostname",e.selectedHostname)}}function Vs(e,t){1&e&&(r.Xb(0,"li",17),r.Xb(1,"a",5),r.bc(2,18),r.Wb(),r.Pc(3,Xs,1,1,"ng-template",7),r.Wb())}function Bs(e,t){if(1&e&&r.Sb(0,"cd-grafana",22),2&e){const e=r.nc(3);r.uc("grafanaPath","host-details?var-ceph_hosts="+e.selectedHostname)}}function Us(e,t){1&e&&(r.Xb(0,"li",20),r.Xb(1,"a",5),r.bc(2,21),r.Wb(),r.Pc(3,Bs,1,1,"ng-template",7),r.Wb())}function qs(e,t){if(1&e&&r.Sb(0,"cd-smart-list",14),2&e){const e=r.nc(3);r.uc("hostname",e.selectedHostname)}}function Gs(e,t){if(1&e&&r.Pc(0,qs,1,1,"cd-smart-list",23),2&e){const e=r.nc(2),t=r.Fc(2);r.uc("ngIf",e.selectedHostname)("ngIfElse",t)}}function Js(e,t){if(1&e&&(r.Vb(0),r.Xb(1,"ul",2,3),r.Xb(3,"li",4),r.Xb(4,"a",5),r.bc(5,6),r.Wb(),r.Pc(6,zs,1,1,"ng-template",7),r.Wb(),r.Pc(7,Hs,4,0,"li",8),r.Pc(8,Vs,4,0,"li",9),r.Pc(9,Us,4,0,"li",10),r.Xb(10,"li",11),r.Xb(11,"a",5),r.bc(12,12),r.Wb(),r.Pc(13,Gs,1,2,"ng-template",7),r.Wb(),r.Wb(),r.Sb(14,"div",13),r.Ub()),2&e){const e=r.Fc(2),t=r.nc();r.Db(7),r.uc("ngIf",t.permissions.hosts.read),r.Db(1),r.uc("ngIf",t.permissions.hosts.read),r.Db(1),r.uc("ngIf",t.permissions.grafana.read),r.Db(5),r.uc("ngbNavOutlet",e)}}function Ks(e,t){1&e&&(r.Xb(0,"cd-alert-panel",24),r.bc(1,25),r.Wb())}let Qs=(()=>{class e{get selectedHostname(){return void 0!==this.selection?this.selection.hostname:null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-host-details"]],inputs:{permissions:"permissions",selection:"selection"},decls:3,vars:1,consts:function(){let e,t,n,i,r,s;return e="Devices",t="Device health",n="Physical Disks",i="Daemons",r="Performance Details",s="No hostname found.",[[4,"ngIf"],["noHostname",""],["ngbNav","","cdStatefulTab","host-details",1,"nav-tabs"],["nav","ngbNav"],["ngbNavItem","devices"],["ngbNavLink",""],e,["ngbNavContent",""],["ngbNavItem","inventory",4,"ngIf"],["ngbNavItem","daemons",4,"ngIf"],["ngbNavItem","performance-details",4,"ngIf"],["ngbNavItem","device-health"],t,[3,"ngbNavOutlet"],[3,"hostname"],["ngbNavItem","inventory"],n,["ngbNavItem","daemons"],i,["flag","hostDetails",3,"hostname"],["ngbNavItem","performance-details"],r,["uid","rtOg0AiWz","grafanaStyle","four",3,"grafanaPath"],[3,"hostname",4,"ngIf","ngIfElse"],["type","error"],s]},template:function(e,t){1&e&&(r.Pc(0,Js,15,4,"ng-container",0),r.Pc(1,Ks,2,0,"ng-template",null,1,r.Qc)),2&e&&r.uc("ngIf",t.selection)},directives:[s.r,Jt.p,Kt.a,Jt.r,Jt.s,Jt.q,Jt.u,Rr,Xr,ps,jn.a,Ns,wr.a],styles:[""]}),e})();const Zs=["servicesTpl"],eo=["maintenanceConfirmTpl"],to=["orchTmpl"],no=["flashTmpl"];function io(e,t){if(1&e){const e=r.Yb();r.Xb(0,"cd-table",13,14),r.lc("fetchData",function(t){return r.Ic(e),r.nc().getHosts(t)})("setExpandedRow",function(t){return r.Ic(e),r.nc().setExpandedRow(t)})("updateSelection",function(t){return r.Ic(e),r.nc().updateSelection(t)}),r.Xb(2,"div",15),r.Sb(3,"cd-table-actions",16),r.Wb(),r.Sb(4,"cd-host-details",17),r.Wb()}if(2&e){const e=r.nc();r.uc("data",e.hosts)("columns",e.columns)("hasDetails",e.hasTableDetails)("toolHeader",!e.hideToolHeader),r.Db(3),r.uc("permission",e.permissions.hosts)("selection",e.selection)("tableActions",e.tableActions),r.Db(1),r.uc("permissions",e.permissions)("selection",e.expandedRow)}}function ro(e,t){1&e&&r.Sb(0,"cd-grafana",19),2&e&&r.uc("grafanaPath","host-overview?")}function so(e,t){1&e&&(r.Xb(0,"li",2),r.Xb(1,"a",3),r.bc(2,18),r.Wb(),r.Pc(3,ro,1,1,"ng-template",5),r.Wb())}const oo=function(e){return[e]};function ao(e,t){if(1&e&&(r.Xb(0,"a",23),r.Rc(1),r.Wb()),2&e){const e=r.nc().$implicit,t=r.nc(2);r.uc("routerLink",r.zc(4,oo,e.cdLink))("queryParams",t.cdParams),r.Db(1),r.Uc("",e.type,".",e.id,"")}}function co(e,t){if(1&e&&(r.Xb(0,"span"),r.Rc(1),r.Wb()),2&e){const e=r.nc().$implicit;r.Db(1),r.Uc(" ",e.type,".",e.id," ")}}function lo(e,t){1&e&&(r.Vb(0),r.Rc(1,", "),r.Ub())}function uo(e,t){if(1&e&&(r.Xb(0,"span"),r.Pc(1,ao,2,6,"a",21),r.Pc(2,co,2,2,"span",22),r.Pc(3,lo,2,0,"ng-container",22),r.Wb()),2&e){const e=t.$implicit,n=t.last;r.Db(1),r.uc("ngIf",e.canRead),r.Db(1),r.uc("ngIf",!e.canRead),r.Db(1),r.uc("ngIf",!n)}}function ho(e,t){1&e&&r.Pc(0,uo,4,3,"span",20),2&e&&r.uc("ngForOf",t.value)}function fo(e,t){if(1&e&&(r.Xb(0,"ul"),r.Xb(1,"li"),r.bc(2,24),r.Wb(),r.Wb()),2&e){const e=r.nc().$implicit;r.Db(2),r.fc(e),r.cc(2)}}function po(e,t){if(1&e&&(r.Xb(0,"div"),r.Pc(1,fo,3,1,"ul",22),r.Wb()),2&e){const e=t.last,n=r.nc(2);r.Db(1),r.uc("ngIf",!e||"1"==n.errorMessage.length)}}function mo(e,t){1&e&&(r.Vb(0),r.bc(1,25),r.Ub())}function bo(e,t){if(1&e&&(r.Pc(0,po,2,1,"div",20),r.Pc(1,mo,2,0,"ng-container",22)),2&e){const e=r.nc();r.uc("ngForOf",e.errorMessage),r.Db(1),r.uc("ngIf",e.showSubmit)}}function go(e,t){1&e&&(r.Xb(0,"span",26),r.bc(1,27),r.Wb())}function _o(e,t){1&e&&(r.Xb(0,"span",28),r.bc(1,29),r.Wb())}const vo="hosts";let yo=(()=>{class e extends zt.a{constructor(e,t,n,i,r,s,o,a,c){super(),this.authStorageService=e,this.dimlessBinary=t,this.hostService=n,this.actionLabels=i,this.modalService=r,this.taskWrapper=s,this.router=o,this.notificationService=a,this.orchService=c,this.sub=new ir.a,this.hiddenColumns=[],this.hideTitle=!1,this.hideSubmitBtn=!1,this.hasTableDetails=!0,this.hideToolHeader=!1,this.showGeneralActionsOnly=!1,this.columns=[],this.hosts=[],this.isLoadingHosts=!1,this.cdParams={fromLink:"/hosts"},this.selection=new Ht.a,this.isExecuting=!1,this.icons=_n.a,this.messages={nonOrchHost:"The feature is disabled because the selected host is not managed by Orchestrator."},this.actionOrchFeatures={add:[or.HOST_ADD],edit:[or.HOST_LABEL_ADD,or.HOST_LABEL_REMOVE],remove:[or.HOST_REMOVE],maintenance:[or.HOST_MAINTENANCE_ENTER,or.HOST_MAINTENANCE_EXIT]},this.permissions=this.authStorageService.getPermissions(),this.tableActions=[{name:this.actionLabels.ADD,permission:"create",icon:_n.a.add,click:()=>this.router.url.includes("/hosts")?this.router.navigate([vo,{outlets:{modal:[gn.e.ADD]}}]):this.bsModalRef=this.modalService.show(yr),disable:e=>this.getDisable("add",e)},{name:this.actionLabels.EDIT,permission:"update",icon:_n.a.edit,click:()=>this.editAction(),disable:e=>this.getDisable("edit",e)},{name:this.actionLabels.REMOVE,permission:"delete",icon:_n.a.destroy,click:()=>this.deleteAction(),disable:e=>this.getDisable("remove",e)},{name:this.actionLabels.ENTER_MAINTENANCE,permission:"update",icon:_n.a.enter,click:()=>this.hostMaintenance(),disable:e=>this.getDisable("maintenance",e)||this.isExecuting||this.enableButton,visible:()=>!this.showGeneralActionsOnly},{name:this.actionLabels.EXIT_MAINTENANCE,permission:"update",icon:_n.a.exit,click:()=>this.hostMaintenance(),disable:e=>this.getDisable("maintenance",e)||this.isExecuting||!this.enableButton,visible:()=>!this.showGeneralActionsOnly}]}ngOnInit(){this.columns=[{name:"Hostname",prop:"hostname",flexGrow:1},{name:"Services",prop:"services",flexGrow:2,cellTemplate:this.servicesTpl},{name:"Labels",prop:"labels",flexGrow:1,cellTransformation:$t.a.badge,customTemplateConfig:{class:"badge-dark"}},{name:"Status",prop:"status",flexGrow:1,cellTransformation:$t.a.badge,customTemplateConfig:{map:{maintenance:{class:"badge-warning"}}}},{name:"Model",prop:"model",flexGrow:1},{name:"CPUs",prop:"cpu_count",flexGrow:.3},{name:"Cores",prop:"cpu_cores",flexGrow:.3},{name:"Total Memory",prop:"memory_total_bytes",pipe:this.dimlessBinary,flexGrow:.4},{name:"Raw Capacity",prop:"raw_capacity",pipe:this.dimlessBinary,flexGrow:.5},{name:"HDDs",prop:"hdd_count",flexGrow:.3},{name:"Flash",prop:"flash_count",headerTemplate:this.flashTmpl,flexGrow:.3},{name:"NICs",prop:"nic_count",flexGrow:.3}],this.columns=this.columns.filter(e=>!this.hiddenColumns.includes(e.prop))}ngOnDestroy(){this.sub.unsubscribe()}updateSelection(e){this.selection=e,this.enableButton=!1,this.selection.hasSelection&&"maintenance"===this.selection.first().status&&(this.enableButton=!0)}editAction(){this.hostService.getLabels().subscribe(e=>{const t=this.selection.first(),n=new Set(e.concat(this.hostService.predefinedLabels)),i=Array.from(n).map(e=>({enabled:!0,name:e}));this.modalService.show(Mn.a,{titleText:"Edit Host: " + t.hostname + "",fields:[{type:"select-badges",name:"labels",value:t.labels,label:"Labels",typeConfig:{customBadges:!0,options:i,messages:new sr.a({empty:"There are no labels.",filter:"Filter or add labels",add:"Add label"})}}],submitButtonText:"Edit Host",onSubmit:e=>{this.hostService.update(t.hostname,!0,e.labels).subscribe(()=>{this.notificationService.show(vn.a.success,"Updated Host \"" + t.hostname + "\""),this.table.refreshBtn()})}})})}hostMaintenance(){this.isExecuting=!0;const e=this.selection.first();"maintenance"!==e.status?this.hostService.update(e.hostname,!1,[],!0).subscribe(()=>{this.isExecuting=!1,this.notificationService.show(vn.a.success,"\"" + e.hostname + "\" moved to maintenance"),this.table.refreshBtn()},t=>{if(this.isExecuting=!1,this.errorMessage=t.error.detail.split(/\n/),t.preventDefault(),!t.error.detail.includes("WARNING")||t.error.detail.includes("It is NOT safe to stop")||t.error.detail.includes("ALERT")||t.error.detail.includes("unsafe to stop"))this.notificationService.show(vn.a.error,"\"" + e.hostname + "\" cannot be put into maintenance","" + t.error.detail + "");else{const t={titleText:"Warning",buttonText:"Continue",warning:!0,bodyTpl:this.maintenanceConfirmTpl,showSubmit:!0,onSubmit:()=>{this.hostService.update(e.hostname,!1,[],!0,!0).subscribe(()=>{this.modalRef.close()},()=>this.modalRef.close())}};this.modalRef=this.modalService.show(Tn.a,t)}}):this.hostService.update(e.hostname,!1,[],!0).subscribe(()=>{this.isExecuting=!1,this.notificationService.show(vn.a.success,"\"" + e.hostname + "\" has exited maintenance"),this.table.refreshBtn()})}getDisable(e,t){if("remove"===e||"edit"===e||"maintenance"===e){if(!(null==t?void 0:t.hasSingleSelection))return!0;if(!Wt.a.every(t.selected,"sources.orchestrator"))return this.messages.nonOrchHost}return this.orchService.getTableActionDisableDesc(this.orchStatus,this.actionOrchFeatures[e])}deleteAction(){const e=this.selection.first().hostname;this.modalRef=this.modalService.show(bn.a,{itemDescription:"Host",itemNames:[e],actionDescription:"remove",submitActionObservable:()=>this.taskWrapper.wrapTaskAroundCall({task:new Bi.a("host/remove",{hostname:e}),call:this.hostService.delete(e)})})}checkHostsFactsAvailable(){const e=this.orchStatus.features;return!Wt.a.isEmpty(e)&&!!e.get_facts.available}transformHostsData(){if(this.checkHostsFactsAvailable())Wt.a.forEach(this.hosts,e=>{e.memory_total_bytes=1024*e.memory_total_kb,e.raw_capacity=e.hdd_capacity_bytes+e.flash_capacity_bytes});else for(let e=4;e<this.columns.length;e++)this.columns[e].prop="",this.columns[e].cellTemplate=this.orchTmpl}getHosts(e){if(this.isLoadingHosts)return;const t={mds:"cephfs",mon:"monitor",osd:"osd",rgw:"rgw","rbd-mirror":"rbdMirroring",mgr:"manager","tcmu-runner":"iscsi"};this.isLoadingHosts=!0,this.sub=this.orchService.status().pipe(Object(Ni.a)(e=>{this.orchStatus=e;const t=this.checkHostsFactsAvailable();return this.hostService.list(`${t}`)}),Object(Ii.a)(e=>e.map(e=>(e.services.map(e=>{e.cdLink=`/perf_counters/${e.type}/${encodeURIComponent(e.id)}`;const n=this.permissions[t[e.type]];return e.canRead=!!n&&n.read,e}),e)))).subscribe(e=>{this.hosts=e,this.transformHostsData(),this.isLoadingHosts=!1},()=>{this.isLoadingHosts=!1,e.error()})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Gt.a),r.Rb(Qt.a),r.Rb(Xi),r.Rb(gn.b),r.Rb(yn.a),r.Rb(Ui.a),r.Rb(Pt.e),r.Rb(wn.a),r.Rb(rr))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-hosts"]],viewQuery:function(e,t){if(1&e&&(r.Wc(Vt.a,1),r.Wc(Zs,3),r.Wc(eo,3),r.Wc(to,3),r.Wc(no,3)),2&e){let e;r.Ec(e=r.mc())&&(t.table=e.first),r.Ec(e=r.mc())&&(t.servicesTpl=e.first),r.Ec(e=r.mc())&&(t.maintenanceConfirmTpl=e.first),r.Ec(e=r.mc())&&(t.orchTmpl=e.first),r.Ec(e=r.mc())&&(t.flashTmpl=e.first)}},inputs:{hiddenColumns:"hiddenColumns",hideTitle:"hideTitle",hideSubmitBtn:"hideSubmitBtn",hasTableDetails:"hasTableDetails",hideToolHeader:"hideToolHeader",showGeneralActionsOnly:"showGeneralActionsOnly"},features:[r.Cb([{provide:ar.a,useValue:new ar.a(vo)}]),r.Ab],decls:17,vars:2,consts:function(){let e,t,n,i,r,s,o,a;return e="Hosts List",t="Overall Performance",n="" + "\ufffd0\ufffd" + "",i="Are you sure you want to continue?",r="Data will be available only if Orchestrator is available.",s="Unavailable",o="SSD, NVMEs",a="Flash",[["ngbNav","",1,"nav-tabs"],["nav","ngbNav"],["ngbNavItem",""],["ngbNavLink",""],e,["ngbNavContent",""],["ngbNavItem","",4,"ngIf"],[3,"ngbNavOutlet"],["servicesTpl",""],["maintenanceConfirmTpl",""],["orchTmpl",""],["flashTmpl",""],["name","modal"],["columnMode","flex","selectionType","single",3,"data","columns","hasDetails","toolHeader","fetchData","setExpandedRow","updateSelection"],["table",""],[1,"table-actions","btn-toolbar"],["id","host-actions",1,"btn-group",3,"permission","selection","tableActions"],["cdTableDetail","",3,"permissions","selection"],t,["uid","y0KGL0iZz","grafanaStyle","two",3,"grafanaPath"],[4,"ngFor","ngForOf"],["class","service-link",3,"routerLink","queryParams",4,"ngIf"],[4,"ngIf"],[1,"service-link",3,"routerLink","queryParams"],n,i,["ngbTooltip",r],s,["ngbTooltip",o],a]},template:function(e,t){if(1&e&&(r.Xb(0,"ul",0,1),r.Xb(2,"li",2),r.Xb(3,"a",3),r.bc(4,4),r.Wb(),r.Pc(5,io,5,9,"ng-template",5),r.Wb(),r.Pc(6,so,4,0,"li",6),r.Wb(),r.Sb(7,"div",7),r.Pc(8,ho,1,1,"ng-template",null,8,r.Qc),r.Pc(10,bo,2,2,"ng-template",null,9,r.Qc),r.Pc(12,go,2,0,"ng-template",null,10,r.Qc),r.Pc(14,_o,2,0,"ng-template",null,11,r.Qc),r.Sb(16,"router-outlet",12)),2&e){const e=r.Fc(1);r.Db(6),r.uc("ngIf",t.permissions.grafana.read),r.Db(1),r.uc("ngbNavOutlet",e)}},directives:[Jt.p,Jt.r,Jt.s,Jt.q,s.r,Jt.u,Pt.j,Vt.a,Dn.a,Qs,jn.a,s.q,Pt.h,Jt.D],styles:[""]}),e})();var wo=n("2EZI");let Do=(()=>{class e{constructor(e,t,n,i,s){this.activeModal=e,this.actionLabels=t,this.formBuilder=n,this.osdService=i,this.taskWrapper=s,this.driveGroups=[],this.submitAction=new r.p,this.action=t.CREATE,this.createForm()}createForm(){this.formGroup=this.formBuilder.group({})}onSubmit(){this.taskWrapper.wrapTaskAroundCall({task:new Bi.a("osd/"+gn.e.CREATE,{tracking_id:Wt.a.join(Wt.a.map(this.driveGroups,"service_id"),", ")}),call:this.osdService.create(this.driveGroups)}).subscribe({error:()=>{this.formGroup.setErrors({cdSubmitButton:!0})},complete:()=>{this.submitAction.emit(),this.activeModal.close()}})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Jt.a),r.Rb(gn.b),r.Rb(wo.a),r.Rb(Vi),r.Rb(Ui.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-osd-creation-preview-modal"]],inputs:{driveGroups:"driveGroups"},outputs:{submitAction:"submitAction"},decls:15,vars:9,consts:function(){let e,t;return e="OSD creation preview",t="DriveGroups",[[3,"modalRef"],[1,"modal-title"],e,[1,"modal-content"],["novalidate","",3,"formGroup"],["frm","ngForm"],[1,"modal-body"],t,[1,"modal-footer"],[3,"form","submitText","submitActionEvent"]]},template:function(e,t){1&e&&(r.Xb(0,"cd-modal",0),r.Vb(1,1),r.bc(2,2),r.Ub(),r.Vb(3,3),r.Xb(4,"form",4,5),r.Xb(6,"div",6),r.Xb(7,"h4"),r.bc(8,7),r.Wb(),r.Xb(9,"pre"),r.Rc(10),r.oc(11,"json"),r.Wb(),r.Wb(),r.Xb(12,"div",8),r.Xb(13,"cd-form-button-panel",9),r.lc("submitActionEvent",function(){return t.onSubmit()}),r.oc(14,"titlecase"),r.Wb(),r.Wb(),r.Wb(),r.Ub(),r.Wb()),2&e&&(r.uc("modalRef",t.activeModal),r.Db(4),r.uc("formGroup",t.formGroup),r.Db(6),r.Sc(r.pc(11,5,t.driveGroups)),r.Db(3),r.uc("form",t.formGroup)("submitText",r.pc(14,7,t.action)))},directives:[ur.a,xn.B,xn.r,Qn.a,xn.k,ti.a],pipes:[s.j,s.A],styles:[""]}),e})();const So=["inventoryDevices"];function xo(e,t){if(1&e&&(r.Xb(0,"span",16),r.Rc(1),r.Wb()),2&e){const e=t.$implicit;r.Db(1),r.Tc(" ",e," ")}}function ko(e,t){if(1&e&&(r.Xb(0,"cd-alert-panel",13),r.Vb(1),r.bc(2,14),r.Ub(),r.Pc(3,xo,2,1,"span",15),r.Wb()),2&e){const e=r.nc();r.uc("showTitle",!1),r.Db(3),r.uc("ngForOf",e.requiredFilters)}}function To(e,t){if(1&e&&(r.Xb(0,"div"),r.Xb(1,"p",17),r.Xb(2,"span"),r.bc(3,18),r.oc(4,"dimlessBinary"),r.Wb(),r.Wb(),r.Wb()),2&e){const e=r.nc();r.Db(4),r.fc(e.filteredDevices.length)(r.pc(4,2,e.capacity)),r.cc(3)}}const Mo=function(){return["available","osd_ids"]};let Co=(()=>{class e{constructor(e,t,n,i){this.formBuilder=e,this.activeModal=t,this.actionLabels=n,this.wizardStepService=i,this.submitAction=new r.p,this.icons=_n.a,this.filterColumns=[],this.devices=[],this.filteredDevices=[],this.capacity=0,this.canSubmit=!1,this.requiredFilters=[],this.action=n.ADD,this.createForm()}ngAfterViewInit(){const e=Wt.a.filter(this.inventoryDevices.columns,e=>this.filterColumns.includes(e.prop)&&"hostname"!==e.prop);setTimeout(()=>{this.requiredFilters=Wt.a.map(e,"name")},0)}createForm(){this.formGroup=this.formBuilder.group({})}onFilterChange(e){if(this.capacity=0,this.canSubmit=!1,Wt.a.isEmpty(e.filters))this.filteredDevices=[],this.event=void 0;else{const t=e.filters.filter(e=>"hostname"!==e.prop);this.canSubmit=!Wt.a.isEmpty(t),this.filteredDevices=e.data,this.capacity=Wt.a.sumBy(this.filteredDevices,"sys_api.size"),this.event=e}}onSubmit(){this.submitAction.emit(this.event),this.activeModal.close()}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(wo.a),r.Rb(Jt.a),r.Rb(gn.b),r.Rb(Ji))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-osd-devices-selection-modal"]],viewQuery:function(e,t){if(1&e&&r.Wc(So,1),2&e){let e;r.Ec(e=r.mc())&&(t.inventoryDevices=e.first)}},outputs:{submitAction:"submitAction"},decls:14,vars:15,consts:function(){let e,t,n;return e="" + "\ufffd0\ufffd" + " devices",t="At least one of these filters must be applied in order to proceed:",n="Number of devices: " + "\ufffd0\ufffd" + ". Raw capacity: " + "\ufffd1\ufffd" + ".",[[3,"modalRef"],[1,"modal-title"],e,[1,"modal-content"],["novalidate","",3,"formGroup"],["frm","ngForm"],[1,"modal-body"],["type","warning","size","slim",3,"showTitle",4,"ngIf"],[3,"devices","filterColumns","showAvailDeviceOnly","hiddenColumns","filterChange"],["inventoryDevices",""],[4,"ngIf"],[1,"modal-footer"],[3,"form","disabled","submitText","submitActionEvent"],["type","warning","size","slim",3,"showTitle"],t,["class","badge badge-dark ml-2",4,"ngFor","ngForOf"],[1,"badge","badge-dark","ml-2"],[1,"text-center"],n]},template:function(e,t){1&e&&(r.Xb(0,"cd-modal",0),r.Vb(1,1),r.bc(2,2),r.Ub(),r.Vb(3,3),r.Xb(4,"form",4,5),r.Xb(6,"div",6),r.Pc(7,ko,4,2,"cd-alert-panel",7),r.Xb(8,"cd-inventory-devices",8,9),r.lc("filterChange",function(e){return t.onFilterChange(e)}),r.Wb(),r.Pc(10,To,5,4,"div",10),r.Wb(),r.Xb(11,"div",11),r.Xb(12,"cd-form-button-panel",12),r.lc("submitActionEvent",function(){return t.onSubmit()}),r.oc(13,"titlecase"),r.Wb(),r.Wb(),r.Wb(),r.Ub(),r.Wb()),2&e&&(r.uc("modalRef",t.activeModal),r.Db(2),r.fc(t.deviceType),r.cc(2),r.Db(2),r.uc("formGroup",t.formGroup),r.Db(3),r.uc("ngIf",!t.canSubmit),r.Db(1),r.uc("devices",t.devices)("filterColumns",t.filterColumns)("showAvailDeviceOnly",!0)("hiddenColumns",r.yc(14,Mo)),r.Db(2),r.uc("ngIf",t.canSubmit),r.Db(2),r.uc("form",t.formGroup)("disabled",!t.canSubmit||0===t.filteredDevices.length)("submitText",r.pc(13,12,t.action)))},directives:[ur.a,xn.B,xn.r,Qn.a,xn.k,s.r,Yr,ti.a,wr.a,s.q],pipes:[s.A,Qt.a],styles:[""]}),e})();function Oo(e,t){1&e&&(r.Xb(0,"span"),r.bc(1,7),r.Wb())}function Lo(e,t){1&e&&(r.Xb(0,"span"),r.bc(1,8),r.Wb())}function Eo(e,t){1&e&&(r.Xb(0,"span"),r.bc(1,9),r.Wb())}const Ao=function(e){return[e]};function Io(e,t){if(1&e){const e=r.Yb();r.Vb(0),r.Xb(1,"button",10),r.lc("click",function(){return r.Ic(e),r.nc().showSelectionModal()}),r.Sb(2,"i",11),r.Vb(3),r.bc(4,12),r.Ub(),r.Wb(),r.Ub()}if(2&e){const e=r.nc();r.Db(1),r.uc("title",e.addButtonTooltip)("disabled",0===e.availDevices.length||!e.canSelect||e.expansionCanSelect),r.Db(1),r.uc("ngClass",r.zc(3,Ao,e.icons.add))}}function Ro(e,t){if(1&e&&(r.Xb(0,"span"),r.Xb(1,"span",19),r.Rc(2),r.Wb(),r.Wb()),2&e){const e=t.$implicit;r.Db(2),r.Uc("",e.name,": ",e.value.formatted,"")}}function Po(e,t){if(1&e&&(r.Xb(0,"div",20),r.Xb(1,"span"),r.bc(2,21),r.oc(3,"dimlessBinary"),r.Wb(),r.Wb()),2&e){const e=r.nc(2);r.Db(3),r.fc(r.pc(3,1,e.capacity)),r.cc(2)}}const Fo=function(){return["available","osd_ids"]},Wo=function(){return[]};function jo(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div",13),r.Pc(1,Ro,3,2,"span",14),r.Xb(2,"a",15),r.lc("click",function(){return r.Ic(e),r.nc().clearDevices(),!1}),r.Sb(3,"i",11),r.Vb(4),r.bc(5,16),r.Ub(),r.Wb(),r.Wb(),r.Xb(6,"div"),r.Sb(7,"cd-inventory-devices",17),r.Wb(),r.Pc(8,Po,4,3,"div",18)}if(2&e){const e=r.nc();r.Db(1),r.uc("ngForOf",e.appliedFilters),r.Db(2),r.uc("ngClass",r.zc(6,Ao,e.icons.clearFilters)),r.Db(4),r.uc("devices",e.devices)("hiddenColumns",r.yc(8,Fo))("filterColumns",r.yc(9,Wo)),r.Db(1),r.uc("ngIf","data"===e.type)}}let Yo=(()=>{class e{constructor(e,t,n){this.modalService=e,this.osdService=t,this.router=n,this.selected=new r.p,this.cleared=new r.p,this.icons=_n.a,this.devices=[],this.capacity=0,this.appliedFilters=new Array,this.expansionCanSelect=!1,this.tooltips={noAvailDevices:"No available devices",addPrimaryFirst:"Please add primary devices first",addByFilters:"Add devices by using filters"},this.isOsdPage=this.router.url.includes("/osd")}ngOnInit(){var e,t,n;this.isOsdPage||(this.devices=(null===(e=this.osdService)||void 0===e?void 0:e.osdDevices[this.type])?this.osdService.osdDevices[this.type]:[],this.capacity=Wt.a.sumBy(this.devices,"sys_api.size"),this.expansionCanSelect=!!(null===(t=this.osdService)||void 0===t?void 0:t.osdDevices)&&(null===(n=this.osdService)||void 0===n?void 0:n.osdDevices.disableSelect)),this.updateAddButtonTooltip()}ngOnChanges(){this.updateAddButtonTooltip()}showSelectionModal(){let e=["human_readable_type","sys_api.vendor","sys_api.model","sys_api.size"];"data"===this.type&&(e=["hostname",...e]),this.modalService.show(Co,{hostname:this.hostname,deviceType:this.name,devices:this.availDevices,filterColumns:e},{size:"xl"}).componentInstance.submitAction.subscribe(e=>{this.devices=e.data,this.capacity=Wt.a.sumBy(this.devices,"sys_api.size"),this.appliedFilters=e.filters;const t=Wt.a.assign({type:this.type},e);this.isOsdPage||(this.osdService.osdDevices[this.type]=this.devices,this.osdService.osdDevices.disableSelect=this.canSelect||this.devices.length===this.availDevices.length,this.osdService.osdDevices[this.type].capacity=this.capacity),this.selected.emit(t)})}updateAddButtonTooltip(){this.addButtonTooltip="data"===this.type&&0===this.availDevices.length?this.tooltips.noAvailDevices:this.canSelect?0===this.availDevices.length?this.tooltips.noAvailDevices:this.tooltips.addByFilters:this.tooltips.addPrimaryFirst}clearDevices(){this.isOsdPage||(this.expansionCanSelect=!1,this.osdService.osdDevices.disableSelect=!1,this.osdService.osdDevices=[]);const e={type:this.type,clearedDevices:[...this.devices]};this.devices=[],this.cleared.emit(e)}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(yn.a),r.Rb(Vi),r.Rb(Pt.e))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-osd-devices-selection-groups"]],inputs:{type:"type",name:"name",hostname:"hostname",availDevices:"availDevices",canSelect:"canSelect"},outputs:{selected:"selected",cleared:"cleared"},features:[r.Bb],decls:12,vars:6,consts:function(){let e,t,n,i,r,s,o;return e="" + "\ufffd0\ufffd" + " devices",t="The primary storage devices. These devices contain all OSD data.",n="Write-Ahead-Log devices. These devices are used for BlueStore\u2019s internal journal. It is only useful to use a WAL device if the device is faster than the primary device (e.g. NVME devices or SSDs). If there is only a small amount of fast storage available (e.g., less than a gigabyte), we recommend using it as a WAL device.",i="DB devices can be used for storing BlueStore\u2019s internal metadata. It is only helpful to provision a DB device if it is faster than the primary device (e.g. NVME devices or SSD).",r="Add",s="Clear",o="Raw capacity: " + "\ufffd0\ufffd" + "",[[1,"form-group","row"],["for","createDeleteButton",1,"cd-col-form-label"],e,[4,"ngIf"],[1,"cd-col-form-input"],[4,"ngIf","ngIfElse"],["blockClearDevices",""],t,n,i,["type","button","data-toggle","tooltip",1,"btn","btn-light",3,"title","disabled","click"],[3,"ngClass"],r,[1,"pb-2","my-2","border-bottom"],[4,"ngFor","ngForOf"],["href","",1,"tc_clearSelections",3,"click"],s,[3,"devices","hiddenColumns","filterColumns"],["class","float-right",4,"ngIf"],[1,"badge","badge-dark","mr-2"],[1,"float-right"],o]},template:function(e,t){if(1&e&&(r.Xb(0,"div",0),r.Xb(1,"label",1),r.Vb(2),r.bc(3,2),r.Ub(),r.Xb(4,"cd-helper"),r.Pc(5,Oo,2,0,"span",3),r.Pc(6,Lo,2,0,"span",3),r.Pc(7,Eo,2,0,"span",3),r.Wb(),r.Wb(),r.Xb(8,"div",4),r.Pc(9,Io,5,5,"ng-container",5),r.Pc(10,jo,9,10,"ng-template",null,6,r.Qc),r.Wb(),r.Wb()),2&e){const e=r.Fc(11);r.Db(3),r.fc(t.name),r.cc(3),r.Db(2),r.uc("ngIf","data"===t.type),r.Db(1),r.uc("ngIf","wal"===t.type),r.Db(1),r.uc("ngIf","db"===t.type),r.Db(2),r.uc("ngIf",0===t.devices.length)("ngIfElse",e)}},directives:[Zn.a,dr.a,s.r,On.a,s.p,s.q,Yr],pipes:[Qt.a],styles:[".tc_clearSelections[_ngcontent-%COMP%]{text-decoration:none}"]}),e})();const No=["dataDeviceSelectionGroups"],zo=["walDeviceSelectionGroups"],$o=["dbDeviceSelectionGroups"],Ho=["previewButtonPanel"];function Xo(e,t){1&e&&r.Sb(0,"cd-orchestrator-doc-panel")}function Vo(e,t){if(1&e&&(r.Xb(0,"div",23),r.bc(1,24),r.oc(2,"titlecase"),r.oc(3,"upperFirst"),r.Wb()),2&e){const e=r.nc(2);r.Db(3),r.fc(r.pc(2,2,e.action))(r.pc(3,4,e.resource)),r.cc(1)}}function Bo(e,t){1&e&&(r.Xb(0,"span",32),r.bc(1,33),r.Wb())}function Uo(e,t){if(1&e&&(r.Xb(0,"div",25),r.Xb(1,"label",26),r.Vb(2),r.bc(3,27),r.Ub(),r.Xb(4,"cd-helper"),r.Xb(5,"span"),r.bc(6,28),r.Wb(),r.Sb(7,"br"),r.Xb(8,"span"),r.bc(9,29),r.Wb(),r.Wb(),r.Wb(),r.Xb(10,"div",20),r.Sb(11,"input",30),r.Pc(12,Bo,2,0,"span",31),r.Wb(),r.Wb()),2&e){r.nc();const e=r.Fc(2),t=r.nc();r.Db(12),r.uc("ngIf",t.form.showError("walSlots",e,"min"))}}function qo(e,t){1&e&&(r.Xb(0,"span",32),r.bc(1,39),r.Wb())}function Go(e,t){if(1&e&&(r.Xb(0,"div",25),r.Xb(1,"label",34),r.Vb(2),r.bc(3,35),r.Ub(),r.Xb(4,"cd-helper"),r.Xb(5,"span"),r.bc(6,36),r.Wb(),r.Sb(7,"br"),r.Xb(8,"span"),r.bc(9,37),r.Wb(),r.Wb(),r.Wb(),r.Xb(10,"div",20),r.Sb(11,"input",38),r.Pc(12,qo,2,0,"span",31),r.Wb(),r.Wb()),2&e){r.nc();const e=r.Fc(2),t=r.nc();r.Db(12),r.uc("ngIf",t.form.showError("dbSlots",e,"min"))}}function Jo(e,t){if(1&e&&(r.Xb(0,"div",40),r.Sb(1,"input",41),r.Xb(2,"label",42),r.Rc(3),r.Wb(),r.Wb()),2&e){const e=t.$implicit;r.Db(1),r.vc("id",e.key),r.vc("name",e.key),r.vc("formControlName",e.key),r.Db(1),r.vc("for",e.key),r.Db(1),r.Sc(e.desc)}}function Ko(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div",43),r.Xb(1,"cd-form-button-panel",44,45),r.lc("submitActionEvent",function(){return r.Ic(e),r.nc(2).submit()}),r.Wb(),r.Wb()}if(2&e){r.nc();const e=r.Fc(8),t=r.nc();r.Db(1),r.uc("form",t.form)("disabled",0===e.devices.length)("submitText",t.actionLabels.PREVIEW)}}function Qo(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div",2),r.Xb(1,"form",3,4),r.Xb(3,"div",5),r.Pc(4,Vo,4,6,"div",6),r.Xb(5,"div",7),r.Xb(6,"fieldset"),r.Xb(7,"cd-osd-devices-selection-groups",8,9),r.lc("selected",function(t){return r.Ic(e),r.nc().onDevicesSelected(t)})("cleared",function(t){return r.Ic(e),r.nc().onDevicesCleared(t)}),r.Wb(),r.Wb(),r.Xb(9,"fieldset"),r.Xb(10,"legend"),r.bc(11,10),r.Wb(),r.Xb(12,"cd-osd-devices-selection-groups",11,12),r.lc("selected",function(t){return r.Ic(e),r.nc().onDevicesSelected(t)})("cleared",function(t){return r.Ic(e),r.nc().onDevicesCleared(t)}),r.Wb(),r.Pc(14,Uo,13,1,"div",13),r.Xb(15,"cd-osd-devices-selection-groups",14,15),r.lc("selected",function(t){return r.Ic(e),r.nc().onDevicesSelected(t)})("cleared",function(t){return r.Ic(e),r.nc().onDevicesCleared(t)}),r.Wb(),r.Pc(17,Go,13,1,"div",13),r.Wb(),r.Xb(18,"fieldset"),r.Xb(19,"legend"),r.bc(20,16),r.Wb(),r.Xb(21,"div",17),r.Xb(22,"label",18),r.bc(23,19),r.Wb(),r.Xb(24,"div",20),r.Pc(25,Jo,4,5,"div",21),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Pc(26,Ko,3,3,"div",22),r.Wb(),r.Wb(),r.Wb()}if(2&e){const e=r.Fc(8),t=r.Fc(13),n=r.Fc(16),i=r.nc();r.Db(1),r.uc("formGroup",i.form),r.Db(3),r.uc("ngIf",!i.hideTitle),r.Db(3),r.uc("availDevices",i.availDevices)("canSelect",0!==i.availDevices.length),r.Db(5),r.uc("availDevices",i.availDevices)("canSelect",0!==e.devices.length),r.Db(2),r.uc("ngIf",0!==t.devices.length),r.Db(1),r.uc("availDevices",i.availDevices)("canSelect",0!==e.devices.length),r.Db(2),r.uc("ngIf",0!==n.devices.length),r.Db(8),r.uc("ngForOf",i.featureList),r.Db(1),r.uc("ngIf",!i.hideSubmitBtn)}}let Zo=(()=>{class e extends qn.a{constructor(e,t,n,i,s,o,a){super(),this.actionLabels=e,this.authStorageService=t,this.orchService=n,this.hostService=i,this.router=s,this.modalService=o,this.wizardStepService=a,this.hideTitle=!1,this.hideSubmitBtn=!1,this.emitDriveGroup=new r.p,this.icons=_n.a,this.columns=[],this.allDevices=[],this.availDevices=[],this.dataDeviceFilters=[],this.dbDeviceFilters=[],this.walDeviceFilters=[],this.hostname="",this.driveGroup=new Qi,this.featureList=[],this.hasOrchestrator=!0,this.resource="OSDs",this.action=this.actionLabels.CREATE,this.features={encrypted:{key:"encrypted",desc:"Encryption"}},this.featureList=Wt.a.map(this.features,(e,t)=>Object.assign(e,{key:t})),this.createForm()}ngOnInit(){this.orchService.status().subscribe(e=>{this.hasOrchestrator=e.available,e.available?this.getDataDevices():this.loadingNone()}),this.form.get("walSlots").valueChanges.subscribe(e=>this.setSlots("wal",e)),this.form.get("dbSlots").valueChanges.subscribe(e=>this.setSlots("db",e)),Wt.a.each(this.features,e=>{this.form.get("features").get(e.key).valueChanges.subscribe(t=>this.featureFormUpdate(e.key,t))})}createForm(){this.form=new Gn.a({walSlots:new xn.h(0,{validators:[xn.A.min(0)]}),dbSlots:new xn.h(0,{validators:[xn.A.min(0)]}),features:new Gn.a(this.featureList.reduce((e,t)=>(e[t.key]=new xn.h({value:!1,disabled:!0}),e),{}))})}getDataDevices(){this.hostService.inventoryDeviceList().subscribe(e=>{this.allDevices=Wt.a.filter(e,"available"),this.availDevices=[...this.allDevices],this.loadingReady()},()=>{this.allDevices=[],this.availDevices=[],this.loadingError()})}setSlots(e,t){"number"==typeof t&&t>=0&&this.driveGroup.setSlots(e,t)}featureFormUpdate(e,t){this.driveGroup.setFeature(e,t)}enableFeatures(){this.featureList.forEach(e=>{this.form.get(e.key).enable({emitEvent:!1})})}disableFeatures(){this.featureList.forEach(e=>{const t=this.form.get(e.key);t.disable({emitEvent:!1}),t.setValue(!1,{emitEvent:!1})})}onDevicesSelected(e){if(this.availDevices=e.dataOut,"data"===e.type){const t=Wt.a.find(e.filters,{prop:"hostname"});t?(this.hostname=t.value.raw,this.availDevices=e.dataOut.filter(e=>e.hostname===this.hostname),this.driveGroup.setHostPattern(this.hostname)):this.driveGroup.setHostPattern("*"),this.enableFeatures()}this.driveGroup.setDeviceSelection(e.type,e.filters),this.emitDriveGroup.emit(this.driveGroup)}onDevicesCleared(e){"data"===e.type?(this.availDevices=[...this.allDevices],this.walDeviceSelectionGroups.devices=[],this.dbDeviceSelectionGroups.devices=[],this.disableFeatures(),this.driveGroup.reset(),this.form.get("walSlots").setValue(0,{emitEvent:!1}),this.form.get("dbSlots").setValue(0,{emitEvent:!1})):(this.availDevices=[...this.availDevices,...e.clearedDevices],this.driveGroup.clearDeviceSelection(e.type),this.form.get(`${e.type}Slots`).setValue(0,{emitEvent:!1}))}submit(){const e=this.authStorageService.getUsername();this.driveGroup.setName(`dashboard-${e}-${Wt.a.now()}`),this.modalService.show(Do,{driveGroups:[this.driveGroup.spec]}).componentInstance.submitAction.subscribe(()=>{this.router.navigate(["/osd"])}),this.previewButtonPanel.submitButton.loading=!1}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(gn.b),r.Rb(Gt.a),r.Rb(rr),r.Rb(Xi),r.Rb(Pt.e),r.Rb(yn.a),r.Rb(Ji))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-osd-form"]],viewQuery:function(e,t){if(1&e&&(r.Wc(No,1),r.Wc(zo,1),r.Wc($o,1),r.Wc(Ho,1)),2&e){let e;r.Ec(e=r.mc())&&(t.dataDeviceSelectionGroups=e.first),r.Ec(e=r.mc())&&(t.walDeviceSelectionGroups=e.first),r.Ec(e=r.mc())&&(t.dbDeviceSelectionGroups=e.first),r.Ec(e=r.mc())&&(t.previewButtonPanel=e.first)}},inputs:{hideTitle:"hideTitle",hideSubmitBtn:"hideSubmitBtn"},outputs:{emitDriveGroup:"emitDriveGroup"},features:[r.Ab],decls:2,vars:2,consts:function(){let e,t,n,i,r,s,o,a,c,l,u,d;return e="Shared devices",t="Configuration",n="Features",i="" + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + "",r="WAL slots",s="How many OSDs per WAL device.",o="Specify 0 to let Orchestrator backend decide it.",a="Value should be greater than or equal to 0",c="DB slots",l="How many OSDs per DB device.",u="Specify 0 to let Orchestrator backend decide it.",d="Value should be greater than or equal to 0",[[4,"ngIf"],["class","cd-col-form",4,"cdFormLoading"],[1,"cd-col-form"],["name","form","novalidate","",3,"formGroup"],["formDir","ngForm"],[1,"card"],["class","card-header",4,"ngIf"],[1,"card-body"],["name","Primary","type","data",3,"availDevices","canSelect","selected","cleared"],["dataDeviceSelectionGroups",""],e,["name","WAL","type","wal",3,"availDevices","canSelect","selected","cleared"],["walDeviceSelectionGroups",""],["class","form-group row",4,"ngIf"],["name","DB","type","db",3,"availDevices","canSelect","selected","cleared"],["dbDeviceSelectionGroups",""],t,["formGroupName","features",1,"form-group","row"],["for","features",1,"cd-col-form-label"],n,[1,"cd-col-form-input"],["class","custom-control custom-checkbox",4,"ngFor","ngForOf"],["class","card-footer",4,"ngIf"],[1,"card-header"],i,[1,"form-group","row"],["for","walSlots",1,"cd-col-form-label"],r,s,o,["id","walSlots","name","walSlots","type","number","min","0","formControlName","walSlots",1,"form-control"],["class","invalid-feedback",4,"ngIf"],[1,"invalid-feedback"],a,["for","dbSlots",1,"cd-col-form-label"],c,l,u,["id","dbSlots","name","dbSlots","type","number","min","0","formControlName","dbSlots",1,"form-control"],d,[1,"custom-control","custom-checkbox"],["type","checkbox",1,"custom-control-input",3,"id","name","formControlName"],[1,"custom-control-label",3,"for"],[1,"card-footer"],["wrappingClass","text-right",3,"form","disabled","submitText","submitActionEvent"],["previewButtonPanel",""]]},template:function(e,t){1&e&&(r.Pc(0,Xo,1,0,"cd-orchestrator-doc-panel",0),r.Pc(1,Qo,27,12,"div",1)),2&e&&(r.uc("ngIf",!t.hasOrchestrator),r.Db(1),r.uc("cdFormLoading",t.loading))},directives:[s.r,Kn.a,jr,xn.B,xn.r,Qn.a,xn.k,Yo,Zn.a,xn.l,s.q,dr.a,On.a,xn.v,xn.d,ei.a,xn.q,xn.i,xn.b,ti.a],pipes:[s.A,pr.a],styles:[""]}),e})();var ea=n("3E0/");let ta=(()=>{class e{transform(e){if(Wt.a.isUndefined(e))return "no spec";if(Wt.a.get(e,"unmanaged",!1))return "unmanaged";const t=[],n=Wt.a.get(e,"placement.hosts"),i=Wt.a.get(e,"placement.count"),r=Wt.a.get(e,"placement.label"),s=Wt.a.get(e,"placement.host_pattern");return Wt.a.isArray(n)&&t.push(...n),Wt.a.isNumber(i)&&t.push("count:" + i + ""),Wt.a.isString(r)&&t.push("label:" + r + ""),Wt.a.isString(s)&&t.push(s),t.join(";")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Qb({name:"placement",type:e,pure:!0}),e})();var na=n("XNiG"),ia=n("VRyK"),ra=n("7o/Q"),sa=n("D0XW");function oa(e,t=sa.a){return n=>n.lift(new aa(e,t))}class aa{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new ca(e,this.dueTime,this.scheduler))}}class ca extends ra.a{constructor(e,t,n){super(e),this.dueTime=t,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(la,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function la(e){e.debouncedNext()}var ua=n("/uUt"),da=n("pLZG"),ha=n("Ekvf"),fa=n("a96k"),pa=n("D4zM"),ma=n("cEzo");function ba(e,t){if(1&e&&(r.Xb(0,"option",29),r.Rc(1),r.Wb()),2&e){const e=t.$implicit;r.uc("value",e),r.Db(1),r.Tc(" ",e," ")}}function ga(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,31),r.Wb())}function _a(e,t){1&e&&(r.Xb(0,"option",12),r.bc(1,36),r.Wb()),2&e&&r.uc("ngValue",null)}function va(e,t){1&e&&(r.Xb(0,"option",12),r.bc(1,37),r.Wb()),2&e&&r.uc("ngValue",null)}function ya(e,t){1&e&&(r.Xb(0,"option",12),r.bc(1,38),r.Wb()),2&e&&r.uc("ngValue",null)}function wa(e,t){if(1&e&&(r.Xb(0,"option",29),r.Rc(1),r.Wb()),2&e){const e=t.$implicit;r.uc("value",e.service_name),r.Db(1),r.Sc(e.service_name)}}function Da(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,39),r.Wb())}const Sa=function(){return["ingress"]},xa=function(e){return{required:e}};function ka(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div",7),r.Xb(1,"label",32),r.bc(2,33),r.Wb(),r.Xb(3,"div",10),r.Xb(4,"select",34),r.lc("change",function(){return r.Ic(e),r.nc().prePopulateId()}),r.Pc(5,_a,2,1,"option",35),r.Pc(6,va,2,1,"option",35),r.Pc(7,ya,2,1,"option",35),r.Pc(8,wa,2,2,"option",14),r.Wb(),r.Pc(9,Da,2,0,"span",15),r.Wb(),r.Wb()}if(2&e){const e=r.nc(),t=r.Fc(7);r.Db(1),r.uc("ngClass",r.zc(7,xa,r.yc(6,Sa).includes(e.serviceForm.controls.service_type.value))),r.Db(4),r.uc("ngIf",null===e.services),r.Db(1),r.uc("ngIf",null!==e.services&&0===e.services.length),r.Db(1),r.uc("ngIf",null!==e.services&&e.services.length>0),r.Db(1),r.uc("ngForOf",e.services),r.Db(1),r.uc("ngIf",e.serviceForm.showError("backend_service",t,"required"))}}function Ta(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,40),r.Wb())}function Ma(e,t){1&e&&(r.Xb(0,"span",30),r.hc(1,41),r.Sb(2,"strong"),r.ec(),r.Wb())}function Ca(e,t){1&e&&(r.Xb(0,"div",7),r.Xb(1,"label",42),r.bc(2,43),r.Wb(),r.Xb(3,"div",10),r.Xb(4,"select",44),r.Xb(5,"option",45),r.bc(6,46),r.Wb(),r.Xb(7,"option",47),r.bc(8,48),r.Wb(),r.Wb(),r.Wb(),r.Wb())}function Oa(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,52),r.Wb())}function La(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div",7),r.Xb(1,"label",49),r.bc(2,50),r.Wb(),r.Xb(3,"div",10),r.Xb(4,"input",51),r.lc("focus",function(t){return r.Ic(e),r.nc().labelFocus.next(t.target.value)})("click",function(t){return r.Ic(e),r.nc().labelClick.next(t.target.value)}),r.Wb(),r.Pc(5,Oa,2,0,"span",15),r.Wb(),r.Wb()}if(2&e){const e=r.nc(),t=r.Fc(7);r.Db(4),r.uc("ngbTypeahead",e.searchLabels),r.Db(1),r.uc("ngIf",e.serviceForm.showError("label",t,"required"))}}function Ea(e,t){if(1&e&&(r.Xb(0,"div",7),r.Xb(1,"label",53),r.bc(2,54),r.Wb(),r.Xb(3,"div",10),r.Sb(4,"cd-select-badges",55),r.Wb(),r.Wb()),2&e){const e=r.nc();r.Db(4),r.uc("data",e.serviceForm.controls.hosts.value)("options",e.hosts.options)("messages",e.hosts.messages)}}function Aa(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,60),r.Wb())}function Ia(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,61),r.Wb())}function Ra(e,t){if(1&e&&(r.Xb(0,"div",7),r.Xb(1,"label",56),r.Xb(2,"span"),r.bc(3,57),r.Wb(),r.Xb(4,"cd-helper"),r.bc(5,58),r.Wb(),r.Wb(),r.Xb(6,"div",10),r.Sb(7,"input",59),r.Pc(8,Aa,2,0,"span",15),r.Pc(9,Ia,2,0,"span",15),r.Wb(),r.Wb()),2&e){const e=r.nc(),t=r.Fc(7);r.Db(8),r.uc("ngIf",e.serviceForm.showError("count",t,"min")),r.Db(1),r.uc("ngIf",e.serviceForm.showError("count",t,"pattern"))}}function Pa(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,65),r.Wb())}function Fa(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,66),r.Wb())}function Wa(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,67),r.Wb())}function ja(e,t){if(1&e&&(r.Vb(0),r.Xb(1,"div",7),r.Xb(2,"label",62),r.bc(3,63),r.Wb(),r.Xb(4,"div",10),r.Sb(5,"input",64),r.Pc(6,Pa,2,0,"span",15),r.Pc(7,Fa,2,0,"span",15),r.Pc(8,Wa,2,0,"span",15),r.Wb(),r.Wb(),r.Ub()),2&e){const e=r.nc(),t=r.Fc(7);r.Db(6),r.uc("ngIf",e.serviceForm.showError("rgw_frontend_port",t,"pattern")),r.Db(1),r.uc("ngIf",e.serviceForm.showError("rgw_frontend_port",t,"min")),r.Db(1),r.uc("ngIf",e.serviceForm.showError("rgw_frontend_port",t,"max"))}}function Ya(e,t){1&e&&(r.Xb(0,"option",12),r.bc(1,89),r.Wb()),2&e&&r.uc("ngValue",null)}function Na(e,t){1&e&&(r.Xb(0,"option",12),r.bc(1,90),r.Wb()),2&e&&r.uc("ngValue",null)}function za(e,t){1&e&&(r.Xb(0,"option",12),r.bc(1,91),r.Wb()),2&e&&r.uc("ngValue",null)}function $a(e,t){if(1&e&&(r.Xb(0,"option",29),r.Rc(1),r.Wb()),2&e){const e=t.$implicit;r.uc("value",e.pool_name),r.Db(1),r.Sc(e.pool_name)}}function Ha(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,92),r.Wb())}function Xa(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,93),r.Wb())}function Va(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,94),r.Wb())}function Ba(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,95),r.Wb())}function Ua(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,96),r.Wb())}function qa(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,97),r.Wb())}const Ga=function(){return["iscsi"]};function Ja(e,t){if(1&e&&(r.Vb(0),r.Xb(1,"div",7),r.Xb(2,"label",68),r.bc(3,69),r.Wb(),r.Xb(4,"div",10),r.Xb(5,"select",70),r.Pc(6,Ya,2,1,"option",35),r.Pc(7,Na,2,1,"option",35),r.Pc(8,za,2,1,"option",35),r.Pc(9,$a,2,2,"option",14),r.Wb(),r.Pc(10,Ha,2,0,"span",15),r.Wb(),r.Wb(),r.Xb(11,"div",7),r.Xb(12,"label",71),r.Xb(13,"span"),r.bc(14,72),r.Wb(),r.Xb(15,"cd-helper"),r.Xb(16,"span"),r.bc(17,73),r.Wb(),r.Sb(18,"br"),r.Xb(19,"span"),r.hc(20,74),r.Sb(21,"b"),r.ec(),r.Wb(),r.Wb(),r.Wb(),r.Xb(22,"div",10),r.Sb(23,"input",75),r.Wb(),r.Wb(),r.Xb(24,"div",7),r.Xb(25,"label",76),r.bc(26,77),r.Wb(),r.Xb(27,"div",10),r.Sb(28,"input",78),r.Pc(29,Xa,2,0,"span",15),r.Pc(30,Va,2,0,"span",15),r.Pc(31,Ba,2,0,"span",15),r.Wb(),r.Wb(),r.Xb(32,"div",7),r.Xb(33,"label",79),r.bc(34,80),r.Wb(),r.Xb(35,"div",10),r.Sb(36,"input",81),r.Pc(37,Ua,2,0,"span",15),r.Wb(),r.Wb(),r.Xb(38,"div",7),r.Xb(39,"label",82),r.bc(40,83),r.Wb(),r.Xb(41,"div",10),r.Xb(42,"div",84),r.Sb(43,"input",85),r.Xb(44,"span",86),r.Sb(45,"button",87),r.Sb(46,"cd-copy-2-clipboard-button",88),r.Wb(),r.Pc(47,qa,2,0,"span",15),r.Wb(),r.Wb(),r.Wb(),r.Ub()),2&e){const e=r.nc(),t=r.Fc(7);r.Db(6),r.uc("ngIf",null===e.pools),r.Db(1),r.uc("ngIf",e.pools&&0===e.pools.length),r.Db(1),r.uc("ngIf",e.pools&&e.pools.length>0),r.Db(1),r.uc("ngForOf",e.pools),r.Db(1),r.uc("ngIf",e.serviceForm.showError("pool",t,"required")),r.Db(19),r.uc("ngIf",e.serviceForm.showError("api_port",t,"pattern")),r.Db(1),r.uc("ngIf",e.serviceForm.showError("api_port",t,"min")),r.Db(1),r.uc("ngIf",e.serviceForm.showError("api_port",t,"max")),r.Db(2),r.uc("ngClass",r.zc(13,xa,r.yc(12,Ga).includes(e.serviceForm.controls.service_type.value))),r.Db(4),r.uc("ngIf",e.serviceForm.showError("api_user",t,"required")),r.Db(2),r.uc("ngClass",r.zc(16,xa,r.yc(15,Ga).includes(e.serviceForm.controls.service_type.value))),r.Db(8),r.uc("ngIf",e.serviceForm.showError("api_password",t,"required"))}}function Ka(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,114),r.Wb())}function Qa(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,115),r.Wb())}function Za(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,116),r.Wb())}function ec(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,117),r.Wb())}function tc(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,118),r.Wb())}function nc(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,119),r.Wb())}function ic(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,120),r.Wb())}function rc(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,121),r.Wb())}function sc(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,122),r.Wb())}function oc(e,t){if(1&e&&(r.Vb(0),r.Xb(1,"div",7),r.Xb(2,"label",98),r.Xb(3,"span"),r.bc(4,99),r.Wb(),r.Xb(5,"cd-helper"),r.Xb(6,"span"),r.bc(7,100),r.Wb(),r.Wb(),r.Wb(),r.Xb(8,"div",10),r.Sb(9,"input",101),r.Pc(10,Ka,2,0,"span",15),r.Wb(),r.Wb(),r.Xb(11,"div",7),r.Xb(12,"label",102),r.Xb(13,"span"),r.bc(14,103),r.Wb(),r.Xb(15,"cd-helper"),r.Xb(16,"span"),r.bc(17,104),r.Wb(),r.Wb(),r.Wb(),r.Xb(18,"div",10),r.Sb(19,"input",105),r.Pc(20,Qa,2,0,"span",15),r.Pc(21,Za,2,0,"span",15),r.Pc(22,ec,2,0,"span",15),r.Pc(23,tc,2,0,"span",15),r.Wb(),r.Wb(),r.Xb(24,"div",7),r.Xb(25,"label",106),r.Xb(26,"span"),r.bc(27,107),r.Wb(),r.Xb(28,"cd-helper"),r.Xb(29,"span"),r.bc(30,108),r.Wb(),r.Wb(),r.Wb(),r.Xb(31,"div",10),r.Sb(32,"input",109),r.Pc(33,nc,2,0,"span",15),r.Pc(34,ic,2,0,"span",15),r.Pc(35,rc,2,0,"span",15),r.Pc(36,sc,2,0,"span",15),r.Wb(),r.Wb(),r.Xb(37,"div",7),r.Xb(38,"label",110),r.Xb(39,"span"),r.bc(40,111),r.Wb(),r.Xb(41,"cd-helper"),r.Xb(42,"span"),r.bc(43,112),r.Wb(),r.Wb(),r.Wb(),r.Xb(44,"div",10),r.Sb(45,"input",113),r.Wb(),r.Wb(),r.Ub()),2&e){const e=r.nc(),t=r.Fc(7);r.Db(2),r.uc("ngClass",r.zc(13,xa,r.yc(12,Sa).includes(e.serviceForm.controls.service_type.value))),r.Db(8),r.uc("ngIf",e.serviceForm.showError("virtual_ip",t,"required")),r.Db(2),r.uc("ngClass",r.zc(16,xa,r.yc(15,Sa).includes(e.serviceForm.controls.service_type.value))),r.Db(8),r.uc("ngIf",e.serviceForm.showError("frontend_port",t,"pattern")),r.Db(1),r.uc("ngIf",e.serviceForm.showError("frontend_port",t,"min")),r.Db(1),r.uc("ngIf",e.serviceForm.showError("frontend_port",t,"max")),r.Db(1),r.uc("ngIf",e.serviceForm.showError("frontend_port",t,"required")),r.Db(2),r.uc("ngClass",r.zc(19,xa,r.yc(18,Sa).includes(e.serviceForm.controls.service_type.value))),r.Db(8),r.uc("ngIf",e.serviceForm.showError("monitor_port",t,"pattern")),r.Db(1),r.uc("ngIf",e.serviceForm.showError("monitor_port",t,"min")),r.Db(1),r.uc("ngIf",e.serviceForm.showError("monitor_port",t,"max")),r.Db(1),r.uc("ngIf",e.serviceForm.showError("monitor_port",t,"required"))}}function ac(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,131),r.Wb())}function cc(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,132),r.Wb())}function lc(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div",7),r.Xb(1,"label",126),r.Xb(2,"span"),r.bc(3,127),r.Wb(),r.Xb(4,"cd-helper"),r.bc(5,128),r.Wb(),r.Wb(),r.Xb(6,"div",10),r.Xb(7,"textarea",129),r.Rc(8," "),r.Wb(),r.Xb(9,"input",130),r.lc("change",function(t){return r.Ic(e),r.nc(2).fileUpload(t.target.files,"ssl_cert")}),r.Wb(),r.Pc(10,ac,2,0,"span",15),r.Pc(11,cc,2,0,"span",15),r.Wb(),r.Wb()}if(2&e){const e=r.nc(2),t=r.Fc(7);r.Db(10),r.uc("ngIf",e.serviceForm.showError("ssl_cert",t,"required")),r.Db(1),r.uc("ngIf",e.serviceForm.showError("ssl_cert",t,"pattern"))}}function uc(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,137),r.Wb())}function dc(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,138),r.Wb())}function hc(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div",7),r.Xb(1,"label",133),r.Xb(2,"span"),r.bc(3,134),r.Wb(),r.Xb(4,"cd-helper"),r.bc(5,135),r.Wb(),r.Wb(),r.Xb(6,"div",10),r.Xb(7,"textarea",136),r.Rc(8," "),r.Wb(),r.Xb(9,"input",130),r.lc("change",function(t){return r.Ic(e),r.nc(2).fileUpload(t.target.files,"ssl_key")}),r.Wb(),r.Pc(10,uc,2,0,"span",15),r.Pc(11,dc,2,0,"span",15),r.Wb(),r.Wb()}if(2&e){const e=r.nc(2),t=r.Fc(7);r.Db(10),r.uc("ngIf",e.serviceForm.showError("ssl_key",t,"required")),r.Db(1),r.uc("ngIf",e.serviceForm.showError("ssl_key",t,"pattern"))}}function fc(e,t){if(1&e&&(r.Vb(0),r.Xb(1,"div",7),r.Xb(2,"div",20),r.Xb(3,"div",21),r.Sb(4,"input",123),r.Xb(5,"label",124),r.bc(6,125),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Pc(7,lc,12,2,"div",16),r.Pc(8,hc,12,2,"div",16),r.Ub()),2&e){const e=r.nc();r.Db(7),r.uc("ngIf",e.serviceForm.controls.ssl.value),r.Db(1),r.uc("ngIf",e.serviceForm.controls.ssl.value&&"rgw"!==e.serviceForm.controls.service_type.value)}}const pc=function(){return["mds","rgw","nfs","iscsi","ingress"]},mc=function(){return["rgw","iscsi","ingress"]};let bc=(()=>{class e extends qn.a{constructor(e,t,n,i,r,s,o,a,c){super(),this.actionLabels=e,this.cephServiceService=t,this.formBuilder=n,this.hostService=i,this.poolService=r,this.router=s,this.taskWrapperService=o,this.route=a,this.activeModal=c,this.RGW_SVC_ID_PATTERN=/^([^.]+)(\.([^.]+)\.([^.]+))?$/,this.hiddenServices=[],this.editing=!1,this.serviceTypes=[],this.labelClick=new na.a,this.labelFocus=new na.a,this.services=[],this.searchLabels=e=>Object(ia.a)(e.pipe(oa(200),Object(ua.a)()),this.labelFocus,this.labelClick.pipe(Object(da.a)(()=>!this.typeahead.isPopupOpen()))).pipe(Object(Ii.a)(e=>this.labels.filter(t=>t.toLowerCase().indexOf(e.toLowerCase())>-1).slice(0,10))),this.resource="service",this.hosts={options:[],messages:new sr.a({empty:"There are no hosts.",filter:"Filter hosts"})},this.createForm()}createForm(){this.serviceForm=this.formBuilder.group({service_type:[null,[xn.A.required]],service_id:[null,[Cn.a.requiredIf({service_type:"mds"}),Cn.a.requiredIf({service_type:"nfs"}),Cn.a.requiredIf({service_type:"iscsi"}),Cn.a.requiredIf({service_type:"ingress"}),Cn.a.composeIf({service_type:"rgw"},[xn.A.required,Cn.a.custom("rgwPattern",e=>!Wt.a.isEmpty(e)&&!this.RGW_SVC_ID_PATTERN.test(e))])]],placement:["hosts"],label:[null,[Cn.a.requiredIf({placement:"label",unmanaged:!1})]],hosts:[[]],count:[null,[Cn.a.number(!1),xn.A.min(1)]],unmanaged:[!1],pool:[null,[Cn.a.requiredIf({service_type:"iscsi",unmanaged:!1})]],rgw_frontend_port:[null,[Cn.a.number(!1),xn.A.min(1),xn.A.max(65535)]],trusted_ip_list:[null],api_port:[null,[Cn.a.number(!1),xn.A.min(1),xn.A.max(65535)]],api_user:[null,[Cn.a.requiredIf({service_type:"iscsi",unmanaged:!1})]],api_password:[null,[Cn.a.requiredIf({service_type:"iscsi",unmanaged:!1})]],backend_service:[null,[Cn.a.requiredIf({service_type:"ingress",unmanaged:!1})]],virtual_ip:[null,[Cn.a.requiredIf({service_type:"ingress",unmanaged:!1})]],frontend_port:[null,[Cn.a.number(!1),xn.A.min(1),xn.A.max(65535)]],monitor_port:[null,[Cn.a.number(!1),xn.A.min(1),xn.A.max(65535)]],virtual_interface_networks:[null],ssl:[!1],ssl_cert:["",[Cn.a.composeIf({service_type:"rgw",unmanaged:!1,ssl:!0},[xn.A.required,Cn.a.pemCert()]),Cn.a.composeIf({service_type:"iscsi",unmanaged:!1,ssl:!0},[xn.A.required,Cn.a.sslCert()])]],ssl_key:["",[Cn.a.composeIf({service_type:"iscsi",unmanaged:!1,ssl:!0},[xn.A.required,Cn.a.sslPrivKey()])]]})}ngOnInit(){this.action=this.actionLabels.CREATE,this.router.url.includes("services/(modal:create")?this.pageURL="services":this.router.url.includes("services/(modal:edit")&&(this.editing=!0,this.pageURL="services",this.route.params.subscribe(e=>{this.serviceName=e.name,this.serviceType=e.type})),this.cephServiceService.getKnownTypes().subscribe(e=>{this.hiddenServices.push("osd","container"),this.serviceTypes=Wt.a.difference(e,this.hiddenServices).sort()}),this.hostService.list("false").subscribe(e=>{const t=[];Wt.a.forEach(e,e=>{if(Wt.a.get(e,"sources.orchestrator",!1)){const n=new fa.a(!1,Wt.a.get(e,"hostname"),"");t.push(n)}}),this.hosts.options=[...t]}),this.hostService.getLabels().subscribe(e=>{this.labels=e}),this.poolService.getList().subscribe(e=>{this.pools=e}),this.cephServiceService.list().subscribe(e=>{this.services=e.filter(e=>"rgw"===e.service_type)}),this.editing&&(this.action=this.actionLabels.EDIT,this.disableForEditing(this.serviceType),this.cephServiceService.list(this.serviceName).subscribe(e=>{var t,n,i,r,s,o,a,c,l,u,d,h,f;if(["service_type","service_id","unmanaged"].forEach(t=>{this.serviceForm.get(t).setValue(e[0][t])}),!e[0].unmanaged){const i=Object.keys(e[0].placement)[0];let r;r=["hosts","label"].indexOf(i)>=0?i:"hosts",this.serviceForm.get("placement").setValue(r),this.serviceForm.get("count").setValue(e[0].placement.count),(null===(t=e[0])||void 0===t?void 0:t.placement[r])&&this.serviceForm.get(r).setValue(null===(n=e[0])||void 0===n?void 0:n.placement[r])}switch(this.serviceType){case"iscsi":["pool","api_password","api_user","trusted_ip_list","api_port"].forEach(t=>{this.serviceForm.get(t).setValue(e[0].spec[t])}),this.serviceForm.get("ssl").setValue(null===(i=e[0].spec)||void 0===i?void 0:i.api_secure),(null===(r=e[0].spec)||void 0===r?void 0:r.api_secure)&&(this.serviceForm.get("ssl_cert").setValue(null===(s=e[0].spec)||void 0===s?void 0:s.ssl_cert),this.serviceForm.get("ssl_key").setValue(null===(o=e[0].spec)||void 0===o?void 0:o.ssl_key));break;case"rgw":this.serviceForm.get("rgw_frontend_port").setValue(null===(a=e[0].spec)||void 0===a?void 0:a.rgw_frontend_port),this.serviceForm.get("ssl").setValue(null===(c=e[0].spec)||void 0===c?void 0:c.ssl),(null===(l=e[0].spec)||void 0===l?void 0:l.ssl)&&this.serviceForm.get("ssl_cert").setValue(null===(u=e[0].spec)||void 0===u?void 0:u.rgw_frontend_ssl_certificate);break;case"ingress":["backend_service","virtual_ip","frontend_port","monitor_port","virtual_interface_networks","ssl"].forEach(t=>{this.serviceForm.get(t).setValue(e[0].spec[t])}),(null===(d=e[0].spec)||void 0===d?void 0:d.ssl)&&(this.serviceForm.get("ssl_cert").setValue(null===(h=e[0].spec)||void 0===h?void 0:h.ssl_cert),this.serviceForm.get("ssl_key").setValue(null===(f=e[0].spec)||void 0===f?void 0:f.ssl_key))}}))}disableForEditing(e){switch(["service_type","service_id"].forEach(e=>{this.serviceForm.get(e).disable()}),e){case"ingress":this.serviceForm.get("backend_service").disable()}}fileUpload(e,t){const n=e[0],i=new FileReader;i.addEventListener("load",e=>{const n=this.serviceForm.get(t);n.setValue(e.target.result),n.markAsDirty(),n.markAsTouched(),n.updateValueAndValidity()}),i.readAsText(n,"utf8")}prePopulateId(){const e=this.serviceForm.get("service_id"),t=this.serviceForm.getValue("backend_service");e.reset({value:t,disabled:!0})}onSubmit(){var e,t,n,i,r;const s=this,o=this.serviceForm.getRawValue(),a=o.service_type;let c=`service/${gn.e.CREATE}`;this.editing&&(c=`service/${gn.e.EDIT}`);const l={service_type:a,placement:{},unmanaged:o.unmanaged};let u;if("rgw"===a){const e=o.service_id.match(this.RGW_SVC_ID_PATTERN);u=e[1],e[3]&&(l.rgw_realm=e[3],l.rgw_zone=e[4])}else u=o.service_id;const d=u;let h=a;if(Wt.a.isString(d)&&!Wt.a.isEmpty(d)&&(h=`${a}.${d}`,l.service_id=d),!o.unmanaged){switch(o.placement){case"hosts":o.hosts.length>0&&(l.placement.hosts=o.hosts);break;case"label":l.placement.label=o.label}switch(Wt.a.isNumber(o.count)&&o.count>0&&(l.placement.count=o.count),a){case"rgw":Wt.a.isNumber(o.rgw_frontend_port)&&o.rgw_frontend_port>0&&(l.rgw_frontend_port=o.rgw_frontend_port),l.ssl=o.ssl,o.ssl&&(l.rgw_frontend_ssl_certificate=null===(e=o.ssl_cert)||void 0===e?void 0:e.trim());break;case"iscsi":l.pool=o.pool,Wt.a.isString(o.trusted_ip_list)&&!Wt.a.isEmpty(o.trusted_ip_list)&&(l.trusted_ip_list=o.trusted_ip_list.trim()),Wt.a.isNumber(o.api_port)&&o.api_port>0&&(l.api_port=o.api_port),l.api_user=o.api_user,l.api_password=o.api_password,l.api_secure=o.ssl,o.ssl&&(l.ssl_cert=null===(t=o.ssl_cert)||void 0===t?void 0:t.trim(),l.ssl_key=null===(n=o.ssl_key)||void 0===n?void 0:n.trim());break;case"ingress":l.backend_service=o.backend_service,l.service_id=o.backend_service,Wt.a.isString(o.virtual_ip)&&!Wt.a.isEmpty(o.virtual_ip)&&(l.virtual_ip=o.virtual_ip.trim()),Wt.a.isNumber(o.frontend_port)&&o.frontend_port>0&&(l.frontend_port=o.frontend_port),Wt.a.isNumber(o.monitor_port)&&o.monitor_port>0&&(l.monitor_port=o.monitor_port),l.ssl=o.ssl,o.ssl&&(l.ssl_cert=null===(i=o.ssl_cert)||void 0===i?void 0:i.trim(),l.ssl_key=null===(r=o.ssl_key)||void 0===r?void 0:r.trim()),l.virtual_interface_networks=o.virtual_interface_networks}}this.taskWrapperService.wrapTaskAroundCall({task:new Bi.a(c,{service_name:h}),call:this.cephServiceService.create(l)}).subscribe({error(){s.serviceForm.setErrors({cdSubmitButton:!0})},complete:()=>{"services"===this.pageURL?this.router.navigate([this.pageURL,{outlets:{modal:null}}]):this.activeModal.close()}})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(gn.b),r.Rb(Vr),r.Rb(wo.a),r.Rb(Xi),r.Rb(ha.a),r.Rb(Pt.e),r.Rb(Ui.a),r.Rb(Pt.a),r.Rb(Jt.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-service-form"]],viewQuery:function(e,t){if(1&e&&r.Wc(Jt.G,1),2&e){let e;r.Ec(e=r.mc())&&(t.typeahead=e.first)}},inputs:{hiddenServices:"hiddenServices",editing:"editing",serviceName:"serviceName",serviceType:"serviceType"},features:[r.Ab],decls:45,vars:34,consts:function(){let e,t,n,i,r,s,o,a,c,l,u,d,h,f,p,m,b,g,_,v,y,w,D,S,x,k,T,M,C,O,L,E,A,I,R,P,F,W,j,Y,N,z,$,H,X,V,B,U,q,G,J,K,Q,Z,ee,te,ne,ie,re,se,oe,ae,ce,le,ue,de,he,fe,pe;return e="" + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + "",t="Type",n="-- Select a service type --",i="Id",r="Unmanaged",s="This field is required.",o="Backend Service",a="Loading...",c="-- No service available --",l="-- Select an existing RGW service --",u="This field is required.",d="This field is required.",h="The value does not match the pattern " + "\ufffd#2\ufffd" + "<service_id>[.<realm_name>.<zone_name>]" + "\ufffd/#2\ufffd" + ".",f="Placement",p="Hosts",m="Label",b="Label",g="This field is required.",_="Hosts",v="Count",y="Only that number of daemons will be created.",w="The value must be at least 1.",D="The entered value needs to be a number.",S="Port",x="The entered value needs to be a number.",k="The value must be at least 1.",T="The value cannot exceed 65535.",M="Pool",C="Trusted IPs",O="Comma separated list of IP addresses.",L="Please add the " + "\ufffd#21\ufffd" + "Ceph Manager" + "\ufffd/#21\ufffd" + " IP addresses here, otherwise the iSCSI gateways can't be reached.",E="Port",A="User",I="Password",R="Loading...",P="-- No pools available --",F="-- Select a pool --",W="This field is required.",j="The entered value needs to be a number.",Y="The value must be at least 1.",N="The value cannot exceed 65535.",z="This field is required.",$="This field is required.",H="Virtual IP",X="The virtual IP address and subnet (in CIDR notation) where the ingress service will be available.",V="Frontend Port",B="The port used to access the ingress service.",U="Monitor Port",q="The port used by haproxy for load balancer status.",G="CIDR Networks",J="A list of networks to identify which network interface to use for the virtual IP address.",K="This field is required.",Q="The entered value needs to be a number.",Z="The value must be at least 1.",ee="The value cannot exceed 65535.",te="This field is required.",ne="The entered value needs to be a number.",ie="The value must be at least 1.",re="The value cannot exceed 65535.",se="This field is required.",oe="SSL",ae="Certificate",ce="The SSL certificate in PEM format.",le="This field is required.",ue="Invalid SSL certificate.",de="Private key",he="The SSL private key in PEM format.",fe="This field is required.",pe="Invalid SSL private key.",[[3,"pageURL","modalRef"],[1,"modal-title"],e,[1,"modal-content"],["novalidate","",3,"formGroup"],["frm","ngForm"],[1,"modal-body"],[1,"form-group","row"],["for","service_type",1,"cd-col-form-label","required"],t,[1,"cd-col-form-input"],["id","service_type","name","service_type","formControlName","service_type",1,"form-control","custom-select"],[3,"ngValue"],n,[3,"value",4,"ngFor","ngForOf"],["class","invalid-feedback",4,"ngIf"],["class","form-group row",4,"ngIf"],["for","service_id",1,"cd-col-form-label",3,"ngClass"],i,["id","service_id","type","text","formControlName","service_id",1,"form-control"],[1,"cd-col-form-offset"],[1,"custom-control","custom-checkbox"],["id","unmanaged","type","checkbox","formControlName","unmanaged",1,"custom-control-input"],["for","unmanaged",1,"custom-control-label"],r,[4,"ngIf"],[1,"modal-footer"],[1,"text-right"],[3,"form","submitText","submitActionEvent"],[3,"value"],[1,"invalid-feedback"],s,["for","backend_service",1,"cd-col-form-label",3,"ngClass"],o,["id","backend_service","name","backend_service","formControlName","backend_service",1,"form-control","custom-select",3,"change"],[3,"ngValue",4,"ngIf"],a,c,l,u,d,h,["for","placement",1,"cd-col-form-label"],f,["id","placement","formControlName","placement",1,"form-control","custom-select"],["value","hosts"],p,["value","label"],m,["for","label",1,"cd-col-form-label"],b,["id","label","type","text","formControlName","label",1,"form-control",3,"ngbTypeahead","focus","click"],g,["for","hosts",1,"cd-col-form-label"],_,["id","hosts",3,"data","options","messages"],["for","count",1,"cd-col-form-label"],v,y,["id","count","type","number","formControlName","count","min","1",1,"form-control"],w,D,["for","rgw_frontend_port",1,"cd-col-form-label"],S,["id","rgw_frontend_port","type","number","formControlName","rgw_frontend_port","min","1","max","65535",1,"form-control"],x,k,T,["for","pool",1,"cd-col-form-label","required"],M,["id","pool","name","pool","formControlName","pool",1,"form-control","custom-select"],["for","trusted_ip_list",1,"cd-col-form-label"],C,O,L,["id","trusted_ip_list","type","text","formControlName","trusted_ip_list",1,"form-control"],["for","api_port",1,"cd-col-form-label"],E,["id","api_port","type","number","formControlName","api_port","min","1","max","65535",1,"form-control"],["for","api_user",1,"cd-col-form-label",3,"ngClass"],A,["id","api_user","type","text","formControlName","api_user",1,"form-control"],["for","api_password",1,"cd-col-form-label",3,"ngClass"],I,[1,"input-group"],["id","api_password","type","password","autocomplete","new-password","formControlName","api_password",1,"form-control"],[1,"input-group-append"],["type","button","cdPasswordButton","api_password",1,"btn","btn-light"],["source","api_password"],R,P,F,W,j,Y,N,z,$,["for","virtual_ip",1,"cd-col-form-label",3,"ngClass"],H,X,["id","virtual_ip","type","text","formControlName","virtual_ip",1,"form-control"],["for","frontend_port",1,"cd-col-form-label",3,"ngClass"],V,B,["id","frontend_port","type","number","formControlName","frontend_port","min","1","max","65535",1,"form-control"],["for","monitor_port",1,"cd-col-form-label",3,"ngClass"],U,q,["id","monitor_port","type","number","formControlName","monitor_port","min","1","max","65535",1,"form-control"],["for","virtual_interface_networks",1,"cd-col-form-label"],G,J,["id","virtual_interface_networks","type","text","formControlName","virtual_interface_networks",1,"form-control"],K,Q,Z,ee,te,ne,ie,re,se,["id","ssl","type","checkbox","formControlName","ssl",1,"custom-control-input"],["for","ssl",1,"custom-control-label"],oe,["for","ssl_cert",1,"cd-col-form-label"],ae,ce,["id","ssl_cert","formControlName","ssl_cert","rows","5",1,"form-control","resize-vertical","text-monospace","text-pre"],["type","file",3,"change"],le,ue,["for","ssl_key",1,"cd-col-form-label"],de,he,["id","ssl_key","formControlName","ssl_key","rows","5",1,"form-control","resize-vertical","text-monospace","text-pre"],fe,pe]},template:function(e,t){if(1&e&&(r.Xb(0,"cd-modal",0),r.Xb(1,"span",1),r.bc(2,2),r.oc(3,"titlecase"),r.oc(4,"upperFirst"),r.Wb(),r.Vb(5,3),r.Xb(6,"form",4,5),r.Xb(8,"div",6),r.Xb(9,"div",7),r.Xb(10,"label",8),r.bc(11,9),r.Wb(),r.Xb(12,"div",10),r.Xb(13,"select",11),r.Xb(14,"option",12),r.bc(15,13),r.Wb(),r.Pc(16,ba,2,2,"option",14),r.Wb(),r.Pc(17,ga,2,0,"span",15),r.Wb(),r.Wb(),r.Pc(18,ka,10,9,"div",16),r.Xb(19,"div",7),r.Xb(20,"label",17),r.bc(21,18),r.Wb(),r.Xb(22,"div",10),r.Sb(23,"input",19),r.Pc(24,Ta,2,0,"span",15),r.Pc(25,Ma,3,0,"span",15),r.Wb(),r.Wb(),r.Xb(26,"div",7),r.Xb(27,"div",20),r.Xb(28,"div",21),r.Sb(29,"input",22),r.Xb(30,"label",23),r.bc(31,24),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Pc(32,Ca,9,0,"div",16),r.Pc(33,La,6,2,"div",16),r.Pc(34,Ea,5,3,"div",16),r.Pc(35,Ra,10,2,"div",16),r.Pc(36,ja,9,3,"ng-container",25),r.Pc(37,Ja,48,18,"ng-container",25),r.Pc(38,oc,46,21,"ng-container",25),r.Pc(39,fc,9,2,"ng-container",25),r.Wb(),r.Xb(40,"div",26),r.Xb(41,"div",27),r.Xb(42,"cd-form-button-panel",28),r.lc("submitActionEvent",function(){return t.onSubmit()}),r.oc(43,"titlecase"),r.oc(44,"upperFirst"),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Ub(),r.Wb()),2&e){const e=r.Fc(7);r.uc("pageURL",t.pageURL)("modalRef",t.activeModal),r.Db(4),r.fc(r.pc(3,22,t.action))(r.pc(4,24,t.resource)),r.cc(2),r.Db(2),r.uc("formGroup",t.serviceForm),r.Db(8),r.uc("ngValue",null),r.Db(2),r.uc("ngForOf",t.serviceTypes),r.Db(1),r.uc("ngIf",t.serviceForm.showError("service_type",e,"required")),r.Db(1),r.uc("ngIf","ingress"===t.serviceForm.controls.service_type.value),r.Db(2),r.uc("ngClass",r.zc(31,xa,r.yc(30,pc).includes(t.serviceForm.controls.service_type.value))),r.Db(4),r.uc("ngIf",t.serviceForm.showError("service_id",e,"required")),r.Db(1),r.uc("ngIf",t.serviceForm.showError("service_id",e,"rgwPattern")),r.Db(7),r.uc("ngIf",!t.serviceForm.controls.unmanaged.value),r.Db(1),r.uc("ngIf",!t.serviceForm.controls.unmanaged.value&&"label"===t.serviceForm.controls.placement.value),r.Db(1),r.uc("ngIf",!t.serviceForm.controls.unmanaged.value&&"hosts"===t.serviceForm.controls.placement.value),r.Db(1),r.uc("ngIf",!t.serviceForm.controls.unmanaged.value),r.Db(1),r.uc("ngIf",!t.serviceForm.controls.unmanaged.value&&"rgw"===t.serviceForm.controls.service_type.value),r.Db(1),r.uc("ngIf",!t.serviceForm.controls.unmanaged.value&&"iscsi"===t.serviceForm.controls.service_type.value),r.Db(1),r.uc("ngIf",!t.serviceForm.controls.unmanaged.value&&"ingress"===t.serviceForm.controls.service_type.value),r.Db(1),r.uc("ngIf",!t.serviceForm.controls.unmanaged.value&&r.yc(33,mc).includes(t.serviceForm.controls.service_type.value)),r.Db(3),r.uc("form",t.serviceForm)("submitText",r.pc(43,26,t.action)+" "+r.pc(44,28,t.resource))}},directives:[ur.a,xn.B,xn.r,Qn.a,xn.k,Zn.a,On.a,xn.z,ei.a,xn.q,xn.i,xn.u,xn.C,s.q,s.r,s.p,xn.d,xn.b,ti.a,Jt.G,fr.a,dr.a,xn.v,pa.a,ma.a],pipes:[s.A,pr.a],styles:[""]}),e})();function gc(e,t){if(1&e&&(r.Vb(0),r.Sb(1,"cd-service-daemon-list",1),r.Ub()),2&e){const e=r.nc();r.Db(1),r.uc("serviceName",e.selection.service_name)}}let _c=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-service-details"]],inputs:{permissions:"permissions",selection:"selection"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"serviceName"]],template:function(e,t){1&e&&r.Pc(0,gc,2,1,"ng-container",0),2&e&&r.uc("ngIf",t.selection)},directives:[s.r,ps],styles:[""]}),e})();function vc(e,t){1&e&&r.Sb(0,"cd-orchestrator-doc-panel")}function yc(e,t){if(1&e){const e=r.Yb();r.Vb(0),r.Xb(1,"cd-table",2),r.lc("fetchData",function(t){return r.Ic(e),r.nc().getServices(t)})("setExpandedRow",function(t){return r.Ic(e),r.nc().setExpandedRow(t)})("updateSelection",function(t){return r.Ic(e),r.nc().updateSelection(t)}),r.Sb(2,"cd-table-actions",3),r.Sb(3,"cd-service-details",4),r.Wb(),r.Ub()}if(2&e){const e=r.nc();r.Db(1),r.uc("data",e.services)("columns",e.columns)("autoReload",5e3)("hasDetails",e.hasDetails),r.Db(1),r.uc("permission",e.permissions.hosts)("selection",e.selection)("tableActions",e.tableActions),r.Db(1),r.uc("permissions",e.permissions)("selection",e.expandedRow)}}const wc="services";let Dc=(()=>{class e extends zt.a{constructor(e,t,n,i,r,s,o,a){super(),this.actionLabels=e,this.authStorageService=t,this.modalService=n,this.orchService=i,this.cephServiceService=r,this.relativeDatePipe=s,this.taskWrapperService=o,this.router=a,this.hiddenColumns=[],this.hiddenServices=[],this.hasDetails=!0,this.routedModal=!0,this.showDocPanel=!1,this.actionOrchFeatures={create:[or.SERVICE_CREATE],update:[or.SERVICE_EDIT],delete:[or.SERVICE_DELETE]},this.columns=[],this.services=[],this.isLoadingServices=!1,this.selection=new Ht.a,this.permissions=this.authStorageService.getPermissions(),this.tableActions=[{permission:"create",icon:_n.a.add,click:()=>this.openModal(),name:this.actionLabels.CREATE,canBePrimary:e=>!e.hasSelection,disable:e=>this.getDisable("create",e)},{permission:"update",icon:_n.a.edit,click:()=>this.openModal(!0),name:this.actionLabels.EDIT,disable:e=>this.getDisable("update",e)},{permission:"delete",icon:_n.a.destroy,click:()=>this.deleteAction(),name:this.actionLabels.DELETE,disable:e=>this.getDisable("delete",e)}]}openModal(e=!1){var t,n,i;if(this.routedModal)this.router.navigate(e?[wc,{outlets:{modal:[gn.e.EDIT,this.selection.first().service_type,this.selection.first().service_name]}}]:[wc,{outlets:{modal:[gn.e.CREATE]}}]);else{let r={};r=e?{serviceName:null===(t=this.selection.first())||void 0===t?void 0:t.service_name,serviceType:null===(i=null===(n=this.selection)||void 0===n?void 0:n.first())||void 0===i?void 0:i.service_type,hiddenServices:this.hiddenServices,editing:e}:{hiddenServices:this.hiddenServices,editing:e},this.bsModalRef=this.modalService.show(bc,r,{size:"lg"})}}ngOnInit(){const e=[{name:"Service",prop:"service_name",flexGrow:1},{name:"Placement",prop:"",pipe:new ta,flexGrow:2},{name:"Running",prop:"status.running",flexGrow:1},{name:"Size",prop:"status.size",flexGrow:1},{name:"Last Refreshed",prop:"status.last_refresh",pipe:this.relativeDatePipe,flexGrow:1}];this.columns=e.filter(e=>!this.hiddenColumns.includes(e.prop)),this.orchService.status().subscribe(e=>{this.orchStatus=e,this.showDocPanel=!e.available})}ngOnChanges(){var e;(null===(e=this.orchStatus)||void 0===e?void 0:e.available)&&(this.services=[],this.table.reloadData())}getDisable(e,t){var n;return"delete"===e&&!(null==t?void 0:t.hasSingleSelection)||"update"===e&&["osd","container"].indexOf(null===(n=this.selection.first())||void 0===n?void 0:n.service_type)>=0||this.orchService.getTableActionDisableDesc(this.orchStatus,this.actionOrchFeatures[e])}getServices(e){this.isLoadingServices||(this.isLoadingServices=!0,this.cephServiceService.list().subscribe(e=>{this.services=e,this.services=this.services.filter(e=>!this.hiddenServices.includes(e.service_name)),this.isLoadingServices=!1},()=>{this.isLoadingServices=!1,this.services=[],e.error()}))}updateSelection(e){this.selection=e}deleteAction(){const e=this.selection.first();this.modalService.show(bn.a,{itemDescription:"Service",itemNames:[e.service_name],actionDescription:"delete",submitActionObservable:()=>this.taskWrapperService.wrapTaskAroundCall({task:new Bi.a(`service/${gn.e.DELETE}`,{service_name:e.service_name}),call:this.cephServiceService.delete(e.service_name)}).pipe(Object(ea.a)(5e3))})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(gn.b),r.Rb(Gt.a),r.Rb(yn.a),r.Rb(rr),r.Rb(Vr),r.Rb(Br.a),r.Rb(Ui.a),r.Rb(Pt.e))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-services"]],viewQuery:function(e,t){if(1&e&&r.Wc(Vt.a,3),2&e){let e;r.Ec(e=r.mc())&&(t.table=e.first)}},inputs:{hostname:"hostname",hiddenColumns:"hiddenColumns",hiddenServices:"hiddenServices",hasDetails:"hasDetails",routedModal:"routedModal"},features:[r.Cb([{provide:ar.a,useValue:new ar.a(wc)}]),r.Ab,r.Bb],decls:3,vars:2,consts:[[4,"ngIf"],["name","modal"],["identifier","service_name","forceIdentifier","true","columnMode","flex","selectionType","single",3,"data","columns","autoReload","hasDetails","fetchData","setExpandedRow","updateSelection"],[1,"table-actions",3,"permission","selection","tableActions"],["cdTableDetail","",3,"permissions","selection"]],template:function(e,t){1&e&&(r.Pc(0,vc,1,0,"cd-orchestrator-doc-panel",0),r.Pc(1,yc,4,9,"ng-container",0),r.Sb(2,"router-outlet",1)),2&e&&(r.uc("ngIf",t.showDocPanel),r.Db(1),r.uc("ngIf",null==t.orchStatus?null:t.orchStatus.available))},directives:[s.r,Pt.j,jr,Vt.a,Dn.a,_c],styles:[""]}),e})();const Sc=function(){return["services","status"]};let xc=(()=>{class e{constructor(e,t,n,i,r){this.wizardStepsService=e,this.cephServiceService=t,this.dimlessBinary=n,this.hostService=i,this.osdService=r,this.hosts=[],this.serviceOccurrences={},this.hostsCountPerService=[],this.uniqueServices=new Set,this.totalCapacity=0,this.services=[],this.totalCPUs=0,this.totalMemory=0}ngOnInit(){var e,t,n;let i=0,r=0,s=0,o=0,a=0,c=0;this.hostsByService={columns:[{prop:"service_type",name:"Services",flexGrow:1,cellTransformation:$t.a.badge,customTemplateConfig:{class:"badge-dark"}},{name:"Number of Hosts",prop:"hosts_per_service",flexGrow:1}]},this.cephServiceService.list().subscribe(e=>{this.services=e,this.serviceCount=this.services.length,Wt.a.forEach(this.services,e=>{this.serviceOccurrences[e.service_type]=(this.serviceOccurrences[e.service_type]||0)+1,this.uniqueServices.add(e.service_type)}),this.uniqueServices.forEach(e=>{this.hostsCountPerService.push({service_type:e,hosts_per_service:this.serviceOccurrences[e]})}),this.hostsByService.data=[...this.hostsCountPerService]}),this.hostService.list("true").subscribe(e=>{this.hosts=e,this.hostsCount=this.hosts.length,Wt.a.forEach(this.hosts,e=>{this.totalCPUs=this.totalCPUs+e.cpu_count,this.totalMemory=this.totalMemory+1024*e.memory_total_kb}),this.totalMemory=this.dimlessBinary.transform(this.totalMemory)}),this.osdService.osdDevices.data&&(i=null===(e=this.osdService.osdDevices.data)||void 0===e?void 0:e.length,r=this.osdService.osdDevices.data.capacity),this.osdService.osdDevices.wal&&(s=null===(t=this.osdService.osdDevices.wal)||void 0===t?void 0:t.length,o=this.osdService.osdDevices.wal.capacity),this.osdService.osdDevices.db&&(a=null===(n=this.osdService.osdDevices.db)||void 0===n?void 0:n.length,c=this.osdService.osdDevices.db.capacity),this.totalDevices=i+s+a,this.osdService.osdDevices.totalDevices=this.totalDevices,this.totalCapacity=r+o+c}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Ji),r.Rb(Vr),r.Rb(Qt.a),r.Rb(Xi),r.Rb(Vi))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-create-cluster-review"]],decls:35,vars:17,consts:function(){let e,t,n,i,r,s,o,a;return e="Cluster Resources",t="Hosts",n="Storage Capacity",i="Number of devices: " + "\ufffd0\ufffd" + ". Raw capacity: " + "\ufffd1\ufffd" + ".",r="CPUs",s="Memory",o="Hosts by Services",a="Host Details",[[1,"row"],[1,"col-lg-4"],[1,"cd-header"],e,[1,"table","table-striped"],[1,"bold"],t,n,i,r,s,[1,"col-lg-8"],o,[3,"data","columns","toolHeader"],a,[3,"hiddenColumns","hideToolHeader","hideTitle","hideSubmitBtn","hasTableDetails","showGeneralActionsOnly"]]},template:function(e,t){1&e&&(r.Xb(0,"div",0),r.Xb(1,"div",1),r.Xb(2,"fieldset"),r.Xb(3,"legend",2),r.bc(4,3),r.Wb(),r.Xb(5,"table",4),r.Xb(6,"tr"),r.Xb(7,"td",5),r.bc(8,6),r.Wb(),r.Xb(9,"td"),r.Rc(10),r.Wb(),r.Wb(),r.Xb(11,"tr"),r.Xb(12,"td",5),r.bc(13,7),r.Wb(),r.Xb(14,"td"),r.Xb(15,"span"),r.bc(16,8),r.oc(17,"dimlessBinary"),r.Wb(),r.Wb(),r.Wb(),r.Xb(18,"tr"),r.Xb(19,"td",5),r.bc(20,9),r.Wb(),r.Xb(21,"td"),r.Rc(22),r.Wb(),r.Wb(),r.Xb(23,"tr"),r.Xb(24,"td",5),r.bc(25,10),r.Wb(),r.Xb(26,"td"),r.Rc(27),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Xb(28,"div",11),r.Xb(29,"legend",2),r.bc(30,12),r.Wb(),r.Sb(31,"cd-table",13),r.Wb(),r.Wb(),r.Xb(32,"legend",2),r.bc(33,14),r.Wb(),r.Sb(34,"cd-hosts",15)),2&e&&(r.Db(10),r.Sc(t.hostsCount),r.Db(7),r.fc(t.totalDevices)(r.pc(17,14,t.totalCapacity)),r.cc(16),r.Db(5),r.Sc(t.totalCPUs),r.Db(5),r.Sc(t.totalMemory),r.Db(4),r.uc("data",t.hostsByService.data)("columns",t.hostsByService.columns)("toolHeader",!1),r.Db(3),r.uc("hiddenColumns",r.yc(16,Sc))("hideToolHeader",!0)("hideTitle",!0)("hideSubmitBtn",!0)("hasTableDetails",!1)("showGeneralActionsOnly",!0))},directives:[Vt.a,yo],pipes:[Qt.a],styles:["cd-hosts[_ngcontent-%COMP%] .nav{display:none}"]}),e})();const kc=["skipConfirmTpl"];function Tc(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div",3),r.Xb(1,"div",4),r.Xb(2,"div",5),r.Sb(3,"img",6),r.Xb(4,"h3",7),r.bc(5,8),r.Wb(),r.Xb(6,"div",9),r.Xb(7,"h4",10),r.bc(8,11),r.Wb(),r.Xb(9,"div",12),r.Xb(10,"button",13),r.lc("click",function(){return r.Ic(e),r.nc().createCluster()}),r.bc(11,14),r.Wb(),r.Xb(12,"button",15),r.lc("click",function(){return r.Ic(e),r.nc().skipClusterCreation()}),r.bc(13,16),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Wb()}if(2&e){const e=r.nc();r.Db(3),r.uc("src",e.projectConstants.cephLogo,r.Lc),r.Db(2),r.fc(e.projectConstants.projectName),r.cc(5)}}const Mc=function(){return["services"]};function Cc(e,t){1&e&&(r.Xb(0,"div",29),r.Xb(1,"h4",30),r.bc(2,31),r.Wb(),r.Sb(3,"br"),r.Sb(4,"cd-hosts",32),r.Wb()),2&e&&(r.Db(4),r.uc("hiddenColumns",r.yc(5,Mc))("hideTitle",!0)("hideSubmitBtn",!0)("hasTableDetails",!1)("showGeneralActionsOnly",!0))}function Oc(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div",29),r.Xb(1,"h4",30),r.bc(2,33),r.Wb(),r.Sb(3,"br"),r.Xb(4,"div",34),r.Xb(5,"cd-osd-form",35),r.lc("emitDriveGroup",function(t){return r.Ic(e),r.nc(2).getDriveGroup(t)}),r.Wb(),r.Wb(),r.Wb()}2&e&&(r.Db(5),r.uc("hideTitle",!0)("hideSubmitBtn",!0))}const Lc=function(){return["mon","mgr","crash","agent"]},Ec=function(){return["status.running","status.size","status.last_refresh"]};function Ac(e,t){1&e&&(r.Xb(0,"div",29),r.Xb(1,"h4",30),r.bc(2,36),r.Wb(),r.Sb(3,"br"),r.Sb(4,"cd-services",37),r.Wb()),2&e&&(r.Db(4),r.uc("hasDetails",!1)("hiddenServices",r.yc(4,Lc))("hiddenColumns",r.yc(5,Ec))("routedModal",!1))}function Ic(e,t){1&e&&(r.Xb(0,"div",29),r.Sb(1,"cd-create-cluster-review"),r.Wb())}function Rc(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div",17),r.Xb(1,"div",18),r.bc(2,19),r.Wb(),r.Xb(3,"div",20),r.Sb(4,"cd-wizard",21),r.Xb(5,"div",22),r.Vb(6,23),r.Pc(7,Cc,5,6,"div",24),r.Pc(8,Oc,6,2,"div",24),r.Pc(9,Ac,5,6,"div",24),r.Pc(10,Ic,2,0,"div",24),r.Ub(),r.Wb(),r.Wb(),r.Xb(11,"div",25),r.Xb(12,"button",26),r.lc("click",function(){return r.Ic(e),r.nc().onNextStep()}),r.bc(13,27),r.Wb(),r.Xb(14,"cd-back-button",28),r.lc("backAction",function(){return r.Ic(e),r.nc().onPreviousStep()}),r.Wb(),r.Wb(),r.Wb()}if(2&e){const e=r.nc();r.Db(4),r.uc("stepsTitle",e.stepTitles),r.Db(2),r.uc("ngSwitch",null==e.currentStep?null:e.currentStep.stepIndex),r.Db(1),r.uc("ngSwitchCase","1"),r.Db(1),r.uc("ngSwitchCase","2"),r.Db(1),r.uc("ngSwitchCase","3"),r.Db(1),r.uc("ngSwitchCase","4"),r.Db(3),r.fc(e.showSubmitButtonLabel()),r.cc(13),r.Db(1),r.uc("name",e.showCancelButtonLabel())}}function Pc(e,t){1&e&&(r.Xb(0,"span"),r.hc(1,38),r.Sb(2,"strong"),r.ec(),r.Wb(),r.Xb(3,"div",39),r.bc(4,40),r.Wb())}let Fc=(()=>{class e{constructor(e,t,n,i,s,o,a,c,l,u){this.authStorageService=e,this.wizardStepsService=t,this.router=n,this.hostService=i,this.notificationService=s,this.actionLabels=o,this.clusterService=a,this.modalService=c,this.taskWrapper=l,this.osdService=u,this.projectConstants=gn.c,this.stepTitles=["Add Hosts","Create OSDs","Create Services","Review"],this.startClusterCreation=!1,this.observables=[],this.driveGroup=new Qi,this.driveGroups=[],this.submitAction=new r.p,this.permissions=this.authStorageService.getPermissions(),this.currentStepSub=this.wizardStepsService.getCurrentStep().subscribe(e=>{this.currentStep=e}),this.currentStep.stepIndex=1}createCluster(){this.startClusterCreation=!0}skipClusterCreation(){const e={titleText:"Warning",buttonText:"Continue",warning:!0,bodyTpl:this.skipConfirmTpl,showSubmit:!0,onSubmit:()=>{this.clusterService.updateStatus("POST_INSTALLED").subscribe({error:()=>this.modalRef.close(),complete:()=>{this.notificationService.show(vn.a.info,"Cluster expansion skipped by user"),this.router.navigate(["/dashboard"]),this.modalRef.close()}})}};this.modalRef=this.modalService.show(Tn.a,e)}onSubmit(){if(this.hostService.list("false").subscribe(e=>{e.forEach(e=>{const t=e.labels.indexOf("_no_schedule",0);t>-1&&(e.labels.splice(t,1),this.observables.push(this.hostService.update(e.hostname,!0,e.labels)))}),Object(Oi.a)(this.observables).pipe(Object(Li.a)(()=>this.clusterService.updateStatus("POST_INSTALLED").subscribe(()=>{this.notificationService.show(vn.a.success,"Cluster expansion was successful"),this.router.navigate(["/dashboard"])}))).subscribe({error:e=>e.preventDefault()})}),this.driveGroup){const e=this.authStorageService.getUsername();this.driveGroup.setName(`dashboard-${e}-${Wt.a.now()}`),this.driveGroups.push(this.driveGroup.spec)}this.osdService.osdDevices.totalDevices>0&&this.taskWrapper.wrapTaskAroundCall({task:new Bi.a("osd/"+gn.e.CREATE,{tracking_id:Wt.a.join(Wt.a.map(this.driveGroups,"service_id"),", ")}),call:this.osdService.create(this.driveGroups)}).subscribe({error:e=>e.preventDefault(),complete:()=>{this.submitAction.emit(),this.osdService.osdDevices=[]}})}getDriveGroup(e){this.driveGroup=e}onNextStep(){this.wizardStepsService.isLastStep()?this.onSubmit():(this.wizardStepsService.getCurrentStep().subscribe(e=>{this.currentStep=e}),this.wizardStepsService.moveToNextStep())}onPreviousStep(){this.wizardStepsService.isFirstStep()?this.router.navigate(["/dashboard"]):this.wizardStepsService.moveToPreviousStep()}showSubmitButtonLabel(){return this.wizardStepsService.isLastStep()?"Expand Cluster":this.actionLabels.NEXT}showCancelButtonLabel(){return this.wizardStepsService.isFirstStep()?this.actionLabels.CANCEL:this.actionLabels.BACK}ngOnDestroy(){this.currentStepSub.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Gt.a),r.Rb(Ji),r.Rb(Pt.e),r.Rb(Xi),r.Rb(wn.a),r.Rb(gn.b),r.Rb(Ei),r.Rb(yn.a),r.Rb(Ui.a),r.Rb(Vi))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-create-cluster"]],viewQuery:function(e,t){if(1&e&&r.Wc(kc,3),2&e){let e;r.Ec(e=r.mc())&&(t.skipConfirmTpl=e.first)}},outputs:{submitAction:"submitAction"},decls:4,vars:2,consts:function(){let e,t,n,i,r,s,o,a,c,l,u;return e="Welcome to " + "\ufffd0\ufffd" + "",t="Please expand your cluster first",n="Expand Cluster",i="Skip",r="Expand Cluster",s="" + "\ufffd0\ufffd" + "",o="Add Hosts",a="Create OSDs",c="Create Services",l="You are about to skip the cluster expansion process. You\u2019ll need to " + "\ufffd#2\ufffd" + "navigate through the menu to add hosts and services." + "\ufffd/#2\ufffd" + "",u="Are you sure you want to continue?",[["class","container h-75",4,"ngIf"],["class","card",4,"ngIf"],["skipConfirmTpl",""],[1,"container","h-75"],[1,"row","h-100","justify-content-center","align-items-center"],[1,"blank-page"],["alt","Ceph",1,"img-fluid","mx-auto","d-block",3,"src"],[1,"text-center","m-2"],e,[1,"m-4"],[1,"text-center"],t,[1,"offset-md-2"],["name","expand-cluster",1,"btn","btn-accent","m-2",3,"click"],n,["name","skip-cluster-creation",1,"btn","btn-light",3,"click"],i,[1,"card"],[1,"card-header"],r,[1,"container-fluid"],[3,"stepsTitle"],[1,"card-body","vertical-line"],[3,"ngSwitch"],["class","ml-5",4,"ngSwitchCase"],[1,"card-footer"],["aria-label","Next",1,"btn","btn-accent","m-2","float-right",3,"click"],s,["aria-label","Close",1,"m-2","float-right",3,"name","backAction"],[1,"ml-5"],[1,"title"],o,[3,"hiddenColumns","hideTitle","hideSubmitBtn","hasTableDetails","showGeneralActionsOnly"],a,[1,"alignForm"],[3,"hideTitle","hideSubmitBtn","emitDriveGroup"],c,[3,"hasDetails","hiddenServices","hiddenColumns","routedModal"],l,[1,"mt-4"],u]},template:function(e,t){1&e&&(r.Pc(0,Tc,14,2,"div",0),r.Pc(1,Rc,15,8,"div",1),r.Pc(2,Pc,5,0,"ng-template",null,2,r.Qc)),2&e&&(r.uc("ngIf",!t.startClusterCreation),r.Db(1),r.uc("ngIf",t.startClusterCreation))},directives:[s.r,On.a,tr,s.t,s.u,nr.a,yo,Zo,Dc,xc],styles:[".container-fluid[_ngcontent-%COMP%]{align-items:flex-start;display:flex;padding-left:0;width:100%}.card-body[_ngcontent-%COMP%]{max-width:85%}.vertical-line[_ngcontent-%COMP%]{border-left:1px solid #ced4da}cd-wizard[_ngcontent-%COMP%]{width:15%}cd-hosts[_ngcontent-%COMP%] .nav{display:none}.alignForm[_ngcontent-%COMP%]{margin-left:-1%}"]}),e})();var Wc=n("st4c"),jc=n("lOp/");const Yc=["tree"],Nc=function(e,t,n){return[e,t,n]};function zc(e,t){if(1&e&&r.Sb(0,"i",12),2&e){const e=r.nc();r.uc("ngClass",r.Bc(1,Nc,e.icons.large,e.icons.spinner,e.icons.spin))}}const $c=function(){return["in","up"]},Hc=function(){return["down","out","destroyed"]},Xc=function(e,t){return{"badge-success":e,"badge-danger":t}};function Vc(e,t){if(1&e&&(r.Xb(0,"span",15),r.Rc(1),r.Wb()),2&e){const e=r.nc().$implicit;r.uc("ngClass",r.Ac(4,Xc,r.yc(2,$c).includes(e.data.status),r.yc(3,Hc).includes(e.data.status))),r.Db(1),r.Tc(" ",e.data.status," ")}}const Bc=function(e){return{"type-osd":e}};function Uc(e,t){if(1&e&&(r.Pc(0,Vc,2,7,"span",13),r.Xb(1,"span"),r.Rc(2,"\xa0"),r.Wb(),r.Sb(3,"span",14)),2&e){const e=t.$implicit;r.uc("ngIf",e.data.status),r.Db(3),r.uc("ngClass",r.zc(3,Bc,"osd"===e.data.type))("innerHTML",e.data.name,r.Jc)}}function qc(e,t){if(1&e&&(r.Xb(0,"div",16),r.Xb(1,"legend"),r.Rc(2),r.Wb(),r.Sb(3,"cd-table-key-value",17),r.Wb()),2&e){const e=r.nc();r.Db(2),r.Sc(e.metadataTitle),r.Db(1),r.uc("data",e.metadata)}}let Gc=(()=>{class e{constructor(e,t){this.crushRuleService=e,this.timerService=t,this.sub=new ir.a,this.icons=_n.a,this.loadingIndicator=!0,this.nodes=[],this.treeOptions={useVirtualScroll:!0,nodeHeight:22,actionMapping:{mouse:{click:this.onNodeSelected.bind(this)}}},this.metadataKeyMap={}}ngOnInit(){this.sub=this.timerService.get(()=>this.crushRuleService.getInfo(),5e3).subscribe(e=>{this.loadingIndicator=!1,this.nodes=this.abstractTreeData(e)})}ngOnDestroy(){this.sub.unsubscribe()}abstractTreeData(e){const t=e.nodes||[],n=e.roots||[],i={};if(0===t.length)return[{name:"No nodes!"}];const r=[];return t.reverse().forEach(e=>{n.includes(e.id)&&r.push(e.id),i[e.id]=this.generateTreeLeaf(e,i)}),r.map(e=>i[e])}generateTreeLeaf(e,t){const n=e.id;this.metadataKeyMap[n]=e;const i=[],r={name:e.name+" ("+e.type+")",status:e.status,cdId:n,type:e.type};return e.children&&(e.children.sort().forEach(e=>{i.push(t[e])}),r.children=i),r}onNodeSelected(e,t){if(kn.a.ACTIVATE(e,t,!0),void 0!==t.data.cdId){const e=this.metadataKeyMap[t.data.cdId],{name:n,type:i}=e,r=Object(jt.f)(e,["name","type","status"]);this.metadata=r,this.metadataTitle=n+" ("+i+")"}else delete this.metadata,delete this.metadataTitle}onUpdateData(){this.tree.treeModel.expandAll()}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Wc.a),r.Rb(jc.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-crushmap"]],viewQuery:function(e,t){if(1&e&&r.Wc(Yc,1),2&e){let e;r.Ec(e=r.mc())&&(t.tree=e.first)}},decls:14,vars:4,consts:function(){let e;return e="CRUSH map viewer",[[1,"row"],[1,"col-sm-12","col-lg-12"],[1,"card"],[1,"card-header"],e,[1,"card-body"],[1,"col-sm-6","col-lg-6","tree-container"],[3,"ngClass",4,"ngIf"],[3,"nodes","options","updateData"],["tree",""],["treeNodeTemplate",""],["class","col-sm-6 col-lg-6 metadata",4,"ngIf"],[3,"ngClass"],["class","badge",3,"ngClass",4,"ngIf"],[1,"node-name",3,"ngClass","innerHTML"],[1,"badge",3,"ngClass"],[1,"col-sm-6","col-lg-6","metadata"],[3,"data"]]},template:function(e,t){1&e&&(r.Xb(0,"div",0),r.Xb(1,"div",1),r.Xb(2,"div",2),r.Xb(3,"div",3),r.bc(4,4),r.Wb(),r.Xb(5,"div",5),r.Xb(6,"div",0),r.Xb(7,"div",6),r.Pc(8,zc,1,5,"i",7),r.Xb(9,"tree-root",8,9),r.lc("updateData",function(){return t.onUpdateData()}),r.Pc(11,Uc,4,5,"ng-template",null,10,r.Qc),r.Wb(),r.Wb(),r.Pc(13,qc,4,2,"div",11),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Wb()),2&e&&(r.Db(8),r.uc("ngIf",t.loadingIndicator),r.Db(1),r.uc("nodes",t.nodes)("options",t.treeOptions),r.Db(4),r.uc("ngIf",t.metadata))},directives:[s.r,kn.b,s.p,en.a],styles:[".tree-container[_ngcontent-%COMP%]{height:calc(100vh - 200px)}"]}),e})(),Jc=(()=>{class e{constructor(e){this.http=e}getLogs(){return this.http.get("api/logs/all")}validateDashboardUrl(e){return this.http.get(`api/grafana/validation/${e}`)}}return e.\u0275fac=function(t){return new(t||e)(r.ic(o.b))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Kc=n("Iab2");let Qc=(()=>{class e{download(e,t){Object(Kc.saveAs)(new Blob([e]),t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Zc=function(e){return[e]};function el(e,t){if(1&e){const e=r.Yb();r.Xb(0,"button",5),r.lc("click",function(){return r.Ic(e),r.nc().download("json")}),r.Sb(1,"i",2),r.Xb(2,"span"),r.Rc(3,"JSON"),r.Wb(),r.Wb()}if(2&e){const e=r.nc();r.Db(1),r.uc("ngClass",r.zc(1,Zc,e.icons.json))}}function tl(e,t){if(1&e){const e=r.Yb();r.Xb(0,"button",5),r.lc("click",function(){return r.Ic(e),r.nc().download()}),r.Sb(1,"i",2),r.Xb(2,"span"),r.Rc(3,"Text"),r.Wb(),r.Wb()}if(2&e){const e=r.nc();r.Db(1),r.uc("ngClass",r.zc(1,Zc,e.icons.text))}}let nl=(()=>{class e{constructor(e){this.textToDownloadService=e,this.title="Download",this.icons=_n.a}download(e){this.fileName=`${this.fileName}_${(new Date).toLocaleDateString()}`,"json"===e?this.textToDownloadService.download(JSON.stringify(this.objectItem,null,2),`${this.fileName}.json`):this.textToDownloadService.download(this.textItem,`${this.fileName}.txt`)}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Qc))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-download-button"]],inputs:{objectItem:"objectItem",textItem:"textItem",fileName:"fileName",title:"title"},decls:6,vars:6,consts:[["ngbDropdown","","placement","bottom-right"],["type","button","ngbDropdownToggle","",1,"btn","btn-light","dropdown-toggle-split",3,"title"],[3,"ngClass"],["ngbDropdownMenu",""],["ngbDropdownItem","",3,"click",4,"ngIf"],["ngbDropdownItem","",3,"click"]],template:function(e,t){1&e&&(r.Xb(0,"div",0),r.Xb(1,"button",1),r.Sb(2,"i",2),r.Wb(),r.Xb(3,"div",3),r.Pc(4,el,4,3,"button",4),r.Pc(5,tl,4,3,"button",4),r.Wb(),r.Wb()),2&e&&(r.Db(1),r.uc("title",t.title),r.Db(1),r.uc("ngClass",r.zc(4,Zc,t.icons.download)),r.Db(2),r.uc("ngIf",t.objectItem),r.Db(1),r.uc("ngIf",t.textItem))},directives:[Jt.i,On.a,Jt.m,s.p,Jt.k,s.r,Jt.j],styles:[""]}),e})();var il=n("E2fk");function rl(e,t){1&e&&r.Tb(0)}function sl(e,t){if(1&e&&(r.Xb(0,"div",19),r.Sb(1,"cd-download-button",20),r.Sb(2,"cd-copy-2-clipboard-button",21),r.Wb()),2&e){const e=r.nc(4);r.Db(1),r.uc("objectItem",e.clog)("textItem",e.clogText),r.Db(1),r.uc("source",e.clogText)("byId",!1)}}function ol(e,t){if(1&e&&(r.Xb(0,"p"),r.Xb(1,"span",22),r.Rc(2),r.oc(3,"cdDate"),r.Wb(),r.Xb(4,"span"),r.oc(5,"logPriority"),r.Rc(6),r.Wb(),r.Xb(7,"span",23),r.Rc(8),r.Wb(),r.Wb()),2&e){const e=t.$implicit;r.Db(2),r.Sc(r.pc(3,6,e.stamp)),r.Db(2),r.Gb("priority ",r.pc(5,8,e.priority),""),r.Db(2),r.Sc(e.priority),r.Db(2),r.Sc(e.message)}}function al(e,t){1&e&&r.Tb(0)}function cl(e,t){if(1&e&&(r.Xb(0,"div",14),r.Pc(1,sl,3,4,"div",15),r.Xb(2,"div",16),r.Pc(3,ol,9,10,"p",17),r.Pc(4,al,1,0,"ng-container",18),r.Wb(),r.Wb()),2&e){const e=r.nc(3),t=r.Fc(4);r.Db(1),r.uc("ngIf",e.clog.length),r.Db(2),r.uc("ngForOf",e.clog),r.Db(1),r.uc("ngIf",0!=e.clog.length)("ngIfElse",t)}}function ll(e,t){if(1&e&&r.Pc(0,cl,5,4,"div",13),2&e){const e=r.nc(2);r.uc("ngIf",e.clog)}}function ul(e,t){if(1&e&&(r.Xb(0,"div",19),r.Sb(1,"cd-download-button",24),r.Sb(2,"cd-copy-2-clipboard-button",21),r.Wb()),2&e){const e=r.nc(4);r.Db(1),r.uc("objectItem",e.audit_log)("textItem",e.auditLogText),r.Db(1),r.uc("source",e.auditLogText)("byId",!1)}}function dl(e,t){if(1&e&&(r.Xb(0,"p"),r.Xb(1,"span",22),r.Rc(2),r.oc(3,"cdDate"),r.Wb(),r.Xb(4,"span"),r.oc(5,"logPriority"),r.Rc(6),r.Wb(),r.Xb(7,"span",23),r.Rc(8),r.Wb(),r.Wb()),2&e){const e=t.$implicit;r.Db(2),r.Sc(r.pc(3,6,e.stamp)),r.Db(2),r.Gb("priority ",r.pc(5,8,e.priority),""),r.Db(2),r.Sc(e.priority),r.Db(2),r.Sc(e.message)}}function hl(e,t){1&e&&r.Tb(0)}function fl(e,t){if(1&e&&(r.Xb(0,"div",14),r.Pc(1,ul,3,4,"div",15),r.Xb(2,"div",16),r.Pc(3,dl,9,10,"p",17),r.Pc(4,hl,1,0,"ng-container",18),r.Wb(),r.Wb()),2&e){const e=r.nc(3),t=r.Fc(4);r.Db(1),r.uc("ngIf",e.audit_log.length),r.Db(2),r.uc("ngForOf",e.audit_log),r.Db(1),r.uc("ngIf",0!=e.audit_log.length)("ngIfElse",t)}}function pl(e,t){if(1&e&&r.Pc(0,fl,5,4,"div",13),2&e){const e=r.nc(2);r.uc("ngIf",e.audit_log)}}function ml(e,t){if(1&e&&(r.Xb(0,"div"),r.Pc(1,rl,1,0,"ng-container",3),r.Xb(2,"ul",4,5),r.Xb(4,"li",6),r.Xb(5,"a",7),r.bc(6,8),r.Wb(),r.Pc(7,ll,1,1,"ng-template",9),r.Wb(),r.Xb(8,"li",10),r.Xb(9,"a",7),r.bc(10,11),r.Wb(),r.Pc(11,pl,1,1,"ng-template",9),r.Wb(),r.Wb(),r.Sb(12,"div",12),r.Wb()),2&e){const e=r.Fc(3);r.nc();const t=r.Fc(2);r.Db(1),r.uc("ngTemplateOutlet",t),r.Db(11),r.uc("ngbNavOutlet",e)}}function bl(e,t){if(1&e&&(r.Xb(0,"option",46),r.Rc(1),r.Wb()),2&e){const e=t.$implicit;r.uc("value",e.value),r.Db(1),r.Sc(e.name)}}const gl=function(e){return[e]};function _l(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div",25),r.Xb(1,"div",26),r.Xb(2,"label",27),r.bc(3,28),r.Wb(),r.Xb(4,"select",29),r.lc("ngModelChange",function(t){return r.Ic(e),r.nc().priority=t})("ngModelChange",function(){return r.Ic(e),r.nc().filterLogs()}),r.Pc(5,bl,2,2,"option",30),r.Wb(),r.Wb(),r.Xb(6,"div",26),r.Xb(7,"label",31),r.bc(8,32),r.Wb(),r.Xb(9,"div",33),r.Xb(10,"div",34),r.Xb(11,"span",35),r.Sb(12,"i",36),r.Wb(),r.Wb(),r.Xb(13,"input",37),r.lc("ngModelChange",function(t){return r.Ic(e),r.nc().search=t})("keyup",function(){return r.Ic(e),r.nc().filterLogs()}),r.Wb(),r.Xb(14,"div",38),r.Xb(15,"button",39),r.lc("click",function(){return r.Ic(e),r.nc().clearSearchKey()}),r.Sb(16,"i"),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Xb(17,"div",26),r.Xb(18,"label",40),r.bc(19,41),r.Wb(),r.Xb(20,"div",33),r.Xb(21,"input",42,43),r.lc("click",function(){return r.Ic(e),r.Fc(22).open()})("ngModelChange",function(t){return r.Ic(e),r.nc().selectedDate=t})("ngModelChange",function(){return r.Ic(e),r.nc().filterLogs()}),r.Wb(),r.Xb(23,"span",38),r.Xb(24,"button",39),r.lc("click",function(){return r.Ic(e),r.nc().clearDate()}),r.Sb(25,"i"),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Xb(26,"div",26),r.Xb(27,"label"),r.bc(28,44),r.Wb(),r.Xb(29,"ngb-timepicker",45),r.lc("ngModelChange",function(t){return r.Ic(e),r.nc().startTime=t})("ngModelChange",function(){return r.Ic(e),r.nc().filterLogs()}),r.Wb(),r.Xb(30,"span"),r.Rc(31,"\xa0\u2014\xa0"),r.Wb(),r.Xb(32,"ngb-timepicker",45),r.lc("ngModelChange",function(t){return r.Ic(e),r.nc().endTime=t})("ngModelChange",function(){return r.Ic(e),r.nc().filterLogs()}),r.Wb(),r.Wb(),r.Wb()}if(2&e){const e=r.nc();r.Db(4),r.uc("ngModel",e.priority),r.Db(1),r.uc("ngForOf",e.priorities),r.Db(7),r.uc("ngClass",r.zc(16,gl,e.icons.search)),r.Db(1),r.uc("ngModel",e.search),r.Db(3),r.Gb("icon-prepend ",e.icons.destroy,""),r.Db(5),r.uc("maxDate",e.maxDate)("ngModel",e.selectedDate),r.Db(4),r.Gb("icon-prepend ",e.icons.destroy,""),r.Db(4),r.uc("spinners",!1)("ngModel",e.startTime),r.Db(3),r.uc("spinners",!1)("ngModel",e.endTime)}}function vl(e,t){if(1&e){const e=r.Yb();r.Xb(0,"span"),r.bc(1,47),r.Wb(),r.Xb(2,"span"),r.Rc(3,"\xa0"),r.Wb(),r.Xb(4,"a",48),r.lc("click",function(){return r.Ic(e),r.nc().resetFilter()}),r.bc(5,49),r.Wb()}}let yl=(()=>{class e{constructor(e,t,n){this.logsService=e,this.datePipe=t,this.ngZone=n,this.icons=_n.a,this.priorities=[{name:"Debug",value:"[DBG]"},{name:"Info",value:"[INF]"},{name:"Warning",value:"[WRN]"},{name:"Error",value:"[ERR]"},{name:"All",value:"All"}],this.priority="All",this.search="",this.startTime={hour:0,minute:0},this.endTime={hour:23,minute:59},this.maxDate={year:(new Date).getFullYear(),month:(new Date).getMonth()+1,day:(new Date).getDate()}}ngOnInit(){this.getInfo(),this.ngZone.runOutsideAngular(()=>{this.interval=window.setInterval(()=>{this.ngZone.run(()=>{this.getInfo()})},5e3)})}ngOnDestroy(){clearInterval(this.interval)}getInfo(){this.logsService.getLogs().subscribe(e=>{this.contentData=e,this.clogText=this.logToText(this.contentData.clog),this.auditLogText=this.logToText(this.contentData.audit_log),this.filterLogs()})}abstractFilters(){var e,t,n,i,r,s,o,a;const c=this.priority,l=this.search.toLowerCase().replace(/,/g,"");let u;if(this.selectedDate){const e=this.selectedDate.month,t=this.selectedDate.day;u=`${this.selectedDate.year}-${e<=9?`0${e}`:`${e}`}-${t<=9?`0${t}`:`${t}`}`}else u="";return{priority:c,key:l,yearMonthDay:u,sTime:60*(null!==(t=null===(e=this.startTime)||void 0===e?void 0:e.hour)&&void 0!==t?t:0)+(null!==(i=null===(n=this.startTime)||void 0===n?void 0:n.minute)&&void 0!==i?i:0),eTime:60*(null!==(s=null===(r=this.endTime)||void 0===r?void 0:r.hour)&&void 0!==s?s:23)+(null!==(a=null===(o=this.endTime)||void 0===o?void 0:o.minute)&&void 0!==a?a:59)}}filterExecutor(e,t){return e.filter(e=>{const n=this.datePipe.transform(e.stamp,"mediumTime"),i=parseInt(n.split(":")[0],10),r=parseInt(n.split(":")[1],10);let s,o,a;return s="All"===t.priority?e.priority:t.priority,o=t.yearMonthDay?t.yearMonthDay:e.stamp,a=60*i+r,e.priority===s&&-1!==e.message.toLowerCase().indexOf(t.key)&&-1!==e.stamp.indexOf(o)&&a>=t.sTime&&a<=t.eTime})}filterLogs(){const e=this.abstractFilters();this.clog=this.filterExecutor(this.contentData.clog,e),this.audit_log=this.filterExecutor(this.contentData.audit_log,e)}clearSearchKey(){this.search="",this.filterLogs()}clearDate(){this.selectedDate=null,this.filterLogs()}resetFilter(){return this.priority="All",this.search="",this.selectedDate=null,this.startTime={hour:0,minute:0},this.endTime={hour:23,minute:59},this.filterLogs(),!1}logToText(e){let t="";for(const n of Object.keys(e))t=t+this.datePipe.transform(e[n].stamp,"medium")+"\t"+e[n].priority+"\t"+e[n].message+"\n";return t}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Jc),r.Rb(s.e),r.Rb(r.D))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-logs"]],decls:5,vars:1,consts:function(){let e,t,n,i,r,s,o,a;return e="Cluster Logs",t="Audit Logs",n="Priority:",i="Keyword:",r="Date:",s="Time range:",o="No log entries found. Please try to select different filter options.",a="Reset filter.",[[4,"ngIf"],["logFiltersTpl",""],["noEntriesTpl",""],[4,"ngTemplateOutlet"],["ngbNav","","cdStatefulTab","logs",1,"nav-tabs"],["nav","ngbNav"],["ngbNavItem","cluster-logs"],["ngbNavLink",""],e,["ngbNavContent",""],["ngbNavItem","audit-logs"],t,[3,"ngbNavOutlet"],["class","card bg-light mb-3",4,"ngIf"],[1,"card","bg-light","mb-3"],["class","btn-group","role","group",4,"ngIf"],[1,"card-body"],[4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],["role","group",1,"btn-group"],["fileName","cluster_log",3,"objectItem","textItem"],[3,"source","byId"],[1,"timestamp"],[1,"message"],["fileName","audit_log",3,"objectItem","textItem"],[1,"form-inline"],[1,"form-group"],["for","logs-priority"],n,["id","logs-priority",1,"form-control","custom-select",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["for","logs-keyword"],i,[1,"input-group"],[1,"input-group-prepend"],[1,"input-group-text"],[3,"ngClass"],["id","logs-keyword","type","text",1,"form-control",3,"ngModel","ngModelChange","keyup"],[1,"input-group-append"],["type","button",1,"btn","btn-light",3,"click"],["for","logs-date"],r,["id","logs-date","placeholder","YYYY-MM-DD","ngbDatepicker","",1,"form-control",3,"maxDate","ngModel","click","ngModelChange"],["d","ngbDatepicker"],s,[3,"spinners","ngModel","ngModelChange"],[3,"value"],o,["href","#",3,"click"],a]},template:function(e,t){1&e&&(r.Pc(0,ml,13,2,"div",0),r.Pc(1,_l,33,18,"ng-template",null,1,r.Qc),r.Pc(3,vl,6,0,"ng-template",null,2,r.Qc)),2&e&&r.uc("ngIf",t.contentData)},directives:[s.r,s.w,Jt.p,Kt.a,Jt.r,Jt.s,Jt.q,Jt.u,s.q,nl,ma.a,Zn.a,On.a,xn.z,ei.a,xn.q,xn.t,s.p,xn.d,Jt.n,Jt.B,xn.u,xn.C],pipes:[Xt.a,il.a],styles:["p[_ngcontent-%COMP%]{font-family:monospace}.card[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%]{margin-top:-45px;position:absolute;right:0}.card[_ngcontent-%COMP%] div[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:flex}.card[_ngcontent-%COMP%] div[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-child{margin-bottom:0}.card[_ngcontent-%COMP%] .timestamp[_ngcontent-%COMP%]{flex-shrink:0;font-weight:700}.card[_ngcontent-%COMP%] .priority[_ngcontent-%COMP%]{margin-left:.5rem}.card[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{margin-left:1rem}.card[_ngcontent-%COMP%] .err[_ngcontent-%COMP%]{color:#ef5c55}.card[_ngcontent-%COMP%] .warn[_ngcontent-%COMP%]{color:#ffc200}.card[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{color:#2b99a8}.card[_ngcontent-%COMP%] .debug[_ngcontent-%COMP%]{color:#495057} cd-logs ngb-timepicker input.ngb-tp-input{width:3.5rem!important}"]}),e})(),wl=(()=>{class e{constructor(e){this.http=e,this.url="api/mgr/module"}list(){return this.http.get(`${this.url}`)}getConfig(e){return this.http.get(`${this.url}/${e}`)}updateConfig(e,t){return this.http.put(`${this.url}/${e}`,{config:t})}enable(e){return this.http.post(`${this.url}/${e}/enable`,null)}disable(e){return this.http.post(`${this.url}/${e}/disable`,null)}getOptions(e){return this.http.get(`${this.url}/${e}/options`)}}return e.\u0275fac=function(t){return new(t||e)(r.ic(o.b))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Dl(e,t){if(1&e&&(r.Xb(0,"cd-helper"),r.Rc(1),r.oc(2,"upperFirst"),r.Wb()),2&e){const e=r.nc().$implicit;r.Db(1),r.Tc(" ",r.pc(2,1,e.value.long_desc||e.value.desc)," ")}}function Sl(e,t){if(1&e&&(r.Xb(0,"div",15),r.Xb(1,"div",16),r.Sb(2,"input",17),r.Sb(3,"label",18),r.Wb(),r.Wb()),2&e){const e=r.nc().$implicit;r.Db(2),r.vc("id",e.value.name),r.vc("formControlName",e.value.name),r.Db(1),r.vc("for",e.value.name)}}function xl(e,t){if(1&e&&r.Sb(0,"input",22),2&e){const e=r.nc(2).$implicit;r.vc("id",e.value.name),r.vc("formControlName",e.value.name)}}function kl(e,t){if(1&e&&(r.Xb(0,"option",25),r.Rc(1),r.Wb()),2&e){const e=t.$implicit;r.uc("ngValue",e),r.Db(1),r.Tc(" ",e," ")}}function Tl(e,t){if(1&e&&(r.Xb(0,"select",23),r.Pc(1,kl,2,2,"option",24),r.Wb()),2&e){const e=r.nc(2).$implicit;r.vc("id",e.value.name),r.vc("formControlName",e.value.name),r.Db(1),r.uc("ngForOf",e.value.enum_allowed)}}function Ml(e,t){1&e&&(r.Xb(0,"span",26),r.bc(1,27),r.Wb())}function Cl(e,t){1&e&&(r.Xb(0,"span",26),r.bc(1,28),r.Wb())}function Ol(e,t){if(1&e&&(r.Xb(0,"div",15),r.Pc(1,xl,1,2,"input",19),r.Pc(2,Tl,2,3,"select",20),r.Pc(3,Ml,2,0,"span",21),r.Pc(4,Cl,2,0,"span",21),r.Wb()),2&e){const e=r.nc().$implicit;r.nc();const t=r.Fc(2),n=r.nc();r.Db(1),r.uc("ngIf",0===e.value.enum_allowed.length),r.Db(1),r.uc("ngIf",e.value.enum_allowed.length>0),r.Db(1),r.uc("ngIf",n.mgrModuleForm.showError(e.value.name,t,"invalidUuid")),r.Db(1),r.uc("ngIf",n.mgrModuleForm.showError(e.value.name,t,"pattern"))}}function Ll(e,t){1&e&&(r.Xb(0,"span",26),r.bc(1,30),r.Wb())}function El(e,t){if(1&e&&(r.Xb(0,"span",26),r.bc(1,31),r.Wb()),2&e){const e=r.nc(2).$implicit;r.Db(1),r.fc(e.value.max),r.cc(1)}}function Al(e,t){if(1&e&&(r.Xb(0,"span",26),r.bc(1,32),r.Wb()),2&e){const e=r.nc(2).$implicit;r.Db(1),r.fc(e.value.min),r.cc(1)}}function Il(e,t){1&e&&(r.Xb(0,"span",26),r.bc(1,33),r.Wb())}function Rl(e,t){if(1&e&&(r.Xb(0,"div",15),r.Sb(1,"input",29),r.Pc(2,Ll,2,0,"span",21),r.Pc(3,El,2,1,"span",21),r.Pc(4,Al,2,1,"span",21),r.Pc(5,Il,2,0,"span",21),r.Wb()),2&e){const e=r.nc().$implicit;r.nc();const t=r.Fc(2),n=r.nc();r.Db(1),r.vc("id",e.value.name),r.vc("formControlName",e.value.name),r.vc("min",e.value.min),r.vc("max",e.value.max),r.Db(1),r.uc("ngIf",n.mgrModuleForm.showError(e.value.name,t,"required")),r.Db(1),r.uc("ngIf",n.mgrModuleForm.showError(e.value.name,t,"max")),r.Db(1),r.uc("ngIf",n.mgrModuleForm.showError(e.value.name,t,"min")),r.Db(1),r.uc("ngIf",n.mgrModuleForm.showError(e.value.name,t,"pattern"))}}function Pl(e,t){1&e&&(r.Xb(0,"span",26),r.bc(1,35),r.Wb())}function Fl(e,t){1&e&&(r.Xb(0,"span",26),r.bc(1,36),r.Wb())}function Wl(e,t){if(1&e&&(r.Xb(0,"div",15),r.Sb(1,"input",34),r.Pc(2,Pl,2,0,"span",21),r.Pc(3,Fl,2,0,"span",21),r.Wb()),2&e){const e=r.nc().$implicit;r.nc();const t=r.Fc(2),n=r.nc();r.Db(1),r.vc("id",e.value.name),r.vc("formControlName",e.value.name),r.Db(1),r.uc("ngIf",n.mgrModuleForm.showError(e.value.name,t,"required")),r.Db(1),r.uc("ngIf",n.mgrModuleForm.showError(e.value.name,t,"pattern"))}}const jl=function(){return["addr","str","uuid"]},Yl=function(){return["uint","int","size","secs"]};function Nl(e,t){if(1&e&&(r.Xb(0,"div",11),r.Xb(1,"label",12),r.Rc(2),r.Pc(3,Dl,3,3,"cd-helper",13),r.Wb(),r.Pc(4,Sl,4,3,"div",14),r.Pc(5,Ol,5,4,"div",14),r.Pc(6,Rl,6,8,"div",14),r.Pc(7,Wl,4,4,"div",14),r.Wb()),2&e){const e=t.$implicit;r.Db(1),r.vc("for",e.value.name),r.Db(1),r.Tc(" ",e.value.name," "),r.Db(1),r.uc("ngIf",e.value.long_desc||e.value.desc),r.Db(1),r.uc("ngIf","bool"===e.value.type),r.Db(1),r.uc("ngIf",r.yc(7,jl).includes(e.value.type)),r.Db(1),r.uc("ngIf",r.yc(8,Yl).includes(e.value.type)),r.Db(1),r.uc("ngIf","float"===e.value.type)}}function zl(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div",1),r.Xb(1,"form",2,3),r.Xb(3,"div",4),r.Xb(4,"div",5),r.bc(5,6),r.Wb(),r.Xb(6,"div",7),r.Pc(7,Nl,8,9,"div",8),r.oc(8,"keyvalue"),r.Wb(),r.Xb(9,"div",9),r.Xb(10,"cd-form-button-panel",10),r.lc("submitActionEvent",function(){return r.Ic(e),r.nc().onSubmit()}),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Wb()}if(2&e){const e=r.nc();r.Db(1),r.uc("formGroup",e.mgrModuleForm),r.Db(6),r.uc("ngForOf",r.pc(8,4,e.moduleOptions)),r.Db(3),r.uc("form",e.mgrModuleForm)("submitText",e.actionLabels.UPDATE)}}let $l=(()=>{class e extends qn.a{constructor(e,t,n,i,r,s){super(),this.actionLabels=e,this.route=t,this.router=n,this.formBuilder=i,this.mgrModuleService=r,this.notificationService=s,this.moduleName="",this.moduleOptions=[]}ngOnInit(){this.route.params.subscribe(e=>{this.moduleName=decodeURIComponent(e.name);const t=[this.mgrModuleService.getOptions(this.moduleName),this.mgrModuleService.getConfig(this.moduleName)];Object(Oi.a)(t).subscribe(e=>{this.moduleOptions=e[0],this.createForm(),this.mgrModuleForm.setValue(e[1]),this.loadingReady()},e=>{this.loadingError()})})}getValidators(e){const t=[];switch(e.type){case"addr":t.push(Cn.a.ip());break;case"uint":case"int":case"size":case"secs":t.push(Cn.a.number()),t.push(xn.A.required),Wt.a.isNumber(e.min)&&t.push(xn.A.min(e.min)),Wt.a.isNumber(e.max)&&t.push(xn.A.max(e.max));break;case"str":Wt.a.isNumber(e.min)&&t.push(xn.A.minLength(e.min)),Wt.a.isNumber(e.max)&&t.push(xn.A.maxLength(e.max));break;case"float":t.push(xn.A.required),t.push(Cn.a.decimalNumber());break;case"uuid":t.push(Cn.a.uuid())}return t}createForm(){const e={};Wt.a.forEach(this.moduleOptions,t=>{e[t.name]=[t.default_value,this.getValidators(t)]}),this.mgrModuleForm=this.formBuilder.group(e)}goToListView(){this.router.navigate(["/mgr-modules"])}onSubmit(){if(this.mgrModuleForm.pristine)return void this.goToListView();const e={};Wt.a.forEach(this.moduleOptions,t=>{const n=this.mgrModuleForm.get(t.name);n.dirty&&n.valid&&(e[t.name]=n.value)}),this.mgrModuleService.updateConfig(this.moduleName,e).subscribe(()=>{this.notificationService.show(vn.a.success,"Updated options for module '" + this.moduleName + "'."),this.goToListView()},()=>{this.mgrModuleForm.setErrors({cdSubmitButton:!0})})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(gn.b),r.Rb(Pt.a),r.Rb(Pt.e),r.Rb(wo.a),r.Rb(wl),r.Rb(wn.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-mgr-module-form"]],features:[r.Ab],decls:1,vars:1,consts:function(){let e,t,n,i,r,s,o,a,c;return e="Edit Manager module",t="The entered value is not a valid UUID, e.g.: 67dcac9f-2c03-4d6c-b7bd-1210b3a259a8",n="The entered value needs to be a valid IP address.",i="This field is required.",r="The entered value is too high! It must be lower or equal to " + "\ufffd0\ufffd" + ".",s="The entered value is too low! It must be greater or equal to " + "\ufffd0\ufffd" + ".",o="The entered value needs to be a number.",a="This field is required.",c="The entered value needs to be a number or decimal.",[["class","cd-col-form",4,"cdFormLoading"],[1,"cd-col-form"],["name","mgrModuleForm","novalidate","",3,"formGroup"],["frm","ngForm"],[1,"card"],[1,"card-header"],e,[1,"card-body"],["class","form-group row",4,"ngFor","ngForOf"],[1,"card-footer"],["wrappingClass","text-right",3,"form","submitText","submitActionEvent"],[1,"form-group","row"],[1,"cd-col-form-label",3,"for"],[4,"ngIf"],["class","cd-col-form-input",4,"ngIf"],[1,"cd-col-form-input"],[1,"custom-control","custom-checkbox"],["type","checkbox",1,"custom-control-input",3,"id","formControlName"],[1,"custom-control-label",3,"for"],["class","form-control","type","text",3,"id","formControlName",4,"ngIf"],["class","form-control custom-select",3,"id","formControlName",4,"ngIf"],["class","invalid-feedback",4,"ngIf"],["type","text",1,"form-control",3,"id","formControlName"],[1,"form-control","custom-select",3,"id","formControlName"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],[1,"invalid-feedback"],t,n,["type","number",1,"form-control",3,"id","formControlName","min","max"],i,r,s,o,["type","number",1,"form-control",3,"id","formControlName"],a,c]},template:function(e,t){1&e&&r.Pc(0,zl,11,6,"div",0),2&e&&r.uc("cdFormLoading",t.loading)},directives:[Kn.a,xn.B,xn.r,xn.k,Qn.a,s.q,ti.a,Zn.a,s.r,dr.a,On.a,xn.b,ei.a,xn.q,xn.i,xn.d,xn.z,xn.u,xn.C,xn.v],pipes:[s.k,pr.a],styles:[""]}),e})();var Hl=n("jtHE");const Xl=["*"],Vl=["templateOutlet"];function Bl(e,t){if(1&e&&(r.Xb(0,"div",6),r.Rc(1),r.Wb()),2&e){const e=r.nc(2);r.Db(1),r.Tc(" ",e.message||e.defaultMessage," ")}}function Ul(e,t){if(1&e&&(r.Xb(0,"div",3),r.Sb(1,"div",4),r.Pc(2,Bl,2,1,"div",5),r.Wb()),2&e){const e=r.nc();r.Db(2),r.uc("ngIf",e.message||e.defaultMessage)}}function ql(e,t){}function Gl(e,t){1&e&&r.Pc(0,ql,0,0,"ng-template",null,7,r.Qc)}const Jl=function(e){return{active:e}};let Kl=(()=>{class e{}return e.START="start",e.STOP="stop",e.UPDATE="update",e.RESET="reset",e.RESET_GLOBAL="reset_global",e.UNSUBSCRIBE="unsubscribe",e})();const Ql="block-ui-main";let Zl=(()=>{let e=class{constructor(){this.blockUISettings={},this.blockUIInstances={},this.blockUISubject=new Hl.a(1),this.blockUIObservable=this.blockUISubject.asObservable(),this.blockUIObservable.subscribe(this.blockUIMiddleware.bind(this))}getSettings(){return this.blockUISettings}updateSettings(e={}){this.blockUISettings=Object.assign(Object.assign({},this.blockUISettings),e)}decorate(e="block-ui-main"){const t={name:e,isActive:!1,blockCount:0,start:this.dispatch(this.blockUISubject,Kl.START,e),update:this.dispatch(this.blockUISubject,Kl.UPDATE,e),stop:this.dispatch(this.blockUISubject,Kl.STOP,e),reset:this.dispatch(this.blockUISubject,Kl.RESET,e),resetGlobal:this.dispatch(this.blockUISubject,Kl.RESET_GLOBAL,e),unsubscribe:this.dispatch(this.blockUISubject,Kl.UNSUBSCRIBE,e)};return this.blockUIInstances[e]=this.blockUIInstances[e]||t,t}observe(){return this.blockUIObservable}clearInstance(e){this.dispatch(this.blockUISubject,Kl.RESET,e)}blockUIMiddleware({action:e,name:t}){let n=null;switch(e){case Kl.START:n=!0;break;case Kl.STOP:case Kl.RESET:n=!1}null!==n&&(this.blockUIInstances[t].isActive=n)}dispatch(e,t,n="block-ui-main"){return i=>{e.next({name:n,action:t,message:i})}}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Nb({token:e,factory:function(t){return e.\u0275fac(t)}}),e})(),eu=(()=>{let e=class{constructor(e){this.blockUI=e}ngOnInit(){this.name=this.name||Ql,this.template=this.template||this.blockUI.blockUISettings.template}};return e.\u0275fac=function(t){return new(t||e)(r.Rb(Zl))},e.\u0275cmp=r.Lb({type:e,selectors:[["block-ui"]],inputs:{name:"name",template:"template",message:"message",delayStart:"delayStart",delayStop:"delayStop"},ngContentSelectors:Xl,decls:2,vars:5,consts:[[3,"name","message","template","delayStart","delayStop"]],template:function(e,t){1&e&&(r.tc(),r.sc(0),r.Sb(1,"block-ui-content",0)),2&e&&(r.Db(1),r.uc("name",t.name)("message",t.message)("template",t.template)("delayStart",t.delayStart)("delayStop",t.delayStop))},directives:function(){return[tu]},encapsulation:2}),e})(),tu=(()=>{let e=class{constructor(e,t,n){this.blockUI=e,this.resolver=t,this.changeDetectionRef=n,this.name=Ql,this.defaultBlockState={startTimeouts:[],stopTimeouts:[],updateTimeouts:[],blockCount:0,startCallCount:0,stopCallCount:0},this.state=Object.assign({},this.defaultBlockState)}ngOnInit(){this.settings=this.blockUI.getSettings(),this.blockUISubscription=this.subscribeToBlockUI(this.blockUI.observe())}ngAfterViewInit(){try{if(!this.templateCmp)return!1;if(this.templateCmp instanceof r.O)this.templateOutlet.createEmbeddedView(this.templateCmp);else{const e=this.resolver.resolveComponentFactory(this.templateCmp);this.templateCompRef=this.templateOutlet.createComponent(e),this.updateBlockTemplate(this.message)}}catch(e){console.error("ng-block-ui:",e)}}ngAfterViewChecked(){this.detectChanges()}subscribeToBlockUI(e){return e.subscribe(e=>this.onDispatchedEvent(e))}onDispatchedEvent(e){switch(e.action){case Kl.START:this.onStart(e);break;case Kl.STOP:this.onStop(e);break;case Kl.UPDATE:this.onUpdate(e);break;case Kl.RESET:this.onReset(e);break;case Kl.RESET_GLOBAL:this.resetState();break;case Kl.UNSUBSCRIBE:this.onStop(e),this.onUnsubscribe(e.name)}}onStart({name:e,message:t}){if(e===this.name){const e=this.delayStart||this.settings.delayStart||0;this.state.startCallCount+=1;const n=setTimeout(()=>{this.state.blockCount+=1,this.showBlock(t),this.updateInstanceBlockCount()},e);this.state.startTimeouts.push(n)}}onStop({name:e}){if(e===this.name){const e=this.state.stopCallCount+1;if(this.state.startCallCount-e>=0){const t=this.delayStop||this.settings.delayStop||0;this.state.stopCallCount=e;const n=setTimeout(()=>{this.state.blockCount-=1,this.updateInstanceBlockCount(),this.detectChanges()},t);this.state.stopTimeouts.push(n)}}}onUpdate({name:e,message:t}){if(e===this.name){const e=this.delayStart||this.settings.delayStart||0;clearTimeout(this.state.updateTimeouts[0]);const n=setTimeout(()=>{this.updateMessage(t)},e);this.state.updateTimeouts.push(n)}}onReset({name:e}){e===this.name&&this.resetState()}updateMessage(e){this.showBlock(e)}showBlock(e){this.message=e||this.defaultMessage||this.settings.message,this.updateBlockTemplate(this.message),this.detectChanges()}updateBlockTemplate(e){this.templateCompRef&&this.templateCompRef instanceof r.l&&(this.templateCompRef.instance.message=e)}resetState(){[...this.state.startTimeouts,...this.state.stopTimeouts,...this.state.updateTimeouts].forEach(clearTimeout),this.state=Object.assign({},this.defaultBlockState),this.updateInstanceBlockCount(),this.detectChanges()}onUnsubscribe(e){this.blockUISubscription&&e===this.name&&this.blockUISubscription.unsubscribe()}updateInstanceBlockCount(){if(this.blockUI.blockUIInstances[this.name]){const{blockCount:e}=this.state;this.blockUI.blockUIInstances[this.name].blockCount=e}}detectChanges(){this.changeDetectionRef.destroyed||this.changeDetectionRef.detectChanges()}ngOnDestroy(){this.resetState(),this.onUnsubscribe(this.name),this.blockUI.clearInstance(this.name)}};return e.\u0275fac=function(t){return new(t||e)(r.Rb(Zl),r.Rb(r.k),r.Rb(r.i))},e.\u0275cmp=r.Lb({type:e,selectors:[["block-ui-content"]],viewQuery:function(e,t){if(1&e&&r.Wc(Vl,1,r.S),2&e){let e;r.Ec(e=r.mc())&&(t.templateOutlet=e.first)}},inputs:{name:"name",delayStart:"delayStart",delayStop:"delayStop",defaultMessage:["message","defaultMessage"],templateCmp:["template","templateCmp"]},decls:3,vars:9,consts:[[3,"ngClass"],["class","block-ui-spinner",4,"ngIf"],[4,"ngIf"],[1,"block-ui-spinner"],[1,"loader"],["class","message",4,"ngIf"],[1,"message"],["templateOutlet",""]],template:function(e,t){1&e&&(r.Xb(0,"div",0),r.Pc(1,Ul,3,1,"div",1),r.Pc(2,Gl,2,0,void 0,2),r.Wb()),2&e&&(r.Hb("block-ui-wrapper ",t.name," ",t.className,""),r.uc("ngClass",r.zc(7,Jl,t.state.blockCount>0)),r.Db(1),r.uc("ngIf",!t.templateCmp),r.Db(1),r.uc("ngIf",t.templateCmp))},directives:[s.p,s.r],styles:["\n.block-ui-wrapper {\n display: none;\n position: fixed;\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.70);\n z-index: 30000;\n cursor: wait;\n}\n\n.block-ui-wrapper.block-ui-wrapper--element {\n position: absolute;\n}\n\n.block-ui-wrapper.active {\n display: block;\n}\n\n.block-ui-wrapper.block-ui-main {\n position: fixed;\n}\n\n.block-ui-spinner,\n.block-ui-template {\n position: absolute;\n top: 40%;\n margin: 0 auto;\n left: 0;\n right: 0;\n transform: translateY(-50%);\n}\n\n.block-ui-spinner > .message {\n font-size: 1.3em;\n text-align: center;\n color: #fff;\n}\n\n.block-ui__element {\n position: relative;\n}\n\n.loader,\n.loader:after {\n border-radius: 50%;\n width: 10em;\n height: 10em;\n}\n.loader {\n margin: 7px auto;\n font-size: 5px;\n position: relative;\n text-indent: -9999em;\n border-top: 1.1em solid rgba(255, 255, 255, 0.2);\n border-right: 1.1em solid rgba(255, 255, 255, 0.2);\n border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);\n border-left: 1.1em solid #ffffff;\n -webkit-transform: translateZ(0);\n -ms-transform: translateZ(0);\n transform: translateZ(0);\n -webkit-animation: load8 1.1s infinite linear;\n animation: load8 1.1s infinite linear;\n}\n\n@-webkit-keyframes load8 {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes load8 {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n"],encapsulation:2}),e})(),nu=(()=>{let e=class{constructor(e){this.blockUIInstance=e,this.globalDispatch=this.blockUIInstance.decorate()}start(e,t){this.dispatch(e,Kl.START,t)}stop(e){this.dispatch(e,Kl.STOP)}reset(e){this.dispatch(e,Kl.RESET)}resetGlobal(){this.globalDispatch.resetGlobal()}update(e,t){this.dispatch(e,Kl.UPDATE,t)}unsubscribe(e){this.dispatch(e,Kl.UNSUBSCRIBE)}isActive(e=null){const t=e?this.toArray(e):null,n=this.blockUIInstance.blockUIInstances;return Object.keys(n).some(e=>t?t.indexOf(n[e].name)>=0&&n[e].isActive:n[e].isActive)}dispatch(e=[],t,n){this.toArray(e).forEach(e=>this.blockUIInstance.decorate(e)[t](n))}toArray(e=[]){return"string"==typeof e?[e]:e}};return e.\u0275fac=function(t){return new(t||e)(r.ic(Zl))},e.\u0275prov=r.Nb({token:e,factory:function(t){return e.\u0275fac(t)}}),e})();var iu;const ru=new Zl,su=new r.u("BlockUIModuleSettings");function ou(e){return ru.updateSettings(e),ru}let au=(()=>{let e=iu=class{static forRoot(e={}){return{ngModule:iu,providers:[{provide:su,useValue:e},{provide:Zl,useFactory:ou,deps:[su]},nu]}}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Pb({type:e}),e.\u0275inj=r.Ob({imports:[[s.c]]}),e})(),cu=1;function lu(e,t={}){return t.scopeToInstance?function(t,n){const i=`_${n}-block-ui`;Object.defineProperty(t,n,{get:function(){if(this[i])return this[i];const t=`${e}-${cu++}`;return this[i]=ru.decorate(t),this[i]},set:function(e){this[i]=e}})}:function(t,n){t[n]=ru.decorate(e)}}function uu(e,t){if(1&e&&(r.Vb(0),r.Sb(1,"cd-table-key-value",1),r.Ub()),2&e){const e=r.nc();r.Db(1),r.uc("data",e.module_config)}}let du=(()=>{class e{constructor(e){this.mgrModuleService=e}ngOnChanges(){this.selection&&this.mgrModuleService.getConfig(this.selection.name).subscribe(e=>{this.module_config=e})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(wl))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-mgr-module-details"]],inputs:{selection:"selection"},features:[r.Bb],decls:1,vars:1,consts:[[4,"ngIf"],[3,"data"]],template:function(e,t){1&e&&r.Pc(0,uu,2,1,"ng-container",0),2&e&&r.uc("ngIf",t.selection)},directives:[s.r,en.a],styles:[""]}),e})(),hu=(()=>{class e extends zt.a{constructor(e,t,n){super(),this.authStorageService=e,this.mgrModuleService=t,this.notificationService=n,this.columns=[],this.modules=[],this.selection=new Ht.a,this.permission=this.authStorageService.getPermissions().configOpt,this.columns=[{name:"Name",prop:"name",flexGrow:1},{name:"Enabled",prop:"enabled",flexGrow:1,cellClass:"text-center",cellTransformation:$t.a.checkIcon},{name:"Always-On",prop:"always_on",flexGrow:1,cellClass:"text-center",cellTransformation:$t.a.checkIcon}];const i=()=>this.selection.first()&&encodeURIComponent(this.selection.first().name);this.tableActions=[{name:"Edit",permission:"update",disable:()=>!this.selection.hasSelection||0===Object.values(this.selection.first().options).length,routerLink:()=>`/mgr-modules/edit/${i()}`,icon:_n.a.edit},{name:"Enable",permission:"update",click:()=>this.updateModuleState(),disable:()=>this.isTableActionDisabled("enabled"),icon:_n.a.start},{name:"Disable",permission:"update",click:()=>this.updateModuleState(),disable:()=>this.getTableActionDisabledDesc(),icon:_n.a.stop}]}getModuleList(e){this.mgrModuleService.list().subscribe(e=>{this.modules=e},()=>{e.error()})}updateSelection(e){this.selection=e}isTableActionDisabled(e){if(!this.selection.hasSelection)return!0;const t=this.selection.first();if("dashboard"===t.name)return!0;if(t.always_on)return!0;switch(e){case"enabled":return t.enabled;case"disabled":return!t.enabled}}getTableActionDisabledDesc(){var e;return(null===(e=this.selection.first())||void 0===e?void 0:e.always_on)?"This Manager module is always on.":this.isTableActionDisabled("disabled")}updateModuleState(){if(!this.selection.hasSelection)return;let e;const t=()=>{Object(Bt.a)(2e3).subscribe(()=>{this.mgrModuleService.list().subscribe(()=>{this.notificationService.suspendToasties(!1),this.blockUI.stop(),this.table.refreshBtn()},()=>{t()})})},n=this.selection.first();e=n.enabled?this.mgrModuleService.disable(n.name):this.mgrModuleService.enable(n.name),e.subscribe(()=>{},()=>{this.notificationService.suspendToasties(!0),this.blockUI.start("Reconnecting, please wait ..."),t()})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Gt.a),r.Rb(wl),r.Rb(wn.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-mgr-module-list"]],viewQuery:function(e,t){if(1&e&&r.Wc(Vt.a,3),2&e){let e;r.Ec(e=r.mc())&&(t.table=e.first)}},features:[r.Ab],decls:4,vars:8,consts:[["columnMode","flex","selectionType","single","identifier","module",3,"autoReload","data","columns","hasDetails","setExpandedRow","updateSelection","fetchData"],["table",""],[1,"table-actions",3,"permission","selection","tableActions"],["cdTableDetail","",3,"selection"]],template:function(e,t){1&e&&(r.Xb(0,"cd-table",0,1),r.lc("setExpandedRow",function(e){return t.setExpandedRow(e)})("updateSelection",function(e){return t.updateSelection(e)})("fetchData",function(e){return t.getModuleList(e)}),r.Sb(2,"cd-table-actions",2),r.Sb(3,"cd-mgr-module-details",3),r.Wb()),2&e&&(r.uc("autoReload",!1)("data",t.modules)("columns",t.columns)("hasDetails",!0),r.Db(2),r.uc("permission",t.permission)("selection",t.selection)("tableActions",t.tableActions),r.Db(1),r.uc("selection",t.expandedRow))},directives:[Vt.a,Dn.a,du],styles:[""]}),Object(jt.b)([lu(),Object(jt.d)("design:type",Object)],e.prototype,"blockUI",void 0),e})(),fu=(()=>{class e{constructor(e){this.http=e}getMonitor(){return this.http.get("api/monitor")}}return e.\u0275fac=function(t){return new(t||e)(r.ic(o.b))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function pu(e,t){if(1&e&&(r.Xb(0,"table",11),r.Xb(1,"tr"),r.Xb(2,"td",12),r.bc(3,13),r.Wb(),r.Xb(4,"td"),r.Rc(5),r.Wb(),r.Wb(),r.Xb(6,"tr"),r.Xb(7,"td",12),r.bc(8,14),r.Wb(),r.Xb(9,"td"),r.Rc(10),r.oc(11,"relativeDate"),r.Wb(),r.Wb(),r.Xb(12,"tr"),r.Xb(13,"td",12),r.bc(14,15),r.Wb(),r.Xb(15,"td"),r.Rc(16),r.Wb(),r.Wb(),r.Xb(17,"tr"),r.Xb(18,"td",12),r.bc(19,16),r.Wb(),r.Xb(20,"td"),r.Rc(21),r.Wb(),r.Wb(),r.Xb(22,"tr"),r.Xb(23,"td",12),r.bc(24,17),r.Wb(),r.Xb(25,"td"),r.Rc(26),r.Wb(),r.Wb(),r.Xb(27,"tr"),r.Xb(28,"td",12),r.bc(29,18),r.Wb(),r.Xb(30,"td"),r.Rc(31),r.Wb(),r.Wb(),r.Xb(32,"tr"),r.Xb(33,"td",12),r.bc(34,19),r.Wb(),r.Xb(35,"td"),r.Rc(36),r.Wb(),r.Wb(),r.Wb()),2&e){const e=r.nc();r.Db(5),r.Sc(e.mon_status.monmap.fsid),r.Db(5),r.Sc(r.pc(11,7,e.mon_status.monmap.modified)),r.Db(6),r.Sc(e.mon_status.monmap.epoch),r.Db(5),r.Sc(e.mon_status.features.quorum_con),r.Db(5),r.Sc(e.mon_status.features.quorum_mon),r.Db(5),r.Sc(e.mon_status.features.required_con),r.Db(5),r.Sc(e.mon_status.features.required_mon)}}let mu=(()=>{class e{constructor(e){this.monitorService=e,this.inQuorum={columns:[{prop:"name",name:"Name",cellTransformation:$t.a.routerLink},{prop:"rank",name:"Rank"},{prop:"public_addr",name:"Public Address"},{prop:"cdOpenSessions",name:"Open Sessions",cellTransformation:$t.a.sparkline,comparator:(e,t)=>{const n=Wt.a.last(e),i=Wt.a.last(t);return n&&i&&n!==i?n>i?1:-1:0}}]},this.notInQuorum={columns:[{prop:"name",name:"Name",cellTransformation:$t.a.routerLink},{prop:"rank",name:"Rank"},{prop:"public_addr",name:"Public Address"}]}}refresh(){this.monitorService.getMonitor().subscribe(e=>{e.in_quorum.map(e=>(e.cdOpenSessions=e.stats.num_sessions.map(e=>e[1]),e.cdLink="/perf_counters/mon/"+e.name,e.cdParams={fromLink:"/monitor"},e)),e.out_quorum.map(e=>(e.cdLink="/perf_counters/mon/"+e.name,e.cdParams={fromLink:"/monitor"},e)),this.inQuorum.data=[...e.in_quorum],this.notInQuorum.data=[...e.out_quorum],this.mon_status=e.mon_status})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(fu))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-monitor"]],decls:13,vars:5,consts:function(){let e,t,n,i,r,s,o,a,c,l;return e="Status",t="In Quorum",n="Not In Quorum",i="Cluster ID",r="monmap modified",s="monmap epoch",o="quorum con",a="quorum mon",c="required con",l="required mon",[[1,"row"],[1,"col-lg-4"],[1,"cd-header"],e,["class","table table-striped",4,"ngIf"],[1,"col-lg-8"],[1,"in-quorum","cd-header"],t,[3,"data","columns"],n,[3,"data","columns","fetchData"],[1,"table","table-striped"],[1,"bold"],i,r,s,o,a,c,l]},template:function(e,t){1&e&&(r.Xb(0,"div",0),r.Xb(1,"div",1),r.Xb(2,"fieldset"),r.Xb(3,"legend",2),r.bc(4,3),r.Wb(),r.Pc(5,pu,37,9,"table",4),r.Wb(),r.Wb(),r.Xb(6,"div",5),r.Xb(7,"legend",6),r.bc(8,7),r.Wb(),r.Sb(9,"cd-table",8),r.Xb(10,"legend",6),r.bc(11,9),r.Wb(),r.Xb(12,"cd-table",10),r.lc("fetchData",function(){return t.refresh()}),r.Wb(),r.Wb(),r.Wb()),2&e&&(r.Db(5),r.uc("ngIf",t.mon_status),r.Db(4),r.uc("data",t.inQuorum.data)("columns",t.inQuorum.columns),r.Db(3),r.uc("data",t.notInQuorum.data)("columns",t.notInQuorum.columns))},directives:[s.r,Vt.a],pipes:[Br.a],styles:[""]}),e})();function bu(e,t){if(1&e&&(r.Xb(0,"span",18),r.bc(1,19),r.Wb()),2&e){const e=r.nc(2);r.uc("ngbTooltip",e.clusterWideTooltip)}}function gu(e,t){1&e&&r.Sb(0,"hr",20)}function _u(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div",12),r.Xb(1,"input",13),r.lc("change",function(){r.Ic(e);const n=t.$implicit;return r.nc().changeValue(n)}),r.Wb(),r.Xb(2,"label",14),r.Xb(3,"strong"),r.Rc(4),r.Wb(),r.Pc(5,bu,2,1,"span",15),r.Sb(6,"br"),r.Xb(7,"span",16),r.Rc(8),r.Wb(),r.Wb(),r.Pc(9,gu,1,0,"hr",17),r.Wb()}if(2&e){const e=t.$implicit,n=t.last;r.Db(1),r.uc("checked",e.value)("indeterminate",e.indeterminate)("name",e.code)("id",e.code),r.Db(1),r.uc("for",e.code),r.Db(2),r.Sc(e.name),r.Db(1),r.uc("ngIf",e.clusterWide),r.Db(3),r.Sc(e.description),r.Db(1),r.uc("ngIf",!n)}}let vu=(()=>{class e{constructor(e,t,n,i,r){this.activeModal=e,this.actionLabels=t,this.authStorageService=n,this.osdService=i,this.notificationService=r,this.initialSelection=[],this.osdFlagsForm=new xn.j({}),this.flags=[{code:"noup",name:"No Up",description:"OSDs are not allowed to start",value:!1,clusterWide:!1,indeterminate:!1},{code:"nodown",name:"No Down",description:"OSD failure reports are being ignored, such that the monitors will not mark OSDs down",value:!1,clusterWide:!1,indeterminate:!1},{code:"noin",name:"No In",description:"OSDs that were previously marked out will not be marked back in when they start",value:!1,clusterWide:!1,indeterminate:!1},{code:"noout",name:"No Out",description:"OSDs will not automatically be marked out after the configured interval",value:!1,clusterWide:!1,indeterminate:!1}],this.clusterWideTooltip="The flag has been enabled for the entire cluster.",this.permissions=this.authStorageService.getPermissions()}ngOnInit(){const e=this.selected.length;this.osdService.getFlags().subscribe(t=>{const n=this.getActivatedIndivFlags();this.flags.forEach(i=>{const r=n[i.code];t.includes(i.code)&&(i.clusterWide=!0),r===e?i.value=!0:r>0&&(i.indeterminate=!0)}),this.initialSelection=Wt.a.cloneDeep(this.flags)})}getActivatedIndivFlags(){const e={};return this.flags.forEach(t=>{e[t.code]=0}),[].concat(...this.selected.map(e=>e.state)).map(t=>{Object.keys(e).includes(t)&&(e[t]=e[t]+1)}),e}changeValue(e){e.value=!e.value,e.indeterminate=!1}resetSelection(){this.flags=Wt.a.cloneDeep(this.initialSelection)}submitAction(){const e={};this.flags.forEach(t=>{e[t.code]=t.indeterminate?null:t.value});const t=this.selected.map(e=>e.osd);this.osdService.updateIndividualFlags(e,t).subscribe(()=>{this.notificationService.show(vn.a.success,"Updated OSD Flags"),this.activeModal.close()},()=>{this.activeModal.close()})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Jt.a),r.Rb(gn.b),r.Rb(Gt.a),r.Rb(Vi),r.Rb(wn.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-osd-flags-indiv-modal"]],decls:12,vars:6,consts:function(){let e,t,n;return e="Individual OSD Flags",t="Restore previous selection",n="Cluster-wide",[[3,"modalRef"],[1,"modal-title"],e,[1,"modal-content"],["name","osdFlagsForm","novalidate","",3,"formGroup"],["formDir","ngForm"],[1,"modal-body","osd-modal"],["class","custom-control custom-checkbox",4,"ngFor","ngForOf"],[1,"modal-footer"],["type","button",1,"btn","btn-light",3,"click"],t,[3,"form","showSubmit","submitText","submitActionEvent"],[1,"custom-control","custom-checkbox"],["type","checkbox",1,"custom-control-input",3,"checked","indeterminate","name","id","change"],["ng-class","['tc_' + key]",1,"custom-control-label",3,"for"],["class","badge badge-hdd ml-2",3,"ngbTooltip",4,"ngIf"],[1,"form-text","text-muted"],["class","m-1",4,"ngIf"],[1,"badge","badge-hdd","ml-2",3,"ngbTooltip"],n,[1,"m-1"]]},template:function(e,t){1&e&&(r.Xb(0,"cd-modal",0),r.Vb(1,1),r.bc(2,2),r.Ub(),r.Vb(3,3),r.Xb(4,"form",4,5),r.Xb(6,"div",6),r.Pc(7,_u,10,9,"div",7),r.Wb(),r.Xb(8,"div",8),r.Xb(9,"button",9),r.lc("click",function(){return t.resetSelection()}),r.bc(10,10),r.Wb(),r.Xb(11,"cd-form-button-panel",11),r.lc("submitActionEvent",function(){return t.submitAction()}),r.Wb(),r.Wb(),r.Wb(),r.Ub(),r.Wb()),2&e&&(r.uc("modalRef",t.activeModal),r.Db(4),r.uc("formGroup",t.osdFlagsForm),r.Db(3),r.uc("ngForOf",t.flags),r.Db(4),r.uc("form",t.osdFlagsForm)("showSubmit",t.permissions.osd.update)("submitText",t.actionLabels.UPDATE))},directives:[ur.a,xn.B,xn.r,Qn.a,xn.k,s.q,On.a,ti.a,ei.a,s.r,Jt.D],styles:[""]}),e})();var yu=n("f/UV");function wu(e,t){1&e&&r.Sb(0,"hr",15)}function Du(e,t){if(1&e&&(r.Xb(0,"div",10),r.Xb(1,"input",11),r.lc("change",function(){const e=t.$implicit;return e.value=!e.value}),r.Wb(),r.Xb(2,"label",12),r.Xb(3,"strong"),r.Rc(4),r.Wb(),r.Sb(5,"br"),r.Xb(6,"span",13),r.Rc(7),r.Wb(),r.Wb(),r.Pc(8,wu,1,0,"hr",14),r.Wb()),2&e){const e=t.$implicit,n=t.last;r.Db(1),r.uc("checked",e.value)("name",e.code)("id",e.code)("disabled",e.disabled),r.Db(1),r.uc("for",e.code),r.Db(2),r.Sc(e.name),r.Db(3),r.Sc(e.description),r.Db(1),r.uc("ngIf",!n)}}let Su=(()=>{class e{constructor(e,t,n,i,r){this.activeModal=e,this.actionLabels=t,this.authStorageService=n,this.osdService=i,this.notificationService=r,this.osdFlagsForm=new xn.j({}),this.allFlags={noin:{code:"noin",name:"No In",value:!1,description:"OSDs that were previously marked out will not be marked back in when they start"},noout:{code:"noout",name:"No Out",value:!1,description:"OSDs will not automatically be marked out after the configured interval"},noup:{code:"noup",name:"No Up",value:!1,description:"OSDs are not allowed to start"},nodown:{code:"nodown",name:"No Down",value:!1,description:"OSD failure reports are being ignored, such that the monitors will not mark OSDs down"},pause:{code:"pause",name:"Pause",value:!1,description:"Pauses reads and writes"},noscrub:{code:"noscrub",name:"No Scrub",value:!1,description:"Scrubbing is disabled"},"nodeep-scrub":{code:"nodeep-scrub",name:"No Deep Scrub",value:!1,description:"Deep Scrubbing is disabled"},nobackfill:{code:"nobackfill",name:"No Backfill",value:!1,description:"Backfilling of PGs is suspended"},norebalance:{code:"norebalance",name:"No Rebalance",value:!1,description:"OSD will choose not to backfill unless PG is also degraded"},norecover:{code:"norecover",name:"No Recover",value:!1,description:"Recovery of PGs is suspended"},sortbitwise:{code:"sortbitwise",name:"Bitwise Sort",value:!1,description:"Use bitwise sort",disabled:!0},purged_snapdirs:{code:"purged_snapdirs",name:"Purged Snapdirs",value:!1,description:"OSDs have converted snapsets",disabled:!0},recovery_deletes:{code:"recovery_deletes",name:"Recovery Deletes",value:!1,description:"Deletes performed during recovery instead of peering",disabled:!0},pglog_hardlimit:{code:"pglog_hardlimit",name:"PG Log Hard Limit",value:!1,description:"Puts a hard limit on pg log length",disabled:!0}},this.unknownFlags=[],this.permissions=this.authStorageService.getPermissions()}ngOnInit(){this.osdService.getFlags().subscribe(e=>{e.forEach(e=>{this.allFlags[e]?this.allFlags[e].value=!0:this.unknownFlags.push(e)}),this.flags=Wt.a.toArray(this.allFlags)})}submitAction(){const e=this.flags.filter(e=>e.value).map(e=>e.code).concat(this.unknownFlags);this.osdService.updateFlags(e).subscribe(()=>{this.notificationService.show(vn.a.success,"Updated OSD Flags"),this.activeModal.close()},()=>{this.activeModal.close()})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Jt.a),r.Rb(gn.b),r.Rb(Gt.a),r.Rb(Vi),r.Rb(wn.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-osd-flags-modal"]],decls:10,vars:6,consts:function(){let e;return e="Cluster-wide OSD Flags",[[3,"modalRef"],[1,"modal-title"],e,[1,"modal-content"],["name","osdFlagsForm","novalidate","","cdFormScope","osd",3,"formGroup"],["formDir","ngForm"],[1,"modal-body","osd-modal"],["class","custom-control custom-checkbox",4,"ngFor","ngForOf"],[1,"modal-footer"],[3,"form","showSubmit","submitText","submitActionEvent"],[1,"custom-control","custom-checkbox"],["type","checkbox",1,"custom-control-input",3,"checked","name","id","disabled","change"],["ng-class","['tc_' + key]",1,"custom-control-label",3,"for"],[1,"form-text","text-muted"],["class","m-1",4,"ngIf"],[1,"m-1"]]},template:function(e,t){1&e&&(r.Xb(0,"cd-modal",0),r.Vb(1,1),r.bc(2,2),r.Ub(),r.Vb(3,3),r.Xb(4,"form",4,5),r.Xb(6,"div",6),r.Pc(7,Du,9,8,"div",7),r.Wb(),r.Xb(8,"div",8),r.Xb(9,"cd-form-button-panel",9),r.lc("submitActionEvent",function(){return t.submitAction()}),r.Wb(),r.Wb(),r.Wb(),r.Ub(),r.Wb()),2&e&&(r.uc("modalRef",t.activeModal),r.Db(4),r.uc("formGroup",t.osdFlagsForm),r.Db(3),r.uc("ngForOf",t.flags),r.Db(2),r.uc("form",t.osdFlagsForm)("showSubmit",t.permissions.osd.update)("submitText",t.actionLabels.UPDATE))},directives:[ur.a,xn.B,xn.r,yu.a,Qn.a,xn.k,s.q,ti.a,On.a,ei.a,s.r],styles:[""]}),e})();function xu(e,t){if(1&e&&(r.Xb(0,"cd-helper"),r.Rc(1),r.Wb()),2&e){const e=r.nc(2).$implicit;r.Db(1),r.Tc(" ",e.long_desc,"")}}function ku(e,t){if(1&e&&(r.Xb(0,"div",4),r.Xb(1,"label",5),r.Xb(2,"b"),r.Rc(3),r.Wb(),r.Sb(4,"br"),r.Xb(5,"span",6),r.Rc(6),r.Pc(7,xu,2,1,"cd-helper",7),r.Wb(),r.Wb(),r.Xb(8,"div",8),r.Xb(9,"div",9),r.Sb(10,"input",10),r.Sb(11,"label",11),r.Wb(),r.Wb(),r.Wb()),2&e){const e=r.nc().$implicit;r.Db(1),r.uc("for",e.name),r.Db(2),r.Sc(e.text),r.Db(3),r.Tc(" ",e.desc," "),r.Db(1),r.uc("ngIf",e.long_desc),r.Db(3),r.uc("id",e.name)("formControlName",e.name),r.Db(1),r.uc("for",e.name)}}function Tu(e,t){if(1&e&&(r.Xb(0,"cd-helper"),r.Rc(1),r.Wb()),2&e){const e=r.nc(2).$implicit;r.Db(1),r.Tc(" ",e.long_desc,"")}}const Mu=function(e){return[e]};function Cu(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div",16),r.Xb(1,"button",17),r.lc("click",function(){r.Ic(e);const t=r.nc(2).$implicit;return r.nc().resetValue(t.name)}),r.Sb(2,"i",18),r.Wb(),r.Wb()}if(2&e){const e=r.nc(3);r.Db(2),r.uc("ngClass",r.zc(1,Mu,e.icons.erase))}}function Ou(e,t){if(1&e&&(r.Xb(0,"span",19),r.Rc(1),r.Wb()),2&e){const e=r.nc(2).$implicit;r.Db(1),r.Tc(" ",e.additionalTypeInfo.patternHelpText,"")}}function Lu(e,t){if(1&e&&(r.Xb(0,"span",19),r.Rc(1),r.Wb()),2&e){const e=r.nc(2).$implicit;r.Db(1),r.Tc(" ",e.additionalTypeInfo.patternHelpText,"")}}function Eu(e,t){if(1&e&&(r.Xb(0,"span",19),r.bc(1,20),r.Wb()),2&e){const e=r.nc(2).$implicit;r.Db(1),r.fc(e.maxValue),r.cc(1)}}function Au(e,t){if(1&e&&(r.Xb(0,"span",19),r.bc(1,21),r.Wb()),2&e){const e=r.nc(2).$implicit;r.Db(1),r.fc(e.minValue),r.cc(1)}}function Iu(e,t){if(1&e&&(r.Xb(0,"div",4),r.Xb(1,"label",5),r.Rc(2),r.Sb(3,"br"),r.Xb(4,"span",6),r.Rc(5),r.Pc(6,Tu,2,1,"cd-helper",7),r.Wb(),r.Wb(),r.Xb(7,"div",8),r.Xb(8,"div",12),r.Sb(9,"input",13),r.Pc(10,Cu,3,3,"div",14),r.Wb(),r.Pc(11,Ou,2,1,"span",15),r.Pc(12,Lu,2,1,"span",15),r.Pc(13,Eu,2,1,"span",15),r.Pc(14,Au,2,1,"span",15),r.Wb(),r.Wb()),2&e){const e=r.nc().$implicit,t=r.nc();r.Db(1),r.uc("for",e.name),r.Db(1),r.Tc("",e.text," "),r.Db(3),r.Tc(" ",e.desc," "),r.Db(1),r.uc("ngIf",e.long_desc),r.Db(3),r.uc("type",e.additionalTypeInfo.inputType)("id",e.name)("placeholder",e.additionalTypeInfo.humanReadable)("formControlName",e.name)("step",t.getStep(e.type,t.optionsForm.getValue(e.name))),r.Db(1),r.uc("ngIf",t.optionsFormShowReset),r.Db(1),r.uc("ngIf",t.optionsForm.showError(e.name,t.optionsFormDir,"pattern")),r.Db(1),r.uc("ngIf",t.optionsForm.showError(e.name,t.optionsFormDir,"invalidUuid")),r.Db(1),r.uc("ngIf",t.optionsForm.showError(e.name,t.optionsFormDir,"max")),r.Db(1),r.uc("ngIf",t.optionsForm.showError(e.name,t.optionsFormDir,"min"))}}function Ru(e,t){1&e&&r.Sb(0,"hr",22)}function Pu(e,t){if(1&e&&(r.Xb(0,"div"),r.Pc(1,ku,12,7,"div",2),r.Pc(2,Iu,15,14,"div",2),r.Pc(3,Ru,1,0,"hr",3),r.Wb()),2&e){const e=t.$implicit,n=t.last;r.Db(1),r.uc("ngIf","bool"===e.type),r.Db(1),r.uc("ngIf","bool"!==e.type),r.Db(1),r.uc("ngIf",!n)}}let Fu=(()=>{class e{constructor(e){this.configService=e,this.optionNames=[],this.optionsForm=new Gn.a({}),this.optionsFormDir=new xn.s([],[]),this.optionsFormGroupName="",this.optionsFormShowReset=!0,this.icons=_n.a,this.options=[],this.optionsFormGroup=new Gn.a({})}static optionNameToText(e){const t=["mon","mgr","osd","mds","client"];return e.split("_").filter((e,n)=>0!==n||!t.includes(e)).map(e=>e.charAt(0).toUpperCase()+e.substring(1)).join(" ")}ngOnInit(){this.createForm(),this.loadStoredData()}createForm(){this.optionsForm.addControl(this.optionsFormGroupName,this.optionsFormGroup),this.optionNames.forEach(e=>{this.optionsFormGroup.addControl(e,new xn.h(null))})}getStep(e,t){return Un.getTypeStep(e,t)}loadStoredData(){this.configService.filter(this.optionNames).subscribe(t=>{this.options=t.map(t=>{const n=this.optionsForm.get(t.name),i=Un.getTypeValidators(t);return t.additionalTypeInfo=Un.getType(t.type),t.text=e.optionNameToText(t.name),t.value=Wt.a.find(t.value,e=>"osd"===e.section),t.value&&n.setValue("bool"===t.additionalTypeInfo.name?"true"===t.value.value:t.value.value),i&&(t.patternHelpText=i.patternHelpText,"max"in i&&""!==i.max&&(t.maxValue=i.max),"min"in i&&""!==i.min&&(t.minValue=i.min),n.setValidators(i.validators)),t})})}saveValues(){const e={};return this.optionNames.forEach(t=>{const n=this.optionsForm.getValue(t);null!==n&&""!==n&&(e[t]={section:"osd",value:n})}),this.configService.bulkCreate({options:e})}resetValue(e){this.configService.delete(e,"osd").subscribe(()=>{this.optionsForm.get(e).reset()})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Bn.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-config-option"]],inputs:{optionNames:"optionNames",optionsForm:"optionsForm",optionsFormDir:"optionsFormDir",optionsFormGroupName:"optionsFormGroupName",optionsFormShowReset:"optionsFormShowReset"},decls:2,vars:2,consts:function(){let e,t,n;return e="Remove the custom configuration value. The default configuration will be inherited and used instead.",t="The entered value is too high! It must not be greater than " + "\ufffd0\ufffd" + ".",n="The entered value is too low! It must not be lower than " + "\ufffd0\ufffd" + ".",[[3,"formGroup"],[4,"ngFor","ngForOf"],["class","form-group row pt-2",4,"ngIf"],["class","my-2",4,"ngIf"],[1,"form-group","row","pt-2"],[1,"cd-col-form-label",3,"for"],[1,"text-muted"],[4,"ngIf"],[1,"cd-col-form-input"],[1,"custom-control","custom-checkbox"],["type","checkbox",1,"custom-control-input",3,"id","formControlName"],[1,"custom-control-label",3,"for"],[1,"input-group"],[1,"form-control",3,"type","id","placeholder","formControlName","step"],["class","input-group-append",4,"ngIf"],["class","invalid-feedback",4,"ngIf"],[1,"input-group-append"],["type","button","data-toggle","button","title",e,1,"btn","btn-light",3,"click"],["aria-hidden","true",3,"ngClass"],[1,"invalid-feedback"],t,n,[1,"my-2"]]},template:function(e,t){1&e&&(r.Xb(0,"div",0),r.Pc(1,Pu,4,3,"div",1),r.Wb()),2&e&&(r.uc("formGroup",t.optionsFormGroup),r.Db(1),r.uc("ngForOf",t.options))},directives:[xn.r,xn.k,Qn.a,s.q,s.r,Zn.a,On.a,xn.b,ei.a,xn.q,xn.i,dr.a,xn.d,s.p],styles:[".custom-checkbox[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .custom-checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{cursor:pointer}.col-form-label[_ngcontent-%COMP%]{text-align:left}"]}),e})(),Wu=(()=>{class e{}return e.basicOptions=["osd_scrub_during_recovery","osd_scrub_begin_hour","osd_scrub_end_hour","osd_scrub_begin_week_day","osd_scrub_end_week_day","osd_scrub_min_interval","osd_scrub_max_interval","osd_deep_scrub_interval","osd_scrub_auto_repair","osd_max_scrubs","osd_scrub_priority","osd_scrub_sleep"],e.advancedOptions=["osd_scrub_auto_repair_num_errors","osd_debug_deep_scrub_sleep","osd_deep_scrub_keys","osd_deep_scrub_large_omap_object_key_threshold","osd_deep_scrub_large_omap_object_value_sum_threshold","osd_deep_scrub_randomize_ratio","osd_deep_scrub_stride","osd_deep_scrub_update_digest_min_age","osd_requested_scrub_priority","osd_scrub_backoff_ratio","osd_scrub_chunk_max","osd_scrub_chunk_min","osd_scrub_cost","osd_scrub_interval_randomize_ratio","osd_scrub_invalid_stats","osd_scrub_load_threshold","osd_scrub_max_preemptions"],e})();const ju=["basicOptionsValues"],Yu=["advancedOptionsValues"];function Nu(e,t){if(1&e){const e=r.Yb();r.Xb(0,"a",15),r.lc("click",function(){return r.Ic(e),r.nc().advancedEnabled=!0}),r.bc(1,16),r.Wb()}}function zu(e,t){if(1&e&&(r.Xb(0,"div"),r.Xb(1,"h3",17),r.bc(2,18),r.Wb(),r.Sb(3,"cd-config-option",7,19),r.Wb()),2&e){const e=r.nc(),t=r.Fc(7);r.Db(3),r.uc("optionNames",e.advancedOptions)("optionsForm",e.osdPgScrubForm)("optionsFormDir",t)("optionsFormGroupName","advancedFormGroup")}}let $u=(()=>{class e{constructor(e,t,n,i){this.activeModal=e,this.authStorageService=t,this.notificationService=n,this.actionLabels=i,this.basicOptions=Wu.basicOptions,this.advancedOptions=Wu.advancedOptions,this.advancedEnabled=!1,this.osdPgScrubForm=new Gn.a({}),this.resource="PG scrub options",this.action=this.actionLabels.EDIT,this.permissions=this.authStorageService.getPermissions()}submitAction(){const e=[this.basicOptionsValues.saveValues()];this.advancedOptionsValues&&e.push(this.advancedOptionsValues.saveValues()),Object(Oi.a)(e).subscribe(()=>{this.notificationService.show(vn.a.success,"Updated PG scrub options"),this.activeModal.close()},()=>{this.activeModal.close()})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Jt.a),r.Rb(Gt.a),r.Rb(wn.a),r.Rb(gn.b))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-osd-pg-scrub-modal"]],viewQuery:function(e,t){if(1&e&&(r.Wc(ju,3),r.Wc(Yu,1)),2&e){let e;r.Ec(e=r.mc())&&(t.basicOptionsValues=e.first),r.Ec(e=r.mc())&&(t.advancedOptionsValues=e.first)}},decls:19,vars:21,consts:function(){let e,t,n;return e="" + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + "",t="Advanced...",n="Advanced configuration options",[[3,"modalRef"],[1,"modal-title"],e,[1,"modal-content"],["novalidate","","cdFormScope","osd",3,"formGroup"],["formDir","ngForm"],[1,"modal-body","osd-modal"],[3,"optionNames","optionsForm","optionsFormDir","optionsFormGroupName"],["basicOptionsValues",""],[1,"row"],[1,"col-sm-12"],["class","pull-right margin-right-md",3,"click",4,"ngIf"],[4,"ngIf"],[1,"modal-footer"],[3,"form","showSubmit","submitText","submitActionEvent"],[1,"pull-right","margin-right-md",3,"click"],t,[1,"page-header"],n,["advancedOptionsValues",""]]},template:function(e,t){if(1&e&&(r.Xb(0,"cd-modal",0),r.Vb(1,1),r.bc(2,2),r.oc(3,"titlecase"),r.oc(4,"upperFirst"),r.Ub(),r.Vb(5,3),r.Xb(6,"form",4,5),r.Xb(8,"div",6),r.Sb(9,"cd-config-option",7,8),r.Xb(11,"div",9),r.Xb(12,"div",10),r.Pc(13,Nu,2,0,"a",11),r.Wb(),r.Wb(),r.Pc(14,zu,5,4,"div",12),r.Wb(),r.Xb(15,"div",13),r.Xb(16,"cd-form-button-panel",14),r.lc("submitActionEvent",function(){return t.submitAction()}),r.oc(17,"titlecase"),r.oc(18,"upperFirst"),r.Wb(),r.Wb(),r.Wb(),r.Ub(),r.Wb()),2&e){const e=r.Fc(7);r.uc("modalRef",t.activeModal),r.Db(4),r.fc(r.pc(3,13,t.action))(r.pc(4,15,t.resource)),r.cc(2),r.Db(2),r.uc("formGroup",t.osdPgScrubForm),r.Db(3),r.uc("optionNames",t.basicOptions)("optionsForm",t.osdPgScrubForm)("optionsFormDir",e)("optionsFormGroupName","basicFormGroup"),r.Db(4),r.uc("ngIf",!t.advancedEnabled),r.Db(1),r.uc("ngIf",t.advancedEnabled),r.Db(2),r.uc("form",t.osdPgScrubForm)("showSubmit",t.permissions.configOpt.update)("submitText",r.pc(17,17,t.action)+" "+r.pc(18,19,t.resource))}},directives:[ur.a,xn.B,xn.r,yu.a,Qn.a,xn.k,Fu,s.r,ti.a],pipes:[s.A,pr.a],styles:[""]}),e})();function Hu(e,t){if(1&e&&(r.Xb(0,"option",22),r.Rc(1),r.Wb()),2&e){const e=t.$implicit;r.uc("value",e.name),r.Db(1),r.Tc(" ",e.text," ")}}function Xu(e,t){1&e&&(r.Xb(0,"span",23),r.bc(1,24),r.Wb())}function Vu(e,t){if(1&e&&(r.Xb(0,"cd-helper"),r.Rc(1),r.Wb()),2&e){const e=r.nc().$implicit;r.Db(1),r.Sc(e.value.desc)}}function Bu(e,t){1&e&&(r.Xb(0,"span",23),r.bc(1,29),r.Wb())}function Uu(e,t){if(1&e&&(r.Xb(0,"span",23),r.bc(1,30),r.Wb()),2&e){const e=r.nc().$implicit;r.Db(1),r.fc(e.value.patternHelpText),r.cc(1)}}function qu(e,t){if(1&e&&(r.Xb(0,"span",23),r.bc(1,31),r.Wb()),2&e){const e=r.nc().$implicit;r.Db(1),r.fc(e.value.maxValue),r.cc(1)}}function Gu(e,t){if(1&e&&(r.Xb(0,"span",23),r.bc(1,32),r.Wb()),2&e){const e=r.nc().$implicit;r.Db(1),r.fc(e.value.minValue),r.cc(1)}}const Ju=function(e){return{required:e}};function Ku(e,t){if(1&e&&(r.Xb(0,"div",7),r.Xb(1,"label",25),r.Xb(2,"span",26),r.Rc(3),r.Wb(),r.Pc(4,Vu,2,1,"cd-helper",27),r.Wb(),r.Xb(5,"div",10),r.Sb(6,"input",28),r.Pc(7,Bu,2,0,"span",13),r.Pc(8,Uu,2,1,"span",13),r.Pc(9,qu,2,1,"span",13),r.Pc(10,Gu,2,1,"span",13),r.Wb(),r.Wb()),2&e){const e=t.$implicit,n=r.nc(),i=r.Fc(5);r.Db(1),r.uc("for",e.key),r.Db(1),r.uc("ngClass",r.zc(11,Ju,n.osdRecvSpeedForm.getValue("customizePriority"))),r.Db(1),r.Tc(" ",e.value.text," "),r.Db(1),r.uc("ngIf",e.value.desc),r.Db(2),r.uc("id",e.key)("formControlName",e.key)("readonly",!n.osdRecvSpeedForm.getValue("customizePriority")),r.Db(1),r.uc("ngIf",n.osdRecvSpeedForm.getValue("customizePriority")&&n.osdRecvSpeedForm.showError(e.key,i,"required")),r.Db(1),r.uc("ngIf",n.osdRecvSpeedForm.getValue("customizePriority")&&n.osdRecvSpeedForm.showError(e.key,i,"pattern")),r.Db(1),r.uc("ngIf",n.osdRecvSpeedForm.getValue("customizePriority")&&n.osdRecvSpeedForm.showError(e.key,i,"max")),r.Db(1),r.uc("ngIf",n.osdRecvSpeedForm.getValue("customizePriority")&&n.osdRecvSpeedForm.showError(e.key,i,"min"))}}let Qu=(()=>{class e{constructor(e,t,n,i,r,s){this.activeModal=e,this.actionLabels=t,this.authStorageService=n,this.configService=i,this.notificationService=r,this.osdService=s,this.priorities=[],this.priorityAttrs={},this.permissions=this.authStorageService.getPermissions(),this.priorities=this.osdService.osdRecvSpeedModalPriorities.KNOWN_PRIORITIES,this.osdRecvSpeedForm=new Gn.a({priority:new xn.h(null,{validators:[xn.A.required]}),customizePriority:new xn.h(!1)}),this.priorityAttrs={osd_max_backfills:{text:"Max Backfills",desc:"",patternHelpText:"",maxValue:void 0,minValue:void 0},osd_recovery_max_active:{text:"Recovery Max Active",desc:"",patternHelpText:"",maxValue:void 0,minValue:void 0},osd_recovery_max_single_start:{text:"Recovery Max Single Start",desc:"",patternHelpText:"",maxValue:void 0,minValue:void 0},osd_recovery_sleep:{text:"Recovery Sleep",desc:"",patternHelpText:"",maxValue:void 0,minValue:void 0}},Object.keys(this.priorityAttrs).forEach(e=>{this.osdRecvSpeedForm.addControl(e,new xn.h(null,{validators:[xn.A.required]}))})}ngOnInit(){this.configService.filter(Object.keys(this.priorityAttrs)).subscribe(e=>{const t=this.getCurrentValues(e);this.detectPriority(t.values,e=>{this.setPriority(e)}),this.setDescription(t.configOptions),this.setValidators(t.configOptions)})}detectPriority(e,t){const n=Wt.a.find(this.priorities,t=>Wt.a.isEqual(t.values,e));return this.osdRecvSpeedForm.controls.customizePriority.setValue(!1),n?t(n):4===Object.entries(e).length?(this.osdRecvSpeedForm.controls.customizePriority.setValue(!0),t(Object({name:"custom",text:"Custom",values:e}))):t(this.priorities[0])}getCurrentValues(e){const t={values:{},configOptions:[]};return e.forEach(e=>{t.configOptions.push(e),"value"in e?e.value.forEach(n=>{"osd"===n.section&&(t.values[e.name]=Number(n.value))}):"default"in e&&null!==e.default&&(t.values[e.name]=Number(e.default))}),t}setDescription(e){e.forEach(e=>{""!==e.desc&&(this.priorityAttrs[e.name].desc=e.desc)})}setPriority(e){const t=Wt.a.find(this.priorities,e=>"custom"===e.name);"custom"===e.name?t||this.priorities.push(e):t&&this.priorities.splice(this.priorities.indexOf(t),1),this.osdRecvSpeedForm.controls.priority.setValue(e.name),Object.entries(e.values).forEach(([e,t])=>{this.osdRecvSpeedForm.controls[e].setValue(t)})}setValidators(e){e.forEach(e=>{const t=Un.getTypeValidators(e);t?(t.validators.push(xn.A.required),"max"in t&&""!==t.max&&(this.priorityAttrs[e.name].maxValue=t.max),"min"in t&&""!==t.min&&(this.priorityAttrs[e.name].minValue=t.min),this.priorityAttrs[e.name].patternHelpText=t.patternHelpText,this.osdRecvSpeedForm.controls[e.name].setValidators(t.validators)):this.osdRecvSpeedForm.controls[e.name].setValidators(xn.A.required)})}onCustomizePriorityChange(){const e={};if(Object.keys(this.priorityAttrs).forEach(t=>{e[t]=this.osdRecvSpeedForm.getValue(t)}),this.osdRecvSpeedForm.getValue("customizePriority")){const t={name:"custom",text:"Custom",values:e};this.setPriority(t)}else this.detectPriority(e,e=>{this.setPriority(e)})}onPriorityChange(e){const t=Wt.a.find(this.priorities,t=>t.name===e)||this.priorities[0];this.osdRecvSpeedForm.get("customizePriority").setValue(!1),this.setPriority(t)}submitAction(){const e={};Object.keys(this.priorityAttrs).forEach(t=>{e[t]={section:"osd",value:this.osdRecvSpeedForm.getValue(t)}}),this.configService.bulkCreate({options:e}).subscribe(()=>{this.notificationService.show(vn.a.success,"Updated OSD recovery speed priority '" + this.osdRecvSpeedForm.getValue("priority") + "'"),this.activeModal.close()},()=>{this.activeModal.close()})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Jt.a),r.Rb(gn.b),r.Rb(Gt.a),r.Rb(Bn.a),r.Rb(wn.a),r.Rb(Vi))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-osd-recv-speed-modal"]],decls:24,vars:10,consts:function(){let e,t,n,i,r,s,o,a;return e="OSD Recovery Priority",t="Priority",n="Customize priority values",i="This field is required.",r="This field is required!",s="" + "\ufffd0\ufffd" + "",o="The entered value is too high! It must not be greater than " + "\ufffd0\ufffd" + ".",a="The entered value is too low! It must not be lower than " + "\ufffd0\ufffd" + ".",[[3,"modalRef"],[1,"modal-title"],e,[1,"modal-content"],["novalidate","","cdFormScope","osd",3,"formGroup"],["formDir","ngForm"],[1,"modal-body"],[1,"form-group","row"],["for","priority",1,"cd-col-form-label","required"],t,[1,"cd-col-form-input"],["formControlName","priority","id","priority",1,"form-control","custom-select",3,"change"],[3,"value",4,"ngFor","ngForOf"],["class","invalid-feedback",4,"ngIf"],[1,"cd-col-form-offset"],[1,"custom-control","custom-checkbox"],["formControlName","customizePriority","id","customizePriority","name","customizePriority","type","checkbox",1,"custom-control-input",3,"change"],["for","customizePriority",1,"custom-control-label"],n,["class","form-group row",4,"ngFor","ngForOf"],[1,"modal-footer"],[3,"form","submitText","showSubmit","submitActionEvent"],[3,"value"],[1,"invalid-feedback"],i,[1,"cd-col-form-label",3,"for"],[3,"ngClass"],[4,"ngIf"],["type","number",1,"form-control",3,"id","formControlName","readonly"],r,s,o,a]},template:function(e,t){if(1&e&&(r.Xb(0,"cd-modal",0),r.Vb(1,1),r.bc(2,2),r.Ub(),r.Vb(3,3),r.Xb(4,"form",4,5),r.Xb(6,"div",6),r.Xb(7,"div",7),r.Xb(8,"label",8),r.bc(9,9),r.Wb(),r.Xb(10,"div",10),r.Xb(11,"select",11),r.lc("change",function(e){return t.onPriorityChange(e.target.value)}),r.Pc(12,Hu,2,2,"option",12),r.Wb(),r.Pc(13,Xu,2,0,"span",13),r.Wb(),r.Wb(),r.Xb(14,"div",7),r.Xb(15,"div",14),r.Xb(16,"div",15),r.Xb(17,"input",16),r.lc("change",function(){return t.onCustomizePriorityChange()}),r.Wb(),r.Xb(18,"label",17),r.bc(19,18),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Pc(20,Ku,11,13,"div",19),r.oc(21,"keyvalue"),r.Wb(),r.Xb(22,"div",20),r.Xb(23,"cd-form-button-panel",21),r.lc("submitActionEvent",function(){return t.submitAction()}),r.Wb(),r.Wb(),r.Wb(),r.Ub(),r.Wb()),2&e){const e=r.Fc(5);r.uc("modalRef",t.activeModal),r.Db(4),r.uc("formGroup",t.osdRecvSpeedForm),r.Db(8),r.uc("ngForOf",t.priorities),r.Db(1),r.uc("ngIf",t.osdRecvSpeedForm.showError("priority",e,"required")),r.Db(7),r.uc("ngForOf",r.pc(21,8,t.priorityAttrs)),r.Db(3),r.uc("form",t.osdRecvSpeedForm)("submitText",t.actionLabels.UPDATE)("showSubmit",t.permissions.configOpt.update)}},directives:[ur.a,xn.B,xn.r,yu.a,Qn.a,xn.k,Zn.a,On.a,xn.z,ei.a,xn.q,xn.i,s.q,s.r,xn.b,ti.a,xn.u,xn.C,s.p,xn.v,xn.d,dr.a],pipes:[s.k],styles:[""]}),e})();function Zu(e,t){1&e&&(r.Xb(0,"span"),r.bc(1,15),r.Wb())}function ed(e,t){1&e&&(r.Xb(0,"span"),r.bc(1,16),r.Wb())}function td(e,t){if(1&e&&(r.Xb(0,"span",13),r.Pc(1,Zu,2,0,"span",14),r.Pc(2,ed,2,0,"span",14),r.Wb()),2&e){const e=r.nc();r.Db(1),r.uc("ngIf",null==e.weight.errors?null:e.weight.errors.required),r.Db(1),r.uc("ngIf",(null==e.weight.errors?null:e.weight.errors.max)||(null==e.weight.errors?null:e.weight.errors.min))}}let nd=(()=>{class e{constructor(e,t,n,i){this.actionLabels=e,this.activeModal=t,this.osdService=n,this.fb=i,this.currentWeight=1}get weight(){return this.reweightForm.get("weight")}ngOnInit(){this.reweightForm=this.fb.group({weight:this.fb.control(this.currentWeight,[xn.A.required,xn.A.max(1),xn.A.min(0)])})}reweight(){this.osdService.reweight(this.osdId,this.reweightForm.value.weight).subscribe(()=>this.activeModal.close())}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(gn.b),r.Rb(Jt.a),r.Rb(Vi),r.Rb(wo.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-osd-reweight-modal"]],decls:14,vars:7,consts:function(){let e,t,n;return e="Reweight OSD: " + "\ufffd0\ufffd" + "",t="This field is required.",n="The value needs to be between 0 and 1.",[[3,"modalRef"],[1,"modal-title"],e,[1,"modal-content"],[3,"formGroup"],[1,"modal-body"],[1,"row"],["for","weight",1,"cd-col-form-label"],[1,"cd-col-form-input"],["id","weight","type","number","step","0.1","formControlName","weight","min","0","max","1",1,"form-control",3,"value"],["class","invalid-feedback",4,"ngIf"],[1,"modal-footer"],[3,"form","submitText","submitActionEvent"],[1,"invalid-feedback"],[4,"ngIf"],t,n]},template:function(e,t){1&e&&(r.Xb(0,"cd-modal",0),r.Vb(1,1),r.bc(2,2),r.Ub(),r.Vb(3,3),r.Xb(4,"form",4),r.Xb(5,"div",5),r.Xb(6,"div",6),r.Xb(7,"label",7),r.Rc(8,"Weight"),r.Wb(),r.Xb(9,"div",8),r.Sb(10,"input",9),r.Pc(11,td,3,2,"span",10),r.Wb(),r.Wb(),r.Wb(),r.Xb(12,"div",11),r.Xb(13,"cd-form-button-panel",12),r.lc("submitActionEvent",function(){return t.reweight()}),r.Wb(),r.Wb(),r.Wb(),r.Ub(),r.Wb()),2&e&&(r.uc("modalRef",t.activeModal),r.Db(2),r.fc(t.osdId),r.cc(2),r.Db(2),r.uc("formGroup",t.reweightForm),r.Db(6),r.uc("value",t.currentWeight),r.Db(1),r.uc("ngIf",t.weight.errors),r.Db(2),r.uc("form",t.reweightForm)("submitText",t.actionLabels.REWEIGHT))},directives:[ur.a,xn.B,xn.r,Qn.a,xn.k,On.a,xn.v,xn.d,ei.a,xn.q,xn.i,s.r,ti.a],styles:[""]}),e})();var id=n("FFMq");let rd=(()=>{class e{constructor(e,t,n,i,r){this.activeModal=e,this.actionLabels=t,this.osdService=n,this.notificationService=i,this.joinPipe=r,this.selected=[]}ngOnInit(){this.scrubForm=new xn.j({})}scrub(){Object(Oi.a)(this.selected.map(e=>this.osdService.scrub(e,this.deep))).subscribe(()=>{this.notificationService.show(vn.a.success,"" + (this.deep ? "Deep scrub" : "Scrub") + " was initialized in the following OSD(s): " + this.joinPipe.transform(this.selected) + ""),this.activeModal.close()},()=>this.activeModal.close())}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Jt.a),r.Rb(gn.b),r.Rb(Vi),r.Rb(wn.a),r.Rb(id.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-osd-scrub-modal"]],decls:13,vars:9,consts:function(){let e,t,n,i;return e="{VAR_SELECT, select, true {Deep } other {}}",e=r.gc(e,{VAR_SELECT:"\ufffd0\ufffd"}),t="OSDs " + e + "Scrub",n="{VAR_SELECT, select, true {deep } other {}}",n=r.gc(n,{VAR_SELECT:"\ufffd0\ufffd"}),i="You are about to apply a " + n + "scrub to the OSD(s): " + "\ufffd#9\ufffd" + "" + "\ufffd1\ufffd" + "" + "\ufffd/#9\ufffd" + ".",[[3,"modalRef"],[1,"modal-title"],t,[1,"modal-content"],["name","scrubForm","novalidate","",3,"formGroup"],["formDir","ngForm"],[1,"modal-body"],i,[1,"modal-footer"],[3,"form","submitText","submitActionEvent"]]},template:function(e,t){1&e&&(r.Xb(0,"cd-modal",0),r.Xb(1,"span",1),r.bc(2,2),r.Wb(),r.Vb(3,3),r.Xb(4,"form",4,5),r.Xb(6,"div",6),r.Xb(7,"p"),r.hc(8,7),r.Sb(9,"strong"),r.oc(10,"join"),r.ec(),r.Wb(),r.Wb(),r.Xb(11,"div",8),r.Xb(12,"cd-form-button-panel",9),r.lc("submitActionEvent",function(){return t.scrub()}),r.Wb(),r.Wb(),r.Wb(),r.Ub(),r.Wb()),2&e&&(r.uc("modalRef",t.activeModal),r.Db(2),r.fc(t.deep),r.cc(2),r.Db(2),r.uc("formGroup",t.scrubForm),r.Db(6),r.fc(t.deep)(r.pc(10,7,t.selected)),r.cc(8),r.Db(2),r.uc("form",t.scrubForm)("submitText",t.actionLabels.UPDATE))},directives:[ur.a,xn.B,xn.r,Qn.a,xn.k,ti.a],pipes:[id.a],styles:[""]}),e})();var sd=n("b5OY");function od(e,t){if(1&e&&r.Sb(0,"cd-device-list",17),2&e){const e=r.nc(2);r.uc("osdId",null==e.osd?null:e.osd.id)}}function ad(e,t){if(1&e&&r.Sb(0,"cd-table-key-value",18),2&e){const e=r.nc(2);r.uc("data",null==e.osd||null==e.osd.details?null:e.osd.details.osd_map)}}function cd(e,t){if(1&e){const e=r.Yb();r.Xb(0,"cd-table-key-value",21),r.lc("fetchData",function(){return r.Ic(e),r.nc(3).refresh()}),r.Wb()}if(2&e){const e=r.nc(3);r.uc("data",null==e.osd||null==e.osd.details?null:e.osd.details.osd_metadata)}}function ld(e,t){1&e&&(r.Xb(0,"cd-alert-panel",22),r.bc(1,23),r.Wb())}function ud(e,t){if(1&e&&(r.Pc(0,cd,1,1,"cd-table-key-value",19),r.Pc(1,ld,2,0,"ng-template",null,20,r.Qc)),2&e){const e=r.Fc(2),t=r.nc(2);r.uc("ngIf",null==t.osd||null==t.osd.details?null:t.osd.details.osd_metadata)("ngIfElse",e)}}function dd(e,t){if(1&e&&r.Sb(0,"cd-smart-list",17),2&e){const e=r.nc(2);r.uc("osdId",null==e.osd?null:e.osd.id)}}function hd(e,t){if(1&e&&r.Sb(0,"cd-table-performance-counter",25),2&e){const e=r.nc(3);r.uc("serviceId",null==e.osd?null:e.osd.id)}}function fd(e,t){if(1&e&&r.Pc(0,hd,1,1,"cd-table-performance-counter",24),2&e){const e=r.nc(2);r.uc("ngIf",null==e.osd?null:e.osd.details)}}function pd(e,t){if(1&e&&r.Sb(0,"cd-grafana",28),2&e){const e=r.nc(3);r.uc("grafanaPath","osd-device-details?var-osd=osd."+e.osd.id)}}function md(e,t){1&e&&(r.Xb(0,"li",26),r.Xb(1,"a",4),r.bc(2,27),r.Wb(),r.Pc(3,pd,1,1,"ng-template",6),r.Wb())}function bd(e,t){if(1&e&&(r.Vb(0),r.Xb(1,"ul",1,2),r.Xb(3,"li",3),r.Xb(4,"a",4),r.bc(5,5),r.Wb(),r.Pc(6,od,1,1,"ng-template",6),r.Wb(),r.Xb(7,"li",7),r.Xb(8,"a",4),r.bc(9,8),r.Wb(),r.Pc(10,ad,1,1,"ng-template",6),r.Wb(),r.Xb(11,"li",9),r.Xb(12,"a",4),r.bc(13,10),r.Wb(),r.Pc(14,ud,3,2,"ng-template",6),r.Wb(),r.Xb(15,"li",11),r.Xb(16,"a",4),r.bc(17,12),r.Wb(),r.Pc(18,dd,1,1,"ng-template",6),r.Wb(),r.Xb(19,"li",13),r.Xb(20,"a",4),r.bc(21,14),r.Wb(),r.Pc(22,fd,1,1,"ng-template",6),r.Wb(),r.Pc(23,md,4,0,"li",15),r.Wb(),r.Sb(24,"div",16),r.Ub()),2&e){const e=r.Fc(2),t=r.nc();r.Db(23),r.uc("ngIf",t.grafanaPermission.read),r.Db(1),r.uc("ngbNavOutlet",e)}}let gd=(()=>{class e{constructor(e,t){this.osdService=e,this.authStorageService=t,this.grafanaPermission=this.authStorageService.getPermissions().grafana}ngOnChanges(){var e,t,n;(null===(e=this.osd)||void 0===e?void 0:e.id)!==(null===(t=this.selection)||void 0===t?void 0:t.id)&&(this.osd=this.selection),Wt.a.isNumber(null===(n=this.osd)||void 0===n?void 0:n.id)&&this.refresh()}refresh(){this.osdService.getDetails(this.osd.id).subscribe(e=>{this.osd.details=e})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Vi),r.Rb(Gt.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-osd-details"]],inputs:{selection:"selection"},features:[r.Bb],decls:1,vars:1,consts:function(){let e,t,n,i,r,s,o;return e="Devices",t="Attributes (OSD map)",n="Metadata",i="Device health",r="Performance counter",s="Metadata not available",o="Performance Details",[[4,"ngIf"],["ngbNav","","id","tabset-osd-details","cdStatefulTab","osd-details",1,"nav-tabs"],["nav","ngbNav"],["ngbNavItem","devices"],["ngbNavLink",""],e,["ngbNavContent",""],["ngbNavItem","attributes"],t,["ngbNavItem","metadata"],n,["ngbNavItem","device-health"],i,["ngbNavItem","performance-counter"],r,["ngbNavItem","performance-details",4,"ngIf"],[3,"ngbNavOutlet"],[3,"osdId"],[3,"data"],[3,"data","fetchData",4,"ngIf","ngIfElse"],["noMetaData",""],[3,"data","fetchData"],["type","warning"],s,["serviceType","osd",3,"serviceId",4,"ngIf"],["serviceType","osd",3,"serviceId"],["ngbNavItem","performance-details"],o,["uid","CrAHE0iZz","grafanaStyle","three",3,"grafanaPath"]]},template:function(e,t){1&e&&r.Pc(0,bd,25,2,"ng-container",0),2&e&&r.uc("ngIf",t.selection)},directives:[s.r,Jt.p,Kt.a,Jt.r,Jt.s,Jt.q,Jt.u,Rr,en.a,wr.a,Ns,sd.a,jn.a],styles:[""]}),e})();const _d=["osdUsageTpl"],vd=["markOsdConfirmationTpl"],yd=["criticalConfirmationTpl"],wd=["reweightBodyTpl"],Dd=["safeToDestroyBodyTpl"],Sd=["deleteOsdExtraTpl"],xd=["flagsTpl"],kd=function(){return{read:!0}};function Td(e,t){if(1&e){const e=r.Yb();r.Xb(0,"cd-table",13),r.lc("fetchData",function(){return r.Ic(e),r.nc().getOsdList()})("setExpandedRow",function(t){return r.Ic(e),r.nc().setExpandedRow(t)})("updateSelection",function(t){return r.Ic(e),r.nc().updateSelection(t)}),r.Xb(1,"div",14),r.Sb(2,"cd-table-actions",15),r.Sb(3,"cd-table-actions",16),r.Wb(),r.Sb(4,"cd-osd-details",17),r.Wb()}if(2&e){const e=r.nc();r.uc("data",e.osds)("columns",e.columns)("hasDetails",!0)("updateSelectionOnRefresh","never"),r.Db(2),r.uc("permission",e.permissions.osd)("selection",e.selection)("tableActions",e.tableActions),r.Db(1),r.uc("permission",r.yc(11,kd))("selection",e.selection)("tableActions",e.clusterWideActions),r.Db(1),r.uc("selection",e.expandedRow)}}function Md(e,t){1&e&&r.Sb(0,"cd-grafana",19),2&e&&r.uc("grafanaPath","osd-overview?")}function Cd(e,t){1&e&&(r.Xb(0,"li",2),r.Xb(1,"a",3),r.bc(2,18),r.Wb(),r.Pc(3,Md,1,1,"ng-template",5),r.Wb())}function Od(e,t){if(1&e&&(r.Vb(0),r.hc(1,20),r.Sb(2,"strong"),r.oc(3,"join"),r.Sb(4,"strong"),r.ec(),r.Ub()),2&e){const e=t.markActionDescription,n=t.osdIds;r.Db(4),r.fc(r.pc(3,2,n))(e),r.cc(1)}}function Ld(e,t){if(1&e&&(r.Xb(0,"div",23),r.Xb(1,"cd-alert-panel",24),r.bc(2,25),r.Wb(),r.Wb()),2&e){const e=r.nc(),t=e.actionDescription,n=e.message,i=r.nc();r.Db(2),r.fc(i.selection.hasSingleSelection)(t)(n),r.cc(2)}}function Ed(e,t){if(1&e&&(r.Pc(0,Ld,3,3,"div",21),r.Vb(1),r.hc(2,22),r.Sb(3,"strong"),r.oc(4,"join"),r.Sb(5,"strong"),r.ec(),r.Ub()),2&e){const e=t.actionDescription,n=t.osdIds;r.uc("ngIf",!t.safeToPerform),r.Db(5),r.fc(r.pc(4,3,n))(e),r.cc(2)}}function Ad(e,t){if(1&e&&(r.Xb(0,"span",28),r.Rc(1),r.Wb()),2&e){const e=t.$implicit;r.Db(1),r.Sc(e)}}function Id(e,t){if(1&e&&(r.Xb(0,"span",29),r.Rc(1),r.Wb()),2&e){const e=t.$implicit;r.Db(1),r.Sc(e)}}function Rd(e,t){if(1&e&&(r.Pc(0,Ad,2,1,"span",26),r.Pc(1,Id,2,1,"span",27)),2&e){const e=t.row;r.uc("ngForOf",e.cdClusterFlags),r.Db(1),r.uc("ngForOf",e.cdIndivFlags)}}function Pd(e,t){if(1&e&&r.Sb(0,"cd-usage-bar",30),2&e){const e=t.row;r.uc("total",e.stats.stat_bytes)("used",e.stats.stat_bytes_used)}}function Fd(e,t){1&e&&(r.Vb(0,31),r.Vb(1,32),r.Xb(2,"div",33),r.Xb(3,"div",34),r.Sb(4,"input",35),r.Xb(5,"label",36),r.bc(6,37),r.Wb(),r.Wb(),r.Wb(),r.Ub(),r.Ub()),2&e&&r.uc("formGroup",t.form)}let Wd=(()=>{class e extends zt.a{constructor(e,t,n,i,r,s,o,a,c,l){super(),this.authStorageService=e,this.osdService=t,this.dimlessBinaryPipe=n,this.modalService=i,this.urlBuilder=r,this.router=s,this.taskWrapper=o,this.actionLabels=a,this.notificationService=c,this.orchService=l,this.icons=_n.a,this.selection=new Ht.a,this.osds=[],this.disabledFlags=["sortbitwise","purged_snapdirs","recovery_deletes","pglog_hardlimit"],this.indivFlagNames=["noup","nodown","noin","noout"],this.actionOrchFeatures={create:[or.OSD_CREATE],delete:[or.OSD_DELETE]},this.permissions=this.authStorageService.getPermissions(),this.tableActions=[{name:this.actionLabels.CREATE,permission:"create",icon:_n.a.add,click:()=>this.router.navigate([this.urlBuilder.getCreate()]),disable:e=>this.getDisable("create",e),canBePrimary:e=>!e.hasSelection},{name:this.actionLabels.EDIT,permission:"update",icon:_n.a.edit,click:()=>this.editAction()},{name:this.actionLabels.FLAGS,permission:"update",icon:_n.a.flag,click:()=>this.configureFlagsIndivAction(),disable:()=>!this.hasOsdSelected},{name:this.actionLabels.SCRUB,permission:"update",icon:_n.a.analyse,click:()=>this.scrubAction(!1),disable:()=>!this.hasOsdSelected,canBePrimary:e=>e.hasSelection},{name:this.actionLabels.DEEP_SCRUB,permission:"update",icon:_n.a.deepCheck,click:()=>this.scrubAction(!0),disable:()=>!this.hasOsdSelected},{name:this.actionLabels.REWEIGHT,permission:"update",click:()=>this.reweight(),disable:()=>!this.hasOsdSelected||!this.selection.hasSingleSelection,icon:_n.a.reweight},{name:this.actionLabels.MARK_OUT,permission:"update",click:()=>this.showConfirmationModal("out",this.osdService.markOut),disable:()=>this.isNotSelectedOrInState("out"),icon:_n.a.left},{name:this.actionLabels.MARK_IN,permission:"update",click:()=>this.showConfirmationModal("in",this.osdService.markIn),disable:()=>this.isNotSelectedOrInState("in"),icon:_n.a.right},{name:this.actionLabels.MARK_DOWN,permission:"update",click:()=>this.showConfirmationModal("down",this.osdService.markDown),disable:()=>this.isNotSelectedOrInState("down"),icon:_n.a.down},{name:this.actionLabels.MARK_LOST,permission:"delete",click:()=>this.showCriticalConfirmationModal("Mark","OSD lost","marked lost",e=>this.osdService.safeToDestroy(JSON.stringify(e)),"is_safe_to_destroy",this.osdService.markLost),disable:()=>this.isNotSelectedOrInState("up"),icon:_n.a.flatten},{name:this.actionLabels.PURGE,permission:"delete",click:()=>this.showCriticalConfirmationModal("Purge","OSD","purged",e=>this.osdService.safeToDestroy(JSON.stringify(e)),"is_safe_to_destroy",e=>(this.selection=new Ht.a,this.osdService.purge(e))),disable:()=>this.isNotSelectedOrInState("up"),icon:_n.a.erase},{name:this.actionLabels.DESTROY,permission:"delete",click:()=>this.showCriticalConfirmationModal("destroy","OSD","destroyed",e=>this.osdService.safeToDestroy(JSON.stringify(e)),"is_safe_to_destroy",e=>(this.selection=new Ht.a,this.osdService.destroy(e))),disable:()=>this.isNotSelectedOrInState("up"),icon:_n.a.destroyCircle},{name:this.actionLabels.DELETE,permission:"delete",click:()=>this.delete(),disable:e=>this.getDisable("delete",e),icon:_n.a.destroy}]}static collectStates(e){const t=[e.in?"in":"out"];return e.up?t.push("up"):e.state.includes("destroyed")?t.push("destroyed"):t.push("down"),t}ngOnInit(){this.clusterWideActions=[{name:"Flags",icon:_n.a.flag,click:()=>this.configureFlagsAction(),permission:"read",visible:()=>this.permissions.osd.read},{name:"Recovery Priority",icon:_n.a.deepCheck,click:()=>this.configureQosParamsAction(),permission:"read",visible:()=>this.permissions.configOpt.read},{name:"PG scrub",icon:_n.a.analyse,click:()=>this.configurePgScrubAction(),permission:"read",visible:()=>this.permissions.configOpt.read}],this.columns=[{prop:"id",name:"ID",flexGrow:1,cellTransformation:$t.a.executing,customTemplateConfig:{valueClass:"bold"}},{prop:"host.name",name:"Host"},{prop:"collectedStates",name:"Status",flexGrow:1,cellTransformation:$t.a.badge,customTemplateConfig:{map:{in:{class:"badge-success"},up:{class:"badge-success"},down:{class:"badge-danger"},out:{class:"badge-danger"},destroyed:{class:"badge-danger"}}}},{prop:"tree.device_class",name:"Device class",flexGrow:1.2,cellTransformation:$t.a.badge,customTemplateConfig:{map:{hdd:{class:"badge-hdd"},ssd:{class:"badge-ssd"}}}},{prop:"stats.numpg",name:"PGs",flexGrow:1},{prop:"stats.stat_bytes",name:"Size",flexGrow:1,pipe:this.dimlessBinaryPipe},{prop:"state",name:"Flags",cellTemplate:this.flagsTpl},{prop:"stats.usage",name:"Usage",cellTemplate:this.osdUsageTpl},{prop:"stats_history.out_bytes",name:"Read bytes",cellTransformation:$t.a.sparkline},{prop:"stats_history.in_bytes",name:"Write bytes",cellTransformation:$t.a.sparkline},{prop:"stats.op_r",name:"Read ops",cellTransformation:$t.a.perSecond},{prop:"stats.op_w",name:"Write ops",cellTransformation:$t.a.perSecond}],this.orchService.status().subscribe(e=>this.orchStatus=e)}getDisable(e,t){if("delete"===e){if(!t.hasSelection)return!0;if(Wt.a.some(this.getSelectedOsds(),e=>{const t=Wt.a.get(e,"operational_status");return"deleting"===t||"unmanaged"===t}))return!0}return this.orchService.getTableActionDisableDesc(this.orchStatus,this.actionOrchFeatures[e])}getSelectedOsdIds(){const e=this.osds.map(e=>e.id);return this.selection.selected.map(e=>e.id).filter(t=>e.includes(t)).sort()}getSelectedOsds(){return this.osds.filter(e=>!Wt.a.isUndefined(e)&&this.getSelectedOsdIds().includes(e.id))}get hasOsdSelected(){return this.getSelectedOsdIds().length>0}updateSelection(e){this.selection=e}isNotSelectedOrInState(e){const t=this.getSelectedOsds();if(0===t.length)return!0;switch(e){case"in":return t.some(e=>1===e.in);case"out":return t.some(e=>1!==e.in);case"down":return t.some(e=>1!==e.up);case"up":return t.some(e=>1===e.up)}}getOsdList(){const t=[this.osdService.getList(),this.osdService.getFlags()];Object(Oi.a)(t).subscribe(t=>{this.osds=t[0].map(n=>{n.collectedStates=e.collectStates(n),n.stats_history.out_bytes=n.stats_history.op_out_bytes.map(e=>e[1]),n.stats_history.in_bytes=n.stats_history.op_in_bytes.map(e=>e[1]),n.stats.usage=n.stats.stat_bytes_used/n.stats.stat_bytes,n.cdIsBinary=!0,n.cdIndivFlags=n.state.filter(e=>this.indivFlagNames.includes(e)),n.cdClusterFlags=t[1].filter(e=>!this.disabledFlags.includes(e));const i=Wt.a.get(n,"operational_status","unmanaged");return"unmanaged"!==i&&"working"!==i&&(n.cdExecuting=i),n})})}editAction(){const e=Wt.a.filter(this.osds,["id",this.selection.first().id]).pop();this.modalService.show(Mn.a,{titleText:"Edit OSD: " + e.id + "",fields:[{type:"text",name:"deviceClass",value:e.tree.device_class,label:"Device class",required:!0}],submitButtonText:"Edit OSD",onSubmit:t=>{this.osdService.update(e.id,t.deviceClass).subscribe(()=>{this.notificationService.show(vn.a.success,"Updated OSD '" + e.id + "'"),this.getOsdList()})}})}scrubAction(e){if(!this.hasOsdSelected)return;const t={selected:this.getSelectedOsdIds(),deep:e};this.bsModalRef=this.modalService.show(rd,t)}configureFlagsAction(){this.bsModalRef=this.modalService.show(Su)}configureFlagsIndivAction(){const e={selected:this.getSelectedOsds()};this.bsModalRef=this.modalService.show(vu,e)}showConfirmationModal(e,t){const n=this.getSelectedOsdIds();this.bsModalRef=this.modalService.show(Tn.a,{titleText:"Mark OSD " + e + "",buttonText:"Mark " + e + "",bodyTpl:this.markOsdConfirmationTpl,bodyContext:{markActionDescription:e,osdIds:n},onSubmit:()=>{Object(Oi.a)(this.getSelectedOsdIds().map(e=>t.call(this.osdService,e))).subscribe(()=>this.bsModalRef.close())}})}reweight(){const e=this.osds.filter(e=>e.id===this.selection.first().id).pop();this.bsModalRef=this.modalService.show(nd,{currentWeight:e.weight,osdId:e.id})}delete(){const e=new Gn.a({preserve:new xn.h(!1)});this.showCriticalConfirmationModal("delete","OSD","deleted",e=>this.osdService.safeToDelete(JSON.stringify(e)),"is_safe_to_delete",t=>(this.selection=new Ht.a,this.taskWrapper.wrapTaskAroundCall({task:new Bi.a("osd/"+gn.e.DELETE,{svc_id:t}),call:this.osdService.delete(t,e.value.preserve,!0)})),!0,e,this.deleteOsdExtraTpl)}showCriticalConfirmationModal(e,t,n,i,r,s,o=!1,a,c){i(this.getSelectedOsdIds()).subscribe(i=>{const l=this.modalService.show(bn.a,{actionDescription:e,itemDescription:t,bodyTemplate:this.criticalConfirmationTpl,bodyContext:{safeToPerform:i[r],message:i.message,actionDescription:n,osdIds:this.getSelectedOsdIds()},childFormGroup:a,childFormGroupTemplate:c,submitAction:()=>{const e=Object(Oi.a)(this.getSelectedOsdIds().map(e=>s.call(this.osdService,e)));o?e.subscribe({error:()=>{this.getOsdList(),l.close()},complete:()=>l.close()}):e.subscribe(()=>{this.getOsdList(),l.close()},()=>l.close())}})})}configureQosParamsAction(){this.bsModalRef=this.modalService.show(Qu)}configurePgScrubAction(){this.bsModalRef=this.modalService.show($u,void 0,{size:"lg"})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Gt.a),r.Rb(Vi),r.Rb(Qt.a),r.Rb(yn.a),r.Rb(ar.a),r.Rb(Pt.e),r.Rb(Ui.a),r.Rb(gn.b),r.Rb(wn.a),r.Rb(rr))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-osd-list"]],viewQuery:function(e,t){if(1&e&&(r.Wc(_d,3),r.Wc(vd,3),r.Wc(yd,3),r.Wc(wd,1),r.Wc(Dd,1),r.Wc(Sd,1),r.Wc(xd,3)),2&e){let e;r.Ec(e=r.mc())&&(t.osdUsageTpl=e.first),r.Ec(e=r.mc())&&(t.markOsdConfirmationTpl=e.first),r.Ec(e=r.mc())&&(t.criticalConfirmationTpl=e.first),r.Ec(e=r.mc())&&(t.reweightBodyTpl=e.first),r.Ec(e=r.mc())&&(t.safeToDestroyBodyTpl=e.first),r.Ec(e=r.mc())&&(t.deleteOsdExtraTpl=e.first),r.Ec(e=r.mc())&&(t.flagsTpl=e.first)}},features:[r.Cb([{provide:ar.a,useValue:new ar.a("osd")}]),r.Ab],decls:18,vars:2,consts:function(){let e,t,n,i,s,o,a;return e="OSDs List",t="Overall Performance",n="" + "[\ufffd#2\ufffd|\ufffd#4\ufffd]" + "OSD(s) " + "\ufffd0\ufffd" + "" + "[\ufffd/#2\ufffd|\ufffd/#4\ufffd]" + " will be marked " + "[\ufffd#2\ufffd|\ufffd#4\ufffd]" + "" + "\ufffd1\ufffd" + "" + "[\ufffd/#2\ufffd|\ufffd/#4\ufffd]" + " if you proceed.",n=r.gc(n),i="" + "[\ufffd#3\ufffd|\ufffd#5\ufffd]" + "OSD " + "\ufffd0\ufffd" + "" + "[\ufffd/#3\ufffd|\ufffd/#5\ufffd]" + " will be " + "[\ufffd#3\ufffd|\ufffd#5\ufffd]" + "" + "\ufffd1\ufffd" + "" + "[\ufffd/#3\ufffd|\ufffd/#5\ufffd]" + " if you proceed.",i=r.gc(i),s="{VAR_SELECT, select, true {OSD is} other {OSDs are}}",s=r.gc(s,{VAR_SELECT:"\ufffd0\ufffd"}),o="The " + s + " not safe to be " + "\ufffd1\ufffd" + "! " + "\ufffd2\ufffd" + "",a="Preserve OSD ID(s) for replacement.",[["ngbNav","",1,"nav-tabs"],["nav","ngbNav"],["ngbNavItem",""],["ngbNavLink",""],e,["ngbNavContent",""],["ngbNavItem","",4,"ngIf"],[3,"ngbNavOutlet"],["markOsdConfirmationTpl",""],["criticalConfirmationTpl",""],["flagsTpl",""],["osdUsageTpl",""],["deleteOsdExtraTpl",""],["selectionType","multiClick",3,"data","columns","hasDetails","updateSelectionOnRefresh","fetchData","setExpandedRow","updateSelection"],[1,"table-actions","btn-toolbar"],["id","osd-actions",1,"btn-group",3,"permission","selection","tableActions"],["dropDownOnly","Cluster-wide configuration","btnColor","light","id","cluster-wide-actions",1,"btn-group",3,"permission","selection","tableActions"],["cdTableDetail","",3,"selection"],t,["uid","lo02I1Aiz","grafanaStyle","four",3,"grafanaPath"],n,["class","danger",4,"ngIf"],i,[1,"danger"],["type","warning"],o,["class","badge badge-hdd mr-1",4,"ngFor","ngForOf"],["class","badge badge-info mr-1",4,"ngFor","ngForOf"],[1,"badge","badge-hdd","mr-1"],[1,"badge","badge-info","mr-1"],[3,"total","used"],[3,"formGroup"],["formGroupName","child"],[1,"form-group"],[1,"custom-control","custom-checkbox"],["type","checkbox","name","preserve","id","preserve","formControlName","preserve",1,"custom-control-input"],["for","preserve",1,"custom-control-label"],a]},template:function(e,t){if(1&e&&(r.Xb(0,"ul",0,1),r.Xb(2,"li",2),r.Xb(3,"a",3),r.bc(4,4),r.Wb(),r.Pc(5,Td,5,12,"ng-template",5),r.Wb(),r.Pc(6,Cd,4,0,"li",6),r.Wb(),r.Sb(7,"div",7),r.Pc(8,Od,5,4,"ng-template",null,8,r.Qc),r.Pc(10,Ed,6,5,"ng-template",null,9,r.Qc),r.Pc(12,Rd,2,2,"ng-template",null,10,r.Qc),r.Pc(14,Pd,1,2,"ng-template",null,11,r.Qc),r.Pc(16,Fd,7,1,"ng-template",null,12,r.Qc)),2&e){const e=r.Fc(1);r.Db(6),r.uc("ngIf",t.permissions.grafana.read),r.Db(1),r.uc("ngbNavOutlet",e)}},directives:[Jt.p,Jt.r,Jt.s,Jt.q,s.r,Jt.u,Vt.a,Dn.a,gd,jn.a,wr.a,s.q,ln.a,Qn.a,xn.r,xn.k,xn.l,Zn.a,On.a,xn.b,ei.a,xn.q,xn.i],pipes:[id.a],styles:[""]}),e})();var jd=n("20UP");let Yd=(()=>{class e{constructor(e,t){this.http=e,this.settingsService=t,this.baseURL="api/prometheus",this.settingsKey={alertmanager:"api/settings/alertmanager-api-host",prometheus:"api/settings/prometheus-api-host"}}ifAlertmanagerConfigured(e,t){this.settingsService.ifSettingConfigured(this.settingsKey.alertmanager,e,t)}disableAlertmanagerConfig(){this.settingsService.disableSetting(this.settingsKey.alertmanager)}ifPrometheusConfigured(e,t){this.settingsService.ifSettingConfigured(this.settingsKey.prometheus,e,t)}disablePrometheusConfig(){this.settingsService.disableSetting(this.settingsKey.prometheus)}getAlerts(e={}){return this.http.get(this.baseURL,{params:e})}getSilences(e={}){return this.http.get(`${this.baseURL}/silences`,{params:e})}getRules(e="all"){return this.http.get(`${this.baseURL}/rules`).pipe(Object(Ii.a)(t=>(["alerting","rewrites"].includes(e)&&t.groups.map(t=>{t.rules=t.rules.filter(t=>t.type===e)}),t)))}setSilence(e){return this.http.post(`${this.baseURL}/silence`,e,{observe:"response"})}expireSilence(e){return this.http.delete(`${this.baseURL}/silence/${e}`,{observe:"response"})}getNotifications(e){return this.http.get(`${this.baseURL}/notifications?from=${e&&e.id?e.id:"last"}`)}}return e.\u0275fac=function(t){return new(t||e)(r.ic(o.b),r.ic(jd.a))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Nd=n("G1I9");let zd=(()=>{class e{constructor(e){this.notificationService=e}sendNotifications(e){e.forEach(e=>this.notificationService.show(e))}convertToCustomAlerts(e){return Wt.a.uniqWith(e.map(e=>({status:Wt.a.isObject(e.status)?e.status.state:this.getPrometheusNotificationStatus(e),name:e.labels.alertname,url:e.generatorURL,description:e.annotations.description,fingerprint:Wt.a.isObject(e.status)&&e.fingerprint})),Wt.a.isEqual)}getPrometheusNotificationStatus(e){const t=e.status;return"firing"===t?"active":t}convertAlertToNotification(e){return new Nd.b(this.formatType(e.status),`${e.name} (${e.status})`,this.appendSourceLink(e,e.description),void 0,"Prometheus")}formatType(e){return vn.a[Wt.a.findKey({error:["firing","active"],info:["suppressed","unprocessed"],success:["resolved"]},t=>t.includes(e))]}appendSourceLink(e,t){return`${t} <a href="${e.url}" target="_blank"><i class="${_n.a.lineChart}"></i></a>`}}return e.\u0275fac=function(t){return new(t||e)(r.ic(wn.a))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),$d=(()=>{class e{constructor(e,t){this.alertFormatter=e,this.prometheusService=t,this.canAlertsBeNotified=!1,this.alerts=[],this.rules=[]}getAlerts(){this.prometheusService.ifAlertmanagerConfigured(()=>{this.prometheusService.getAlerts().subscribe(e=>this.handleAlerts(e),e=>{[404,504].includes(e.status)&&this.prometheusService.disableAlertmanagerConfig()})})}getRules(){this.prometheusService.ifPrometheusConfigured(()=>{this.prometheusService.getRules("alerting").subscribe(e=>{this.rules=e.groups.reduce((e,t)=>e.concat(t.rules.map(e=>(e.group=t.name,e))),[])})})}refresh(){this.getAlerts(),this.getRules()}handleAlerts(e){this.canAlertsBeNotified&&this.notifyOnAlertChanges(e,this.alerts),this.activeAlerts=Wt.a.reduce(this.alerts,(e,t)=>"active"===t.status.state?++e:e,0),this.alerts=e,this.canAlertsBeNotified=!0}notifyOnAlertChanges(e,t){const n=this.getChangedAlerts(this.alertFormatter.convertToCustomAlerts(e),this.alertFormatter.convertToCustomAlerts(t)),i=Wt.a.filter(n,e=>"suppressed"!==e.status).map(e=>this.alertFormatter.convertAlertToNotification(e));this.alertFormatter.sendNotifications(i)}getChangedAlerts(e,t){return Wt.a.differenceWith(e,t,Wt.a.isEqual).concat(this.getVanishedAlerts(e,t))}getVanishedAlerts(e,t){return Wt.a.differenceWith(t,e,(e,t)=>e.fingerprint===t.fingerprint).map(e=>(e.status="resolved",e))}}return e.\u0275fac=function(t){return new(t||e)(r.ic(zd),r.ic(Yd))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Hd=(()=>{class e extends zt.a{constructor(e){super(),this.prometheusService=e,this.isPrometheusConfigured=!1,this.isAlertmanagerConfigured=!1}ngOnInit(){this.prometheusService.ifAlertmanagerConfigured(()=>{this.isAlertmanagerConfigured=!0}),this.prometheusService.ifPrometheusConfigured(()=>{this.isPrometheusConfigured=!0})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Yd))},e.\u0275dir=r.Mb({type:e,features:[r.Ab]}),e})(),Xd=(()=>{class e{constructor(e){this.router=e}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Pt.e))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-prometheus-tabs"]],decls:11,vars:1,consts:function(){let e,t,n;return e="Active Alerts",t="Alerts",n="Silences",[["ngbNav","",1,"nav-tabs",3,"activeId","navChange"],["nav","ngbNav"],["ngbNavItem","/monitoring/active-alerts"],["ngbNavLink",""],e,["ngbNavItem","/monitoring/alerts"],t,["ngbNavItem","/monitoring/silences"],n]},template:function(e,t){1&e&&(r.Xb(0,"ul",0,1),r.lc("navChange",function(e){return t.router.navigate([e.nextId])}),r.Xb(2,"li",2),r.Xb(3,"a",3),r.bc(4,4),r.Wb(),r.Wb(),r.Xb(5,"li",5),r.Xb(6,"a",3),r.bc(7,6),r.Wb(),r.Wb(),r.Xb(8,"li",7),r.Xb(9,"a",3),r.bc(10,8),r.Wb(),r.Wb(),r.Wb()),2&e&&r.uc("activeId",t.router.url)},directives:[Jt.p,Jt.r,Jt.s],styles:[""]}),e})();const Vd=["externalLinkTpl"];function Bd(e,t){1&e&&(r.Xb(0,"cd-alert-panel",3),r.hc(1,4),r.Sb(2,"cd-doc",5),r.ec(),r.Wb())}function Ud(e,t){if(1&e&&r.Sb(0,"cd-table-key-value",9),2&e){const e=r.nc(2);r.uc("renderObjects",!0)("hideEmpty",!0)("appendParentKey",!1)("data",e.expandedRow)("customCss",e.customCss)("autoReload",!1)}}function qd(e,t){if(1&e){const e=r.Yb();r.Xb(0,"cd-table",6),r.lc("setExpandedRow",function(t){return r.Ic(e),r.nc().setExpandedRow(t)})("updateSelection",function(t){return r.Ic(e),r.nc().updateSelection(t)}),r.Sb(1,"cd-table-actions",7),r.Pc(2,Ud,1,6,"cd-table-key-value",8),r.Wb()}if(2&e){const e=r.nc();r.uc("data",e.prometheusAlertService.alerts)("columns",e.columns)("forceIdentifier",!0)("customCss",e.customCss)("hasDetails",!0),r.Db(1),r.uc("permission",e.permission)("selection",e.selection)("tableActions",e.tableActions),r.Db(1),r.uc("ngIf",e.expandedRow)}}const Gd=function(e){return[e]};function Jd(e,t){if(1&e&&(r.Xb(0,"a",10),r.Sb(1,"i",11),r.Rc(2," Source"),r.Wb()),2&e){const e=t.value,n=r.nc();r.uc("href",e,r.Lc),r.Db(1),r.uc("ngClass",r.zc(2,Gd,n.icons.lineChart))}}let Kd=(()=>{class e extends Hd{constructor(e,t,n,i,r){super(r),this.authStorageService=e,this.prometheusAlertService=t,this.urlBuilder=n,this.cdDatePipe=i,this.selection=new Ht.a,this.icons=_n.a,this.customCss={"badge badge-danger":"active","badge badge-warning":"unprocessed","badge badge-info":"suppressed"},this.permission=this.authStorageService.getPermissions().prometheus,this.tableActions=[{permission:"create",canBePrimary:e=>e.hasSingleSelection,disable:e=>!e.hasSingleSelection||e.first().cdExecuting,icon:_n.a.add,routerLink:()=>"/monitoring"+this.urlBuilder.getCreateFrom(this.selection.first().fingerprint),name:"Create Silence"}]}ngOnInit(){super.ngOnInit(),this.columns=[{name:"Name",prop:"labels.alertname",flexGrow:2},{name:"Job",prop:"labels.job",flexGrow:2},{name:"Severity",prop:"labels.severity"},{name:"State",prop:"status.state",cellTransformation:$t.a.classAdding},{name:"Started",prop:"startsAt",pipe:this.cdDatePipe},{name:"URL",prop:"generatorURL",sortable:!1,cellTemplate:this.externalLinkTpl}]}updateSelection(e){this.selection=e}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Gt.a),r.Rb($d),r.Rb(ar.a),r.Rb(Xt.a),r.Rb(Yd))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-active-alert-list"]],viewQuery:function(e,t){if(1&e&&r.Wc(Vd,3),2&e){let e;r.Ec(e=r.mc())&&(t.externalLinkTpl=e.first)}},features:[r.Cb([{provide:ar.a,useValue:new ar.a("silences")}]),r.Ab],decls:5,vars:2,consts:function(){let e;return e="To see all active Prometheus alerts, please provide the URL to the API of Prometheus' Alertmanager as described in the " + "\ufffd#2\ufffd" + "" + "\ufffd/#2\ufffd" + ".",[["type","info",4,"ngIf"],["identifier","fingerprint","selectionType","single",3,"data","columns","forceIdentifier","customCss","hasDetails","setExpandedRow","updateSelection",4,"ngIf"],["externalLinkTpl",""],["type","info"],e,["section","prometheus"],["identifier","fingerprint","selectionType","single",3,"data","columns","forceIdentifier","customCss","hasDetails","setExpandedRow","updateSelection"],[1,"table-actions",3,"permission","selection","tableActions"],["cdTableDetail","",3,"renderObjects","hideEmpty","appendParentKey","data","customCss","autoReload",4,"ngIf"],["cdTableDetail","",3,"renderObjects","hideEmpty","appendParentKey","data","customCss","autoReload"],["target","_blank",3,"href"],[3,"ngClass"]]},template:function(e,t){1&e&&(r.Sb(0,"cd-prometheus-tabs"),r.Pc(1,Bd,3,0,"cd-alert-panel",0),r.Pc(2,qd,3,9,"cd-table",1),r.Pc(3,Jd,3,4,"ng-template",null,2,r.Qc)),2&e&&(r.Db(1),r.uc("ngIf",!t.isAlertmanagerConfigured),r.Db(1),r.uc("ngIf",t.isAlertmanagerConfigured))},directives:[Xd,s.r,wr.a,Pr.a,Vt.a,Dn.a,en.a,s.p],styles:[""]}),e})(),Qd=(()=>{class e{transform(e){const t=[[`${Math.floor(e/31536e3)}`,"years"],[`${Math.floor(e%31536e3/86400)}`,"days"],[`${Math.floor(e%86400/3600)}`,"hours"],[`${Math.floor(e%3600/60)}`,"minutes"],[`${Math.floor(e%60)}`,"seconds"]];let n="";for(let i=0,r=t.length;i<r;i++)"0"!==t[i][0]&&(n+=" "+t[i][0]+" "+("1"===t[i][0]?t[i][1].substr(0,t[i][1].length-1):t[i][1]));return n.trim()||"1 second"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Qb({name:"duration",type:e,pure:!1}),e})();function Zd(e,t){1&e&&(r.Xb(0,"cd-alert-panel",2),r.hc(1,3),r.Sb(2,"cd-doc",4),r.ec(),r.Wb())}function eh(e,t){if(1&e&&r.Sb(0,"cd-table-key-value",7),2&e){const e=r.nc(2);r.uc("data",e.expandedRow)("renderObjects",!0)("hideKeys",e.hideKeys)}}function th(e,t){if(1&e){const e=r.Yb();r.Xb(0,"cd-table",5),r.lc("setExpandedRow",function(t){return r.Ic(e),r.nc().setExpandedRow(t)})("updateSelection",function(t){return r.Ic(e),r.nc().updateSelection(t)}),r.Pc(1,eh,1,3,"cd-table-key-value",6),r.Wb()}if(2&e){const e=r.nc();r.uc("data",e.prometheusAlertService.rules)("columns",e.columns)("selectionType","single")("hasDetails",!0),r.Db(1),r.uc("ngIf",e.expandedRow)}}let nh=(()=>{class e extends Hd{constructor(e,t){super(t),this.prometheusAlertService=e,this.hideKeys=["alerts","type"]}ngOnInit(){super.ngOnInit(),this.columns=[{prop:"name",name:"Name"},{prop:"labels.severity",name:"Severity"},{prop:"group",name:"Group"},{prop:"duration",name:"Duration",pipe:new Qd},{prop:"query",name:"Query",isHidden:!0},{prop:"annotations.description",name:"Description"}]}}return e.\u0275fac=function(t){return new(t||e)(r.Rb($d),r.Rb(Yd))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-rules-list"]],features:[r.Ab],decls:3,vars:2,consts:function(){let e;return e="To see all configured Prometheus alerts, please provide the URL to the API of Prometheus as described in the " + "\ufffd#2\ufffd" + "" + "\ufffd/#2\ufffd" + ".",[["type","info",4,"ngIf"],[3,"data","columns","selectionType","hasDetails","setExpandedRow","updateSelection",4,"ngIf"],["type","info"],e,["section","prometheus"],[3,"data","columns","selectionType","hasDetails","setExpandedRow","updateSelection"],["cdTableDetail","",3,"data","renderObjects","hideKeys",4,"ngIf"],["cdTableDetail","",3,"data","renderObjects","hideKeys"]]},template:function(e,t){1&e&&(r.Sb(0,"cd-prometheus-tabs"),r.Pc(1,Zd,3,0,"cd-alert-panel",0),r.Pc(2,th,2,5,"cd-table",1)),2&e&&(r.Db(1),r.uc("ngIf",!t.isPrometheusConfigured),r.Db(1),r.uc("ngIf",t.isPrometheusConfigured))},directives:[Xd,s.r,wr.a,Pr.a,Vt.a,en.a],styles:[""]}),e})();var ih=n("WE5d");let rh=(()=>{class e{constructor(){this.valueAttributePath={alertname:"name",instance:"alerts.0.labels.instance",job:"alerts.0.labels.job",severity:"labels.severity"}}singleMatch(e,t){return this.multiMatch([e],t)}multiMatch(e,t){if(!e.some(e=>e.isRegex))return e.forEach(e=>{t=this.getMatchedRules(e,t)}),this.describeMatch(t)}getMatchedRules(e,t){const n=this.getAttributePath(e.name);return t.filter(t=>Wt.a.get(t,n)===e.value)}describeMatch(e){let t=0;return e.forEach(e=>t+=e.alerts.length),{status:this.getMatchText(e.length,t),cssClass:t?"has-success":"has-warning"}}getAttributePath(e){return this.valueAttributePath[e]}getMatchText(e,t){const n={noRule:"Your matcher seems to match no currently defined rule or active alert.",noAlerts:"no active alerts",alert:"1 active alert",alerts:"" + t + " active alerts",rule:"Matches 1 rule",rules:"Matches " + e + " rules"};return e?"" + (e > 1 ? n.rules : n.rule) + " with " + (t ? t > 1 ? n.alerts : n.alert : n.noAlerts) + ".":n.noRule}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),sh=(()=>{class e{calculateDuration(e,t){const n=+e,i=+t,r=this.getDuration(Math.abs(n-i));return n>i?"-"+r:r}getDuration(e){const t=new Date(e),n=t.getUTCHours(),i=t.getUTCMinutes(),r=(e,t)=>e?e+t:e;return[r(Math.floor(e/864e5),"d"),r(n,"h"),r(i,"m")].filter(e=>e).join(" ")}calculateDate(e,t,n){const i=+e;if(Wt.a.isNaN(i))return;const r=this.getDurationMs(t)*(n?-1:1);return new Date(i+r)}getDurationMs(e){return 6e4*(60*(24*this.getNumbersFromString(e,"d")+this.getNumbersFromString(e,"h"))+this.getNumbersFromString(e,"m"))}getNumbersFromString(e,t){const n=e.match(new RegExp(`[0-9 ]+${t}`,"i"));return n?parseInt(n[0],10):0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function oh(e,t){if(1&e&&(r.Xb(0,"option",27),r.Rc(1),r.Wb()),2&e){const e=t.$implicit;r.uc("value",e),r.Db(1),r.Tc(" ",e," ")}}function ah(e,t){1&e&&(r.Xb(0,"span",28),r.bc(1,29),r.Wb())}function ch(e,t){1&e&&(r.Xb(0,"span",28),r.bc(1,30),r.Wb())}function lh(e,t){if(1&e&&(r.Xb(0,"div",31),r.Xb(1,"span"),r.Rc(2),r.Wb(),r.Wb()),2&e){const e=r.nc();r.Gb("cd-col-form-offset ",e.matcherMatch.cssClass,""),r.Db(1),r.Gb("text-muted ",e.matcherMatch.cssClass,""),r.Db(1),r.Tc(" ",e.matcherMatch.status," ")}}let uh=(()=>{class e{constructor(e,t,n,i){this.formBuilder=e,this.silenceMatcher=t,this.activeModal=n,this.actionLabels=i,this.submitAction=new r.p,this.editMode=!1,this.nameAttributes=["alertname","instance","job","severity"],this.possibleValues=[],this.matcherMatch=void 0,this.valueClick=new na.a,this.valueFocus=new na.a,this.search=e=>Object(ia.a)(e.pipe(oa(200),Object(ua.a)()),this.valueFocus,this.valueClick.pipe(Object(da.a)(()=>!this.typeahead.isPopupOpen()))).pipe(Object(Ii.a)(e=>(""===e?this.possibleValues:this.possibleValues.filter(t=>t.toLowerCase().indexOf(e.toLowerCase())>-1)).slice(0,10))),this.createForm(),this.subscribeToChanges()}createForm(){this.form=this.formBuilder.group({name:[null,[xn.A.required]],value:[{value:"",disabled:!0},[xn.A.required]],isRegex:new xn.h(!1)})}subscribeToChanges(){this.form.get("name").valueChanges.subscribe(e=>{null!==e?(this.setPossibleValues(e),this.form.get("value").enable()):this.form.get("value").disable()}),this.form.get("value").valueChanges.subscribe(e=>{const t=this.form.value;t.value=e,this.matcherMatch=this.silenceMatcher.singleMatch(t,this.rules)})}setPossibleValues(e){this.possibleValues=Wt.a.sortedUniq(this.rules.map(t=>Wt.a.get(t,this.silenceMatcher.getAttributePath(e))).filter(e=>e))}getMode(){return this.editMode?this.actionLabels.EDIT:this.actionLabels.ADD}preFillControls(e){this.form.setValue(e)}onSubmit(){this.submitAction.emit(this.form.value),this.activeModal.close()}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(wo.a),r.Rb(rh),r.Rb(Jt.a),r.Rb(gn.b))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-silence-matcher-modal"]],viewQuery:function(e,t){if(1&e&&r.Wc(Jt.G,3),2&e){let e;r.Ec(e=r.mc())&&(t.typeahead=e.first)}},outputs:{submitAction:"submitAction"},decls:31,vars:11,consts:function(){let e,t,n,i,s,o,a,c;return e="{VAR_SELECT, select, true {Edit} other {Add}}",e=r.gc(e,{VAR_SELECT:"\ufffd0\ufffd"}),t="" + e + " Matcher",n="Name",i="-- Select an attribute to match against --",s="Value",o="Use regular expression",a="This field is required!",c="This field is required!",[[3,"modalRef"],[1,"modal-title"],t,[1,"modal-content"],["novalidate","",1,"form",3,"formGroup"],["formDir","ngForm"],[1,"modal-body"],[1,"form-group","row"],["for","name",1,"cd-col-form-label","required"],n,[1,"cd-col-form-input"],["id","name","formControlName","name","name","name",1,"form-control"],[3,"ngValue"],i,[3,"value",4,"ngFor","ngForOf"],["class","help-block",4,"ngIf"],["for","value",1,"cd-col-form-label","required"],s,["id","value","container","body","type","text","formControlName","value",1,"form-control",3,"ngbTypeahead","focus","click"],["id","match-state",3,"class",4,"ngIf"],[1,"cd-col-form-offset"],[1,"custom-control","custom-checkbox"],["type","checkbox","formControlName","isRegex","name","is-regex","id","is-regex",1,"custom-control-input"],["for","is-regex",1,"custom-control-label"],o,[1,"modal-footer"],[3,"form","submitText","submitActionEvent"],[3,"value"],[1,"help-block"],a,c,["id","match-state"]]},template:function(e,t){if(1&e&&(r.Xb(0,"cd-modal",0),r.Xb(1,"span",1),r.bc(2,2),r.Wb(),r.Vb(3,3),r.Xb(4,"form",4,5),r.Xb(6,"div",6),r.Xb(7,"div",7),r.Xb(8,"label",8),r.bc(9,9),r.Wb(),r.Xb(10,"div",10),r.Xb(11,"select",11),r.Xb(12,"option",12),r.bc(13,13),r.Wb(),r.Pc(14,oh,2,2,"option",14),r.Wb(),r.Pc(15,ah,2,0,"span",15),r.Wb(),r.Wb(),r.Xb(16,"div",7),r.Xb(17,"label",16),r.bc(18,17),r.Wb(),r.Xb(19,"div",10),r.Xb(20,"input",18),r.lc("focus",function(e){return t.valueFocus.next(e.target.value)})("click",function(e){return t.valueClick.next(e.target.value)}),r.Wb(),r.Pc(21,ch,2,0,"span",15),r.Wb(),r.Pc(22,lh,3,7,"div",19),r.Wb(),r.Xb(23,"div",7),r.Xb(24,"div",20),r.Xb(25,"div",21),r.Sb(26,"input",22),r.Xb(27,"label",23),r.bc(28,24),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Xb(29,"div",25),r.Xb(30,"cd-form-button-panel",26),r.lc("submitActionEvent",function(){return t.onSubmit()}),r.Wb(),r.Wb(),r.Wb(),r.Ub(),r.Wb()),2&e){const e=r.Fc(5);r.uc("modalRef",t.activeModal),r.Db(2),r.fc(t.editMode),r.cc(2),r.Db(2),r.uc("formGroup",t.form),r.Db(8),r.uc("ngValue",null),r.Db(2),r.uc("ngForOf",t.nameAttributes),r.Db(1),r.uc("ngIf",t.form.showError("name",e,"required")),r.Db(5),r.uc("ngbTypeahead",t.search),r.Db(1),r.uc("ngIf",t.form.showError("value",e,"required")),r.Db(1),r.uc("ngIf",t.form.getValue("value")&&!t.form.getValue("isRegex")&&t.matcherMatch),r.Db(8),r.uc("form",t.form)("submitText",t.getMode())}},directives:[ur.a,xn.B,xn.r,Qn.a,xn.k,Zn.a,On.a,xn.z,ei.a,xn.q,xn.i,xn.u,xn.C,s.q,s.r,xn.d,Jt.G,xn.b,ti.a],styles:[""]}),e})();var dh=n("MAOJ");function hh(e,t){if(1&e&&(r.Vb(0),r.Sb(1,"input",53),r.Ub()),2&e){const e=r.nc().$implicit,t=r.nc(),n=t.index,i=t.matcher;r.Db(1),r.xc("id","matcher-",e.attribute,"-",n,""),r.uc("value",i[e.attribute])}}function fh(e,t){if(1&e&&(r.Vb(0),r.Xb(1,"div",47),r.Xb(2,"div",54),r.Sb(3,"input",55),r.Wb(),r.Wb(),r.Ub()),2&e){const e=r.nc().$implicit,t=r.nc(),n=t.index,i=t.matcher;r.Db(3),r.xc("id","matcher-",e.attribute,"-",n,""),r.uc("checked",i[e.attribute])}}const ph=function(e){return[e]};function mh(e,t){if(1&e&&(r.Vb(0),r.Xb(1,"div",51),r.Xb(2,"span",52),r.Sb(3,"i",38),r.Wb(),r.Wb(),r.Pc(4,hh,2,3,"ng-container",7),r.Pc(5,fh,4,3,"ng-container",7),r.Ub()),2&e){const e=t.$implicit;r.Db(2),r.uc("ngbTooltip",e.tooltip),r.Db(1),r.uc("ngClass",r.zc(4,ph,e.icon)),r.Db(1),r.uc("ngIf","isRegex"!==e.attribute),r.Db(1),r.uc("ngIf","isRegex"===e.attribute)}}function bh(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div",46),r.Pc(1,mh,6,6,"ng-container",34),r.Xb(2,"span",47),r.Xb(3,"button",48),r.lc("click",function(){r.Ic(e);const n=t.index;return r.nc().showMatcherModal(n)}),r.Sb(4,"i",38),r.Wb(),r.Xb(5,"button",49),r.lc("click",function(){r.Ic(e);const n=t.index;return r.nc().deleteMatcher(n)}),r.Sb(6,"i",38),r.Wb(),r.Wb(),r.Wb(),r.Sb(7,"span",50)}if(2&e){const e=t.index,n=r.nc();r.Db(1),r.uc("ngForOf",n.matcherConfig),r.Db(2),r.wc("id","matcher-edit-",e,""),r.Db(1),r.uc("ngClass",r.zc(5,ph,n.icons.edit)),r.Db(1),r.wc("id","matcher-delete-",e,""),r.Db(1),r.uc("ngClass",r.zc(7,ph,n.icons.trash))}}function gh(e,t){1&e&&(r.Xb(0,"cd-helper"),r.bc(1,56),r.Wb())}function _h(e,t){1&e&&(r.Xb(0,"span",57),r.bc(1,58),r.Wb())}function vh(e,t){1&e&&(r.Xb(0,"span",57),r.bc(1,59),r.Wb())}function yh(e,t){1&e&&(r.Xb(0,"span",57),r.bc(1,60),r.Wb())}function wh(e,t){1&e&&(r.Xb(0,"span",57),r.bc(1,61),r.Wb())}function Dh(e,t){1&e&&(r.Xb(0,"span",57),r.bc(1,62),r.Wb())}const Sh=function(e,t){return{"text-warning":e,"text-danger":t}};function xh(e,t){if(1&e&&(r.Xb(0,"h5",38),r.Xb(1,"strong"),r.bc(2,63),r.Wb(),r.Wb()),2&e){r.nc();const e=r.Fc(4);r.uc("ngClass",r.Ac(1,Sh,!e.submitted,e.submitted))}}function kh(e,t){1&e&&r.Tb(0)}const Th=function(e,t){return{index:e,matcher:t}};function Mh(e,t){if(1&e&&(r.Xb(0,"span"),r.Pc(1,kh,1,0,"ng-container",64),r.Wb()),2&e){const e=t.$implicit,n=t.index;r.nc();const i=r.Fc(1);r.Db(1),r.uc("ngTemplateOutlet",i)("ngTemplateOutletContext",r.Ac(2,Th,n,e))}}function Ch(e,t){if(1&e&&(r.Xb(0,"div",65),r.Xb(1,"span"),r.Rc(2),r.Wb(),r.Wb()),2&e){const e=r.nc();r.Gb("cd-col-form-offset ",e.matcherMatch.cssClass,""),r.Db(1),r.Gb("text-muted ",e.matcherMatch.cssClass,""),r.Db(1),r.Tc(" ",e.matcherMatch.status," ")}}function Oh(e,t){if(1&e&&r.Sb(0,"cd-date-time-picker",66),2&e){const e=r.nc();r.uc("control",e.form.get("startsAt"))("hasSeconds",!1)}}function Lh(e,t){if(1&e&&r.Sb(0,"cd-date-time-picker",66),2&e){const e=r.nc();r.uc("control",e.form.get("endsAt"))("hasSeconds",!1)}}const Eh=function(e){return{"btn-warning":e}};let Ah=(()=>{class e{constructor(e,t,n,i,r,s,o,a,c,l,u){this.router=e,this.authStorageService=t,this.formBuilder=n,this.prometheusService=i,this.notificationService=r,this.route=s,this.timeDiff=o,this.modalService=a,this.silenceMatcher=c,this.actionLabels=l,this.succeededLabels=u,this.icons=_n.a,this.recreate=!1,this.edit=!1,this.resource="silence",this.matchers=[],this.matcherMatch=void 0,this.matcherConfig=[{tooltip:"Attribute name",icon:this.icons.paragraph,attribute:"name"},{tooltip:"Value",icon:this.icons.terminal,attribute:"value"},{tooltip:"Regular expression",icon:this.icons.magic,attribute:"isRegex"}],this.datetimeFormat="YYYY-MM-DD HH:mm",this.init()}init(){this.chooseMode(),this.authenticate(),this.createForm(),this.setupDates(),this.getData()}chooseMode(){this.edit=this.router.url.startsWith("/monitoring/silences/edit"),this.recreate=this.router.url.startsWith("/monitoring/silences/recreate"),this.action=this.edit?this.actionLabels.EDIT:this.recreate?this.actionLabels.RECREATE:this.actionLabels.CREATE}authenticate(){if(this.permission=this.authStorageService.getPermissions().prometheus,!this.permission.read||!(this.edit?this.permission.update:this.permission.create))throw new ih.b}createForm(){const e=Cn.a.custom("format",e=>!(""===e||nn()(e,this.datetimeFormat).isValid()));this.form=this.formBuilder.group({startsAt:["",[xn.A.required,e]],duration:["2h",[xn.A.min(1)]],endsAt:["",[xn.A.required,e]],createdBy:[this.authStorageService.getUsername(),[xn.A.required]],comment:[null,[xn.A.required]]},{validators:Cn.a.custom("matcherRequired",()=>0===this.matchers.length)})}setupDates(){const e=nn()().format(this.datetimeFormat);this.form.silentSet("startsAt",e),this.updateDate(),this.subscribeDateChanges()}updateDate(e){const t=nn()(this.form.getValue(e?"endsAt":"startsAt"),this.datetimeFormat).toDate(),n=this.timeDiff.calculateDate(t,this.form.getValue("duration"),e);if(n){const t=nn()(n).format(this.datetimeFormat);this.form.silentSet(e?"startsAt":"endsAt",t)}}subscribeDateChanges(){this.form.get("startsAt").valueChanges.subscribe(()=>{this.onDateChange()}),this.form.get("duration").valueChanges.subscribe(()=>{this.updateDate()}),this.form.get("endsAt").valueChanges.subscribe(()=>{this.onDateChange(!0)})}onDateChange(e){const t=nn()(this.form.getValue("startsAt"),this.datetimeFormat),n=nn()(this.form.getValue("endsAt"),this.datetimeFormat);t.isBefore(n)?this.updateDuration():this.updateDate(e)}updateDuration(){const e=nn()(this.form.getValue("startsAt"),this.datetimeFormat).toDate(),t=nn()(this.form.getValue("endsAt"),this.datetimeFormat).toDate();this.form.silentSet("duration",this.timeDiff.calculateDuration(e,t))}getData(){this.getRules(),this.getModeSpecificData()}getRules(){this.prometheusService.ifPrometheusConfigured(()=>this.prometheusService.getRules().subscribe(e=>{this.rules=e.groups.reduce((e,t)=>Wt.a.concat(e,t.rules),[])},()=>{this.prometheusService.disablePrometheusConfig(),this.rules=[]}),()=>{this.rules=[],this.notificationService.show(vn.a.info,"Please add your Prometheus host to the dashboard configuration and refresh the page",void 0,void 0,"Prometheus")})}getModeSpecificData(){this.route.params.subscribe(e=>{e.id&&(this.edit||this.recreate?this.prometheusService.getSilences(e).subscribe(e=>{this.fillFormWithSilence(e[0])}):this.prometheusService.getAlerts(e).subscribe(e=>{this.fillFormByAlert(e[0])}))})}fillFormWithSilence(e){this.id=e.id,this.edit&&(["startsAt","endsAt"].forEach(t=>this.form.silentSet(t,nn()(e[t]).format(this.datetimeFormat))),this.updateDuration()),["createdBy","comment"].forEach(t=>this.form.silentSet(t,e[t])),this.matchers=e.matchers,this.validateMatchers()}validateMatchers(){this.rules?(this.matcherMatch=this.silenceMatcher.multiMatch(this.matchers,this.rules),this.form.markAsDirty(),this.form.updateValueAndValidity()):window.setTimeout(()=>this.validateMatchers(),100)}fillFormByAlert(e){const t=e.labels;Object.keys(t).forEach(e=>this.setMatcher({name:e,value:t[e],isRegex:!1}))}setMatcher(e,t){Wt.a.isNumber(t)?this.matchers[t]=e:this.matchers.push(e),this.validateMatchers()}showMatcherModal(e){const t=this.modalService.show(uh).componentInstance;t.rules=this.rules,Wt.a.isNumber(e)&&(t.editMode=!0,t.preFillControls(this.matchers[e])),t.submitAction.subscribe(t=>{this.setMatcher(t,e)})}deleteMatcher(e){this.matchers.splice(e,1),this.validateMatchers()}submit(){this.form.invalid||this.prometheusService.setSilence(this.getSubmitData()).subscribe(e=>{this.router.navigate(["/monitoring/silences"]),this.notificationService.show(vn.a.success,this.getNotificationTile(e.body.silenceId),void 0,void 0,"Prometheus")},()=>this.form.setErrors({cdSubmitButton:!0}))}getSubmitData(){const e=this.form.value;return delete e.duration,e.startsAt=nn()(e.startsAt,this.datetimeFormat).toISOString(),e.endsAt=nn()(e.endsAt,this.datetimeFormat).toISOString(),e.matchers=this.matchers,this.edit&&(e.id=this.id),e}getNotificationTile(e){let t;return t=this.edit?this.succeededLabels.EDITED:this.recreate?this.succeededLabels.RECREATED:this.succeededLabels.CREATED,`${t} ${this.resource} ${e}`}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Pt.e),r.Rb(Gt.a),r.Rb(wo.a),r.Rb(Yd),r.Rb(wn.a),r.Rb(Pt.a),r.Rb(sh),r.Rb(yn.a),r.Rb(rh),r.Rb(gn.b),r.Rb(gn.d))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-prometheus-form"]],decls:71,vars:30,consts:function(){let e,t,n,i,r,s,o,a,c,l,u,d,h,f,p,m,b,g;return e="" + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + "",t="Creator",n="Comment",i="Start time",r="If the start time lies in the past the creation time will be used",s="Duration",o="End time",a="Matchers",c="Add matcher",l="Edit",u="Delete",d="Editing a silence will expire the old silence and recreate it as a new silence",h="This field is required!",f="This field is required!",p="This field is required!",m="This field is required!",b="This field is required!",g="A silence requires at least one matcher",[["matcherTpl",""],[1,"cd-col-form"],["name","form","novalidate","",1,"form",3,"formGroup"],["formDir","ngForm"],[1,"card"],[1,"card-header"],e,[4,"ngIf"],[1,"card-body"],[1,"form-group","row"],["for","created-by",1,"cd-col-form-label","required"],t,[1,"cd-col-form-input"],["formControlName","createdBy","id","created-by","name","created-by","type","text",1,"form-control"],["class","invalid-feedback",4,"ngIf"],["for","comment",1,"cd-col-form-label","required"],n,["formControlName","comment","id","comment","name","comment","type","text",1,"form-control"],["for","starts-at",1,"cd-col-form-label"],[1,"required"],i,r,["formControlName","startsAt","triggers","manual",1,"form-control",3,"ngbPopover","click","keypress"],["ps","ngbPopover"],["for","duration",1,"cd-col-form-label","required"],s,["formControlName","duration","id","duration","name","duration","type","text",1,"form-control"],["for","ends-at",1,"cd-col-form-label","required"],o,["formControlName","endsAt","triggers","manual",1,"form-control",3,"ngbPopover","click","keypress"],["pe","ngbPopover"],a,[1,"cd-col-form-offset"],[3,"ngClass",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"row"],[1,"col-12"],["type","button","id","add-matcher",1,"btn","btn-light","float-right","my-3",3,"ngClass","click"],[3,"ngClass"],c,["id","match-state",3,"class",4,"ngIf"],[1,"card-footer"],[1,"text-right"],[3,"form","submitText","submitActionEvent"],["popStart",""],["popEnd",""],[1,"input-group","my-2"],[1,"input-group-append"],["type","button","ngbTooltip",l,1,"btn","btn-light",3,"id","click"],["type","button","ngbTooltip",u,1,"btn","btn-light",3,"id","click"],[1,"help-block"],[1,"input-group-prepend"],[1,"input-group-text",3,"ngbTooltip"],["type","text","disabled","","readonly","",1,"form-control",3,"id","value"],[1,"input-group-text"],["type","checkbox","disabled","","readonly","",3,"id","checked"],d,[1,"invalid-feedback"],h,f,p,m,b,g,[4,"ngTemplateOutlet","ngTemplateOutletContext"],["id","match-state"],[3,"control","hasSeconds"]]},template:function(e,t){if(1&e){const e=r.Yb();r.Pc(0,bh,8,9,"ng-template",null,0,r.Qc),r.Xb(2,"div",1),r.Xb(3,"form",2,3),r.Xb(5,"div",4),r.Xb(6,"div",5),r.Xb(7,"span"),r.bc(8,6),r.oc(9,"titlecase"),r.oc(10,"upperFirst"),r.Wb(),r.Pc(11,gh,2,0,"cd-helper",7),r.Wb(),r.Xb(12,"div",8),r.Xb(13,"div",9),r.Xb(14,"label",10),r.bc(15,11),r.Wb(),r.Xb(16,"div",12),r.Sb(17,"input",13),r.Pc(18,_h,2,0,"span",14),r.Wb(),r.Wb(),r.Xb(19,"div",9),r.Xb(20,"label",15),r.bc(21,16),r.Wb(),r.Xb(22,"div",12),r.Xb(23,"textarea",17),r.Rc(24," "),r.Wb(),r.Pc(25,vh,2,0,"span",14),r.Wb(),r.Wb(),r.Xb(26,"div",9),r.Xb(27,"label",18),r.Xb(28,"span",19),r.bc(29,20),r.Wb(),r.Xb(30,"cd-helper"),r.bc(31,21),r.Wb(),r.Wb(),r.Xb(32,"div",12),r.Xb(33,"input",22,23),r.lc("click",function(){return r.Ic(e),r.Fc(34).open()})("keypress",function(){return r.Ic(e),r.Fc(34).close()}),r.Wb(),r.Pc(35,yh,2,0,"span",14),r.Wb(),r.Wb(),r.Xb(36,"div",9),r.Xb(37,"label",24),r.bc(38,25),r.Wb(),r.Xb(39,"div",12),r.Sb(40,"input",26),r.Pc(41,wh,2,0,"span",14),r.Wb(),r.Wb(),r.Xb(42,"div",9),r.Xb(43,"label",27),r.bc(44,28),r.Wb(),r.Xb(45,"div",12),r.Xb(46,"input",29,30),r.lc("click",function(){return r.Ic(e),r.Fc(47).open()})("keypress",function(){return r.Ic(e),r.Fc(47).close()}),r.Wb(),r.Pc(48,Dh,2,0,"span",14),r.Wb(),r.Wb(),r.Xb(49,"fieldset"),r.Xb(50,"legend",19),r.bc(51,31),r.Wb(),r.Xb(52,"div",32),r.Pc(53,xh,3,4,"h5",33),r.Pc(54,Mh,2,5,"span",34),r.Xb(55,"div",35),r.Xb(56,"div",36),r.Xb(57,"button",37),r.lc("click",function(){return t.showMatcherModal()}),r.Sb(58,"i",38),r.Vb(59),r.bc(60,39),r.Ub(),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Pc(61,Ch,3,7,"div",40),r.Wb(),r.Wb(),r.Xb(62,"div",41),r.Xb(63,"div",42),r.Xb(64,"cd-form-button-panel",43),r.lc("submitActionEvent",function(){return t.submit()}),r.oc(65,"titlecase"),r.oc(66,"upperFirst"),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Pc(67,Oh,1,2,"ng-template",null,44,r.Qc),r.Pc(69,Lh,1,2,"ng-template",null,45,r.Qc)}if(2&e){const e=r.Fc(4),n=r.Fc(68),i=r.Fc(70);r.Db(3),r.uc("formGroup",t.form),r.Db(7),r.fc(r.pc(9,18,t.action))(r.pc(10,20,t.resource)),r.cc(8),r.Db(1),r.uc("ngIf",t.edit),r.Db(7),r.uc("ngIf",t.form.showError("createdBy",e,"required")),r.Db(7),r.uc("ngIf",t.form.showError("comment",e,"required")),r.Db(8),r.uc("ngbPopover",n),r.Db(2),r.uc("ngIf",t.form.showError("startsAt",e,"required")),r.Db(6),r.uc("ngIf",t.form.showError("duration",e,"required")),r.Db(5),r.uc("ngbPopover",i),r.Db(2),r.uc("ngIf",t.form.showError("endsAt",e,"required")),r.Db(5),r.uc("ngIf",0===t.matchers.length),r.Db(1),r.uc("ngForOf",t.matchers),r.Db(3),r.uc("ngClass",r.zc(26,Eh,e.submitted&&0===t.matchers.length)),r.Db(1),r.uc("ngClass",r.zc(28,ph,t.icons.add)),r.Db(3),r.uc("ngIf",t.matchers.length&&t.matcherMatch),r.Db(3),r.uc("form",t.form)("submitText",r.pc(65,22,t.action)+" "+r.pc(66,24,t.resource))}},directives:[xn.B,xn.r,Qn.a,xn.k,s.r,Zn.a,On.a,xn.d,ei.a,xn.q,xn.i,dr.a,Jt.w,s.q,s.p,ti.a,Jt.D,s.w,dh.a],pipes:[s.A,pr.a],styles:["textarea[_ngcontent-%COMP%]{resize:vertical}"]}),e})();var Ih=n("w9WL"),Rh=n("HDdC");function Ph(e,t){1&e&&(r.Xb(0,"cd-alert-panel",2),r.hc(1,3),r.Sb(2,"cd-doc",4),r.ec(),r.Wb())}function Fh(e,t){if(1&e&&r.Sb(0,"cd-table-key-value",8),2&e){const e=r.nc(2);r.uc("renderObjects",!0)("hideEmpty",!0)("appendParentKey",!1)("data",e.expandedRow)("customCss",e.customCss)("autoReload",!1)}}function Wh(e,t){if(1&e){const e=r.Yb();r.Xb(0,"cd-table",5),r.lc("setExpandedRow",function(t){return r.Ic(e),r.nc().setExpandedRow(t)})("fetchData",function(){return r.Ic(e),r.nc().refresh()})("updateSelection",function(t){return r.Ic(e),r.nc().updateSelection(t)}),r.Sb(1,"cd-table-actions",6),r.Pc(2,Fh,1,6,"cd-table-key-value",7),r.Wb()}if(2&e){const e=r.nc();r.uc("data",e.silences)("columns",e.columns)("forceIdentifier",!0)("customCss",e.customCss)("sorts",e.sorts)("hasDetails",!0),r.Db(1),r.uc("permission",e.permission)("selection",e.selection)("tableActions",e.tableActions),r.Db(1),r.uc("ngIf",e.expandedRow)}}let jh=(()=>{class e extends Hd{constructor(e,t,n,i,r,s,o,a){super(a),this.authStorageService=e,this.cdDatePipe=t,this.modalService=n,this.notificationService=i,this.urlBuilder=r,this.actionLabels=s,this.succeededLabels=o,this.silences=[],this.selection=new Ht.a,this.customCss={"badge badge-danger":"active","badge badge-warning":"pending","badge badge-default":"expired"},this.sorts=[{prop:"endsAt",dir:Ih.i.desc}],this.permission=this.authStorageService.getPermissions().prometheus;const c=e=>e.first()&&e.first().status&&"expired"===e.first().status.state;this.tableActions=[{permission:"create",icon:_n.a.add,routerLink:()=>this.urlBuilder.getCreate(),canBePrimary:e=>!e.hasSingleSelection,name:this.actionLabels.CREATE},{permission:"create",canBePrimary:e=>e.hasSingleSelection&&c(e),disable:e=>!e.hasSingleSelection||e.first().cdExecuting||e.first().cdExecuting&&c(e)||!c(e),icon:_n.a.copy,routerLink:()=>this.urlBuilder.getRecreate(this.selection.first().id),name:this.actionLabels.RECREATE},{permission:"update",icon:_n.a.edit,canBePrimary:e=>e.hasSingleSelection&&!c(e),disable:e=>!e.hasSingleSelection||e.first().cdExecuting||e.first().cdExecuting&&!c(e)||c(e),routerLink:()=>this.urlBuilder.getEdit(this.selection.first().id),name:this.actionLabels.EDIT},{permission:"delete",icon:_n.a.trash,canBePrimary:e=>e.hasSingleSelection&&!c(e),disable:e=>!e.hasSingleSelection||e.first().cdExecuting||c(e),click:()=>this.expireSilence(),name:this.actionLabels.EXPIRE}],this.columns=[{name:"ID",prop:"id",flexGrow:3},{name:"Created by",prop:"createdBy",flexGrow:2},{name:"Started",prop:"startsAt",pipe:this.cdDatePipe},{name:"Updated",prop:"updatedAt",pipe:this.cdDatePipe},{name:"Ends",prop:"endsAt",pipe:this.cdDatePipe},{name:"Status",prop:"status.state",cellTransformation:$t.a.classAdding}]}refresh(){this.prometheusService.ifAlertmanagerConfigured(()=>{this.prometheusService.getSilences().subscribe(e=>{this.silences=e},()=>{this.prometheusService.disableAlertmanagerConfig()})})}updateSelection(e){this.selection=e}expireSilence(){const e=this.selection.first().id,t="Silence",n="Prometheus";this.modalRef=this.modalService.show(bn.a,{itemDescription:t,itemNames:[e],actionDescription:this.actionLabels.EXPIRE,submitActionObservable:()=>new Rh.a(i=>{this.prometheusService.expireSilence(e).subscribe(()=>{this.notificationService.show(vn.a.success,`${this.succeededLabels.EXPIRED} ${t} ${e}`,void 0,void 0,n)},e=>{e.application=n,i.error(e)},()=>{i.complete(),this.refresh()})})})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Gt.a),r.Rb(Xt.a),r.Rb(yn.a),r.Rb(wn.a),r.Rb(ar.a),r.Rb(gn.b),r.Rb(gn.d),r.Rb(Yd))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-silences-list"]],features:[r.Cb([{provide:ar.a,useValue:new ar.a("monitoring/silences")}]),r.Ab],decls:3,vars:2,consts:function(){let e;return e="To enable Silences, please provide the URL to the API of the Prometheus' Alertmanager as described in the " + "\ufffd#2\ufffd" + "" + "\ufffd/#2\ufffd" + ".",[["type","info",4,"ngIf"],["selectionType","single",3,"data","columns","forceIdentifier","customCss","sorts","hasDetails","setExpandedRow","fetchData","updateSelection",4,"ngIf"],["type","info"],e,["section","prometheus"],["selectionType","single",3,"data","columns","forceIdentifier","customCss","sorts","hasDetails","setExpandedRow","fetchData","updateSelection"],[1,"table-actions",3,"permission","selection","tableActions"],["cdTableDetail","",3,"renderObjects","hideEmpty","appendParentKey","data","customCss","autoReload",4,"ngIf"],["cdTableDetail","",3,"renderObjects","hideEmpty","appendParentKey","data","customCss","autoReload"]]},template:function(e,t){1&e&&(r.Sb(0,"cd-prometheus-tabs"),r.Pc(1,Ph,3,0,"cd-alert-panel",0),r.Pc(2,Wh,3,10,"cd-table",1)),2&e&&(r.Db(1),r.uc("ngIf",!t.isAlertmanagerConfigured),r.Db(1),r.uc("ngIf",t.isAlertmanagerConfigured))},directives:[Xd,s.r,wr.a,Pr.a,Vt.a,Dn.a,en.a],styles:[""]}),e})(),Yh=(()=>{class e{constructor(e){this.http=e,this.url="api/telemetry"}getReport(){return this.http.get(`${this.url}/report`)}enable(e=!0){const t={enable:e};return e&&(t.license_name="sharing-1-0"),this.http.put(`${this.url}`,t)}}return e.\u0275fac=function(t){return new(t||e)(r.ic(o.b))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Nh=(()=>{class e{constructor(){this.visible=!1,this.update=new r.p}setVisibility(e){this.visible=e,this.update.emit(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function zh(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div"),r.Rc(1," The plugin is already "),r.Xb(2,"b"),r.Rc(3,"enabled"),r.Wb(),r.Rc(4,". Click "),r.Xb(5,"b"),r.Rc(6,"Deactivate"),r.Wb(),r.Rc(7," to disable it.\xa0 "),r.Xb(8,"button",69),r.lc("click",function(){return r.Ic(e),r.nc(3).disableModule("The Telemetry module has been disabled successfully.")}),r.bc(9,70),r.Wb(),r.Wb()}}function $h(e,t){1&e&&(r.Xb(0,"span",71),r.bc(1,72),r.Wb())}function Hh(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div"),r.Xb(1,"form",4,5),r.Xb(3,"div",6),r.Xb(4,"div",7),r.bc(5,8),r.Wb(),r.Xb(6,"div",9),r.Xb(7,"p"),r.hc(8,10),r.Sb(9,"br"),r.Sb(10,"a",11),r.Sb(11,"br"),r.Sb(12,"br"),r.Sb(13,"b"),r.ec(),r.Wb(),r.Pc(14,zh,10,0,"div",12),r.Xb(15,"legend"),r.bc(16,13),r.Wb(),r.Xb(17,"p"),r.bc(18,14),r.Wb(),r.Xb(19,"div",15),r.Xb(20,"label",16),r.Vb(21),r.bc(22,17),r.Ub(),r.Xb(23,"cd-helper"),r.Vb(24),r.bc(25,18),r.Ub(),r.Xb(26,"ul"),r.Xb(27,"li"),r.bc(28,19),r.Wb(),r.Xb(29,"li"),r.bc(30,20),r.Wb(),r.Xb(31,"li"),r.bc(32,21),r.Wb(),r.Xb(33,"li"),r.bc(34,22),r.Wb(),r.Xb(35,"li"),r.bc(36,23),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Xb(37,"div",24),r.Xb(38,"div",25),r.Sb(39,"input",26),r.Sb(40,"label",27),r.Wb(),r.Wb(),r.Wb(),r.Xb(41,"div",15),r.Xb(42,"label",28),r.Vb(43),r.bc(44,29),r.Ub(),r.Xb(45,"cd-helper"),r.Vb(46),r.bc(47,30),r.Ub(),r.Xb(48,"ul"),r.Xb(49,"li"),r.bc(50,31),r.Wb(),r.Xb(51,"li"),r.bc(52,32),r.Wb(),r.Xb(53,"li"),r.bc(54,33),r.Wb(),r.Xb(55,"li"),r.bc(56,34),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Xb(57,"div",24),r.Xb(58,"div",25),r.Sb(59,"input",35),r.Sb(60,"label",36),r.Wb(),r.Wb(),r.Wb(),r.Xb(61,"div",15),r.Xb(62,"label",37),r.Vb(63),r.bc(64,38),r.Ub(),r.Sb(65,"cd-helper",39),r.Wb(),r.Xb(66,"div",24),r.Xb(67,"div",25),r.Sb(68,"input",40),r.Sb(69,"label",41),r.Wb(),r.Wb(),r.Wb(),r.Xb(70,"div",15),r.Xb(71,"label",42),r.Vb(72),r.bc(73,43),r.Ub(),r.Xb(74,"cd-helper"),r.Vb(75),r.bc(76,44),r.Ub(),r.Xb(77,"ul"),r.Xb(78,"li"),r.Rc(79,"Cluster description"),r.Wb(),r.Xb(80,"li"),r.Rc(81,"Contact email address"),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Xb(82,"div",24),r.Xb(83,"div",25),r.Sb(84,"input",45),r.Sb(85,"label",46),r.Wb(),r.Wb(),r.Wb(),r.Xb(86,"legend"),r.Vb(87),r.bc(88,47),r.Ub(),r.Xb(89,"cd-helper"),r.bc(90,48),r.Wb(),r.Wb(),r.Xb(91,"div",15),r.Xb(92,"label",49),r.bc(93,50),r.Wb(),r.Xb(94,"div",24),r.Sb(95,"input",51),r.Wb(),r.Wb(),r.Xb(96,"div",15),r.Xb(97,"label",52),r.bc(98,53),r.Wb(),r.Xb(99,"div",24),r.Sb(100,"input",54),r.Wb(),r.Wb(),r.Xb(101,"legend"),r.bc(102,55),r.Wb(),r.Xb(103,"div",15),r.Xb(104,"label",56),r.Vb(105),r.bc(106,57),r.Ub(),r.Xb(107,"cd-helper"),r.bc(108,58),r.Wb(),r.Wb(),r.Xb(109,"div",24),r.Sb(110,"input",59),r.Pc(111,$h,2,0,"span",60),r.Wb(),r.Wb(),r.Xb(112,"div",15),r.Xb(113,"label",61),r.Vb(114),r.bc(115,62),r.Ub(),r.Xb(116,"cd-helper"),r.Xb(117,"p"),r.bc(118,63),r.Wb(),r.Xb(119,"p"),r.bc(120,64),r.Wb(),r.Wb(),r.Wb(),r.Xb(121,"div",24),r.Sb(122,"input",65),r.Wb(),r.Wb(),r.Sb(123,"br"),r.Xb(124,"p"),r.hc(125,66),r.Sb(126,"b"),r.ec(),r.Wb(),r.Wb(),r.Xb(127,"div",67),r.Xb(128,"div",68),r.Xb(129,"button",69),r.lc("click",function(){return r.Ic(e),r.nc(2).next()}),r.Vb(130),r.Rc(131),r.Ub(),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Wb()}if(2&e){const e=r.Fc(2),t=r.nc(2);r.Db(1),r.uc("formGroup",t.configForm),r.Db(4),r.fc(t.step),r.cc(5),r.Db(8),r.fc(t.sendToUrl)(t.sendToDeviceUrl),r.cc(8),r.Db(1),r.uc("ngIf",t.moduleEnabled),r.Db(97),r.uc("ngIf",t.configForm.showError("interval",e,"min")),r.Db(20),r.Sc(t.actionLabels.NEXT)}}function Xh(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div"),r.Xb(1,"form",73,74),r.Xb(3,"div",6),r.Xb(4,"div",7),r.bc(5,75),r.Wb(),r.Xb(6,"div",9),r.Xb(7,"div",15),r.Xb(8,"label",76),r.hc(9,77),r.Sb(10,"cd-helper",78),r.ec(),r.Wb(),r.Xb(11,"div",24),r.Sb(12,"input",79),r.Wb(),r.Wb(),r.Xb(13,"div",15),r.Xb(14,"label",80),r.hc(15,81),r.Sb(16,"cd-helper",82),r.ec(),r.Wb(),r.Xb(17,"div",24),r.Sb(18,"textarea",83),r.Wb(),r.Wb(),r.Xb(19,"div",15),r.Xb(20,"div",84),r.Xb(21,"div",85),r.Sb(22,"cd-download-button",86),r.Sb(23,"cd-copy-2-clipboard-button",87),r.Wb(),r.Wb(),r.Wb(),r.Xb(24,"div",15),r.Xb(25,"div",84),r.Xb(26,"div",25),r.Sb(27,"input",88),r.Xb(28,"label",89),r.hc(29,90),r.Sb(30,"a",91),r.ec(),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Xb(31,"div",67),r.Xb(32,"div",68),r.Xb(33,"cd-form-button-panel",92),r.lc("submitActionEvent",function(){return r.Ic(e),r.nc(2).onSubmit()})("backActionEvent",function(){return r.Ic(e),r.nc(2).back()}),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Wb()}if(2&e){const e=r.nc(2);r.Db(1),r.uc("formGroup",e.previewForm),r.Db(4),r.fc(e.step),r.cc(5),r.Db(17),r.uc("objectItem",e.report),r.Db(11),r.uc("form",e.previewForm)("submitText",e.actionLabels.UPDATE)("cancelText",e.actionLabels.BACK)}}function Vh(e,t){if(1&e&&(r.Xb(0,"div",1),r.Vb(1,2),r.Pc(2,Hh,132,7,"div",3),r.Pc(3,Xh,34,6,"div",3),r.Ub(),r.Wb()),2&e){const e=r.nc();r.Db(1),r.uc("ngSwitch",e.step),r.Db(1),r.uc("ngSwitchCase",1),r.Db(1),r.uc("ngSwitchCase",2)}}let Bh=(()=>{class e extends qn.a{constructor(e,t,n,i,r,s,o){super(),this.actionLabels=e,this.formBuilder=t,this.mgrModuleService=n,this.notificationService=i,this.router=r,this.telemetryService=s,this.telemetryNotificationService=o,this.licenseAgrmt=!1,this.options={},this.requiredFields=["channel_basic","channel_crash","channel_device","channel_ident","interval","proxy","contact","description"],this.report=void 0,this.reportId=void 0,this.sendToUrl="",this.sendToDeviceUrl="",this.step=1}ngOnInit(){const e=[this.mgrModuleService.getOptions("telemetry"),this.mgrModuleService.getConfig("telemetry")];Object(Oi.a)(e).subscribe(e=>{const t=e[1];this.moduleEnabled=t.enabled,this.sendToUrl=t.url,this.sendToDeviceUrl=t.device_url,this.options=Wt.a.pick(e[0],this.requiredFields);const n=Wt.a.pick(t,this.requiredFields);this.createConfigForm(),this.configForm.setValue(n),this.loadingReady()},e=>{this.loadingError()})}createConfigForm(){const e={};Wt.a.forEach(Object.values(this.options),t=>{e[t.name]=[t.default_value,this.getValidators(t)]}),this.configForm=this.formBuilder.group(e)}createPreviewForm(){const e={report:JSON.stringify(this.report,null,2),reportId:this.reportId,licenseAgrmt:[this.licenseAgrmt,xn.A.requiredTrue]};this.previewForm=this.formBuilder.group(e)}getValidators(e){const t=[];switch(e.type){case"int":t.push(Cn.a.number()),t.push(xn.A.required),Wt.a.isNumber(e.min)&&t.push(xn.A.min(e.min)),Wt.a.isNumber(e.max)&&t.push(xn.A.max(e.max));break;case"str":Wt.a.isNumber(e.min)&&t.push(xn.A.minLength(e.min)),Wt.a.isNumber(e.max)&&t.push(xn.A.maxLength(e.max))}return t}getReport(){this.loadingStart(),this.telemetryService.getReport().subscribe(e=>{this.report=e,this.reportId=e.report.report_id,this.createPreviewForm(),this.loadingReady(),this.step++},e=>{this.loadingError()})}updateConfig(){const e={};Wt.a.forEach(Object.values(this.options),t=>{const n=this.configForm.get(t.name);n.dirty&&n.valid&&(e[t.name]=n.value)}),this.mgrModuleService.updateConfig("telemetry",e).subscribe(()=>{this.disableModule("Your settings have been applied successfully. Due to privacy/legal reasons the Telemetry module is now disabled until you complete the next step and accept the license.",()=>{this.getReport()})},()=>{this.configForm.setErrors({cdSubmitButton:!0})})}disableModule(e=null,t=null){this.telemetryService.enable(!1).subscribe(()=>{this.telemetryNotificationService.setVisibility(!0),e&&this.notificationService.show(vn.a.success,e),t?t():this.router.navigate([""])})}next(){this.configForm.pristine?this.getReport():this.updateConfig()}back(){this.step--}onSubmit(){this.telemetryService.enable().subscribe(()=>{this.telemetryNotificationService.setVisibility(!1),this.notificationService.show(vn.a.success,"The Telemetry module has been configured and activated successfully."),this.router.navigate([""])})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(gn.b),r.Rb(wo.a),r.Rb(wl),r.Rb(wn.a),r.Rb(Pt.e),r.Rb(Yh),r.Rb(Nh))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-telemetry"]],features:[r.Ab],decls:1,vars:1,consts:function(){let e,t,n,i,s,o,a,c,l,u,d,h,f,p,m,b,g,_,v,y,w,D,S,x,k,T,M,C,O,L,E,A,I,R,P,F,W,j,Y,N,z;return e="Step " + "\ufffd0\ufffd" + " of 2: Telemetry report configuration",t="The telemetry module sends anonymous data about this Ceph cluster back to the Ceph developers to help understand how Ceph is used and what problems users may be experiencing." + "[\ufffd#9\ufffd\ufffd/#9\ufffd|\ufffd#11\ufffd\ufffd/#11\ufffd|\ufffd#12\ufffd\ufffd/#12\ufffd]" + " This data is visualized on " + "\ufffd#10\ufffd" + "public dashboards" + "\ufffd/#10\ufffd" + " that allow the community to quickly see summary statistics on how many clusters are reporting, their total capacity and OSD count, and version distribution trends." + "[\ufffd#9\ufffd\ufffd/#9\ufffd|\ufffd#11\ufffd\ufffd/#11\ufffd|\ufffd#12\ufffd\ufffd/#12\ufffd]" + "" + "[\ufffd#9\ufffd\ufffd/#9\ufffd|\ufffd#11\ufffd\ufffd/#11\ufffd|\ufffd#12\ufffd\ufffd/#12\ufffd]" + " The data being reported does " + "\ufffd#13\ufffd" + "not" + "\ufffd/#13\ufffd" + " contain any sensitive data like pool names, object names, object contents, hostnames, or device serial numbers. It contains counters and statistics on how the cluster has been deployed, the version of Ceph, the distribution of the hosts and other parameters which help the project to gain a better understanding of the way Ceph is used. The data is sent secured to " + "\ufffd0\ufffd" + " and " + "\ufffd1\ufffd" + " (device report).",t=r.gc(t),n="Channels",i="The telemetry report is broken down into several \"channels\", each with a different type of information that can be configured below.",s="Basic",o="Includes basic information about the cluster:",a="Capacity of the cluster",c="Number of monitors, managers, OSDs, MDSs, object gateways, or other daemons",l="Software version currently being used",u="Number and types of RADOS pools and CephFS file systems",d="Names of configuration options that have been changed from their default (but not their values)",h="Crash",f="Includes information about daemon crashes:",p="Type of daemon",m="Version of the daemon",b="Operating system (OS distribution, kernel version)",g="Stack trace identifying where in the Ceph code the crash occurred",_="Device",v="Includes information about device metrics like anonymized SMART metrics.",y="Ident",w="Includes user-provided identifying information about the cluster:",D="Contact Information",S="Submitting any contact information is completely optional and disabled by default.",x="Contact",k="Description",T="My first Ceph cluster",M="Advanced Settings",C="Interval",O="The module compiles and sends a new report every 24 hours by default. You can adjust this interval by setting a different number of hours.",L="Proxy",E="If the cluster cannot directly connect to the configured telemetry endpoint (default telemetry.ceph.com), you can configure a HTTP/HTTPS proxy server by e.g. adding https://10.0.0.1:8080",A="You can also include a user:pass if needed e.g. https://ceph:telemetry@10.0.0.1:8080",I="" + "\ufffd#126\ufffd" + "Note:" + "\ufffd/#126\ufffd" + " By clicking 'Next' you will first see a preview of the report content before you can activate the automatic submission of your data.",R="Deactivate",P="The entered value is too low! It must be greater or equal to 8.",F="Step " + "\ufffd0\ufffd" + " of 2: Telemetry report preview",W="A randomized UUID to identify a particular cluster over the course of several telemetry reports.",j="Report ID " + "\ufffd#10\ufffd" + "" + "\ufffd/#10\ufffd" + "",Y="The actual telemetry data that will be submitted.",N="Report preview " + "\ufffd#16\ufffd" + "" + "\ufffd/#16\ufffd" + "",z="I agree to my telemetry data being submitted under the " + "\ufffd#30\ufffd" + "Community Data License Agreement - Sharing - Version 1.0" + "\ufffd/#30\ufffd" + "",[["class","cd-col-form",4,"cdFormLoading"],[1,"cd-col-form"],[3,"ngSwitch"],[4,"ngSwitchCase"],["name","form","novalidate","",3,"formGroup"],["formDir","ngForm"],[1,"card"],[1,"card-header"],e,[1,"card-body"],t,["href","https://telemetry-public.ceph.com/"],[4,"ngIf"],n,i,[1,"form-group","row"],["for","channel_basic",1,"cd-col-form-label"],s,o,a,c,l,u,d,[1,"cd-col-form-input"],[1,"custom-control","custom-checkbox"],["type","checkbox","id","channel_basic","formControlName","channel_basic",1,"custom-control-input"],["for","channel_basic",1,"custom-control-label"],["for","channel_crash",1,"cd-col-form-label"],h,f,p,m,b,g,["type","checkbox","id","channel_crash","formControlName","channel_crash",1,"custom-control-input"],["for","channel_crash",1,"custom-control-label"],["for","channel_device",1,"cd-col-form-label"],_,["html",v],["type","checkbox","id","channel_device","formControlName","channel_device",1,"custom-control-input"],["for","channel_device",1,"custom-control-label"],["for","channel_ident",1,"cd-col-form-label"],y,w,["type","checkbox","id","channel_ident","formControlName","channel_ident",1,"custom-control-input"],["for","channel_ident",1,"custom-control-label"],D,S,["for","contact",1,"cd-col-form-label"],x,["id","contact","type","text","formControlName","contact","placeholder","Example User <user@example.com>",1,"form-control"],["for","description",1,"cd-col-form-label"],k,["id","description","type","text","formControlName","description","placeholder",T,1,"form-control"],M,["for","interval",1,"cd-col-form-label"],C,O,["id","interval","type","number","formControlName","interval",1,"form-control"],["class","invalid-feedback",4,"ngIf"],["for","proxy",1,"cd-col-form-label"],L,E,A,["id","proxy","type","text","formControlName","proxy","placeholder","https://10.0.0.1:8080",1,"form-control"],I,[1,"card-footer"],[1,"button-group","text-right"],["type","button",1,"btn","btn-light",3,"click"],R,[1,"invalid-feedback"],P,["name","previewForm","novalidate","",3,"formGroup"],["frm","ngForm"],F,["for","reportId",1,"cd-col-form-label"],j,["html",W],["type","text","id","reportId","formControlName","reportId","readonly","",1,"form-control"],["for","report",1,"cd-col-form-label"],N,["html",Y],["id","report","formControlName","report","rows","15","readonly","",1,"form-control"],[1,"cd-col-form-offset"],["role","group",1,"btn-group"],["fileName","telemetry_report",3,"objectItem"],["source","report"],["type","checkbox","id","licenseAgrmt","name","licenseAgrmt","formControlName","licenseAgrmt",1,"custom-control-input"],["for","licenseAgrmt",1,"custom-control-label"],z,["href","https://cdla.io/sharing-1-0/"],[3,"form","submitText","cancelText","submitActionEvent","backActionEvent"]]},template:function(e,t){1&e&&r.Pc(0,Vh,4,3,"div",0),2&e&&r.uc("cdFormLoading",t.loading)},directives:[Kn.a,s.t,s.u,xn.B,xn.r,Qn.a,xn.k,s.r,Zn.a,dr.a,On.a,xn.b,ei.a,xn.q,xn.i,xn.d,xn.v,nl,ma.a,ti.a],styles:[""]}),e})();var Uh=n("Y7HM");function qh(e){const{subscriber:t,counter:n,period:i}=e;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}let Gh=(()=>{class e{constructor(e){this.ngZone=e,this.intervalDataSource=new qi.a(null),this.intervalData$=this.intervalDataSource.asObservable();const t=parseInt(sessionStorage.getItem("dashboard_interval"),10)||5e3;this.setRefreshInterval(t)}setRefreshInterval(e){this.intervalTime=e,sessionStorage.setItem("dashboard_interval",e.toString()),this.intervalSubscription&&this.intervalSubscription.unsubscribe(),this.ngZone.runOutsideAngular(()=>{this.intervalSubscription=function(e=0,t=sa.a){return(!Object(Uh.a)(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=sa.a),new Rh.a(n=>(n.add(t.schedule(qh,e,{subscriber:n,counter:0,period:e})),n))}(this.intervalTime).subscribe(()=>this.ngZone.run(()=>{this.intervalDataSource.next(this.intervalTime)}))})}getRefreshInterval(){return this.intervalTime}ngOnDestroy(){this.intervalSubscription&&this.intervalSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(r.ic(r.D))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Jh(e,t){if(1&e&&(r.Xb(0,"option",8),r.Rc(1),r.Wb()),2&e){const e=t.$implicit,n=r.nc();r.uc("value",n.intervalList[e]),r.Db(1),r.Sc(e)}}let Kh=(()=>{class e{constructor(e){this.refreshIntervalService=e,this.intervalList={"5 s":5e3,"10 s":1e4,"15 s":15e3,"30 s":3e4,"1 min":6e4,"3 min":18e4,"5 min":3e5},this.intervalKeys=Object.keys(this.intervalList)}ngOnInit(){this.selectedInterval=this.refreshIntervalService.getRefreshInterval()||5e3}changeRefreshInterval(e){this.refreshIntervalService.setRefreshInterval(e)}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Gh))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-refresh-selector"]],decls:8,vars:2,consts:function(){let e;return e="Refresh",[[1,"container-fluid"],[1,"row"],[1,"col","d-flex","justify-content-end"],[1,"form-inline"],["for","refreshInterval",1,"col-form-label","my-0","mx-2"],e,["id","refreshInterval","name","refreshInterval",1,"form-control","custom-select",3,"ngModel","change","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]]},template:function(e,t){1&e&&(r.Xb(0,"div",0),r.Xb(1,"div",1),r.Xb(2,"div",2),r.Xb(3,"form",3),r.Xb(4,"label",4),r.bc(5,5),r.Wb(),r.Xb(6,"select",6),r.lc("change",function(e){return t.changeRefreshInterval(e.target.value)})("ngModelChange",function(e){return t.selectedInterval=e}),r.Pc(7,Jh,2,2,"option",7),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Wb()),2&e&&(r.Db(6),r.uc("ngModel",t.selectedInterval),r.Db(1),r.uc("ngForOf",t.intervalKeys))},directives:[xn.B,xn.r,xn.s,On.a,xn.z,ei.a,xn.q,xn.t,s.q,xn.u,xn.C],styles:[""]}),e})();var Qh=n("d+Og");let Zh=(()=>{class e{constructor(e){this.http=e}getFullHealth(){return this.http.get("api/health/full")}getMinimalHealth(){return this.http.get("api/health/minimal")}}return e.\u0275fac=function(t){return new(t||e)(r.ic(o.b))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var ef=n("TKcr"),tf=n("ej+x");function nf(e,t){if(1&e&&(r.Xb(0,"div",6),r.hc(1,7),r.oc(2,"lowercase"),r.Sb(3,"cd-doc",8),r.oc(4,"lowercase"),r.ec(),r.Wb()),2&e){const e=r.nc();r.Db(3),r.wc("section","dashboard-landing-page-",r.pc(4,4,e.groupTitle),""),r.Db(1),r.fc(r.pc(2,2,e.groupTitle)),r.cc(1)}}const rf=function(e,t){return[e,t]},sf=["*"];let of=(()=>{class e{constructor(){this.icons=_n.a}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-info-group"]],inputs:{groupTitle:"groupTitle"},ngContentSelectors:sf,decls:11,vars:6,consts:function(){let e,t;return e="here",t="For an overview of " + "\ufffd0\ufffd" + " widgets click " + "\ufffd#3\ufffd" + "" + "\ufffd/#3\ufffd" + "",[[1,"row"],["triggers","",1,"info-group-title",3,"ngbPopover"],["popInfo","ngbPopover"],["type","button",1,"popover-icon","btn","btn-link","p-0",3,"click"],[3,"ngClass"],["popInfoTemplate",""],[1,"text-center"],t,["docText",e,3,"section"]]},template:function(e,t){if(1&e){const e=r.Yb();r.tc(),r.Xb(0,"div",0),r.Xb(1,"div",1,2),r.Xb(3,"span"),r.Rc(4),r.Wb(),r.Xb(5,"button",3),r.lc("click",function(){return r.Ic(e),r.Fc(2).toggle()}),r.Sb(6,"i",4),r.Wb(),r.Wb(),r.Wb(),r.Xb(7,"div",0),r.sc(8),r.Wb(),r.Pc(9,nf,5,6,"ng-template",null,5,r.Qc)}if(2&e){const e=r.Fc(10);r.Db(1),r.uc("ngbPopover",e),r.Db(3),r.Sc(t.groupTitle),r.Db(2),r.uc("ngClass",r.Ac(3,rf,t.icons.infoCircle,t.icons.large))}},directives:[Jt.w,On.a,s.p,Pr.a],pipes:[s.o],styles:[".info-group-title[_ngcontent-%COMP%]{font-size:1.75rem;margin:0 0 .5vw .5vw}.popover-icon[_ngcontent-%COMP%]:focus{box-shadow:none}"]}),e})();function af(e,t){if(1&e&&(r.Xb(0,"a",6),r.Rc(1),r.Wb()),2&e){const e=r.nc();r.uc("routerLink",e.link),r.Db(1),r.Sc(e.cardTitle)}}function cf(e,t){if(1&e&&r.Rc(0),2&e){const e=r.nc();r.Tc(" ",e.cardTitle," ")}}const lf=["*"];let uf=(()=>{class e{constructor(){this.cardClass=""}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-info-card"]],inputs:{cardTitle:"cardTitle",link:"link",cardClass:"cardClass",contentClass:"contentClass"},ngContentSelectors:lf,decls:8,vars:4,consts:[[1,"card","shadow-sm",3,"ngClass"],[1,"card-body","d-flex","align-items-center","justify-content-center"],[1,"card-title","m-4"],[3,"routerLink",4,"ngIf","ngIfElse"],["noLinkTitle",""],[1,"card-text","text-center",3,"ngClass"],[3,"routerLink"]],template:function(e,t){if(1&e&&(r.tc(),r.Xb(0,"div",0),r.Xb(1,"div",1),r.Xb(2,"h4",2),r.Pc(3,af,2,2,"a",3),r.Pc(4,cf,1,1,"ng-template",null,4,r.Qc),r.Wb(),r.Xb(6,"div",5),r.sc(7),r.Wb(),r.Wb(),r.Wb()),2&e){const e=r.Fc(5);r.uc("ngClass",t.cardClass),r.Db(3),r.uc("ngIf",t.link)("ngIfElse",e),r.Db(3),r.uc("ngClass",t.contentClass)}},directives:[s.p,s.r,Pt.h],styles:[".card[_ngcontent-%COMP%]{font-size:12px;border:.5px solid #dee2e6;border-radius:3px;height:100%}@media screen and (min-width:320px){.card[_ngcontent-%COMP%]{font-size:calc(12px + 9 * ((100vw - 320px) / 1728))}}@media screen and (min-width:2048px){.card[_ngcontent-%COMP%]{font-size:21px}}.card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%]{padding-top:40px!important}.card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{left:-.6rem;position:absolute;top:-.3rem}.no-center[_ngcontent-%COMP%]{left:unset;position:unset;top:unset;transform:unset}.content-highlight[_ngcontent-%COMP%]{font-weight:700}"]}),e})();var df=n("MO+k");const hf=["chartCanvas"],ff=["chartTooltip"];let pf=(()=>{class e{constructor(e,t,n){this.dimlessBinary=e,this.dimless=t,this.cssHelper=n,this.config={},this.isBytesData=!1,this.showLabelAsTooltip=!1,this.prepareFn=new r.p,this.chartConfig={chartType:"doughnut",dataset:[{label:null,borderWidth:0}],colors:[{backgroundColor:[this.cssHelper.propertyValue("chart-color-green"),this.cssHelper.propertyValue("chart-color-yellow"),this.cssHelper.propertyValue("chart-color-orange"),this.cssHelper.propertyValue("chart-color-red"),this.cssHelper.propertyValue("chart-color-blue")]}],options:{cutoutPercentage:90,events:["click","mouseout","touchstart"],legend:{display:!0,position:"right",labels:{boxWidth:10,usePointStyle:!1}},plugins:{center_text:!0},tooltips:{enabled:!0,displayColors:!1,backgroundColor:this.cssHelper.propertyValue("chart-color-tooltip-background"),cornerRadius:0,bodyFontSize:14,bodyFontStyle:"600",position:"nearest",xPadding:12,yPadding:12,callbacks:{label:(e,t)=>{let n=t.labels[e.index];return n.includes("%")||(n=`${n} (${t.datasets[e.datasetIndex].data[e.index]}%)`),n}}},title:{display:!1}}},this.doughnutChartPlugins=[{id:"center_text",beforeDraw(e){const t=new ef.a,n="Helvetica Neue, Helvetica, Arial, sans-serif";df.defaults.global.defaultFontFamily=n;const i=e.ctx;if(!e.options.plugins.center_text||!e.data.datasets[0].label)return;i.save();const r=e.data.datasets[0].label.split("\n"),s=(e.chartArea.left+e.chartArea.right)/2,o=(e.chartArea.top+e.chartArea.bottom)/2;i.textAlign="center",i.textBaseline="middle",i.font=`24px ${n}`,i.fillStyle=t.propertyValue("chart-color-center-text"),i.fillText(r[0],s,o-10),r.length>1&&(i.font=`14px ${n}`,i.fillStyle=t.propertyValue("chart-color-center-text-description"),i.fillText(r[1],s,o+10)),i.restore()}}]}ngOnInit(){new rn.a(this.chartCanvasRef,this.chartTooltipRef,(e,t)=>t+e.caretX+"px",(e,t)=>t+e.caretY-e.height-10+"px").getBody=e=>this.getChartTooltipBody(e),Wt.a.merge(this.chartConfig,this.config),this.prepareFn.emit([this.chartConfig,this.data])}ngOnChanges(){this.prepareFn.emit([this.chartConfig,this.data]),this.setChartSliceBorderWidth()}getChartTooltipBody(e){const t=e[0].split(": ");return this.showLabelAsTooltip?t[0]:(t[1]=this.isBytesData?this.dimlessBinary.transform(t[1]):this.dimless.transform(t[1]),t.join(": "))}setChartSliceBorderWidth(){let e=0;Wt.a.forEach(this.chartConfig.dataset[0].data,function(t){t>0&&(e+=1)}),this.chartConfig.dataset[0].borderWidth=e>1?1:0}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Qt.a),r.Rb(Zt.a),r.Rb(ef.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-health-pie"]],viewQuery:function(e,t){if(1&e&&(r.Wc(hf,3),r.Wc(ff,3)),2&e){let e;r.Ec(e=r.mc())&&(t.chartCanvasRef=e.first),r.Ec(e=r.mc())&&(t.chartTooltipRef=e.first)}},inputs:{data:"data",config:"config",isBytesData:"isBytesData",tooltipFn:"tooltipFn",showLabelAsTooltip:"showLabelAsTooltip"},outputs:{prepareFn:"prepareFn"},features:[r.Bb],decls:6,vars:6,consts:[[1,"chart-container"],["baseChart","",1,"chart-canvas",3,"datasets","chartType","options","labels","colors","plugins"],["chartCanvas",""],[1,"chartjs-tooltip"],["chartTooltip",""]],template:function(e,t){1&e&&(r.Xb(0,"div",0),r.Sb(1,"canvas",1,2),r.Xb(3,"div",3,4),r.Sb(5,"table"),r.Wb(),r.Wb()),2&e&&(r.Db(1),r.uc("datasets",t.chartConfig.dataset)("chartType",t.chartConfig.chartType)("options",t.chartConfig.options)("labels",t.chartConfig.labels)("colors",t.chartConfig.colors)("plugins",t.doughnutChartPlugins))},directives:[sn.a],styles:['.chart-container[_ngcontent-%COMP%]{cursor:pointer;margin:auto;overflow:visible;position:absolute}canvas[_ngcontent-%COMP%]{user-select:none}.chartjs-tooltip[_ngcontent-%COMP%]{background:#000000b3;border-radius:3px;color:#fff;font-family:Helvetica Neue,Helvetica,Arial,sans-serif!important;opacity:0;pointer-events:none;position:absolute;transform:translate(-50%);transition:all .1s ease}.chartjs-tooltip.transform-left[_ngcontent-%COMP%]{transform:translate(-10%)}.chartjs-tooltip.transform-left[_ngcontent-%COMP%]:after{left:10%}.chartjs-tooltip.transform-right[_ngcontent-%COMP%]{transform:translate(-90%)}.chartjs-tooltip.transform-right[_ngcontent-%COMP%]:after{left:90%}.chartjs-tooltip[_ngcontent-%COMP%]:after{border:5px solid #0000;border-top-color:#000;content:" ";left:50%;margin-left:-5px;position:absolute;top:100%} .chartjs-tooltip-key{display:inline-block;height:10px;margin-right:10px;width:10px}.chart-canvas[_ngcontent-%COMP%], .chart-container[_ngcontent-%COMP%]{height:100%;margin-left:auto;margin-right:auto;position:unset;width:100%}.chart-canvas[_ngcontent-%COMP%]{max-height:100%;max-width:100%}']}),e})(),mf=(()=>{class e{transform(e){if(!e)return"";let t=0,n=0;Wt.a.each(e.osds,e=>{e.in&&t++,e.up&&n++});const i=[{content:`${e.osds.length} ${"total"}`,class:""}];i.push({content:"",class:"card-text-line-break"}),i.push({content:`${n} ${"up"}, ${t} ${"in"}`,class:""});const r=e.osds.length-n,s=e.osds.length-t;if(r>0||s>0){i.push({content:"",class:"card-text-line-break"});const e=r>0?`${r} ${"down"}`:"",t=s>0?`${s} ${"out"}`:"";i.push({content:`${e}${r>0&&s>0?", ":""}${t}`,class:"card-text-error"})}return i}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Qb({name:"osdSummary",type:e,pure:!0}),e})(),bf=(()=>{class e{transform(e){if(!e)return"";let t="",n="",i=0,r=0,s=0;Wt.a.each(e.standbys,()=>{i+=1}),e.standbys&&!e.filesystems?(t=`${i} ${"up"}`,n="no filesystems"):0===e.filesystems.length?t="no filesystems":(Wt.a.each(e.filesystems,e=>{Wt.a.each(e.mdsmap.info,e=>{"up:standby-replay"===e.state?s+=1:r+=1})}),t=`${r} ${"active"}`,n=`${i+s} ${"standby"}`);const o=e.standbys.map(e=>e.name).join(", "),a=o?`${"standby daemons"}: ${o}`:"",c=e.filesystems?e.filesystems.length:0,l=Object.values(c>0?e.filesystems[0].mdsmap.info:{}).map(e=>e.name).join(", ");let u=l?`${"active daemon"}: ${l}`:"";!r&&c>0&&(u=`${s} ${"standbyReplay"}`);const d=[{content:t,class:"popover-info",titleText:u}];return n&&(d.push({content:"",class:"card-text-line-break",titleText:""}),d.push({content:n,class:"popover-info",titleText:a})),d}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Qb({name:"mdsSummary",type:e,pure:!0}),e})();var gf=function(e){return e.HEALTH_ERR="health-color-error",e.HEALTH_WARN="health-color-warning",e.HEALTH_OK="health-color-healthy",e}({});let _f=(()=>{class e{constructor(e){this.cssHelper=e}transform(e){return Object.keys(gf).includes(e)?{color:this.cssHelper.propertyValue(gf[e])}:null}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(ef.a))},e.\u0275pipe=r.Qb({name:"healthColor",type:e,pure:!0}),e})(),vf=(()=>{class e{transform(e){return e?"" + e.monmap.mons.length.toString() + " (quorum " + e.quorum.join(", ") + ")":""}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Qb({name:"monSummary",type:e,pure:!0}),e})(),yf=(()=>{class e{transform(e){if(!e)return"";let t="n/a";const n=Wt.a.isUndefined(e.active_name)?"":`${"active daemon"}: ${e.active_name}`;n.length>0&&(t="1");const i=e.standbys.map(e=>e.name).join(", "),r=i?`${"standby daemons"}: ${i}`:"",s=e.standbys.length,o=[{content:`${t} ${"active"}`,class:"popover-info",titleText:n}];return o.push({content:"",class:"card-text-line-break",titleText:""}),o.push({content:`${s} ${"standby"}`,class:"popover-info",titleText:r}),o}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Qb({name:"mgrSummary",type:e,pure:!0}),e})();function wf(e,t){1&e&&r.Tb(0)}function Df(e,t){if(1&e&&(r.Xb(0,"li"),r.Xb(1,"span",22),r.oc(2,"healthColor"),r.Rc(3),r.Wb(),r.Rc(4),r.Wb()),2&e){const e=t.$implicit;r.Db(1),r.uc("ngStyle",r.pc(2,3,e.severity)),r.Db(2),r.Sc(e.type),r.Db(1),r.Tc(": ",e.summary.message," ")}}function Sf(e,t){if(1&e&&(r.Pc(0,wf,1,0,"ng-container",20),r.Xb(1,"ul"),r.Pc(2,Df,5,5,"li",21),r.Wb()),2&e){r.nc(4);const e=r.Fc(5),t=r.nc();r.uc("ngTemplateOutlet",e),r.Db(2),r.uc("ngForOf",t.healthData.health.checks)}}function xf(e,t){1&e&&r.Sb(0,"i",23)}function kf(e,t){if(1&e&&(r.Vb(0),r.Pc(1,Sf,3,2,"ng-template",null,17,r.Qc),r.Xb(3,"div",18),r.oc(4,"healthColor"),r.Rc(5),r.Pc(6,xf,1,0,"i",19),r.Wb(),r.Ub()),2&e){const e=r.Fc(2),t=r.nc(4);r.Db(3),r.uc("ngStyle",r.pc(4,4,t.healthData.health.status))("ngbPopover",e),r.Db(2),r.Tc(" ",t.healthData.health.status," "),r.Db(1),r.uc("ngIf","HEALTH_OK"!=(null==t.healthData.health?null:t.healthData.health.status))}}function Tf(e,t){if(1&e&&(r.Vb(0),r.Xb(1,"div",22),r.oc(2,"healthColor"),r.Rc(3),r.Wb(),r.Ub()),2&e){const e=r.nc(4);r.Db(1),r.uc("ngStyle",r.pc(2,2,e.healthData.health.status)),r.Db(2),r.Tc(" ",e.healthData.health.status," ")}}function Mf(e,t){if(1&e&&(r.Xb(0,"cd-info-card",15),r.Pc(1,kf,7,6,"ng-container",16),r.Pc(2,Tf,4,4,"ng-container",16),r.Wb()),2&e){const e=r.nc(3);r.Db(1),r.uc("ngIf",(null==e.healthData.health||null==e.healthData.health.checks?null:e.healthData.health.checks.length)>0),r.Db(1),r.uc("ngIf",!(null!=e.healthData.health&&null!=e.healthData.health.checks&&e.healthData.health.checks.length))}}function Cf(e,t){if(1&e&&(r.Xb(0,"cd-info-card",24),r.Rc(1),r.Wb()),2&e){const e=r.nc(3);r.Db(1),r.Tc(" ",e.healthData.hosts," total ")}}function Of(e,t){if(1&e&&(r.Xb(0,"cd-info-card",25),r.Rc(1),r.oc(2,"monSummary"),r.Wb()),2&e){const e=r.nc(3);r.Db(1),r.Tc(" ",r.pc(2,1,e.healthData.mon_status)," ")}}function Lf(e,t){if(1&e&&(r.Xb(0,"span",28),r.Rc(1),r.Wb()),2&e){const e=t.$implicit;r.uc("ngClass",e.class),r.Db(1),r.Tc(" ",e.content," ")}}function Ef(e,t){if(1&e&&(r.Xb(0,"cd-info-card",26),r.Pc(1,Lf,2,2,"span",27),r.Wb()),2&e){const e=t.ngIf;r.Db(1),r.uc("ngForOf",e)}}function Af(e,t){if(1&e&&(r.Xb(0,"span",31),r.Rc(1),r.Wb()),2&e){const e=t.$implicit;r.uc("ngClass",e.class)("title",null!=e.titleText?e.titleText:""),r.Db(1),r.Tc(" ",e.content," ")}}function If(e,t){if(1&e&&(r.Xb(0,"cd-info-card",29),r.Pc(1,Af,2,3,"span",30),r.oc(2,"mgrSummary"),r.Wb()),2&e){const e=r.nc(3);r.Db(1),r.uc("ngForOf",r.pc(2,1,e.healthData.mgr_map))}}function Rf(e,t){if(1&e&&(r.Xb(0,"cd-info-card",32),r.Rc(1),r.Wb()),2&e){const e=r.nc(3);r.Db(1),r.Tc(" ",e.healthData.rgw," total ")}}function Pf(e,t){if(1&e&&(r.Xb(0,"span",31),r.Rc(1),r.Wb()),2&e){const e=t.$implicit;r.uc("ngClass",e.class)("title",null!=e.titleText?e.titleText:""),r.Db(1),r.Tc(" ",e.content," ")}}function Ff(e,t){if(1&e&&(r.Xb(0,"cd-info-card",33),r.Pc(1,Pf,2,3,"span",30),r.Wb()),2&e){const e=t.ngIf;r.uc("contentClass",(e.length>1?"text-area-size-2":"")+" content-highlight"),r.Db(1),r.uc("ngForOf",e)}}const Wf=function(e){return{"card-text-error":e}};function jf(e,t){if(1&e&&(r.Xb(0,"cd-info-card",34),r.Rc(1),r.Sb(2,"span",35),r.Rc(3),r.Xb(4,"span",28),r.Rc(5),r.Wb(),r.Wb()),2&e){const e=r.nc(3);r.Db(1),r.Tc(" ",e.healthData.iscsi_daemons.up+e.healthData.iscsi_daemons.down," total "),r.Db(2),r.Tc(" ",e.healthData.iscsi_daemons.up," up, "),r.Db(1),r.uc("ngClass",r.zc(4,Wf,e.healthData.iscsi_daemons.down>0)),r.Db(1),r.Tc("",e.healthData.iscsi_daemons.down," down")}}function Yf(e,t){if(1&e&&(r.Xb(0,"cd-info-group",6),r.Pc(1,Mf,3,2,"cd-info-card",7),r.Pc(2,Cf,2,1,"cd-info-card",8),r.Pc(3,Of,3,3,"cd-info-card",9),r.Pc(4,Ef,2,1,"cd-info-card",10),r.oc(5,"osdSummary"),r.Pc(6,If,3,3,"cd-info-card",11),r.Pc(7,Rf,2,1,"cd-info-card",12),r.Pc(8,Ff,2,2,"cd-info-card",13),r.oc(9,"mdsSummary"),r.Pc(10,jf,6,6,"cd-info-card",14),r.Wb()),2&e){const e=r.nc().ngIf,t=r.nc();r.Db(1),r.uc("ngIf",null==t.healthData.health?null:t.healthData.health.status),r.Db(1),r.uc("ngIf",null!=t.healthData.hosts),r.Db(1),r.uc("ngIf",t.healthData.mon_status),r.Db(1),r.uc("ngIf",r.pc(5,8,t.healthData.osd_map)),r.Db(2),r.uc("ngIf",t.healthData.mgr_map),r.Db(1),r.uc("ngIf",e.rgw&&null!=t.healthData.rgw),r.Db(1),r.uc("ngIf",r.pc(9,10,e.cephfs&&t.healthData.fs_map)),r.Db(2),r.uc("ngIf",e.iscsi&&null!=t.healthData.iscsi_daemons)}}function Nf(e,t){if(1&e){const e=r.Yb();r.Xb(0,"cd-info-card",42),r.Xb(1,"cd-health-pie",43),r.lc("prepareFn",function(t){return r.Ic(e),r.nc(3).prepareRawUsage(t[0],t[1])}),r.Wb(),r.Wb()}if(2&e){const e=r.nc(3);r.Db(1),r.uc("data",e.healthData)("config",e.rawCapacityChartConfig)("isBytesData",!0)}}function zf(e,t){if(1&e){const e=r.Yb();r.Xb(0,"cd-info-card",44),r.Xb(1,"cd-health-pie",45),r.lc("prepareFn",function(t){return r.Ic(e),r.nc(3).prepareObjects(t[0],t[1])}),r.Wb(),r.Wb()}if(2&e){const e=r.nc(3);r.Db(1),r.uc("data",e.healthData)}}function $f(e,t){1&e&&r.Tb(0)}function Hf(e,t){if(1&e&&(r.Xb(0,"li"),r.Rc(1),r.Wb()),2&e){const e=t.$implicit;r.Db(1),r.Uc(" ",e.key,": ",e.value," ")}}function Xf(e,t){if(1&e&&(r.Pc(0,$f,1,0,"ng-container",20),r.Xb(1,"ul"),r.Pc(2,Hf,2,2,"li",21),r.oc(3,"keyvalue"),r.Wb()),2&e){r.nc(3);const e=r.Fc(5),t=r.nc();r.uc("ngTemplateOutlet",e),r.Db(2),r.uc("ngForOf",r.pc(3,2,t.healthData.pg_info.statuses))}}function Vf(e,t){if(1&e){const e=r.Yb();r.Xb(0,"cd-info-card",46),r.Pc(1,Xf,4,4,"ng-template",null,47,r.Qc),r.Xb(3,"div",48),r.Xb(4,"div",49),r.Xb(5,"cd-health-pie",50),r.lc("prepareFn",function(t){return r.Ic(e),r.nc(3).preparePgStatus(t[0],t[1])}),r.Wb(),r.Wb(),r.Wb(),r.Wb()}if(2&e){const e=r.Fc(2),t=r.nc(3);r.Db(4),r.uc("ngbPopover",e),r.Db(1),r.uc("data",t.healthData)("config",t.pgStatusChartConfig)}}function Bf(e,t){if(1&e&&(r.Xb(0,"cd-info-card",51),r.Rc(1),r.Wb()),2&e){const e=r.nc(3);r.Db(1),r.Tc(" ",e.healthData.pools.length," ")}}function Uf(e,t){if(1&e&&(r.Xb(0,"cd-info-card",52),r.Rc(1),r.oc(2,"dimless"),r.Wb()),2&e){const e=r.nc(3);r.Db(1),r.Tc(" ",r.pc(2,1,e.healthData.pg_info.pgs_per_osd)," ")}}function qf(e,t){if(1&e&&(r.Xb(0,"cd-info-group",36),r.Pc(1,Nf,2,3,"cd-info-card",37),r.Pc(2,zf,2,1,"cd-info-card",38),r.Pc(3,Vf,6,3,"cd-info-card",39),r.Pc(4,Bf,2,1,"cd-info-card",40),r.Pc(5,Uf,3,3,"cd-info-card",41),r.Wb()),2&e){const e=r.nc(2);r.Db(1),r.uc("ngIf",e.healthData.df),r.Db(1),r.uc("ngIf",null!=(null==e.healthData.pg_info||null==e.healthData.pg_info.object_stats?null:e.healthData.pg_info.object_stats.num_objects)),r.Db(1),r.uc("ngIf",e.healthData.pg_info),r.Db(1),r.uc("ngIf",e.healthData.pools),r.Db(1),r.uc("ngIf",e.healthData.pg_info)}}function Gf(e,t){if(1&e){const e=r.Yb();r.Xb(0,"cd-info-card",58),r.Xb(1,"cd-health-pie",50),r.lc("prepareFn",function(t){return r.Ic(e),r.nc(3).prepareReadWriteRatio(t[0],t[1])}),r.Wb(),r.Wb()}if(2&e){const e=r.nc(3);r.Db(1),r.uc("data",e.healthData)("config",e.clientStatsConfig)}}function Jf(e,t){if(1&e){const e=r.Yb();r.Xb(0,"cd-info-card",59),r.Xb(1,"cd-health-pie",50),r.lc("prepareFn",function(t){return r.Ic(e),r.nc(3).prepareClientThroughput(t[0],t[1])}),r.Wb(),r.Wb()}if(2&e){const e=r.nc(3);r.Db(1),r.uc("data",e.healthData)("config",e.clientStatsConfig)}}function Kf(e,t){if(1&e&&(r.Xb(0,"cd-info-card",60),r.Rc(1),r.oc(2,"dimlessBinary"),r.Wb()),2&e){const e=r.nc(3);r.Db(1),r.Tc(" ",r.pc(2,1,e.healthData.client_perf.recovering_bytes_per_sec)+"/s"," ")}}function Qf(e,t){if(1&e&&(r.Xb(0,"cd-info-card",61),r.Rc(1),r.Wb()),2&e){const e=r.nc(3);r.Db(1),r.Tc(" ",e.healthData.scrub_status," ")}}function Zf(e,t){if(1&e&&(r.Xb(0,"cd-info-group",53),r.Pc(1,Gf,2,2,"cd-info-card",54),r.Pc(2,Jf,2,2,"cd-info-card",55),r.Pc(3,Kf,3,3,"cd-info-card",56),r.Pc(4,Qf,2,1,"cd-info-card",57),r.Wb()),2&e){const e=r.nc(2);r.Db(1),r.uc("ngIf",e.healthData.client_perf),r.Db(1),r.uc("ngIf",e.healthData.client_perf),r.Db(1),r.uc("ngIf",e.healthData.client_perf),r.Db(1),r.uc("ngIf",e.healthData.scrub_status)}}const ep=function(e){return[e]};function tp(e,t){if(1&e&&(r.Vb(0),r.Xb(1,"p",62),r.hc(2,63),r.Sb(3,"i",28),r.Sb(4,"a",64),r.ec(),r.Wb(),r.Ub()),2&e){const e=r.nc(3);r.Db(3),r.uc("ngClass",r.zc(1,ep,e.icons.infoCircle))}}function np(e,t){if(1&e&&r.Pc(0,tp,5,3,"ng-container",16),2&e){const e=r.nc(2);r.uc("ngIf",e.permissions.log.read)}}function ip(e,t){if(1&e&&(r.Xb(0,"div",1),r.Pc(1,Yf,11,12,"cd-info-group",2),r.Pc(2,qf,6,5,"cd-info-group",3),r.Pc(3,Zf,5,4,"cd-info-group",4),r.Pc(4,np,1,1,"ng-template",null,5,r.Qc),r.Wb()),2&e){const e=r.nc();r.Db(1),r.uc("ngIf",(null==e.healthData.health?null:e.healthData.health.status)||e.healthData.mon_status||e.healthData.osd_map||e.healthData.mgr_map||null!=e.healthData.hosts||null!=e.healthData.rgw||e.healthData.fs_map||null!=e.healthData.iscsi_daemons),r.Db(1),r.uc("ngIf",e.healthData.pools||e.healthData.df||e.healthData.pg_info),r.Db(1),r.uc("ngIf",e.healthData.client_perf||e.healthData.scrub_status)}}let rp=(()=>{class e{constructor(e,t,n,i,r,s,o,a){this.healthService=e,this.authStorageService=t,this.pgCategoryService=n,this.featureToggles=i,this.refreshIntervalService=r,this.dimlessBinary=s,this.dimless=o,this.cssHelper=a,this.interval=new ir.a,this.icons=_n.a,this.clientStatsConfig={colors:[{backgroundColor:[this.cssHelper.propertyValue("chart-color-cyan"),this.cssHelper.propertyValue("chart-color-purple")]}]},this.rawCapacityChartConfig={colors:[{backgroundColor:[this.cssHelper.propertyValue("chart-color-blue"),this.cssHelper.propertyValue("chart-color-gray")]}]},this.pgStatusChartConfig={options:{events:[""]}},this.permissions=this.authStorageService.getPermissions(),this.enabledFeature$=this.featureToggles.get()}ngOnInit(){this.interval=this.refreshIntervalService.intervalData$.subscribe(()=>{this.getHealth()})}ngOnDestroy(){this.interval.unsubscribe()}getHealth(){this.healthService.getMinimalHealth().subscribe(e=>{this.healthData=e})}prepareReadWriteRatio(e){const t=[],n=[],i=this.healthData.client_perf.write_op_per_sec+this.healthData.client_perf.read_op_per_sec;t.push(`${"Reads"}: ${this.dimless.transform(this.healthData.client_perf.read_op_per_sec)} ${"/s"}`),n.push(this.calcPercentage(this.healthData.client_perf.read_op_per_sec,i)),t.push(`${"Writes"}: ${this.dimless.transform(this.healthData.client_perf.write_op_per_sec)} ${"/s"}`),n.push(this.calcPercentage(this.healthData.client_perf.write_op_per_sec,i)),e.labels=t,e.dataset[0].data=n,e.dataset[0].label=`${this.dimless.transform(i)}\n${"IOPS"}`}prepareClientThroughput(e){const t=[],n=[],i=this.healthData.client_perf.read_bytes_sec+this.healthData.client_perf.write_bytes_sec;t.push(`${"Reads"}: ${this.dimlessBinary.transform(this.healthData.client_perf.read_bytes_sec)}${"/s"}`),n.push(this.calcPercentage(this.healthData.client_perf.read_bytes_sec,i)),t.push(`${"Writes"}: ${this.dimlessBinary.transform(this.healthData.client_perf.write_bytes_sec)}${"/s"}`),n.push(this.calcPercentage(this.healthData.client_perf.write_bytes_sec,i)),e.labels=t,e.dataset[0].data=n,e.dataset[0].label=`${this.dimlessBinary.transform(i).replace(" ","\n")}${"/s"}`}prepareRawUsage(e,t){const n=this.calcPercentage(t.df.stats.total_bytes-t.df.stats.total_used_raw_bytes,t.df.stats.total_bytes),i=this.calcPercentage(t.df.stats.total_used_raw_bytes,t.df.stats.total_bytes);e.dataset[0].data=[i,n],e.labels=[`${"Used"}: ${this.dimlessBinary.transform(t.df.stats.total_used_raw_bytes)}`,`${"Avail."}: ${this.dimlessBinary.transform(t.df.stats.total_bytes-t.df.stats.total_used_raw_bytes)}`],e.dataset[0].label=`${i}%\nof ${this.dimlessBinary.transform(t.df.stats.total_bytes)}`}preparePgStatus(e,t){const n={};let i=0;Wt.a.forEach(t.pg_info.statuses,(e,t)=>{const r=this.pgCategoryService.getTypeByStates(t);Wt.a.isUndefined(n[r])&&(n[r]=0),n[r]+=e,i+=e});for(const r of this.pgCategoryService.getAllTypes())Wt.a.isUndefined(n[r])&&(n[r]=0);e.dataset[0].data=this.pgCategoryService.getAllTypes().map(e=>this.calcPercentage(n[e],i)),e.labels=[`${"Clean"}: ${this.dimless.transform(n.clean)}`,`${"Working"}: ${this.dimless.transform(n.working)}`,`${"Warning"}: ${this.dimless.transform(n.warning)}`,`${"Unknown"}: ${this.dimless.transform(n.unknown)}`],e.dataset[0].label=`${i}\n${"PGs"}`}prepareObjects(e,t){const n=t.pg_info.object_stats.num_object_copies,i=this.calcPercentage(n-t.pg_info.object_stats.num_objects_misplaced-t.pg_info.object_stats.num_objects_degraded-t.pg_info.object_stats.num_objects_unfound,n),r=this.calcPercentage(t.pg_info.object_stats.num_objects_misplaced,n),s=this.calcPercentage(t.pg_info.object_stats.num_objects_degraded,n),o=this.calcPercentage(t.pg_info.object_stats.num_objects_unfound,n);e.labels=[`${"Healthy"}: ${i}%`,`${"Misplaced"}: ${r}%`,`${"Degraded"}: ${s}%`,`${"Unfound"}: ${o}%`],e.dataset[0].data=[i,r,s,o],e.dataset[0].label=`${this.dimless.transform(t.pg_info.object_stats.num_objects)}\n${"objects"}`}isClientReadWriteChartShowable(){return(this.healthData.client_perf.read_op_per_sec||0)+(this.healthData.client_perf.write_op_per_sec||0)>0}calcPercentage(e,t){return Wt.a.isNumber(e)&&Wt.a.isNumber(t)&&0!==t?Math.round(e/t*100):0}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Zh),r.Rb(Gt.a),r.Rb(Qh.a),r.Rb(tf.a),r.Rb(Gh),r.Rb(Qt.a),r.Rb(Zt.a),r.Rb(ef.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-health"]],decls:2,vars:3,consts:function(){let e,t,n,i,r,s,o,a,c,l,u,d,h,f,p,m,b,g,_,v,y;return e="Status",t="Capacity",n="Performance",i="Cluster Status",r="Hosts",s="Monitors",o="OSDs",a="Managers",c="Object Gateways",l="Metadata Servers",u="iSCSI Gateways",d="Raw Capacity",h="Objects",f="PG Status",p="Pools",m="PGs per OSD",b="Client Read/Write",g="Client Throughput",_="Recovery Throughput",v="Scrubbing",y="" + "\ufffd#3\ufffd" + "" + "\ufffd/#3\ufffd" + " See " + "\ufffd#4\ufffd" + "Logs" + "\ufffd/#4\ufffd" + " for more details.",[["class","container-fluid",4,"ngIf"],[1,"container-fluid"],["groupTitle",e,4,"ngIf"],["groupTitle",t,4,"ngIf"],["groupTitle",n,4,"ngIf"],["logsLink",""],["groupTitle",e],["cardTitle",i,"class","cd-status-card","contentClass","content-highlight",4,"ngIf"],["cardTitle",r,"link","/hosts","class","cd-status-card","contentClass","content-highlight",4,"ngIf"],["cardTitle",s,"link","/monitor","class","cd-status-card","contentClass","content-highlight",4,"ngIf"],["cardTitle",o,"link","/osd","class","cd-status-card","contentClass","content-highlight",4,"ngIf"],["cardTitle",a,"class","cd-status-card","contentClass","content-highlight",4,"ngIf"],["cardTitle",c,"link","/rgw/daemon","class","cd-status-card","contentClass","content-highlight",4,"ngIf"],["cardTitle",l,"class","cd-status-card",3,"contentClass",4,"ngIf"],["cardTitle",u,"link","/block/iscsi","class","cd-status-card","contentClass","content-highlight",4,"ngIf"],["cardTitle",i,"contentClass","content-highlight",1,"cd-status-card"],[4,"ngIf"],["healthChecks",""],["popoverClass","info-card-popover-cluster-status",1,"info-card-content-clickable",3,"ngStyle","ngbPopover"],["class","fa fa-exclamation-triangle",4,"ngIf"],[4,"ngTemplateOutlet"],[4,"ngFor","ngForOf"],[3,"ngStyle"],[1,"fa","fa-exclamation-triangle"],["cardTitle",r,"link","/hosts","contentClass","content-highlight",1,"cd-status-card"],["cardTitle",s,"link","/monitor","contentClass","content-highlight",1,"cd-status-card"],["cardTitle",o,"link","/osd","contentClass","content-highlight",1,"cd-status-card"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["cardTitle",a,"contentClass","content-highlight",1,"cd-status-card"],[3,"ngClass","title",4,"ngFor","ngForOf"],[3,"ngClass","title"],["cardTitle",c,"link","/rgw/daemon","contentClass","content-highlight",1,"cd-status-card"],["cardTitle",l,1,"cd-status-card",3,"contentClass"],["cardTitle",u,"link","/block/iscsi","contentClass","content-highlight",1,"cd-status-card"],[1,"card-text-line-break"],["groupTitle",t],["cardTitle",d,"class","cd-capacity-card cd-chart-card","contentClass","content-chart",4,"ngIf"],["cardTitle",h,"class","cd-capacity-card cd-chart-card","contentClass","content-chart",4,"ngIf"],["cardTitle",f,"class","cd-capacity-card cd-chart-card","contentClass","content-chart",4,"ngIf"],["cardTitle",p,"link","/pool","class","cd-capacity-card","contentClass","content-highlight",4,"ngIf"],["cardTitle",m,"class","cd-capacity-card","contentClass","content-highlight",4,"ngIf"],["cardTitle",d,"contentClass","content-chart",1,"cd-capacity-card","cd-chart-card"],[3,"data","config","isBytesData","prepareFn"],["cardTitle",h,"contentClass","content-chart",1,"cd-capacity-card","cd-chart-card"],[3,"data","prepareFn"],["cardTitle",f,"contentClass","content-chart",1,"cd-capacity-card","cd-chart-card"],["pgStatus",""],[1,"pg-status-popover-wrapper"],[3,"ngbPopover"],[3,"data","config","prepareFn"],["cardTitle",p,"link","/pool","contentClass","content-highlight",1,"cd-capacity-card"],["cardTitle",m,"contentClass","content-highlight",1,"cd-capacity-card"],["groupTitle",n],["cardTitle",b,"class","cd-performance-card cd-chart-card","contentClass","content-chart",4,"ngIf"],["cardTitle",g,"class","cd-performance-card cd-chart-card","contentClass","content-chart",4,"ngIf"],["cardTitle",_,"class","cd-performance-card","contentClass","content-highlight",4,"ngIf"],["cardTitle",v,"class","cd-performance-card","contentClass","content-highlight",4,"ngIf"],["cardTitle",b,"contentClass","content-chart",1,"cd-performance-card","cd-chart-card"],["cardTitle",g,"contentClass","content-chart",1,"cd-performance-card","cd-chart-card"],["cardTitle",_,"contentClass","content-highlight",1,"cd-performance-card"],["cardTitle",v,"contentClass","content-highlight",1,"cd-performance-card"],[1,"logs-link"],y,["routerLink","/logs"]]},template:function(e,t){1&e&&(r.Pc(0,ip,6,3,"div",0),r.oc(1,"async")),2&e&&r.uc("ngIf",r.pc(1,1,t.healthData&&t.enabledFeature$))},directives:[s.r,of,uf,s.s,Jt.w,s.w,s.q,s.p,pf,Pt.h],pipes:[s.b,mf,bf,_f,vf,yf,s.k,Zt.a,Qt.a],styles:['cd-info-card[_ngcontent-%COMP%]{padding:0 .5vw} cd-health .pg-status-popover-wrapper{position:relative} cd-health .pg-status-popover-wrapper .popover{max-height:20vh;max-width:unset!important;min-width:unset!important;position:absolute;width:116%} cd-health .pg-status-popover-wrapper .popover .popover-body{font-size:1rem;max-height:19vh;max-width:100%}.logs-link[_ngcontent-%COMP%]{text-align:center}.card-text-error[_ngcontent-%COMP%]{color:#ef5c55;display:inline}.card-text-line-break[_ngcontent-%COMP%]:after{content:"\\a";white-space:pre}.popover-info[_ngcontent-%COMP%]:hover{cursor:pointer}']}),e})();function sp(e,t){1&e&&r.Sb(0,"cd-health")}function op(e,t){}function ap(e,t){if(1&e&&(r.Vb(0),r.Xb(1,"ul",1,2),r.Xb(3,"li",3),r.Xb(4,"a",4),r.bc(5,5),r.Wb(),r.Pc(6,sp,1,0,"ng-template",6),r.Wb(),r.Xb(7,"li",3),r.Xb(8,"a",4),r.bc(9,7),r.Wb(),r.Pc(10,op,0,0,"ng-template",6),r.Wb(),r.Wb(),r.Sb(11,"div",8),r.Ub()),2&e){const e=r.Fc(2);r.Db(11),r.uc("ngbNavOutlet",e)}}function cp(e,t){1&e&&r.Sb(0,"cd-health")}let lp=(()=>{class e{constructor(){this.hasGrafana=!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-dashboard"]],decls:4,vars:2,consts:function(){let e,t;return e="Health",t="Statistics",[[4,"ngIf"],["ngbNav","",1,"nav-tabs"],["nav","ngbNav"],["ngbNavItem",""],["ngbNavLink",""],e,["ngbNavContent",""],t,[3,"ngbNavOutlet"]]},template:function(e,t){1&e&&(r.Xb(0,"div"),r.Sb(1,"cd-refresh-selector"),r.Pc(2,ap,12,1,"ng-container",0),r.Pc(3,cp,1,0,"cd-health",0),r.Wb()),2&e&&(r.Db(2),r.uc("ngIf",t.hasGrafana),r.Db(1),r.uc("ngIf",!t.hasGrafana))},directives:[Kh,s.r,Jt.p,Jt.r,Jt.s,Jt.q,Jt.u,rp],styles:["div[_ngcontent-%COMP%]{padding-top:20px}"]}),e})();var up=n("JIr8"),dp=n("z6cu");let hp=(()=>{class e extends zi.a{constructor(e){super(),this.http=e,this.apiPath="api/nfs-ganesha",this.uiApiPath="ui-api/nfs-ganesha",this.nfsAccessType=[{value:"RW",help:"Allows all operations"},{value:"RO",help:"Allows only operations that do not modify the server"},{value:"NONE",help:"Allows no access at all"}],this.nfsFsal=[{value:"CEPH",descr:"CephFS",disabled:!1},{value:"RGW",descr:"Object Gateway",disabled:!1}],this.nfsSquash=["no_root_squash","root_id_squash","root_squash","all_squash"]}list(){return this.http.get(`${this.apiPath}/export`)}get(e,t){return this.http.get(`${this.apiPath}/export/${e}/${t}`)}create(e){return this.http.post(`${this.apiPath}/export`,e,{headers:{Accept:this.getVersionHeaderValue(2,0)},observe:"response"})}update(e,t,n){return this.http.put(`${this.apiPath}/export/${e}/${t}`,n,{headers:{Accept:this.getVersionHeaderValue(2,0)},observe:"response"})}delete(e,t){return this.http.delete(`${this.apiPath}/export/${e}/${t}`,{headers:{Accept:this.getVersionHeaderValue(2,0)},observe:"response"})}listClusters(){return this.http.get(`${this.apiPath}/cluster`,{headers:{Accept:this.getVersionHeaderValue(0,1)}})}lsDir(e,t){return e?this.http.get(`${this.uiApiPath}/lsdir/${e}?root_dir=${t}`):Object(dp.a)("Please specify a filesystem volume.")}fsals(){return this.http.get(`${this.uiApiPath}/fsals`)}filesystems(){return this.http.get(`${this.uiApiPath}/cephfs/filesystems`)}}return e.\u0275fac=function(t){return new(t||e)(r.ic(o.b))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var fp=n("6HA4"),pp=n("eCU+"),mp=n("TYzs");const bp=["squashHelper"];function gp(e,t){1&e&&(r.Xb(0,"span",14),r.Xb(1,"span",15),r.bc(2,16),r.Wb(),r.Wb())}function _p(e,t){1&e&&(r.Xb(0,"span"),r.bc(1,37),r.Wb())}function vp(e,t){1&e&&(r.Xb(0,"span"),r.Vb(1),r.bc(2,38),r.Ub(),r.Sb(3,"br"),r.Vb(4),r.bc(5,39),r.Ub(),r.Rc(6," 192.168.0.10, 192.168.1.0/8 "),r.Wb())}function yp(e,t){if(1&e&&(r.Xb(0,"option",40),r.Rc(1),r.Wb()),2&e){const e=t.$implicit;r.uc("value",e.value),r.Db(1),r.Sc(e.value)}}function wp(e,t){if(1&e&&(r.Xb(0,"span",15),r.Rc(1),r.Wb()),2&e){const e=r.nc().index,t=r.nc();r.Db(1),r.Tc(" ",t.getAccessTypeHelp(e)," ")}}function Dp(e,t){1&e&&r.Tb(0)}function Sp(e,t){if(1&e&&(r.Xb(0,"option",40),r.Rc(1),r.Wb()),2&e){const e=t.$implicit;r.uc("value",e),r.Db(1),r.Sc(e)}}function xp(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div"),r.Xb(1,"div",17),r.Xb(2,"div",18),r.Rc(3),r.oc(4,"ordinal"),r.Xb(5,"span",19),r.lc("click",function(){r.Ic(e);const n=t.index;return r.nc().removeClient(n)}),r.Rc(6,"\xd7"),r.Wb(),r.Wb(),r.Xb(7,"div",20),r.Xb(8,"div",0),r.Xb(9,"label",21),r.bc(10,22),r.Wb(),r.Xb(11,"div",23),r.Sb(12,"input",24),r.Xb(13,"span",25),r.Pc(14,_p,2,0,"span",26),r.Pc(15,vp,7,0,"span",26),r.Wb(),r.Wb(),r.Wb(),r.Xb(16,"div",0),r.Xb(17,"label",27),r.bc(18,28),r.Wb(),r.Xb(19,"div",23),r.Xb(20,"select",29),r.Xb(21,"option",30),r.Rc(22),r.Wb(),r.Pc(23,yp,2,2,"option",31),r.Wb(),r.Pc(24,wp,2,1,"span",32),r.Wb(),r.Wb(),r.Xb(25,"div",0),r.Xb(26,"label",33),r.Xb(27,"span"),r.bc(28,34),r.Wb(),r.Pc(29,Dp,1,0,"ng-container",35),r.Wb(),r.Xb(30,"div",23),r.Xb(31,"select",36),r.Xb(32,"option",30),r.Rc(33),r.Wb(),r.Pc(34,Sp,2,2,"option",31),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Wb()}if(2&e){const e=t.$implicit,n=t.index,i=r.nc(),s=r.Fc(4);r.Db(1),r.uc("formGroup",e),r.Db(2),r.Tc(" ",r.pc(4,10,n+1)," "),r.Db(11),r.uc("ngIf",i.showError(n,"addresses",s,"required")),r.Db(1),r.uc("ngIf",i.showError(n,"addresses",s,"pattern")),r.Db(7),r.Sc(i.getNoAccessTypeDescr()),r.Db(1),r.uc("ngForOf",i.nfsAccessType),r.Db(1),r.uc("ngIf",i.getValue(n,"access_type")),r.Db(5),r.uc("ngTemplateOutlet",i.squashHelperTpl),r.Db(4),r.Sc(i.getNoSquashDescr()),r.Db(1),r.uc("ngForOf",i.nfsSquash)}}const kp=function(e){return[e]};let Tp=(()=>{class e{constructor(e){this.nfsService=e,this.nfsSquash=this.nfsService.nfsSquash,this.nfsAccessType=this.nfsService.nfsAccessType,this.icons=_n.a}ngOnInit(){Wt.a.forEach(this.clients,e=>{this.addClient().patchValue(e)}),this.clientsFormArray=this.form.get("clients")}getNoAccessTypeDescr(){return this.form.getValue("access_type")?`${this.form.getValue("access_type")} ${"(inherited from global config)"}`:"-- Select the access type --"}getAccessTypeHelp(e){const t=this.nfsAccessType.find(t=>this.getValue(e,"access_type")===t.value);return Wt.a.isObjectLike(t)?t.help:""}getNoSquashDescr(){return this.form.getValue("squash")?`${this.form.getValue("squash")} (${"inherited from global config"})`:"-- Select what kind of user id squashing is performed --"}addClient(){this.clientsFormArray=this.form.get("clients");const e="(([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3}).([0-9]{1,3})([/](\\d|[1-2]\\d|3[0-2]))?)",t=new Gn.a({addresses:new xn.h("",{validators:[xn.A.required,xn.A.pattern(`${e}([ ,]{1,2}${e})*`)]}),access_type:new xn.h(""),squash:new xn.h("")});return this.clientsFormArray.push(t),t}removeClient(e){this.clientsFormArray=this.form.get("clients"),this.clientsFormArray.removeAt(e)}showError(e,t,n,i){return this.form.controls.clients.controls[e].showError(t,n,i)}getValue(e,t){return this.clientsFormArray=this.form.get("clients"),this.clientsFormArray.at(e).getValue(t)}trackByFn(e){return e}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(hp))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-nfs-form-client"]],contentQueries:function(e,t,n){if(1&e&&r.Kb(n,bp,3),2&e){let e;r.Ec(e=r.mc())&&(t.squashHelperTpl=e.first)}},inputs:{form:"form",clients:"clients"},decls:15,vars:7,consts:function(){let e,t,n,i,r,s,o,a,c;return e="Clients",t="Add clients",n="Any client can access",i="Addresses",r="Access Type",s="Squash",o="This field is required.",a="Must contain one or more comma-separated values",c="For example:",[[1,"form-group","row"],[1,"cd-col-form-label"],e,[1,"cd-col-form-input",3,"formGroup"],["formDir","ngForm"],["class","no-border text-muted",4,"ngIf"],["formArrayName","clients"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"row"],[1,"col-12"],[1,"float-right"],["name","add_client",1,"btn","btn-light",3,"click"],[3,"ngClass"],t,[1,"no-border","text-muted"],[1,"form-text","text-muted"],n,[1,"card",3,"formGroup"],[1,"card-header"],["name","remove_client","ngbTooltip","Remove",1,"float-right","clickable",3,"click"],[1,"card-body"],["for","addresses",1,"cd-col-form-label","required"],i,[1,"cd-col-form-input"],["type","text","name","addresses","id","addresses","formControlName","addresses","placeholder","192.168.0.10, 192.168.1.0/8",1,"form-control"],[1,"invalid-feedback"],[4,"ngIf"],["for","access_type",1,"cd-col-form-label"],r,["name","access_type","id","access_type","formControlName","access_type",1,"form-control","custom-select"],["value",""],[3,"value",4,"ngFor","ngForOf"],["class","form-text text-muted",4,"ngIf"],["for","squash",1,"cd-col-form-label"],s,[4,"ngTemplateOutlet"],["name","squash","id","squash","formControlName","squash",1,"form-control","custom-select"],o,a,c,[3,"value"]]},template:function(e,t){1&e&&(r.Xb(0,"div",0),r.Xb(1,"label",1),r.bc(2,2),r.Wb(),r.Xb(3,"div",3,4),r.Pc(5,gp,3,0,"span",5),r.Vb(6,6),r.Pc(7,xp,35,12,"div",7),r.Ub(),r.Xb(8,"div",8),r.Xb(9,"div",9),r.Xb(10,"div",10),r.Xb(11,"button",11),r.lc("click",function(){return t.addClient()}),r.Sb(12,"i",12),r.Vb(13),r.bc(14,13),r.Ub(),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Wb()),2&e&&(r.Db(3),r.uc("formGroup",t.form),r.Db(2),r.uc("ngIf",0===t.form.get("clients").value.length),r.Db(2),r.uc("ngForOf",t.clientsFormArray.controls)("ngForTrackBy",t.trackByFn),r.Db(5),r.uc("ngClass",r.zc(5,kp,t.icons.add)))},directives:[Zn.a,xn.r,xn.k,Qn.a,s.r,xn.f,s.q,On.a,s.p,Jt.D,xn.d,ei.a,xn.q,xn.i,xn.z,xn.u,xn.C,s.w],pipes:[mp.a],styles:[""]}),e})();const Mp=["nfsClients"];function Cp(e,t){1&e&&(r.Xb(0,"option",52),r.bc(1,53),r.Wb())}function Op(e,t){1&e&&(r.Xb(0,"option",52),r.bc(1,54),r.Wb())}function Lp(e,t){1&e&&(r.Xb(0,"option",52),r.bc(1,55),r.Wb())}function Ep(e,t){if(1&e&&(r.Xb(0,"option",56),r.Rc(1),r.Wb()),2&e){const e=t.$implicit;r.uc("value",e.cluster_id),r.Db(1),r.Sc(e.cluster_id)}}const Ap=function(){return["create"]},Ip=function(e){return{modal:e}},Rp=function(e){return{outlets:e}},Pp=function(e){return["/services",e]};function Fp(e,t){1&e&&(r.Xb(0,"span",57),r.hc(1,58),r.Sb(2,"a",59),r.ec(),r.Wb()),2&e&&(r.Db(2),r.uc("routerLink",r.zc(6,Pp,r.zc(4,Rp,r.zc(2,Ip,r.yc(1,Ap))))))}function Wp(e,t){1&e&&(r.Xb(0,"option",52),r.bc(1,60),r.Wb())}function jp(e,t){1&e&&(r.Xb(0,"option",52),r.bc(1,61),r.Wb())}function Yp(e,t){1&e&&(r.Xb(0,"option",52),r.bc(1,62),r.Wb())}function Np(e,t){if(1&e&&(r.Xb(0,"option",63),r.Rc(1),r.Wb()),2&e){const e=t.$implicit;r.uc("value",e.value)("disabled",e.disabled),r.Db(1),r.Sc(e.descr)}}function zp(e,t){1&e&&(r.Xb(0,"span",57),r.bc(1,64),r.Wb())}function $p(e,t){if(1&e&&(r.Xb(0,"span",57),r.bc(1,65),r.Wb()),2&e){const e=r.nc(2);r.Db(1),r.fc(e.fsalAvailabilityError),r.cc(1)}}function Hp(e,t){1&e&&(r.Xb(0,"option",52),r.bc(1,69),r.Wb())}function Xp(e,t){1&e&&(r.Xb(0,"option",52),r.bc(1,70),r.Wb())}function Vp(e,t){1&e&&(r.Xb(0,"option",52),r.bc(1,71),r.Wb())}function Bp(e,t){if(1&e&&(r.Xb(0,"option",56),r.Rc(1),r.Wb()),2&e){const e=t.$implicit;r.uc("value",e.name),r.Db(1),r.Sc(e.name)}}function Up(e,t){1&e&&(r.Xb(0,"span",57),r.bc(1,72),r.Wb())}function qp(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div",8),r.Xb(1,"label",66),r.bc(2,67),r.Wb(),r.Xb(3,"div",13),r.Xb(4,"select",68),r.lc("change",function(){return r.Ic(e),r.nc(2).pathChangeHandler()}),r.Pc(5,Hp,2,0,"option",15),r.Pc(6,Xp,2,0,"option",15),r.Pc(7,Vp,2,0,"option",15),r.Pc(8,Bp,2,2,"option",16),r.Wb(),r.Pc(9,Up,2,0,"span",17),r.Wb(),r.Wb()}if(2&e){r.nc();const e=r.Fc(2),t=r.nc();r.Db(5),r.uc("ngIf",null===t.allFsNames),r.Db(1),r.uc("ngIf",null!==t.allFsNames&&0===t.allFsNames.length),r.Db(1),r.uc("ngIf",null!==t.allFsNames&&t.allFsNames.length>0),r.Db(1),r.uc("ngForOf",t.allFsNames),r.Db(1),r.uc("ngIf",t.nfsForm.showError("fs_name",e,"required"))}}function Gp(e,t){1&e&&r.Sb(0,"input",79)}function Jp(e,t){1&e&&(r.Xb(0,"span",57),r.bc(1,80),r.Wb())}const Kp=function(e){return{required:e}};function Qp(e,t){if(1&e&&(r.Xb(0,"div",8),r.Xb(1,"label",73),r.bc(2,74),r.Wb(),r.Xb(3,"div",13),r.Xb(4,"div",26),r.Sb(5,"input",75),r.Xb(6,"label",76),r.bc(7,77),r.Wb(),r.Wb(),r.Sb(8,"br"),r.Pc(9,Gp,1,0,"input",78),r.Pc(10,Jp,2,0,"span",17),r.Wb(),r.Wb()),2&e){r.nc();const e=r.Fc(2),t=r.nc();r.Db(1),r.uc("ngClass",r.zc(3,Kp,t.nfsForm.getValue("security_label"))),r.Db(8),r.uc("ngIf",t.nfsForm.getValue("security_label")),r.Db(1),r.uc("ngIf",t.nfsForm.showError("sec_label_xattr",e,"required"))}}function Zp(e,t){1&e&&(r.Xb(0,"span",57),r.bc(1,85),r.Wb())}function em(e,t){1&e&&(r.Xb(0,"span",57),r.bc(1,86),r.Wb())}function tm(e,t){1&e&&(r.Xb(0,"span",57),r.bc(1,87),r.Wb())}function nm(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div",8),r.Xb(1,"label",81),r.Xb(2,"span",10),r.bc(3,82),r.Wb(),r.Xb(4,"cd-helper"),r.Xb(5,"p"),r.bc(6,83),r.Wb(),r.Wb(),r.Wb(),r.Xb(7,"div",13),r.Xb(8,"input",84),r.lc("selectItem",function(){return r.Ic(e),r.nc(2).pathChangeHandler()})("blur",function(){return r.Ic(e),r.nc(2).pathChangeHandler()}),r.Wb(),r.Pc(9,Zp,2,0,"span",17),r.Pc(10,em,2,0,"span",17),r.Pc(11,tm,2,0,"span",17),r.Wb(),r.Wb()}if(2&e){r.nc();const e=r.Fc(2),t=r.nc();r.Db(8),r.uc("ngbTypeahead",t.pathDataSource),r.Db(1),r.uc("ngIf",t.nfsForm.showError("path",e,"required")),r.Db(1),r.uc("ngIf",t.nfsForm.showError("path",e,"pattern")),r.Db(1),r.uc("ngIf",t.nfsForm.showError("path",e,"pathNameNotAllowed"))}}function im(e,t){1&e&&(r.Xb(0,"span",57),r.bc(1,90),r.Wb())}function rm(e,t){1&e&&(r.Xb(0,"span",57),r.hc(1,91),r.Sb(2,"a",92),r.ec(),r.Wb())}function sm(e,t){if(1&e&&(r.Xb(0,"div",8),r.Xb(1,"label",81),r.Xb(2,"span",10),r.bc(3,88),r.Wb(),r.Wb(),r.Xb(4,"div",13),r.Sb(5,"input",89),r.Pc(6,im,2,0,"span",17),r.Pc(7,rm,3,0,"span",17),r.Wb(),r.Wb()),2&e){r.nc();const e=r.Fc(2),t=r.nc();r.Db(5),r.uc("ngbTypeahead",t.bucketDataSource),r.Db(1),r.uc("ngIf",t.nfsForm.showError("path",e,"required")),r.Db(1),r.uc("ngIf",t.nfsForm.showError("path",e,"bucketNameNotAllowed"))}}function om(e,t){1&e&&(r.Xb(0,"span",57),r.bc(1,93),r.Wb())}function am(e,t){1&e&&(r.Xb(0,"span",57),r.bc(1,99),r.Wb())}function cm(e,t){1&e&&(r.Xb(0,"span",57),r.bc(1,100),r.Wb())}function lm(e,t){1&e&&(r.Xb(0,"span",57),r.bc(1,101),r.Wb())}function um(e,t){if(1&e&&(r.Xb(0,"div",8),r.Xb(1,"label",94),r.Xb(2,"span",10),r.bc(3,95),r.Wb(),r.Xb(4,"cd-helper"),r.Xb(5,"p"),r.hc(6,96),r.Sb(7,"strong"),r.Sb(8,"strong"),r.ec(),r.Wb(),r.Xb(9,"p"),r.bc(10,97),r.Wb(),r.Wb(),r.Wb(),r.Xb(11,"div",13),r.Sb(12,"input",98),r.Pc(13,am,2,0,"span",17),r.Pc(14,cm,2,0,"span",17),r.Pc(15,lm,2,0,"span",17),r.Wb(),r.Wb()),2&e){r.nc();const e=r.Fc(2),t=r.nc();r.Db(13),r.uc("ngIf",t.nfsForm.showError("pseudo",e,"required")),r.Db(1),r.uc("ngIf",t.nfsForm.showError("pseudo",e,"pseudoAlreadyExists")),r.Db(1),r.uc("ngIf",t.nfsForm.showError("pseudo",e,"pattern"))}}function dm(e,t){1&e&&(r.Xb(0,"option",52),r.bc(1,102),r.Wb())}function hm(e,t){1&e&&(r.Xb(0,"option",52),r.bc(1,103),r.Wb())}function fm(e,t){1&e&&(r.Xb(0,"option",52),r.bc(1,104),r.Wb())}function pm(e,t){if(1&e&&(r.Xb(0,"option",56),r.Rc(1),r.Wb()),2&e){const e=t.$implicit;r.uc("value",e.value),r.Db(1),r.Sc(e.value)}}function mm(e,t){if(1&e&&(r.Xb(0,"span",105),r.Rc(1),r.Wb()),2&e){const e=r.nc(2);r.Db(1),r.Tc(" ",e.getAccessTypeHelp(e.nfsForm.getValue("access_type"))," ")}}function bm(e,t){1&e&&(r.Xb(0,"span",106),r.hc(1,107),r.Sb(2,"cd-doc",108),r.ec(),r.Wb())}function gm(e,t){1&e&&(r.Xb(0,"span",57),r.bc(1,109),r.Wb())}function _m(e,t){1&e&&r.Tb(0)}function vm(e,t){1&e&&(r.Xb(0,"option",52),r.bc(1,110),r.Wb())}function ym(e,t){1&e&&(r.Xb(0,"option",52),r.bc(1,111),r.Wb())}function wm(e,t){1&e&&(r.Xb(0,"option",52),r.bc(1,112),r.Wb())}function Dm(e,t){if(1&e&&(r.Xb(0,"option",56),r.Rc(1),r.Wb()),2&e){const e=t.$implicit;r.uc("value",e),r.Db(1),r.Sc(e)}}function Sm(e,t){1&e&&(r.Xb(0,"span",57),r.bc(1,113),r.Wb())}function xm(e,t){1&e&&(r.Xb(0,"span",57),r.bc(1,114),r.Wb())}function km(e,t){1&e&&(r.Xb(0,"cd-helper"),r.Xb(1,"ul",115),r.Xb(2,"li"),r.Xb(3,"span",116),r.Rc(4,"no_root_squash: "),r.Wb(),r.Xb(5,"span"),r.bc(6,117),r.Wb(),r.Wb(),r.Xb(7,"li"),r.Xb(8,"span",116),r.Rc(9,"root_id_squash: "),r.Wb(),r.Xb(10,"span"),r.bc(11,118),r.Wb(),r.Wb(),r.Xb(12,"li"),r.Xb(13,"span",116),r.Rc(14,"root_squash: "),r.Wb(),r.Xb(15,"span"),r.bc(16,119),r.Wb(),r.Wb(),r.Xb(17,"li"),r.Xb(18,"span",116),r.Rc(19,"all_squash: "),r.Wb(),r.Xb(20,"span"),r.bc(21,120),r.Wb(),r.Wb(),r.Wb(),r.Wb())}function Tm(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div",1),r.Xb(1,"form",2,3),r.Xb(3,"div",4),r.Xb(4,"div",5),r.bc(5,6),r.oc(6,"titlecase"),r.oc(7,"upperFirst"),r.Wb(),r.Xb(8,"div",7),r.Xb(9,"div",8),r.Xb(10,"label",9),r.Xb(11,"span",10),r.bc(12,11),r.Wb(),r.Xb(13,"cd-helper"),r.Xb(14,"p"),r.bc(15,12),r.Wb(),r.Wb(),r.Wb(),r.Xb(16,"div",13),r.Xb(17,"select",14),r.Pc(18,Cp,2,0,"option",15),r.Pc(19,Op,2,0,"option",15),r.Pc(20,Lp,2,0,"option",15),r.Pc(21,Ep,2,2,"option",16),r.Wb(),r.Pc(22,Fp,3,8,"span",17),r.Wb(),r.Wb(),r.Xb(23,"div",18),r.Xb(24,"div",8),r.Xb(25,"label",19),r.bc(26,20),r.Wb(),r.Xb(27,"div",13),r.Xb(28,"select",21),r.lc("change",function(){return r.Ic(e),r.nc().fsalChangeHandler()}),r.Pc(29,Wp,2,0,"option",15),r.Pc(30,jp,2,0,"option",15),r.Pc(31,Yp,2,0,"option",15),r.Pc(32,Np,2,3,"option",22),r.Wb(),r.Pc(33,zp,2,0,"span",17),r.Pc(34,$p,2,1,"span",17),r.Wb(),r.Wb(),r.Pc(35,qp,10,5,"div",23),r.Wb(),r.Pc(36,Qp,11,5,"div",23),r.Pc(37,nm,12,4,"div",23),r.Pc(38,sm,8,3,"div",23),r.Xb(39,"div",8),r.Xb(40,"label",24),r.bc(41,25),r.Wb(),r.Xb(42,"div",13),r.Xb(43,"div",26),r.Sb(44,"input",27),r.Xb(45,"label",28),r.bc(46,29),r.Wb(),r.Wb(),r.Pc(47,om,2,0,"span",17),r.Wb(),r.Wb(),r.Pc(48,um,16,3,"div",23),r.Xb(49,"div",8),r.Xb(50,"label",30),r.bc(51,31),r.Wb(),r.Xb(52,"div",13),r.Xb(53,"select",32),r.lc("change",function(){return r.Ic(e),r.nc().accessTypeChangeHandler()}),r.Pc(54,dm,2,0,"option",15),r.Pc(55,hm,2,0,"option",15),r.Pc(56,fm,2,0,"option",15),r.Pc(57,pm,2,2,"option",16),r.Wb(),r.Pc(58,mm,2,1,"span",33),r.Pc(59,bm,3,0,"span",34),r.Pc(60,gm,2,0,"span",17),r.Wb(),r.Wb(),r.Xb(61,"div",8),r.Xb(62,"label",35),r.Xb(63,"span",10),r.bc(64,36),r.Wb(),r.Pc(65,_m,1,0,"ng-container",37),r.Wb(),r.Xb(66,"div",13),r.Xb(67,"select",38),r.Pc(68,vm,2,0,"option",15),r.Pc(69,ym,2,0,"option",15),r.Pc(70,wm,2,0,"option",15),r.Pc(71,Dm,2,2,"option",16),r.Wb(),r.Pc(72,Sm,2,0,"span",17),r.Wb(),r.Wb(),r.Xb(73,"div",8),r.Xb(74,"label",39),r.bc(75,40),r.Wb(),r.Xb(76,"div",13),r.Xb(77,"div",26),r.Sb(78,"input",41),r.Xb(79,"label",42),r.bc(80,43),r.Wb(),r.Wb(),r.Xb(81,"div",26),r.Sb(82,"input",44),r.Xb(83,"label",45),r.bc(84,46),r.Wb(),r.Wb(),r.Pc(85,xm,2,0,"span",17),r.Sb(86,"hr"),r.Wb(),r.Wb(),r.Xb(87,"cd-nfs-form-client",47,48),r.Pc(89,km,22,0,"ng-template",null,49,r.Qc),r.Wb(),r.Wb(),r.Xb(91,"div",50),r.Xb(92,"cd-form-button-panel",51),r.lc("submitActionEvent",function(){return r.Ic(e),r.nc().submitAction()}),r.oc(93,"titlecase"),r.oc(94,"upperFirst"),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Wb()}if(2&e){const e=r.Fc(2),t=r.Fc(90),n=r.nc();r.Db(1),r.uc("formGroup",n.nfsForm),r.Db(6),r.fc(r.pc(6,38,n.action))(r.pc(7,40,n.resource)),r.cc(5),r.Db(11),r.uc("ngIf",null===n.allClusters),r.Db(1),r.uc("ngIf",null!==n.allClusters&&0===n.allClusters.length),r.Db(1),r.uc("ngIf",null!==n.allClusters&&n.allClusters.length>0),r.Db(1),r.uc("ngForOf",n.allClusters),r.Db(1),r.uc("ngIf",n.nfsForm.showError("cluster_id",e,"required")||0===(null==n.allClusters?null:n.allClusters.length)),r.Db(7),r.uc("ngIf",null===n.allFsals),r.Db(1),r.uc("ngIf",null!==n.allFsals&&0===n.allFsals.length),r.Db(1),r.uc("ngIf",null!==n.allFsals&&n.allFsals.length>0),r.Db(1),r.uc("ngForOf",n.allFsals),r.Db(1),r.uc("ngIf",n.nfsForm.showError("name",e,"required")),r.Db(1),r.uc("ngIf",n.fsalAvailabilityError),r.Db(1),r.uc("ngIf","CEPH"===n.nfsForm.getValue("name")),r.Db(1),r.uc("ngIf","CEPH"===n.nfsForm.getValue("name")),r.Db(1),r.uc("ngIf","CEPH"===n.nfsForm.getValue("name")),r.Db(1),r.uc("ngIf","RGW"===n.nfsForm.getValue("name")),r.Db(9),r.uc("ngIf",n.nfsForm.showError("protocolNfsv4",e,"required")),r.Db(1),r.uc("ngIf",n.nfsForm.getValue("protocolNfsv4")),r.Db(6),r.uc("ngIf",null===n.nfsAccessType),r.Db(1),r.uc("ngIf",null!==n.nfsAccessType&&0===n.nfsAccessType.length),r.Db(1),r.uc("ngIf",null!==n.nfsAccessType&&n.nfsAccessType.length>0),r.Db(1),r.uc("ngForOf",n.nfsAccessType),r.Db(1),r.uc("ngIf",n.nfsForm.getValue("access_type")),r.Db(1),r.uc("ngIf","RW"===n.nfsForm.getValue("access_type")&&"RGW"===n.nfsForm.getValue("name")),r.Db(1),r.uc("ngIf",n.nfsForm.showError("access_type",e,"required")),r.Db(5),r.uc("ngTemplateOutlet",t),r.Db(3),r.uc("ngIf",null===n.nfsSquash),r.Db(1),r.uc("ngIf",null!==n.nfsSquash&&0===n.nfsSquash.length),r.Db(1),r.uc("ngIf",null!==n.nfsSquash&&n.nfsSquash.length>0),r.Db(1),r.uc("ngForOf",n.nfsSquash),r.Db(1),r.uc("ngIf",n.nfsForm.showError("squash",e,"required")),r.Db(13),r.uc("ngIf",n.nfsForm.showError("transportUDP",e,"required")||n.nfsForm.showError("transportTCP",e,"required")),r.Db(2),r.uc("form",n.nfsForm)("clients",n.clients),r.Db(5),r.uc("form",n.nfsForm)("submitText",r.pc(93,42,n.action)+" "+r.pc(94,44,n.resource))}}let Mm=(()=>{class e extends qn.a{constructor(e,t,n,i,r,s,o,a,c,l){super(),this.authStorageService=e,this.nfsService=t,this.route=n,this.router=i,this.rgwBucketService=r,this.rgwSiteService=s,this.formBuilder=o,this.taskWrapper=a,this.cdRef=c,this.actionLabels=l,this.clients=[],this.isEdit=!1,this.cluster_id=null,this.export_id=null,this.allClusters=null,this.icons=_n.a,this.allFsals=[],this.allFsNames=null,this.fsalAvailabilityError=null,this.defaultAccessType={RGW:"RO"},this.nfsAccessType=this.nfsService.nfsAccessType,this.nfsSquash=this.nfsService.nfsSquash,this.pathDataSource=e=>e.pipe(oa(200),Object(ua.a)(),Object(Ni.a)(e=>this.getPathTypeahead(e)),Object(Ii.a)(e=>e)),this.bucketDataSource=e=>e.pipe(oa(200),Object(ua.a)(),Object(Ni.a)(e=>this.getBucketTypeahead(e))),this.permission=this.authStorageService.getPermissions().pool,this.resource="NFS export",this.createForm()}ngOnInit(){const e=[this.nfsService.listClusters(),this.nfsService.fsals(),this.nfsService.filesystems()];this.router.url.startsWith("/nfs/edit")&&(this.isEdit=!0),this.isEdit?(this.action=this.actionLabels.EDIT,this.route.params.subscribe(t=>{this.cluster_id=decodeURIComponent(t.cluster_id),this.export_id=decodeURIComponent(t.export_id),e.push(this.nfsService.get(this.cluster_id,this.export_id)),this.getData(e)}),this.nfsForm.get("cluster_id").disable()):(this.action=this.actionLabels.CREATE,this.getData(e))}getData(e){Object(Oi.a)(e).subscribe(e=>{this.resolveClusters(e[0]),this.resolveFsals(e[1]),this.resolveFilesystems(e[2]),e[3]&&this.resolveModel(e[3]),this.loadingReady()})}createForm(){this.nfsForm=new Gn.a({cluster_id:new xn.h("",{validators:[xn.A.required]}),fsal:new Gn.a({name:new xn.h("",{validators:[xn.A.required]}),fs_name:new xn.h("",{validators:[Cn.a.requiredIf({name:"CEPH"})]})}),path:new xn.h("/"),protocolNfsv4:new xn.h(!0),pseudo:new xn.h("",{validators:[Cn.a.requiredIf({protocolNfsv4:!0}),xn.A.pattern("^/[^><|&()]*$")]}),access_type:new xn.h("RW",{validators:[xn.A.required]}),squash:new xn.h(this.nfsSquash[0],{validators:[xn.A.required]}),transportUDP:new xn.h(!0,{validators:[Cn.a.requiredIf({transportTCP:!1},e=>!e)]}),transportTCP:new xn.h(!0,{validators:[Cn.a.requiredIf({transportUDP:!1},e=>!e)]}),clients:this.formBuilder.array([]),security_label:new xn.h(!1),sec_label_xattr:new xn.h("security.selinux",Cn.a.requiredIf({security_label:!0,"fsal.name":"CEPH"}))})}resolveModel(e){"CEPH"===e.fsal.name&&(e.sec_label_xattr=e.fsal.sec_label_xattr),e.protocolNfsv4=-1!==e.protocols.indexOf(4),delete e.protocols,e.transportTCP=-1!==e.transports.indexOf("TCP"),e.transportUDP=-1!==e.transports.indexOf("UDP"),delete e.transports,e.clients.forEach(e=>{let t="";e.addresses.forEach(e=>{t+=e+", "}),t.length>=2&&(t=t.substring(0,t.length-2)),e.addresses=t}),this.nfsForm.patchValue(e),this.setPathValidation(),this.clients=e.clients}resolveClusters(e){this.allClusters=[];for(const t of e)this.allClusters.push({cluster_id:t});!this.isEdit&&this.allClusters.length>0&&this.nfsForm.get("cluster_id").setValue(this.allClusters[0].cluster_id)}resolveFsals(e){e.forEach(e=>{const t=this.nfsService.nfsFsal.find(t=>e===t.value);Wt.a.isObjectLike(t)&&this.allFsals.push(t)}),!this.isEdit&&this.allFsals.length>0&&this.nfsForm.patchValue({fsal:{name:this.allFsals[0].value}})}resolveFilesystems(e){this.allFsNames=e,!this.isEdit&&e.length>0&&this.nfsForm.patchValue({fsal:{fs_name:e[0].name}})}fsalChangeHandler(){this.setPathValidation();const e=this.nfsForm.getValue("name");("RGW"===e?this.rgwSiteService.get("realms").pipe(Object(Ni.a)(e=>0===e.length?Object(Ai.a)(!0):this.rgwSiteService.isDefaultRealm().pipe(Object(Ni.a)(e=>{if(!e)throw new Error("Selected realm is not the default.");return Object(Ai.a)(!0)})))):this.nfsService.filesystems()).subscribe({next:()=>{this.setFsalAvailability(e,!0),this.isEdit||this.nfsForm.patchValue({path:"RGW"===e?"":"/",pseudo:this.generatePseudo(),access_type:this.updateAccessType()}),this.cdRef.detectChanges()},error:t=>{this.setFsalAvailability(e,!1,t),this.nfsForm.get("name").setValue("")}})}setFsalAvailability(e,t,n=""){this.allFsals=this.allFsals.map(i=>(i.value===e&&(i.disabled=!t,this.fsalAvailabilityError=i.disabled?"" + i.descr + " backend is not available. " + n + "":null),i))}accessTypeChangeHandler(){const e=this.nfsForm.getValue("name"),t=this.nfsForm.getValue("access_type");this.defaultAccessType[e]=t}setPathValidation(){const e=this.nfsForm.get("path");e.setValidators([xn.A.required]),"RGW"===this.nfsForm.getValue("name")?e.setAsyncValidators([Cn.a.bucketExistence(!0,this.rgwBucketService)]):e.setAsyncValidators([this.pathExistence(!0)]),this.isEdit&&e.markAsDirty()}getAccessTypeHelp(e){const t=this.nfsAccessType.find(t=>{if(e===t.value)return t});return Wt.a.isObjectLike(t)?t.help:""}getId(){return Wt.a.isString(this.nfsForm.getValue("cluster_id"))&&Wt.a.isString(this.nfsForm.getValue("path"))?this.nfsForm.getValue("cluster_id")+":"+this.nfsForm.getValue("path"):""}getPathTypeahead(e){if(!Wt.a.isString(e)||"/"===e)return Object(Ai.a)([]);const t=this.nfsForm.getValue("fsal").fs_name;return this.nfsService.lsDir(t,e).pipe(Object(Ii.a)(t=>t.paths.filter(t=>t.toLowerCase().includes(e)).slice(0,15)),Object(up.a)(()=>Object(Ai.a)(["Error while retrieving paths."])))}pathChangeHandler(){this.isEdit||this.nfsForm.patchValue({pseudo:this.generatePseudo()})}getBucketTypeahead(e){return Wt.a.isString(e)&&"/"!==e&&""!==e?this.rgwBucketService.list().pipe(Object(Ii.a)(t=>t.filter(t=>t.toLowerCase().includes(e)).slice(0,15)),Object(up.a)(()=>Object(Ai.a)(["Error while retrieving bucket names."]))):Object(Ai.a)([])}generatePseudo(){let e=this.nfsForm.getValue("pseudo");return this.nfsForm.get("pseudo")&&!this.nfsForm.get("pseudo").dirty&&(e=void 0,"CEPH"===this.nfsForm.getValue("fsal")&&(e="/cephfs",Wt.a.isString(this.nfsForm.getValue("path"))&&(e+=this.nfsForm.getValue("path")))),e}updateAccessType(){const e=this.nfsForm.getValue("name");let t=this.defaultAccessType[e];return t||(t="RW"),t}submitAction(){let e;const t=this.buildRequest();e=this.taskWrapper.wrapTaskAroundCall(this.isEdit?{task:new Bi.a("nfs/edit",{cluster_id:this.cluster_id,export_id:Wt.a.parseInt(this.export_id)}),call:this.nfsService.update(this.cluster_id,Wt.a.parseInt(this.export_id),t)}:{task:new Bi.a("nfs/create",{path:t.path,fsal:t.fsal,cluster_id:t.cluster_id}),call:this.nfsService.create(t)}),e.subscribe({error:e=>this.setFormErrors(e),complete:()=>this.router.navigate(["/nfs"])})}setFormErrors(e){e.error.detail&&e.error.detail.toString().includes(`Pseudo ${this.nfsForm.getValue("pseudo")} is already in use`)&&this.nfsForm.get("pseudo").setErrors({pseudoAlreadyExists:!0}),this.nfsForm.setErrors({cdSubmitButton:!0})}buildRequest(){const e=Wt.a.cloneDeep(this.nfsForm.value);return this.isEdit&&(e.export_id=Wt.a.parseInt(this.export_id)),"RGW"===e.fsal.name&&delete e.fsal.fs_name,e.protocols=[],e.protocolNfsv4?e.protocols.push(4):e.pseudo=null,delete e.protocolNfsv4,e.transports=[],e.transportTCP&&e.transports.push("TCP"),delete e.transportTCP,e.transportUDP&&e.transports.push("UDP"),delete e.transportUDP,e.clients.forEach(t=>{t.addresses=Wt.a.isString(t.addresses)?Wt()(t.addresses).split(/[ ,]+/).uniq().filter(e=>""!==e).value():[],t.squash||(t.squash=e.squash),t.access_type||(t.access_type=e.access_type)}),e.fsal.sec_label_xattr=!1===e.security_label||"RGW"===e.fsal.name?null:e.sec_label_xattr,delete e.sec_label_xattr,e}pathExistence(e){return t=>{if(t.pristine||!t.value)return Object(Ai.a)({required:!0});const n=this.nfsForm.getValue("fsal").fs_name;return this.nfsService.lsDir(n,t.value).pipe(Object(Ii.a)(n=>n.paths.includes(t.value)===e?null:{pathNameNotAllowed:!0}),Object(up.a)(()=>Object(Ai.a)({pathNameNotAllowed:!0})))}}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Gt.a),r.Rb(hp),r.Rb(Pt.a),r.Rb(Pt.e),r.Rb(fp.a),r.Rb(pp.a),r.Rb(wo.a),r.Rb(Ui.a),r.Rb(r.i),r.Rb(gn.b))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-nfs-form"]],viewQuery:function(e,t){if(1&e&&r.Wc(Mp,3),2&e){let e;r.Ec(e=r.mc())&&(t.nfsClients=e.first)}},features:[r.Ab],decls:1,vars:1,consts:function(){let e,t,n,i,s,o,a,c,l,u,d,h,f,p,m,b,g,_,v,y,w,D,S,x,k,T,M,C,O,L,E,A,I,R,P,F,W,j,Y,N,z,$,H,X,V,B,U,q,G,J,K,Q,Z,ee,te,ne,ie;return e="" + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + "",t="Cluster",n="This is the ID of an NFS Service.",i="Storage Backend",s="NFS Protocol",o="NFSv4",a="Access Type",c="Squash",l="Transport Protocol",u="UDP",d="TCP",h="Loading...",f="-- No cluster available --",p="-- Select the cluster --",m="This field is required. To create a new NFS cluster, " + "\ufffd#2\ufffd" + "add a new NFS Service" + "\ufffd/#2\ufffd" + ".",b="Loading...",g="-- No data pools available --",_="-- Select the storage backend --",v="This field is required.",y="" + "\ufffd0\ufffd" + "",w="Volume",D="Loading...",S="-- No CephFS filesystem available --",x="-- Select the CephFS filesystem --",k="This field is required.",T="Security Label",M="Enable security label",C="This field is required.",O="CephFS Path",L="A path in a CephFS file system.",E="This field is required.",A="Path need to start with a '/' and can be followed by a word",I="The path does not exist in the selected volume.",R="Bucket",P="This field is required.",F="The bucket does not exist or is not in the default realm (if multiple realms are configured). To continue, " + "\ufffd#2\ufffd" + "create a new bucket" + "\ufffd/#2\ufffd" + ".",W="This field is required.",j="Pseudo",Y="The position that this " + "[\ufffd#7\ufffd|\ufffd#8\ufffd]" + "NFS v4" + "[\ufffd/#7\ufffd|\ufffd/#8\ufffd]" + " export occupies in the " + "[\ufffd#7\ufffd|\ufffd#8\ufffd]" + "Pseudo FS" + "[\ufffd/#7\ufffd|\ufffd/#8\ufffd]" + " (it must be unique).",Y=r.gc(Y),N="By using different Pseudo options, the same Path may be exported multiple times.",z="This field is required.",$="The pseudo is already in use by another export.",H="Pseudo needs to start with a '/' and can't contain any of the following: >, <, |, &, ( or ).",X="Loading...",V="-- No access type available --",B="-- Select the access type --",U="The Object Gateway NFS backend has a number of limitations which will seriously affect applications writing to the share. Please consult the " + "\ufffd#2\ufffd" + "" + "\ufffd/#2\ufffd" + " for details before enabling write access.",q="This field is required.",G="Loading...",J="-- No squash available --",K="--Select what kind of user id squashing is performed --",Q="This field is required.",Z="This field is required.",ee="No user id squashing is performed.",te="uid 0 and gid 0 are squashed to the Anonymous_Uid and Anonymous_Gid gid 0 in alt_groups lists is also squashed.",ne="uid 0 and gid of any value are squashed to the Anonymous_Uid and Anonymous_Gid alt_groups lists is discarded.",ie="All users are squashed.",[["class","cd-col-form",4,"cdFormLoading"],[1,"cd-col-form"],["name","nfsForm","novalidate","",3,"formGroup"],["formDir","ngForm"],[1,"card"],[1,"card-header"],e,[1,"card-body"],[1,"form-group","row"],["for","cluster_id",1,"cd-col-form-label"],[1,"required"],t,n,[1,"cd-col-form-input"],["formControlName","cluster_id","name","cluster_id","id","cluster_id",1,"form-control","custom-select"],["value","",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["class","invalid-feedback",4,"ngIf"],["formGroupName","fsal"],["for","name",1,"cd-col-form-label","required"],i,["formControlName","name","name","name","id","name",1,"form-control","custom-select",3,"change"],[3,"value","disabled",4,"ngFor","ngForOf"],["class","form-group row",4,"ngIf"],["for","protocols",1,"cd-col-form-label","required"],s,[1,"custom-control","custom-checkbox"],["type","checkbox","formControlName","protocolNfsv4","name","protocolNfsv4","id","protocolNfsv4","disabled","",1,"custom-control-input"],["for","protocolNfsv4",1,"custom-control-label"],o,["for","access_type",1,"cd-col-form-label","required"],a,["formControlName","access_type","name","access_type","id","access_type",1,"form-control","custom-select",3,"change"],["class","form-text text-muted",4,"ngIf"],["class","form-text text-warning",4,"ngIf"],["for","squash",1,"cd-col-form-label"],c,[4,"ngTemplateOutlet"],["name","squash","formControlName","squash","id","squash",1,"form-control","custom-select"],["for","transports",1,"cd-col-form-label","required"],l,["type","checkbox","formControlName","transportUDP","name","transportUDP","id","transportUDP",1,"custom-control-input"],["for","transportUDP",1,"custom-control-label"],u,["type","checkbox","formControlName","transportTCP","name","transportTCP","id","transportTCP",1,"custom-control-input"],["for","transportTCP",1,"custom-control-label"],d,[3,"form","clients"],["nfsClients",""],["squashHelper",""],[1,"card-footer"],["wrappingClass","text-right",3,"form","submitText","submitActionEvent"],["value",""],h,f,p,[3,"value"],[1,"invalid-feedback"],m,[1,"btn-link",3,"routerLink"],b,g,_,[3,"value","disabled"],v,y,["for","fs_name",1,"cd-col-form-label","required"],w,["formControlName","fs_name","name","fs_name","id","fs_name",1,"form-control","custom-select",3,"change"],D,S,x,k,["for","security_label",1,"cd-col-form-label",3,"ngClass"],T,["type","checkbox","formControlName","security_label","name","security_label","id","security_label",1,"custom-control-input"],["for","security_label",1,"custom-control-label"],M,["type","text","class","form-control","name","sec_label_xattr","id","sec_label_xattr","formControlName","sec_label_xattr",4,"ngIf"],["type","text","name","sec_label_xattr","id","sec_label_xattr","formControlName","sec_label_xattr",1,"form-control"],C,["for","path",1,"cd-col-form-label"],O,L,["type","text","name","path","id","path","data-testid","fs_path","formControlName","path",1,"form-control",3,"ngbTypeahead","selectItem","blur"],E,A,I,R,["type","text","name","path","id","path","data-testid","rgw_path","formControlName","path",1,"form-control",3,"ngbTypeahead"],P,F,["routerLink","/rgw/bucket/create",1,"btn-link"],W,["for","pseudo",1,"cd-col-form-label"],j,Y,N,["type","text","name","pseudo","id","pseudo","formControlName","pseudo",1,"form-control"],z,$,H,X,V,B,[1,"form-text","text-muted"],[1,"form-text","text-warning"],U,["section","rgw-nfs"],q,G,J,K,Q,Z,[1,"squash-helper"],[1,"squash-helper-item-value"],ee,te,ne,ie]},template:function(e,t){1&e&&r.Pc(0,Tm,95,46,"div",0),2&e&&r.uc("cdFormLoading",t.loading)},directives:[Kn.a,xn.B,xn.r,xn.k,Qn.a,Zn.a,dr.a,On.a,xn.z,ei.a,xn.q,xn.i,s.r,s.q,xn.l,xn.b,s.w,Tp,ti.a,xn.u,xn.C,Pt.h,s.p,xn.d,Jt.G,Pr.a],pipes:[s.A,pr.a],styles:[".cd-mb[_ngcontent-%COMP%]{margin-bottom:10px}.squash-helper[_ngcontent-%COMP%]{padding-left:1rem}.squash-helper-item-value[_ngcontent-%COMP%]{font-weight:700}"]}),e})();var Cm=n("VTlA");function Om(e,t){if(1&e&&r.Sb(0,"cd-table-key-value",10),2&e){const e=r.nc(2);r.uc("data",e.data)}}function Lm(e,t){if(1&e&&r.Sb(0,"cd-table",11,12),2&e){const e=r.nc(2);r.uc("data",e.clients)("columns",e.clientsColumns)}}function Em(e,t){if(1&e&&(r.Vb(0),r.Xb(1,"ul",1,2),r.Xb(3,"li",3),r.Xb(4,"a",4),r.bc(5,5),r.Wb(),r.Pc(6,Om,1,1,"ng-template",6),r.Wb(),r.Xb(7,"li",7),r.Xb(8,"a",4),r.bc(9,8),r.Wb(),r.Pc(10,Lm,2,2,"ng-template",6),r.Wb(),r.Wb(),r.Sb(11,"div",9),r.Ub()),2&e){const e=r.Fc(2),t=r.nc();r.Db(9),r.fc(t.clients.length),r.cc(9),r.Db(2),r.uc("ngbNavOutlet",e)}}let Am=(()=>{class e{constructor(){this.clients=[],this.clientsColumns=[{name:"Addresses",prop:"addresses",flexGrow:2},{name:"Access Type",prop:"access_type",flexGrow:1},{name:"Squash",prop:"squash",flexGrow:1}]}ngOnChanges(){this.selection&&(this.selectedItem=this.selection,this.clients=this.selectedItem.clients,this.data={},this.data["Cluster"]=this.selectedItem.cluster_id,this.data["NFS Protocol"]=this.selectedItem.protocols.map(e=>"NFSv"+e),this.data["Pseudo"]=this.selectedItem.pseudo,this.data["Access Type"]=this.selectedItem.access_type,this.data["Squash"]=this.selectedItem.squash,this.data["Transport"]=this.selectedItem.transports,this.data["Path"]=this.selectedItem.path,"CEPH"===this.selectedItem.fsal.name?(this.data["Storage Backend"]="CephFS",this.data["CephFS User"]=this.selectedItem.fsal.user_id,this.data["CephFS Filesystem"]=this.selectedItem.fsal.fs_name,this.data["Security Label"]=this.selectedItem.fsal.sec_label_xattr):(this.data["Storage Backend"]="Object Gateway",this.data["Object Gateway User"]=this.selectedItem.fsal.user_id))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-nfs-details"]],inputs:{selection:"selection"},features:[r.Bb],decls:1,vars:1,consts:function(){let e,t;return e="Details",t="Clients (" + "\ufffd0\ufffd" + ")",[[4,"ngIf"],["ngbNav","","cdStatefulTab","nfs-details",1,"nav-tabs"],["nav","ngbNav"],["ngbNavItem","details"],["ngbNavLink",""],e,["ngbNavContent",""],["ngbNavItem","clients"],t,[3,"ngbNavOutlet"],[3,"data"],["columnMode","flex","identifier","addresses","forceIdentifier","true","selectionType","",3,"data","columns"],["table",""]]},template:function(e,t){1&e&&r.Pc(0,Em,12,2,"ng-container",0),2&e&&r.uc("ngIf",t.selection)},directives:[s.r,Jt.p,Kt.a,Jt.r,Jt.s,Jt.q,Jt.u,en.a,Vt.a],styles:[""]}),e})();const Im=["nfsState"],Rm=["nfsFsal"],Pm=["table"];function Fm(e,t){1&e&&(r.Vb(0),r.bc(1,7),r.Ub())}function Wm(e,t){1&e&&(r.Vb(0),r.bc(1,8),r.Ub())}function jm(e,t){if(1&e&&(r.Pc(0,Fm,2,0,"ng-container",6),r.Pc(1,Wm,2,0,"ng-container",6)),2&e){const e=t.value;r.uc("ngIf","CEPH"===e.name),r.Db(1),r.uc("ngIf","RGW"===e.name)}}let Ym=(()=>{class e extends zt.a{constructor(e,t,n,i,r,s){super(),this.authStorageService=e,this.modalService=t,this.nfsService=n,this.taskListService=i,this.taskWrapper=r,this.actionLabels=s,this.selection=new Ht.a,this.isDefaultCluster=!1,this.builders={"nfs/create":e=>({path:e.path,cluster_id:e.cluster_id,fsal:e.fsal})},this.permission=this.authStorageService.getPermissions().nfs;const o=()=>this.selection.first()&&`${encodeURI(this.selection.first().cluster_id)}/${encodeURI(this.selection.first().export_id)}`;this.tableActions=[{permission:"create",icon:_n.a.add,routerLink:()=>"/nfs/create",canBePrimary:e=>!e.hasSingleSelection,name:this.actionLabels.CREATE},{permission:"update",icon:_n.a.edit,routerLink:()=>`/nfs/edit/${o()}`,name:this.actionLabels.EDIT},{permission:"delete",icon:_n.a.destroy,click:()=>this.deleteNfsModal(),name:this.actionLabels.DELETE}]}ngOnInit(){this.columns=[{name:"Path",prop:"path",flexGrow:2,cellTransformation:$t.a.executing},{name:"Pseudo",prop:"pseudo",flexGrow:2},{name:"Cluster",prop:"cluster_id",flexGrow:2},{name:"Storage Backend",prop:"fsal",flexGrow:2,cellTemplate:this.nfsFsal},{name:"Access Type",prop:"access_type",flexGrow:2}],this.taskListService.init(()=>this.nfsService.list(),e=>this.prepareResponse(e),e=>this.exports=e,()=>this.onFetchError(),this.taskFilter,this.itemFilter,this.builders)}ngOnDestroy(){this.summaryDataSubscription&&this.summaryDataSubscription.unsubscribe()}prepareResponse(e){let t=[];return e.forEach(e=>{e.id=`${e.cluster_id}:${e.export_id}`,e.state="LOADING",t=t.concat(e)}),t}onFetchError(){this.table.reset(),this.viewCacheStatus={status:qt.a.ValueException}}itemFilter(e,t){return e.cluster_id===t.metadata.cluster_id&&e.export_id===t.metadata.export_id}taskFilter(e){return["nfs/create","nfs/delete","nfs/edit"].includes(e.name)}updateSelection(e){this.selection=e}deleteNfsModal(){const e=this.selection.first().cluster_id,t=this.selection.first().export_id;this.modalRef=this.modalService.show(bn.a,{itemDescription:"NFS export",itemNames:[`${e}:${t}`],submitActionObservable:()=>this.taskWrapper.wrapTaskAroundCall({task:new Bi.a("nfs/delete",{cluster_id:e,export_id:t}),call:this.nfsService.delete(e,t)})})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Gt.a),r.Rb(yn.a),r.Rb(hp),r.Rb(Cm.a),r.Rb(Ui.a),r.Rb(gn.b))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-nfs-list"]],viewQuery:function(e,t){if(1&e&&(r.Wc(Im,1),r.Wc(Rm,3),r.Wc(Pm,3)),2&e){let e;r.Ec(e=r.mc())&&(t.nfsState=e.first),r.Ec(e=r.mc())&&(t.nfsFsal=e.first),r.Ec(e=r.mc())&&(t.table=e.first)}},features:[r.Cb([Cm.a]),r.Ab],decls:7,vars:7,consts:function(){let e,t;return e="CephFS",t="Object Gateway",[["columnMode","flex","identifier","id","forceIdentifier","true","selectionType","single",3,"data","columns","hasDetails","setExpandedRow","updateSelection"],["table",""],[1,"table-actions","btn-toolbar"],[1,"btn-group",3,"permission","selection","tableActions"],["cdTableDetail","",3,"selection"],["nfsFsal",""],[4,"ngIf"],e,t]},template:function(e,t){1&e&&(r.Xb(0,"cd-table",0,1),r.lc("setExpandedRow",function(e){return t.setExpandedRow(e)})("updateSelection",function(e){return t.updateSelection(e)}),r.Xb(2,"div",2),r.Sb(3,"cd-table-actions",3),r.Wb(),r.Sb(4,"cd-nfs-details",4),r.Wb(),r.Pc(5,jm,2,2,"ng-template",null,5,r.Qc)),2&e&&(r.uc("data",t.exports)("columns",t.columns)("hasDetails",!0),r.Db(3),r.uc("permission",t.permission)("selection",t.selection)("tableActions",t.tableActions),r.Db(1),r.uc("selection",t.expandedRow))},directives:[Vt.a,Dn.a,Am,s.r],styles:[""]}),e})(),Nm=(()=>{class e{constructor(t){this.route=t,this.route.queryParams.subscribe(t=>{this.fromLink=t.fromLink||e.defaultFromLink}),this.route.params.subscribe(e=>{this.serviceId=decodeURIComponent(e.id),this.serviceType=e.type})}}return e.defaultFromLink="/hosts",e.\u0275fac=function(t){return new(t||e)(r.Rb(Pt.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-performance-counter"]],decls:3,vars:4,consts:[[3,"serviceType","serviceId"]],template:function(e,t){1&e&&(r.Xb(0,"legend"),r.Rc(1),r.Wb(),r.Sb(2,"cd-table-performance-counter",0)),2&e&&(r.Db(1),r.Uc("",t.serviceType,".",t.serviceId,""),r.Db(1),r.uc("serviceType",t.serviceType)("serviceId",t.serviceId))},directives:[sd.a],styles:[""]}),e})();var zm=n("DSvg"),$m=n("Mxhz"),Hm=n("1nQr");function Xm(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,31),r.Wb())}function Vm(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,32),r.Wb())}function Bm(e,t){if(1&e&&r.Sb(0,"cd-helper",33),2&e){const e=r.nc();r.vc("html",e.passwordPolicyHelpText)}}function Um(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,34),r.Wb())}function qm(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,35),r.Wb())}function Gm(e,t){if(1&e&&(r.Xb(0,"span",30),r.Rc(1),r.Wb()),2&e){const e=r.nc();r.Db(1),r.Tc(" ",e.passwordValuation," ")}}function Jm(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,36),r.Wb())}function Km(e,t){1&e&&(r.Xb(0,"span",30),r.bc(1,37),r.Wb())}let Qm=(()=>{class e{constructor(e,t,n,i,r,s,o){this.actionLabels=e,this.notificationService=t,this.userService=n,this.authStorageService=i,this.formBuilder=r,this.router=s,this.passwordPolicyService=o,this.passwordPolicyHelpText="",this.icons=_n.a,this.action=this.actionLabels.CHANGE,this.resource="password",this.createForm()}createForm(){this.passwordPolicyService.getHelpText().subscribe(e=>{this.passwordPolicyHelpText=e}),this.userForm=this.formBuilder.group({oldpassword:[null,[xn.A.required,Cn.a.custom("notmatch",()=>this.userForm&&this.userForm.getValue("newpassword")===this.userForm.getValue("oldpassword"))]],newpassword:[null,[xn.A.required,Cn.a.custom("notmatch",()=>this.userForm&&this.userForm.getValue("oldpassword")===this.userForm.getValue("newpassword"))],[Cn.a.passwordPolicy(this.userService,()=>this.authStorageService.getUsername(),(e,t,n)=>{this.passwordStrengthLevelClass=this.passwordPolicyService.mapCreditsToCssClass(t),this.passwordValuation=Wt.a.defaultTo(n,"")})]],confirmnewpassword:[null,[xn.A.required]]},{validators:[Cn.a.match("newpassword","confirmnewpassword")]})}onSubmit(){if(this.userForm.pristine)return;const e=this.authStorageService.getUsername(),t=this.userForm.getValue("oldpassword"),n=this.userForm.getValue("newpassword");this.userService.changePassword(e,t,n).subscribe(()=>this.onPasswordChange(),()=>{this.userForm.setErrors({cdSubmitButton:!0})})}onPasswordChange(){this.notificationService.show(vn.a.success,"Updated user password\""),this.router.navigate(["/login"])}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(gn.b),r.Rb(wn.a),r.Rb($m.a),r.Rb(Gt.a),r.Rb(wo.a),r.Rb(Pt.e),r.Rb(Hm.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-user-password-form"]],decls:48,vars:25,consts:function(){let e,t,n,i,r,s,o,a,c,l;return e="" + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + "",t="Old password",n="New password",i="Confirm new password",r="This field is required.",s="The old and new passwords must be different.",o="This field is required.",a="The old and new passwords must be different.",c="This field is required.",l="Password confirmation doesn't match the new password.",[[1,"cd-col-form"],["novalidate","",3,"formGroup"],["frm","ngForm"],[1,"card"],[1,"card-header"],e,[1,"card-body"],[1,"form-group","row"],["for","oldpassword",1,"cd-col-form-label","required"],t,[1,"cd-col-form-input"],[1,"input-group"],["type","password","placeholder","Old password...","id","oldpassword","formControlName","oldpassword","autocomplete","new-password","autofocus","",1,"form-control"],[1,"input-group-append"],["cdPasswordButton","oldpassword",1,"btn","btn-light"],["class","invalid-feedback",4,"ngIf"],["for","newpassword",1,"cd-col-form-label"],[1,"required"],n,["class","text-pre-wrap",3,"html",4,"ngIf"],["type","password","placeholder","Password...","id","newpassword","autocomplete","new-password","formControlName","newpassword",1,"form-control"],["type","button","cdPasswordButton","newpassword",1,"btn","btn-light"],[1,"password-strength-level"],["data-toggle","tooltip",3,"title"],["for","confirmnewpassword",1,"cd-col-form-label","required"],i,["type","password","autocomplete","new-password","placeholder","Confirm new password...","id","confirmnewpassword","formControlName","confirmnewpassword",1,"form-control"],["cdPasswordButton","confirmnewpassword",1,"btn","btn-light"],[1,"card-footer"],["wrappingClass","text-right",3,"form","submitText","submitActionEvent"],[1,"invalid-feedback"],r,s,[1,"text-pre-wrap",3,"html"],o,a,c,l]},template:function(e,t){if(1&e&&(r.Xb(0,"div",0),r.Xb(1,"form",1,2),r.Xb(3,"div",3),r.Xb(4,"div",4),r.bc(5,5),r.oc(6,"titlecase"),r.oc(7,"upperFirst"),r.Wb(),r.Xb(8,"div",6),r.Xb(9,"div",7),r.Xb(10,"label",8),r.bc(11,9),r.Wb(),r.Xb(12,"div",10),r.Xb(13,"div",11),r.Sb(14,"input",12),r.Xb(15,"span",13),r.Sb(16,"button",14),r.Wb(),r.Wb(),r.Pc(17,Xm,2,0,"span",15),r.Pc(18,Vm,2,0,"span",15),r.Wb(),r.Wb(),r.Xb(19,"div",7),r.Xb(20,"label",16),r.Xb(21,"span",17),r.bc(22,18),r.Wb(),r.Pc(23,Bm,1,1,"cd-helper",19),r.Wb(),r.Xb(24,"div",10),r.Xb(25,"div",11),r.Sb(26,"input",20),r.Xb(27,"span",13),r.Sb(28,"button",21),r.Wb(),r.Wb(),r.Xb(29,"div",22),r.Sb(30,"div",23),r.Wb(),r.Pc(31,Um,2,0,"span",15),r.Pc(32,qm,2,0,"span",15),r.Pc(33,Gm,2,1,"span",15),r.Wb(),r.Wb(),r.Xb(34,"div",7),r.Xb(35,"label",24),r.bc(36,25),r.Wb(),r.Xb(37,"div",10),r.Xb(38,"div",11),r.Sb(39,"input",26),r.Xb(40,"span",13),r.Sb(41,"button",27),r.Wb(),r.Wb(),r.Pc(42,Jm,2,0,"span",15),r.Pc(43,Km,2,0,"span",15),r.Wb(),r.Wb(),r.Wb(),r.Xb(44,"div",28),r.Xb(45,"cd-form-button-panel",29),r.lc("submitActionEvent",function(){return t.onSubmit()}),r.oc(46,"titlecase"),r.oc(47,"upperFirst"),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Wb()),2&e){const e=r.Fc(2);r.Db(1),r.uc("formGroup",t.userForm),r.Db(6),r.fc(r.pc(6,17,t.action))(r.pc(7,19,t.resource)),r.cc(5),r.Db(10),r.uc("ngIf",t.userForm.showError("oldpassword",e,"required")),r.Db(1),r.uc("ngIf",t.userForm.showError("oldpassword",e,"notmatch")),r.Db(5),r.uc("ngIf",t.passwordPolicyHelpText.length>0),r.Db(7),r.Fb(t.passwordStrengthLevelClass),r.vc("title",t.passwordValuation),r.Db(1),r.uc("ngIf",t.userForm.showError("newpassword",e,"required")),r.Db(1),r.uc("ngIf",t.userForm.showError("newpassword",e,"notmatch")),r.Db(1),r.uc("ngIf",t.userForm.showError("newpassword",e,"passwordPolicy")),r.Db(9),r.uc("ngIf",t.userForm.showError("confirmnewpassword",e,"required")),r.Db(1),r.uc("ngIf",t.userForm.showError("confirmnewpassword",e,"match")),r.Db(2),r.uc("form",t.userForm)("submitText",r.pc(46,21,t.action)+" "+r.pc(47,23,t.resource))}},directives:[xn.B,xn.r,xn.k,Qn.a,Zn.a,On.a,xn.d,ei.a,xn.q,xn.i,hr.a,pa.a,s.r,ti.a,dr.a],pipes:[s.A,pr.a],styles:[""]}),e})();function Zm(e,t){1&e&&(r.Xb(0,"span",17),r.bc(1,18),r.Wb())}function eb(e,t){1&e&&(r.Xb(0,"span",17),r.bc(1,19),r.Wb())}function tb(e,t){1&e&&(r.Xb(0,"span",17),r.bc(1,20),r.Wb())}function nb(e,t){1&e&&(r.Xb(0,"span",17),r.bc(1,21),r.Wb())}function ib(e,t){if(1&e&&(r.Xb(0,"span",17),r.Rc(1),r.Wb()),2&e){const e=r.nc();r.Db(1),r.Tc(" ",e.passwordValuation," ")}}function rb(e,t){1&e&&(r.Xb(0,"span",17),r.bc(1,22),r.Wb())}function sb(e,t){1&e&&(r.Xb(0,"span",17),r.bc(1,23),r.Wb())}let ob=(()=>{class e extends Qm{constructor(e,t,n,i,r,s,o,a){super(e,t,n,i,r,s,o),this.actionLabels=e,this.notificationService=t,this.userService=n,this.authStorageService=i,this.formBuilder=r,this.router=s,this.passwordPolicyService=o,this.authService=a}onPasswordChange(){this.authService.logout()}onCancel(){this.authService.logout()}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(gn.b),r.Rb(wn.a),r.Rb($m.a),r.Rb(Gt.a),r.Rb(wo.a),r.Rb(Pt.e),r.Rb(Hm.a),r.Rb(zm.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-login-password-form"]],features:[r.Ab],decls:34,vars:19,consts:function(){let e,t,n,i,r,s,o,a;return e="Please set a new password.",t="You will be redirected to the login page afterwards.",n="This field is required.",i="The old and new passwords must be different.",r="This field is required.",s="The old and new passwords must be different.",o="This field is required.",a="Password confirmation doesn't match the new password.",[e,t,["novalidate","",3,"formGroup"],["frm","ngForm"],[1,"form-group","has-feedback"],[1,"input-group"],["type","password","placeholder","Old password...","id","oldpassword","formControlName","oldpassword","autocomplete","new-password","autofocus","",1,"form-control"],[1,"input-group-append"],["cdPasswordButton","oldpassword",1,"btn","btn-outline-light","btn-password"],["class","invalid-feedback",4,"ngIf"],["type","password","placeholder","New password...","id","newpassword","autocomplete","new-password","formControlName","newpassword",1,"form-control"],["type","button","cdPasswordButton","newpassword",1,"btn","btn-outline-light","btn-password"],[1,"password-strength-level"],["data-toggle","tooltip",3,"title"],["type","password","autocomplete","new-password","placeholder","Confirm new password...","id","confirmnewpassword","formControlName","confirmnewpassword",1,"form-control"],["cdPasswordButton","confirmnewpassword",1,"btn","btn-outline-light","btn-password"],["wrappingClass","text-right",3,"form","disabled","submitText","submitActionEvent","backActionEvent"],[1,"invalid-feedback"],n,i,r,s,o,a]},template:function(e,t){if(1&e&&(r.Xb(0,"div"),r.Xb(1,"h2"),r.bc(2,0),r.Wb(),r.Xb(3,"h4"),r.bc(4,1),r.Wb(),r.Xb(5,"form",2,3),r.Xb(7,"div",4),r.Xb(8,"div",5),r.Sb(9,"input",6),r.Xb(10,"span",7),r.Sb(11,"button",8),r.Wb(),r.Wb(),r.Pc(12,Zm,2,0,"span",9),r.Pc(13,eb,2,0,"span",9),r.Wb(),r.Xb(14,"div",4),r.Xb(15,"div",5),r.Sb(16,"input",10),r.Xb(17,"span",7),r.Sb(18,"button",11),r.Wb(),r.Wb(),r.Xb(19,"div",12),r.Sb(20,"div",13),r.Wb(),r.Pc(21,tb,2,0,"span",9),r.Pc(22,nb,2,0,"span",9),r.Pc(23,ib,2,1,"span",9),r.Wb(),r.Xb(24,"div",4),r.Xb(25,"div",5),r.Sb(26,"input",14),r.Xb(27,"span",7),r.Sb(28,"button",15),r.Wb(),r.Wb(),r.Pc(29,rb,2,0,"span",9),r.Pc(30,sb,2,0,"span",9),r.Wb(),r.Xb(31,"cd-form-button-panel",16),r.lc("submitActionEvent",function(){return t.onSubmit()})("backActionEvent",function(){return t.onCancel()}),r.oc(32,"titlecase"),r.oc(33,"upperFirst"),r.Wb(),r.Wb(),r.Wb()),2&e){const e=r.Fc(6);r.Db(5),r.uc("formGroup",t.userForm),r.Db(7),r.uc("ngIf",t.userForm.showError("oldpassword",e,"required")),r.Db(1),r.uc("ngIf",t.userForm.showError("oldpassword",e,"notmatch")),r.Db(7),r.Fb(t.passwordStrengthLevelClass),r.vc("title",t.passwordValuation),r.Db(1),r.uc("ngIf",t.userForm.showError("newpassword",e,"required")),r.Db(1),r.uc("ngIf",t.userForm.showError("newpassword",e,"notmatch")),r.Db(1),r.uc("ngIf",t.userForm.showError("newpassword",e,"passwordPolicy")),r.Db(6),r.uc("ngIf",t.userForm.showError("confirmnewpassword",e,"required")),r.Db(1),r.uc("ngIf",t.userForm.showError("confirmnewpassword",e,"match")),r.Db(1),r.uc("form",t.userForm)("disabled",t.userForm.invalid)("submitText",r.pc(32,15,t.action)+" "+r.pc(33,17,t.resource))}},directives:[xn.B,xn.r,xn.k,Qn.a,Zn.a,On.a,xn.d,ei.a,xn.q,xn.i,hr.a,pa.a,s.r,ti.a],pipes:[s.A,pr.a],styles:["cd-login-password-form h4{margin:0 0 30px} cd-login-password-form .form-group{background-color:#2e373d;border-left:4px solid #fff} cd-login-password-form .form-group:focus-within{border-left:4px solid #ef5c55} cd-login-password-form .btn-password, cd-login-password-form .btn-password:focus, cd-login-password-form .form-control, cd-login-password-form .form-control:focus{background-color:#2e373d;border:0;box-shadow:none;color:#f8f9fa;filter:none;outline:none} cd-login-password-form .form-control::placeholder{color:#6c757d} cd-login-password-form .btn-password:focus{outline-color:#2b99a8} cd-login-password-form button.btn:not(:first-child){margin-left:5px}@keyframes autofill{to{background-color:#2e373d;color:#f8f9fa}}input[_ngcontent-%COMP%]:-webkit-autofill{animation-fill-mode:both;animation-name:autofill;border-radius:0;box-shadow:inset 0 0 0 1000px #2e373d;-webkit-text-fill-color:#f8f9fa;-webkit-transition-property:none;transition-property:none}.invalid-feedback[_ngcontent-%COMP%]{padding-left:9px}.is-invalid.cd-form-control[_ngcontent-%COMP%]{border-color:#0000}"]}),e})();class ab{}function cb(e,t){1&e&&(r.Xb(0,"div",20),r.bc(1,21),r.Wb())}function lb(e,t){1&e&&(r.Xb(0,"div",20),r.bc(1,22),r.Wb())}function ub(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div",1),r.Xb(1,"form",2,3),r.lc("ngSubmit",function(){return r.Ic(e),r.nc().login()}),r.Xb(3,"div",4),r.Xb(4,"label",5),r.bc(5,6),r.Wb(),r.Xb(6,"input",7,8),r.lc("ngModelChange",function(t){return r.Ic(e),r.nc().model.username=t}),r.Wb(),r.Pc(8,cb,2,0,"div",9),r.Wb(),r.Xb(9,"div",10),r.Xb(10,"div",11),r.Xb(11,"div",12),r.Xb(12,"label",13),r.bc(13,14),r.Wb(),r.Xb(14,"input",15,16),r.lc("ngModelChange",function(t){return r.Ic(e),r.nc().model.password=t}),r.Wb(),r.Pc(16,lb,2,0,"div",9),r.Wb(),r.Xb(17,"span",17),r.Sb(18,"button",18),r.Wb(),r.Wb(),r.Wb(),r.Sb(19,"input",19),r.Wb(),r.Wb()}if(2&e){const e=r.Fc(2),t=r.Fc(7),n=r.Fc(15),i=r.nc();r.Db(6),r.uc("ngModel",i.model.username),r.Eb("aria-invalid",t.invalid),r.Db(2),r.uc("ngIf",(e.submitted||t.dirty)&&t.invalid),r.Db(6),r.uc("ngModel",i.model.password),r.Eb("aria-invalid",n.invalid),r.Db(2),r.uc("ngIf",(e.submitted||n.dirty)&&n.invalid),r.Db(3),r.uc("disabled",e.invalid)}}let db=(()=>{class e{constructor(e,t,n,i,r){this.authService=e,this.authStorageService=t,this.modalService=n,this.route=i,this.router=r,this.model=new ab,this.isLoginActive=!1,this.postInstalled=!1}ngOnInit(){if(this.authStorageService.isLoggedIn())this.router.navigate([""]);else{this.modalService.dismissAll();let e=null;if(-1!==window.location.hash.indexOf("access_token=")){e=window.location.hash.split("access_token=")[1];const t=window.location.toString();window.history.replaceState({},document.title,t.split("?")[0])}this.authService.check(e).subscribe(e=>{e.login_url?(this.postInstalled="POST_INSTALLED"===e.cluster_status,"#/login"===e.login_url?this.isLoginActive=!0:window.location.replace(e.login_url)):(this.authStorageService.set(e.username,e.permissions,e.sso,e.pwdExpirationDate),this.router.navigate([""]))})}}login(){this.authService.login(this.model).subscribe(()=>{let e=Wt.a.get(this.route.snapshot.queryParams,"returnUrl",this.postInstalled?"/":"/expand-cluster");this.postInstalled||"/dashboard"!==this.route.snapshot.queryParams.returnUrl||(e="/expand-cluster"),this.router.navigate([e])})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(zm.a),r.Rb(Gt.a),r.Rb(yn.a),r.Rb(Pt.a),r.Rb(Pt.e))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-login"]],decls:1,vars:1,consts:function(){let e,t,n,i,r;return e="Username",t="Password",n="Log in",i="Username is required",r="Password is required",[["class","container",4,"ngIf"],[1,"container"],["name","loginForm","novalidate","",3,"ngSubmit"],["loginForm","ngForm"],[1,"form-group","has-feedback","d-flex","flex-column","py-3"],["for","username",1,"placeholder","pl-4"],e,["id","username","name","username","type","text","aria-labelledby","username","required","","autofocus","",1,"form-control","pl-4",3,"ngModel","ngModelChange"],["username","ngModel"],["class","invalid-feedback pl-4",4,"ngIf"],["id","password-div",1,"form-group","has-feedback"],[1,"input-group","d-flex","flex-nowrap"],[1,"d-flex","flex-column","flex-grow-1","py-3"],["for","password",1,"placeholder","pl-4"],t,["id","password","name","password","type","password","aria-labelledby","password","required","",1,"form-control","pl-4",3,"ngModel","ngModelChange"],["password","ngModel"],[1,"form-group-append"],["type","button","cdPasswordButton","password",1,"btn","btn-outline-light","btn-password","h-100","px-4"],["type","submit","value",n,1,"btn","btn-accent","px-5","py-2",3,"disabled"],[1,"invalid-feedback","pl-4"],i,r]},template:function(e,t){1&e&&r.Pc(0,ub,20,7,"div",0),2&e&&r.uc("ngIf",t.isLoginActive)},directives:[s.r,xn.B,xn.r,xn.s,Zn.a,On.a,xn.d,ei.a,xn.y,hr.a,xn.q,xn.t,pa.a],styles:["cd-login .form-group{background-color:#2e373d;border-left:4px solid #fff;height:auto;margin-bottom:2rem} cd-login .form-group:focus-within{border-left:4px solid #ef5c55} cd-login .btn-password, cd-login .btn-password:focus, cd-login .form-control, cd-login .form-control:focus{background-color:#2e373d;border:0;box-shadow:none;color:#f8f9fa;filter:none;outline:none} cd-login .placeholder{color:#6c757d} cd-login .btn-password:focus{outline-color:#2b99a8}@keyframes autofill{to{background-color:#2e373d;color:#f8f9fa}}input[_ngcontent-%COMP%]:-webkit-autofill{animation-fill-mode:both;animation-name:autofill;border-radius:0;box-shadow:inset 0 0 0 1000px #2e373d;-webkit-text-fill-color:#f8f9fa;-webkit-transition-property:none;transition-property:none}"]}),e})();var hb=n("tz6c");function fb(e,t){if(1&e&&(r.Xb(0,"div"),r.Sb(1,"i",8),r.Sb(2,"br"),r.Sb(3,"br"),r.Sb(4,"br"),r.Xb(5,"h3"),r.Xb(6,"b"),r.Rc(7),r.Wb(),r.Wb(),r.Sb(8,"br"),r.Xb(9,"h4"),r.Rc(10),r.Wb(),r.Wb()),2&e){const e=r.nc();r.Db(1),r.Fb(e.icon),r.Db(6),r.Sc(e.header),r.Db(3),r.Sc(e.message)}}function pb(e,t){1&e&&(r.Sb(0,"i",9),r.Sb(1,"br"),r.Sb(2,"br"),r.Sb(3,"br"),r.Xb(4,"h3"),r.hc(5,10),r.Sb(6,"b"),r.ec(),r.Wb(),r.Sb(7,"br"),r.Xb(8,"h4"),r.bc(9,11),r.Wb())}function mb(e,t){if(1&e&&(r.Xb(0,"div"),r.Xb(1,"h4"),r.hc(2,12),r.Sb(3,"a",13),r.ec(),r.Wb(),r.Wb()),2&e){const e=r.nc();r.Db(3),r.vc("href",e.docUrl,r.Lc),r.fc(e.section_info),r.cc(2)}}let bb=(()=>{class e{constructor(e,t){this.router=e,this.docService=t}ngOnInit(){this.fetchData(),this.routerSubscription=this.router.events.pipe(Object(da.a)(e=>e instanceof Pt.b)).subscribe(()=>{this.fetchData()})}unloadHandler(e){e.returnValue=!1}fetchData(){try{this.router.onSameUrlNavigation="reload",this.message=history.state.message,this.header=history.state.header,this.section=history.state.section,this.section_info=history.state.section_info,this.icon=history.state.icon,this.source=history.state.source,this.docUrl=this.docService.urlGenerator(this.section)}catch(e){this.router.navigate(["/error"])}}ngOnDestroy(){this.routerSubscription&&this.routerSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Pt.e),r.Rb(hb.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-error"]],hostBindings:function(e,t){1&e&&r.lc("beforeunload",function(e){return t.unloadHandler(e)},!1,r.Hc)},decls:16,vars:4,consts:function(){let e,t,n,i;return e="Go To Dashboard",t="" + "\ufffd#6\ufffd" + "Page not Found" + "\ufffd/#6\ufffd" + "",n="Sorry, we couldn\u2019t find what you were looking for. The page you requested may have been changed or moved.",i="Please consult the " + "\ufffd#3\ufffd" + "documentation" + "\ufffd/#3\ufffd" + " on how to configure and enable the " + "\ufffd0\ufffd" + " management functionality.",[["target","_blank"],[1,"dashboard","row"],[1,"text-center","content"],[4,"ngIf","ngIfElse"],["elseBlock",""],[4,"ngIf"],[1,"btn","btn-primary",3,"routerLink"],e,["aria-hidden","true"],["aria-hidden","true",1,"fa","fa-exclamation-triangle"],t,n,i,[3,"href"]]},template:function(e,t){if(1&e&&(r.Xb(0,"head"),r.Xb(1,"title"),r.Rc(2,"Error Page"),r.Wb(),r.Sb(3,"base",0),r.Wb(),r.Xb(4,"div",1),r.Xb(5,"div",2),r.Sb(6,"br"),r.Pc(7,fb,11,5,"div",3),r.Pc(8,pb,10,0,"ng-template",null,4,r.Qc),r.Pc(10,mb,4,2,"div",5),r.Sb(11,"br"),r.Sb(12,"br"),r.Xb(13,"div"),r.Xb(14,"button",6),r.bc(15,7),r.Wb(),r.Wb(),r.Wb(),r.Wb()),2&e){const e=r.Fc(9);r.Db(7),r.uc("ngIf",t.header&&t.message)("ngIfElse",e),r.Db(3),r.uc("ngIf",t.section),r.Db(4),r.uc("routerLink","/dashboard")}},directives:[s.r,On.a,Pt.f],styles:["h4[_ngcontent-%COMP%]{color:#495057}i[_ngcontent-%COMP%]{font-size:6em;margin-top:120px}.dashboard[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{background-color:#e9ecef}.dashboard[_ngcontent-%COMP%]{height:100%;position:relative}.content[_ngcontent-%COMP%]{left:50%;position:absolute;top:40%;transform:translate(-50%,-50%);width:100%}.row[_ngcontent-%COMP%]{display:block;margin-left:-29px;margin-right:-29px;padding-top:10em}.fa-exclamation-triangle[_ngcontent-%COMP%], .fa-lock[_ngcontent-%COMP%]{color:#ef5c55}.fa-wrench[_ngcontent-%COMP%]{color:#2b99a8}"]}),e})(),gb=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-blank-layout"]],decls:1,vars:0,template:function(e,t){1&e&&r.Sb(0,"router-outlet")},directives:[Pt.j],styles:[""]}),e})();var _b=n("AytR");let vb=(()=>{class e{constructor(e,t){this.http=e,this.localeId=t}getLocale(){return this.localeId||_b.a.default_lang}setLocale(e){document.cookie=`cd-lang=${e}`}getLanguages(){return this.http.get("ui-api/langs")}}return e.\u0275fac=function(t){return new(t||e)(r.ic(o.b),r.ic(r.y))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var yb=function(e){return e.cs="\u010ce\u0161tina",e.de="Deutsch",e["en-US"]="English",e.es="Espa\xf1ol",e.fr="Fran\xe7ais",e.id="Bahasa Indonesia",e.it="Italiano",e.ja="\u65e5\u672c\u8a9e",e.ko="\ud55c\uad6d\uc5b4",e.pl="Polski",e.pt="Portugu\xeas (brasileiro)",e["zh-Hans"]="\u4e2d\u6587 (\u7b80\u4f53)",e["zh-Hant"]="\u4e2d\u6587 (\u7e41\u9ad4\uff09",e}({});function wb(e,t){if(1&e){const e=r.Yb();r.Vb(0),r.Xb(1,"button",4),r.lc("click",function(){r.Ic(e);const n=t.$implicit;return r.nc().changeLanguage(n.key)}),r.Rc(2),r.Wb(),r.Ub()}if(2&e){const e=t.$implicit;r.Db(2),r.Tc(" ",e.value," ")}}let Db=(()=>{class e{constructor(e){this.languageService=e,this.allLanguages=yb,this.supportedLanguages={}}ngOnInit(){this.selectedLanguage=this.languageService.getLocale(),this.languageService.getLanguages().subscribe(e=>{this.supportedLanguages=Wt.a.pick(yb,e)})}reloadWindow(){window.location.reload()}changeLanguage(e){this.languageService.setLocale(e),this.reloadWindow()}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(vb))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-language-selector"]],decls:6,vars:4,consts:function(){let e;return e="Select a Language",[["ngbDropdown","","placement","bottom-right"],["ngbDropdownToggle","","title",e],["ngbDropdownMenu",""],[4,"ngFor","ngForOf"],["ngbDropdownItem","",3,"click"]]},template:function(e,t){1&e&&(r.Xb(0,"div",0),r.Xb(1,"a",1),r.Rc(2),r.Wb(),r.Xb(3,"div",2),r.Pc(4,wb,3,1,"ng-container",3),r.oc(5,"keyvalue"),r.Wb(),r.Wb()),2&e&&(r.Db(2),r.Tc(" ",t.allLanguages[t.selectedLanguage]," "),r.Db(2),r.uc("ngForOf",r.pc(5,2,t.supportedLanguages)))},directives:[Jt.i,Jt.m,Jt.k,s.q,On.a,Jt.j],pipes:[s.k],styles:[""]}),e})();function Sb(e,t){if(1&e&&(r.Xb(0,"li",10),r.Xb(1,"cd-doc",11),r.dc(2,12),r.Wb(),r.Wb()),2&e){const e=t.$implicit;r.Db(1),r.fc(e.text),r.cc(2),r.vc("section",e.section)}}let xb=(()=>{class e{constructor(){this.docItems=[{section:"help",text:"Help"},{section:"security",text:"Security"},{section:"trademarks",text:"Trademarks"}]}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-login-layout"]],decls:15,vars:1,consts:function(){let e;return e="" + "\ufffd0\ufffd" + "",[[1,"login","full-height"],[1,"navbar","p-4"],[1,"navbar-brand"],[1,"form-inline"],[1,"container"],[1,"row","full-height","vertical-align"],[1,"col-sm-12","col-md-6","d-sm-block"],["src","assets/Ceph_Ceph_Logo_with_text_white.svg","alt","Ceph",1,"img-fluid"],[1,"list-inline"],["class","list-inline-item p-3",4,"ngFor","ngForOf"],[1,"list-inline-item","p-3"],["noSubscribe","true",3,"section",6,"docText"],["docText",e]]},template:function(e,t){1&e&&(r.Xb(0,"main",0),r.Xb(1,"header"),r.Xb(2,"nav",1),r.Sb(3,"a",2),r.Xb(4,"div",3),r.Sb(5,"cd-language-selector"),r.Wb(),r.Wb(),r.Wb(),r.Xb(6,"section"),r.Xb(7,"div",4),r.Xb(8,"div",5),r.Xb(9,"div",6),r.Sb(10,"router-outlet"),r.Wb(),r.Xb(11,"div",6),r.Sb(12,"img",7),r.Xb(13,"ul",8),r.Pc(14,Sb,3,2,"li",9),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Wb()),2&e&&(r.Db(14),r.uc("ngForOf",t.docItems))},directives:[Jt.v,Db,Pt.j,s.q,Pr.a],styles:["cd-login-layout .login{background-color:#374249;background-image:url(ceph_background.e82dd79127290ddbe8cb.gif);background-position:100% 100%;background-repeat:no-repeat;color:#f8f9fa} cd-login-layout .login header{position:absolute;width:100vw} cd-login-layout .login header .navbar .dropdown-menu{margin-top:.2rem} cd-login-layout .login header .navbar .dropdown-menu li a:hover{background-color:#2b99a8} cd-login-layout .login section{display:inline-flex;min-height:100vh;width:100vw} cd-login-layout .login .list-inline{margin-bottom:20%;margin-left:20%} cd-login-layout .login a{color:#fff} cd-login-layout .login a:hover{color:#adb5bd}"]}),e})();var kb=n("mSOc");let Tb=(()=>{class e{constructor(e,t,n){this.document=e,this.summaryService=t,this.cssHelper=n}init(){var e;this.url=null===(e=this.document.getElementById("cdFavicon"))||void 0===e?void 0:e.getAttribute("href"),this.sub=this.summaryService.subscribe(e=>{this.changeIcon(e.health_status)})}changeIcon(e){if(e===this.oldStatus)return;this.oldStatus=e;const t=this.document.getElementById("cdFavicon"),n=this.document.createElement("canvas");n.width=16,n.height=16;const i=n.getContext("2d"),r=this.document.createElement("img");r.src=this.url,r.onload=()=>{i.drawImage(r,0,0,16,16),Object.keys(gf).includes(e)&&(i.save(),i.globalCompositeOperation="destination-out",i.beginPath(),i.arc(n.width-4,4,6,0,2*Math.PI),i.fill(),i.restore(),i.beginPath(),i.arc(n.width-4,4,4,0,2*Math.PI),i.fillStyle=this.cssHelper.propertyValue(gf[e]),i.fill()),t.setAttribute("href",n.toDataURL("image/png"))}}ngOnDestroy(){var e;this.changeIcon(),null===(e=this.sub)||void 0===e||e.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(r.ic(s.d),r.ic(kb.a),r.ic(ef.a))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac}),e})();var Mb=n("VXsX"),Cb=n("EY2u"),Ob=n("vkgz");class Lb{constructor(e,t){this.count=e,this.source=t}call(e,t){return t.subscribe(new Eb(e,this.count,this.source))}}class Eb extends ra.a{constructor(e,t,n){super(e),this.count=t,this.source=n}complete(){if(!this.isStopped){const{source:e,count:t}=this;if(0===t)return super.complete();t>-1&&(this.count=t-1),e.subscribe(this._unsubscribeAndRecycle())}}}let Ab=(()=>{class e{constructor(e){this.http=e,this.url="ui-api/motd"}get(){return this.http.get(this.url)}}return e.\u0275fac=function(t){return new(t||e)(r.ic(o.b))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Ib=(()=>{class e{constructor(e){this.motdService=e,this.motdSource=new qi.a(null),this.localStorageKey="dashboard_motd_hidden",this.motd$=this.motdSource.asObservable(),this.subscription=Object(Ai.a)(!0).pipe(Object(Ni.a)(()=>this.motdService.get()),Object(up.a)(e=>(Ft.isFunction(e.preventDefault)&&e.preventDefault(),Cb.a)),Object(Ob.a)(e=>this.processResponse(e)),Object(ea.a)(6e4),function(e=-1){return t=>0===e?Object(Cb.b)():t.lift(new Lb(e<0?-1:e-1,t))}()).subscribe()}ngOnDestroy(){this.subscription.unsubscribe()}hide(){const e=this.motdSource.getValue();if(e){const t=`${e.severity}:${e.md5}`;switch(e.severity){case"info":localStorage.setItem(this.localStorageKey,t),sessionStorage.removeItem(this.localStorageKey);break;case"warning":sessionStorage.setItem(this.localStorageKey,t),localStorage.removeItem(this.localStorageKey)}}this.motdSource.next(null)}processResponse(e){const t=sessionStorage.getItem(this.localStorageKey)||localStorage.getItem(this.localStorageKey);let n=Ft.isNull(t);if(!n&&e){const[i,r]=t.split(":");i===e.severity&&r===e.md5||(n=!0,sessionStorage.removeItem(this.localStorageKey),localStorage.removeItem(this.localStorageKey))}n&&this.motdSource.next(e)}}return e.\u0275fac=function(t){return new(t||e)(r.ic(Ab))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Rb=n("oMSZ");function Pb(e,t){1&e&&(r.Xb(0,"div"),r.hc(1,3),r.Sb(2,"strong"),r.Sb(3,"a",4),r.ec(),r.Wb())}function Fb(e,t){if(1&e&&(r.Xb(0,"div"),r.hc(1,5),r.Sb(2,"strong"),r.Sb(3,"a",4),r.ec(),r.Wb()),2&e){const e=r.nc(2);r.Db(3),r.fc(e.expirationDays),r.cc(1)}}function Wb(e,t){if(1&e){const e=r.Yb();r.Xb(0,"ngb-alert",1),r.lc("close",function(t){return r.Ic(e),r.nc().close(t)}),r.Pc(1,Pb,4,0,"div",2),r.Pc(2,Fb,4,1,"div",2),r.Wb()}if(2&e){const e=r.nc();r.vc("type",e.alertType),r.Db(1),r.uc("ngIf",0===e.expirationDays),r.Db(1),r.uc("ngIf",e.expirationDays>0)}}let jb=(()=>{class e{constructor(e,t){this.settingsService=e,this.authStorageService=t,this.displayNotification=!1}ngOnInit(){this.settingsService.getStandardSettings().subscribe(e=>{this.pwdExpirationSettings=new Rb.a(e);const t=this.authStorageService.getPwdExpirationDate();t&&(this.expirationDays=this.getExpirationDays(t),this.alertType=this.expirationDays<=this.pwdExpirationSettings.pwdExpirationWarning2?"danger":"warning",this.displayNotification=this.expirationDays<=this.pwdExpirationSettings.pwdExpirationWarning1,this.authStorageService.isPwdDisplayedSource.next(this.displayNotification))})}ngOnDestroy(){this.authStorageService.isPwdDisplayedSource.next(!1)}getExpirationDays(e){const t=new Date,n=new Date(1e3*e);return Math.floor((n.valueOf()-t.valueOf())/864e5)}close(){this.authStorageService.isPwdDisplayedSource.next(!1),this.displayNotification=!1}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(jd.a),r.Rb(Gt.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-pwd-expiration-notification"]],decls:1,vars:1,consts:function(){let e,t;return e="Your password will expire in " + "\ufffd#2\ufffd" + "less than 1" + "\ufffd/#2\ufffd" + " day. Click " + "\ufffd#3\ufffd" + "here" + "\ufffd/#3\ufffd" + " to change it now.",t="Your password will expire in " + "\ufffd#2\ufffd" + "" + "\ufffd0\ufffd" + "" + "\ufffd/#2\ufffd" + " day(s). Click " + "\ufffd#3\ufffd" + "here" + "\ufffd/#3\ufffd" + " to change it now.",[["class","no-margin-bottom",3,"type","close",4,"ngIf"],[1,"no-margin-bottom",3,"type","close"],[4,"ngIf"],e,["routerLink","/user-profile/edit",1,"alert-link"],t]},template:function(e,t){1&e&&r.Pc(0,Wb,3,3,"ngb-alert",0),2&e&&r.uc("ngIf",t.displayNotification)},directives:[s.r,Jt.b,Pt.h],styles:["cd-pwd-expiration-notification .no-margin-bottom{margin-bottom:0}"]}),e})();function Yb(e,t){if(1&e){const e=r.Yb();r.Xb(0,"ngb-alert",1),r.lc("close",function(t){return r.Ic(e),r.nc().close(t)}),r.Xb(1,"div"),r.hc(2,2),r.Sb(3,"a",3),r.Sb(4,"a",4),r.ec(),r.Wb(),r.Wb()}}let Nb=(()=>{class e{constructor(e,t,n,i){this.mgrModuleService=e,this.authStorageService=t,this.notificationService=n,this.telemetryNotificationService=i,this.displayNotification=!1}ngOnInit(){if(this.telemetryNotificationService.update.subscribe(e=>{this.displayNotification=e}),!this.isNotificationHidden()){const e=this.authStorageService.getPermissions().configOpt;Wt.a.every(Object.values(e))&&this.mgrModuleService.getConfig("telemetry").subscribe(e=>{e.enabled||this.telemetryNotificationService.setVisibility(!0)})}}ngOnDestroy(){this.telemetryNotificationService.setVisibility(!1)}isNotificationHidden(){return"true"===localStorage.getItem("telemetry_notification_hidden")}close(){this.telemetryNotificationService.setVisibility(!1),localStorage.setItem("telemetry_notification_hidden","true"),this.notificationService.show(vn.a.success,"Telemetry activation reminder muted","You can activate the module on the Telemetry configuration page (<b>Dashboard Settings</b> -> <b>Telemetry configuration</b>) at any time.")}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(wl),r.Rb(Gt.a),r.Rb(wn.a),r.Rb(Nh))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-telemetry-notification"]],decls:1,vars:1,consts:function(){let e;return e="The Ceph community needs your help to continue improving: please " + "\ufffd#3\ufffd" + "Activate" + "[\ufffd/#3\ufffd|\ufffd/#4\ufffd]" + " the " + "\ufffd#4\ufffd" + "Telemetry" + "[\ufffd/#3\ufffd|\ufffd/#4\ufffd]" + " module.",e=r.gc(e),[["class","no-margin-bottom","type","warning",3,"close",4,"ngIf"],["type","warning",1,"no-margin-bottom",3,"close"],e,["routerLink","/telemetry",1,"btn","activate-button","alert-link","activate-text"],["href","https://docs.ceph.com/en/latest/mgr/telemetry/"]]},template:function(e,t){1&e&&r.Pc(0,Yb,5,0,"ngb-alert",0),2&e&&r.uc("ngIf",t.displayNotification)},directives:[s.r,Jt.b,Pt.h],styles:["cd-telemetry-notification .no-margin-bottom{margin-bottom:0}.activate-button[_ngcontent-%COMP%]{background-color:#fcecba;border:.5px solid #495057;border-radius:10%;padding:.1rem .4rem}.activate-text[_ngcontent-%COMP%]{color:#495057;font-weight:700}"]}),e})();var zb=n("Yrry");function $b(e,t){if(1&e){const e=r.Yb();r.Xb(0,"cd-alert-panel",1),r.lc("dismissed",function(){return r.Ic(e),r.nc().onDismissed()}),r.Sb(1,"span",2),r.oc(2,"sanitizeHtml"),r.Wb()}if(2&e){const e=r.nc();r.uc("showTitle",!1)("type",e.motd.severity)("dismissible","danger"!==e.motd.severity),r.Db(1),r.uc("innerHTML",r.pc(2,4,e.motd.message),r.Jc)}}let Hb=(()=>{class e{constructor(e){this.motdNotificationService=e,this.motd=void 0}ngOnInit(){this.subscription=this.motdNotificationService.motd$.subscribe(e=>{this.motd=e})}ngOnDestroy(){this.subscription.unsubscribe()}onDismissed(){this.motdNotificationService.hide()}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Ib))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-motd"]],decls:1,vars:1,consts:[["size","slim",3,"showTitle","type","dismissible","dismissed",4,"ngIf"],["size","slim",3,"showTitle","type","dismissible","dismissed"],[3,"innerHTML"]],template:function(e,t){1&e&&r.Pc(0,$b,3,6,"cd-alert-panel",0),2&e&&r.uc("ngIf",t.motd)},directives:[s.r,wr.a],pipes:[zb.a],styles:[""]}),e})();var Xb=function(){function e(e){if(this._maxConcurrency=e,this._queue=[],e<=0)throw new Error("semaphore must be initialized to a positive value");this._value=e}return e.prototype.acquire=function(){var e=this,t=this.isLocked(),n=new Promise(function(t){return e._queue.push(t)});return t||this._dispatch(),n},e.prototype.runExclusive=function(e){return Object(jt.a)(this,void 0,void 0,function(){var t,n,i;return Object(jt.c)(this,function(r){switch(r.label){case 0:return[4,this.acquire()];case 1:t=r.sent(),n=t[0],i=t[1],r.label=2;case 2:return r.trys.push([2,,4,5]),[4,e(n)];case 3:return[2,r.sent()];case 4:return i(),[7];case 5:return[2]}})})},e.prototype.isLocked=function(){return this._value<=0},e.prototype.release=function(){if(this._maxConcurrency>1)throw new Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");this._currentReleaser&&(this._currentReleaser(),this._currentReleaser=void 0)},e.prototype._dispatch=function(){var e=this,t=this._queue.shift();if(t){var n=!1;this._currentReleaser=function(){n||(n=!0,e._value++,e._dispatch())},t([this._value--,this._currentReleaser])}},e}(),Vb=function(){function e(){this._semaphore=new Xb(1)}return e.prototype.acquire=function(){return Object(jt.a)(this,void 0,void 0,function(){return Object(jt.c)(this,function(e){switch(e.label){case 0:return[4,this._semaphore.acquire()];case 1:return[2,e.sent()[1]]}})})},e.prototype.runExclusive=function(e){return this._semaphore.runExclusive(function(){return e()})},e.prototype.isLocked=function(){return this._semaphore.isLocked()},e.prototype.release=function(){this._semaphore.release()},e}();let Bb=(()=>{class e{constructor(e,t){this.alertFormatter=e,this.prometheusService=t,this.backendFailure=!1,this.notifications=[]}refresh(){this.backendFailure||this.prometheusService.getNotifications(Wt.a.last(this.notifications)).subscribe(e=>this.handleNotifications(e),()=>this.backendFailure=!0)}handleNotifications(e){0!==e.length&&(this.notifications.length>0&&this.alertFormatter.sendNotifications(Wt.a.flatten(e.map(e=>this.formatNotification(e)))),this.notifications=this.notifications.concat(e))}formatNotification(e){return this.alertFormatter.convertToCustomAlerts(e.alerts).map(e=>this.alertFormatter.convertAlertToNotification(e))}}return e.\u0275fac=function(t){return new(t||e)(r.ic(zd),r.ic(Yd))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Ub=n("ufoC"),qb=n("Hicy"),Gb=n("WF9J");const Jb=function(e,t){return[e,t]},Kb=function(e,t,n,i){return[e,t,n,i]};function Qb(e,t){if(1&e&&(r.Xb(0,"div"),r.Xb(1,"div",12),r.Xb(2,"div",13),r.Xb(3,"div",14),r.Xb(4,"span",15),r.Sb(5,"i",7),r.Sb(6,"i",7),r.Wb(),r.Wb(),r.Xb(7,"div",16),r.Xb(8,"div",17),r.Xb(9,"h6",18),r.Rc(10),r.Wb(),r.Xb(11,"div",19),r.Sb(12,"ngb-progressbar",20),r.Wb(),r.Xb(13,"p",21),r.Xb(14,"small",22),r.Rc(15),r.oc(16,"cdDate"),r.Wb(),r.Xb(17,"span",23),r.Rc(18),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Sb(19,"hr"),r.Wb()),2&e){const e=t.$implicit,n=r.nc(2);r.Db(4),r.uc("ngClass",r.Ac(11,Jb,n.icons.stack,n.icons.large2x)),r.Db(1),r.uc("ngClass",r.Ac(14,Jb,n.icons.stack2x,n.icons.circle)),r.Db(1),r.uc("ngClass",r.Cc(17,Kb,n.icons.stack1x,n.icons.spinner,n.icons.spin,n.icons.inverse)),r.Db(4),r.Sc(e.description),r.Db(2),r.uc("value",null==e?null:e.progress)("striped",!0)("animated",!0),r.Db(3),r.Tc(" ",r.pc(16,9,e.begin_time)," "),r.Db(3),r.Tc(" ",e.progress||0," % ")}}function Zb(e,t){if(1&e&&r.Pc(0,Qb,20,22,"div",11),2&e){const e=r.nc();r.uc("ngForOf",e.executingTasks)("ngForTrackBy",e.trackByFn)}}function eg(e,t){if(1&e&&(r.Vb(0),r.Xb(1,"small"),r.Vb(2),r.bc(3,35),r.Ub(),r.Rc(4),r.oc(5,"duration"),r.Wb(),r.Sb(6,"br"),r.Ub()),2&e){const e=r.nc().$implicit;r.Db(4),r.Tc(" ",r.pc(5,1,e.duration)," ")}}const tg=function(e,t,n){return[e,t,n]},ng=function(e){return[e]};function ig(e,t){if(1&e){const e=r.Yb();r.Xb(0,"div",7),r.Xb(1,"div",29),r.Xb(2,"div",13),r.Xb(3,"div",14),r.Xb(4,"span",7),r.Sb(5,"i",7),r.Sb(6,"i",7),r.Wb(),r.Wb(),r.Xb(7,"div",30),r.Xb(8,"div",17),r.Xb(9,"button",31),r.lc("click",function(n){r.Ic(e);const i=t.index;return r.nc(3).remove(i),n.stopPropagation()}),r.Sb(10,"i",7),r.Wb(),r.Xb(11,"h6",18),r.Rc(12),r.Wb(),r.Sb(13,"p",32),r.Xb(14,"p",21),r.Pc(15,eg,7,3,"ng-container",24),r.Xb(16,"small",33),r.oc(17,"cdDate"),r.Rc(18),r.oc(19,"relativeDate"),r.Wb(),r.Sb(20,"i",34),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Sb(21,"hr"),r.Wb()}if(2&e){const e=t.$implicit,n=r.nc(3);r.uc("ngClass",e.borderClass),r.Db(4),r.uc("ngClass",r.Bc(16,tg,n.icons.stack,n.icons.large2x,e.textClass)),r.Db(1),r.uc("ngClass",r.Ac(20,Jb,n.icons.circle,n.icons.stack2x)),r.Db(1),r.uc("ngClass",r.Bc(23,tg,n.icons.stack1x,n.icons.inverse,e.iconClass)),r.Db(4),r.uc("ngClass",r.zc(27,ng,n.icons.trash)),r.Db(2),r.Sc(e.title),r.Db(1),r.uc("innerHtml",e.message,r.Jc),r.Db(2),r.uc("ngIf",e.duration),r.Db(1),r.uc("title",r.pc(17,12,e.timestamp)),r.Db(2),r.Sc(r.pc(19,14,e.timestamp)),r.Db(2),r.uc("ngClass",r.zc(29,ng,e.applicationClass))("title",e.application)}}function rg(e,t){if(1&e){const e=r.Yb();r.Vb(0),r.Xb(1,"button",25),r.lc("click",function(t){return r.Ic(e),r.nc(2).removeAll(),t.stopPropagation()}),r.Sb(2,"i",26),r.Rc(3," \xa0 "),r.Vb(4),r.bc(5,27),r.Ub(),r.Wb(),r.Sb(6,"hr"),r.Pc(7,ig,22,31,"div",28),r.Ub()}if(2&e){const e=r.nc(2);r.Db(2),r.uc("ngClass",r.zc(2,ng,e.icons.trash)),r.Db(5),r.uc("ngForOf",e.notifications)}}function sg(e,t){if(1&e&&r.Pc(0,rg,8,4,"ng-container",24),2&e){const e=r.nc();r.uc("ngIf",e.notifications.length>0)}}function og(e,t){1&e&&(r.Xb(0,"div"),r.Xb(1,"div",36),r.bc(2,37),r.Wb(),r.Wb())}function ag(e,t){if(1&e&&r.Pc(0,og,3,0,"div",24),2&e){const e=r.nc();r.uc("ngIf",0===e.notifications.length&&0===e.executingTasks.length)}}function cg(e,t){1&e&&r.Tb(0)}function lg(e,t){1&e&&r.Tb(0)}function ug(e,t){1&e&&r.Tb(0)}let dg=(()=>{class e{constructor(e,t,n,i,r,s,o,a){this.notificationService=e,this.summaryService=t,this.taskMessageService=n,this.prometheusNotificationService=i,this.authStorageService=r,this.prometheusAlertService=s,this.ngZone=o,this.cdRef=a,this.isSidebarOpened=!1,this.executingTasks=[],this.subs=new ir.a,this.icons=_n.a,this.last_task="",this.mutex=new Vb,this.simplebar={autoHide:!1},this.notifications=[]}ngOnDestroy(){window.clearInterval(this.interval),window.clearTimeout(this.timeout),this.subs.unsubscribe()}ngOnInit(){this.last_task=window.localStorage.getItem("last_task");const e=this.authStorageService.getPermissions();e.prometheus.read&&e.configOpt.read&&(this.triggerPrometheusAlerts(),this.ngZone.runOutsideAngular(()=>{this.interval=window.setInterval(()=>{this.ngZone.run(()=>{this.triggerPrometheusAlerts()})},5e3)})),this.subs.add(this.notificationService.data$.subscribe(e=>{this.notifications=Wt.a.orderBy(e,["timestamp"],["desc"]),this.cdRef.detectChanges()})),this.subs.add(this.notificationService.sidebarSubject.subscribe(e=>{this.isSidebarOpened=!e&&!this.isSidebarOpened,window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{this.cdRef.detectChanges()},0)})),this.subs.add(this.summaryService.subscribe(e=>{this._handleTasks(e.executing_tasks),this.mutex.acquire().then(t=>{Wt.a.filter(e.finished_tasks,e=>!this.last_task||nn()(e.end_time).isAfter(this.last_task)).forEach(e=>{const t=this.notificationService.finishedTaskToNotification(e,e.success),n=new Nd.a(t);n.timestamp=e.end_time,n.duration=e.duration,this.last_task&&!nn()(e.end_time).isAfter(this.last_task)||(this.last_task=e.end_time,window.localStorage.setItem("last_task",this.last_task)),this.notificationService.save(n)}),this.cdRef.detectChanges(),t()})}))}_handleTasks(e){for(const t of e)t.description=this.taskMessageService.getRunningTitle(t);this.executingTasks=e}triggerPrometheusAlerts(){this.prometheusAlertService.refresh(),this.prometheusNotificationService.refresh()}removeAll(){this.notificationService.removeAll()}remove(e){this.notificationService.remove(e)}closeSidebar(){this.isSidebarOpened=!1}trackByFn(e){return e}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(wn.a),r.Rb(kb.a),r.Rb(Ub.a),r.Rb(Bb),r.Rb(Gt.a),r.Rb($d),r.Rb(r.D),r.Rb(r.i))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-notifications-sidebar"]],hostVars:2,hostBindings:function(e,t){2&e&&r.Jb("active",t.isSidebarOpened)},decls:18,vars:6,consts:function(){let e,t,n,i,r;return e="Tasks and Notifications",t="Clear notifications",n="Remove notification",i="Duration:",r="There are no notifications.",[["tasksTpl",""],["notificationsTpl",""],["emptyTpl",""],[1,"card",3,"clickOutsideEnabled","clickOutside"],[1,"card-header"],e,["tabindex","-1","type","button",1,"close","float-right",3,"click"],[3,"ngClass"],[3,"options"],[1,"card-body"],[4,"ngTemplateOutlet"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"card","tc_task","border-0"],[1,"row","no-gutters"],[1,"col-md-2","text-center"],[1,"text-info",3,"ngClass"],[1,"col-md-9"],[1,"card-body","p-1"],[1,"card-title","bold"],[1,"mb-1"],["type","info",3,"value","striped","animated"],[1,"card-text","text-muted"],[1,"date","float-left"],[1,"float-right"],[4,"ngIf"],["type","button",1,"btn","btn-light","btn-block",3,"click"],["aria-hidden","true",3,"ngClass"],t,[3,"ngClass",4,"ngFor","ngForOf"],[1,"card","tc_notification","border-0"],[1,"col-md-10"],["title",n,1,"btn","btn-link","float-right","mt-0","pt-0",3,"click"],[1,"card-text",3,"innerHtml"],[1,"date",3,"title"],[1,"float-right","custom-icon",3,"ngClass","title"],i,[1,"message","text-center"],r]},template:function(e,t){if(1&e&&(r.Pc(0,Zb,1,2,"ng-template",null,0,r.Qc),r.Pc(2,sg,1,1,"ng-template",null,1,r.Qc),r.Pc(4,ag,1,1,"ng-template",null,2,r.Qc),r.Xb(6,"div",3),r.lc("clickOutside",function(){return t.closeSidebar()}),r.Xb(7,"div",4),r.Vb(8),r.bc(9,5),r.Ub(),r.Xb(10,"button",6),r.lc("click",function(){return t.closeSidebar()}),r.Xb(11,"span"),r.Sb(12,"i",7),r.Wb(),r.Wb(),r.Wb(),r.Xb(13,"ngx-simplebar",8),r.Xb(14,"div",9),r.Pc(15,cg,1,0,"ng-container",10),r.Pc(16,lg,1,0,"ng-container",10),r.Pc(17,ug,1,0,"ng-container",10),r.Wb(),r.Wb(),r.Wb()),2&e){const e=r.Fc(1),n=r.Fc(3),i=r.Fc(5);r.Db(6),r.uc("clickOutsideEnabled",t.isSidebarOpened),r.Db(6),r.uc("ngClass",t.icons.close),r.Db(1),r.uc("options",t.simplebar),r.Db(2),r.uc("ngTemplateOutlet",e),r.Db(1),r.uc("ngTemplateOutlet",n),r.Db(1),r.uc("ngTemplateOutlet",i)}},directives:[qb.a,On.a,s.p,Gb.a,s.w,s.q,Jt.z,s.r],pipes:[Xt.a,Br.a,Qd],styles:["[_nghost-%COMP%]{bottom:10px;max-width:90vw;position:fixed;right:-350px;top:53px;transition:all .6s;width:350px;z-index:9}.active[_nghost-%COMP%]{right:20px}.card[_ngcontent-%COMP%]{height:100%}.card-body[_ngcontent-%COMP%]{padding-left:0;padding-right:5px;padding-top:3px}ngx-simplebar[_ngcontent-%COMP%]{height:calc(100% - 42.2px)}.separator[_ngcontent-%COMP%]{background-color:#e9ecef;color:#6c757d;font-size:1rem;padding:5px 12px}.btn-block[_ngcontent-%COMP%]{width:98%}.btn-link[_ngcontent-%COMP%] .fa-trash-o[_ngcontent-%COMP%]{color:#000}table[_ngcontent-%COMP%]{width:100%}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0;padding-bottom:1rem;padding-top:1rem}hr[_ngcontent-%COMP%]{margin-bottom:2px;margin-top:2px}.card-text[_ngcontent-%COMP%]{margin-right:15px}"],changeDetection:0}),e})();function hg(e,t){1&e&&r.Sb(0,"span",5)}const fg=function(e){return{running:e}},pg=function(e){return[e]};let mg=(()=>{class e{constructor(e,t){this.notificationService=e,this.summaryService=t,this.icons=_n.a,this.hasRunningTasks=!1,this.hasNotifications=!1,this.subs=new ir.a}ngOnInit(){this.subs.add(this.summaryService.subscribe(e=>{this.hasRunningTasks=e.executing_tasks.length>0})),this.subs.add(this.notificationService.data$.subscribe(e=>{this.hasNotifications=e.length>0}))}ngOnDestroy(){this.subs.unsubscribe()}toggleSidebar(){this.notificationService.toggleSidebar()}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(wn.a),r.Rb(kb.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-notifications"]],decls:5,vars:7,consts:function(){let e,t;return e="Tasks and Notifications",t="Tasks and Notifications",[["title",e,3,"ngClass","click"],[3,"ngClass"],["class","dot",4,"ngIf"],[1,"d-md-none"],t,[1,"dot"]]},template:function(e,t){1&e&&(r.Xb(0,"a",0),r.lc("click",function(){return t.toggleSidebar()}),r.Sb(1,"i",1),r.Pc(2,hg,1,0,"span",2),r.Xb(3,"span",3),r.bc(4,4),r.Wb(),r.Wb()),2&e&&(r.uc("ngClass",r.zc(3,fg,t.hasRunningTasks)),r.Db(1),r.uc("ngClass",r.zc(5,pg,t.icons.bell)),r.Db(1),r.uc("ngIf",t.hasNotifications))},directives:[s.p,s.r],styles:[".running[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#2b99a8}.running[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%]{color:#fff}a[_ngcontent-%COMP%] .dot[_ngcontent-%COMP%]{background-color:#2b99a8;border:2px solid #374249;border-radius:50%;height:11px;position:absolute;right:17px;top:10px;width:10px}a[_ngcontent-%COMP%]:hover .dot[_ngcontent-%COMP%]{background-color:#fff;border-color:#2b99a8}"]}),e})();var bg=n("e0ae");let gg=(()=>{class e{constructor(e,t,n,i){this.activeModal=e,this.summaryService=t,this.userService=n,this.authStorageService=i,this.userPermission=this.authStorageService.getPermissions().user}ngOnInit(){this.projectConstants=gn.c,this.hostAddr=window.location.hostname,this.modalVariables=this.setVariables(),this.subs=this.summaryService.subscribe(e=>{const t=e.version.replace("ceph version ","").split(" ");this.hostAddr=e.mgr_host.replace(/(^\w+:|^)\/\//,"").replace(/\/$/,""),this.versionNumber=t[0],this.versionHash=t[1],this.versionName=t.slice(2,t.length).join(" ")})}ngOnDestroy(){this.subs.unsubscribe()}setVariables(){const e={};e.user=localStorage.getItem("dashboard_username"),e.role="user",this.userPermission.read&&this.userService.get(e.user).subscribe(t=>{e.role=t.roles});const t=Object(bg.a)();return e.browserName=t&&t.name?t.name:"Not detected",e.browserVersion=t&&t.version?t.version:"Not detected",e.browserOS=t&&t.os?t.os:"Not detected",e}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Jt.a),r.Rb(kb.a),r.Rb($m.a),r.Rb(Gt.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-about"]],decls:46,vars:13,consts:[[1,"about-container"],[1,"modal-header"],["type","button","aria-label","Close",1,"close","float-right",3,"click"],["aria-hidden","true"],[1,"modal-body"],["src","assets/Ceph_Ceph_Logo_with_text_red_white.svg",1,"ceph-logo",3,"alt"],[1,"product-versions"],[1,"modal-footer"],[1,"text-left"]],template:function(e,t){1&e&&(r.Xb(0,"div",0),r.Xb(1,"div",1),r.Xb(2,"button",2),r.lc("click",function(){return t.activeModal.close()}),r.Xb(3,"span",3),r.Rc(4,"\xd7"),r.Wb(),r.Wb(),r.Wb(),r.Xb(5,"div",4),r.Sb(6,"img",5),r.Xb(7,"h3"),r.Xb(8,"strong"),r.Rc(9),r.Wb(),r.Wb(),r.Xb(10,"div",6),r.Xb(11,"strong"),r.Rc(12,"Version"),r.Wb(),r.Sb(13,"br"),r.Rc(14),r.Sb(15,"br"),r.Rc(16),r.Wb(),r.Sb(17,"br"),r.Xb(18,"dl"),r.Xb(19,"dt"),r.Rc(20,"Ceph Manager"),r.Wb(),r.Xb(21,"dd"),r.Rc(22),r.Wb(),r.Xb(23,"dt"),r.Rc(24,"User"),r.Wb(),r.Xb(25,"dd"),r.Rc(26),r.Wb(),r.Xb(27,"dt"),r.Rc(28,"User Role"),r.Wb(),r.Xb(29,"dd"),r.Rc(30),r.Wb(),r.Xb(31,"dt"),r.Rc(32,"Browser"),r.Wb(),r.Xb(33,"dd"),r.Rc(34),r.Wb(),r.Xb(35,"dt"),r.Rc(36,"Browser Version"),r.Wb(),r.Xb(37,"dd"),r.Rc(38),r.Wb(),r.Xb(39,"dt"),r.Rc(40,"Browser OS"),r.Wb(),r.Xb(41,"dd"),r.Rc(42),r.Wb(),r.Wb(),r.Wb(),r.Xb(43,"div",7),r.Xb(44,"div",8),r.Rc(45),r.Wb(),r.Wb(),r.Wb()),2&e&&(r.Db(6),r.vc("alt",t.projectConstants.organization),r.Db(3),r.Sc(t.projectConstants.projectName),r.Db(5),r.Uc(" ",t.versionNumber," ",t.versionHash," "),r.Db(2),r.Tc(" ",t.versionName," "),r.Db(6),r.Sc(t.hostAddr),r.Db(4),r.Sc(t.modalVariables.user),r.Db(4),r.Sc(t.modalVariables.role),r.Db(4),r.Sc(t.modalVariables.browserName),r.Db(4),r.Sc(t.modalVariables.browserVersion),r.Db(4),r.Sc(t.modalVariables.browserOS),r.Db(3),r.Uc(" ",t.projectConstants.copyright," ",t.projectConstants.license," "))},directives:[On.a],styles:[".about-container[_ngcontent-%COMP%]{background-color:#374249;background-image:url(ceph_background.e82dd79127290ddbe8cb.gif);background-position:100% 100%;background-repeat:no-repeat;color:#fff;text-shadow:1px 1px #374249}.product-versions[_ngcontent-%COMP%]{margin-top:30px}.product-versions[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin-right:10px}.modal-header[_ngcontent-%COMP%]{border-bottom:0}.modal-header[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{color:#fff;font-size:2em}.modal-body[_ngcontent-%COMP%]{padding-left:80px;padding-right:80px}.ceph-logo[_ngcontent-%COMP%]{margin-bottom:30px;width:25%}.modal-footer[_ngcontent-%COMP%]{border-top:0;display:block;padding:15px 80px 35px}"]}),e})();const _g=function(e){return[e]},vg=function(e){return{disabled:e}};let yg=(()=>{class e{constructor(e,t){this.modalService=e,this.docService=t,this.icons=_n.a}ngOnInit(){this.docService.subscribeOnce("dashboard",e=>{this.docsUrl=e})}openAboutModal(){this.modalRef=this.modalService.show(gg,null,{size:"lg"})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(yn.a),r.Rb(hb.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-dashboard-help"]],decls:12,vars:7,consts:function(){let e,t,n,i,r;return e="Help",t="Help",n="documentation",i="API",r="About",[["ngbDropdown","","placement","bottom-right"],["ngbDropdownToggle","","title",e],[3,"ngClass"],[1,"d-md-none"],t,["ngbDropdownMenu",""],["ngbDropdownItem","","target","_blank",1,"text-capitalize",3,"ngClass","href"],n,["ngbDropdownItem","","href","/docs","target","_blank"],i,["ngbDropdownItem","",3,"click"],r]},template:function(e,t){1&e&&(r.Xb(0,"div",0),r.Xb(1,"a",1),r.Sb(2,"i",2),r.Xb(3,"span",3),r.bc(4,4),r.Wb(),r.Wb(),r.Xb(5,"div",5),r.Xb(6,"a",6),r.bc(7,7),r.Wb(),r.Xb(8,"a",8),r.bc(9,9),r.Wb(),r.Xb(10,"button",10),r.lc("click",function(){return t.openAboutModal()}),r.bc(11,11),r.Wb(),r.Wb(),r.Wb()),2&e&&(r.Db(2),r.uc("ngClass",r.zc(3,_g,t.icons.questionCircle)),r.Db(4),r.vc("href",t.docsUrl,r.Lc),r.uc("ngClass",r.zc(5,vg,!t.docsUrl)))},directives:[Jt.i,Jt.m,s.p,Jt.k,Jt.j,On.a],styles:[""]}),e})();function wg(e,t){1&e&&(r.Xb(0,"button",9),r.bc(1,10),r.Wb())}function Dg(e,t){1&e&&(r.Xb(0,"button",11),r.bc(1,12),r.Wb())}const Sg=function(e){return[e]};function xg(e,t){if(1&e&&(r.Xb(0,"div",1),r.Xb(1,"a",2),r.Sb(2,"i",3),r.Xb(3,"span",4),r.bc(4,5),r.Wb(),r.Wb(),r.Xb(5,"div",6),r.Pc(6,wg,2,0,"button",7),r.Pc(7,Dg,2,0,"button",8),r.Wb(),r.Wb()),2&e){const e=r.nc();r.Db(2),r.uc("ngClass",r.zc(3,Sg,e.icons.deepCheck)),r.Db(4),r.uc("ngIf",e.userPermission.read),r.Db(1),r.uc("ngIf",e.configOptPermission.read)}}let kg=(()=>{class e{constructor(e){this.authStorageService=e,this.icons=_n.a;const t=this.authStorageService.getPermissions();this.userPermission=t.user,this.configOptPermission=t.configOpt}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Gt.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-administration"]],decls:1,vars:1,consts:function(){let e,t,n,i;return e="Dashboard Settings",t="Dashboard Settings",n="User management",i="Telemetry configuration",[["ngbDropdown","","placement","bottom-right",4,"ngIf"],["ngbDropdown","","placement","bottom-right"],["ngbDropdownToggle","","title",e,1,"dropdown-toggle"],[3,"ngClass"],[1,"d-md-none"],t,["ngbDropdownMenu",""],["ngbDropdownItem","","routerLink","/user-management",4,"ngIf"],["ngbDropdownItem","","routerLink","/telemetry",4,"ngIf"],["ngbDropdownItem","","routerLink","/user-management"],n,["ngbDropdownItem","","routerLink","/telemetry"],i]},template:function(e,t){1&e&&r.Pc(0,xg,8,5,"div",0),2&e&&r.uc("ngIf",t.userPermission.read)},directives:[s.r,Jt.i,Jt.m,s.p,Jt.k,On.a,Jt.j,Pt.f],styles:[""]}),e})();const Tg=function(e){return[e]};function Mg(e,t){if(1&e&&(r.Xb(0,"button",12),r.Sb(1,"i",2),r.Xb(2,"span"),r.bc(3,13),r.Wb(),r.Wb()),2&e){const e=r.nc();r.Db(1),r.uc("ngClass",r.zc(1,Tg,e.icons.lock))}}let Cg=(()=>{class e{constructor(e,t){this.authStorageService=e,this.authService=t,this.icons=_n.a}ngOnInit(){this.username=this.authStorageService.getUsername(),this.sso=this.authStorageService.isSSO()}logout(){this.authService.logout()}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Gt.a),r.Rb(zm.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-identity"]],decls:15,vars:8,consts:function(){let e,t,n,i,r;return e="Logged in user",t="Logged in user",n="Signed in as " + "\ufffd#8\ufffd" + "" + "\ufffd0\ufffd" + "" + "\ufffd/#8\ufffd" + "",i="Sign out",r="Change password",[["ngbDropdown","","placement","bottom-right"],["ngbDropdownToggle","","title",e],[3,"ngClass"],[1,"d-md-none"],t,["ngbDropdownMenu",""],["ngbDropdownItem","","disabled",""],n,[1,"dropdown-divider"],["ngbDropdownItem","","routerLink","/user-profile/edit",4,"ngIf"],["ngbDropdownItem","",3,"click"],i,["ngbDropdownItem","","routerLink","/user-profile/edit"],r]},template:function(e,t){1&e&&(r.Xb(0,"div",0),r.Xb(1,"a",1),r.Sb(2,"i",2),r.Xb(3,"span",3),r.bc(4,4),r.Wb(),r.Wb(),r.Xb(5,"div",5),r.Xb(6,"button",6),r.hc(7,7),r.Sb(8,"strong"),r.ec(),r.Wb(),r.Sb(9,"li",8),r.Pc(10,Mg,4,3,"button",9),r.Xb(11,"button",10),r.lc("click",function(){return t.logout()}),r.Sb(12,"i",2),r.Xb(13,"span"),r.bc(14,11),r.Wb(),r.Wb(),r.Wb(),r.Wb()),2&e&&(r.Db(2),r.uc("ngClass",r.zc(4,Tg,t.icons.user)),r.Db(6),r.fc(t.username),r.cc(7),r.Db(2),r.uc("ngIf",!t.sso),r.Db(2),r.uc("ngClass",r.zc(6,Tg,t.icons.signOut)))},directives:[Jt.i,Jt.m,s.p,Jt.k,On.a,Jt.j,s.r,Pt.f],styles:[""]}),e})();function Og(e,t){1&e&&r.Tb(0)}function Lg(e,t){1&e&&r.Tb(0)}function Eg(e,t){if(1&e){const e=r.Yb();r.Xb(0,"li",21),r.Sb(1,"cd-language-selector",22),r.Wb(),r.Xb(2,"li",21),r.Xb(3,"cd-notifications",23),r.lc("click",function(){return r.Ic(e),r.nc().toggleRightSidebar()}),r.Wb(),r.Wb(),r.Xb(4,"li",21),r.Sb(5,"cd-dashboard-help",22),r.Wb(),r.Xb(6,"li",21),r.Sb(7,"cd-administration",22),r.Wb(),r.Xb(8,"li",21),r.Sb(9,"cd-identity",22),r.Wb()}}function Ag(e,t){1&e&&(r.Xb(0,"li",49),r.Xb(1,"a",50),r.bc(2,51),r.Wb(),r.Wb())}function Ig(e,t){1&e&&(r.Xb(0,"li",52),r.Xb(1,"a",53),r.bc(2,54),r.Wb(),r.Wb())}function Rg(e,t){1&e&&(r.Xb(0,"li",55),r.Xb(1,"a",56),r.bc(2,57),r.Wb(),r.Wb())}function Pg(e,t){1&e&&(r.Xb(0,"li",58),r.Xb(1,"a",59),r.bc(2,60),r.Wb(),r.Wb())}function Fg(e,t){1&e&&(r.Xb(0,"li",61),r.Xb(1,"a",62),r.bc(2,63),r.Wb(),r.Wb())}function Wg(e,t){1&e&&(r.Xb(0,"li",64),r.Xb(1,"a",65),r.bc(2,66),r.Wb(),r.Wb())}function jg(e,t){1&e&&(r.Xb(0,"li",67),r.Xb(1,"a",68),r.bc(2,69),r.Wb(),r.Wb())}function Yg(e,t){1&e&&(r.Xb(0,"li",70),r.Xb(1,"a",71),r.bc(2,72),r.Wb(),r.Wb())}function Ng(e,t){1&e&&(r.Xb(0,"li",73),r.Xb(1,"a",74),r.bc(2,75),r.Wb(),r.Wb())}function zg(e,t){if(1&e&&(r.Xb(0,"small",80),r.Rc(1),r.Wb()),2&e){const e=r.nc(5);r.Db(1),r.Sc(e.prometheusAlertService.activeAlerts)}}function $g(e,t){if(1&e&&(r.Xb(0,"li",76),r.Xb(1,"a",77),r.Vb(2),r.bc(3,78),r.Ub(),r.Pc(4,zg,2,1,"small",79),r.Wb(),r.Wb()),2&e){const e=r.nc(4);r.Db(4),r.uc("ngIf",e.prometheusAlertService.activeAlerts>0)}}function Hg(e,t){if(1&e){const e=r.Yb();r.Xb(0,"li",35),r.Xb(1,"a",36),r.lc("click",function(){return r.Ic(e),r.nc(3).toggleSubMenu("cluster")}),r.Vb(2),r.bc(3,37),r.Ub(),r.Wb(),r.Xb(4,"ul",38),r.Pc(5,Ag,3,0,"li",39),r.Pc(6,Ig,3,0,"li",40),r.Pc(7,Rg,3,0,"li",41),r.Pc(8,Pg,3,0,"li",42),r.Pc(9,Fg,3,0,"li",43),r.Pc(10,Wg,3,0,"li",44),r.Pc(11,jg,3,0,"li",45),r.Pc(12,Yg,3,0,"li",46),r.Pc(13,Ng,3,0,"li",47),r.Pc(14,$g,5,1,"li",48),r.Wb(),r.Wb()}if(2&e){const e=r.nc(3);r.Db(1),r.Eb("aria-expanded","cluster"==e.displayedSubMenu),r.Db(3),r.uc("ngbCollapse","cluster"!==e.displayedSubMenu),r.Db(1),r.uc("ngIf",e.permissions.hosts.read),r.Db(1),r.uc("ngIf",e.permissions.hosts.read),r.Db(1),r.uc("ngIf",e.permissions.monitor.read),r.Db(1),r.uc("ngIf",e.permissions.hosts.read),r.Db(1),r.uc("ngIf",e.permissions.osd.read),r.Db(1),r.uc("ngIf",e.permissions.configOpt.read),r.Db(1),r.uc("ngIf",e.permissions.osd.read),r.Db(1),r.uc("ngIf",e.permissions.configOpt.read),r.Db(1),r.uc("ngIf",e.permissions.log.read),r.Db(1),r.uc("ngIf",e.permissions.prometheus.read)}}function Xg(e,t){1&e&&(r.Xb(0,"li",81),r.Xb(1,"a",82),r.bc(2,83),r.Wb(),r.Wb())}function Vg(e,t){1&e&&(r.Xb(0,"li",90),r.Xb(1,"a",91),r.bc(2,92),r.Wb(),r.Wb())}function Bg(e,t){if(1&e&&(r.Xb(0,"small",97),r.Rc(1),r.Wb()),2&e){const e=r.nc(5);r.Db(1),r.Sc(null==e.summaryData||null==e.summaryData.rbd_mirroring?null:e.summaryData.rbd_mirroring.warnings)}}function Ug(e,t){if(1&e&&(r.Xb(0,"small",80),r.Rc(1),r.Wb()),2&e){const e=r.nc(5);r.Db(1),r.Sc(null==e.summaryData||null==e.summaryData.rbd_mirroring?null:e.summaryData.rbd_mirroring.errors)}}function qg(e,t){if(1&e&&(r.Xb(0,"li",93),r.Xb(1,"a",94),r.Vb(2),r.bc(3,95),r.Ub(),r.Pc(4,Bg,2,1,"small",96),r.Pc(5,Ug,2,1,"small",79),r.Wb(),r.Wb()),2&e){const e=r.nc(4);r.Db(4),r.uc("ngIf",0!==(null==e.summaryData||null==e.summaryData.rbd_mirroring?null:e.summaryData.rbd_mirroring.warnings)),r.Db(1),r.uc("ngIf",0!==(null==e.summaryData||null==e.summaryData.rbd_mirroring?null:e.summaryData.rbd_mirroring.errors))}}function Gg(e,t){1&e&&(r.Xb(0,"li",98),r.Xb(1,"a",99),r.bc(2,100),r.Wb(),r.Wb())}function Jg(e,t){if(1&e){const e=r.Yb();r.Xb(0,"li",84),r.Xb(1,"a",85),r.lc("click",function(){return r.Ic(e),r.nc(3).toggleSubMenu("block")}),r.Vb(2),r.bc(3,86),r.Ub(),r.Wb(),r.Xb(4,"ul",38),r.Pc(5,Vg,3,0,"li",87),r.Pc(6,qg,6,2,"li",88),r.Pc(7,Gg,3,0,"li",89),r.Wb(),r.Wb()}if(2&e){const e=r.nc().ngIf,t=r.nc(2);r.Db(1),r.uc("ngStyle",t.blockHealthColor()),r.Eb("aria-expanded","block"==t.displayedSubMenu),r.Db(3),r.uc("ngbCollapse","block"!==t.displayedSubMenu),r.Db(1),r.uc("ngIf",t.permissions.rbdImage.read&&e.rbd),r.Db(1),r.uc("ngIf",t.permissions.rbdMirroring.read&&e.mirroring),r.Db(1),r.uc("ngIf",t.permissions.iscsi.read&&e.iscsi)}}function Kg(e,t){1&e&&(r.Xb(0,"li",101),r.Xb(1,"a",102),r.bc(2,103),r.Wb(),r.Wb())}function Qg(e,t){1&e&&(r.Xb(0,"li",104),r.Xb(1,"a",105),r.bc(2,106),r.Wb(),r.Wb())}function Zg(e,t){if(1&e){const e=r.Yb();r.Xb(0,"li",107),r.Xb(1,"a",36),r.lc("click",function(){return r.Ic(e),r.nc(3).toggleSubMenu("rgw")}),r.Vb(2),r.bc(3,108),r.Ub(),r.Wb(),r.Xb(4,"ul",38),r.Xb(5,"li",109),r.Xb(6,"a",110),r.bc(7,111),r.Wb(),r.Wb(),r.Xb(8,"li",112),r.Xb(9,"a",113),r.bc(10,114),r.Wb(),r.Wb(),r.Xb(11,"li",115),r.Xb(12,"a",116),r.bc(13,117),r.Wb(),r.Wb(),r.Wb(),r.Wb()}if(2&e){const e=r.nc(3);r.Db(1),r.Eb("aria-expanded","rgw"==e.displayedSubMenu),r.Db(3),r.uc("ngbCollapse","rgw"!==e.displayedSubMenu)}}const e_=function(e){return[e]};function t_(e,t){if(1&e&&(r.Vb(0),r.Xb(1,"li",25),r.Xb(2,"a",26),r.Xb(3,"span"),r.bc(4,27),r.Wb(),r.Rc(5,"\xa0 "),r.Sb(6,"i",28),r.oc(7,"healthColor"),r.Wb(),r.Wb(),r.Pc(8,Hg,15,12,"li",29),r.Pc(9,Xg,3,0,"li",30),r.Pc(10,Jg,8,6,"li",31),r.Pc(11,Kg,3,0,"li",32),r.Pc(12,Qg,3,0,"li",33),r.Pc(13,Zg,14,2,"li",34),r.Ub()),2&e){const e=t.ngIf,n=r.nc(2);r.Db(6),r.uc("ngClass",r.zc(10,e_,n.icons.health))("ngStyle",r.pc(7,8,null==n.summaryData?null:n.summaryData.health_status)),r.Db(2),r.uc("ngIf",n.permissions.hosts.read||n.permissions.monitor.read||n.permissions.osd.read||n.permissions.configOpt.read||n.permissions.log.read||n.permissions.prometheus.read),r.Db(1),r.uc("ngIf",n.permissions.pool.read),r.Db(1),r.uc("ngIf",(n.permissions.rbdImage.read||n.permissions.rbdMirroring.read||n.permissions.iscsi.read)&&(e.rbd||e.mirroring||e.iscsi)),r.Db(1),r.uc("ngIf",n.permissions.nfs.read&&e.nfs),r.Db(1),r.uc("ngIf",n.permissions.cephfs.read&&e.cephfs),r.Db(1),r.uc("ngIf",n.permissions.rgw.read&&e.rgw)}}function n_(e,t){if(1&e&&(r.Pc(0,t_,14,12,"ng-container",24),r.oc(1,"async")),2&e){const e=r.nc();r.uc("ngIf",r.pc(1,1,e.enabledFeature$))}}const i_=function(e){return{show:e}},r_=function(e){return{active:e}},s_=["*"];let o_=(()=>{class e{constructor(e,t,n,i,r,s){this.authStorageService=e,this.summaryService=t,this.featureToggles=n,this.telemetryNotificationService=i,this.prometheusAlertService=r,this.motdNotificationService=s,this.notifications=[],this.icons=_n.a,this.rightSidebarOpen=!1,this.showMenuSidebar=!0,this.displayedSubMenu="",this.simplebar={autoHide:!1},this.subs=new ir.a,this.permissions=this.authStorageService.getPermissions(),this.enabledFeature$=this.featureToggles.get()}get class(){return"top-notification-"+this.notifications.length}ngOnInit(){this.subs.add(this.summaryService.subscribe(e=>{this.summaryData=e})),this.subs.add(this.authStorageService.isPwdDisplayed$.subscribe(e=>{this.showTopNotification("isPwdDisplayed",e)})),this.subs.add(this.telemetryNotificationService.update.subscribe(e=>{this.showTopNotification("telemetryNotificationEnabled",e)})),this.subs.add(this.motdNotificationService.motd$.subscribe(e=>{this.showTopNotification("motdNotificationEnabled",Ft.isPlainObject(e))}))}ngOnDestroy(){this.subs.unsubscribe()}blockHealthColor(){if(this.summaryData&&this.summaryData.rbd_mirroring){if(this.summaryData.rbd_mirroring.errors>0)return{color:"#d9534f"};if(this.summaryData.rbd_mirroring.warnings>0)return{color:"#f0ad4e"}}}toggleSubMenu(e){this.displayedSubMenu=this.displayedSubMenu===e?"":e}toggleRightSidebar(){this.rightSidebarOpen=!this.rightSidebarOpen}showTopNotification(e,t){if(t)this.notifications.includes(e)||this.notifications.push(e);else{const t=this.notifications.indexOf(e);t>=0&&this.notifications.splice(t,1)}}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Gt.a),r.Rb(kb.a),r.Rb(tf.a),r.Rb(Nh),r.Rb($d),r.Rb(Ib))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-navigation"]],hostVars:2,hostBindings:function(e,t){2&e&&r.Fb(t.class)},ngContentSelectors:s_,decls:29,vars:12,consts:function(){let e,t,n,i,r,s,o,a,c,l,u,d,h,f,p,m,b,g,_,v,y,w,D,S;return e="Toggle navigation",t="Dashboard",n="Cluster",i="Hosts",r="Physical Disks",s="Monitors",o="Services",a="OSDs",c="Configuration",l="CRUSH map",u="Manager Modules",d="Logs",h="Monitoring",f="Pools",p="Block",m="Images",b="Mirroring",g="iSCSI",_="NFS",v="File Systems",y="Object Gateway",w="Daemons",D="Users",S="Buckets",[[1,"cd-navbar-top"],[1,"navbar","fixed-top","navbar-expand-md","navbar-dark","cd-navbar-brand"],[1,"btn","btn-link","py-0",3,"click"],["aria-hidden","true",1,"fa","fa-bars","fa-2x"],["href","#",1,"navbar-brand","ml-2"],["src","assets/Ceph_Ceph_Logo_with_text_white.svg","alt","Ceph"],["type","button",1,"navbar-toggler",3,"click"],[1,"sr-only"],e,[1,""],[1,"fa","fa-navicon","fa-lg"],[1,"collapse","navbar-collapse",3,"ngClass"],[1,"nav","navbar-nav","cd-navbar-utility","my-2","my-md-0"],[4,"ngTemplateOutlet"],[1,"wrapper"],["id","sidebar",3,"ngClass"],[3,"options"],[1,"list-unstyled","components","cd-navbar-primary"],["id","content",3,"ngClass"],["cd_utilities",""],["cd_menu",""],[1,"nav-item"],[1,"cd-navbar"],[1,"cd-navbar",3,"click"],[4,"ngIf"],["routerLinkActive","active",1,"nav-item","tc_menuitem_dashboard"],["routerLink","/dashboard",1,"nav-link"],t,[3,"ngClass","ngStyle"],["routerLinkActive","active","class","nav-item tc_menuitem_cluster",4,"ngIf"],["routerLinkActive","active","class","nav-item tc_menuitem_pool",4,"ngIf"],["routerLinkActive","active","class","nav-item tc_menuitem_block",4,"ngIf"],["routerLinkActive","active","class","nav-item tc_menuitem_nfs",4,"ngIf"],["routerLinkActive","active","class","nav-item tc_menuitem_cephfs",4,"ngIf"],["routerLinkActive","active","class","nav-item tc_menuitem_rgw",4,"ngIf"],["routerLinkActive","active",1,"nav-item","tc_menuitem_cluster"],["aria-controls","collapseBasic",1,"nav-link","dropdown-toggle",3,"click"],n,[1,"list-unstyled",3,"ngbCollapse"],["routerLinkActive","active","class","tc_submenuitem tc_submenuitem_hosts",4,"ngIf"],["routerLinkActive","active","class","tc_submenuitem tc_submenuitem_cluster_inventory",4,"ngIf"],["routerLinkActive","active","class","tc_submenuitem tc_submenuitem_cluster_monitor",4,"ngIf"],["routerLinkActive","active","class","tc_submenuitem tc_submenuitem_cluster_services",4,"ngIf"],["routerLinkActive","active","class","tc_submenuitem tc_submenuitem_osds",4,"ngIf"],["routerLinkActive","active","class","tc_submenuitem tc_submenuitem_configuration",4,"ngIf"],["routerLinkActive","active","class","tc_submenuitem tc_submenuitem_crush",4,"ngIf"],["routerLinkActive","active","class","tc_submenuitem tc_submenuitem_modules",4,"ngIf"],["routerLinkActive","active","class","tc_submenuitem tc_submenuitem_log",4,"ngIf"],["routerLinkActive","active","class","tc_submenuitem tc_submenuitem_monitoring",4,"ngIf"],["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_hosts"],["routerLink","/hosts"],i,["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_cluster_inventory"],["routerLink","/inventory"],r,["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_cluster_monitor"],["routerLink","/monitor/"],s,["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_cluster_services"],["routerLink","/services/"],o,["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_osds"],["routerLink","/osd"],a,["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_configuration"],["routerLink","/configuration"],c,["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_crush"],["routerLink","/crush-map"],l,["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_modules"],["routerLink","/mgr-modules"],u,["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_log"],["routerLink","/logs"],d,["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_monitoring"],["routerLink","/monitoring"],h,["class","badge badge-danger",4,"ngIf"],[1,"badge","badge-danger"],["routerLinkActive","active",1,"nav-item","tc_menuitem_pool"],["routerLink","/pool",1,"nav-link"],f,["routerLinkActive","active",1,"nav-item","tc_menuitem_block"],["aria-controls","collapseBasic",1,"nav-link","dropdown-toggle",3,"ngStyle","click"],p,["routerLinkActive","active","class","tc_submenuitem tc_submenuitem_block_images",4,"ngIf"],["routerLinkActive","active","class","tc_submenuitem tc_submenuitem_block_mirroring",4,"ngIf"],["routerLinkActive","active","class","tc_submenuitem tc_submenuitem_block_iscsi",4,"ngIf"],["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_block_images"],["routerLink","/block/rbd"],m,["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_block_mirroring"],["routerLink","/block/mirroring"],b,["class","badge badge-warning",4,"ngIf"],[1,"badge","badge-warning"],["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_block_iscsi"],["routerLink","/block/iscsi"],g,["routerLinkActive","active",1,"nav-item","tc_menuitem_nfs"],["routerLink","/nfs",1,"nav-link"],_,["routerLinkActive","active",1,"nav-item","tc_menuitem_cephfs"],["routerLink","/cephfs",1,"nav-link"],v,["routerLinkActive","active",1,"nav-item","tc_menuitem_rgw"],y,["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_rgw_daemons"],["routerLink","/rgw/daemon"],w,["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_rgw_users"],["routerLink","/rgw/user"],D,["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_rgw_buckets"],["routerLink","/rgw/bucket"],S]},template:function(e,t){if(1&e&&(r.tc(),r.Sb(0,"cd-pwd-expiration-notification"),r.Sb(1,"cd-telemetry-notification"),r.Sb(2,"cd-motd"),r.Sb(3,"cd-notifications-sidebar"),r.Xb(4,"div",0),r.Xb(5,"nav",1),r.Xb(6,"button",2),r.lc("click",function(){return t.showMenuSidebar=!t.showMenuSidebar}),r.Sb(7,"i",3),r.Wb(),r.Xb(8,"a",4),r.Sb(9,"img",5),r.Wb(),r.Xb(10,"button",6),r.lc("click",function(){return t.toggleRightSidebar()}),r.Xb(11,"span",7),r.bc(12,8),r.Wb(),r.Xb(13,"span",9),r.Sb(14,"i",10),r.Wb(),r.Wb(),r.Xb(15,"div",11),r.Xb(16,"ul",12),r.Pc(17,Og,1,0,"ng-container",13),r.Wb(),r.Wb(),r.Wb(),r.Wb(),r.Xb(18,"div",14),r.Xb(19,"nav",15),r.Xb(20,"ngx-simplebar",16),r.Xb(21,"ul",17),r.Pc(22,Lg,1,0,"ng-container",13),r.Wb(),r.Wb(),r.Wb(),r.Xb(23,"div",18),r.sc(24),r.Wb(),r.Wb(),r.Pc(25,Eg,10,0,"ng-template",null,19,r.Qc),r.Pc(27,n_,2,3,"ng-template",null,20,r.Qc)),2&e){const e=r.Fc(26),n=r.Fc(28);r.Db(15),r.uc("ngClass",r.zc(6,i_,t.rightSidebarOpen)),r.Db(2),r.uc("ngTemplateOutlet",e),r.Db(2),r.uc("ngClass",r.zc(8,r_,!t.showMenuSidebar)),r.Db(1),r.uc("options",t.simplebar),r.Db(2),r.uc("ngTemplateOutlet",n),r.Db(1),r.uc("ngClass",r.zc(10,r_,!t.showMenuSidebar))}},directives:[jb,Nb,Hb,dg,Jt.v,On.a,s.p,s.w,Gb.a,Db,mg,yg,kg,Cg,s.r,Pt.g,Pt.h,s.s,Jt.e],pipes:[s.b,_f],styles:['@charset "UTF-8"; cd-navigation .cd-navbar-top .cd-navbar-brand{background:#374249;border-top:4px solid #2b99a8} cd-navigation .cd-navbar-top .cd-navbar-brand .navbar-brand, cd-navigation .cd-navbar-top .cd-navbar-brand .navbar-brand:hover{color:#e9ecef;height:auto;padding:0} cd-navigation .cd-navbar-top .cd-navbar-brand .navbar-brand>img{height:25px} cd-navigation .cd-navbar-top .cd-navbar-brand .navbar-toggler{border:0} cd-navigation .cd-navbar-top .cd-navbar-brand .navbar-toggler:focus, cd-navigation .cd-navbar-top .cd-navbar-brand .navbar-toggler:hover{outline:0} cd-navigation .cd-navbar-top .cd-navbar-brand .navbar-toggler .fa-navicon{color:#e9ecef} cd-navigation .cd-navbar-top .cd-navbar-brand .navbar-collapse{padding:0} cd-navigation .cd-navbar-top .cd-navbar-brand .cd-navbar-utility>.active>a{background-color:#2b99a8;color:#e9ecef} cd-navigation .cd-navbar-top .cd-navbar-brand .cd-navbar-utility>li>.open>a, cd-navigation .cd-navbar-top .cd-navbar-brand .cd-navbar-utility>li>.open>a:focus, cd-navigation .cd-navbar-top .cd-navbar-brand .cd-navbar-utility>li>.open>a:hover{background-color:initial;border-color:#0000;color:#e9ecef} cd-navigation .cd-navbar-top .navbar-nav>li>.cd-navbar>[ngbDropdown]>a, cd-navigation .cd-navbar-top .navbar-nav>li>.cd-navbar>a, cd-navigation .cd-navbar-top .navbar-nav>li>a{color:#e9ecef;display:block;line-height:1;padding:13.5px 18px!important;position:relative;text-decoration:none} cd-navigation .cd-navbar-top .navbar-nav .nav-link, cd-navigation .cd-navbar-top .navbar-nav .nav-link:hover{color:#e9ecef} cd-navigation .cd-navbar-top .navbar-nav>li:hover, cd-navigation .cd-navbar-top .navbar-nav>li>.cd-navbar>[ngbDropdown].open>a, cd-navigation .cd-navbar-top .navbar-nav>li>.cd-navbar>[ngbDropdown]>a:hover, cd-navigation .cd-navbar-top .navbar-nav>li>.cd-navbar>a:hover, cd-navigation .cd-navbar-top .navbar-nav>li>a:hover{background-color:#2b99a8} cd-navigation .cd-navbar-top .navbar-nav>.open>.cd-navbar>[ngbDropdown]>a, cd-navigation .cd-navbar-top .navbar-nav>.open>.cd-navbar>[ngbDropdown]>a:hover, cd-navigation .cd-navbar-top .navbar-nav>.open>.cd-navbar>a, cd-navigation .cd-navbar-top .navbar-nav>.open>.cd-navbar>a:focus, cd-navigation .cd-navbar-top .navbar-nav>.open>.cd-navbar>a:hover, cd-navigation .cd-navbar-top .navbar-nav>.open>.cd-navbar>li>a:focus, cd-navigation .cd-navbar-top .navbar-nav>.open>a, cd-navigation .cd-navbar-top .navbar-nav>.open>a:focus, cd-navigation .cd-navbar-top .navbar-nav>.open>a:hover{background-color:initial;border-color:#0000;color:#e9ecef}@media (min-width:768px){ cd-navigation .cd-navbar-top .cd-navbar-utility{border-bottom:0;font-size:1.1rem;position:absolute;right:0;top:0}}@media (max-width:calc(768px - 1px)){ cd-navigation .cd-navbar-top .navbar-nav{margin:0} cd-navigation .cd-navbar-top .navbar-nav .fa{margin-right:.5em} cd-navigation .cd-navbar-top .navbar-nav .open .dropdown-menu{background-color:#2b99a8;border:0;padding-bottom:0;padding-top:0} cd-navigation .cd-navbar-top .navbar-nav .open .dropdown-menu>li>a{color:#e9ecef;padding:5px 15px 5px 35px} cd-navigation .cd-navbar-top .navbar-nav .open .dropdown-menu>.active>a{background-color:#2b99a8} cd-navigation .cd-navbar-top .navbar-nav>li>a:hover{background-color:#2b99a8}}.cd-navbar-primary[_ngcontent-%COMP%] .active[_ngcontent-%COMP%] > a[_ngcontent-%COMP%], .cd-navbar-primary[_ngcontent-%COMP%] > .active[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:focus, .cd-navbar-primary[_ngcontent-%COMP%] > .active[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:hover{background-color:#2b99a8!important;border:0!important;color:#e9ecef!important}.wrapper[_ngcontent-%COMP%]{display:flex;width:100%}.wrapper[_ngcontent-%COMP%] #sidebar[_ngcontent-%COMP%]{background:#374249;bottom:0;color:#fff;left:0;overflow-y:auto;position:fixed;top:43px;transition:all .3s;width:200px;z-index:999}.wrapper[_ngcontent-%COMP%] #sidebar.active[_ngcontent-%COMP%]{margin-left:-200px}.wrapper[_ngcontent-%COMP%] #sidebar[_ngcontent-%COMP%] ul.component[_ngcontent-%COMP%]{margin:0;padding:20px 0}.wrapper[_ngcontent-%COMP%] #sidebar[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#fff;padding:10px}.wrapper[_ngcontent-%COMP%] #sidebar[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff;display:block;font-size:1.1em;padding:10px 10px 10px 27px;text-decoration:none}.wrapper[_ngcontent-%COMP%] #sidebar[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:#2b99a8;color:#fff}.wrapper[_ngcontent-%COMP%] #sidebar[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] > .badge[_ngcontent-%COMP%]{margin-left:5px}.wrapper[_ngcontent-%COMP%] #sidebar[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] > a[_ngcontent-%COMP%], .wrapper[_ngcontent-%COMP%] #sidebar[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] a[aria-expanded=true][_ngcontent-%COMP%]{color:#fff}.wrapper[_ngcontent-%COMP%] a.dropdown-toggle[_ngcontent-%COMP%]{position:relative}.wrapper[_ngcontent-%COMP%] a.dropdown-toggle[_ngcontent-%COMP%]:after{border:0;content:"\uf054";font-family:ForkAwesome;font-size:1rem;position:absolute;right:20px;transition:transform .3s ease-in-out}.wrapper[_ngcontent-%COMP%] a.dropdown-toggle[aria-expanded=true][_ngcontent-%COMP%]:after{transform:rotate(90deg)}.wrapper[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{background:#4d5c66;font-size:.9em!important;padding-left:40px!important}.wrapper[_ngcontent-%COMP%] .cd-navbar-primary[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:focus{outline:none}.wrapper[_ngcontent-%COMP%] ngx-simplebar[_ngcontent-%COMP%]{height:100%}#content[_ngcontent-%COMP%]{bottom:0;position:absolute;right:0;top:43px;transition:all .3s;width:calc(100% - 200px)}#content.active[_ngcontent-%COMP%]{width:100vw}.top-notification-1[_nghost-%COMP%] .cd-navbar-top[_ngcontent-%COMP%] .cd-navbar-brand[_ngcontent-%COMP%]{top:37.6px}.top-notification-1[_nghost-%COMP%] #sidebar[_ngcontent-%COMP%]{top:80.6px}.top-notification-1[_nghost-%COMP%] #content[_ngcontent-%COMP%]{top:80.6px}.top-notification-1[_nghost-%COMP%] cd-notifications-sidebar[_ngcontent-%COMP%]{top:90.6px}.top-notification-2[_nghost-%COMP%] .cd-navbar-top[_ngcontent-%COMP%] .cd-navbar-brand[_ngcontent-%COMP%]{top:75.2px}.top-notification-2[_nghost-%COMP%] #sidebar[_ngcontent-%COMP%]{top:118.2px}.top-notification-2[_nghost-%COMP%] #content[_ngcontent-%COMP%]{top:118.2px}.top-notification-2[_nghost-%COMP%] cd-notifications-sidebar[_ngcontent-%COMP%]{top:128.2px}']}),e})();var a_=n("5yfJ"),c_=n("9xzX");function l_(e,t){if(1&e){const e=r.Yb();r.Vb(0),r.Xb(1,"button",8),r.lc("click",function(){r.Ic(e);const n=t.$implicit;return r.nc(3).onDaemonSelection(n)}),r.Rc(2),r.Wb(),r.Ub()}if(2&e){const e=t.$implicit;r.Db(2),r.Uc(" ",e.id," ( ",e.zonegroup_name," ) ")}}function u_(e,t){if(1&e&&(r.Vb(0),r.Xb(1,"div",1),r.Xb(2,"span",2),r.bc(3,3),r.Wb(),r.Xb(4,"div",4),r.Xb(5,"button",5),r.Rc(6),r.Wb(),r.Xb(7,"div",6),r.Pc(8,l_,3,2,"ng-container",7),r.Wb(),r.Wb(),r.Wb(),r.Ub()),2&e){const e=r.nc().ngIf;r.Db(6),r.Uc(" ",e.selectedDaemon.id," ( ",e.selectedDaemon.zonegroup_name," ) "),r.Db(2),r.uc("ngForOf",e.daemons)}}function d_(e,t){if(1&e&&(r.Vb(0),r.Pc(1,u_,9,3,"ng-container",0),r.Ub()),2&e){const e=t.ngIf,n=r.nc();r.Db(1),r.uc("ngIf",e.ftMap&&e.ftMap.rgw&&n.permissions.rgw.read&&n.isRgwRoute&&e.daemons.length>1)}}const h_=function(e,t,n){return{ftMap:e,daemons:t,selectedDaemon:n}};let f_=(()=>{class e{constructor(e,t,n,i,r){this.authStorageService=e,this.featureToggles=t,this.router=n,this.timerService=i,this.rgwDaemonService=r,this.REFRESH_INTERVAL=5e3,this.subs=new ir.a,this.rgwUrlPrefix="/rgw",this.isRgwRoute=document.location.href.includes(this.rgwUrlPrefix)}ngOnInit(){this.permissions=this.authStorageService.getPermissions(),this.featureToggleMap$=this.featureToggles.get(),this.subs.add(this.router.events.pipe(Object(da.a)(e=>e instanceof Pt.b)).subscribe(()=>this.isRgwRoute=this.router.url.startsWith(this.rgwUrlPrefix))),this.subs.add(this.timerService.get(()=>this.isRgwRoute?this.rgwDaemonService.list():a_.a,this.REFRESH_INTERVAL).subscribe())}ngOnDestroy(){this.subs.unsubscribe()}onDaemonSelection(e){this.rgwDaemonService.selectDaemon(e),this.reloadData()}reloadData(){const e=this.router.url;this.router.navigateByUrl(this.rgwUrlPrefix,{skipLocationChange:!0}).finally(()=>{this.router.navigate([e])})}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Gt.a),r.Rb(tf.a),r.Rb(Pt.e),r.Rb(jc.a),r.Rb(c_.a))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-context"]],decls:4,vars:11,consts:function(){let e,t;return e="Selected Object Gateway:",t="Select Object Gateway",[[4,"ngIf"],[1,"cd-context-bar","pt-3","pb-3"],[1,"mr-1"],e,["ngbDropdown","","placement","bottom-left",1,"d-inline-block","ml-2"],["ngbDropdownToggle","","title",t,1,"btn","btn-outline-info","ctx-bar-selected-rgw-daemon"],["ngbDropdownMenu",""],[4,"ngFor","ngForOf"],["ngbDropdownItem","",1,"ctx-bar-available-rgw-daemon",3,"click"]]},template:function(e,t){1&e&&(r.Pc(0,d_,2,1,"ng-container",0),r.oc(1,"async"),r.oc(2,"async"),r.oc(3,"async")),2&e&&r.uc("ngIf",r.Bc(7,h_,r.pc(1,1,t.featureToggleMap$),r.pc(2,3,t.rgwDaemonService.daemons$),r.pc(3,5,t.rgwDaemonService.selectedDaemon$)))},directives:[s.r,Jt.i,On.a,Jt.m,Jt.k,s.q,Jt.j],pipes:[s.b],styles:[".cd-context-bar[_ngcontent-%COMP%]{border-bottom:1px solid #dee2e6}"]}),e})();var p_=n("GyhO"),m_=n("Cfvw"),b_=n("zx2A");class g_{constructor(e,t){this.keySelector=e,this.flushes=t}call(e,t){return t.subscribe(new __(e,this.keySelector,this.flushes))}}class __ extends b_.b{constructor(e,t,n){super(e),this.keySelector=t,this.values=new Set,n&&this.add(Object(b_.c)(n,new b_.a(this)))}notifyNext(){this.values.clear()}notifyError(e){this._error(e)}_next(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)}_useKeySelector(e){let t;const{destination:n}=this;try{t=this.keySelector(e)}catch(i){return void n.error(i)}this._finalizeNext(t,e)}_finalizeNext(e,t){const{values:n}=this;n.has(e)||(n.add(e),this.destination.next(t))}}var v_=n("SxV6");class y_{resolve(e){const t=e.routeConfig.data,n=null===t.path?null:this.getFullPath(e),i=[{text:"string"==typeof t.breadcrumbs?t.breadcrumbs:t.breadcrumbs.text||t.text||n,path:n}];return Object(Ai.a)(i)}getFullPath(e){return(e=>e.reduce((e,t)=>e+t.url.reduce((e,t)=>e+"/"+t.path,""),""))(e.pathFromRoot)}}function w_(e,t){if(1&e&&(r.Xb(0,"a",6),r.Rc(1),r.Wb()),2&e){const e=r.nc().$implicit;r.uc("routerLink",e.path),r.Db(1),r.Sc(e.text)}}function D_(e,t){if(1&e&&(r.Xb(0,"span"),r.Rc(1),r.Wb()),2&e){const e=r.nc().$implicit;r.Db(1),r.Sc(e.text)}}const S_=function(e){return{active:e}};function x_(e,t){if(1&e&&(r.Xb(0,"li",3),r.Pc(1,w_,2,2,"a",4),r.Pc(2,D_,2,1,"span",5),r.Wb()),2&e){const e=t.$implicit,n=t.last,i=r.nc(2);r.uc("ngClass",r.zc(3,S_,n&&i.finished)),r.Db(1),r.uc("ngIf",!n&&null!==e.path),r.Db(1),r.uc("ngIf",n||null===e.path)}}function k_(e,t){if(1&e&&(r.Xb(0,"ol",1),r.Pc(1,x_,3,5,"li",2),r.Wb()),2&e){const e=r.nc();r.Db(1),r.uc("ngForOf",e.crumbs)}}let T_=(()=>{class e{constructor(e,t){this.router=e,this.injector=t,this.crumbs=[],this.finished=!1,this.defaultResolver=new y_,this.subscription=this.router.events.pipe(Object(da.a)(e=>e instanceof Pt.c)).subscribe(()=>{this.finished=!1}),this.subscription=this.router.events.pipe(Object(da.a)(e=>e instanceof Pt.b)).subscribe(()=>{var t;this._resolveCrumbs(e.routerState.snapshot.root).pipe(Object(Ni.a)(e=>e),(t=e=>e.text,e=>e.lift(new g_(t,void 0))),Yi(),Object(Ni.a)(e=>{const t=this.postProcess(e);return this.wrapIntoObservable(t).pipe(Object(v_.a)())})).subscribe(e=>{this.finished=!0,this.crumbs=e})})}ngOnDestroy(){this.subscription.unsubscribe()}_resolveCrumbs(e){let t;const n=e.routeConfig&&e.routeConfig.data;if(n&&n.breadcrumbs){let i;i=n.breadcrumbs.prototype instanceof y_?this.injector.get(n.breadcrumbs):this.defaultResolver;const r=i.resolve(e);t=this.wrapIntoObservable(r).pipe(Object(v_.a)())}else t=Object(Ai.a)([]);return e.firstChild&&(t=Object(p_.a)(t,this._resolveCrumbs(e.firstChild))),t}postProcess(e){const t=[];return e.forEach(e=>{const n=e.text.split("/");if(n.length>1){e.text=n[n.length-1];for(let e=0;e<n.length-1;e++)t.push({text:n[e],path:null})}t.push(e)}),t}isPromise(e){return e&&"function"==typeof e.then}wrapIntoObservable(e){return e instanceof Rh.a?e:this.isPromise(e)?Object(m_.a)(Promise.resolve(e)):Object(Ai.a)(e)}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Pt.e),r.Rb(r.v))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-breadcrumbs"]],decls:1,vars:1,consts:[["class","breadcrumb",4,"ngIf"],[1,"breadcrumb"],["class","breadcrumb-item",3,"ngClass",4,"ngFor","ngForOf"],[1,"breadcrumb-item",3,"ngClass"],["preserveFragment","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["preserveFragment","",3,"routerLink"]],template:function(e,t){1&e&&r.Pc(0,k_,2,1,"ol",0),2&e&&r.uc("ngIf",t.crumbs.length)},directives:[s.r,s.q,s.p,Pt.h],styles:['@charset "UTF-8";.breadcrumb[_ngcontent-%COMP%]{background-color:initial;border-radius:0;margin-top:8px;padding:8px 0}.breadcrumb[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]:before{content:"\uf101";font-family:ForkAwesome;padding:0 5px 0 7px}']}),e})();const M_=function(e){return{dashboard:e}};let C_=(()=>{class e{constructor(e,t,n,i){this.router=e,this.summaryService=t,this.taskManagerService=n,this.faviconService=i,this.subs=new ir.a}ngOnInit(){this.subs.add(this.summaryService.startPolling()),this.subs.add(this.taskManagerService.init(this.summaryService)),this.faviconService.init()}ngOnDestroy(){this.subs.unsubscribe()}isDashboardPage(){return"/dashboard"===this.router.url}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Pt.e),r.Rb(kb.a),r.Rb(Mb.a),r.Rb(Tb))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-workbench-layout"]],features:[r.Cb([Tb])],decls:6,vars:3,consts:[[1,"container-fluid","h-100",3,"ngClass"]],template:function(e,t){1&e&&(r.Xb(0,"block-ui"),r.Xb(1,"cd-navigation"),r.Xb(2,"div",0),r.Sb(3,"cd-context"),r.Sb(4,"cd-breadcrumbs"),r.Sb(5,"router-outlet"),r.Wb(),r.Wb(),r.Wb()),2&e&&(r.Db(2),r.uc("ngClass",r.zc(1,M_,t.isDashboardPage())))},directives:[eu,o_,s.p,f_,T_,Pt.j],styles:[".dashboard[_ngcontent-%COMP%]{background-color:#e9ecef;margin:0;padding:0}.container-fluid[_ngcontent-%COMP%]{overflow:auto}"]}),e})();var O_=n("Avrn");let L_=(()=>{class e{constructor(e,t){this.router=e,this.authStorageService=t}canActivate(e,t){return!(this.authStorageService.isLoggedIn()&&!this.authStorageService.isSSO()&&this.authStorageService.getPwdUpdateRequired()&&(this.router.navigate(["/login-change-password"],{queryParams:{returnUrl:t.url}}),1))}canActivateChild(e,t){return this.canActivate(e,t)}}return e.\u0275fac=function(t){return new(t||e)(r.ic(Pt.e),r.ic(Gt.a))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var E_=n("Vhfg");let A_=(()=>{class e{constructor(e,t,n){this.http=e,this.router=t,this.mgrModuleService=n}canActivate(e){return this.doCheck(e)}canActivateChild(e){return this.doCheck(e)}doCheck(t){if(t.url.length>0&&e.ALLOWLIST.includes(t.url[0].path))return Object(Ai.a)(!0);const n=t.data.moduleStatusGuardConfig;let i=!1;return n.backend&&this.mgrModuleService.getConfig("orchestrator").subscribe(e=>{i=n.backend===e.orchestrator},()=>(this.router.navigate([n.redirectTo]),Object(Ai.a)(!1))),this.http.get(`api/${n.apiPath}/status`).pipe(Object(Ii.a)(e=>(e.available||i||this.router.navigate([n.redirectTo||""],{state:{header:n.header,message:e.message,section:n.section,section_info:n.section_info,icon:_n.a.wrench}}),e.available)),Object(up.a)(()=>(this.router.navigate([n.redirectTo]),Object(Ai.a)(!1))))}}return e.ALLOWLIST=["501"],e.\u0275fac=function(t){return new(t||e)(r.ic(o.b),r.ic(Pt.e),r.ic(wl))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),I_=(()=>{class e{constructor(e){this.authStorageService=e}canActivate(){if(!this.authStorageService.isSSO())return!0;throw new ih.c}canActivateChild(){return this.canActivate()}}return e.\u0275fac=function(t){return new(t||e)(r.ic(Gt.a))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),R_=(()=>{class e extends y_{resolve(e){const t=[],n=e.queryParams.fromLink||null;let i="";switch(n){case"/monitor":i="Monitors";break;case"/hosts":i="Hosts"}return t.push({text:"Cluster",path:null}),t.push({text:i,path:n}),t.push({text:"Performance Counters",path:""}),t}}return e.\u0275fac=function(t){return P_(t||e)},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac}),e})();const P_=r.Zb(R_);let F_=(()=>{class e extends y_{resolve(e){const t=e.params.name;return[{text:`${Wt.a.startCase(t)}/Edit`,path:t}]}}return e.\u0275fac=function(t){return W_(t||e)},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac}),e})();const W_=r.Zb(F_),j_=[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"",component:C_,canActivate:[O_.a,L_],canActivateChild:[O_.a,L_],children:[{path:"dashboard",component:lp},{path:"error",component:bb},{path:"expand-cluster",component:Fc,canActivate:[A_],data:{moduleStatusGuardConfig:{apiPath:"orchestrator",redirectTo:"dashboard",backend:"cephadm"},breadcrumbs:"Expand Cluster"}},{path:"hosts",component:yo,data:{breadcrumbs:"Cluster/Hosts"},children:[{path:gn.e.ADD,component:yr,outlet:"modal"}]},{path:"monitor",component:mu,data:{breadcrumbs:"Cluster/Monitors"}},{path:"services",component:Dc,canActivate:[A_],data:{moduleStatusGuardConfig:{apiPath:"orchestrator",redirectTo:"error",section:"orch",section_info:"Orchestrator",header:"Orchestrator is not available"},breadcrumbs:"Cluster/Services"},children:[{path:gn.e.CREATE,component:bc,outlet:"modal"},{path:`${gn.e.EDIT}/:type/:name`,component:bc,outlet:"modal"}]},{path:"inventory",canActivate:[A_],component:Xr,data:{moduleStatusGuardConfig:{apiPath:"orchestrator",redirectTo:"error",section:"orch",section_info:"Orchestrator",header:"Orchestrator is not available"},breadcrumbs:"Cluster/Physical Disks"}},{path:"osd",data:{breadcrumbs:"Cluster/OSDs"},children:[{path:"",component:Wd},{path:gn.e.CREATE,component:Zo,data:{breadcrumbs:gn.a.CREATE}}]},{path:"configuration",data:{breadcrumbs:"Cluster/Configuration"},children:[{path:"",component:Ci},{path:"edit/:name",component:bi,data:{breadcrumbs:gn.a.EDIT}}]},{path:"crush-map",component:Gc,data:{breadcrumbs:"Cluster/CRUSH map"}},{path:"logs",component:yl,data:{breadcrumbs:"Cluster/Logs"}},{path:"telemetry",component:Bh,data:{breadcrumbs:"Telemetry configuration"}},{path:"monitoring",data:{breadcrumbs:"Cluster/Monitoring"},children:[{path:"",redirectTo:"active-alerts",pathMatch:"full"},{path:"active-alerts",data:{breadcrumbs:"Active Alerts"},component:Kd},{path:"alerts",data:{breadcrumbs:"Alerts"},component:nh},{path:"silences",data:{breadcrumbs:"Silences"},children:[{path:"",component:jh},{path:gn.e.CREATE,component:Ah,data:{breadcrumbs:`${gn.a.CREATE} Silence`}},{path:`${gn.e.CREATE}/:id`,component:Ah,data:{breadcrumbs:gn.a.CREATE}},{path:`${gn.e.EDIT}/:id`,component:Ah,data:{breadcrumbs:gn.a.EDIT}},{path:`${gn.e.RECREATE}/:id`,component:Ah,data:{breadcrumbs:gn.a.RECREATE}}]}]},{path:"perf_counters/:type/:id",component:Nm,data:{breadcrumbs:R_}},{path:"mgr-modules",data:{breadcrumbs:"Cluster/Manager Modules"},children:[{path:"",component:hu},{path:"edit/:name",component:$l,data:{breadcrumbs:F_}}]},{path:"pool",data:{breadcrumbs:"Pools"},loadChildren:()=>Promise.all([n.e(1),n.e(5)]).then(n.bind(null,"5azF")).then(e=>e.RoutedPoolModule)},{path:"block",data:{breadcrumbs:!0,text:"Block",path:null},loadChildren:()=>n.e(1).then(n.bind(null,"k/xb")).then(e=>e.RoutedBlockModule)},{path:"cephfs",component:Vn,canActivate:[E_.a],data:{breadcrumbs:"File Systems"}},{path:"rgw",canActivateChild:[E_.a,A_],data:{moduleStatusGuardConfig:{apiPath:"rgw",redirectTo:"error",section:"rgw",section_info:"Object Gateway",header:"The Object Gateway Service is not configured"},breadcrumbs:!0,text:"Object Gateway",path:null},loadChildren:()=>n.e(6).then(n.bind(null,"OkK6")).then(e=>e.RoutedRgwModule)},{path:"user-management",data:{breadcrumbs:"User management",path:null},loadChildren:()=>Promise.resolve().then(n.bind(null,"LceX")).then(e=>e.RoutedAuthModule)},{path:"user-profile",data:{breadcrumbs:"User profile",path:null},children:[{path:gn.e.EDIT,component:Qm,canActivate:[I_],data:{breadcrumbs:gn.a.EDIT}}]},{path:"nfs",canActivateChild:[E_.a,A_],data:{moduleStatusGuardConfig:{apiPath:"nfs-ganesha",redirectTo:"error",section:"nfs-ganesha",section_info:"NFS GANESHA",header:"NFS-Ganesha is not configured"},breadcrumbs:"NFS"},children:[{path:"",component:Ym},{path:gn.e.CREATE,component:Mm,data:{breadcrumbs:gn.a.CREATE}},{path:`${gn.e.EDIT}/:cluster_id/:export_id`,component:Mm,data:{breadcrumbs:gn.a.EDIT}}]}]},{path:"",component:xb,children:[{path:"login",component:db},{path:"login-change-password",component:ob,canActivate:[I_]}]},{path:"",component:gb,children:[{path:"**",redirectTo:"/error"}]}];let Y_=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Pb({type:e}),e.\u0275inj=r.Ob({providers:[F_,R_],imports:[[Pt.i.forRoot(j_,{useHash:!0,preloadingStrategy:Pt.d,relativeLinkResolution:"legacy"})],Pt.i]}),e})(),N_=(()=>{class e{constructor(e,t){e.autoClose="outside",e.container="body",e.placement="bottom",t.container="body"}}return e.\u0275fac=function(t){return new(t||e)(r.Rb(Jt.x),r.Rb(Jt.E))},e.\u0275cmp=r.Lb({type:e,selectors:[["cd-root"]],decls:1,vars:0,template:function(e,t){1&e&&r.Sb(0,"router-outlet")},directives:[Pt.j],styles:[""]}),e})();var z_=n("PCNd");let $_=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Pb({type:e}),e.\u0275inj=r.Ob({imports:[[s.c,z_.a,Y_,sn.b,kn.c,Jt.t]]}),e})();var H_=n("G6Q+"),X_=n("kJI8");let V_=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Pb({type:e}),e.\u0275inj=r.Ob({imports:[[Y_,s.c,xn.x,z_.a,Jt.t]]}),e})(),B_=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Pb({type:e}),e.\u0275inj=r.Ob({providers:[Jt.a],imports:[[s.c,H_.a,Jt.t,z_.a,Pt.i,xn.m,xn.x,Jt.F,V_,Jt.H,Jt.C,kn.c,X_.a,Jt.h,Jt.y,Jt.l,Ur.a]]}),e})(),U_=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Pb({type:e}),e.\u0275inj=r.Ob({imports:[[X_.a,s.c,Jt.t,z_.a,sn.b,Pt.i,Jt.y]]}),e})(),q_=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Pb({type:e}),e.\u0275inj=r.Ob({imports:[[xn.x,Pt.i,z_.a,Jt.t,s.c,Jt.H,Jt.F]]}),e})(),G_=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Pb({type:e}),e.\u0275inj=r.Ob({imports:[[s.c,B_,U_,H_.a,$_,q_,z_.a]]}),e})();var J_=n("LceX");let K_=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Pb({type:e}),e.\u0275inj=r.Ob({imports:[[s.c,J_.AuthModule,Jt.f,Jt.l,Y_,z_.a,Gb.b,Pt.i]]}),e})(),Q_=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Pb({type:e}),e.\u0275inj=r.Ob({imports:[[au.forRoot(),s.c,K_,Jt.l,Pt.i,z_.a],K_]}),e})(),Z_=(()=>{class e{constructor(e,t,n){this.router=e,this.authStorageService=t,this.notificationService=n}intercept(e,t){const n=e.headers.get("Accept");let i;return i=n&&n.startsWith("application/vnd.ceph.api.v")?e.clone():e.clone({setHeaders:{Accept:$i.a.cdVersionHeader("1","0")}}),t.handle(i).pipe(Object(up.a)(e=>{if(e instanceof o.d){let t;switch(e.status){case 400:const n=new Bi.a,i=e.error.task;Wt.a.isPlainObject(i)?(i.metadata.component=i.metadata.component||e.error.component,n.name=i.name,n.metadata=i.metadata):n.metadata=e.error,n.success=!1,n.exception=e.error,t=this.notificationService.notifyTask(n);break;case 401:this.authStorageService.remove(),this.router.navigate(["/login"]);break;case 403:this.router.navigate(["error"],{state:{message:"Sorry, you don\u2019t have permission to view this page or resource.",header:"Access Denied",icon:"fa fa-lock",source:"forbidden"}});break;default:t=this.prepareNotification(e)}e.preventDefault=()=>{this.notificationService.cancel(t)},e.ignoreStatusCode=function(e){this.status===e&&this.preventDefault()}}return Object(dp.a)(e)}))}prepareNotification(e){return this.notificationService.show(()=>{let t="";return Wt.a.isPlainObject(e.error)&&Wt.a.isString(e.error.detail)?t=e.error.detail:Wt.a.isString(e.error)?t=e.error:Wt.a.isString(e.message)&&(t=e.message),new Nd.b(vn.a.error,`${e.status} - ${e.statusText}`,t,void 0,e.application)})}}return e.\u0275fac=function(t){return new(t||e)(r.ic(Pt.e),r.ic(Gt.a),r.ic(wn.a))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),ev=(()=>{class e{constructor(e){this.http=e}jsError(e,t,n){return this.http.post("ui-api/logging/js-error",{url:e,message:t,stack:n})}}return e.\u0275fac=function(t){return new(t||e)(r.ic(o.b))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),tv=(()=>{class e{constructor(e,t){this.injector=e,this.router=t}handleError(e){const t=this.injector.get(ev),n=window.location.href;if(t.jsError(n,e&&e.message,e&&e.stack).subscribe(),!(e.rejection instanceof ih.a))throw e;setTimeout(()=>this.router.navigate(["error"],{state:{message:e.rejection.message,header:e.rejection.header,icon:e.rejection.icon}}),50)}}return e.\u0275fac=function(t){return new(t||e)(r.ic(r.v),r.ic(Pt.e))},e.\u0275prov=r.Nb({token:e,factory:e.\u0275fac}),e})(),nv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.Pb({type:e,bootstrap:[N_]}),e.\u0275inj=r.Ob({providers:[{provide:r.o,useClass:tv},{provide:o.a,useClass:Z_,multi:!0},{provide:s.a,useValue:"/"+(window.location.pathname.split("/",1)[1]||"")}],imports:[[o.c,i.a,It,Rt.a.forRoot({positionClass:"toast-top-right",preventDuplicates:!0,enableHtml:!0}),Y_,Q_,z_.a,G_],z_.a]}),e})();_b.a.production&&Object(r.V)(),i.d().bootstrapModule(nv).then(e=>{if(Object(r.X)()){const t=e.injector.get(r.g).components[0];Object(i.c)(t)}}).catch(e=>console.log(e))},zWsK:function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return r});var i=n("8Y7J");let r=(()=>{class e{transform(e,t,n){return n?t.call(n,e):t(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Qb({name:"pipeFunction",type:e,pure:!0}),e})(),s=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.Pb({type:e}),e.\u0275inj=i.Ob({}),e})()},zc8c:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("/NlG"),r=n("XFyV"),s=n("spCT"),o=n("8Y7J");let a=(()=>{class e{constructor(e,t,n){this.templateRef=e,this.viewContainer=t,this.componentFactoryResolver=n}set cdFormLoading(e){let t,n;switch(this.viewContainer.clear(),e){case s.b.Loading:t=this.componentFactoryResolver.resolveComponentFactory(r.a),n=this.resolveNgContent("Loading form data..."),this.viewContainer.createComponent(t,null,null,n);break;case s.b.Ready:this.viewContainer.createEmbeddedView(this.templateRef);break;case s.b.Error:t=this.componentFactoryResolver.resolveComponentFactory(i.a),n=this.resolveNgContent("Form data could not be loaded."),this.viewContainer.createComponent(t,null,null,n).instance.type="error"}}resolveNgContent(e){return[[document.createTextNode(e)]]}}return e.\u0275fac=function(t){return new(t||e)(o.Rb(o.O),o.Rb(o.S),o.Rb(o.k))},e.\u0275dir=o.Mb({type:e,selectors:[["","cdFormLoading",""]],inputs:{cdFormLoading:"cdFormLoading"}}),e})()},zk60:function(e,t,n){var i=n("2oRo"),r=Object.defineProperty;e.exports=function(e,t){try{r(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"},zx2A:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return c});var i=n("7o/Q"),r=n("HDdC"),s=n("SeVD");class o extends i.a{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends i.a{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function c(e,t){if(!t.closed)return e instanceof r.a?e.subscribe(t):Object(s.a)(e)(t)}},zx6S:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))}},[[0,0]]]);