]> git.proxmox.com Git - ceph.git/commitdiff
import Ceph Pacific 16.2.4
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 20 May 2021 13:55:53 +0000 (15:55 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 20 May 2021 13:55:53 +0000 (15:55 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
26 files changed:
ceph/CMakeLists.txt
ceph/ceph.spec
ceph/changelog.upstream
ceph/src/.git_version
ceph/src/cephadm/cephadm
ceph/src/pybind/mgr/dashboard/controllers/docs.py
ceph/src/pybind/mgr/dashboard/frontend/dist/en-US/index.html
ceph/src/pybind/mgr/dashboard/frontend/dist/en-US/main.625e69eb4664dde0a627.js [deleted file]
ceph/src/pybind/mgr/dashboard/frontend/dist/en-US/main.abdc8ba4d5af20b6adbf.js [new file with mode: 0644]
ceph/src/pybind/mgr/dashboard/frontend/src/app/app.module.ts
ceph/src/pybind/mgr/dashboard/frontend/src/index.html
ceph/src/pybind/mgr/dashboard/module.py
ceph/src/pybind/mgr/dashboard/tests/__init__.py
ceph/src/pybind/mgr/dashboard/tests/test_ssl.py [new file with mode: 0644]
ceph/src/pybind/mgr/dashboard/tests/test_sso.py
ceph/src/rgw/rgw_cors.cc
ceph/src/rgw/rgw_rest_swift.cc
ceph/systemd/ceph-fuse@.service.in
ceph/systemd/ceph-immutable-object-cache@.service.in
ceph/systemd/ceph-mds@.service.in
ceph/systemd/ceph-mgr@.service.in
ceph/systemd/ceph-mon@.service.in
ceph/systemd/ceph-osd@.service.in
ceph/systemd/ceph-radosgw@.service.in
ceph/systemd/ceph-rbd-mirror@.service.in
ceph/systemd/cephfs-mirror@.service.in

index a55c49dd700a822da057b6f7d9889b9bb4f51236..f0ed97d1a0d6f8ccc4caf881ffa2a4129f78ba4d 100644 (file)
@@ -716,4 +716,4 @@ add_tags(ctags
   EXCLUDES "*.js" "*.css" ".tox" "python-common/build")
 add_custom_target(tags DEPENDS ctags)
 
-set(VERSION 16.2.2)
+set(VERSION 16.2.4)
index a034e3665d6a0231e9da2124e8ba2b96f34d8508..440563f6b7297aec5eff7fb410b34a9ca0be4010 100644 (file)
 # main package definition
 #################################################################################
 Name:          ceph
-Version:       16.2.2
+Version:       16.2.4
 Release:       0%{?dist}
 %if 0%{?fedora} || 0%{?rhel}
 Epoch:         2
@@ -138,7 +138,7 @@ License:    LGPL-2.1 and LGPL-3.0 and CC-BY-SA-3.0 and GPL-2.0 and BSL-1.0 and BSD-
 Group:         System/Filesystems
 %endif
 URL:           http://ceph.com/
-Source0:       %{?_remote_tarball_prefix}ceph-16.2.2.tar.bz2
+Source0:       %{?_remote_tarball_prefix}ceph-16.2.4.tar.bz2
 %if 0%{?suse_version}
 # _insert_obs_source_lines_here
 ExclusiveArch:  x86_64 aarch64 ppc64le s390x
@@ -1205,7 +1205,7 @@ This package provides Ceph default alerts for Prometheus.
 # common
 #################################################################################
 %prep
-%autosetup -p1 -n ceph-16.2.2
+%autosetup -p1 -n ceph-16.2.4
 
 %build
 # LTO can be enabled as soon as the following GCC bug is fixed:
index f1c82e88e7826a0db5832af4f0d40b0f9f543592..28cda449bc8dc9a639e8265a5a325ea8f8710ada 100644 (file)
@@ -1,7 +1,19 @@
-ceph (16.2.2-1focal) focal; urgency=medium
+ceph (16.2.4-1focal) focal; urgency=medium
 
 
- -- Jenkins Build Slave User <jenkins-build@braggi16.front.sepia.ceph.com>  Tue, 04 May 2021 18:50:27 +0000
+ -- Jenkins Build Slave User <jenkins-build@braggi18.front.sepia.ceph.com>  Thu, 13 May 2021 17:30:29 +0000
+
+ceph (16.2.4-1) stable; urgency=medium
+
+  * New upstream release
+
+ -- Ceph Release Team <ceph-maintainers@ceph.com>  Thu, 13 May 2021 17:20:24 +0000
+
+ceph (16.2.3-1) stable; urgency=medium
+
+  * New upstream release
+
+ -- Ceph Release Team <ceph-maintainers@ceph.com>  Thu, 06 May 2021 15:46:57 +0000
 
 ceph (16.2.2-1) stable; urgency=medium
 
index ed56dafd4ef360276cdff048c7320501a7382581..cc4d4a67e8457cd581925f96140a5b4ffd047caa 100644 (file)
@@ -1,2 +1,2 @@
-e8f22dde28889481f4dda2beb8a07788204821d3
-16.2.2
+3cbe25cde3cfa028984618ad32de9edc4c1eaed0
+16.2.4
index 601b8f4a6dadafac47a3892d198f2891feede1ed..fef1ac1fa14bcb87214a0346b5433754334a44e0 100755 (executable)
@@ -4799,7 +4799,9 @@ def list_daemons(ctx, detail=True, legacy_dir=None):
                                     ],
                                     verbosity=CallVerbosity.DEBUG)
                                 if not code:
-                                    image_digests = out.strip()[1:-1].split(' ')
+                                    image_digests = list(set(map(
+                                        normalize_image_digest,
+                                        out.strip()[1:-1].split(' '))))
                                     seen_digests[image_id] = image_digests
 
                             # identify software version inside the container (if we can)
index 295a36ad85594832214161416139e27d2b6c67ba..e7ed9742ab9d25e91915283c588dd9b4cdedd2fc 100644 (file)
@@ -8,7 +8,7 @@ import cherrypy
 
 from .. import DEFAULT_VERSION, mgr
 from ..api.doc import Schema, SchemaInput, SchemaType
-from . import ENDPOINT_MAP, BaseController, Controller, Endpoint, allow_empty_body
+from . import ENDPOINT_MAP, BaseController, Controller, Endpoint
 
 NO_DESCRIPTION_AVAILABLE = "*No description available*"
 
@@ -383,31 +383,13 @@ class Docs(BaseController):
     def api_all_json(self):
         return self._gen_spec(True, "/")
 
-    def _swagger_ui_page(self, all_endpoints=False, token=None):
+    def _swagger_ui_page(self, all_endpoints=False):
         base = cherrypy.request.base
         if all_endpoints:
             spec_url = "{}/docs/api-all.json".format(base)
         else:
             spec_url = "{}/docs/api.json".format(base)
 
-        auth_header = cherrypy.request.headers.get('authorization')
-        auth_cookie = cherrypy.request.cookie['token']
-        jwt_token = ""
-        if auth_cookie is not None:
-            jwt_token = auth_cookie.value
-        elif auth_header is not None:
-            scheme, params = auth_header.split(' ', 1)
-            if scheme.lower() == 'bearer':
-                jwt_token = params
-        else:
-            if token is not None:
-                jwt_token = token
-
-        api_key_callback = """, onComplete: () => {{
-                        ui.preauthorizeApiKey('jwt', '{}');
-                    }}
-        """.format(jwt_token)
-
         page = """
         <!DOCTYPE html>
         <html>
@@ -448,14 +430,13 @@ class Docs(BaseController):
                         SwaggerUIBundle.presets.apis
                     ],
                     layout: "BaseLayout"
-                    {}
                 }})
                 window.ui = ui
             }}
         </script>
         </body>
         </html>
-        """.format(spec_url, api_key_callback)
+        """.format(spec_url)
 
         return page
 
@@ -463,12 +444,6 @@ class Docs(BaseController):
     def __call__(self, all_endpoints=False):
         return self._swagger_ui_page(all_endpoints)
 
-    @Endpoint('POST', path="/", json_response=False,
-              query_params="{all_endpoints}", version=None)
-    @allow_empty_body
-    def _with_token(self, token, all_endpoints=False):
-        return self._swagger_ui_page(all_endpoints, token)
-
 
 if __name__ == "__main__":
     import sys
index bd35e6bb74e6ab9733ede4680de296033fa5442e..3a0ec145efddc7b77ff3fadb805ef4ab7aa32a3d 100644 (file)
@@ -3,10 +3,9 @@
 <head>
   <meta charset="utf-8">
   <title>Ceph</title>
-  <base href="/">
 
   <script>
-    window['base-href'] = window.location.pathname;
+    document.write('<base href="' + document.location+ '" />');
   </script>
 
   <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
@@ -25,5 +24,5 @@
   </noscript>
 
   <cd-root></cd-root>
-<script src="runtime.8d55cba33eadfad4c77c.js" defer></script><script src="polyfills.b66d1515aae6fe3887b1.js" defer></script><script src="scripts.38cee5fbd56812617717.js" defer></script><script src="main.625e69eb4664dde0a627.js" defer></script></body>
+<script src="runtime.8d55cba33eadfad4c77c.js" defer></script><script src="polyfills.b66d1515aae6fe3887b1.js" defer></script><script src="scripts.38cee5fbd56812617717.js" defer></script><script src="main.abdc8ba4d5af20b6adbf.js" defer></script></body>
 </html>
diff --git a/ceph/src/pybind/mgr/dashboard/frontend/dist/en-US/main.625e69eb4664dde0a627.js b/ceph/src/pybind/mgr/dashboard/frontend/dist/en-US/main.625e69eb4664dde0a627.js
deleted file mode 100644 (file)
index 718f1f5..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-var $localize=Object.assign(void 0===$localize?{}:$localize,{locale:"en-US"});
-"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);;
-(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.Lb({name:"cephReleaseName",type:e,pure:!0}),e})()},"+EN/":function(e,t,n){e.exports={chartHealthCenterTextColor:"#151515",chartHealthCenterTextDescriptionColor:"#72767b",chartHealthColorBlue:"#06c",chartHealthColorCyan:"#73c5c5",chartHealthColorGray:"#ededed",chartHealthColorGreen:"#7cc674",chartHealthColorLightBlue:"#519de9",chartHealthColorLightYellow:"#f9e0a2",chartHealthColorMagenta:"#009596",chartHealthColorOrange:"#ef9234",chartHealthColorPurple:"#3c3d99",chartHealthColorRed:"#c9190b",chartHealthColorYellow:"#f6d173",chartHealthTootlipBgColor:"#000",healthColorError:"#f00",healthColorHealthy:"#0b0",healthColorWarning:"#ffa500"}},"+fVR":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));class i{setExpandedRow(e){this.expandedRow=e}}},"+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"))},"/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("oxzT"),r=n("8Y7J"),s=n("G0yt"),o=n("SVse");const a=function(e){return[e]};function c(e,t){if(1&e&&(r.Sb(0,"td",8),r.Nb(1,"i",9),r.Rb()),2&e){const e=r.ic(2);r.yb(1),r.Cb("alert-",e.bootstrapClass," ",e.typeIcon,""),r.pc("ngClass",r.uc(5,a,e.icons.large3x))}}function l(e,t){if(1&e&&(r.Sb(0,"td",10),r.Oc(1),r.Rb()),2&e){const e=r.ic(2);r.yb(1),r.Pc(e.title)}}function u(e,t){1&e&&r.Ob(0)}function d(e,t){if(1&e&&(r.Qb(0),r.Sb(1,"tr"),r.Mc(2,c,2,7,"td",4),r.Mc(3,l,2,1,"td",5),r.Rb(),r.Sb(4,"tr"),r.Sb(5,"td",6),r.Mc(6,u,1,0,"ng-container",7),r.Rb(),r.Rb(),r.Pb()),2&e){const e=r.ic(),t=r.Ac(6);r.yb(2),r.pc("ngIf",e.showIcon),r.yb(1),r.pc("ngIf",e.showTitle),r.yb(3),r.pc("ngTemplateOutlet",t)}}function h(e,t){if(1&e&&(r.Sb(0,"td",12),r.Nb(1,"i",13),r.Rb()),2&e){const e=r.ic(2);r.yb(1),r.Cb("alert-",e.bootstrapClass," ",e.typeIcon,"")}}function f(e,t){if(1&e&&(r.Sb(0,"td",10),r.Oc(1),r.Rb()),2&e){const e=r.ic(2);r.yb(1),r.Pc(e.title)}}function p(e,t){1&e&&r.Ob(0)}function m(e,t){if(1&e&&(r.Sb(0,"tr"),r.Mc(1,h,2,4,"td",11),r.Mc(2,f,2,1,"td",5),r.Sb(3,"td",6),r.Mc(4,p,1,0,"ng-container",7),r.Rb(),r.Rb()),2&e){const e=r.ic(),t=r.Ac(6);r.yb(1),r.pc("ngIf",e.showIcon),r.yb(1),r.pc("ngIf",e.showTitle),r.yb(2),r.pc("ngTemplateOutlet",t)}}function b(e,t){1&e&&r.nc(0)}const g=["*"];let _=(()=>{class e{constructor(){this.title="",this.bootstrapClass="",this.size="normal",this.showIcon=!0,this.showTitle=!0,this.icons=i.a}ngOnInit(){switch(this.type){case"warning":this.title=this.title||"Warning",this.typeIcon=this.typeIcon||i.a.warning,this.bootstrapClass=this.bootstrapClass||"warning";break;case"error":this.title=this.title||"Error",this.typeIcon=this.typeIcon||i.a.destroyCircle,this.bootstrapClass=this.bootstrapClass||"danger";break;case"info":this.title=this.title||"Information",this.typeIcon=this.typeIcon||i.a.infoCircle,this.bootstrapClass=this.bootstrapClass||"info";break;case"success":this.title=this.title||"Success",this.typeIcon=this.typeIcon||i.a.check,this.bootstrapClass=this.bootstrapClass||"success"}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Gb({type:e,selectors:[["cd-alert-panel"]],inputs:{title:"title",bootstrapClass:"bootstrapClass",type:"type",typeIcon:"typeIcon",size:"size",showIcon:"showIcon",showTitle:"showTitle"},ngContentSelectors:g,decls:7,vars:4,consts:[[3,"type","dismissible"],[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&&(r.oc(),r.Sb(0,"ngb-alert",0),r.Sb(1,"table"),r.Mc(2,d,7,3,"ng-container",1),r.Mc(3,m,5,3,"ng-template",null,2,r.Nc),r.Rb(),r.Rb(),r.Mc(5,b,1,0,"ng-template",null,3,r.Nc)),2&e){const e=r.Ac(4);r.qc("type",t.bootstrapClass),r.pc("dismissible",!1),r.yb(2),r.pc("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})()},"/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 D}));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.Ob(0)}function g(e,t){1&e&&o.Ob(0)}function _(e,t){if(1&e&&(o.Sb(0,"p"),o.cc(1,21),o.jc(2,"lowercase"),o.Nb(3,"strong"),o.Zb(),o.Rb()),2&e){const e=o.ic(2);o.yb(3),o.ac(o.kc(2,2,e.actionDescription))(e.itemNames[0]),o.Xb(1)}}function y(e,t){if(1&e&&(o.Sb(0,"li"),o.Sb(1,"strong"),o.Oc(2),o.Rb(),o.Rb()),2&e){const e=t.$implicit;o.yb(2),o.Pc(e)}}function v(e,t){if(1&e&&(o.Sb(0,"p"),o.Wb(1,22),o.jc(2,"lowercase"),o.Rb(),o.Sb(3,"ul"),o.Mc(4,y,3,1,"li",23),o.Rb()),2&e){const e=o.ic(2);o.yb(2),o.ac(o.kc(2,2,e.actionDescription)),o.Xb(1),o.yb(2),o.pc("ngForOf",e.itemNames)}}function w(e,t){if(1&e&&(o.Sb(0,"span"),o.Mc(1,_,4,4,"p",10),o.Mc(2,v,5,4,"ng-template",null,20,o.Nc),o.Rb()),2&e){const e=o.Ac(3),t=o.ic();o.yb(1),o.pc("ngIf",1===t.itemNames.length)("ngIfElse",e)}}function S(e,t){if(1&e&&(o.Sb(0,"p"),o.Wb(1,24),o.jc(2,"lowercase"),o.Rb()),2&e){const e=o.ic();o.yb(2),o.ac(o.kc(2,2,e.actionDescription))(e.itemDescription),o.Xb(1)}}function M(e,t){1&e&&o.Ob(0)}function k(e,t){if(1&e&&(o.Oc(0),o.jc(1,"titlecase")),2&e){const e=o.ic();o.Rc(" ",o.kc(1,2,e.actionDescription)," ",e.itemDescription,"\n")}}const x=function(e){return{form:e}};let D=(()=>{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.Mb(a.a))},e.\u0275cmp=o.Gb({type:e,selectors:[["cd-deletion-modal"]],viewQuery:function(e,t){var n;1&e&&o.Jc(s.a,!0),2&e&&o.zc(n=o.hc())&&(t.submitButton=n.first)},decls:24,vars:15,consts:function(){return[[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"],"Yes, I am sure.",[1,"modal-footer"],[3,"form","submitText","submitActionEvent"],["deletionHeading",""],["manyNames",""],"Are you sure that you want to " + "\ufffd0\ufffd" + " " + "\ufffd#3\ufffd" + "" + "\ufffd1\ufffd" + "" + "\ufffd/#3\ufffd" + "?","Are you sure that you want to " + "\ufffd0\ufffd" + " the selected items?",[4,"ngFor","ngForOf"],"Are you sure that you want to " + "\ufffd0\ufffd" + " the selected " + "\ufffd1\ufffd" + "?"]},template:function(e,t){if(1&e&&(o.Sb(0,"cd-modal",0,1),o.Qb(2,2),o.Mc(3,b,1,0,"ng-container",3),o.Pb(),o.Qb(4,4),o.Sb(5,"form",5,6),o.Sb(7,"div",7),o.Mc(8,g,1,0,"ng-container",8),o.Sb(9,"div",9),o.Mc(10,w,4,2,"span",10),o.Mc(11,S,3,4,"ng-template",null,11,o.Nc),o.Mc(13,M,1,0,"ng-container",8),o.Sb(14,"div",12),o.Sb(15,"div",13),o.Nb(16,"input",14),o.Sb(17,"label",15),o.Wb(18,16),o.Rb(),o.Rb(),o.Rb(),o.Rb(),o.Rb(),o.Sb(19,"div",17),o.Sb(20,"cd-form-button-panel",18),o.gc("submitActionEvent",(function(){return t.callSubmitAction()})),o.jc(21,"titlecase"),o.Rb(),o.Rb(),o.Rb(),o.Pb(),o.Rb(),o.Mc(22,k,2,4,"ng-template",null,19,o.Nc)),2&e){const e=o.Ac(12),n=o.Ac(23);o.pc("modalRef",t.activeModal),o.yb(3),o.pc("ngTemplateOutlet",n),o.yb(2),o.pc("formGroup",t.deletionForm),o.yb(3),o.pc("ngTemplateOutlet",t.bodyTemplate)("ngTemplateOutletContext",t.bodyContext),o.yb(2),o.pc("ngIf",t.itemNames)("ngIfElse",e),o.yb(3),o.pc("ngTemplateOutlet",t.childFormGroupTemplate)("ngTemplateOutletContext",o.uc(13,x,t.deletionForm)),o.yb(7),o.pc("form",t.deletionForm)("submitText",o.kc(21,11,t.actionDescription)+" "+t.itemDescription)}},directives:[c.a,l.w,i.C,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}}},"0EUg":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("bHdf");function r(){return Object(i.a)(1)}},"0GbY":function(e,t,n){var i=n("Qo9l"),r=n("2oRo"),s=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?s(i[e])||s(r[e]):i[e]&&i[e][t]||r[e]&&r[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("glrk"),r=n("O741");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(s){}return function(n,s){return i(n),r(s),t?e.call(n,s):n.__proto__=s,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("busE"),r=n("0Dky"),s=n("tiKp"),o=n("kmMV"),a=n("kRJp"),c=s("species"),l=!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),u="$0"==="a".replace(/./,"$0"),d=s("replace"),h=!!/./[d]&&""===/./[d]("a","$0"),f=!r((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,d){var p=s(e),m=!r((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),b=m&&!r((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!m||!b||"replace"===e&&(!l||!u||h)||"split"===e&&!f){var g=/./[p],_=n(p,""[e],(function(e,t,n,i,r){return t.exec===o?m&&!r?{done:!0,value:g.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),y=_[1];i(String.prototype,e,_[0]),i(RegExp.prototype,p,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}d&&a(RegExp.prototype[p],"sham",!0)}},"1E5z":function(e,t,n){var i=n("m/L8").f,r=n("UTVS"),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 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,r=500){let c;return h=>h.pristine||p(h.value)?Object(o.a)(null):(c=h.value,s.a.isFunction(n)&&null!==n()&&""!==n()&&(c=i?`${h.value}$${n()}`:`${n()}$${h.value}`),Object(a.a)(r).pipe(l(e.call(t,c)),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))}}}},"1Y/n":function(e,t,n){var i=n("HAuM"),r=n("ewvW"),s=n("RK3t"),o=n("UMSQ"),a=function(e){return function(t,n,a,c){i(n);var l=r(t),u=s(l),d=o(l.length),h=e?d-1:0,f=e?-1:1;if(a<2)for(;;){if(h in u){c=u[h],h+=f;break}if(h+=f,e?h<0:d<=h)throw TypeError("Reduce of empty array with no initial value")}for(;e?h>=0:d>h;h+=f)h in u&&(c=n(c,u[h],h,l));return c}};e.exports={left:a(!1),right:a(!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.dc(o.a))},e.\u0275prov=c.Ib({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.dc(a.b))},e.\u0275prov=o.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),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.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const a=s.Ub(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)}}},"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")()},"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"))},"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=!1,i=void 0;try{this.work(e)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}_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("4mDm"),o=n("kRJp"),a=n("tiKp"),c=a("iterator"),l=a("toStringTag"),u=s.values;for(var d in r){var h=i[d],f=h&&h.prototype;if(f){if(f[c]!==u)try{o(f,c,u)}catch(m){f[c]=u}if(f[l]||o(f,l,d),r[d])for(var p in s)if(f[p]!==s[p])try{o(f,p,s[p])}catch(m){f[p]=s[p]}}}},"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.Lb({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("UTVS"),r=n("ewvW"),s=n("93I0"),o=n("4Xet"),a=s("IE_PROTO"),c=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=r(e),i(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c: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}},"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()}}},"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.Tb();i.Sb(0,"cd-submit-button",2),i.gc("submitAction",(function(){return i.Dc(e),i.ic().submitAction()})),i.Oc(1),i.Rb()}if(2&e){const e=i.ic();i.pc("disabled",e.disabled)("form",e.form),i.yb(1),i.Pc(e.submitText)}}let u=(()=>{class e{constructor(e,t,n){this.location=e,this.actionLabels=t,this.modalService=n,this.submitActionEvent=new i.o,this.backActionEvent=new i.o,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.Mb(a.m),i.Mb(r.b),i.Mb(s.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-form-button-panel"]],viewQuery:function(e,t){var n;1&e&&i.Tc(o.a,!0),2&e&&i.zc(n=i.hc())&&(t.submitButton=n.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.Sb(0,"div"),i.Sb(1,"cd-back-button",0),i.gc("backAction",(function(){return t.backAction()})),i.Rb(),i.Mc(2,l,2,3,"cd-submit-button",1),i.Rb()),2&e&&(i.Ab(t.wrappingClass),i.yb(1),i.pc("name",t.cancelText),i.yb(1),i.pc("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"))},"6JNq":function(e,t,n){var i=n("UTVS"),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.Mb(i.a))},e.\u0275cmp=r.Gb({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.Sb(0,"a",0),r.Oc(1),r.Rb()),2&e&&(r.qc("href",t.docUrl,r.Gc),r.yb(1),r.Pc(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"))},"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"))},"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.Lb({name:"cephShortVersion",type:e,pure:!0}),e})()},"8Y7J":function(e,t,n){"use strict";n.d(t,"a",(function(){return Is})),n.d(t,"b",(function(){return eu})),n.d(t,"c",(function(){return Jl})),n.d(t,"d",(function(){return Gl})),n.d(t,"e",(function(){return ql})),n.d(t,"f",(function(){return Vu})),n.d(t,"g",(function(){return Iu})),n.d(t,"h",(function(){return bs})),n.d(t,"i",(function(){return du})),n.d(t,"j",(function(){return _a})),n.d(t,"k",(function(){return ma})),n.d(t,"l",(function(){return iu})),n.d(t,"m",(function(){return ya})),n.d(t,"n",(function(){return En})),n.d(t,"o",(function(){return Ml})),n.d(t,"p",(function(){return G})),n.d(t,"q",(function(){return d})),n.d(t,"r",(function(){return U})),n.d(t,"s",(function(){return As})),n.d(t,"t",(function(){return Fa})),n.d(t,"u",(function(){return Ya})),n.d(t,"v",(function(){return nu})),n.d(t,"w",(function(){return ce})),n.d(t,"x",(function(){return Nu})),n.d(t,"y",(function(){return ae})),n.d(t,"z",(function(){return Ou})),n.d(t,"A",(function(){return pu})),n.d(t,"B",(function(){return h})),n.d(t,"C",(function(){return Xl})),n.d(t,"D",(function(){return Zl})),n.d(t,"E",(function(){return Ma})),n.d(t,"F",(function(){return wa})),n.d(t,"G",(function(){return Sa})),n.d(t,"H",(function(){return xa})),n.d(t,"I",(function(){return Si})),n.d(t,"J",(function(){return p})),n.d(t,"K",(function(){return Yu})),n.d(t,"L",(function(){return Wa})),n.d(t,"M",(function(){return Su})),n.d(t,"N",(function(){return _s})),n.d(t,"O",(function(){return Da})),n.d(t,"P",(function(){return Ba})),n.d(t,"Q",(function(){return _e})),n.d(t,"R",(function(){return Lu})),n.d(t,"S",(function(){return Qn})),n.d(t,"T",(function(){return R})),n.d(t,"U",(function(){return Jn})),n.d(t,"V",(function(){return Hu})),n.d(t,"W",(function(){return xu})),n.d(t,"X",(function(){return tu})),n.d(t,"Y",(function(){return ys})),n.d(t,"Z",(function(){return ac})),n.d(t,"ab",(function(){return vi})),n.d(t,"bb",(function(){return ni})),n.d(t,"cb",(function(){return zn})),n.d(t,"db",(function(){return Hn})),n.d(t,"eb",(function(){return Un})),n.d(t,"fb",(function(){return Vn})),n.d(t,"gb",(function(){return Wn})),n.d(t,"hb",(function(){return Bn})),n.d(t,"ib",(function(){return ic})),n.d(t,"jb",(function(){return $u})),n.d(t,"kb",(function(){return rc})),n.d(t,"lb",(function(){return sc})),n.d(t,"mb",(function(){return $n})),n.d(t,"nb",(function(){return F})),n.d(t,"ob",(function(){return Bs})),n.d(t,"pb",(function(){return go})),n.d(t,"qb",(function(){return bo})),n.d(t,"rb",(function(){return nc})),n.d(t,"sb",(function(){return Qe})),n.d(t,"tb",(function(){return C})),n.d(t,"ub",(function(){return Yn})),n.d(t,"vb",(function(){return js})),n.d(t,"wb",(function(){return Ve})),n.d(t,"xb",(function(){return pa})),n.d(t,"yb",(function(){return Bi})),n.d(t,"zb",(function(){return Xs})),n.d(t,"Ab",(function(){return Yo})),n.d(t,"Bb",(function(){return na})),n.d(t,"Cb",(function(){return ia})),n.d(t,"Db",(function(){return ra})),n.d(t,"Eb",(function(){return Fo})),n.d(t,"Fb",(function(){return Fl})),n.d(t,"Gb",(function(){return Se})),n.d(t,"Hb",(function(){return Oe})),n.d(t,"Ib",(function(){return _})),n.d(t,"Jb",(function(){return y})),n.d(t,"Kb",(function(){return De})),n.d(t,"Lb",(function(){return Le})),n.d(t,"Mb",(function(){return ro})),n.d(t,"Nb",(function(){return uo})),n.d(t,"Ob",(function(){return po})),n.d(t,"Pb",(function(){return fo})),n.d(t,"Qb",(function(){return ho})),n.d(t,"Rb",(function(){return lo})),n.d(t,"Sb",(function(){return co})),n.d(t,"Tb",(function(){return mo})),n.d(t,"Ub",(function(){return Cn})),n.d(t,"Vb",(function(){return sa})),n.d(t,"Wb",(function(){return Xc})),n.d(t,"Xb",(function(){return nl})),n.d(t,"Yb",(function(){return el})),n.d(t,"Zb",(function(){return Zc})),n.d(t,"ac",(function(){return tl})),n.d(t,"bc",(function(){return il})),n.d(t,"cc",(function(){return Kc})),n.d(t,"dc",(function(){return ie})),n.d(t,"ec",(function(){return so})),n.d(t,"fc",(function(){return Ul})),n.d(t,"gc",(function(){return _o})),n.d(t,"hc",(function(){return $l})),n.d(t,"ic",(function(){return wo})),n.d(t,"jc",(function(){return gl})),n.d(t,"kc",(function(){return _l})),n.d(t,"lc",(function(){return yl})),n.d(t,"mc",(function(){return vl})),n.d(t,"nc",(function(){return Do})),n.d(t,"oc",(function(){return Mo})),n.d(t,"pc",(function(){return oo})),n.d(t,"qc",(function(){return To})),n.d(t,"rc",(function(){return Co})),n.d(t,"sc",(function(){return Oo})),n.d(t,"tc",(function(){return al})),n.d(t,"uc",(function(){return cl})),n.d(t,"vc",(function(){return ll})),n.d(t,"wc",(function(){return ul})),n.d(t,"xc",(function(){return dl})),n.d(t,"yc",(function(){return hl})),n.d(t,"zc",(function(){return Il})),n.d(t,"Ac",(function(){return io})),n.d(t,"Bc",(function(){return ln})),n.d(t,"Cc",(function(){return cn})),n.d(t,"Dc",(function(){return bt})),n.d(t,"Ec",(function(){return Mi})),n.d(t,"Fc",(function(){return xi})),n.d(t,"Gc",(function(){return ki})),n.d(t,"Hc",(function(){return Te})),n.d(t,"Ic",(function(){return Yl})),n.d(t,"Jc",(function(){return Pl})),n.d(t,"Kc",(function(){return jo})),n.d(t,"Lc",(function(){return oa})),n.d(t,"Mc",(function(){return no})),n.d(t,"Nc",(function(){return Bl})),n.d(t,"Oc",(function(){return Ko})),n.d(t,"Pc",(function(){return Zo})),n.d(t,"Qc",(function(){return Xo})),n.d(t,"Rc",(function(){return ea})),n.d(t,"Sc",(function(){return ta})),n.d(t,"Tc",(function(){return Nl}));var i=n("XNiG"),r=n("quSY"),s=n("HDdC"),o=n("VRyK"),a=n("w1tV");function c(e){return{toString:e}.toString()}const l="__parameters__";function u(e,t,n){return c(()=>{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(l)?e[l]:Object.defineProperty(e,l,{value:[]})[l];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 d=u("Inject",e=>({token:e})),h=u("Optional"),f=u("Self"),p=u("SkipSelf");var m=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}({});function b(e){for(let t in e)if(e[t]===b)return t;throw Error("Could not find renamed property on target object.")}function g(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function _(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function y(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function v(e){return w(e,e[M])||w(e,e[D])}function w(e,t){return t&&t.token===e?t:null}function S(e){return e&&(e.hasOwnProperty(k)||e.hasOwnProperty(T))?e[k]:null}const M=b({"\u0275prov":b}),k=b({"\u0275inj":b}),x=b({"\u0275provFallback":b}),D=b({ngInjectableDef:b}),T=b({ngInjectorDef:b});function C(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(C).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 O(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const L=b({__forward_ref__:b});function R(e){return e.__forward_ref__=R,e.toString=function(){return C(this())},e}function E(e){return A(e)?e():e}function A(e){return"function"==typeof e&&e.hasOwnProperty(L)&&e.__forward_ref__===R}const I="undefined"!=typeof globalThis&&globalThis,P="undefined"!=typeof window&&window,N="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,j="undefined"!=typeof global&&global,F=I||j||P||N,Y=b({"\u0275cmp":b}),z=b({"\u0275dir":b}),$=b({"\u0275pipe":b}),H=b({"\u0275mod":b}),W=b({"\u0275loc":b}),V=b({"\u0275fac":b}),B=b({__NG_ELEMENT_ID__:b});class U{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=_({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return"InjectionToken "+this._desc}}const G=new U("INJECTOR",-1),q={},J=/\n/gm,Q="__source",K=b({provide:String,useValue:b});let Z,X=void 0;function ee(e){const t=X;return X=e,t}function te(e){const t=Z;return Z=e,t}function ne(e,t=m.Default){if(void 0===X)throw new Error("inject() must be called from an injection context");return null===X?re(e,void 0,t):X.get(e,t&m.Optional?null:void 0,t)}function ie(e,t=m.Default){return(Z||ne)(E(e),t)}function re(e,t,n){const i=v(e);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&m.Optional)return null;if(void 0!==t)return t;throw new Error(`Injector: NOT_FOUND [${C(e)}]`)}function se(e){const t=[];for(let n=0;n<e.length;n++){const i=E(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let e=void 0,n=m.Default;for(let t=0;t<i.length;t++){const r=i[t];r instanceof h||"Optional"===r.ngMetadataName||r===h?n|=m.Optional:r instanceof p||"SkipSelf"===r.ngMetadataName||r===p?n|=m.SkipSelf:r instanceof f||"Self"===r.ngMetadataName||r===f?n|=m.Self:e=r instanceof d||r===d?r.token:r}t.push(ie(e,n))}else t.push(ie(i))}return t}class oe{get(e,t=q){if(t===q){const t=new Error(`NullInjectorError: No provider for ${C(e)}!`);throw t.name="NullInjectorError",t}return t}}class ae{}class ce{}function le(e,t){for(let n=0;n<e.length;n++)t.push(e[n])}function ue(e,t){e.forEach(e=>Array.isArray(e)?ue(e,t):t(e))}function de(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function he(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function fe(e,t){const n=[];for(let i=0;i<e;i++)n.push(t);return n}function pe(e,t,n){let i=be(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 me(e,t){const n=be(e,t);if(n>=0)return e[1|n]}function be(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)}var ge=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),_e=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});const ye={},ve=[];let we=0;function Se(e){return c(()=>{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===ge.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||ve,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||_e.Emulated,id:"c",styles:e.styles||ve,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,s=e.pipes;return n.id+=we++,n.inputs=Ce(e.inputs,t),n.outputs=Ce(e.outputs),r&&r.forEach(e=>e(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(Me):null,n.pipeDefs=s?()=>("function"==typeof s?s():s).map(ke):null,n})}function Me(e){return Re(e)||function(e){return e[z]||null}(e)}function ke(e){return function(e){return e[$]||null}(e)}const xe={};function De(e){const t={type:e.type,bootstrap:e.bootstrap||ve,declarations:e.declarations||ve,imports:e.imports||ve,exports:e.exports||ve,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&c(()=>{xe[e.id]=e.type}),t}function Te(e,t){return c(()=>{const n=Ae(e,!0);n.declarations=t.declarations||ve,n.imports=t.imports||ve,n.exports=t.exports||ve})}function Ce(e,t){if(null==e)return ye;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=Se;function Le(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Re(e){return e[Y]||null}function Ee(e,t){return e.hasOwnProperty(V)?e[V]:null}function Ae(e,t){const n=e[H]||null;if(!n&&!0===t)throw new Error(`Type ${C(e)} does not have '\u0275mod' property.`);return n}const Ie=20,Pe=10;function Ne(e){return Array.isArray(e)&&"object"==typeof e[1]}function je(e){return Array.isArray(e)&&!0===e[1]}function Fe(e){return 0!=(8&e.flags)}function Ye(e){return 2==(2&e.flags)}function ze(e){return 1==(1&e.flags)}function $e(e){return null!==e.template}function He(e){return 0!=(512&e[2])}class We{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function Ve(){return Be}function Be(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ge),Ue}function Ue(){const e=qe(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===ye)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function Ge(e,t,n,i){const r=qe(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:ye,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],c=o[a];s[a]=new We(c&&c.currentValue,t,o===ye),e[i]=t}function qe(e){return e.__ngSimpleChanges__||null}Ve.ngInherit=!0;let Je=void 0;function Qe(e){Je=e}function Ke(){return void 0!==Je?Je:"undefined"!=typeof document?document:void 0}function Ze(e){return!!e.listen}const Xe={createRenderer:(e,t)=>Ke()};function et(e){for(;Array.isArray(e);)e=e[0];return e}function tt(e,t){return et(t[e+Ie])}function nt(e,t){return et(t[e.index])}function it(e,t){return e.data[t+Ie]}function rt(e,t){return e[t+Ie]}function st(e,t){const n=t[e];return Ne(n)?n:n[0]}function ot(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function at(e){return 4==(4&e[2])}function ct(e){return 128==(128&e[2])}function lt(e,t){return null===e||null==t?null:e[t]}function ut(e){e[18]=0}function dt(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 ht={lFrame:Pt(null),bindingsEnabled:!0,checkNoChangesMode:!1};function ft(){return ht.bindingsEnabled}function pt(){return ht.lFrame.lView}function mt(){return ht.lFrame.tView}function bt(e){ht.lFrame.contextLView=e}function gt(){return ht.lFrame.currentTNode}function _t(e,t){ht.lFrame.currentTNode=e,ht.lFrame.isParent=t}function yt(){return ht.lFrame.isParent}function vt(){ht.lFrame.isParent=!1}function wt(){return ht.checkNoChangesMode}function St(e){ht.checkNoChangesMode=e}function Mt(){const e=ht.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function kt(){return ht.lFrame.bindingIndex}function xt(){return ht.lFrame.bindingIndex++}function Dt(e){const t=ht.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Tt(e,t){const n=ht.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ct(t)}function Ct(e){ht.lFrame.currentDirectiveIndex=e}function Ot(e){const t=ht.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Lt(){return ht.lFrame.currentQueryIndex}function Rt(e){ht.lFrame.currentQueryIndex=e}function Et(e,t){const n=It();ht.lFrame=n,n.currentTNode=t,n.lView=e}function At(e){const t=It(),n=e[1];ht.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex}function It(){const e=ht.lFrame,t=null===e?null:e.child;return null===t?Pt(e):t}function Pt(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function Nt(){const e=ht.lFrame;return ht.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const jt=Nt;function Ft(){const e=Nt();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Yt(){return ht.lFrame.selectedIndex}function zt(e){ht.lFrame.selectedIndex=e}function $t(){const e=ht.lFrame;return it(e.tView,e.selectedIndex)}function Ht(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 Wt(e,t,n){Ut(e,t,3,n)}function Vt(e,t,n,i){(3&e[2])===n&&Ut(e,t,n,i)}function Bt(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Ut(e,t,n,i){const r=null!=i?i:-1;let s=0;for(let o=void 0!==i?65535&e[18]:0;o<t.length;o++)if("number"==typeof t[o+1]){if(s=t[o],null!=i&&s>=i)break}else t[o]<0&&(e[18]+=65536),(s<r||-1==r)&&(Gt(e,n,t,o),e[18]=(4294901760&e[18])+o+2),o++}function Gt(e,t,n,i){const r=n[i]<0,s=n[i+1],o=e[r?-n[i]:n[i]];r?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,s.call(o)):s.call(o)}const qt=-1;class Jt{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function Qt(e,t,n){const i=Ze(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];Zt(o)?i&&e.setProperty(t,o,a):i?e.setAttribute(t,o,a):t.setAttribute(o,a),r++}}return r}function Kt(e){return 3===e||4===e||6===e}function Zt(e){return 64===e.charCodeAt(0)}function Xt(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||en(e,n,r,null,-1===n||2===n?t[++i]:null)}}return e}function en(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 tn(e){return e!==qt}function nn(e){return 32767&e}function rn(e,t){let n=e>>16,i=t;for(;n>0;)i=i[15],n--;return i}function sn(e){return"string"==typeof e?e:null==e?"":""+e}function on(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():sn(e)}const an=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(F))();function cn(e){return{name:"window",target:e.ownerDocument.defaultView}}function ln(e){return{name:"body",target:e.ownerDocument.body}}function un(e){return e instanceof Function?e():e}let dn=!0;function hn(e){const t=dn;return dn=e,t}let fn=0;function pn(e,t){const n=bn(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,mn(i.data,e),mn(t,null),mn(i.blueprint,null));const r=gn(e,t),s=e.injectorIndex;if(tn(r)){const e=nn(r),n=rn(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 mn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function bn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function gn(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 qt;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return qt}function _n(e,t,n){!function(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(B)&&(i=n[B]),null==i&&(i=n[B]=fn++);const r=255&i,s=1<<r,o=64&r,a=32&r,c=t.data;128&r?o?a?c[e+7]|=s:c[e+6]|=s:a?c[e+5]|=s:c[e+4]|=s:o?a?c[e+3]|=s:c[e+2]|=s:a?c[e+1]|=s:c[e]|=s}(e,t,n)}function yn(e,t,n,i=m.Default,r){if(null!==e){const r=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(B)?e[B]:void 0;return"number"==typeof t&&t>0?255&t:t}(n);if("function"==typeof r){Et(t,e);try{const e=r();if(null!=e||i&m.Optional)return e;throw new Error(`No provider for ${on(n)}!`)}finally{jt()}}else if("number"==typeof r){if(-1===r)return new Dn(e,t);let s=null,o=bn(e,t),a=qt,c=i&m.Host?t[16][6]:null;for((-1===o||i&m.SkipSelf)&&(a=-1===o?gn(e,t):t[o+8],a!==qt&&xn(i,!1)?(s=t[1],o=nn(a),t=rn(a,t)):o=-1);-1!==o;){const e=t[1];if(kn(r,o,e.data)){const e=wn(o,t,n,s,i,c);if(e!==vn)return e}a=t[o+8],a!==qt&&xn(i,t[1].data[o+8]===c)&&kn(r,o,t)?(s=e,o=nn(a),t=rn(a,t)):o=-1}}}if(i&m.Optional&&void 0===r&&(r=null),0==(i&(m.Self|m.Host))){const e=t[9],s=te(void 0);try{return e?e.get(n,r,i&m.Optional):re(n,r,i&m.Optional)}finally{te(s)}}if(i&m.Optional)return r;throw new Error(`NodeInjector: NOT_FOUND [${on(n)}]`)}const vn={};function wn(e,t,n,i,r,s){const o=t[1],a=o.data[e+8],c=Sn(a,o,n,null==i?Ye(a)&&dn:i!=o&&2===a.type,r&m.Host&&s===a);return null!==c?Mn(t,o,c,a):vn}function Sn(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&&$e(e)&&e.type===n)return c}return null}function Mn(e,t,n,i){let r=e[n];const s=t.data;if(r instanceof Jt){const o=r;if(o.resolving)throw new Error("Circular dep for "+on(s[n]));const a=hn(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?te(o.injectImpl):null;Et(e,i);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=Be(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&&te(c),hn(a),o.resolving=!1,jt()}}return r}function kn(e,t,n){const i=64&e,r=32&e;let s;return s=128&e?i?r?n[t+7]:n[t+6]:r?n[t+5]:n[t+4]:i?r?n[t+3]:n[t+2]:r?n[t+1]:n[t],!!(s&1<<e)}function xn(e,t){return!(e&m.Self||e&m.Host&&t)}class Dn{constructor(e,t){this._tNode=e,this._lView=t}get(e,t){return yn(this._tNode,this._lView,e,void 0,t)}}function Tn(e){const t=e;if(A(e))return()=>{const e=Tn(E(t));return e?e():null};let n=Ee(t);if(null===n){const e=S(t);n=e&&e.factory}return n||null}function Cn(e){return c(()=>{const t=e.prototype.constructor,n=t[V]||Tn(t),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const e=r[V]||Tn(r);if(e&&e!==n)return e;r=Object.getPrototypeOf(r)}return e=>new e})}function On(e){return e.ngDebugContext}function Ln(e){return e.ngOriginalError}function Rn(e,...t){e.error(...t)}class En{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e.ngErrorLogger||Rn}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?On(e)?On(e):this._findContext(Ln(e)):null}_findOriginalError(e){let t=Ln(e);for(;t&&Ln(t);)t=Ln(t);return t}}class An{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class In extends An{getTypeName(){return"HTML"}}class Pn extends An{getTypeName(){return"Style"}}class Nn extends An{getTypeName(){return"Script"}}class jn extends An{getTypeName(){return"URL"}}class Fn extends An{getTypeName(){return"ResourceURL"}}function Yn(e){return e instanceof An?e.changingThisBreaksApplicationSecurity:e}function zn(e,t){const n=$n(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===t}function $n(e){return e instanceof An&&e.getTypeName()||null}function Hn(e){return new In(e)}function Wn(e){return new Pn(e)}function Vn(e){return new Nn(e)}function Bn(e){return new jn(e)}function Un(e){return new Fn(e)}let Gn=!0,qn=!1;function Jn(){return qn=!0,Gn}function Qn(){if(qn)throw new Error("Cannot enable prod mode after platform setup.");Gn=!1}function Kn(e){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(e){return!1}}()?new Zn:new Xn(e)}class Zn{getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(t){return null}}}class Xn{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=e,t;const n=this.inertDocument.createElement("body");return n.innerHTML=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 ei=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,ti=/^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 ni(e){return(e=String(e)).match(ei)||e.match(ti)?e:(Jn()&&console.warn(`WARNING: sanitizing unsafe URL value ${e} (see http://g.co/ng/security#xss)`),"unsafe:"+e)}function ii(e){return(e=String(e)).split(",").map(e=>ni(e.trim())).join(", ")}function ri(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function si(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const oi=ri("area,br,col,hr,img,wbr"),ai=ri("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ci=ri("rp,rt"),li=si(ci,ai),ui=si(oi,si(ai,ri("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")),si(ci,ri("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")),li),di=ri("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),hi=ri("srcset"),fi=si(di,hi,ri("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"),ri("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")),pi=ri("script,style,template");class mi{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(!ui.hasOwnProperty(t))return this.sanitizedSomething=!0,!pi.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(!fi.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let s=e.value;di[r]&&(s=ni(s)),hi[r]&&(s=ii(s)),this.buf.push(" ",t,'="',_i(s),'"')}return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();ui.hasOwnProperty(t)&&!oi.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(_i(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 bi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gi=/([^\#-~ |!])/g;function _i(e){return e.replace(/&/g,"&amp;").replace(bi,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(gi,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let yi;function vi(e,t){let n=null;try{yi=yi||Kn(e);let i=t?String(t):"";n=yi.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=yi.getInertBodyElement(i)}while(i!==s);const o=new mi,a=o.sanitizeChildren(wi(n)||n);return Jn()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const e=wi(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function wi(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Si=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=Di();return t?t.sanitize(Si.HTML,e)||"":zn(e,"HTML")?Yn(e):vi(Ke(),sn(e))}function ki(e){const t=Di();return t?t.sanitize(Si.URL,e)||"":zn(e,"URL")?Yn(e):ni(sn(e))}function xi(e){const t=Di();if(t)return t.sanitize(Si.RESOURCE_URL,e)||"";if(zn(e,"ResourceURL"))return Yn(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}function Di(){const e=pt();return e&&e[12]}function Ti(e,t){e.__ngContext__=t}function Ci(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 Oi="ng-template";function Li(e,t,n){let i=0;for(;i<e.length;){let r=e[i++];if(n&&"class"===r){if(r=e[i],-1!==Ci(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 Ri(e){return 0===e.type&&e.tagName!==Oi}function Ei(e,t,n){return t===(0!==e.type||n?e.tagName:Oi)}function Ai(e,t,n){let i=4;const r=e.attrs||[],s=function(e){for(let t=0;t<e.length;t++)if(Kt(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&&!Ei(e,c,n)||""===c&&1===t.length){if(Ii(i))return!1;o=!0}}else{const l=8&i?c:t[++a];if(8&i&&null!==e.attrs){if(!Li(e.attrs,l,n)){if(Ii(i))return!1;o=!0}continue}const u=Pi(8&i?"class":c,r,Ri(e),n);if(-1===u){if(Ii(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!==Ci(t,l,0)||2&i&&l!==e){if(Ii(i))return!1;o=!0}}}}else{if(!o&&!Ii(i)&&!Ii(c))return!1;if(o&&Ii(c))continue;o=!1,i=c|1&i}}return Ii(i)||o}function Ii(e){return 0==(1&e)}function Pi(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 Ni(e,t,n=!1){for(let i=0;i<t.length;i++)if(Ai(e,t[i],n))return!0;return!1}function ji(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 Fi(e,t){return e?":not("+t.trim()+")":t}function Yi(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||Ii(o)||(t+=Fi(s,r),r=""),i=o,s=s||!Ii(i);n++}return""!==r&&(t+=Fi(s,r)),t}const zi={};function $i(e){const t=e[3];return je(t)?t[3]:t}function Hi(e){return Vi(e[13])}function Wi(e){return Vi(e[4])}function Vi(e){for(;null!==e&&!je(e);)e=e[4];return e}function Bi(e){Ui(mt(),pt(),Yt()+e,wt())}function Ui(e,t,n,i){if(!i)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&Wt(t,i,n)}else{const i=e.preOrderHooks;null!==i&&Vt(t,i,0,n)}zt(n)}function Gi(e,t){return e<<17|t<<2}function qi(e){return e>>17&32767}function Ji(e){return 2|e}function Qi(e){return(131068&e)>>2}function Ki(e,t){return-131069&e|t<<2}function Zi(e){return 1|e}function Xi(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];Rt(r),n.contentQueries(2,t[s],s)}}}function er(e,t,n){return Ze(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function tr(e,t,n,i,r,s,o,a,c,l){const u=t.blueprint.slice();return u[0]=r,u[2]=140|i,ut(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 nr(e,t,n,i,r){const s=t+Ie,o=e.data[s]||function(e,t,n,i,r){const s=gt(),o=yt(),a=e.data[t]=function(e,t,n,i,r,s){return{type:n,index:i,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName: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:o||(s.next=a)),a}(e,s,n,i,r);return _t(o,!0),o}function ir(e,t,n){At(t);try{const i=e.viewQuery;null!==i&&Pr(1,i,n);const r=e.template;null!==r&&or(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Xi(e,t),e.staticViewQueries&&Pr(2,e.viewQuery,n);const s=e.components;null!==s&&function(e,t){for(let n=0;n<t.length;n++)Lr(e,t[n])}(t,s)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),i}finally{t[2]&=-5,Ft()}}function rr(e,t,n,i){const r=t[2];if(256==(256&r))return;At(t);const s=wt();try{ut(t),ht.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&or(e,t,n,2,i);const o=3==(3&r);if(!s)if(o){const n=e.preOrderCheckHooks;null!==n&&Wt(t,n,null)}else{const n=e.preOrderHooks;null!==n&&Vt(t,n,0,null),Bt(t,0)}if(function(e){for(let t=Hi(e);null!==t;t=Wi(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])&&dt(i,1),n[2]|=1024}}}(t),function(e){for(let t=Hi(e);null!==t;t=Wi(t))for(let e=Pe;e<t.length;e++){const n=t[e],i=n[1];ct(n)&&rr(i,n,i.template,n[8])}}(t),null!==e.contentQueries&&Xi(e,t),!s)if(o){const n=e.contentCheckHooks;null!==n&&Wt(t,n)}else{const n=e.contentHooks;null!==n&&Vt(t,n,1),Bt(t,1)}!function(e,t){try{const n=e.expandoInstructions;if(null!==n){let i=e.expandoStartIndex,r=-1,s=-1;for(let e=0;e<n.length;e++){const o=n[e];"number"==typeof o?o<=0?(s=0-o,zt(s),i+=9+n[++e],r=i):i+=o:(null!==o&&(Tt(i,r),o(2,t[r])),r++)}}}finally{zt(-1)}}(e,t);const a=e.components;null!==a&&function(e,t){for(let n=0;n<t.length;n++)Or(e,t[n])}(t,a);const c=e.viewQuery;if(null!==c&&Pr(2,c,i),!s)if(o){const n=e.viewCheckHooks;null!==n&&Wt(t,n)}else{const n=e.viewHooks;null!==n&&Vt(t,n,2),Bt(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),s||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,dt(t[3],-1))}finally{Ft()}}function sr(e,t,n,i){const r=t[10],s=!wt(),o=at(t);try{s&&!o&&r.begin&&r.begin(),o&&ir(e,t,i),rr(e,t,n,i)}finally{s&&!o&&r.end&&r.end()}}function or(e,t,n,i,r){const s=Yt();try{zt(-1),2&i&&t.length>Ie&&Ui(e,t,0,wt()),n(i,r)}finally{zt(s)}}function ar(e,t,n){if(Fe(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 cr(e,t,n){ft()&&(function(e,t,n,i){const r=n.directiveStart,s=n.directiveEnd;e.firstCreatePass||pn(n,t),Ti(i,t);const o=n.initialInputs;for(let a=r;a<s;a++){const i=e.data[a],s=$e(i);s&&kr(t,n,i);const c=Mn(t,e,a,n);Ti(c,t),null!==o&&Dr(0,a-r,c,i,0,o),s&&(st(n.index,t)[8]=c)}}(e,t,n,nt(n,t)),128==(128&n.flags)&&function(e,t,n){const i=n.directiveStart,r=n.directiveEnd,s=e.expandoInstructions,o=e.firstCreatePass,a=n.index-Ie,c=ht.lFrame.currentDirectiveIndex;try{zt(a);for(let n=i;n<r;n++){const i=e.data[n],r=t[n];Ct(n),null!==i.hostBindings||0!==i.hostVars||null!==i.hostAttrs?_r(i,r):o&&s.push(null)}}finally{zt(-1),Ct(c)}}(e,t,n))}function lr(e,t,n=nt){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 ur(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=dr(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function dr(e,t,n,i,r,s,o,a,c,l){const u=Ie+i,d=u+r,h=function(e,t){const n=[];for(let i=0;i<t;i++)n.push(i<e?null:zi);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,expandoInstructions: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 hr(e,t,n,i){const r=jr(t);r.push(n),e.firstCreatePass&&function(e){return e.cleanup||(e.cleanup=[])}(e).push(i,r.length-1)}function fr(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 pr(e,t,n,i,r,s,o,a){const c=nt(t,n);let l,u=t.inputs;var d;!a&&null!=u&&(l=u[i])?(Yr(e,n,l,i,r),Ye(t)&&function(e,t){const n=st(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):2===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.tagName||"",i):r,Ze(s)?s.setProperty(c,i,r):Zt(i)||(c.setProperty?c.setProperty(i,r):c[i]=r))}function mr(e,t,n,i){let r=!1;if(ft()){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];Ni(n,o.selectors,!1)&&(r||(r=[]),_n(pn(n,t),e,o.type),$e(o)?(vr(e,n),r.unshift(o)):r.push(o))}return r}(e,t,n),o=null===i?null:{"":-1};if(null!==s){let i=0;r=!0,Sr(n,e.data.length,s.length);for(let e=0;e<s.length;e++){const t=s[e];t.providersResolver&&t.providersResolver(t)}yr(e,n,s.length);let a=!1,c=!1;for(let r=0;r<s.length;r++){const l=s[r];n.mergedAttrs=Xt(n.mergedAttrs,l.hostAttrs),Mr(e,t,l),wr(e.data.length-1,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;!a&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index-Ie),a=!0),c||!u.ngOnChanges&&!u.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index-Ie),c=!0),br(e,l),i+=l.hostVars}!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||Ri(t)?null:Tr(n,r);s.push(l),o=fr(n,c,o),a=fr(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),gr(e,t,i)}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 Error(`Export of name '${t[e+1]}' not found!`);i.push(t[e],r)}}}(n,i,o)}return n.mergedAttrs=Xt(n.mergedAttrs,n.attrs),r}function br(e,t){const n=e.expandoInstructions;n.push(t.hostBindings),0!==t.hostVars&&n.push(t.hostVars)}function gr(e,t,n){for(let i=0;i<n;i++)t.push(zi),e.blueprint.push(zi),e.data.push(null)}function _r(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function yr(e,t,n){const i=Ie-t.index,r=e.data.length-(1048575&t.providerIndexes);(e.expandoInstructions||(e.expandoInstructions=[])).push(i,r,n)}function vr(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function wr(e,t,n){if(n){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;$e(t)&&(n[""]=e)}}function Sr(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Mr(e,t,n){e.data.push(n);const i=n.factory||(n.factory=Ee(n.type)),r=new Jt(i,$e(n),null);e.blueprint.push(r),t.push(r)}function kr(e,t,n){const i=nt(t,e),r=ur(n),s=e[10],o=Rr(e,tr(e,r,null,n.onPush?64:16,i,t,s,s.createRenderer(i,n),null,null));e[t.index]=o}function xr(e,t,n,i,r,s){const o=nt(e,t),a=t[11];if(null==i)Ze(a)?a.removeAttribute(o,n,s):o.removeAttribute(n);else{const t=null==r?sn(i):r(i,e.tagName||"",n);Ze(a)?a.setAttribute(o,n,t,s):s?o.setAttributeNS(s,n,t):o.setAttribute(n,t)}}function Dr(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 Tr(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 Cr(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function Or(e,t){const n=st(t,e);if(ct(n)){const e=n[1];80&n[2]?rr(e,n,e.template,n[8]):n[5]>0&&function e(t){for(let i=Hi(t);null!==i;i=Wi(i))for(let t=Pe;t<i.length;t++){const n=i[t];if(1024&n[2]){const e=n[1];rr(e,n,e.template,n[8])}else n[5]>0&&e(n)}const n=t[1].components;if(null!==n)for(let i=0;i<n.length;i++){const r=st(n[i],t);ct(r)&&r[5]>0&&e(r)}}(n)}}function Lr(e,t){const n=st(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),ir(i,n,n[8])}function Rr(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Er(e){for(;e;){e[2]|=64;const t=$i(e);if(He(e)&&!t)return e;e=t}return null}function Ar(e,t,n){const i=t[10];i.begin&&i.begin();try{rr(e,t,e.template,n)}catch(r){throw Fr(t,r),r}finally{i.end&&i.end()}}function Ir(e){!function(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],i=ot(n),r=i[1];sr(r,i,r.template,n)}}(e[8])}function Pr(e,t,n){Rt(0),t(e,n)}const Nr=(()=>Promise.resolve(null))();function jr(e){return e[7]||(e[7]=[])}function Fr(e,t){const n=e[9],i=n?n.get(En,null):null;i&&i.handleError(t)}function Yr(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 zr(e,t,n){const i=tt(t,e),r=e[11];Ze(r)?r.setValue(i,n):i.textContent=n}function $r(e,t,n,i,r){if(null!=i){let s,o=!1;je(i)?s=i:Ne(i)&&(o=!0,i=i[0]);const a=et(i);0===e&&null!==n?null==r?Jr(t,n,a):qr(t,n,a,r||null):1===e&&null!==n?qr(t,n,a,r||null):2===e?es(t,a,o):3===e&&t.destroyNode(a),null!=s&&function(e,t,n,i,r){const s=n[7];s!==et(n)&&$r(t,e,i,s,r);for(let o=Pe;o<n.length;o++){const r=n[o];ns(r[1],r,e,t,i,s)}}(t,e,s,n,r)}}function Hr(e,t){return Ze(t)?t.createText(e):t.createTextNode(e)}function Wr(e,t){const n=e[9],i=n.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,dt(r,-1)),n.splice(i,1)}function Vr(e,t){if(e.length<=Pe)return;const n=Pe+t,i=e[n];if(i){const s=i[17];null!==s&&s!==e&&Wr(s,i),t>0&&(e[n-1][4]=i[4]);const o=he(e,Pe+t);ns(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 Br(e,t){if(!(256&t[2])){const n=t[11];Ze(n)&&n.destroyNode&&ns(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Ur(e[1],e);for(;t;){let n=null;if(Ne(t))n=t[13];else{const e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)Ne(t)&&Ur(t[1],t),t=t[3];null===t&&(t=e),Ne(t)&&Ur(t[1],t),n=t&&t[4]}t=n}}(t)}}function Ur(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 Jt)){const t=n[i+1];if(Array.isArray(t))for(let n=0;n<t.length;n+=2)t[n+1].call(e[t[n]]);else t.call(e)}}}(e,t),function(e,t){const n=e.cleanup;if(null!==n){const e=t[7];for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const r=n[i+1],s="function"==typeof r?r(t):et(t[r]),o=e[n[i+2]],a=n[i+3];"boolean"==typeof a?s.removeEventListener(n[i],o,a):a>=0?e[a]():e[-a].unsubscribe(),i+=2}else n[i].call(e[n[i+1]]);t[7]=null}}(e,t),1===t[1].type&&Ze(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&je(t[3])){n!==t[3]&&Wr(n,t);const i=t[19];null!==i&&i.detachView(e)}}}function Gr(e,t,n){let i=t.parent;for(;null!=i&&(3===i.type||4===i.type);)i=(t=i).parent;if(null===i)return n[0];if(t&&4===t.type&&4&t.flags)return nt(t,n).parentNode;if(2&i.flags){const t=e.data,n=t[t[i.index].directiveStart].encapsulation;if(n!==_e.ShadowDom&&n!==_e.Native)return null}return nt(i,n)}function qr(e,t,n,i){Ze(e)?e.insertBefore(t,n,i):t.insertBefore(n,i,!0)}function Jr(e,t,n){Ze(e)?e.appendChild(t,n):t.appendChild(n)}function Qr(e,t,n,i){null!==i?qr(e,t,n,i):Jr(e,t,n)}function Kr(e,t){return Ze(e)?e.parentNode(t):t.parentNode}function Zr(e,t){return 3===e.type||4===e.type?nt(e,t):null}function Xr(e,t,n,i){const r=Gr(e,i,t);if(null!=r){const e=t[11],s=Zr(i.parent||t[6],t);if(Array.isArray(n))for(let t=0;t<n.length;t++)Qr(e,r,n[t],s);else Qr(e,r,n,s)}}function es(e,t,n){const i=Kr(e,t);i&&function(e,t,n,i){Ze(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}function ts(e,t,n,i,r,s,o){for(;null!=n;){const a=i[n.index],c=n.type;o&&0===t&&(a&&Ti(et(a),i),n.flags|=4),64!=(64&n.flags)&&(3===c||4===c?(ts(e,t,n.child,i,r,s,!1),$r(t,e,r,a,s)):1===c?rs(e,t,i,n,r,s):$r(t,e,r,a,s)),n=o?n.projectionNext:n.next}}function ns(e,t,n,i,r,s){ts(n,i,e.firstChild,t,r,s,!1)}function is(e,t,n){rs(t[11],0,t,n,Gr(e,n,t),Zr(n.parent||t[6],t))}function rs(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++)$r(t,e,r,a[c],s);else ts(e,t,a,o[3],r,s,!0)}function ss(e,t,n){Ze(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function os(e,t,n){Ze(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}class as{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const e=this._lView,t=e[1];return function e(t,n,i,r,s=!1){for(;null!==i;){const o=n[i.index];if(null!==o&&r.push(et(o)),je(o))for(let t=Pe;t<o.length;t++){const n=o[t],i=n[1].firstChild;null!==i&&e(n[1],n,i,r)}const a=i.type;if(3===a||4===a)e(t,n,i.child,r);else if(1===a){const t=n[16],s=t[6].projection[i.projection];if(Array.isArray(s))r.push(...s);else{const n=$i(t);e(n[1],n,s,r,!0)}}i=s?i.projectionNext:i.next}return r}(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._viewContainerRef){const e=this._viewContainerRef.indexOf(this);e>-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Br(this._lView[1],this._lView)}onDestroy(e){hr(this._lView[1],this._lView,null,e)}markForCheck(){Er(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Ar(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){St(!0);try{Ar(e,t,n)}finally{St(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}detachFromAppRef(){var e;this._appRef=null,ns(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class cs extends as{constructor(e){super(e),this._view=e}detectChanges(){Ir(this._view)}checkNoChanges(){!function(e){St(!0);try{Ir(e)}finally{St(!1)}}(this._view)}get context(){return null}}let ls,us,ds;function hs(e,t,n){return ls||(ls=class extends e{}),new ls(nt(t,n))}function fs(e,t,n,i){return us||(us=class extends e{constructor(e,t,n){super(),this._declarationView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=tr(this._declarationView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationView[this._declarationTContainer.index];const i=this._declarationView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),ir(t,n,e),new as(n)}}),0===n.type?new us(i,n,hs(t,n,i)):null}function ps(e,t,n,i){let r;ds||(ds=class extends e{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostView=n}get element(){return hs(t,this._hostTNode,this._hostView)}get injector(){return new Dn(this._hostTNode,this._hostView)}get parentInjector(){const e=gn(this._hostTNode,this._hostView);if(tn(e)){const t=rn(e,this._hostView),n=nn(e);return new Dn(t[1].data[n+8],t)}return new Dn(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}get length(){return this._lContainer.length-Pe}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(ae,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(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),je(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],i=new ds(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=Pe+i,s=n.length;i>0&&(n[r-1][4]=t),i<s-Pe?(t[4]=n[r],de(n,Pe+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=function e(t,n){const i=Pe+t+1;if(i<n.length){const t=n[i],r=t[1].firstChild;if(null!==r)return function t(n,i){if(null!==i){const r=i.type;if(2===r)return nt(i,n);if(0===r)return e(-1,n[i.index]);if(3===r||4===r){const r=i.child;if(null!==r)return t(n,r);{const t=n[i.index];return je(t)?e(-1,t):et(t)}}{const e=n[16],r=e[6],s=$i(e),o=r.projection[i.projection];return null!=o?t(s,o):t(n,i.next)}}return null}(t,r)}return n[7]}(r,s),a=n[11],c=Kr(a,s[7]);return null!==c&&function(e,t,n,i,r,s){i[0]=r,i[6]=t,ns(e,i,n,1,r,s)}(i,s[6],a,n,c,o),e.attachToViewContainerRef(this),de(s[8],r,e),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(e,t)}indexOf(e){const t=this._lContainer[8];return null!==t?t.indexOf(e):-1}remove(e){this.allocateContainerIfNeeded();const t=this._adjustIndex(e,-1),n=Vr(this._lContainer,t);n&&(he(this._lContainer[8],t),Br(n[1],n))}detach(e){this.allocateContainerIfNeeded();const t=this._adjustIndex(e,-1),n=Vr(this._lContainer,t);return n&&null!=he(this._lContainer[8],t)?new as(n):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const s=i[n.index];if(je(s))r=s;else{let e;if(3===n.type)e=et(s);else if(e=i[11].createComment(""),He(i)){const t=i[11],r=nt(n,i);qr(t,Kr(t,r),e,function(e,t){return Ze(e)?e.nextSibling(t):t.nextSibling}(t,r))}else Xr(i[1],i,e,n);i[n.index]=r=Cr(s,i,e,n),Rr(i,r)}return new ds(r,n,i)}function ms(e=!1){return function(e,t,n){if(!n&&Ye(e)){const n=st(e.index,t);return new as(n,n)}return 2===e.type||0===e.type||3===e.type||4===e.type?new as(t[16],t):null}(gt(),pt(),e)}let bs=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>gs(),e})();const gs=ms,_s=Function,ys=new U("Set Injector scope."),vs={},ws={},Ss=[];let Ms=void 0;function ks(){return void 0===Ms&&(Ms=new oe),Ms}function xs(e,t=null,n=null,i){return new Ds(e,n,t||ks(),i)}class Ds{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&&ue(t,n=>this.processProvider(n,e,t)),ue([e],e=>this.processInjectorType(e,[],r)),this.records.set(G,Os(void 0,this));const s=this.records.get(ys);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof e?null:C(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=q,n=m.Default){this.assertNotDestroyed();const i=ee(this);try{if(!(n&m.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(r=e)||"object"==typeof r&&r instanceof U)&&v(e);t=n&&this.injectableDefInScope(n)?Os(Ts(e),vs):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&m.Self?ks():this.parent).get(e,t=n&m.Optional&&t===q?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(C(e)),i)throw s;return function(e,t,n,i){const r=e.ngTempTokenPath;throw t[Q]&&r.unshift(t[Q]),e.message=function(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=C(t);if(Array.isArray(t))r=t.map(C).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):C(i)))}r=`{${e.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${e.replace(J,"\n  ")}`}("\n"+e.message,r,n,i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(s,e,"R3InjectorError",this.source)}throw s}finally{ee(i)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(C(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=E(e)))return!1;let i=S(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=S(r)),null==i)return!1;if(null!=i.imports&&!o){let e;n.push(s);try{ue(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];ue(i,e=>this.processProvider(e,n,i||Ss))}}this.injectorDefTypes.add(s),this.records.set(s,Os(i.factory,vs));const a=i.providers;if(null!=a&&!o){const t=e;ue(a,e=>this.processProvider(e,t,a))}return void 0!==r&&void 0!==e.providers}processProvider(e,t,n){let i=Rs(e=E(e))?e:E(e&&e.provide);const r=function(e,t,n){return Ls(e)?Os(void 0,e.useValue):Os(Cs(e),vs)}(e);if(Rs(e)||!0!==e.multi)this.records.get(i);else{let t=this.records.get(i);t||(t=Os(void 0,vs,!0),t.factory=()=>se(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===vs&&(t.value=ws,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 Ts(e){const t=v(e),n=null!==t?t.factory:Ee(e);if(null!==n)return n;const i=S(e);if(null!==i)return i.factory;if(e instanceof U)throw new Error(`Token ${C(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=fe(t,"?");throw new Error(`Can't resolve all parameters for ${C(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[M]||e[D]||e[x]&&e[x]());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 Cs(e,t,n){let i=void 0;if(Rs(e)){const t=E(e);return Ee(t)||Ts(t)}if(Ls(e))i=()=>E(e.useValue);else if((r=e)&&r.useFactory)i=()=>e.useFactory(...se(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))i=()=>ie(E(e.useExisting));else{const t=E(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Ee(t)||Ts(t);i=()=>new t(...se(e.deps))}var r;return i}function Os(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Ls(e){return null!==e&&"object"==typeof e&&K in e}function Rs(e){return"function"==typeof e}const Es=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 As=(()=>{class e{static create(e,t){return Array.isArray(e)?Es(e,t,""):Es(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=q,e.NULL=new oe,e.\u0275prov=_({token:e,providedIn:"any",factory:()=>ie(G)}),e.__NG_ELEMENT_ID__=-1,e})();const Is=new U("AnalyzeForEntryComponents");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=O(r,e):2==s&&(i=O(i,e+": "+t[++o]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=r:e.classesWithoutHost=r}function Ns(e,t){const n=ot(e)[1],i=n.data.length-1;Ht(n,{directiveStart:i,directiveEnd:i+1})}function js(e){let t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0;const i=[e];for(;t;){let r=void 0;if($e(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=Fs(e.inputs),t.declaredInputs=Fs(e.declaredInputs),t.outputs=Fs(e.outputs);const n=r.hostBindings;n&&$s(e,n);const s=r.viewQuery,o=r.contentQueries;if(s&&Ys(e,s),o&&zs(e,o),g(e.inputs,r.inputs),g(e.declaredInputs,r.declaredInputs),g(e.outputs,r.outputs),$e(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===js&&(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=Xt(r.hostAttrs,n=Xt(n,r.hostAttrs))}}(i)}function Fs(e){return e===ye?{}:e===ve?[]:e}function Ys(e,t){const n=e.viewQuery;e.viewQuery=n?(e,i)=>{t(e,i),n(e,i)}:t}function zs(e,t){const n=e.contentQueries;e.contentQueries=n?(e,i,r)=>{t(e,i,r),n(e,i,r)}:t}function $s(e,t){const n=e.hostBindings;e.hostBindings=n?(e,i)=>{t(e,i),n(e,i)}:t}let Hs=null;function Ws(){if(!Hs){const e=F.Symbol;if(e&&e.iterator)Hs=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&&(Hs=n)}}}return Hs}class Vs{constructor(e){this.wrapped=e}static wrap(e){return new Vs(e)}static unwrap(e){return Vs.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof Vs}}function Bs(e){return!!Us(e)&&(Array.isArray(e)||!(e instanceof Map)&&Ws()in e)}function Us(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Gs(e,t,n){return e[t]=n}function qs(e,t){return e[t]}function Js(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Qs(e,t,n,i){const r=Js(e,t,n);return Js(e,t+1,i)||r}function Ks(e,t,n,i,r){const s=Qs(e,t,n,i);return Js(e,t+2,r)||s}function Zs(e,t,n,i,r,s){const o=Qs(e,t,n,i);return Qs(e,t+2,r,s)||o}function Xs(e,t,n,i){const r=pt();return Js(r,xt(),t)&&(mt(),xr($t(),r,e,t,n,i)),Xs}function eo(e,t,n,i){return Js(e,xt(),n)?t+sn(n)+i:zi}function to(e,t,n,i,r,s){const o=Qs(e,kt(),n,r);return Dt(2),o?t+sn(n)+i+sn(r)+s:zi}function no(e,t,n,i,r,s,o,a){const c=pt(),l=mt(),u=e+Ie,d=l.firstCreatePass?function(e,t,n,i,r,s,o,a,c){const l=t.consts,u=nr(t,e,0,o||null,lt(l,a));mr(t,n,u,lt(l,c)),Ht(t,u);const d=u.tViews=dr(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}(e,l,c,t,n,i,r,s,o):l.data[u];_t(d,!1);const h=c[11].createComment("");Xr(l,c,h,d),Ti(h,c),Rr(c,c[u]=Cr(h,c,h,d)),ze(d)&&cr(l,c,d),null!=o&&lr(c,d,a)}function io(e){return rt(ht.lFrame.contextLView,e)}function ro(e,t=m.Default){const n=pt();return null===n?ie(e,t):yn(gt(),n,E(e),t)}function so(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(Kt(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}(gt(),e)}function oo(e,t,n){const i=pt();return Js(i,xt(),t)&&pr(mt(),$t(),i,e,t,i[11],n,!1),oo}function ao(e,t,n,i,r){const s=r?"class":"style";Yr(e,n,t.inputs[s],s,i)}function co(e,t,n,i){const r=pt(),s=mt(),o=Ie+e,a=r[11],c=r[o]=er(t,a,ht.lFrame.currentNamespace),l=s.firstCreatePass?function(e,t,n,i,r,s,o){const a=t.consts,c=nr(t,e,2,r,lt(a,s));return mr(t,n,c,lt(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}(e,s,r,0,t,n,i):s.data[o];_t(l,!0);const u=l.mergedAttrs;null!==u&&Qt(a,c,u);const d=l.classes;null!==d&&os(a,c,d);const h=l.styles;null!==h&&ss(a,c,h),Xr(s,r,c,l),0===ht.lFrame.elementDepthCount&&Ti(c,r),ht.lFrame.elementDepthCount++,ze(l)&&(cr(s,r,l),ar(s,l,r)),null!==i&&lr(r,l)}function lo(){let e=gt();yt()?vt():(e=e.parent,_t(e,!1));const t=e;ht.lFrame.elementDepthCount--;const n=mt();n.firstCreatePass&&(Ht(n,e),Fe(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&ao(n,t,pt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&ao(n,t,pt(),t.stylesWithoutHost,!1)}function uo(e,t,n,i){co(e,t,n,i),lo()}function ho(e,t,n){const i=pt(),r=mt(),s=e+Ie,o=r.firstCreatePass?function(e,t,n,i,r){const s=t.consts,o=lt(s,i),a=nr(t,e,3,"ng-container",o);return null!==o&&Ps(a,o,!0),mr(t,n,a,lt(s,r)),null!==t.queries&&t.queries.elementStart(t,a),a}(e,r,i,t,n):r.data[s];_t(o,!0);const a=i[s]=i[11].createComment("");Xr(r,i,a,o),Ti(a,i),ze(o)&&(cr(r,i,o),ar(r,o,i)),null!=n&&lr(i,o)}function fo(){let e=gt();const t=mt();yt()?vt():(e=e.parent,_t(e,!1)),t.firstCreatePass&&(Ht(t,e),Fe(e)&&t.queries.elementEnd(e))}function po(e,t,n){ho(e,t,n),fo()}function mo(){return pt()}function bo(e){return!!e&&"function"==typeof e.then}function go(e){return!!e&&"function"==typeof e.subscribe}function _o(e,t,n=!1,i){const r=pt(),s=mt(),o=gt();return function(e,t,n,i,r,s,o=!1,a){const c=ze(i),l=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),u=jr(t);let d=!0;if(2===i.type){const h=nt(i,t),f=a?a(h):ye,p=f.target||h,m=u.length,b=a?e=>a(et(e[i.index])).target:i.index;if(Ze(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=vo(i,t,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=vo(i,t,s,!0),p.addEventListener(r,s,o),u.push(s),l&&l.push(r,b,m,o)}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),_o}function yo(e,t,n){try{return!1!==t(n)}catch(i){return Fr(e,i),!1}}function vo(e,t,n,i){return function r(s){if(s===Function)return n;const o=2&e.flags?st(e.index,t):t;0==(32&t[2])&&Er(o);let a=yo(t,n,s),c=r.__ngNextListenerFn__;for(;c;)a=yo(t,c,s)&&a,c=c.__ngNextListenerFn__;return i&&!1===a&&(s.preventDefault(),s.returnValue=!1),a}}function wo(e=1){return function(e){return(ht.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,ht.lFrame.contextLView))[8]}(e)}function So(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?Ni(e,s,!0):ji(i,s))return r}else n=r}return n}function Mo(e){const t=pt()[16][6];if(!t.projection){const n=t.projection=fe(e?e.length:1,null),i=n.slice();let r=t.child;for(;null!==r;){const t=e?So(r,e):0;null!==t&&(i[t]?i[t].projectionNext=r:n[t]=r,i[t]=r),r=r.next}}}let ko=!1;function xo(e){ko=e}function Do(e,t=0,n){const i=pt(),r=mt(),s=nr(r,e,1,null,n||null);null===s.projection&&(s.projection=t),vt(),ko||is(r,i,s)}function To(e,t,n){return Co(e,"",t,"",n),To}function Co(e,t,n,i,r){const s=pt(),o=eo(s,t,n,i);return o!==zi&&pr(mt(),$t(),s,e,o,s[11],r,!1),Co}function Oo(e,t,n,i,r,s,o){const a=pt(),c=to(a,t,n,i,r,s);return c!==zi&&pr(mt(),$t(),a,e,c,a[11],o,!1),Oo}const Lo=[];function Ro(e,t,n,i,r){const s=e[n+1],o=null===t;let a=i?qi(s):Qi(s),c=!1;for(;0!==a&&(!1===c||o);){const n=e[a+1];Eo(e[a],t)&&(c=!0,e[a+1]=i?Zi(n):Ji(n)),a=i?qi(n):Qi(n)}c&&(e[n+1]=i?Ji(s):Zi(s))}function Eo(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&be(e,t)>=0}const Ao={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Io(e){return e.substring(Ao.key,Ao.keyEnd)}function Po(e,t){const n=Ao.textEnd;return n===t?-1:(t=Ao.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Ao.key=t,n),No(e,t,n))}function No(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function jo(e,t,n){return $o(e,t,n,!1),jo}function Fo(e,t){return $o(e,t,null,!0),Fo}function Yo(e){Ho(pe,zo,e,!0)}function zo(e,t){for(let n=function(e){return function(e){Ao.key=0,Ao.keyEnd=0,Ao.value=0,Ao.valueEnd=0,Ao.textEnd=e.length}(e),Po(e,No(e,0,Ao.textEnd))}(t);n>=0;n=Po(t,n))pe(e,Io(t),!0)}function $o(e,t,n,i){const r=pt(),s=mt(),o=Dt(2);s.firstUpdatePass&&Vo(s,e,o,i),t!==zi&&Js(r,o,t)&&Go(s,s.data[Yt()+Ie],r,r[11],e,r[o+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=C(Yn(e)))),e}(t,n),i,o)}function Ho(e,t,n,i){const r=mt(),s=Dt(2);r.firstUpdatePass&&Vo(r,null,s,i);const o=pt();if(n!==zi&&Js(o,s,n)){const a=r.data[Yt()+Ie];if(Qo(a,i)&&!Wo(r,s)){let e=i?a.classesWithoutHost:a.stylesWithoutHost;null!==e&&(n=O(e,n||"")),ao(r,a,o,n,i)}else!function(e,t,n,i,r,s,o,a){r===zi&&(r=Lo);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=null,m=void 0;u===d?(c+=2,l+=2,h!==f&&(p=d,m=f)):null===d||null!==u&&u<d?(c+=2,p=u):(l+=2,p=d,m=f),null!==p&&Go(e,t,n,i,p,m,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 Lo;const i=[],r=Yn(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 Wo(e,t){return t>=e.expandoStartIndex}function Vo(e,t,n,i){const r=e.data;if(null===r[n+1]){const s=r[Yt()+Ie],o=Wo(e,n);Qo(s,i)&&null===t&&!o&&(t=!1),t=function(e,t,n,i){const r=Ot(e);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Uo(n=Bo(null,e,t,n,i),t.attrs,i),s=null);else{const o=t.directiveStylingLast;if(-1===o||e[o]!==r)if(n=Bo(r,e,t,n,i),null===s){let n=function(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==Qi(i))return e[qi(i)]}(e,t,i);void 0!==n&&Array.isArray(n)&&(n=Bo(null,e,t,n[1],i),n=Uo(n,t.attrs,i),function(e,t,n,i){e[qi(n?t.classBindings:t.styleBindings)]=i}(e,t,i,n))}else s=function(e,t,n){let i=void 0;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<r;s++)i=Uo(i,e[s].hostAttrs,n);return Uo(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=qi(o),c=Qi(o);e[i]=n;let l,u=!1;if(Array.isArray(n)){const e=n;l=e[1],(null===l||be(e,l)>0)&&(u=!0)}else l=n;if(r)if(0!==c){const t=qi(e[a+1]);e[i+1]=Gi(t,a),0!==t&&(e[t+1]=Ki(e[t+1],i)),e[a+1]=131071&e[a+1]|i<<17}else e[i+1]=Gi(a,0),0!==a&&(e[a+1]=Ki(e[a+1],i)),a=i;else e[i+1]=Gi(c,0),0===a?a=i:e[c+1]=Ki(e[c+1],i),c=i;u&&(e[i+1]=Ji(e[i+1])),Ro(e,l,i,!0),Ro(e,l,i,!1),function(e,t,n,i,r){const s=r?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&be(s,t)>=0&&(n[i+1]=Zi(n[i+1]))}(t,l,e,i,s),o=Gi(a,c),s?t.classBindings=o:t.styleBindings=o}(r,s,t,n,o,i)}}function Bo(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=Uo(i,s.hostAttrs,r),s!==e);)a++;return null!==e&&(n.directiveStylingLast=a),i}function Uo(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]),pe(e,o,!!n||t[++s]))}return void 0===e?null:e}function Go(e,t,n,i,r,s,o,a){if(2!==t.type)return;const c=e.data,l=c[a+1];Jo(1==(1&l)?qo(c,t,n,r,Qi(l),o):void 0)||(Jo(s)||2==(2&l)&&(s=qo(c,null,n,r,a,o)),function(e,t,n,i,r){const s=Ze(e);if(t)r?s?e.addClass(n,i):n.classList.add(i):s?e.removeClass(n,i):n.classList.remove(i);else{const t=-1==i.indexOf("-")?void 0:2;null==r?s?e.removeStyle(n,i,t):n.style.removeProperty(i):s?e.setStyle(n,i,r,t):n.style.setProperty(i,r)}}(i,o,tt(Yt(),n),r,s))}function qo(e,t,n,i,r,s){const o=null===t;let a=void 0;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===zi&&(u=l?Lo:void 0);let d=l?me(u,i):c===i?u:void 0;if(s&&!Jo(d)&&(d=me(t,i)),Jo(d)&&(a=d,o))return a;const h=e[r+1];r=o?qi(h):Qi(h)}if(null!==t){let e=s?t.residualClasses:t.residualStyles;null!=e&&(a=me(e,i))}return a}function Jo(e){return void 0!==e}function Qo(e,t){return 0!=(e.flags&(t?16:32))}function Ko(e,t=""){const n=pt(),i=mt(),r=e+Ie,s=i.firstCreatePass?nr(i,e,2,null,null):i.data[r],o=n[r]=Hr(t,n[11]);Xr(i,n,o,s),_t(s,!1)}function Zo(e){return Xo("",e,""),Zo}function Xo(e,t,n){const i=pt(),r=eo(i,e,t,n);return r!==zi&&zr(i,Yt(),r),Xo}function ea(e,t,n,i,r){const s=pt(),o=to(s,e,t,n,i,r);return o!==zi&&zr(s,Yt(),o),ea}function ta(e,t,n,i,r,s,o){const a=pt(),c=function(e,t,n,i,r,s,o,a){const c=Ks(e,kt(),n,r,o);return Dt(3),c?t+sn(n)+i+sn(r)+s+sn(o)+a:zi}(a,e,t,n,i,r,s,o);return c!==zi&&zr(a,Yt(),c),ta}function na(e,t,n){Ho(pe,zo,eo(pt(),e,t,n),!0)}function ia(e,t,n,i,r){Ho(pe,zo,to(pt(),e,t,n,i,r),!0)}function ra(e,t,n,i,r,s,o,a,c){Ho(pe,zo,function(e,t,n,i,r,s,o,a,c,l){const u=Zs(e,kt(),n,r,o,c);return Dt(4),u?t+sn(n)+i+sn(r)+s+sn(o)+a+sn(c)+l:zi}(pt(),e,t,n,i,r,s,o,a,c),!0)}function sa(e,t,n){const i=pt();return Js(i,xt(),t)&&pr(mt(),$t(),i,e,t,i[11],n,!0),sa}function oa(e,t,n){const i=pt();if(Js(i,xt(),t)){const r=mt(),s=$t();pr(r,s,i,e,t,function(e,t,n){return(null===e||$e(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]}(Ot(r.data),s,i),n,!0)}return oa}function aa(e,t,n,i,r){if(e=E(e),Array.isArray(e))for(let s=0;s<e.length;s++)aa(e[s],t,n,i,r);else{const s=mt(),o=pt();let a=Rs(e)?e:E(e.provide),c=Cs(e);const l=gt(),u=1048575&l.providerIndexes,d=l.directiveStart,h=l.providerIndexes>>20;if(Rs(e)||!e.multi){const i=new Jt(c,r,ro),f=ua(a,t,r?u:u+h,d);-1===f?(_n(pn(l,o),s,a),ca(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=ua(a,t,u+h,d),p=ua(a,t,u,u+h),m=f>=0&&n[f],b=p>=0&&n[p];if(r&&!b||!r&&!m){_n(pn(l,o),s,a);const u=function(e,t,n,i,r){const s=new Jt(e,n,ro);return s.multi=[],s.index=t,s.componentProviders=0,la(s,r,i&&!n),s}(r?ha:da,n.length,r,i,c);!r&&b&&(n[p].providerFactory=u),ca(s,e,t.length,0),t.push(a),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(u),o.push(u)}else ca(s,e,f>-1?f:p,la(n[r?p:f],c,!r&&i));!r&&i&&b&&n[p].componentProviders++}}}function ca(e,t,n,i){const r=Rs(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 la(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function ua(e,t,n,i){for(let r=n;r<i;r++)if(t[r]===e)return r;return-1}function da(e,t,n,i){return fa(this.multi,[])}function ha(e,t,n,i){const r=this.multi;let s;if(this.providerFactory){const e=this.providerFactory.componentProviders,t=Mn(n,n[1],this.providerFactory.index,i);s=t.slice(0,e),fa(r,s);for(let n=e;n<t.length;n++)s.push(t[n])}else s=[],fa(r,s);return s}function fa(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function pa(e,t=[]){return n=>{n.providersResolver=(n,i)=>function(e,t,n){const i=mt();if(i.firstCreatePass){const r=$e(e);aa(n,i.data,i.blueprint,r,!0),aa(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}class ma{}class ba{}class ga{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${C(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(e)}}let _a=(()=>{class e{}return e.NULL=new ga,e})(),ya=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>va(e),e})();const va=function(e){return hs(e,gt(),pt())};class wa{}var Sa=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});let Ma=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>ka(),e})();const ka=function(){const e=pt(),t=st(gt().index,e);return function(e){const t=e[11];if(Ze(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Ne(t)?t:e)};let xa=(()=>{class e{}return e.\u0275prov=_({token:e,providedIn:"root",factory:()=>null}),e})();class Da{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Ta=new Da("10.1.5");class Ca{constructor(){}supports(e){return Bs(e)}create(e){return new La(e)}}const Oa=(e,t)=>t;class La{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||Oa}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<Ia(n,i,r)?t:n,o=Ia(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=[]),!Bs(e))throw new Error(`Error trying to diff '${C(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[Ws()]();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._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,i)):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)):e=this._addAfter(new Ra(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 Aa),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 Aa),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 Ra{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 Ea{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 Aa{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new Ea,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 Ia(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 Pa{constructor(){}supports(e){return e instanceof Map||Us(e)}create(){return new Na}}class Na{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||Us(e)))throw new Error(`Error trying to diff '${C(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 ja(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 ja{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}}let Fa=(()=>{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=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new p,new h]]}}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=_({token:e,providedIn:"root",factory:()=>new e([new Ca])}),e})(),Ya=(()=>{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=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new p,new h]]}}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=_({token:e,providedIn:"root",factory:()=>new e([new Pa])}),e})();const za=[new Pa],$a=new Fa([new Ca]),Ha=new Ya(za);let Wa=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Va(e,ya),e})();const Va=function(e,t){return fs(e,t,gt(),pt())};let Ba=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Ua(e,ya),e})();const Ua=function(e,t){return ps(e,t,gt(),pt())},Ga={};class qa extends _a{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=Re(e);return new Ka(t,this.ngModule)}}function Ja(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const Qa=new U("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>an});class Ka extends ba{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(Yi).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Ja(this.componentDef.inputs)}get outputs(){return Ja(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,Ga,r);return s!==Ga||i===Ga?s:t.get(n,i,r)}}}(e,i.injector):e,s=r.get(wa,Xe),o=r.get(xa,null),a=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",l=n?function(e,t,n){if(Ze(e))return e.selectRootElement(t,n===_e.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(a,n,this.componentDef.encapsulation):er(c,s.createRenderer(null,this.componentDef),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:an,clean:Nr,playerHandler:null,flags:0},h=dr(0,null,null,1,0,null,null,null,null,null),f=tr(null,h,d,u,null,null,s,a,o,r);let p,m;At(f);try{const e=function(e,t,n,i,r,s){const o=n[1];n[20]=e;const a=nr(o,0,2,null,null),c=a.mergedAttrs=t.hostAttrs;null!==c&&(Ps(a,c,!0),null!==e&&(Qt(r,e,c),null!==a.classes&&os(r,e,a.classes),null!==a.styles&&ss(r,e,a.styles)));const l=i.createRenderer(e,t),u=tr(n,ur(t),null,t.onPush?64:16,n[20],a,i,l,null,null);return o.firstCreatePass&&(_n(pn(a,n),o,t.type),vr(o,a),Sr(a,n.length,1)),Rr(n,u),n[20]=u}(l,this.componentDef,f,s,a);if(l)if(n)Qt(a,l,["ng-version",Ta.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(!Ii(r))break;r=s}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);e&&Qt(a,l,e),t&&t.length>0&&os(a,l,t.join(" "))}if(m=it(h,0),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=gt();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),yr(e,i,1),Mr(e,t,n));const r=Mn(t,e,t.length-1,i);Ti(r,t);const s=nt(i,t);return s&&Ti(s,t),r}(s,n,t);i.components.push(o),e[8]=o,r&&r.forEach(e=>e(o,t)),t.contentQueries&&t.contentQueries(1,o,n.length-1);const a=gt();if(s.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){zt(a.index-Ie);const e=n[1];br(e,t),gr(e,n,t.hostVars),_r(t,o)}return o}(e,this.componentDef,f,d,[Ns]),ir(h,f,null)}finally{Ft()}return new Za(this.componentType,p,hs(ya,m,f),f,m)}}class Za extends ma{constructor(e,t,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.destroyCbs=[],this.instance=t,this.hostView=this.changeDetectorRef=new cs(i),this.componentType=e}get injector(){return new Dn(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(e=>e()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(e){this.destroyCbs&&this.destroyCbs.push(e)}}const Xa=void 0;var ec=["en",[["a","p"],["AM","PM"],Xa],[["AM","PM"],Xa,Xa],[["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"]],Xa,[["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"]],Xa,[["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}",Xa,"{1} 'at' {0}",Xa],[".",",",";","%","+","-","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 tc={};function nc(e,t,n){"string"!=typeof t&&(n=t,t=e[ac.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),tc[t]=e,n&&(tc[t][ac.ExtraData]=n)}function ic(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=oc(t);if(n)return n;const i=t.split("-")[0];if(n=oc(i),n)return n;if("en"===i)return ec;throw new Error(`Missing locale data for the locale "${e}".`)}function rc(e){return ic(e)[ac.CurrencyCode]||null}function sc(e){return ic(e)[ac.PluralCase]}function oc(e){return e in tc||(tc[e]=F.ng&&F.ng.common&&F.ng.common.locales&&F.ng.common.locales[e]),tc[e]}var ac=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 cc=["zero","one","two","few","many"],lc="en-US";let uc=lc;function dc(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: "+e+` [Expected=> null != ${t} <=Actual]`)}(n,t),"string"==typeof e&&(uc=e.toLowerCase().replace(/_/g,"-"))}const hc={marker:"element"},fc={marker:"comment"},pc=[];let mc=-1,bc=0,gc=0;function _c(e,t,n,i){const r=i[11];let s=null,o=null;const a=[];for(let c=0;c<n.length;c++){const l=n[c];if("string"==typeof l){const t=Hr(l,r),u=n[++c];o=s,s=kc(e,i,u,2,t,null),a.push(u),vt()}else if("number"==typeof l)switch(7&l){case 1:const r=l>>>17;let u;u=r===t?i[6]:it(e,r),o=Sc(e,s,u,o,i);break;case 0:const d=l>=0,h=(d?l:~l)>>>3;a.push(h),o=s,s=it(e,h),s&&_t(s,d);break;case 5:o=s=it(e,l>>>3),_t(s,!1);break;case 4:const f=n[++c],p=n[++c];xr(it(e,l>>>3),i,f,p,null,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${l}"`)}else switch(l){case fc:const t=n[++c],u=n[++c],d=r.createComment(t);o=s,s=kc(e,i,u,4,d,null),a.push(u),Ti(d,i),vt();break;case hc:const h=n[++c],f=n[++c];o=s,s=kc(e,i,f,2,r.createElement(h),h),a.push(f);break;default:throw new Error(`Unable to determine the type of mutate operation for "${l}"`)}}return vt(),a}function yc(e,t,n,i,r,s){let o=!1;for(let a=0;a<i.length;a++){const c=i[a],l=i[++a];if(c&s){let s="";for(let c=a+1;c<=a+l;c++){const a=i[c];if("string"==typeof a)s+=a;else if("number"==typeof a)if(a<0)s+=sn(n[r-a]);else{const l=a>>>2;switch(3&a){case 1:const a=i[++c],u=i[++c];pr(e,it(e,l),n,a,s,n[11],u,!1);break;case 0:zr(n,l,s);break;case 2:o=wc(e,t,i[++c],n,s);break;case 3:vc(e,t,i[++c],r,n,o)}}}}a+=l}}function vc(e,t,n,i,r,s){const o=t[n],a=r[o.currentCaseLViewIndex];null!==a&&yc(e,t,r,o.update[a],i,s?-1:bc)}function wc(e,t,n,i,r){!function e(t,n,i,r){const s=n[i],o=r[s.currentCaseLViewIndex];if(null!==o){const i=s.remove[o];for(let s=0;s<i.length;s++){const o=i[s],a=o>>>3;switch(7&o){case 3:Mc(t,r,a,!1);break;case 6:e(t,n,a,r)}}}}(e,t,n,i);let s=!1;const o=t[n],a=function(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const i=function(e,t){const n=sc(t)(parseInt(e,10)),i=cc[n];return void 0!==i?i:"other"}(t,uc);n=e.cases.indexOf(i),-1===n&&"other"!==i&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return n}(o,r);return i[o.currentCaseLViewIndex]=-1!==a?a:null,a>-1&&(_c(e,-1,o.create[a],i),s=!0),s}function Sc(e,t,n,i,r){const s=t.next;i||(i=n),i===n&&t!==n.child?(t.next=n.child,null===t.parent?e.firstChild=t:n.child=t):i!==n&&t!==i.next?(t.next=i.next,i.next=t):t.next=null,n!==r[6]&&(t.parent=n);let o=t.next;for(;o;)o.next===t&&(o.next=s),o=o.next;if(1===t.type)return is(e,r,t),t;Xr(e,r,nt(t,r),t);const a=r[t.index];return 0!==t.type&&je(a)&&Xr(e,r,a[7],t),t}function Mc(e,t,n,i){const r=it(e,n),s=tt(n,t);s&&es(t[11],s);const o=rt(t,n);if(je(o)){const e=o;0!==r.type&&es(t[11],e[7])}i&&r&&(r.flags|=64)}function kc(e,t,n,i,r,s){const o=gt();t[n+Ie]=r;const a=nr(e,n,i,s,null);return o&&o.next===a&&(o.next=null),a}const xc=/\ufffd(\d+):?\d*\ufffd/gi,Dc=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,Tc=/\ufffd(\d+)\ufffd/,Cc=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/;let Oc;const Lc=[],Rc=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Ec=/\ufffd(\/?[#*!]\d+):?\d*\ufffd/gi,Ac=/\uE500/g;function Ic(e,t,n,i=null){const r=[null,null],s=e.split(xc);let o=0;for(let a=0;a<s.length;a++){const e=s[a];if(1&a){const t=parseInt(e,10);r.push(-1-t),o|=jc(t)}else""!==e&&r.push(e)}return r.push(t<<2|(n?1:0)),n&&r.push(n,i),r[0]=o,r[1]=r.length-2,r}function Pc(e,t=0){let n;t|=jc(e.mainBinding);for(let i=0;i<e.values.length;i++){const r=e.values[i];for(let e=0;e<r.length;e++){const i=r[e];if("string"==typeof i)for(;n=xc.exec(i);)t|=jc(parseInt(n[1],10));else t=Pc(i,t)}}return t}function Nc(e){return e+Oc++}function jc(e){return 1<<Math.min(e,31)}function Fc(e){return void 0===e}function Yc(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 zc(e,t,n,i){const r=[],s=[],o=[],a=[],c=[],l=t.values;for(let u=0;u<l.length;u++){const t=l[u],d=[];for(let e=0;e<t.length;e++){const n=t[e];if("string"!=typeof n){const i=d.push(n)-1;t[e]=`\x3c!--\ufffd${i}\ufffd--\x3e`}}const h=Hc(t.join(""),n,d,e,i);r.push(h.create),s.push(h.remove),o.push(h.update),a.push(h.vars),c.push(h.childIcus)}e.push({type:t.type,vars:a,currentCaseLViewIndex:Ie+i+1,childIcus:c,cases:t.cases,create:r,remove:s,update:o}),Oc+=Math.max(...a)}function $c(e){const t=[],n=[];let i=1,r=0;const s=Wc(e=e.replace(Cc,(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=Wc(s[o++]);t.length>n.length&&n.push(r)}return{type:i,mainBinding:r,cases:t,values:n}}function Hc(e,t,n,i,r){const s=Kn(Ke()).getInertBodyElement(e);if(!s)throw new Error("Unable to generate inert body element");const o={vars:1,childIcus:[],create:[],remove:[],update:[]};return function e(t,n,i,r,s,o){if(t){const a=[];for(;t;){const c=t.nextSibling,l=o+ ++n.vars;switch(t.nodeType){case Node.ELEMENT_NODE:const c=t,u=c.tagName.toLowerCase();if(ui.hasOwnProperty(u)){n.create.push(hc,u,l,i<<17|1);const a=c.attributes;for(let e=0;e<a.length;e++){const t=a.item(e),i=t.name.toLowerCase();t.value.match(xc)?fi.hasOwnProperty(i)&&le(di[i]?Ic(t.value,l,t.name,ni):hi[i]?Ic(t.value,l,t.name,ii):Ic(t.value,l,t.name),n.update):n.create.push(l<<3|4,t.name,t.value)}e(t.firstChild,n,l,r,s,o),n.remove.push(l<<3|3)}else n.vars--;break;case Node.TEXT_NODE:const d=t.textContent||"",h=d.match(xc);n.create.push(h?"":d,l,i<<17|1),n.remove.push(l<<3|3),h&&le(Ic(d,l),n.update);break;case Node.COMMENT_NODE:const f=Tc.exec(t.textContent||"");if(f){const e=parseInt(f[1],10);n.create.push(fc,"",l,i<<17|1),a.push([r[e],l])}else n.vars--;break;default:n.vars--}t=c}for(let e=0;e<a.length;e++){const t=a[e][0],i=a[e][1];zc(s,t,i,o+n.vars);const r=s.length-1;n.vars+=Math.max(...s[r].vars),n.childIcus.push(r);const c=Pc(t);n.update.push(jc(t.mainBinding),3,-1-t.mainBinding,i<<2|2,r,c,2,i<<2|3,r),n.remove.push(r<<3|6,i<<3|3)}}}((wi(s)||s).firstChild,o,t,n,i,r),o}function Wc(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);Cc.test(n)?i.push($c(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}const Vc=/\[(\ufffd.+?\ufffd?)\]/,Bc=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,Uc=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,Gc=/{([A-Z0-9_]+)}/g,qc=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,Jc=/\/\*/,Qc=/\d+\:(\d+)/;function Kc(e,t,n){const i=mt(),r=lt(i.consts,t);!function(e){pc[++mc]=e}(e),xo(!0),i.firstCreatePass&&null===i.data[e+Ie]&&function(e,t,n,i,r){const s=t.blueprint.length-Ie;Oc=0;const o=gt(),a=yt()?o:o&&o.parent;let c=a&&a!==e[6]?a.index-Ie:n,l=0;Lc[l]=c;const u=[];if(n>0&&o!==a){let e=o.index-Ie;yt()||(e=~e),u.push(e<<3|0)}const d=[],h=[];if(""===i&&Fc(r))u.push(i,Nc(s),c<<17|1);else{const e=function(e,t){if(Fc(t))return Yc(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,i=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return Yc(e.substring(n,i))}}(i,r),t=(f=e,f.replace(Ac," ")).split(Ec);for(let n=0;n<t.length;n++){let i=t[n];if(1&n)if("/"===i.charAt(0)){if("#"===i.charAt(1)){const e=parseInt(i.substr(2),10);c=Lc[--l],u.push(e<<3|5)}}else{const e=parseInt(i.substr(1),10),t="#"===i.charAt(0);u.push((t?e:~e)<<3|0,c<<17|1),t&&(Lc[++l]=c=e)}else{const t=Wc(i);for(let n=0;n<t.length;n++)if(1&n){const i=t[n];if("object"!=typeof i)throw new Error(`Unable to parse ICU expression in "${e}" message.`);const r=Nc(s);u.push(fc,"",r,c<<17|1);const o=Pc(i);zc(h,i,r,r);const a=h.length-1;d.push(jc(i.mainBinding),3,-1-i.mainBinding,r<<2|2,a,o,2,r<<2|3,a)}else if(""!==t[n]){const e=t[n],i=e.match(xc),r=Nc(s);u.push(i?"":e,r,c<<17|1),i&&le(Ic(e,r),d)}}}}var f;Oc>0&&function(e,t,n){if(n>0&&e.firstCreatePass){for(let i=0;i<n;i++)e.blueprint.push(null),e.data.push(null),t.push(null);e.expandoInstructions?e.expandoInstructions.push(n):e.expandoStartIndex+=n}}(t,e,Oc),t.data[n+Ie]={vars:Oc,create:u,update:d,icus:h.length?h:null}}(pt(),i,e,r,n)}function Zc(){const e=pt();(function(e,t){const n=pc[mc--],i=e.data[n+Ie],r=gt(),s=_c(e,n,i.create,t);let o=n+1;for(;null!==r&&o<=r.index-Ie;){-1===s.indexOf(o)&&Mc(e,t,o,!0);const n=it(e,o);!n||0!==n.type&&2!==n.type&&3!==n.type||null===n.localNames||(o+=n.localNames.length>>1),o++}})(mt(),e),xo(!1)}function Xc(e,t,n){Kc(e,t,n),Zc()}function el(e,t){const n=pt(),i=mt();!function(e,t,n,i){const r=gt().index-Ie,s=[];for(let o=0;o<i.length;o+=2){const a=i[o],c=i[o+1].split(Dc);for(let i=0;i<c.length;i++){const o=c[i];if(1&i)throw new Error("ICU expressions are not yet supported in attributes");if(""!==o)if(o.match(xc))t.firstCreatePass&&null===t.data[n+Ie]&&le(Ic(o,r,a),s);else{const n=it(t,r);2===n.type&&xr(n,e,a,o,null,null);const i=null!==n.inputs&&n.inputs[a];i&&Yr(t,e,i,a,o)}}}t.firstCreatePass&&null===t.data[n+Ie]&&(t.data[n+Ie]=s)}(n,i,e,lt(i.consts,t))}function tl(e){return Js(pt(),xt(),e)&&(bc|=1<<gc),gc++,tl}function nl(e){!function(e,t,n){if(gc>0){const i=e.data[n+Ie];let r,s=null;Array.isArray(i)?r=i:(r=i.update,s=i.icus),yc(e,s,t,r,kt()-gc-1,bc),bc=0,gc=0}}(mt(),pt(),e)}function il(e,t={}){return function(e,t={}){let n=e;if(Vc.test(e)){const e={},t=[0];n=n.replace(Bc,(n,i,r)=>{const s=i||r,o=e[s]||[];if(o.length||(s.split("|").forEach(e=>{const t=e.match(Qc),n=t?parseInt(t[1],10):0,i=Jc.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(Uc,(e,n,i,r,s,o)=>t.hasOwnProperty(i)?`${n}${t[i]}${o}`:e),n=n.replace(Gc,(e,n)=>t.hasOwnProperty(n)?t[n]:e),n=n.replace(qc,(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)}const rl=new Map;class sl extends ae{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new qa(this);const n=Ae(e),i=e[W]||null;i&&dc(i),this._bootstrapComponents=un(n.bootstrap),this._r3Injector=xs(e,t,[{provide:ae,useValue:this},{provide:_a,useValue:this.componentFactoryResolver}],C(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=As.THROW_IF_NOT_FOUND,n=m.Default){return e===As||e===ae||e===G?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 ol extends ce{constructor(e){super(),this.moduleType=e,null!==Ae(e)&&function e(t){if(null!==t.\u0275mod.id){const e=t.\u0275mod.id;(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${C(t)} vs ${C(t.name)}`)})(e,rl.get(e),t),rl.set(e,t)}let n=t.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(t=>e(t))}(e)}create(e){return new sl(this.moduleType,e)}}function al(e,t,n){const i=Mt()+e,r=pt();return r[i]===zi?Gs(r,i,n?t.call(n):t()):qs(r,i)}function cl(e,t,n,i){return pl(pt(),Mt(),e,t,n,i)}function ll(e,t,n,i,r){return ml(pt(),Mt(),e,t,n,i,r)}function ul(e,t,n,i,r,s){return bl(pt(),Mt(),e,t,n,i,r,s)}function dl(e,t,n,i,r,s,o){return function(e,t,n,i,r,s,o,a,c){const l=t+n;return Zs(e,l,r,s,o,a)?Gs(e,l+4,c?i.call(c,r,s,o,a):i(r,s,o,a)):fl(e,l+4)}(pt(),Mt(),e,t,n,i,r,s,o)}function hl(e,t,n,i,r,s,o,a){const c=Mt()+e,l=pt(),u=Zs(l,c,n,i,r,s);return Js(l,c+4,o)||u?Gs(l,c+5,a?t.call(a,n,i,r,s,o):t(n,i,r,s,o)):qs(l,c+5)}function fl(e,t){const n=e[t];return n===zi?void 0:n}function pl(e,t,n,i,r,s){const o=t+n;return Js(e,o,r)?Gs(e,o+1,s?i.call(s,r):i(r)):fl(e,o+1)}function ml(e,t,n,i,r,s,o){const a=t+n;return Qs(e,a,r,s)?Gs(e,a+2,o?i.call(o,r,s):i(r,s)):fl(e,a+2)}function bl(e,t,n,i,r,s,o,a){const c=t+n;return Ks(e,c,r,s,o)?Gs(e,c+3,a?i.call(a,r,s,o):i(r,s,o)):fl(e,c+3)}function gl(e,t){const n=mt();let i;const r=e+Ie;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 Error(`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=Ee(i.type)),o=te(ro);try{const t=hn(!1),i=s();return hn(t),function(e,t,n,i){const r=n+Ie;r>=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),t[r]=i}(n,pt(),e,i),i}finally{te(o)}}function _l(e,t,n){const i=pt(),r=rt(i,e);return Sl(i,wl(i,e)?pl(i,Mt(),t,r.transform,n,r):r.transform(n))}function yl(e,t,n,i){const r=pt(),s=rt(r,e);return Sl(r,wl(r,e)?ml(r,Mt(),t,s.transform,n,i,s):s.transform(n,i))}function vl(e,t,n,i,r){const s=pt(),o=rt(s,e);return Sl(s,wl(s,e)?bl(s,Mt(),t,o.transform,n,i,r,o):o.transform(n,i,r))}function wl(e,t){return e[1].data[t+Ie].pure}function Sl(e,t){return Vs.isWrapped(t)&&(t=Vs.unwrap(t),e[kt()]=zi),t}const Ml=class extends i.a{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let i,s=e=>null,o=()=>null;e&&"object"==typeof e?(i=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(s=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(o=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const a=super.subscribe(i,s,o);return e instanceof r.a&&e.add(a),a}};function kl(){return this._results[Ws()]()}class xl{constructor(){this.dirty=!0,this._results=[],this.changes=new Ml,this.length=0;const e=Ws(),t=xl.prototype;t[e]||(t[e]=kl)}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){this._results=function e(t,n){void 0===n&&(n=t);for(let i=0;i<t.length;i++){let r=t[i];Array.isArray(r)?(n===t&&(n=t.slice(0,i)),e(r,n)):n!==t&&n.push(r)}return n}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Dl{constructor(e){this.queryList=e,this.matches=null}clone(){return new Dl(this.queryList)}setDirty(){this.queryList.setDirty()}}class Tl{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 Tl(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!==Vl(e,t).matches&&this.queries[t].setDirty()}}class Cl{constructor(e,t,n,i=null){this.predicate=e,this.descendants=t,this.isStatic=n,this.read=i}}class Ol{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 Ol(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 Ll{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 Ll(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){const t=this._declarationNodeIndex;let n=e.parent;for(;null!==n&&3===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,Rl(t,r)),this.matchTNodeWithReadOption(e,t,Sn(t,e,r,!1,!1))}else n===Wa?0===t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Sn(t,e,n,!1,!1))}matchTNodeWithReadOption(e,t,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===ya||i===Ba||i===Wa&&0===t.type)this.addMatch(t.index,-2);else{const n=Sn(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 Rl(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 El(e,t,n,i){return-1===n?function(e,t){return 2===e.type||3===e.type?hs(ya,e,t):0===e.type?fs(Wa,ya,e,t):null}(t,e):-2===n?function(e,t,n){return n===ya?hs(ya,t,e):n===Wa?fs(Wa,ya,t,e):n===Ba?ps(Ba,ya,t,e):void 0}(e,t,i):Mn(e,e[1],n,t)}function Al(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:El(t,i[r],s[e+1],n.metadata.read))}r.matches=o}return r.matches}function Il(e){const t=pt(),n=mt(),i=Lt();Rt(i+1);const r=Vl(n,i);if(e.dirty&&at(t)===r.metadata.isStatic){if(null===r.matches)e.reset([]);else{const s=r.crossesNgTemplate?function e(t,n,i,r){const s=t.queries.getByIndex(i),o=s.matches;if(null!==o){const a=Al(t,n,s,i);for(let t=0;t<o.length;t+=2){const i=o[t];if(i>0)r.push(a[t/2]);else{const s=o[t+1],a=n[-i];for(let t=Pe;t<a.length;t++){const n=a[t];n[17]===n[3]&&e(n[1],n,s,r)}if(null!==a[9]){const t=a[9];for(let n=0;n<t.length;n++){const i=t[n];e(i[1],i,s,r)}}}}}return r}(n,t,i,[]):Al(n,t,r,i);e.reset(s),e.notifyOnChanges()}return!0}return!1}function Pl(e,t,n){jl(mt(),pt(),e,t,n,!0)}function Nl(e,t,n){jl(mt(),pt(),e,t,n,!1)}function jl(e,t,n,i,r,s){e.firstCreatePass&&(Wl(e,new Cl(n,i,s,r),-1),s&&(e.staticViewQueries=!0)),Hl(e,t)}function Fl(e,t,n,i){zl(mt(),pt(),t,n,i,!1,gt(),e)}function Yl(e,t,n,i){zl(mt(),pt(),t,n,i,!0,gt(),e)}function zl(e,t,n,i,r,s,o,a){e.firstCreatePass&&(Wl(e,new Cl(n,i,s,r),o.index),function(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(e.contentQueries.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(e,a),s&&(e.staticContentQueries=!0)),Hl(e,t)}function $l(){return e=pt(),t=Lt(),e[19].queries[t].queryList;var e,t}function Hl(e,t){const n=new xl;hr(e,t,n,n.destroy),null===t[19]&&(t[19]=new Tl),t[19].queries.push(new Dl(n))}function Wl(e,t,n){null===e.queries&&(e.queries=new Ol),e.queries.track(new Ll(t,n))}function Vl(e,t){return e.queries.getByIndex(t)}function Bl(e,t){return fs(Wa,ya,e,t)}function Ul(e=m.Default){const t=ms(!0);if(null!=t||e&m.Optional)return t;throw new Error("No provider for ChangeDetectorRef!")}const Gl=new U("Application Initializer");let ql=(()=>{class e{constructor(e){this.appInits=e,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]();bo(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)(ie(Gl,8))},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e})();const Jl=new U("AppId"),Ql={provide:Jl,useFactory:function(){return`${Kl()}${Kl()}${Kl()}`},deps:[]};function Kl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Zl=new U("Platform Initializer"),Xl=new U("Platform ID"),eu=new U("appBootstrapListener");let tu=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e})();const nu=new U("LocaleId"),iu=new U("DefaultCurrencyCode");class ru{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const su=function(e){return new ol(e)},ou=su,au=function(e){return Promise.resolve(su(e))},cu=function(e){const t=su(e),n=un(Ae(e).declarations).reduce((e,t)=>{const n=Re(t);return n&&e.push(new Ka(n)),e},[]);return new ru(t,n)},lu=cu,uu=function(e){return Promise.resolve(cu(e))};let du=(()=>{class e{constructor(){this.compileModuleSync=ou,this.compileModuleAsync=au,this.compileModuleAndAllComponentsSync=lu,this.compileModuleAndAllComponentsAsync=uu}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e})();const hu=(()=>Promise.resolve(0))();function fu(e){"undefined"==typeof Zone?hu.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class pu{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ml(!1),this.onMicrotaskEmpty=new Ml(!1),this.onStable=new Ml(!1),this.onError=new Ml(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.wtfZoneSpec&&(n._inner=n._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=t,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let e=F.requestAnimationFrame,t=F.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=!!e.shouldCoalesceEventChangeDetection&&e.nativeRequestAnimationFrame&&(()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(F,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,_u(e),gu(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),_u(e))}(e)});e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:t},onInvokeTask:(n,i,r,s,o,a)=>{try{return yu(e),n.invokeTask(r,s,o,a)}finally{t&&"eventTask"===s.type&&t(),vu(e)}},onInvoke:(t,n,i,r,s,o,a)=>{try{return yu(e),t.invoke(i,r,s,o,a)}finally{vu(e)}},onHasTask:(t,n,i,r)=>{t.hasTask(i,r),n===i&&("microTask"==r.change?(e._hasPendingMicrotasks=r.microTask,_u(e),gu(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:(t,n,i,r)=>(t.handleError(i,r),e.runOutsideAngular(()=>e.onError.emit(r)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!pu.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(pu.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,bu,mu,mu);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)}}function mu(){}const bu={};function gu(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 _u(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function yu(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function vu(e){e._nesting--,gu(e)}class wu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ml,this.onMicrotaskEmpty=new Ml,this.onStable=new Ml,this.onError=new Ml}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 Su=(()=>{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:()=>{pu.assertNotInAngularZone(),fu(()=>{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())fu(()=>{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)(ie(pu))},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e})(),Mu=(()=>{class e{constructor(){this._applications=new Map,Tu.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 Tu.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e})();class ku{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}function xu(e){Tu=e}let Du,Tu=new ku;const Cu=new U("AllowMultipleToken");class Ou{constructor(e,t){this.name=e,this.token=t}}function Lu(e,t,n=[]){const i="Platform: "+t,r=new U(i);return(t=[])=>{let s=Ru();if(!s||s.injector.get(Cu,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{const e=n.concat(t).concat({provide:r,useValue:!0},{provide:ys,useValue:"platform"});!function(e){if(Du&&!Du.destroyed&&!Du.injector.get(Cu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Du=e.get(Eu);const t=e.get(Zl,null);t&&t.forEach(e=>e())}(As.create({providers:e,name:i}))}return function(e){const t=Ru();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 Ru(){return Du&&!Du.destroyed?Du:null}let Eu=(()=>{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 wu:("zone.js"===e?void 0:e)||new pu({enableLongStackTrace:Jn(),shouldCoalesceEventChangeDetection:t}),n}(t?t.ngZone:void 0,t&&t.ngZoneEventCoalescing||!1),i=[{provide:pu,useValue:n}];return n.run(()=>{const t=As.create({providers:i,parent:this.injector,name:e.moduleType.name}),r=e.create(t),s=r.injector.get(En,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return r.onDestroy(()=>Pu(this._modules,r)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{s.handleError(e)}})),function(e,t,n){try{const i=n();return bo(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(ql);return e.runInitializers(),e.donePromise.then(()=>(dc(r.injector.get(nu,lc)||lc),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,t=[]){const n=Au({},t);return function(e,t,n){const i=new ol(n);return Promise.resolve(i)}(0,0,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Iu);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${C(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)(ie(As))},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e})();function Au(e,t){return Array.isArray(t)?t.reduce(Au,e):Object.assign(Object.assign({},e),t)}let Iu=(()=>{class e{constructor(e,t,n,i,r,c){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Jn(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new s.a(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),u=new s.a(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{pu.assertNotInAngularZone(),fu(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{pu.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(l,u.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 ba?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(ae),r=n.create(As.NULL,[],t||n.selector,i);r.onDestroy(()=>{this._unloadComponent(r)});const s=r.injector.get(Su,null);return s&&r.injector.get(Mu).registerApplication(r.location.nativeElement,s),this._loadComponent(r),Jn()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),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();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}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;Pu(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(eu,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),Pu(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(ie(pu),ie(tu),ie(As),ie(En),ie(_a),ie(ql))},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e})();function Pu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Nu{}class ju{}const Fu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Yu=(()=>{class e{constructor(e,t){this._compiler=e,this._config=t||Fu}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=>zu(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=>zu(e,t,i))}}return e.\u0275fac=function(t){return new(t||e)(ie(du),ie(ju,8))},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e})();function zu(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}const $u=function(e){return null},Hu=Lu(null,"core",[{provide:Xl,useValue:"unknown"},{provide:Eu,deps:[As]},{provide:Mu,deps:[]},{provide:tu,deps:[]}]),Wu=[{provide:Iu,useClass:Iu,deps:[pu,tu,As,En,_a,ql]},{provide:Qa,deps:[pu],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:ql,useClass:ql,deps:[[new h,Gl]]},{provide:du,useClass:du,deps:[]},Ql,{provide:Fa,useFactory:function(){return $a},deps:[]},{provide:Ya,useFactory:function(){return Ha},deps:[]},{provide:nu,useFactory:function(e){return dc(e=e||"undefined"!=typeof $localize&&$localize.locale||lc),e},deps:[[new d(nu),new h,new p]]},{provide:iu,useValue:"USD"}];let Vu=(()=>{class e{constructor(e){}}return e.\u0275mod=De({type:e}),e.\u0275inj=y({factory:function(t){return new(t||e)(ie(Iu))},providers:Wu}),e})()},"8YOa":function(e,t,n){var i=n("0BK2"),r=n("hh1v"),s=n("UTVS"),o=n("m/L8").f,a=n("kOOl"),c=n("uy83"),l=a("meta"),u=0,d=Object.isExtensible||function(){return!0},h=function(e){o(e,l,{value:{objectID:"O"+ ++u,weakData:{}}})},f=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,l)){if(!d(e))return"F";if(!t)return"E";h(e)}return e[l].objectID},getWeakData:function(e,t){if(!s(e,l)){if(!d(e))return!0;if(!t)return!1;h(e)}return e[l].weakData},onFreeze:function(e){return c&&f.REQUIRED&&d(e)&&!s(e,l)&&h(e),e}};i[l]=!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.Lb({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 y(e){return l=e,a=setTimeout(w,t),u?_(e):o}function v(e){var n=e-c;return void 0===c||n>=t||n<0||b&&e-l>=s}function w(){var e=f();if(v(e))return S(e);a=setTimeout(w,function(e){var n=t-(e-c);return b?h(n,s-(e-l)):n}(e))}function S(e){return a=void 0,g&&i?_(e):(i=r=void 0,o)}function M(){var e=f(),n=v(e);if(i=arguments,r=this,c=e,n){if(void 0===a)return y(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),M.cancel=function(){void 0!==a&&clearTimeout(a),l=0,i=c=r=a=void 0},M.flush=function(){return void 0===a?o:S(f())},M}},"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 T}));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.Lb({name:"encodeUri",type:e,pure:!0}),e})();var b=n("BQkM"),g=n("uYzU"),_=n("FFMq"),y=n("E2fk"),v=n("TJUb"),w=n("dEH0"),S=n("G1/K"),M=n("TYzs"),k=n("Dwqy"),x=n("efK2"),D=n("8xTl");let T=(()=>{class e{}return e.\u0275mod=p.Kb({type:e}),e.\u0275inj=p.Jb({factory:function(t){return new(t||e)},providers:[r.a,o.a,s.a,i.e,l.a,c.a,d.a,u.a,h.a,k.a,g.a,_.a,y.a,a.a,f.a,m,M.a,b.a,w.a,S.a,D.a,v.a,x.a],imports:[[i.c]]}),e})()},"9d/t":function(e,t,n){var i=n("AO7/"),r=n("xrYK"),s=n("tiKp")("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=i?r: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=Object(e),s))?n:o?r(t):"Object"==(i=r(t))&&"function"==typeof t.callee?"Arguments":i}},"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.dc(h.b),d.dc(u.a),d.dc(l.a))},e.\u0275prov=d.Ib({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 y}));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("XNiG"),f=n("zx2A");class p{constructor(e,t){this.notifier=e,this.source=t}call(e,t){return t.subscribe(new m(e,this.notifier,this.source))}}class m extends f.b{constructor(e,t,n){super(e),this.notifier=t,this.source=n}error(e){if(!this.isStopped){let n=this.errors,i=this.retries,r=this.retriesSubscription;if(i)this.errors=void 0,this.retriesSubscription=void 0;else{n=new h.a;try{const{notifier:e}=this;i=e(n)}catch(t){return super.error(t)}r=Object(f.c)(i,new f.a(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=i,this.retriesSubscription=r,n.next(e)}}_unsubscribe(){const{errors:e,retriesSubscription:t}=this;e&&(e.unsubscribe(),this.errors=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}notifyNext(){const{_unsubscribe:e}=this;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=e,this.source.subscribe(this)}}var b=n("IzEk"),g=n("xTzq"),_=n("8Y7J");let y=(()=>{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=>Object(c.a)(!o.a.isEmpty(e)))):Object(l.a)(e)),(t=e=>e.pipe(Object(d.a)(t=>t?e:Object(c.a)("No RGW daemons found!"))),e=>e.lift(new p(t,e))),Object(b.a)(1),Object(d.a)(t=>{let n=new r.e;return n=n.append("daemon_name",t.id),e(n)}));var t}};return e.\u0275fac=function(t){return new(t||e)(_.dc(r.b))},e.\u0275prov=_.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e=Object(i.b)([g.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("HAuM");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return 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.Mb(r.a,8),s.Mb(i.a),s.Mb(s.m))},e.\u0275dir=s.Hb({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.dc(s.e),r.dc(i.a))},e.\u0275prov=r.Ib({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"))},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"}},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.Lb({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"))},Bs8V:function(e,t,n){var i=n("g6v/"),r=n("0eef"),s=n("XGwC"),o=n("/GqU"),a=n("wE6v"),c=n("UTVS"),l=n("DPsx"),u=Object.getOwnPropertyDescriptor;t.f=i?u:function(e,t){if(e=o(e),t=a(t,!0),l)try{return u(e,t)}catch(n){}if(c(e,t))return s(!r.f.call(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"))},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.\u0275mod=d.Kb({type:e}),e.\u0275inj=d.Jb({factory:function(t){return new(t||e)},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.Mb(i.m),i.Mb(i.E))},e.\u0275dir=i.Hb({type:e,selectors:[["","cdPasswordButton",""]],hostBindings:function(e,t){1&e&&i.gc("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"))},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 c}));var i=n("vkgz"),r=n("aexS"),s=n("8Y7J"),o=n("IheW"),a=n("iInd");let c=(()=>{class e{constructor(e,t,n){this.authStorageService=e,this.http=t,this.router=n}check(e){return this.http.post("api/auth/check",{token:e})}login(e){return this.http.post("api/auth",e).pipe(Object(i.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(),this.router.navigate(["/login"],{skipLocationChange:!0}),e&&e(),window.location.replace(t.redirect_url)})}}return e.\u0275fac=function(t){return new(t||e)(s.dc(r.a),s.dc(o.b),s.dc(a.e))},e.\u0275prov=s.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},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"))},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.Lb({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.Lb({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("rkAj"),a=s("reduce"),c=o("reduce",{1:0});i({target:"Array",proto:!0,forced:!a||!c},{reduce:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},EApP:function(e,t,n){"use strict";n.d(t,"a",(function(){return C})),n.d(t,"b",(function(){return x}));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.Tb();i.Sb(0,"button",5),i.gc("click",(function(){return i.Dc(e),i.ic().remove()})),i.Sb(1,"span",6),i.Oc(2,"\xd7"),i.Rb(),i.Rb()}}function u(e,t){if(1&e&&(i.Qb(0),i.Oc(1),i.Pb()),2&e){const e=i.ic(2);i.yb(1),i.Qc("[",e.duplicatesCount+1,"]")}}function d(e,t){if(1&e&&(i.Sb(0,"div"),i.Oc(1),i.Mc(2,u,2,1,"ng-container",4),i.Rb()),2&e){const e=i.ic();i.Ab(e.options.titleClass),i.zb("aria-label",e.title),i.yb(1),i.Qc(" ",e.title," "),i.yb(1),i.pc("ngIf",e.duplicatesCount)}}function h(e,t){if(1&e&&i.Nb(0,"div",7),2&e){const e=i.ic();i.Ab(e.options.messageClass),i.pc("innerHTML",e.message,i.Ec)}}function f(e,t){if(1&e&&(i.Sb(0,"div",8),i.Oc(1),i.Rb()),2&e){const e=i.ic();i.Ab(e.options.messageClass),i.zb("aria-label",e.message),i.yb(1),i.Qc(" ",e.message," ")}}function p(e,t){if(1&e&&(i.Sb(0,"div"),i.Nb(1,"div",9),i.Rb()),2&e){const e=i.ic();i.yb(1),i.Kc("width",e.width+"%")}}class m{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 b={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"},g=new i.r("ToastConfig");class _{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 y 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 v=(()=>{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.dc(a.d))},e.\u0275prov=Object(i.Ib)({factory:function(){return new e(Object(i.dc)(a.d))},token:e,providedIn:"root"}),e})();class w{constructor(e){this._portalHost=e}attach(e,t=!0){return this._portalHost.attach(e,t)}detach(){return this._portalHost.detach()}}let S=(()=>{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 y(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new w(this._createPortalHost(e))}}return e.\u0275fac=function(t){return new(t||e)(i.dc(v),i.dc(i.j),i.dc(i.g),i.dc(a.d))},e.\u0275prov=Object(i.Ib)({factory:function(){return new e(Object(i.dc)(v),Object(i.dc)(i.j),Object(i.dc)(i.g),Object(i.dc)(a.d))},token:e,providedIn:"root"}),e})();class M{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 k{constructor(e,t){this._toastPackage=e,this._parentInjector=t}get(e,t,n){return e===m?this._toastPackage:this._parentInjector.get(e,t,n)}}let x=(()=>{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.I.HTML,t));const l=new M(a),u=new m(this.index,r,c,n,e,l),d=new k(u,this._injector),h=new _(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.dc(g),i.dc(S),i.dc(i.s),i.dc(o.b),i.dc(i.A))},e.\u0275prov=Object(i.Ib)({factory:function(){return new e(Object(i.dc)(g),Object(i.dc)(S),Object(i.dc)(i.p),Object(i.dc)(o.b),Object(i.dc)(i.A))},token:e,providedIn:"root"}),e})(),D=(()=>{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.Mb(x),i.Mb(m),i.Mb(i.A))},e.\u0275cmp=i.Gb({type:e,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,t){1&e&&i.gc("click",(function(){return t.tapToast()}))("mouseenter",(function(){return t.stickAround()}))("mouseleave",(function(){return t.delayedHideToast()})),2&e&&(i.Lc("@flyInOut",t.state),i.Ab(t.toastClasses),i.Kc("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.Mc(0,l,3,0,"button",0),i.Mc(1,d,3,5,"div",1),i.Mc(2,h,1,3,"div",2),i.Mc(3,f,2,4,"div",3),i.Mc(4,p,2,2,"div",4)),2&e&&(i.pc("ngIf",t.options.closeButton),i.yb(1),i.pc("ngIf",t.title),i.yb(1),i.pc("ngIf",t.message&&t.options.enableHtml),i.yb(1),i.pc("ngIf",t.message&&!t.options.enableHtml),i.yb(1),i.pc("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 T=Object.assign(Object.assign({},b),{toastComponent:D});let C=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[{provide:g,useValue:{default:T,config:t}}]}}}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[a.c]]}),e})()},ENF9:function(e,t,n){"use strict";var i,r=n("2oRo"),s=n("4syw"),o=n("8YOa"),a=n("bWFh"),c=n("rKzb"),l=n("hh1v"),u=n("afO8").enforce,d=n("f5p1"),h=!r.ActiveXObject&&"ActiveXObject"in r,f=Object.isExtensible,p=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},m=e.exports=a("WeakMap",p,c);if(d&&h){i=c.getConstructor(p,"WeakMap",!0),o.REQUIRED=!0;var b=m.prototype,g=b.delete,_=b.has,y=b.get,v=b.set;s(b,{delete:function(e){if(l(e)&&!f(e)){var t=u(this);return t.frozen||(t.frozen=new i),g.call(this,e)||t.frozen.delete(e)}return g.call(this,e)},has:function(e){if(l(e)&&!f(e)){var t=u(this);return t.frozen||(t.frozen=new i),_.call(this,e)||t.frozen.has(e)}return _.call(this,e)},get:function(e){if(l(e)&&!f(e)){var t=u(this);return t.frozen||(t.frozen=new i),_.call(this,e)?y.call(this,e):t.frozen.get(e)}return y.call(this,e)},set:function(e,t){if(l(e)&&!f(e)){var n=u(this);n.frozen||(n.frozen=new i),_.call(this,e)?v.call(this,e,t):n.frozen.set(e,t)}else v.call(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"))},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.dc(r.b),c.dc(a.a))},e.\u0275prov=c.Ib({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.o,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.Mb(i.m),i.Mb(c.p),i.Mb(o.a),i.Mb(a.a))},e.\u0275dir=i.Hb({type:e,selectors:[["","cdDimlessBinary",""]],hostBindings:function(e,t){1&e&&i.gc("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"),s=n("rkAj"),o=r("forEach"),a=s("forEach");e.exports=o&&a?[].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.Lb({name:"join",type:e,pure:!0}),e})()},FMNM:function(e,t,n){var i=n("xrYK"),r=n("kmMV");e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var s=n.call(e,t);if("object"!=typeof s)throw TypeError("RegExp exec method returned something other than an Object or null");return s}if("RegExp"!==i(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},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.o}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.Mb(a.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-table-key-value"]],viewQuery:function(e,t){var n;1&e&&i.Jc(c.a,!0),2&e&&i.zc(n=i.hc())&&(t.table=n.first)},inputs:{data:"data",autoReload:"autoReload",renderObjects:"renderObjects",appendParentKey:"appendParentKey",hideEmpty:"hideEmpty",hideKeys:"hideKeys",customCss:"customCss"},outputs:{fetchData:"fetchData"},features:[i.wb],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.Nb(0,"cd-table",0,1),2&e&&i.pc("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.Mb(i.a))},e.\u0275pipe=r.Lb({name:"dimlessBinary",type:e,pure:!0}),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 Xt})),n.d(t,"b",(function(){return He})),n.d(t,"c",(function(){return We})),n.d(t,"d",(function(){return Qe})),n.d(t,"e",(function(){return Ve})),n.d(t,"f",(function(){return Be})),n.d(t,"g",(function(){return ht})),n.d(t,"h",(function(){return jt})),n.d(t,"i",(function(){return Bt})),n.d(t,"j",(function(){return $t})),n.d(t,"k",(function(){return Ht})),n.d(t,"l",(function(){return Ut})),n.d(t,"m",(function(){return Vt})),n.d(t,"n",(function(){return It})),n.d(t,"o",(function(){return sn})),n.d(t,"p",(function(){return dn})),n.d(t,"q",(function(){return ln})),n.d(t,"r",(function(){return un})),n.d(t,"s",(function(){return hn})),n.d(t,"t",(function(){return pn})),n.d(t,"u",(function(){return fn})),n.d(t,"v",(function(){return zt})),n.d(t,"w",(function(){return Sn})),n.d(t,"x",(function(){return yn})),n.d(t,"y",(function(){return Mn})),n.d(t,"z",(function(){return xn})),n.d(t,"A",(function(){return Dn})),n.d(t,"B",(function(){return Nn})),n.d(t,"C",(function(){return jn})),n.d(t,"D",(function(){return $n})),n.d(t,"E",(function(){return Fn})),n.d(t,"F",(function(){return Hn})),n.d(t,"G",(function(){return Kn})),n.d(t,"H",(function(){return Zn}));var i=n("8Y7J"),r=n("SVse"),s=n("s7LF"),o=n("XNiG"),a=n("2Vo4"),c=(n("itXk"),n("PqYM"),n("5yfJ"),n("xgIS")),l=n("VRyK"),u=n("DH7j"),d=n("yCtX"),h=n("l7GE"),f=n("ZUHj");class p{call(e,t){return t.subscribe(new m(e))}}class m extends h.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(f.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 b=n("HDdC"),g=n("lJxs"),_=(n("JX91"),n("/uUt"),n("eIep")),y=n("1G5W"),v=n("pLZG"),w=n("IzEk"),S=n("vkgz");function M(...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 x(e,this.observables,this.project))}}class x extends h.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(f.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 D=n("3E0/"),T=n("w1tV");function C(e,t){if(1&e){const e=i.Tb();i.Sb(0,"button",1),i.Yb(1,2),i.gc("click",(function(){return i.Dc(e),i.ic().closeHandler()})),i.Sb(2,"span",3),i.Oc(3,"\xd7"),i.Rb(),i.Rb()}}const O=["*"],L=["defaultDayTemplate"],R=["content"];function E(e,t){if(1&e&&i.Nb(0,"div",7),2&e){const e=t.currentMonth,n=t.selected,r=t.disabled,s=t.focused;i.pc("date",t.date)("currentMonth",e)("selected",n)("disabled",r)("focused",s)}}function A(e,t){if(1&e&&(i.Sb(0,"div",12),i.Oc(1),i.Rb()),2&e){const e=i.ic().$implicit,t=i.ic(2);i.yb(1),i.Rc(" ",t.i18n.getMonthFullName(e.number,e.year)," ",t.i18n.getYearNumerals(e.year)," ")}}function I(e,t){if(1&e&&(i.Sb(0,"div",9),i.Mc(1,A,2,2,"div",10),i.Nb(2,"ngb-datepicker-month",11),i.Rb()),2&e){const e=t.$implicit,n=i.ic(2);i.yb(1),i.pc("ngIf","none"===n.navigation||n.displayMonths>1&&"select"===n.navigation),i.yb(1),i.pc("month",e.firstDate)}}function P(e,t){if(1&e&&i.Mc(0,I,3,2,"div",8),2&e){const e=i.ic();i.pc("ngForOf",e.model.months)}}function N(e,t){if(1&e){const e=i.Tb();i.Sb(0,"ngb-datepicker-navigation",13),i.gc("navigate",(function(t){return i.Dc(e),i.ic().onNavigateEvent(t)}))("select",(function(t){return i.Dc(e),i.ic().onNavigateDateSelect(t)})),i.Rb()}if(2&e){const e=i.ic();i.pc("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 F(e,t){}function Y(e,t){1&e&&i.Nb(0,"div",5)}function z(e,t){if(1&e&&(i.Sb(0,"div",6),i.Oc(1),i.Rb()),2&e){const e=t.$implicit,n=i.ic(2);i.yb(1),i.Qc(" ",n.i18n.getWeekdayShortName(e)," ")}}function $(e,t){if(1&e&&(i.Sb(0,"div",2),i.Mc(1,Y,1,0,"div",3),i.Mc(2,z,2,1,"div",4),i.Rb()),2&e){const e=i.ic();i.yb(1),i.pc("ngIf",e.datepicker.showWeekNumbers),i.yb(1),i.pc("ngForOf",e.viewModel.weekdays)}}function H(e,t){if(1&e&&(i.Sb(0,"div",11),i.Oc(1),i.Rb()),2&e){const e=i.ic(2).$implicit,t=i.ic();i.yb(1),i.Pc(t.i18n.getWeekNumerals(e.number))}}function W(e,t){}function V(e,t){if(1&e&&i.Mc(0,W,0,0,"ng-template",14),2&e){const e=i.ic().$implicit,t=i.ic(3);i.pc("ngTemplateOutlet",t.datepicker.dayTemplate)("ngTemplateOutletContext",e.context)}}function B(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",12),i.gc("click",(function(n){i.Dc(e);const r=t.$implicit;return i.ic(3).doSelect(r),n.preventDefault()})),i.Mc(1,V,1,2,"ng-template",13),i.Rb()}if(2&e){const e=t.$implicit;i.Eb("disabled",e.context.disabled)("hidden",e.hidden)("ngb-dp-today",e.context.today),i.pc("tabindex",e.tabindex),i.zb("aria-label",e.ariaLabel),i.yb(1),i.pc("ngIf",!e.hidden)}}function U(e,t){if(1&e&&(i.Sb(0,"div",8),i.Mc(1,H,2,1,"div",9),i.Mc(2,B,2,9,"div",10),i.Rb()),2&e){const e=i.ic().$implicit,t=i.ic();i.yb(1),i.pc("ngIf",t.datepicker.showWeekNumbers),i.yb(1),i.pc("ngForOf",e.days)}}function G(e,t){1&e&&i.Mc(0,U,3,2,"div",7),2&e&&i.pc("ngIf",!t.$implicit.collapsed)}function q(e,t){if(1&e){const e=i.Tb();i.Sb(0,"ngb-datepicker-navigation-select",8),i.gc("select",(function(t){return i.Dc(e),i.ic().select.emit(t)})),i.Rb()}if(2&e){const e=i.ic();i.pc("date",e.date)("disabled",e.disabled)("months",e.selectBoxes.months)("years",e.selectBoxes.years)}}function J(e,t){1&e&&i.Nb(0,"div",0)}function Q(e,t){1&e&&i.Nb(0,"div",0)}function K(e,t){if(1&e&&(i.Mc(0,J,1,0,"div",10),i.Sb(1,"div",11),i.Oc(2),i.Rb(),i.Mc(3,Q,1,0,"div",10)),2&e){const e=t.$implicit,n=t.index,r=i.ic(2);i.pc("ngIf",n>0),i.yb(2),i.Rc(" ",r.i18n.getMonthFullName(e.number,e.year)," ",r.i18n.getYearNumerals(e.year)," "),i.yb(1),i.pc("ngIf",n!==r.months.length-1)}}function Z(e,t){if(1&e&&i.Mc(0,K,4,4,"ng-template",9),2&e){const e=i.ic();i.pc("ngForOf",e.months)}}const X=["ngbDatepickerDayView",""],ee=["month"],te=["year"];function ne(e,t){if(1&e&&(i.Sb(0,"option",6),i.Oc(1),i.Rb()),2&e){const e=t.$implicit,n=i.ic();i.pc("value",e),i.zb("aria-label",n.i18n.getMonthFullName(e,null==n.date?null:n.date.year)),i.yb(1),i.Pc(n.i18n.getMonthShortName(e,null==n.date?null:n.date.year))}}function ie(e,t){if(1&e&&(i.Sb(0,"option",6),i.Oc(1),i.Rb()),2&e){const e=t.$implicit,n=i.ic();i.pc("value",e),i.yb(1),i.Pc(n.i18n.getYearNumerals(e))}}const re=["dialog"],se=["ngbNavOutlet",""];function oe(e,t){}const ae=function(e){return{$implicit:e}};function ce(e,t){if(1&e&&(i.Sb(0,"div",2),i.Mc(1,oe,0,0,"ng-template",3),i.Rb()),2&e){const e=i.ic().$implicit,t=i.ic();i.Eb("active",e.active),i.pc("id",e.panelDomId),i.zb("role",t.paneRole?t.paneRole:t.nav.roles?"tabpanel":void 0)("aria-labelledby",e.domId),i.yb(1),i.pc("ngTemplateOutlet",(null==e.contentTpl?null:e.contentTpl.templateRef)||null)("ngTemplateOutletContext",i.uc(7,ae,e.active))}}function le(e,t){1&e&&i.Mc(0,ce,2,9,"div",1),2&e&&i.pc("ngIf",t.$implicit.isPanelInDom())}function ue(e,t){if(1&e&&i.Oc(0),2&e){const e=i.ic(2);i.Pc(e.title)}}function de(e,t){}function he(e,t){if(1&e&&(i.Sb(0,"h3",3),i.Mc(1,ue,1,1,"ng-template",null,4,i.Nc),i.Mc(3,de,0,0,"ng-template",5),i.Rb()),2&e){const e=i.Ac(2),t=i.ic();i.yb(3),i.pc("ngTemplateOutlet",t.isTitleTemplate()?t.title:e)("ngTemplateOutletContext",t.context)}}function fe(e,t){if(1&e&&(i.Sb(0,"span"),i.Wb(1,3),i.jc(2,"percent"),i.Rb()),2&e){const e=i.ic();i.yb(2),i.ac(i.kc(2,1,e.getValue()/e.max)),i.Xb(1)}}function pe(e,t){if(1&e){const e=i.Tb();i.Sb(0,"button",12),i.gc("click",(function(){i.Dc(e);const t=i.ic();return t.changeHour(t.hourStep)})),i.Nb(1,"span",13),i.Sb(2,"span",14),i.Wb(3,15),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.Eb("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),i.pc("disabled",e.disabled)}}function me(e,t){if(1&e){const e=i.Tb();i.Sb(0,"button",12),i.gc("click",(function(){i.Dc(e);const t=i.ic();return t.changeHour(-t.hourStep)})),i.Nb(1,"span",16),i.Sb(2,"span",14),i.Wb(3,17),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.Eb("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),i.pc("disabled",e.disabled)}}function be(e,t){if(1&e){const e=i.Tb();i.Sb(0,"button",12),i.gc("click",(function(){i.Dc(e);const t=i.ic();return t.changeMinute(t.minuteStep)})),i.Nb(1,"span",13),i.Sb(2,"span",14),i.Wb(3,18),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.Eb("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),i.pc("disabled",e.disabled)}}function ge(e,t){if(1&e){const e=i.Tb();i.Sb(0,"button",12),i.gc("click",(function(){i.Dc(e);const t=i.ic();return t.changeMinute(-t.minuteStep)})),i.Nb(1,"span",16),i.Sb(2,"span",14),i.Wb(3,19),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.Eb("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),i.pc("disabled",e.disabled)}}function _e(e,t){1&e&&(i.Sb(0,"div",6),i.Oc(1,":"),i.Rb())}function ye(e,t){if(1&e){const e=i.Tb();i.Sb(0,"button",12),i.gc("click",(function(){i.Dc(e);const t=i.ic(2);return t.changeSecond(t.secondStep)})),i.Nb(1,"span",13),i.Sb(2,"span",14),i.Wb(3,22),i.Rb(),i.Rb()}if(2&e){const e=i.ic(2);i.Eb("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),i.pc("disabled",e.disabled)}}function ve(e,t){if(1&e){const e=i.Tb();i.Sb(0,"button",12),i.gc("click",(function(){i.Dc(e);const t=i.ic(2);return t.changeSecond(-t.secondStep)})),i.Nb(1,"span",16),i.Sb(2,"span",14),i.Wb(3,23),i.Rb(),i.Rb()}if(2&e){const e=i.ic(2);i.Eb("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),i.pc("disabled",e.disabled)}}function we(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",20),i.Mc(1,ye,4,7,"button",3),i.Sb(2,"input",4),i.Yb(3,21),i.gc("change",(function(t){return i.Dc(e),i.ic().updateSecond(t.target.value)}))("input",(function(t){return i.Dc(e),i.ic().formatInput(t.target)}))("keydown.ArrowUp",(function(t){i.Dc(e);const n=i.ic();return n.changeSecond(n.secondStep),t.preventDefault()}))("keydown.ArrowDown",(function(t){i.Dc(e);const n=i.ic();return n.changeSecond(-n.secondStep),t.preventDefault()})),i.Rb(),i.Mc(4,ve,4,7,"button",3),i.Rb()}if(2&e){const e=i.ic();i.yb(1),i.pc("ngIf",e.spinners),i.yb(1),i.Eb("form-control-sm",e.isSmallSize)("form-control-lg",e.isLargeSize),i.pc("value",e.formatMinSec(null==e.model?null:e.model.second))("readOnly",e.readonlyInputs)("disabled",e.disabled),i.yb(2),i.pc("ngIf",e.spinners)}}function Se(e,t){1&e&&i.Nb(0,"div",6)}function Me(e,t){if(1&e&&(i.Qb(0),i.Wb(1,28),i.Pb()),2&e){const e=i.ic(2);i.yb(1),i.ac(e.i18n.getAfternoonPeriod()),i.Xb(1)}}function ke(e,t){if(1&e&&i.Wb(0,29),2&e){const e=i.ic(2);i.ac(e.i18n.getMorningPeriod()),i.Xb(0)}}function xe(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",24),i.Sb(1,"button",25),i.gc("click",(function(){return i.Dc(e),i.ic().toggleMeridian()})),i.Mc(2,Me,2,1,"ng-container",26),i.Mc(3,ke,1,1,"ng-template",null,27,i.Nc),i.Rb(),i.Rb()}if(2&e){const e=i.Ac(4),t=i.ic();i.yb(1),i.Eb("btn-sm",t.isSmallSize)("btn-lg",t.isLargeSize)("disabled",t.disabled),i.pc("disabled",t.disabled),i.yb(1),i.pc("ngIf",t.model&&t.model.hour>=12)("ngIfElse",e)}}function De(e,t){if(1&e&&(i.Sb(0,"span"),i.Oc(1),i.Rb()),2&e){const e=i.ic().$implicit,t=i.ic();i.Ab(t.highlightClass),i.yb(1),i.Pc(e)}}function Te(e,t){if(1&e&&i.Oc(0),2&e){const e=i.ic().$implicit;i.Pc(e)}}function Ce(e,t){if(1&e&&(i.Mc(0,De,2,3,"span",1),i.Mc(1,Te,1,1,"ng-template",null,2,i.Nc)),2&e){const e=t.odd,n=i.Ac(2);i.pc("ngIf",e)("ngIfElse",n)}}function Oe(e,t){if(1&e&&i.Nb(0,"ngb-highlight",2),2&e){const e=t.term;i.pc("result",(0,t.formatter)(t.result))("term",e)}}function Le(e,t){}const Re=function(e,t,n){return{result:e,term:t,formatter:n}};function Ee(e,t){if(1&e){const e=i.Tb();i.Sb(0,"button",3),i.gc("mouseenter",(function(){i.Dc(e);const n=t.index;return i.ic().markActive(n)}))("click",(function(){i.Dc(e);const n=t.$implicit;return i.ic().select(n)})),i.Mc(1,Le,0,0,"ng-template",4),i.Rb()}if(2&e){const e=t.$implicit,n=t.index,r=i.ic(),s=i.Ac(1);i.Eb("active",n===r.activeIdx),i.pc("id",r.id+"-"+n),i.yb(1),i.pc("ngTemplateOutlet",r.resultTemplate||s)("ngTemplateOutletContext",i.wc(5,Re,e,r.term,r.formatter))}}function Ae(e){return parseInt(""+e,10)}function Ie(e){return null!=e?""+e:""}function Pe(e){return"string"==typeof e}function Ne(e){return!isNaN(Ae(e))}function je(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function Fe(e){return null!=e}function Ye(e){return Ne(e)?("0"+e).slice(-2):""}function ze(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 $e=(()=>{let e=class{constructor(){this.dismissible=!0,this.type="warning"}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),He=(()=>{let e=class{constructor(e,t,n){this._renderer=t,this._element=n,this.close=new i.o,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)(i.Mb($e),i.Mb(i.E),i.Mb(i.m))},e.\u0275cmp=i.Gb({type:e,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert"],hostVars:2,hostBindings:function(e,t){2&e&&i.Eb("alert-dismissible",t.dismissible)},inputs:{dismissible:"dismissible",type:"type"},outputs:{close:"close"},features:[i.wb],ngContentSelectors:O,decls:2,vars:1,consts:function(){return[["type","button","class","close",3,"click",4,"ngIf",6,"aria-label"],["type","button",1,"close",3,"click",6,"aria-label"],["aria-label","Close"],["aria-hidden","true"]]},template:function(e,t){1&e&&(i.oc(),i.nc(0),i.Mc(1,C,4,0,"button",0)),2&e&&(i.yb(1),i.pc("ngIf",t.dismissible))},directives:[r.r],styles:["ngb-alert{display:block}"],encapsulation:2,changeDetection:0}),e})(),We=(()=>{let e=class{};return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[r.c]]}),e})(),Ve=(()=>{let e=class{constructor(){this.collapsed=!1}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Hb({type:e,selectors:[["","ngbCollapse",""]],hostVars:4,hostBindings:function(e,t){2&e&&i.Eb("collapse",!0)("show",!t.collapsed)},inputs:{collapsed:["ngbCollapse","collapsed"]},exportAs:["ngbCollapse"]}),e})(),Be=(()=>{let e=class{};return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)}}),e})();class Ue{constructor(e,t,n){this.year=je(e)?e:null,this.month=je(t)?t:null,this.day=je(n)?n:null}static from(e){return e instanceof Ue?e:e?new Ue(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 Ge(e){return new Ue(e.getFullYear(),e.getMonth()+1,e.getDate())}function qe(e){const t=new Date(e.year,e.month-1,e.day,12);return isNaN(t.getTime())||t.setFullYear(e.year),t}function Je(){return new Ke}let Qe=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Ib)({factory:Je,token:e,providedIn:"root"}),e})(),Ke=(()=>{let e=class extends Qe{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=qe(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),Ge(i)}getPrev(e,t="d",n=1){return this.getNext(e,t,-n)}getWeekday(e){let t=qe(e).getDay();return 0===t?7:t}getWeekNumber(e,t){7===t&&(t=0);const n=qe(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 Ge(new Date)}isValid(e){if(!(e&&je(e.year)&&je(e.month)&&je(e.day)))return!1;if(0===e.year)return!1;const t=qe(e);return!isNaN(t.getTime())&&t.getFullYear()===e.year&&t.getMonth()+1===e.month&&t.getDate()===e.day}};return e.\u0275fac=function(t){return Xn(t||e)},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}}),e})();function Ze(e,t){return!function(e,t){return!e&&!t||!!e&&!!t&&e.equals(t)}(e,t)}function Xe(e,t){return!(!e&&!t||e&&t&&e.year===t.year&&e.month===t.month)}function et(e,t,n){return e&&t&&e.before(t)?t:e&&n&&e.after(n)?n:e||null}function tt(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 nt=(()=>{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(i.Ib)({factory:function(){return e=Object(i.dc)(i.v),new it(e);var e},token:e,providedIn:"root"}),e})(),it=(()=>{let e=class extends nt{constructor(e){super(),this._locale=e;const t=Object(r.F)(e,r.g.Standalone,r.B.Short);this._weekdaysShort=t.map((e,n)=>t[(n+1)%7]),this._monthsShort=Object(r.H)(e,r.g.Standalone,r.B.Abbreviated),this._monthsFull=Object(r.H)(e,r.g.Standalone,r.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(r.E)(t,"fullDate",this._locale)}};return e.\u0275fac=function(t){return new(t||e)(i.dc(i.v))},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}}),e})(),rt=(()=>{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(je(e=Ae(e))&&e>0&&this._state.displayMonths!==e)return{displayMonths:e}},disabled:e=>{if(this._state.disabled!==e)return{disabled:e}},firstDayOfWeek:e=>{if(je(e=Ae(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(Ze(this._state.maxDate,t))return{maxDate:t}},minDate:e=>{const t=this.toValidDate(e,null);if(Ze(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 o.a,this._dateSelect$=new o.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(v.a)(e=>e.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe(Object(v.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&&Ze(this._state.focusDate,t)&&this._nextState({focusDate:e})}focusSelect(){tt(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&&!Xe(this._state.firstDate,t)||this._nextState({firstDate:t})}select(e,t={}){const n=this.toValidDate(e,null);null==n||this._state.disabled||(Ze(this._state.selectedDate,n)&&this._nextState({selectedDate:n}),t.emitEvent&&tt(n,this._state)&&this._dateSelect$.next(n))}toValidDate(e,t){const n=Ue.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=et(t.focusDate,t.minDate,t.maxDate),t.firstDate=et(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=et(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=et(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 Ue(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 Ue(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&&!tt(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)(i.dc(Qe),i.dc(nt))},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}}),e})();var st=function(e){return e[e.PREV=0]="PREV",e[e.NEXT=1]="NEXT",e}({});let ot=(()=>{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(i.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})();function at(){return new lt}let ct=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Ib)({factory:at,token:e,providedIn:"root"}),e})(),lt=(()=>{let e=class extends ct{fromModel(e){return e&&je(e.year)&&je(e.month)&&je(e.day)?{year:e.year,month:e.month,day:e.day}:null}toModel(e){return e&&je(e.year)&&je(e.month)&&je(e.day)?{year:e.year,month:e.month,day:e.day}:null}};return e.\u0275fac=function(t){return ei(t||e)},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}}),e})();const ut={provide:s.o,useExisting:Object(i.T)(()=>ht),multi:!0};let dt=(()=>{let e=class{constructor(e){this.templateRef=e}};return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.L))},e.\u0275dir=i.Hb({type:e,selectors:[["ng-template","ngbDatepickerContent",""]]}),e})(),ht=(()=>{let e=class{constructor(e,t,n,r,s,a,c,l){this._service=e,this._calendar=t,this.i18n=n,this._elementRef=a,this._ngbDateAdapter=c,this._ngZone=l,this._controlValue=null,this._destroyed$=new o.a,this._publicState={},this.navigate=new i.o,this.dateSelect=new i.o,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]=r[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,Ze(r,this._controlValue)&&(this._controlValue=r,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(r))),Ze(o,a)&&a&&e.focusVisible&&this.focus(),s.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}focusDate(e){this._service.focus(Ue.from(e))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe(Object(w.a)(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');e&&e.focus()})}navigateTo(e){this._service.open(Ue.from(e?e.day?e:Object.assign(Object.assign({},e),{day:1}):null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const e=Object(c.a)(this._contentEl.nativeElement,"focusin"),t=Object(c.a)(this._contentEl.nativeElement,"focusout"),{nativeElement:n}=this._elementRef;Object(l.a)(e,t).pipe(Object(v.a)(({target:e,relatedTarget:t})=>!(ze(e,"ngb-dp-day")&&ze(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;Xe(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 st.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case st.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=Ue.from(this._ngbDateAdapter.fromModel(e)),this._service.select(this._controlValue)}};return e.\u0275fac=function(t){return new(t||e)(i.Mb(rt),i.Mb(Qe),i.Mb(nt),i.Mb(ot),i.Mb(i.h),i.Mb(i.m),i.Mb(ct),i.Mb(i.A))},e.\u0275cmp=i.Gb({type:e,selectors:[["ngb-datepicker"]],contentQueries:function(e,t,n){var r;1&e&&i.Ic(n,dt,!0),2&e&&i.zc(r=i.hc())&&(t.contentTemplate=r.first)},viewQuery:function(e,t){var n;1&e&&(i.Jc(L,!0),i.Jc(R,!0)),2&e&&(i.zc(n=i.hc())&&(t._defaultDayTemplate=n.first),i.zc(n=i.hc())&&(t._contentEl=n.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:[i.xb([ut,rt]),i.wb],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&&(i.Mc(0,E,1,5,"ng-template",null,0,i.Nc),i.Mc(2,P,1,1,"ng-template",null,1,i.Nc),i.Sb(4,"div",2),i.Mc(5,N,1,7,"ngb-datepicker-navigation",3),i.Rb(),i.Sb(6,"div",4,5),i.Mc(8,j,0,0,"ng-template",6),i.Rb(),i.Mc(9,F,0,0,"ng-template",6)),2&e){const e=i.Ac(3);i.yb(5),i.pc("ngIf","none"!==t.navigation),i.yb(1),i.Eb("ngb-dp-months",!t.contentTemplate),i.yb(2),i.pc("ngTemplateOutlet",(null==t.contentTemplate?null:t.contentTemplate.templateRef)||e),i.yb(1),i.pc("ngTemplateOutlet",t.footerTemplate)}},directives:function(){return[r.r,r.w,Pt,r.q,mt,bt]},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 ft=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 pt=(()=>{let e=class{processKey(e,t){const{state:n,calendar:i}=t;switch(e.which){case ft.PageUp:t.focusDate(i.getPrev(n.focusedDate,e.shiftKey?"y":"m",1));break;case ft.PageDown:t.focusDate(i.getNext(n.focusedDate,e.shiftKey?"y":"m",1));break;case ft.End:t.focusDate(e.shiftKey?n.maxDate:n.lastDate);break;case ft.Home:t.focusDate(e.shiftKey?n.minDate:n.firstDate);break;case ft.ArrowLeft:t.focusDate(i.getPrev(n.focusedDate,"d",1));break;case ft.ArrowUp:t.focusDate(i.getPrev(n.focusedDate,"d",i.getDaysPerWeek()));break;case ft.ArrowRight:t.focusDate(i.getNext(n.focusedDate,"d",1));break;case ft.ArrowDown:t.focusDate(i.getNext(n.focusedDate,"d",i.getDaysPerWeek()));break;case ft.Enter:case ft.Space:t.focusSelect();break;default:return}e.preventDefault(),e.stopPropagation()}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),mt=(()=>{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)(i.Mb(nt),i.Mb(ht),i.Mb(pt),i.Mb(rt))},e.\u0275cmp=i.Gb({type:e,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(e,t){1&e&&i.gc("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&&(i.Mc(0,$,3,2,"div",0),i.Mc(1,G,1,1,"ng-template",1)),2&e&&(i.pc("ngIf",t.datepicker.showWeekdays),i.yb(1),i.pc("ngForOf",t.viewModel.weeks))},directives:[r.r,r.q,r.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})(),bt=(()=>{let e=class{constructor(e){this.i18n=e,this.navigation=st,this.months=[],this.navigate=new i.o,this.select=new i.o}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)(i.Mb(nt))},e.\u0275cmp=i.Gb({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:10,vars:4,consts:function(){return[[1,"ngb-dp-arrow"],["type","button",1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click",6,"aria-label","title"],["aria-label","Previous month","title","Previous month"],[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"],["aria-label","Next month","title","Next month"],[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&&(i.Sb(0,"div",0),i.Sb(1,"button",1),i.Yb(2,2),i.gc("click",(function(e){return t.onClickPrev(e)})),i.Nb(3,"span",3),i.Rb(),i.Rb(),i.Mc(4,q,1,4,"ngb-datepicker-navigation-select",4),i.Mc(5,Z,1,1,void 0,5),i.Sb(6,"div",6),i.Sb(7,"button",1),i.Yb(8,7),i.gc("click",(function(e){return t.onClickNext(e)})),i.Nb(9,"span",3),i.Rb(),i.Rb()),2&e&&(i.yb(1),i.pc("disabled",t.prevDisabled),i.yb(3),i.pc("ngIf",t.showSelect),i.yb(1),i.pc("ngIf",!t.showSelect),i.yb(2),i.pc("disabled",t.nextDisabled))},directives:function(){return[r.r,Nt,r.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 gt=(e,t)=>!!t&&t.some(t=>t.contains(e)),_t=(e,t)=>!t||null!=function(e,t){return t?void 0===e.closest?null:e.closest(t):null}(e,t),yt=(()=>"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 vt(e,t,n,i,r,s,o,a){var l;n&&e.runOutsideAngular((l=()=>{const l=Object(c.a)(t,"keydown").pipe(Object(y.a)(r),Object(v.a)(e=>e.which===ft.Escape),Object(S.a)(e=>e.preventDefault())),h=Object(c.a)(t,"mousedown").pipe(Object(g.a)(e=>{const t=e.target;return 2!==e.button&&!gt(t,o)&&("inside"===n?gt(t,s)&&_t(t,a):"outside"===n?!gt(t,s):_t(t,a)||!gt(t,s))}),Object(y.a)(r)),f=Object(c.a)(t,"mouseup").pipe(M(h),Object(v.a)(([e,t])=>t),Object(D.a)(0),Object(y.a)(r));(function(...e){if(1===e.length){if(!Object(u.a)(e[0]))return e[0];e=e[0]}return Object(d.a)(e,void 0).lift(new p)})([l.pipe(Object(g.a)(e=>0)),f.pipe(Object(g.a)(e=>1))]).subscribe(t=>e.run(()=>i(t)))},yt?()=>setTimeout(()=>l(),100):l))}const wt=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function St(e){const t=Array.from(e.querySelectorAll(wt)).filter(e=>-1!==e.tabIndex);return[t[0],t[t.length-1]]}const Mt=(e,t,n,i=!1)=>{e.runOutsideAngular(()=>{const e=Object(c.a)(t,"focusin").pipe(Object(y.a)(n),Object(g.a)(e=>e.target));Object(c.a)(t,"keydown").pipe(Object(y.a)(n),Object(v.a)(e=>e.which===ft.Tab),M(e)).subscribe(([e,n])=>{const[i,r]=St(t);n!==i&&n!==t||!e.shiftKey||(r.focus(),e.preventDefault()),n!==r||e.shiftKey||(i.focus(),e.preventDefault())}),i&&Object(c.a)(t,"click").pipe(Object(y.a)(n),M(e),Object(g.a)(e=>e[1])).subscribe(e=>e.focus())})};class kt{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}}const xt=/\s+/,Dt=new kt;function Tt(e,t,n,i,r){let s=Array.isArray(n)?n:n.split(xt);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(Dt.positionElements(e,t,d,i)){h=!0;break}r&&n.forEach(e=>{a.remove(e)})}return h||(d=s[0],c(d),Dt.positionElements(e,t,d,i)),d}function Ct(){return new Lt}let Ot=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Ib)({factory:Ct,token:e,providedIn:"root"}),e})(),Lt=(()=>{let e=class extends Ot{parse(e){if(null!=e){const t=e.trim().split("-");if(1===t.length&&Ne(t[0]))return{year:Ae(t[0]),month:null,day:null};if(2===t.length&&Ne(t[0])&&Ne(t[1]))return{year:Ae(t[0]),month:Ae(t[1]),day:null};if(3===t.length&&Ne(t[0])&&Ne(t[1])&&Ne(t[2]))return{year:Ae(t[0]),month:Ae(t[1]),day:Ae(t[2])}}return null}format(e){return e?`${e.year}-${Ne(e.month)?Ye(e.month):""}-${Ne(e.day)?Ye(e.day):""}`:""}};return e.\u0275fac=function(t){return ti(t||e)},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}}),e})(),Rt=(()=>{let e=class extends ot{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 ni(t||e)},e.\u0275prov=Object(i.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})();const Et={provide:s.o,useExisting:Object(i.T)(()=>It),multi:!0},At={provide:s.n,useExisting:Object(i.T)(()=>It),multi:!0};let It=(()=>{let e=class{constructor(e,t,n,r,s,o,a,c,l,u,d){this._parserFormatter=e,this._elRef=t,this._vcRef=n,this._renderer=r,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 i.o,this.navigate=new i.o,this.closed=new i.o,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(Ue.from(this.minDate)))return{ngbDate:{minDate:{minDate:this.minDate,actual:t}}};if(this.maxDate&&e.after(Ue.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(ht);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,Mt(this._ngZone,this._cRef.location.nativeElement,this.closed,!0),this._cRef.instance.focus(),vt(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;Pe(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 Ue(e.year,e.month,e.day):null;return this._calendar.isValid(t)?t:null}_updatePopupPosition(){if(!this._cRef)return;let e;if(e=Pe(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.");Tt(e,this._cRef.location.nativeElement,this.placement,"body"===this.container)}};return e.\u0275fac=function(t){return new(t||e)(i.Mb(Ot),i.Mb(i.m),i.Mb(i.P),i.Mb(i.E),i.Mb(i.j),i.Mb(i.A),i.Mb(Qe),i.Mb(ct),i.Mb(r.d),i.Mb(i.h),i.Mb(Rt))},e.\u0275dir=i.Hb({type:e,selectors:[["input","ngbDatepicker",""]],hostVars:1,hostBindings:function(e,t){1&e&&i.gc("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&&i.Vb("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:[i.xb([Et,At,{provide:ot,useExisting:Rt}]),i.wb]}),e})(),Pt=(()=>{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)(i.Mb(nt))},e.\u0275cmp=i.Gb({type:e,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(e,t){2&e&&i.Eb("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:X,decls:1,vars:1,template:function(e,t){1&e&&i.Oc(0),2&e&&i.Pc(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})(),Nt=(()=>{let e=class{constructor(e,t){this.i18n=e,this._renderer=t,this.select=new i.o,this._month=-1,this._year=-1}changeMonth(e){this.select.emit(new Ue(this.date.year,Ae(e),1))}changeYear(e){this.select.emit(new Ue(Ae(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)(i.Mb(nt),i.Mb(i.E))},e.\u0275cmp=i.Gb({type:e,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(e,t){var n;1&e&&(i.Jc(ee,!0,i.m),i.Jc(te,!0,i.m)),2&e&&(i.zc(n=i.hc())&&(t.monthSelect=n.first),i.zc(n=i.hc())&&(t.yearSelect=n.first))},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},decls:8,vars:4,consts:function(){return[[1,"custom-select",3,"disabled","change",6,"aria-label","title"],["month",""],["aria-label","Select month","title","Select month"],[3,"value",4,"ngFor","ngForOf"],["year",""],["aria-label","Select year","title","Select year"],[3,"value"]]},template:function(e,t){1&e&&(i.Sb(0,"select",0,1),i.Yb(2,2),i.gc("change",(function(e){return t.changeMonth(e.target.value)})),i.Mc(3,ne,2,3,"option",3),i.Rb(),i.Sb(4,"select",0,4),i.Yb(6,5),i.gc("change",(function(e){return t.changeYear(e.target.value)})),i.Mc(7,ie,2,2,"option",3),i.Rb()),2&e&&(i.pc("disabled",t.disabled),i.yb(3),i.pc("ngForOf",t.months),i.yb(1),i.pc("disabled",t.disabled),i.yb(3),i.pc("ngForOf",t.years))},directives:[r.q,s.u,s.B],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})(),jt=(()=>{let e=class{};return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[r.c,s.m]]}),e})(),Ft=(()=>{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(i.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})();var Yt;let zt=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Hb({type:e,selectors:[["",8,"navbar"]]}),e})(),$t=(()=>{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)(i.Mb(i.m))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:2,hostBindings:function(e,t){2&e&&i.Eb("disabled",t.disabled)},inputs:{disabled:"disabled"}}),e})(),Ht=(()=>{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)(i.Mb(Object(i.T)(()=>Bt)),i.Mb(i.m))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(e,t,n){var r;1&e&&i.Fb(n,$t,!1),2&e&&i.zc(r=i.hc())&&(t.menuItems=r)},hostVars:5,hostBindings:function(e,t){1&e&&i.gc("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&&(i.zb("x-placement",t.placement),i.Eb("dropdown-menu",!0)("show",t.dropdown.isOpen()))}}),e})(),Wt=(()=>{let e=class{constructor(e,t){this.dropdown=e,this.nativeElement=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(i.Mb(Object(i.T)(()=>Bt)),i.Mb(i.m))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,t){2&e&&i.zb("aria-expanded",t.dropdown.isOpen())}}),e})(),Vt=(()=>{let e=Yt=class extends Wt{constructor(e,t){super(e,t)}};return e.\u0275fac=function(t){return new(t||e)(i.Mb(Object(i.T)(()=>Bt)),i.Mb(i.m))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,t){1&e&&i.gc("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&&i.zb("aria-expanded",t.dropdown.isOpen())},features:[i.xb([{provide:Wt,useExisting:Object(i.T)(()=>Yt)}]),i.vb]}),e})(),Bt=(()=>{let e=class{constructor(e,t,n,r,s,a,c){this._changeDetector=e,this._document=n,this._ngZone=r,this._elementRef=s,this._renderer=a,this._closed$=new o.a,this._bodyContainer=null,this._open=!1,this.openChange=new i.o,this.placement=t.placement,this.container=t.container,this.autoClose=t.autoClose,this.display=c?"static":"dynamic",this._zoneSubscription=r.onStable.subscribe(()=>{this._positionMenu()})}ngAfterContentInit(){this._ngZone.onStable.pipe(Object(w.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(){vt(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!==ft.Space&&t!==ft.Enter){if(t!==ft.Tab){if(s||r){if(this.open(),n.length){switch(t){case ft.ArrowDown:i=Math.min(i+1,n.length-1);break;case ft.ArrowUp:if(this._isDropup()&&-1===i){i=n.length-1;break}i=Math.max(i-1,0);break;case ft.Home:i=0;break;case ft.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(wt);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(c.a)(e.target,"focusout").pipe(Object(w.a)(1)).subscribe(({relatedTarget:e})=>{this._elementRef.nativeElement.contains(e)||this.close()})}}else!r||!0!==this.autoClose&&"inside"!==this.autoClose||Object(c.a)(r,"click").pipe(Object(w.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?Tt(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)(i.Mb(i.h),i.Mb(Ft),i.Mb(r.d),i.Mb(i.A),i.Mb(i.m),i.Mb(i.E),i.Mb(zt,8))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngbDropdown",""]],contentQueries:function(e,t,n){var r;1&e&&(i.Fb(n,Ht,!0),i.Fb(n,Wt,!0)),2&e&&(i.zc(r=i.hc())&&(t._menu=r.first),i.zc(r=i.hc())&&(t._anchor=r.first))},hostVars:2,hostBindings:function(e,t){2&e&&i.Eb("show",t.isOpen())},inputs:{_open:["open","_open"],placement:"placement",container:"container",autoClose:"autoClose",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],features:[i.wb]}),e})(),Ut=(()=>{let e=class{};return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)}}),e})(),Gt=(()=>{let e=class{constructor(){this.backdrop=!0,this.keyboard=!0}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})();class qt{constructor(e,t,n){this.nodes=e,this.viewRef=t,this.componentRef=n}}class Jt{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 i.L){const n=e.createEmbeddedView(t);return this._applicationRef.attachView(n),new qt([n.rootNodes],n)}return new qt([[this._renderer.createText(""+e)]])}return new qt([])}}const Qt=()=>{};let Kt=(()=>{let e=class{constructor(e){this._document=e}compensate(){const e=this._getWidth();return this._isPresent(e)?this._adjustBody(e):Qt}_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)(i.dc(r.d))},e.\u0275prov=Object(i.Ib)({factory:function(){return new e(Object(i.dc)(r.d))},token:e,providedIn:"root"}),e})(),Zt=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:2,hostBindings:function(e,t){2&e&&i.Ab("modal-backdrop fade show"+(t.backdropClass?" "+t.backdropClass:""))},inputs:{backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})();class Xt{close(e){}dismiss(e){}}class en{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 tn=function(e){return e[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",e}({});let nn=(()=>{let e=class{constructor(e,t,n){this._document=e,this._elRef=t,this._zone=n,this._closed$=new o.a,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new i.o}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement}ngAfterViewInit(){const{nativeElement:e}=this._elRef;if(this._zone.runOutsideAngular(()=>{Object(c.a)(e,"keydown").pipe(Object(y.a)(this._closed$),Object(v.a)(e=>e.which===ft.Escape&&this.keyboard)).subscribe(e=>requestAnimationFrame(()=>{e.defaultPrevented||this._zone.run(()=>this.dismiss(tn.ESC))}));let t=!1;Object(c.a)(this._dialogEl.nativeElement,"mousedown").pipe(Object(y.a)(this._closed$),Object(S.a)(()=>t=!1),Object(_.a)(()=>Object(c.a)(e,"mouseup").pipe(Object(y.a)(this._closed$),Object(w.a)(1))),Object(v.a)(({target:t})=>e===t)).subscribe(()=>{t=!0}),Object(c.a)(e,"click").pipe(Object(y.a)(this._closed$)).subscribe(({target:n})=>{!0!==this.backdrop||e!==n||t||this._zone.run(()=>this.dismiss(tn.BACKDROP_CLICK)),t=!1})}),!e.contains(document.activeElement)){const t=e.querySelector("[ngbAutofocus]"),n=St(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)(i.Mb(r.d),i.Mb(i.m),i.Mb(i.A))},e.\u0275cmp=i.Gb({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(e,t){var n;1&e&&i.Jc(re,!0),2&e&&i.zc(n=i.hc())&&(t._dialogEl=n.first)},hostAttrs:["role","dialog","tabindex","-1"],hostVars:5,hostBindings:function(e,t){2&e&&(i.zb("aria-modal",!0)("aria-labelledby",t.ariaLabelledBy)("aria-describedby",t.ariaDescribedBy),i.Ab("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:O,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,t){1&e&&(i.oc(),i.Sb(0,"div",0,1),i.Sb(2,"div",2),i.nc(3),i.Rb(),i.Rb()),2&e&&i.Ab("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})(),rn=(()=>{let e=class{constructor(e,t,n,r,s,a){this._applicationRef=e,this._injector=t,this._document=n,this._scrollBar=r,this._rendererFactory=s,this._ngZone=a,this._activeWindowCmptHasChanged=new o.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 i.o,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const e=this._windowCmpts[this._windowCmpts.length-1];Mt(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:Fe(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 Xt,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 en(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(Zt).create(this._injector);return this._applicationRef.attachView(n.hostView),t.appendChild(n.location.nativeElement),n}_attachWindowComponent(e,t,n){let i=e.resolveComponentFactory(nn).create(this._injector,n.nodes);return this._applicationRef.attachView(i.hostView),t.appendChild(i.location.nativeElement),i}_applyWindowOptions(e,t){this._windowAttributes.forEach(n=>{Fe(t[n])&&(e[n]=t[n])})}_applyBackdropOptions(e,t){this._backdropAttributes.forEach(n=>{Fe(t[n])&&(e[n]=t[n])})}_getContentRef(e,t,n,r,s){return n?n instanceof i.L?this._createFromTemplateRef(n,r):Pe(n)?this._createFromString(n):this._createFromComponent(e,t,n,r,s):new qt([])}_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 qt([n.rootNodes],n)}_createFromString(e){const t=this._document.createTextNode(""+e);return new qt([[t]])}_createFromComponent(e,t,n,r,s){const o=e.resolveComponentFactory(n),a=i.s.create({providers:[{provide:Xt,useValue:r}],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 qt([[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)(i.dc(i.g),i.dc(i.s),i.dc(r.d),i.dc(Kt),i.dc(i.F),i.dc(i.A))},e.\u0275prov=Object(i.Ib)({factory:function(){return new e(Object(i.dc)(i.g),Object(i.dc)(i.p),Object(i.dc)(r.d),Object(i.dc)(Kt),Object(i.dc)(i.F),Object(i.dc)(i.A))},token:e,providedIn:"root"}),e})(),sn=(()=>{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)(i.dc(i.j),i.dc(i.s),i.dc(rn),i.dc(Gt))},e.\u0275prov=Object(i.Ib)({factory:function(){return new e(Object(i.dc)(i.j),Object(i.dc)(i.p),Object(i.dc)(rn),Object(i.dc)(Gt))},token:e,providedIn:"root"}),e})(),on=(()=>{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(i.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})();const an=e=>Fe(e)&&""!==e;let cn=0,ln=(()=>{let e=class{constructor(e){this.templateRef=e}};return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.L))},e.\u0275dir=i.Hb({type:e,selectors:[["ng-template","ngbNavContent",""]]}),e})(),un=(()=>{let e=class{constructor(e,t){this.elementRef=t,this.disabled=!1,this._nav=e}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){Fe(this.domId)||(this.domId="ngb-nav-"+cn++)}get active(){return this._nav.activeId===this.id}get id(){return an(this._id)?this._id:this.domId}get panelDomId(){return this.domId+"-panel"}isPanelInDom(){return(Fe(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}};return e.\u0275fac=function(t){return new(t||e)(i.Mb(Object(i.T)(()=>dn)),i.Mb(i.m))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngbNavItem",""]],contentQueries:function(e,t,n){var r;1&e&&i.Fb(n,ln,!1),2&e&&i.zc(r=i.hc())&&(t.contentTpls=r)},hostVars:2,hostBindings:function(e,t){2&e&&i.Eb("nav-item",!0)},inputs:{disabled:"disabled",domId:"domId",destroyOnHide:"destroyOnHide",_id:["ngbNavItem","_id"]},exportAs:["ngbNavItem"]}),e})(),dn=(()=>{let e=class{constructor(e,t,n,r){this.role=e,this._cd=n,this._document=r,this.activeIdChange=new i.o,this.navChange=new i.o,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 ft.ArrowLeft:if("vertical"===this.orientation)return;r=(r-1+i)%i;break;case ft.ArrowRight:if("vertical"===this.orientation)return;r=(r+1)%i;break;case ft.ArrowDown:if("horizontal"===this.orientation)return;r=(r+1)%i;break;case ft.ArrowUp:if("horizontal"===this.orientation)return;r=(r-1+i)%i;break;case ft.Home:r=0;break;case ft.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(!Fe(this.activeId)){const e=this.items.first?this.items.first.id:null;an(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)(i.ec("role"),i.Mb(on),i.Mb(i.h),i.Mb(r.d))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngbNav",""]],contentQueries:function(e,t,n){var r;1&e&&(i.Fb(n,un,!1),i.Fb(n,hn,!0)),2&e&&(i.zc(r=i.hc())&&(t.items=r),i.zc(r=i.hc())&&(t.links=r))},hostVars:6,hostBindings:function(e,t){1&e&&i.gc("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&&(i.zb("aria-orientation","vertical"===t.orientation&&"tablist"===t.roles?"vertical":void 0)("role",t.role?t.role:t.roles?"tablist":void 0),i.Eb("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})(),hn=(()=>{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)(i.ec("role"),i.Mb(un),i.Mb(dn),i.Mb(i.m))},e.\u0275dir=i.Hb({type:e,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostVars:14,hostBindings:function(e,t){1&e&&i.gc("click",(function(e){return t.nav.click(t.navItem),e.preventDefault()})),2&e&&(i.Vb("id",t.navItem.domId),i.zb("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),i.Eb("nav-link",!0)("nav-item",t.hasNavItemClass())("active",t.navItem.active)("disabled",t.navItem.disabled))}}),e})(),fn=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["","ngbNavOutlet",""]],hostVars:2,hostBindings:function(e,t){2&e&&i.Eb("tab-content",!0)},inputs:{paneRole:"paneRole",nav:["ngbNavOutlet","nav"]},attrs:se,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&&i.Mc(0,le,1,1,"ng-template",0),2&e&&i.pc("ngForOf",t.nav.items)},directives:[r.q,r.r,r.w],encapsulation:2}),e})(),pn=(()=>{let e=class{};return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[r.c]]}),e})();class mn{constructor(e,t){this.open=e,this.close=t,t||(this.close=e)}isManual(){return"manual"===this.open||"manual"===this.close}}const bn={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},gn=e=>e>0?Object(D.a)(e):e=>e;function _n(e,t,n,i,r,s,o=0,a=0){const c=function(e,t=bn){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 mn(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 u=function(e,t,n,i){return new b.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(g.a)(e=>({open:e})),Object(v.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(T.a)()),o=s.pipe(Object(v.a)(e=>e.open),gn(e)),a=s.pipe(Object(v.a)(e=>!e.open),gn(t));return Object(l.a)(o,a).pipe(Object(v.a)(e=>e===r&&(r=null,e.open!==n())),Object(g.a)(e=>e.open))}}(o,a,i)).subscribe(e=>e?r():s());return()=>u.unsubscribe()}let yn=(()=>{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(i.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),vn=0,wn=(()=>{let e=class{isTitleTemplate(){return this.title instanceof i.L}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip"],hostVars:3,hostBindings:function(e,t){2&e&&(i.Vb("id",t.id),i.Ab("popover"+(t.popoverClass?" "+t.popoverClass:"")))},inputs:{title:"title",id:"id",popoverClass:"popoverClass",context:"context"},ngContentSelectors:O,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&&(i.oc(),i.Nb(0,"div",0),i.Mc(1,he,4,2,"h3",1),i.Sb(2,"div",2),i.nc(3),i.Rb()),2&e&&(i.yb(1),i.pc("ngIf",null!=t.title))},directives:[r.r,r.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})(),Sn=(()=>{let e=class{constructor(e,t,n,r,s,o,a,c,l,u){this._elementRef=e,this._renderer=t,this._ngZone=a,this._document=c,this._changeDetector=l,this.shown=new i.o,this.hidden=new i.o,this._ngbPopoverWindowId="ngb-popover-"+vn++,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 Jt(wn,n,s,t,r,u),this._zoneSubscription=a.onStable.subscribe(()=>{this._windowRef&&Tt(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(),vt(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=_n(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)(i.Mb(i.m),i.Mb(i.E),i.Mb(i.s),i.Mb(i.j),i.Mb(i.P),i.Mb(yn),i.Mb(i.A),i.Mb(r.d),i.Mb(i.h),i.Mb(i.g))},e.\u0275dir=i.Hb({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:[i.wb]}),e})(),Mn=(()=>{let e=class{};return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[r.c]]}),e})(),kn=(()=>{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(i.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),xn=(()=>{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=!Ne(e)||e<=0?100:e}get max(){return this._max}getValue(){return function(e,t,n=0){return Math.max(Math.min(e,t),n)}(this.value,this.max)}getPercentValue(){return 100*this.getValue()/this.max}};return e.\u0275fac=function(t){return new(t||e)(i.Mb(kn))},e.\u0275cmp=i.Gb({type:e,selectors:[["ngb-progressbar"]],inputs:{value:"value",max:"max",animated:"animated",striped:"striped",textType:"textType",type:"type",showValue:"showValue",height:"height"},ngContentSelectors:O,decls:4,vars:13,consts:function(){return[[1,"progress"],["role","progressbar","aria-valuemin","0"],[4,"ngIf"],"" + "\ufffd0\ufffd" + ""]},template:function(e,t){1&e&&(i.oc(),i.Sb(0,"div",0),i.Sb(1,"div",1),i.Mc(2,fe,3,3,"span",2),i.nc(3),i.Rb(),i.Rb()),2&e&&(i.Kc("height",t.height),i.yb(1),i.Db("progress-bar",t.type?" bg-"+t.type:"","",t.textType?" text-"+t.textType:"","\n      ",t.animated?" progress-bar-animated":"","",t.striped?" progress-bar-striped":"",""),i.Kc("width",t.getPercentValue(),"%"),i.zb("aria-valuenow",t.getValue())("aria-valuemax",t.max),i.yb(1),i.pc("ngIf",t.showValue))},directives:[r.r],pipes:[r.y],encapsulation:2,changeDetection:0}),e})(),Dn=(()=>{let e=class{};return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[r.c]]}),e})();class Tn{constructor(e,t,n){this.hour=Ae(e),this.minute=Ae(t),this.second=Ae(n)}changeHour(e=1){this.updateHour((isNaN(this.hour)?0:this.hour)+e)}updateHour(e){this.hour=Ne(e)?(e<0?24+e:e)%24:NaN}changeMinute(e=1){this.updateMinute((isNaN(this.minute)?0:this.minute)+e)}updateMinute(e){Ne(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){Ne(e)?(this.second=e<0?60+e%60:e%60,this.changeMinute(Math.floor(e/60))):this.second=NaN}isValid(e=!0){return Ne(this.hour)&&Ne(this.minute)&&(!e||Ne(this.second))}toString(){return`${this.hour||0}:${this.minute||0}:${this.second||0}`}}let Cn=(()=>{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(i.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})();function On(){return new Rn}let Ln=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Ib)({factory:On,token:e,providedIn:"root"}),e})(),Rn=(()=>{let e=class extends Ln{fromModel(e){return e&&je(e.hour)&&je(e.minute)?{hour:e.hour,minute:e.minute,second:je(e.second)?e.second:null}:null}toModel(e){return e&&je(e.hour)&&je(e.minute)?{hour:e.hour,minute:e.minute,second:je(e.second)?e.second:null}:null}};return e.\u0275fac=function(t){return ii(t||e)},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}}),e})(),En=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Ib)({factory:function(){return e=Object(i.dc)(i.v),new An(e);var e},token:e,providedIn:"root"}),e})(),An=(()=>{let e=class extends En{constructor(e){super(),this._periods=Object(r.G)(e,r.g.Standalone,r.B.Narrow)}getMorningPeriod(){return this._periods[0]}getAfternoonPeriod(){return this._periods[1]}};return e.\u0275fac=function(t){return new(t||e)(i.dc(i.v))},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}}),e})();const In=/[^0-9]/g,Pn={provide:s.o,useExisting:Object(i.T)(()=>Nn),multi:!0};let Nn=(()=>{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=je(e)?e:this._config.hourStep}get hourStep(){return this._hourStep}set minuteStep(e){this._minuteStep=je(e)?e:this._config.minuteStep}get minuteStep(){return this._minuteStep}set secondStep(e){this._secondStep=je(e)?e:this._config.secondStep}get secondStep(){return this._secondStep}writeValue(e){const t=this._ngbTimeAdapter.fromModel(e);this.model=t?new Tn(t.hour,t.minute,t.second):new Tn,this.seconds||t&&Ne(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=Ae(e);this.model.updateHour(this.meridian&&(t&&n<12||!t&&12===n)?n+12:n),this.propagateModelChange()}updateMinute(e){this.model.updateMinute(Ae(e)),this.propagateModelChange()}updateSecond(e){this.model.updateSecond(Ae(e)),this.propagateModelChange()}toggleMeridian(){this.meridian&&this.changeHour(12)}formatInput(e){e.value=e.value.replace(In,"")}formatHour(e){return Ne(e)?Ye(this.meridian?e%12==0?12:e%12:e%24):Ye(NaN)}formatMinSec(e){return Ye(Ne(e)?e:NaN)}get isSmallSize(){return"small"===this.size}get isLargeSize(){return"large"===this.size}ngOnChanges(e){e.seconds&&!this.seconds&&this.model&&!Ne(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)(i.Mb(Cn),i.Mb(Ln),i.Mb(i.h),i.Mb(En))},e.\u0275cmp=i.Gb({type:e,selectors:[["ngb-timepicker"]],inputs:{meridian:"meridian",spinners:"spinners",seconds:"seconds",hourStep:"hourStep",minuteStep:"minuteStep",secondStep:"secondStep",readonlyInputs:"readonlyInputs",size:"size"},features:[i.xb([Pn]),i.wb],decls:18,vars:25,consts:function(){return[[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",1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","input","keydown.ArrowUp","keydown.ArrowDown",6,"placeholder","aria-label"],["placeholder","HH","aria-label","Hours"],[1,"ngb-tp-spacer"],[1,"ngb-tp-input-container","ngb-tp-minute"],["placeholder","MM","aria-label","Minutes"],["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"],"Increment hours",[1,"chevron","ngb-tp-chevron","bottom"],"Decrement hours","Increment minutes","Decrement minutes",[1,"ngb-tp-input-container","ngb-tp-second"],["placeholder","SS","aria-label","Seconds"],"Increment seconds","Decrement seconds",[1,"ngb-tp-meridian"],["type","button",1,"btn","btn-outline-primary",3,"disabled","click"],[4,"ngIf","ngIfElse"],["am",""],"" + "\ufffd0\ufffd" + "","" + "\ufffd0\ufffd" + ""]},template:function(e,t){1&e&&(i.Sb(0,"fieldset",0),i.Sb(1,"div",1),i.Sb(2,"div",2),i.Mc(3,pe,4,7,"button",3),i.Sb(4,"input",4),i.Yb(5,5),i.gc("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()})),i.Rb(),i.Mc(6,me,4,7,"button",3),i.Rb(),i.Sb(7,"div",6),i.Oc(8,":"),i.Rb(),i.Sb(9,"div",7),i.Mc(10,be,4,7,"button",3),i.Sb(11,"input",4),i.Yb(12,8),i.gc("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()})),i.Rb(),i.Mc(13,ge,4,7,"button",3),i.Rb(),i.Mc(14,_e,2,0,"div",9),i.Mc(15,we,5,9,"div",10),i.Mc(16,Se,1,0,"div",9),i.Mc(17,xe,5,9,"div",11),i.Rb(),i.Rb()),2&e&&(i.Eb("disabled",t.disabled),i.pc("disabled",t.disabled),i.yb(3),i.pc("ngIf",t.spinners),i.yb(1),i.Eb("form-control-sm",t.isSmallSize)("form-control-lg",t.isLargeSize),i.pc("value",t.formatHour(null==t.model?null:t.model.hour))("readOnly",t.readonlyInputs)("disabled",t.disabled),i.yb(2),i.pc("ngIf",t.spinners),i.yb(4),i.pc("ngIf",t.spinners),i.yb(1),i.Eb("form-control-sm",t.isSmallSize)("form-control-lg",t.isLargeSize),i.pc("value",t.formatMinSec(null==t.model?null:t.model.minute))("readOnly",t.readonlyInputs)("disabled",t.disabled),i.yb(2),i.pc("ngIf",t.spinners),i.yb(1),i.pc("ngIf",t.seconds),i.yb(1),i.pc("ngIf",t.seconds),i.yb(1),i.pc("ngIf",t.meridian),i.yb(1),i.pc("ngIf",t.meridian))},directives:[r.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.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[r.c]]}),e})(),Fn=(()=>{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(i.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Yn=0,zn=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:3,hostBindings:function(e,t){2&e&&(i.Vb("id",t.id),i.Ab("tooltip show"+(t.tooltipClass?" "+t.tooltipClass:"")))},inputs:{id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:O,decls:3,vars:0,consts:[[1,"arrow"],[1,"tooltip-inner"]],template:function(e,t){1&e&&(i.oc(),i.Nb(0,"div",0),i.Sb(1,"div",1),i.nc(2),i.Rb())},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})(),$n=(()=>{let e=class{constructor(e,t,n,r,s,o,a,c,l,u){this._elementRef=e,this._renderer=t,this._ngZone=a,this._document=c,this._changeDetector=l,this.shown=new i.o,this.hidden=new i.o,this._ngbTooltipWindowId="ngb-tooltip-"+Yn++,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 Jt(zn,n,s,t,r,u),this._zoneSubscription=a.onStable.subscribe(()=>{this._windowRef&&Tt(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(),vt(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=_n(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)(i.Mb(i.m),i.Mb(i.E),i.Mb(i.s),i.Mb(i.j),i.Mb(i.P),i.Mb(Fn),i.Mb(i.A),i.Mb(r.d),i.Mb(i.h),i.Mb(i.g))},e.\u0275dir=i.Hb({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:[i.wb]}),e})(),Hn=(()=>{let e=class{};return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)}}),e})(),Wn=(()=>{let e=class{constructor(){this.highlightClass="ngb-highlight"}ngOnChanges(e){const t=Ie(this.result),n=(Array.isArray(this.term)?this.term:[this.term]).map(e=>Ie(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=i.Gb({type:e,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term"},features:[i.wb],decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["even",""]],template:function(e,t){1&e&&i.Mc(0,Ce,3,2,"ng-template",0),2&e&&i.pc("ngForOf",t.parts)},directives:[r.q,r.r],styles:[".ngb-highlight{font-weight:700}"],encapsulation:2,changeDetection:0}),e})(),Vn=(()=>{let e=class{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=Ie,this.selectEvent=new i.o,this.activeChangeEvent=new i.o}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=i.Gb({type:e,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox",1,"dropdown-menu","show"],hostVars:1,hostBindings:function(e,t){1&e&&i.gc("mousedown",(function(e){return e.preventDefault()})),2&e&&i.Vb("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&&(i.Mc(0,Oe,1,2,"ng-template",null,0,i.Nc),i.Mc(2,Ee,2,9,"ng-template",1)),2&e&&(i.yb(2),i.pc("ngForOf",t.results))},directives:[r.q,Wn,r.w],encapsulation:2}),e})();const Bn=new i.r("live announcer delay",{providedIn:"root",factory:function(){return 100}});function Un(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 Gn=(()=>{let e=class{constructor(e,t){this._document=e,this._delay=t}ngOnDestroy(){const e=Un(this._document);e&&e.parentElement.removeChild(e)}say(e){const t=Un(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)(i.dc(r.d),i.dc(Bn))},e.\u0275prov=Object(i.Ib)({factory:function(){return new e(Object(i.dc)(r.d),Object(i.dc)(Bn))},token:e,providedIn:"root"}),e})(),qn=(()=>{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(i.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})();const Jn={provide:s.o,useExisting:Object(i.T)(()=>Kn),multi:!0};let Qn=0,Kn=(()=>{let e=class{constructor(e,t,n,r,s,l,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 o.a,this._inputValueBackup=null,this._windowRef=null,this.autocomplete="off",this.placement="bottom-left",this.selectItem=new i.o,this.activeDescendant=null,this.popupId="ngb-typeahead-"+Qn++,this._onTouched=()=>{},this._onChange=e=>{},this.container=l.container,this.editable=l.editable,this.focusFirst=l.focusFirst,this.showHint=l.showHint,this.placement=l.placement,this._valueChanges=Object(c.a)(e.nativeElement,"input").pipe(Object(g.a)(e=>e.target.value)),this._resubscribeTypeahead=new a.a(null),this._popupService=new Jt(Vn,r,t,n,s,m),this._zoneSubscription=u.onStable.subscribe(()=>{this.isPopupOpen()&&Tt(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(_.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 ft.ArrowDown:e.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case ft.ArrowUp:e.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case ft.Enter:case ft.Tab:const t=this._windowRef.instance.getActive();Fe(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(),vt(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):Ie(e)}_writeInputValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",Ie(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)(i.Mb(i.m),i.Mb(i.P),i.Mb(i.E),i.Mb(i.s),i.Mb(i.j),i.Mb(qn),i.Mb(i.A),i.Mb(Gn),i.Mb(r.d),i.Mb(i.A),i.Mb(i.h),i.Mb(i.g))},e.\u0275dir=i.Hb({type:e,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox","aria-multiline","false"],hostVars:7,hostBindings:function(e,t){1&e&&i.gc("blur",(function(){return t.handleBlur()}))("keydown",(function(e){return t.handleKeyDown(e)})),2&e&&(i.Vb("autocomplete",t.autocomplete),i.zb("aria-autocomplete",t.showHint?"both":"list")("aria-activedescendant",t.activeDescendant)("aria-owns",t.isPopupOpen()?t.popupId:null)("aria-expanded",t.isPopupOpen()),i.Eb("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:[i.xb([Jn])]}),e})(),Zn=(()=>{let e=class{};return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[r.c]]}),e})();const Xn=i.Ub(Ke),ei=i.Ub(lt),ti=i.Ub(Lt),ni=i.Ub(Rt),ii=i.Ub(Rn)},"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.Lb({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}}},"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.\u0275mod=o.Kb({type:e}),e.\u0275inj=o.Jb({factory:function(t){return new(t||e)},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.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){}getPosition(){return 0}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(){let e=0;return this.players.forEach(t=>{const n=t.getPosition();e=Math.min(n,e)}),e}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){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},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.Sb(0,"table"),i.Sb(1,"tr"),i.Sb(2,"td",4),i.Oc(3,"Used:\xa0"),i.Rb(),i.Sb(4,"td",5),i.Sb(5,"strong"),i.Oc(6),i.jc(7,"dimlessBinary"),i.jc(8,"dimless"),i.Rb(),i.Rb(),i.Rb(),i.Sb(9,"tr"),i.Sb(10,"td",4),i.Oc(11,"Free:\xa0"),i.Rb(),i.Sb(12,"td",6),i.Sb(13,"strong"),i.Oc(14),i.jc(15,"dimlessBinary"),i.jc(16,"dimless"),i.Rb(),i.Rb(),i.Rb(),i.Rb()),2&e){const e=i.ic();i.yb(6),i.Qc(" ",e.isBinary?i.kc(7,2,e.used):i.kc(8,4,e.used),""),i.yb(8),i.Pc(e.isBinary?i.kc(15,6,e.total-e.used):i.kc(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.Gb({type:e,selectors:[["cd-usage-bar"]],inputs:{total:"total",used:"used",isBinary:"isBinary",decimals:"decimals"},features:[i.wb],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.Mc(0,c,17,10,"ng-template",null,0,i.Nc),i.Sb(2,"div",1),i.Sb(3,"div",2),i.Sb(4,"span"),i.Oc(5),i.jc(6,"number"),i.Rb(),i.Rb(),i.Nb(7,"div",3),i.Rb()),2&e){const e=i.Ac(1);i.yb(2),i.pc("ngbTooltip",e),i.yb(1),i.Kc("width",t.usedPercentage+"%"),i.yb(2),i.Qc("",i.lc(6,6,t.usedPercentage,"1.0-"+t.decimals),"%"),i.yb(2),i.Kc("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})()},GyhO:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("LRne"),r=n("0EUg");function s(...e){return Object(r.a)()(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"))},HAuM:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},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){e.exports=function(e){if(null==e)throw TypeError("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 s})),n.d(t,"b",(function(){return o}));var i=n("8Y7J"),r=n("SVse"),s=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.o,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.\u0275fac=function(t){return new(t||e)(i.Mb(i.m),i.Mb(i.A),i.Mb(i.C))},e.\u0275dir=i.Hb({type:e,selectors:[["","clickOutside",""]],inputs:{clickOutsideEnabled:"clickOutsideEnabled",attachOutsideOnClick:"attachOutsideOnClick",delayClickOutsideInit:"delayClickOutsideInit",emitOnBlur:"emitOnBlur",exclude:"exclude",excludeBeforeClick:"excludeBeforeClick",clickOutsideEvents:"clickOutsideEvents"},outputs:{clickOutside:"clickOutside"},features:[i.wb]}),e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),o=function(){function e(){}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)}}),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("ppGB"),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.Mb(s.m))},e.\u0275dir=s.Hb({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 D})),n.d(t,"c",(function(){return $})),n.d(t,"d",(function(){return k})),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.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"})}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 y{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||Array.isArray(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 y(t,n,r,{params:c,headers:a,reportProgress:o,responseType:i,withCredentials:s})}}var v=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 S extends w{constructor(e={}){super(e),this.type=v.ResponseHeader}clone(e={}){return new S({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 M extends w{constructor(e={}){super(e),this.type=v.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new M({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 k 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 x(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let D=(()=>{class e{constructor(e){this.handler=e}request(e,t,n={}){let i;if(e instanceof y)i=e;else{let r=void 0;r=n.headers instanceof h?n.headers:new h(n.headers);let s=void 0;n.params&&(s=n.params instanceof m?n.params:new m({fromObject:n.params})),i=new y(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 y||"events"===n.observe)return s;const l=s.pipe(Object(a.a)(e=>e instanceof M));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,x(n,t))}post(e,t,n={}){return this.request("POST",e,x(n,t))}put(e,t,n={}){return this.request("PUT",e,x(n,t))}}return e.\u0275fac=function(t){return new(t||e)(i.dc(u))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})();class T{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const C=new i.r("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.Ib({token:e,factory:e.\u0275fac}),e})();const L=/^\)\]\}',?\n/;class R{}let E=(()=>{class e{constructor(){}build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})(),A=(()=>{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 S({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 M({body:c,headers:i,status:r,statusText:o,url:a||void 0})),t.complete()):t.error(new k({error:c,headers:i,status:r,statusText:o,url:a||void 0}))},a=e=>{const{url:i}=s(),r=new k({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:v.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:v.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),e.reportProgress&&(n.addEventListener("progress",l),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),t.next({type:v.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),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.dc(R))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})();const I=new i.r("XSRF_COOKIE_NAME"),P=new i.r("XSRF_HEADER_NAME");class N{}let j=(()=>{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.dc(l.d),i.dc(i.C),i.dc(I))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})(),F=(()=>{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.dc(N),i.dc(P))},e.\u0275prov=i.Ib({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 T(e,t),this.backend)}return this.chain.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(i.dc(d),i.dc(i.s))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})(),z=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:F,useClass:O}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:I,useValue:t.cookieName}:[],t.headerName?{provide:P,useValue:t.headerName}:[]]}}}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},providers:[F,{provide:C,useExisting:F,multi:!0},{provide:N,useClass:j},{provide:I,useValue:"XSRF-TOKEN"},{provide:P,useValue:"X-XSRF-TOKEN"}]}),e})(),$=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},providers:[D,{provide:u,useClass:Y},A,{provide:d,useExisting:A},E,{provide:R,useExisting:E}],imports:[[z.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("glrk"),r=n("6VoE"),s=n("UMSQ"),o=n("A2ZE"),a=n("NaFW"),c=n("m92n"),l=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,u,d){var h,f,p,m,b,g,_,y=o(t,n,u?2:1);if(d)h=e;else{if("function"!=typeof(f=a(e)))throw TypeError("Target is not iterable");if(r(f)){for(p=0,m=s(e.length);m>p;p++)if((b=u?y(i(_=e[p])[0],_[1]):y(e[p]))&&b instanceof l)return b;return new l(!1)}h=f.call(e)}for(g=h.next;!(_=g.call(h)).done;)if("object"==typeof(b=c(h,y,_.value,u))&&b&&b instanceof l)return b;return new l(!1)}).stop=function(e){return new l(!0,e)}},"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.Mb(i.a))},e.\u0275pipe=r.Lb({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()))}}},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.dc(r.o))},e.\u0275prov=i.Ib({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.Mb(r.p,9))},e.\u0275dir=i.Hb({type:e,selectors:[["","cdStatefulTab",""]],hostBindings:function(e,t){1&e&&i.gc("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)}},"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"))},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"))},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=a&&a.versions,l=c&&c.v8;l?r=(i=l.split("."))[0]+i[1]:o&&(!(i=o.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=o.match(/Chrome\/(\d+)/))&&(r=i[1]),e.exports=r&&+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 Qe})),n.d(t,"RoutedAuthModule",(function(){return Ze}));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.dc(b.b))},e.\u0275prov=m.Ib({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.dc(b.b))},e.\u0275prov=m.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var y=n("mtw6"),v=n("spCT"),w=n("QFaf"),S=n("1Ni5"),M=n("9nlD"),k=function(e){return e.editing="editing",e}({});class x{}var D=n("zc8c"),T=n("NwgZ"),C=n("ocLN"),O=n("ANnk"),L=n("f69J"),R=n("IZUe"),E=n("uIqm"),A=n("6+kj"),I=n("8xTl");const P=["headerPermissionCheckboxTpl"],N=["cellScopeCheckboxTpl"],j=["cellPermissionCheckboxTpl"];function F(e,t){1&e&&(m.Sb(0,"span",27),m.Wb(1,28),m.Rb())}function Y(e,t){1&e&&(m.Sb(0,"span",27),m.Wb(1,29),m.Rb())}const z=function(e){return{required:e}};function $(e,t){if(1&e){const e=m.Tb();m.Sb(0,"div",4),m.Sb(1,"form",5,6),m.Sb(3,"div",7),m.Sb(4,"div",8),m.Wb(5,9),m.jc(6,"titlecase"),m.jc(7,"upperFirst"),m.Rb(),m.Sb(8,"div",10),m.Sb(9,"div",11),m.Sb(10,"label",12),m.Wb(11,13),m.Rb(),m.Sb(12,"div",14),m.Sb(13,"input",15),m.Yb(14,16),m.Rb(),m.Mc(15,F,2,0,"span",17),m.Mc(16,Y,2,0,"span",17),m.Rb(),m.Rb(),m.Sb(17,"div",11),m.Sb(18,"label",18),m.Wb(19,19),m.Rb(),m.Sb(20,"div",14),m.Sb(21,"input",20),m.Yb(22,21),m.Rb(),m.Rb(),m.Rb(),m.Sb(23,"div",11),m.Sb(24,"label",22),m.Wb(25,23),m.Rb(),m.Sb(26,"div",14),m.Nb(27,"cd-table",24),m.Rb(),m.Rb(),m.Rb(),m.Sb(28,"div",25),m.Sb(29,"cd-form-button-panel",26),m.gc("submitActionEvent",(function(){return m.Dc(e),m.ic().submit()})),m.jc(30,"titlecase"),m.jc(31,"upperFirst"),m.Rb(),m.Rb(),m.Rb(),m.Rb(),m.Rb()}if(2&e){const e=m.Ac(2),t=m.ic();m.yb(1),m.pc("formGroup",t.roleForm),m.yb(6),m.ac(m.kc(6,15,t.action))(m.kc(7,17,t.resource)),m.Xb(5),m.yb(3),m.pc("ngClass",m.uc(23,z,t.mode!==t.roleFormMode.editing)),m.yb(5),m.pc("ngIf",t.roleForm.showError("name",e,"required")),m.yb(1),m.pc("ngIf",t.roleForm.showError("name",e,"notUnique")),m.yb(11),m.pc("data",t.scopes_permissions)("columns",t.columns)("toolHeader",!1)("autoReload",!1)("autoSave",!1)("footer",!1)("limit",0),m.yb(2),m.pc("form",t.roleForm)("submitText",m.kc(30,19,t.action)+" "+m.kc(31,21,t.resource))}}function H(e,t){if(1&e){const e=m.Tb();m.Sb(0,"div",30),m.Sb(1,"input",31),m.gc("change",(function(n){m.Dc(e);const i=t.row,r=t.column;return m.ic().onClickCellCheckbox(i.scope,r.prop,n)})),m.Rb(),m.Sb(2,"label",32),m.Oc(3),m.Rb(),m.Rb()}if(2&e){const e=t.row,n=t.value,i=m.ic();m.yb(1),m.rc("id","scope_",e.scope,""),m.pc("checked",i.isRowChecked(e.scope)),m.yb(1),m.rc("for","scope_",e.scope,""),m.yb(1),m.Pc(n)}}function W(e,t){if(1&e){const e=m.Tb();m.Sb(0,"div",30),m.Sb(1,"input",33),m.gc("change",(function(n){m.Dc(e);const i=t.row,r=t.column;return m.ic().onClickCellCheckbox(i.scope,r.prop,n)})),m.Rb(),m.Nb(2,"label",34),m.Rb()}if(2&e){const e=t.column,n=t.row,i=t.value;m.yb(1),m.pc("checked",i)("id",n.scope+"-"+e.prop),m.yb(1),m.pc("for",n.scope+"-"+e.prop)}}function V(e,t){if(1&e){const e=m.Tb();m.Sb(0,"div",30),m.Sb(1,"input",31),m.gc("change",(function(n){m.Dc(e);const i=t.column;return m.ic().onClickHeaderCheckbox(i.prop,n)})),m.Rb(),m.Sb(2,"label",35),m.Oc(3),m.Rb(),m.Rb()}if(2&e){const e=t.column,n=m.ic();m.yb(1),m.rc("id","header_",e.prop,""),m.pc("checked",n.isHeaderChecked(e.prop)),m.yb(1),m.rc("for","header_",e.prop,""),m.yb(1),m.Pc(e.name)}}let B=(()=>{class e extends v.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=k,this.resource="role",this.createForm(),this.listenToChanges()}createForm(){this.roleForm=new w.a({name:new r.h("",{validators:[r.A.required],asyncValidators:[S.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 x;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(y.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(y.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.Mb(s.a),m.Mb(s.e),m.Mb(g),m.Mb(_),m.Mb(M.a),m.Mb(c.b))},e.\u0275cmp=m.Gb({type:e,selectors:[["cd-role-form"]],viewQuery:function(e,t){var n;1&e&&(m.Jc(P,!0),m.Jc(N,!0),m.Jc(j,!0)),2&e&&(m.zc(n=m.hc())&&(t.headerPermissionCheckboxTpl=n.first),m.zc(n=m.hc())&&(t.cellScopeCheckboxTpl=n.first),m.zc(n=m.hc())&&(t.cellPermissionCheckboxTpl=n.first))},features:[m.vb],decls:7,vars:1,consts:function(){return[["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"],"" + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + "",[1,"card-body"],[1,"form-group","row"],["for","name",1,"cd-col-form-label",3,"ngClass"],"Name",[1,"cd-col-form-input"],["type","text","id","name","name","name","formControlName","name","autofocus","",1,"form-control",6,"placeholder"],["placeholder","Name..."],["class","invalid-feedback",4,"ngIf"],["for","description",1,"cd-col-form-label"],"Description",["type","text","id","description","name","description","formControlName","description",1,"form-control",6,"placeholder"],["placeholder","Description..."],[1,"cd-col-form-label"],"Permissions",["columnMode","flex",3,"data","columns","toolHeader","autoReload","autoSave","footer","limit"],[1,"card-footer"],["wrappingClass","text-right",3,"form","submitText","submitActionEvent"],[1,"invalid-feedback"],"This field is required.","The chosen name is already in use.",[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.Mc(0,$,32,25,"div",0),m.Mc(1,H,4,4,"ng-template",null,1,m.Nc),m.Mc(3,W,3,3,"ng-template",null,2,m.Nc),m.Mc(5,V,4,4,"ng-template",null,3,m.Nc)),2&e&&m.pc("cdFormLoading",t.loading)},directives:[D.a,r.C,r.r,r.k,T.a,C.a,i.p,O.a,r.d,L.a,r.q,r.i,R.a,i.r,E.a,A.a],pipes:[i.A,I.a],styles:[".datatable-permissions-header-cell-label[_ngcontent-%COMP%], .datatable-permissions-scope-cell-label[_ngcontent-%COMP%]{font-weight:700}"]}),e})();var U=n("+fVR"),G=n("0+/T"),q=n("Rf2I"),J=n("x38r"),Q=n("oxzT"),K=n("vCyI"),Z=n("nSDx"),X=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.Mb(s.e))},e.\u0275cmp=m.Gb({type:e,selectors:[["cd-user-tabs"]],decls:8,vars:1,consts:function(){return[["ngbNav","",1,"nav-tabs",3,"activeId","navChange"],["nav","ngbNav"],["ngbNavItem","/user-management/users"],["ngbNavLink",""],"Users",["ngbNavItem","/user-management/roles"],"Roles"]},template:function(e,t){1&e&&(m.Sb(0,"ul",0,1),m.gc("navChange",(function(e){return t.router.navigate([e.nextId])})),m.Sb(2,"li",2),m.Sb(3,"a",3),m.Wb(4,4),m.Rb(),m.Rb(),m.Sb(5,"li",5),m.Sb(6,"a",3),m.Wb(7,6),m.Rb(),m.Rb(),m.Rb()),2&e&&m.pc("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.Qb(0),m.Nb(1,"cd-table",1),m.Pb()),2&e){const e=m.ic();m.yb(1),m.pc("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:J.a.checkIcon},{prop:"create",name:"Create",flexGrow:1,cellClass:"text-center",cellTransformation:J.a.checkIcon},{prop:"update",name:"Update",flexGrow:1,cellClass:"text-center",cellTransformation:J.a.checkIcon},{prop:"delete",name:"Delete",flexGrow:1,cellClass:"text-center",cellTransformation:J.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.Gb({type:e,selectors:[["cd-role-details"]],inputs:{selection:"selection",scopes:"scopes"},features:[m.wb],decls:1,vars:1,consts:[[4,"ngIf"],["columnMode","flex",3,"data","columns","toolHeader","autoReload","autoSave","footer","limit"]],template:function(e,t){1&e&&m.Mc(0,re,2,7,"ng-container",0),2&e&&m.pc("ngIf",t.selection)},directives:[i.r,E.a],styles:[".fa[_ngcontent-%COMP%]{font-size:large}.fa.fa-square-o[_ngcontent-%COMP%]{color:#ced4da}"]}),e})(),oe=(()=>{class e extends U.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:Q.a.add,routerLink:()=>this.urlBuilder.getCreate(),name:this.actionLabels.CREATE},{permission:"create",icon:Q.a.clone,name:this.actionLabels.CLONE,disable:()=>!this.selection.hasSingleSelection,click:()=>this.cloneRole()},{permission:"update",icon:Q.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:Q.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:J.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(y.a.success,"Deleted role '" + e + "'")},()=>{this.modalRef.componentInstance.stopLoadingSpinner()})}deleteRoleModal(){const e=this.selection.first().name;this.modalRef=this.modalService.show(G.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(y.a.success,"Cloned role '" + t.newName + "' from '" + e + "'")})}})}}return e.\u0275fac=function(t){return new(t||e)(m.Mb(g),m.Mb(_),m.Mb(Z.a),m.Mb(X.a),m.Mb(ee.a),m.Mb(M.a),m.Mb(te.a),m.Mb(c.b))},e.\u0275cmp=m.Gb({type:e,selectors:[["cd-role-list"]],features:[m.xb([{provide:te.a,useValue:new te.a("user-management/roles")}]),m.vb],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.Nb(0,"cd-user-tabs"),m.Sb(1,"cd-table",0),m.gc("setExpandedRow",(function(e){return t.setExpandedRow(e)}))("fetchData",(function(){return t.getRoles()}))("updateSelection",(function(e){return t.updateSelection(e)})),m.Nb(2,"cd-table-actions",1),m.Nb(3,"cd-role-details",2),m.Rb()),2&e&&(m.yb(1),m.pc("data",t.roles)("columns",t.columns)("hasDetails",!0),m.yb(1),m.pc("permission",t.permission)("selection",t.selection)("tableActions",t.tableActions),m.yb(1),m.pc("selection",t.expandedRow)("scopes",t.scopes))},directives:[ne,E.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 ye=n("D4zM"),ve=n("p4Cf"),we=n("ppaS"),Se=n("MAOJ");const Me=["removeSelfUserReadUpdatePermissionTpl"];function ke(e,t){1&e&&(m.Sb(0,"span",28),m.Wb(1,29),m.Rb())}function xe(e,t){1&e&&(m.Sb(0,"span",28),m.Wb(1,30),m.Rb())}function De(e,t){if(1&e&&m.Nb(0,"cd-helper",40),2&e){const e=m.ic(3);m.qc("html",e.passwordPolicyHelpText)}}function Te(e,t){1&e&&(m.Sb(0,"span",28),m.Wb(1,41),m.Rb())}function Ce(e,t){if(1&e&&(m.Sb(0,"span",28),m.Oc(1),m.Rb()),2&e){const e=m.ic(3);m.yb(1),m.Qc(" ",e.passwordValuation," ")}}function Oe(e,t){if(1&e&&(m.Sb(0,"div",10),m.Sb(1,"label",31),m.Qb(2),m.Wb(3,32),m.Pb(),m.Mc(4,De,1,1,"cd-helper",33),m.Rb(),m.Sb(5,"div",13),m.Sb(6,"div",34),m.Nb(7,"input",35),m.Sb(8,"span",36),m.Nb(9,"button",37),m.Rb(),m.Rb(),m.Sb(10,"div",38),m.Nb(11,"div",39),m.Rb(),m.Mc(12,Te,2,0,"span",15),m.Mc(13,Ce,2,1,"span",15),m.Rb(),m.Rb()),2&e){m.ic();const e=m.Ac(2),t=m.ic();m.yb(4),m.pc("ngIf",t.passwordPolicyHelpText.length>0),m.yb(7),m.Ab(t.passwordStrengthLevelClass),m.qc("title",t.passwordValuation),m.yb(1),m.pc("ngIf",t.userForm.showError("password",e,"required")),m.yb(1),m.pc("ngIf",t.userForm.showError("password",e,"passwordPolicy"))}}function Le(e,t){1&e&&(m.Sb(0,"span",28),m.Wb(1,46),m.Rb())}function Re(e,t){1&e&&(m.Sb(0,"span",28),m.Wb(1,47),m.Rb())}function Ee(e,t){if(1&e&&(m.Sb(0,"div",10),m.Sb(1,"label",42),m.Wb(2,43),m.Rb(),m.Sb(3,"div",13),m.Sb(4,"div",34),m.Nb(5,"input",44),m.Sb(6,"span",36),m.Nb(7,"button",45),m.Rb(),m.Mc(8,Le,2,0,"span",15),m.Rb(),m.Mc(9,Re,2,0,"span",15),m.Rb(),m.Rb()),2&e){m.ic();const e=m.Ac(2),t=m.ic();m.yb(8),m.pc("ngIf",t.userForm.showError("confirmpassword",e,"match")),m.yb(1),m.pc("ngIf",t.userForm.showError("confirmpassword",e,"required"))}}function Ae(e,t){1&e&&(m.Sb(0,"cd-helper",55),m.Sb(1,"p"),m.Oc(2," The Dashboard setting defining the expiration interval of passwords is currently set to "),m.Sb(3,"strong"),m.Oc(4,"0"),m.Rb(),m.Oc(5,". This means if a date is set, the user password will only expire once. "),m.Rb(),m.Sb(6,"p"),m.Oc(7," Consider configuring the Dashboard setting "),m.Sb(8,"a",56),m.Oc(9,"USER_PWD_EXPIRATION_SPAN"),m.Rb(),m.Oc(10," in order to let passwords expire periodically. "),m.Rb(),m.Rb())}function Ie(e,t){1&e&&(m.Sb(0,"span",28),m.Wb(1,57),m.Rb())}const Pe=function(e){return{required:e}};function Ne(e,t){if(1&e){const e=m.Tb();m.Sb(0,"div",10),m.Sb(1,"label",48),m.Qb(2),m.Wb(3,49),m.Pb(),m.Mc(4,Ae,11,0,"cd-helper",50),m.Rb(),m.Sb(5,"div",13),m.Sb(6,"div",34),m.Sb(7,"input",51,52),m.Yb(9,53),m.gc("click",(function(){return m.Dc(e),m.Ac(8).open()}))("keypress",(function(){return m.Dc(e),m.Ac(8).close()})),m.Rb(),m.Sb(10,"span",36),m.Sb(11,"button",54),m.gc("click",(function(){return m.Dc(e),m.ic(2).clearExpirationDate()})),m.Nb(12,"i"),m.Rb(),m.Rb(),m.Mc(13,Ie,2,0,"span",15),m.Rb(),m.Rb(),m.Rb()}if(2&e){m.ic();const e=m.Ac(2),t=m.ic(),n=m.Ac(4);m.yb(1),m.pc("ngClass",m.uc(7,Pe,t.pwdExpirationSettings.pwdExpirationSpan>0)),m.yb(3),m.pc("ngIf",0==t.pwdExpirationSettings.pwdExpirationSpan),m.yb(3),m.pc("ngbPopover",n),m.yb(5),m.Bb("icon-prepend ",t.icons.destroy,""),m.yb(1),m.pc("ngIf",t.userForm.showError("pwdExpirationDate",e,"required"))}}function je(e,t){1&e&&(m.Sb(0,"span",28),m.Wb(1,58),m.Rb())}function Fe(e,t){if(1&e&&(m.Sb(0,"span",59),m.Nb(1,"cd-select-badges",60),m.Rb()),2&e){const e=m.ic(2);m.yb(1),m.pc("data",e.userForm.controls.roles.value)("options",e.allRoles)("messages",e.messages)}}function Ye(e,t){1&e&&(m.Sb(0,"div",10),m.Sb(1,"div",61),m.Sb(2,"div",62),m.Nb(3,"input",63),m.Sb(4,"label",64),m.Wb(5,65),m.Rb(),m.Rb(),m.Rb(),m.Rb())}function ze(e,t){1&e&&(m.Sb(0,"div",10),m.Sb(1,"div",61),m.Sb(2,"div",62),m.Nb(3,"input",66),m.Sb(4,"label",67),m.Wb(5,68),m.Rb(),m.Rb(),m.Rb(),m.Rb())}function $e(e,t){if(1&e){const e=m.Tb();m.Sb(0,"div",3),m.Sb(1,"form",4,5),m.Sb(3,"div",6),m.Sb(4,"div",7),m.Wb(5,8),m.jc(6,"titlecase"),m.jc(7,"upperFirst"),m.Rb(),m.Sb(8,"div",9),m.Sb(9,"div",10),m.Sb(10,"label",11),m.Wb(11,12),m.Rb(),m.Sb(12,"div",13),m.Nb(13,"input",14),m.Mc(14,ke,2,0,"span",15),m.Mc(15,xe,2,0,"span",15),m.Rb(),m.Rb(),m.Mc(16,Oe,14,7,"div",16),m.Mc(17,Ee,10,2,"div",16),m.Mc(18,Ne,14,9,"div",16),m.Sb(19,"div",10),m.Sb(20,"label",17),m.Wb(21,18),m.Rb(),m.Sb(22,"div",13),m.Nb(23,"input",19),m.Rb(),m.Rb(),m.Sb(24,"div",10),m.Sb(25,"label",20),m.Wb(26,21),m.Rb(),m.Sb(27,"div",13),m.Nb(28,"input",22),m.Mc(29,je,2,0,"span",15),m.Rb(),m.Rb(),m.Sb(30,"div",10),m.Sb(31,"label",23),m.Wb(32,24),m.Rb(),m.Sb(33,"div",13),m.Mc(34,Fe,2,3,"span",25),m.Rb(),m.Rb(),m.Mc(35,Ye,6,0,"div",16),m.Mc(36,ze,6,0,"div",16),m.Rb(),m.Sb(37,"div",26),m.Sb(38,"cd-form-button-panel",27),m.gc("submitActionEvent",(function(){return m.Dc(e),m.ic().submit()})),m.jc(39,"titlecase"),m.jc(40,"upperFirst"),m.Rb(),m.Rb(),m.Rb(),m.Rb(),m.Rb()}if(2&e){const e=m.Ac(2),t=m.ic();m.yb(1),m.pc("formGroup",t.userForm),m.yb(6),m.ac(m.kc(6,15,t.action))(m.kc(7,17,t.resource)),m.Xb(5),m.yb(3),m.pc("ngClass",m.uc(23,Pe,t.mode!==t.userFormMode.editing)),m.yb(4),m.pc("ngIf",t.userForm.showError("username",e,"required")),m.yb(1),m.pc("ngIf",t.userForm.showError("username",e,"notUnique")),m.yb(1),m.pc("ngIf",!t.authStorageService.isSSO()),m.yb(1),m.pc("ngIf",!t.authStorageService.isSSO()),m.yb(1),m.pc("ngIf",!t.authStorageService.isSSO()),m.yb(11),m.pc("ngIf",t.userForm.showError("email",e,"email")),m.yb(5),m.pc("ngIf",t.allRoles),m.yb(1),m.pc("ngIf",!t.isCurrentUser()),m.yb(1),m.pc("ngIf",!t.isCurrentUser()&&!t.authStorageService.isSSO()),m.yb(2),m.pc("form",t.userForm)("submitText",m.kc(39,19,t.action)+" "+m.kc(40,21,t.resource))}}function He(e,t){1&e&&(m.Sb(0,"p"),m.Sb(1,"strong"),m.Wb(2,69),m.Rb(),m.Rb(),m.Nb(3,"br"),m.Sb(4,"p"),m.Wb(5,70),m.Rb(),m.Qb(6),m.Wb(7,71),m.Pb())}function We(e,t){if(1&e&&m.Nb(0,"cd-date-time-picker",72),2&e){const e=m.ic();m.pc("control",e.userForm.get("pwdExpirationDate"))("hasTime",!1)}}let Ve=(()=>{class e extends v.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=Q.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],[S.a.unique(this.userService.validateUserName,this.userService)]],name:[""],password:["",[],[S.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:["",[S.a.email]],roles:[[]],enabled:[!0,[r.A.required]],pwdUpdateRequired:[!0]},{validators:[S.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(y.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(y.a.info,"You were automatically logged out because your roles have been changed.")}):(this.notificationService.show(y.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.Mb(le.a),m.Mb(X.a),m.Mb(s.a),m.Mb(s.e),m.Mb(ee.a),m.Mb(g),m.Mb(de.a),m.Mb(M.a),m.Mb(c.b),m.Mb(be.a),m.Mb(pe.a),m.Mb(ue.a))},e.\u0275cmp=m.Gb({type:e,selectors:[["cd-user-form"]],viewQuery:function(e,t){var n;1&e&&m.Jc(Me,!0),2&e&&m.zc(n=m.hc())&&(t.removeSelfUserReadUpdatePermissionTpl=n.first)},features:[m.vb],decls:5,vars:1,consts:function(){return[["class","cd-col-form",4,"cdFormLoading"],["removeSelfUserReadUpdatePermissionTpl",""],["popContent",""],[1,"cd-col-form"],["name","userForm","novalidate","",3,"formGroup"],["formDir","ngForm"],[1,"card"],[1,"card-header"],"" + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + "",[1,"card-body"],[1,"form-group","row"],["for","username",1,"cd-col-form-label",3,"ngClass"],"Username",[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"],"Full name",["type","text","placeholder","Full name...","id","name","name","name","formControlName","name",1,"form-control"],["for","email",1,"cd-col-form-label"],"Email",["type","email","placeholder","Email...","id","email","name","email","formControlName","email",1,"form-control"],[1,"cd-col-form-label"],"Roles",["class","no-border full-height",4,"ngIf"],[1,"card-footer"],["wrappingClass","text-right",3,"form","submitText","submitActionEvent"],[1,"invalid-feedback"],"This field is required.","The username already exists.",["for","password",1,"cd-col-form-label"],"Password",["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"],"This field is required.",["for","confirmpassword",1,"cd-col-form-label"],"Confirm password",["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"],"Password confirmation doesn't match the password.","This field is required.",["for","pwdExpirationDate",1,"cd-col-form-label",3,"ngClass"],"Password expiration date",["class","text-pre-wrap",4,"ngIf"],["id","pwdExpirationDate","name","pwdExpirationDate","formControlName","pwdExpirationDate","triggers","manual",1,"form-control",3,"ngbPopover","click","keypress",6,"placeholder"],["p","ngbPopover"],["placeholder","Password expiration date..."],["type","button",1,"btn","btn-light",3,"click"],[1,"text-pre-wrap"],["routerLink","/mgr-modules/edit/dashboard",1,"alert-link"],"This field is required.","Invalid email.",[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"],"Enabled",["type","checkbox","id","pwdUpdateRequired","name","pwdUpdateRequired","formControlName","pwdUpdateRequired",1,"custom-control-input"],["for","pwdUpdateRequired",1,"custom-control-label"],"User must change password at next logon","You are about to remove \"user read / update\" permissions from your own user.","If you continue, you will no longer be able to add or remove roles from any user.","Are you sure you want to continue?",[3,"control","hasTime"]]},template:function(e,t){1&e&&(m.Mc(0,$e,41,25,"div",0),m.Mc(1,He,8,0,"ng-template",null,1,m.Nc),m.Mc(3,We,1,2,"ng-template",null,2,m.Nc)),2&e&&m.pc("cdFormLoading",t.loading)},directives:[D.a,r.C,r.r,r.k,T.a,C.a,i.p,O.a,r.d,L.a,r.q,r.i,R.a,i.r,A.a,ye.a,ve.a,o.w,s.h,we.a,r.b,Se.a],pipes:[i.A,I.a],styles:[""]}),e})();var Be=n("a0VL");const Ue=["userRolesTpl"];function Ge(e,t){if(1&e&&(m.Sb(0,"span"),m.Oc(1),m.Rb()),2&e){const e=t.$implicit,n=t.last;m.yb(1),m.Rc(" ",e,"",n?"":", "," ")}}function qe(e,t){1&e&&m.Mc(0,Ge,2,2,"span",3),2&e&&m.pc("ngForOf",t.value)}let Je=(()=>{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:Q.a.add,routerLink:()=>this.urlBuilder.getCreate(),name:this.actionLabels.CREATE},{permission:"update",icon:Q.a.edit,routerLink:()=>this.selection.first()&&this.urlBuilder.getEdit(this.selection.first().username),name:this.actionLabels.EDIT},{permission:"delete",icon:Q.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:J.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(y.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(G.a,{itemDescription:"User",itemNames:[t],submitAction:()=>this.deleteUser(t)}):this.notificationService.show(y.a.error,"Failed to delete user '" + t + "'","You are currently logged in as '" + t + "'.")}}return e.\u0275fac=function(t){return new(t||e)(m.Mb(de.a),m.Mb(Z.a),m.Mb(ee.a),m.Mb(M.a),m.Mb(X.a),m.Mb(te.a),m.Mb(Be.a),m.Mb(c.b))},e.\u0275cmp=m.Gb({type:e,selectors:[["cd-user-list"]],viewQuery:function(e,t){var n;1&e&&m.Jc(Ue,!0),2&e&&m.zc(n=m.hc())&&(t.userRolesTpl=n.first)},features:[m.xb([{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.Nb(0,"cd-user-tabs"),m.Sb(1,"cd-table",0),m.gc("fetchData",(function(){return t.getUsers()}))("updateSelection",(function(e){return t.updateSelection(e)})),m.Nb(2,"cd-table-actions",1),m.Rb(),m.Mc(3,qe,1,1,"ng-template",null,2,m.Nc)),2&e&&(m.yb(1),m.pc("data",t.users)("columns",t.columns),m.yb(1),m.pc("permission",t.permission)("selection",t.selection)("tableActions",t.tableActions))},directives:[ne,E.a,ie.a,i.q],styles:[""]}),e})(),Qe=(()=>{class e{}return e.\u0275mod=m.Kb({type:e}),e.\u0275inj=m.Jb({factory:function(t){return new(t||e)},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:Je},{path:c.e.CREATE,component:Ve,data:{breadcrumbs:c.a.CREATE}},{path:c.e.EDIT+"/:username",component:Ve,data:{breadcrumbs:c.a.EDIT}}]},{path:"roles",data:{breadcrumbs:"Roles"},children:[{path:"",component:oe},{path:c.e.CREATE,component:B,data:{breadcrumbs:c.a.CREATE}},{path:c.e.EDIT+"/:name",component:B,data:{breadcrumbs:c.a.EDIT}}]}];let Ze=(()=>{class e{}return e.\u0275mod=m.Kb({type:e}),e.\u0275inj=m.Jb({factory:function(t){return new(t||e)},imports:[[Qe,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]",y="[object Error]",v="[object Function]",w="[object GeneratorFunction]",S="[object Map]",M="[object Number]",k="[object Object]",x="[object Promise]",D="[object RegExp]",T="[object Set]",C="[object String]",O="[object Symbol]",L="[object WeakMap]",R="[object ArrayBuffer]",E="[object DataView]",A="[object Float32Array]",I="[object Float64Array]",P="[object Int8Array]",N="[object Int16Array]",j="[object Int32Array]",F="[object Uint8Array]",Y="[object Uint8ClampedArray]",z="[object Uint16Array]",$="[object Uint32Array]",H=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,B=/&(?:amp|lt|gt|quot|#39);/g,U=/[&<>"']/g,G=RegExp(B.source),q=RegExp(U.source),J=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),ie=/^\s+|\s+$/g,re=/^\s+/,se=/\s+$/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,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,ye=/($^)/,ve=/['\n\r\u2028\u2029\\]/g,we="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="a-z\\xdf-\\xf6\\xf8-\\xff",Me="A-Z\\xc0-\\xd6\\xd8-\\xde",ke="\\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",xe="["+ke+"]",De="["+we+"]",Te="\\d+",Ce="["+Se+"]",Oe="[^\\ud800-\\udfff"+ke+Te+"\\u2700-\\u27bf"+Se+Me+"]",Le="\\ud83c[\\udffb-\\udfff]",Re="[^\\ud800-\\udfff]",Ee="(?:\\ud83c[\\udde6-\\uddff]){2}",Ae="[\\ud800-\\udbff][\\udc00-\\udfff]",Ie="["+Me+"]",Pe="(?:"+Ce+"|"+Oe+")",Ne="(?:"+Ie+"|"+Oe+")",je="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Fe="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ye="(?:"+De+"|"+Le+")?",ze="[\\ufe0e\\ufe0f]?",$e=ze+Ye+"(?:\\u200d(?:"+[Re,Ee,Ae].join("|")+")"+ze+Ye+")*",He="(?:"+["[\\u2700-\\u27bf]",Ee,Ae].join("|")+")"+$e,We="(?:"+[Re+De+"?",De,Ee,Ae,"[\\ud800-\\udfff]"].join("|")+")",Ve=RegExp("['\u2019]","g"),Be=RegExp(De,"g"),Ue=RegExp(Le+"(?="+Le+")|"+We+$e,"g"),Ge=RegExp([Ie+"?"+Ce+"+"+je+"(?="+[xe,Ie,"$"].join("|")+")",Ne+"+"+Fe+"(?="+[xe,Ie+Pe,"$"].join("|")+")",Ie+"?"+Pe+"+"+je,Ie+"+"+Fe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Te,He].join("|"),"g"),qe=RegExp("[\\u200d\\ud800-\\udfff"+we+"\\ufe0e\\ufe0f]"),Je=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Qe=["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,Ze={};Ze[A]=Ze[I]=Ze[P]=Ze[N]=Ze[j]=Ze[F]=Ze[Y]=Ze[z]=Ze[$]=!0,Ze[m]=Ze[b]=Ze[R]=Ze[g]=Ze[E]=Ze[_]=Ze[y]=Ze[v]=Ze[S]=Ze[M]=Ze[k]=Ze[D]=Ze[T]=Ze[C]=Ze[L]=!1;var Xe={};Xe[m]=Xe[b]=Xe[R]=Xe[E]=Xe[g]=Xe[_]=Xe[A]=Xe[I]=Xe[P]=Xe[N]=Xe[j]=Xe[S]=Xe[M]=Xe[k]=Xe[D]=Xe[T]=Xe[C]=Xe[O]=Xe[F]=Xe[Y]=Xe[z]=Xe[$]=!0,Xe[y]=Xe[v]=Xe[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 yt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function vt(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 St(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 Mt(e,t){return!(null==e||!e.length)&&At(e,t,0)>-1}function kt(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 xt(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 Dt(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}function Tt(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=jt("length");function Rt(e,t,n){var i;return n(e,(function(e,n,r){if(t(e,n,r))return i=n,!1})),i}function Et(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 At(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):Et(e,Pt,n)}function It(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 Nt(e,t){var n=null==e?0:e.length;return n?zt(e,t)/n:h}function jt(e){return function(t){return null==t?r:t[e]}}function Ft(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 zt(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 $t(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Ht(e){return function(t){return e(t)}}function Wt(e,t){return xt(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&&At(t,e[n],0)>-1;);return n}function Ut(e,t){for(var n=e.length;n--&&At(t,e[n],0)>-1;);return n}function Gt(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}var qt=Ft({"\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=Ft({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Qt(e){return"\\"+et[e]}function Kt(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 Xt(e,t){return function(n){return e(t(n))}}function en(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 tn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function rn(e){return Kt(e)?function(e){for(var t=Ue.lastIndex=0;Ue.test(e);)++t;return t}(e):Lt(e)}function sn(e){return Kt(e)?function(e){return e.match(Ue)||[]}(e):function(e){return e.split("")}(e)}var on=Ft({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),an=function e(t){var n,i=(t=null==t?st:an.defaults(st.Object(),t,an.pick(st,Qe))).Array,we=t.Date,Se=t.Error,Me=t.Function,ke=t.Math,xe=t.Object,De=t.RegExp,Te=t.String,Ce=t.TypeError,Oe=i.prototype,Le=xe.prototype,Re=t["__core-js_shared__"],Ee=Me.prototype.toString,Ae=Le.hasOwnProperty,Ie=0,Pe=(n=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ne=Le.toString,je=Ee.call(xe),Fe=st._,Ye=De("^"+Ee.call(Ae).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ze=ct?t.Buffer:r,$e=t.Symbol,He=t.Uint8Array,We=ze?ze.allocUnsafe:r,Ue=Xt(xe.getPrototypeOf,xe),qe=xe.create,et=Le.propertyIsEnumerable,it=Oe.splice,rt=$e?$e.isConcatSpreadable:r,ot=$e?$e.iterator:r,at=$e?$e.toStringTag:r,lt=function(){try{var e=as(xe,"defineProperty");return e({},"",{}),e}catch(t){}}(),ut=t.clearTimeout!==st.clearTimeout&&t.clearTimeout,Lt=we&&we.now!==st.Date.now&&we.now,Ft=t.setTimeout!==st.setTimeout&&t.setTimeout,cn=ke.ceil,ln=ke.floor,un=xe.getOwnPropertySymbols,dn=ze?ze.isBuffer:r,hn=t.isFinite,fn=Oe.join,pn=Xt(xe.keys,xe),mn=ke.max,bn=ke.min,gn=we.now,_n=t.parseInt,yn=ke.random,vn=Oe.reverse,wn=as(t,"DataView"),Sn=as(t,"Map"),Mn=as(t,"Promise"),kn=as(t,"Set"),xn=as(t,"WeakMap"),Dn=as(xe,"create"),Tn=xn&&new xn,Cn={},On=Ns(wn),Ln=Ns(Sn),Rn=Ns(Mn),En=Ns(kn),An=Ns(xn),In=$e?$e.prototype:r,Pn=In?In.valueOf:r,Nn=In?In.toString:r;function jn(e){if(ea(e)&&!Wo(e)&&!(e instanceof $n)){if(e instanceof zn)return e;if(Ae.call(e,"__wrapped__"))return js(e)}return new zn(e)}var Fn=function(){function e(){}return function(t){if(!Xo(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function Yn(){}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 Wn(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 Wn(e);this.size=t.size}function Gn(e,t){var n=Wo(e),i=!n&&Ho(e),r=!n&&!i&&Go(e),s=!n&&!i&&!r&&ca(e),o=n||i||r||s,a=o?$t(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)||ps(l,c))||a.push(l);return a}function qn(e){var t=e.length;return t?e[Vi(0,t-1)]:r}function Jn(e,t){return Rs(xr(e),ri(t,0,e.length))}function Qn(e){return Rs(xr(e))}function Kn(e,t,n){(n!==r&&!Yo(e[t],n)||n===r&&!(t in e))&&ni(e,t,n)}function Zn(e,t,n){var i=e[t];Ae.call(e,t)&&Yo(i,n)&&(n!==r||t in e)||ni(e,t,n)}function Xn(e,t){for(var n=e.length;n--;)if(Yo(e[n][0],t))return n;return-1}function ei(e,t,n,i){return li(e,(function(e,r,s){t(i,e,n(e),s)})),i}function ti(e,t){return e&&Dr(t,La(t),e)}function ni(e,t,n){"__proto__"==t&&lt?lt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ii(e,t){for(var n=-1,s=t.length,o=i(s),a=null==e;++n<s;)o[n]=a?r:xa(e,t[n]);return o}function ri(e,t,n){return e==e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function si(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(!Xo(e))return e;var d=Wo(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 xr(e,a)}else{var h=us(e),f=h==v||h==w;if(Go(e))return yr(e,c);if(h==k||h==m||f&&!s){if(a=l||f?{}:hs(e),!c)return l?function(e,t){return Dr(e,ls(e),t)}(e,function(e,t){return e&&Dr(t,Ra(t),e)}(a,e)):function(e,t){return Dr(e,cs(e),t)}(e,ti(a,e))}else{if(!Xe[h])return s?e:{};a=function(e,t,n){var i=e.constructor;switch(t){case R:return vr(e);case g:case _:return new i(+e);case E:return function(e,t){var n=t?vr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case A:case I:case P:case N:case j:case F:case Y:case z:case $:return wr(e,n);case S:return new i;case M:case C:return new i(e);case D:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new i;case O:return Pn?xe(Pn.call(e)):{}}}(e,h,c)}}o||(o=new Un);var p=o.get(e);if(p)return p;o.set(e,a),sa(e)?e.forEach((function(i){a.add(si(i,t,n,i,e,o))})):ta(e)&&e.forEach((function(i,r){a.set(r,si(i,t,n,r,e,o))}));var b=d?r:(u?l?es:Xr:l?Ra:La)(e);return yt(b||e,(function(i,r){b&&(i=e[r=i]),Zn(a,r,si(i,t,n,r,e,o))})),a}function oi(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 ai(e,t,n){if("function"!=typeof e)throw new Ce(s);return Ts((function(){e.apply(r,n)}),t)}function ci(e,t,n,i){var r=-1,s=Mt,o=!0,a=e.length,c=[],l=t.length;if(!a)return c;n&&(t=xt(t,Ht(n))),i?(s=kt,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:J,evaluate:Q,interpolate:K,variable:"",imports:{_:jn}},(jn.prototype=Yn.prototype).constructor=jn,(zn.prototype=Fn(Yn.prototype)).constructor=zn,($n.prototype=Fn(Yn.prototype)).constructor=$n,Hn.prototype.clear=function(){this.__data__=Dn?Dn(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(Dn){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 Dn?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]=Dn&&t===r?o:t,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=Xn(t,e);return!(n<0||(n==t.length-1?t.pop():it.call(t,n,1),--this.size,0))},Wn.prototype.get=function(e){var t=this.__data__,n=Xn(t,e);return n<0?r:t[n][1]},Wn.prototype.has=function(e){return Xn(this.__data__,e)>-1},Wn.prototype.set=function(e,t){var n=this.__data__,i=Xn(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||Wn),string:new Hn}},Vn.prototype.delete=function(e){var t=ss(this,e).delete(e);return this.size-=t?1:0,t},Vn.prototype.get=function(e){return ss(this,e).get(e)},Vn.prototype.has=function(e){return ss(this,e).has(e)},Vn.prototype.set=function(e,t){var n=ss(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 Wn,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 Wn){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 li=Or(gi),ui=Or(_i,!0);function di(e,t){var n=!0;return li(e,(function(e,i,r){return n=!!t(e,i,r)})),n}function hi(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&&!aa(a):n(a,c)))var c=a,l=o}return l}function fi(e,t){var n=[];return li(e,(function(e,i,r){t(e,i,r)&&n.push(e)})),n}function pi(e,t,n,i,r){var s=-1,o=e.length;for(n||(n=fs),r||(r=[]);++s<o;){var a=e[s];t>0&&n(a)?t>1?pi(a,t-1,n,i,r):Dt(r,a):i||(r[r.length]=a)}return r}var mi=Lr(),bi=Lr(!0);function gi(e,t){return e&&mi(e,t,La)}function _i(e,t){return e&&bi(e,t,La)}function yi(e,t){return St(t,(function(t){return Qo(e[t])}))}function vi(e,t){for(var n=0,i=(t=mr(t,e)).length;null!=e&&n<i;)e=e[Ps(t[n++])];return n&&n==i?e:r}function wi(e,t,n){var i=t(e);return Wo(e)?i:Dt(i,n(e))}function Si(e){return null==e?e===r?"[object Undefined]":"[object Null]":at&&at in xe(e)?function(e){var t=Ae.call(e,at),n=e[at];try{e[at]=r;var i=!0}catch(o){}var s=Ne.call(e);return i&&(t?e[at]=n:delete e[at]),s}(e):function(e){return Ne.call(e)}(e)}function Mi(e,t){return e>t}function ki(e,t){return null!=e&&Ae.call(e,t)}function xi(e,t){return null!=e&&t in xe(e)}function Di(e,t,n){for(var s=n?kt:Mt,o=e[0].length,a=e.length,c=a,l=i(a),u=1/0,d=[];c--;){var h=e[c];c&&t&&(h=xt(h,Ht(t))),u=bn(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 Ti(e,t,n){var i=null==(e=Ms(e,t=mr(t,e)))?e:e[Ps(qs(t))];return null==i?r:gt(i,e,n)}function Ci(e){return ea(e)&&Si(e)==m}function Oi(e,t,n,i,s){return e===t||(null==e||null==t||!ea(e)&&!ea(t)?e!=e&&t!=t:function(e,t,n,i,s,o){var a=Wo(e),c=Wo(t),l=a?b:us(e),u=c?b:us(t),d=(l=l==m?k:l)==k,h=(u=u==m?k:u)==k,f=l==u;if(f&&Go(e)){if(!Go(t))return!1;a=!0,d=!1}if(f&&!d)return o||(o=new Un),a||ca(e)?Kr(e,t,n,i,s,o):function(e,t,n,i,r,s,o){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R:return!(e.byteLength!=t.byteLength||!s(new He(e),new He(t)));case g:case _:case M:return Yo(+e,+t);case y:return e.name==t.name&&e.message==t.message;case D:case C:return e==t+"";case S:var a=Zt;case T:if(a||(a=tn),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=Kr(a(e),a(t),i,r,s,o);return o.delete(e),l;case O:if(Pn)return Pn.call(e)==Pn.call(t)}return!1}(e,t,l,n,i,s,o);if(!(1&n)){var p=d&&Ae.call(e,"__wrapped__"),v=h&&Ae.call(t,"__wrapped__");if(p||v){var w=p?e.value():e,x=v?t.value():t;return o||(o=new Un),s(w,x,n,i,o)}}return!!f&&(o||(o=new Un),function(e,t,n,i,s,o){var a=1&n,c=Xr(e),l=c.length;if(l!=Xr(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 y=e.constructor,v=t.constructor;y==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,i,s,o))}(e,t,n,i,Oi,s))}function Li(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?Oi(d,u,3,i,h):f))return!1}}return!0}function Ri(e){return!(!Xo(e)||(t=e,Pe&&Pe in t))&&(Qo(e)?Ye:me).test(Ns(e));var t}function Ei(e){return"function"==typeof e?e:null==e?nc:"object"==typeof e?Wo(e)?ji(e[0],e[1]):Ni(e):dc(e)}function Ai(e){if(!ys(e))return pn(e);var t=[];for(var n in xe(e))Ae.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ii(e,t){return e<t}function Pi(e,t){var n=-1,r=Bo(e)?i(e.length):[];return li(e,(function(e,i,s){r[++n]=t(e,i,s)})),r}function Ni(e){var t=os(e);return 1==t.length&&t[0][2]?ws(t[0][0],t[0][1]):function(n){return n===e||Li(n,e,t)}}function ji(e,t){return bs(e)&&vs(t)?ws(Ps(e),t):function(n){var i=xa(n,e);return i===r&&i===t?Da(n,e):Oi(t,i,3)}}function Fi(e,t,n,i,s){e!==t&&mi(t,(function(o,a){if(s||(s=new Un),Xo(o))!function(e,t,n,i,s,o,a){var c=xs(e,n),l=xs(t,n),u=a.get(l);if(u)Kn(e,n,u);else{var d=o?o(c,l,n+"",e,t,a):r,h=d===r;if(h){var f=Wo(l),p=!f&&Go(l),m=!f&&!p&&ca(l);d=l,f||p||m?Wo(c)?d=c:Uo(c)?d=xr(c):p?(h=!1,d=yr(l,!0)):m?(h=!1,d=wr(l,!0)):d=[]:ia(l)||Ho(l)?(d=c,Ho(c)?d=ba(c):Xo(c)&&!Qo(c)||(d=hs(l))):h=!1}h&&(a.set(l,d),s(d,l,i,o,a),a.delete(l)),Kn(e,n,d)}}(e,t,a,n,Fi,i,s);else{var c=i?i(xs(e,a),o,a+"",e,t,s):r;c===r&&(c=o),Kn(e,a,c)}}),Ra)}function Yi(e,t){var n=e.length;if(n)return ps(t+=t<0?n:0,n)?e[t]:r}function zi(e,t,n){t=t.length?xt(t,(function(e){return Wo(e)?function(t){return vi(t,1===e.length?e[0]:e)}:e})):[nc];var i=-1;return t=xt(t,Ht(rs())),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}(Pi(e,(function(e,n,r){return{criteria:xt(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=vi(e,o);n(a,o)&&Ji(s,mr(o,e),a)}return s}function Hi(e,t,n,i){var r=i?It:At,s=-1,o=t.length,a=e;for(e===t&&(t=xr(t)),n&&(a=xt(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&&it.call(a,c,1),it.call(e,c,1);return e}function Wi(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;ps(r)?it.call(e,r,1):ar(e,r)}}return e}function Vi(e,t){return e+ln(yn()*(t-e+1))}function Bi(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=ln(t/2))&&(e+=e)}while(t);return n}function Ui(e,t){return Cs(Ss(e,t,nc),e+"")}function Gi(e){return qn(Ya(e))}function qi(e,t){var n=Ya(e);return Rs(n,ri(t,0,n.length))}function Ji(e,t,n,i){if(!Xo(e))return e;for(var s=-1,o=(t=mr(t,e)).length,a=o-1,c=e;null!=c&&++s<o;){var l=Ps(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=Xo(d)?d:ps(t[s+1])?[]:{})}Zn(c,l,u),c=c[l]}return e}var Qi=Tn?function(e,t){return Tn.set(e,t),e}:nc,Ki=lt?function(e,t){return lt(e,"toString",{configurable:!0,enumerable:!1,value:Xa(t),writable:!0})}:nc;function Zi(e){return Rs(Ya(e))}function Xi(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 er(e,t){var n;return li(e,(function(e,i,r){return!(n=t(e,i,r))})),!!n}function tr(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&&!aa(o)&&(n?o<=t:o<t)?i=s+1:r=s}return r}return nr(e,t,nc,n)}function nr(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=aa(t),u=t===r;s<o;){var d=ln((s+o)/2),h=n(e[d]),f=h!==r,p=null===h,m=h==h,b=aa(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 bn(o,4294967294)}function ir(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||!Yo(a,c)){var c=a;s[r++]=0===o?0:o}}return s}function rr(e){return"number"==typeof e?e:aa(e)?h:+e}function sr(e){if("string"==typeof e)return e;if(Wo(e))return xt(e,sr)+"";if(aa(e))return Nn?Nn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function or(e,t,n){var i=-1,r=Mt,s=e.length,o=!0,a=[],c=a;if(n)o=!1,r=kt;else if(s>=200){var l=t?null:Br(e);if(l)return tn(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 ar(e,t){return null==(e=Ms(e,t=mr(t,e)))||delete e[Ps(qs(t))]}function cr(e,t,n,i){return Ji(e,t,n(vi(e,t)),i)}function lr(e,t,n,i){for(var r=e.length,s=i?r:-1;(i?s--:++s<r)&&t(e[s],s,e););return n?Xi(e,i?0:s,i?s+1:r):Xi(e,i?s+1:0,i?r:s)}function ur(e,t){var n=e;return n instanceof $n&&(n=n.value()),Tt(t,(function(e,t){return t.func.apply(t.thisArg,Dt([e],t.args))}),n)}function dr(e,t,n){var r=e.length;if(r<2)return r?or(e[0]):[];for(var s=-1,o=i(r);++s<r;)for(var a=e[s],c=-1;++c<r;)c!=s&&(o[s]=ci(o[s]||a,e[c],t,n));return or(pi(o,1),t,n)}function hr(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 fr(e){return Uo(e)?e:[]}function pr(e){return"function"==typeof e?e:nc}function mr(e,t){return Wo(e)?e:bs(e,t)?[e]:Is(ga(e))}var br=Ui;function gr(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:Xi(e,t,n)}var _r=ut||function(e){return st.clearTimeout(e)};function yr(e,t){if(t)return e.slice();var n=e.length,i=We?We(n):new e.constructor(n);return e.copy(i),i}function vr(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function wr(e,t){var n=t?vr(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=aa(e),a=t!==r,c=null===t,l=t==t,u=aa(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 Mr(e,t,n,r){for(var s=-1,o=e.length,a=n.length,c=-1,l=t.length,u=mn(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=mn(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 xr(e,t){var n=-1,r=e.length;for(t||(t=i(r));++n<r;)t[n]=e[n];return t}function Dr(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?ni(n,c,l):Zn(n,c,l)}return n}function Tr(e,t){return function(n,i){var r=Wo(n)?_t:ei,s=t?t():{};return r(n,e,rs(i,2),s)}}function Cr(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&&ms(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 Or(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 Lr(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 Rr(e){return function(t){var n=Kt(t=ga(t))?sn(t):r,i=n?n[0]:t.charAt(0),s=n?gr(n,1).join(""):t.slice(1);return i[e]()+s}}function Er(e){return function(t){return Tt(Qa(Ha(t).replace(Ve,"")),e,"")}}function Ar(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=Fn(e.prototype),i=e.apply(n,t);return Xo(i)?i:n}}function Ir(e){return function(t,n,i){var s=xe(t);if(!Bo(t)){var o=rs(n,3);t=La(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 Pr(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 Ce(s);if(o&&!c&&"wrapper"==ns(a))var c=new zn([],!0)}for(i=c?i:n;++i<n;){var l=ns(a=t[i]),u="wrapper"==l?ts(a):r;c=u&&gs(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[ns(u[0])].apply(c,u[3]):1==a.length&&gs(a)?c[l]():c.thru(a)}return function(){var e=arguments,i=e[0];if(c&&1==e.length&&Wo(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 Nr(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:Ar(e);return function r(){for(var l=arguments.length,y=i(l),v=l;v--;)y[v]=arguments[v];if(b)var w=is(r),S=Gt(y,w);if(s&&(y=Mr(y,s,o,b)),a&&(y=kr(y,a,c,b)),l-=S,b&&l<h){var M=en(y,w);return Wr(e,t,Nr,r.placeholder,n,y,M,u,d,h-l)}var k=p?n:this,x=m?k[e]:e;return l=y.length,u?y=ks(y,u):g&&l>1&&y.reverse(),f&&d<l&&(y.length=d),this&&this!==st&&this instanceof r&&(x=_||Ar(x)),x.apply(k,y)}}function jr(e,t){return function(n,i){return function(e,t,n,i){return gi(e,(function(e,r,s){t(i,n(e),r,s)})),i}(n,e,t(i),{})}}function Fr(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=sr(n),i=sr(i)):(n=rr(n),i=rr(i)),s=e(n,i)}return s}}function Yr(e){return Zr((function(t){return t=xt(t,Ht(rs())),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?" ":sr(t)).length;if(n<2)return n?Bi(t,e):t;var i=Bi(t,cn(e/rn(t)));return Kt(t)?gr(sn(i),0,e).join(""):i.slice(0,e)}function $r(e){return function(t,n,s){return s&&"number"!=typeof s&&ms(t,n,s)&&(n=s=r),t=ha(t),n===r?(n=t,t=0):n=ha(n),function(e,t,n,r){for(var s=-1,o=mn(cn((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:ha(s),e)}}function Hr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ma(t),n=ma(n)),e(t,n)}}function Wr(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 gs(e)&&Ds(p,f),p.placeholder=i,Os(p,e,t)}function Vr(e){var t=ke[e];return function(e,n){if(e=ma(e),(n=null==n?0:bn(fa(n),292))&&hn(e)){var i=(ga(e)+"e").split("e");return+((i=(ga(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var Br=kn&&1/tn(new kn([,-0]))[1]==u?function(e){return new kn(e)}:ac;function Ur(e){return function(t){var n=us(t);return n==S?Zt(t):n==T?nn(t):function(e,t){return xt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Gr(e,t,n,o,u,d,h,f){var p=2&t;if(!p&&"function"!=typeof e)throw new Ce(s);var m=o?o.length:0;if(m||(t&=-97,o=u=r),h=h===r?h:mn(fa(h),0),f=f===r?f:fa(f),m-=u?u.length:0,64&t){var b=o,g=u;o=u=r}var _=p?r:ts(e),y=[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?Mr(o,s,t[4]):s,e[4]=o?en(e[3],a):t[4]}(s=t[5])&&(e[5]=(o=e[5])?kr(o,s,t[6]):s,e[6]=o?en(e[5],a):t[6]),(s=t[7])&&(e[7]=s),i&l&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=r}(y,_),e=y[0],t=y[1],n=y[2],o=y[3],u=y[4],!(f=y[9]=y[9]===r?p?0:e.length:mn(y[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)v=8==t||16==t?function(e,t,n){var s=Ar(e);return function o(){for(var a=arguments.length,c=i(a),l=a,u=is(o);l--;)c[l]=arguments[l];var d=a<3&&c[0]!==u&&c[a-1]!==u?[]:en(c,u);return(a-=d.length)<n?Wr(e,t,Nr,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?Nr.apply(r,y):function(e,t,n,r){var s=1&t,o=Ar(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 v=function(e,t,n){var i=1&t,r=Ar(e);return function t(){return(this&&this!==st&&this instanceof t?r:e).apply(i?n:this,arguments)}}(e,t,n);return Os((_?Qi:Ds)(v,y),e,t)}function qr(e,t,n,i){return e===r||Yo(e,Le[n])&&!Ae.call(i,n)?t:e}function Jr(e,t,n,i,s,o){return Xo(e)&&Xo(t)&&(o.set(t,e),Fi(e,t,r,Jr,o),o.delete(t)),e}function Qr(e){return ia(e)?r:e}function Kr(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 Cs(Ss(e,r,Ws),e+"")}function Xr(e){return wi(e,La,cs)}function es(e){return wi(e,Ra,ls)}var ts=Tn?function(e){return Tn.get(e)}:ac;function ns(e){for(var t=e.name+"",n=Cn[t],i=Ae.call(Cn,t)?n.length:0;i--;){var r=n[i],s=r.func;if(null==s||s==e)return r.name}return t}function is(e){return(Ae.call(jn,"placeholder")?jn:e).placeholder}function rs(){var e=jn.iteratee||ic;return e=e===ic?Ei:e,arguments.length?e(arguments[0],arguments[1]):e}function ss(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 os(e){for(var t=La(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,vs(r)]}return t}function as(e,t){var n=function(e,t){return null==e?r:e[t]}(e,t);return Ri(n)?n:r}var cs=un?function(e){return null==e?[]:(e=xe(e),St(un(e),(function(t){return et.call(e,t)})))}:pc,ls=un?function(e){for(var t=[];e;)Dt(t,cs(e)),e=Ue(e);return t}:pc,us=Si;function ds(e,t,n){for(var i=-1,r=(t=mr(t,e)).length,s=!1;++i<r;){var o=Ps(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)&&ps(o,r)&&(Wo(e)||Ho(e))}function hs(e){return"function"!=typeof e.constructor||ys(e)?{}:Fn(Ue(e))}function fs(e){return Wo(e)||Ho(e)||!!(rt&&e&&e[rt])}function ps(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 ms(e,t,n){if(!Xo(n))return!1;var i=typeof t;return!!("number"==i?Bo(n)&&ps(t,n.length):"string"==i&&t in n)&&Yo(n[t],e)}function bs(e,t){if(Wo(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!aa(e))||X.test(e)||!Z.test(e)||null!=t&&e in xe(t)}function gs(e){var t=ns(e),n=jn[t];if("function"!=typeof n||!(t in $n.prototype))return!1;if(e===n)return!0;var i=ts(n);return!!i&&e===i[0]}(wn&&us(new wn(new ArrayBuffer(1)))!=E||Sn&&us(new Sn)!=S||Mn&&us(Mn.resolve())!=x||kn&&us(new kn)!=T||xn&&us(new xn)!=L)&&(us=function(e){var t=Si(e),n=t==k?e.constructor:r,i=n?Ns(n):"";if(i)switch(i){case On:return E;case Ln:return S;case Rn:return x;case En:return T;case An:return L}return t});var _s=Re?Qo:mc;function ys(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Le)}function vs(e){return e==e&&!Xo(e)}function ws(e,t){return function(n){return null!=n&&n[e]===t&&(t!==r||e in xe(n))}}function Ss(e,t,n){return t=mn(t===r?e.length-1:t,0),function(){for(var r=arguments,s=-1,o=mn(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 Ms(e,t){return t.length<2?e:vi(e,Xi(t,0,-1))}function ks(e,t){for(var n=e.length,i=bn(t.length,n),s=xr(e);i--;){var o=t[i];e[i]=ps(o,n)?s[o]:r}return e}function xs(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ds=Ls(Qi),Ts=Ft||function(e,t){return st.setTimeout(e,t)},Cs=Ls(Ki);function Os(e,t,n){var i=t+"";return Cs(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(oe,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return yt(p,(function(n){var i="_."+n[0];t&n[1]&&!Mt(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(ce):[]}(i),n)))}function Ls(e){var t=0,n=0;return function(){var i=gn(),s=16-(i-n);if(n=i,s>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Rs(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 Es,As,Is=(Es=Ao((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===As.size&&As.clear(),e})),As=Es.cache,Es);function Ps(e){if("string"==typeof e||aa(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ns(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__=xr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Fs=Ui((function(e,t){return Uo(e)?ci(e,pi(t,1,Uo,!0)):[]})),Ys=Ui((function(e,t){var n=qs(t);return Uo(n)&&(n=r),Uo(e)?ci(e,pi(t,1,Uo,!0),rs(n,2)):[]})),zs=Ui((function(e,t){var n=qs(t);return Uo(n)&&(n=r),Uo(e)?ci(e,pi(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:fa(n);return r<0&&(r=mn(i+r,0)),Et(e,rs(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=fa(n),s=n<0?mn(i+s,0):bn(s,i-1)),Et(e,rs(t,3),s,!0)}function Ws(e){return null!=e&&e.length?pi(e,1):[]}function Vs(e){return e&&e.length?e[0]:r}var Bs=Ui((function(e){var t=xt(e,fr);return t.length&&t[0]===e[0]?Di(t):[]})),Us=Ui((function(e){var t=qs(e),n=xt(e,fr);return t===qs(n)?t=r:n.pop(),n.length&&n[0]===e[0]?Di(n,rs(t,2)):[]})),Gs=Ui((function(e){var t=qs(e),n=xt(e,fr);return(t="function"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?Di(n,r,t):[]}));function qs(e){var t=null==e?0:e.length;return t?e[t-1]:r}var Js=Ui(Qs);function Qs(e,t){return e&&e.length&&t&&t.length?Hi(e,t):e}var Ks=Zr((function(e,t){var n=null==e?0:e.length,i=ii(e,t);return Wi(e,xt(t,(function(e){return ps(e,n)?+e:e})).sort(Sr)),i}));function Zs(e){return null==e?e:vn.call(e)}var Xs=Ui((function(e){return or(pi(e,1,Uo,!0))})),eo=Ui((function(e){var t=qs(e);return Uo(t)&&(t=r),or(pi(e,1,Uo,!0),rs(t,2))})),to=Ui((function(e){var t=qs(e);return t="function"==typeof t?t:r,or(pi(e,1,Uo,!0),r,t)}));function no(e){if(!e||!e.length)return[];var t=0;return e=St(e,(function(e){if(Uo(e))return t=mn(e.length,t),!0})),$t(t,(function(t){return xt(e,jt(t))}))}function io(e,t){if(!e||!e.length)return[];var n=no(e);return null==t?n:xt(n,(function(e){return gt(t,r,e)}))}var ro=Ui((function(e,t){return Uo(e)?ci(e,t):[]})),so=Ui((function(e){return dr(St(e,Uo))})),oo=Ui((function(e){var t=qs(e);return Uo(t)&&(t=r),dr(St(e,Uo),rs(t,2))})),ao=Ui((function(e){var t=qs(e);return t="function"==typeof t?t:r,dr(St(e,Uo),r,t)})),co=Ui(no),lo=Ui((function(e){var t=e.length,n=t>1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,io(e,n)}));function uo(e){var t=jn(e);return t.__chain__=!0,t}function ho(e,t){return t(e)}var fo=Zr((function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,s=function(t){return ii(t,e)};return!(t>1||this.__actions__.length)&&i instanceof $n&&ps(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:ho,args:[s],thisArg:r}),new zn(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(r),e}))):this.thru(s)})),po=Tr((function(e,t,n){Ae.call(e,n)?++e[n]:ni(e,n,1)})),mo=Ir($s),bo=Ir(Hs);function go(e,t){return(Wo(e)?yt:li)(e,rs(t,3))}function _o(e,t){return(Wo(e)?vt:ui)(e,rs(t,3))}var yo=Tr((function(e,t,n){Ae.call(e,n)?e[n].push(t):ni(e,n,[t])})),vo=Ui((function(e,t,n){var r=-1,s="function"==typeof t,o=Bo(e)?i(e.length):[];return li(e,(function(e){o[++r]=s?gt(t,e,n):Ti(e,t,n)})),o})),wo=Tr((function(e,t,n){ni(e,n,t)}));function So(e,t){return(Wo(e)?xt:Pi)(e,rs(t,3))}var Mo=Tr((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&&ms(e,t[0],t[1])?t=[]:n>2&&ms(t[0],t[1],t[2])&&(t=[t[0]]),zi(e,pi(t,1),[])})),xo=Lt||function(){return st.Date.now()};function Do(e,t,n){return t=n?r:t,Gr(e,l,r,r,r,r,t=e&&null==t?e.length:t)}function To(e,t){var n;if("function"!=typeof t)throw new Ce(s);return e=fa(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Co=Ui((function(e,t,n){var i=1;if(n.length){var r=en(n,is(Co));i|=c}return Gr(e,i,t,n,r)})),Oo=Ui((function(e,t,n){var i=3;if(n.length){var r=en(n,is(Oo));i|=c}return Gr(t,i,e,n,r)}));function Lo(e,t,n){var i,o,a,c,l,u,d=0,h=!1,f=!1,p=!0;if("function"!=typeof e)throw new Ce(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=Ts(_,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=xo();if(g(e))return y(e);l=Ts(_,function(e){var n=t-(e-u);return f?bn(n,a-(e-d)):n}(e))}function y(e){return l=r,p&&i?m(e):(i=o=r,c)}function v(){var e=xo(),n=g(e);if(i=arguments,o=this,u=e,n){if(l===r)return b(u);if(f)return _r(l),l=Ts(_,t),m(u)}return l===r&&(l=Ts(_,t)),c}return t=ma(t)||0,Xo(n)&&(h=!!n.leading,a=(f="maxWait"in n)?mn(ma(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),v.cancel=function(){l!==r&&_r(l),d=0,i=u=o=l=r},v.flush=function(){return l===r?c:y(xo())},v}var Ro=Ui((function(e,t){return ai(e,1,t)})),Eo=Ui((function(e,t,n){return ai(e,ma(t)||0,n)}));function Ao(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ce(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(Ao.Cache||Vn),n}function Io(e){if("function"!=typeof e)throw new Ce(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)}}Ao.Cache=Vn;var Po=br((function(e,t){var n=(t=1==t.length&&Wo(t[0])?xt(t[0],Ht(rs())):xt(pi(t,1),Ht(rs()))).length;return Ui((function(i){for(var r=-1,s=bn(i.length,n);++r<s;)i[r]=t[r].call(this,i[r]);return gt(e,this,i)}))})),No=Ui((function(e,t){var n=en(t,is(No));return Gr(e,c,r,t,n)})),jo=Ui((function(e,t){var n=en(t,is(jo));return Gr(e,64,r,t,n)})),Fo=Zr((function(e,t){return Gr(e,256,r,r,r,t)}));function Yo(e,t){return e===t||e!=e&&t!=t}var zo=Hr(Mi),$o=Hr((function(e,t){return e>=t})),Ho=Ci(function(){return arguments}())?Ci:function(e){return ea(e)&&Ae.call(e,"callee")&&!et.call(e,"callee")},Wo=i.isArray,Vo=dt?Ht(dt):function(e){return ea(e)&&Si(e)==R};function Bo(e){return null!=e&&Zo(e.length)&&!Qo(e)}function Uo(e){return ea(e)&&Bo(e)}var Go=dn||mc,qo=ht?Ht(ht):function(e){return ea(e)&&Si(e)==_};function Jo(e){if(!ea(e))return!1;var t=Si(e);return t==y||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ia(e)}function Qo(e){if(!Xo(e))return!1;var t=Si(e);return t==v||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ko(e){return"number"==typeof e&&e==fa(e)}function Zo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function Xo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ea(e){return null!=e&&"object"==typeof e}var ta=ft?Ht(ft):function(e){return ea(e)&&us(e)==S};function na(e){return"number"==typeof e||ea(e)&&Si(e)==M}function ia(e){if(!ea(e)||Si(e)!=k)return!1;var t=Ue(e);if(null===t)return!0;var n=Ae.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ee.call(n)==je}var ra=pt?Ht(pt):function(e){return ea(e)&&Si(e)==D},sa=mt?Ht(mt):function(e){return ea(e)&&us(e)==T};function oa(e){return"string"==typeof e||!Wo(e)&&ea(e)&&Si(e)==C}function aa(e){return"symbol"==typeof e||ea(e)&&Si(e)==O}var ca=bt?Ht(bt):function(e){return ea(e)&&Zo(e.length)&&!!Ze[Si(e)]},la=Hr(Ii),ua=Hr((function(e,t){return e<=t}));function da(e){if(!e)return[];if(Bo(e))return oa(e)?sn(e):xr(e);if(ot&&e[ot])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[ot]());var t=us(e);return(t==S?Zt:t==T?tn:Ya)(e)}function ha(e){return e?(e=ma(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fa(e){var t=ha(e),n=t%1;return t==t?n?t-n:t:0}function pa(e){return e?ri(fa(e),0,f):0}function ma(e){if("number"==typeof e)return e;if(aa(e))return h;if(Xo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Xo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ie,"");var n=pe.test(e);return n||be.test(e)?nt(e.slice(2),n?2:8):fe.test(e)?h:+e}function ba(e){return Dr(e,Ra(e))}function ga(e){return null==e?"":sr(e)}var _a=Cr((function(e,t){if(ys(t)||Bo(t))Dr(t,La(t),e);else for(var n in t)Ae.call(t,n)&&Zn(e,n,t[n])})),ya=Cr((function(e,t){Dr(t,Ra(t),e)})),va=Cr((function(e,t,n,i){Dr(t,Ra(t),e,i)})),wa=Cr((function(e,t,n,i){Dr(t,La(t),e,i)})),Sa=Zr(ii),Ma=Ui((function(e,t){e=xe(e);var n=-1,i=t.length,s=i>2?t[2]:r;for(s&&ms(t[0],t[1],s)&&(i=1);++n<i;)for(var o=t[n],a=Ra(o),c=-1,l=a.length;++c<l;){var u=a[c],d=e[u];(d===r||Yo(d,Le[u])&&!Ae.call(e,u))&&(e[u]=o[u])}return e})),ka=Ui((function(e){return e.push(r,Jr),gt(Aa,r,e)}));function xa(e,t,n){var i=null==e?r:vi(e,t);return i===r?n:i}function Da(e,t){return null!=e&&ds(e,t,xi)}var Ta=jr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),e[t]=n}),Xa(nc)),Ca=jr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),Ae.call(e,t)?e[t].push(n):e[t]=[n]}),rs),Oa=Ui(Ti);function La(e){return Bo(e)?Gn(e):Ai(e)}function Ra(e){return Bo(e)?Gn(e,!0):function(e){if(!Xo(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 Ea=Cr((function(e,t,n){Fi(e,t,n)})),Aa=Cr((function(e,t,n,i){Fi(e,t,n,i)})),Ia=Zr((function(e,t){var n={};if(null==e)return n;var i=!1;t=xt(t,(function(t){return t=mr(t,e),i||(i=t.length>1),t})),Dr(e,es(e),n),i&&(n=si(n,7,Qr));for(var r=t.length;r--;)ar(n,t[r]);return n})),Pa=Zr((function(e,t){return null==e?{}:function(e,t){return $i(e,t,(function(t,n){return Da(e,n)}))}(e,t)}));function Na(e,t){if(null==e)return{};var n=xt(es(e),(function(e){return[e]}));return t=rs(t),$i(e,n,(function(e,n){return t(e,n[0])}))}var ja=Ur(La),Fa=Ur(Ra);function Ya(e){return null==e?[]:Wt(e,La(e))}var za=Er((function(e,t,n){return t=t.toLowerCase(),e+(n?$a(t):t)}));function $a(e){return Ja(ga(e).toLowerCase())}function Ha(e){return(e=ga(e))&&e.replace(_e,qt).replace(Be,"")}var Wa=Er((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Va=Er((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ba=Rr("toLowerCase"),Ua=Er((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ga=Er((function(e,t,n){return e+(n?" ":"")+Ja(t)})),qa=Er((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ja=Rr("toUpperCase");function Qa(e,t,n){return e=ga(e),(t=n?r:t)===r?function(e){return Je.test(e)}(e)?function(e){return e.match(Ge)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Ka=Ui((function(e,t){try{return gt(e,r,t)}catch(n){return Jo(n)?n:new Se(n)}})),Za=Zr((function(e,t){return yt(t,(function(t){t=Ps(t),ni(e,t,Co(e[t],e))})),e}));function Xa(e){return function(){return e}}var ec=Pr(),tc=Pr(!0);function nc(e){return e}function ic(e){return Ei("function"==typeof e?e:si(e,1))}var rc=Ui((function(e,t){return function(n){return Ti(n,e,t)}})),sc=Ui((function(e,t){return function(n){return Ti(e,n,t)}}));function oc(e,t,n){var i=La(t),r=yi(t,i);null!=n||Xo(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=yi(t,La(t)));var s=!(Xo(n)&&"chain"in n&&!n.chain),o=Qo(e);return yt(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__=xr(this.__actions__);return r.push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,Dt([this.value()],arguments))})})),e}function ac(){}var cc=Yr(xt),lc=Yr(wt),uc=Yr(Ot);function dc(e){return bs(e)?jt(Ps(e)):function(e){return function(t){return vi(t,e)}}(e)}var hc=$r(),fc=$r(!0);function pc(){return[]}function mc(){return!1}var bc,gc=Fr((function(e,t){return e+t}),0),_c=Vr("ceil"),yc=Fr((function(e,t){return e/t}),1),vc=Vr("floor"),wc=Fr((function(e,t){return e*t}),1),Sc=Vr("round"),Mc=Fr((function(e,t){return e-t}),0);return jn.after=function(e,t){if("function"!=typeof t)throw new Ce(s);return e=fa(e),function(){if(--e<1)return t.apply(this,arguments)}},jn.ary=Do,jn.assign=_a,jn.assignIn=ya,jn.assignInWith=va,jn.assignWith=wa,jn.at=Sa,jn.before=To,jn.bind=Co,jn.bindAll=Za,jn.bindKey=Oo,jn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wo(e)?e:[e]},jn.chain=uo,jn.chunk=function(e,t,n){t=(n?ms(e,t,n):t===r)?1:mn(fa(t),0);var s=null==e?0:e.length;if(!s||t<1)return[];for(var o=0,a=0,c=i(cn(s/t));o<s;)c[a++]=Xi(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 Dt(Wo(n)?xr(n):[n],pi(t,1))},jn.cond=function(e){var t=null==e?0:e.length,n=rs();return e=t?xt(e,(function(e){if("function"!=typeof e[1])throw new Ce(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=La(e);return function(n){return oi(n,e,t)}}(si(e,1))},jn.constant=Xa,jn.countBy=po,jn.create=function(e,t){var n=Fn(e);return null==t?n:ti(n,t)},jn.curry=function e(t,n,i){var s=Gr(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=Gr(t,16,r,r,r,r,r,n=i?r:n);return s.placeholder=e.placeholder,s},jn.debounce=Lo,jn.defaults=Ma,jn.defaultsDeep=ka,jn.defer=Ro,jn.delay=Eo,jn.difference=Fs,jn.differenceBy=Ys,jn.differenceWith=zs,jn.drop=function(e,t,n){var i=null==e?0:e.length;return i?Xi(e,(t=n||t===r?1:fa(t))<0?0:t,i):[]},jn.dropRight=function(e,t,n){var i=null==e?0:e.length;return i?Xi(e,0,(t=i-(t=n||t===r?1:fa(t)))<0?0:t):[]},jn.dropRightWhile=function(e,t){return e&&e.length?lr(e,rs(t,3),!0,!0):[]},jn.dropWhile=function(e,t){return e&&e.length?lr(e,rs(t,3),!0):[]},jn.fill=function(e,t,n,i){var s=null==e?0:e.length;return s?(n&&"number"!=typeof n&&ms(e,t,n)&&(n=0,i=s),function(e,t,n,i){var s=e.length;for((n=fa(n))<0&&(n=-n>s?0:s+n),(i=i===r||i>s?s:fa(i))<0&&(i+=s),i=n>i?0:pa(i);n<i;)e[n++]=t;return e}(e,t,n,i)):[]},jn.filter=function(e,t){return(Wo(e)?St:fi)(e,rs(t,3))},jn.flatMap=function(e,t){return pi(So(e,t),1)},jn.flatMapDeep=function(e,t){return pi(So(e,t),u)},jn.flatMapDepth=function(e,t,n){return n=n===r?1:fa(n),pi(So(e,t),n)},jn.flatten=Ws,jn.flattenDeep=function(e){return null!=e&&e.length?pi(e,u):[]},jn.flattenDepth=function(e,t){return null!=e&&e.length?pi(e,t=t===r?1:fa(t)):[]},jn.flip=function(e){return Gr(e,512)},jn.flow=ec,jn.flowRight=tc,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,La(e))},jn.functionsIn=function(e){return null==e?[]:yi(e,Ra(e))},jn.groupBy=yo,jn.initial=function(e){return null!=e&&e.length?Xi(e,0,-1):[]},jn.intersection=Bs,jn.intersectionBy=Us,jn.intersectionWith=Gs,jn.invert=Ta,jn.invertBy=Ca,jn.invokeMap=vo,jn.iteratee=ic,jn.keyBy=wo,jn.keys=La,jn.keysIn=Ra,jn.map=So,jn.mapKeys=function(e,t){var n={};return t=rs(t,3),gi(e,(function(e,i,r){ni(n,t(e,i,r),e)})),n},jn.mapValues=function(e,t){var n={};return t=rs(t,3),gi(e,(function(e,i,r){ni(n,i,t(e,i,r))})),n},jn.matches=function(e){return Ni(si(e,1))},jn.matchesProperty=function(e,t){return ji(e,si(t,1))},jn.memoize=Ao,jn.merge=Ea,jn.mergeWith=Aa,jn.method=rc,jn.methodOf=sc,jn.mixin=oc,jn.negate=Io,jn.nthArg=function(e){return e=fa(e),Ui((function(t){return Yi(t,e)}))},jn.omit=Ia,jn.omitBy=function(e,t){return Na(e,Io(rs(t)))},jn.once=function(e){return To(2,e)},jn.orderBy=function(e,t,n,i){return null==e?[]:(Wo(t)||(t=null==t?[]:[t]),Wo(n=i?r:n)||(n=null==n?[]:[n]),zi(e,t,n))},jn.over=cc,jn.overArgs=Po,jn.overEvery=lc,jn.overSome=uc,jn.partial=No,jn.partialRight=jo,jn.partition=Mo,jn.pick=Pa,jn.pickBy=Na,jn.property=dc,jn.propertyOf=function(e){return function(t){return null==e?r:vi(e,t)}},jn.pull=Js,jn.pullAll=Qs,jn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Hi(e,t,rs(n,2)):e},jn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Hi(e,t,r,n):e},jn.pullAt=Ks,jn.range=hc,jn.rangeRight=fc,jn.rearg=Fo,jn.reject=function(e,t){return(Wo(e)?St:fi)(e,Io(rs(t,3)))},jn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,r=[],s=e.length;for(t=rs(t,3);++i<s;){var o=e[i];t(o,i,e)&&(n.push(o),r.push(i))}return Wi(e,r),n},jn.rest=function(e,t){if("function"!=typeof e)throw new Ce(s);return Ui(e,t=t===r?t:fa(t))},jn.reverse=Zs,jn.sampleSize=function(e,t,n){return t=(n?ms(e,t,n):t===r)?1:fa(t),(Wo(e)?Jn:qi)(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(Wo(e)?Qn:Zi)(e)},jn.slice=function(e,t,n){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&ms(e,t,n)?(t=0,n=i):(t=null==t?0:fa(t),n=n===r?i:fa(n)),Xi(e,t,n)):[]},jn.sortBy=ko,jn.sortedUniq=function(e){return e&&e.length?ir(e):[]},jn.sortedUniqBy=function(e,t){return e&&e.length?ir(e,rs(t,2)):[]},jn.split=function(e,t,n){return n&&"number"!=typeof n&&ms(e,t,n)&&(t=n=r),(n=n===r?f:n>>>0)?(e=ga(e))&&("string"==typeof t||null!=t&&!ra(t))&&!(t=sr(t))&&Kt(e)?gr(sn(e),0,n):e.split(t,n):[]},jn.spread=function(e,t){if("function"!=typeof e)throw new Ce(s);return t=null==t?0:mn(fa(t),0),Ui((function(n){var i=n[t],r=gr(n,0,t);return i&&Dt(r,i),gt(e,this,r)}))},jn.tail=function(e){var t=null==e?0:e.length;return t?Xi(e,1,t):[]},jn.take=function(e,t,n){return e&&e.length?Xi(e,0,(t=n||t===r?1:fa(t))<0?0:t):[]},jn.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?Xi(e,(t=i-(t=n||t===r?1:fa(t)))<0?0:t,i):[]},jn.takeRightWhile=function(e,t){return e&&e.length?lr(e,rs(t,3),!1,!0):[]},jn.takeWhile=function(e,t){return e&&e.length?lr(e,rs(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 Ce(s);return Xo(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Lo(e,t,{leading:i,maxWait:t,trailing:r})},jn.thru=ho,jn.toArray=da,jn.toPairs=ja,jn.toPairsIn=Fa,jn.toPath=function(e){return Wo(e)?xt(e,Ps):aa(e)?[e]:xr(Is(ga(e)))},jn.toPlainObject=ba,jn.transform=function(e,t,n){var i=Wo(e),r=i||Go(e)||ca(e);if(t=rs(t,4),null==n){var s=e&&e.constructor;n=r?i?new s:[]:Xo(e)&&Qo(s)?Fn(Ue(e)):{}}return(r?yt:gi)(e,(function(e,i,r){return t(n,e,i,r)})),n},jn.unary=function(e){return Do(e,1)},jn.union=Xs,jn.unionBy=eo,jn.unionWith=to,jn.uniq=function(e){return e&&e.length?or(e):[]},jn.uniqBy=function(e,t){return e&&e.length?or(e,rs(t,2)):[]},jn.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?or(e,r,t):[]},jn.unset=function(e,t){return null==e||ar(e,t)},jn.unzip=no,jn.unzipWith=io,jn.update=function(e,t,n){return null==e?e:cr(e,t,pr(n))},jn.updateWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:cr(e,t,pr(n),i)},jn.values=Ya,jn.valuesIn=function(e){return null==e?[]:Wt(e,Ra(e))},jn.without=ro,jn.words=Qa,jn.wrap=function(e,t){return No(pr(t),e)},jn.xor=so,jn.xorBy=oo,jn.xorWith=ao,jn.zip=co,jn.zipObject=function(e,t){return hr(e||[],t||[],Zn)},jn.zipObjectDeep=function(e,t){return hr(e||[],t||[],Ji)},jn.zipWith=lo,jn.entries=ja,jn.entriesIn=Fa,jn.extend=ya,jn.extendWith=va,oc(jn,jn),jn.add=gc,jn.attempt=Ka,jn.camelCase=za,jn.capitalize=$a,jn.ceil=_c,jn.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=ma(n))==n?n:0),t!==r&&(t=(t=ma(t))==t?t:0),ri(ma(e),t,n)},jn.clone=function(e){return si(e,4)},jn.cloneDeep=function(e){return si(e,5)},jn.cloneDeepWith=function(e,t){return si(e,5,t="function"==typeof t?t:r)},jn.cloneWith=function(e,t){return si(e,4,t="function"==typeof t?t:r)},jn.conformsTo=function(e,t){return null==t||oi(e,t,La(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=ga(e),t=sr(t);var i=e.length,s=n=n===r?i:ri(fa(n),0,i);return(n-=t.length)>=0&&e.slice(n,s)==t},jn.eq=Yo,jn.escape=function(e){return(e=ga(e))&&q.test(e)?e.replace(U,Jt):e},jn.escapeRegExp=function(e){return(e=ga(e))&&ne.test(e)?e.replace(te,"\\$&"):e},jn.every=function(e,t,n){var i=Wo(e)?wt:di;return n&&ms(e,t,n)&&(t=r),i(e,rs(t,3))},jn.find=mo,jn.findIndex=$s,jn.findKey=function(e,t){return Rt(e,rs(t,3),gi)},jn.findLast=bo,jn.findLastIndex=Hs,jn.findLastKey=function(e,t){return Rt(e,rs(t,3),_i)},jn.floor=vc,jn.forEach=go,jn.forEachRight=_o,jn.forIn=function(e,t){return null==e?e:mi(e,rs(t,3),Ra)},jn.forInRight=function(e,t){return null==e?e:bi(e,rs(t,3),Ra)},jn.forOwn=function(e,t){return e&&gi(e,rs(t,3))},jn.forOwnRight=function(e,t){return e&&_i(e,rs(t,3))},jn.get=xa,jn.gt=zo,jn.gte=$o,jn.has=function(e,t){return null!=e&&ds(e,t,ki)},jn.hasIn=Da,jn.head=Vs,jn.identity=nc,jn.includes=function(e,t,n,i){e=Bo(e)?e:Ya(e),n=n&&!i?fa(n):0;var r=e.length;return n<0&&(n=mn(r+n,0)),oa(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&At(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:fa(n);return r<0&&(r=mn(i+r,0)),At(e,t,r)},jn.inRange=function(e,t,n){return t=ha(t),n===r?(n=t,t=0):n=ha(n),function(e,t,n){return e>=bn(t,n)&&e<mn(t,n)}(e=ma(e),t,n)},jn.invoke=Oa,jn.isArguments=Ho,jn.isArray=Wo,jn.isArrayBuffer=Vo,jn.isArrayLike=Bo,jn.isArrayLikeObject=Uo,jn.isBoolean=function(e){return!0===e||!1===e||ea(e)&&Si(e)==g},jn.isBuffer=Go,jn.isDate=qo,jn.isElement=function(e){return ea(e)&&1===e.nodeType&&!ia(e)},jn.isEmpty=function(e){if(null==e)return!0;if(Bo(e)&&(Wo(e)||"string"==typeof e||"function"==typeof e.splice||Go(e)||ca(e)||Ho(e)))return!e.length;var t=us(e);if(t==S||t==T)return!e.size;if(ys(e))return!Ai(e).length;for(var n in e)if(Ae.call(e,n))return!1;return!0},jn.isEqual=function(e,t){return Oi(e,t)},jn.isEqualWith=function(e,t,n){var i=(n="function"==typeof n?n:r)?n(e,t):r;return i===r?Oi(e,t,r,n):!!i},jn.isError=Jo,jn.isFinite=function(e){return"number"==typeof e&&hn(e)},jn.isFunction=Qo,jn.isInteger=Ko,jn.isLength=Zo,jn.isMap=ta,jn.isMatch=function(e,t){return e===t||Li(e,t,os(t))},jn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:r,Li(e,t,os(t),n)},jn.isNaN=function(e){return na(e)&&e!=+e},jn.isNative=function(e){if(_s(e))throw new Se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ri(e)},jn.isNil=function(e){return null==e},jn.isNull=function(e){return null===e},jn.isNumber=na,jn.isObject=Xo,jn.isObjectLike=ea,jn.isPlainObject=ia,jn.isRegExp=ra,jn.isSafeInteger=function(e){return Ko(e)&&e>=-9007199254740991&&e<=d},jn.isSet=sa,jn.isString=oa,jn.isSymbol=aa,jn.isTypedArray=ca,jn.isUndefined=function(e){return e===r},jn.isWeakMap=function(e){return ea(e)&&us(e)==L},jn.isWeakSet=function(e){return ea(e)&&"[object WeakSet]"==Si(e)},jn.join=function(e,t){return null==e?"":fn.call(e,t)},jn.kebabCase=Wa,jn.last=qs,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=fa(n))<0?mn(i+s,0):bn(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):Et(e,Pt,s,!0)},jn.lowerCase=Va,jn.lowerFirst=Ba,jn.lt=la,jn.lte=ua,jn.max=function(e){return e&&e.length?hi(e,nc,Mi):r},jn.maxBy=function(e,t){return e&&e.length?hi(e,rs(t,2),Mi):r},jn.mean=function(e){return Nt(e,nc)},jn.meanBy=function(e,t){return Nt(e,rs(t,2))},jn.min=function(e){return e&&e.length?hi(e,nc,Ii):r},jn.minBy=function(e,t){return e&&e.length?hi(e,rs(t,2),Ii):r},jn.stubArray=pc,jn.stubFalse=mc,jn.stubObject=function(){return{}},jn.stubString=function(){return""},jn.stubTrue=function(){return!0},jn.multiply=wc,jn.nth=function(e,t){return e&&e.length?Yi(e,fa(t)):r},jn.noConflict=function(){return st._===this&&(st._=Fe),this},jn.noop=ac,jn.now=xo,jn.pad=function(e,t,n){e=ga(e);var i=(t=fa(t))?rn(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return zr(ln(r),n)+e+zr(cn(r),n)},jn.padEnd=function(e,t,n){e=ga(e);var i=(t=fa(t))?rn(e):0;return t&&i<t?e+zr(t-i,n):e},jn.padStart=function(e,t,n){e=ga(e);var i=(t=fa(t))?rn(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),_n(ga(e).replace(re,""),t||0)},jn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&ms(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=ha(e),t===r?(t=e,e=0):t=ha(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var s=yn();return bn(e+s*(t-e+tt("1e-"+((s+"").length-1))),t)}return Vi(e,t)},jn.reduce=function(e,t,n){var i=Wo(e)?Tt:Yt,r=arguments.length<3;return i(e,rs(t,4),n,r,li)},jn.reduceRight=function(e,t,n){var i=Wo(e)?Ct:Yt,r=arguments.length<3;return i(e,rs(t,4),n,r,ui)},jn.repeat=function(e,t,n){return t=(n?ms(e,t,n):t===r)?1:fa(t),Bi(ga(e),t)},jn.replace=function(){var e=arguments,t=ga(e[0]);return e.length<3?t:t.replace(e[1],e[2])},jn.result=function(e,t,n){var i=-1,s=(t=mr(t,e)).length;for(s||(s=1,e=r);++i<s;){var o=null==e?r:e[Ps(t[i])];o===r&&(i=s,o=n),e=Qo(o)?o.call(e):o}return e},jn.round=Sc,jn.runInContext=e,jn.sample=function(e){return(Wo(e)?qn:Gi)(e)},jn.size=function(e){if(null==e)return 0;if(Bo(e))return oa(e)?rn(e):e.length;var t=us(e);return t==S||t==T?e.size:Ai(e).length},jn.snakeCase=Ua,jn.some=function(e,t,n){var i=Wo(e)?Ot:er;return n&&ms(e,t,n)&&(t=r),i(e,rs(t,3))},jn.sortedIndex=function(e,t){return tr(e,t)},jn.sortedIndexBy=function(e,t,n){return nr(e,t,rs(n,2))},jn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=tr(e,t);if(i<n&&Yo(e[i],t))return i}return-1},jn.sortedLastIndex=function(e,t){return tr(e,t,!0)},jn.sortedLastIndexBy=function(e,t,n){return nr(e,t,rs(n,2),!0)},jn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=tr(e,t,!0)-1;if(Yo(e[n],t))return n}return-1},jn.startCase=Ga,jn.startsWith=function(e,t,n){return e=ga(e),n=null==n?0:ri(fa(n),0,e.length),t=sr(t),e.slice(n,n+t.length)==t},jn.subtract=Mc,jn.sum=function(e){return e&&e.length?zt(e,nc):0},jn.sumBy=function(e,t){return e&&e.length?zt(e,rs(t,2)):0},jn.template=function(e,t,n){var i=jn.templateSettings;n&&ms(e,t,n)&&(t=r),e=ga(e),t=va({},t,i,qr);var s,o,a=va({},t.imports,i.imports,qr),c=La(a),l=Wt(a,c),u=0,d=t.interpolate||ye,h="__p += '",f=De((t.escape||ye).source+"|"+d.source+"|"+(d===K?de:ye).source+"|"+(t.evaluate||ye).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(ve,Qt),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;m||(h="with (obj) {\n"+h+"\n}\n"),h=(o?h.replace(H,""):h).replace(W,"$1").replace(V,"$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=Ka((function(){return Me(c,p+"return "+h).apply(r,l)}));if(b.source=h,Jo(b))throw b;return b},jn.times=function(e,t){if((e=fa(e))<1||e>d)return[];var n=f,i=bn(e,f);t=rs(t),e-=f;for(var r=$t(i,t);++n<e;)t(n);return r},jn.toFinite=ha,jn.toInteger=fa,jn.toLength=pa,jn.toLower=function(e){return ga(e).toLowerCase()},jn.toNumber=ma,jn.toSafeInteger=function(e){return e?ri(fa(e),-9007199254740991,d):0===e?e:0},jn.toString=ga,jn.toUpper=function(e){return ga(e).toUpperCase()},jn.trim=function(e,t,n){if((e=ga(e))&&(n||t===r))return e.replace(ie,"");if(!e||!(t=sr(t)))return e;var i=sn(e),s=sn(t);return gr(i,Bt(i,s),Ut(i,s)+1).join("")},jn.trimEnd=function(e,t,n){if((e=ga(e))&&(n||t===r))return e.replace(se,"");if(!e||!(t=sr(t)))return e;var i=sn(e);return gr(i,0,Ut(i,sn(t))+1).join("")},jn.trimStart=function(e,t,n){if((e=ga(e))&&(n||t===r))return e.replace(re,"");if(!e||!(t=sr(t)))return e;var i=sn(e);return gr(i,Bt(i,sn(t))).join("")},jn.truncate=function(e,t){var n=30,i="...";if(Xo(t)){var s="separator"in t?t.separator:s;n="length"in t?fa(t.length):n,i="omission"in t?sr(t.omission):i}var o=(e=ga(e)).length;if(Kt(e)){var a=sn(e);o=a.length}if(n>=o)return e;var c=n-rn(i);if(c<1)return i;var l=a?gr(a,0,c).join(""):e.slice(0,c);if(s===r)return l+i;if(a&&(c+=l.length-c),ra(s)){if(e.slice(c).search(s)){var u,d=l;for(s.global||(s=De(s.source,ga(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(sr(s),c)!=c){var f=l.lastIndexOf(s);f>-1&&(l=l.slice(0,f))}return l+i},jn.unescape=function(e){return(e=ga(e))&&G.test(e)?e.replace(B,on):e},jn.uniqueId=function(e){var t=++Ie;return ga(e)+t},jn.upperCase=qa,jn.upperFirst=Ja,jn.each=go,jn.eachRight=_o,jn.first=Vs,oc(jn,(bc={},gi(jn,(function(e,t){Ae.call(jn.prototype,t)||(bc[t]=e)})),bc),{chain:!1}),jn.VERSION="4.17.20",yt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){jn[e].placeholder=jn})),yt(["drop","take"],(function(e,t){$n.prototype[e]=function(n){n=n===r?1:mn(fa(n),0);var i=this.__filtered__&&!t?new $n(this):this.clone();return i.__filtered__?i.__takeCount__=bn(n,i.__takeCount__):i.__views__.push({size:bn(n,f),type:e+(i.__dir__<0?"Right":"")}),i},$n.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),yt(["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:rs(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),yt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");$n.prototype[e]=function(){return this[n](1).value()[0]}})),yt(["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(nc)},$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 Ti(n,e,t)}))})),$n.prototype.reject=function(e){return this.filter(Io(rs(e)))},$n.prototype.slice=function(e,t){e=fa(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=fa(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)},gi($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||Wo(t),d=function(e){var t=s.apply(jn,Dt([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:ho,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)})})),yt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Oe[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(Wo(r)?r:[],e)}return this[n]((function(n){return t.apply(Wo(n)?n:[],e)}))}})),gi($n.prototype,(function(e,t){var n=jn[t];if(n){var i=n.name+"";Ae.call(Cn,i)||(Cn[i]=[]),Cn[i].push({name:t,func:n})}})),Cn[Nr(r,2).name]=[{name:"wrapper",func:r}],$n.prototype.clone=function(){var e=new $n(this.__wrapped__);return e.__actions__=xr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=xr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=xr(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=Wo(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=bn(t,e+o);break;case"takeRight":e=mn(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=bn(c,this.__takeCount__);if(!n||!i&&r==c&&f==c)return ur(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,y=(0,g.iteratee)(b);if(2==_)b=y;else if(!y){if(1==_)continue e;break e}}p[h++]=b}return p},jn.prototype.at=fo,jn.prototype.chain=function(){return uo(this)},jn.prototype.commit=function(){return new zn(this.value(),this.__chain__)},jn.prototype.next=function(){this.__values__===r&&(this.__values__=da(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 Yn;){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:ho,args:[Zs],thisArg:r}),new zn(t,this.__chain__)}return this.thru(Zs)},jn.prototype.toJSON=jn.prototype.valueOf=jn.prototype.value=function(){return ur(this.__wrapped__,this.__actions__)},jn.prototype.first=jn.prototype.head,ot&&(jn.prototype[ot]=function(){return this}),jn}();st._=an,(i=(function(){return an}).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.Tb();s.Sb(0,"div",0),s.Sb(1,"ngb-timepicker",4),s.gc("ngModelChange",(function(t){return s.Dc(e),s.ic().time=t}))("ngModelChange",(function(){return s.Dc(e),s.ic().onModelChange()})),s.Rb(),s.Rb()}if(2&e){const e=s.ic();s.yb(1),s.pc("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.Mb(o.d))},e.\u0275cmp=s.Gb({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.Sb(0,"div",0),s.Sb(1,"ngb-datepicker",1,2),s.gc("ngModelChange",(function(e){return t.date=e}))("ngModelChange",(function(){return t.onModelChange()})),s.Rb(),s.Rb(),s.Mc(3,l,2,2,"div",3)),2&e&&(s.yb(1),s.pc("ngModel",t.date)("minDate",t.minDate),s.yb(2),s.pc("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={rgb2hsl:n,rgb2hsv:i,rgb2hwb:s,rgb2cmyk:o,rgb2keyword:a,rgb2xyz:c,rgb2lab:l,rgb2lch:function(e){return y(l(e))},hsl2rgb:u,hsl2hsv:function(e){var t=e[1]/100,n=e[2]/100;return 0===n?[0,0,0]:[e[0],2*(t*=(n*=2)<=1?n:2-n)/(n+t)*100,(n+t)/2*100]},hsl2hwb:function(e){return s(u(e))},hsl2cmyk:function(e){return o(u(e))},hsl2keyword:function(e){return a(u(e))},hsv2rgb:d,hsv2hsl:function(e){var t,n,i=e[1]/100,r=e[2]/100;return t=i*r,[e[0],100*(t=(t/=(n=(2-i)*r)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(e){return s(d(e))},hsv2cmyk:function(e){return o(d(e))},hsv2keyword:function(e){return a(d(e))},hwb2rgb:h,hwb2hsl:function(e){return n(h(e))},hwb2hsv:function(e){return i(h(e))},hwb2cmyk:function(e){return o(h(e))},hwb2keyword:function(e){return a(h(e))},cmyk2rgb:f,cmyk2hsl:function(e){return n(f(e))},cmyk2hsv:function(e){return i(f(e))},cmyk2hwb:function(e){return s(f(e))},cmyk2keyword:function(e){return a(f(e))},keyword2rgb:S,keyword2hsl:function(e){return n(S(e))},keyword2hsv:function(e){return i(S(e))},keyword2hwb:function(e){return s(S(e))},keyword2cmyk:function(e){return o(S(e))},keyword2lab:function(e){return l(S(e))},keyword2xyz:function(e){return c(S(e))},xyz2rgb:p,xyz2lab:m,xyz2lch:function(e){return y(m(e))},lab2xyz:_,lab2rgb:v,lab2lch:y,lch2lab:w,lch2xyz:function(e){return _(w(e))},lch2rgb:function(e){return v(w(e))}};function n(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]}function i(e){var t,n,i=e[0],r=e[1],s=e[2],o=Math.min(i,r,s),a=Math.max(i,r,s),c=a-o;return n=0==a?0:c/a*1e3/10,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),[t,n,a/255*1e3/10]}function s(e){var t=e[0],i=e[1],r=e[2];return[n(e)[0],1/255*Math.min(t,Math.min(i,r))*100,100*(r=1-1/255*Math.max(t,Math.max(i,r)))]}function o(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]}function a(e){return k[JSON.stringify(e)]}function c(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)]}function l(e){var t=c(e),n=t[0],i=t[1],r=t[2];return i/=100,r/=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-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]}function u(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}function d(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]}}function h(e){var t,n,i,s,o=e[0]/360,a=e[1]/100,c=e[2]/100,l=a+c;switch(l>1&&(a/=l,c/=l),i=6*o-(t=Math.floor(6*o)),0!=(1&t)&&(i=1-i),s=a+i*((n=1-c)-a),t){default:case 6:case 0:r=n,g=s,b=a;break;case 1:r=s,g=n,b=a;break;case 2:r=a,g=n,b=s;break;case 3:r=a,g=s,b=n;break;case 4:r=s,g=a,b=n;break;case 5:r=n,g=a,b=s}return[255*r,255*g,255*b]}function f(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))]}function p(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:t*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,[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))]}function m(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))]}function _(e){var t,n,i,r,s=e[0],o=e[1],a=e[2];return s<=8?r=(n=100*s/903.3)/100*7.787+16/116:(n=100*Math.pow((s+16)/116,3),r=Math.pow(n/100,1/3)),[t=t/95.047<=.008856?t=95.047*(o/500+r-16/116)/7.787:95.047*Math.pow(o/500+r,3),n,i=i/108.883<=.008859?i=108.883*(r-a/200-16/116)/7.787:108.883*Math.pow(r-a/200,3)]}function y(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]}function v(e){return p(_(e))}function w(e){var t,n=e[1];return t=e[2]/360*2*Math.PI,[e[0],n*Math.cos(t),n*Math.sin(t)]}function S(e){return M[e]}var M={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]},k={};for(var x in M)k[JSON.stringify(M[x])]=x;var D=function(){return new R};for(var T in t){D[T+"Raw"]=function(e){return function(n){return"number"==typeof n&&(n=Array.prototype.slice.call(arguments)),t[e](n)}}(T);var C=/(\w+)2(\w+)/.exec(T),O=C[1],L=C[2];(D[O]=D[O]||{})[L]=D[T]=function(e){return function(n){"number"==typeof n&&(n=Array.prototype.slice.call(arguments));var i=t[e](n);if("string"==typeof i||void 0===i)return i;for(var r=0;r<i.length;r++)i[r]=Math.round(i[r]);return i}}(T)}var R=function(){this.convs={}};R.prototype.routeSpace=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))},R.prototype.setValues=function(e,t){return this.space=e,this.convs={},this.convs[e]=t,this},R.prototype.getValues=function(e){var t=this.convs[e];if(!t){var n=this.space;t=D[n][e](this.convs[n]),this.convs[e]=t}return t},["rgb","hsl","hsv","cmyk","keyword"].forEach((function(e){R.prototype[e]=function(t){return this.routeSpace(e,arguments)}}));var E=D,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]},I={getRgba:P,getHsla:N,getRgb:function(e){var t=P(e);return t&&t.slice(0,3)},getHsl:function(e){var t=N(e);return t&&t.slice(0,3)},getHwb:j,getAlpha:function(e){var t=P(e);return t||(t=N(e))||(t=j(e))?t[3]:void 0},hexString:function(e,t){return t=void 0!==t&&3===e.length?t:e[3],"#"+H(e[0])+H(e[1])+H(e[2])+(t>=0&&t<1?H(Math.round(255*t)):"")},rgbString:function(e,t){return t<1||e[3]&&e[3]<1?F(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:F,percentString:function(e,t){return t<1||e[3]&&e[3]<1?Y(e,t):"rgb("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%)"},percentaString:Y,hslString:function(e,t){return t<1||e[3]&&e[3]<1?z(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:z,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 W[e.slice(0,3)]}};function P(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]=$(t[s],0,255);return n=n||0==n?$(n,0,1):1,t[3]=n,t}}function N(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[$(parseInt(t[1]),0,360),$(parseFloat(t[2]),0,100),$(parseFloat(t[3]),0,100),$(isNaN(n)?1:n,0,1)]}}}function j(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[$(parseInt(t[1]),0,360),$(parseFloat(t[2]),0,100),$(parseFloat(t[3]),0,100),$(isNaN(n)?1:n,0,1)]}}}function F(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function Y(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 z(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function $(e,t,n){return Math.min(Math.max(t,e),n)}function H(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var W={};for(var V in A)W[A[V]]=V;var B=function(e){return e instanceof B?e:this instanceof B?(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=I.getRgba(e))?this.setValues("rgb",t):(t=I.getHsla(e))?this.setValues("hsl",t):(t=I.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 B(e);var t};B.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 I.hexString(this.values.rgb)},rgbString:function(){return I.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return I.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return I.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return I.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return I.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return I.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return I.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 B,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}},B.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},B.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},B.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},B.prototype.setValues=function(e,t){var n,i,r=this.values,s=this.spaces,o=this.maxes,a=1;if(this.valid=!0,"alpha"===e)a=t;else if(t.length)r[e]=t.slice(0,e.length),a=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)];a=t.a}else if(void 0!==t[s[e][0]]){var c=s[e];for(n=0;n<e.length;n++)r[e][n]=t[c[n]];a=t.alpha}if(r.alpha=Math.max(0,Math.min(1,void 0===a?r.alpha:a)),"alpha"===e)return!1;for(n=0;n<e.length;n++)i=Math.max(0,Math.min(o[e][n],r[e][n])),r[e][n]=Math.round(i);for(var l in s)l!==e&&(r[l]=E[e][l](r[e]));return!0},B.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)},B.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=B);var U,G=B,q={noop:function(){},uid:(U=0,function(){return U++}),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 q.valueOrDefault(q.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(q.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(q.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(!q.arrayEquals(r,s))return!1}else if(r!==s)return!1;return!0},clone:function(e){if(q.isArray(e))return e.map(q.clone);if(q.isObject(e)){for(var t={},n=Object.keys(e),i=n.length,r=0;r<i;++r)t[n[r]]=q.clone(e[n[r]]);return t}return e},_merger:function(e,t,n,i){var r=t[e],s=n[e];q.isObject(r)&&q.isObject(s)?q.merge(r,s,i):t[e]=q.clone(s)},_mergerIf:function(e,t,n){var i=t[e],r=n[e];q.isObject(i)&&q.isObject(r)?q.mergeIf(i,r):t.hasOwnProperty(e)||(t[e]=q.clone(r))},merge:function(e,t,n){var i,r,s,o,a,c=q.isArray(t)?t:[t],l=c.length;if(!q.isObject(e))return e;for(i=(n=n||{}).merger||q._merger,r=0;r<l;++r)if(q.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 q.merge(e,t,{merger:q._mergerIf})},extend:function(e){for(var t=function(t,n){e[n]=t},n=1,i=arguments.length;n<i;++n)q.each(arguments[n],t);return 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=q.inherits,e&&q.extend(n.prototype,e),n.__super__=t.prototype,n}},J=q;q.callCallback=q.callback,q.indexOf=function(e,t,n){return Array.prototype.indexOf.call(e,t,n)},q.getValueOrDefault=q.valueOrDefault,q.getValueAtIndexOrDefault=q.valueAtIndexOrDefault;var Q={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-Q.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*Q.easeInBounce(2*e):.5*Q.easeOutBounce(2*e-1)+.5}},K={effects:Q};J.easingEffects=Q;var Z=Math.PI,X=Z/180,ee=2*Z,te=Z/2,ne=Z/4,ie=2*Z/3,re={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,-Z,-te),e.arc(l,c,o,-te,0),e.arc(l,u,o,0,te),e.arc(a,u,o,te,Z)):a<l?(e.moveTo(a,n),e.arc(l,c,o,-te,te),e.arc(a,c,o,te,Z+te)):c<u?(e.arc(a,c,o,-Z,0),e.arc(a,u,o,0,Z)):e.arc(a,c,o,-Z,Z),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)*X;if(!t||"object"!=typeof t||"[object HTMLImageElement]"!==(o=t.toString())&&"[object HTMLCanvasElement]"!==o){if(!(isNaN(n)||n<=0)){switch(e.beginPath(),t){default:e.arc(i,r,n,0,ee),e.closePath();break;case"triangle":e.moveTo(i+Math.sin(d)*n,r-Math.cos(d)*n),d+=ie,e.lineTo(i+Math.sin(d)*n,r-Math.cos(d)*n),d+=ie,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+ne)*l,c=Math.sin(d+ne)*l,e.arc(i-a,r-c,u,d-Z,d-te),e.arc(i+c,r-a,u,d-te,d),e.arc(i+a,r+c,u,d,d+te),e.arc(i-c,r+a,u,d+te,d+Z),e.closePath();break;case"rect":if(!s){l=Math.SQRT1_2*n,e.rect(i-l,r-l,2*l,2*l);break}d+=ne;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+=ne;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+=ne,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()}}else e.drawImage(t,i-t.width/2,r-t.height/2,t.width,t.height)},_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)}},se=re;J.clear=re.clear,J.drawRoundedRectangle=function(e){e.beginPath(),re.roundedRect.apply(re,arguments)};var oe={_set:function(e,t){return J.merge(this[e]||(this[e]={}),t)}};oe._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 ae=oe,ce=J.valueOrDefault,le={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 J.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=ae.global,n=ce(e.fontSize,t.defaultFontSize),i={family:ce(e.fontFamily,t.defaultFontFamily),lineHeight:J.options.toLineHeight(ce(e.lineHeight,t.defaultLineHeight),n),size:n,style:ce(e.fontStyle,t.defaultFontStyle),weight:null,string:""};return i.string=function(e){return!e||J.isNullOrUndef(e.size)||J.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(i),i},resolve:function(e,t,n){var i,r,s;for(i=0,r=e.length;i<r;++i)if(void 0!==(s=e[i])&&(void 0!==t&&"function"==typeof s&&(s=s(t)),void 0!==n&&J.isArray(s)&&(s=s[n]),void 0!==s))return s}},ue=J,de=se,he=le;ue.easing=K,ue.canvas=de,ue.options=he;var fe=function(e){ue.extend(this,e),this.initialize.apply(this,arguments)};ue.extend(fe.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=ue.clone(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=G(c)).valid&&(h=G(l)).valid){t[o]=h.mix(d,i).rgbString();continue}}else if(ue.isFinite(c)&&ue.isFinite(l)){t[o]=c+(l-c)*i;continue}t[o]=l}}(i,r,n,e),t):(t._view=n,t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return ue.isNumber(this._model.x)&&ue.isNumber(this._model.y)}}),fe.extend=ue.inherits;var pe=fe,me=pe.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),be=me;Object.defineProperty(me.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(me.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}}),ae._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:ue.noop,onComplete:ue.noop}});var ge={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=ue.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=ue.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),ue.callback(e.render,[t,e],t),ue.callback(e.onAnimationProgress,[e],t),e.currentStep>=n?(ue.callback(e.onAnimationComplete,[e],t),t.animating=!1,r.splice(s,1)):++s}},_e=ue.options.resolve,ye=["push","pop","shift","splice","unshift"];function ve(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||(ye.forEach((function(t){delete e[t]})),delete e._chartjs)}}var we=function(e,t){this.initialize(e,t)};ue.extend(we.prototype,{datasetElementType:null,dataElementType:null,initialize:function(e,t){var n=this;n.chart=e,n.index=t,n.linkScales(),n.addElements()},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),n=e.getDataset();null!==t.xAxisID&&t.xAxisID in e.chart.scales||(t.xAxisID=n.xAxisID||e.chart.options.scales.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in e.chart.scales||(t.yAxisID=n.yAxisID||e.chart.options.scales.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&&ve(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&&ve(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]}}),ye.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 ue.each(e._chartjs.listeners,(function(e){"function"==typeof e[n]&&e[n].apply(e,t)})),r}})})))),n._data=r),n.resyncElements()},update:ue.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()},removeHoverStyle:function(e){ue.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=ue.getHoverColor;e.$previousStyle={backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:r.borderWidth},r.backgroundColor=_e([i.hoverBackgroundColor,t.hoverBackgroundColor,s(r.backgroundColor)],void 0,n),r.borderColor=_e([i.hoverBorderColor,t.hoverBorderColor,s(r.borderColor)],void 0,n),r.borderWidth=_e([i.hoverBorderWidth,t.hoverBorderWidth,r.borderWidth],void 0,n)},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)}}),we.extend=ue.inherits;var Se=we;ae._set("global",{elements:{arc:{backgroundColor:ae.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var Me=pe.extend({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=ue.getAngleFromPoint(n,{x:e,y:t}),r=i.angle,s=i.distance,o=n.startAngle,a=n.endAngle;a<o;)a+=2*Math.PI;for(;r>a;)r-=2*Math.PI;for(;r<o;)r+=2*Math.PI;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=n.startAngle,r=n.endAngle,s="inner"===n.borderAlign?.33:0;t.save(),t.beginPath(),t.arc(n.x,n.y,Math.max(n.outerRadius-s,0),i,r),t.arc(n.x,n.y,n.innerRadius,r,i,!0),t.closePath(),t.fillStyle=n.backgroundColor,t.fill(),n.borderWidth&&("inner"===n.borderAlign?(t.beginPath(),t.arc(n.x,n.y,n.outerRadius,i-(e=s/n.outerRadius),r+e),n.innerRadius>s?t.arc(n.x,n.y,n.innerRadius-s,r+(e=s/n.innerRadius),i-e,!0):t.arc(n.x,n.y,s,r+Math.PI/2,i-Math.PI/2),t.closePath(),t.clip(),t.beginPath(),t.arc(n.x,n.y,n.outerRadius,i,r),t.arc(n.x,n.y,n.innerRadius,r,i,!0),t.closePath(),t.lineWidth=2*n.borderWidth,t.lineJoin="round"):(t.lineWidth=n.borderWidth,t.lineJoin="bevel"),t.strokeStyle=n.borderColor,t.stroke()),t.restore()}}),ke=ue.valueOrDefault,xe=ae.global.defaultColor;ae._set("global",{elements:{line:{tension:.4,backgroundColor:xe,borderWidth:3,borderColor:xe,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var De=pe.extend({draw:function(){var e,t,n,i,r=this,s=r._view,o=r._chart.ctx,a=s.spanGaps,c=r._children.slice(),l=ae.global,u=l.elements.line,d=-1;for(r._loop&&c.length&&c.push(c[0]),o.save(),o.lineCap=s.borderCapStyle||u.borderCapStyle,o.setLineDash&&o.setLineDash(s.borderDash||u.borderDash),o.lineDashOffset=ke(s.borderDashOffset,u.borderDashOffset),o.lineJoin=s.borderJoinStyle||u.borderJoinStyle,o.lineWidth=ke(s.borderWidth,u.borderWidth),o.strokeStyle=s.borderColor||l.defaultColor,o.beginPath(),d=-1,e=0;e<c.length;++e)t=c[e],n=ue.previousItem(c,e),i=t._view,0===e?i.skip||(o.moveTo(i.x,i.y),d=e):(n=-1===d?n:c[d],i.skip||(d!==e-1&&!a||-1===d?o.moveTo(i.x,i.y):ue.canvas.lineTo(o,n._view,t._view),d=e));o.stroke(),o.restore()}}),Te=ue.valueOrDefault,Ce=ae.global.defaultColor;function Oe(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}ae._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:Ce,borderColor:Ce,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var Le=pe.extend({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:Oe,inXRange:Oe,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=ae.global,l=c.defaultColor;t.skip||(void 0===e||ue.canvas._isPointInArea(t,e))&&(n.strokeStyle=t.borderColor||l,n.lineWidth=Te(t.borderWidth,c.elements.point.borderWidth),n.fillStyle=t.backgroundColor||l,ue.canvas.drawPoint(n,i,s,o,a,r))}}),Re=ae.global.defaultColor;function Ee(e){return e&&void 0!==e.width}function Ae(e){var t,n,i,r,s;return Ee(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 Ie(e,t,n){return e===t?n:e===n?t:e}function Pe(e,t,n){var i=null===t,r=null===n,s=!(!e||i&&r)&&Ae(e);return s&&(i||t>=s.left&&t<=s.right)&&(r||n>=s.top&&n<=s.bottom)}ae._set("global",{elements:{rectangle:{backgroundColor:Re,borderColor:Re,borderSkipped:"bottom",borderWidth:0}}});var Ne=pe.extend({draw:function(){var e=this._chart.ctx,t=this._view,n=function(e){var t=Ae(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=Ie(t,"left","right")):e.base<e.y&&(t=Ie(t,"bottom","top")),n[t]=!0,n):n}(e);return ue.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 Pe(this._view,e,t)},inLabelRange:function(e,t){var n=this._view;return Ee(n)?Pe(n,e,null):Pe(n,null,t)},inXRange:function(e){return Pe(this._view,e,null)},inYRange:function(e){return Pe(this._view,null,e)},getCenterPoint:function(){var e,t,n=this._view;return Ee(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 Ee(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}}}),je={},Fe=De,Ye=Le,ze=Ne;je.Arc=Me,je.Line=Fe,je.Point=Ye,je.Rectangle=ze;var $e=ue.options.resolve;function He(e,t){var n,i,r,s,o=e.isHorizontal()?e.width:e.height,a=e.getTicks();for(r=1,s=t.length;r<s;++r)o=Math.min(o,Math.abs(t[r]-t[r-1]));for(r=0,s=a.length;r<s;++r)i=e.getPixelForTick(r),o=r>0?Math.min(o,i-n):o,n=i;return o}ae._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}});var We=Se.extend({dataElementType:je.Rectangle,initialize:function(){var e,t=this;Se.prototype.initialize.apply(t,arguments),(e=t.getMeta()).stack=t.getDataset().stack,e.bar=!0},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._resolveElementOptions(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]},i._updateElementGeometry(e,t,n),e.pivot()},_updateElementGeometry:function(e,t,n){var i=this,r=e._model,s=i._getValueScale(),o=s.getBasePixel(),a=s.isHorizontal(),c=i._ruler||i.getRuler(),l=i.calculateBarValuePixels(i.index,t),u=i.calculateBarIndexPixels(i.index,t,c);r.horizontal=a,r.base=n?o:l.base,r.x=a?n?o:l.head:u.center,r.y=a?u.center:n?o:l.head,r.height=a?u.size:void 0,r.width=a?void 0:u.size},_getStacks:function(e){var t,n,i=this.chart,r=this._getIndexScale().options.stacked,s=void 0===e?i.data.datasets.length:e+1,o=[];for(t=0;t<s;++t)(n=i.getDatasetMeta(t)).bar&&i.isDatasetVisible(t)&&(!1===r||!0===r&&-1===o.indexOf(n.stack)||void 0===r&&(void 0===n.stack||-1===o.indexOf(n.stack)))&&o.push(n.stack);return o},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=n.getStackCount(),s=n.index,o=i.isHorizontal(),a=o?i.left:i.top,c=a+(o?i.width:i.height),l=[];for(e=0,t=n.getMeta().data.length;e<t;++e)l.push(i.getPixelForValue(null,e,s));return{min:ue.isNullOrUndef(i.options.barThickness)?He(i,l):-1,pixels:l,start:a,end:c,stackCount:r,scale:i}},calculateBarValuePixels:function(e,t){var n,i,r,s,o,a,c=this,l=c.chart,u=c.getMeta(),d=c._getValueScale(),h=d.isHorizontal(),f=l.data.datasets,p=+d.getRightValue(f[e].data[t]),m=d.options.minBarLength,b=d.options.stacked,g=u.stack,_=0;if(b||void 0===b&&void 0!==g)for(n=0;n<e;++n)(i=l.getDatasetMeta(n)).bar&&i.stack===g&&i.controller._getValueScaleId()===d.id&&l.isDatasetVisible(n)&&(r=+d.getRightValue(f[n].data[t]),(p<0&&r<0||p>=0&&r>0)&&(_+=r));return s=d.getPixelForValue(_),a=(o=d.getPixelForValue(_+p))-s,void 0!==m&&Math.abs(a)<m&&(a=m,o=p>=0&&!h||p<0&&h?s-m:s+m),{size:a,base:s,head:o,center:o+a/2}},calculateBarIndexPixels:function(e,t,n){var i=n.scale.options,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];return ue.isNullOrUndef(s)?(i=t.min*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(ue.valueOrDefault(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(ue.canvas.clipArea(t.ctx,t.chartArea);o<s;++o)isNaN(n.getRightValue(r.data[o]))||i[o].draw();ue.canvas.unclipArea(t.ctx)},_resolveElementOptions:function(e,t){var n,i,r,s=this,o=s.chart,a=o.data.datasets[s.index],c=e.custom||{},l=o.options.elements.rectangle,u={},d={chart:o,dataIndex:t,dataset:a,datasetIndex:s.index},h=["backgroundColor","borderColor","borderSkipped","borderWidth"];for(n=0,i=h.length;n<i;++n)u[r=h[n]]=$e([c[r],a[r],l[r]],d,t);return u}}),Ve=ue.valueOrDefault,Be=ue.options.resolve;ae._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 Ue=Se.extend({dataElementType:je.Point,update:function(e){var t=this,n=t.getMeta();ue.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._resolveElementOptions(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=ue.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Ve(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=Ve(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=Ve(n.hoverBorderWidth,n.borderWidth),t.radius=n.radius+n.hoverRadius},_resolveElementOptions:function(e,t){var n,i,r,s=this,o=s.chart,a=o.data.datasets[s.index],c=e.custom||{},l=o.options.elements.point,u=a.data[t],d={},h={chart:o,dataIndex:t,dataset:a,datasetIndex:s.index},f=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"];for(n=0,i=f.length;n<i;++n)d[r=f[n]]=Be([c[r],a[r],l[r]],h,t);return d.radius=Be([c.radius,u?u.r:void 0,a.radius,l.radius],h,t),d}}),Ge=ue.options.resolve,qe=ue.valueOrDefault;ae._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');var n=e.data,i=n.datasets,r=n.labels;if(i.length)for(var s=0;s<i[0].data.length;++s)t.push('<li><span style="background-color:'+i[0].backgroundColor[s]+'"></span>'),r[s]&&t.push(r[s]),t.push("</li>");return t.push("</ul>"),t.join("")},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=t.datasets[0],o=r.data[i],a=o&&o.custom||{},c=e.options.elements.arc;return{text:n,fillStyle:Ge([a.backgroundColor,s.backgroundColor,c.backgroundColor],void 0,i),strokeStyle:Ge([a.borderColor,s.borderColor,c.borderColor],void 0,i),lineWidth:Ge([a.borderWidth,s.borderWidth,c.borderWidth],void 0,i),hidden:isNaN(s.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:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.labels[e.index],i=": "+t.datasets[e.datasetIndex].data[e.index];return ue.isArray(n)?(n=n.slice())[0]+=i:n+=i,n}}}});var Je=Se.extend({dataElementType:je.Arc,linkScales:ue.noop,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=s.right-s.left,c=s.bottom-s.top,l=Math.min(a,c),u={x:0,y:0},d=i.getMeta(),h=d.data,f=o.cutoutPercentage,p=o.circumference,m=i._getRingWeight(i.index);if(p<2*Math.PI){var b=o.rotation%(2*Math.PI),g=(b+=2*Math.PI*(b>=Math.PI?-1:b<-Math.PI?1:0))+p,_={x:Math.cos(b),y:Math.sin(b)},y={x:Math.cos(g),y:Math.sin(g)},v=b<=0&&g>=0||b<=2*Math.PI&&2*Math.PI<=g,w=b<=.5*Math.PI&&.5*Math.PI<=g||b<=2.5*Math.PI&&2.5*Math.PI<=g,S=b<=-Math.PI&&-Math.PI<=g||b<=Math.PI&&Math.PI<=g,M=b<=.5*-Math.PI&&.5*-Math.PI<=g||b<=1.5*Math.PI&&1.5*Math.PI<=g,k=f/100,x={x:S?-1:Math.min(_.x*(_.x<0?1:k),y.x*(y.x<0?1:k)),y:M?-1:Math.min(_.y*(_.y<0?1:k),y.y*(y.y<0?1:k))},D={x:v?1:Math.max(_.x*(_.x>0?1:k),y.x*(y.x>0?1:k)),y:w?1:Math.max(_.y*(_.y>0?1:k),y.y*(y.y>0?1:k))},T={width:.5*(D.x-x.x),height:.5*(D.y-x.y)};l=Math.min(a/T.width,c/T.height),u={x:-.5*(D.x+x.x),y:-.5*(D.y+x.y)}}for(t=0,n=h.length;t<n;++t)h[t]._options=i._resolveElementOptions(h[t],t);for(r.borderWidth=i.getMaxBorderWidth(),r.outerRadius=Math.max((l-r.borderWidth)/2,0),r.innerRadius=Math.max(f?r.outerRadius/100*f:0,0),r.radiusLength=(r.outerRadius-r.innerRadius)/(i._getVisibleDatasetWeightTotal()||1),r.offsetX=u.x*r.outerRadius,r.offsetY=u.y*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/(2*Math.PI)),p=e._options||{};ue.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:ue.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 ue.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)?2*Math.PI*(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],"inner"!==(o=s?s._resolveElementOptions(r,t):r._options).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=ue.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=qe(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=qe(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=qe(n.hoverBorderWidth,n.borderWidth)},_resolveElementOptions:function(e,t){var n,i,r,s=this,o=s.chart,a=s.getDataset(),c=e.custom||{},l=o.options.elements.arc,u={},d={chart:o,dataIndex:t,dataset:a,datasetIndex:s.index},h=["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"];for(n=0,i=h.length;n<i;++n)u[r=h[n]]=Ge([c[r],a[r],l[r]],d,t);return u},_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(qe(this.chart.data.datasets[e].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});ae._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}});var Qe=We.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),Ke=ue.valueOrDefault,Ze=ue.options.resolve,Xe=ue.canvas._isPointInArea;function et(e,t){return Ke(e.showLine,t.showLines)}ae._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 tt=Se.extend({datasetElementType:je.Line,dataElementType:je.Point,update:function(e){var t,n,i=this,r=i.getMeta(),s=r.dataset,o=r.data||[],a=i.getScaleForId(r.yAxisID),c=i.getDataset(),l=et(c,i.chart.options);for(l&&(void 0!==c.tension&&void 0===c.lineTension&&(c.lineTension=c.tension),s._scale=a,s._datasetIndex=i.index,s._children=o,s._model=i._resolveLineOptions(s),s.pivot()),t=0,n=o.length;t<n;++t)i.updateElement(o[t],t,e);for(l&&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.getScaleForId(o.yAxisID),h=s.getScaleForId(o.xAxisID),f=o.dataset._model,p=s._resolvePointOptions(e,t);i=h.getPixelForValue("object"==typeof u?u:NaN,t,l),r=n?d.getBasePixel():s.calculatePointY(u,t,l),e._xScale=h,e._yScale=d,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:Ke(a.tension,f?f.tension:0),steppedLine:!!f&&f.steppedLine,hitRadius:p.hitRadius}},_resolvePointOptions:function(e,t){var n,i,r,s=this,o=s.chart,a=o.data.datasets[s.index],c=e.custom||{},l=o.options.elements.point,u={},d={chart:o,dataIndex:t,dataset:a,datasetIndex:s.index},h={backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},f=Object.keys(h);for(n=0,i=f.length;n<i;++n)u[r=f[n]]=Ze([c[r],a[h[r]],a[r],l[r]],d,t);return u},_resolveLineOptions:function(e){var t,n,i,r=this.chart,s=r.data.datasets[this.index],o=e.custom||{},a=r.options,c=a.elements.line,l={},u=["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill","cubicInterpolationMode"];for(t=0,n=u.length;t<n;++t)l[i=u[t]]=Ze([o[i],s[i],c[i]]);return l.spanGaps=Ke(s.spanGaps,a.spanGaps),l.tension=Ke(s.lineTension,c.tension),l.steppedLine=Ze([o.steppedLine,s.steppedLine,c.stepped]),l},calculatePointY:function(e,t,n){var i,r,s,o=this,a=o.chart,c=o.getMeta(),l=o.getScaleForId(c.yAxisID),u=0,d=0;if(l.options.stacked){for(i=0;i<n;i++)if(r=a.data.datasets[i],"line"===(s=a.getDatasetMeta(i)).type&&s.yAxisID===l.id&&a.isDatasetVisible(i)){var h=Number(l.getRightValue(r.data[t]));h<0?d+=h||0:u+=h||0}var f=Number(l.getRightValue(e));return l.getPixelForValue(f<0?d+f:u+f)}return l.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)ue.splineCurveMonotone(c);else for(e=0,t=c.length;e<t;++e)n=c[e]._model,i=ue.splineCurve(ue.previousItem(c,e)._model,n,ue.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)Xe(n=c[e]._model,a)&&(e>0&&Xe(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&&Xe(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=r.length,a=0;for(et(t.getDataset(),n.options)&&(ue.canvas.clipArea(n.ctx,{left:s.left,right:s.right,top:s.top-(e=(i.dataset._model.borderWidth||0)/2),bottom:s.bottom+e}),i.dataset.draw(),ue.canvas.unclipArea(n.ctx));a<o;++a)r[a].draw(s)},setHoverStyle:function(e){var t=e._model,n=e._options,i=ue.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Ke(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=Ke(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=Ke(n.hoverBorderWidth,n.borderWidth),t.radius=Ke(n.hoverRadius,n.radius)}}),nt=ue.options.resolve;ae._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=[];t.push('<ul class="'+e.id+'-legend">');var n=e.data,i=n.datasets,r=n.labels;if(i.length)for(var s=0;s<i[0].data.length;++s)t.push('<li><span style="background-color:'+i[0].backgroundColor[s]+'"></span>'),r[s]&&t.push(r[s]),t.push("</li>");return t.push("</ul>"),t.join("")},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=t.datasets[0],o=r.data[i].custom||{},a=e.options.elements.arc;return{text:n,fillStyle:nt([o.backgroundColor,s.backgroundColor,a.backgroundColor],void 0,i),strokeStyle:nt([o.borderColor,s.borderColor,a.borderColor],void 0,i),lineWidth:nt([o.borderWidth,s.borderWidth,a.borderWidth],void 0,i),hidden:isNaN(s.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 it=Se.extend({dataElementType:je.Arc,linkScales:ue.noop,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._resolveElementOptions(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||{};ue.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:ue.valueAtIndexOrDefault(l,t,l[t])}}),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),n=0;return ue.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=ue.getHoverColor,r=ue.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)},_resolveElementOptions:function(e,t){var n,i,r,s=this,o=s.chart,a=s.getDataset(),c=e.custom||{},l=o.options.elements.arc,u={},d={chart:o,dataIndex:t,dataset:a,datasetIndex:s.index},h=["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"];for(n=0,i=h.length;n<i;++n)u[r=h[n]]=nt([c[r],a[r],l[r]],d,t);return u},_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:nt([t.chart.options.elements.arc.angle,2*Math.PI/n],{chart:t.chart,dataIndex:e,dataset:i,datasetIndex:t.index},e)}});ae._set("pie",ue.clone(ae.doughnut)),ae._set("pie",{cutoutPercentage:0});var rt=Je,st=ue.valueOrDefault,ot=ue.options.resolve;ae._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}});var at=Se.extend({datasetElementType:je.Line,dataElementType:je.Point,linkScales:ue.noop,update:function(e){var t,n,i=this,r=i.getMeta(),s=r.dataset,o=r.data||[],a=i.chart.scale,c=i.getDataset();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._resolveLineOptions(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._resolvePointOptions(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:st(r.tension,l?l.tension:0),hitRadius:c.hitRadius}},_resolvePointOptions:function(e,t){var n,i,r,s=this,o=s.chart,a=o.data.datasets[s.index],c=e.custom||{},l=o.options.elements.point,u={},d={chart:o,dataIndex:t,dataset:a,datasetIndex:s.index},h={backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},f=Object.keys(h);for(n=0,i=f.length;n<i;++n)u[r=f[n]]=ot([c[r],a[h[r]],a[r],l[r]],d,t);return u},_resolveLineOptions:function(e){var t,n,i,r=this.chart,s=r.data.datasets[this.index],o=e.custom||{},a=r.options.elements.line,c={},l=["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"];for(t=0,n=l.length;t<n;++t)c[i=l[t]]=ot([o[i],s[i],a[i]]);return c.tension=st(s.lineTension,a.tension),c},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(e=0,t=o.length;e<t;++e)n=o[e]._model,i=ue.splineCurve(ue.previousItem(o,e,!0)._model,n,ue.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=ue.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=st(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=st(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=st(n.hoverBorderWidth,n.borderWidth),t.radius=st(n.hoverRadius,n.radius)}});ae._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}});var ct={bar:We,bubble:Ue,doughnut:Je,horizontalBar:Qe,line:tt,polarArea:it,pie:rt,radar:at,scatter:tt};function lt(e,t){return e.native?{x:e.x,y:e.y}:ue.getRelativePosition(e,t)}function ut(e,t){var n,i,r,s,o;for(i=0,s=e.data.datasets.length;i<s;++i)if(e.isDatasetVisible(i))for(r=0,o=(n=e.getDatasetMeta(i)).data.length;r<o;++r){var a=n.data[r];a._view.skip||t(a)}}function dt(e,t){var n=[];return ut(e,(function(e){e.inRange(t.x,t.y)&&n.push(e)})),n}function ht(e,t,n,i){var r=Number.POSITIVE_INFINITY,s=[];return ut(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 ft(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 pt(e,t,n){var i=lt(t,e);n.axis=n.axis||"x";var r=ft(n.axis),s=n.intersect?dt(e,i):ht(e,i,!1,r),o=[];return s.length?(e.data.datasets.forEach((function(t,n){if(e.isDatasetVisible(n)){var i=e.getDatasetMeta(n).data[s[0]._index];i&&!i._view.skip&&o.push(i)}})),o):[]}var mt={modes:{single:function(e,t){var n=lt(t,e),i=[];return ut(e,(function(e){if(e.inRange(n.x,n.y))return i.push(e),i})),i.slice(0,1)},label:pt,index:pt,dataset:function(e,t,n){var i=lt(t,e);n.axis=n.axis||"xy";var r=ft(n.axis),s=n.intersect?dt(e,i):ht(e,i,!1,r);return s.length>0&&(s=e.getDatasetMeta(s[0]._datasetIndex).data),s},"x-axis":function(e,t){return pt(e,t,{intersect:!1})},point:function(e,t){return dt(e,lt(t,e))},nearest:function(e,t,n){var i=lt(t,e);n.axis=n.axis||"xy";var r=ft(n.axis);return ht(e,i,n.intersect,r)},x:function(e,t,n){var i=lt(t,e),r=[],s=!1;return ut(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=lt(t,e),r=[],s=!1;return ut(e,(function(e){e.inYRange(i.y)&&r.push(e),e.inRange(i.x,i.y)&&(s=!0)})),n.intersect&&!s&&(r=[]),r}}};function bt(e,t){return ue.where(e,(function(e){return e.position===t}))}function gt(e,t){e.forEach((function(e,t){return e._tmpIndex_=t,e})),e.sort((function(e,n){var i=t?n:e,r=t?e:n;return i.weight===r.weight?i._tmpIndex_-r._tmpIndex_:i.weight-r.weight})),e.forEach((function(e){delete e._tmpIndex_}))}function _t(e,t){ue.each(e,(function(e){t[e.position]+=e.isHorizontal()?e.height:e.width}))}ae._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var yt,vt={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,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=ue.options.toPadding((e.options.layout||{}).padding),r=i.left,s=i.right,o=i.top,a=i.bottom,c=bt(e.boxes,"left"),l=bt(e.boxes,"right"),u=bt(e.boxes,"top"),d=bt(e.boxes,"bottom"),h=bt(e.boxes,"chartArea");gt(c,!0),gt(l,!1),gt(u,!0),gt(d,!1);var f,p=c.concat(l),m=u.concat(d),b=p.concat(m),g=t-r-s,_=n-o-a,y=(t-g/2)/p.length,v=g,w=_,S={top:o,left:r,bottom:a,right:s},M=[];ue.each(b,(function(e){var t,n=e.isHorizontal();n?(t=e.update(e.fullWidth?g:v,_/2),w-=t.height):(t=e.update(y,w),v-=t.width),M.push({horizontal:n,width:t.width,box:e})})),f=function(e){var t=0,n=0,i=0,r=0;return ue.each(e,(function(e){if(e.getPadding){var s=e.getPadding();t=Math.max(t,s.top),n=Math.max(n,s.left),i=Math.max(i,s.bottom),r=Math.max(r,s.right)}})),{top:t,left:n,bottom:i,right:r}}(b),ue.each(p,L),_t(p,S),ue.each(m,L),_t(m,S),ue.each(p,(function(e){var t=ue.findNextWhere(M,(function(t){return t.box===e}));t&&e.update(t.width,w,{left:0,right:0,top:S.top,bottom:S.bottom})})),_t(b,S={top:o,left:r,bottom:a,right:s});var k=Math.max(f.left-S.left,0);S.left+=k,S.right+=Math.max(f.right-S.right,0);var x=Math.max(f.top-S.top,0);S.top+=x,S.bottom+=Math.max(f.bottom-S.bottom,0);var D=n-S.top-S.bottom,T=t-S.left-S.right;T===v&&D===w||(ue.each(p,(function(e){e.height=D})),ue.each(m,(function(e){e.fullWidth||(e.width=T)})),w=D,v=T);var C=r+k,O=o+x;ue.each(c.concat(u),R),C+=v,O+=w,ue.each(l,R),ue.each(d,R),e.chartArea={left:S.left,top:S.top,right:S.left+v,bottom:S.top+w},ue.each(h,(function(t){t.left=e.chartArea.left,t.top=e.chartArea.top,t.right=e.chartArea.right,t.bottom=e.chartArea.bottom,t.update(v,w)}))}function L(e){var t=ue.findNextWhere(M,(function(t){return t.box===e}));if(t)if(t.horizontal){var n={left:Math.max(S.left,f.left),right:Math.max(S.right,f.right),top:0,bottom:0};e.update(e.fullWidth?g:v,_/2,n)}else e.update(t.width,w)}function R(e){e.isHorizontal()?(e.left=e.fullWidth?r:S.left,e.right=e.fullWidth?t-s:S.left+v,e.top=O,e.bottom=O+e.height,O=e.bottom):(e.left=C,e.right=C+e.width,e.top=S.top,e.bottom=S.top+w,C=e.right)}}},wt=(yt=Object.freeze({default:"/*\n * DOM element rendering detection\n * https://davidwalsh.name/detect-node-insertion\n */\n@keyframes chartjs-render-animation {\n\tfrom { opacity: 0.99; }\n\tto { opacity: 1; }\n}\n\n.chartjs-render-monitor {\n\tanimation: chartjs-render-animation 0.001s;\n}\n\n/*\n * DOM element resizing detection\n * https://github.com/marcj/css-element-queries\n */\n.chartjs-size-monitor,\n.chartjs-size-monitor-expand,\n.chartjs-size-monitor-shrink {\n\tposition: absolute;\n\tdirection: ltr;\n\tleft: 0;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\toverflow: hidden;\n\tpointer-events: none;\n\tvisibility: hidden;\n\tz-index: -1;\n}\n\n.chartjs-size-monitor-expand > div {\n\tposition: absolute;\n\twidth: 1000000px;\n\theight: 1000000px;\n\tleft: 0;\n\ttop: 0;\n}\n\n.chartjs-size-monitor-shrink > div {\n\tposition: absolute;\n\twidth: 200%;\n\theight: 200%;\n\tleft: 0;\n\ttop: 0;\n}\n"}))&&yt.default||yt,St="chartjs-size-monitor",Mt="chartjs-render-monitor",kt=["animationstart","webkitAnimationStart"],xt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function Dt(e,t){var n=ue.getStyle(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):void 0}var Tt=!!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 Ct(e,t,n){e.addEventListener(t,n,Tt)}function Ot(e,t,n){e.removeEventListener(t,n,Tt)}function Lt(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 Rt(e){var t=document.createElement("div");return t.className=e||"",t}var Et={disableCSSInjection:!1,_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,_ensureLoaded:function(){this._loaded||(this._loaded=!0,this.disableCSSInjection||function(e,t){var n=e._style||document.createElement("style");e._style||(e._style=n,t="/* Chart.js */\n"+t,n.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n)),n.appendChild(document.createTextNode(t))}(this,wt))},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 this._ensureLoaded(),n&&n.canvas===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=Dt(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=Dt(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];ue.isNullOrUndef(i)?t.removeAttribute(e):t.setAttribute(e,i)})),ue.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={});Ct(i,t,(r.proxies||(r.proxies={}))[e.id+"_"+t]=function(t){n(function(e,t){var n=xt[e.type]||e.type,i=ue.getRelativePosition(e,t);return Lt(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=Rt(St),i=Rt(St+"-expand"),r=Rt(St+"-shrink");i.appendChild(Rt()),r.appendChild(Rt()),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 Ct(i,"scroll",s.bind(i,"expand")),Ct(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(Lt("resize",n)),i&&i.clientWidth<r&&n.canvas&&t(Lt("resize",n))}},s=!1,o=[],function(){o=Array.prototype.slice.call(arguments),r=r||this,s||(s=!0,ue.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()};ue.each(kt,(function(t){Ct(e,t,i)})),n.reflow=!!e.offsetParent,e.classList.add(Mt)}(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&&Ot(o,t,a)}else s=(r=(i=o).$chartjs||{}).resizer,delete r.resizer,function(e){var t=e.$chartjs||{},n=t.renderProxy;n&&(ue.each(kt,(function(t){Ot(e,t,n)})),delete t.renderProxy),e.classList.remove(Mt)}(i),s&&s.parentNode&&s.parentNode.removeChild(s)}};ue.addEvent=Ct,ue.removeEvent=Ot;var At=ue.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},Et._enabled?Et:{acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}});ae._set("global",{plugins:{}});var It={_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=ue.clone(ae.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}},Pt={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=ue.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?ue.merge({},[ae.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){var n=this;n.defaults.hasOwnProperty(e)&&(n.defaults[e]=ue.extend(n.defaults[e],t))},addScalesToLayout:function(e){ue.each(e.scales,(function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,vt.addBox(e,t)}))}},Nt=ue.valueOrDefault;ae._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:ue.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:ue.noop,beforeBody:ue.noop,beforeLabel:ue.noop,label:function(e,t){var n=t.datasets[e.datasetIndex].label||"";return n&&(n+=": "),ue.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:ue.noop,afterBody:ue.noop,beforeFooter:ue.noop,footer:ue.noop,afterFooter:ue.noop}}});var jt={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=ue.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 Ft(e,t){return t&&(ue.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Yt(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function zt(e){var t=ae.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,bodyFontColor:e.bodyFontColor,_bodyFontFamily:Nt(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:Nt(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:Nt(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:Nt(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:Nt(e.titleFontStyle,t.defaultFontStyle),titleFontSize:Nt(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:Nt(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:Nt(e.footerFontStyle,t.defaultFontStyle),footerFontSize:Nt(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 $t(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function Ht(e){return Ft([],Yt(e))}var Wt=pe.extend({initialize:function(){this._model=zt(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=Ft(s,Yt(n)),s=Ft(s,Yt(i)),Ft(s,Yt(r))},getBeforeBody:function(){return Ht(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,i=n._options.callbacks,r=[];return ue.each(e,(function(e){var s={before:[],lines:[],after:[]};Ft(s.before,Yt(i.beforeLabel.call(n,e,t))),Ft(s.lines,i.label.call(n,e,t)),Ft(s.after,Yt(i.afterLabel.call(n,e,t))),r.push(s)})),r},getAfterBody:function(){return Ht(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=Ft(s,Yt(n)),s=Ft(s,Yt(i)),Ft(s,Yt(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=zt(h),m=d._active,b=d._data,g={xAlign:f.xAlign,yAlign:f.yAlign},_={x:f.x,y:f.y},y={width:f.width,height:f.height},v={x:f.caretX,y:f.caretY};if(m.length){p.opacity=1;var w=[],S=[];v=jt[h.position].call(d,m,d._eventPosition);var M=[];for(t=0,n=m.length;t<n;++t)M.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&&(M=M.filter((function(e){return h.filter(e,b)}))),h.itemSort&&(M=M.sort((function(e,t){return h.itemSort(e,t,b)}))),ue.each(M,(function(e){w.push(h.callbacks.labelColor.call(d,e,d._chart)),S.push(h.callbacks.labelTextColor.call(d,e,d._chart))})),p.title=d.getTitle(M,b),p.beforeBody=d.getBeforeBody(M,b),p.body=d.getBody(M,b),p.afterBody=d.getAfterBody(M,b),p.footer=d.getFooter(M,b),p.x=v.x,p.y=v.y,p.caretPadding=h.caretPadding,p.labelColors=w,p.labelTextColors=S,p.dataPoints=M,_=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,y=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=ue.fontString(l,t._titleFontStyle,t._titleFontFamily),ue.each(t.title,f),n.font=ue.fontString(u,t._bodyFontStyle,t._bodyFontFamily),ue.each(t.beforeBody.concat(t.afterBody),f),h=t.displayColors?u+2:0,ue.each(s,(function(e){ue.each(e.before,f),ue.each(e.lines,f),ue.each(e.after,f)})),h=0,n.font=ue.fontString(d,t._footerFontStyle,t._footerFontFamily),ue.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,y),d._chart)}else p.opacity=0;return p.xAlign=g.xAlign,p.yAlign=g.yAlign,p.x=_.x,p.y=_.y,p.width=y.width,p.height=y.height,p.caretX=v.x,p.caretY=v.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=t.title;if(i.length){e.x=$t(t,t._titleAlign),n.textAlign=t._titleAlign,n.textBaseline="top";var r,s,o=t.titleFontSize,a=t.titleSpacing;for(n.fillStyle=t.titleFontColor,n.font=ue.fontString(o,t._titleFontStyle,t._titleFontFamily),r=0,s=i.length;r<s;++r)n.fillText(i[r],e.x,e.y),e.y+=o+a,r+1===i.length&&(e.y+=t.titleMarginBottom-a)}},drawBody:function(e,t,n){var i,r=t.bodyFontSize,s=t.bodySpacing,o=t._bodyAlign,a=t.body,c=t.displayColors,l=t.labelColors,u=0,d=c?$t(t,"left"):0;n.textAlign=o,n.textBaseline="top",n.font=ue.fontString(r,t._bodyFontStyle,t._bodyFontFamily),e.x=$t(t,o);var h=function(t){n.fillText(t,e.x+u,e.y),e.y+=r+s};n.fillStyle=t.bodyFontColor,ue.each(t.beforeBody,h),u=c&&"right"!==o?"center"===o?r/2+1:r+2:0,ue.each(a,(function(s,o){n.fillStyle=i=t.labelTextColors[o],ue.each(s.before,h),ue.each(s.lines,(function(s){c&&(n.fillStyle=t.legendColorBackground,n.fillRect(d,e.y,r,r),n.lineWidth=1,n.strokeStyle=l[o].borderColor,n.strokeRect(d,e.y,r,r),n.fillStyle=l[o].backgroundColor,n.fillRect(d+1,e.y+1,r-2,r-2),n.fillStyle=i),h(s)})),ue.each(s.after,h)})),u=0,ue.each(t.afterBody,h),e.y-=s},drawFooter:function(e,t,n){var i=t.footer;i.length&&(e.x=$t(t,t._footerAlign),e.y+=t.footerMarginTop,n.textAlign=t._footerAlign,n.textBaseline="top",n.fillStyle=t.footerFontColor,n.font=ue.fontString(t.footerFontSize,t._footerFontStyle,t._footerFontFamily),ue.each(i,(function(i){n.fillText(i,e.x,e.y),e.y+=t.footerFontSize+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,this.drawTitle(i,t,e),this.drawBody(i,t,e),this.drawFooter(i,t,e),e.restore())}},handleEvent:function(e){var t,n=this,i=n._options;return n._lastActive=n._lastActive||[],n._active="mouseout"===e.type?[]:n._chart.getElementsAtEventForMode(e,i.mode,i),(t=!ue.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}});Wt.positioners=jt;var Vt=ue.valueOrDefault;function Bt(){return ue.merge({},[].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=Vt((o=n[e][r]).type,"xAxes"===e?"category":"linear"),r>=t[e].length&&t[e].push({}),ue.merge(t[e][r],!t[e][r].type||o.type&&o.type!==t[e][r].type?[Pt.getScaleDefaults(s),o]:o)}else ue._merger(e,t,n,i)}})}function Ut(){return ue.merge({},[].slice.call(arguments),{merger:function(e,t,n,i){var r=t[e]||{},s=n[e];"scales"===e?t[e]=Bt(r,s):"scale"===e?t[e]=ue.merge(r,[Pt.getScaleDefaults(s.type),s]):ue._merger(e,t,n,i)}})}function Gt(e){var t=e.options;ue.each(e.scales,(function(t){vt.removeBox(e,t)})),t=Ut(ae.global,ae[e.config.type],t),e.options=e.config.options=t,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=t.tooltips,e.tooltip.initialize()}function qt(e){return"top"===e||"bottom"===e}ae._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 Jt=function(e,t){return this.construct(e,t),this};ue.extend(Jt.prototype,{construct:function(e,t){var n=this;t=function(e){var t=(e=e||{}).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Ut(ae.global,ae[e.type],e.options||{}),e}(t);var i=At.acquireContext(e,t),r=i&&i.canvas,s=r&&r.height,o=r&&r.width;n.id=ue.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.chart=n,n.controller=n,Jt.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 It.notify(e,"beforeInit"),ue.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.initToolTip(),It.notify(e,"afterInit"),e},clear:function(){return ue.canvas.clear(this),this},stop:function(){return ge.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(ue.getMaximumWidth(i))),o=Math.max(0,Math.floor(r?s/r:ue.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",ue.retinaScale(t,n.devicePixelRatio),!e)){var a={width:s,height:o};It.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;ue.each(t.xAxes,(function(e,t){e.id=e.id||"x-axis-"+t})),ue.each(t.yAxes,(function(e,t){e.id=e.id||"y-axis-"+t})),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"}),ue.each(i,(function(t){var i=t.options,s=i.id,o=Vt(i.type,t.dtype);qt(i.position)!==qt(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=Pt.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)})),ue.each(r,(function(e,t){e||delete n[t]})),e.scales=n,Pt.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e=this,t=[];return ue.each(e.data.datasets,(function(n,i){var r=e.getDatasetMeta(i),s=n.type||e.config.type;if(r.type&&r.type!==s&&(e.destroyDatasetMeta(i),r=e.getDatasetMeta(i)),r.type=s,r.controller)r.controller.updateIndex(i),r.controller.linkScales();else{var o=ct[r.type];if(void 0===o)throw new Error('"'+r.type+'" is not a chart type.');r.controller=new o(e,i),t.push(r.controller)}}),e),t},resetElements:function(){var e=this;ue.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=this;if(e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]}),Gt(t),It._invalidate(t),!1!==It.notify(t,"beforeUpdate")){t.tooltip._data=t.data;var n=t.buildOrUpdateControllers();ue.each(t.data.datasets,(function(e,n){t.getDatasetMeta(n).controller.buildOrUpdateElements()}),t),t.updateLayout(),t.options.animation&&t.options.animation.duration&&ue.each(n,(function(e){e.reset()})),t.updateDatasets(),t.tooltip.initialize(),t.lastActive=[],It.notify(t,"afterUpdate"),t._bufferedRender?t._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:t.render(e)}},updateLayout:function(){var e=this;!1!==It.notify(e,"beforeLayout")&&(vt.update(this,this.width,this.height),It.notify(e,"afterScaleUpdate"),It.notify(e,"afterLayout"))},updateDatasets:function(){var e=this;if(!1!==It.notify(e,"beforeDatasetsUpdate")){for(var t=0,n=e.data.datasets.length;t<n;++t)e.updateDataset(t);It.notify(e,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this,n=t.getDatasetMeta(e),i={meta:n,index:e};!1!==It.notify(t,"beforeDatasetUpdate",[i])&&(n.controller.update(),It.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=Vt(e.duration,n&&n.duration),r=e.lazy;if(!1!==It.notify(t,"beforeRender")){var s=function(e){It.notify(t,"afterRender"),ue.callback(n&&n.onComplete,[e],t)};if(n&&i){var o=new be({numSteps:i/16.66,easing:e.easing||n.easing,render:function(e,t){var n=t.currentStep,i=n/t.numSteps;e.draw((0,ue.easing.effects[t.easing])(i),i,n)},onAnimationProgress:n.onProgress,onAnimationComplete:s});ge.addAnimation(t,o,i,r)}else t.draw(),s(new be({numSteps:0,chart:t}));return t}},draw:function(e){var t=this;t.clear(),ue.isNullOrUndef(e)&&(e=1),t.transition(e),t.width<=0||t.height<=0||!1!==It.notify(t,"beforeDraw",[e])&&(ue.each(t.boxes,(function(e){e.draw(t.chartArea)}),t),t.drawDatasets(e),t._drawTooltip(e),It.notify(t,"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)},drawDatasets:function(e){var t=this;if(!1!==It.notify(t,"beforeDatasetsDraw",[e])){for(var n=(t.data.datasets||[]).length-1;n>=0;--n)t.isDatasetVisible(n)&&t.drawDataset(n,e);It.notify(t,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n=this,i=n.getDatasetMeta(e),r={meta:i,index:e,easingValue:t};!1!==It.notify(n,"beforeDatasetDraw",[r])&&(i.controller.draw(t),It.notify(n,"afterDatasetDraw",[r]))},_drawTooltip:function(e){var t=this,n=t.tooltip,i={tooltip:n,easingValue:e};!1!==It.notify(t,"beforeTooltipDraw",[i])&&(n.draw(),It.notify(t,"afterTooltipDraw",[i]))},getElementAtEvent:function(e){return mt.modes.single(this,e)},getElementsAtEvent:function(e){return mt.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return mt.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var i=mt.modes[t];return"function"==typeof i?i(this,e,n):[]},getDatasetAtEvent:function(e){return mt.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}),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(),ue.canvas.clear(n),At.releaseContext(n.ctx),n.canvas=null,n.ctx=null),It.notify(n,"destroy"),delete Jt.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new Wt({_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)};ue.each(e.options.events,(function(i){At.addEventListener(e,i,n),t[i]=n})),e.options.responsive&&(n=function(){e.resize()},At.addEventListener(e,"resize",n),t.resize=n)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,ue.each(t,(function(t,n){At.removeEventListener(e,n,t)})))},updateHoverStyle:function(e,t,n){var i,r,s,o=n?"setHoverStyle":"removeHoverStyle";for(r=0,s=e.length;r<s;++r)(i=e[r])&&this.getDatasetMeta(i._datasetIndex).controller[o](i)},eventHandler:function(e){var t=this,n=t.tooltip;if(!1!==It.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)),It.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),ue.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=!ue.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,t}}),Jt.instances={};var Qt=Jt;function Kt(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function Zt(e){this.options=e||{}}Jt.Controller=Jt,Jt.types={},ue.configMerge=Ut,ue.scaleMerge=Bt,ue.extend(Zt.prototype,{formats:Kt,parse:Kt,format:Kt,add:Kt,diff:Kt,startOf:Kt,endOf:Kt,_create:function(e){return e}}),Zt.override=function(e){ue.extend(Zt.prototype,e)};var Xt={_date:Zt},en={formatters:{values:function(e){return ue.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=ue.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=ue.log10(Math.abs(e));s=e.toExponential(Math.floor(o)-Math.floor(r))}else{var a=-1*Math.floor(r);a=Math.max(Math.min(a,20),0),s=e.toFixed(a)}else s="0";return s},logarithmic:function(e,t,n){var i=e/Math.pow(10,Math.floor(ue.log10(e)));return 0===e?"0":1===i||2===i||5===i||0===t||t===n.length-1?e.toExponential():""}}},tn=ue.valueOrDefault,nn=ue.valueAtIndexOrDefault;function rn(e){var t,n,i=[];for(t=0,n=e.length;t<n;++t)i.push(e[t].label);return i}function sn(e,t,n){return ue.isArray(t)?ue.longestText(e,n,t):e.measureText(t).width}ae._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:en.formatters.values,minor:{},major:{}}});var on=pe.extend({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},mergeTicksOptions:function(){var e=this.options.ticks;for(var t in!1===e.minor&&(e.minor={display:!1}),!1===e.major&&(e.major={display:!1}),e)"major"!==t&&"minor"!==t&&(void 0===e.minor[t]&&(e.minor[t]=e[t]),void 0===e.major[t]&&(e.major[t]=e[t]))},beforeUpdate:function(){ue.callback(this.options.beforeUpdate,[this])},update:function(e,t,n){var i,r,s,o,a,c,l=this;for(l.beforeUpdate(),l.maxWidth=e,l.maxHeight=t,l.margins=ue.extend({left:0,right:0,top:0,bottom:0},n),l._maxLabelLines=0,l.longestLabelWidth=0,l.longestTextCache=l.longestTextCache||{},l.beforeSetDimensions(),l.setDimensions(),l.afterSetDimensions(),l.beforeDataLimits(),l.determineDataLimits(),l.afterDataLimits(),l.beforeBuildTicks(),a=l.buildTicks()||[],a=l.afterBuildTicks(a)||a,l.beforeTickToLabelConversion(),s=l.convertTicksToLabels(a)||l.ticks,l.afterTickToLabelConversion(),l.ticks=s,i=0,r=s.length;i<r;++i)o=s[i],(c=a[i])?c.label=o:a.push(c={label:o,major:!1});return l._ticks=a,l.beforeCalculateTickRotation(),l.calculateTickRotation(),l.afterCalculateTickRotation(),l.beforeFit(),l.fit(),l.afterFit(),l.afterUpdate(),l.minSize},afterUpdate:function(){ue.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){ue.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(){ue.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){ue.callback(this.options.beforeDataLimits,[this])},determineDataLimits:ue.noop,afterDataLimits:function(){ue.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){ue.callback(this.options.beforeBuildTicks,[this])},buildTicks:ue.noop,afterBuildTicks:function(e){var t=this;return ue.isArray(e)&&e.length?ue.callback(t.options.afterBuildTicks,[t,e]):(t.ticks=ue.callback(t.options.afterBuildTicks,[t,t.ticks])||t.ticks,e)},beforeTickToLabelConversion:function(){ue.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(){ue.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){ue.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e=this,t=e.ctx,n=e.options.ticks,i=rn(e._ticks),r=ue.options._parseFont(n);t.font=r.string;var s=n.minRotation||0;if(i.length&&e.options.display&&e.isHorizontal())for(var o,a=ue.longestText(t,r.string,i,e.longestTextCache),c=a,l=e.getPixelForTick(1)-e.getPixelForTick(0)-6;c>l&&s<n.maxRotation;){var u=ue.toRadians(s);if(o=Math.cos(u),Math.sin(u)*a>e.maxHeight){s--;break}s++,c=o*a}e.labelRotation=s},afterCalculateTickRotation:function(){ue.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){ue.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=rn(e._ticks),i=e.options,r=i.ticks,s=i.scaleLabel,o=i.gridLines,a=e._isVisible(),c=i.position,l=e.isHorizontal(),u=ue.options._parseFont,d=u(r),h=i.gridLines.tickMarkLength;if(t.width=l?e.isFullWidth()?e.maxWidth-e.margins.left-e.margins.right:e.maxWidth:a&&o.drawTicks?h:0,t.height=l?a&&o.drawTicks?h:0:e.maxHeight,s.display&&a){var f=u(s),p=ue.options.toPadding(s.padding),m=f.lineHeight+p.height;l?t.height+=m:t.width+=m}if(r.display&&a){var b=ue.longestText(e.ctx,d.string,n,e.longestTextCache),g=ue.numberOfLabelLines(n),_=.5*d.size,y=e.options.ticks.padding;if(e._maxLabelLines=g,e.longestLabelWidth=b,l){var v=ue.toRadians(e.labelRotation),w=Math.cos(v),S=Math.sin(v);t.height=Math.min(e.maxHeight,t.height+(S*b+d.lineHeight*g+_)+y),e.ctx.font=d.string;var M,k,x=sn(e.ctx,n[0],d.string),D=sn(e.ctx,n[n.length-1],d.string),T=e.getPixelForTick(0)-e.left,C=e.right-e.getPixelForTick(n.length-1);0!==e.labelRotation?(M="bottom"===c?w*x:w*_,k="bottom"===c?w*_:w*D):(M=x/2,k=D/2),e.paddingLeft=Math.max(M-T,0)+3,e.paddingRight=Math.max(k-C,0)+3}else r.mirror?b=0:b+=y+_,t.width=Math.min(e.maxWidth,t.width+b),e.paddingTop=d.size/2,e.paddingBottom=d.size/2}e.handleMargins(),e.width=t.width,e.height=t.height},handleMargins:function(){var e=this;e.margins&&(e.paddingLeft=Math.max(e.paddingLeft-e.margins.left,0),e.paddingTop=Math.max(e.paddingTop-e.margins.top,0),e.paddingRight=Math.max(e.paddingRight-e.margins.right,0),e.paddingBottom=Math.max(e.paddingBottom-e.margins.bottom,0))},afterFit:function(){ue.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(ue.isNullOrUndef(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},getLabelForIndex:ue.noop,getPixelForValue:ue.noop,getValueForPixel:ue.noop,getPixelForTick:function(e){var t=this,n=t.options.offset;if(t.isHorizontal()){var i=(t.width-(t.paddingLeft+t.paddingRight))/Math.max(t._ticks.length-(n?0:1),1),r=i*e+t.paddingLeft;return n&&(r+=i/2),t.left+r+(t.isFullWidth()?t.margins.left:0)}return t.top+e*((t.height-(t.paddingTop+t.paddingBottom))/(t._ticks.length-1))},getPixelForDecimal:function(e){var t=this;return t.isHorizontal()?t.left+((t.width-(t.paddingLeft+t.paddingRight))*e+t.paddingLeft)+(t.isFullWidth()?t.margins.left:0):t.top+e*t.height},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=this,r=i.isHorizontal(),s=e.length,o=!1,a=i.options.ticks.minor.maxTicksLimit,c=i._tickSize()*(s-1),l=r?i.width-(i.paddingLeft+i.paddingRight):i.height-(i.paddingTop+i.PaddingBottom),u=[];for(c>l&&(o=1+Math.floor(c/l)),s>a&&(o=Math.max(o,1+Math.floor(s/a))),t=0;t<s;t++)n=e[t],o>1&&t%o>0&&delete n.label,u.push(n);return u},_tickSize:function(){var e=this,t=e.isHorizontal(),n=e.options.ticks.minor,i=ue.toRadians(e.labelRotation),r=Math.abs(Math.cos(i)),s=Math.abs(Math.sin(i)),o=n.autoSkipPadding||0,a=e.longestLabelWidth+o||0,c=ue.options._parseFont(n),l=e._maxLabelLines*c.lineHeight+o||0;return t?l*r>a*s?a/r:l/s:l*s<a*r?l/r:a/s},_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},draw:function(e){var t=this,n=t.options;if(t._isVisible()){var i,r,s,o=t.chart,a=t.ctx,c=ae.global.defaultFontColor,l=n.ticks.minor,u=n.ticks.major||l,d=n.gridLines,h=n.scaleLabel,f=n.position,p=0!==t.labelRotation,m=l.mirror,b=t.isHorizontal(),g=ue.options._parseFont,_=l.display&&l.autoSkip?t._autoSkip(t.getTicks()):t.getTicks(),y=tn(l.fontColor,c),v=g(l),w=v.lineHeight,S=tn(u.fontColor,c),M=g(u),k=l.padding,x=l.labelOffset,D=d.drawTicks?d.tickMarkLength:0,T=tn(h.fontColor,c),C=g(h),O=ue.options.toPadding(h.padding),L=ue.toRadians(t.labelRotation),R=[],E=d.drawBorder?nn(d.lineWidth,0,0):0,A=ue._alignPixel;if("top"===f?(i=A(o,t.bottom,E),r=t.bottom-D,s=i-E/2):"bottom"===f?(i=A(o,t.top,E),r=i+E/2,s=t.top+D):"left"===f?(i=A(o,t.right,E),r=t.right-D,s=i-E/2):(i=A(o,t.left,E),r=i+E/2,s=t.left+D),ue.each(_,(function(i,a){if(!ue.isNullOrUndef(i.label)){var c,l,u,h,g,_,y,v,S,M,T,C,O,I,P,N,j=i.label;a===t.zeroLineIndex&&n.offset===d.offsetGridLines?(c=d.zeroLineWidth,l=d.zeroLineColor,u=d.zeroLineBorderDash||[],h=d.zeroLineBorderDashOffset||0):(c=nn(d.lineWidth,a),l=nn(d.color,a),u=d.borderDash||[],h=d.borderDashOffset||0);var F=ue.isArray(j)?j.length:1,Y=function(e,t,n){var i=e.getPixelForTick(t);return n&&(1===e.getTicks().length?i-=e.isHorizontal()?Math.max(i-e.left,e.right-i):Math.max(i-e.top,e.bottom-i):i-=0===t?(e.getPixelForTick(1)-i)/2:(i-e.getPixelForTick(t-1))/2),i}(t,a,d.offsetGridLines);if(b){var z=D+k;Y<t.left-1e-7&&(l="rgba(0,0,0,0)"),g=y=S=T=A(o,Y,c),_=r,v=s,O=t.getPixelForTick(a)+x,"top"===f?(M=A(o,e.top,E)+E/2,C=e.bottom,P=((p?1:.5)-F)*w,N=p?"left":"center",I=t.bottom-z):(M=e.top,C=A(o,e.bottom,E)-E/2,P=(p?0:.5)*w,N=p?"right":"center",I=t.top+z)}else{var $=(m?0:D)+k;Y<t.top-1e-7&&(l="rgba(0,0,0,0)"),g=r,y=s,_=v=M=C=A(o,Y,c),I=t.getPixelForTick(a)+x,P=(1-F)*w/2,"left"===f?(S=A(o,e.left,E)+E/2,T=e.right,N=m?"left":"right",O=t.right-$):(S=e.left,T=A(o,e.right,E)-E/2,N=m?"right":"left",O=t.left+$)}R.push({tx1:g,ty1:_,tx2:y,ty2:v,x1:S,y1:M,x2:T,y2:C,labelX:O,labelY:I,glWidth:c,glColor:l,glBorderDash:u,glBorderDashOffset:h,rotation:-1*L,label:j,major:i.major,textOffset:P,textAlign:N})}})),ue.each(R,(function(e){var t=e.glWidth,n=e.glColor;if(d.display&&t&&n&&(a.save(),a.lineWidth=t,a.strokeStyle=n,a.setLineDash&&(a.setLineDash(e.glBorderDash),a.lineDashOffset=e.glBorderDashOffset),a.beginPath(),d.drawTicks&&(a.moveTo(e.tx1,e.ty1),a.lineTo(e.tx2,e.ty2)),d.drawOnChartArea&&(a.moveTo(e.x1,e.y1),a.lineTo(e.x2,e.y2)),a.stroke(),a.restore()),l.display){a.save(),a.translate(e.labelX,e.labelY),a.rotate(e.rotation),a.font=e.major?M.string:v.string,a.fillStyle=e.major?S:y,a.textBaseline="middle",a.textAlign=e.textAlign;var i=e.label,r=e.textOffset;if(ue.isArray(i))for(var s=0;s<i.length;++s)a.fillText(""+i[s],0,r),r+=w;else a.fillText(i,0,r);a.restore()}})),h.display){var I,P,N=0,j=C.lineHeight/2;if(b)I=t.left+(t.right-t.left)/2,P="bottom"===f?t.bottom-j-O.bottom:t.top+j+O.top;else{var F="left"===f;I=F?t.left+j+O.top:t.right-j-O.top,P=t.top+(t.bottom-t.top)/2,N=F?-.5*Math.PI:.5*Math.PI}a.save(),a.translate(I,P),a.rotate(N),a.textAlign="center",a.textBaseline="middle",a.fillStyle=T,a.font=C.string,a.fillText(h.labelString,0,0),a.restore()}if(E){var Y,z,$,H,W=E,V=nn(d.lineWidth,_.length-1,0);b?(Y=A(o,t.left,W)-W/2,z=A(o,t.right,V)+V/2,$=H=i):($=A(o,t.top,W)-W/2,H=A(o,t.bottom,V)+V/2,Y=z=i),a.lineWidth=E,a.strokeStyle=nn(d.color,0),a.beginPath(),a.moveTo(Y,$),a.lineTo(z,H),a.stroke()}}}}),an=on.extend({getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels},determineDataLimits:function(){var e,t=this,n=t.getLabels();t.minIndex=0,t.maxIndex=n.length-1,void 0!==t.options.ticks.min&&(e=n.indexOf(t.options.ticks.min),t.minIndex=-1!==e?e:t.minIndex),void 0!==t.options.ticks.max&&(e=n.indexOf(t.options.ticks.max),t.maxIndex=-1!==e?e:t.maxIndex),t.min=n[t.minIndex],t.max=n[t.maxIndex]},buildTicks:function(){var e=this,t=e.getLabels();e.ticks=0===e.minIndex&&e.maxIndex===t.length-1?t:t.slice(e.minIndex,e.maxIndex+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.ticks[e-n.minIndex]},getPixelForValue:function(e,t){var n,i=this,r=i.options.offset,s=Math.max(i.maxIndex+1-i.minIndex-(r?0:1),1);if(null!=e&&(n=i.isHorizontal()?e.x:e.y),void 0!==n||void 0!==e&&isNaN(t)){var o=i.getLabels().indexOf(e=n||e);t=-1!==o?o:t}if(i.isHorizontal()){var a=i.width/s,c=a*(t-i.minIndex);return r&&(c+=a/2),i.left+c}var l=i.height/s,u=l*(t-i.minIndex);return r&&(u+=l/2),i.top+u},getPixelForTick:function(e){return this.getPixelForValue(this.ticks[e],e+this.minIndex,null)},getValueForPixel:function(e){var t=this,n=t.options.offset,i=Math.max(t._ticks.length-(n?0:1),1),r=t.isHorizontal(),s=(r?t.width:t.height)/i;return e-=r?t.left:t.top,n&&(e-=s/2),(e<=0?0:Math.round(e/s))+t.minIndex},getBasePixel:function(){return this.bottom}});an._defaults={position:"bottom"};var cn=ue.isNullOrUndef,ln=on.extend({getRightValue:function(e){return"string"==typeof e?+e:on.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=ue.sign(e.min),i=ue.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:ue.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:ue.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=ue.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=ue.niceNum(s*m/l/c)*c),a||cn(h)?n=Math.pow(10,ue._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)&&ue.almostWhole(u/m,m/1e3)&&(i=u),!cn(d)&&ue.almostWhole(d/m,m/1e3)&&(r=d)),s=ue.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=ue.max(r),e.min=ue.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),on.prototype.convertTicksToLabels.call(e)}}),un={position:"left",ticks:{callback:en.formatters.linear}},dn=ln.extend({determineDataLimits:function(){var e=this,t=e.options,n=e.chart,i=n.data.datasets,r=e.isHorizontal();function s(t){return r?t.xAxisID===e.id:t.yAxisID===e.id}e.min=null,e.max=null;var o=t.stacked;if(void 0===o&&ue.each(i,(function(e,t){if(!o){var i=n.getDatasetMeta(t);n.isDatasetVisible(t)&&s(i)&&void 0!==i.stack&&(o=!0)}})),t.stacked||o){var a={};ue.each(i,(function(i,r){var o=n.getDatasetMeta(r),c=[o.type,void 0===t.stacked&&void 0===o.stack?r:"",o.stack].join(".");void 0===a[c]&&(a[c]={positiveValues:[],negativeValues:[]});var l=a[c].positiveValues,u=a[c].negativeValues;n.isDatasetVisible(r)&&s(o)&&ue.each(i.data,(function(n,i){var r=+e.getRightValue(n);isNaN(r)||o.data[i].hidden||(l[i]=l[i]||0,u[i]=u[i]||0,t.relativePoints?l[i]=100:r<0?u[i]+=r:l[i]+=r)}))})),ue.each(a,(function(t){var n=t.positiveValues.concat(t.negativeValues),i=ue.min(n),r=ue.max(n);e.min=null===e.min?i:Math.min(e.min,i),e.max=null===e.max?r:Math.max(e.max,r)}))}else ue.each(i,(function(t,i){var r=n.getDatasetMeta(i);n.isDatasetVisible(i)&&s(r)&&ue.each(t.data,(function(t,n){var i=+e.getRightValue(t);isNaN(i)||r.data[n].hidden||((null===e.min||i<e.min)&&(e.min=i),(null===e.max||i>e.max)&&(e.max=i))}))}));e.min=isFinite(e.min)&&!isNaN(e.min)?e.min:0,e.max=isFinite(e.max)&&!isNaN(e.max)?e.max:1,this.handleTickRangeOptions()},_computeTickLimit:function(){var e,t=this;return t.isHorizontal()?Math.ceil(t.width/40):(e=ue.options._parseFont(t.options.ticks),Math.ceil(t.height/e.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this,n=t.start,i=+t.getRightValue(e),r=t.end-n;return t.isHorizontal()?t.left+t.width/r*(i-n):t.bottom-t.height/r*(i-n)},getValueForPixel:function(e){var t=this,n=t.isHorizontal();return t.start+(n?e-t.left:t.bottom-e)/(n?t.width:t.height)*(t.end-t.start)},getPixelForTick:function(e){return this.getPixelForValue(this.ticksAsNumbers[e])}});dn._defaults=un;var hn=ue.valueOrDefault,fn={position:"left",ticks:{callback:en.formatters.logarithmic}};function pn(e,t){return ue.isFinite(e)&&e>=0?e:t}var mn=on.extend({determineDataLimits:function(){var e=this,t=e.options,n=e.chart,i=n.data.datasets,r=e.isHorizontal();function s(t){return r?t.xAxisID===e.id:t.yAxisID===e.id}e.min=null,e.max=null,e.minNotZero=null;var o=t.stacked;if(void 0===o&&ue.each(i,(function(e,t){if(!o){var i=n.getDatasetMeta(t);n.isDatasetVisible(t)&&s(i)&&void 0!==i.stack&&(o=!0)}})),t.stacked||o){var a={};ue.each(i,(function(i,r){var o=n.getDatasetMeta(r),c=[o.type,void 0===t.stacked&&void 0===o.stack?r:"",o.stack].join(".");n.isDatasetVisible(r)&&s(o)&&(void 0===a[c]&&(a[c]=[]),ue.each(i.data,(function(t,n){var i=a[c],r=+e.getRightValue(t);isNaN(r)||o.data[n].hidden||r<0||(i[n]=i[n]||0,i[n]+=r)})))})),ue.each(a,(function(t){if(t.length>0){var n=ue.min(t),i=ue.max(t);e.min=null===e.min?n:Math.min(e.min,n),e.max=null===e.max?i:Math.max(e.max,i)}}))}else ue.each(i,(function(t,i){var r=n.getDatasetMeta(i);n.isDatasetVisible(i)&&s(r)&&ue.each(t.data,(function(t,n){var i=+e.getRightValue(t);isNaN(i)||r.data[n].hidden||i<0||((null===e.min||i<e.min)&&(e.min=i),(null===e.max||i>e.max)&&(e.max=i),0!==i&&(null===e.minNotZero||i<e.minNotZero)&&(e.minNotZero=i))}))}));this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;e.min=pn(t.min,e.min),e.max=pn(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(ue.log10(e.min))-1),e.max=Math.pow(10,Math.floor(ue.log10(e.max))+1)):(e.min=1,e.max=10)),null===e.min&&(e.min=Math.pow(10,Math.floor(ue.log10(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(ue.log10(e.min))+1):10),null===e.minNotZero&&(e.minNotZero=e.min>0?e.min:e.max<1?Math.pow(10,Math.floor(ue.log10(e.max))):1)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),i={min:pn(t.min),max:pn(t.max)},r=e.ticks=function(e,t){var n,i,r=[],s=hn(e.min,Math.pow(10,Math.floor(ue.log10(t.min)))),o=Math.floor(ue.log10(t.max)),a=Math.ceil(t.max/Math.pow(10,o));0===s?(n=Math.floor(ue.log10(t.minNotZero)),i=Math.floor(t.minNotZero/Math.pow(10,n)),r.push(s),s=i*Math.pow(10,n)):(n=Math.floor(ue.log10(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=hn(e.max,s);return r.push(l),r}(i,e);e.max=ue.max(r),e.min=ue.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(),on.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){return this.getPixelForValue(this.tickValues[e])},_getFirstTickValue:function(e){var t=Math.floor(ue.log10(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},getPixelForValue:function(e){var t,n,i,r,s,o=this,a=o.options.ticks,c=a.reverse,l=ue.log10,u=o._getFirstTickValue(o.minNotZero),d=0;return e=+o.getRightValue(e),c?(i=o.end,r=o.start,s=-1):(i=o.start,r=o.end,s=1),o.isHorizontal()?(t=o.width,n=c?o.right:o.left):(t=o.height,s*=-1,n=c?o.top:o.bottom),e!==i&&(0===i&&(t-=d=hn(a.fontSize,ae.global.defaultFontSize),i=u),0!==e&&(d+=t/(l(r)-l(i))*(l(e)-l(i))),n+=s*d),n},getValueForPixel:function(e){var t,n,i,r,s=this,o=s.options.ticks,a=o.reverse,c=ue.log10,l=s._getFirstTickValue(s.minNotZero);if(a?(n=s.end,i=s.start):(n=s.start,i=s.end),s.isHorizontal()?(t=s.width,r=a?s.right-e:e-s.left):(t=s.height,r=a?e-s.top:s.bottom-e),r!==n){if(0===n){var u=hn(o.fontSize,ae.global.defaultFontSize);r-=u,t-=u,n=l}r*=c(i)-c(n),r/=t,r=Math.pow(10,c(n)+r)}return r}});mn._defaults=fn;var bn=ue.valueOrDefault,gn=ue.valueAtIndexOrDefault,_n=ue.options.resolve,yn={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:en.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function vn(e){var t=e.options;return t.angleLines.display||t.pointLabels.display?e.chart.data.labels.length:0}function wn(e){var t=e.ticks;return t.display&&e.display?bn(t.fontSize,ae.global.defaultFontSize)+2*t.backdropPaddingY:0}function Sn(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 Mn(e){return 0===e||180===e?"center":e<180?"left":"right"}function kn(e,t,n,i){var r,s,o=n.y+i/2;if(ue.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 xn(e,t,n){90===e||270===e?n.y-=t.h/2:(e>270||e<90)&&(n.y-=t.h)}function Dn(e){return ue.isNumber(e)?e:0}var Tn=ln.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=wn(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;ue.each(t.data.datasets,(function(r,s){if(t.isDatasetVisible(s)){var o=t.getDatasetMeta(s);ue.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/wn(this.options))},convertTicksToLabels:function(){var e=this;ln.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},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=ue.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=vn(e);for(t=0;t<u;t++){i=e.getPointPosition(t,e.drawingArea+5),a=e.ctx,c=r.lineHeight,n=ue.isArray(l=e.pointLabels[t]||"")?{w:ue.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=ue.toDegrees(d)%360,f=Sn(h,i.x,n.w,0,180),p=Sn(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=Dn(r),s=Dn(s),o=Dn(o),a=Dn(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){return e*(2*Math.PI/vn(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(null===e)return 0;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(){var e=this,t=e.min,n=e.max;return e.getPointPositionForValue(0,e.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0)},draw:function(){var e=this,t=e.options,n=t.gridLines,i=t.ticks;if(t.display){var r=e.ctx,s=this.getIndexAngle(0),o=ue.options._parseFont(i);(t.angleLines.display||t.pointLabels.display)&&function(e){var t=e.ctx,n=e.options,i=n.angleLines,r=n.gridLines,s=n.pointLabels,o=bn(i.lineWidth,r.lineWidth),a=bn(i.color,r.color),c=wn(n);t.save(),t.lineWidth=o,t.strokeStyle=a,t.setLineDash&&(t.setLineDash(_n([i.borderDash,r.borderDash,[]])),t.lineDashOffset=_n([i.borderDashOffset,r.borderDashOffset,0]));var l=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),u=ue.options._parseFont(s);t.font=u.string,t.textBaseline="middle";for(var d=vn(e)-1;d>=0;d--){if(i.display&&o&&a){var h=e.getPointPosition(d,l);t.beginPath(),t.moveTo(e.xCenter,e.yCenter),t.lineTo(h.x,h.y),t.stroke()}if(s.display){var f=e.getPointPosition(d,l+(0===d?c/2:0)+5),p=gn(s.fontColor,d,ae.global.defaultFontColor);t.fillStyle=p;var m=e.getIndexAngle(d),b=ue.toDegrees(m);t.textAlign=Mn(b),xn(b,e._pointLabelSizes[d],f),kn(t,e.pointLabels[d]||"",f,u.lineHeight)}}t.restore()}(e),ue.each(e.ticks,(function(t,a){if(a>0||i.reverse){var c=e.getDistanceFromCenterForValue(e.ticksAsNumbers[a]);if(n.display&&0!==a&&function(e,t,n,i){var r,s=e.ctx,o=t.circular,a=vn(e),c=gn(t.color,i-1),l=gn(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()}}(e,n,c,a),i.display){var l=bn(i.fontColor,ae.global.defaultFontColor);if(r.font=o.string,r.save(),r.translate(e.xCenter,e.yCenter),r.rotate(s),i.showLabelBackdrop){var u=r.measureText(t).width;r.fillStyle=i.backdropColor,r.fillRect(-u/2-i.backdropPaddingX,-c-o.size/2-i.backdropPaddingY,u+2*i.backdropPaddingX,o.size+2*i.backdropPaddingY)}r.textAlign="center",r.textBaseline="middle",r.fillStyle=l,r.fillText(t,0,-c),r.restore()}}}))}}});Tn._defaults=yn;var Cn=ue.valueOrDefault,On=Number.MIN_SAFE_INTEGER||-9007199254740991,Ln=Number.MAX_SAFE_INTEGER||9007199254740991,Rn={millisecond:{common:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{common:!0,size:1e3,steps:[1,2,5,10,15,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,15,30]},hour:{common:!0,size:36e5,steps:[1,2,3,6,12]},day:{common:!0,size:864e5,steps:[1,2,5]},week:{common:!1,size:6048e5,steps:[1,2,3,4]},month:{common:!0,size:2628e6,steps:[1,2,3]},quarter:{common:!1,size:7884e6,steps:[1,2,3,4]},year:{common:!0,size:3154e7}},En=Object.keys(Rn);function An(e,t){return e-t}function In(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}function Pn(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 Nn(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)),ue.isFinite(o)||(o="string"==typeof s?n.parse(o,s):n.parse(o)),null!==o?+o:(r||"function"!=typeof s||(o=s(t),ue.isFinite(o)||(o=n.parse(o))),o)}function jn(e,t){if(ue.isNullOrUndef(t))return null;var n=e.options.time,i=Nn(e,e.getRightValue(t));return null===i||n.round&&(i=+e._adapter.startOf(i,n.round)),i}function Fn(e){for(var t=En.indexOf(e)+1,n=En.length;t<n;++t)if(Rn[En[t]].common)return En[t]}var Yn=on.extend({initialize:function(){this.mergeTicksOptions(),on.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 n.format&&console.warn("options.time.format is deprecated and replaced by options.time.parser."),ue.mergeIf(n.displayFormats,i.formats()),on.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),on.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,i,r,s,o=this,a=o.chart,c=o._adapter,l=o.options.time,u=l.unit||"day",d=Ln,h=On,f=[],p=[],m=[],b=a.data.labels||[];for(e=0,n=b.length;e<n;++e)m.push(jn(o,b[e]));for(e=0,n=(a.data.datasets||[]).length;e<n;++e)if(a.isDatasetVisible(e))if(ue.isObject((r=a.data.datasets[e].data)[0]))for(p[e]=[],t=0,i=r.length;t<i;++t)s=jn(o,r[t]),f.push(s),p[e][t]=s;else{for(t=0,i=m.length;t<i;++t)f.push(m[t]);p[e]=m.slice(0)}else p[e]=[];m.length&&(m=In(m).sort(An),d=Math.min(d,m[0]),h=Math.max(h,m[m.length-1])),f.length&&(f=In(f).sort(An),d=Math.min(d,f[0]),h=Math.max(h,f[f.length-1])),d=jn(o,l.min)||d,h=jn(o,l.max)||h,d=d===Ln?+c.startOf(Date.now(),u):d,h=h===On?+c.endOf(Date.now(),u)+1:h,o.min=Math.min(d,h),o.max=Math.max(d+1,h),o._horizontal=o.isHorizontal(),o._table=[],o._timestamps={data:f,datasets:p,labels:m}},buildTicks:function(){var e,t,n,i=this,r=i.min,s=i.max,o=i.options,a=o.time,c=[],l=[];switch(o.ticks.source){case"data":c=i._timestamps.data;break;case"labels":c=i._timestamps.labels;break;case"auto":default:c=function(e,t,n,i){var r,s=e._adapter,o=e.options,a=o.time,c=a.unit||function(e,t,n,i){var r,s,o=En.length;for(r=En.indexOf(e);r<o-1;++r)if((s=Rn[En[r]]).common&&Math.ceil((n-t)/((s.steps?s.steps[s.steps.length-1]:Ln)*s.size))<=i)return En[r];return En[o-1]}(a.minUnit,t,n,i),l=Fn(c),u=Cn(a.stepSize,a.unitStepSize),d="week"===c&&a.isoWeekday,h=o.ticks.major.enabled,f=Rn[c],p=t,m=n,b=[];for(u||(u=function(e,t,n,i){var r,s,o,a=t-e,c=Rn[n],l=c.size,u=c.steps;if(!u)return Math.ceil(a/(i*l));for(r=0,s=u.length;r<s&&(o=u[r],!(Math.ceil(a/(l*o))<=i));++r);return o}(t,n,c,i)),d&&(p=+s.startOf(p,"isoWeek",d),m=+s.startOf(m,"isoWeek",d)),p=+s.startOf(p,d?"day":c),(m=+s.startOf(m,d?"day":c))<n&&(m=+s.add(m,1,c)),r=p,h&&l&&!d&&!a.round&&(r=+s.startOf(r,l),r=+s.add(r,~~((p-r)/(f.size*u))*u,c));r<m;r=+s.add(r,u,c))b.push(+r);return b.push(+r),b}(i,r,s,i.getLabelCapacity(r))}for("ticks"===o.bounds&&c.length&&(r=c[0],s=c[c.length-1]),r=jn(i,a.min)||r,s=jn(i,a.max)||s,e=0,t=c.length;e<t;++e)(n=c[e])>=r&&n<=s&&l.push(n);return i.min=r,i.max=s,i._unit=a.unit||function(e,t,n,i,r){var s,o;for(s=En.length-1;s>=En.indexOf(n);s--)if(Rn[o=En[s]].common&&e._adapter.diff(r,i,o)>=t.length)return o;return En[n?En.indexOf(n):0]}(i,l,a.minUnit,i.min,i.max),i._majorUnit=Fn(i._unit),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,o.distribution),i._offsets=function(e,t,n,i,r){var s,o,a=0,c=0;return r.offset&&t.length&&(r.time.min||(s=Pn(e,"time",t[0],"pos"),a=1===t.length?1-s:(Pn(e,"time",t[1],"pos")-s)/2),r.time.max||(o=Pn(e,"time",t[t.length-1],"pos"),c=1===t.length?o:(o-Pn(e,"time",t[t.length-2],"pos"))/2)),{start:a,end:c}}(i._table,l,0,0,o),o.ticks.reverse&&l.reverse(),function(e,t,n){var i,r,s,o,a=[];for(i=0,r=t.length;i<r;++i)s=t[i],o=!!n&&s===+e._adapter.startOf(s,n),a.push({value:s,major:o});return a}(i,l,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 ue.isObject(a)&&(o=n.getRightValue(a)),s.tooltipFormat?i.format(Nn(n,o),s.tooltipFormat):"string"==typeof o?o:i.format(Nn(n,o),s.displayFormats.datetime)},tickFormatFunction:function(e,t,n,i){var r=this,s=r._adapter,o=r.options,a=o.time.displayFormats,c=a[r._unit],l=r._majorUnit,u=a[l],d=+s.startOf(e,l),h=o.ticks.major,f=h.enabled&&l&&u&&e===d,p=s.format(e,i||(f?u:c)),m=f?h:o.ticks.minor,b=Cn(m.callback,m.userCallback);return b?b(p,t,n):p},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.options.ticks.reverse,i=t._horizontal?t.width:t.height,r=t._horizontal?n?t.right:t.left:n?t.bottom:t.top,s=Pn(t._table,"time",e,"pos"),o=i*(t._offsets.start+s)/(t._offsets.start+1+t._offsets.end);return n?r-o:r+o},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=jn(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._horizontal?t.width:t.height,i=Pn(t._table,"pos",(n?(e-(t._horizontal?t.left:t.top))/n:0)*(t._offsets.start+1+t._offsets.start)-t._offsets.end,"time");return t._adapter._create(i)},getLabelWidth:function(e){var t=this.options.ticks,n=this.ctx.measureText(e).width,i=ue.toRadians(t.maxRotation),r=Math.cos(i),s=Math.sin(i);return n*r+Cn(t.fontSize,ae.global.defaultFontSize)*s},getLabelCapacity:function(e){var t=this,n=t.tickFormatFunction(e,0,[],t.options.time.displayFormats.millisecond),i=t.getLabelWidth(n),r=t.isHorizontal()?t.width:t.height,s=Math.floor(r/i);return s>0?s:1}});Yn._defaults={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};var zn={category:an,linear:dn,logarithmic:mn,radialLinear:Tn,time:Yn},$n={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 $n},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.duration(e(t).diff(e(n))).as(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)}}:{}),ae._set("global",{plugins:{filler:{propagate:!0}}});var Hn={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 function(e){return{x:null===n?e.x:n,y:null===i?e.y:i}}}};function Wn(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 Vn(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.getBasePosition?s=i.getBasePosition():i.getBasePixel&&(s=i.getBasePixel()),null!=s){if(void 0!==s.x&&void 0!==s.y)return s;if(ue.isFinite(s))return{x:(t=i.isHorizontal())?s:null,y:t?null:s}}return null}function Bn(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 Un(e){var t=e.fill,n="dataset";return!1===t?null:(isFinite(t)||(n="boundary"),Hn[n](e))}function Gn(e){return e&&!e.skip}function qn(e,t,n,i,r){var s;if(i&&r){for(e.moveTo(t[0].x,t[0].y),s=1;s<i;++s)ue.canvas.lineTo(e,t[s-1],t[s]);for(e.lineTo(n[r-1].x,n[r-1].y),s=r-1;s>0;--s)ue.canvas.lineTo(e,n[s],n[s-1],!0)}}var Jn={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 je.Line&&(s={visible:e.isDatasetVisible(i),fill:Wn(r,i,o),chart:e,el:r}),n.$filler=s,c.push(s);for(i=0;i<o;++i)(s=c[i])&&(s.fill=Bn(c,i,a),s.boundary=Vn(s),s.mapper=Un(s))},beforeDatasetDraw:function(e,t){var n=t.meta.$filler;if(n){var i=e.ctx,r=n.el,s=r._view,o=r._children||[],a=n.mapper,c=s.backgroundColor||ae.global.defaultColor;a&&c&&o.length&&(ue.canvas.clipArea(i,e.chartArea),function(e,t,n,i,r,s){var o,a,c,l,u,d,h,f=t.length,p=i.spanGaps,m=[],b=[],g=0,_=0;for(e.beginPath(),o=0,a=f+!!s;o<a;++o)u=n(l=t[c=o%f]._view,c,i),d=Gn(l),h=Gn(u),d&&h?(g=m.push(l),_=b.push(u)):g&&_&&(p?(d&&m.push(l),h&&b.push(u)):(qn(e,m,b,g,_),g=_=0,m=[],b=[]));qn(e,m,b,g,_),e.closePath(),e.fillStyle=r,e.fill()}(i,o,a,s,c,r._loop),ue.canvas.unclipArea(i))}}},Qn=ue.noop,Kn=ue.valueOrDefault;function Zn(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}ae._set("global",{legend:{display:!0,position:"top",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;return ue.isArray(t.datasets)?t.datasets.map((function(t,n){return{text:t.label,fillStyle:ue.isArray(t.backgroundColor)?t.backgroundColor[0]:t.backgroundColor,hidden:!e.isDatasetVisible(n),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,datasetIndex:n}}),this):[]}}},legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');for(var n=0;n<e.data.datasets.length;n++)t.push('<li><span style="background-color:'+e.data.datasets[n].backgroundColor+'"></span>'),e.data.datasets[n].label&&t.push(e.data.datasets[n].label),t.push("</li>");return t.push("</ul>"),t.join("")}});var Xn=pe.extend({initialize:function(e){ue.extend(this,e),this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1},beforeUpdate:Qn,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:Qn,beforeSetDimensions:Qn,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:Qn,beforeBuildLabels:Qn,buildLabels:function(){var e=this,t=e.options.labels||{},n=ue.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:Qn,beforeFit:Qn,fit:function(){var e=this,t=e.options,n=t.labels,i=t.display,r=e.ctx,s=ue.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="top",ue.each(e.legendItems,(function(e,t){var i=Zn(n,o)+o/2+r.measureText(e.text).width;(0===t||u[u.length-1]+i+n.padding>c.width)&&(d+=o+n.padding,u[u.length-(t>0?0:1)]=n.padding),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=n.padding,m=0,b=0,g=o+h;ue.each(e.legendItems,(function(e,t){var i=Zn(n,o)+o/2+r.measureText(e.text).width;t>0&&b+g>c.height-h&&(p+=m+n.padding,f.push(m),m=0,b=0),m=Math.max(m,i),b+=g,a[t]={left:0,top:0,width:i,height:o}})),p+=m,f.push(m),c.width+=p}e.width=c.width,e.height=c.height},afterFit:Qn,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,i=ae.global,r=i.defaultColor,s=i.elements.line,o=e.width,a=e.lineWidths;if(t.display){var c,l=e.ctx,u=Kn(n.fontColor,i.defaultFontColor),d=ue.options._parseFont(n),h=d.size;l.textAlign="left",l.textBaseline="middle",l.lineWidth=.5,l.strokeStyle=u,l.fillStyle=u,l.font=d.string;var f=Zn(n,h),p=e.legendHitBoxes,m=e.isHorizontal();c=m?{x:e.left+(o-a[0])/2+n.padding,y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+n.padding,line:0};var b=h+n.padding;ue.each(e.legendItems,(function(i,u){var d=l.measureText(i.text).width,g=f+h/2+d,_=c.x,y=c.y;m?u>0&&_+g+n.padding>e.left+e.minSize.width&&(y=c.y+=b,c.line++,_=c.x=e.left+(o-a[c.line])/2+n.padding):u>0&&y+b>e.top+e.minSize.height&&(_=c.x=_+e.columnWidths[c.line]+n.padding,y=c.y=e.top+n.padding,c.line++),function(e,n,i){if(!(isNaN(f)||f<=0)){l.save();var o=Kn(i.lineWidth,s.borderWidth);if(l.fillStyle=Kn(i.fillStyle,r),l.lineCap=Kn(i.lineCap,s.borderCapStyle),l.lineDashOffset=Kn(i.lineDashOffset,s.borderDashOffset),l.lineJoin=Kn(i.lineJoin,s.borderJoinStyle),l.lineWidth=o,l.strokeStyle=Kn(i.strokeStyle,r),l.setLineDash&&l.setLineDash(Kn(i.lineDash,s.borderDash)),t.labels&&t.labels.usePointStyle){var a=f*Math.SQRT2/2;ue.canvas.drawPoint(l,i.pointStyle,a,e+f/2,n+h/2)}else 0!==o&&l.strokeRect(e,n,f,h),l.fillRect(e,n,f,h);l.restore()}}(_,y,i),p[u].left=_,p[u].top=y,function(e,t,n,i){var r=h/2,s=f+r+e,o=t+r;l.fillText(n.text,s,o),n.hidden&&(l.beginPath(),l.lineWidth=2,l.moveTo(s,o),l.lineTo(s+i,o),l.stroke())}(_,y,i,d),m?c.x+=g+n.padding:c.y+=b}))}},_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 ei(e,t){var n=new Xn({ctx:e.ctx,options:t,chart:e});vt.configure(e,n,t),vt.addBox(e,n),e.legend=n}var ti={id:"legend",_element:Xn,beforeInit:function(e){var t=e.options.legend;t&&ei(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(ue.mergeIf(t,ae.global.legend),n?(vt.configure(e,n,t),n.options=t):ei(e,t)):n&&(vt.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},ni=ue.noop;ae._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var ii=pe.extend({initialize:function(e){ue.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:ni,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:ni,beforeSetDimensions:ni,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:ni,beforeBuildLabels:ni,buildLabels:ni,afterBuildLabels:ni,beforeFit:ni,fit:function(){var e=this,t=e.options,n=t.display,i=e.minSize,r=ue.isArray(t.text)?t.text.length:1,s=ue.options._parseFont(t),o=n?r*s.lineHeight+2*t.padding:0;e.isHorizontal()?(i.width=e.maxWidth,i.height=o):(i.width=o,i.height=e.maxHeight),e.width=i.width,e.height=i.height},afterFit:ni,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=ue.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=ue.valueOrDefault(n.fontColor,ae.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(ue.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 ri(e,t){var n=new ii({ctx:e.ctx,options:t,chart:e});vt.configure(e,n,t),vt.addBox(e,n),e.titleBlock=n}var si={},oi=Jn,ai=ti,ci={id:"title",_element:ii,beforeInit:function(e){var t=e.options.title;t&&ri(e,t)},beforeUpdate:function(e){var t=e.options.title,n=e.titleBlock;t?(ue.mergeIf(t,ae.global.title),n?(vt.configure(e,n,t),n.options=t):ri(e,t)):n&&(vt.removeBox(e,n),delete e.titleBlock)}};for(var li in si.filler=oi,si.legend=ai,si.title=ci,Qt.helpers=ue,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=ue._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"}ue.where=function(e,t){if(ue.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return ue.each(e,(function(e){t(e)&&n.push(e)})),n},ue.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},ue.findNextWhere=function(e,t,n){ue.isNullOrUndef(n)&&(n=-1);for(var i=n+1;i<e.length;i++){var r=e[i];if(t(r))return r}},ue.findPreviousWhere=function(e,t,n){ue.isNullOrUndef(n)&&(n=e.length);for(var i=n-1;i>=0;i--){var r=e[i];if(t(r))return r}},ue.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ue.almostEquals=function(e,t,n){return Math.abs(e-t)<n},ue.almostWhole=function(e,t){var n=Math.round(e);return n-t<e&&n+t>e},ue.max=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.max(e,t)}),Number.NEGATIVE_INFINITY)},ue.min=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.min(e,t)}),Number.POSITIVE_INFINITY)},ue.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0==(e=+e)||isNaN(e)?e:e>0?1:-1},ue.log10=Math.log10?function(e){return Math.log10(e)}:function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t);return e===Math.pow(10,n)?n:t},ue.toRadians=function(e){return e*(Math.PI/180)},ue.toDegrees=function(e){return e*(180/Math.PI)},ue._decimalPlaces=function(e){if(ue.isFinite(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}},ue.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}},ue.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},ue.aliasPixel=function(e){return e%2==0?0:.5},ue._alignPixel=function(e,t,n){var i=e.currentDevicePixelRatio,r=n/2;return Math.round((t-r)*i)/i+r},ue.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)}}},ue.EPSILON=Number.EPSILON||1e-14,ue.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||(ue.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))},ue.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]},ue.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},ue.niceNum=function(e,t){var n=Math.floor(ue.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)},ue.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)},ue.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(ue.getStyle(s,"padding-left")),l=parseFloat(ue.getStyle(s,"padding-top")),u=parseFloat(ue.getStyle(s,"padding-right")),d=parseFloat(ue.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)}},ue.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},ue.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},ue._calculatePadding=function(e,t,n){return(t=ue.getStyle(e,t)).indexOf("%")>-1?n*parseInt(t,10)/100:parseInt(t,10)},ue._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},ue.getMaximumWidth=function(e){var t=ue._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,i=n-ue._calculatePadding(t,"padding-left",n)-ue._calculatePadding(t,"padding-right",n),r=ue.getConstraintWidth(e);return isNaN(r)?i:Math.min(i,r)},ue.getMaximumHeight=function(e){var t=ue._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,i=n-ue._calculatePadding(t,"padding-top",n)-ue._calculatePadding(t,"padding-bottom",n),r=ue.getConstraintHeight(e);return isNaN(r)?i:Math.min(i,r)},ue.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},ue.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")}},ue.fontString=function(e,t,n){return t+" "+e+"px "+n},ue.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=0;ue.each(n,(function(t){null!=t&&!0!==ue.isArray(t)?o=ue.measureText(e,r,s,o,t):ue.isArray(t)&&ue.each(t,(function(t){null==t||ue.isArray(t)||(o=ue.measureText(e,r,s,o,t))}))}));var a=s.length/2;if(a>n.length){for(var c=0;c<a;c++)delete r[s[c]];s.splice(0,a)}return o},ue.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},ue.numberOfLabelLines=function(e){var t=1;return ue.each(e,(function(e){ue.isArray(e)&&e.length>t&&(t=e.length)})),t},ue.color=G?function(e){return e instanceof CanvasGradient&&(e=ae.global.defaultColor),G(e)}:function(e){return console.error("Color.js not found!"),e},ue.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:ue.color(e).saturate(.5).darken(.1).rgbString()}}(),Qt._adapters=Xt,Qt.Animation=be,Qt.animationService=ge,Qt.controllers=ct,Qt.DatasetController=Se,Qt.defaults=ae,Qt.Element=pe,Qt.elements=je,Qt.Interaction=mt,Qt.layouts=vt,Qt.platform=At,Qt.plugins=It,Qt.Scale=on,Qt.scaleService=Pt,Qt.Ticks=en,Qt.Tooltip=Wt,Qt.helpers.each(zn,(function(e,t){Qt.scaleService.registerScaleType(t,e,e._defaults)})),si)si.hasOwnProperty(li)&&Qt.plugins.register(si[li]);Qt.platform.initialize();var ui=Qt;return"undefined"!=typeof window&&(window.Chart=Qt),Qt.Chart=Qt,Qt.Legend=si.legend._element,Qt.Title=si.title._element,Qt.pluginService=Qt.plugins,Qt.PluginBase=Qt.Element.extend({}),Qt.canvasHelpers=Qt.helpers.canvas,Qt.layoutService=Qt.layouts,Qt.LinearScaleBase=ln,Qt.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(e){Qt[e]=function(t,n){return new Qt(t,Qt.helpers.merge(n||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}})),ui}(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.dc(r.b))},e.\u0275prov=i.Ib({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.dc(a.b))},e.\u0275prov=o.Ib({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("33Wh");e.exports=i?Object.defineProperties:function(e,t){s(e);for(var n,i=o(t),a=i.length,c=0;a>c;)r.f(e,n=i[c++],t[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("P4y1"),s=n("tiKp")("iterator");e.exports=function(e){if(null!=e)return e[s]||e["@@iterator"]||r[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.o}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.Hb({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.gc("submit",(function(){return t.onSubmit()}))},inputs:{formGroup:"formGroup"},outputs:{validSubmit:"validSubmit"}}),e})()},O741:function(e,t,n){var i=n("hh1v");e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},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.Sb(0,"span",11),r.Nb(1,"i",12),r.Rb())}function d(e,t){1&e&&r.Ob(0)}function h(e,t){if(1&e&&(r.Sb(0,"p"),r.Oc(1),r.Rb()),2&e){const e=r.ic();r.yb(1),r.Qc(" ",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.Mb(s.a))},e.\u0275cmp=r.Gb({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.Sb(0,"cd-modal",0),r.gc("hide",(function(){return t.cancel()})),r.Qb(1,1),r.Mc(2,u,2,0,"span",2),r.Oc(3),r.Pb(),r.Qb(4,3),r.Sb(5,"form",4,5),r.Sb(7,"div",6),r.Mc(8,d,1,0,"ng-container",7),r.Mc(9,h,2,1,"p",8),r.Rb(),r.Sb(10,"div",9),r.Sb(11,"cd-form-button-panel",10),r.gc("submitActionEvent",(function(){return t.onSubmit(t.confirmationForm.value)}))("backActionEvent",(function(){return t.boundCancel()})),r.Rb(),r.Rb(),r.Rb(),r.Pb(),r.Rb()),2&e&&(r.yb(2),r.pc("ngIf",t.warning),r.yb(1),r.Pc(t.titleText),r.yb(2),r.pc("formGroup",t.confirmationForm),r.yb(3),r.pc("ngTemplateOutlet",t.bodyTpl)("ngTemplateOutletContext",t.bodyContext),r.yb(1),r.pc("ngIf",t.description),r.yb(2),r.pc("form",t.confirmationForm)("submitText",t.buttonText)("showSubmit",t.showSubmit))},directives:[o.a,a.r,i.C,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"))},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={}},P8lu: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("cp0P"),c=n("LRne"),l=n("5+tZ"),u=n("CqXF"),d=n("JIr8"),h=n("9xzX"),f=n("xTzq"),p=n("8Y7J");let m=(()=>{let e=class{constructor(e,t){this.http=e,this.rgwDaemonService=t,this.url="api/rgw/user"}list(){return this.enumerate().pipe(Object(l.a)(e=>e.length>0?Object(a.a)(e.map(e=>this.get(e))):Object(c.a)([])))}enumerate(){return this.rgwDaemonService.request(e=>this.http.get(this.url,{params:e}))}enumerateEmail(){return this.rgwDaemonService.request(e=>this.http.get(this.url+"/get_emails",{params:e}))}get(e){return this.rgwDaemonService.request(t=>this.http.get(`${this.url}/${e}`,{params:t}))}getQuota(e){return this.rgwDaemonService.request(t=>this.http.get(`${this.url}/${e}/quota`,{params:t}))}create(e){return this.rgwDaemonService.request(t=>(o.a.keys(e).forEach(n=>{t=t.append(n,e[n])}),this.http.post(this.url,null,{params:t})))}update(e,t){return this.rgwDaemonService.request(n=>(o.a.keys(t).forEach(e=>{n=n.append(e,t[e])}),this.http.put(`${this.url}/${e}`,null,{params:n})))}updateQuota(e,t){return this.rgwDaemonService.request(n=>(o.a.keys(t).forEach(e=>{n=n.append(e,t[e])}),this.http.put(`${this.url}/${e}/quota`,null,{params:n})))}delete(e){return this.rgwDaemonService.request(t=>this.http.delete(`${this.url}/${e}`,{params:t}))}createSubuser(e,t){return this.rgwDaemonService.request(n=>(o.a.keys(t).forEach(e=>{n=n.append(e,t[e])}),this.http.post(`${this.url}/${e}/subuser`,null,{params:n})))}deleteSubuser(e,t){return this.rgwDaemonService.request(n=>this.http.delete(`${this.url}/${e}/subuser/${t}`,{params:n}))}addCapability(e,t,n){return this.rgwDaemonService.request(i=>(i=(i=i.append("type",t)).append("perm",n),this.http.post(`${this.url}/${e}/capability`,null,{params:i})))}deleteCapability(e,t,n){return this.rgwDaemonService.request(i=>(i=(i=i.append("type",t)).append("perm",n),this.http.delete(`${this.url}/${e}/capability`,{params:i})))}addS3Key(e,t){return this.rgwDaemonService.request(n=>(n=n.append("key_type","s3"),o.a.keys(t).forEach(e=>{n=n.append(e,t[e])}),this.http.post(`${this.url}/${e}/key`,null,{params:n})))}deleteS3Key(e,t){return this.rgwDaemonService.request(n=>(n=(n=n.append("key_type","s3")).append("access_key",t),this.http.delete(`${this.url}/${e}/key`,{params:n})))}exists(e){return this.get(e).pipe(Object(u.a)(!0),Object(d.a)(e=>(o.a.isFunction(e.preventDefault)&&e.preventDefault(),Object(c.a)(!1))))}emailExists(e){return e=decodeURIComponent(e),this.enumerateEmail().pipe(Object(l.a)(t=>{const n=o.a.indexOf(t,e);return Object(c.a)(-1!==n)}))}};return e.\u0275fac=function(t){return new(t||e)(p.dc(r.b),p.dc(h.a))},e.\u0275prov=p.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e=Object(i.b)([f.a,Object(i.d)("design:paramtypes",[r.b,h.a])],e),e})()},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 h}));var i=n("SVse"),r=n("V/fk"),s=n("ChqD"),o=n("yGOH"),a=n("9Xeq"),c=n("Avrn"),l=n("aexS"),u=n("aXbf"),d=n("8Y7J");let h=(()=>{class e{}return e.\u0275mod=d.Kb({type:e}),e.\u0275inj=d.Jb({factory:function(t){return new(t||e)},providers:[l.a,c.a,u.a],imports:[[i.c,a.a,r.a,s.a,o.a],r.a,a.a,s.a,o.a]}),e})()},PKPk:function(e,t,n){"use strict";var i=n("ZUd8").charAt,r=n("afO8"),s=n("fdAy"),o="String Iterator",a=r.set,c=r.getterFor(o);s(String,"String",(function(e){a(this,{type:o,string:String(e),index:0})}),(function(){var e,t=c(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"))},Qo9l:function(e,t,n){var i=n("2oRo");e.exports=i},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("0Dky"),r=n("xrYK"),s="".split;e.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?s.call(e,""):Object(e)}:Object},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 A}));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 y(e,t){if(1&e&&(l.Qb(0,10),l.Oc(1),l.Pb()),2&e){const e=l.ic();l.yb(1),l.Qc(" ",e.titleText," ")}}function v(e,t){if(1&e&&(l.Sb(0,"p"),l.Oc(1),l.Rb()),2&e){const e=l.ic();l.yb(1),l.Pc(e.message)}}const w=function(e){return{required:e}};function S(e,t){if(1&e&&(l.Sb(0,"label",18),l.Oc(1),l.Rb()),2&e){const e=l.ic().$implicit;l.pc("ngClass",l.uc(3,w,!0===(null==e?null:e.required)))("for",e.name),l.yb(1),l.Qc(" ",e.label," ")}}function M(e,t){if(1&e&&l.Nb(0,"input",19),2&e){const e=l.ic().$implicit;l.pc("type",e.type)("id",e.name)("name",e.name)("formControlName",e.name)}}function k(e,t){if(1&e&&l.Nb(0,"input",20),2&e){const e=l.ic().$implicit;l.pc("id",e.name)("name",e.name)("formControlName",e.name)}}function x(e,t){if(1&e&&(l.Sb(0,"option",24),l.Oc(1),l.Rb()),2&e){const e=l.ic(2).$implicit;l.pc("ngValue",null),l.yb(1),l.Qc(" ",null==e||null==e.typeConfig?null:e.typeConfig.placeholder," ")}}function D(e,t){if(1&e&&(l.Sb(0,"option",25),l.Oc(1),l.Rb()),2&e){const e=t.$implicit;l.pc("value",e.value),l.yb(1),l.Qc(" ",e.text," ")}}function T(e,t){if(1&e&&(l.Sb(0,"select",21),l.Mc(1,x,2,2,"option",22),l.Mc(2,D,2,2,"option",23),l.Rb()),2&e){const e=l.ic().$implicit;l.pc("id",e.name)("formControlName",e.name),l.yb(1),l.pc("ngIf",null==e||null==e.typeConfig?null:e.typeConfig.placeholder),l.yb(1),l.pc("ngForOf",null==e||null==e.typeConfig?null:e.typeConfig.options)}}function C(e,t){if(1&e&&l.Nb(0,"cd-select-badges",26),2&e){const e=l.ic().$implicit;l.pc("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.Sb(0,"span",27),l.Oc(1),l.Rb()),2&e){const e=l.ic().$implicit,t=l.ic();l.yb(1),l.Qc(" ",t.getError(e)," ")}}const L=function(e,t){return{"cd-col-form-input":e,"col-sm-12":t}},R=function(){return["text","number"]};function E(e,t){if(1&e&&(l.Qb(0),l.Sb(1,"div"),l.Mc(2,S,2,5,"label",11),l.Sb(3,"div",12),l.Mc(4,M,1,4,"input",13),l.Mc(5,k,1,3,"input",14),l.Mc(6,T,3,4,"select",15),l.Mc(7,C,1,5,"cd-select-badges",16),l.Mc(8,O,2,1,"span",17),l.Rb(),l.Rb(),l.Pb()),2&e){const e=t.$implicit,n=l.ic(),i=l.Ac(4);l.yb(1),l.Bb("form-group row cd-",e.name,"-form-group"),l.yb(1),l.pc("ngIf",e.label),l.yb(1),l.pc("ngClass",l.vc(10,L,e.label,!e.label)),l.yb(1),l.pc("ngIf",l.tc(13,R).includes(e.type)),l.yb(1),l.pc("ngIf","binary"===e.type),l.yb(1),l.pc("ngIf","select"===e.type),l.yb(1),l.pc("ngIf","select-badges"===e.type),l.yb(1),l.pc("ngIf",n.formGroup.showError(e.name,i))}}let A=(()=>{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.Mb(u.a),l.Mb(o.a),l.Mb(c.a),l.Mb(a.a))},e.\u0275cmp=l.Gb({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.Sb(0,"cd-modal",0),l.Mc(1,y,2,1,"ng-container",1),l.Qb(2,2),l.Sb(3,"form",3,4),l.Sb(5,"div",5),l.Mc(6,v,2,1,"p",6),l.Mc(7,E,9,14,"ng-container",7),l.Rb(),l.Sb(8,"div",8),l.Sb(9,"cd-form-button-panel",9),l.gc("submitActionEvent",(function(){return t.onSubmitForm(t.formGroup.value)})),l.Rb(),l.Rb(),l.Rb(),l.Pb(),l.Rb()),2&e&&(l.pc("modalRef",t.activeModal),l.yb(1),l.pc("ngIf",t.titleText),l.yb(2),l.pc("formGroup",t.formGroup),l.yb(3),l.pc("ngIf",t.message),l.yb(1),l.pc("ngForOf",t.fields),l.yb(2),l.pc("form",t.formGroup)("submitText",t.submitButtonText))},directives:[d.a,h.r,i.C,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.B,_.a],styles:[""]}),e})()},Rm1S:function(e,t,n){"use strict";var i=n("14Sl"),r=n("glrk"),s=n("UMSQ"),o=n("HYAF"),a=n("iqWW"),c=n("FMNM");i("match",1,(function(e,t,n){return[function(t){var n=o(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var o=r(e),l=String(this);if(!o.global)return c(o,l);var u=o.unicode;o.lastIndex=0;for(var d,h=[],f=0;null!==(d=c(o,l));){var p=String(d[0]);h[f]=p,""===p&&(o.lastIndex=a(l,s(o.lastIndex),u)),f++}return 0===f?null:h}]}))},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.Tb();o.Qb(0),o.Sb(1,"button",3),o.gc("click",(function(){o.Dc(e);const t=o.ic();return t.useClickAction(t.currentAction)})),o.Nb(2,"i",4),o.Sb(3,"span"),o.Oc(4),o.Rb(),o.Rb(),o.Pb()}if(2&e){const e=o.ic();o.yb(1),o.Bb("btn btn-",e.btnColor,""),o.qc("title",e.useDisableDesc(e.currentAction)),o.pc("ngClass",o.uc(9,u,e.disableSelectionAction(e.currentAction)))("routerLink",e.useRouterLink(e.currentAction))("preserveFragment",e.currentAction.preserveFragment?"":null),o.yb(1),o.pc("ngClass",o.uc(11,d,e.currentAction.icon)),o.yb(2),o.Pc(e.currentAction.name)}}function f(e,t){if(1&e&&(o.Qb(0),o.Oc(1),o.Pb()),2&e){const e=o.ic(2);o.yb(1),o.Qc("",e.dropDownOnly," ")}}function p(e,t){1&e&&o.Nb(0,"span",10)}function m(e,t){if(1&e){const e=o.Tb();o.Qb(0),o.Sb(1,"button",11),o.gc("click",(function(){o.Dc(e);const n=t.$implicit;return o.ic(2).useClickAction(n)})),o.Nb(2,"i",4),o.Sb(3,"span"),o.Oc(4),o.Rb(),o.Rb(),o.Pb()}if(2&e){const e=t.$implicit,n=o.ic(2);o.yb(1),o.Ab(n.toClassName(e)),o.qc("title",n.useDisableDesc(e)),o.pc("routerLink",n.useRouterLink(e))("preserveFragment",e.preserveFragment?"":null)("disabled",n.disableSelectionAction(e)),o.yb(1),o.pc("ngClass",o.uc(9,d,e.icon)),o.yb(2),o.Pc(e.name)}}function b(e,t){if(1&e&&(o.Sb(0,"div",5),o.Sb(1,"button",6),o.Mc(2,f,2,1,"ng-container",1),o.Mc(3,p,1,0,"span",7),o.Rb(),o.Sb(4,"div",8),o.Mc(5,m,5,11,"ng-container",9),o.Rb(),o.Rb()),2&e){const e=o.ic();o.yb(1),o.Bb("btn btn-",e.btnColor," dropdown-toggle-split"),o.yb(1),o.pc("ngIf",e.dropDownOnly),o.yb(1),o.pc("ngIf",!e.dropDownOnly),o.yb(2),o.pc("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.Gb({type:e,selectors:[["cd-table-actions"]],inputs:{permission:"permission",selection:"selection",tableActions:"tableActions",btnColor:"btnColor",dropDownOnly:"dropDownOnly"},features:[o.wb],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.Sb(0,"div",0),o.Mc(1,h,5,13,"ng-container",1),o.Mc(2,b,6,6,"div",2),o.Rb()),2&e&&(o.yb(1),o.pc("ngIf",t.currentAction),o.yb(1),o.pc("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})()},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("0Dky");e.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())}))},SVse:function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return Ae})),n.d(t,"c",(function(){return qe})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return Fe})),n.d(t,"f",(function(){return Ve})),n.d(t,"g",(function(){return C})),n.d(t,"h",(function(){return S})),n.d(t,"i",(function(){return ze})),n.d(t,"j",(function(){return $e})),n.d(t,"k",(function(){return He})),n.d(t,"l",(function(){return d})),n.d(t,"m",(function(){return M})),n.d(t,"n",(function(){return _})),n.d(t,"o",(function(){return Ie})),n.d(t,"p",(function(){return me})),n.d(t,"q",(function(){return ge})),n.d(t,"r",(function(){return ye})),n.d(t,"s",(function(){return De})),n.d(t,"t",(function(){return Me})),n.d(t,"u",(function(){return ke})),n.d(t,"v",(function(){return xe})),n.d(t,"w",(function(){return Te})),n.d(t,"x",(function(){return w})),n.d(t,"y",(function(){return Be})),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 je})),n.d(t,"D",(function(){return Ke})),n.d(t,"E",(function(){return Q})),n.d(t,"F",(function(){return A})),n.d(t,"G",(function(){return E})),n.d(t,"H",(function(){return I})),n.d(t,"I",(function(){return Qe})),n.d(t,"J",(function(){return a})),n.d(t,"K",(function(){return Je})),n.d(t,"L",(function(){return s})),n.d(t,"M",(function(){return pe})),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.r("DocumentToken");let l=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Ib)({factory:u,token:e,providedIn:"platform"}),e})();function u(){return Object(i.dc)(h)}const d=new i.r("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.dc(c))},e.\u0275prov=Object(i.Ib)({factory:p,token:e,providedIn:"platform"}),e})();function f(){return!!window.history.pushState}function p(){return new h(Object(i.dc)(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.Ib)({factory:y,token:e,providedIn:"root"}),e})();function y(e){const t=Object(i.dc)(c).location;return new w(Object(i.dc)(l),t&&t.origin||"")}const v=new i.r("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.dc(l),i.dc(v,8))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})(),S=(()=>{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.dc(l),i.dc(v,8))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})(),M=(()=>{class e{constructor(e,t){this._subject=new i.o,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=b(x(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,x(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.dc(_),i.dc(l))},e.normalizeQueryParams=g,e.joinWithSlash=m,e.stripTrailingSlash=b,e.\u0275prov=Object(i.Ib)({factory:k,token:e,providedIn:"root"}),e})();function k(){return new M(Object(i.dc)(_),Object(i.dc)(l))}function x(e){return e.replace(/\/index.html$/,"")}var D=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}({}),T=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}({}),R=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 E(e,t,n){const r=Object(i.ib)(e),s=H([r[i.Z.DayPeriodsFormat],r[i.Z.DayPeriodsStandalone]],t);return H(s,n)}function A(e,t,n){const r=Object(i.ib)(e),s=H([r[i.Z.DaysFormat],r[i.Z.DaysStandalone]],t);return H(s,n)}function I(e,t,n){const r=Object(i.ib)(e),s=H([r[i.Z.MonthsFormat],r[i.Z.MonthsStandalone]],t);return H(s,n)}function P(e,t){return H(Object(i.ib)(e)[i.Z.DateFormat],t)}function N(e,t){return H(Object(i.ib)(e)[i.Z.TimeFormat],t)}function j(e,t){return H(Object(i.ib)(e)[i.Z.DateTimeFormat],t)}function F(e,t){const n=Object(i.ib)(e),r=n[i.Z.NumberSymbols][t];if(void 0===r){if(t===R.CurrencyDecimal)return n[i.Z.NumberSymbols][R.Decimal];if(t===R.CurrencyGroup)return n[i.Z.NumberSymbols][R.Group]}return r}function Y(e,t){return Object(i.ib)(e)[i.Z.NumberFormats][t]}const z=i.lb;function $(e){if(!e[i.Z.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[i.Z.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function H(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 W(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const V=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,B={},U=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|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 G=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}({}),J=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 Q(e,t,n,r){let s=function(e){if(se(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){e=e.trim();const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){const[t,n,i]=e.split("-").map(e=>+e);return new Date(t,n-1,i)}let n;if(n=e.match(V))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.round(1e3*parseFloat("0."+(e[7]||0)));return s.call(t,o,a,c,l),t}(n)}const t=new Date(e);if(!se(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=function e(t,n){const r=function(e){return Object(i.ib)(e)[i.Z.LocaleId]}(t);if(B[r]=B[r]||{},B[r][n])return B[r][n];let s="";switch(n){case"shortDate":s=P(t,L.Short);break;case"mediumDate":s=P(t,L.Medium);break;case"longDate":s=P(t,L.Long);break;case"fullDate":s=P(t,L.Full);break;case"shortTime":s=N(t,L.Short);break;case"mediumTime":s=N(t,L.Medium);break;case"longTime":s=N(t,L.Long);break;case"fullTime":s=N(t,L.Full);break;case"short":const n=e(t,"shortTime"),i=e(t,"shortDate");s=K(j(t,L.Short),[n,i]);break;case"medium":const r=e(t,"mediumTime"),o=e(t,"mediumDate");s=K(j(t,L.Medium),[r,o]);break;case"long":const a=e(t,"longTime"),c=e(t,"longDate");s=K(j(t,L.Long),[a,c]);break;case"full":const l=e(t,"fullTime"),u=e(t,"fullDate");s=K(j(t,L.Full),[l,u])}return s&&(B[r][n]=s),s}(n,t)||t;let o,a=[];for(;t;){if(o=U.exec(t),!o){a.push(t);break}{a=a.concat(o.slice(1));const e=a.pop();if(!e)break;t=e}}let c=s.getTimezoneOffset();r&&(c=re(r,c),s=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*(re(t,i)-i))}(s,r));let l="";return a.forEach(e=>{const t=function(e){if(ie[e])return ie[e];let t;switch(e){case"G":case"GG":case"GGG":t=ee(J.Eras,O.Abbreviated);break;case"GGGG":t=ee(J.Eras,O.Wide);break;case"GGGGG":t=ee(J.Eras,O.Narrow);break;case"y":t=X(q.FullYear,1,0,!1,!0);break;case"yy":t=X(q.FullYear,2,0,!0,!0);break;case"yyy":t=X(q.FullYear,3,0,!1,!0);break;case"yyyy":t=X(q.FullYear,4,0,!1,!0);break;case"M":case"L":t=X(q.Month,1,1);break;case"MM":case"LL":t=X(q.Month,2,1);break;case"MMM":t=ee(J.Months,O.Abbreviated);break;case"MMMM":t=ee(J.Months,O.Wide);break;case"MMMMM":t=ee(J.Months,O.Narrow);break;case"LLL":t=ee(J.Months,O.Abbreviated,C.Standalone);break;case"LLLL":t=ee(J.Months,O.Wide,C.Standalone);break;case"LLLLL":t=ee(J.Months,O.Narrow,C.Standalone);break;case"w":t=ne(1);break;case"ww":t=ne(2);break;case"W":t=ne(1,!0);break;case"d":t=X(q.Date,1);break;case"dd":t=X(q.Date,2);break;case"E":case"EE":case"EEE":t=ee(J.Days,O.Abbreviated);break;case"EEEE":t=ee(J.Days,O.Wide);break;case"EEEEE":t=ee(J.Days,O.Narrow);break;case"EEEEEE":t=ee(J.Days,O.Short);break;case"a":case"aa":case"aaa":t=ee(J.DayPeriods,O.Abbreviated);break;case"aaaa":t=ee(J.DayPeriods,O.Wide);break;case"aaaaa":t=ee(J.DayPeriods,O.Narrow);break;case"b":case"bb":case"bbb":t=ee(J.DayPeriods,O.Abbreviated,C.Standalone,!0);break;case"bbbb":t=ee(J.DayPeriods,O.Wide,C.Standalone,!0);break;case"bbbbb":t=ee(J.DayPeriods,O.Narrow,C.Standalone,!0);break;case"B":case"BB":case"BBB":t=ee(J.DayPeriods,O.Abbreviated,C.Format,!0);break;case"BBBB":t=ee(J.DayPeriods,O.Wide,C.Format,!0);break;case"BBBBB":t=ee(J.DayPeriods,O.Narrow,C.Format,!0);break;case"h":t=X(q.Hours,1,-12);break;case"hh":t=X(q.Hours,2,-12);break;case"H":t=X(q.Hours,1);break;case"HH":t=X(q.Hours,2);break;case"m":t=X(q.Minutes,1);break;case"mm":t=X(q.Minutes,2);break;case"s":t=X(q.Seconds,1);break;case"ss":t=X(q.Seconds,2);break;case"S":t=X(q.FractionalSeconds,1);break;case"SS":t=X(q.FractionalSeconds,2);break;case"SSS":t=X(q.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=te(G.Short);break;case"ZZZZZ":t=te(G.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=te(G.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=te(G.Long);break;default:return null}return ie[e]=t,t}(e);l+=t?t(s,n,c):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function K(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,(function(e,n){return null!=t&&n in t?t[n]:e}))),e}function Z(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 X(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,Z(a,3).substr(0,c);var c;const l=F(o,R.MinusSign);return Z(a,t,l,i,r)}}function ee(e,t,n=C.Format,r=!1){return function(s,o){return function(e,t,n,r,s,o){switch(n){case J.Months:return I(t,s,r)[e.getMonth()];case J.Days:return A(t,s,r)[e.getDay()];case J.DayPeriods:const a=e.getHours(),c=e.getMinutes();if(o){const e=function(e){const t=Object(i.ib)(e);return $(t),(t[i.Z.ExtraData][2]||[]).map(e=>"string"==typeof e?W(e):[W(e[0]),W(e[1])])}(t),n=function(e,t,n){const r=Object(i.ib)(e);$(r);const s=H([r[i.Z.ExtraData][0],r[i.Z.ExtraData][1]],t)||[];return H(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 E(t,s,r)[a<12?0:1];case J.Eras:return function(e,t){return H(Object(i.ib)(e)[i.Z.Eras],t)}(t,r)[e.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}}(s,o,e,t,n,r)}}function te(e){return function(t,n,i){const r=-1*i,s=F(n,R.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(e){case G.Short:return(r>=0?"+":"")+Z(o,2,s)+Z(Math.abs(r%60),2,s);case G.ShortGMT:return"GMT"+(r>=0?"+":"")+Z(o,1,s);case G.Long:return"GMT"+(r>=0?"+":"")+Z(o,2,s)+":"+Z(Math.abs(r%60),2,s);case G.Extended:return 0===i?"Z":(r>=0?"+":"")+Z(o,2,s)+":"+Z(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${e}"`)}}}function ne(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=(s=n,new Date(s.getFullYear(),s.getMonth(),s.getDate()+(4-s.getDay()))),t=function(e){const t=new Date(e,0,1).getDay();return new Date(e,0,1+(t<=4?4:11)-t)}(e.getFullYear()),i=e.getTime()-t.getTime();r=1+Math.round(i/6048e5)}var s;return Z(r,e,F(i,R.MinusSign))}}const ie={};function re(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function se(e){return e instanceof Date&&!isNaN(e.valueOf())}const oe=/^(\d+)?\.((\d+)(-(\d+))?)?$/,ae=".",ce="0";function le(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(ae))>-1&&(o=o.replace(ae,"")),(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)===ce;i++);if(i===(s=o.length))t=[0],n=1;else{for(s--;o.charAt(s)===ce;)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(oe);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=de(t)),null!=n&&(d=de(n)),null!=i?h=de(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(F(n,i)),b.length&&(a+=F(n,r)+b.join("")),m&&(a+=F(n,R.Exponential)+"+"+m)}else a=F(n,R.Infinity);return a=e<0&&!c?t.negPre+a+t.negSuf:t.posPre+a+t.posSuf,a}function ue(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(ae)?r.split(ae):[r.substring(0,r.lastIndexOf(ce)+1),r.substring(r.lastIndexOf(ce)+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===ce?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 de(e){const t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}class he{}let fe=(()=>{class e extends he{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(z(t||this.locale)(e)){case T.Zero:return"zero";case T.One:return"one";case T.Two:return"two";case T.Few:return"few";case T.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(i.dc(i.v))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})();function pe(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 me=(()=>{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.ob)(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.tb)(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.Mb(i.t),i.Mb(i.u),i.Mb(i.m),i.Mb(i.E))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e})();class be{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 ge=(()=>{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){Object(i.U)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),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 be(null,this._ngForOf,-1,-1),null===i?void 0:i),r=new _e(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 _e(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.Mb(i.P),i.Mb(i.L),i.Mb(i.t))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class _e{constructor(e,t){this.record=e,this.view=t}}let ye=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new ve,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){we("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){we("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.Mb(i.P),i.Mb(i.L))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class ve{constructor(){this.$implicit=null,this.ngIf=null}}function we(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Object(i.tb)(t)}'.`)}class Se{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.Hb({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e})(),ke=(()=>{class e{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new Se(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.P),i.Mb(i.L),i.Mb(Me,1))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e})(),xe=(()=>{class e{constructor(e,t,n){n._addDefault(new Se(e,t))}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.P),i.Mb(i.L),i.Mb(Me,1))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngSwitchDefault",""]]}),e})(),De=(()=>{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.Mb(i.m),i.Mb(i.u),i.Mb(i.E))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e})(),Te=(()=>{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.Mb(i.P))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.wb]}),e})();function Ce(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${Object(i.tb)(e)}'`)}class Oe{createSubscription(e,t){return e.subscribe({next:t,error:e=>{throw e}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class Le{createSubscription(e,t){return e.then(t,e=>{throw e})}dispose(e){}onDestroy(e){}}const Re=new Le,Ee=new Oe;let Ae=(()=>{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.qb)(t))return Re;if(Object(i.pb)(t))return Ee;throw Ce(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.fc())},e.\u0275pipe=i.Lb({name:"async",type:e,pure:!1}),e})(),Ie=(()=>{class e{transform(t){if(!t)return t;if("string"!=typeof t)throw Ce(e,t);return t.toLowerCase()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Lb({name:"lowercase",type:e,pure:!0}),e})();const Pe=/(?:[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(!t)return t;if("string"!=typeof t)throw Ce(e,t);return t.replace(Pe,e=>e[0].toUpperCase()+e.substr(1).toLowerCase())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Lb({name:"titlecase",type:e,pure:!0}),e})(),je=(()=>{class e{transform(t){if(!t)return t;if("string"!=typeof t)throw Ce(e,t);return t.toUpperCase()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Lb({name:"uppercase",type:e,pure:!0}),e})(),Fe=(()=>{class e{constructor(e){this.locale=e}transform(t,n="mediumDate",i,r){if(null==t||""===t||t!=t)return null;try{return Q(t,n,r||this.locale,i)}catch(s){throw Ce(e,s.message)}}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.v))},e.\u0275pipe=i.Lb({name:"date",type:e,pure:!0}),e})();const Ye=/#/g;let ze=(()=>{class e{constructor(e){this._localization=e}transform(t,n,i){if(null==t)return"";if("object"!=typeof n||null===n)throw Ce(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(Ye,t.toString())}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(he))},e.\u0275pipe=i.Lb({name:"i18nPlural",type:e,pure:!0}),e})(),$e=(()=>{class e{transform(e){return JSON.stringify(e,null,2)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Lb({name:"json",type:e,pure:!1}),e})(),He=(()=>{class e{constructor(e){this.differs=e,this.keyValues=[]}transform(e,t=We){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.Mb(i.u))},e.\u0275pipe=i.Lb({name:"keyvalue",type:e,pure:!1}),e})();function We(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 Ve=(()=>{class e{constructor(e){this._locale=e}transform(t,n,i){if(Ue(t))return null;i=i||this._locale;try{return function(e,t,n){return le(e,ue(Y(t,D.Decimal),F(t,R.MinusSign)),t,R.Group,R.Decimal,n)}(Ge(t),i,n)}catch(r){throw Ce(e,r.message)}}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.v))},e.\u0275pipe=i.Lb({name:"number",type:e,pure:!0}),e})(),Be=(()=>{class e{constructor(e){this._locale=e}transform(t,n,i){if(Ue(t))return null;i=i||this._locale;try{return function(e,t,n){return le(e,ue(Y(t,D.Percent),F(t,R.MinusSign)),t,R.Group,R.Decimal,n,!0).replace(new RegExp("%","g"),F(t,R.PercentSign))}(Ge(t),i,n)}catch(r){throw Ce(e,r.message)}}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.v))},e.\u0275pipe=i.Lb({name:"percent",type:e,pure:!0}),e})();function Ue(e){return null==e||""===e||e!=e}function Ge(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.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},providers:[{provide:he,useClass:fe}]}),e})();const Je="browser";function Qe(e){return e===Je}let Ke=(()=>{class e{}return e.\u0275prov=Object(i.Ib)({token:e,providedIn:"root",factory:()=>new Ze(Object(i.dc)(c),window,Object(i.dc)(i.n))}),e})();class Ze{constructor(e,t,n){this.document=e,this.window=t,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(this.supportsScrolling()){const t=this.document.getElementById(e)||this.document.getElementsByName(e)[0];t&&this.scrollToElement(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])}supportScrollRestoration(){try{if(!this.window||!this.window.scrollTo)return!1;const e=Xe(this.window.history)||Xe(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window.scrollTo}catch(e){return!1}}}function Xe(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))}},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.Lb({name:"map",type:e,pure:!0}),e})()},TWQb:function(e,t,n){var i=n("/GqU"),r=n("UMSQ"),s=n("I8vh"),o=function(e){return function(t,n,o){var a,c=i(t),l=r(c.length),u=s(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.Lb({name:"ordinal",type:e,pure:!0}),e})()},TeQF:function(e,t,n){"use strict";var i=n("I+eb"),r=n("tycR").filter,s=n("Hd5f"),o=n("rkAj"),a=s("filter"),c=o("filter");i({target:"Array",proto:!0,forced:!a||!c},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},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("ppGB"),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"))},UTVS:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},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"))},UxlC:function(e,t,n){"use strict";var i=n("14Sl"),r=n("glrk"),s=n("ewvW"),o=n("UMSQ"),a=n("ppGB"),c=n("HYAF"),l=n("iqWW"),u=n("FMNM"),d=Math.max,h=Math.min,f=Math.floor,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g;i("replace",2,(function(e,t,n,i){var b=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=i.REPLACE_KEEPS_$0,_=b?"$":"$0";return[function(n,i){var r=c(this),s=null==n?void 0:n[e];return void 0!==s?s.call(n,r,i):t.call(String(r),n,i)},function(e,i){if(!b&&g||"string"==typeof i&&-1===i.indexOf(_)){var s=n(t,e,this,i);if(s.done)return s.value}var c=r(e),f=String(this),p="function"==typeof i;p||(i=String(i));var m=c.global;if(m){var v=c.unicode;c.lastIndex=0}for(var w=[];;){var S=u(c,f);if(null===S)break;if(w.push(S),!m)break;""===String(S[0])&&(c.lastIndex=l(f,o(c.lastIndex),v))}for(var M,k="",x=0,D=0;D<w.length;D++){S=w[D];for(var T=String(S[0]),C=d(h(a(S.index),f.length),0),O=[],L=1;L<S.length;L++)O.push(void 0===(M=S[L])?M:String(M));var R=S.groups;if(p){var E=[T].concat(O,C,f);void 0!==R&&E.push(R);var A=String(i.apply(void 0,E))}else A=y(T,f,C,O,R,i);C>=x&&(k+=f.slice(x,C)+A,x=C+T.length)}return k+f.slice(x)}];function y(e,n,i,r,o,a){var c=i+e.length,l=r.length,u=m;return void 0!==o&&(o=s(o),u=p),t.call(a,u,(function(t,s){var a;switch(s.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,i);case"'":return n.slice(c);case"<":a=o[s.slice(1,-1)];break;default:var u=+s;if(0===u)return t;if(u>l){var d=f(u/10);return 0===d?t:d<=l?void 0===r[d-1]?s.charAt(1):r[d-1]+s.charAt(1):t}a=r[u-1]}return void 0===a?"":a}))}}))},"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.\u0275mod=h.Kb({type:e}),e.\u0275inj=h.Jb({factory:function(t){return new(t||e)},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"))},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.dc(r.a),s.dc(i.a))},e.\u0275prov=s.Ib({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.Ib({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.dc(s.a))},e.\u0275prov=o.Ib({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.6.5",mode:i?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},Vu81:function(e,t,n){var i=n("0GbY"),r=n("JBy8"),s=n("dBg+"),o=n("glrk");e.exports=i("Reflect","ownKeys")||function(e){var t=r.f(o(e)),n=s.f;return n?t.concat(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 z})),n.d(t,"b",(function(){return $})),n("TeQF"),n("QWBl"),n("4mDm"),n("zKZe"),n("07d7"),n("4l63"),n("PKPk"),n("ENF9"),n("3bBZ");var i=n("hKI/"),r=n.n(i),s=n("9/5/"),o=n.n(s),a=n("uyHG"),c=n.n(a),l=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,i){return e[0]===t&&(n=i,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(t,n){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,i=e(n,t);~i&&n.splice(i,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];e.call(t,r[1],r[0])}},t}()}(),u="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,d="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),h="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(d):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},f=["top","right","bottom","left","width","height","size","weight"],p="undefined"!=typeof MutationObserver,m=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,i=!1,r=0;function s(){n&&(n=!1,e()),i&&a()}function o(){h(s)}function a(){var e=Date.now();if(n){if(e-r<2)return;i=!0}else n=!0,i=!1,setTimeout(o,20);r=e}return a}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){u&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),p?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){u&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;f.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),b=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},g=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||d},_=S(0,0,0,0);function y(e){return parseFloat(e)||0}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+y(e["border-"+n+"-width"])}),0)}var w="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof g(e).SVGGraphicsElement}:function(e){return e instanceof g(e).SVGElement&&"function"==typeof e.getBBox};function S(e,t,n,i){return{x:e,y:t,width:n,height:i}}var M=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=S(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e,t=(e=this.target,u?w(e)?function(e){var t=e.getBBox();return S(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return _;var i=g(e).getComputedStyle(e),r=function(e){for(var t={},n=0,i=["top","right","bottom","left"];n<i.length;n++){var r=i[n];t[r]=y(e["padding-"+r])}return t}(i),s=r.left+r.right,o=r.top+r.bottom,a=y(i.width),c=y(i.height);if("border-box"===i.boxSizing&&(Math.round(a+s)!==t&&(a-=v(i,"left","right")+s),Math.round(c+o)!==n&&(c-=v(i,"top","bottom")+o)),!function(e){return e===g(e).document.documentElement}(e)){var l=Math.round(a+s)-t,u=Math.round(c+o)-n;1!==Math.abs(l)&&(a-=l),1!==Math.abs(u)&&(c-=u)}return S(r.left,r.top,a,c)}(e):_);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),k=function(e,t){var n,i,r,s,o,a,c,l=(i=(n=t).x,r=n.y,s=n.width,o=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(a.prototype),b(c,{x:i,y:r,width:s,height:o,top:r,right:i+s,bottom:o+r,left:i}),c);b(this,{target:e,contentRect:l})},x=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new l,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof g(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new M(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof g(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new k(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),D="undefined"!=typeof WeakMap?new WeakMap:new l,T=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=m.getInstance(),i=new x(t,n,this);D.set(this,i)};["observe","unobserve","disconnect"].forEach((function(e){T.prototype[e]=function(){var t;return(t=D.get(this))[e].apply(t,arguments)}}));var C=void 0!==d.ResizeObserver?d.ResizeObserver:T,O=n("AxL3"),L=n.n(O),R=(n("E9XD"),n("sMBO"),n("rB9j"),n("Rm1S"),n("UxlC"),null),E=null;function A(){if(null===R){if("undefined"==typeof document)return R=0;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),R=n}return R}function I(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}function P(e){return e&&e.ownerDocument?e.ownerDocument:document}L.a&&window.addEventListener("resize",(function(){E!==window.devicePixelRatio&&(E=window.devicePixelRatio,R=null)}));var N=function(){function e(t,n){var i=this;this.onScroll=function(){var e=I(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=P(i.el),n=I(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=r()(this.recalculate.bind(this),64),this.onMouseMove=r()(this.onMouseMove.bind(this),64),this.hideScrollbars=o()(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=o()(this.onWindowResize.bind(this),64,{leading:!0}),e.getRtlHelpers=c()(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=P(e),i=I(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),L.a&&(this.initDOM(),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.initListeners=function(){var e=this,t=I(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||C)((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=I(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=P(this.el),i=I(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=I(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:A()}catch(e){return A()}},t.removeListeners=function(){var e=this,t=I(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}();N.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},N.instances=new WeakMap;var j=N,F=n("8Y7J");const Y=["*"];let z=(()=>{class e{constructor(e){this.elRef=e}ngOnInit(){}ngAfterViewInit(){this.SimpleBar=new j(this.elRef.nativeElement,this.options||{})}ngOnDestroy(){this.SimpleBar.unMount(),this.SimpleBar=null}}return e.\u0275fac=function(t){return new(t||e)(F.Mb(F.m))},e.\u0275cmp=F.Gb({type:e,selectors:[["ngx-simplebar"]],hostAttrs:["data-simplebar","init"],inputs:{options:"options"},ngContentSelectors:Y,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&&(F.oc(),F.Sb(0,"div",0),F.Sb(1,"div",1),F.Nb(2,"div",2),F.Rb(),F.Sb(3,"div",3),F.Sb(4,"div",4),F.Sb(5,"div",5),F.Sb(6,"div",6),F.nc(7),F.Rb(),F.Rb(),F.Rb(),F.Rb(),F.Nb(8,"div",7),F.Rb(),F.Sb(9,"div",8),F.Nb(10,"div",9),F.Rb(),F.Sb(11,"div",10),F.Nb(12,"div",9),F.Rb())},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})(),$=(()=>{class e{}return e.\u0275mod=F.Kb({type:e}),e.\u0275inj=F.Jb({factory:function(t){return new(t||e)},imports:[[]]}),e})()},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("HYAF"),r="["+n("WJkJ")+"]",s=RegExp("^"+r+r+"*"),o=RegExp(r+r+"*$"),a=function(e){return function(t){var n=String(i(t));return 1&e&&(n=n.replace(s,"")),2&e&&(n=n.replace(o,"")),n}};e.exports={start:a(1),end:a(2),trim:a(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))},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"))},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.Gb({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.oc(),r.Sb(0,"ngb-alert",0),r.Sb(1,"strong"),r.Nb(2,"i",1),r.Rb(),r.nc(3),r.Rb()),2&e&&(r.pc("dismissible",!1),r.yb(2),r.pc("ngClass",r.vc(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}}},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}},YNrV:function(e,t,n){"use strict";var i=n("g6v/"),r=n("0Dky"),s=n("33Wh"),o=n("dBg+"),a=n("0eef"),c=n("ewvW"),l=n("RK3t"),u=Object.assign,d=Object.defineProperty;e.exports=!u||r((function(){if(i&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(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!=u({},e)[n]||s(u({},t)).join("")!=r}))?function(e,t){for(var n=c(e),r=arguments.length,u=1,d=o.f,h=a.f;r>u;)for(var f,p=l(arguments[u++]),m=d?s(p).concat(d(p)):s(p),b=m.length,g=0;b>g;)f=m[g++],i&&!h.call(p,f)||(n[f]=p[f]);return n}:u},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)}}},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.o,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.Mb(s.m),i.Mb(r.b))},e.\u0275cmp=i.Gb({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.Sb(0,"button",0),i.gc("click",(function(){return t.back()})),i.Oc(1),i.Rb()),2&e&&(i.yb(1),i.Qc(" ",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("ppGB"),r=n("HYAF"),s=function(e){return function(t,n){var s,o,a=String(r(t)),c=i(n),l=a.length;return c<0||c>=l?e?"":void 0:(s=a.charCodeAt(c))<55296||s>56319||c+1===l||(o=a.charCodeAt(c+1))<56320||o>57343?e?a.charAt(c):s:e?a.slice(c,c+2):o-56320+(s-55296<<10)+65536}};e.exports={codeAt:s(!1),charAt:s(!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("hh1v"),r=n("6LWA"),s=n("tiKp")("species");e.exports=function(e,t){var n;return r(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!r(n.prototype)?i(n)&&null===(n=n[s])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(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.Mb(r.e))},e.\u0275pipe=i.Lb({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)}var n=[/^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],i=/^(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,r=[/^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:r,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:r,monthsRegex:i,monthsShortRegex:i,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:n,longMonthsParse:n,shortMonthsParse:n,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(function e(t){return t>9?e(t%10):t}(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"))},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.Ib({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.Ib({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("hh1v"),l=n("kRJp"),u=n("UTVS"),d=n("93I0"),h=n("0BK2");if(o){var f=new(0,a.WeakMap),p=f.get,m=f.has,b=f.set;i=function(e,t){return b.call(f,e,t),t},r=function(e){return p.call(f,e)||{}},s=function(e){return m.call(f,e)}}else{var g=d("state");h[g]=!0,i=function(e,t){return l(e,g,t),t},r=function(e){return u(e,g)?e[g]:{}},s=function(e){return u(e,g)}}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(!c(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},ajRT:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("8Y7J"),r=n("ANnk");const s=[[["",8,"modal-title"]],[["",8,"modal-content"]]],o=[".modal-title",".modal-content"];let a=(()=>{class e{constructor(){this.hide=new i.o}close(){var e;null===(e=this.modalRef)||void 0===e||e.close(),this.hide.emit()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-modal"]],inputs:{modalRef:"modalRef"},outputs:{hide:"hide"},ngContentSelectors:o,decls:7,vars:0,consts:[[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.oc(s),i.Sb(0,"div",0),i.Sb(1,"h4",1),i.nc(2),i.Rb(),i.Sb(3,"button",2),i.gc("click",(function(){return t.close()})),i.Sb(4,"span",3),i.Oc(5,"\xd7"),i.Rb(),i.Rb(),i.Rb(),i.nc(6,1))},directives:[r.a],styles:[".modal-header[_ngcontent-%COMP%]{border-radius:5px 5px 0 0}.modal-header[_ngcontent-%COMP%],   cd-modal .modal-footer{background-color:#e9ecef;border-bottom:1px solid #ced4da}  cd-modal .modal-footer{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.dc(r.b))},e.\u0275prov=c.Ib({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.Oc(0),c.jc(1,"dimless")),2&e){const e=t.row;c.Rc(" ",c.kc(1,2,e.value)," ",e.unit," ")}}function b(e,t){if(1&e){const e=c.Tb();c.Sb(0,"cd-table",2),c.gc("fetchData",(function(t){return c.Dc(e),c.ic().getCounters(t)})),c.Mc(1,m,2,4,"ng-template",null,3,c.Nc),c.Rb()}if(2&e){const e=c.ic();c.pc("data",e.counters)("columns",e.columns)("autoSave",!1)}}function g(e,t){1&e&&(c.Sb(0,"cd-alert-panel",4),c.Wb(1,5),c.Rb())}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.Mb(l))},e.\u0275cmp=c.Gb({type:e,selectors:[["cd-table-performance-counter"]],viewQuery:function(e,t){var n;1&e&&c.Tc(p,!0),2&e&&c.zc(n=c.hc())&&(t.valueTpl=n.first)},inputs:{serviceType:"serviceType",serviceId:"serviceId"},decls:3,vars:2,consts:function(){return[["columnMode","flex",3,"data","columns","autoSave","fetchData",4,"ngIf","ngIfElse"],["warning",""],["columnMode","flex",3,"data","columns","autoSave","fetchData"],["valueTpl",""],["type","warning"],"Performance counters not available"]},template:function(e,t){if(1&e&&(c.Mc(0,b,3,3,"cd-table",0),c.Mc(1,g,2,0,"ng-template",null,1,c.Nc)),2&e){const e=c.Ac(2);c.pc("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("lMq5"),o=n("busE"),a=n("8YOa"),c=n("ImZN"),l=n("GarU"),u=n("hh1v"),d=n("0Dky"),h=n("HH4o"),f=n("1E5z"),p=n("cVYH");e.exports=function(e,t,n){var m=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),g=m?"set":"add",_=r[e],y=_&&_.prototype,v=_,w={},S=function(e){var t=y[e];o(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(b&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return b&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!u(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(s(e,"function"!=typeof _||!(b||y.forEach&&!d((function(){(new _).entries().next()})))))v=n.getConstructor(t,e,m,g),a.REQUIRED=!0;else if(s(e,!0)){var M=new v,k=M[g](b?{}:-0,1)!=M,x=d((function(){M.has(1)})),D=h((function(e){new _(e)})),T=!b&&d((function(){for(var e=new _,t=5;t--;)e[g](t,t);return!e.has(-0)}));D||((v=t((function(t,n){l(t,v,e);var i=p(new _,t,v);return null!=n&&c(n,i[g],i,m),i}))).prototype=y,y.constructor=v),(x||T)&&(S("delete"),S("has"),m&&S("get")),(T||k)&&S(g),b&&y.clear&&delete y.clear}return w[e]=v,i({global:!0,forced:v!=_},w),f(v,e),b||n.setStrong(v,e,m),v}},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("kRJp"),s=n("UTVS"),o=n("zk60"),a=n("iSVu"),c=n("afO8"),l=c.get,u=c.enforce,d=String(String).split("String");(e.exports=function(e,t,n,a){var c=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,h=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof t||s(n,"name")||r(n,"name",t),u(n).source=d.join("string"==typeof t?t:"")),e!==i?(c?!h&&e[t]&&(l=!0):delete e[t],l?e[t]=n:r(e,t,n)):l?e[t]=n:o(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||a(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.Mb(o.b))},e.\u0275cmp=s.Gb({type:e,selectors:[["cd-copy-2-clipboard-button"]],hostBindings:function(e,t){1&e&&s.gc("click",(function(){return t.onClick()}))},inputs:{source:"source",byId:"byId"},decls:3,vars:3,consts:function(){return[["type","button",1,"btn","btn-light",3,"click",6,"title"],["title","Copy to Clipboard"],[3,"ngClass"]]},template:function(e,t){1&e&&(s.Sb(0,"button",0),s.Yb(1,1),s.gc("click",(function(){return t.onClick()})),s.Nb(2,"i",2),s.Rb()),2&e&&(s.yb(2),s.pc("ngClass",s.uc(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"))},cUpR:function(e,t,n){"use strict";n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return R})),n.d(t,"c",(function(){return $})),n.d(t,"d",(function(){return P})),n.d(t,"e",(function(){return w}));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.r("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.s],multi:!0}];class d{static init(){Object(r.W)(new d)}addToWindow(e){r.nb.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.nb.getAllAngularTestabilities=()=>e.getAllTestabilities(),r.nb.getAllAngularRootElements=()=>e.getAllRootElements(),r.nb.frameworkStabilizers||(r.nb.frameworkStabilizers=[]),r.nb.frameworkStabilizers.push(e=>{const t=r.nb.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.r("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.dc(h),r.dc(r.A))},e.\u0275prov=r.Ib({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.Ib({token:e,factory:e.\u0275fac}),e})(),b=(()=>{class e extends m{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>Object(i.L)().remove(e))}}return e.\u0275fac=function(t){return new(t||e)(r.dc(i.d))},e.\u0275prov=r.Ib({token:e,factory:e.\u0275fac}),e})();const g={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/"},_=/%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(_,e),n.push(r))}return n}function v(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let w=(()=>{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.Q.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new M(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case r.Q.Native:case r.Q.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.dc(f),r.dc(b),r.dc(r.c))},e.\u0275prov=r.Ib({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(g[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=g[i];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const i=g[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.G.DashCase?e.style.setProperty(t,n,i&r.G.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&r.G.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,v(n)):this.eventManager.addEventListener(e,t,v(n))}}class M 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(_,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(_,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.component=i,this.shadowRoot=i.encapsulation===r.Q.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=y(i.id,i.styles,[]);for(let r=0;r<s.length;r++){const e=document.createElement("style");e.textContent=s[r],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 x=(()=>{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.dc(i.d))},e.\u0275prov=r.Ib({token:e,factory:e.\u0275fac}),e})();const D=["alt","control","meta","shift"],T={"\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"},C={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"},O={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let L=(()=>{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(D.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&&C.hasOwnProperty(t)&&(t=C[t]))}return T[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),D.forEach(i=>{i!=n&&(0,O[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.dc(i.d))},e.\u0275prov=r.Ib({token:e,factory:e.\u0275fac}),e})(),R=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Ib)({factory:function(){return Object(r.dc)(A)},token:e,providedIn:"root"}),e})();function E(e){return new A(e.get(i.d))}let A=(()=>{class e extends R{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case r.I.NONE:return t;case r.I.HTML:return Object(r.cb)(t,"HTML")?Object(r.ub)(t):Object(r.ab)(this._doc,String(t));case r.I.STYLE:return Object(r.cb)(t,"Style")?Object(r.ub)(t):t;case r.I.SCRIPT:if(Object(r.cb)(t,"Script"))return Object(r.ub)(t);throw new Error("unsafe value used in a script context");case r.I.URL:return Object(r.mb)(t),Object(r.cb)(t,"URL")?Object(r.ub)(t):Object(r.bb)(String(t));case r.I.RESOURCE_URL:if(Object(r.cb)(t,"ResourceURL"))return Object(r.ub)(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return Object(r.db)(e)}bypassSecurityTrustStyle(e){return Object(r.gb)(e)}bypassSecurityTrustScript(e){return Object(r.fb)(e)}bypassSecurityTrustUrl(e){return Object(r.hb)(e)}bypassSecurityTrustResourceUrl(e){return Object(r.eb)(e)}}return e.\u0275fac=function(t){return new(t||e)(r.dc(i.d))},e.\u0275prov=Object(r.Ib)({factory:function(){return E(Object(r.dc)(r.p))},token:e,providedIn:"root"}),e})();const I=[{provide:r.C,useValue:i.K},{provide:r.D,useValue:function(){o.makeCurrent(),d.init()},multi:!0},{provide:i.d,useFactory:function(){return Object(r.sb)(document),document},deps:[]}],P=Object(r.R)(r.V,"browser",I),N=[[],{provide:r.Y,useValue:"root"},{provide:r.n,useFactory:function(){return new r.n},deps:[]},{provide:h,useClass:x,multi:!0,deps:[i.d,r.A,r.C]},{provide:h,useClass:L,multi:!0,deps:[i.d]},[],{provide:w,useClass:w,deps:[f,b,r.c]},{provide:r.F,useExisting:w},{provide:m,useExisting:b},{provide:b,useClass:b,deps:[i.d]},{provide:r.M,useClass:r.M,deps:[r.A]},{provide:f,useClass:f,deps:[h,r.A]},[]];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.\u0275mod=r.Kb({type:e}),e.\u0275inj=r.Jb({factory:function(t){return new(t||e)(r.dc(e,12))},providers:N,imports:[i.c,r.f]}),e})();const F="undefined"!=typeof window&&window||{};class Y{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!=F.console.profile;t&&r&&F.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&&F.console.profileEnd(n);const c=(a-s)/o;return F.console.log(`ran ${o} change detection cycles`),F.console.log(c.toFixed(2)+" ms per check"),new Y(c,o)}}function $(e){return"profiler",t=new z(e),"undefined"!=typeof COMPILED&&COMPILED||((r.nb.ng=r.nb.ng||{}).profiler=t),e;var t}},cVYH:function(e,t,n){var i=n("hh1v"),r=n("0rvr");e.exports=function(e,t,n){var s,o;return r&&"function"==typeof(s=t.constructor)&&s!==n&&i(o=s.prototype)&&o!==n.prototype&&r(e,o),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.Ib({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.Lb({name:"milliseconds",type:e,pure:!0}),e})()},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.Mb(r.a))},e.\u0275cmp=s.Gb({type:e,selectors:[["cd-sparkline"]],viewQuery:function(e,t){var n;1&e&&(s.Jc(c,!0),s.Jc(l,!0)),2&e&&(s.zc(n=s.hc())&&(t.chartCanvasRef=n.first),s.zc(n=s.hc())&&(t.chartTooltipRef=n.first))},inputs:{data:"data",style:"style",isBinary:"isBinary"},features:[s.wb],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.Sb(0,"div",0),s.Nb(1,"canvas",1,2),s.Sb(3,"div",3,4),s.Nb(5,"table"),s.Rb(),s.Rb()),2&e&&(s.pc("ngStyle",t.style),s.yb(1),s.pc("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:rgba(0,0,0,.7);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 transparent;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}}},"eDl+":function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},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.Lb({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.dc(s.b),r.dc(i.a))},e.\u0275prov=r.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},ewvW:function(e,t,n){var i=n("HYAF");e.exports=function(e){return Object(i(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.Hb({type:e,selectors:[["","cdFormScope",""]],inputs:{cdFormScope:"cdFormScope"}}),e})()},f5p1:function(e,t,n){var i=n("2oRo"),r=n("iSVu"),s=i.WeakMap;e.exports="function"==typeof s&&/native code/.test(r(s))},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.Mb(r.c,13))},e.\u0275dir=i.Hb({type:e,selectors:[["",8,"form-control"],["",8,"form-check-input"],["",8,"custom-control-input"]],hostVars:4,hostBindings:function(e,t){2&e&&i.Eb("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(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(r){}var e,t;f=i?function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t}(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);for(var n=o.length;n--;)delete f.prototype[o[n]];return f()};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=f(),void 0===t?n:s(n,t)}},fdAy:function(e,t,n){"use strict";var i=n("I+eb"),r=n("ntOU"),s=n("4WOD"),o=n("0rvr"),a=n("1E5z"),c=n("kRJp"),l=n("busE"),u=n("tiKp"),d=n("xDBR"),h=n("P4y1"),f=n("rpNk"),p=f.IteratorPrototype,m=f.BUGGY_SAFARI_ITERATORS,b=u("iterator"),g="keys",_="values",y="entries",v=function(){return this};e.exports=function(e,t,n,u,f,w,S){r(n,t,u);var M,k,x,D=function(e){if(e===f&&R)return R;if(!m&&e in O)return O[e];switch(e){case g:case _:case y:return function(){return new n(this,e)}}return function(){return new n(this)}},T=t+" Iterator",C=!1,O=e.prototype,L=O[b]||O["@@iterator"]||f&&O[f],R=!m&&L||D(f),E="Array"==t&&O.entries||L;if(E&&(M=s(E.call(new e)),p!==Object.prototype&&M.next&&(d||s(M)===p||(o?o(M,p):"function"!=typeof M[b]&&c(M,b,v)),a(M,T,!0,!0),d&&(h[T]=v))),f==_&&L&&L.name!==_&&(C=!0,R=function(){return L.call(this)}),d&&!S||O[b]===R||c(O,b,R),h[t]=R,f)if(k={values:D(_),keys:w?R:D(g),entries:D(y)},S)for(x in k)(m||C||!(x in O))&&l(O,x,k[x]);else i({target:t,proto:!0,forced:m||C},k);return k}},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("hh1v");e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},"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 y(t){var n=r,i=s;return r=s=void 0,u=t,a=e.apply(i,n)}function v(e){return u=e,c=setTimeout(S,t),d?y(e):a}function w(e){var n=e-l;return void 0===l||n>=t||n<0||g&&e-u>=o}function S(){var e=p();if(w(e))return M(e);c=setTimeout(S,function(e){var n=t-(e-l);return g?f(n,o-(e-u)):n}(e))}function M(e){return c=void 0,_&&r?y(e):(r=s=void 0,a)}function k(){var e=p(),n=w(e);if(r=arguments,s=this,l=e,n){if(void 0===c)return v(l);if(g)return c=setTimeout(S,t),y(l)}return void 0===c&&(c=setTimeout(S,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:_),k.cancel=function(){void 0!==c&&clearTimeout(c),u=0,r=l=s=c=void 0},k.flush=function(){return void 0===c?a:M(p())},k}(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"))},hh1v:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof 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("MO+k"),s=n("2Vo4"),o=n("LvDl");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 s.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=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e.ngInjectableDef=Object(i.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})();const m=function(){var e={Default:0,Update:1,Refresh:2};return e[e.Default]="Default",e[e.Update]="Update",e[e.Refresh]="Refresh",e}();let b=(()=>{class e{constructor(e,t){this.element=e,this.themeService=t,this.options={},this.chartClick=new i.o,this.chartHover=new i.o,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){r.Chart.plugins.register(e)}static unregisterPlugin(e){r.Chart.plugins.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,t){if(this.chart)return this.chart.update(e,t)}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 r.Chart(e,t)}smartMerge(e,t,n=0){if(0===n&&(e=Object(o.cloneDeep)(e)),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].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.Mb(i.m),i.Mb(p))},e.\u0275dir=i.Hb({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.wb]}),e})(),g=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},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.Lb({name:"booleanText",type:e,pure:!0}),e})()},iInd:function(e,t,n){"use strict";n.d(t,"a",(function(){return Ee})),n.d(t,"b",(function(){return E})),n.d(t,"c",(function(){return R})),n.d(t,"d",(function(){return tn})),n.d(t,"e",(function(){return Gt})),n.d(t,"f",(function(){return qt})),n.d(t,"g",(function(){return Kt})),n.d(t,"h",(function(){return Jt})),n.d(t,"i",(function(){return un})),n.d(t,"j",(function(){return Zt}));var i=n("SVse"),r=n("8Y7J"),s=n("LRne"),o=n("Cfvw"),a=n("2Vo4"),c=n("itXk"),l=n("HDdC"),u=n("sVev"),d=n("EY2u");function h(e){return new l.a(t=>{let n;try{n=e()}catch(i){return void t.error(i)}return(n?Object(o.a)(n):Object(d.b)()).subscribe(t)})}var f=n("XNiG"),p=n("lJxs"),m=n("0EUg"),b=n("NJ9Y"),g=n("eIep"),_=n("IzEk"),y=n("JX91"),v=n("Kqap"),w=n("pLZG"),S=n("JIr8"),M=n("bOdf"),k=n("SxV6"),x=n("5+tZ"),D=n("vkgz"),T=n("BFxc"),C=n("nYR2"),O=n("bHdf");class L{constructor(e,t){this.id=e,this.url=t}}class R extends L{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 E extends L{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class A extends L{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class I extends L{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class P extends L{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 N extends L{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 j extends L{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 F extends L{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 Y extends L{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 z{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ${constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class H{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class W{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class V{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class B{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class U{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 q{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 J(e){return new q(e)}function Q(e){const t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function K(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 Z(e,t){const n=Object.keys(e),i=Object.keys(t);if(!n||!i||n.length!=i.length)return!1;let r;for(let s=0;s<n.length;s++)if(r=n[s],!X(e[r],t[r]))return!1;return!0}function X(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 ee(e){return Array.prototype.concat.apply([],e)}function te(e){return e.length>0?e[e.length-1]:null}function ne(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function ie(e){return Object(r.pb)(e)?e:Object(r.qb)(e)?Object(o.a)(Promise.resolve(e)):Object(s.a)(e)}function re(e,t,n){return n?function(e,t){return Z(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!ce(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children){if(!t.children[i])return!1;if(!e(t.children[i],n.children[i]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>X(e[n],t[n]))}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,i,r){if(n.segments.length>r.length)return!!ce(n.segments.slice(0,r.length),r)&&!i.hasChildren();if(n.segments.length===r.length){if(!ce(n.segments,r))return!1;for(const t in i.children){if(!n.children[t])return!1;if(!e(n.children[t],i.children[t]))return!1}return!0}{const e=r.slice(0,n.segments.length),s=r.slice(n.segments.length);return!!ce(n.segments,e)&&!!n.children.primary&&t(n.children.primary,i,s)}}(t,n,n.segments)}(e.root,t.root)}class se{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=J(this.queryParams)),this._queryParamMap}toString(){return he.serialize(this)}}class oe{constructor(e,t){this.segments=e,this.children=t,this.parent=null,ne(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return fe(this)}}class ae{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=J(this.parameters)),this._parameterMap}toString(){return ye(this)}}function ce(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}function le(e,t){let n=[];return ne(e.children,(e,i)=>{i===G&&(n=n.concat(t(e,i)))}),ne(e.children,(e,i)=>{i!==G&&(n=n.concat(t(e,i)))}),n}class ue{}class de{parse(e){const t=new ke(e);return new se(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){return`${"/"+function e(t,n){if(!t.hasChildren())return fe(t);if(n){const n=t.children.primary?e(t.children.primary,!1):"",i=[];return ne(t.children,(t,n)=>{n!==G&&i.push(`${n}:${e(t,!1)}`)}),i.length>0?`${n}(${i.join("//")})`:n}{const n=le(t,(n,i)=>i===G?[e(t.children.primary,!1)]:[`${i}:${e(n,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${fe(t)}/${n[0]}`:`${fe(t)}/(${n.join("//")})`}}(e.root,!0)}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${me(t)}=${me(e)}`).join("&"):`${me(t)}=${me(n)}`});return t.length?"?"+t.join("&"):""}(e.queryParams)}${"string"==typeof e.fragment?"#"+encodeURI(e.fragment):""}`}}const he=new de;function fe(e){return e.segments.map(e=>ye(e)).join("/")}function pe(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function me(e){return pe(e).replace(/%3B/gi,";")}function be(e){return pe(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ge(e){return decodeURIComponent(e)}function _e(e){return ge(e.replace(/\+/g,"%20"))}function ye(e){return`${be(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${be(e)}=${be(t[e])}`).join("")}`;var t}const ve=/^[^\/()?;=#]+/;function we(e){const t=e.match(ve);return t?t[0]:""}const Se=/^[^=?&#]+/,Me=/^[^?&#]+/;class ke{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new oe([],{}):new oe([],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 oe(e,t)),n}parseSegment(){const e=we(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new ae(ge(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=we(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=we(this.remaining);e&&(n=e,this.capture(n))}e[ge(t)]=ge(n)}parseQueryParam(e){const t=function(e){const t=e.match(Se);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(Me);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const i=_e(t),r=_e(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=we(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let r=void 0;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 oe([],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 xe{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=De(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=De(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=Te(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return Te(e,this._root).map(e=>e.value)}}function De(e,t){if(e===t.value)return t;for(const n of t.children){const t=De(e,n);if(t)return t}return null}function Te(e,t){if(e===t.value)return[t];for(const n of t.children){const i=Te(e,n);if(i.length)return i.unshift(t),i}return[]}class Ce{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function Oe(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class Le extends xe{constructor(e,t){super(e),this.snapshot=t,Ne(this,e)}toString(){return this.snapshot.toString()}}function Re(e,t){const n=function(e,t){const n=new Ie([],{},{},"",{},G,t,null,e.root,-1,{});return new Pe("",new Ce(n,[]))}(e,t),i=new a.a([new ae("",{})]),r=new a.a({}),s=new a.a({}),o=new a.a({}),c=new a.a(""),l=new Ee(i,r,o,c,s,G,t,n.root);return l.snapshot=n.root,new Le(new Ce(l,[]),n)}class Ee{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(p.a)(e=>J(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(p.a)(e=>J(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ae(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 Ie{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=J(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=J(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Pe extends xe{constructor(e,t){super(t),this.url=e,Ne(this,t)}toString(){return je(this._root)}}function Ne(e,t){t.value._routerState=e,t.children.forEach(t=>Ne(e,t))}function je(e){const t=e.children.length>0?` { ${e.children.map(je).join(", ")} } `:"";return`${e.value}${t}`}function Fe(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Z(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Z(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(!Z(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),Z(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function Ye(e,t){var n,i;return Z(e.params,t.params)&&ce(n=e.url,i=t.url)&&n.every((e,t)=>Z(e.parameters,i[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||Ye(e.parent,t.parent))}function ze(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function $e(e,t,n,i,r){let s={};return i&&ne(i,(e,t)=>{s[t]=Array.isArray(e)?e.map(e=>""+e):""+e}),new se(n.root===e?t:function e(t,n,i){const r={};return ne(t.children,(t,s)=>{r[s]=t===n?i:e(t,n,i)}),new oe(t.segments,r)}(n.root,e,t),s,r)}class He{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&ze(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(e=>"object"==typeof e&&null!=e&&e.outlets);if(i&&i!==te(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class We{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function Ve(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets.primary:""+e}function Be(e,t,n){if(e||(e=new oe([],{})),0===e.segments.length&&e.hasChildren())return Ue(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=Ve(n[i]),a=i<n.length-1?n[i+1]:null;if(r>0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!Qe(o,a,t))return s;i+=2}else{if(!Qe(o,{},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 oe(e.segments.slice(0,i.pathIndex),{});return t.children.primary=new oe(e.segments.slice(i.pathIndex),e.children),Ue(t,0,r)}return i.match&&0===r.length?new oe(e.segments,{}):i.match&&!e.hasChildren()?Ge(e,t,n):i.match?Ue(e,0,r):Ge(e,t,n)}function Ue(e,t,n){if(0===n.length)return new oe(e.segments,{});{const i=function(e){return"object"==typeof e[0]&&null!==e[0]&&e[0].outlets?e[0].outlets:{[G]:e}}(n),r={};return ne(i,(n,i)=>{null!==n&&(r[i]=Be(e.children[i],t,n))}),ne(e.children,(e,t)=>{void 0===i[t]&&(r[t]=e)}),new oe(e.segments,r)}}function Ge(e,t,n){const i=e.segments.slice(0,t);let r=0;for(;r<n.length;){if("object"==typeof n[r]&&null!==n[r]&&void 0!==n[r].outlets){const e=qe(n[r].outlets);return new oe(i,e)}if(0===r&&ze(n[0])){i.push(new ae(e.segments[t].path,n[0])),r++;continue}const s=Ve(n[r]),o=r<n.length-1?n[r+1]:null;s&&o&&ze(o)?(i.push(new ae(s,Je(o))),r+=2):(i.push(new ae(s,{})),r++)}return new oe(i,{})}function qe(e){const t={};return ne(e,(e,n)=>{null!==e&&(t[n]=Ge(new oe([],{}),0,e))}),t}function Je(e){const t={};return ne(e,(e,n)=>t[n]=""+e),t}function Qe(e,t,n){return e==n.path&&Z(t,n.parameters)}class Ke{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),Fe(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const i=Oe(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,i[t],n),delete i[t]}),ne(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);if(n){const i=Oe(e),r=e.value.component?n.children:t;ne(i,(e,t)=>this.deactivateRouteAndItsChildren(e,r)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(e,t,n){const i=Oe(t);e.children.forEach(e=>{this.activateRoutes(e,i[e.value.outlet],n),this.forwardEvent(new B(e.value.snapshot))}),e.children.length&&this.forwardEvent(new W(e.value.snapshot))}activateRoutes(e,t,n){const i=e.value,r=t?t.value:null;if(Fe(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),Ze(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 Ze(e){Fe(e.value),e.children.forEach(Ze)}class Xe{constructor(e,t){this.routes=e,this.module=t}}function et(e){return"function"==typeof e}function tt(e){return e instanceof se}const nt=Symbol("INITIAL_VALUE");function it(){return Object(g.a)(e=>Object(c.a)(...e.map(e=>e.pipe(Object(_.a)(1),Object(y.a)(nt)))).pipe(Object(v.a)((e,t)=>{let n=!1;return t.reduce((e,i,r)=>{if(e!==nt)return e;if(i===nt&&(n=!0),!n){if(!1===i)return i;if(r===t.length-1||tt(i))return i}return e},e)},nt),Object(w.a)(e=>e!==nt),Object(p.a)(e=>tt(e)?e:!0===e),Object(_.a)(1)))}class rt{constructor(e){this.segmentGroup=e||null}}class st{constructor(e){this.urlTree=e}}function ot(e){return new l.a(t=>t.error(new rt(e)))}function at(e){return new l.a(t=>t.error(new st(e)))}function ct(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.y)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,G).pipe(Object(p.a)(e=>this.createUrlTree(e,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(S.a)(e=>{if(e instanceof st)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof rt)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,G).pipe(Object(p.a)(t=>this.createUrlTree(t,e.queryParams,e.fragment))).pipe(Object(S.a)(e=>{if(e instanceof rt)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 oe([],{[G]:e}):e;return new se(i,t,n)}expandSegmentGroup(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Object(p.a)(e=>new oe([],e))):this.expandSegment(e,n,t,n.segments,i,!0)}expandChildren(e,t,n){return function(e,t){if(0===Object.keys(e).length)return Object(s.a)({});const n=[],i=[],r={};return ne(e,(e,s)=>{const o=t(s,e).pipe(Object(p.a)(e=>r[s]=e));s===G?n.push(o):i.push(o)}),s.a.apply(null,n.concat(i)).pipe(Object(m.a)(),Object(b.a)(),Object(p.a)(()=>r))}(n.children,(n,i)=>this.expandSegmentGroup(e,t,i,n))}expandSegment(e,t,n,i,r,o){return Object(s.a)(...n).pipe(Object(M.a)(a=>this.expandSegmentAgainstRoute(e,t,n,a,i,r,o).pipe(Object(S.a)(e=>{if(e instanceof rt)return Object(s.a)(null);throw e}))),Object(k.a)(e=>!!e),Object(S.a)((e,n)=>{if(e instanceof u.a||"EmptyError"===e.name){if(this.noLeftoversInUrl(t,i,r))return Object(s.a)(new oe([],{}));throw new rt(t)}throw e}))}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}expandSegmentAgainstRoute(e,t,n,i,r,s,o){return ft(i)!==s?ot(t):void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,s):ot(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("/")?at(r):this.lineralizeSegments(n,r).pipe(Object(x.a)(n=>{const r=new oe(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}=ut(t,i,r);if(!o)return ot(t);const u=this.applyRedirectCommands(a,i.redirectTo,l);return i.redirectTo.startsWith("/")?at(u):this.lineralizeSegments(i,u).pipe(Object(x.a)(i=>this.expandSegment(e,t,n,i.concat(r.slice(c)),s,!1)))}matchSegmentAgainstRoute(e,t,n,i){if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(Object(p.a)(e=>(n._loadedConfig=e,new oe(i,{})))):Object(s.a)(new oe(i,{}));const{matched:r,consumedSegments:o,lastChild:a}=ut(t,n,i);if(!r)return ot(t);const c=i.slice(a);return this.getChildConfig(e,n,i).pipe(Object(x.a)(e=>{const n=e.module,i=e.routes,{segmentGroup:r,slicedSegments:a}=function(e,t,n,i){return n.length>0&&function(e,t,n){return n.some(n=>ht(e,t,n)&&ft(n)!==G)}(e,n,i)?{segmentGroup:dt(new oe(t,function(e,t){const n={};n.primary=t;for(const i of e)""===i.path&&ft(i)!==G&&(n[ft(i)]=new oe([],{}));return n}(i,new oe(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some(n=>ht(e,t,n))}(e,n,i)?{segmentGroup:dt(new oe(e.segments,function(e,t,n,i){const r={};for(const s of n)ht(e,t,s)&&!i[ft(s)]&&(r[ft(s)]=new oe([],{}));return Object.assign(Object.assign({},i),r)}(e,n,i,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,o,c,i);return 0===a.length&&r.hasChildren()?this.expandChildren(n,i,r).pipe(Object(p.a)(e=>new oe(o,e))):0===i.length&&0===a.length?Object(s.a)(new oe(o,{})):this.expandSegment(n,r,i,a,G,!0).pipe(Object(p.a)(e=>new oe(o.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?Object(s.a)(new Xe(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Object(s.a)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(Object(x.a)(n=>n?this.configLoader.load(e.injector,t).pipe(Object(p.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(s.a)(new Xe([],e))}runCanLoadGuards(e,t,n){const i=t.canLoad;if(!i||0===i.length)return Object(s.a)(!0);const r=i.map(i=>{const r=e.get(i);let s;if(function(e){return e&&et(e.canLoad)}(r))s=r.canLoad(t,n);else{if(!et(r))throw new Error("Invalid CanLoad guard");s=r(t,n)}return ie(s)});return Object(s.a)(r).pipe(it(),Object(D.a)(e=>{if(!tt(e))return;const t=Q(`Redirecting to "${this.urlSerializer.serialize(e)}"`);throw t.url=e,t}),Object(p.a)(e=>!0===e))}lineralizeSegments(e,t){let n=[],i=t.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Object(s.a)(n);if(i.numberOfChildren>1||!i.children.primary)return ct(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 se(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return ne(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 ne(t.children,(t,r)=>{s[r]=this.createSegmentGroup(e,t,n,i)}),new oe(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 ut(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const i=(t.matcher||K)(n,e,t);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function dt(e){if(1===e.numberOfChildren&&e.children.primary){const t=e.children.primary;return new oe(e.segments.concat(t.segments),t.children)}return e}function ht(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function ft(e){return e.outlet||G}class pt{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class mt{constructor(e,t){this.component=e,this.route=t}}function bt(e,t,n){const i=e._root;return function e(t,n,i,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=Oe(n);return t.children.forEach(t=>{!function(t,n,i,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,a=n?n.value:null,c=i?i.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!ce(e.url,t.url);case"pathParamsOrQueryParamsChange":return!ce(e.url,t.url)||!Z(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ye(e,t)||!Z(e.queryParams,t.queryParams);case"paramsChange":default:return!Ye(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new pt(r)):(o.data=a.data,o._resolvedData=a._resolvedData),e(t,n,o.component?c?c.children:null:i,r,s),l&&c&&c.outlet&&c.outlet.isActivated&&s.canDeactivateChecks.push(new mt(c.outlet.component,a))}else a&&_t(n,c,s),s.canActivateChecks.push(new pt(r)),e(t,null,o.component?c?c.children:null:i,r,s)}(t,o[t.value.outlet],i,r.concat([t.value]),s),delete o[t.value.outlet]}),ne(o,(e,t)=>_t(e,i.getContext(t),s)),s}(i,t?t._root:null,n,[i.value])}function gt(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 _t(e,t,n){const i=Oe(e),r=e.value;ne(i,(e,i)=>{_t(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new mt(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function yt(e,t){return null!==e&&t&&t(new V(e)),Object(s.a)(!0)}function vt(e,t){return null!==e&&t&&t(new H(e)),Object(s.a)(!0)}function wt(e,t,n){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return Object(s.a)(!0);const r=i.map(i=>h(()=>{const r=gt(i,t,n);let s;if(function(e){return e&&et(e.canActivate)}(r))s=ie(r.canActivate(t,e));else{if(!et(r))throw new Error("Invalid CanActivate guard");s=ie(r(t,e))}return s.pipe(Object(k.a)())}));return Object(s.a)(r).pipe(it())}function St(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=>h(()=>{const r=t.guards.map(r=>{const s=gt(r,t.node,n);let o;if(function(e){return e&&et(e.canActivateChild)}(s))o=ie(s.canActivateChild(i,e));else{if(!et(s))throw new Error("Invalid CanActivateChild guard");o=ie(s(i,e))}return o.pipe(Object(k.a)())});return Object(s.a)(r).pipe(it())}));return Object(s.a)(r).pipe(it())}class Mt{}class kt{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(){try{const e=Tt(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,G),n=new Ie([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},G,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Ce(n,t),r=new Pe(this.url,i);return this.inheritParamsAndData(r._root),Object(s.a)(r)}catch(e){return new l.a(t=>t.error(e))}}inheritParamsAndData(e){const t=e.value,n=Ae(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=le(t,(t,n)=>this.processSegmentGroup(e,t,n));return function(e){const t={};e.forEach(e=>{const n=t[e.value.outlet];if(n){const t=n.url.map(e=>e.toString()).join("/"),i=e.value.url.map(e=>e.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${t}' and '${i}'.`)}t[e.value.outlet]=e.value})}(n),n.sort((e,t)=>e.value.outlet===G?-1:t.value.outlet===G?1:e.value.outlet.localeCompare(t.value.outlet)),n}processSegment(e,t,n,i){for(const s of e)try{return this.processSegmentAgainstRoute(s,t,n,i)}catch(r){if(!(r instanceof Mt))throw r}if(this.noLeftoversInUrl(t,n,i))return[];throw new Mt}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}processSegmentAgainstRoute(e,t,n,i){if(e.redirectTo)throw new Mt;if((e.outlet||G)!==i)throw new Mt;let r,s=[],o=[];if("**"===e.path){const s=n.length>0?te(n).parameters:{};r=new Ie(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Lt(e),i,e.component,e,xt(t),Dt(t)+n.length,Rt(e))}else{const a=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new Mt;return{consumedSegments:[],lastChild:0,parameters:{}}}const i=(t.matcher||K)(n,e,t);if(!i)throw new Mt;const r={};ne(i.posParams,(e,t)=>{r[t]=e.path});const s=i.consumed.length>0?Object.assign(Object.assign({},r),i.consumed[i.consumed.length-1].parameters):r;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:s}}(t,e,n);s=a.consumedSegments,o=n.slice(a.lastChild),r=new Ie(s,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Lt(e),i,e.component,e,xt(t),Dt(t)+s.length,Rt(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:c,slicedSegments:l}=Tt(t,s,o,a,this.relativeLinkResolution);if(0===l.length&&c.hasChildren()){const e=this.processChildren(a,c);return[new Ce(r,e)]}if(0===a.length&&0===l.length)return[new Ce(r,[])];const u=this.processSegment(a,c,l,G);return[new Ce(r,u)]}}function xt(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function Dt(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 Tt(e,t,n,i,r){if(n.length>0&&function(e,t,n){return n.some(n=>Ct(e,t,n)&&Ot(n)!==G)}(e,n,i)){const r=new oe(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&&Ot(s)!==G){const n=new oe([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,r[Ot(s)]=n}return r}(e,t,i,new oe(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=>Ct(e,t,n))}(e,n,i)){const s=new oe(e.segments,function(e,t,n,i,r,s){const o={};for(const a of i)if(Ct(e,n,a)&&!r[Ot(a)]){const n=new oe([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===s?e.segments.length:t.length,o[Ot(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 oe(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Ct(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Ot(e){return e.outlet||G}function Lt(e){return e.data||{}}function Rt(e){return e.resolve||{}}function Et(e){return function(t){return t.pipe(Object(g.a)(t=>{const n=e(t);return n?Object(o.a)(n).pipe(Object(p.a)(()=>t)):Object(o.a)([t])}))}}class At 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}}{}let It=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Gb({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&r.Nb(0,"router-outlet")},directives:function(){return[Zt]},encapsulation:2}),e})();function Pt(e,t=""){for(let n=0;n<e.length;n++){const i=e[n];Nt(i,jt(t,i))}}function Nt(e,t){if(!e)throw new Error(`\n      Invalid configuration of route '${t}': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    `);if(Array.isArray(e))throw new Error(`Invalid configuration of route '${t}': Array cannot be specified`);if(!e.component&&!e.children&&!e.loadChildren&&e.outlet&&e.outlet!==G)throw new Error(`Invalid configuration of route '${t}': a componentless route without children or loadChildren cannot have a named outlet set`);if(e.redirectTo&&e.children)throw new Error(`Invalid configuration of route '${t}': redirectTo and children cannot be used together`);if(e.redirectTo&&e.loadChildren)throw new Error(`Invalid configuration of route '${t}': redirectTo and loadChildren cannot be used together`);if(e.children&&e.loadChildren)throw new Error(`Invalid configuration of route '${t}': children and loadChildren cannot be used together`);if(e.redirectTo&&e.component)throw new Error(`Invalid configuration of route '${t}': redirectTo and component cannot be used together`);if(e.path&&e.matcher)throw new Error(`Invalid configuration of route '${t}': path and matcher cannot be used together`);if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error(`Invalid configuration of route '${t}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===e.path&&void 0===e.matcher)throw new Error(`Invalid configuration of route '${t}': routes must have either a path or a matcher specified`);if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new Error(`Invalid configuration of route '${t}': path cannot start with a slash`);if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch)throw new Error(`Invalid configuration of route '{path: "${t}", redirectTo: "${e.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error(`Invalid configuration of route '${t}': pathMatch can only be set to 'prefix' or 'full'`);e.children&&Pt(e.children,t)}function jt(e,t){return t?e||t.path?e&&!t.path?e+"/":!e&&t.path?t.path:`${e}/${t.path}`:"":e}function Ft(e){const t=e.children&&e.children.map(Ft),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=It),n}const Yt=new r.r("ROUTES");class zt{constructor(e,t,n,i){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=i}load(e,t){return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(Object(p.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const i=n.create(e);return new Xe(ee(i.injector.get(Yt)).map(Ft),i)}))}loadModuleFactory(e){return"string"==typeof e?Object(o.a)(this.loader.load(e)):ie(e()).pipe(Object(x.a)(e=>e instanceof r.w?Object(s.a)(e):Object(o.a)(this.compiler.compileModuleAsync(e))))}}class $t{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ht,this.attachRef=null}}class Ht{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 $t,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class Wt{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function Vt(e){throw e}function Bt(e,t,n){return t.parse("/")}function Ut(e,t){return Object(s.a)(null)}let Gt=(()=>{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.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new f.a,this.errorHandler=Vt,this.malformedUriErrorHandler=Bt,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Ut,afterPreactivation:Ut},this.urlHandlingStrategy=new Wt,this.routeReuseStrategy=new At,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=s.get(r.y),this.console=s.get(r.X);const u=s.get(r.A);this.isNgZoneEnabled=u instanceof r.A,this.resetConfig(l),this.currentUrlTree=new se(new oe([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new zt(o,c,e=>this.triggerEvent(new z(e)),e=>this.triggerEvent(new $(e))),this.routerState=Re(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(p.a)(e=>Object.assign(Object.assign({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),Object(g.a)(e=>{let n=!1,i=!1;return Object(s.a)(e).pipe(Object(D.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(s.a)(e).pipe(Object(g.a)(e=>{const n=this.transitions.getValue();return t.next(new R(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?d.a:[e]}),Object(g.a)(e=>Promise.resolve(e)),(i=this.ngModule.injector,r=this.configLoader,o=this.urlSerializer,a=this.config,function(e){return e.pipe(Object(g.a)(e=>function(e,t,n,i,r){return new lt(e,t,n,i,r).apply()}(i,r,o,e.extractedUrl,a).pipe(Object(p.a)(t=>Object.assign(Object.assign({},e),{urlAfterRedirects:t})))))}),Object(D.a)(e=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,t,n,i,r){return function(s){return s.pipe(Object(x.a)(s=>function(e,t,n,i,r="emptyOnly",s="legacy"){return new kt(e,t,n,i,r,s).recognize()}(e,t,s.urlAfterRedirects,n(s.urlAfterRedirects),i,r).pipe(Object(p.a)(e=>Object.assign(Object.assign({},s),{targetSnapshot:e})))))}}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(D.a)(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),Object(D.a)(e=>{const n=new P(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));var i,r,o,a;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:r,restoredState:o,extras:a}=e,c=new R(n,this.serializeUrl(i),r,o);t.next(c);const l=Re(i,this.rootComponentType).snapshot;return Object(s.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),d.a}),Et(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(D.a)(e=>{const t=new N(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),Object(p.a)(e=>Object.assign(Object.assign({},e),{guards:bt(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return function(n){return n.pipe(Object(x.a)(n=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:a,canDeactivateChecks:c}}=n;return 0===c.length&&0===a.length?Object(s.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return Object(o.a)(e).pipe(Object(x.a)(e=>function(e,t,n,i,r){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(s.a)(!0);const a=o.map(s=>{const o=gt(s,t,r);let a;if(function(e){return e&&et(e.canDeactivate)}(o))a=ie(o.canDeactivate(e,t,n,i));else{if(!et(o))throw new Error("Invalid CanDeactivate guard");a=ie(o(e,t,n,i))}return a.pipe(Object(k.a)())});return Object(s.a)(a).pipe(it())}(e.component,e.route,n,t,i)),Object(k.a)(e=>!0!==e,!0))}(c,i,r,e).pipe(Object(x.a)(n=>n&&"boolean"==typeof n?function(e,t,n,i){return Object(o.a)(t).pipe(Object(M.a)(t=>Object(o.a)([vt(t.route.parent,i),yt(t.route,i),St(e,t.path,n),wt(e,t.route,n)]).pipe(Object(m.a)(),Object(k.a)(e=>!0!==e,!0))),Object(k.a)(e=>!0!==e,!0))}(i,a,e,t):Object(s.a)(n)),Object(p.a)(e=>Object.assign(Object.assign({},n),{guardsResult:e})))}))}}(this.ngModule.injector,e=>this.triggerEvent(e)),Object(D.a)(e=>{if(tt(e.guardsResult)){const t=Q(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}}),Object(D.a)(e=>{const t=new j(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 A(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),Et(e=>{if(e.guards.canActivateChecks.length)return Object(s.a)(e).pipe(Object(D.a)(e=>{const t=new F(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),Object(g.a)(e=>{let n=!1;return Object(s.a)(e).pipe((i=this.paramsInheritanceStrategy,r=this.ngModule.injector,function(e){return e.pipe(Object(x.a)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:n}}=e;if(!n.length)return Object(s.a)(e);let a=0;return Object(o.a)(n).pipe(Object(M.a)(e=>function(e,t,n,i){return function(e,t,n,i){const r=Object.keys(e);if(0===r.length)return Object(s.a)({});const a={};return Object(o.a)(r).pipe(Object(x.a)(r=>function(e,t,n,i){const r=gt(e,t,i);return ie(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(Object(D.a)(e=>{a[r]=e}))),Object(T.a)(1),Object(x.a)(()=>Object.keys(a).length===r.length?Object(s.a)(a):d.a))}(e._resolve,e,t,i).pipe(Object(p.a)(t=>(e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),Ae(e,n).resolve),null)))}(e.route,t,i,r)),Object(D.a)(()=>a++),Object(T.a)(1),Object(x.a)(t=>a===n.length?Object(s.a)(e):d.a))}))}),Object(D.a)({next:()=>n=!0,complete:()=>{if(!n){const n=new A(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(D.a)(e=>{const t=new Y(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),Et(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(p.a)(e=>{const t=function(e,t,n){const i=function e(t,n,i){if(i&&t.shouldReuseRoute(n.value,i.value.snapshot)){const r=i.value;r._futureSnapshot=n.value;const s=function(t,n,i){return n.children.map(n=>{for(const r of i.children)if(t.shouldReuseRoute(r.value.snapshot,n.value))return e(t,n,r);return e(t,n)})}(t,n,i);return new Ce(r,s)}{const i=t.retrieve(n.value);if(i){const e=i.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(let i=0;i<t.children.length;++i)e(t.children[i],n.children[i])}(n,e),e}{const i=new Ee(new a.a((r=n.value).url),new a.a(r.params),new a.a(r.queryParams),new a.a(r.fragment),new a.a(r.data),r.outlet,r.component,r),s=n.children.map(n=>e(t,n));return new Ce(i,s)}}var r}(e,t._root,n?n._root:void 0);return new Le(i,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:t})}),Object(D.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,c=this.routeReuseStrategy,l=e=>this.triggerEvent(e),Object(p.a)(e=>(new Ke(c,e.targetRouterState,e.currentRouterState,l).activate(r),e))),Object(D.a)({next(){n=!0},complete(){n=!0}}),Object(C.a)(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new A(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(S.a)(n=>{if(i=!0,(r=n)&&r.ngNavigationCancelingError){const i=tt(n.url);i||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const r=new A(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(r),i?setTimeout(()=>{const t=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return 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 I(e.id,this.serializeUrl(e.extractedUrl),n);t.next(i);try{e.resolve(this.errorHandler(n))}catch(s){e.reject(s)}}var r;return d.a}));var r,c,l}))}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){Pt(e),this.config=e.map(Ft),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}createUrlTree(e,t={}){const{relativeTo:n,queryParams:i,fragment:s,preserveQueryParams:o,queryParamsHandling:a,preserveFragment:c}=t;Object(r.U)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,u=c?this.currentUrlTree.fragment:s;let d=null;if(a)switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=i||null}else d=o?this.currentUrlTree.queryParams:i||null;return null!==d&&(d=this.removeEmptyProps(d)),function(e,t,n,i,r){if(0===n.length)return $e(t.root,t.root,t,i,r);const s=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new He(!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 ne(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 He(n,t,i)}(n);if(s.toRoot())return $e(t.root,new oe([],{}),t,i,r);const o=function(e,t,n){if(e.isAbsolute)return new We(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){const e=n.snapshot._urlSegment;return new We(e,e===t.root,0)}const i=ze(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 We(i,!1,r-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(s,t,e),a=o.processChildren?Ue(o.segmentGroup,o.index,s.commands):Be(o.segmentGroup,o.index,s.commands);return $e(o.segmentGroup,a,t,i,r)}(l,this.currentUrlTree,e,d,u)}navigateByUrl(e,t={skipLocationChange:!1}){Object(r.U)()&&this.isNgZoneEnabled&&!r.A.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=tt(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(tt(e))return re(this.currentUrlTree,e,t);const n=this.parseUrl(e);return re(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 E(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,i,r){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.dc(r.N),r.dc(ue),r.dc(Ht),r.dc(i.m),r.dc(r.s),r.dc(r.x),r.dc(r.i),r.dc(void 0))},e.\u0275prov=r.Ib({token:e,factory:e.\u0275fac}),e})(),qt=(()=>{class e{constructor(e,t,n,i,r){this.router=e,this.route=t,this.commands=[],this.onChanges=new f.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]:[]}set preserveQueryParams(e){Object(r.U)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=e}onClick(){const e={skipLocationChange:Qt(this.skipLocationChange),replaceUrl:Qt(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Qt(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Qt(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(r.Mb(Gt),r.Mb(Ee),r.ec("tabindex"),r.Mb(r.E),r.Mb(r.m))},e.\u0275dir=r.Hb({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&r.gc("click",(function(){return t.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[r.wb]}),e})(),Jt=(()=>{class e{constructor(e,t,n){this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.onChanges=new f.a,this.subscription=e.events.subscribe(e=>{e instanceof E&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}set preserveQueryParams(e){Object(r.U)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=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:Qt(this.skipLocationChange),replaceUrl:Qt(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:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Qt(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Qt(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(r.Mb(Gt),r.Mb(Ee),r.Mb(i.n))},e.\u0275dir=r.Hb({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&r.gc("click",(function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)})),2&e&&(r.Vb("href",t.href,r.Gc),r.zb("target",t.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[r.wb]}),e})();function Qt(e){return""===e||!!e}let Kt=(()=>{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 E&&this.update()})}ngAfterContentInit(){Object(o.a)([this.links.changes,this.linksWithHrefs.changes,Object(s.a)(null)]).pipe(Object(O.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(o.a)(t).pipe(Object(O.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.Mb(Gt),r.Mb(r.m),r.Mb(r.E),r.Mb(r.h),r.Mb(qt,8),r.Mb(Jt,8))},e.\u0275dir=r.Hb({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(e,t,n){var i;1&e&&(r.Fb(n,qt,!0),r.Fb(n,Jt,!0)),2&e&&(r.zc(i=r.hc())&&(t.links=i),r.zc(i=r.hc())&&(t.linksWithHrefs=i))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[r.wb]}),e})(),Zt=(()=>{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.o,this.deactivateEvents=new r.o,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 Xt(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.Mb(Ht),r.Mb(r.P),r.Mb(r.j),r.ec("name"),r.Mb(r.h))},e.\u0275dir=r.Hb({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e})();class Xt{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===Ee?this.route:e===Ht?this.childContexts:this.parent.get(e,t)}}class en{}class tn{preload(e,t){return t().pipe(Object(S.a)(()=>Object(s.a)(null)))}}class nn{preload(e,t){return Object(s.a)(null)}}let rn=(()=>{class e{constructor(e,t,n,i,r){this.router=e,this.injector=i,this.preloadingStrategy=r,this.loader=new zt(t,n,t=>e.triggerEvent(new z(t)),t=>e.triggerEvent(new $(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(w.a)(e=>e instanceof E),Object(M.a)(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(r.y);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(o.a)(n).pipe(Object(O.a)(),Object(p.a)(e=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>this.loader.load(e.injector,t).pipe(Object(x.a)(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}return e.\u0275fac=function(t){return new(t||e)(r.dc(Gt),r.dc(r.x),r.dc(r.i),r.dc(r.s),r.dc(en))},e.\u0275prov=r.Ib({token:e,factory:e.\u0275fac}),e})(),sn=(()=>{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 R?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof E&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof U&&(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 U(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.dc(Gt),r.dc(i.D),r.dc(void 0))},e.\u0275prov=r.Ib({token:e,factory:e.\u0275fac}),e})();const on=new r.r("ROUTER_CONFIGURATION"),an=new r.r("ROUTER_FORROOT_GUARD"),cn=[i.m,{provide:ue,useClass:de},{provide:Gt,useFactory:function(e,t,n,r,s,o,a,c={},l,u){const d=new Gt(null,e,t,n,r,s,o,ee(a));if(l&&(d.urlHandlingStrategy=l),u&&(d.routeReuseStrategy=u),c.errorHandler&&(d.errorHandler=c.errorHandler),c.malformedUriErrorHandler&&(d.malformedUriErrorHandler=c.malformedUriErrorHandler),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 c.onSameUrlNavigation&&(d.onSameUrlNavigation=c.onSameUrlNavigation),c.paramsInheritanceStrategy&&(d.paramsInheritanceStrategy=c.paramsInheritanceStrategy),c.urlUpdateStrategy&&(d.urlUpdateStrategy=c.urlUpdateStrategy),c.relativeLinkResolution&&(d.relativeLinkResolution=c.relativeLinkResolution),d},deps:[ue,Ht,i.m,r.s,r.x,r.i,Yt,on,[class{},new r.B],[class{},new r.B]]},Ht,{provide:Ee,useFactory:function(e){return e.routerState.root},deps:[Gt]},{provide:r.x,useClass:r.K},rn,nn,tn,{provide:on,useValue:{enableTracing:!1}}];function ln(){return new r.z("Router",Gt)}let un=(()=>{class e{constructor(e,t){}static forRoot(t,n){return{ngModule:e,providers:[cn,pn(t),{provide:an,useFactory:fn,deps:[[Gt,new r.B,new r.J]]},{provide:on,useValue:n||{}},{provide:i.n,useFactory:hn,deps:[i.z,[new r.q(i.a),new r.B],on]},{provide:sn,useFactory:dn,deps:[Gt,i.D,on]},{provide:en,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:nn},{provide:r.z,multi:!0,useFactory:ln},[mn,{provide:r.d,multi:!0,useFactory:bn,deps:[mn]},{provide:_n,useFactory:gn,deps:[mn]},{provide:r.b,multi:!0,useExisting:_n}]]}}static forChild(t){return{ngModule:e,providers:[pn(t)]}}}return e.\u0275mod=r.Kb({type:e}),e.\u0275inj=r.Jb({factory:function(t){return new(t||e)(r.dc(an,8),r.dc(Gt,8))}}),e})();function dn(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new sn(e,t,n)}function hn(e,t,n={}){return n.useHash?new i.h(e,t):new i.x(e,t)}function fn(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function pn(e){return[{provide:r.a,multi:!0,useValue:e},{provide:Yt,multi:!0,useValue:e}]}let mn=(()=>{class e{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new f.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(Gt),i=this.injector.get(on);if(this.isLegacyDisabled(i)||this.isLegacyEnabled(i))e(!0);else if("disabled"===i.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==i.initialNavigation)throw new Error(`Invalid initialNavigation options: '${i.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?Object(s.a)(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()}return t})}bootstrapListener(e){const t=this.injector.get(on),n=this.injector.get(rn),i=this.injector.get(sn),s=this.injector.get(Gt),o=this.injector.get(r.g);e===o.components[0]&&(this.isLegacyEnabled(t)?s.initialNavigation():this.isLegacyDisabled(t)&&s.setUpLocationChangeListener(),n.setUpPreloading(),i.init(),s.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}isLegacyDisabled(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}return e.\u0275fac=function(t){return new(t||e)(r.dc(r.s))},e.\u0275prov=r.Ib({token:e,factory:e.\u0275fac}),e})();function bn(e){return e.appInitializer.bind(e)}function gn(e){return e.bootstrapListener.bind(e)}const _n=new r.r("Router Initializer")},iSVu:function(e,t,n){var i=n("xs3f"),r=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return r.call(e)}),e.exports=i.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"))},insk:function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));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.Sb(0,"cd-loading-panel"),s.Wb(1,2),s.Rb())}function p(e,t){1&e&&(s.Sb(0,"cd-alert-panel",3),s.cc(1,4),s.Nb(2,"cd-doc",5),s.Zb(),s.Rb())}function m(e,t){1&e&&(s.Sb(0,"cd-alert-panel",3),s.cc(1,6),s.Nb(2,"cd-doc",5),s.Zb(),s.Rb())}function b(e,t){if(1&e&&(s.Sb(0,"option",20),s.Oc(1),s.Rb()),2&e){const e=t.$implicit;s.pc("ngValue",e.value),s.yb(1),s.Qc("",e.name," ")}}const g=function(e){return[e]};function _(e,t){if(1&e){const e=s.Tb();s.Qb(0),s.Sb(1,"div",7),s.Sb(2,"div",8),s.Sb(3,"div",9),s.Sb(4,"label",10),s.Wb(5,11),s.Rb(),s.Sb(6,"select",12),s.gc("ngModelChange",(function(t){return s.Dc(e),s.ic().time=t}))("ngModelChange",(function(t){return s.Dc(e),s.ic().onTimepickerChange(t)})),s.Mc(7,b,2,2,"option",13),s.Rb(),s.Sb(8,"button",14),s.Yb(9,15),s.gc("click",(function(){return s.Dc(e),s.ic().reset()})),s.Nb(10,"i",16),s.Rb(),s.Rb(),s.Rb(),s.Rb(),s.Sb(11,"div",7),s.Sb(12,"div",8),s.Sb(13,"div",17),s.Nb(14,"iframe",18,19),s.Rb(),s.Rb(),s.Rb(),s.Pb()}if(2&e){const e=s.ic();s.yb(6),s.pc("ngModel",e.time),s.yb(1),s.pc("ngForOf",e.grafanaTimes),s.yb(3),s.pc("ngClass",s.uc(5,g,e.icons.undo)),s.yb(4),s.pc("src",e.grafanaSrc,s.Fc)("ngClass",e.panelStyle)}}let y=(()=>{class e{constructor(e,t){this.sanitizer=e,this.settingsService=t,this.grafanaExist=!1,this.mode="&kiosk",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"+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.Mb(o.b),s.Mb(i.a))},e.\u0275cmp=s.Gb({type:e,selectors:[["cd-grafana"]],inputs:{grafanaPath:"grafanaPath",grafanaStyle:"grafanaStyle",uid:"uid"},features:[s.wb],decls:4,vars:4,consts:function(){return[[4,"ngIf"],["type","info",4,"ngIf"],"Loading panel data...",["type","info"],"Please consult the " + "\ufffd#2\ufffd" + "" + "\ufffd/#2\ufffd" + " on how to configure and enable the monitoring functionality.",["section","grafana"],"Grafana Dashboard doesn't exist. Please refer to " + "\ufffd#2\ufffd" + "" + "\ufffd/#2\ufffd" + " on how to add dashboards to Grafana.",[1,"row"],[1,"col"],[1,"form-inline","timepicker"],["for","timepicker",1,"ml-1","my-1"],"Grafana Time Picker",["id","timepicker","name","timepicker",1,"custom-select","my-1","mx-3",3,"ngModel","ngModelChange"],[3,"ngValue",4,"ngFor","ngForOf"],[1,"btn","btn-light","my-1",3,"click",6,"title"],["title","Reset Settings"],[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.Mc(0,f,2,0,"cd-loading-panel",0),s.Mc(1,p,3,0,"cd-alert-panel",1),s.Mc(2,m,3,0,"cd-alert-panel",1),s.Mc(3,_,16,7,"ng-container",0)),2&e&&(s.pc("ngIf",t.loading&&t.grafanaExist),s.yb(1),s.pc("ngIf",!t.grafanaExist),s.yb(1),s.pc("ngIf",!t.dashboardExist),s.yb(1),s.pc("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.B],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=void 0,n=void 0;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"])}}},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.\u0275mod=c.Kb({type:e}),e.\u0275inj=c.Jb({factory:function(t){return new(t||e)},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){var n=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+i).toString(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}},kmMV:function(e,t,n){"use strict";var i,r,s=n("rW0t"),o=n("n3/R"),a=RegExp.prototype.exec,c=String.prototype.replace,l=a,u=(r=/b*/g,a.call(i=/a/,"a"),a.call(r,"a"),0!==i.lastIndex||0!==r.lastIndex),d=o.UNSUPPORTED_Y||o.BROKEN_CARET,h=void 0!==/()??/.exec("")[1];(u||h||d)&&(l=function(e){var t,n,i,r,o=this,l=d&&o.sticky,f=s.call(o),p=o.source,m=0,b=e;return l&&(-1===(f=f.replace("y","")).indexOf("g")&&(f+="g"),b=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==e[o.lastIndex-1])&&(p="(?: "+p+")",b=" "+b,m++),n=new RegExp("^(?:"+p+")",f)),h&&(n=new RegExp("^"+p+"$(?!\\s)",f)),u&&(t=o.lastIndex),i=a.call(l?n:o,b),l?i?(i.input=i.input.slice(m),i[0]=i[0].slice(m),i.index=o.lastIndex,o.lastIndex+=i[0].length):o.lastIndex=0:u&&i&&(o.lastIndex=o.global?i.index+i[0].length:t),h&&i&&i.length>1&&c.call(i[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)})),i}),e.exports=l},"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.dc(a.a),d.dc(c.a),d.dc(u.a),d.dc(l.a))},e.\u0275prov=d.Ib({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=/#|\.prototype\./,s=function(e,t){var n=a[o(e)];return n==l||n!=c&&("function"==typeof t?i(t):!!t)},o=s.normalize=function(e){return String(e).replace(r,".").toLowerCase()},a=s.data={},c=s.NATIVE="N",l=s.POLYFILL="P";e.exports=s},"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.dc(c.A))},e.\u0275prov=c.Ib({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.dc(c.A))},e.\u0275prov=c.Ib({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.dc(u),c.dc(d))},e.\u0275prov=c.Ib({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.dc(h))},e.\u0275prov=c.Ib({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"))},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("g6v/"),r=n("DPsx"),s=n("glrk"),o=n("wE6v"),a=Object.defineProperty;t.f=i?a:function(e,t,n){if(s(e),t=o(t,!0),s(n),r)try{return a(e,t,n)}catch(i){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},m92n:function(e,t,n){var i=n("glrk");e.exports=function(e,t,n,r){try{return r?t(i(n)[0],n[1]):t(n)}catch(o){var s=e.return;throw void 0!==s&&i(s.call(e)),o}}},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.dc(u.b),l.dc(c.a))},e.\u0275prov=l.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),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){"use strict";var i=n("0Dky");function r(e,t){return RegExp(e,t)}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")}))},n6bG:function(e,t,n){"use strict";function i(e){return"function"==typeof e}n.d(t,"a",(function(){return i}))},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.Lb({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.Mb(i.a))},e.\u0275pipe=r.Lb({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.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},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}}},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.Mb(r.m))},e.\u0275dir=r.Hb({type:e,selectors:[["",8,"form-group"]],contentQueries:function(e,t,n){var s;1&e&&r.Fb(n,i.i,!1),2&e&&r.zc(s=r.hc())&&(t.formControlNames=s)},hostVars:4,hostBindings:function(e,t){2&e&&r.Eb("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 vo})),n.d(t,"b",(function(){return Fo})),n.d(t,"c",(function(){return oa}));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++Re.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 y(e){return null!==e&&"object"==typeof e}function v(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 S(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function M(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return y(e)&&!0===e[n]}}function k(e){return void 0!==f().Map&&e instanceof f().Map}function x(e){return e instanceof Set}function D(e){for(var t=[];;){var n=e.next();if(n.done)break;t.push(n.value)}return t}function T(){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){S(e,O(),t)}function R(e){return e[O()]=A,e}function E(){return"function"==typeof Symbol&&Symbol.toStringTag||"@@toStringTag"}function A(){return this}var I=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 je(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&&Fe(i,e),i.onBecomeStale()),i.dependenciesState=oe.STALE}}}(this),Ne()},e.prototype.toString=function(){return this.name},e}(),P=M("Atom",I);function N(e,t){return e===t}var j={identity:N,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)||N(e,t)},shallow:function(e,t){return Gt(e,t,1)}},F={},Y={};function z(e,t){var n=t?F:Y;return n[e]||(n[e]={configurable:!0,enumerable:t,get:function(){return $(this),this[e]},set:function(t){$(this),this[e]=t}})}function $(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 H(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},z(r,e))};return W(arguments)?(n=u,i.apply(null,arguments)):(n=Array.prototype.slice.call(arguments),i)}}function W(e){return(2===e.length||3===e.length)&&"string"==typeof e[1]||4===e.length&&!0===e[3]}function V(e,t,n){return at(e)?e:Array.isArray(e)?te.array(e,{name:n}):v(e)?te.object(e,void 0,{name:n}):k(e)?te.map(e,{name:n}):x(e)?te.set(e,{name:n}):e}function B(e){return e}function U(e){var t=H(!0,(function(t,n,i,r,s){!function(e,t,n,i){var r=Yt(e);if(ut(r)){var s=ht(r,{object:e,name:t,type:"add",newValue:n});if(!s)return;n=s.newValue}n=(r.values[t]=new De(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=ft(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&&mt(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 G={deep:!0,name:void 0,defaultDecorator:void 0};function q(e){return null==e?G:"string"==typeof e?{name:e,deep:!0}:e}function J(e){return e.defaultDecorator?e.defaultDecorator.enhancer:!1===e.deep?B:V}Object.freeze(G),Object.freeze({deep:!1,name:void 0,defaultDecorator:void 0});var Q=U(V),K=U((function(e,t,n){return null==e||Vt(e)||Lt(e)||It(e)||jt(e)?e:Array.isArray(e)?te.array(e,{name:n,deep:!1}):v(e)?te.object(e,void 0,{name:n,deep:!1}):k(e)?te.map(e,{name:n,deep:!1}):x(e)?te.set(e,{name:n,deep:!1}):m(!1)})),Z=U(B),X=U((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 De(e,J(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,J(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 Et(e,J(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 Nt(e,J(n),n.name)},object:function(e,t,n){"string"==typeof arguments[1]&&ne("object");var i=q(n);return rt({},e,t,i)},shallowObject:function(e,t){return"string"==typeof arguments[1]&&ne("shallowObject"),te.object(e,{},{name:t,deep:!1})},ref:Z,shallow:K,deep:Q,struct:X},te=function(e,t,n){if("string"==typeof arguments[1])return Q.apply(null,arguments);if(at(e))return e;var i=v(e)?te.object(e,t,n):Array.isArray(e)?te.array(e,t):k(e)?te.map(e,t):x(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=H(!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=Yt(s),c.name=l.name+"."+o,c.context=s,l.values[o]=new Te(c),Object.defineProperty(s,o,function(e){return $t[e]||($t[e]={configurable:Re.computedConfigurable,enumerable:!1,get:function(){return Ht(this).read(this,e)},set:function(t){Ht(this).write(this,e,t)}})}(o))})),re=ie({equals:j.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 Te(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(Re.disableErrorBoundaries)s.get();else try{s.get()}catch(o){return be(t),!0}if(e.dependenciesState===oe.STALE)return be(t),!0}}return ye(e),be(t),!1}}function de(e){var t=e.observers.length>0;Re.computationDepth>0&&t&&m(!1),Re.allowStateChanges||!t&&"strict"!==Re.enforceActions||m(!1)}function he(e,t,n){var i=ge(!0);ye(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++Re.runId;var r,s=Re.trackingDerivation;if(Re.trackingDerivation=e,!0===Re.disableErrorBoundaries)r=t.call(n);else try{r=t.call(n)}catch(o){r=new ce(o)}return Re.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&&Ae(a,e),a.diffValue=0;for(;r--;){var a;1===(a=n[r]).diffValue&&(a.diffValue=0,Ee(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--;)Ae(t[n],e);e.dependenciesState=oe.NOT_TRACKING}function pe(e){var t=me(),n=e();return be(t),n}function me(){var e=Re.trackingDerivation;return Re.trackingDerivation=null,e}function be(e){Re.trackingDerivation=e}function ge(e){var t=Re.allowStateReads;return Re.allowStateReads=e,t}function _e(e){Re.allowStateReads=e}function ye(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 ve=0,we=1;function Se(e,t){var n=function(){return Me(e,t,this,arguments)};return n.isMobxAction=!0,n}function Me(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:ke(!0),prevAllowStateReads:ge(!0),notifySpy:i,startTime:r,actionId:we++,parentActionId:ve};return ve=l.actionId,l}(e,n,i);try{return t.apply(n,i)}catch(s){throw r.error=s,s}finally{!function(e){ve!==e.actionId&&m("invalid action stack. did you forget to finish an action?"),ve=e.parentActionId,void 0!==e.error&&(Re.suppressReactionErrors=!0),xe(e.prevAllowStateChanges),_e(e.prevAllowStateReads),Ne(),be(e.prevDerivation),e.notifySpy&&Ue({time:Date.now()-e.startTime}),Re.suppressReactionErrors=!1}(r)}}function ke(e){var t=Re.allowStateChanges;return Re.allowStateChanges=e,t}function xe(e){Re.allowStateChanges=e}var De=function(e){function t(t,n,i,r,s){void 0===i&&(i="ObservableValue@"+p()),void 0===r&&(r=!0),void 0===s&&(s=j.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()&&We({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))!==Re.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),ut(this)){var t=ht(this,{object:this,type:"update",newValue:e});if(!t)return Re.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?Re.UNCHANGED:e},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),ft(this)&&mt(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 dt(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),pt(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}(I);De.prototype[T()]=De.prototype.valueOf,M("ObservableValue",De);var Te=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=Se(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?j.structural:j.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&&Fe(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!==Re.inBatch||0!==this.observers.length||this.keepAlive?(je(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),Ne());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()&&We({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,Re.computationDepth++,e)t=he(this,this.derivation,this.scope);else if(!0===Re.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(n){t=new ce(n)}return Re.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}();Te.prototype[T()]=Te.prototype.valueOf;var Ce=M("ComputedValue",Te),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,Re=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 Ee(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 Ae(e,t){if(1===e.observers.length)e.observers.length=0,Ie(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 Ie(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,Re.pendingUnobservations.push(e))}function Pe(){Re.inBatch++}function Ne(){if(0==--Re.inBatch){ze();for(var e=Re.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 Te&&n.suspend())}Re.pendingUnobservations=[]}}function je(e){var t=Re.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&&Re.inBatch>0&&Ie(e),!1)}function Fe(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===ae.BREAK){var n=[];!function e(t,n,i){n.length>=1e3?n.push("(and many more)"):(n.push(""+new Array(i).join("\t")+t.name),t.dependencies&&t.dependencies.forEach((function(t){return e(t,n,i+1)})))}((i=e,st(Bt(i,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 Te?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n    ")()}var i}var Ye=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,Re.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()&&We({name:this.name,type:"scheduled-reaction"})}catch(e){this.reportExceptionInDerivation(e)}}Ne()}},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}),Ne()},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(Re.disableErrorBoundaries)throw e;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";Re.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,e),He()&&We({type:"error",name:this.name,message:n,error:""+e}),Re.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Pe(),fe(this),Ne()))},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=ct(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(){Re.inBatch>0||Re.isRunningReactions||function(){Re.isRunningReactions=!0;for(var e=Re.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()}Re.isRunningReactions=!1}()}var $e=M("Reaction",Ye);function He(){return!!Re.spyListeners.length}function We(e){if(Re.spyListeners.length)for(var t=Re.spyListeners,n=0,i=t.length;n<i;n++)t[n](e)}function Ve(e){We(a({},e,{spyReportStart:!0}))}var Be={spyReportEnd:!0};function Ue(e){We(e?a({},e,{spyReportEnd:!0}):Be)}function Ge(){m(!1)}function qe(e){return function(t,n,i){if(i){if(i.value)return{value:Se(e,i.value),enumerable:!1,configurable:!0,writable:!0};var r=i.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return Se(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,Qe(e,t))}})}}var Qe=function(e,t,n,i){return 1===arguments.length&&"function"==typeof e?Se(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof t?Se(e,t):1===arguments.length&&"string"==typeof e?qe(e):!0!==i?qe(t).apply(null,arguments):void(e[t]=Se(e.name||t,n.value))};function Ke(e,t,n){w(e,t,Se(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=et(t),s=!1;n=new Ye(i,(function(){s||(s=!0,r((function(){s=!1,n.isDisposed||n.track(o)})))}),t.onError,t.requiresObservable)}else n=new Ye(i,(function(){this.track(o)}),t.onError,t.requiresObservable);function o(){e(n)}return n.schedule(),n.getDisposer()}Qe.bound=function(e,t,n,i){return!0===i?(Ke(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return Ke(this,t,n.value||n.initializer.call(this)),this[t]},set:Ge}:{enumerable:!1,configurable:!0,set:function(e){Ke(this,t,e)},get:function(){}}};var Xe=function(e){return e()};function et(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Xe}function tt(e,t,n){void 0===n&&(n=d),"boolean"==typeof n&&(n={fireImmediately:n});var i,r,s,o=n.name||"Reaction@"+p(),a=Qe(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=et(n),u=!0,h=!1,f=n.compareStructural?j.structural:n.equals||j.default,m=new Ye(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 nt(e,t,n){return it("onBecomeUnobserved",e,t,n)}function it(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 rt(e,t,n,i){var r=(i=q(i)).defaultDecorator||(!1===i.deep?Z:Q);$(e),Yt(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{Ne()}return e}function st(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(st)),i}function ot(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 at(e){return 1!==arguments.length&&m(!1),ot(e)}function ct(e){switch(e.length){case 0:return Re.trackingDerivation;case 1:return Bt(e[0]);case 2:return Bt(e[0],e[1])}}function lt(e,t){void 0===t&&(t=void 0),Pe();try{return e.apply(t)}finally{Ne()}}function ut(e){return void 0!==e.interceptors&&e.interceptors.length>0}function dt(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 ht(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 ft(e){return void 0!==e.changeListeners&&e.changeListeners.length>0}function pt(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 mt(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 bt,gt,_t,yt,vt=(bt=!1,gt={},Object.defineProperty(gt,"0",{set:function(){bt=!0}}),Object.create(gt)[0]=1,!1===bt),wt=0,St=function(){return function(){}}();_t=St,yt=Array.prototype,void 0!==Object.setPrototypeOf?Object.setPrototypeOf(_t.prototype,yt):void 0!==_t.prototype.__proto__?_t.prototype.__proto__=yt:_t.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 Mt=function(){function e(e,t,n,i){this.array=n,this.owned=i,this.values=[],this.lastKnownLength=0,this.atom=new I(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 dt(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}),pt(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>wt&&Ct(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),ut(this)){var s=ht(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=ft(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&&mt(this,s),i&&Ue()},e.prototype.notifyArraySplice=function(e,t,n){var i=!this.owned&&He(),r=ft(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&&mt(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 Mt(i,n,s,r);if(S(s,"$mobx",o),t&&t.length){var a=ke(!0);s.spliceWithArray(0,0,t),xe(a)}return vt&&Object.defineProperty(o.array,"0",xt),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 Lt(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(ut(n)){var s=ht(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 R({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,E(),"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 xt=Dt(0);function Dt(e){return{enumerable:!1,configurable:!1,get:function(){return this.get(e)},set:function(t){this.set(e,t)}}}function Tt(e){Object.defineProperty(kt.prototype,""+e,Dt(e))}function Ct(e){for(var t=wt;t<e;t++)Tt(t);wt=e}Ct(1e3);var Ot=M("ObservableArrayAdministration",Mt);function Lt(e){return y(e)&&Ot(e.$mobx)}var Rt={},Et=function(){function e(e,t,n){if(void 0===t&&(t=V),void 0===n&&(n="ObservableMap@"+p()),this.enhancer=t,this.name=n,this.$mobx=Rt,this._keys=new kt(void 0,B,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(!Re.trackingDerivation)return this._has(e);var n=this._hasMap.get(e);if(!n){var i=n=new De(this._has(e),B,this.name+"."+At(e)+"?",!1);this._hasMap.set(e,i),nt(i,(function(){return t._hasMap.delete(e)}))}return n.get()},e.prototype.set=function(e,t){var n=this._has(e);if(ut(this)){var i=ht(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(ut(this)&&!(r=ht(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var n=He(),i=ft(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})),lt((function(){t._keys.remove(e),t._updateHasMapEntry(e,!1),t._data.get(e).setNewValue(void 0),t._data.delete(e)})),i&&mt(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))!==Re.UNCHANGED){var i=He(),r=ft(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&&mt(this,s),i&&Ue()}},e.prototype._addValue=function(e,t){var n=this;lt((function(){var i=new De(t,n.enhancer,n.name+"."+At(e),!1);n._data.set(e,i),t=i.value,n._updateHasMapEntry(e,!0),n._keys.push(e)}));var i=He(),r=ft(this),s=r||i?{type:"add",object:this,name:e,newValue:t}:null;i&&Ve(a({},s,{name:this.name,key:e})),r&&mt(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 R({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 R({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 It(e)&&(e=e.toJS()),lt((function(){v(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])})):k(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;lt((function(){pe((function(){e._keys.slice().forEach((function(t){return e.delete(t)}))}))}))},e.prototype.replace=function(e){var t=this;return lt((function(){for(var n,i=k(n=e)||It(n)?n:Array.isArray(n)?new Map(n):v(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:At(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 At(t)+": "+e.get(t)})).join(", ")+" }]"},e.prototype.observe=function(e,t){return pt(this,e)},e.prototype.intercept=function(e){return dt(this,e)},e}();function At(e){return e&&e.toString?e.toString():new String(e).toString()}L(Et.prototype,(function(){return this.entries()})),S(Et.prototype,E(),"Map");var It=M("ObservableMap",Et),Pt={},Nt=function(){function e(e,t,n){if(void 0===t&&(t=V),void 0===n&&(n="ObservableSet@"+p()),this.name=n,this.$mobx=Pt,this._data=new Set,this._atom=function(e,t,n){void 0===t&&(t=_),void 0===n&&(n=_);var i=new I(e);return it("onBecomeObserved",i,t,void 0),nt(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;lt((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),ut(this)&&!(r=ht(this,{type:"add",object:this,newValue:e})))return this;if(!this.has(e)){lt((function(){t._data.add(t.enhancer(e,void 0)),t._atom.reportChanged()}));var n=He(),i=ft(this),r=i||n?{type:"add",object:this,newValue:e}:null;i&&mt(this,r)}return this},e.prototype.delete=function(e){var t=this;if(ut(this)&&!(r=ht(this,{type:"delete",object:this,oldValue:e})))return!1;if(this.has(e)){var n=He(),i=ft(this),r=i||n?{type:"delete",object:this,oldValue:e}:null;return lt((function(){t._atom.reportChanged(),t._data.delete(e)})),i&&mt(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=D(this.keys()),n=D(this.values());return R({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=D(this._data.values()):(e=[],this._data.forEach((function(t){return e.push(t)}))),R({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()),lt((function(){Array.isArray(e)||x(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 pt(this,e)},e.prototype.intercept=function(e){return dt(this,e)},e.prototype.toJS=function(){return new Set(this)},e.prototype.toString=function(){return this.name+"[ "+D(this.keys()).join(", ")+" ]"},e}();L(Nt.prototype,(function(){return this.values()})),S(Nt.prototype,E(),"Set");var jt=M("ObservableSet",Nt),Ft=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 Te)r.set(n);else{if(ut(this)){if(!(c=ht(this,{type:"update",object:i,name:t,newValue:n})))return;n=c.newValue}if((n=r.prepareNewValue(n))!==Re.UNCHANGED){var s=ft(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&&mt(this,c),o&&Ue()}}},e.prototype.remove=function(e){if(this.values[e]){var t=this.target;if(ut(this)&&!(s=ht(this,{object:t,name:e,type:"remove"})))return;try{Pe();var n=ft(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&&mt(this,s),i&&Ue()}finally{Ne()}}},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 pt(this,e)},e.prototype.intercept=function(e){return dt(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 De})),B,"keys("+this.name+")",!0)),this.keys.slice()},e}();function Yt(e,t,n){void 0===t&&(t=""),void 0===n&&(n=V);var i=e.$mobx;return i||(v(e)||(t=(e.constructor.name||"ObservableObject")+"@"+p()),t||(t="ObservableObject@"+p()),S(e,"$mobx",i=new Ft(e,t,n)),i)}var zt=Object.create(null),$t=Object.create(null);function Ht(e){return e.$mobx||($(e),e.$mobx)}var Wt=M("ObservableObjectAdministration",Ft);function Vt(e){return!!y(e)&&($(e),Wt(e.$mobx))}function Bt(e,t){if("object"==typeof e&&null!==e){if(Lt(e))return void 0!==t&&m(!1),e.$mobx.atom;if(jt(e))return e.$mobx;if(It(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($(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)}var Ut=Object.prototype.toString;function Gt(e,t,n){return void 0===n&&(n=-1),function e(t,n,i,r,s){if(t===n)return 0!==t||1/t==1/n;if(null==t||null==n)return!1;if(t!=t)return n!=n;var o=typeof t;if("function"!==o&&"object"!==o&&"object"!=typeof n)return!1;t=qt(t),n=qt(n);var a=Ut.call(t);if(a!==Ut.call(n))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!=+t?+n!=+n:0==+t?1/+t==1/n:+t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(t)===Symbol.valueOf.call(n)}var c="[object Array]"===a;if(!c){if("object"!=typeof t||"object"!=typeof n)return!1;var l=t.constructor,u=n.constructor;if(l!==u&&!("function"==typeof l&&l instanceof l&&"function"==typeof u&&u instanceof u)&&"constructor"in t&&"constructor"in n)return!1}if(0===i)return!1;i<0&&(i=-1),s=s||[];for(var d=(r=r||[]).length;d--;)if(r[d]===t)return s[d]===n;if(r.push(t),s.push(n),c){if((d=t.length)!==n.length)return!1;for(;d--;)if(!e(t[d],n[d],i-1,r,s))return!1}else{var h=Object.keys(t),f=void 0;if(d=h.length,Object.keys(n).length!==d)return!1;for(;d--;)if(!Jt(n,f=h[d])||!e(t[f],n[f],i-1,r,s))return!1}return r.pop(),s.pop(),!0}(e,t,n)}function qt(e){return Lt(e)?e.peek():k(e)||It(e)||x(e)||jt(e)?D(e.entries()):e}function Jt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return Re.spyListeners.push(e),g((function(){Re.spyListeners=Re.spyListeners.filter((function(t){return t!==e}))}))},extras:{getDebugName:function(e,t){return(void 0!==t?Bt(e,t):Vt(e)||It(e)||jt(e)?function e(t,n){return t||m("Expecting some object"),void 0!==n?e(Bt(t,n)):P(t)||Ce(t)||$e(t)||It(t)||jt(t)?t:($(t),t.$mobx?t.$mobx:void m(!1))}(e):Bt(e)).name}},$mobx:"$mobx"});var Qt,Kt,Zt,Xt,en=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)},tn=function(e){return e},nn=Math.max,rn=function(e,t,n){return t=nn(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,s=nn(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),en(e,this,a)}},sn=n("Ju5/"),on=sn.a.Symbol,an=Object.prototype,cn=an.hasOwnProperty,ln=an.toString,un=on?on.toStringTag:void 0,dn=Object.prototype.toString,hn=on?on.toStringTag:void 0,fn=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":hn&&hn in Object(e)?function(e){var t=cn.call(e,un),n=e[un];try{e[un]=void 0;var i=!0}catch(s){}var r=ln.call(e);return i&&(t?e[un]=n:delete e[un]),r}(e):function(e){return dn.call(e)}(e)},pn=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},mn=function(e){if(!pn(e))return!1;var t=fn(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},bn=sn.a["__core-js_shared__"],gn=(Qt=/[^.]+$/.exec(bn&&bn.keys&&bn.keys.IE_PROTO||""))?"Symbol(src)_1."+Qt:"",_n=Function.prototype.toString,yn=function(e){if(null!=e){try{return _n.call(e)}catch(t){}try{return e+""}catch(t){}}return""},vn=/^\[object .+?Constructor\]$/,wn=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Sn=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!pn(e)||(t=e,gn&&gn in t))&&(mn(e)?wn:vn).test(yn(e));var t}(n)?n:void 0},Mn=function(){try{var e=Sn(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),kn=Date.now,xn=(Kt=Mn?function(e,t){return Mn(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:tn,Zt=0,Xt=0,function(){var e=kn(),t=16-(e-Xt);if(Xt=e,t>0){if(++Zt>=800)return arguments[0]}else Zt=0;return Kt.apply(void 0,arguments)}),Dn=function(e,t){return xn(rn(e,t,tn),e+"")},Tn=function(e,t){return e===t||e!=e&&t!=t},Cn=function(e,t){for(var n=e.length;n--;)if(Tn(e[n][0],t))return n;return-1},On=Array.prototype.splice;function Ln(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])}}Ln.prototype.clear=function(){this.__data__=[],this.size=0},Ln.prototype.delete=function(e){var t=this.__data__,n=Cn(t,e);return!(n<0||(n==t.length-1?t.pop():On.call(t,n,1),--this.size,0))},Ln.prototype.get=function(e){var t=this.__data__,n=Cn(t,e);return n<0?void 0:t[n][1]},Ln.prototype.has=function(e){return Cn(this.__data__,e)>-1},Ln.prototype.set=function(e,t){var n=this.__data__,i=Cn(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};var Rn=Ln,En=Sn(sn.a,"Map"),An=Sn(Object,"create"),In=Object.prototype.hasOwnProperty,Pn=Object.prototype.hasOwnProperty;function Nn(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])}}Nn.prototype.clear=function(){this.__data__=An?An(null):{},this.size=0},Nn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Nn.prototype.get=function(e){var t=this.__data__;if(An){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return In.call(t,e)?t[e]:void 0},Nn.prototype.has=function(e){var t=this.__data__;return An?void 0!==t[e]:Pn.call(t,e)},Nn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=An&&void 0===t?"__lodash_hash_undefined__":t,this};var jn=Nn,Fn=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 Yn(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])}}Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new jn,map:new(En||Rn),string:new jn}},Yn.prototype.delete=function(e){var t=Fn(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return Fn(this,e).get(e)},Yn.prototype.has=function(e){return Fn(this,e).has(e)},Yn.prototype.set=function(e,t){var n=Fn(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};var zn=Yn;function $n(e){var t=this.__data__=new Rn(e);this.size=t.size}$n.prototype.clear=function(){this.__data__=new Rn,this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},$n.prototype.get=function(e){return this.__data__.get(e)},$n.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Rn){var i=n.__data__;if(!En||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new zn(i)}return n.set(e,t),this.size=n.size,this};var Hn=$n,Wn=function(e,t,n){"__proto__"==t&&Mn?Mn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Vn=function(e,t,n){(void 0!==n&&!Tn(e[t],n)||void 0===n&&!(t in e))&&Wn(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},Un=n("3/ER"),Gn=sn.a.Uint8Array,qn=function(e){var t=new e.constructor(e.byteLength);return new Gn(t).set(new Gn(e)),t},Jn=function(e,t){var n=t?qn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},Qn=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},Kn=Object.create,Zn=function(){function e(){}return function(t){if(!pn(t))return{};if(Kn)return Kn(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Xn=function(e,t){return function(n){return e(t(n))}},ei=Xn(Object.getPrototypeOf,Object),ti=Object.prototype,ni=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ti)},ii=function(e){return"function"!=typeof e.constructor||ni(e)?{}:Zn(ei(e))},ri=function(e){return null!=e&&"object"==typeof e},si=function(e){return ri(e)&&"[object Arguments]"==fn(e)},oi=Object.prototype,ai=oi.hasOwnProperty,ci=oi.propertyIsEnumerable,li=si(function(){return arguments}())?si:function(e){return ri(e)&&ai.call(e,"callee")&&!ci.call(e,"callee")},ui=Array.isArray,di=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},hi=function(e){return null!=e&&di(e.length)&&!mn(e)},fi=n("WOAq"),pi=Function.prototype.toString,mi=Object.prototype.hasOwnProperty,bi=pi.call(Object),gi=function(e){if(!ri(e)||"[object Object]"!=fn(e))return!1;var t=ei(e);if(null===t)return!0;var n=mi.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&pi.call(n)==bi},_i={};_i["[object Float32Array]"]=_i["[object Float64Array]"]=_i["[object Int8Array]"]=_i["[object Int16Array]"]=_i["[object Int32Array]"]=_i["[object Uint8Array]"]=_i["[object Uint8ClampedArray]"]=_i["[object Uint16Array]"]=_i["[object Uint32Array]"]=!0,_i["[object Arguments]"]=_i["[object Array]"]=_i["[object ArrayBuffer]"]=_i["[object Boolean]"]=_i["[object DataView]"]=_i["[object Date]"]=_i["[object Error]"]=_i["[object Function]"]=_i["[object Map]"]=_i["[object Number]"]=_i["[object Object]"]=_i["[object RegExp]"]=_i["[object Set]"]=_i["[object String]"]=_i["[object WeakMap]"]=!1;var yi,vi=function(e){return function(t){return e(t)}},wi=n("xutz"),Si=wi.a&&wi.a.isTypedArray,Mi=Si?vi(Si):function(e){return ri(e)&&di(e.length)&&!!_i[fn(e)]},ki=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},xi=Object.prototype.hasOwnProperty,Di=function(e,t,n){var i=e[t];xi.call(e,t)&&Tn(i,n)&&(void 0!==n||t in e)||Wn(e,t,n)},Ti=function(e,t,n,i){var r=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var a=t[s],c=i?i(n[a],e[a],a,n,e):void 0;void 0===c&&(c=e[a]),r?Wn(n,a,c):Di(n,a,c)}return n},Ci=/^(?:0|[1-9]\d*)$/,Oi=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Ci.test(e))&&e>-1&&e%1==0&&e<t},Li=Object.prototype.hasOwnProperty,Ri=function(e,t){var n=ui(e),i=!n&&li(e),r=!n&&!i&&Object(fi.a)(e),s=!n&&!i&&!r&&Mi(e),o=n||i||r||s,a=o?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],c=a.length;for(var l in e)!t&&!Li.call(e,l)||o&&("length"==l||r&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Oi(l,c))||a.push(l);return a},Ei=Object.prototype.hasOwnProperty,Ai=function(e){return hi(e)?Ri(e,!0):function(e){if(!pn(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ni(e),n=[];for(var i in e)("constructor"!=i||!t&&Ei.call(e,i))&&n.push(i);return n}(e)},Ii=function e(t,n,i,r,s){t!==n&&Bn(n,(function(o,a){if(s||(s=new Hn),pn(o))!function(e,t,n,i,r,s,o){var a,c=ki(e,n),l=ki(t,n),u=o.get(l);if(u)Vn(e,n,u);else{var d=s?s(c,l,n+"",e,t,o):void 0,h=void 0===d;if(h){var f=ui(l),p=!f&&Object(fi.a)(l),m=!f&&!p&&Mi(l);d=l,f||p||m?ui(c)?d=c:ri(a=c)&&hi(a)?d=Qn(c):p?(h=!1,d=Object(Un.a)(l,!0)):m?(h=!1,d=Jn(l,!0)):d=[]:gi(l)||li(l)?(d=c,li(c)?d=function(e){return Ti(e,Ai(e))}(c):pn(c)&&!mn(c)||(d=ii(l))):h=!1}h&&(o.set(l,d),r(d,l,i,s,o),o.delete(l)),Vn(e,n,d)}}(t,n,a,i,e,r,s);else{var c=r?r(ki(t,a),o,a+"",t,n,s):void 0;void 0===c&&(c=o),Vn(t,a,c)}}),Ai)},Pi=function e(t,n,i,r,s,o){return pn(t)&&pn(n)&&(o.set(n,t),Ii(t,n,void 0,e,o),o.delete(n)),t},Ni=function(e,t,n){if(!pn(n))return!1;var i=typeof t;return!!("number"==i?hi(n)&&Oi(t,n.length):"string"==i&&t in n)&&Tn(n[t],e)},ji=(yi=function(e,t,n,i){Ii(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=yi.length>3&&"function"==typeof r?(i--,r):void 0,s&&Ni(t[0],t[1],s)&&(r=i<3?void 0:r,i=1),e=Object(e);++n<i;){var o=t[n];o&&yi(e,o,n,r)}return e}))),Fi=Dn((function(e){return e.push(void 0,Pi),en(ji,void 0,e)})),Yi=function(e){return"symbol"==typeof e||ri(e)&&"[object Symbol]"==fn(e)},zi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$i=/^\w*$/,Hi=function(e,t){if(ui(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Yi(e))||$i.test(e)||!zi.test(e)||null!=t&&e in Object(t)};function Wi(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(Wi.Cache||zn),n}Wi.Cache=zn;var Vi,Bi,Ui=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gi=/\\(\\)?/g,qi=(Vi=Wi((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ui,(function(e,n,i,r){t.push(i?r.replace(Gi,"$1"):n||e)})),t}),(function(e){return 500===Bi.size&&Bi.clear(),e})),Bi=Vi.cache,Vi),Ji=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},Qi=on?on.prototype:void 0,Ki=Qi?Qi.toString:void 0,Zi=function(e,t){return ui(e)?e:Hi(e,t)?[e]:qi(function(e){return null==e?"":function e(t){if("string"==typeof t)return t;if(ui(t))return Ji(t,e)+"";if(Yi(t))return Ki?Ki.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}(e)}(e))},Xi=function(e){if("string"==typeof e||Yi(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},er=function(e,t){for(var n=0,i=(t=Zi(t,e)).length;null!=e&&n<i;)e=e[Xi(t[n++])];return n&&n==i?e:void 0},tr=function(e,t,n){var i=null==e?void 0:er(e,t);return void 0===i?n:i},nr=Xn(Object.keys,Object),ir=Object.prototype.hasOwnProperty,rr=function(e){return hi(e)?Ri(e):function(e){if(!ni(e))return nr(e);var t=[];for(var n in Object(e))ir.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)},sr=function(){return[]},or=Object.prototype.propertyIsEnumerable,ar=Object.getOwnPropertySymbols,cr=ar?function(e){return null==e?[]:(e=Object(e),function(t,n){for(var i=-1,r=null==t?0:t.length,s=0,o=[];++i<r;){var a=t[i];or.call(e,a)&&(o[s++]=a)}return o}(ar(e)))}:sr,lr=function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e},ur=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)lr(t,cr(e)),e=ei(e);return t}:sr,dr=function(e,t,n){var i=t(e);return ui(e)?i:lr(i,n(e))},hr=function(e){return dr(e,rr,cr)},fr=function(e){return dr(e,Ai,ur)},pr=Sn(sn.a,"DataView"),mr=Sn(sn.a,"Promise"),br=Sn(sn.a,"Set"),gr=Sn(sn.a,"WeakMap"),_r="[object Map]",yr="[object Promise]",vr="[object Set]",wr="[object WeakMap]",Sr="[object DataView]",Mr=yn(pr),kr=yn(En),xr=yn(mr),Dr=yn(br),Tr=yn(gr),Cr=fn;(pr&&Cr(new pr(new ArrayBuffer(1)))!=Sr||En&&Cr(new En)!=_r||mr&&Cr(mr.resolve())!=yr||br&&Cr(new br)!=vr||gr&&Cr(new gr)!=wr)&&(Cr=function(e){var t=fn(e),n="[object Object]"==t?e.constructor:void 0,i=n?yn(n):"";if(i)switch(i){case Mr:return Sr;case kr:return _r;case xr:return yr;case Dr:return vr;case Tr:return wr}return t});var Or=Cr,Lr=Object.prototype.hasOwnProperty,Rr=/\w*$/,Er=on?on.prototype:void 0,Ar=Er?Er.valueOf:void 0,Ir=wi.a&&wi.a.isMap,Pr=Ir?vi(Ir):function(e){return ri(e)&&"[object Map]"==Or(e)},Nr=wi.a&&wi.a.isSet,jr=Nr?vi(Nr):function(e){return ri(e)&&"[object Set]"==Or(e)},Fr="[object Arguments]",Yr="[object Function]",zr={};zr[Fr]=zr["[object Array]"]=zr["[object ArrayBuffer]"]=zr["[object DataView]"]=zr["[object Boolean]"]=zr["[object Date]"]=zr["[object Float32Array]"]=zr["[object Float64Array]"]=zr["[object Int8Array]"]=zr["[object Int16Array]"]=zr["[object Int32Array]"]=zr["[object Map]"]=zr["[object Number]"]=zr["[object Object]"]=zr["[object RegExp]"]=zr["[object Set]"]=zr["[object String]"]=zr["[object Symbol]"]=zr["[object Uint8Array]"]=zr["[object Uint8ClampedArray]"]=zr["[object Uint16Array]"]=zr["[object Uint32Array]"]=!0,zr["[object Error]"]=zr[Yr]=zr["[object WeakMap]"]=!1;var $r=function e(t,n,i,r,s,o){var a,c=1&n,l=2&n,u=4&n;if(i&&(a=s?i(t,r,s,o):i(t)),void 0!==a)return a;if(!pn(t))return t;var d=ui(t);if(d){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Lr.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!c)return Qn(t,a)}else{var h=Or(t),f=h==Yr||"[object GeneratorFunction]"==h;if(Object(fi.a)(t))return Object(Un.a)(t,c);if("[object Object]"==h||h==Fr||f&&!s){if(a=l||f?{}:ii(t),!c)return l?function(e,t){return Ti(e,ur(e),t)}(t,function(e,t){return e&&Ti(t,Ai(t),e)}(a,t)):function(e,t){return Ti(e,cr(e),t)}(t,function(e,t){return e&&Ti(t,rr(t),e)}(a,t))}else{if(!zr[h])return s?t:{};a=function(e,t,n){var i=e.constructor;switch(t){case"[object ArrayBuffer]":return qn(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return function(e,t){var n=t?qn(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 Jn(e,n);case"[object Map]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,Rr.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Set]":return new i;case"[object Symbol]":return Ar?Object(Ar.call(e)):{}}}(t,h,c)}}o||(o=new Hn);var p=o.get(t);if(p)return p;o.set(t,a),jr(t)?t.forEach((function(r){a.add(e(r,n,i,r,t,o))})):Pr(t)&&t.forEach((function(r,s){a.set(s,e(r,n,i,s,t,o))}));var m=u?l?fr:hr:l?keysIn:rr,b=d?void 0:m(t);return function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n););}(b||t,(function(r,s){b&&(r=t[s=r]),Di(a,s,e(r,n,i,s,t,o))})),a},Hr=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},Wr=function(e,t){return null==(e=function(e,t){return t.length<2?e:er(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=Zi(t,e)))||delete e[Xi(Hr(t))]},Vr=function(e){return gi(e)?void 0:e},Br=on?on.isConcatSpreadable:void 0,Ur=function(e){return ui(e)||li(e)||!!(Br&&e&&e[Br])},Gr=function(e){return null!=e&&e.length?function e(t,n,i,r,s){var o=-1,a=t.length;for(i||(i=Ur),s||(s=[]);++o<a;){var c=t[o];n>0&&i(c)?n>1?e(c,n-1,i,r,s):lr(s,c):r||(s[s.length]=c)}return s}(e,1):[]},qr=function(e){return xn(rn(e,void 0,Gr),e+"")},Jr=qr((function(e,t){var n={};if(null==e)return n;var i=!1;t=Ji(t,(function(t){return t=Zi(t,e),i||(i=t.length>1),t})),Ti(e,fr(e),n),i&&(n=$r(n,7,Vr));for(var r=t.length;r--;)Wr(n,t[r]);return n})),Qr=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 Kr(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new zn;++t<n;)this.add(e[t])}Kr.prototype.add=Kr.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Kr.prototype.has=function(e){return this.__data__.has(e)};var Zr=Kr,Xr=function(e,t){return e.has(t)},es=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);if(l&&s.get(t))return l==t;var u=-1,d=!0,h=2&n?new Zr:void 0;for(s.set(e,t),s.set(t,e);++u<a;){var f=e[u],p=t[u];if(i)var m=o?i(p,f,u,t,e,s):i(f,p,u,e,t,s);if(void 0!==m){if(m)continue;d=!1;break}if(h){if(!Qr(t,(function(e,t){if(!Xr(h,t)&&(f===e||r(f,e,n,i,s)))return h.push(t)}))){d=!1;break}}else if(f!==p&&!r(f,p,n,i,s)){d=!1;break}}return s.delete(e),s.delete(t),d},ts=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n},ns=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},is=on?on.prototype:void 0,rs=is?is.valueOf:void 0,ss=Object.prototype.hasOwnProperty,os="[object Arguments]",as="[object Array]",cs="[object Object]",ls=Object.prototype.hasOwnProperty,us=function e(t,n,i,r,s){return t===n||(null==t||null==n||!ri(t)&&!ri(n)?t!=t&&n!=n:function(e,t,n,i,r,s){var o=ui(e),a=ui(t),c=o?as:Or(e),l=a?as:Or(t),u=(c=c==os?cs:c)==cs,d=(l=l==os?cs:l)==cs,h=c==l;if(h&&Object(fi.a)(e)){if(!Object(fi.a)(t))return!1;o=!0,u=!1}if(h&&!u)return s||(s=new Hn),o||Mi(e)?es(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 Gn(e),new Gn(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Tn(+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=ts;case"[object Set]":if(a||(a=ns),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=es(a(e),a(t),i,r,s,o);return o.delete(e),l;case"[object Symbol]":if(rs)return rs.call(e)==rs.call(t)}return!1}(e,t,c,n,i,r,s);if(!(1&n)){var f=u&&ls.call(e,"__wrapped__"),p=d&&ls.call(t,"__wrapped__");if(f||p){var m=f?e.value():e,b=p?t.value():t;return s||(s=new Hn),r(m,b,n,i,s)}}return!!h&&(s||(s=new Hn),function(e,t,n,i,r,s){var o=1&n,a=hr(e),c=a.length;if(c!=hr(t).length&&!o)return!1;for(var l=c;l--;){var u=a[l];if(!(o?u in t:ss.call(t,u)))return!1}var d=s.get(e);if(d&&s.get(t))return d==t;var h=!0;s.set(e,t),s.set(t,e);for(var f=o;++l<c;){var p=e[u=a[l]],m=t[u];if(i)var b=o?i(m,p,u,t,e,s):i(p,m,u,e,t,s);if(!(void 0===b?p===m||r(p,m,n,i,s):b)){h=!1;break}f||(f="constructor"==u)}if(h&&!f){var g=e.constructor,_=t.constructor;g==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof _&&_ instanceof _||(h=!1)}return s.delete(e),s.delete(t),h}(e,t,n,i,r,s))}(t,n,i,r,e,s))},ds=function(e){return e==e&&!pn(e)},hs=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}},fs=function(e,t){return null!=e&&t in Object(e)},ps=function(e,t){return null!=e&&function(e,t,n){for(var i=-1,r=(t=Zi(t,e)).length,s=!1;++i<r;){var o=Xi(t[i]);if(!(s=null!=e&&n(e,o)))break;e=e[o]}return s||++i!=r?s:!!(r=null==e?0:e.length)&&di(r)&&Oi(o,r)&&(ui(e)||li(e))}(e,t,fs)},ms=function(e){return"function"==typeof e?e:null==e?tn:"object"==typeof e?ui(e)?(r=e[1],Hi(i=e[0])&&ds(r)?hs(Xi(i),r):function(e){var t=tr(e,i);return void 0===t&&t===r?ps(e,i):us(r,t,3)}):1==(n=function(e){for(var t=rr(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,ds(r)]}return t}(t=e)).length&&n[0][2]?hs(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;if(!(void 0===u?us(l,c,3,i,d):u))return!1}}return!0}(e,0,n)}:function(e){return Hi(e)?(t=Xi(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return er(t,e)}}(e);var t}(e);var t,n,i,r},bs=function(e,t){if(null==e)return e;if(!hi(e))return function(e,t){return e&&Bn(e,t,rr)}(e,t);for(var n=e.length,i=-1,r=Object(e);++i<n&&!1!==t(r[i],i,r););return e},gs=function(e,t){var n;return bs(e,(function(e,i,r){return!(n=t(e,i,r))})),!!n},_s=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},ys=function(e,t){var n=!0;return bs(e,(function(e,i,r){return n=!!t(e,i,r)})),n},vs=function(e){return e&&e.length?e[0]:void 0},ws=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},Ss=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},Ms=/^\s+|\s+$/g,ks=/^[-+]0x[0-9a-f]+$/i,xs=/^0b[01]+$/i,Ds=/^0o[0-7]+$/i,Ts=parseInt,Cs=function(e){if("number"==typeof e)return e;if(Yi(e))return NaN;if(pn(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=pn(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ms,"");var n=xs.test(e);return n||Ds.test(e)?Ts(e.slice(2),n?2:8):ks.test(e)?NaN:+e},Os=function(e){var t=function(e){return e?1/0===(e=Cs(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},Ls=Math.max,Rs=function(e,t,n){var i=Object(e);if(!hi(e)){var r=ms(t);e=rr(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:Os(n);return r<0&&(r=Ls(i+r,0)),Ss(e,ms(t),r)}(e,t,n);return s>-1?i[r?e[s]:s]:void 0},Es=function(e){return"string"==typeof e||!ui(e)&&ri(e)&&"[object String]"==fn(e)},As=function(){return sn.a.Date.now()},Is=Math.max,Ps=Math.min,Ns=function(e){return e!=e},js=Math.max,Fs=function(e,t,n,i){var r;e=hi(e)?e:null==(r=e)?[]:function(e,t){return Ji(t,(function(t){return e[t]}))}(r,rr(r)),n=n&&!i?Os(n):0;var s=e.length;return n<0&&(n=js(s+n,0)),Es(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):Ss(e,Ns,n)}(e,t,n)>-1},Ys=function(e,t,n,i){if(!pn(e))return e;for(var r=-1,s=(t=Zi(t,e)).length,o=s-1,a=e;null!=a&&++r<s;){var c=Xi(t[r]),l=n;if(r!=o){var u=a[c];void 0===(l=i?i(u,c,a):void 0)&&(l=pn(u)?u:Oi(t[r+1])?[]:{})}Di(a,c,l),a=a[c]}return e},zs=qr((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=er(e,o);n(0,o)&&Ys(s,Zi(o,e),a)}return s}(e,t,(function(t,n){return ps(e,n)}))}(e,t)}));function $s(e,t){1&e&&(i.Sb(0,"span"),i.Oc(1,"loading..."),i.Rb())}const Hs=function(e){return{$implicit:e}};function Ws(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"div"),i.nc(2),i.Rb(),i.Pb()),2&e){const e=i.ic();i.yb(1),i.Kc("height",e.getTotalHeight())}}const Vs=function(){return{dontDetach:!0}},Bs=["*"],Us=["loadingTemplate"],Gs=["treeNodeTemplate"],qs=["treeNodeWrapperTemplate"],Js=["treeNodeFullTemplate"],Qs=["viewport"],Ks=function(e,t,n,i){return{loadingTemplate:e,treeNodeTemplate:t,treeNodeWrapperTemplate:n,treeNodeFullTemplate:i}};function Zs(e,t){if(1&e&&i.Nb(0,"tree-node-collection",4),2&e){const e=i.ic();i.pc("nodes",e.treeModel.roots)("treeModel",e.treeModel)("templates",i.xc(3,Ks,e.loadingTemplate,e.treeNodeTemplate,e.treeNodeWrapperTemplate,e.treeNodeFullTemplate))}}function Xs(e,t){if(1&e&&i.Nb(0,"tree-node-drop-slot",5),2&e){const e=i.ic();i.pc("dropIndex",0)("node",e.treeModel.virtualRoot)}}function eo(e,t){if(1&e&&i.Nb(0,"tree-node-drop-slot",6),2&e){const e=i.ic(3);i.pc("dropIndex",e.node.index)("node",e.node.parent)}}function to(e,t){if(1&e&&(i.Sb(0,"div"),i.Mc(1,eo,1,2,"tree-node-drop-slot",3),i.Nb(2,"tree-node-wrapper",4),i.Nb(3,"tree-node-children",5),i.Nb(4,"tree-node-drop-slot",6),i.Rb()),2&e){const e=i.ic(2);i.Ab(e.node.getClass()),i.Eb("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.yb(1),i.pc("ngIf",0===e.index),i.yb(1),i.pc("node",e.node)("index",e.index)("templates",e.templates),i.yb(1),i.pc("node",e.node)("templates",e.templates),i.yb(1),i.pc("dropIndex",e.node.index+1)("node",e.node.parent)}}const no=function(e,t,n,i){return{$implicit:e,node:t,index:n,templates:i}};function io(e,t){if(1&e&&(i.Qb(0),i.Mc(1,to,5,22,"div",1),i.Ob(2,2),i.Pb()),2&e){const e=i.ic();i.yb(1),i.pc("ngIf",!e.templates.treeNodeFullTemplate),i.yb(1),i.pc("ngTemplateOutlet",e.templates.treeNodeFullTemplate)("ngTemplateOutletContext",i.xc(3,no,e.node,e.node,e.index,e.templates))}}function ro(e,t){if(1&e&&(i.Sb(0,"span"),i.Oc(1),i.Rb()),2&e){const e=i.ic();i.yb(1),i.Pc(e.node.displayField)}}const so=function(e,t,n){return{$implicit:e,node:t,index:n}};function oo(e,t){if(1&e){const e=i.Tb();i.Sb(0,"span",3),i.gc("click",(function(t){return i.Dc(e),i.ic(2).node.mouseAction("expanderClick",t)})),i.Nb(1,"span",4),i.Rb()}if(2&e){const e=i.ic(2);i.Eb("toggle-children-wrapper-expanded",e.node.isExpanded)("toggle-children-wrapper-collapsed",e.node.isCollapsed)}}function ao(e,t){1&e&&i.Nb(0,"span",5)}function co(e,t){if(1&e&&(i.Qb(0),i.Mc(1,oo,2,4,"span",1),i.Mc(2,ao,1,0,"span",2),i.Pb()),2&e){const e=i.ic();i.yb(1),i.pc("ngIf",e.node.hasChildren),i.yb(1),i.pc("ngIf",!e.node.hasChildren)}}function lo(e,t){if(1&e&&i.Nb(0,"tree-node-collection",4),2&e){const e=i.ic(3);i.pc("nodes",e.node.children)("templates",e.templates)("treeModel",e.node.treeModel)}}function uo(e,t){if(1&e&&i.Nb(0,"tree-loading-component",5),2&e){const e=i.ic(3);i.Kc("padding-left",e.node.getNodePadding()),i.pc("template",e.templates.loadingTemplate)("node",e.node)}}function ho(e,t){if(1&e&&(i.Sb(0,"div"),i.Mc(1,lo,1,3,"tree-node-collection",2),i.Mc(2,uo,1,4,"tree-loading-component",3),i.Rb()),2&e){const e=i.ic(2);i.Eb("tree-children",!0)("tree-children-no-padding",e.node.options.levelPadding),i.yb(1),i.pc("ngIf",e.node.children),i.yb(1),i.pc("ngIf",!e.node.children)}}function fo(e,t){if(1&e&&(i.Qb(0),i.Mc(1,ho,3,6,"div",1),i.Pb()),2&e){const e=i.ic();i.yb(1),i.pc("treeAnimateOpen",e.node.isExpanded)("treeAnimateOpenSpeed",e.node.options.animateSpeed)("treeAnimateOpenAcceleration",e.node.options.animateAcceleration)("treeAnimateOpenEnabled",e.node.options.animateExpand)}}function po(e,t){if(1&e&&i.Nb(0,"tree-node",2),2&e){const e=t.$implicit,n=t.index,r=i.ic(2);i.pc("node",e)("index",n)("templates",r.templates)}}function mo(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"div"),i.Mc(2,po,1,3,"tree-node",1),i.Rb(),i.Pb()),2&e){const e=i.ic();i.yb(1),i.Kc("margin-top",e.marginTop),i.yb(1),i.pc("ngForOf",e.viewportNodes)("ngForTrackBy",e.trackNode)}}function bo(e,t){if(1&e&&i.Nb(0,"tree-node-checkbox",4),2&e){const e=i.ic(2);i.pc("node",e.node)}}function go(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",2),i.Mc(1,bo,1,1,"tree-node-checkbox",3),i.Nb(2,"tree-node-expander",4),i.Sb(3,"div",5),i.gc("click",(function(t){return i.Dc(e),i.ic().node.mouseAction("click",t)}))("dblclick",(function(t){return i.Dc(e),i.ic().node.mouseAction("dblClick",t)}))("mouseover",(function(t){return i.Dc(e),i.ic().node.mouseAction("mouseOver",t)}))("mouseout",(function(t){return i.Dc(e),i.ic().node.mouseAction("mouseOut",t)}))("contextmenu",(function(t){return i.Dc(e),i.ic().node.mouseAction("contextMenu",t)}))("treeDrop",(function(t){return i.Dc(e),i.ic().node.onDrop(t)}))("treeDropDragOver",(function(t){return i.Dc(e),i.ic().node.mouseAction("dragOver",t)}))("treeDropDragLeave",(function(t){return i.Dc(e),i.ic().node.mouseAction("dragLeave",t)}))("treeDropDragEnter",(function(t){return i.Dc(e),i.ic().node.mouseAction("dragEnter",t)})),i.Nb(4,"tree-node-content",6),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.Kc("padding-left",e.node.getNodePadding()),i.yb(1),i.pc("ngIf",e.node.options.useCheckbox),i.yb(1),i.pc("node",e.node),i.yb(1),i.Eb("node-content-wrapper-active",e.node.isActive)("node-content-wrapper-focused",e.node.isFocused),i.pc("treeAllowDrop",e.node.allowDrop)("allowDragoverStyling",e.node.allowDragoverStyling())("treeDrag",e.node)("treeDragEnabled",e.node.allowDrag()),i.yb(1),i.pc("node",e.node)("index",e.index)("template",e.templates.treeNodeTemplate)}}function _o(e,t){if(1&e){const e=i.Tb();i.Qb(0),i.Sb(1,"input",1),i.gc("click",(function(t){return i.Dc(e),i.ic().node.mouseAction("checkboxClick",t)})),i.Rb(),i.Pb()}if(2&e){const e=i.ic();i.yb(1),i.pc("checked",e.node.isSelected)("indeterminate",e.node.isPartiallySelected)}}let yo=(()=>{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.Mb(i.L),i.Mb(i.P))},e.\u0275dir=i.Hb({type:e,selectors:[["","treeMobxAutorun",""]],inputs:{treeMobxAutorun:"treeMobxAutorun"}}),e})();const vo={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)}},wo={mouse:{click:vo.TOGGLE_ACTIVE,dblClick:null,contextMenu:null,expanderClick:vo.TOGGLE_EXPANDED,checkboxClick:vo.TOGGLE_SELECTED,drop:vo.MOVE_NODE},keys:{39:vo.DRILL_DOWN,37:vo.DRILL_UP,40:vo.NEXT_NODE,38:vo.PREVIOUS_NODE,32:vo.TOGGLE_ACTIVE,13:vo.TOGGLE_ACTIVE}};class So{constructor(e={}){this.options=e,this.actionMapping=Fi({},this.options.actionMapping,wo),e.rtl&&(this.actionMapping.keys[39]=tr(e,["actionMapping","keys",39])||vo.DRILL_UP,this.actionMapping.keys[37]=tr(e,["actionMapping","keys",37])||vo.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):Jr(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)||ri(e)&&"[object Number]"==fn(e)?this.options.dropSlotHeight:2;var e}}const Mo={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 ko=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},xo=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Do=(()=>{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):(t=e=>e.isSelected,(ui(e=this.children)?Qr:gs)(e,ms(t)));var e,t}get isAllSelected(){return this.isSelectable()?this.treeModel.isSelected(this):(t=e=>e.isAllSelected,(ui(e=this.children)?_s:ys)(e,ms(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 vs((e?this.visibleChildren:this.children)||[])}getLastChild(e=!1){return Hr((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:Mo.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=tt(()=>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:Mo.blur,node:t}),this.fireEvent({eventName:Mo.focus,node:this}),this}blur(){let e=this.treeModel.getFocusedNode();return this.treeModel.setFocusedNode(null),e&&this.fireEvent({eventName:Mo.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 ko([se,xo("design:type",Object),xo("design:paramtypes",[])],e.prototype,"isHidden",null),ko([se,xo("design:type",Object),xo("design:paramtypes",[])],e.prototype,"isExpanded",null),ko([se,xo("design:type",Object),xo("design:paramtypes",[])],e.prototype,"isActive",null),ko([se,xo("design:type",Object),xo("design:paramtypes",[])],e.prototype,"isFocused",null),ko([se,xo("design:type",Object),xo("design:paramtypes",[])],e.prototype,"isSelected",null),ko([se,xo("design:type",Object),xo("design:paramtypes",[])],e.prototype,"isAllSelected",null),ko([se,xo("design:type",Object),xo("design:paramtypes",[])],e.prototype,"isPartiallySelected",null),ko([te,xo("design:type",Array)],e.prototype,"children",void 0),ko([te,xo("design:type",Number)],e.prototype,"index",void 0),ko([te,xo("design:type",Object)],e.prototype,"position",void 0),ko([te,xo("design:type",Number)],e.prototype,"height",void 0),ko([se,xo("design:type",Number),xo("design:paramtypes",[])],e.prototype,"level",null),ko([se,xo("design:type",Array),xo("design:paramtypes",[])],e.prototype,"path",null),ko([se,xo("design:type",Object),xo("design:paramtypes",[])],e.prototype,"visibleChildren",null),ko([Qe,xo("design:type",Function),xo("design:paramtypes",[Object]),xo("design:returntype",void 0)],e.prototype,"setIsSelected",null),ko([Qe,xo("design:type",Function),xo("design:paramtypes",[]),xo("design:returntype",void 0)],e.prototype,"_initChildren",null),e})();var To=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},Co=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Oo=(()=>{class e{constructor(){this.options=new So,this.eventNames=Object.keys(Mo),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 vs(e?this.getVisibleRoots():this.roots)}getLastRoot(e=!1){return Hr(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 ws(e)}get activeNodes(){const e=Object.keys(this.activeNodeIds).filter(e=>this.activeNodeIds[e]).map(e=>this.getNodeById(e));return ws(e)}get hiddenNodes(){const e=Object.keys(this.hiddenNodeIds).filter(e=>this.hiddenNodeIds[e]).map(e=>this.getNodeById(e));return ws(e)}get selectedLeafNodes(){const e=Object.keys(this.selectedLeafNodeIds).filter(e=>this.selectedLeafNodeIds[e]).map(e=>this.getNodeById(e));return ws(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=Rs(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=Rs(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 So(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 Do(e,null,this,0),this.roots=this.virtualRoot.children,this.firstUpdate?this.roots&&(this.firstUpdate=!1,this._calculateExpandedNodes()):this.fireEvent({eventName:Mo.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:Mo.activate,node:e}),this.fireEvent({eventName:Mo.nodeActivate,node:e})):(this.fireEvent({eventName:Mo.deactivate,node:e}),this.fireEvent({eventName:Mo.nodeDeactivate,node:e}))}setSelectedNode(e,t){this.selectedLeafNodeIds=Object.assign({},this.selectedLeafNodeIds,{[e.id]:t}),t?(e.focus(),this.fireEvent({eventName:Mo.select,node:e})):this.fireEvent({eventName:Mo.deselect,node:e})}setExpandedNode(e,t){this.expandedNodeIds=Object.assign({},this.expandedNodeIds,{[e.id]:t}),this.fireEvent({eventName:Mo.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(Es(e))n=t=>-1!==t.displayField.toLowerCase().indexOf(e.toLowerCase());else{if(!mn(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:Mo.changeFilter})}clearFilter(){this.hiddenNodeIds={},this.fireEvent({eventName:Mo.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:Mo.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:Mo.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:Mo.deactivate,node:e}),this.fireEvent({eventName:Mo.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.Ib({token:e,factory:e.\u0275fac}),e.focusedTree=null,To([te,Co("design:type",Array)],e.prototype,"roots",void 0),To([te,Co("design:type",Object)],e.prototype,"expandedNodeIds",void 0),To([te,Co("design:type",Object)],e.prototype,"selectedLeafNodeIds",void 0),To([te,Co("design:type",Object)],e.prototype,"activeNodeIds",void 0),To([te,Co("design:type",Object)],e.prototype,"hiddenNodeIds",void 0),To([te,Co("design:type",Object)],e.prototype,"focusedNodeId",void 0),To([te,Co("design:type",Do)],e.prototype,"virtualRoot",void 0),To([se,Co("design:type",Object),Co("design:paramtypes",[])],e.prototype,"focusedNode",null),To([se,Co("design:type",Object),Co("design:paramtypes",[])],e.prototype,"expandedNodes",null),To([se,Co("design:type",Object),Co("design:paramtypes",[])],e.prototype,"activeNodes",null),To([se,Co("design:type",Object),Co("design:paramtypes",[])],e.prototype,"hiddenNodes",null),To([se,Co("design:type",Object),Co("design:paramtypes",[])],e.prototype,"selectedLeafNodes",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[Object]),Co("design:returntype",void 0)],e.prototype,"setData",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[]),Co("design:returntype",void 0)],e.prototype,"update",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[Object]),Co("design:returntype",void 0)],e.prototype,"setFocusedNode",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[Object]),Co("design:returntype",void 0)],e.prototype,"setFocus",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[Object]),Co("design:returntype",void 0)],e.prototype,"doForAll",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[]),Co("design:returntype",void 0)],e.prototype,"focusNextNode",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[]),Co("design:returntype",void 0)],e.prototype,"focusPreviousNode",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[]),Co("design:returntype",void 0)],e.prototype,"focusDrillDown",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[]),Co("design:returntype",void 0)],e.prototype,"focusDrillUp",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[Object,Object,Object]),Co("design:returntype",void 0)],e.prototype,"setActiveNode",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[Object,Object]),Co("design:returntype",void 0)],e.prototype,"setSelectedNode",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[Object,Object]),Co("design:returntype",void 0)],e.prototype,"setExpandedNode",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[]),Co("design:returntype",void 0)],e.prototype,"expandAll",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[]),Co("design:returntype",void 0)],e.prototype,"collapseAll",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[Object,Object]),Co("design:returntype",void 0)],e.prototype,"setIsHidden",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[Object]),Co("design:returntype",void 0)],e.prototype,"setHiddenNodeIds",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[Object,Object]),Co("design:returntype",void 0)],e.prototype,"filterNodes",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[]),Co("design:returntype",void 0)],e.prototype,"clearFilter",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[Object,Object]),Co("design:returntype",void 0)],e.prototype,"moveNode",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[Object,Object]),Co("design:returntype",void 0)],e.prototype,"copyNode",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[Object]),Co("design:returntype",void 0)],e.prototype,"setState",null),e})(),Lo=(()=>{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.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})();var Ro=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},Eo=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};const Ao=150;let Io=(()=>{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*Ao}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,tt(()=>this.treeModel.roots,e),tt(()=>this.treeModel.expandedNodeIds,e),tt(()=>this.treeModel.hiddenNodeIds,e)],this.treeModel.subscribe(Mo.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/Ao),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/Ao)))}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=Po(t,e=>e.position+500>this.y||e.position+e.height>this.y),i=Po(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/Ao)}}return e.\u0275fac=function(t){return new(t||e)(i.dc(Oo))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),Ro([te,Eo("design:type",Object)],e.prototype,"yBlocks",void 0),Ro([te,Eo("design:type",Object)],e.prototype,"x",void 0),Ro([te,Eo("design:type",Object)],e.prototype,"viewportHeight",void 0),Ro([se,Eo("design:type",Object),Eo("design:paramtypes",[])],e.prototype,"y",null),Ro([se,Eo("design:type",Object),Eo("design:paramtypes",[])],e.prototype,"totalHeight",null),Ro([Qe,Eo("design:type",Function),Eo("design:paramtypes",[Object]),Eo("design:returntype",void 0)],e.prototype,"_setYBlocks",null),Ro([Qe,Eo("design:type",Function),Eo("design:paramtypes",[]),Eo("design:returntype",void 0)],e.prototype,"recalcPositions",null),Ro([Qe,Eo("design:type",Function),Eo("design:paramtypes",[Object]),Eo("design:returntype",void 0)],e.prototype,"setViewport",null),Ro([Qe,Eo("design:type",Function),Eo("design:paramtypes",[Object,Object,Object]),Eo("design:returntype",void 0)],e.prototype,"scrollIntoView",null),e})();function Po(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 No=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({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.Mc(0,$s,2,0,"span",0),i.Ob(1,1)),2&e&&(i.pc("ngIf",!t.template),i.yb(1),i.pc("ngTemplateOutlet",t.template)("ngTemplateOutletContext",i.uc(3,Hs,t.node)))},directives:[r.r,r.w],encapsulation:2}),e})(),jo=(()=>{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 pn(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=As();if(m(e))return g(e);a=setTimeout(b,function(e){var n=t-(e-c);return d?Ps(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=As(),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=Cs(t)||0,pn(n)&&(u=!!n.leading,s=(d="maxWait"in n)?Is(Cs(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(As())},_}(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:Mo.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.Mb(i.m),i.Mb(i.A),i.Mb(Io))},e.\u0275cmp=i.Gb({type:e,selectors:[["tree-viewport"]],features:[i.xb([Io])],ngContentSelectors:Bs,decls:1,vars:2,consts:[[4,"treeMobxAutorun"]],template:function(e,t){1&e&&(i.oc(),i.Mc(0,Ws,3,2,"ng-container",0)),2&e&&i.pc("treeMobxAutorun",i.tc(1,Vs))},directives:[yo],encapsulation:2}),e})(),Fo=(()=>{class e{constructor(e,t){this.treeModel=e,this.treeDraggedElement=t,e.eventNames.forEach(e=>this[e]=new i.o),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(Fs(["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:zs(this,this.treeModel.eventNames)})}sizeChanged(){this.viewportComponent.setViewport()}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Oo),i.Mb(Lo))},e.\u0275cmp=i.Gb({type:e,selectors:[["Tree"],["tree-root"]],contentQueries:function(e,t,n){var r;1&e&&(i.Fb(n,Us,!0),i.Fb(n,Gs,!0),i.Fb(n,qs,!0),i.Fb(n,Js,!0)),2&e&&(i.zc(r=i.hc())&&(t.loadingTemplate=r.first),i.zc(r=i.hc())&&(t.treeNodeTemplate=r.first),i.zc(r=i.hc())&&(t.treeNodeWrapperTemplate=r.first),i.zc(r=i.hc())&&(t.treeNodeFullTemplate=r.first))},viewQuery:function(e,t){var n;1&e&&i.Tc(Qs,!0),2&e&&i.zc(n=i.hc())&&(t.viewportComponent=n.first)},hostBindings:function(e,t){1&e&&i.gc("keydown",(function(e){return t.onKeydown(e)}),!1,i.Bc)("mousedown",(function(e){return t.onMousedown(e)}),!1,i.Bc)},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.xb([Oo]),i.wb],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.Sb(0,"tree-viewport",null,0),i.Sb(2,"div",1),i.Mc(3,Zs,1,8,"tree-node-collection",2),i.Mc(4,Xs,1,2,"tree-node-drop-slot",3),i.Rb(),i.Rb()),2&e&&(i.yb(2),i.Eb("node-dragging",t.treeDraggedElement.isDragging())("angular-tree-component-rtl",t.treeModel.options.rtl),i.yb(1),i.pc("ngIf",t.treeModel.roots),i.yb(1),i.pc("ngIf",t.treeModel.isEmptyTree()))},directives:function(){return[jo,r.r,Zo,$o]},encapsulation:2}),e})(),Yo=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({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.Mc(0,io,3,8,"ng-container",0),2&e&&i.pc("treeMobxAutorun",i.tc(1,Vs))},directives:function(){return[yo,r.r,r.w,Xo,Wo,$o]},encapsulation:2}),e})(),zo=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({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.Mc(0,ro,2,1,"span",0),i.Ob(1,1)),2&e&&(i.pc("ngIf",!t.template),i.yb(1),i.pc("ngTemplateOutlet",t.template)("ngTemplateOutletContext",i.wc(3,so,t.node,t.node,t.index)))},directives:[r.r,r.w],encapsulation:2}),e})(),$o=(()=>{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.Gb({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.Sb(0,"div",0),i.gc("treeDrop",(function(e){return t.onDrop(e)})),i.Rb()),2&e&&i.pc("treeAllowDrop",t.allowDrop.bind(t))("allowDragoverStyling",!0)},directives:function(){return[ia]},encapsulation:2}),e})(),Ho=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({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.Mc(0,co,3,2,"ng-container",0),2&e&&i.pc("treeMobxAutorun",i.tc(1,Vs))},directives:[yo,r.r],encapsulation:2}),e})(),Wo=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({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.Mc(0,fo,2,4,"ng-container",0),2&e&&i.pc("treeMobxAutorun",i.tc(1,Vs))},directives:function(){return[yo,sa,r.r,Zo,No]},encapsulation:2}),e})();function Vo(...e){return Qe(...e)}const Bo=Object.assign(Vo,Qe);function Uo(...e){return se(...e)}const Go=Object.assign(Uo,se);function qo(...e){return te(...e)}const Jo=Object.assign(qo,te);var Qo=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},Ko=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Zo=(()=>{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=[tt(()=>this.virtualScroll.getViewportNodes(this.nodes).map(e=>e.index),e=>{this.viewportNodes=e.map(e=>this.nodes[e])},{compareStructural:!0,fireImmediately:!0}),tt(()=>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.Gb({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.Mc(0,mo,3,4,"ng-container",0),2&e&&i.pc("treeMobxAutorun",i.tc(1,Vs))},directives:[yo,r.q,Yo],encapsulation:2}),Qo([Jo,Ko("design:type",Object)],e.prototype,"_nodes",void 0),Qo([Jo,Ko("design:type",Array)],e.prototype,"viewportNodes",void 0),Qo([Go,Ko("design:type",String),Ko("design:paramtypes",[])],e.prototype,"marginTop",null),Qo([Bo,Ko("design:type",Function),Ko("design:paramtypes",[Object]),Ko("design:returntype",void 0)],e.prototype,"setNodes",null),e})(),Xo=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({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.Mc(0,go,5,15,"div",0),i.Ob(1,1)),2&e&&(i.pc("ngIf",!t.templates.treeNodeWrapperTemplate),i.yb(1),i.pc("ngTemplateOutlet",t.templates.treeNodeWrapperTemplate)("ngTemplateOutletContext",i.xc(3,no,t.node,t.node,t.index,t.templates)))},directives:function(){return[r.r,r.w,Ho,ra,ia,zo,ea]},encapsulation:2}),e})(),ea=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({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.Mc(0,_o,2,2,"ng-container",0),2&e&&i.pc("treeMobxAutorun",i.tc(1,Vs))},directives:[yo],encapsulation:2}),e})();const ta="is-dragging-over",na="is-dragging-over-disabled";let ia=(()=>{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.o,this.onDragOverCallback=new i.o,this.onDragLeaveCallback=new i.o,this.onDragEnterCallback=new i.o,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,ta)}removeClass(){this.renderer.removeClass(this.el.nativeElement,ta)}addDisabledClass(){this.renderer.addClass(this.el.nativeElement,na)}removeDisabledClass(){this.renderer.removeClass(this.el.nativeElement,na)}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.m),i.Mb(i.E),i.Mb(Lo),i.Mb(i.A))},e.\u0275dir=i.Hb({type:e,selectors:[["","treeDrop",""]],hostBindings:function(e,t){1&e&&i.gc("drop",(function(e){return t.onDrop(e)}))},inputs:{allowDragoverStyling:"allowDragoverStyling",treeAllowDrop:"treeAllowDrop"},outputs:{onDropCallback:"treeDrop",onDragOverCallback:"treeDropDragOver",onDragLeaveCallback:"treeDropDragLeave",onDragEnterCallback:"treeDropDragEnter"}}),e})(),ra=(()=>{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.Mb(i.m),i.Mb(i.E),i.Mb(Lo),i.Mb(i.A))},e.\u0275dir=i.Hb({type:e,selectors:[["","treeDrag",""]],hostBindings:function(e,t){1&e&&i.gc("dragstart",(function(e){return t.onDragStart(e)}))("dragend",(function(){return t.onDragEnd()}))},inputs:{draggedElement:["treeDrag","draggedElement"],treeDragEnabled:"treeDragEnabled"}}),e})(),sa=(()=>{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.Mb(i.E),i.Mb(i.L),i.Mb(i.P))},e.\u0275dir=i.Hb({type:e,selectors:[["","treeAnimateOpen",""]],inputs:{isOpen:["treeAnimateOpen","isOpen"],animateSpeed:["treeAnimateOpenSpeed","animateSpeed"],animateAcceleration:["treeAnimateOpenAcceleration","animateAcceleration"],isEnabled:["treeAnimateOpenEnabled","isEnabled"]}}),e})(),oa=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},providers:[],imports:[[r.c]]}),e})()},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.Nb(0,"div",2),r.nc(1)),2&e){const e=r.ic();r.Ab(e.class),r.pc("innerHtml",e.html,r.Ec)}}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.Gb({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.oc(),r.Mc(0,a,2,3,"ng-template",null,0,r.Nc),r.Sb(2,"i",1),r.gc("click",(function(e){return e.preventDefault()})),r.Rb()),2&e){const e=r.Ac(1);r.yb(2),r.pc("ngClass",r.uc(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)}))}},ppGB:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},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.Tb();i.Sb(0,"span"),i.Sb(1,"span",4),i.Sb(2,"span",5),i.Oc(3),i.Rb(),i.Sb(4,"a",6),i.gc("click",(function(){i.Dc(e);const n=t.$implicit;return i.ic(),i.Ac(1).removeItem(n)})),i.Nb(5,"i",7),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=t.$implicit,n=i.ic();i.yb(3),i.Pc(e),i.yb(2),i.pc("ngClass",i.uc(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.o,this.icons=r.a}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-select-badges"]],viewQuery:function(e,t){var n;1&e&&i.Jc(c,!0),2&e&&i.zc(n=i.hc())&&(t.cdSelect=n.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.Sb(0,"cd-select",0,1),i.gc("selection",(function(e){return t.selection.emit(e)})),i.Nb(2,"i",2),i.Rb(),i.Mc(3,u,6,4,"span",3)),2&e&&(i.pc("data",t.data)("options",t.options)("messages",t.messages)("selectionLimit",t.selectionLimit)("customBadges",t.customBadges)("customBadgeValidators",t.customBadgeValidators),i.yb(2),i.pc("ngClass",i.uc(8,l,t.icons.edit)),i.yb(1),i.pc("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}}},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("4syw"),r=n("8YOa").getWeakData,s=n("glrk"),o=n("hh1v"),a=n("GarU"),c=n("ImZN"),l=n("tycR"),u=n("UTVS"),d=n("afO8"),h=d.set,f=d.getterFor,p=l.find,m=l.findIndex,b=0,g=function(e){return e.frozen||(e.frozen=new _)},_=function(){this.entries=[]},y=function(e,t){return p(e.entries,(function(e){return e[0]===t}))};_.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var n=y(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=m(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,l){var d=e((function(e,i){a(e,d,t),h(e,{type:t,id:b++,frozen:void 0}),null!=i&&c(i,e[l],e,n)})),p=f(t),m=function(e,t,n){var i=p(e),o=r(s(t),!0);return!0===o?g(i).set(t,n):o[i.id]=n,e};return i(d.prototype,{delete:function(e){var t=p(this);if(!o(e))return!1;var n=r(e);return!0===n?g(t).delete(e):n&&u(n,t.id)&&delete n[t.id]},has:function(e){var t=p(this);if(!o(e))return!1;var n=r(e);return!0===n?g(t).has(e):n&&u(n,t.id)}}),i(d.prototype,n?{get:function(e){var t=p(this);if(o(e)){var n=r(e);return!0===n?g(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return m(this,e,t)}}:{add:function(e){return m(this,e,!0)}}),d}}},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"))},rkAj:function(e,t,n){var i=n("g6v/"),r=n("0Dky"),s=n("UTVS"),o=Object.defineProperty,a={},c=function(e){throw e};e.exports=function(e,t){if(s(a,e))return a[e];t||(t={});var n=[][e],l=!!s(t,"ACCESSORS")&&t.ACCESSORS,u=s(t,0)?t[0]:c,d=s(t,1)?t[1]:void 0;return a[e]=!!n&&!r((function(){if(l&&!i)return!0;var e={length:-1};l?o(e,1,{enumerable:!0,get:c}):e[1]=1,n.call(e,u,d)}))}},rpNk:function(e,t,n){"use strict";var i,r,s,o=n("4WOD"),a=n("kRJp"),c=n("UTVS"),l=n("tiKp"),u=n("xDBR"),d=l("iterator"),h=!1;[].keys&&("next"in(s=[].keys())?(r=o(o(s)))!==Object.prototype&&(i=r):h=!0),null==i&&(i={}),u||c(i,d)||a(i,d,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:h}},"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 fe})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return be})),n.d(t,"f",(function(){return Ee})),n.d(t,"g",(function(){return Ye})),n.d(t,"h",(function(){return pe})),n.d(t,"i",(function(){return Pe})),n.d(t,"j",(function(){return me})),n.d(t,"k",(function(){return Ce})),n.d(t,"l",(function(){return Le})),n.d(t,"m",(function(){return ze})),n.d(t,"n",(function(){return M})),n.d(t,"o",(function(){return c})),n.d(t,"p",(function(){return g})),n.d(t,"q",(function(){return y})),n.d(t,"r",(function(){return v})),n.d(t,"s",(function(){return ye})),n.d(t,"t",(function(){return ke})),n.d(t,"u",(function(){return H})),n.d(t,"v",(function(){return A})),n.d(t,"w",(function(){return N})),n.d(t,"x",(function(){return $e})),n.d(t,"y",(function(){return je})),n.d(t,"z",(function(){return $})),n.d(t,"A",(function(){return D})),n.d(t,"B",(function(){return U})),n.d(t,"C",(function(){return xe}));var i=n("8Y7J"),r=n("SVse"),s=n("cp0P"),o=n("Cfvw"),a=n("lJxs");const c=new i.r("NgValueAccessor"),l={provide:c,useExisting:Object(i.T)(()=>u),multi:!0};let u=(()=>{class e{constructor(e,t){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.Mb(i.E),i.Mb(i.m))},e.\u0275dir=i.Hb({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&i.gc("change",(function(e){return t.onChange(e.target.checked)}))("blur",(function(){return t.onTouched()}))},features:[i.xb([l])]}),e})();const d={provide:c,useExisting:Object(i.T)(()=>f),multi:!0},h=new i.r("CompositionEventMode");let f=(()=>{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.Mb(i.E),i.Mb(i.m),i.Mb(h,8))},e.\u0275dir=i.Hb({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.gc("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.xb([d])]}),e})(),p=(()=>{class e{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}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.Hb({type:e}),e})(),m=(()=>{class e extends p{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(t){return b(t||e)},e.\u0275dir=i.Hb({type:e,features:[i.vb]}),e})();const b=i.Ub(m);class g extends p{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){}get asyncValidator(){}}class _{constructor(e){this._cd=e}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let y=(()=>{class e extends _{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(g,2))},e.\u0275dir=i.Hb({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.Eb("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[i.vb]}),e})(),v=(()=>{class e extends _{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(m,2))},e.\u0275dir=i.Hb({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.Eb("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[i.vb]}),e})();function w(e){return null==e||0===e.length}function S(e){return null!=e&&"number"==typeof e.length}const M=new i.r("NgValidators"),k=new i.r("NgAsyncValidators"),x=/^(?=.{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 D{static min(e){return t=>{if(w(t.value)||w(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}static max(e){return t=>{if(w(t.value)||w(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}static required(e){return w(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return w(e.value)||x.test(e.value)?null:{email:!0}}static minLength(e){return t=>w(t.value)||!S(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}static maxLength(e){return t=>S(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}static pattern(e){if(!e)return D.nullValidator;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(w(e.value))return null;const i=e.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}static nullValidator(e){return null}static compose(e){if(!e)return null;const t=e.filter(T);return 0==t.length?null:function(e){return O(L(e,t))}}static composeAsync(e){if(!e)return null;const t=e.filter(T);return 0==t.length?null:function(e){const n=L(e,t).map(C);return Object(s.a)(n).pipe(Object(a.a)(O))}}}function T(e){return null!=e}function C(e){const t=Object(i.qb)(e)?Object(o.a)(e):e;return Object(i.pb)(t),t}function O(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 L(e,t){return t.map(t=>t(e))}function R(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}const E={provide:c,useExisting:Object(i.T)(()=>A),multi:!0};let A=(()=>{class e{constructor(e,t){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.Mb(i.E),i.Mb(i.m))},e.\u0275dir=i.Hb({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&i.gc("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[i.xb([E])]}),e})();const I={provide:c,useExisting:Object(i.T)(()=>N),multi:!0};let P=(()=>{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=i.Ib({token:e,factory:e.\u0275fac}),e})(),N=(()=>{class e{constructor(e,t,n,i){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=i,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(g),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.Mb(i.E),i.Mb(i.m),i.Mb(P),i.Mb(i.s))},e.\u0275dir=i.Hb({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&i.gc("change",(function(){return t.onChange()}))("blur",(function(){return t.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[i.xb([I])]}),e})();const j={provide:c,useExisting:Object(i.T)(()=>F),multi:!0};let F=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(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.Mb(i.E),i.Mb(i.m))},e.\u0275dir=i.Hb({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&i.gc("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[i.xb([j])]}),e})();const Y={provide:c,useExisting:Object(i.T)(()=>$),multi:!0};function z(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let $=(()=>{class e{constructor(e,t){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=z(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.Mb(i.E),i.Mb(i.m))},e.\u0275dir=i.Hb({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&i.gc("change",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[i.xb([Y])]}),e})(),H=(()=>{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(z(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.Mb(i.m),i.Mb(i.E),i.Mb($,9))},e.\u0275dir=i.Hb({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const W={provide:c,useExisting:Object(i.T)(()=>B),multi:!0};function V(e,t){return null==e?""+t:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let B=(()=>{class e{constructor(e,t){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.Mb(i.E),i.Mb(i.m))},e.\u0275dir=i.Hb({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&i.gc("change",(function(e){return t.onChange(e.target)}))("blur",(function(){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[i.xb([W])]}),e})(),U=(()=>{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(V(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(V(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.Mb(i.m),i.Mb(i.E),i.Mb(B,9))},e.\u0275dir=i.Hb({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();function G(e,t){return[...t.path,e]}function q(e,t){e.validator=D.compose([e.validator,t.validator]),e.asyncValidator=D.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&J(e,t)})}(e,t),function(e,t){e.registerOnChange((e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&J(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(e=>{t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())}),t._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())})}function J(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Q(e,t){e.validator=D.compose([e.validator,t.validator]),e.asyncValidator=D.composeAsync([e.asyncValidator,t.asyncValidator])}function K(e){return null!=e?D.compose(R(e)):null}function Z(e){return null!=e?D.composeAsync(R(e)):null}function X(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}const ee=[u,F,A,$,B,N];function te(e,t){e._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function ne(e,t){if(!t)return null;Array.isArray(t);let n=void 0,i=void 0,r=void 0;return t.forEach(e=>{var t;e.constructor===f?n=e:(t=e,ee.some(e=>t.constructor===e)?i=e:r=e)}),r||i||n||null}function ie(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const re="VALID",se="INVALID",oe="PENDING",ae="DISABLED";function ce(e){return(he(e)?e.validators:e)||null}function le(e){return Array.isArray(e)?K(e):e||null}function ue(e,t){return(he(t)?t.asyncValidators:e)||null}function de(e){return Array.isArray(e)?Z(e):e||null}function he(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class fe{constructor(e,t){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=le(this._rawValidators),this._composedAsyncValidatorFn=de(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===re}get invalid(){return this.status===se}get pending(){return this.status==oe}get disabled(){return this.status===ae}get enabled(){return this.status!==ae}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=le(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=de(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=oe,!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=ae,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=re,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!==re&&this.status!==oe||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()?ae:re}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=oe,this._hasOwnPendingAsyncValidator=!0;const t=C(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 me?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof be&&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.o,this.statusChanges=new i.o}_calculateStatus(){return this._allControlsDisabled()?ae:this.errors?se:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(oe)?oe:this._anyControlsHaveStatus(se)?se:re}_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){he(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class pe extends fe{constructor(e=null,t,n){super(ce(t),ue(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}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)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(e){this._onDisabledChange.push(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 me extends fe{constructor(e,t,n){super(ce(t),ue(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}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={}){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 pe?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=>e(this.controls[t],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 be extends fe{constructor(e,t,n){super(ce(t),ue(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}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={}){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 pe?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 ge={provide:m,useExisting:Object(i.T)(()=>ye)},_e=(()=>Promise.resolve(null))();let ye=(()=>{class e extends m{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.o,this.form=new me({},K(e),Z(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){_e.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),q(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){_e.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),ie(this._directives,e)})}addFormGroup(e){_e.then(()=>{const t=this._findContainer(e.path),n=new me({});Q(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){_e.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){_e.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,te(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.Mb(M,10),i.Mb(k,10))},e.\u0275dir=i.Hb({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&i.gc("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.xb([ge]),i.vb]}),e})(),ve=(()=>{class e extends m{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return G(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return K(this._validators)}get asyncValidator(){return Z(this._asyncValidators)}_checkParentType(){}}return e.\u0275fac=function(t){return we(t||e)},e.\u0275dir=i.Hb({type:e,features:[i.vb]}),e})();const we=i.Ub(ve),Se={provide:g,useExisting:Object(i.T)(()=>ke)},Me=(()=>Promise.resolve(null))();let ke=(()=>{class e extends g{constructor(e,t,n,r){super(),this.control=new pe,this._registered=!1,this.update=new i.o,this._parent=e,this._rawValidators=t||[],this._rawAsyncValidators=n||[],this.valueAccessor=ne(0,r)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),X(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?G(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return K(this._rawValidators)}get asyncValidator(){return Z(this._rawAsyncValidators)}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(){q(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){Me.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;Me.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.Mb(m,9),i.Mb(M,10),i.Mb(k,10),i.Mb(c,10))},e.\u0275dir=i.Hb({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.xb([Se]),i.vb,i.wb]}),e})(),xe=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Hb({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})();const De=new i.r("NgModelWithFormControlWarning"),Te={provide:m,useExisting:Object(i.T)(()=>Ce)};let Ce=(()=>{class e extends m{constructor(e,t){super(),this._validators=e,this._asyncValidators=t,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new i.o}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return q(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){ie(this.directives,e)}addFormGroup(e){const t=this.form.get(e.path);Q(t,e),t.updateValueAndValidity({emitEvent:!1})}removeFormGroup(e){}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){const t=this.form.get(e.path);Q(t,e),t.updateValueAndValidity({emitEvent:!1})}removeFormArray(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,te(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=this.form.get(e.path);e.control!==t&&(function(e,t){const n=()=>{};t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n),t._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}(e.control,e),t&&q(t,e),e.control=t)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const e=K(this._validators);this.form.validator=D.compose([this.form.validator,e]);const t=Z(this._asyncValidators);this.form.asyncValidator=D.composeAsync([this.form.asyncValidator,t])}_checkFormPresent(){}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(M,10),i.Mb(k,10))},e.\u0275dir=i.Hb({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.gc("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.xb([Te]),i.vb,i.wb]}),e})();const Oe={provide:m,useExisting:Object(i.T)(()=>Le)};let Le=(()=>{class e extends ve{constructor(e,t,n){super(),this._parent=e,this._validators=t,this._asyncValidators=n}_checkParentType(){Ae(this._parent)}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(m,13),i.Mb(M,10),i.Mb(k,10))},e.\u0275dir=i.Hb({type:e,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[i.xb([Oe]),i.vb]}),e})();const Re={provide:m,useExisting:Object(i.T)(()=>Ee)};let Ee=(()=>{class e extends m{constructor(e,t,n){super(),this._parent=e,this._validators=t,this._asyncValidators=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 G(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return K(this._validators)}get asyncValidator(){return Z(this._asyncValidators)}_checkParentType(){Ae(this._parent)}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(m,13),i.Mb(M,10),i.Mb(k,10))},e.\u0275dir=i.Hb({type:e,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[i.xb([Re]),i.vb]}),e})();function Ae(e){return!(e instanceof Le||e instanceof Ce||e instanceof Ee)}const Ie={provide:g,useExisting:Object(i.T)(()=>Pe)};let Pe=(()=>{class e extends g{constructor(e,t,n,r,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new i.o,this._ngModelWarningSent=!1,this._parent=e,this._rawValidators=t||[],this._rawAsyncValidators=n||[],this.valueAccessor=ne(0,r)}set isDisabled(e){}ngOnChanges(t){var n,r;this._added||this._setUpControl(),X(t,this.viewModel)&&(n=e,this,r=this._ngModelWarningConfig,Object(i.U)()&&"never"!==r&&((null!==r&&"once"!==r||n._ngModelWarningSentOnce)&&("always"!==r||this._ngModelWarningSent)||(n._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),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 G(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return K(this._rawValidators)}get asyncValidator(){return Z(this._rawAsyncValidators)}_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.Mb(m,13),i.Mb(M,10),i.Mb(k,10),i.Mb(c,10),i.Mb(De,8))},e.\u0275dir=i.Hb({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i.xb([Ie]),i.vb,i.wb]}),e._ngModelWarningSentOnce=!1,e})();const Ne={provide:M,useExisting:Object(i.T)(()=>je),multi:!0};let je=(()=>{class e{constructor(){this._required=!1}get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()}validate(e){return this.required?D.required(e):null}registerOnValidatorChange(e){this._onChange=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Hb({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.zb("required",t.required?"":null)},inputs:{required:"required"},features:[i.xb([Ne])]}),e})(),Fe=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)}}),e})(),Ye=(()=>{class e{group(e,t=null){const n=this._reduceControls(e);let i=null,r=null,s=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(i=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,s=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null)),new me(n,{asyncValidators:r,updateOn:s,validators:i})}control(e,t,n){return new pe(e,t,n)}array(e,t,n){const i=e.map(e=>this._createControl(e));return new be(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 pe||e instanceof me||e instanceof be?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=i.Ib({token:e,factory:e.\u0275fac}),e})(),ze=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},providers:[P],imports:[Fe]}),e})(),$e=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:De,useValue:t.warnOnNgModelWithFormControl}]}}}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},providers:[Ye,P],imports:[Fe]}),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("m/L8").f,s=Function.prototype,o=s.toString,a=/^\s*function ([^ (]*)/,c="name";i&&!(c in s)&&r(s,c,{configurable:!0,get:function(){try{return o.call(this).match(a)[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.Sb(0,"span"),i.Nb(1,"i",2),i.Rb()),2&e){const e=i.ic();i.yb(1),i.pc("ngClass",i.vc(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.o,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.Mb(i.m))},e.\u0275cmp=i.Gb({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.oc(),i.Sb(0,"button",0),i.gc("click",(function(e){return t.submit(e)})),i.nc(1),i.Mc(2,d,2,4,"span",1),i.Rb()),2&e&&(i.pc("type",t.type)("ngClass",t.btnClass)("disabled",t.loading||t.disabled),i.yb(2),i.pc("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})();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.Ib({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.Ib({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}}},"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"))},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("UTVS"),o=n("kOOl"),a=n("STAE"),c=n("/b8u"),l=r("wks"),u=i.Symbol,d=c?u:u&&u.withoutSetter||o;e.exports=function(e){return s(l,e)||(l[e]=a&&s(u,e)?u[e]:d("Symbol."+e)),l[e]}},tycR:function(e,t,n){var i=n("A2ZE"),r=n("RK3t"),s=n("ewvW"),o=n("UMSQ"),a=n("ZfDv"),c=[].push,l=function(e){var t=1==e,n=2==e,l=3==e,u=4==e,d=6==e,h=5==e||d;return function(f,p,m,b){for(var g,_,y=s(f),v=r(y),w=i(p,m,3),S=o(v.length),M=0,k=b||a,x=t?k(f,S):n?k(f,0):void 0;S>M;M++)if((h||M in v)&&(_=w(g=v[M],M,y),e))if(t)x[M]=_;else if(_)switch(e){case 3:return!0;case 5:return g;case 6:return M;case 2:c.call(x,g)}else if(u)return!1;return d?-1:l||u?u:x}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},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.dc(c.a),l.dc(a.a))},e.\u0275prov=l.Ib({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"))},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 ve}));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"),y=n("4DD9"),v=n("o4+5"),w=n("zWsK"),S=n("yT6U"),M=n("TJUb"),k=n("efK2");const x=["tableCellBoldTpl"],D=["sparklineTpl"],T=["routerLinkTpl"],C=["checkIconTpl"],O=["perSecondTpl"],L=["executingTpl"],R=["classAddingTpl"],E=["badgeTpl"],A=["mapTpl"],I=["truncateTpl"],P=["rowDetailsTpl"];function N(e,t){1&e&&(i.Sb(0,"div",20),i.Sb(1,"div",21),i.nc(2),i.Rb(),i.Rb())}function j(e,t){if(1&e){const e=i.Tb();i.Qb(0),i.Sb(1,"button",36),i.gc("click",(function(){i.Dc(e);const n=t.$implicit;return i.ic(3).onSelectFilter(n),!1})),i.Oc(2),i.Rb(),i.Pb()}if(2&e){const e=t.$implicit;i.yb(2),i.Pc(e.column.name)}}const F=function(e){return[e]};function Y(e,t){if(1&e&&i.Nb(0,"i",28),2&e){const e=i.ic(4);i.pc("ngClass",i.uc(1,F,e.icons.check))}}function z(e,t){if(1&e){const e=i.Tb();i.Qb(0),i.Sb(1,"button",36),i.gc("click",(function(){i.Dc(e);const n=t.$implicit,r=i.ic(3);return r.onChangeFilter(r.selectedFilter,n),!1})),i.Oc(2),i.Mc(3,Y,1,3,"i",37),i.Rb(),i.Pb()}if(2&e){const e=t.$implicit,n=i.ic(3);i.yb(2),i.Qc(" ",e.formatted," "),i.yb(1),i.pc("ngIf",void 0!==n.selectedFilter.value&&n.selectedFilter.value.raw===e.raw)}}const $=function(e,t){return[e,t]};function H(e,t){if(1&e&&(i.Sb(0,"div",32),i.Sb(1,"div",33),i.Sb(2,"button",34),i.Nb(3,"i",28),i.Oc(4),i.Rb(),i.Sb(5,"div",29),i.Mc(6,j,3,1,"ng-container",30),i.Rb(),i.Rb(),i.Sb(7,"div",35),i.Sb(8,"button",34),i.Oc(9),i.Rb(),i.Sb(10,"div",29),i.Mc(11,z,4,2,"ng-container",30),i.Rb(),i.Rb(),i.Rb()),2&e){const e=i.ic(2);i.yb(3),i.pc("ngClass",i.vc(7,$,e.icons.large,e.icons.filter)),i.yb(1),i.Qc(" ",e.selectedFilter.column.name," "),i.yb(2),i.pc("ngForOf",e.columnFilters),i.yb(2),i.Eb("disabled",0===e.selectedFilter.options.length),i.yb(1),i.Qc(" ",e.selectedFilter.value?e.selectedFilter.value.formatted:"Any"," "),i.yb(2),i.pc("ngForOf",e.selectedFilter.options)}}function W(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",38),i.Sb(1,"span",39),i.Sb(2,"span",40),i.Nb(3,"i",28),i.Rb(),i.Rb(),i.Sb(4,"input",41),i.gc("ngModelChange",(function(t){return i.Dc(e),i.ic(2).search=t}))("keyup",(function(){return i.Dc(e),i.ic(2).updateFilter()})),i.Rb(),i.Sb(5,"div",42),i.Sb(6,"button",43),i.gc("click",(function(){return i.Dc(e),i.ic(2).onClearSearch()})),i.Nb(7,"i"),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.ic(2);i.yb(3),i.pc("ngClass",i.uc(5,F,e.icons.search)),i.yb(1),i.pc("ngModel",e.search),i.yb(3),i.Bb("icon-prepend ",e.icons.destroy,"")}}function V(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",44),i.Sb(1,"input",45),i.gc("click",(function(t){return i.Dc(e),i.ic(2).setLimit(t)}))("keyup",(function(t){return i.Dc(e),i.ic(2).setLimit(t)}))("blur",(function(t){return i.Dc(e),i.ic(2).setLimit(t)})),i.Rb(),i.Rb()}if(2&e){const e=i.ic(2);i.yb(1),i.pc("value",e.userConfig.limit)}}function B(e,t){if(1&e){const e=i.Tb();i.Sb(0,"button",36),i.gc("click",(function(){i.Dc(e);const t=i.ic().$implicit;return i.ic(2).toggleColumn(t),!1})),i.Sb(1,"div",47),i.Nb(2,"input",48),i.Sb(3,"label",49),i.Oc(4),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.ic().$implicit;i.yb(2),i.pc("name",e.prop)("id",e.prop)("checked",!e.isHidden),i.yb(1),i.pc("for",e.prop),i.yb(1),i.Pc(e.name)}}function U(e,t){if(1&e&&(i.Qb(0),i.Mc(1,B,5,5,"button",46),i.Pb()),2&e){const e=t.$implicit;i.yb(1),i.pc("ngIf",""!==e.name)}}function G(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",50),i.Sb(1,"button",51),i.gc("click",(function(){return i.Dc(e),i.ic(2).refreshBtn()})),i.Nb(2,"i",28),i.Rb(),i.Rb()}if(2&e){const e=i.ic(2);i.yb(1),i.Ab("btn btn-"+e.status.type),i.pc("ngbTooltip",e.status.msg),i.yb(1),i.Eb("fa-spin",e.updating||e.loadingIndicator),i.pc("ngClass",i.vc(6,$,e.icons.large,e.icons.refresh))}}function q(e,t){if(1&e&&(i.Sb(0,"div",20),i.Sb(1,"div",21),i.nc(2,1),i.Rb(),i.Mc(3,H,12,10,"div",22),i.Mc(4,W,8,7,"div",23),i.Mc(5,V,2,1,"div",24),i.Sb(6,"div",25),i.Sb(7,"div",26),i.Sb(8,"button",27),i.Nb(9,"i",28),i.Rb(),i.Sb(10,"div",29),i.Mc(11,U,2,1,"ng-container",30),i.Rb(),i.Rb(),i.Rb(),i.Mc(12,G,3,9,"div",31),i.Rb()),2&e){const e=i.ic();i.yb(3),i.pc("ngIf",0!==e.columnFilters.length),i.yb(1),i.pc("ngIf",e.searchField),i.yb(1),i.pc("ngIf",e.limit),i.yb(4),i.pc("ngClass",i.vc(6,$,e.icons.large,e.icons.table)),i.yb(2),i.pc("ngForOf",e.columns),i.yb(1),i.pc("ngIf",e.fetchData.observers.length>0)}}function J(e,t){if(1&e){const e=i.Tb();i.Sb(0,"span",56),i.Sb(1,"span",57),i.Oc(2),i.Rb(),i.Sb(3,"a",58),i.gc("click",(function(){i.Dc(e);const t=i.ic().$implicit;return i.ic(2).onChangeFilter(t),!1})),i.Nb(4,"i",59),i.Rb(),i.Rb()}if(2&e){const e=i.ic().$implicit,t=i.ic(2);i.yb(2),i.Rc("",e.column.name,": ",e.value.formatted,""),i.yb(2),i.pc("ngClass",i.uc(3,F,t.icons.destroy))}}function Q(e,t){if(1&e&&(i.Sb(0,"span"),i.Mc(1,J,5,5,"span",55),i.Rb()),2&e){const e=t.$implicit;i.yb(1),i.pc("ngIf",e.value)}}function K(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",20),i.Sb(1,"div",52),i.Mc(2,Q,2,1,"span",30),i.Sb(3,"a",53),i.gc("click",(function(){return i.Dc(e),i.ic().onClearFilters(),!1})),i.Qb(4),i.Wb(5,54),i.Pb(),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.yb(2),i.pc("ngForOf",e.columnFilters)}}function Z(e,t){1&e&&i.nc(0,2)}function X(e,t){if(1&e&&(i.Sb(0,"span"),i.Oc(1),i.Qb(2),i.Wb(3,64),i.Pb(),i.Oc(4," / "),i.Rb()),2&e){const e=i.ic().selectedCount;i.yb(1),i.Qc(" ",e," ")}}function ee(e,t){if(1&e&&(i.Sb(0,"span"),i.Oc(1),i.Qb(2),i.Wb(3,65),i.Pb(),i.Oc(4," / "),i.Rb()),2&e){const e=i.ic().rowCount;i.yb(1),i.Qc(" ",e," ")}}function te(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",60),i.Mc(1,X,5,1,"span",61),i.Mc(2,ee,5,1,"span",61),i.Sb(3,"span"),i.Oc(4),i.Qb(5),i.Wb(6,62),i.Pb(),i.Rb(),i.Rb(),i.Sb(7,"datatable-pager",63),i.gc("change",(function(t){return i.Dc(e),i.ic(),i.Ac(5).onFooterPage(t)})),i.Rb()}if(2&e){const e=t.rowCount,n=t.pageSize,r=t.curPage,s=i.ic();i.yb(1),i.pc("ngIf",s.selectionType),i.yb(1),i.pc("ngIf",e!=(null==s.data?null:s.data.length)),i.yb(2),i.Qc(" ",(null==s.data?null:s.data.length)||0," "),i.yb(3),i.pc("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.Sb(0,"strong"),i.Oc(1),i.Rb()),2&e){const e=t.value;i.yb(1),i.Pc(e)}}function ie(e,t){if(1&e&&i.Nb(0,"cd-sparkline",66),2&e){const e=t.row;i.pc("data",t.value)("isBinary",e.cdIsBinary)}}function re(e,t){if(1&e&&(i.Sb(0,"a",67),i.Oc(1),i.Rb()),2&e){const e=t.row,n=t.value;i.pc("routerLink",i.uc(3,F,e.cdLink))("queryParams",e.cdParams),i.yb(1),i.Pc(n)}}function se(e,t){if(1&e&&(i.Nb(0,"i",68),i.jc(1,"boolean")),2&e){const e=t.value,n=i.ic();i.pc("ngClass",i.uc(4,F,n.icons.check))("hidden",!i.kc(1,2,e))}}function oe(e,t){1&e&&(i.Oc(0),i.jc(1,"dimless")),2&e&&i.Qc(" ",i.kc(1,1,t.value)," /s\n")}function ae(e,t){if(1&e&&i.Nb(0,"i",28),2&e){const e=i.ic(2);i.pc("ngClass",i.vc(1,$,e.icons.spinner,e.icons.spin))}}function ce(e,t){if(1&e&&(i.Sb(0,"span",28),i.Oc(1),i.Rb()),2&e){const e=i.ic(),t=e.column,n=e.row;i.pc("ngClass",null!=t&&null!=t.customTemplateConfig&&t.customTemplateConfig.executingClass?t.customTemplateConfig.executingClass:"text-muted italic"),i.yb(1),i.Qc("(",n.cdExecuting,")")}}function le(e,t){if(1&e&&(i.Mc(0,ae,1,4,"i",37),i.Sb(1,"span",28),i.Oc(2),i.Rb(),i.Mc(3,ce,2,2,"span",37)),2&e){const e=t.column,n=t.row,r=t.value;i.pc("ngIf",n.cdExecuting),i.yb(1),i.pc("ngClass",null==e||null==e.customTemplateConfig?null:e.customTemplateConfig.valueClass),i.yb(1),i.Qc(" ",r," "),i.yb(1),i.pc("ngIf",n.cdExecuting)}}function ue(e,t){if(1&e&&(i.Sb(0,"span"),i.jc(1,"pipeFunction"),i.Oc(2),i.Rb()),2&e){const e=t.value,n=i.ic();i.Ab(i.mc(1,4,e,n.useCustomClass,n)),i.yb(2),i.Pc(e)}}function de(e,t){if(1&e&&(i.Sb(0,"span",70),i.Oc(1),i.Rb()),2&e){const e=i.ic().$implicit,t=i.ic().column;i.pc("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.yb(1),i.Qc(" ",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.Sb(0,"span"),i.Oc(1,"\xa0"),i.Rb())}function fe(e,t){if(1&e&&(i.Sb(0,"span"),i.Mc(1,de,2,2,"span",69),i.Mc(2,he,2,0,"span",61),i.Rb()),2&e){const e=t.$implicit,n=t.last,r=i.ic().column;i.yb(1),i.pc("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.yb(1),i.pc("ngIf",!n)}}function pe(e,t){1&e&&(i.Mc(0,fe,3,2,"span",30),i.jc(1,"array")),2&e&&i.pc("ngForOf",i.kc(1,1,t.value))}function me(e,t){if(1&e&&(i.Sb(0,"span"),i.Oc(1),i.jc(2,"map"),i.Rb()),2&e){const e=t.column,n=t.value;i.yb(1),i.Pc(i.lc(2,1,n,null==e?null:e.customTemplateConfig))}}function be(e,t){if(1&e&&(i.Sb(0,"span",71),i.Oc(1),i.jc(2,"truncate"),i.Rb()),2&e){const e=t.column,n=t.value;i.pc("title",n),i.yb(1),i.Pc(i.mc(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.Tb();i.Sb(0,"a",72),i.Yb(1,73),i.gc("click",(function(n){i.Dc(e);const r=t.row,s=t.expanded;return i.ic().toggleExpandRow(r,s,n)})),i.Rb()}if(2&e){const e=t.expanded;i.Eb("expand-collapse-icon-right",!e)("expand-collapse-icon-down",e)}}const _e=[[["",8,"only-table-actions"]],[["",8,"table-actions"]],[["","cdTableDetail",""]]],ye=[".only-table-actions",".table-actions","[cdTableDetail]"];let ve=(()=>{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.o,this.updateSelection=new i.o,this.setExpandedRow=new i.o,this.columnFiltersChanged=new i.o,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.Mb(i.A),i.Mb(i.h))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-table"]],viewQuery:function(e,t){var n;1&e&&(i.Jc(r.d,!0),i.Jc(x,!0),i.Jc(D,!0),i.Jc(T,!0),i.Jc(C,!0),i.Jc(O,!0),i.Jc(L,!0),i.Jc(R,!0),i.Jc(E,!0),i.Jc(A,!0),i.Jc(I,!0),i.Jc(P,!0)),2&e&&(i.zc(n=i.hc())&&(t.table=n.first),i.zc(n=i.hc())&&(t.tableCellBoldTpl=n.first),i.zc(n=i.hc())&&(t.sparklineTpl=n.first),i.zc(n=i.hc())&&(t.routerLinkTpl=n.first),i.zc(n=i.hc())&&(t.checkIconTpl=n.first),i.zc(n=i.hc())&&(t.perSecondTpl=n.first),i.zc(n=i.hc())&&(t.executingTpl=n.first),i.zc(n=i.hc())&&(t.classAddingTpl=n.first),i.zc(n=i.hc())&&(t.badgeTpl=n.first),i.zc(n=i.hc())&&(t.mapTpl=n.first),i.zc(n=i.hc())&&(t.truncateTpl=n.first),i.zc(n=i.hc())&&(t.rowDetailsTpl=n.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.wb],ngContentSelectors:ye,decls:33,vars:17,consts:function(){return[[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"],"Clear filters",["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"],"total",[3,"pagerLeftArrowIcon","pagerRightArrowIcon","pagerPreviousIcon","pagerNextIcon","page","size","count","hidden","change"],"selected","found",[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)",1,"expand-collapse-icon","tc_expand-collapse",3,"click",6,"title"],["title","Expand/Collapse Row"]]},template:function(e,t){1&e&&(i.oc(_e),i.Sb(0,"div",0),i.Mc(1,N,3,0,"div",1),i.Mc(2,q,13,9,"div",1),i.Mc(3,K,6,1,"div",1),i.Sb(4,"ngx-datatable",2,3),i.gc("select",(function(e){return t.onSelect(e)}))("sort",(function(e){return t.changeSorting(e)})),i.Sb(6,"ngx-datatable-row-detail",4,5),i.Mc(8,Z,1,0,"ng-template",6),i.Rb(),i.Sb(9,"ngx-datatable-footer"),i.Mc(10,te,8,11,"ng-template",7),i.Rb(),i.Rb(),i.Rb(),i.Mc(11,ne,2,1,"ng-template",null,8,i.Nc),i.Mc(13,ie,1,2,"ng-template",null,9,i.Nc),i.Mc(15,re,2,5,"ng-template",null,10,i.Nc),i.Mc(17,se,2,6,"ng-template",null,11,i.Nc),i.Mc(19,oe,2,3,"ng-template",null,12,i.Nc),i.Mc(21,le,4,4,"ng-template",null,13,i.Nc),i.Mc(23,ue,3,8,"ng-template",null,14,i.Nc),i.Mc(25,pe,2,3,"ng-template",null,15,i.Nc),i.Mc(27,me,3,4,"ng-template",null,16,i.Nc),i.Mc(29,be,3,6,"ng-template",null,17,i.Nc),i.Mc(31,ge,2,4,"ng-template",18,19,i.Nc)),2&e&&(i.yb(1),i.pc("ngIf",t.onlyActionHeader),i.yb(1),i.pc("ngIf",t.toolHeader),i.yb(1),i.pc("ngIf",t.toolHeader&&t.columnFiltered),i.yb(1),i.pc("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:[y.a,v.a,w.b,S.a,M.a,k.a],styles:['@charset "UTF-8";.dataTables_wrapper[_ngcontent-%COMP%]{margin-bottom:25px}.dataTables_wrapper[_ngcontent-%COMP%]   .separator[_ngcontent-%COMP%]{border-left:1px solid rgba(0,0,0,.09);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 rgba(0,0,0,.09);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 rgba(0,0,0,.09);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.Lb({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/create":this.newTaskMessage(this.commonOperations.create,e=>this.host(e)),"host/delete":this.newTaskMessage(this.commonOperations.delete,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/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.Ib({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,_=x(a,"Map"),y=x(Object,"create");function v(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 S(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 M(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 k(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 x(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!T(e)||(t=e,h&&h in t))&&(function(e){var t=T(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 D(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(D.Cache||S),n}function T(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}v.prototype.clear=function(){this.__data__=y?y(null):{}},v.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},v.prototype.get=function(e){var t=this.__data__;if(y){var n=t[e];return n===i?void 0:n}return p.call(t,e)?t[e]:void 0},v.prototype.has=function(e){var t=this.__data__;return y?void 0!==t[e]:p.call(t,e)},v.prototype.set=function(e,t){return this.__data__[e]=y&&void 0===t?i:t,this},w.prototype.clear=function(){this.__data__=[]},w.prototype.delete=function(e){var t=this.__data__,n=M(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=M(t,e);return n<0?void 0:t[n][1]},w.prototype.has=function(e){return M(this.__data__,e)>-1},w.prototype.set=function(e,t){var n=this.__data__,i=M(n,e);return i<0?n.push([e,t]):n[i][1]=t,this},S.prototype.clear=function(){this.__data__={hash:new v,map:new(_||w),string:new v}},S.prototype.delete=function(e){return k(this,e).delete(e)},S.prototype.get=function(e){return k(this,e).get(e)},S.prototype.has=function(e){return k(this,e).has(e)},S.prototype.set=function(e,t){return k(this,e).set(e,t),this},D.Cache=S,e.exports=D},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}}},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 p}));var i=n("XNiG"),r=n("HDdC"),s=n("7o/Q"),o=n("quSY");function a(){return function(e){return e.lift(new c(e))}}class c{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const i=new l(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}class l extends s.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()}}class u 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 o.a,e.add(this.source.subscribe(new h(this.getSubject(),this))),e.closed&&(this._connection=null,e=o.a.EMPTY)),e}refCount(){return a()(this)}}const d=(()=>{const e=u.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 h 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()}}}function f(){return new i.a}function p(){return e=>{return a()((t=f,function(e){let n;n="function"==typeof t?t:function(){return t};const i=Object.create(e,d);return i.source=e,i.subjectFactory=n,i})(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 ze})),n.d(t,"f",(function(){return Ye})),n.d(t,"g",(function(){return Fe})),n.d(t,"h",(function(){return kt})),n.d(t,"i",(function(){return ct})),n.d(t,"j",(function(){return ve}));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.Nb(0,"datatable-progress")}function h(e,t){if(1&e&&i.Nb(0,"datatable-summary-row",9),2&e){const e=i.ic(2);i.pc("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.Tb();i.Sb(0,"datatable-body-row",13),i.gc("treeAction",(function(){i.Dc(e);const t=i.ic().$implicit;return i.ic(2).onTreeAction(t)}))("activate",(function(t){i.Dc(e);const n=i.ic().index,r=i.ic(2);return i.Ac(2).onActivate(t,r.indexes.first+n)})),i.Rb()}if(2&e){const e=i.ic().$implicit,t=i.ic(2),n=i.Ac(2);i.pc("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.Tb();i.Sb(0,"datatable-body-row",15),i.gc("activate",(function(n){i.Dc(e);const r=t.index;return i.ic(4),i.Ac(2).onActivate(n,r)})),i.Rb()}if(2&e){const e=t.$implicit,n=i.ic(2).$implicit,r=i.ic(2),s=i.Ac(2);i.pc("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.Mc(0,p,1,10,"datatable-body-row",14),2&e){const e=i.ic().$implicit,t=i.ic(2);i.pc("ngForOf",e.value)("ngForTrackBy",t.rowTrackingFn)}}function b(e,t){if(1&e){const e=i.Tb();i.Sb(0,"datatable-row-wrapper",10),i.gc("rowContextmenu",(function(t){return i.Dc(e),i.ic(2).rowContextmenu.emit(t)})),i.Mc(1,f,1,11,"datatable-body-row",11),i.Mc(2,m,1,2,"ng-template",null,12,i.Nc),i.Rb()}if(2&e){const e=t.$implicit,n=t.index,r=i.Ac(3),s=i.ic(2);i.pc("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.yb(1),i.pc("ngIf",!s.groupedRows)("ngIfElse",r)}}function g(e,t){if(1&e&&i.Nb(0,"datatable-summary-row",16),2&e){const e=i.ic(2);i.pc("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.Tb();i.Sb(0,"datatable-scroller",5),i.gc("scroll",(function(t){return i.Dc(e),i.ic().onBodyScroll(t)})),i.Mc(1,h,1,5,"datatable-summary-row",6),i.Mc(2,b,4,12,"datatable-row-wrapper",7),i.Mc(3,g,1,6,"datatable-summary-row",8),i.Rb()}if(2&e){const e=i.ic();i.pc("scrollbarV",e.scrollbarV)("scrollbarH",e.scrollbarH)("scrollHeight",e.scrollHeight)("scrollWidth",null==e.columnGroupWidths?null:e.columnGroupWidths.total),i.yb(1),i.pc("ngIf",e.summaryRow&&"top"===e.summaryPosition),i.yb(1),i.pc("ngForOf",e.temp)("ngForTrackBy",e.rowTrackingFn),i.yb(1),i.pc("ngIf",e.summaryRow&&"bottom"===e.summaryPosition)}}function y(e,t){if(1&e&&i.Nb(0,"div",17),2&e){const e=i.ic();i.pc("innerHTML",e.emptyMessage,i.Ec)}}function v(e,t){if(1&e){const e=i.Tb();i.Sb(0,"datatable-header-cell",4),i.gc("resize",(function(n){i.Dc(e);const r=t.$implicit;return i.ic(2).onColumnResized(n,r)}))("longPressStart",(function(t){return i.Dc(e),i.ic(2).onLongPressStart(t)}))("longPressEnd",(function(t){return i.Dc(e),i.ic(2).onLongPressEnd(t)}))("sort",(function(t){return i.Dc(e),i.ic(2).onSort(t)}))("select",(function(t){return i.Dc(e),i.ic(2).select.emit(t)}))("columnContextmenu",(function(t){return i.Dc(e),i.ic(2).columnContextmenu.emit(t)})),i.Rb()}if(2&e){const e=t.$implicit,n=i.ic(2);i.pc("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.Sb(0,"div",2),i.Mc(1,v,1,19,"datatable-header-cell",3),i.Rb()),2&e){const e=t.$implicit,n=i.ic();i.Ab("datatable-row-"+e.type),i.pc("ngStyle",n._styleByGroup[e.type]),i.yb(1),i.pc("ngForOf",e.columns)("ngForTrackBy",n.columnTrackingFn)}}function S(e,t){if(1&e){const e=i.Tb();i.Sb(0,"datatable-header",4),i.gc("sort",(function(t){return i.Dc(e),i.ic().onColumnSort(t)}))("resize",(function(t){return i.Dc(e),i.ic().onColumnResize(t)}))("reorder",(function(t){return i.Dc(e),i.ic().onColumnReorder(t)}))("select",(function(t){return i.Dc(e),i.ic().onHeaderSelect(t)}))("columnContextmenu",(function(t){return i.Dc(e),i.ic().onColumnContextmenu(t)})),i.jc(1,"async"),i.Rb()}if(2&e){const e=i.ic();i.pc("sorts",e.sorts)("sortType",e.sortType)("scrollbarH",e.scrollbarH)("innerWidth",e._innerWidth)("offsetX",i.kc(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 M(e,t){if(1&e){const e=i.Tb();i.Sb(0,"datatable-footer",5),i.gc("page",(function(t){return i.Dc(e),i.ic().onFooterPage(t)})),i.Rb()}if(2&e){const e=i.ic();i.pc("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 k(e,t){}function x(e,t){if(1&e&&i.Mc(0,k,0,0,"ng-template",5),2&e){const e=i.ic();i.pc("ngTemplateOutlet",e.targetMarkerTemplate)("ngTemplateOutletContext",e.targetMarkerContext)}}function D(e,t){if(1&e){const e=i.Tb();i.Sb(0,"label",6),i.Sb(1,"input",7),i.gc("change",(function(){i.Dc(e);const t=i.ic();return t.select.emit(!t.allRowsSelected)})),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.yb(1),i.pc("checked",e.allRowsSelected)}}function T(e,t){if(1&e){const e=i.Tb();i.Sb(0,"span",8),i.Sb(1,"span",9),i.gc("click",(function(){return i.Dc(e),i.ic().onSort()})),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.yb(1),i.pc("innerHTML",e.name,i.Ec)}}function C(e,t){}function O(e,t){if(1&e&&i.Mc(0,C,0,0,"ng-template",5),2&e){const e=i.ic();i.pc("ngTemplateOutlet",e.column.headerTemplate)("ngTemplateOutletContext",e.cellContext)}}function L(e,t){}const R=function(e,t,n,i,r){return{rowCount:e,pageSize:t,selectedCount:n,curPage:i,offset:r}};function E(e,t){if(1&e&&i.Mc(0,L,0,0,"ng-template",4),2&e){const e=i.ic();i.pc("ngTemplateOutlet",e.footerTemplate.template)("ngTemplateOutletContext",i.yc(2,R,e.rowCount,e.pageSize,e.selectedCount,e.curPage,e.offset))}}function A(e,t){if(1&e&&(i.Sb(0,"span"),i.Oc(1),i.Rb()),2&e){const e=i.ic(2);i.yb(1),i.Rc(" ",null==e.selectedCount?null:e.selectedCount.toLocaleString()," ",e.selectedMessage," / ")}}function I(e,t){if(1&e&&(i.Sb(0,"div",5),i.Mc(1,A,2,2,"span",1),i.Oc(2),i.Rb()),2&e){const e=i.ic();i.yb(1),i.pc("ngIf",e.selectedMessage),i.yb(1),i.Rc(" ",null==e.rowCount?null:e.rowCount.toLocaleString()," ",e.totalMessage," ")}}function P(e,t){if(1&e){const e=i.Tb();i.Sb(0,"datatable-pager",6),i.gc("change",(function(t){return i.Dc(e),i.ic().page.emit(t)})),i.Rb()}if(2&e){const e=i.ic();i.pc("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 N=function(e){return{"selected-count":e}};function j(e,t){if(1&e){const e=i.Tb();i.Sb(0,"li",6),i.Sb(1,"a",7),i.gc("click",(function(){i.Dc(e);const n=t.$implicit;return i.ic().selectPage(n.number)})),i.Oc(2),i.Rb(),i.Rb()}if(2&e){const e=t.$implicit,n=i.ic();i.Eb("active",e.number===n.page),i.zb("aria-label","page "+e.number),i.yb(2),i.Qc(" ",e.text," ")}}function F(e,t){if(1&e){const e=i.Tb();i.Sb(0,"datatable-body-cell",3),i.gc("activate",(function(n){i.Dc(e);const r=t.index;return i.ic(2).onActivate(n,r)}))("treeAction",(function(){return i.Dc(e),i.ic(2).onTreeAction()})),i.Rb()}if(2&e){const e=t.$implicit,n=i.ic(2);i.pc("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.Sb(0,"div",1),i.Mc(1,F,1,9,"datatable-body-cell",2),i.Rb()),2&e){const e=t.$implicit,n=i.ic();i.Bb("datatable-row-",e.type," datatable-row-group"),i.pc("ngStyle",n._groupStyles[e.type]),i.yb(1),i.pc("ngForOf",e.columns)("ngForTrackBy",n.columnTrackingFn)}}function z(e,t){}function $(e,t){if(1&e&&i.Mc(0,z,0,0,"ng-template",4),2&e){const e=i.ic(2);i.pc("ngTemplateOutlet",e.groupHeader.template)("ngTemplateOutletContext",e.groupContext)}}function H(e,t){if(1&e&&(i.Sb(0,"div",3),i.Mc(1,$,1,2,void 0,1),i.Rb()),2&e){const e=i.ic();i.pc("ngStyle",e.getGroupHeaderStyle()),i.yb(1),i.pc("ngIf",e.groupHeader&&e.groupHeader.template)}}function W(e,t){1&e&&i.nc(0,0,["*ngIf","(groupHeader && groupHeader.template && expanded) || !groupHeader || !groupHeader.template"])}function V(e,t){}function B(e,t){if(1&e&&i.Mc(0,V,0,0,"ng-template",4),2&e){const e=i.ic(2);i.pc("ngTemplateOutlet",e.rowDetail.template)("ngTemplateOutletContext",e.rowContext)}}function U(e,t){if(1&e&&(i.Sb(0,"div",5),i.Mc(1,B,1,2,void 0,1),i.Rb()),2&e){const e=i.ic();i.Kc("height",e.detailRowHeight,"px"),i.yb(1),i.pc("ngIf",e.rowDetail&&e.rowDetail.template)}}const G=["cellTemplate"];function q(e,t){if(1&e){const e=i.Tb();i.Sb(0,"label",4),i.Sb(1,"input",5),i.gc("click",(function(t){return i.Dc(e),i.ic().onCheckboxChange(t)})),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.yb(1),i.pc("checked",e.isSelected)}}function J(e,t){1&e&&i.Nb(0,"i",11)}function Q(e,t){1&e&&i.Nb(0,"i",12)}function K(e,t){1&e&&i.Nb(0,"i",13)}function Z(e,t){if(1&e){const e=i.Tb();i.Sb(0,"button",7),i.gc("click",(function(){return i.Dc(e),i.ic(2).onTreeAction()})),i.Sb(1,"span"),i.Mc(2,J,1,0,"i",8),i.Mc(3,Q,1,0,"i",9),i.Mc(4,K,1,0,"i",10),i.Rb(),i.Rb()}if(2&e){const e=i.ic(2);i.pc("disabled","disabled"===e.treeStatus),i.yb(2),i.pc("ngIf","loading"===e.treeStatus),i.yb(1),i.pc("ngIf","collapsed"===e.treeStatus),i.yb(1),i.pc("ngIf","expanded"===e.treeStatus||"disabled"===e.treeStatus)}}function X(e,t){}const ee=function(e){return{cellContext:e}};function te(e,t){if(1&e&&i.Mc(0,X,0,0,"ng-template",14),2&e){const e=i.ic(2);i.pc("ngTemplateOutlet",e.column.treeToggleTemplate)("ngTemplateOutletContext",i.uc(2,ee,e.cellContext))}}function ne(e,t){if(1&e&&(i.Qb(0),i.Mc(1,Z,5,4,"button",6),i.Mc(2,te,1,4,void 0,2),i.Pb()),2&e){const e=i.ic();i.yb(1),i.pc("ngIf",!e.column.treeToggleTemplate),i.yb(1),i.pc("ngIf",e.column.treeToggleTemplate)}}function ie(e,t){if(1&e&&i.Nb(0,"span",15),2&e){const e=i.ic();i.pc("title",e.sanitizedValue)("innerHTML",e.value,i.Ec)}}function re(e,t){}function se(e,t){if(1&e&&i.Mc(0,re,0,0,"ng-template",14,16,i.Nc),2&e){const e=i.ic();i.pc("ngTemplateOutlet",e.column.cellTemplate)("ngTemplateOutletContext",e.cellContext)}}function oe(e,t){if(1&e&&i.Nb(0,"datatable-body-row",1),2&e){const e=i.ic();i.pc("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.dc(r.d))},e.\u0275prov=i.Ib({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.Ib({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.Ib({token:e,factory:e.\u0275fac}),e})(),ue=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.L))},e.\u0275dir=i.Hb({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.o}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.Mb(i.m),i.Mb(i.A))},e.\u0275dir=i.Hb({type:e,selectors:[["","visibilityObserver",""]],hostVars:2,hostBindings:function(e,t){2&e&&i.Eb("visible",t.isVisible)},outputs:{visible:"visible"}}),e})(),he=(()=>{class e{constructor(e){this.dragX=!0,this.dragY=!0,this.dragStart=new i.o,this.dragging=new i.o,this.dragEnd=new i.o,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.Mb(i.m))},e.\u0275dir=i.Hb({type:e,selectors:[["","draggable",""]],inputs:{dragX:"dragX",dragY:"dragY",dragEventTarget:"dragEventTarget",dragModel:"dragModel"},outputs:{dragStart:"dragStart",dragging:"dragging",dragEnd:"dragEnd"},features:[i.wb]}),e})(),fe=(()=>{class e{constructor(e,t){this.renderer=t,this.resizeEnabled=!0,this.resize=new i.o,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.Mb(i.m),i.Mb(i.E))},e.\u0275dir=i.Hb({type:e,selectors:[["","resizeable",""]],hostVars:2,hostBindings:function(e,t){1&e&&i.gc("mousedown",(function(e){return t.onMousedown(e)})),2&e&&i.Eb("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.o,this.targetChanged=new i.o,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.Mb(i.u),i.Mb(r.d))},e.\u0275dir=i.Hb({type:e,selectors:[["","orderable",""]],contentQueries:function(e,t,n){var r;1&e&&i.Fb(n,he,!0),2&e&&i.zc(r=i.hc())&&(t.draggables=r)},outputs:{reorder:"reorder",targetChanged:"targetChanged"}}),e})(),me=(()=>{class e{constructor(){this.pressEnabled=!0,this.duration=500,this.longPressStart=new i.o,this.longPressing=new i.o,this.longPressEnd=new i.o,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.Hb({type:e,selectors:[["","long-press",""]],hostVars:4,hostBindings:function(e,t){1&e&&i.gc("mousedown",(function(e){return t.onMouseDown(e)})),2&e&&i.Eb("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.o,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.Mb(i.A),i.Mb(i.m),i.Mb(i.E))},e.\u0275cmp=i.Gb({type:e,selectors:[["datatable-scroller"]],hostAttrs:[1,"datatable-scroll"],hostVars:4,hostBindings:function(e,t){2&e&&i.Kc("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.oc(),i.nc(0))},encapsulation:2,changeDetection:0}),e})(),ge=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.L))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngx-datatable-group-header-template",""]]}),e})(),_e=(()=>{class e{constructor(){this.rowHeight=0,this.toggle=new i.o}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.Hb({type:e,selectors:[["ngx-datatable-group-header"]],contentQueries:function(e,t,n){var r;1&e&&i.Ic(n,ge,!0,i.L),2&e&&i.zc(r=i.hc())&&(t._templateQuery=r.first)},inputs:{rowHeight:"rowHeight",_templateInput:["template","_templateInput"]},outputs:{toggle:"toggle"}}),e})();function ye(){return""}function ve(e){return null==e?ye:"number"==typeof e?we:-1!==e.indexOf(".")?Me:Se}function we(e,t){if(null==e)return"";if(!e||null==t)return e;const n=e[t];return null==n?"":n}function Se(e,t){if(null==e)return"";if(!e||!t)return e;const n=e[t];return null==n?"":n}function Me(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 ke(e){return e&&(t=>ve(e)(t,e))}function xe(e,t,n){if(t&&n){const i={},r=e.length;let s=null;i[0]=new De;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 De(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 De{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 Te(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=Te(n.name)),n.$$valueGetter||(n.$$valueGetter=ve(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}({}),Re=function(e){return e.single="single",e.multi="multi",e.multiClick="multiClick",e.cell="cell",e.checkbox="checkbox",e}({}),Ee=function(e){return e.single="single",e.multi="multi",e}({}),Ae=function(e){return e.header="header",e.body="body",e}({});let Ie=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.L))},e.\u0275dir=i.Hb({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.Mb(i.L))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngx-datatable-cell-template",""]]}),e})(),Ne=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.L))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngx-datatable-tree-toggle",""]]}),e})(),je=(()=>{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.Mb(le))},e.\u0275dir=i.Hb({type:e,selectors:[["ngx-datatable-column"]],contentQueries:function(e,t,n){var r;1&e&&(i.Ic(n,Pe,!0,i.L),i.Ic(n,Ie,!0,i.L),i.Ic(n,Ne,!0,i.L)),2&e&&(i.zc(r=i.hc())&&(t._cellTemplateQuery=r.first),i.zc(r=i.hc())&&(t._headerTemplateQuery=r.first),i.zc(r=i.hc())&&(t._treeToggleTemplateQuery=r.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.wb]}),e})(),Fe=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.L))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngx-datatable-row-detail-template",""]]}),e})(),Ye=(()=>{class e{constructor(){this.rowHeight=0,this.toggle=new i.o}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.Hb({type:e,selectors:[["ngx-datatable-row-detail"]],contentQueries:function(e,t,n){var r;1&e&&i.Ic(n,Fe,!0,i.L),2&e&&i.zc(r=i.hc())&&(t._templateQuery=r.first)},inputs:{rowHeight:"rowHeight",_templateInput:["template","_templateInput"]},outputs:{toggle:"toggle"}}),e})(),ze=(()=>{class e{get template(){return this._templateInput||this._templateQuery}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Hb({type:e,selectors:[["ngx-datatable-footer"]],contentQueries:function(e,t,n){var r;1&e&&i.Fb(n,ue,!0,i.L),2&e&&i.zc(r=i.hc())&&(t._templateQuery=r.first)},inputs:{footerHeight:"footerHeight",totalMessage:"totalMessage",selectedMessage:"selectedMessage",pagerLeftArrowIcon:"pagerLeftArrowIcon",pagerRightArrowIcon:"pagerRightArrowIcon",pagerPreviousIcon:"pagerPreviousIcon",pagerNextIcon:"pagerNextIcon",_templateInput:["template","_templateInput"]}}),e})();function $e(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 He(e,t){return{left:We(e.left),center:We(e.center),right:We(e.right),total:Math.floor(We(t))}}function We(e,t){let n=0;if(e)for(const i of e)n+=parseFloat(t&&i[t]?i[t]:i.width);return n}function Ve(e){const t=[],n=$e(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 Be{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 Ue={},Ge="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 Je(e){const t=Te(e);return Ue[t]||(void 0!==qe&&void 0!==Ge[qe.css+e]?Ue[t]=qe.css+e:void 0!==Ge[e]&&(Ue[t]=e)),Ue[t]}const Qe="undefined"!=typeof window?Je("transform"):void 0,Ke="undefined"!=typeof window?Je("backfaceVisibility"):void 0,Ze="undefined"!=typeof window?!!Je("transform"):void 0,Xe="undefined"!=typeof window?!!Je("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!==Qe&&Ze?!tt&&Xe?(e[Qe]=`translate3d(${t}px, ${n}px, 0)`,e[Ke]="hidden"):e[Te(Qe)]=`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.o,this.page=new i.o,this.activate=new i.o,this.select=new i.o,this.detailToggle=new i.o,this.rowContextmenu=new i.o(!1),this.treeAction=new i.o,this.rowHeightsCache=new Be,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=$e(e);this.columnGroupWidths=He(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.Mb(i.h))},e.\u0275cmp=i.Gb({type:e,selectors:[["datatable-body"]],viewQuery:function(e,t){var n;1&e&&i.Tc(be,!0),2&e&&i.zc(n=i.hc())&&(t.scroller=n.first)},hostAttrs:[1,"datatable-body"],hostVars:4,hostBindings:function(e,t){2&e&&i.Kc("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.Mc(0,d,1,0,"datatable-progress",0),i.Sb(1,"datatable-selection",1,2),i.gc("select",(function(e){return t.select.emit(e)}))("activate",(function(e){return t.activate.emit(e)})),i.Mc(3,_,4,8,"datatable-scroller",3),i.Mc(4,y,1,1,"div",4),i.Rb()),2&e&&(i.pc("ngIf",t.loadingIndicator),i.yb(1),i.pc("selected",t.selected)("rows",t.rows)("selectCheck",t.selectCheck)("selectEnabled",t.selectEnabled)("selectionType",t.selectionType)("rowIdentity",t.rowIdentity),i.yb(2),i.pc("ngIf",null==t.rows?null:t.rows.length),i.yb(1),i.pc("ngIf",!(null!=t.rows&&t.rows.length||t.loadingIndicator)))},directives:function(){return[r.r,vt,pt,be,r.q,Mt,gt,r.s,bt]},encapsulation:2,changeDetection:0}),e})(),rt=(()=>{class e{constructor(e){this.cd=e,this.sort=new i.o,this.reorder=new i.o,this.resize=new i.o,this.select=new i.o,this.columnContextmenu=new i.o(!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=$e(this._columns);this._columnGroupWidths=He(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=$e(e);this._columnsByPin=Ve(e),setTimeout(()=>{this._columnGroupWidths=He(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===Ee.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.Mb(i.h))},e.\u0275cmp=i.Gb({type:e,selectors:[["datatable-header"]],hostAttrs:[1,"datatable-header"],hostVars:4,hostBindings:function(e,t){2&e&&i.Kc("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.Sb(0,"div",0),i.gc("reorder",(function(e){return t.onColumnReordered(e)}))("targetChanged",(function(e){return t.onTargetChanged(e)})),i.Mc(1,w,2,5,"div",1),i.Rb()),2&e&&(i.Kc("width",t._columnGroupWidths.total,"px"),i.yb(1),i.pc("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=Ee.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.o,this.activate=new i.o,this.select=new i.o,this.sort=new i.o,this.page=new i.o,this.reorder=new i.o,this.resize=new i.o,this.tableContextmenu=new i.o(!1),this.treeAction=new i.o,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=xe(this._internalRows,ke(this.treeFromRelation),ke(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===Re.checkbox}get isCellSelection(){return this.selectionType===Re.cell}get isSingleSelection(){return this.selectionType===Re.single}get isMultiSelection(){return this.selectionType===Re.multi}get isMultiClickSelection(){return this.selectionType===Re.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=xe(this._internalRows,ke(this.treeFromRelation),ke(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=$e(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:Ae.header,content:t})}onRowContextmenu({event:e,row:t}){this.tableContextmenu.emit({event:e,type:Ae.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=xe(this._internalRows,ke(this.treeFromRelation),ke(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:ve(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.Mb(ae,4),i.Mb(ce,4),i.Mb(i.h),i.Mb(i.m),i.Mb(i.u),i.Mb(le),i.Mb("configuration",8))},e.\u0275cmp=i.Gb({type:e,selectors:[["ngx-datatable"]],contentQueries:function(e,t,n){var r;1&e&&(i.Fb(n,Ye,!0),i.Fb(n,_e,!0),i.Fb(n,ze,!0),i.Fb(n,je,!1)),2&e&&(i.zc(r=i.hc())&&(t.rowDetail=r.first),i.zc(r=i.hc())&&(t.groupHeader=r.first),i.zc(r=i.hc())&&(t.footer=r.first),i.zc(r=i.hc())&&(t.columnTemplates=r))},viewQuery:function(e,t){var n;1&e&&(i.Tc(it,!0),i.Tc(rt,!0)),2&e&&(i.zc(n=i.hc())&&(t.bodyComponent=n.first),i.zc(n=i.hc())&&(t.headerComponent=n.first))},hostAttrs:[1,"ngx-datatable"],hostVars:22,hostBindings:function(e,t){1&e&&i.gc("resize",(function(){return t.onWindowResize()}),!1,i.Cc),2&e&&i.Eb("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.Sb(0,"div",0),i.gc("visible",(function(){return t.recalculate()})),i.Mc(1,S,2,17,"datatable-header",1),i.Sb(2,"datatable-body",2),i.gc("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.jc(3,"async"),i.Rb(),i.Mc(4,M,1,12,"datatable-footer",3),i.Rb()),2&e&&(i.yb(1),i.pc("ngIf",t.headerHeight),i.yb(1),i.pc("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.kc(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.yb(2),i.pc("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.o,this.select=new i.o,this.columnContextmenu=new i.o(!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===Re.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===Ee.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.Mb(i.h))},e.\u0275cmp=i.Gb({type:e,selectors:[["datatable-header-cell"]],hostAttrs:[1,"datatable-header-cell"],hostVars:11,hostBindings:function(e,t){1&e&&i.gc("contextmenu",(function(e){return t.onContextmenu(e)})),2&e&&(i.zb("title",t.name),i.Ab(t.columnCssClasses),i.Kc("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.Sb(0,"div",0),i.Mc(1,x,1,2,void 0,1),i.Mc(2,D,2,1,"label",2),i.Mc(3,T,2,1,"span",3),i.Mc(4,O,1,2,void 0,1),i.Sb(5,"span",4),i.gc("click",(function(){return t.onSort()})),i.Rb(),i.Rb()),2&e&&(i.yb(1),i.pc("ngIf",t.isTarget),i.yb(1),i.pc("ngIf",t.isCheckboxable),i.yb(1),i.pc("ngIf",!t.column.headerTemplate),i.yb(1),i.pc("ngIf",t.column.headerTemplate),i.yb(1),i.Ab(t.sortClass))},directives:[r.r,r.w],encapsulation:2,changeDetection:0}),e})(),ht=(()=>{class e{constructor(){this.selectedCount=0,this.page=new i.o}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.Gb({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.Sb(0,"div",0),i.Mc(1,E,1,8,void 0,1),i.Mc(2,I,3,3,"div",2),i.Mc(3,P,1,8,"datatable-pager",3),i.Rb()),2&e&&(i.Kc("height",t.footerHeight,"px"),i.pc("ngClass",i.uc(6,N,t.selectedMessage)),i.yb(1),i.pc("ngIf",t.footerTemplate),i.yb(1),i.pc("ngIf",!t.footerTemplate),i.yb(1),i.pc("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.o,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.Gb({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.Sb(0,"ul",0),i.Sb(1,"li"),i.Sb(2,"a",1),i.gc("click",(function(){return t.selectPage(1)})),i.Nb(3,"i"),i.Rb(),i.Rb(),i.Sb(4,"li"),i.Sb(5,"a",2),i.gc("click",(function(){return t.prevPage()})),i.Nb(6,"i"),i.Rb(),i.Rb(),i.Mc(7,j,3,4,"li",3),i.Sb(8,"li"),i.Sb(9,"a",4),i.gc("click",(function(){return t.nextPage()})),i.Nb(10,"i"),i.Rb(),i.Rb(),i.Sb(11,"li"),i.Sb(12,"a",5),i.gc("click",(function(){return t.selectPage(t.totalPages)})),i.Nb(13,"i"),i.Rb(),i.Rb(),i.Rb()),2&e&&(i.yb(1),i.Eb("disabled",!t.canPrevious()),i.yb(2),i.Ab(t.pagerPreviousIcon),i.yb(1),i.Eb("disabled",!t.canPrevious()),i.yb(2),i.Ab(t.pagerLeftArrowIcon),i.yb(1),i.pc("ngForOf",t.pages),i.yb(1),i.Eb("disabled",!t.canNext()),i.yb(2),i.Ab(t.pagerRightArrowIcon),i.yb(1),i.Eb("disabled",!t.canNext()),i.yb(2),i.Ab(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.Gb({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.Sb(0,"div",0),i.Sb(1,"div",1),i.Nb(2,"div",2),i.Rb(),i.Rb())},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.o,this.treeAction=new i.o,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=$e(this._columns);this._columnGroupWidths=He(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=$e(this._columns);this._columnsByPin=Ve(this._columns),this._columnGroupWidths=He(t,this._columns)}onTreeAction(){this.treeAction.emit()}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.u),i.Mb(ae,4),i.Mb(i.h),i.Mb(i.m))},e.\u0275cmp=i.Gb({type:e,selectors:[["datatable-body-row"]],hostVars:6,hostBindings:function(e,t){1&e&&i.gc("keydown",(function(e){return t.onKeyDown(e)}))("mouseenter",(function(e){return t.onMouseenter(e)})),2&e&&(i.Ab(t.cssClass),i.Kc("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.Mc(0,Y,2,6,"div",0),2&e&&i.pc("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.o(!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.Mb(i.h),i.Mb(i.u))},e.\u0275cmp=i.Gb({type:e,selectors:[["datatable-row-wrapper"]],hostAttrs:[1,"datatable-row-wrapper"],hostBindings:function(e,t){1&e&&i.gc("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.oc(),i.Mc(0,H,2,2,"div",0),i.Mc(1,W,1,0,"ng-content",1),i.Mc(2,U,2,3,"div",2)),2&e&&(i.pc("ngIf",t.groupHeader&&t.groupHeader.template),i.yb(1),i.pc("ngIf",t.groupHeader&&t.groupHeader.template&&t.expanded||!t.groupHeader||!t.groupHeader.template),i.yb(1),i.pc("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.o,this.treeAction=new i.o,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.Mb(i.m),i.Mb(i.h))},e.\u0275cmp=i.Gb({type:e,selectors:[["datatable-body-cell"]],viewQuery:function(e,t){var n;1&e&&i.Jc(G,!0,i.P),2&e&&i.zc(n=i.hc())&&(t.cellTemplate=n.first)},hostVars:10,hostBindings:function(e,t){1&e&&i.gc("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.Ab(t.columnCssClasses),i.Kc("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.Sb(0,"div",0),i.Mc(1,q,2,1,"label",1),i.Mc(2,ne,3,2,"ng-container",2),i.Mc(3,ie,1,2,"span",3),i.Mc(4,se,2,2,void 0,2),i.Rb()),2&e&&(i.Kc("margin-left",t.calcLeftMargin(t.column,t.row),"px"),i.yb(1),i.pc("ngIf",t.column.checkboxable&&(!t.displayCheck||t.displayCheck(t.row,t.column,t.value))),i.yb(1),i.pc("ngIf",t.column.isTreeColumn),i.yb(1),i.pc("ngIf",!t.column.cellTemplate),i.yb(1),i.pc("ngIf",t.column.cellTemplate))},directives:[r.r,r.w],encapsulation:2,changeDetection:0}),e})();function yt(e,t,n){const i=n(t,e);return i>-1?e.splice(i,1):e.push(t),e}let vt=(()=>{class e{constructor(){this.activate=new i.o,this.select=new i.o}selectRow(e,t,n){if(!this.selectEnabled)return;const i=this.selectionType===Re.checkbox,r=this.selectionType===Re.multiClick;let s=[];s=this.selectionType===Re.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)):yt(e.ctrlKey||e.metaKey||r||i?[...this.selected]:[],n,this.getRowSelectedIdx.bind(this)):yt([],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===Re.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===Re.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.Gb({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.oc(),i.nc(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 St(e){return null}let Mt=(()=>{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?St:e.summaryFunc}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["datatable-summary-row"]],hostAttrs:[1,"datatable-summary-row"],inputs:{rows:"rows",columns:"columns",rowHeight:"rowHeight",offsetX:"offsetX",innerWidth:"innerWidth"},features:[i.wb],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.Mc(0,oe,1,6,"datatable-body-row",0),2&e&&i.pc("ngIf",t.summaryRow&&t._internalColumns)},directives:[r.r,bt],encapsulation:2}),e})(),kt=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[{provide:"configuration",useValue:t}]}}}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},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("hh1v");e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},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 kt(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=[],y=!1;function v(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){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,r.updateOffset(this),y=!1)}function S(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function M(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function k(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)}M(e+"\nArguments: "+Array.prototype.slice.call(c).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var x,D={};function T(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),D[e]||(M(t),D[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 R(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,x=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var E=/(\[[^\[]*\])|(\\)?([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,A=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I={},P={};function N(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 R(r.apply(this,arguments),t[1],t[2])}),n&&(P[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function j(e,t){return e.isValid()?(t=F(t,e.localeData()),I[t]=I[t]||function(e){var t,n,i,r=e.match(E);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),I[t](e)):e.localeData().invalidDate()}function F(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(A.lastIndex=0;n>=0&&A.test(e);)e=e.replace(A,i),A.lastIndex=0,n-=1;return e}var Y={};function z(e,t){var n=e.toLowerCase();Y[n]=Y[n+"s"]=Y[t]=e}function $(e){return"string"==typeof e?Y[e]||Y[e.toLowerCase()]:void 0}function H(e){var t,n,i={};for(n in e)a(e,n)&&(t=$(n))&&(i[t]=e[n]);return i}var W={};function V(e,t){W[e]=t}function B(e){return e%4==0&&e%100!=0||e%400==0}function U(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function G(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=U(t)),n}function q(e,t){return function(n){return null!=n?(Q(this,e,n),r.updateOffset(this,t),this):J(this,e)}}function J(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Q(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&B(e.year())&&1===e.month()&&29===e.date()?(n=G(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Se(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var K,Z=/\d/,X=/\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 ye(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),u(t)&&(i=function(e,n){n[t]=G(e)}),n=0;n<e.length;n++)_e[e[n]]=i}function ve(e,t){ye(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 Se(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%12+12)%12;return e+=(t-n)/12,1===n?B(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},N("M",["MM",2],"Mo",(function(){return this.month()+1})),N("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),N("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),z("month","M"),V("month",8),pe("M",ie),pe("MM",ie,X),pe("MMM",(function(e,t){return t.monthsShortRegex(e)})),pe("MMMM",(function(e,t){return t.monthsRegex(e)})),ye(["M","MM"],(function(e,t){t[1]=G(e)-1})),ye(["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 Me="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ke="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),xe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,De=fe,Te=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=G(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Se(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):J(this,"Month")}function Re(){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 Ee(e){return B(e)?366:365}N("Y",0,0,(function(){var e=this.year();return e<=9999?R(e,4):"+"+e})),N(0,["YY",2],0,(function(){return this.year()%100})),N(0,["YYYY",4],0,"year"),N(0,["YYYYY",5],0,"year"),N(0,["YYYYYY",6,!0],0,"year"),z("year","y"),V("year",1),pe("Y",ue),pe("YY",ie,X),pe("YYYY",ae,te),pe("YYYYY",ce,ne),pe("YYYYYY",ce,ne),ye(["YYYYY","YYYYYY"],0),ye("YYYY",(function(e,t){t[0]=2===e.length?r.parseTwoDigitYear(e):G(e)})),ye("YY",(function(e,t){t[0]=r.parseTwoDigitYear(e)})),ye("Y",(function(e,t){t[0]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return G(e)+(G(e)>68?1900:2e3)};var Ae=q("FullYear",!0);function Ie(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 Ne(e,t,n){var i=7+t-n;return-(7+Pe(e,0,i).getUTCDay()-t)%7+i-1}function je(e,t,n,i,r){var s,o,a=1+7*(t-1)+(7+n-i)%7+Ne(e,i,r);return a<=0?o=Ee(s=e-1)+a:a>Ee(e)?(s=e+1,o=a-Ee(e)):(s=e,o=a),{year:s,dayOfYear:o}}function Fe(e,t,n){var i,r,s=Ne(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=Ne(e,t,n),r=Ne(e+1,t,n);return(Ee(e)-i+r)/7}function ze(e,t){return e.slice(t,7).concat(e.slice(0,t))}N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),z("week","w"),z("isoWeek","W"),V("week",5),V("isoWeek",5),pe("w",ie),pe("ww",ie,X),pe("W",ie),pe("WW",ie,X),ve(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=G(e)})),N("d",0,"do","day"),N("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),N("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),N("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),z("day","d"),z("weekday","e"),z("isoWeekday","E"),V("day",11),V("weekday",11),V("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)})),ve(["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})),ve(["d","e","E"],(function(e,t,n,i){t[i]=G(e)}));var $e="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),He="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),We="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ve=fe,Be=fe,Ue=fe;function Ge(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 Je(){return this.hours()%12||12}function Qe(e,t){N(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ke(e,t){return t._meridiemParse}N("H",["HH",2],0,"hour"),N("h",["hh",2],0,Je),N("k",["kk",2],0,(function(){return this.hours()||24})),N("hmm",0,0,(function(){return""+Je.apply(this)+R(this.minutes(),2)})),N("hmmss",0,0,(function(){return""+Je.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)})),N("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)})),N("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)})),Qe("a",!0),Qe("A",!1),z("hour","h"),V("hour",13),pe("a",Ke),pe("A",Ke),pe("H",ie),pe("h",ie),pe("k",ie),pe("HH",ie,X),pe("hh",ie,X),pe("kk",ie,X),pe("hmm",re),pe("hmmss",se),pe("Hmm",re),pe("Hmmss",se),ye(["H","HH"],3),ye(["k","kk"],(function(e,t,n){var i=G(e);t[3]=24===i?0:i})),ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ye(["h","hh"],(function(e,t,n){t[3]=G(e),m(n).bigHour=!0})),ye("hmm",(function(e,t,n){var i=e.length-2;t[3]=G(e.substr(0,i)),t[4]=G(e.substr(i)),m(n).bigHour=!0})),ye("hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=G(e.substr(0,i)),t[4]=G(e.substr(i,2)),t[5]=G(e.substr(r)),m(n).bigHour=!0})),ye("Hmm",(function(e,t,n){var i=e.length-2;t[3]=G(e.substr(0,i)),t[4]=G(e.substr(i))})),ye("Hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=G(e.substr(0,i)),t[4]=G(e.substr(i,2)),t[5]=G(e.substr(r))}));var Ze,Xe=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:Me,monthsShort:ke,week:{dow:0,doy:6},weekdays:$e,weekdaysMin:We,weekdaysShort:He,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=Ze._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))?Ze=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ze._abbr}function at(e,t){if(null!==t){var n,i=et;if(t.abbr=e,null!=tt[e])T("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 Ze;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 Ze}(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]>Se(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||""),St(e)}else e._isValid=!1}function yt(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),ke.indexOf(n),parseInt(i,10),parseInt(r,10),parseInt(s,10)],o&&a.push(parseInt(o,10)),!function(e,t,n){return!e||He.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 vt(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=vt(t.GG,e._a[0],Fe(xt(),1,4).year),i=vt(t.W,1),((r=vt(t.E,1))<1||r>7)&&(c=!0)):(s=e._locale._week.dow,o=e._locale._week.doy,l=Fe(xt(),s,o),n=vt(t.gg,e._a[0],l.year),i=vt(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=je(n,i,r,s,o),e._a[0]=a.year,e._dayOfYear=a.dayOfYear)}(e),null!=e._dayOfYear&&(o=vt(e._a[0],i[0]),(e._dayOfYear>Ee(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:Ie).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 St(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=F(e._f,e._locale).match(E)||[],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 yt(e);else _t(e)}function Mt(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)),S(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=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],St(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?St(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,yt(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=H(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 kt(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(Mt(l))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function xt(e,t,n,i){return kt(e,t,n,i,!1)}r.createFromInputFallback=k("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 Dt=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=xt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()})),Tt=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=xt.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 xt();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=H(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]])!==G(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 Rt(e){return e instanceof Lt}function Et(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function At(e,t){N(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+R(~~(e/60),2)+t+R(~~e%60,2)}))}At("Z",":"),At("ZZ",""),pe("Z",he),pe("ZZ",he),ye(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Pt(he,e)}));var It=/([\+\-]|\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(It)||["-",0,0])[1]+G(n[2]))?0:"+"===n[0]?i:-i}function Nt(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(S(e)||d(e)?e.valueOf():xt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):xt(e).local()}function jt(e){return-Math.round(e._d.getTimezoneOffset())}function Ft(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Yt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,zt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function $t(e,t){var n,i,r,s,o,c,l=e,d=null;return Rt(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:G(d[2])*n,h:G(d[3])*n,m:G(d[4])*n,s:G(d[5])*n,ms:G(Et(1e3*d[6]))*n}):(d=zt.exec(e))?l={y:Ht(d[2],n="-"===d[1]?-1:1),M:Ht(d[3],n),w:Ht(d[4],n),d:Ht(d[5],n),h:Ht(d[6],n),m:Ht(d[7],n),s:Ht(d[8],n)}:null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(s=xt(l.from),o=xt(l.to),r=s.isValid()&&o.isValid()?(o=Nt(o,s),s.isBefore(o)?c=Wt(s,o):((c=Wt(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),Rt(e)&&a(e,"_locale")&&(i._locale=e._locale),Rt(e)&&a(e,"_isValid")&&(i._isValid=e._isValid),i}function Ht(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Wt(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 Vt(e,t){return function(n,i){var r;return null===i||isNaN(+i)||(T(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),Bt(this,$t(n,i),e),this}}function Bt(e,t,n,i){var s=t._milliseconds,o=Et(t._days),a=Et(t._months);e.isValid()&&(i=null==i||i,a&&Oe(e,J(e,"Month")+a*n),o&&Q(e,"Date",J(e,"Date")+o*n),s&&e._d.setTime(e._d.valueOf()+s*n),i&&r.updateOffset(e,o||a))}$t.fn=Lt.prototype,$t.invalid=function(){return $t(NaN)};var Ut=Vt(1,"add"),Gt=Vt(-1,"subtract");function qt(e){return"string"==typeof e||e instanceof String}function Jt(e){return S(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 Qt(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 Zt(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 Xt=k("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){N(0,[e,e.length],0,t)}function hn(e,t,n,i,r){var s;return null==e?Fe(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=je(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}N("N",0,0,"eraAbbr"),N("NN",0,0,"eraAbbr"),N("NNN",0,0,"eraAbbr"),N("NNNN",0,0,"eraName"),N("NNNNN",0,0,"eraNarrow"),N("y",["y",1],"yo","eraYear"),N("y",["yy",2],0,"eraYear"),N("y",["yyy",3],0,"eraYear"),N("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)})),ye(["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})),ye(["y","yy","yyy","yyyy"],0),ye(["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)})),N(0,["gg",2],0,(function(){return this.weekYear()%100})),N(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),dn("gggg","weekYear"),dn("ggggg","weekYear"),dn("GGGG","isoWeekYear"),dn("GGGGG","isoWeekYear"),z("weekYear","gg"),z("isoWeekYear","GG"),V("weekYear",1),V("isoWeekYear",1),pe("G",ue),pe("g",ue),pe("GG",ie,X),pe("gg",ie,X),pe("GGGG",ae,te),pe("gggg",ae,te),pe("GGGGG",ce,ne),pe("ggggg",ce,ne),ve(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,i){t[i.substr(0,2)]=G(e)})),ve(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),N("Q",0,"Qo","quarter"),z("quarter","Q"),V("quarter",7),pe("Q",Z),ye("Q",(function(e,t){t[1]=3*(G(e)-1)})),N("D",["DD",2],"Do","date"),z("date","D"),V("date",9),pe("D",ie),pe("DD",ie,X),pe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ye(["D","DD"],2),ye("Do",(function(e,t){t[2]=G(e.match(ie)[0])}));var pn=q("Date",!0);N("DDD",["DDDD",3],"DDDo","dayOfYear"),z("dayOfYear","DDD"),V("dayOfYear",4),pe("DDD",oe),pe("DDDD",ee),ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=G(e)})),N("m",["mm",2],0,"minute"),z("minute","m"),V("minute",14),pe("m",ie),pe("mm",ie,X),ye(["m","mm"],4);var mn=q("Minutes",!1);N("s",["ss",2],0,"second"),z("second","s"),V("second",15),pe("s",ie),pe("ss",ie,X),ye(["s","ss"],5);var bn,gn,_n=q("Seconds",!1);for(N("S",0,0,(function(){return~~(this.millisecond()/100)})),N(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),N(0,["SSS",3],0,"millisecond"),N(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),N(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),N(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),N(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),N(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),N(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),z("millisecond","ms"),V("millisecond",16),pe("S",oe,Z),pe("SS",oe,X),pe("SSS",oe,ee),bn="SSSS";bn.length<=9;bn+="S")pe(bn,le);function yn(e,t){t[6]=G(1e3*("0."+e))}for(bn="S";bn.length<=9;bn+="S")ye(bn,yn);gn=q("Milliseconds",!1),N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName");var vn=w.prototype;function wn(e){return e}vn.add=Ut,vn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Jt(arguments[0])?(e=arguments[0],t=void 0):Qt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||xt(),i=Nt(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,xt(n)))},vn.clone=function(){return new w(this)},vn.diff=function(e,t,n){var i,r,s;if(!this.isValid())return NaN;if(!(i=Nt(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=$(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:U(s)},vn.endOf=function(e){var t,n;if(void 0===(e=$(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},vn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=j(this,e);return this.localeData().postformat(t)},vn.from=function(e,t){return this.isValid()&&(S(e)&&e.isValid()||xt(e).isValid())?$t({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},vn.fromNow=function(e){return this.from(xt(),e)},vn.to=function(e,t){return this.isValid()&&(S(e)&&e.isValid()||xt(e).isValid())?$t({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},vn.toNow=function(e){return this.to(xt(),e)},vn.get=function(e){return C(this[e=$(e)])?this[e]():this},vn.invalidAt=function(){return m(this).overflow},vn.isAfter=function(e,t){var n=S(e)?e:xt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=$(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},vn.isBefore=function(e,t){var n=S(e)?e:xt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=$(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},vn.isBetween=function(e,t,n,i){var r=S(e)?e:xt(e),s=S(t)?t:xt(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))},vn.isSame=function(e,t){var n,i=S(e)?e:xt(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=$(t)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},vn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},vn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},vn.isValid=function(){return b(this)},vn.lang=Xt,vn.locale=Zt,vn.localeData=en,vn.max=Tt,vn.min=Dt,vn.parsingFlags=function(){return f({},m(this))},vn.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:W[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=H(e));for(n=0;n<i.length;n++)this[i[n].unit](e[i[n].unit])}else if(C(this[e=$(e)]))return this[e](t);return this},vn.startOf=function(e){var t,n;if(void 0===(e=$(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},vn.subtract=Gt,vn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},vn.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()}},vn.toDate=function(){return new Date(this.valueOf())},vn.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?j(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",j(n,"Z")):j(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},vn.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&&(vn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),vn.toJSON=function(){return this.isValid()?this.toISOString():null},vn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},vn.unix=function(){return Math.floor(this.valueOf()/1e3)},vn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},vn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},vn.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""},vn.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""},vn.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""},vn.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()},vn.year=Ae,vn.isLeapYear=function(){return B(this.year())},vn.weekYear=function(e){return hn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},vn.isoWeekYear=function(e){return hn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},vn.quarter=vn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},vn.month=Le,vn.daysInMonth=function(){return Se(this.year(),this.month())},vn.week=vn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},vn.isoWeek=vn.isoWeeks=function(e){var t=Fe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},vn.weeksInYear=function(){var e=this.localeData()._week;return Ye(this.year(),e.dow,e.doy)},vn.weeksInWeekYear=function(){var e=this.localeData()._week;return Ye(this.weekYear(),e.dow,e.doy)},vn.isoWeeksInYear=function(){return Ye(this.year(),1,4)},vn.isoWeeksInISOWeekYear=function(){return Ye(this.isoWeekYear(),1,4)},vn.date=pn,vn.day=vn.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},vn.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")},vn.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},vn.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")},vn.hour=vn.hours=Xe,vn.minute=vn.minutes=mn,vn.second=vn.seconds=_n,vn.millisecond=vn.milliseconds=gn,vn.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=jt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),s!==e&&(!t||this._changeInProgress?Bt(this,$t(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:jt(this)},vn.utc=function(e){return this.utcOffset(0,e)},vn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(jt(this),"m")),this},vn.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},vn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?xt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},vn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},vn.isLocal=function(){return!!this.isValid()&&!this._isUTC},vn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},vn.isUtc=Ft,vn.isUTC=Ft,vn.zoneAbbr=function(){return this._isUTC?"UTC":""},vn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},vn.dates=k("dates accessor is deprecated. Use date instead.",pn),vn.months=k("months accessor is deprecated. Use month instead",Le),vn.years=k("years accessor is deprecated. Use year instead",Ae),vn.zone=k("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()})),vn.isDSTShifted=k("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 v(t,this),(t=Mt(t))._a?(e=t._isUTC?p(t._a):xt(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++)G(e[i])!==G(t[i])&&o++;return o+s}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Sn=L.prototype;function Mn(e,t,n,i){var r=ct(),s=p().set(i,t);return r[n](s,e)}function kn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return Mn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Mn(e,i,n,"month");return r}function xn(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 Mn(t,(n+o)%7,i,"day");for(r=0;r<7;r++)a[r]=Mn(t,(r+o)%7,i,"day");return a}Sn.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return C(i)?i.call(t,n):i},Sn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(E).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},Sn.invalidDate=function(){return this._invalidDate},Sn.ordinal=function(e){return this._ordinal.replace("%d",e)},Sn.preparse=wn,Sn.postformat=wn,Sn.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return C(r)?r(e,t,n,i):r.replace(/%d/i,e)},Sn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return C(n)?n(t):n.replace(/%s/i,t)},Sn.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)},Sn.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},Sn.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]},Sn.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},Sn.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||un.call(this),e?this._erasAbbrRegex:this._erasRegex},Sn.erasNameRegex=function(e){return a(this,"_erasNameRegex")||un.call(this),e?this._erasNameRegex:this._erasRegex},Sn.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||un.call(this),e?this._erasNarrowRegex:this._erasRegex},Sn.months=function(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||xe).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone},Sn.monthsShort=function(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[xe.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Sn.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}},Sn.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Re.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Te),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Sn.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Re.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=De),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Sn.week=function(e){return Fe(e,this._week.dow,this._week.doy).week},Sn.firstDayOfYear=function(){return this._week.doy},Sn.firstDayOfWeek=function(){return this._week.dow},Sn.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?ze(n,this._week.dow):e?n[e.day()]:n},Sn.weekdaysMin=function(e){return!0===e?ze(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Sn.weekdaysShort=function(e){return!0===e?ze(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Sn.weekdaysParse=function(e,t,n){var i,r,s;if(this._weekdaysParseExact)return Ge.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}},Sn.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Ve),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Sn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Be),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Sn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ue),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Sn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Sn.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===G(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=k("moment.lang is deprecated. Use moment.locale instead.",ot),r.langData=k("moment.langData is deprecated. Use moment.localeData instead.",ct);var Dn=Math.abs;function Tn(e,t,n,i){var r=$t(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 Rn(e){return function(){return this.as(e)}}var En=Rn("ms"),An=Rn("s"),In=Rn("m"),Pn=Rn("h"),Nn=Rn("d"),jn=Rn("w"),Fn=Rn("M"),Yn=Rn("Q"),zn=Rn("y");function $n(e){return function(){return this.isValid()?this._data[e]:NaN}}var Hn=$n("milliseconds"),Wn=$n("seconds"),Vn=$n("minutes"),Bn=$n("hours"),Un=$n("days"),Gn=$n("months"),qn=$n("years"),Jn=Math.round,Qn={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 Zn=Math.abs;function Xn(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=Zn(this._milliseconds)/1e3,l=Zn(this._days),u=Zn(this._months),d=this.asSeconds();return d?(e=U(c/60),t=U(e/60),c%=60,e%=60,n=U(u/12),u%=12,i=c?c.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",s=Xn(this._months)!==Xn(d)?"-":"",o=Xn(this._days)!==Xn(d)?"-":"",a=Xn(this._milliseconds)!==Xn(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=Dn(this._milliseconds),this._days=Dn(this._days),this._months=Dn(this._months),e.milliseconds=Dn(e.milliseconds),e.seconds=Dn(e.seconds),e.minutes=Dn(e.minutes),e.hours=Dn(e.hours),e.months=Dn(e.months),e.years=Dn(e.years),this},ti.add=function(e,t){return Tn(this,e,t,1)},ti.subtract=function(e,t){return Tn(this,e,t,-1)},ti.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=$(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=En,ti.asSeconds=An,ti.asMinutes=In,ti.asHours=Pn,ti.asDays=Nn,ti.asWeeks=jn,ti.asMonths=Fn,ti.asQuarters=Yn,ti.asYears=zn,ti.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*G(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=U(s/1e3),c.seconds=e%60,t=U(e/60),c.minutes=t%60,n=U(t/60),c.hours=n%24,o+=U(n/24),a+=r=U(On(o)),o-=Cn(Ln(r)),i=U(a/12),a%=12,c.days=o,c.months=a,c.years=i,this},ti.clone=function(){return $t(this)},ti.get=function(e){return e=$(e),this.isValid()?this[e+"s"]():NaN},ti.milliseconds=Hn,ti.seconds=Wn,ti.minutes=Vn,ti.hours=Bn,ti.days=Un,ti.weeks=function(){return U(this.days()/7)},ti.months=Gn,ti.years=qn,ti.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,s=Qn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(s=Object.assign({},Qn,t),null!=t.s&&null==t.ss&&(s.ss=t.s-1)),i=function(e,t,n,i){var r=$t(e).abs(),s=Jn(r.as("s")),o=Jn(r.as("m")),a=Jn(r.as("h")),c=Jn(r.as("d")),l=Jn(r.as("M")),u=Jn(r.as("w")),d=Jn(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=Zt,ti.localeData=en,ti.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ei),ti.lang=Xt,N("X",0,0,"unix"),N("x",0,0,"valueOf"),pe("x",ue),pe("X",/[+-]?\d+(\.\d{1,3})?/),ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ye("x",(function(e,t,n){n._d=new Date(G(e))})),r.version="2.29.1",t=xt,r.fn=vn,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 xt(1e3*e)},r.months=function(e,t){return kn(e,t,"months")},r.isDate=d,r.locale=ot,r.invalid=g,r.duration=$t,r.isMoment=S,r.weekdays=function(e,t,n){return xn(e,t,n,"weekdays")},r.parseZone=function(){return xt.apply(null,arguments).parseZone()},r.localeData=ct,r.isDuration=Rt,r.monthsShort=function(e,t){return kn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return xn(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 x(tt)},r.weekdaysShort=function(e,t,n){return xn(e,t,n,"weekdaysShort")},r.normalizeUnits=$,r.relativeTimeRounding=function(e){return void 0===e?Jn:"function"==typeof e&&(Jn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Qn[e]&&(void 0===t?Qn[e]:(Qn[e]=t,"s"===e&&(Qn.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=vn,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("WKiH").trim,s=n("WJkJ"),o=i.parseInt,a=/^[+-]?0[Xx]/,c=8!==o(s+"08")||22!==o(s+"0x16");e.exports=c?function(e,t){var n=r(String(e));return o(n,t>>>0||(a.test(n)?16:10))}:o},wnGv:function(e,t,n){"use strict";n.d(t,"a",(function(){return R}));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.Sb(0,"span",12),i.Oc(1),i.Rb()),2&e){const e=i.ic().$implicit,t=i.ic(2);i.yb(1),i.Qc(" ",t.messages.customValidations[e]," ")}}function g(e,t){if(1&e&&(i.Qb(0),i.Mc(1,b,2,1,"span",11),i.Pb()),2&e){const e=t.$implicit;i.ic();const n=i.Ac(1),r=i.ic();i.yb(1),i.pc("ngIf",r.form.showError("filter",n)&&r.filter.hasError(e))}}const _=function(e){return[e]};function y(e,t){if(1&e&&i.Nb(0,"i",18),2&e){const e=i.ic(3);i.pc("ngClass",i.uc(1,_,e.icons.check))}}function v(e,t){if(1&e&&(i.Qb(0),i.Nb(1,"br"),i.Sb(2,"small",19),i.Oc(3),i.Rb(),i.Pb()),2&e){const e=i.ic().$implicit;i.yb(3),i.Qc(" ",e.description,"\xa0 ")}}const w=function(e){return{"help-block disabled":e}};function S(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",13),i.gc("click",(function(){i.Dc(e);const n=t.$implicit;return i.ic(2).triggerSelection(n)})),i.Sb(1,"div",14),i.Mc(2,y,1,3,"i",15),i.Oc(3," \xa0 "),i.Rb(),i.Sb(4,"div",16),i.Oc(5),i.Mc(6,v,4,1,"ng-container",17),i.Rb(),i.Rb()}if(2&e){const e=t.$implicit,n=i.ic(2);i.pc("ngClass",i.uc(4,w,!(n.data.length!==n.selectionLimit&&e.enabled||e.selected))),i.yb(2),i.pc("ngIf",e.selected),i.yb(3),i.Qc(" ",e.name," "),i.yb(1),i.pc("ngIf",e.description)}}function M(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",20),i.gc("click",(function(){return i.Dc(e),i.ic(2).addCustomOption()})),i.Sb(1,"div",14),i.Nb(2,"i",18),i.Oc(3," \xa0 "),i.Rb(),i.Sb(4,"div",16),i.Oc(5),i.Rb(),i.Rb()}if(2&e){const e=i.ic(2);i.yb(2),i.pc("ngClass",i.uc(3,_,e.icons.tag)),i.yb(3),i.Rc(" ",e.messages.add," '",e.filter.value,"' ")}}function k(e,t){if(1&e&&(i.Sb(0,"span",23),i.Oc(1),i.Rb()),2&e){const e=i.ic(3);i.pc("ngbTooltip",e.messages.selectionLimit.tooltip),i.yb(1),i.Qc(" ",e.messages.selectionLimit.text," ")}}function x(e,t){if(1&e&&(i.Sb(0,"div",21),i.Mc(1,k,2,2,"span",22),i.Rb()),2&e){const e=i.ic(2);i.yb(1),i.pc("ngIf",e.data.length===e.selectionLimit)}}function D(e,t){if(1&e){const e=i.Tb();i.Sb(0,"form",4,5),i.Sb(2,"div"),i.Sb(3,"input",6),i.gc("keyup",(function(t){i.Dc(e);const n=i.ic();return 13==t.keyCode?n.selectOption():n.updateFilter()})),i.Rb(),i.Mc(4,g,2,1,"ng-container",7),i.Rb(),i.Rb(),i.Mc(5,S,7,6,"div",8),i.Mc(6,M,6,5,"div",9),i.Mc(7,x,2,1,"div",10)}if(2&e){const e=i.ic();i.pc("formGroup",e.form),i.yb(3),i.pc("placeholder",e.messages.filter),i.yb(1),i.pc("ngForOf",e.Object.keys(e.messages.customValidations)),i.yb(1),i.pc("ngForOf",e.filteredOptions),i.yb(1),i.pc("ngIf",e.isCreatable()),i.yb(1),i.pc("ngIf",e.data.length===e.selectionLimit)}}function T(e,t){if(1&e&&(i.Sb(0,"a",24),i.nc(1),i.Rb()),2&e){const e=i.ic(),t=i.Ac(1);i.pc("ngClass",e.elemClass)("ngbPopover",t)}}function C(e,t){if(1&e&&(i.Sb(0,"span",25),i.Oc(1),i.Rb()),2&e){const e=i.ic();i.yb(1),i.Qc(" ",e.messages.empty,"\n")}}function O(e,t){if(1&e&&(i.Sb(0,"span",25),i.Oc(1),i.Rb()),2&e){const e=i.ic();i.yb(1),i.Qc(" ",e.messages.noOptions,"\n")}}const L=["*"];let R=(()=>{class e{constructor(){this.data=[],this.options=[],this.messages=new l.a({}),this.customBadges=!1,this.customBadgeValidators=[],this.selection=new i.o,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.Gb({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.wb],ngContentSelectors:L,decls:5,vars:3,consts:[["popTemplate",""],["class","select-menu-edit float-left",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"],[1,"select-menu-edit","float-left",3,"ngClass","ngbPopover"],[1,"form-text","text-muted","float-left"]],template:function(e,t){1&e&&(i.oc(),i.Mc(0,D,8,6,"ng-template",null,0,i.Nc),i.Mc(2,T,2,2,"a",1),i.Mc(3,C,2,1,"span",2),i.Mc(4,O,2,1,"span",3)),2&e&&(i.yb(2),i.pc("ngIf",t.customBadges||t.options.length>0),i.yb(1),i.pc("ngIf",0===t.data.length&&!(!t.customBadges&&0===t.options.length)),i.yb(1),i.pc("ngIf",!t.customBadges&&0===t.options.length))},directives:[d.r,r.C,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 rgba(0,0,0,.09);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})()},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,c){return Object(s.a)(n)&&(c=n,n=void 0),c?a(e,t,n).pipe(Object(o.a)(e=>Object(r.a)(e)?c(...e):c(e))):new i.a(i=>{!function e(t,n,i,r,s){let o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){const e=t;t.addEventListener(n,i,s),o=()=>e.removeEventListener(n,i,s)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){const e=t;t.on(n,i),o=()=>e.off(n,i)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){const e=t;t.addListener(n,i),o=()=>e.removeListener(n,i)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,a=t.length;o<a;o++)e(t[o],n,i,r,s)}r.add(o)}(e,t,(function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)}),i,n)})}},xrYK:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(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.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},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.Lb({name:"array",type:e,pure:!0}),e})()},yoRg:function(e,t,n){var i=n("UTVS"),r=n("/GqU"),s=n("TWQb").indexOf,o=n("0BK2");e.exports=function(e,t){var n,a=r(e),c=0,l=[];for(n in a)!i(o,n)&&i(a,n)&&l.push(n);for(;t.length>c;)i(a,n=t[c++])&&(~s(l,n)||l.push(n));return l}},"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})},zUnb:function(e,t,n){"use strict";n.r(t);var i=n("8Y7J"),r=n("cUpR"),s=n("AytR"),o=n("SVse"),a=n("IheW"),c=n("GS7A");function l(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function u(e){switch(e.length){case 0:return new c.d;case 1:return e[0];default:return new c.k(e)}}function d(e,t,n,i,r={},s={}){const o=[],a=[];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,a=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,o),a){case c.l:a=r[n];break;case c.a:a=s[n];break;default:a=t.normalizeStyleValue(n,i,a,o)}d[i]=a}),i||a.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 a}function h(e,t,n,i){switch(t){case"start":e.onStart(()=>i(n&&f(n,"start",e)));break;case"done":e.onDone(()=>i(n&&f(n,"done",e)));break;case"destroy":e.onDestroy(()=>i(n&&f(n,"destroy",e)))}}function f(e,t,n){const i=n.totalTime,r=p(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 p(e,t,n,i,r="",s=0,o){return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function m(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 b(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let g=(e,t)=>!1,_=(e,t)=>!1,y=(e,t,n)=>[];const v=l();(v||"undefined"!=typeof Element)&&(g=(e,t)=>e.contains(t),_=(()=>{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]):_}})(),y=(e,t,n)=>{let i=[];if(n)i.push(...e.querySelectorAll(t));else{const n=e.querySelector(t);n&&i.push(n)}return i});let w=null,S=!1;function M(e){w||(w=("undefined"!=typeof document?document.body:null)||{},S=!!w.style&&"WebkitAppearance"in w.style);let t=!0;return w.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in w.style,!t&&S)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in w.style),t}const k=_,x=g,D=y;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 C=(()=>{class e{validateStyleProperty(e){return M(e)}matchesElement(e,t){return k(e,t)}containsElement(e,t){return x(e,t)}query(e,t,n){return D(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,i,r,s=[],o){return new c.d(n,i)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})(),O=(()=>{class e{}return e.NOOP=new C,e})();const L="ng-enter",R="ng-leave",E="ng-trigger",A=".ng-trigger",I="ng-animating",P=".ng-animating";function N(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:j(parseFloat(t[1]),t[2])}function j(e,t){switch(t){case"s":return 1e3*e;default:return e}}function F(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=j(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=j(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 Y(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function z(e,t,n={}){if(t)for(let i in e)n[i]=e[i];else Y(e,n);return n}function $(e,t,n){return n?t+":"+n+";":""}function H(e){let t="";for(let n=0;n<e.style.length;n++){const i=e.style.item(n);t+=$(0,i,e.style.getPropertyValue(i))}for(const n in e.style)e.style.hasOwnProperty(n)&&!n.startsWith("_")&&(t+=$(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[n]));e.setAttribute("style",t)}function W(e,t,n){e.style&&(Object.keys(t).forEach(i=>{const r=K(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[r]),e.style[r]=t[i]}),l()&&H(e))}function V(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=K(t);e.style[n]=""}),l()&&H(e))}function B(e){return Array.isArray(e)?1==e.length?e[0]:Object(c.f)(e):e}const U=new RegExp("{{\\s*(.+?)\\s*}}","g");function G(e){let t=[];if("string"==typeof e){let n;for(;n=U.exec(e);)t.push(n[1]);U.lastIndex=0}return t}function q(e,t,n){const i=e.toString(),r=i.replace(U,(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 J(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const Q=/-+([a-z0-9])/g;function K(e){return e.replace(Q,(...e)=>e[1].toUpperCase())}function Z(e,t){return 0===e||0===t}function X(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]=te(e,t)}))}}return t}function ee(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 te(e,t){return window.getComputedStyle(e)[t]}const ne="*";function ie(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(oe(r,o)),"<"!=s[0]||r==ne&&o==ne||t.push(oe(o,r))}(e,n,t)):n.push(e),n}const re=new Set(["true","1"]),se=new Set(["false","0"]);function oe(e,t){const n=re.has(e)||se.has(e),i=re.has(t)||se.has(t);return(r,s)=>{let o=e==ne||e==r,a=t==ne||t==s;return!o&&n&&"boolean"==typeof r&&(o=r?re.has(e):se.has(e)),!a&&i&&"boolean"==typeof s&&(a=s?re.has(t):se.has(t)),o&&a}}const ae=new RegExp("s*:selfs*,?","g");function ce(e,t,n){return new le(e).build(t,n)}class le{constructor(e){this._driver=e}build(e,t){const n=new ue(t);return this._resetContextStyleTimingState(n),ee(this,B(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(de(e)){const t=e;Object.keys(t).forEach(e=>{G(t[e]).forEach(e=>{s.hasOwnProperty(e)||r.add(e)})})}}),r.size){const n=J(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=ee(this,B(e.animation),t);return{type:1,matchers:ie(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:he(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>ee(this,e,t)),options:he(e.options)}}visitGroup(e,t){const n=t.currentTime;let i=0;const r=e.steps.map(e=>{t.currentTime=n;const r=ee(this,e,t);return i=Math.max(i,t.currentTime),r});return t.currentTime=i,{type:3,steps:r,options:he(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 fe(F(e,t).duration,0,"");const i=e;if(i.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=fe(0,0,"");return e.dynamic=!0,e.strValue=i,e}return n=n||F(i,t),fe(n.duration,n.delay,n.easing)}(e.timings,t.errors);let i;t.currentAnimateTimings=n;let r=e.styles?e.styles:Object(c.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(c.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==c.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(de(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=G(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(de(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(de(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:ee(this,B(e.animation),t),options:he(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:he(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:he(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(ae,"")),[e=e.replace(/@\*/g,A).replace(/@\w+/g,e=>".ng-trigger-"+e.substr(1)).replace(/:animating/g,P),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,m(t.collectedStyles,t.currentQuerySelector,{});const o=ee(this,B(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:he(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"}:F(e.timings,t.errors,!0);return{type:12,animation:ee(this,B(e.animation),t),timings:n,options:null}}}class ue{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 de(e){return!Array.isArray(e)&&"object"==typeof e}function he(e){var t;return e?(e=Y(e)).params&&(e.params=(t=e.params)?Y(t):null):e={},e}function fe(e,t,n){return{duration:e,delay:t,easing:n}}function pe(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 me{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 be=new RegExp(":enter","g"),ge=new RegExp(":leave","g");function _e(e,t,n,i,r,s={},o={},a,c,l=[]){return(new ye).buildKeyframes(e,t,n,i,r,s,o,a,c,l)}class ye{buildKeyframes(e,t,n,i,r,s,o,a,c,l=[]){c=c||new me;const u=new we(e,t,c,i,r,l,[]);u.options=a,u.currentTimeline.setStyles([s],null,u.errors,a),ee(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()):[pe(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?N(n.duration):null,s=null!=n.delay?N(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),ee(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=N(r.delay);i.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>ee(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?N(e.options.delay):0;e.steps.forEach(s=>{const o=t.createSubContext(e.options);r&&o.delayNextStep(r),ee(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 F(t.params?q(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?N(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),ee(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;ee(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}const ve={};class we{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 Se(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=N(n.duration)),null!=n.delay&&(i.delay=N(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]=q(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 we(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 Me(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(be,"."+this._enterClassName)).replace(ge,"."+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 Se{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 Se(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]||c.a,this._currentKeyframe[e]=c.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]=c.a})):z(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(s).forEach(e=>{const t=q(s[e],r,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:c.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=z(r,!0);Object.keys(o).forEach(n=>{const i=o[n];i==c.l?e.add(n):i==c.a&&t.add(n)}),n||(o.offset=s/this.duration),i.push(o)});const r=e.size?J(e.values()):[],s=t.size?J(t.values()):[];if(n){const e=i[0],t=Y(e);e.offset=0,t.offset=1,i=[e,t]}return pe(this.element,i,r,s,this.duration,this.startTime,this.easing,!1)}}class Me extends Se{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=z(e[0],!1);a.offset=0,r.push(a);const c=z(e[0],!1);c.offset=ke(o),r.push(c);const l=e.length-1;for(let i=1;i<=l;i++){let o=z(e[i],!1);o.offset=ke((t+o.offset*n)/s),r.push(o)}n=s,t=0,i="",e=r}return pe(this.element,e,this.preStyleProps,this.postStyleProps,n,t,i,!0)}}function ke(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class xe{}class De extends xe{normalizePropertyName(e,t){return K(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 Ce(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 Oe={};class Le{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||Oe,h=this.buildStyles(n,o&&o.params||Oe,u),f=a&&a.params||Oe,p=this.buildStyles(i,f,u),b=new Set,g=new Map,_=new Map,y="void"===i,v={params:Object.assign(Object.assign({},d),f)},w=l?[]:_e(e,t,this.ast.animation,r,s,h,p,v,c,u);let S=0;if(w.forEach(e=>{S=Math.max(e.duration+e.delay,S)}),u.length)return Ce(t,this._triggerName,n,i,y,h,p,[],[],g,_,S,u);w.forEach(e=>{const n=e.element,i=m(g,n,{});e.preStyleProps.forEach(e=>i[e]=!0);const r=m(_,n,{});e.postStyleProps.forEach(e=>r[e]=!0),n!==t&&b.add(n)});const M=J(b.values());return Ce(t,this._triggerName,n,i,y,h,p,w,M,g,_,S)}}class Re{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},i=Y(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=q(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 Re(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 Le(e,t,this.states))}),this.fallbackTransition=new Le(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 me;class Pe{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=ce(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=d(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=_e(this._driver,t,r,L,R,{},{},n,Ie,i),s.forEach(e=>{const t=m(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,c.a)})});const a=u(s.map(e=>{const t=o.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(()=>this.destroy(e)),this.players.push(a),a}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=p(t,"","","");return h(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 Ne="ng-animate-queued",je="ng-animate-disabled",Fe=".ng-animate-disabled",Ye=[],ze={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},$e={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class He{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=Y(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 We="void",Ve=new He(We);class Be{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,Ze(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=m(this._elementListeners,e,[]),o={name:t,phase:n,callback:i};s.push(o);const a=m(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Ze(e,E),Ze(e,"ng-trigger-"+t),a[t]=Ve),()=>{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 Ge(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(Ze(e,E),Ze(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o={}));let a=o[t];const c=new He(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),o[t]=c,a||(a=Ve),c.value!==We&&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(()=>{V(e,n),W(e,i)})}return}const l=m(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||(Ze(e,Ne),s.onStart(()=>{Xe(e,Ne)})),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,We,i);n&&s.push(n)}}),s.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&u(s).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e);if(t){const n=new Set;t.forEach(t=>{const i=t.name;if(n.has(i))return;n.add(i);const r=this._triggers[i].fallbackTransition,s=this._engine.statesByElement.get(e)[i]||Ve,o=new He(We),a=new Ge(this.id,i,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:r,fromState:s,toState:o,player:a,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!==ze||(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){Ze(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=p(r,n.triggerName,n.fromState.value,n.toState.value);i._data=e,h(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 Ue{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 Be(e,t,this);return t.parentNode?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(qe(t)){const r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),!0}return!1}insertNode(e,t,n,i){if(!qe(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),Ze(e,je)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Xe(e,je))}removeNode(e,t,n,i){if(qe(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 qe(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,P,!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 u(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=ze,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,Fe)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Fe,!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++)Ze(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?u(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 me,i=[],r=new Map,s=[],o=new Map,a=new Map,l=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()),p=Ke(f,this.collectedEnterElements),b=new Map;let g=0;p.forEach((e,t)=>{const n=L+g++;b.set(t,n),e.forEach(e=>Ze(e,n))});const _=[],y=new Set,v=new Set;for(let c=0;c<this.collectedLeaveElements.length;c++){const e=this.collectedLeaveElements[c],t=e.__ng_removed;t&&t.setForRemoval&&(_.push(e),y.add(e),t.hasAnimation?this.driver.query(e,".ng-star-inserted",!0).forEach(e=>y.add(e)):v.add(e))}const w=new Map,S=Ke(f,Array.from(y));S.forEach((e,t)=>{const n=R+g++;w.set(t,n),e.forEach(e=>Ze(e,n))}),e.push(()=>{p.forEach((e,t)=>{const n=b.get(t);e.forEach(e=>Xe(e,n))}),S.forEach((e,t)=>{const n=w.get(t);e.forEach(e=>Xe(e,n))}),_.forEach(e=>{this.processLeaveNode(e)})});const M=[],k=[];for(let c=this._namespaceList.length-1;c>=0;c--)this._namespaceList[c].drainQueuedTransitions(t).forEach(e=>{const t=e.player,r=e.element;if(M.push(t),this.collectedEnterElements.length){const e=r.__ng_removed;if(e&&e.setForMove)return void t.destroy()}const c=!h||!this.driver.containsElement(h,r),u=w.get(r),d=b.get(r),f=this._buildInstruction(e,n,d,u,c);if(f.errors&&f.errors.length)k.push(f);else{if(c)return t.onStart(()=>V(r,f.fromStyles)),t.onDestroy(()=>W(r,f.toStyles)),void i.push(t);if(e.isFallbackTransition)return t.onStart(()=>V(r,f.fromStyles)),t.onDestroy(()=>W(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=>m(o,e,[]).push(t)),f.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=a.get(t);e||a.set(t,e=new Set),n.forEach(t=>e.add(t))}}),f.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let i=l.get(t);i||l.set(t,i=new Set),n.forEach(e=>i.add(e))})}});if(k.length){const e=[];k.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),M.forEach(e=>e.destroy()),this.reportError(e)}const x=new Map,D=new Map;s.forEach(e=>{const t=e.element;n.has(t)&&(D.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,x))}),i.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{m(x,t,[]).push(e),e.destroy()})});const T=_.filter(e=>tt(e,a,l)),C=new Map;Qe(C,this.driver,v,l,c.a).forEach(e=>{tt(e,a,l)&&T.push(e)});const O=new Map;p.forEach((e,t)=>{Qe(O,this.driver,new Set(e),a,c.l)}),T.forEach(e=>{const t=C.get(e),n=O.get(e);C.set(e,Object.assign(Object.assign({},t),n))});const E=[],A=[],I={};s.forEach(e=>{const{element:t,player:s,instruction:o}=e;if(n.has(t)){if(d.has(t))return s.onDestroy(()=>W(t,o.toStyles)),s.disabled=!0,s.overrideTotalTime(o.totalTime),void i.push(s);let e=I;if(D.size>1){let n=t;const i=[];for(;n=n.parentNode;){const t=D.get(n);if(t){e=t;break}i.push(n)}i.forEach(t=>D.set(t,e))}const n=this._buildAnimation(s.namespaceId,o,x,r,O,C);if(s.setRealPlayer(n),e===I)E.push(s);else{const t=this.playersByElement.get(e);t&&t.length&&(s.parentPlayer=u(t)),i.push(s)}}else V(t,o.fromStyles),s.onDestroy(()=>W(t,o.toStyles)),A.push(s),d.has(t)&&i.push(s)}),A.forEach(e=>{const t=r.get(e.element);if(t&&t.length){const n=u(t);e.setRealPlayer(n)}}),i.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let c=0;c<_.length;c++){const e=_[c],t=e.__ng_removed;if(Xe(e,R),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,P,!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?et(this,e,i):this.processLeaveNode(e)}return _.length=0,E.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),E}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==We;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=m(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)})}V(i,t.fromStyles)}_buildAnimation(e,t,n,i,r,s){const o=t.triggerName,a=t.element,l=[],h=new Set,f=new Set,p=t.timelines.map(t=>{const u=t.element;h.add(u);const p=u.__ng_removed;if(p&&p.removedBeforeQueried)return new c.d(t.duration,t.delay);const m=u!==a,b=function(e){const t=[];return function e(t,n){for(let i=0;i<t.length;i++){const r=t[i];r instanceof c.k?e(r.players,n):n.push(r)}}(e,t),t}((n.get(u)||Ye).map(e=>e.getRealPlayer())).filter(e=>!!e.element&&e.element===u),g=r.get(u),_=s.get(u),y=d(0,this._normalizer,0,t.keyframes,g,_),v=this._buildPlayer(t,y,b);if(t.subTimeline&&i&&f.add(u),m){const t=new Ge(e,o,u);t.setRealPlayer(v),l.push(t)}return v});l.forEach(e=>{m(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=>Ze(e,I));const b=u(p);return b.onDestroy(()=>{h.forEach(e=>Xe(e,I)),W(a,t.toStyles)}),f.forEach(e=>{m(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 c.d(e.duration,e.delay)}}class Ge{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new c.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=>h(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){m(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 qe(e){return e&&1===e.nodeType}function Je(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function Qe(e,t,n,i,r){const s=[];n.forEach(e=>s.push(Je(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=$e,o.push(i))}),e.set(i,s)});let a=0;return n.forEach(e=>Je(e,s[a++])),o}function Ke(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;return t.forEach(e=>{const t=function e(t){if(!t)return 1;let s=r.get(t);if(s)return s;const o=t.parentNode;return s=n.has(o)?o:i.has(o)?1:e(o),r.set(t,s),s}(e);1!==t&&n.get(t).push(e)}),n}function Ze(e,t){if(e.classList)e.classList.add(t);else{let n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function Xe(e,t){if(e.classList)e.classList.remove(t);else{let n=e.$$classes;n&&delete n[t]}}function et(e,t,n){u(n).onDone(()=>e.processLeaveNode(t))}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 Ue(e,t,n),this._timelineEngine=new Pe(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=ce(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]=b(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]=b(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&&W(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(W(this._element,this._initialStyles),this._endStyles&&(W(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(V(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(V(this._element,this._endStyles),this._endStyles=null),W(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]:te(this.element,n))})}this.currentSnapshot=e}}class gt extends c.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"),this._warningIssued=!1}validateStyleProperty(e){return M(e)}matchesElement(e,t){return k(e,t)}containsElement(e,t){return x(e,t)}query(e,t,n){return D(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.innerHTML=i,s}animate(e,t,n,i,r,s=[],o){o&&this._notifyFaultyScrubber();const a=s.filter(e=>e instanceof bt),c={};Z(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=X(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}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n","  visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class yt{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){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]:te(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class vt{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(wt().toString()),this._cssKeyframesDriver=new _t}validateStyleProperty(e){return M(e)}matchesElement(e,t){return k(e,t)}containsElement(e,t){return x(e,t)}query(e,t,n){return D(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 yt);Z(n,i)&&l.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>c[e]=t[e])});const u=it(e,t=X(e,t=t.map(e=>z(e,!1)),c));return new yt(e,t,a,u)}}function wt(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let St=(()=>{class e extends c.b{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:i.Q.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?Object(c.f)(e):e;return xt(this._renderer,null,t,"register",[n]),new Mt(t,this._renderer)}}return e.\u0275fac=function(t){return new(t||e)(i.dc(i.F),i.dc(o.d))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})();class Mt extends c.c{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new kt(this._id,e,t||{},this._renderer)}}class kt{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 xt(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(){return 0}}function xt(e,t,n,i,r){return e.setProperty(t,`@@${n}:${i}`,r)}const Dt="@",Tt="@.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)(i.dc(i.F),i.dc(nt),i.dc(i.A))},e.\u0275prov=i.Ib({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){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)}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)==Dt&&t==Tt?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)==Dt?"."==t.charAt(1)&&t==Tt?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)==Dt){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)!=Dt&&([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 Rt=(()=>{class e extends nt{constructor(e,t,n){super(e.body,t,n)}}return e.\u0275fac=function(t){return new(t||e)(i.dc(o.d),i.dc(O),i.dc(xe))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})();const Et=[{provide:O,useFactory:function(){return"function"==typeof wt()?new vt:new _t}},{provide:new i.r("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:c.b,useClass:St},{provide:xe,useFactory:function(){return new De}},{provide:nt,useClass:Rt},{provide:i.F,useFactory:function(e,t,n){return new Ct(e,t,n)},deps:[r.e,nt,i.A]}];let At=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},providers:Et,imports:[r.a]}),e})();var It=n("EApP"),Pt=n("iInd"),Nt=n("LvDl"),jt=n.n(Nt),Ft=n("mrSG"),Yt=n("xTzq");let zt=(()=>{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 a.e;return i=i.append("path",t),jt.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 a.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 a.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)(i.dc(a.b))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e=Object(Ft.b)([Yt.a,Object(Ft.d)("design:paramtypes",[a.b])],e),e})();var $t=n("+fVR"),Ht=n("x38r"),Wt=n("vCyI"),Vt=n("a0VL"),Bt=n("uIqm"),Ut=n("PqYM"),Gt=n("VxPD"),qt=n("yJti"),Jt=n("aexS"),Qt=n("G0yt"),Kt=n("JP8w"),Zt=n("Fgil"),Xt=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(){jt.a.isUndefined(this.mdsCounter)||(this.setChartTooltip(),this.updateChart())}ngOnChanges(){jt.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,jt.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])}];jt.a.merge(this.chart,{datasets:e}),this.chart.datasets=[...this.chart.datasets]}convertTimeSeries(e){const t=[];return jt.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=i.Gb({type:e,selectors:[["cd-cephfs-chart"]],viewQuery:function(e,t){var n;1&e&&(i.Jc(on,!0),i.Jc(an,!0)),2&e&&(i.zc(n=i.hc())&&(t.chartCanvas=n.first),i.zc(n=i.hc())&&(t.chartTooltip=n.first))},inputs:{mdsCounter:"mdsCounter"},features:[i.wb],decls:6,vars:3,consts:[[1,"chart-container"],["baseChart","",3,"datasets","options","chartType"],["chartCanvas",""],[1,"chartjs-tooltip"],["chartTooltip",""]],template:function(e,t){1&e&&(i.Sb(0,"div",0),i.Nb(1,"canvas",1,2),i.Sb(3,"div",3,4),i.Nb(5,"table"),i.Rb(),i.Rb()),2&e&&(i.yb(1),i.pc("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:rgba(0,0,0,.7);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 transparent;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&&(i.Sb(0,"div",0),i.Sb(1,"div",11),i.Nb(2,"cd-cephfs-chart",12),i.Rb(),i.Rb()),2&e){const e=t.$implicit;i.yb(2),i.pc("mdsCounter",e)}}function fn(e,t){if(1&e&&i.Nb(0,"cd-usage-bar",13),2&e){const e=t.row;i.pc("total",e.size)("used",e.used)}}function pn(e,t){1&e&&(i.Oc(0),i.jc(1,"dimless")),2&e&&i.Rc(" ","standby-replay"===t.row.state?"Evts":"Reqs",": ",i.kc(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)(i.Mb(Zt.a),i.Mb(Xt.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-cephfs-detail"]],viewQuery:function(e,t){var n;1&e&&(i.Jc(un,!0),i.Jc(dn,!0)),2&e&&(i.zc(n=i.hc())&&(t.poolUsageTpl=n.first),i.zc(n=i.hc())&&(t.activityTmpl=n.first))},inputs:{data:"data"},features:[i.wb],decls:19,vars:9,consts:function(){return[[1,"row"],[1,"col-sm-6"],"Ranks",[3,"data","columns","toolHeader"],"Standbys",[3,"data"],"Pools","MDS performance counters",["class","row",4,"ngFor","ngForOf","ngForTrackBy"],["poolUsageTpl",""],["activityTmpl",""],[1,"col-md-12"],[3,"mdsCounter"],[3,"total","used"]]},template:function(e,t){1&e&&(i.Sb(0,"div",0),i.Sb(1,"div",1),i.Sb(2,"legend"),i.Wb(3,2),i.Rb(),i.Nb(4,"cd-table",3),i.Sb(5,"legend"),i.Wb(6,4),i.Rb(),i.Nb(7,"cd-table-key-value",5),i.Rb(),i.Sb(8,"div",1),i.Sb(9,"legend"),i.Wb(10,6),i.Rb(),i.Nb(11,"cd-table",3),i.Rb(),i.Rb(),i.Sb(12,"legend"),i.Wb(13,7),i.Rb(),i.Mc(14,hn,3,1,"div",8),i.Mc(15,fn,1,2,"ng-template",null,9,i.Nc),i.Mc(17,pn,2,4,"ng-template",null,10,i.Nc)),2&e&&(i.yb(4),i.pc("data",t.data.ranks)("columns",t.columns.ranks)("toolHeader",!1),i.yb(3),i.pc("data",t.standbys),i.yb(4),i.pc("data",t.data.pools)("columns",t.columns.pools)("toolHeader",!1),i.yb(3),i.pc("ngForOf",t.objectValues(t.data.mdsCounters))("ngForTrackBy",t.trackByFn))},directives:[Bt.a,en.a,o.q,cn,ln.a],pipes:[Xt.a],styles:[".progress[_ngcontent-%COMP%]{margin-bottom:0}"]}),e})();var bn=n("0+/T"),gn=n("sne2"),_n=n("oxzT"),yn=n("mtw6"),vn=n("JK/P"),wn=n("9nlD"),Sn=n("S7zO");let Mn=(()=>{class e{constructor(e,t,n,r,s){this.cephfsService=e,this.modalService=t,this.notificationService=n,this.authStorageService=r,this.actionLabels=s,this.triggerApiUpdate=new i.o,this.selection=new Wt.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(yn.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)(i.Mb(zt),i.Mb(vn.a),i.Mb(wn.a),i.Mb(Jt.a),i.Mb(gn.b))},e.\u0275cmp=i.Gb({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&&(i.Sb(0,"cd-table",0),i.gc("fetchData",(function(){return t.triggerApiUpdate.emit()}))("updateSelection",(function(e){return t.updateSelection(e)})),i.Nb(1,"cd-table-actions",1),i.Rb()),2&e&&(i.pc("data",t.clients.data)("columns",t.columns)("status",t.clients.status)("autoReload",-1),i.yb(1),i.pc("permission",t.permission)("selection",t.selection)("tableActions",t.tableActions))},directives:[Bt.a,Sn.a],styles:[""]}),e})();var kn=n("s7LF"),xn=n("ohO+"),Dn=n("OLbh"),Tn=n("Rf2I"),Cn=n("1Ni5"),On=n("ANnk");const Ln=["origin"],Rn=function(e,t){return[e,t]};function En(e,t){if(1&e&&i.Nb(0,"i",5),2&e){const e=i.ic(2);i.pc("ngClass",i.vc(1,Rn,e.icons.spinner,e.icons.spin))}}function An(e,t){if(1&e&&(i.Sb(0,"tree-root",10),i.Mc(1,En,1,4,"ng-template",null,11,i.Nc),i.Rb()),2&e){const e=i.ic();i.pc("nodes",e.nodes)("options",e.treeOptions)}}function In(e,t){if(1&e){const e=i.Tb();i.Qb(0),i.Sb(1,"legend"),i.Wb(2,17),i.Rb(),i.Sb(3,"cd-table",18),i.gc("updateSelection",(function(t){return i.Dc(e),i.ic(2).quota.updateSelection(t)})),i.Nb(4,"cd-table-actions",19),i.Rb(),i.Pb()}if(2&e){const e=i.ic(2);i.yb(3),i.pc("data",e.settings)("columns",e.quota.columns)("limit",0)("footer",!1)("onlyActionHeader",!0)("forceIdentifier",!0)("toolHeader",!1),i.yb(1),i.pc("permission",e.permission)("selection",e.quota.selection)("tableActions",e.quota.tableActions)}}function Pn(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",12),i.Sb(1,"div",2),i.Sb(2,"div",3),i.Oc(3),i.Rb(),i.Sb(4,"div",6),i.Mc(5,In,5,10,"ng-container",13),i.Sb(6,"legend"),i.Wb(7,14),i.Rb(),i.Sb(8,"cd-table",15),i.gc("updateSelection",(function(t){return i.Dc(e),i.ic().snapshot.updateSelection(t)})),i.Nb(9,"cd-table-actions",16),i.Rb(),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.yb(3),i.Qc(" ",e.selectedDir.path," "),i.yb(2),i.pc("ngIf","/"!==e.selectedDir.path),i.yb(3),i.pc("data",e.selectedDir.snapshots)("columns",e.snapshot.columns),i.yb(1),i.pc("permission",e.permission)("selection",e.snapshot.selection)("tableActions",e.snapshot.tableActions)}}function Nn(e,t){if(1&e){const e=i.Tb();i.Sb(0,"span",20),i.gc("click",(function(){i.Dc(e);const n=t.value;return i.ic().selectOrigin(n)})),i.Oc(1),i.Rb()}if(2&e){const e=t.value;i.yb(1),i.Pc(e)}}let jn=(()=>{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){xn.a.TOGGLE_EXPANDED(e,t,n),this.selectNode(t)}selectNode(e){xn.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 Wt.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 Wt.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()},{name:this.actionLabels.DELETE,icon:_n.a.destroy,permission:"delete",click:()=>this.deleteSnapshotModal(),canBePrimary:e=>e.hasSelection,disable:e=>!e.hasSelection}]}}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 jt.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(Tn.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):kn.A.min(0)];i&&s.push(r?Cn.a.binaryMax(i):kn.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(yn.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(Dn.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(Tn.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(yn.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}};jt.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;jt.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(yn.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)(i.Mb(Jt.a),i.Mb(vn.a),i.Mb(zt),i.Mb(Vt.a),i.Mb(gn.b),i.Mb(wn.a),i.Mb(Zt.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-cephfs-directories"]],viewQuery:function(e,t){var n;1&e&&(i.Tc(xn.b,!0),i.Jc(Ln,!0)),2&e&&(i.zc(n=i.hc())&&(t.treeComponent=n.first),i.zc(n=i.hc())&&(t.originTmpl=n.first))},inputs:{id:"id"},features:[i.wb],decls:11,vars:10,consts:function(){return[[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"],"Snapshots",["identifier","name","forceIdentifier","true","selectionType","multiClick",3,"data","columns","updateSelection"],[1,"table-actions",3,"permission","selection","tableActions"],"Quotas",["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&&(i.Sb(0,"div",0),i.Sb(1,"div",1),i.Sb(2,"div",2),i.Sb(3,"div",3),i.Sb(4,"button",4),i.gc("click",(function(){return t.refreshAllDirectories()})),i.Nb(5,"i",5),i.Rb(),i.Rb(),i.Sb(6,"div",6),i.Mc(7,An,3,2,"tree-root",7),i.Rb(),i.Rb(),i.Rb(),i.Mc(8,Pn,10,7,"div",8),i.Rb(),i.Mc(9,Nn,2,1,"ng-template",null,9,i.Nc)),2&e&&(i.yb(4),i.Eb("disabled",t.loadingIndicator),i.yb(1),i.Eb("fa-spin",t.loadingIndicator),i.pc("ngClass",i.vc(7,Rn,t.icons.large,t.icons.refresh)),i.yb(2),i.pc("ngIf",t.nodes),i.yb(1),i.pc("ngIf",t.selectedDir))},directives:[On.a,o.p,o.r,xn.b,Bt.a,Sn.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 Fn=n("insk");function Yn(e,t){if(1&e&&i.Nb(0,"cd-cephfs-detail",15),2&e){const e=i.ic(2);i.pc("data",e.details)}}function zn(e,t){if(1&e){const e=i.Tb();i.Sb(0,"cd-cephfs-clients",16),i.gc("triggerApiUpdate",(function(){return i.Dc(e),i.ic(2).refresh()})),i.Rb()}if(2&e){const e=i.ic(2);i.pc("id",e.id)("clients",e.clients)}}function $n(e,t){if(1&e&&i.Nb(0,"cd-cephfs-directories",17),2&e){const e=i.ic(2);i.pc("id",e.id)}}function Hn(e,t){if(1&e&&i.Nb(0,"cd-grafana",18),2&e){const e=i.ic(2);i.pc("grafanaPath","mds-performance?var-mds_servers=mds."+e.grafanaId)}}function Wn(e,t){if(1&e){const e=i.Tb();i.Qb(0),i.Sb(1,"ul",1,2),i.gc("navChange",(function(){return i.Dc(e),i.ic().softRefresh()})),i.Sb(3,"li",3),i.Sb(4,"a",4),i.Wb(5,5),i.Rb(),i.Mc(6,Yn,1,1,"ng-template",6),i.Rb(),i.Sb(7,"li",7),i.Sb(8,"a",4),i.Qb(9),i.Wb(10,8),i.Pb(),i.Sb(11,"span",9),i.Oc(12),i.Rb(),i.Rb(),i.Mc(13,zn,1,2,"ng-template",6),i.Rb(),i.Sb(14,"li",10),i.Sb(15,"a",4),i.Wb(16,11),i.Rb(),i.Mc(17,$n,1,1,"ng-template",6),i.Rb(),i.Sb(18,"li",12),i.Sb(19,"a",4),i.Wb(20,13),i.Rb(),i.Mc(21,Hn,1,1,"ng-template",6),i.Rb(),i.Rb(),i.Nb(22,"div",14),i.Pb()}if(2&e){const e=i.Ac(2),t=i.ic();i.yb(12),i.Pc(t.clients.data.length),i.yb(10),i.pc("ngbNavOutlet",e)}}let Vn=(()=>{class e{constructor(e,t,n){this.ngZone=e,this.authStorageService=t,this.cephfsService=n,this.clients={data:[],status:new Gt.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=jt.a.first(Object.values(t));this.grafanaId=n&&n.name,this.details={standbys:"",pools:[],ranks:[],mdsCounters:{},name:""},this.clients={data:[],status:new Gt.a(qt.a.ValueNone)},this.updateInterval()}updateInterval(){this.unsubscribeInterval(),this.subscribeInterval()}unsubscribeInterval(){this.reloadSubscriber&&this.reloadSubscriber.unsubscribe()}subscribeInterval(){this.ngZone.runOutsideAngular(()=>this.reloadSubscriber=Object(Ut.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 Gt.a(qt.a.ValueException)})}softRefresh(){const e=jt.a.cloneDeep(this.data);this.clients=e.clients,this.clients.status=new Gt.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)(i.Mb(i.A),i.Mb(Jt.a),i.Mb(zt))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-cephfs-tabs"]],inputs:{selection:"selection"},features:[i.wb],decls:1,vars:1,consts:function(){return[[4,"ngIf"],["ngbNav","","cdStatefulTab","cephfs-tabs",1,"nav-tabs",3,"navChange"],["nav","ngbNav"],["ngbNavItem","details"],["ngbNavLink",""],"Details",["ngbNavContent",""],["ngbNavItem","clients"],"Clients",[1,"badge","badge-pill","badge-tab","ml-1"],["ngbNavItem","directories"],"Directories",["ngbNavItem","performance-details"],"Performance Details",[3,"ngbNavOutlet"],[3,"data"],[3,"id","clients","triggerApiUpdate"],[3,"id"],["uid","tbO9LAiZz","grafanaStyle","one",3,"grafanaPath"]]},template:function(e,t){1&e&&i.Mc(0,Wn,23,2,"ng-container",0),2&e&&i.pc("ngIf",t.selection)},directives:[o.r,Qt.p,Kt.a,Qt.r,Qt.s,Qt.q,Qt.u,mn,Mn,jn,Fn.a],styles:[""]}),e})(),Bn=(()=>{class e extends $t.a{constructor(e,t){super(),this.cephfsService=e,this.cdDatePipe=t,this.filesystems=[],this.selection=new Wt.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:Ht.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)(i.Mb(zt),i.Mb(Vt.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-cephfs-list"]],features:[i.vb],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&&(i.Sb(0,"cd-table",0),i.gc("fetchData",(function(e){return t.loadFilesystems(e)}))("setExpandedRow",(function(e){return t.setExpandedRow(e)}))("updateSelection",(function(e){return t.updateSelection(e)})),i.Nb(1,"cd-cephfs-tabs",1),i.Rb()),2&e&&(i.pc("data",t.filesystems)("columns",t.columns)("hasDetails",!0),i.yb(1),i.pc("selection",t.expandedRow))},directives:[Bt.a,Vn],styles:[""]}),e})();var Un=n("MuvH");let Gn=(()=>{class e{static getType(e){const t=jt.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(kn.A.max(t.max))),t.min&&""!==t.min?(i.min=t.min,i.validators.push(kn.A.min(t.min))):"defaultMin"in n&&(i.min=n.defaultMin,i.validators.push(kn.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"),Jn=n("QFaf");class Qn{constructor(){this.value=[]}}var Kn=n("zc8c"),Zn=n("NwgZ"),Xn=n("ocLN"),ei=n("f69J"),ti=n("6+kj");function ni(e,t){1&e&&(i.Sb(0,"div",8),i.Sb(1,"label",9),i.Wb(2,20),i.Rb(),i.Sb(3,"div",11),i.Sb(4,"textarea",21),i.Oc(5,"            "),i.Rb(),i.Rb(),i.Rb())}function ii(e,t){1&e&&(i.Sb(0,"div",8),i.Sb(1,"label",9),i.Wb(2,22),i.Rb(),i.Sb(3,"div",11),i.Sb(4,"textarea",23),i.Oc(5,"            "),i.Rb(),i.Rb(),i.Rb())}function ri(e,t){1&e&&(i.Sb(0,"div",8),i.Sb(1,"label",9),i.Wb(2,24),i.Rb(),i.Sb(3,"div",11),i.Nb(4,"input",25),i.Rb(),i.Rb())}function si(e,t){1&e&&(i.Sb(0,"div",8),i.Sb(1,"label",9),i.Wb(2,26),i.Rb(),i.Sb(3,"div",11),i.Nb(4,"input",27),i.Rb(),i.Rb())}function oi(e,t){if(1&e&&(i.Sb(0,"span",30),i.Sb(1,"span",31),i.Oc(2),i.Rb(),i.Rb()),2&e){const e=t.$implicit;i.yb(2),i.Pc(e)}}function ai(e,t){if(1&e&&(i.Sb(0,"div",8),i.Sb(1,"label",9),i.Wb(2,28),i.Rb(),i.Sb(3,"div",11),i.Mc(4,oi,3,1,"span",29),i.Rb(),i.Rb()),2&e){const e=i.ic(2);i.yb(4),i.pc("ngForOf",e.configForm.getValue("services"))}}function ci(e,t){if(1&e&&(i.Sb(0,"div",8),i.Sb(1,"label",32),i.Oc(2),i.Rb(),i.Sb(3,"div",11),i.Sb(4,"select",33),i.Sb(5,"option",34),i.Wb(6,35),i.Rb(),i.Sb(7,"option",34),i.Wb(8,36),i.Rb(),i.Sb(9,"option",34),i.Wb(10,37),i.Rb(),i.Rb(),i.Rb(),i.Rb()),2&e){const e=i.ic().$implicit;i.yb(1),i.pc("for",e),i.yb(1),i.Qc("",e," "),i.yb(2),i.pc("formControlName",e),i.yb(1),i.pc("ngValue",null),i.yb(2),i.pc("ngValue",!0),i.yb(2),i.pc("ngValue",!1)}}function li(e,t){if(1&e&&(i.Sb(0,"span",40),i.Oc(1),i.Rb()),2&e){const e=i.ic(4);i.yb(1),i.Qc(" ",e.patternHelpText," ")}}function ui(e,t){if(1&e&&(i.Sb(0,"span",40),i.Oc(1),i.Rb()),2&e){const e=i.ic(4);i.yb(1),i.Qc(" ",e.patternHelpText," ")}}function di(e,t){if(1&e&&(i.Sb(0,"span",40),i.Wb(1,41),i.Rb()),2&e){const e=i.ic(4);i.yb(1),i.ac(e.maxValue),i.Xb(1)}}function hi(e,t){if(1&e&&(i.Sb(0,"span",40),i.Wb(1,42),i.Rb()),2&e){const e=i.ic(4);i.yb(1),i.ac(e.minValue),i.Xb(1)}}function fi(e,t){if(1&e&&(i.Sb(0,"div",8),i.Sb(1,"label",32),i.Oc(2),i.Rb(),i.Sb(3,"div",11),i.Nb(4,"input",38),i.Mc(5,li,2,1,"span",39),i.Mc(6,ui,2,1,"span",39),i.Mc(7,di,2,1,"span",39),i.Mc(8,hi,2,1,"span",39),i.Rb(),i.Rb()),2&e){const e=i.ic().$implicit;i.ic();const t=i.Ac(2),n=i.ic();i.yb(1),i.pc("for",e),i.yb(1),i.Qc("",e," "),i.yb(2),i.pc("type",n.inputType)("id",e)("placeholder",n.humanReadableType)("formControlName",e)("step",n.getStep(n.type,n.configForm.getValue(e))),i.yb(1),i.pc("ngIf",n.configForm.showError(e,t,"pattern")),i.yb(1),i.pc("ngIf",n.configForm.showError(e,t,"invalidUuid")),i.yb(1),i.pc("ngIf",n.configForm.showError(e,t,"max")),i.yb(1),i.pc("ngIf",n.configForm.showError(e,t,"min"))}}function pi(e,t){if(1&e&&(i.Qb(0),i.Mc(1,ci,11,6,"div",13),i.Mc(2,fi,9,11,"div",13),i.Pb()),2&e){const e=i.ic(2);i.yb(1),i.pc("ngIf","bool"===e.type),i.yb(1),i.pc("ngIf","bool"!==e.type)}}function mi(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",1),i.Sb(1,"form",2,3),i.Sb(3,"div",4),i.Sb(4,"div",5),i.Qb(5,6),i.Oc(6,"Edit"),i.Pb(),i.Oc(7),i.Rb(),i.Sb(8,"div",7),i.Sb(9,"div",8),i.Sb(10,"label",9),i.Wb(11,10),i.Rb(),i.Sb(12,"div",11),i.Nb(13,"input",12),i.Rb(),i.Rb(),i.Mc(14,ni,6,0,"div",13),i.Mc(15,ii,6,0,"div",13),i.Mc(16,ri,5,0,"div",13),i.Mc(17,si,5,0,"div",13),i.Mc(18,ai,5,1,"div",13),i.Sb(19,"div",14),i.Sb(20,"h3",15),i.Wb(21,16),i.Rb(),i.Mc(22,pi,3,2,"ng-container",17),i.Rb(),i.Rb(),i.Sb(23,"div",18),i.Sb(24,"cd-form-button-panel",19),i.gc("submitActionEvent",(function(){return i.Dc(e),i.ic().submit()})),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.yb(1),i.pc("formGroup",e.configForm),i.yb(6),i.Qc(" ",e.configForm.getValue("name")," "),i.yb(7),i.pc("ngIf",e.configForm.getValue("desc")),i.yb(1),i.pc("ngIf",e.configForm.getValue("long_desc")),i.yb(1),i.pc("ngIf",""!==e.configForm.getValue("default")),i.yb(1),i.pc("ngIf",""!==e.configForm.getValue("daemon_default")),i.yb(1),i.pc("ngIf",e.configForm.getValue("services").length>0),i.yb(4),i.pc("ngForOf",e.availSections),i.yb(2),i.pc("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 kn.h({value:null}),desc:new kn.h({value:null}),long_desc:new kn.h({value:null}),values:new kn.j({}),default:new kn.h({value:null}),daemon_default:new kn.h({value:null}),services:new kn.h([])};this.availSections.forEach(t=>{e.values.addControl(t,new kn.h(null))}),this.configForm=new Jn.a(e)}ngOnInit(){this.route.params.subscribe(e=>{this.configService.get(e.name).subscribe(e=>{this.setResponse(e),this.loadingReady()})})}getValidators(e){const t=Gn.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 Gn.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=Gn.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})}),!jt.a.isEqual(this.response.value,e)){const t=new Qn;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(yn.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)(i.Mb(gn.b),i.Mb(Pt.a),i.Mb(Pt.e),i.Mb(Un.a),i.Mb(wn.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-configuration-form"]],features:[i.vb],decls:1,vars:1,consts:function(){return[["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"],"Name",[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"],"Values",[4,"ngFor","ngForOf"],[1,"card-footer"],["wrappingClass","text-right",3,"form","submitText","submitActionEvent"],"Description",["id","desc","formControlName","desc","readonly","",1,"form-control","resize-vertical"],"Long description",["id","long_desc","formControlName","long_desc","readonly","",1,"form-control","resize-vertical"],"Default",["type","text","id","default","formControlName","default","readonly","",1,"form-control"],"Daemon default",["type","text","id","daemon_default","formControlName","daemon_default","readonly","",1,"form-control"],"Services",["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"],"-- Default --","true","false",[1,"form-control",3,"type","id","placeholder","formControlName","step"],["class","invalid-feedback",4,"ngIf"],[1,"invalid-feedback"],"The entered value is too high! It must not be greater than " + "\ufffd0\ufffd" + ".","The entered value is too low! It must not be lower than " + "\ufffd0\ufffd" + "."]},template:function(e,t){1&e&&i.Mc(0,mi,25,10,"div",0),2&e&&i.pc("cdFormLoading",t.loading)},directives:[Kn.a,kn.C,kn.r,Zn.a,kn.k,Xn.a,On.a,kn.d,ei.a,kn.q,kn.i,o.r,kn.l,o.q,ti.a,kn.z,kn.u,kn.B],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&&(i.Sb(0,"span"),i.Oc(1),i.Nb(2,"br"),i.Rb()),2&e){const e=t.$implicit,n=t.last;i.yb(1),i.Sc(" ",e.section,": ",e.value,"",n?"":",","")}}function yi(e,t){if(1&e&&(i.Sb(0,"span"),i.Sb(1,"span",23),i.Sb(2,"span",24),i.Oc(3),i.jc(4,"uppercase"),i.Rb(),i.Rb(),i.Rb()),2&e){const e=t.$implicit,n=i.ic(2);i.yb(1),i.qc("title",n.flags[e]),i.yb(2),i.Pc(i.kc(4,2,e))}}function vi(e,t){if(1&e&&(i.Sb(0,"span"),i.Sb(1,"span",24),i.Oc(2),i.Rb(),i.Rb()),2&e){const e=t.$implicit;i.yb(2),i.Pc(e)}}function wi(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"table",1),i.Sb(2,"tbody"),i.Sb(3,"tr"),i.Sb(4,"td",2),i.Wb(5,3),i.Rb(),i.Sb(6,"td",4),i.Oc(7),i.Rb(),i.Rb(),i.Sb(8,"tr"),i.Sb(9,"td",5),i.Wb(10,6),i.Rb(),i.Sb(11,"td"),i.Oc(12),i.Rb(),i.Rb(),i.Sb(13,"tr"),i.Sb(14,"td",5),i.Wb(15,7),i.Rb(),i.Sb(16,"td"),i.Oc(17),i.Rb(),i.Rb(),i.Sb(18,"tr"),i.Sb(19,"td",5),i.Wb(20,8),i.Rb(),i.Sb(21,"td"),i.Mc(22,_i,3,3,"span",9),i.Rb(),i.Rb(),i.Sb(23,"tr"),i.Sb(24,"td",5),i.Wb(25,10),i.Rb(),i.Sb(26,"td"),i.Oc(27),i.Rb(),i.Rb(),i.Sb(28,"tr"),i.Sb(29,"td",5),i.Wb(30,11),i.Rb(),i.Sb(31,"td"),i.Oc(32),i.Rb(),i.Rb(),i.Sb(33,"tr"),i.Sb(34,"td",5),i.Wb(35,12),i.Rb(),i.Sb(36,"td"),i.Oc(37),i.Rb(),i.Rb(),i.Sb(38,"tr"),i.Sb(39,"td",5),i.Wb(40,13),i.Rb(),i.Sb(41,"td"),i.Oc(42),i.Rb(),i.Rb(),i.Sb(43,"tr"),i.Sb(44,"td",5),i.Wb(45,14),i.Rb(),i.Sb(46,"td"),i.Oc(47),i.Rb(),i.Rb(),i.Sb(48,"tr"),i.Sb(49,"td",5),i.Wb(50,15),i.Rb(),i.Sb(51,"td"),i.Mc(52,yi,5,4,"span",9),i.Rb(),i.Rb(),i.Sb(53,"tr"),i.Sb(54,"td",5),i.Wb(55,16),i.Rb(),i.Sb(56,"td"),i.Mc(57,vi,3,1,"span",9),i.Rb(),i.Rb(),i.Sb(58,"tr"),i.Sb(59,"td",5),i.Wb(60,17),i.Rb(),i.Sb(61,"td"),i.Oc(62),i.Rb(),i.Rb(),i.Sb(63,"tr"),i.Sb(64,"td",5),i.Wb(65,18),i.Rb(),i.Sb(66,"td"),i.Oc(67),i.Rb(),i.Rb(),i.Sb(68,"tr"),i.Sb(69,"td",5),i.Wb(70,19),i.Rb(),i.Sb(71,"td"),i.Oc(72),i.jc(73,"booleanText"),i.Rb(),i.Rb(),i.Sb(74,"tr"),i.Sb(75,"td",5),i.Wb(76,20),i.Rb(),i.Sb(77,"td"),i.Oc(78),i.Rb(),i.Rb(),i.Sb(79,"tr"),i.Sb(80,"td",5),i.Wb(81,21),i.Rb(),i.Sb(82,"td"),i.Oc(83),i.Rb(),i.Rb(),i.Sb(84,"tr"),i.Sb(85,"td",5),i.Wb(86,22),i.Rb(),i.Sb(87,"td"),i.Oc(88),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Pb()),2&e){const e=i.ic();i.yb(7),i.Pc(e.selection.name),i.yb(5),i.Pc(e.selection.desc),i.yb(5),i.Pc(e.selection.long_desc),i.yb(5),i.pc("ngForOf",e.selection.value),i.yb(5),i.Pc(e.selection.default),i.yb(5),i.Pc(e.selection.daemon_default),i.yb(5),i.Pc(e.selection.type),i.yb(5),i.Pc(e.selection.min),i.yb(5),i.Pc(e.selection.max),i.yb(5),i.pc("ngForOf",e.selection.flags),i.yb(5),i.pc("ngForOf",e.selection.services),i.yb(5),i.Pc(e.selection.source),i.yb(5),i.Pc(e.selection.level),i.yb(5),i.Pc(i.kc(73,17,e.selection.can_update_at_runtime)),i.yb(6),i.Pc(e.selection.tags),i.yb(5),i.Pc(e.selection.enum_values),i.yb(5),i.Pc(e.selection.see_also)}}let Si=(()=>{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=jt.a.split(this.selection.services,","))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-configuration-details"]],inputs:{selection:"selection"},features:[i.wb],decls:1,vars:1,consts:function(){return[[4,"ngIf"],[1,"table","table-striped","table-bordered"],[1,"bold","w-25"],"Name",[1,"w-75"],[1,"bold"],"Description","Long description","Current values",[4,"ngFor","ngForOf"],"Default","Daemon default","Type","Min","Max","Flags","Services","Source","Level","Can be updated at runtime (editable)","Tags","Enum values","See also",[3,"title"],[1,"badge","badge-dark","mr-2"]]},template:function(e,t){1&e&&i.Mc(0,wi,89,19,"ng-container",0),2&e&&i.pc("ngIf",t.selection)},directives:[o.r,o.q],pipes:[gi.a,o.C],styles:[""]}),e})();const Mi=["confValTpl"],ki=["confFlagTpl"];function xi(e,t){if(1&e&&(i.Sb(0,"span"),i.Oc(1),i.Nb(2,"br"),i.Rb()),2&e){const e=t.$implicit,n=t.last;i.yb(1),i.Sc(" ",e.section,": ",e.value,"",n?"":",","")}}function Di(e,t){if(1&e&&(i.Sb(0,"span"),i.Mc(1,xi,3,3,"span",5),i.Rb()),2&e){const e=i.ic().value;i.yb(1),i.pc("ngForOf",e)}}function Ti(e,t){1&e&&i.Mc(0,Di,2,1,"span",4),2&e&&i.pc("ngIf",t.value)}let Ci=(()=>{class e extends $t.a{constructor(e,t,n){super(),this.authStorageService=e,this.configurationService=t,this.actionLabels=n,this.data=[],this.icons=_n.a,this.selection=new Wt.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:Ht.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)(i.Mb(Jt.a),i.Mb(Un.a),i.Mb(gn.b))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-configuration"]],viewQuery:function(e,t){var n;1&e&&(i.Jc(Mi,!0),i.Tc(ki,!0)),2&e&&(i.zc(n=i.hc())&&(t.confValTpl=n.first),i.zc(n=i.hc())&&(t.confFlagTpl=n.first))},features:[i.vb],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&&(i.Sb(0,"cd-table",0),i.gc("fetchData",(function(e){return t.getConfigurationList(e)}))("setExpandedRow",(function(e){return t.setExpandedRow(e)}))("updateSelection",(function(e){return t.updateSelection(e)})),i.Nb(1,"cd-table-actions",1),i.Nb(2,"cd-configuration-details",2),i.Rb(),i.Mc(3,Ti,1,1,"ng-template",null,3,i.Nc)),2&e&&(i.pc("data",t.data)("columns",t.columns)("extraFilterableColumns",t.filters)("hasDetails",!0),i.yb(1),i.pc("permission",t.permission)("selection",t.selection)("tableActions",t.tableActions),i.yb(1),i.pc("selection",t.expandedRow))},directives:[Bt.a,Sn.a,Si,o.r,o.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("quSY");let Li=(()=>{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)(i.dc(a.b))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Ri=n("lOp/");const Ei=["tree"],Ai=function(e,t,n){return[e,t,n]};function Ii(e,t){if(1&e&&i.Nb(0,"i",12),2&e){const e=i.ic();i.pc("ngClass",i.wc(1,Ai,e.icons.large,e.icons.spinner,e.icons.spin))}}const Pi=function(){return["in","up"]},Ni=function(){return["down","out","destroyed"]},ji=function(e,t){return{"badge-success":e,"badge-danger":t}};function Fi(e,t){if(1&e&&(i.Sb(0,"span",15),i.Oc(1),i.Rb()),2&e){const e=i.ic().$implicit;i.pc("ngClass",i.vc(4,ji,i.tc(2,Pi).includes(e.data.status),i.tc(3,Ni).includes(e.data.status))),i.yb(1),i.Qc(" ",e.data.status," ")}}const Yi=function(e){return{"type-osd":e}};function zi(e,t){if(1&e&&(i.Mc(0,Fi,2,7,"span",13),i.Sb(1,"span"),i.Oc(2,"\xa0"),i.Rb(),i.Nb(3,"span",14)),2&e){const e=t.$implicit;i.pc("ngIf",e.data.status),i.yb(3),i.pc("ngClass",i.uc(3,Yi,"osd"===e.data.type))("innerHTML",e.data.name,i.Ec)}}function $i(e,t){if(1&e&&(i.Sb(0,"div",16),i.Sb(1,"legend"),i.Oc(2),i.Rb(),i.Nb(3,"cd-table-key-value",17),i.Rb()),2&e){const e=i.ic();i.yb(2),i.Pc(e.metadataTitle),i.yb(1),i.pc("data",e.metadata)}}let Hi=(()=>{class e{constructor(e,t){this.healthService=e,this.timerService=t,this.sub=new Oi.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.healthService.getFullHealth().subscribe(e=>{this.loadingIndicator=!1,this.nodes=this.abstractTreeData(e)}),this.sub=this.timerService.get(()=>this.healthService.getFullHealth(),5e3).subscribe(e=>{this.nodes=this.abstractTreeData(e)})}ngOnDestroy(){this.sub.unsubscribe()}abstractTreeData(e){const t=e.osd_map.tree.nodes||[],n={};if(0===t.length)return[{name:"No nodes!"}];const i=[];return t.reverse().forEach(e=>{"root"===e.type&&i.push(e.id),n[e.id]=this.generateTreeLeaf(e,n)}),i.map(e=>n[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(xn.a.ACTIVATE(e,t,!0),void 0!==t.data.cdId){const e=this.metadataKeyMap[t.data.cdId],{name:n,type:i}=e,r=Object(Ft.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)(i.Mb(Li),i.Mb(Ri.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-crushmap"]],viewQuery:function(e,t){var n;1&e&&i.Tc(Ei,!0),2&e&&i.zc(n=i.hc())&&(t.tree=n.first)},decls:14,vars:4,consts:function(){return[[1,"row"],[1,"col-sm-12","col-lg-12"],[1,"card"],[1,"card-header"],"CRUSH map viewer",[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&&(i.Sb(0,"div",0),i.Sb(1,"div",1),i.Sb(2,"div",2),i.Sb(3,"div",3),i.Wb(4,4),i.Rb(),i.Sb(5,"div",5),i.Sb(6,"div",0),i.Sb(7,"div",6),i.Mc(8,Ii,1,5,"i",7),i.Sb(9,"tree-root",8,9),i.gc("updateData",(function(){return t.onUpdateData()})),i.Mc(11,zi,4,5,"ng-template",null,10,i.Nc),i.Rb(),i.Rb(),i.Mc(13,$i,4,2,"div",11),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()),2&e&&(i.yb(8),i.pc("ngIf",t.loadingIndicator),i.yb(1),i.pc("nodes",t.nodes)("options",t.treeOptions),i.yb(4),i.pc("ngIf",t.metadata))},directives:[o.r,xn.b,o.p,en.a],styles:[".tree-container[_ngcontent-%COMP%]{height:calc(100vh - 200px)}"]}),e})();var Wi=n("LRne"),Vi=n("lJxs"),Bi=n("Kqap"),Ui=n("BFxc"),Gi=n("xbPD"),qi=n("mCNh");function Ji(e,t,n){return 0===n?[t]:(e.push(t),e)}function Qi(){return function(e,t){return arguments.length>=2?function(n){return Object(qi.a)(Object(Bi.a)(e,t),Object(Ui.a)(1),Object(Gi.a)(t))(n)}:function(t){return Object(qi.a)(Object(Bi.a)((t,n,i)=>e(t,n,i+1)),Object(Ui.a)(1))(t)}}(Ji,[])}var Ki=n("5+tZ");let Zi=(()=>{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=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Xi=(()=>{class e{constructor(e,t){this.http=e,this.deviceService=t,this.baseURL="api/host",this.baseUIURL="ui-api/host"}list(){return this.http.get(this.baseURL)}create(e){return this.http.post(this.baseURL,{hostname:e},{observe:"response"})}delete(e){return this.http.delete(`${this.baseURL}/${e}`,{observe:"response"})}getDevices(e){return this.http.get(`${this.baseURL}/${e}/devices`).pipe(Object(Vi.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})}identifyDevice(e,t,n){return this.http.post(`${this.baseURL}/${e}/identify_device`,{device:t,duration:n})}getInventoryParams(e){let t=new a.e;return e&&(t=t.append("refresh",jt.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(Qi()):this.inventoryList(t),n.pipe(Object(Ki.a)(e=>{const t=jt.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(Wi.a)(t)}))}}return e.\u0275fac=function(t){return new(t||e)(i.dc(a.b),i.dc(Zi))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var er=n("kvvV"),tr=n("kn/O"),nr=n("IZUe"),ir=n("8xTl");function rr(e,t){1&e&&(i.Sb(0,"span",16),i.Wb(1,17),i.Rb())}function sr(e,t){1&e&&(i.Sb(0,"span",16),i.Wb(1,18),i.Rb())}function or(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",1),i.Sb(1,"form",2,3),i.Sb(3,"div",4),i.Sb(4,"div",5),i.Wb(5,6),i.jc(6,"titlecase"),i.jc(7,"upperFirst"),i.Rb(),i.Sb(8,"div",7),i.Sb(9,"div",8),i.Sb(10,"label",9),i.Wb(11,10),i.Rb(),i.Sb(12,"div",11),i.Nb(13,"input",12),i.Mc(14,rr,2,0,"span",13),i.Mc(15,sr,2,0,"span",13),i.Rb(),i.Rb(),i.Rb(),i.Sb(16,"div",14),i.Sb(17,"cd-form-button-panel",15),i.gc("submitActionEvent",(function(){return i.Dc(e),i.ic().submit()})),i.jc(18,"titlecase"),i.jc(19,"upperFirst"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.Ac(2),t=i.ic();i.yb(1),i.pc("formGroup",t.hostForm),i.yb(6),i.ac(i.kc(6,7,t.action))(i.kc(7,9,t.resource)),i.Xb(5),i.yb(7),i.pc("ngIf",t.hostForm.showError("hostname",e,"required")),i.yb(1),i.pc("ngIf",t.hostForm.showError("hostname",e,"uniqueName")),i.yb(2),i.pc("form",t.hostForm)("submitText",i.kc(18,11,t.action)+" "+i.kc(19,13,t.resource))}}let ar=(()=>{class e extends qn.a{constructor(e,t,n,i){super(),this.router=e,this.actionLabels=t,this.hostService=n,this.taskWrapper=i,this.resource="host",this.action=this.actionLabels.CREATE,this.createForm()}ngOnInit(){this.hostService.list().subscribe(e=>{this.hostnames=e.map(e=>e.hostname),this.loadingReady()})}createForm(){this.hostForm=new Jn.a({hostname:new kn.h("",{validators:[kn.A.required,Cn.a.custom("uniqueName",e=>this.hostnames&&-1!==this.hostnames.indexOf(e))]})})}submit(){const e=this.hostForm.get("hostname").value;this.taskWrapper.wrapTaskAroundCall({task:new er.a("host/"+gn.e.CREATE,{hostname:e}),call:this.hostService.create(e)}).subscribe({error:()=>{this.hostForm.setErrors({cdSubmitButton:!0})},complete:()=>{this.router.navigate(["/hosts"])}})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Pt.e),i.Mb(gn.b),i.Mb(Xi),i.Mb(tr.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-host-form"]],features:[i.vb],decls:1,vars:1,consts:function(){return[["class","cd-col-form",4,"cdFormLoading"],[1,"cd-col-form"],["name","hostForm","novalidate","",3,"formGroup"],["formDir","ngForm"],[1,"card"],[1,"card-header"],"" + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + "",[1,"card-body"],[1,"form-group","row"],["for","hostname",1,"cd-col-form-label","required"],"Hostname",[1,"cd-col-form-input"],["type","text","placeholder","mon-123","id","hostname","name","hostname","formControlName","hostname","autofocus","",1,"form-control"],["class","invalid-feedback",4,"ngIf"],[1,"card-footer"],["wrappingClass","text-right",3,"form","submitText","submitActionEvent"],[1,"invalid-feedback"],"This field is required.","The chosen hostname is already in use."]},template:function(e,t){1&e&&i.Mc(0,or,20,15,"div",0),2&e&&i.pc("cdFormLoading",t.loading)},directives:[Kn.a,kn.C,kn.r,Zn.a,kn.k,Xn.a,On.a,kn.d,ei.a,kn.q,kn.i,nr.a,o.r,ti.a],pipes:[o.A,ir.a],styles:[""]}),e})(),cr=(()=>{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 jt.a.every(t,t=>jt.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)(i.dc(a.b))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var lr=n("DNAf"),ur=function(e){return e.HOST_LIST="get_hosts",e.HOST_CREATE="add_host",e.HOST_DELETE="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.SERVICE_LIST="describe_service",e.SERVICE_CREATE="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}({}),dr=n("85J/"),hr=n("EgGo");n("jKX/");let fr=(()=>{class e{constructor(e,t){this.http=e,this.deviceService=t,this.path="api/osd",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:jt.a.join(jt.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(Vi.a)(e=>e.map(e=>this.deviceService.prepareDevice(e))))}}return e.\u0275fac=function(t){return new(t||e)(i.dc(a.b),i.dc(Zi))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var pr=n("/NlG");const mr=["deviceLocation"],br=["lifeExpectancy"],gr=["lifeExpectancyTimestamp"];function _r(e,t){if(1&e&&i.Nb(0,"cd-table",5),2&e){const e=i.ic();i.pc("data",e.devices)("columns",e.columns)}}function yr(e,t){1&e&&(i.Sb(0,"cd-alert-panel",6),i.Wb(1,7),i.Rb())}function vr(e,t){if(1&e&&(i.Sb(0,"span"),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.yb(1),i.Pc(e.dev)}}function wr(e,t){1&e&&i.Mc(0,vr,2,1,"span",8),2&e&&i.pc("ngForOf",t.value)}function Sr(e,t){if(1&e&&(i.Sb(0,"span"),i.Oc(1),i.jc(2,"i18nPlural"),i.Rb()),2&e){const e=i.ic().value,t=i.ic();i.yb(1),i.Qc("> ",i.lc(2,1,e.min,t.translationMapping),"")}}function Mr(e,t){if(1&e&&(i.Sb(0,"span"),i.Oc(1),i.jc(2,"i18nPlural"),i.Rb()),2&e){const e=i.ic().value,t=i.ic();i.yb(1),i.Qc("< ",i.lc(2,1,e.max,t.translationMapping),"")}}function kr(e,t){if(1&e&&(i.Sb(0,"span"),i.Oc(1),i.jc(2,"i18nPlural"),i.Rb()),2&e){const e=i.ic().value,t=i.ic();i.yb(1),i.Rc("",e.min," to ",i.lc(2,2,e.max,t.translationMapping),"")}}function xr(e,t){if(1&e&&(i.Mc(0,Sr,3,4,"span",9),i.Mc(1,Mr,3,4,"span",9),i.Mc(2,kr,3,5,"span",9)),2&e){const e=t.value;i.pc("ngIf",e.min&&!e.max),i.yb(1),i.pc("ngIf",e.max&&!e.min),i.yb(1),i.pc("ngIf",e.max&&e.min)}}function Dr(e,t){1&e&&i.Oc(0),2&e&&i.Qc(" ",t.value,"\n")}let Tr=(()=>{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:Ht.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)(i.Mb(Xi),i.Mb(o.e),i.Mb(fr))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-device-list"]],viewQuery:function(e,t){var n;1&e&&(i.Jc(mr,!0),i.Jc(br,!0),i.Jc(gr,!0)),2&e&&(i.zc(n=i.hc())&&(t.locationTemplate=n.first),i.zc(n=i.hc())&&(t.lifeExpectancyTemplate=n.first),i.zc(n=i.hc())&&(t.lifeExpectancyTimestampTemplate=n.first))},inputs:{hostname:"hostname",osdId:"osdId"},features:[i.wb],decls:8,vars:2,consts:function(){return[[3,"data","columns",4,"ngIf"],["type","warning",4,"ngIf"],["deviceLocation",""],["lifeExpectancy",""],["lifeExpectancyTimestamp",""],[3,"data","columns"],["type","warning"],"Neither hostname nor OSD ID given",[4,"ngFor","ngForOf"],[4,"ngIf"]]},template:function(e,t){1&e&&(i.Mc(0,_r,1,2,"cd-table",0),i.Mc(1,yr,2,0,"cd-alert-panel",1),i.Mc(2,wr,1,1,"ng-template",null,2,i.Nc),i.Mc(4,xr,3,3,"ng-template",null,3,i.Nc),i.Mc(6,Dr,1,1,"ng-template",null,4,i.Nc)),2&e&&(i.pc("ngIf",t.hostname||null!==t.osdId),i.yb(1),i.pc("ngIf",""===t.hostname&&null===t.osdId))},directives:[o.r,Bt.a,pr.a,o.q],pipes:[o.i],styles:[""]}),e})();var Cr=n("6qls");function Or(e,t){1&e&&(i.Sb(0,"cd-alert-panel",2),i.Wb(1,3),i.Rb())}function Lr(e,t){1&e&&(i.Sb(0,"cd-alert-panel",2),i.cc(1,4),i.Nb(2,"cd-doc",5),i.Zb(),i.Rb())}let Rr=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-orchestrator-doc-panel"]],inputs:{missingFeatures:"missingFeatures"},decls:3,vars:2,consts:function(){return[["type","info",4,"ngIf","ngIfElse"],["elseBlock",""],["type","info"],"The feature is not supported in the current Orchestrator.","Orchestrator is not available. Please consult the " + "\ufffd#2\ufffd" + "" + "\ufffd/#2\ufffd" + " on how to configure and enable the functionality.",["section","orch"]]},template:function(e,t){if(1&e&&(i.Mc(0,Or,2,0,"cd-alert-panel",0),i.Mc(1,Lr,3,0,"ng-template",null,1,i.Nc)),2&e){const e=i.Ac(2);i.pc("ngIf",t.missingFeatures)("ngIfElse",e)}},directives:[o.r,pr.a,Cr.a],styles:[""]}),e})(),Er=(()=>{class e{constructor(e,t,n,r,s,o){this.authStorageService=e,this.dimlessBinary=t,this.modalService=n,this.notificationService=r,this.orchService=s,this.hostService=o,this.devices=[],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 i.o,this.fetchInventory=new i.o,this.icons=_n.a,this.columns=[],this.selection=new Wt.a,this.orchStatus=void 0,this.actionOrchFeatures={identify:[ur.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:()=>jt.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:Ht.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:Ht.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:Ht.a.badge,customTemplateConfig:{class:"badge-dark",prefix:"osd."}}];this.columns=e.filter(e=>!this.hiddenColumns.includes(e.prop)),jt.a.forEach(this.filterColumns,e=>{const t=jt.a.find(this.columns,{prop:e});t&&(t.filterable=!0)}),this.fetchInventory.observers.length>0&&(this.fetchInventorySub=this.table.fetchData.subscribe(()=>{this.fetchInventory.emit()}))}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(Tn.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(yn.a.success,"Identifying '" + n + "' started on host '" + t + "'")})}})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Jt.a),i.Mb(Zt.a),i.Mb(vn.a),i.Mb(wn.a),i.Mb(cr),i.Mb(Xi))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-inventory-devices"]],viewQuery:function(e,t){var n;1&e&&i.Jc(Bt.a,!0),2&e&&i.zc(n=i.hc())&&(t.table=n.first)},inputs:{devices:"devices",hiddenColumns:"hiddenColumns",filterColumns:"filterColumns",selectionType:"selectionType",orchStatus:"orchStatus"},outputs:{filterChange:"filterChange",fetchInventory:"fetchInventory"},decls:2,vars:9,consts:[["identifier","uid","columnMode","flex",3,"data","columns","forceIdentifier","selectionType","autoReload","searchField","updateSelection","columnFiltersChanged"],[1,"table-actions",3,"permission","selection","tableActions"]],template:function(e,t){1&e&&(i.Sb(0,"cd-table",0),i.gc("updateSelection",(function(e){return t.updateSelection(e)}))("columnFiltersChanged",(function(e){return t.onColumnFiltersChanged(e)})),i.Nb(1,"cd-table-actions",1),i.Rb()),2&e&&(i.pc("data",t.devices)("columns",t.columns)("forceIdentifier",!0)("selectionType",t.selectionType)("autoReload",!1)("searchField",!1),i.yb(1),i.pc("permission",t.permission)("selection",t.selection)("tableActions",t.tableActions))},directives:[Bt.a,Sn.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 Ar(e,t){1&e&&i.Nb(0,"cd-orchestrator-doc-panel")}const Ir=function(){return[]},Pr=function(){return["hostname"]};function Nr(e,t){if(1&e){const e=i.Tb();i.Qb(0),i.Sb(1,"legend"),i.Wb(2,1),i.Rb(),i.Sb(3,"div",2),i.Sb(4,"div",3),i.Sb(5,"cd-inventory-devices",4),i.gc("fetchInventory",(function(){return i.Dc(e),i.ic().refresh()})),i.Rb(),i.Rb(),i.Rb(),i.Pb()}if(2&e){const e=i.ic();i.yb(5),i.pc("devices",e.devices)("hiddenColumns",void 0===e.hostname?i.tc(3,Ir):i.tc(4,Pr))("orchStatus",e.orchStatus)}}let jr=(()=>{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(Ut.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)(i.Mb(cr),i.Mb(Xi),i.Mb(i.A))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-inventory"]],inputs:{hostname:"hostname"},features:[i.wb],decls:2,vars:2,consts:function(){return[[4,"ngIf"],"Physical Disks",[1,"row"],[1,"col-md-12"],["selectionType","single",3,"devices","hiddenColumns","orchStatus","fetchInventory"]]},template:function(e,t){1&e&&(i.Mc(0,Ar,1,0,"cd-orchestrator-doc-panel",0),i.Mc(1,Nr,6,5,"ng-container",0)),2&e&&(i.pc("ngIf",t.showDocPanel),i.yb(1),i.pc("ngIf",null==t.orchStatus?null:t.orchStatus.available))},directives:[o.r,Rr,Er],styles:[""]}),e})(),Fr=(()=>{class e{constructor(e){this.http=e,this.url="api/service"}list(e){const t=e?{params:(new a.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)(i.dc(a.b))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Yr=n("Dwqy"),zr=n("zWsK");const $r=["statusTpl"],Hr=["daemonsTable"];function Wr(e,t){1&e&&i.Nb(0,"cd-orchestrator-doc-panel")}function Vr(e,t){if(1&e){const e=i.Tb();i.Sb(0,"cd-table",3,4),i.gc("fetchData",(function(t){return i.Dc(e),i.ic().getDaemons(t)})),i.Rb()}if(2&e){const e=i.ic();i.pc("data",e.daemons)("columns",e.columns)("autoReload",5e3)}}function Br(e,t){if(1&e&&(i.Sb(0,"span",5),i.jc(1,"pipeFunction"),i.Oc(2),i.Rb()),2&e){const e=t.row,n=i.ic();i.pc("ngClass",i.lc(1,2,e,n.getStatusClass)),i.yb(2),i.Qc(" ",e.status_desc," ")}}let Ur=(()=>{class e{constructor(e,t,n,i){this.hostService=e,this.cephServiceService=t,this.orchService=n,this.relativeDatePipe=i,this.daemons=[],this.columns=[],this.hasOrchestrator=!1,this.showDocPanel=!1}ngOnInit(){this.columns=[{name:"Hostname",prop:"hostname",flexGrow:1,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:3,filterable:!0,cellTransformation:Ht.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:3,filterable:!0,cellTransformation:Ht.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:2}],this.orchService.status().subscribe(e=>{this.hasOrchestrator=e.available,this.showDocPanel=!e.available})}ngOnChanges(){jt.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()}getStatusClass(e){return jt.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()})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Xi),i.Mb(Fr),i.Mb(cr),i.Mb(Yr.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-service-daemon-list"]],viewQuery:function(e,t){var n;1&e&&(i.Jc($r,!0),i.Tc(Hr,!0)),2&e&&(i.zc(n=i.hc())&&(t.statusTpl=n.first),i.zc(n=i.hc())&&(t.daemonsTableTpls=n))},inputs:{serviceName:"serviceName",hostname:"hostname"},features:[i.wb],decls:4,vars:2,consts:[[4,"ngIf"],["columnMode","flex",3,"data","columns","autoReload","fetchData",4,"ngIf"],["statusTpl",""],["columnMode","flex",3,"data","columns","autoReload","fetchData"],["daemonsTable",""],[1,"badge",3,"ngClass"]],template:function(e,t){1&e&&(i.Mc(0,Wr,1,0,"cd-orchestrator-doc-panel",0),i.Mc(1,Vr,2,3,"cd-table",1),i.Mc(2,Br,3,5,"ng-template",null,2,i.Nc)),2&e&&(i.pc("ngIf",t.showDocPanel),i.yb(1),i.pc("ngIf",t.hasOrchestrator))},directives:[o.r,Rr,Bt.a,o.p],pipes:[zr.b],styles:[""]}),e})();var Gr=n("XFyV");const qr=["innerNav"];function Jr(e,t){1&e&&(i.Sb(0,"cd-alert-panel",5),i.Wb(1,6),i.Rb())}function Qr(e,t){1&e&&(i.Sb(0,"cd-alert-panel",7),i.Wb(1,8),i.Rb())}function Kr(e,t){1&e&&(i.Sb(0,"cd-alert-panel",10),i.Wb(1,11),i.Rb())}function Zr(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"cd-alert-panel",20),i.Oc(2),i.Rb(),i.Pb()),2&e){const e=i.ic(2).$implicit;i.yb(2),i.Pc(e.value.userMessage)}}function Xr(e,t){1&e&&(i.Sb(0,"cd-alert-panel",23),i.Yb(1,24),i.Wb(2,25),i.Rb())}function es(e,t){1&e&&(i.Qb(0),i.Sb(1,"cd-alert-panel",27),i.Yb(2,28),i.Wb(3,29),i.Rb(),i.Pb())}function ts(e,t){1&e&&(i.Sb(0,"cd-alert-panel",30),i.Yb(1,31),i.Wb(2,32),i.Rb())}function ns(e,t){if(1&e&&(i.Mc(0,es,4,0,"ng-container",0),i.Mc(1,ts,3,0,"ng-template",null,26,i.Nc)),2&e){const e=i.Ac(2),t=i.ic(3).$implicit;i.pc("ngIf",t.value.info.smart_status.passed)("ngIfElse",e)}}function is(e,t){if(1&e&&(i.Mc(0,Xr,3,0,"cd-alert-panel",21),i.jc(1,"pipeFunction"),i.Mc(2,ns,3,2,"ng-template",null,22,i.Nc)),2&e){const e=i.Ac(3),t=i.ic(2).$implicit,n=i.ic(4);i.pc("ngIf",i.lc(1,2,null==t.value.info?null:t.value.info.smart_status,n.isEmpty))("ngIfElse",e)}}function rs(e,t){if(1&e&&i.Nb(0,"cd-table-key-value",39),2&e){const e=i.ic(4).$implicit;i.pc("renderObjects",!0)("data",e.value.info)}}function ss(e,t){1&e&&(i.Sb(0,"cd-alert-panel",40),i.Wb(1,41),i.Rb())}function os(e,t){if(1&e&&(i.Mc(0,rs,1,2,"cd-table-key-value",37),i.jc(1,"pipeFunction"),i.Mc(2,ss,2,0,"cd-alert-panel",38),i.jc(3,"pipeFunction")),2&e){const e=i.ic(3).$implicit,t=i.ic(4);i.pc("ngIf",!i.lc(1,2,e.value.info,t.isEmpty)),i.yb(2),i.pc("ngIf",i.lc(3,5,e.value.info,t.isEmpty))}}function as(e,t){if(1&e&&i.Nb(0,"cd-table",45),2&e){const e=i.ic(4).$implicit,t=i.ic(4);i.pc("data",e.value.smart.attributes.table)("columns",t.smartDataColumns)}}function cs(e,t){if(1&e&&i.Nb(0,"cd-table-key-value",46),2&e){const e=i.ic(4).$implicit;i.pc("renderObjects",!0)("data",e.value.smart.nvmeData)}}function ls(e,t){1&e&&(i.Sb(0,"cd-alert-panel",47),i.Wb(1,48),i.Rb())}function us(e,t){if(1&e&&(i.Mc(0,as,1,2,"cd-table",42),i.Mc(1,cs,1,2,"cd-table-key-value",43),i.Mc(2,ls,2,0,"cd-alert-panel",44)),2&e){const e=i.ic(3).$implicit;i.pc("ngIf",null==e.value.smart?null:e.value.smart.attributes),i.yb(1),i.pc("ngIf",null==e.value.smart?null:e.value.smart.nvmeData),i.yb(1),i.pc("ngIf",!(null!=e.value.smart&&e.value.smart.attributes||null!=e.value.smart&&e.value.smart.nvmeData))}}function ds(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"ul",12,33),i.Sb(3,"li",34),i.Sb(4,"a",17),i.Wb(5,35),i.Rb(),i.Mc(6,os,4,8,"ng-template",18),i.Rb(),i.Sb(7,"li",34),i.Sb(8,"a",17),i.Wb(9,36),i.Rb(),i.Mc(10,us,3,3,"ng-template",18),i.Rb(),i.Rb(),i.Nb(11,"div",15),i.Pb()),2&e){const e=i.Ac(2);i.yb(3),i.pc("ngbNavItem",1),i.yb(4),i.pc("ngbNavItem",2),i.yb(4),i.pc("ngbNavOutlet",e)}}function hs(e,t){if(1&e&&(i.Mc(0,Zr,3,1,"ng-container",0),i.Mc(1,is,4,5,"ng-template",null,19,i.Nc),i.Mc(3,ds,12,3,"ng-container",4),i.jc(4,"pipeFunction"),i.jc(5,"pipeFunction")),2&e){const e=i.Ac(2),t=i.ic().$implicit,n=i.ic(4);i.pc("ngIf",t.value.error)("ngIfElse",e),i.yb(3),i.pc("ngIf",!i.lc(4,3,t.value.info,n.isEmpty)||!i.lc(5,6,t.value.smart,n.isEmpty))}}function fs(e,t){if(1&e&&(i.Sb(0,"li",16),i.Sb(1,"a",17),i.Oc(2),i.Rb(),i.Mc(3,hs,6,9,"ng-template",18),i.Rb()),2&e){const e=t.$implicit;i.yb(2),i.Rc("",e.value.device," (",e.value.identifier,")")}}function ps(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"ul",12,13),i.Mc(3,fs,4,2,"li",14),i.jc(4,"keyvalue"),i.Rb(),i.Nb(5,"div",15),i.Pb()),2&e){const e=i.Ac(2),t=i.ic(3);i.yb(3),i.pc("ngForOf",i.kc(4,2,t.data)),i.yb(2),i.pc("ngbNavOutlet",e)}}function ms(e,t){if(1&e&&(i.Qb(0),i.Mc(1,Kr,2,0,"cd-alert-panel",9),i.jc(2,"pipeFunction"),i.Mc(3,ps,6,4,"ng-container",4),i.jc(4,"pipeFunction"),i.Pb()),2&e){const e=i.ic(2);i.yb(1),i.pc("ngIf",i.lc(2,2,e.data,e.isEmpty)),i.yb(2),i.pc("ngIf",!i.lc(4,5,e.data,e.isEmpty))}}function bs(e,t){if(1&e&&(i.Qb(0),i.Mc(1,Jr,2,0,"cd-alert-panel",2),i.Mc(2,Qr,2,0,"cd-alert-panel",3),i.Mc(3,ms,5,8,"ng-container",4),i.Pb()),2&e){const e=i.ic();i.yb(1),i.pc("ngIf",e.error),i.yb(1),i.pc("ngIf",e.incompatible),i.yb(1),i.pc("ngIf",!e.error&&!e.incompatible)}}function gs(e,t){1&e&&(i.Sb(0,"cd-loading-panel"),i.Wb(1,49),i.Rb())}let _s=(()=>{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=jt.a.isEmpty}isSmartError(e){return void 0!==jt.a.get(e,"error")}isNvmeSmartData(e){return"nvme"===jt.a.get(e,"device.protocol","").toLowerCase()}isHddSmartData(e){return"ata"===jt.a.get(e,"device.protocol","").toLowerCase()}fetchData(e){const t={};jt.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:jt.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=jt.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)(i.Mb(fr),i.Mb(Xi))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-smart-list"]],viewQuery:function(e,t){var n;1&e&&i.Tc(qr,!0),2&e&&i.zc(n=i.hc())&&(t.nav=n.first)},inputs:{osdId:"osdId",hostname:"hostname"},features:[i.wb],decls:3,vars:2,consts:function(){return[[4,"ngIf","ngIfElse"],["isLoading",""],["type","error",4,"ngIf"],["type","warning",4,"ngIf"],[4,"ngIf"],["type","error"],"Failed to retrieve SMART data.",["type","warning"],"The data received has the JSON format version 2.x and is currently incompatible with the dashboard.",["type","info",4,"ngIf"],["type","info"],"No SMART data available.",["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",4,"ngIf","ngIfElse",6,"title"],["hasSmartStatus",""],["id","alert-self-test-unknown","size","slim","type","warning",6,"title"],["title","SMART overall-health self-assessment test result"],"unknown",["selfTestFailed",""],["id","alert-self-test-passed","size","slim","type","info",6,"title"],["title","SMART overall-health self-assessment test result"],"passed",["id","alert-self-test-failed","size","slim","type","warning",6,"title"],["title","SMART overall-health self-assessment test result"],"failed",["innerNav","ngbNav"],[3,"ngbNavItem"],"Device Information","SMART",[3,"renderObjects","data",4,"ngIf"],["id","alert-device-info-unavailable","type","info",4,"ngIf"],[3,"renderObjects","data"],["id","alert-device-info-unavailable","type","info"],"No device information available for this device.",["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"],"No SMART data available for this device.","SMART data is loading."]},template:function(e,t){if(1&e&&(i.Mc(0,bs,4,3,"ng-container",0),i.Mc(1,gs,2,0,"ng-template",null,1,i.Nc)),2&e){const e=i.Ac(2);i.pc("ngIf",!t.loading)("ngIfElse",e)}},directives:[o.r,pr.a,Qt.p,o.q,Qt.u,Qt.r,Qt.s,Qt.q,en.a,Bt.a,Gr.a],pipes:[zr.b,o.k],styles:[""]}),e})();function ys(e,t){if(1&e&&i.Nb(0,"cd-device-list",14),2&e){const e=i.ic(2);i.pc("hostname",e.selection.hostname)}}function vs(e,t){if(1&e&&i.Nb(0,"cd-inventory",14),2&e){const e=i.ic(3);i.pc("hostname",e.selectedHostname)}}function ws(e,t){1&e&&(i.Sb(0,"li",15),i.Sb(1,"a",5),i.Wb(2,16),i.Rb(),i.Mc(3,vs,1,1,"ng-template",7),i.Rb())}function Ss(e,t){if(1&e&&i.Nb(0,"cd-service-daemon-list",14),2&e){const e=i.ic(3);i.pc("hostname",e.selectedHostname)}}function Ms(e,t){1&e&&(i.Sb(0,"li",17),i.Sb(1,"a",5),i.Wb(2,18),i.Rb(),i.Mc(3,Ss,1,1,"ng-template",7),i.Rb())}function ks(e,t){if(1&e&&i.Nb(0,"cd-grafana",21),2&e){const e=i.ic(3);i.pc("grafanaPath","host-details?var-ceph_hosts="+e.selectedHostname)}}function xs(e,t){1&e&&(i.Sb(0,"li",19),i.Sb(1,"a",5),i.Wb(2,20),i.Rb(),i.Mc(3,ks,1,1,"ng-template",7),i.Rb())}function Ds(e,t){if(1&e&&i.Nb(0,"cd-smart-list",14),2&e){const e=i.ic(3);i.pc("hostname",e.selectedHostname)}}function Ts(e,t){if(1&e&&i.Mc(0,Ds,1,1,"cd-smart-list",22),2&e){const e=i.ic(2),t=i.Ac(2);i.pc("ngIf",e.selectedHostname)("ngIfElse",t)}}function Cs(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"ul",2,3),i.Sb(3,"li",4),i.Sb(4,"a",5),i.Wb(5,6),i.Rb(),i.Mc(6,ys,1,1,"ng-template",7),i.Rb(),i.Mc(7,ws,4,0,"li",8),i.Mc(8,Ms,4,0,"li",9),i.Mc(9,xs,4,0,"li",10),i.Sb(10,"li",11),i.Sb(11,"a",5),i.Wb(12,12),i.Rb(),i.Mc(13,Ts,1,2,"ng-template",7),i.Rb(),i.Rb(),i.Nb(14,"div",13),i.Pb()),2&e){const e=i.Ac(2),t=i.ic();i.yb(7),i.pc("ngIf",t.permissions.hosts.read),i.yb(1),i.pc("ngIf",t.permissions.hosts.read),i.yb(1),i.pc("ngIf",t.permissions.grafana.read),i.yb(5),i.pc("ngbNavOutlet",e)}}function Os(e,t){1&e&&(i.Sb(0,"cd-alert-panel",23),i.Wb(1,24),i.Rb())}let Ls=(()=>{class e{get selectedHostname(){return void 0!==this.selection?this.selection.hostname:null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-host-details"]],inputs:{permissions:"permissions",selection:"selection"},decls:3,vars:1,consts:function(){return[[4,"ngIf"],["noHostname",""],["ngbNav","","cdStatefulTab","host-details",1,"nav-tabs"],["nav","ngbNav"],["ngbNavItem","devices"],["ngbNavLink",""],"Devices",["ngbNavContent",""],["ngbNavItem","inventory",4,"ngIf"],["ngbNavItem","daemons",4,"ngIf"],["ngbNavItem","performance-details",4,"ngIf"],["ngbNavItem","device-health"],"Device health",[3,"ngbNavOutlet"],[3,"hostname"],["ngbNavItem","inventory"],"Inventory",["ngbNavItem","daemons"],"Daemons",["ngbNavItem","performance-details"],"Performance Details",["uid","rtOg0AiWz","grafanaStyle","four",3,"grafanaPath"],[3,"hostname",4,"ngIf","ngIfElse"],["type","error"],"No hostname found."]},template:function(e,t){1&e&&(i.Mc(0,Cs,15,4,"ng-container",0),i.Mc(1,Os,2,0,"ng-template",null,1,i.Nc)),2&e&&i.pc("ngIf",t.selection)},directives:[o.r,Qt.p,Kt.a,Qt.r,Qt.s,Qt.q,Qt.u,Tr,jr,Ur,Fn.a,_s,pr.a],styles:[""]}),e})();const Rs=["servicesTpl"],Es=["maintenanceConfirmTpl"];function As(e,t){if(1&e){const e=i.Tb();i.Sb(0,"cd-table",10),i.gc("fetchData",(function(t){return i.Dc(e),i.ic().getHosts(t)}))("setExpandedRow",(function(t){return i.Dc(e),i.ic().setExpandedRow(t)}))("updateSelection",(function(t){return i.Dc(e),i.ic().updateSelection(t)})),i.Sb(1,"div",11),i.Nb(2,"cd-table-actions",12),i.Rb(),i.Nb(3,"cd-host-details",13),i.Rb()}if(2&e){const e=i.ic();i.pc("data",e.hosts)("columns",e.columns)("hasDetails",!0),i.yb(2),i.pc("permission",e.permissions.hosts)("selection",e.selection)("tableActions",e.tableActions),i.yb(1),i.pc("permissions",e.permissions)("selection",e.expandedRow)}}function Is(e,t){1&e&&i.Nb(0,"cd-grafana",15),2&e&&i.pc("grafanaPath","host-overview?")}function Ps(e,t){1&e&&(i.Sb(0,"li",2),i.Sb(1,"a",3),i.Wb(2,14),i.Rb(),i.Mc(3,Is,1,1,"ng-template",5),i.Rb())}const Ns=function(e){return[e]};function js(e,t){if(1&e&&(i.Sb(0,"a",19),i.Oc(1),i.Rb()),2&e){const e=i.ic().$implicit,t=i.ic(2);i.pc("routerLink",i.uc(4,Ns,e.cdLink))("queryParams",t.cdParams),i.yb(1),i.Rc("",e.type,".",e.id,"")}}function Fs(e,t){if(1&e&&(i.Sb(0,"span"),i.Oc(1),i.Rb()),2&e){const e=i.ic().$implicit;i.yb(1),i.Rc(" ",e.type,".",e.id," ")}}function Ys(e,t){1&e&&(i.Qb(0),i.Oc(1,", "),i.Pb())}function zs(e,t){if(1&e&&(i.Sb(0,"span"),i.Mc(1,js,2,6,"a",17),i.Mc(2,Fs,2,2,"span",18),i.Mc(3,Ys,2,0,"ng-container",18),i.Rb()),2&e){const e=t.$implicit,n=t.last;i.yb(1),i.pc("ngIf",e.canRead),i.yb(1),i.pc("ngIf",!e.canRead),i.yb(1),i.pc("ngIf",!n)}}function $s(e,t){1&e&&i.Mc(0,zs,4,3,"span",16),2&e&&i.pc("ngForOf",t.value)}function Hs(e,t){if(1&e&&(i.Sb(0,"ul"),i.Sb(1,"li"),i.Wb(2,20),i.Rb(),i.Rb()),2&e){const e=i.ic().$implicit;i.yb(2),i.ac(e),i.Xb(2)}}function Ws(e,t){if(1&e&&(i.Sb(0,"div"),i.Mc(1,Hs,3,1,"ul",18),i.Rb()),2&e){const e=t.last,n=i.ic(2);i.yb(1),i.pc("ngIf",!e||"1"==n.errorMessage.length)}}function Vs(e,t){1&e&&(i.Qb(0),i.Wb(1,21),i.Pb())}function Bs(e,t){if(1&e&&(i.Mc(0,Ws,2,1,"div",16),i.Mc(1,Vs,2,0,"ng-container",18)),2&e){const e=i.ic();i.pc("ngForOf",e.errorMessage),i.yb(1),i.pc("ngIf",e.showSubmit)}}let Us=(()=>{class e extends $t.a{constructor(e,t,n,i,r,s,o,a,c,l){super(),this.authStorageService=e,this.hostService=t,this.cephShortVersionPipe=n,this.urlBuilder=i,this.actionLabels=r,this.modalService=s,this.taskWrapper=o,this.router=a,this.notificationService=c,this.orchService=l,this.columns=[],this.hosts=[],this.isLoadingHosts=!1,this.cdParams={fromLink:"/hosts"},this.selection=new Wt.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={create:[ur.HOST_CREATE],edit:[ur.HOST_LABEL_ADD,ur.HOST_LABEL_REMOVE],delete:[ur.HOST_DELETE],maintenance:[ur.HOST_MAINTENANCE_ENTER,ur.HOST_MAINTENANCE_EXIT]},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)},{name:this.actionLabels.EDIT,permission:"update",icon:_n.a.edit,click:()=>this.editAction(),disable:e=>this.getDisable("edit",e)},{name:this.actionLabels.DELETE,permission:"delete",icon:_n.a.destroy,click:()=>this.deleteAction(),disable:e=>this.getDisable("delete",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},{name:this.actionLabels.EXIT_MAINTENANCE,permission:"update",icon:_n.a.exit,click:()=>this.hostMaintenance(),disable:e=>this.getDisable("maintenance",e)||this.isExecuting||!this.enableButton}]}ngOnInit(){this.columns=[{name:"Hostname",prop:"hostname",flexGrow:1},{name:"Services",prop:"services",flexGrow:3,cellTemplate:this.servicesTpl},{name:"Labels",prop:"labels",flexGrow:1,cellTransformation:Ht.a.badge,customTemplateConfig:{class:"badge-dark"}},{name:"Status",prop:"status",flexGrow:1,cellTransformation:Ht.a.badge,customTemplateConfig:{map:{maintenance:{class:"badge-warning"}}}},{name:"Version",prop:"ceph_version",flexGrow:1,pipe:this.cephShortVersionPipe}],this.orchService.status().subscribe(e=>{this.orchStatus=e})}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=e.map(e=>({enabled:!0,name:e}));this.modalService.show(Tn.a,{titleText:"Edit Host: " + t.hostname + "",fields:[{type:"select-badges",name:"labels",value:t.labels,label:"Labels",typeConfig:{customBadges:!0,options:n,messages:new lr.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(yn.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(yn.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"))this.notificationService.show(yn.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(Dn.a,t)}}):this.hostService.update(e.hostname,!1,[],!0).subscribe(()=>{this.isExecuting=!1,this.notificationService.show(yn.a.success,"\"" + e.hostname + "\" has exited maintenance"),this.table.refreshBtn()})}getDisable(e,t){if("delete"===e||"edit"===e||"maintenance"===e){if(!(null==t?void 0:t.hasSingleSelection))return!0;if(!jt.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:"delete",submitActionObservable:()=>this.taskWrapper.wrapTaskAroundCall({task:new er.a("host/delete",{hostname:e}),call:this.hostService.delete(e)})})}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.hostService.list().subscribe(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)),this.hosts=e,this.isLoadingHosts=!1},()=>{this.isLoadingHosts=!1,e.error()})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Jt.a),i.Mb(Xi),i.Mb(dr.a),i.Mb(hr.a),i.Mb(gn.b),i.Mb(vn.a),i.Mb(tr.a),i.Mb(Pt.e),i.Mb(wn.a),i.Mb(cr))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-hosts"]],viewQuery:function(e,t){var n;1&e&&(i.Tc(Bt.a,!0),i.Jc(Rs,!0),i.Jc(Es,!0)),2&e&&(i.zc(n=i.hc())&&(t.table=n.first),i.zc(n=i.hc())&&(t.servicesTpl=n.first),i.zc(n=i.hc())&&(t.maintenanceConfirmTpl=n.first))},features:[i.xb([{provide:hr.a,useValue:new hr.a("hosts")}]),i.vb],decls:12,vars:2,consts:function(){return[["ngbNav","",1,"nav-tabs"],["nav","ngbNav"],["ngbNavItem",""],["ngbNavLink",""],"Hosts List",["ngbNavContent",""],["ngbNavItem","",4,"ngIf"],[3,"ngbNavOutlet"],["servicesTpl",""],["maintenanceConfirmTpl",""],["columnMode","flex","selectionType","single",3,"data","columns","hasDetails","fetchData","setExpandedRow","updateSelection"],[1,"table-actions","btn-toolbar"],["id","host-actions",1,"btn-group",3,"permission","selection","tableActions"],["cdTableDetail","",3,"permissions","selection"],"Overall Performance",["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"],"" + "\ufffd0\ufffd" + "","Are you sure you want to continue?"]},template:function(e,t){if(1&e&&(i.Sb(0,"ul",0,1),i.Sb(2,"li",2),i.Sb(3,"a",3),i.Wb(4,4),i.Rb(),i.Mc(5,As,4,8,"ng-template",5),i.Rb(),i.Mc(6,Ps,4,0,"li",6),i.Rb(),i.Nb(7,"div",7),i.Mc(8,$s,1,1,"ng-template",null,8,i.Nc),i.Mc(10,Bs,2,2,"ng-template",null,9,i.Nc)),2&e){const e=i.Ac(1);i.yb(6),i.pc("ngIf",t.permissions.grafana.read),i.yb(1),i.pc("ngbNavOutlet",e)}},directives:[Qt.p,Qt.r,Qt.s,Qt.q,o.r,Qt.u,Bt.a,Sn.a,Ls,Fn.a,o.q,Pt.h],styles:[""]}),e})(),Gs=(()=>{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)(i.dc(a.b))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var qs=n("Iab2");let Js=(()=>{class e{download(e,t){Object(qs.saveAs)(new Blob([e]),t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Qs=function(e){return[e]};function Ks(e,t){if(1&e){const e=i.Tb();i.Sb(0,"button",5),i.gc("click",(function(){return i.Dc(e),i.ic().download("json")})),i.Nb(1,"i",2),i.Sb(2,"span"),i.Oc(3,"JSON"),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.yb(1),i.pc("ngClass",i.uc(1,Qs,e.icons.json))}}function Zs(e,t){if(1&e){const e=i.Tb();i.Sb(0,"button",5),i.gc("click",(function(){return i.Dc(e),i.ic().download()})),i.Nb(1,"i",2),i.Sb(2,"span"),i.Oc(3,"Text"),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.yb(1),i.pc("ngClass",i.uc(1,Qs,e.icons.text))}}let Xs=(()=>{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)(i.Mb(Js))},e.\u0275cmp=i.Gb({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&&(i.Sb(0,"div",0),i.Sb(1,"button",1),i.Nb(2,"i",2),i.Rb(),i.Sb(3,"div",3),i.Mc(4,Ks,4,3,"button",4),i.Mc(5,Zs,4,3,"button",4),i.Rb(),i.Rb()),2&e&&(i.yb(1),i.pc("title",t.title),i.yb(1),i.pc("ngClass",i.uc(4,Qs,t.icons.download)),i.yb(2),i.pc("ngIf",t.objectItem),i.yb(1),i.pc("ngIf",t.textItem))},directives:[Qt.i,On.a,Qt.m,o.p,Qt.k,o.r,Qt.j],styles:[""]}),e})();var eo=n("cEzo"),to=n("E2fk");function no(e,t){1&e&&i.Ob(0)}function io(e,t){if(1&e&&(i.Sb(0,"div",19),i.Nb(1,"cd-download-button",20),i.Nb(2,"cd-copy-2-clipboard-button",21),i.Rb()),2&e){const e=i.ic(4);i.yb(1),i.pc("objectItem",e.clog)("textItem",e.clogText),i.yb(1),i.pc("source",e.clogText)("byId",!1)}}function ro(e,t){if(1&e&&(i.Sb(0,"p"),i.Sb(1,"span",22),i.Oc(2),i.jc(3,"cdDate"),i.Rb(),i.Sb(4,"span"),i.jc(5,"logPriority"),i.Oc(6),i.Rb(),i.Sb(7,"span",23),i.Oc(8),i.Rb(),i.Rb()),2&e){const e=t.$implicit;i.yb(2),i.Pc(i.kc(3,6,e.stamp)),i.yb(2),i.Bb("priority ",i.kc(5,8,e.priority),""),i.yb(2),i.Pc(e.priority),i.yb(2),i.Pc(e.message)}}function so(e,t){1&e&&i.Ob(0)}function oo(e,t){if(1&e&&(i.Sb(0,"div",14),i.Mc(1,io,3,4,"div",15),i.Sb(2,"div",16),i.Mc(3,ro,9,10,"p",17),i.Mc(4,so,1,0,"ng-container",18),i.Rb(),i.Rb()),2&e){const e=i.ic(3),t=i.Ac(4);i.yb(1),i.pc("ngIf",e.clog.length),i.yb(2),i.pc("ngForOf",e.clog),i.yb(1),i.pc("ngIf",0!=e.clog.length)("ngIfElse",t)}}function ao(e,t){if(1&e&&i.Mc(0,oo,5,4,"div",13),2&e){const e=i.ic(2);i.pc("ngIf",e.clog)}}function co(e,t){if(1&e&&(i.Sb(0,"div",19),i.Nb(1,"cd-download-button",24),i.Nb(2,"cd-copy-2-clipboard-button",21),i.Rb()),2&e){const e=i.ic(4);i.yb(1),i.pc("objectItem",e.audit_log)("textItem",e.auditLogText),i.yb(1),i.pc("source",e.auditLogText)("byId",!1)}}function lo(e,t){if(1&e&&(i.Sb(0,"p"),i.Sb(1,"span",22),i.Oc(2),i.jc(3,"cdDate"),i.Rb(),i.Sb(4,"span"),i.jc(5,"logPriority"),i.Oc(6),i.Rb(),i.Sb(7,"span",23),i.Oc(8),i.Rb(),i.Rb()),2&e){const e=t.$implicit;i.yb(2),i.Pc(i.kc(3,6,e.stamp)),i.yb(2),i.Bb("priority ",i.kc(5,8,e.priority),""),i.yb(2),i.Pc(e.priority),i.yb(2),i.Pc(e.message)}}function uo(e,t){1&e&&i.Ob(0)}function ho(e,t){if(1&e&&(i.Sb(0,"div",14),i.Mc(1,co,3,4,"div",15),i.Sb(2,"div",16),i.Mc(3,lo,9,10,"p",17),i.Mc(4,uo,1,0,"ng-container",18),i.Rb(),i.Rb()),2&e){const e=i.ic(3),t=i.Ac(4);i.yb(1),i.pc("ngIf",e.audit_log.length),i.yb(2),i.pc("ngForOf",e.audit_log),i.yb(1),i.pc("ngIf",0!=e.audit_log.length)("ngIfElse",t)}}function fo(e,t){if(1&e&&i.Mc(0,ho,5,4,"div",13),2&e){const e=i.ic(2);i.pc("ngIf",e.audit_log)}}function po(e,t){if(1&e&&(i.Sb(0,"div"),i.Mc(1,no,1,0,"ng-container",3),i.Sb(2,"ul",4,5),i.Sb(4,"li",6),i.Sb(5,"a",7),i.Wb(6,8),i.Rb(),i.Mc(7,ao,1,1,"ng-template",9),i.Rb(),i.Sb(8,"li",10),i.Sb(9,"a",7),i.Wb(10,11),i.Rb(),i.Mc(11,fo,1,1,"ng-template",9),i.Rb(),i.Rb(),i.Nb(12,"div",12),i.Rb()),2&e){const e=i.Ac(3);i.ic();const t=i.Ac(2);i.yb(1),i.pc("ngTemplateOutlet",t),i.yb(11),i.pc("ngbNavOutlet",e)}}function mo(e,t){if(1&e&&(i.Sb(0,"option",46),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e.value),i.yb(1),i.Pc(e.name)}}const bo=function(e){return[e]};function go(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",25),i.Sb(1,"div",26),i.Sb(2,"label",27),i.Wb(3,28),i.Rb(),i.Sb(4,"select",29),i.gc("ngModelChange",(function(t){return i.Dc(e),i.ic().priority=t}))("ngModelChange",(function(){return i.Dc(e),i.ic().filterLogs()})),i.Mc(5,mo,2,2,"option",30),i.Rb(),i.Rb(),i.Sb(6,"div",26),i.Sb(7,"label",31),i.Wb(8,32),i.Rb(),i.Sb(9,"div",33),i.Sb(10,"div",34),i.Sb(11,"span",35),i.Nb(12,"i",36),i.Rb(),i.Rb(),i.Sb(13,"input",37),i.gc("ngModelChange",(function(t){return i.Dc(e),i.ic().search=t}))("keyup",(function(){return i.Dc(e),i.ic().filterLogs()})),i.Rb(),i.Sb(14,"div",38),i.Sb(15,"button",39),i.gc("click",(function(){return i.Dc(e),i.ic().clearSearchKey()})),i.Nb(16,"i"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(17,"div",26),i.Sb(18,"label",40),i.Wb(19,41),i.Rb(),i.Sb(20,"div",33),i.Sb(21,"input",42,43),i.gc("click",(function(){return i.Dc(e),i.Ac(22).open()}))("ngModelChange",(function(t){return i.Dc(e),i.ic().selectedDate=t}))("ngModelChange",(function(){return i.Dc(e),i.ic().filterLogs()})),i.Rb(),i.Sb(23,"span",38),i.Sb(24,"button",39),i.gc("click",(function(){return i.Dc(e),i.ic().clearDate()})),i.Nb(25,"i"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(26,"div",26),i.Sb(27,"label"),i.Wb(28,44),i.Rb(),i.Sb(29,"ngb-timepicker",45),i.gc("ngModelChange",(function(t){return i.Dc(e),i.ic().startTime=t}))("ngModelChange",(function(){return i.Dc(e),i.ic().filterLogs()})),i.Rb(),i.Sb(30,"span"),i.Oc(31,"\xa0\u2014\xa0"),i.Rb(),i.Sb(32,"ngb-timepicker",45),i.gc("ngModelChange",(function(t){return i.Dc(e),i.ic().endTime=t}))("ngModelChange",(function(){return i.Dc(e),i.ic().filterLogs()})),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.yb(4),i.pc("ngModel",e.priority),i.yb(1),i.pc("ngForOf",e.priorities),i.yb(7),i.pc("ngClass",i.uc(16,bo,e.icons.search)),i.yb(1),i.pc("ngModel",e.search),i.yb(3),i.Bb("icon-prepend ",e.icons.destroy,""),i.yb(5),i.pc("maxDate",e.maxDate)("ngModel",e.selectedDate),i.yb(4),i.Bb("icon-prepend ",e.icons.destroy,""),i.yb(4),i.pc("spinners",!1)("ngModel",e.startTime),i.yb(3),i.pc("spinners",!1)("ngModel",e.endTime)}}function _o(e,t){if(1&e){const e=i.Tb();i.Sb(0,"span"),i.Wb(1,47),i.Rb(),i.Sb(2,"span"),i.Oc(3,"\xa0"),i.Rb(),i.Sb(4,"a",48),i.gc("click",(function(){return i.Dc(e),i.ic().resetFilter()})),i.Wb(5,49),i.Rb()}}let yo=(()=>{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)(i.Mb(Gs),i.Mb(o.e),i.Mb(i.A))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-logs"]],decls:5,vars:1,consts:function(){return[[4,"ngIf"],["logFiltersTpl",""],["noEntriesTpl",""],[4,"ngTemplateOutlet"],["ngbNav","","cdStatefulTab","logs",1,"nav-tabs"],["nav","ngbNav"],["ngbNavItem","cluster-logs"],["ngbNavLink",""],"Cluster Logs",["ngbNavContent",""],["ngbNavItem","audit-logs"],"Audit Logs",[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"],"Priority:",["id","logs-priority",1,"form-control","custom-select",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["for","logs-keyword"],"Keyword:",[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"],"Date:",["id","logs-date","placeholder","YYYY-MM-DD","ngbDatepicker","",1,"form-control",3,"maxDate","ngModel","click","ngModelChange"],["d","ngbDatepicker"],"Time range:",[3,"spinners","ngModel","ngModelChange"],[3,"value"],"No log entries found. Please try to select different filter options.",["href","#",3,"click"],"Reset filter."]},template:function(e,t){1&e&&(i.Mc(0,po,13,2,"div",0),i.Mc(1,go,33,18,"ng-template",null,1,i.Nc),i.Mc(3,_o,6,0,"ng-template",null,2,i.Nc)),2&e&&i.pc("ngIf",t.contentData)},directives:[o.r,o.w,Qt.p,Kt.a,Qt.r,Qt.s,Qt.q,Qt.u,o.q,Xs,eo.a,Xn.a,On.a,kn.z,ei.a,kn.q,kn.t,o.p,kn.d,Qt.n,Qt.B,kn.u,kn.B],pipes:[Vt.a,to.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})();var vo=n("cp0P");let wo=(()=>{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)(i.dc(a.b))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var So=n("2EZI"),Mo=n("p4Cf");function ko(e,t){if(1&e&&(i.Sb(0,"cd-helper"),i.Oc(1),i.jc(2,"upperFirst"),i.Rb()),2&e){const e=i.ic().$implicit;i.yb(1),i.Qc(" ",i.kc(2,1,e.value.long_desc||e.value.desc)," ")}}function xo(e,t){if(1&e&&(i.Sb(0,"div",15),i.Sb(1,"div",16),i.Nb(2,"input",17),i.Nb(3,"label",18),i.Rb(),i.Rb()),2&e){const e=i.ic().$implicit;i.yb(2),i.qc("id",e.value.name),i.qc("formControlName",e.value.name),i.yb(1),i.qc("for",e.value.name)}}function Do(e,t){if(1&e&&i.Nb(0,"input",22),2&e){const e=i.ic(2).$implicit;i.qc("id",e.value.name),i.qc("formControlName",e.value.name)}}function To(e,t){if(1&e&&(i.Sb(0,"option",25),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("ngValue",e),i.yb(1),i.Qc(" ",e," ")}}function Co(e,t){if(1&e&&(i.Sb(0,"select",23),i.Mc(1,To,2,2,"option",24),i.Rb()),2&e){const e=i.ic(2).$implicit;i.qc("id",e.value.name),i.qc("formControlName",e.value.name),i.yb(1),i.pc("ngForOf",e.value.enum_allowed)}}function Oo(e,t){1&e&&(i.Sb(0,"span",26),i.Wb(1,27),i.Rb())}function Lo(e,t){1&e&&(i.Sb(0,"span",26),i.Wb(1,28),i.Rb())}function Ro(e,t){if(1&e&&(i.Sb(0,"div",15),i.Mc(1,Do,1,2,"input",19),i.Mc(2,Co,2,3,"select",20),i.Mc(3,Oo,2,0,"span",21),i.Mc(4,Lo,2,0,"span",21),i.Rb()),2&e){const e=i.ic().$implicit;i.ic();const t=i.Ac(2),n=i.ic();i.yb(1),i.pc("ngIf",0===e.value.enum_allowed.length),i.yb(1),i.pc("ngIf",e.value.enum_allowed.length>0),i.yb(1),i.pc("ngIf",n.mgrModuleForm.showError(e.value.name,t,"invalidUuid")),i.yb(1),i.pc("ngIf",n.mgrModuleForm.showError(e.value.name,t,"pattern"))}}function Eo(e,t){1&e&&(i.Sb(0,"span",26),i.Wb(1,30),i.Rb())}function Ao(e,t){if(1&e&&(i.Sb(0,"span",26),i.Wb(1,31),i.Rb()),2&e){const e=i.ic(2).$implicit;i.yb(1),i.ac(e.value.max),i.Xb(1)}}function Io(e,t){if(1&e&&(i.Sb(0,"span",26),i.Wb(1,32),i.Rb()),2&e){const e=i.ic(2).$implicit;i.yb(1),i.ac(e.value.min),i.Xb(1)}}function Po(e,t){1&e&&(i.Sb(0,"span",26),i.Wb(1,33),i.Rb())}function No(e,t){if(1&e&&(i.Sb(0,"div",15),i.Nb(1,"input",29),i.Mc(2,Eo,2,0,"span",21),i.Mc(3,Ao,2,1,"span",21),i.Mc(4,Io,2,1,"span",21),i.Mc(5,Po,2,0,"span",21),i.Rb()),2&e){const e=i.ic().$implicit;i.ic();const t=i.Ac(2),n=i.ic();i.yb(1),i.qc("id",e.value.name),i.qc("formControlName",e.value.name),i.qc("min",e.value.min),i.qc("max",e.value.max),i.yb(1),i.pc("ngIf",n.mgrModuleForm.showError(e.value.name,t,"required")),i.yb(1),i.pc("ngIf",n.mgrModuleForm.showError(e.value.name,t,"max")),i.yb(1),i.pc("ngIf",n.mgrModuleForm.showError(e.value.name,t,"min")),i.yb(1),i.pc("ngIf",n.mgrModuleForm.showError(e.value.name,t,"pattern"))}}function jo(e,t){1&e&&(i.Sb(0,"span",26),i.Wb(1,35),i.Rb())}function Fo(e,t){1&e&&(i.Sb(0,"span",26),i.Wb(1,36),i.Rb())}function Yo(e,t){if(1&e&&(i.Sb(0,"div",15),i.Nb(1,"input",34),i.Mc(2,jo,2,0,"span",21),i.Mc(3,Fo,2,0,"span",21),i.Rb()),2&e){const e=i.ic().$implicit;i.ic();const t=i.Ac(2),n=i.ic();i.yb(1),i.qc("id",e.value.name),i.qc("formControlName",e.value.name),i.yb(1),i.pc("ngIf",n.mgrModuleForm.showError(e.value.name,t,"required")),i.yb(1),i.pc("ngIf",n.mgrModuleForm.showError(e.value.name,t,"pattern"))}}const zo=function(){return["addr","str","uuid"]},$o=function(){return["uint","int","size","secs"]};function Ho(e,t){if(1&e&&(i.Sb(0,"div",11),i.Sb(1,"label",12),i.Oc(2),i.Mc(3,ko,3,3,"cd-helper",13),i.Rb(),i.Mc(4,xo,4,3,"div",14),i.Mc(5,Ro,5,4,"div",14),i.Mc(6,No,6,8,"div",14),i.Mc(7,Yo,4,4,"div",14),i.Rb()),2&e){const e=t.$implicit;i.yb(1),i.qc("for",e.value.name),i.yb(1),i.Qc(" ",e.value.name," "),i.yb(1),i.pc("ngIf",e.value.long_desc||e.value.desc),i.yb(1),i.pc("ngIf","bool"===e.value.type),i.yb(1),i.pc("ngIf",i.tc(7,zo).includes(e.value.type)),i.yb(1),i.pc("ngIf",i.tc(8,$o).includes(e.value.type)),i.yb(1),i.pc("ngIf","float"===e.value.type)}}function Wo(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",1),i.Sb(1,"form",2,3),i.Sb(3,"div",4),i.Sb(4,"div",5),i.Wb(5,6),i.Rb(),i.Sb(6,"div",7),i.Mc(7,Ho,8,9,"div",8),i.jc(8,"keyvalue"),i.Rb(),i.Sb(9,"div",9),i.Sb(10,"cd-form-button-panel",10),i.gc("submitActionEvent",(function(){return i.Dc(e),i.ic().onSubmit()})),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.yb(1),i.pc("formGroup",e.mgrModuleForm),i.yb(6),i.pc("ngForOf",i.kc(8,4,e.moduleOptions)),i.yb(3),i.pc("form",e.mgrModuleForm)("submitText",e.actionLabels.UPDATE)}}let Vo=(()=>{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(vo.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(kn.A.required),jt.a.isNumber(e.min)&&t.push(kn.A.min(e.min)),jt.a.isNumber(e.max)&&t.push(kn.A.max(e.max));break;case"str":jt.a.isNumber(e.min)&&t.push(kn.A.minLength(e.min)),jt.a.isNumber(e.max)&&t.push(kn.A.maxLength(e.max));break;case"float":t.push(kn.A.required),t.push(Cn.a.decimalNumber());break;case"uuid":t.push(Cn.a.uuid())}return t}createForm(){const e={};jt.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={};jt.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(yn.a.success,"Updated options for module '" + this.moduleName + "'."),this.goToListView()},()=>{this.mgrModuleForm.setErrors({cdSubmitButton:!0})})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(gn.b),i.Mb(Pt.a),i.Mb(Pt.e),i.Mb(So.a),i.Mb(wo),i.Mb(wn.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-mgr-module-form"]],features:[i.vb],decls:1,vars:1,consts:function(){return[["class","cd-col-form",4,"cdFormLoading"],[1,"cd-col-form"],["name","mgrModuleForm","novalidate","",3,"formGroup"],["frm","ngForm"],[1,"card"],[1,"card-header"],"Edit Manager module",[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"],"The entered value is not a valid UUID, e.g.: 67dcac9f-2c03-4d6c-b7bd-1210b3a259a8","The entered value needs to be a valid IP address.",["type","number",1,"form-control",3,"id","formControlName","min","max"],"This field is required.","The entered value is too high! It must be lower or equal to " + "\ufffd0\ufffd" + ".","The entered value is too low! It must be greater or equal to " + "\ufffd0\ufffd" + ".","The entered value needs to be a number.",["type","number",1,"form-control",3,"id","formControlName"],"This field is required.","The entered value needs to be a number or decimal."]},template:function(e,t){1&e&&i.Mc(0,Wo,11,6,"div",0),2&e&&i.pc("cdFormLoading",t.loading)},directives:[Kn.a,kn.C,kn.r,kn.k,Zn.a,o.q,ti.a,Xn.a,o.r,Mo.a,On.a,kn.b,ei.a,kn.q,kn.i,kn.d,kn.z,kn.u,kn.B,kn.v],pipes:[o.k,ir.a],styles:[""]}),e})();var Bo=n("jtHE");const Uo=["*"],Go=["templateOutlet"];function qo(e,t){if(1&e&&(i.Sb(0,"div",6),i.Oc(1),i.Rb()),2&e){const e=i.ic(2);i.yb(1),i.Qc(" ",e.message||e.defaultMessage," ")}}function Jo(e,t){if(1&e&&(i.Sb(0,"div",3),i.Nb(1,"div",4),i.Mc(2,qo,2,1,"div",5),i.Rb()),2&e){const e=i.ic();i.yb(2),i.pc("ngIf",e.message||e.defaultMessage)}}function Qo(e,t){}function Ko(e,t){1&e&&i.Mc(0,Qo,0,0,"ng-template",null,7,i.Nc)}const Zo=function(e){return{active:e}};let Xo=(()=>{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 ea="block-ui-main";let ta=(()=>{let e=class{constructor(){this.blockUISettings={},this.blockUIInstances={},this.blockUISubject=new Bo.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,Xo.START,e),update:this.dispatch(this.blockUISubject,Xo.UPDATE,e),stop:this.dispatch(this.blockUISubject,Xo.STOP,e),reset:this.dispatch(this.blockUISubject,Xo.RESET,e),resetGlobal:this.dispatch(this.blockUISubject,Xo.RESET_GLOBAL,e),unsubscribe:this.dispatch(this.blockUISubject,Xo.UNSUBSCRIBE,e)};return this.blockUIInstances[e]=this.blockUIInstances[e]||t,t}observe(){return this.blockUIObservable}clearInstance(e){this.dispatch(this.blockUISubject,Xo.RESET,e)}blockUIMiddleware({action:e,name:t}){let n=null;switch(e){case Xo.START:n=!0;break;case Xo.STOP:case Xo.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=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}}),e})(),na=(()=>{let e=class{constructor(e){this.blockUI=e}ngOnInit(){this.name=this.name||ea,this.template=this.template||this.blockUI.blockUISettings.template}};return e.\u0275fac=function(t){return new(t||e)(i.Mb(ta))},e.\u0275cmp=i.Gb({type:e,selectors:[["block-ui"]],inputs:{name:"name",template:"template",message:"message",delayStart:"delayStart",delayStop:"delayStop"},ngContentSelectors:Uo,decls:2,vars:5,consts:[[3,"name","message","template","delayStart","delayStop"]],template:function(e,t){1&e&&(i.oc(),i.nc(0),i.Nb(1,"block-ui-content",0)),2&e&&(i.yb(1),i.pc("name",t.name)("message",t.message)("template",t.template)("delayStart",t.delayStart)("delayStop",t.delayStop))},directives:function(){return[ia]},encapsulation:2}),e})(),ia=(()=>{let e=class{constructor(e,t,n){this.blockUI=e,this.resolver=t,this.changeDetectionRef=n,this.name=ea,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 i.L)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 Xo.START:this.onStart(e);break;case Xo.STOP:this.onStop(e);break;case Xo.UPDATE:this.onUpdate(e);break;case Xo.RESET:this.onReset(e);break;case Xo.RESET_GLOBAL:this.resetState();break;case Xo.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 i.k&&(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)(i.Mb(ta),i.Mb(i.j),i.Mb(i.h))},e.\u0275cmp=i.Gb({type:e,selectors:[["block-ui-content"]],viewQuery:function(e,t){var n;1&e&&i.Tc(Go,!0,i.P),2&e&&i.zc(n=i.hc())&&(t.templateOutlet=n.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&&(i.Sb(0,"div",0),i.Mc(1,Jo,3,1,"div",1),i.Mc(2,Ko,2,0,void 0,2),i.Rb()),2&e&&(i.Cb("block-ui-wrapper ",t.name," ",t.className,""),i.pc("ngClass",i.uc(7,Zo,t.state.blockCount>0)),i.yb(1),i.pc("ngIf",!t.templateCmp),i.yb(1),i.pc("ngIf",t.templateCmp))},directives:[o.p,o.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})(),ra=(()=>{let e=class{constructor(e){this.blockUIInstance=e,this.globalDispatch=this.blockUIInstance.decorate()}start(e,t){this.dispatch(e,Xo.START,t)}stop(e){this.dispatch(e,Xo.STOP)}reset(e){this.dispatch(e,Xo.RESET)}resetGlobal(){this.globalDispatch.resetGlobal()}update(e,t){this.dispatch(e,Xo.UPDATE,t)}unsubscribe(e){this.dispatch(e,Xo.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)(i.dc(ta))},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}}),e})();var sa;const oa=new ta,aa=new i.r("BlockUIModuleSettings");function ca(e){return oa.updateSettings(e),oa}let la=(()=>{let e=sa=class{static forRoot(e={}){return{ngModule:sa,providers:[{provide:aa,useValue:e},{provide:ta,useFactory:ca,deps:[aa]},ra]}}};return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[o.c]]}),e})(),ua=1;function da(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}-${ua++}`;return this[i]=oa.decorate(t),this[i]},set:function(e){this[i]=e}})}:function(t,n){t[n]=oa.decorate(e)}}function ha(e,t){if(1&e&&(i.Qb(0),i.Nb(1,"cd-table-key-value",1),i.Pb()),2&e){const e=i.ic();i.yb(1),i.pc("data",e.module_config)}}let fa=(()=>{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)(i.Mb(wo))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-mgr-module-details"]],inputs:{selection:"selection"},features:[i.wb],decls:1,vars:1,consts:[[4,"ngIf"],[3,"data"]],template:function(e,t){1&e&&i.Mc(0,ha,2,1,"ng-container",0),2&e&&i.pc("ngIf",t.selection)},directives:[o.r,en.a],styles:[""]}),e})(),pa=(()=>{class e extends $t.a{constructor(e,t,n){super(),this.authStorageService=e,this.mgrModuleService=t,this.notificationService=n,this.columns=[],this.modules=[],this.selection=new Wt.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:Ht.a.checkIcon},{name:"Always-On",prop:"always_on",flexGrow:1,cellClass:"text-center",cellTransformation:Ht.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(Ut.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)(i.Mb(Jt.a),i.Mb(wo),i.Mb(wn.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-mgr-module-list"]],viewQuery:function(e,t){var n;1&e&&i.Jc(Bt.a,!0),2&e&&i.zc(n=i.hc())&&(t.table=n.first)},features:[i.vb],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&&(i.Sb(0,"cd-table",0,1),i.gc("setExpandedRow",(function(e){return t.setExpandedRow(e)}))("updateSelection",(function(e){return t.updateSelection(e)}))("fetchData",(function(e){return t.getModuleList(e)})),i.Nb(2,"cd-table-actions",2),i.Nb(3,"cd-mgr-module-details",3),i.Rb()),2&e&&(i.pc("autoReload",!1)("data",t.modules)("columns",t.columns)("hasDetails",!0),i.yb(2),i.pc("permission",t.permission)("selection",t.selection)("tableActions",t.tableActions),i.yb(1),i.pc("selection",t.expandedRow))},directives:[Bt.a,Sn.a,fa],styles:[""]}),Object(Ft.b)([da(),Object(Ft.d)("design:type",Object)],e.prototype,"blockUI",void 0),e})(),ma=(()=>{class e{constructor(e){this.http=e}getMonitor(){return this.http.get("api/monitor")}}return e.\u0275fac=function(t){return new(t||e)(i.dc(a.b))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function ba(e,t){if(1&e&&(i.Sb(0,"table",11),i.Sb(1,"tr"),i.Sb(2,"td",12),i.Wb(3,13),i.Rb(),i.Sb(4,"td"),i.Oc(5),i.Rb(),i.Rb(),i.Sb(6,"tr"),i.Sb(7,"td",12),i.Wb(8,14),i.Rb(),i.Sb(9,"td"),i.Oc(10),i.jc(11,"relativeDate"),i.Rb(),i.Rb(),i.Sb(12,"tr"),i.Sb(13,"td",12),i.Wb(14,15),i.Rb(),i.Sb(15,"td"),i.Oc(16),i.Rb(),i.Rb(),i.Sb(17,"tr"),i.Sb(18,"td",12),i.Wb(19,16),i.Rb(),i.Sb(20,"td"),i.Oc(21),i.Rb(),i.Rb(),i.Sb(22,"tr"),i.Sb(23,"td",12),i.Wb(24,17),i.Rb(),i.Sb(25,"td"),i.Oc(26),i.Rb(),i.Rb(),i.Sb(27,"tr"),i.Sb(28,"td",12),i.Wb(29,18),i.Rb(),i.Sb(30,"td"),i.Oc(31),i.Rb(),i.Rb(),i.Sb(32,"tr"),i.Sb(33,"td",12),i.Wb(34,19),i.Rb(),i.Sb(35,"td"),i.Oc(36),i.Rb(),i.Rb(),i.Rb()),2&e){const e=i.ic();i.yb(5),i.Pc(e.mon_status.monmap.fsid),i.yb(5),i.Pc(i.kc(11,7,e.mon_status.monmap.modified)),i.yb(6),i.Pc(e.mon_status.monmap.epoch),i.yb(5),i.Pc(e.mon_status.features.quorum_con),i.yb(5),i.Pc(e.mon_status.features.quorum_mon),i.yb(5),i.Pc(e.mon_status.features.required_con),i.yb(5),i.Pc(e.mon_status.features.required_mon)}}let ga=(()=>{class e{constructor(e){this.monitorService=e,this.inQuorum={columns:[{prop:"name",name:"Name",cellTransformation:Ht.a.routerLink},{prop:"rank",name:"Rank"},{prop:"public_addr",name:"Public Address"},{prop:"cdOpenSessions",name:"Open Sessions",cellTransformation:Ht.a.sparkline,comparator:(e,t)=>{const n=jt.a.last(e),i=jt.a.last(t);return n&&i&&n!==i?n>i?1:-1:0}}]},this.notInQuorum={columns:[{prop:"name",name:"Name",cellTransformation:Ht.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)(i.Mb(ma))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-monitor"]],decls:13,vars:5,consts:function(){return[[1,"row"],[1,"col-lg-4"],[1,"cd-header"],"Status",["class","table table-striped",4,"ngIf"],[1,"col-lg-8"],[1,"in-quorum","cd-header"],"In Quorum",[3,"data","columns"],"Not In Quorum",[3,"data","columns","fetchData"],[1,"table","table-striped"],[1,"bold"],"Cluster ID","monmap modified","monmap epoch","quorum con","quorum mon","required con","required mon"]},template:function(e,t){1&e&&(i.Sb(0,"div",0),i.Sb(1,"div",1),i.Sb(2,"fieldset"),i.Sb(3,"legend",2),i.Wb(4,3),i.Rb(),i.Mc(5,ba,37,9,"table",4),i.Rb(),i.Rb(),i.Sb(6,"div",5),i.Sb(7,"legend",6),i.Wb(8,7),i.Rb(),i.Nb(9,"cd-table",8),i.Sb(10,"legend",6),i.Wb(11,9),i.Rb(),i.Sb(12,"cd-table",10),i.gc("fetchData",(function(){return t.refresh()})),i.Rb(),i.Rb(),i.Rb()),2&e&&(i.yb(5),i.pc("ngIf",t.mon_status),i.yb(4),i.pc("data",t.inQuorum.data)("columns",t.inQuorum.columns),i.yb(3),i.pc("data",t.notInQuorum.data)("columns",t.notInQuorum.columns))},directives:[o.r,Bt.a],pipes:[Yr.a],styles:[""]}),e})();var _a=n("ajRT");let ya=(()=>{class e{constructor(e,t,n,r,s){this.activeModal=e,this.actionLabels=t,this.formBuilder=n,this.osdService=r,this.taskWrapper=s,this.driveGroups=[],this.submitAction=new i.o,this.action=t.CREATE,this.createForm()}createForm(){this.formGroup=this.formBuilder.group({})}onSubmit(){this.taskWrapper.wrapTaskAroundCall({task:new er.a("osd/"+gn.e.CREATE,{tracking_id:jt.a.join(jt.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)(i.Mb(Qt.a),i.Mb(gn.b),i.Mb(So.a),i.Mb(fr),i.Mb(tr.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-osd-creation-preview-modal"]],inputs:{driveGroups:"driveGroups"},outputs:{submitAction:"submitAction"},decls:15,vars:9,consts:function(){return[[3,"modalRef"],[1,"modal-title"],"OSD creation preview",[1,"modal-content"],["novalidate","",3,"formGroup"],["frm","ngForm"],[1,"modal-body"],"DriveGroups",[1,"modal-footer"],[3,"form","submitText","submitActionEvent"]]},template:function(e,t){1&e&&(i.Sb(0,"cd-modal",0),i.Qb(1,1),i.Wb(2,2),i.Pb(),i.Qb(3,3),i.Sb(4,"form",4,5),i.Sb(6,"div",6),i.Sb(7,"h4"),i.Wb(8,7),i.Rb(),i.Sb(9,"pre"),i.Oc(10),i.jc(11,"json"),i.Rb(),i.Rb(),i.Sb(12,"div",8),i.Sb(13,"cd-form-button-panel",9),i.gc("submitActionEvent",(function(){return t.onSubmit()})),i.jc(14,"titlecase"),i.Rb(),i.Rb(),i.Rb(),i.Pb(),i.Rb()),2&e&&(i.pc("modalRef",t.activeModal),i.yb(4),i.pc("formGroup",t.formGroup),i.yb(6),i.Pc(i.kc(11,5,t.driveGroups)),i.yb(3),i.pc("form",t.formGroup)("submitText",i.kc(14,7,t.action)))},directives:[_a.a,kn.C,kn.r,Zn.a,kn.k,ti.a],pipes:[o.j,o.A],styles:[""]}),e})();const va=["inventoryDevices"];function wa(e,t){if(1&e&&(i.Sb(0,"span",16),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.yb(1),i.Qc(" ",e," ")}}function Sa(e,t){if(1&e&&(i.Sb(0,"cd-alert-panel",13),i.Qb(1),i.Wb(2,14),i.Pb(),i.Mc(3,wa,2,1,"span",15),i.Rb()),2&e){const e=i.ic();i.pc("showTitle",!1),i.yb(3),i.pc("ngForOf",e.requiredFilters)}}function Ma(e,t){if(1&e&&(i.Sb(0,"div"),i.Sb(1,"p",17),i.Sb(2,"span"),i.Wb(3,18),i.jc(4,"dimlessBinary"),i.Rb(),i.Rb(),i.Rb()),2&e){const e=i.ic();i.yb(4),i.ac(e.filteredDevices.length)(i.kc(4,2,e.capacity)),i.Xb(3)}}const ka=function(){return["available","osd_ids"]};let xa=(()=>{class e{constructor(e,t,n){this.formBuilder=e,this.activeModal=t,this.actionLabels=n,this.submitAction=new i.o,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=jt.a.filter(this.inventoryDevices.columns,e=>this.filterColumns.includes(e.prop)&&"hostname"!==e.prop);setTimeout(()=>{this.requiredFilters=jt.a.map(e,"name")},0)}createForm(){this.formGroup=this.formBuilder.group({})}onFilterChange(e){if(this.capacity=0,this.canSubmit=!1,jt.a.isEmpty(e.filters))this.filteredDevices=[],this.event=void 0;else{const t=e.filters.filter(e=>"hostname"!==e.prop);this.canSubmit=!jt.a.isEmpty(t),this.filteredDevices=e.data,this.capacity=jt.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)(i.Mb(So.a),i.Mb(Qt.a),i.Mb(gn.b))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-osd-devices-selection-modal"]],viewQuery:function(e,t){var n;1&e&&i.Tc(va,!0),2&e&&i.zc(n=i.hc())&&(t.inventoryDevices=n.first)},outputs:{submitAction:"submitAction"},decls:14,vars:14,consts:function(){return[[3,"modalRef"],[1,"modal-title"],"" + "\ufffd0\ufffd" + " devices",[1,"modal-content"],["novalidate","",3,"formGroup"],["frm","ngForm"],[1,"modal-body"],["type","warning","size","slim",3,"showTitle",4,"ngIf"],[3,"devices","filterColumns","hiddenColumns","filterChange"],["inventoryDevices",""],[4,"ngIf"],[1,"modal-footer"],[3,"form","disabled","submitText","submitActionEvent"],["type","warning","size","slim",3,"showTitle"],"At least one of these filters must be applied in order to proceed:",["class","badge badge-dark ml-2",4,"ngFor","ngForOf"],[1,"badge","badge-dark","ml-2"],[1,"text-center"],"Number of devices: " + "\ufffd0\ufffd" + ". Raw capacity: " + "\ufffd1\ufffd" + "."]},template:function(e,t){1&e&&(i.Sb(0,"cd-modal",0),i.Qb(1,1),i.Wb(2,2),i.Pb(),i.Qb(3,3),i.Sb(4,"form",4,5),i.Sb(6,"div",6),i.Mc(7,Sa,4,2,"cd-alert-panel",7),i.Sb(8,"cd-inventory-devices",8,9),i.gc("filterChange",(function(e){return t.onFilterChange(e)})),i.Rb(),i.Mc(10,Ma,5,4,"div",10),i.Rb(),i.Sb(11,"div",11),i.Sb(12,"cd-form-button-panel",12),i.gc("submitActionEvent",(function(){return t.onSubmit()})),i.jc(13,"titlecase"),i.Rb(),i.Rb(),i.Rb(),i.Pb(),i.Rb()),2&e&&(i.pc("modalRef",t.activeModal),i.yb(2),i.ac(t.deviceType),i.Xb(2),i.yb(2),i.pc("formGroup",t.formGroup),i.yb(3),i.pc("ngIf",!t.canSubmit),i.yb(1),i.pc("devices",t.devices)("filterColumns",t.filterColumns)("hiddenColumns",i.tc(13,ka)),i.yb(2),i.pc("ngIf",t.canSubmit),i.yb(2),i.pc("form",t.formGroup)("disabled",!t.canSubmit||0===t.filteredDevices.length)("submitText",i.kc(13,11,t.action)))},directives:[_a.a,kn.C,kn.r,Zn.a,kn.k,o.r,Er,ti.a,pr.a,o.q],pipes:[o.A,Zt.a],styles:[""]}),e})();function Da(e,t){1&e&&(i.Sb(0,"span"),i.Wb(1,7),i.Rb())}function Ta(e,t){1&e&&(i.Sb(0,"span"),i.Wb(1,8),i.Rb())}function Ca(e,t){1&e&&(i.Sb(0,"span"),i.Wb(1,9),i.Rb())}const Oa=function(e){return[e]};function La(e,t){if(1&e){const e=i.Tb();i.Qb(0),i.Sb(1,"button",10),i.gc("click",(function(){return i.Dc(e),i.ic().showSelectionModal()})),i.Nb(2,"i",11),i.Qb(3),i.Wb(4,12),i.Pb(),i.Rb(),i.Pb()}if(2&e){const e=i.ic();i.yb(1),i.pc("title",e.addButtonTooltip)("disabled",0===e.availDevices.length||!e.canSelect),i.yb(1),i.pc("ngClass",i.uc(3,Oa,e.icons.add))}}function Ra(e,t){if(1&e&&(i.Sb(0,"span"),i.Sb(1,"span",19),i.Oc(2),i.Rb(),i.Rb()),2&e){const e=t.$implicit;i.yb(2),i.Rc("",e.name,": ",e.value.formatted,"")}}function Ea(e,t){if(1&e&&(i.Sb(0,"div",20),i.Sb(1,"span"),i.Wb(2,21),i.jc(3,"dimlessBinary"),i.Rb(),i.Rb()),2&e){const e=i.ic(2);i.yb(3),i.ac(i.kc(3,1,e.capacity)),i.Xb(2)}}const Aa=function(){return["available","osd_ids"]},Ia=function(){return[]};function Pa(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",13),i.Mc(1,Ra,3,2,"span",14),i.Sb(2,"a",15),i.gc("click",(function(){return i.Dc(e),i.ic().clearDevices(),!1})),i.Nb(3,"i",11),i.Qb(4),i.Wb(5,16),i.Pb(),i.Rb(),i.Rb(),i.Sb(6,"div"),i.Nb(7,"cd-inventory-devices",17),i.Rb(),i.Mc(8,Ea,4,3,"div",18)}if(2&e){const e=i.ic();i.yb(1),i.pc("ngForOf",e.appliedFilters),i.yb(2),i.pc("ngClass",i.uc(6,Oa,e.icons.clearFilters)),i.yb(4),i.pc("devices",e.devices)("hiddenColumns",i.tc(8,Aa))("filterColumns",i.tc(9,Ia)),i.yb(1),i.pc("ngIf","data"===e.type)}}let Na=(()=>{class e{constructor(e){this.modalService=e,this.selected=new i.o,this.cleared=new i.o,this.icons=_n.a,this.devices=[],this.capacity=0,this.appliedFilters=[],this.tooltips={noAvailDevices:"No available devices",addPrimaryFirst:"Please add primary devices first",addByFilters:"Add devices by using filters"}}ngOnInit(){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(xa,{hostname:this.hostname,deviceType:this.name,devices:this.availDevices,filterColumns:e},{size:"xl"}).componentInstance.submitAction.subscribe(e=>{this.devices=e.data,this.capacity=jt.a.sumBy(this.devices,"sys_api.size"),this.appliedFilters=e.filters;const t=jt.a.assign({type:this.type},e);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(){const e={type:this.type,clearedDevices:[...this.devices]};this.devices=[],this.cleared.emit(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(vn.a))},e.\u0275cmp=i.Gb({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:[i.wb],decls:12,vars:6,consts:function(){return[[1,"form-group","row"],["for","createDeleteButton",1,"cd-col-form-label"],"" + "\ufffd0\ufffd" + " devices",[4,"ngIf"],[1,"cd-col-form-input"],[4,"ngIf","ngIfElse"],["blockClearDevices",""],"The primary storage devices. These devices contain all OSD data.","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.","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).",["type","button","data-toggle","tooltip",1,"btn","btn-light",3,"title","disabled","click"],[3,"ngClass"],"Add",[1,"pb-2","my-2","border-bottom"],[4,"ngFor","ngForOf"],["href","",1,"tc_clearSelections",3,"click"],"Clear",[3,"devices","hiddenColumns","filterColumns"],["class","float-right",4,"ngIf"],[1,"badge","badge-dark","mr-2"],[1,"float-right"],"Raw capacity: " + "\ufffd0\ufffd" + ""]},template:function(e,t){if(1&e&&(i.Sb(0,"div",0),i.Sb(1,"label",1),i.Qb(2),i.Wb(3,2),i.Pb(),i.Sb(4,"cd-helper"),i.Mc(5,Da,2,0,"span",3),i.Mc(6,Ta,2,0,"span",3),i.Mc(7,Ca,2,0,"span",3),i.Rb(),i.Rb(),i.Sb(8,"div",4),i.Mc(9,La,5,5,"ng-container",5),i.Mc(10,Pa,9,10,"ng-template",null,6,i.Nc),i.Rb(),i.Rb()),2&e){const e=i.Ac(11);i.yb(3),i.ac(t.name),i.Xb(3),i.yb(2),i.pc("ngIf","data"===t.type),i.yb(1),i.pc("ngIf","wal"===t.type),i.yb(1),i.pc("ngIf","db"===t.type),i.yb(2),i.pc("ngIf",0===t.devices.length)("ngIfElse",e)}},directives:[Xn.a,Mo.a,o.r,On.a,o.p,o.q,Er],pipes:[Zt.a],styles:[".tc_clearSelections[_ngcontent-%COMP%]{text-decoration:none}"]}),e})();var ja=n("aXbf");class Fa{constructor(){this.reset(),this.formatterService=new ja.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-"+jt.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 Ya=["dataDeviceSelectionGroups"],za=["walDeviceSelectionGroups"],$a=["dbDeviceSelectionGroups"],Ha=["previewButtonPanel"];function Wa(e,t){1&e&&i.Nb(0,"cd-orchestrator-doc-panel")}function Va(e,t){1&e&&(i.Sb(0,"span",33),i.Wb(1,34),i.Rb())}function Ba(e,t){if(1&e&&(i.Sb(0,"div",26),i.Sb(1,"label",27),i.Qb(2),i.Wb(3,28),i.Pb(),i.Sb(4,"cd-helper"),i.Sb(5,"span"),i.Wb(6,29),i.Rb(),i.Nb(7,"br"),i.Sb(8,"span"),i.Wb(9,30),i.Rb(),i.Rb(),i.Rb(),i.Sb(10,"div",21),i.Nb(11,"input",31),i.Mc(12,Va,2,0,"span",32),i.Rb(),i.Rb()),2&e){i.ic();const e=i.Ac(2),t=i.ic();i.yb(12),i.pc("ngIf",t.form.showError("walSlots",e,"min"))}}function Ua(e,t){1&e&&(i.Sb(0,"span",33),i.Wb(1,40),i.Rb())}function Ga(e,t){if(1&e&&(i.Sb(0,"div",26),i.Sb(1,"label",35),i.Qb(2),i.Wb(3,36),i.Pb(),i.Sb(4,"cd-helper"),i.Sb(5,"span"),i.Wb(6,37),i.Rb(),i.Nb(7,"br"),i.Sb(8,"span"),i.Wb(9,38),i.Rb(),i.Rb(),i.Rb(),i.Sb(10,"div",21),i.Nb(11,"input",39),i.Mc(12,Ua,2,0,"span",32),i.Rb(),i.Rb()),2&e){i.ic();const e=i.Ac(2),t=i.ic();i.yb(12),i.pc("ngIf",t.form.showError("dbSlots",e,"min"))}}function qa(e,t){if(1&e&&(i.Sb(0,"div",41),i.Nb(1,"input",42),i.Sb(2,"label",43),i.Oc(3),i.Rb(),i.Rb()),2&e){const e=t.$implicit;i.yb(1),i.qc("id",e.key),i.qc("name",e.key),i.qc("formControlName",e.key),i.yb(1),i.qc("for",e.key),i.yb(1),i.Pc(e.desc)}}function Ja(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",2),i.Sb(1,"form",3,4),i.Sb(3,"div",5),i.Sb(4,"div",6),i.Wb(5,7),i.jc(6,"titlecase"),i.jc(7,"upperFirst"),i.Rb(),i.Sb(8,"div",8),i.Sb(9,"fieldset"),i.Sb(10,"cd-osd-devices-selection-groups",9,10),i.gc("selected",(function(t){return i.Dc(e),i.ic().onDevicesSelected(t)}))("cleared",(function(t){return i.Dc(e),i.ic().onDevicesCleared(t)})),i.Rb(),i.Rb(),i.Sb(12,"fieldset"),i.Sb(13,"legend"),i.Wb(14,11),i.Rb(),i.Sb(15,"cd-osd-devices-selection-groups",12,13),i.gc("selected",(function(t){return i.Dc(e),i.ic().onDevicesSelected(t)}))("cleared",(function(t){return i.Dc(e),i.ic().onDevicesCleared(t)})),i.Rb(),i.Mc(17,Ba,13,1,"div",14),i.Sb(18,"cd-osd-devices-selection-groups",15,16),i.gc("selected",(function(t){return i.Dc(e),i.ic().onDevicesSelected(t)}))("cleared",(function(t){return i.Dc(e),i.ic().onDevicesCleared(t)})),i.Rb(),i.Mc(20,Ga,13,1,"div",14),i.Rb(),i.Sb(21,"fieldset"),i.Sb(22,"legend"),i.Wb(23,17),i.Rb(),i.Sb(24,"div",18),i.Sb(25,"label",19),i.Wb(26,20),i.Rb(),i.Sb(27,"div",21),i.Mc(28,qa,4,5,"div",22),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(29,"div",23),i.Sb(30,"cd-form-button-panel",24,25),i.gc("submitActionEvent",(function(){return i.Dc(e),i.ic().submit()})),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.Ac(11),t=i.Ac(16),n=i.Ac(19),r=i.ic();i.yb(1),i.pc("formGroup",r.form),i.yb(6),i.ac(i.kc(6,15,r.action))(i.kc(7,17,r.resource)),i.Xb(5),i.yb(3),i.pc("availDevices",r.availDevices)("canSelect",0!==r.availDevices.length),i.yb(5),i.pc("availDevices",r.availDevices)("canSelect",0!==e.devices.length),i.yb(2),i.pc("ngIf",0!==t.devices.length),i.yb(1),i.pc("availDevices",r.availDevices)("canSelect",0!==e.devices.length),i.yb(2),i.pc("ngIf",0!==n.devices.length),i.yb(8),i.pc("ngForOf",r.featureList),i.yb(2),i.pc("form",r.form)("disabled",0===e.devices.length)("submitText",r.actionLabels.PREVIEW)}}let Qa=(()=>{class e extends qn.a{constructor(e,t,n,i,r,s){super(),this.actionLabels=e,this.authStorageService=t,this.orchService=n,this.hostService=i,this.router=r,this.modalService=s,this.icons=_n.a,this.columns=[],this.allDevices=[],this.availDevices=[],this.dataDeviceFilters=[],this.dbDeviceFilters=[],this.walDeviceFilters=[],this.hostname="",this.driveGroup=new Fa,this.featureList=[],this.hasOrchestrator=!0,this.resource="OSDs",this.action=this.actionLabels.CREATE,this.features={encrypted:{key:"encrypted",desc:"Encryption"}},this.featureList=jt.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)),jt.a.each(this.features,e=>{this.form.get("features").get(e.key).valueChanges.subscribe(t=>this.featureFormUpdate(e.key,t))})}createForm(){this.form=new Jn.a({walSlots:new kn.h(0,{validators:[kn.A.min(0)]}),dbSlots:new kn.h(0,{validators:[kn.A.min(0)]}),features:new Jn.a(this.featureList.reduce((e,t)=>(e[t.key]=new kn.h({value:!1,disabled:!0}),e),{}))})}getDataDevices(){this.hostService.inventoryDeviceList().subscribe(e=>{this.allDevices=jt.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=jt.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)}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}-${jt.a.now()}`),this.modalService.show(ya,{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)(i.Mb(gn.b),i.Mb(Jt.a),i.Mb(cr),i.Mb(Xi),i.Mb(Pt.e),i.Mb(vn.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-osd-form"]],viewQuery:function(e,t){var n;1&e&&(i.Tc(Ya,!0),i.Tc(za,!0),i.Tc($a,!0),i.Tc(Ha,!0)),2&e&&(i.zc(n=i.hc())&&(t.dataDeviceSelectionGroups=n.first),i.zc(n=i.hc())&&(t.walDeviceSelectionGroups=n.first),i.zc(n=i.hc())&&(t.dbDeviceSelectionGroups=n.first),i.zc(n=i.hc())&&(t.previewButtonPanel=n.first))},features:[i.vb],decls:2,vars:2,consts:function(){return[[4,"ngIf"],["class","cd-col-form",4,"cdFormLoading"],[1,"cd-col-form"],["name","form","novalidate","",3,"formGroup"],["formDir","ngForm"],[1,"card"],[1,"card-header"],"" + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + "",[1,"card-body"],["name","Primary","type","data",3,"availDevices","canSelect","selected","cleared"],["dataDeviceSelectionGroups",""],"Shared devices",["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",""],"Configuration",["formGroupName","features",1,"form-group","row"],["for","features",1,"cd-col-form-label"],"Features",[1,"cd-col-form-input"],["class","custom-control custom-checkbox",4,"ngFor","ngForOf"],[1,"card-footer"],["wrappingClass","text-right",3,"form","disabled","submitText","submitActionEvent"],["previewButtonPanel",""],[1,"form-group","row"],["for","walSlots",1,"cd-col-form-label"],"WAL slots","How many OSDs per WAL device.","Specify 0 to let Orchestrator backend decide it.",["id","walSlots","name","walSlots","type","number","min","0","formControlName","walSlots",1,"form-control"],["class","invalid-feedback",4,"ngIf"],[1,"invalid-feedback"],"Value should be greater than or equal to 0",["for","dbSlots",1,"cd-col-form-label"],"DB slots","How many OSDs per DB device.","Specify 0 to let Orchestrator backend decide it.",["id","dbSlots","name","dbSlots","type","number","min","0","formControlName","dbSlots",1,"form-control"],"Value should be greater than or equal to 0",[1,"custom-control","custom-checkbox"],["type","checkbox",1,"custom-control-input",3,"id","name","formControlName"],[1,"custom-control-label",3,"for"]]},template:function(e,t){1&e&&(i.Mc(0,Wa,1,0,"cd-orchestrator-doc-panel",0),i.Mc(1,Ja,32,19,"div",1)),2&e&&(i.pc("ngIf",!t.hasOrchestrator),i.yb(1),i.pc("cdFormLoading",t.loading))},directives:[o.r,Kn.a,Rr,kn.C,kn.r,Zn.a,kn.k,Na,Xn.a,kn.l,o.q,ti.a,Mo.a,On.a,kn.v,kn.d,ei.a,kn.q,kn.i,kn.b],pipes:[o.A,ir.a],styles:[""]}),e})();function Ka(e,t){if(1&e&&(i.Sb(0,"span",18),i.Wb(1,19),i.Rb()),2&e){const e=i.ic(2);i.pc("ngbTooltip",e.clusterWideTooltip)}}function Za(e,t){1&e&&i.Nb(0,"hr",20)}function Xa(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",12),i.Sb(1,"input",13),i.gc("change",(function(){i.Dc(e);const n=t.$implicit;return i.ic().changeValue(n)})),i.Rb(),i.Sb(2,"label",14),i.Sb(3,"strong"),i.Oc(4),i.Rb(),i.Mc(5,Ka,2,1,"span",15),i.Nb(6,"br"),i.Sb(7,"span",16),i.Oc(8),i.Rb(),i.Rb(),i.Mc(9,Za,1,0,"hr",17),i.Rb()}if(2&e){const e=t.$implicit,n=t.last;i.yb(1),i.pc("checked",e.value)("indeterminate",e.indeterminate)("name",e.code)("id",e.code),i.yb(1),i.pc("for",e.code),i.yb(2),i.Pc(e.name),i.yb(1),i.pc("ngIf",e.clusterWide),i.yb(3),i.Pc(e.description),i.yb(1),i.pc("ngIf",!n)}}let ec=(()=>{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 kn.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=jt.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=jt.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(yn.a.success,"Updated OSD Flags"),this.activeModal.close()},()=>{this.activeModal.close()})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Qt.a),i.Mb(gn.b),i.Mb(Jt.a),i.Mb(fr),i.Mb(wn.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-osd-flags-indiv-modal"]],decls:12,vars:6,consts:function(){return[[3,"modalRef"],[1,"modal-title"],"Individual OSD Flags",[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"],"Restore previous selection",[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"],"Cluster-wide",[1,"m-1"]]},template:function(e,t){1&e&&(i.Sb(0,"cd-modal",0),i.Qb(1,1),i.Wb(2,2),i.Pb(),i.Qb(3,3),i.Sb(4,"form",4,5),i.Sb(6,"div",6),i.Mc(7,Xa,10,9,"div",7),i.Rb(),i.Sb(8,"div",8),i.Sb(9,"button",9),i.gc("click",(function(){return t.resetSelection()})),i.Wb(10,10),i.Rb(),i.Sb(11,"cd-form-button-panel",11),i.gc("submitActionEvent",(function(){return t.submitAction()})),i.Rb(),i.Rb(),i.Rb(),i.Pb(),i.Rb()),2&e&&(i.pc("modalRef",t.activeModal),i.yb(4),i.pc("formGroup",t.osdFlagsForm),i.yb(3),i.pc("ngForOf",t.flags),i.yb(4),i.pc("form",t.osdFlagsForm)("showSubmit",t.permissions.osd.update)("submitText",t.actionLabels.UPDATE))},directives:[_a.a,kn.C,kn.r,Zn.a,kn.k,o.q,On.a,ti.a,ei.a,o.r,Qt.D],styles:[""]}),e})();var tc=n("f/UV");function nc(e,t){1&e&&i.Nb(0,"hr",15)}function ic(e,t){if(1&e&&(i.Sb(0,"div",10),i.Sb(1,"input",11),i.gc("change",(function(){const e=t.$implicit;return e.value=!e.value})),i.Rb(),i.Sb(2,"label",12),i.Sb(3,"strong"),i.Oc(4),i.Rb(),i.Nb(5,"br"),i.Sb(6,"span",13),i.Oc(7),i.Rb(),i.Rb(),i.Mc(8,nc,1,0,"hr",14),i.Rb()),2&e){const e=t.$implicit,n=t.last;i.yb(1),i.pc("checked",e.value)("name",e.code)("id",e.code)("disabled",e.disabled),i.yb(1),i.pc("for",e.code),i.yb(2),i.Pc(e.name),i.yb(3),i.Pc(e.description),i.yb(1),i.pc("ngIf",!n)}}let rc=(()=>{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 kn.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=jt.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(yn.a.success,"Updated OSD Flags"),this.activeModal.close()},()=>{this.activeModal.close()})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Qt.a),i.Mb(gn.b),i.Mb(Jt.a),i.Mb(fr),i.Mb(wn.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-osd-flags-modal"]],decls:10,vars:6,consts:function(){return[[3,"modalRef"],[1,"modal-title"],"Cluster-wide OSD Flags",[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&&(i.Sb(0,"cd-modal",0),i.Qb(1,1),i.Wb(2,2),i.Pb(),i.Qb(3,3),i.Sb(4,"form",4,5),i.Sb(6,"div",6),i.Mc(7,ic,9,8,"div",7),i.Rb(),i.Sb(8,"div",8),i.Sb(9,"cd-form-button-panel",9),i.gc("submitActionEvent",(function(){return t.submitAction()})),i.Rb(),i.Rb(),i.Rb(),i.Pb(),i.Rb()),2&e&&(i.pc("modalRef",t.activeModal),i.yb(4),i.pc("formGroup",t.osdFlagsForm),i.yb(3),i.pc("ngForOf",t.flags),i.yb(2),i.pc("form",t.osdFlagsForm)("showSubmit",t.permissions.osd.update)("submitText",t.actionLabels.UPDATE))},directives:[_a.a,kn.C,kn.r,tc.a,Zn.a,kn.k,o.q,ti.a,On.a,ei.a,o.r],styles:[""]}),e})();function sc(e,t){if(1&e&&(i.Sb(0,"cd-helper"),i.Oc(1),i.Rb()),2&e){const e=i.ic(2).$implicit;i.yb(1),i.Qc(" ",e.long_desc,"")}}function oc(e,t){if(1&e&&(i.Sb(0,"div",4),i.Sb(1,"label",5),i.Sb(2,"b"),i.Oc(3),i.Rb(),i.Nb(4,"br"),i.Sb(5,"span",6),i.Oc(6),i.Mc(7,sc,2,1,"cd-helper",7),i.Rb(),i.Rb(),i.Sb(8,"div",8),i.Sb(9,"div",9),i.Nb(10,"input",10),i.Nb(11,"label",11),i.Rb(),i.Rb(),i.Rb()),2&e){const e=i.ic().$implicit;i.yb(1),i.pc("for",e.name),i.yb(2),i.Pc(e.text),i.yb(3),i.Qc(" ",e.desc," "),i.yb(1),i.pc("ngIf",e.long_desc),i.yb(3),i.pc("id",e.name)("formControlName",e.name),i.yb(1),i.pc("for",e.name)}}function ac(e,t){if(1&e&&(i.Sb(0,"cd-helper"),i.Oc(1),i.Rb()),2&e){const e=i.ic(2).$implicit;i.yb(1),i.Qc(" ",e.long_desc,"")}}const cc=function(e){return[e]};function lc(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",16),i.Sb(1,"button",17),i.Yb(2,18),i.gc("click",(function(){i.Dc(e);const t=i.ic(2).$implicit;return i.ic().resetValue(t.name)})),i.Nb(3,"i",19),i.Rb(),i.Rb()}if(2&e){const e=i.ic(3);i.yb(3),i.pc("ngClass",i.uc(1,cc,e.icons.erase))}}function uc(e,t){if(1&e&&(i.Sb(0,"span",20),i.Oc(1),i.Rb()),2&e){const e=i.ic(2).$implicit;i.yb(1),i.Qc(" ",e.additionalTypeInfo.patternHelpText,"")}}function dc(e,t){if(1&e&&(i.Sb(0,"span",20),i.Oc(1),i.Rb()),2&e){const e=i.ic(2).$implicit;i.yb(1),i.Qc(" ",e.additionalTypeInfo.patternHelpText,"")}}function hc(e,t){if(1&e&&(i.Sb(0,"span",20),i.Wb(1,21),i.Rb()),2&e){const e=i.ic(2).$implicit;i.yb(1),i.ac(e.maxValue),i.Xb(1)}}function fc(e,t){if(1&e&&(i.Sb(0,"span",20),i.Wb(1,22),i.Rb()),2&e){const e=i.ic(2).$implicit;i.yb(1),i.ac(e.minValue),i.Xb(1)}}function pc(e,t){if(1&e&&(i.Sb(0,"div",4),i.Sb(1,"label",5),i.Oc(2),i.Nb(3,"br"),i.Sb(4,"span",6),i.Oc(5),i.Mc(6,ac,2,1,"cd-helper",7),i.Rb(),i.Rb(),i.Sb(7,"div",8),i.Sb(8,"div",12),i.Nb(9,"input",13),i.Mc(10,lc,4,3,"div",14),i.Rb(),i.Mc(11,uc,2,1,"span",15),i.Mc(12,dc,2,1,"span",15),i.Mc(13,hc,2,1,"span",15),i.Mc(14,fc,2,1,"span",15),i.Rb(),i.Rb()),2&e){const e=i.ic().$implicit,t=i.ic();i.yb(1),i.pc("for",e.name),i.yb(1),i.Qc("",e.text," "),i.yb(3),i.Qc(" ",e.desc," "),i.yb(1),i.pc("ngIf",e.long_desc),i.yb(3),i.pc("type",e.additionalTypeInfo.inputType)("id",e.name)("placeholder",e.additionalTypeInfo.humanReadable)("formControlName",e.name)("step",t.getStep(e.type,t.optionsForm.getValue(e.name))),i.yb(1),i.pc("ngIf",t.optionsFormShowReset),i.yb(1),i.pc("ngIf",t.optionsForm.showError(e.name,t.optionsFormDir,"pattern")),i.yb(1),i.pc("ngIf",t.optionsForm.showError(e.name,t.optionsFormDir,"invalidUuid")),i.yb(1),i.pc("ngIf",t.optionsForm.showError(e.name,t.optionsFormDir,"max")),i.yb(1),i.pc("ngIf",t.optionsForm.showError(e.name,t.optionsFormDir,"min"))}}function mc(e,t){1&e&&i.Nb(0,"hr",23)}function bc(e,t){if(1&e&&(i.Sb(0,"div"),i.Mc(1,oc,12,7,"div",2),i.Mc(2,pc,15,14,"div",2),i.Mc(3,mc,1,0,"hr",3),i.Rb()),2&e){const e=t.$implicit,n=t.last;i.yb(1),i.pc("ngIf","bool"===e.type),i.yb(1),i.pc("ngIf","bool"!==e.type),i.yb(1),i.pc("ngIf",!n)}}let gc=(()=>{class e{constructor(e){this.configService=e,this.optionNames=[],this.optionsForm=new Jn.a({}),this.optionsFormDir=new kn.s([],[]),this.optionsFormGroupName="",this.optionsFormShowReset=!0,this.icons=_n.a,this.options=[],this.optionsFormGroup=new Jn.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 kn.h(null))})}getStep(e,t){return Gn.getTypeStep(e,t)}loadStoredData(){this.configService.filter(this.optionNames).subscribe(t=>{this.options=t.map(t=>{const n=this.optionsForm.get(t.name),i=Gn.getTypeValidators(t);return t.additionalTypeInfo=Gn.getType(t.type),t.text=e.optionNameToText(t.name),t.value=jt.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)(i.Mb(Un.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-config-option"]],inputs:{optionNames:"optionNames",optionsForm:"optionsForm",optionsFormDir:"optionsFormDir",optionsFormGroupName:"optionsFormGroupName",optionsFormShowReset:"optionsFormShowReset"},decls:2,vars:2,consts:function(){return[[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",1,"btn","btn-light",3,"click",6,"title"],["title","Remove the custom configuration value. The default configuration will be inherited and used instead."],["aria-hidden","true",3,"ngClass"],[1,"invalid-feedback"],"The entered value is too high! It must not be greater than " + "\ufffd0\ufffd" + ".","The entered value is too low! It must not be lower than " + "\ufffd0\ufffd" + ".",[1,"my-2"]]},template:function(e,t){1&e&&(i.Sb(0,"div",0),i.Mc(1,bc,4,3,"div",1),i.Rb()),2&e&&(i.pc("formGroup",t.optionsFormGroup),i.yb(1),i.pc("ngForOf",t.options))},directives:[kn.r,kn.k,Zn.a,o.q,o.r,Xn.a,On.a,kn.b,ei.a,kn.q,kn.i,Mo.a,kn.d,o.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})(),_c=(()=>{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 yc=["basicOptionsValues"],vc=["advancedOptionsValues"];function wc(e,t){if(1&e){const e=i.Tb();i.Sb(0,"a",15),i.gc("click",(function(){return i.Dc(e),i.ic().advancedEnabled=!0})),i.Wb(1,16),i.Rb()}}function Sc(e,t){if(1&e&&(i.Sb(0,"div"),i.Sb(1,"h3",17),i.Wb(2,18),i.Rb(),i.Nb(3,"cd-config-option",7,19),i.Rb()),2&e){const e=i.ic(),t=i.Ac(7);i.yb(3),i.pc("optionNames",e.advancedOptions)("optionsForm",e.osdPgScrubForm)("optionsFormDir",t)("optionsFormGroupName","advancedFormGroup")}}let Mc=(()=>{class e{constructor(e,t,n,i){this.activeModal=e,this.authStorageService=t,this.notificationService=n,this.actionLabels=i,this.basicOptions=_c.basicOptions,this.advancedOptions=_c.advancedOptions,this.advancedEnabled=!1,this.osdPgScrubForm=new Jn.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(vo.a)(e).subscribe(()=>{this.notificationService.show(yn.a.success,"Updated PG scrub options"),this.activeModal.close()},()=>{this.activeModal.close()})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Qt.a),i.Mb(Jt.a),i.Mb(wn.a),i.Mb(gn.b))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-osd-pg-scrub-modal"]],viewQuery:function(e,t){var n;1&e&&(i.Jc(yc,!0),i.Tc(vc,!0)),2&e&&(i.zc(n=i.hc())&&(t.basicOptionsValues=n.first),i.zc(n=i.hc())&&(t.advancedOptionsValues=n.first))},decls:19,vars:21,consts:function(){return[[3,"modalRef"],[1,"modal-title"],"" + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + "",[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"],"Advanced...",[1,"page-header"],"Advanced configuration options",["advancedOptionsValues",""]]},template:function(e,t){if(1&e&&(i.Sb(0,"cd-modal",0),i.Qb(1,1),i.Wb(2,2),i.jc(3,"titlecase"),i.jc(4,"upperFirst"),i.Pb(),i.Qb(5,3),i.Sb(6,"form",4,5),i.Sb(8,"div",6),i.Nb(9,"cd-config-option",7,8),i.Sb(11,"div",9),i.Sb(12,"div",10),i.Mc(13,wc,2,0,"a",11),i.Rb(),i.Rb(),i.Mc(14,Sc,5,4,"div",12),i.Rb(),i.Sb(15,"div",13),i.Sb(16,"cd-form-button-panel",14),i.gc("submitActionEvent",(function(){return t.submitAction()})),i.jc(17,"titlecase"),i.jc(18,"upperFirst"),i.Rb(),i.Rb(),i.Rb(),i.Pb(),i.Rb()),2&e){const e=i.Ac(7);i.pc("modalRef",t.activeModal),i.yb(4),i.ac(i.kc(3,13,t.action))(i.kc(4,15,t.resource)),i.Xb(2),i.yb(2),i.pc("formGroup",t.osdPgScrubForm),i.yb(3),i.pc("optionNames",t.basicOptions)("optionsForm",t.osdPgScrubForm)("optionsFormDir",e)("optionsFormGroupName","basicFormGroup"),i.yb(4),i.pc("ngIf",!t.advancedEnabled),i.yb(1),i.pc("ngIf",t.advancedEnabled),i.yb(2),i.pc("form",t.osdPgScrubForm)("showSubmit",t.permissions.configOpt.update)("submitText",i.kc(17,17,t.action)+" "+i.kc(18,19,t.resource))}},directives:[_a.a,kn.C,kn.r,tc.a,Zn.a,kn.k,gc,o.r,ti.a],pipes:[o.A,ir.a],styles:[""]}),e})();function kc(e,t){if(1&e&&(i.Sb(0,"option",22),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e.name),i.yb(1),i.Qc(" ",e.text," ")}}function xc(e,t){1&e&&(i.Sb(0,"span",23),i.Wb(1,24),i.Rb())}function Dc(e,t){if(1&e&&(i.Sb(0,"cd-helper"),i.Oc(1),i.Rb()),2&e){const e=i.ic().$implicit;i.yb(1),i.Pc(e.value.desc)}}function Tc(e,t){1&e&&(i.Sb(0,"span",23),i.Wb(1,29),i.Rb())}function Cc(e,t){if(1&e&&(i.Sb(0,"span",23),i.Wb(1,30),i.Rb()),2&e){const e=i.ic().$implicit;i.yb(1),i.ac(e.value.patternHelpText),i.Xb(1)}}function Oc(e,t){if(1&e&&(i.Sb(0,"span",23),i.Wb(1,31),i.Rb()),2&e){const e=i.ic().$implicit;i.yb(1),i.ac(e.value.maxValue),i.Xb(1)}}function Lc(e,t){if(1&e&&(i.Sb(0,"span",23),i.Wb(1,32),i.Rb()),2&e){const e=i.ic().$implicit;i.yb(1),i.ac(e.value.minValue),i.Xb(1)}}const Rc=function(e){return{required:e}};function Ec(e,t){if(1&e&&(i.Sb(0,"div",7),i.Sb(1,"label",25),i.Sb(2,"span",26),i.Oc(3),i.Rb(),i.Mc(4,Dc,2,1,"cd-helper",27),i.Rb(),i.Sb(5,"div",10),i.Nb(6,"input",28),i.Mc(7,Tc,2,0,"span",13),i.Mc(8,Cc,2,1,"span",13),i.Mc(9,Oc,2,1,"span",13),i.Mc(10,Lc,2,1,"span",13),i.Rb(),i.Rb()),2&e){const e=t.$implicit,n=i.ic(),r=i.Ac(5);i.yb(1),i.pc("for",e.key),i.yb(1),i.pc("ngClass",i.uc(11,Rc,n.osdRecvSpeedForm.getValue("customizePriority"))),i.yb(1),i.Qc(" ",e.value.text," "),i.yb(1),i.pc("ngIf",e.value.desc),i.yb(2),i.pc("id",e.key)("formControlName",e.key)("readonly",!n.osdRecvSpeedForm.getValue("customizePriority")),i.yb(1),i.pc("ngIf",n.osdRecvSpeedForm.getValue("customizePriority")&&n.osdRecvSpeedForm.showError(e.key,r,"required")),i.yb(1),i.pc("ngIf",n.osdRecvSpeedForm.getValue("customizePriority")&&n.osdRecvSpeedForm.showError(e.key,r,"pattern")),i.yb(1),i.pc("ngIf",n.osdRecvSpeedForm.getValue("customizePriority")&&n.osdRecvSpeedForm.showError(e.key,r,"max")),i.yb(1),i.pc("ngIf",n.osdRecvSpeedForm.getValue("customizePriority")&&n.osdRecvSpeedForm.showError(e.key,r,"min"))}}let Ac=(()=>{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 Jn.a({priority:new kn.h(null,{validators:[kn.A.required]}),customizePriority:new kn.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 kn.h(null,{validators:[kn.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=jt.a.find(this.priorities,t=>jt.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=jt.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=Gn.getTypeValidators(e);t?(t.validators.push(kn.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(kn.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=jt.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(yn.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)(i.Mb(Qt.a),i.Mb(gn.b),i.Mb(Jt.a),i.Mb(Un.a),i.Mb(wn.a),i.Mb(fr))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-osd-recv-speed-modal"]],decls:24,vars:10,consts:function(){return[[3,"modalRef"],[1,"modal-title"],"OSD Recovery Priority",[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"],"Priority",[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"],"Customize priority values",["class","form-group row",4,"ngFor","ngForOf"],[1,"modal-footer"],[3,"form","submitText","showSubmit","submitActionEvent"],[3,"value"],[1,"invalid-feedback"],"This field is required.",[1,"cd-col-form-label",3,"for"],[3,"ngClass"],[4,"ngIf"],["type","number",1,"form-control",3,"id","formControlName","readonly"],"This field is required!","" + "\ufffd0\ufffd" + "","The entered value is too high! It must not be greater than " + "\ufffd0\ufffd" + ".","The entered value is too low! It must not be lower than " + "\ufffd0\ufffd" + "."]},template:function(e,t){if(1&e&&(i.Sb(0,"cd-modal",0),i.Qb(1,1),i.Wb(2,2),i.Pb(),i.Qb(3,3),i.Sb(4,"form",4,5),i.Sb(6,"div",6),i.Sb(7,"div",7),i.Sb(8,"label",8),i.Wb(9,9),i.Rb(),i.Sb(10,"div",10),i.Sb(11,"select",11),i.gc("change",(function(e){return t.onPriorityChange(e.target.value)})),i.Mc(12,kc,2,2,"option",12),i.Rb(),i.Mc(13,xc,2,0,"span",13),i.Rb(),i.Rb(),i.Sb(14,"div",7),i.Sb(15,"div",14),i.Sb(16,"div",15),i.Sb(17,"input",16),i.gc("change",(function(){return t.onCustomizePriorityChange()})),i.Rb(),i.Sb(18,"label",17),i.Wb(19,18),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Mc(20,Ec,11,13,"div",19),i.jc(21,"keyvalue"),i.Rb(),i.Sb(22,"div",20),i.Sb(23,"cd-form-button-panel",21),i.gc("submitActionEvent",(function(){return t.submitAction()})),i.Rb(),i.Rb(),i.Rb(),i.Pb(),i.Rb()),2&e){const e=i.Ac(5);i.pc("modalRef",t.activeModal),i.yb(4),i.pc("formGroup",t.osdRecvSpeedForm),i.yb(8),i.pc("ngForOf",t.priorities),i.yb(1),i.pc("ngIf",t.osdRecvSpeedForm.showError("priority",e,"required")),i.yb(7),i.pc("ngForOf",i.kc(21,8,t.priorityAttrs)),i.yb(3),i.pc("form",t.osdRecvSpeedForm)("submitText",t.actionLabels.UPDATE)("showSubmit",t.permissions.configOpt.update)}},directives:[_a.a,kn.C,kn.r,tc.a,Zn.a,kn.k,Xn.a,On.a,kn.z,ei.a,kn.q,kn.i,o.q,o.r,kn.b,ti.a,kn.u,kn.B,o.p,kn.v,kn.d,Mo.a],pipes:[o.k],styles:[""]}),e})();function Ic(e,t){1&e&&(i.Sb(0,"span"),i.Wb(1,15),i.Rb())}function Pc(e,t){1&e&&(i.Sb(0,"span"),i.Wb(1,16),i.Rb())}function Nc(e,t){if(1&e&&(i.Sb(0,"span",13),i.Mc(1,Ic,2,0,"span",14),i.Mc(2,Pc,2,0,"span",14),i.Rb()),2&e){const e=i.ic();i.yb(1),i.pc("ngIf",null==e.weight.errors?null:e.weight.errors.required),i.yb(1),i.pc("ngIf",(null==e.weight.errors?null:e.weight.errors.max)||(null==e.weight.errors?null:e.weight.errors.min))}}let jc=(()=>{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,[kn.A.required,kn.A.max(1),kn.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)(i.Mb(gn.b),i.Mb(Qt.a),i.Mb(fr),i.Mb(So.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-osd-reweight-modal"]],decls:14,vars:7,consts:function(){return[[3,"modalRef"],[1,"modal-title"],"Reweight OSD: " + "\ufffd0\ufffd" + "",[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"],"This field is required.","The value needs to be between 0 and 1."]},template:function(e,t){1&e&&(i.Sb(0,"cd-modal",0),i.Qb(1,1),i.Wb(2,2),i.Pb(),i.Qb(3,3),i.Sb(4,"form",4),i.Sb(5,"div",5),i.Sb(6,"div",6),i.Sb(7,"label",7),i.Oc(8,"Weight"),i.Rb(),i.Sb(9,"div",8),i.Nb(10,"input",9),i.Mc(11,Nc,3,2,"span",10),i.Rb(),i.Rb(),i.Rb(),i.Sb(12,"div",11),i.Sb(13,"cd-form-button-panel",12),i.gc("submitActionEvent",(function(){return t.reweight()})),i.Rb(),i.Rb(),i.Rb(),i.Pb(),i.Rb()),2&e&&(i.pc("modalRef",t.activeModal),i.yb(2),i.ac(t.osdId),i.Xb(2),i.yb(2),i.pc("formGroup",t.reweightForm),i.yb(6),i.pc("value",t.currentWeight),i.yb(1),i.pc("ngIf",t.weight.errors),i.yb(2),i.pc("form",t.reweightForm)("submitText",t.actionLabels.REWEIGHT))},directives:[_a.a,kn.C,kn.r,Zn.a,kn.k,On.a,kn.v,kn.d,ei.a,kn.q,kn.i,o.r,ti.a],styles:[""]}),e})();var Fc=n("FFMq");let Yc=(()=>{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 kn.j({})}scrub(){Object(vo.a)(this.selected.map(e=>this.osdService.scrub(e,this.deep))).subscribe(()=>{this.notificationService.show(yn.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)(i.Mb(Qt.a),i.Mb(gn.b),i.Mb(fr),i.Mb(wn.a),i.Mb(Fc.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-osd-scrub-modal"]],decls:13,vars:9,consts:function(){var e,t,n;return e="{VAR_SELECT, select, true {Deep } other {}}",e=i.bc(e,{VAR_SELECT:"\ufffd0\ufffd"}),t="OSDs " + e + "Scrub",n="{VAR_SELECT, select, true {deep } other {}}",n=i.bc(n,{VAR_SELECT:"\ufffd0\ufffd"}),[[3,"modalRef"],[1,"modal-title"],t,[1,"modal-content"],["name","scrubForm","novalidate","",3,"formGroup"],["formDir","ngForm"],[1,"modal-body"],"You are about to apply a " + n + "scrub to the OSD(s): " + "\ufffd#9\ufffd" + "" + "\ufffd1\ufffd" + "" + "\ufffd/#9\ufffd" + ".",[1,"modal-footer"],[3,"form","submitText","submitActionEvent"]]},template:function(e,t){1&e&&(i.Sb(0,"cd-modal",0),i.Sb(1,"span",1),i.Wb(2,2),i.Rb(),i.Qb(3,3),i.Sb(4,"form",4,5),i.Sb(6,"div",6),i.Sb(7,"p"),i.cc(8,7),i.Nb(9,"strong"),i.jc(10,"join"),i.Zb(),i.Rb(),i.Rb(),i.Sb(11,"div",8),i.Sb(12,"cd-form-button-panel",9),i.gc("submitActionEvent",(function(){return t.scrub()})),i.Rb(),i.Rb(),i.Rb(),i.Pb(),i.Rb()),2&e&&(i.pc("modalRef",t.activeModal),i.yb(2),i.ac(t.deep),i.Xb(2),i.yb(2),i.pc("formGroup",t.scrubForm),i.yb(6),i.ac(t.deep)(i.kc(10,7,t.selected)),i.Xb(8),i.yb(2),i.pc("form",t.scrubForm)("submitText",t.actionLabels.UPDATE))},directives:[_a.a,kn.C,kn.r,Zn.a,kn.k,ti.a],pipes:[Fc.a],styles:[""]}),e})();var zc=n("b5OY");function $c(e,t){if(1&e&&i.Nb(0,"cd-device-list",17),2&e){const e=i.ic(2);i.pc("osdId",null==e.osd?null:e.osd.id)}}function Hc(e,t){if(1&e&&i.Nb(0,"cd-table-key-value",18),2&e){const e=i.ic(2);i.pc("data",null==e.osd||null==e.osd.details?null:e.osd.details.osd_map)}}function Wc(e,t){if(1&e){const e=i.Tb();i.Sb(0,"cd-table-key-value",21),i.gc("fetchData",(function(){return i.Dc(e),i.ic(3).refresh()})),i.Rb()}if(2&e){const e=i.ic(3);i.pc("data",null==e.osd||null==e.osd.details?null:e.osd.details.osd_metadata)}}function Vc(e,t){1&e&&(i.Sb(0,"cd-alert-panel",22),i.Wb(1,23),i.Rb())}function Bc(e,t){if(1&e&&(i.Mc(0,Wc,1,1,"cd-table-key-value",19),i.Mc(1,Vc,2,0,"ng-template",null,20,i.Nc)),2&e){const e=i.Ac(2),t=i.ic(2);i.pc("ngIf",null==t.osd||null==t.osd.details?null:t.osd.details.osd_metadata)("ngIfElse",e)}}function Uc(e,t){if(1&e&&i.Nb(0,"cd-smart-list",17),2&e){const e=i.ic(2);i.pc("osdId",null==e.osd?null:e.osd.id)}}function Gc(e,t){if(1&e&&i.Nb(0,"cd-table-performance-counter",25),2&e){const e=i.ic(3);i.pc("serviceId",null==e.osd?null:e.osd.id)}}function qc(e,t){if(1&e&&i.Mc(0,Gc,1,1,"cd-table-performance-counter",24),2&e){const e=i.ic(2);i.pc("ngIf",null==e.osd?null:e.osd.details)}}function Jc(e,t){if(1&e&&i.Nb(0,"cd-grafana",28),2&e){const e=i.ic(3);i.pc("grafanaPath","osd-device-details?var-osd=osd."+e.osd.id)}}function Qc(e,t){1&e&&(i.Sb(0,"li",26),i.Sb(1,"a",4),i.Wb(2,27),i.Rb(),i.Mc(3,Jc,1,1,"ng-template",6),i.Rb())}function Kc(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"ul",1,2),i.Sb(3,"li",3),i.Sb(4,"a",4),i.Wb(5,5),i.Rb(),i.Mc(6,$c,1,1,"ng-template",6),i.Rb(),i.Sb(7,"li",7),i.Sb(8,"a",4),i.Wb(9,8),i.Rb(),i.Mc(10,Hc,1,1,"ng-template",6),i.Rb(),i.Sb(11,"li",9),i.Sb(12,"a",4),i.Wb(13,10),i.Rb(),i.Mc(14,Bc,3,2,"ng-template",6),i.Rb(),i.Sb(15,"li",11),i.Sb(16,"a",4),i.Wb(17,12),i.Rb(),i.Mc(18,Uc,1,1,"ng-template",6),i.Rb(),i.Sb(19,"li",13),i.Sb(20,"a",4),i.Wb(21,14),i.Rb(),i.Mc(22,qc,1,1,"ng-template",6),i.Rb(),i.Mc(23,Qc,4,0,"li",15),i.Rb(),i.Nb(24,"div",16),i.Pb()),2&e){const e=i.Ac(2),t=i.ic();i.yb(23),i.pc("ngIf",t.grafanaPermission.read),i.yb(1),i.pc("ngbNavOutlet",e)}}let Zc=(()=>{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),jt.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)(i.Mb(fr),i.Mb(Jt.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-osd-details"]],inputs:{selection:"selection"},features:[i.wb],decls:1,vars:1,consts:function(){return[[4,"ngIf"],["ngbNav","","id","tabset-osd-details","cdStatefulTab","osd-details",1,"nav-tabs"],["nav","ngbNav"],["ngbNavItem","devices"],["ngbNavLink",""],"Devices",["ngbNavContent",""],["ngbNavItem","attributes"],"Attributes (OSD map)",["ngbNavItem","metadata"],"Metadata",["ngbNavItem","device-health"],"Device health",["ngbNavItem","performance-counter"],"Performance counter",["ngbNavItem","performance-details",4,"ngIf"],[3,"ngbNavOutlet"],[3,"osdId"],[3,"data"],[3,"data","fetchData",4,"ngIf","ngIfElse"],["noMetaData",""],[3,"data","fetchData"],["type","warning"],"Metadata not available",["serviceType","osd",3,"serviceId",4,"ngIf"],["serviceType","osd",3,"serviceId"],["ngbNavItem","performance-details"],"Performance Details",["uid","CrAHE0iZz","grafanaStyle","three",3,"grafanaPath"]]},template:function(e,t){1&e&&i.Mc(0,Kc,25,2,"ng-container",0),2&e&&i.pc("ngIf",t.selection)},directives:[o.r,Qt.p,Kt.a,Qt.r,Qt.s,Qt.q,Qt.u,Tr,en.a,pr.a,_s,zc.a,Fn.a],styles:[""]}),e})();const Xc=["osdUsageTpl"],el=["markOsdConfirmationTpl"],tl=["criticalConfirmationTpl"],nl=["reweightBodyTpl"],il=["safeToDestroyBodyTpl"],rl=["deleteOsdExtraTpl"],sl=["flagsTpl"],ol=function(){return{read:!0}};function al(e,t){if(1&e){const e=i.Tb();i.Sb(0,"cd-table",13),i.gc("fetchData",(function(){return i.Dc(e),i.ic().getOsdList()}))("setExpandedRow",(function(t){return i.Dc(e),i.ic().setExpandedRow(t)}))("updateSelection",(function(t){return i.Dc(e),i.ic().updateSelection(t)})),i.Sb(1,"div",14),i.Nb(2,"cd-table-actions",15),i.Nb(3,"cd-table-actions",16),i.Rb(),i.Nb(4,"cd-osd-details",17),i.Rb()}if(2&e){const e=i.ic();i.pc("data",e.osds)("columns",e.columns)("hasDetails",!0)("updateSelectionOnRefresh","never"),i.yb(2),i.pc("permission",e.permissions.osd)("selection",e.selection)("tableActions",e.tableActions),i.yb(1),i.pc("permission",i.tc(11,ol))("selection",e.selection)("tableActions",e.clusterWideActions),i.yb(1),i.pc("selection",e.expandedRow)}}function cl(e,t){1&e&&i.Nb(0,"cd-grafana",19),2&e&&i.pc("grafanaPath","osd-overview?")}function ll(e,t){1&e&&(i.Sb(0,"li",2),i.Sb(1,"a",3),i.Wb(2,18),i.Rb(),i.Mc(3,cl,1,1,"ng-template",5),i.Rb())}function ul(e,t){if(1&e&&(i.Qb(0),i.cc(1,20),i.Nb(2,"strong"),i.jc(3,"join"),i.Nb(4,"strong"),i.Zb(),i.Pb()),2&e){const e=t.markActionDescription,n=t.osdIds;i.yb(4),i.ac(i.kc(3,2,n))(e),i.Xb(1)}}function dl(e,t){if(1&e&&(i.Sb(0,"div",23),i.Sb(1,"cd-alert-panel",24),i.Wb(2,25),i.Rb(),i.Rb()),2&e){const e=i.ic(),t=e.actionDescription,n=e.message,r=i.ic();i.yb(2),i.ac(r.selection.hasSingleSelection)(t)(n),i.Xb(2)}}function hl(e,t){if(1&e&&(i.Mc(0,dl,3,3,"div",21),i.Qb(1),i.cc(2,22),i.Nb(3,"strong"),i.jc(4,"join"),i.Nb(5,"strong"),i.Zb(),i.Pb()),2&e){const e=t.actionDescription,n=t.osdIds;i.pc("ngIf",!t.safeToPerform),i.yb(5),i.ac(i.kc(4,3,n))(e),i.Xb(2)}}function fl(e,t){if(1&e&&(i.Sb(0,"span",28),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.yb(1),i.Pc(e)}}function pl(e,t){if(1&e&&(i.Sb(0,"span",29),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.yb(1),i.Pc(e)}}function ml(e,t){if(1&e&&(i.Mc(0,fl,2,1,"span",26),i.Mc(1,pl,2,1,"span",27)),2&e){const e=t.row;i.pc("ngForOf",e.cdClusterFlags),i.yb(1),i.pc("ngForOf",e.cdIndivFlags)}}function bl(e,t){if(1&e&&i.Nb(0,"cd-usage-bar",30),2&e){const e=t.row;i.pc("total",e.stats.stat_bytes)("used",e.stats.stat_bytes_used)}}function gl(e,t){1&e&&(i.Qb(0,31),i.Qb(1,32),i.Sb(2,"div",33),i.Sb(3,"div",34),i.Nb(4,"input",35),i.Sb(5,"label",36),i.Wb(6,37),i.Rb(),i.Rb(),i.Rb(),i.Pb(),i.Pb()),2&e&&i.pc("formGroup",t.form)}let _l=(()=>{class e extends $t.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 Wt.a,this.osds=[],this.disabledFlags=["sortbitwise","purged_snapdirs","recovery_deletes","pglog_hardlimit"],this.indivFlagNames=["noup","nodown","noin","noout"],this.actionOrchFeatures={create:[ur.OSD_CREATE],delete:[ur.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 Wt.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 Wt.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:Ht.a.executing,customTemplateConfig:{valueClass:"bold"}},{prop:"host.name",name:"Host"},{prop:"collectedStates",name:"Status",flexGrow:1,cellTransformation:Ht.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:Ht.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:Ht.a.sparkline},{prop:"stats_history.in_bytes",name:"Write bytes",cellTransformation:Ht.a.sparkline},{prop:"stats.op_r",name:"Read ops",cellTransformation:Ht.a.perSecond},{prop:"stats.op_w",name:"Write ops",cellTransformation:Ht.a.perSecond}],this.orchService.status().subscribe(e=>this.orchStatus=e)}getDisable(e,t){if("delete"===e){if(!t.hasSelection)return!0;if(jt.a.some(this.getSelectedOsds(),e=>{const t=jt.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=>!jt.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(vo.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=jt.a.get(n,"operational_status","unmanaged");return"unmanaged"!==i&&"working"!==i&&(n.cdExecuting=i),n})})}editAction(){const e=jt.a.filter(this.osds,["id",this.selection.first().id]).pop();this.modalService.show(Tn.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(yn.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(Yc,t)}configureFlagsAction(){this.bsModalRef=this.modalService.show(rc)}configureFlagsIndivAction(){const e={selected:this.getSelectedOsds()};this.bsModalRef=this.modalService.show(ec,e)}showConfirmationModal(e,t){const n=this.getSelectedOsdIds();this.bsModalRef=this.modalService.show(Dn.a,{titleText:"Mark OSD " + e + "",buttonText:"Mark " + e + "",bodyTpl:this.markOsdConfirmationTpl,bodyContext:{markActionDescription:e,osdIds:n},onSubmit:()=>{Object(vo.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(jc,{currentWeight:e.weight,osdId:e.id})}delete(){const e=new Jn.a({preserve:new kn.h(!1)});this.showCriticalConfirmationModal("delete","OSD","deleted",e=>this.osdService.safeToDelete(JSON.stringify(e)),"is_safe_to_delete",t=>(this.selection=new Wt.a,this.taskWrapper.wrapTaskAroundCall({task:new er.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(vo.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(Ac)}configurePgScrubAction(){this.bsModalRef=this.modalService.show(Mc,void 0,{size:"lg"})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Jt.a),i.Mb(fr),i.Mb(Zt.a),i.Mb(vn.a),i.Mb(hr.a),i.Mb(Pt.e),i.Mb(tr.a),i.Mb(gn.b),i.Mb(wn.a),i.Mb(cr))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-osd-list"]],viewQuery:function(e,t){var n;1&e&&(i.Jc(Xc,!0),i.Jc(el,!0),i.Jc(tl,!0),i.Tc(nl,!0),i.Tc(il,!0),i.Tc(rl,!0),i.Jc(sl,!0)),2&e&&(i.zc(n=i.hc())&&(t.osdUsageTpl=n.first),i.zc(n=i.hc())&&(t.markOsdConfirmationTpl=n.first),i.zc(n=i.hc())&&(t.criticalConfirmationTpl=n.first),i.zc(n=i.hc())&&(t.reweightBodyTpl=n.first),i.zc(n=i.hc())&&(t.safeToDestroyBodyTpl=n.first),i.zc(n=i.hc())&&(t.deleteOsdExtraTpl=n.first),i.zc(n=i.hc())&&(t.flagsTpl=n.first))},features:[i.xb([{provide:hr.a,useValue:new hr.a("osd")}]),i.vb],decls:18,vars:2,consts:function(){var e,t,n,r,s;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=i.bc(n),r="" + "[\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.",r=i.bc(r),s="{VAR_SELECT, select, true {OSD is} other {OSDs are}}",s=i.bc(s,{VAR_SELECT:"\ufffd0\ufffd"}),[["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"],r,[1,"danger"],["type","warning"],"The " + s + " not safe to be " + "\ufffd1\ufffd" + "! " + "\ufffd2\ufffd" + "",["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"],"Preserve OSD ID(s) for replacement."]},template:function(e,t){if(1&e&&(i.Sb(0,"ul",0,1),i.Sb(2,"li",2),i.Sb(3,"a",3),i.Wb(4,4),i.Rb(),i.Mc(5,al,5,12,"ng-template",5),i.Rb(),i.Mc(6,ll,4,0,"li",6),i.Rb(),i.Nb(7,"div",7),i.Mc(8,ul,5,4,"ng-template",null,8,i.Nc),i.Mc(10,hl,6,5,"ng-template",null,9,i.Nc),i.Mc(12,ml,2,2,"ng-template",null,10,i.Nc),i.Mc(14,bl,1,2,"ng-template",null,11,i.Nc),i.Mc(16,gl,7,1,"ng-template",null,12,i.Nc)),2&e){const e=i.Ac(1);i.yb(6),i.pc("ngIf",t.permissions.grafana.read),i.yb(1),i.pc("ngbNavOutlet",e)}},directives:[Qt.p,Qt.r,Qt.s,Qt.q,o.r,Qt.u,Bt.a,Sn.a,Zc,Fn.a,pr.a,o.q,ln.a,Zn.a,kn.r,kn.k,kn.l,Xn.a,On.a,kn.b,ei.a,kn.q,kn.i],pipes:[Fc.a],styles:[""]}),e})();var yl=n("20UP");let vl=(()=>{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(Vi.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)(i.dc(a.b),i.dc(yl.a))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var wl=n("G1I9");let Sl=(()=>{class e{constructor(e){this.notificationService=e}sendNotifications(e){e.forEach(e=>this.notificationService.show(e))}convertToCustomAlerts(e){return jt.a.uniqWith(e.map(e=>({status:jt.a.isObject(e.status)?e.status.state:this.getPrometheusNotificationStatus(e),name:e.labels.alertname,url:e.generatorURL,description:e.annotations.description,fingerprint:jt.a.isObject(e.status)&&e.fingerprint})),jt.a.isEqual)}getPrometheusNotificationStatus(e){const t=e.status;return"firing"===t?"active":t}convertAlertToNotification(e){return new wl.b(this.formatType(e.status),`${e.name} (${e.status})`,this.appendSourceLink(e,e.description),void 0,"Prometheus")}formatType(e){return yn.a[jt.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)(i.dc(wn.a))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Ml=(()=>{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=jt.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)).map(e=>this.alertFormatter.convertAlertToNotification(e));this.alertFormatter.sendNotifications(n)}getChangedAlerts(e,t){return jt.a.differenceWith(e,t,jt.a.isEqual).concat(this.getVanishedAlerts(e,t))}getVanishedAlerts(e,t){return jt.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)(i.dc(Sl),i.dc(vl))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),kl=(()=>{class e extends $t.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)(i.Mb(vl))},e.\u0275dir=i.Hb({type:e,features:[i.vb]}),e})(),xl=(()=>{class e{constructor(e){this.router=e}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Pt.e))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-prometheus-tabs"]],decls:11,vars:1,consts:function(){return[["ngbNav","",1,"nav-tabs",3,"activeId","navChange"],["nav","ngbNav"],["ngbNavItem","/monitoring/active-alerts"],["ngbNavLink",""],"Active Alerts",["ngbNavItem","/monitoring/alerts"],"Alerts",["ngbNavItem","/monitoring/silences"],"Silences"]},template:function(e,t){1&e&&(i.Sb(0,"ul",0,1),i.gc("navChange",(function(e){return t.router.navigate([e.nextId])})),i.Sb(2,"li",2),i.Sb(3,"a",3),i.Wb(4,4),i.Rb(),i.Rb(),i.Sb(5,"li",5),i.Sb(6,"a",3),i.Wb(7,6),i.Rb(),i.Rb(),i.Sb(8,"li",7),i.Sb(9,"a",3),i.Wb(10,8),i.Rb(),i.Rb(),i.Rb()),2&e&&i.pc("activeId",t.router.url)},directives:[Qt.p,Qt.r,Qt.s],styles:[""]}),e})();const Dl=["externalLinkTpl"];function Tl(e,t){1&e&&(i.Sb(0,"cd-alert-panel",3),i.cc(1,4),i.Nb(2,"cd-doc",5),i.Zb(),i.Rb())}function Cl(e,t){if(1&e&&i.Nb(0,"cd-table-key-value",9),2&e){const e=i.ic(2);i.pc("renderObjects",!0)("hideEmpty",!0)("appendParentKey",!1)("data",e.expandedRow)("customCss",e.customCss)("autoReload",!1)}}function Ol(e,t){if(1&e){const e=i.Tb();i.Sb(0,"cd-table",6),i.gc("setExpandedRow",(function(t){return i.Dc(e),i.ic().setExpandedRow(t)}))("updateSelection",(function(t){return i.Dc(e),i.ic().updateSelection(t)})),i.Nb(1,"cd-table-actions",7),i.Mc(2,Cl,1,6,"cd-table-key-value",8),i.Rb()}if(2&e){const e=i.ic();i.pc("data",e.prometheusAlertService.alerts)("columns",e.columns)("forceIdentifier",!0)("customCss",e.customCss)("hasDetails",!0),i.yb(1),i.pc("permission",e.permission)("selection",e.selection)("tableActions",e.tableActions),i.yb(1),i.pc("ngIf",e.expandedRow)}}const Ll=function(e){return[e]};function Rl(e,t){if(1&e&&(i.Sb(0,"a",10),i.Nb(1,"i",11),i.Oc(2," Source"),i.Rb()),2&e){const e=t.value,n=i.ic();i.pc("href",e,i.Gc),i.yb(1),i.pc("ngClass",i.uc(2,Ll,n.icons.lineChart))}}let El=(()=>{class e extends kl{constructor(e,t,n,i,r){super(r),this.authStorageService=e,this.prometheusAlertService=t,this.urlBuilder=n,this.cdDatePipe=i,this.selection=new Wt.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:Ht.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)(i.Mb(Jt.a),i.Mb(Ml),i.Mb(hr.a),i.Mb(Vt.a),i.Mb(vl))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-active-alert-list"]],viewQuery:function(e,t){var n;1&e&&i.Jc(Dl,!0),2&e&&i.zc(n=i.hc())&&(t.externalLinkTpl=n.first)},features:[i.xb([{provide:hr.a,useValue:new hr.a("silences")}]),i.vb],decls:5,vars:2,consts:function(){return[["type","info",4,"ngIf"],["identifier","fingerprint","selectionType","single",3,"data","columns","forceIdentifier","customCss","hasDetails","setExpandedRow","updateSelection",4,"ngIf"],["externalLinkTpl",""],["type","info"],"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" + ".",["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&&(i.Nb(0,"cd-prometheus-tabs"),i.Mc(1,Tl,3,0,"cd-alert-panel",0),i.Mc(2,Ol,3,9,"cd-table",1),i.Mc(3,Rl,3,4,"ng-template",null,2,i.Nc)),2&e&&(i.yb(1),i.pc("ngIf",!t.isAlertmanagerConfigured),i.yb(1),i.pc("ngIf",t.isAlertmanagerConfigured))},directives:[xl,o.r,pr.a,Cr.a,Bt.a,Sn.a,en.a,o.p],styles:[""]}),e})(),Al=(()=>{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=i.Lb({name:"duration",type:e,pure:!1}),e})();function Il(e,t){1&e&&(i.Sb(0,"cd-alert-panel",2),i.cc(1,3),i.Nb(2,"cd-doc",4),i.Zb(),i.Rb())}function Pl(e,t){if(1&e&&i.Nb(0,"cd-table-key-value",7),2&e){const e=i.ic(2);i.pc("data",e.expandedRow)("renderObjects",!0)("hideKeys",e.hideKeys)}}function Nl(e,t){if(1&e){const e=i.Tb();i.Sb(0,"cd-table",5),i.gc("updateSelection",(function(t){return i.Dc(e),i.ic().setExpandedRow(t)})),i.Mc(1,Pl,1,3,"cd-table-key-value",6),i.Rb()}if(2&e){const e=i.ic();i.pc("data",e.prometheusAlertService.rules)("columns",e.columns)("hasDetails",!0)("selectionType","single"),i.yb(1),i.pc("ngIf",e.expandedRow)}}let jl=(()=>{class e extends kl{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 Al},{prop:"query",name:"Query",isHidden:!0},{prop:"annotations.description",name:"Description"}]}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Ml),i.Mb(vl))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-rules-list"]],features:[i.vb],decls:3,vars:2,consts:function(){return[["type","info",4,"ngIf"],[3,"data","columns","hasDetails","selectionType","updateSelection",4,"ngIf"],["type","info"],"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" + ".",["section","prometheus"],[3,"data","columns","hasDetails","selectionType","updateSelection"],["cdTableDetail","",3,"data","renderObjects","hideKeys",4,"ngIf"],["cdTableDetail","",3,"data","renderObjects","hideKeys"]]},template:function(e,t){1&e&&(i.Nb(0,"cd-prometheus-tabs"),i.Mc(1,Il,3,0,"cd-alert-panel",0),i.Mc(2,Nl,2,5,"cd-table",1)),2&e&&(i.yb(1),i.pc("ngIf",!t.isPrometheusConfigured),i.yb(1),i.pc("ngIf",t.isPrometheusConfigured))},directives:[xl,o.r,pr.a,Cr.a,Bt.a,en.a],styles:[""]}),e})();var Fl=n("WE5d");let Yl=(()=>{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=>jt.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=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),zl=(()=>{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(jt.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=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var $l=n("XNiG"),Hl=n("VRyK"),Wl=n("7o/Q"),Vl=n("D0XW");function Bl(e,t=Vl.a){return n=>n.lift(new Ul(e,t))}class Ul{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new Gl(e,this.dueTime,this.scheduler))}}class Gl extends Wl.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(ql,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 ql(e){e.debouncedNext()}var Jl=n("/uUt"),Ql=n("pLZG");function Kl(e,t){if(1&e&&(i.Sb(0,"option",27),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e),i.yb(1),i.Qc(" ",e," ")}}function Zl(e,t){1&e&&(i.Sb(0,"span",28),i.Wb(1,29),i.Rb())}function Xl(e,t){1&e&&(i.Sb(0,"span",28),i.Wb(1,30),i.Rb())}function eu(e,t){if(1&e&&(i.Sb(0,"div",31),i.Sb(1,"span"),i.Oc(2),i.Rb(),i.Rb()),2&e){const e=i.ic();i.Bb("cd-col-form-offset ",e.matcherMatch.cssClass,""),i.yb(1),i.Bb("text-muted ",e.matcherMatch.cssClass,""),i.yb(1),i.Qc(" ",e.matcherMatch.status," ")}}let tu=(()=>{class e{constructor(e,t,n,r){this.formBuilder=e,this.silenceMatcher=t,this.activeModal=n,this.actionLabels=r,this.submitAction=new i.o,this.editMode=!1,this.nameAttributes=["alertname","instance","job","severity"],this.possibleValues=[],this.matcherMatch=void 0,this.valueClick=new $l.a,this.valueFocus=new $l.a,this.search=e=>Object(Hl.a)(e.pipe(Bl(200),Object(Jl.a)()),this.valueFocus,this.valueClick.pipe(Object(Ql.a)(()=>!this.typeahead.isPopupOpen()))).pipe(Object(Vi.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,[kn.A.required]],value:[{value:"",disabled:!0},[kn.A.required]],isRegex:new kn.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=jt.a.sortedUniq(this.rules.map(t=>jt.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)(i.Mb(So.a),i.Mb(Yl),i.Mb(Qt.a),i.Mb(gn.b))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-silence-matcher-modal"]],viewQuery:function(e,t){var n;1&e&&i.Jc(Qt.G,!0),2&e&&i.zc(n=i.hc())&&(t.typeahead=n.first)},outputs:{submitAction:"submitAction"},decls:31,vars:11,consts:function(){var e;return e="{VAR_SELECT, select, true {Edit} other {Add}}",e=i.bc(e,{VAR_SELECT:"\ufffd0\ufffd"}),[[3,"modalRef"],[1,"modal-title"],"" + e + " Matcher",[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"],"Name",[1,"cd-col-form-input"],["id","name","formControlName","name","name","name",1,"form-control"],[3,"ngValue"],"-- Select an attribute to match against --",[3,"value",4,"ngFor","ngForOf"],["class","help-block",4,"ngIf"],["for","value",1,"cd-col-form-label","required"],"Value",["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"],"Use regular expression",[1,"modal-footer"],[3,"form","submitText","submitActionEvent"],[3,"value"],[1,"help-block"],"This field is required!","This field is required!",["id","match-state"]]},template:function(e,t){if(1&e&&(i.Sb(0,"cd-modal",0),i.Sb(1,"span",1),i.Wb(2,2),i.Rb(),i.Qb(3,3),i.Sb(4,"form",4,5),i.Sb(6,"div",6),i.Sb(7,"div",7),i.Sb(8,"label",8),i.Wb(9,9),i.Rb(),i.Sb(10,"div",10),i.Sb(11,"select",11),i.Sb(12,"option",12),i.Wb(13,13),i.Rb(),i.Mc(14,Kl,2,2,"option",14),i.Rb(),i.Mc(15,Zl,2,0,"span",15),i.Rb(),i.Rb(),i.Sb(16,"div",7),i.Sb(17,"label",16),i.Wb(18,17),i.Rb(),i.Sb(19,"div",10),i.Sb(20,"input",18),i.gc("focus",(function(e){return t.valueFocus.next(e.target.value)}))("click",(function(e){return t.valueClick.next(e.target.value)})),i.Rb(),i.Mc(21,Xl,2,0,"span",15),i.Rb(),i.Mc(22,eu,3,7,"div",19),i.Rb(),i.Sb(23,"div",7),i.Sb(24,"div",20),i.Sb(25,"div",21),i.Nb(26,"input",22),i.Sb(27,"label",23),i.Wb(28,24),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(29,"div",25),i.Sb(30,"cd-form-button-panel",26),i.gc("submitActionEvent",(function(){return t.onSubmit()})),i.Rb(),i.Rb(),i.Rb(),i.Pb(),i.Rb()),2&e){const e=i.Ac(5);i.pc("modalRef",t.activeModal),i.yb(2),i.ac(t.editMode),i.Xb(2),i.yb(2),i.pc("formGroup",t.form),i.yb(8),i.pc("ngValue",null),i.yb(2),i.pc("ngForOf",t.nameAttributes),i.yb(1),i.pc("ngIf",t.form.showError("name",e,"required")),i.yb(5),i.pc("ngbTypeahead",t.search),i.yb(1),i.pc("ngIf",t.form.showError("value",e,"required")),i.yb(1),i.pc("ngIf",t.form.getValue("value")&&!t.form.getValue("isRegex")&&t.matcherMatch),i.yb(8),i.pc("form",t.form)("submitText",t.getMode())}},directives:[_a.a,kn.C,kn.r,Zn.a,kn.k,Xn.a,On.a,kn.z,ei.a,kn.q,kn.i,kn.u,kn.B,o.q,o.r,kn.d,Qt.G,kn.b,ti.a],styles:[""]}),e})();var nu=n("MAOJ");function iu(e,t){if(1&e&&(i.Qb(0),i.Nb(1,"input",54),i.Pb()),2&e){const e=i.ic().$implicit,t=i.ic(),n=t.index,r=t.matcher;i.yb(1),i.sc("id","matcher-",e.attribute,"-",n,""),i.pc("value",r[e.attribute])}}function ru(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"div",47),i.Sb(2,"div",55),i.Nb(3,"input",56),i.Rb(),i.Rb(),i.Pb()),2&e){const e=i.ic().$implicit,t=i.ic(),n=t.index,r=t.matcher;i.yb(3),i.sc("id","matcher-",e.attribute,"-",n,""),i.pc("checked",r[e.attribute])}}const su=function(e){return[e]};function ou(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"div",52),i.Sb(2,"span",53),i.Nb(3,"i",38),i.Rb(),i.Rb(),i.Mc(4,iu,2,3,"ng-container",7),i.Mc(5,ru,4,3,"ng-container",7),i.Pb()),2&e){const e=t.$implicit;i.yb(2),i.pc("ngbTooltip",e.tooltip),i.yb(1),i.pc("ngClass",i.uc(4,su,e.icon)),i.yb(1),i.pc("ngIf","isRegex"!==e.attribute),i.yb(1),i.pc("ngIf","isRegex"===e.attribute)}}function au(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",46),i.Mc(1,ou,6,6,"ng-container",34),i.Sb(2,"span",47),i.Sb(3,"button",48),i.Yb(4,49),i.gc("click",(function(){i.Dc(e);const n=t.index;return i.ic().showMatcherModal(n)})),i.Nb(5,"i",38),i.Rb(),i.Sb(6,"button",48),i.Yb(7,50),i.gc("click",(function(){i.Dc(e);const n=t.index;return i.ic().deleteMatcher(n)})),i.Nb(8,"i",38),i.Rb(),i.Rb(),i.Rb(),i.Nb(9,"span",51)}if(2&e){const e=t.index,n=i.ic();i.yb(1),i.pc("ngForOf",n.matcherConfig),i.yb(2),i.rc("id","matcher-edit-",e,""),i.yb(2),i.pc("ngClass",i.uc(5,su,n.icons.edit)),i.yb(1),i.rc("id","matcher-delete-",e,""),i.yb(2),i.pc("ngClass",i.uc(7,su,n.icons.trash))}}function cu(e,t){1&e&&(i.Sb(0,"cd-helper"),i.Wb(1,57),i.Rb())}function lu(e,t){1&e&&(i.Sb(0,"span",58),i.Wb(1,59),i.Rb())}function uu(e,t){1&e&&(i.Sb(0,"span",58),i.Wb(1,60),i.Rb())}function du(e,t){1&e&&(i.Sb(0,"span",58),i.Wb(1,61),i.Rb())}function hu(e,t){1&e&&(i.Sb(0,"span",58),i.Wb(1,62),i.Rb())}function fu(e,t){1&e&&(i.Sb(0,"span",58),i.Wb(1,63),i.Rb())}const pu=function(e,t){return{"text-warning":e,"text-danger":t}};function mu(e,t){if(1&e&&(i.Sb(0,"h5",38),i.Sb(1,"strong"),i.Wb(2,64),i.Rb(),i.Rb()),2&e){i.ic();const e=i.Ac(4);i.pc("ngClass",i.vc(1,pu,!e.submitted,e.submitted))}}function bu(e,t){1&e&&i.Ob(0)}const gu=function(e,t){return{index:e,matcher:t}};function _u(e,t){if(1&e&&(i.Sb(0,"span"),i.Mc(1,bu,1,0,"ng-container",65),i.Rb()),2&e){const e=t.$implicit,n=t.index;i.ic();const r=i.Ac(1);i.yb(1),i.pc("ngTemplateOutlet",r)("ngTemplateOutletContext",i.vc(2,gu,n,e))}}function yu(e,t){if(1&e&&(i.Sb(0,"div",66),i.Sb(1,"span"),i.Oc(2),i.Rb(),i.Rb()),2&e){const e=i.ic();i.Bb("cd-col-form-offset ",e.matcherMatch.cssClass,""),i.yb(1),i.Bb("text-muted ",e.matcherMatch.cssClass,""),i.yb(1),i.Qc(" ",e.matcherMatch.status," ")}}function vu(e,t){if(1&e&&i.Nb(0,"cd-date-time-picker",67),2&e){const e=i.ic();i.pc("control",e.form.get("startsAt"))("hasSeconds",!1)}}function wu(e,t){if(1&e&&i.Nb(0,"cd-date-time-picker",67),2&e){const e=i.ic();i.pc("control",e.form.get("endsAt"))("hasSeconds",!1)}}const Su=function(e){return{"btn-warning":e}};let Mu=(()=>{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 Fl.b}createForm(){const e=Cn.a.custom("format",e=>!(""===e||nn()(e,this.datetimeFormat).isValid()));this.form=this.formBuilder.group({startsAt:["",[kn.A.required,e]],duration:["2h",[kn.A.min(1)]],endsAt:["",[kn.A.required,e]],createdBy:[this.authStorageService.getUsername(),[kn.A.required]],comment:[null,[kn.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)=>jt.a.concat(e,t.rules),[])},()=>{this.prometheusService.disablePrometheusConfig(),this.rules=[]}),()=>{this.rules=[],this.notificationService.show(yn.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){jt.a.isNumber(t)?this.matchers[t]=e:this.matchers.push(e),this.validateMatchers()}showMatcherModal(e){const t=this.modalService.show(tu).componentInstance;t.rules=this.rules,jt.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(yn.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)(i.Mb(Pt.e),i.Mb(Jt.a),i.Mb(So.a),i.Mb(vl),i.Mb(wn.a),i.Mb(Pt.a),i.Mb(zl),i.Mb(vn.a),i.Mb(Yl),i.Mb(gn.b),i.Mb(gn.d))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-prometheus-form"]],decls:71,vars:30,consts:function(){return[["matcherTpl",""],[1,"cd-col-form"],["name","form","novalidate","",1,"form",3,"formGroup"],["formDir","ngForm"],[1,"card"],[1,"card-header"]," " + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + " ",[4,"ngIf"],[1,"card-body"],[1,"form-group","row"],["for","created-by",1,"cd-col-form-label","required"],"Creator",[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"],"Comment",["formControlName","comment","id","comment","name","comment","type","text",1,"form-control"],["for","starts-at",1,"cd-col-form-label"],[1,"required"],"Start time","If the start time lies in the past the creation time will be used",["formControlName","startsAt","triggers","manual",1,"form-control",3,"ngbPopover","click","keypress"],["ps","ngbPopover"],["for","duration",1,"cd-col-form-label","required"],"Duration",["formControlName","duration","id","duration","name","duration","type","text",1,"form-control"],["for","ends-at",1,"cd-col-form-label","required"],"End time",["formControlName","endsAt","triggers","manual",1,"form-control",3,"ngbPopover","click","keypress"],["pe","ngbPopover"],"Matchers",[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"],"Add matcher",["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",1,"btn","btn-light",3,"id","click",6,"ngbTooltip"],["ngbTooltip","Edit"],["ngbTooltip","Delete"],[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"],"Editing a silence will expire the old silence and recreate it as a new silence",[1,"invalid-feedback"],"This field is required!","This field is required!","This field is required!","This field is required!","This field is required!","A silence requires at least one matcher",[4,"ngTemplateOutlet","ngTemplateOutletContext"],["id","match-state"],[3,"control","hasSeconds"]]},template:function(e,t){if(1&e){const e=i.Tb();i.Mc(0,au,10,9,"ng-template",null,0,i.Nc),i.Sb(2,"div",1),i.Sb(3,"form",2,3),i.Sb(5,"div",4),i.Sb(6,"div",5),i.Sb(7,"span"),i.Wb(8,6),i.jc(9,"titlecase"),i.jc(10,"upperFirst"),i.Rb(),i.Mc(11,cu,2,0,"cd-helper",7),i.Rb(),i.Sb(12,"div",8),i.Sb(13,"div",9),i.Sb(14,"label",10),i.Wb(15,11),i.Rb(),i.Sb(16,"div",12),i.Nb(17,"input",13),i.Mc(18,lu,2,0,"span",14),i.Rb(),i.Rb(),i.Sb(19,"div",9),i.Sb(20,"label",15),i.Wb(21,16),i.Rb(),i.Sb(22,"div",12),i.Sb(23,"textarea",17),i.Oc(24,"            "),i.Rb(),i.Mc(25,uu,2,0,"span",14),i.Rb(),i.Rb(),i.Sb(26,"div",9),i.Sb(27,"label",18),i.Sb(28,"span",19),i.Wb(29,20),i.Rb(),i.Sb(30,"cd-helper"),i.Wb(31,21),i.Rb(),i.Rb(),i.Sb(32,"div",12),i.Sb(33,"input",22,23),i.gc("click",(function(){return i.Dc(e),i.Ac(34).open()}))("keypress",(function(){return i.Dc(e),i.Ac(34).close()})),i.Rb(),i.Mc(35,du,2,0,"span",14),i.Rb(),i.Rb(),i.Sb(36,"div",9),i.Sb(37,"label",24),i.Wb(38,25),i.Rb(),i.Sb(39,"div",12),i.Nb(40,"input",26),i.Mc(41,hu,2,0,"span",14),i.Rb(),i.Rb(),i.Sb(42,"div",9),i.Sb(43,"label",27),i.Wb(44,28),i.Rb(),i.Sb(45,"div",12),i.Sb(46,"input",29,30),i.gc("click",(function(){return i.Dc(e),i.Ac(47).open()}))("keypress",(function(){return i.Dc(e),i.Ac(47).close()})),i.Rb(),i.Mc(48,fu,2,0,"span",14),i.Rb(),i.Rb(),i.Sb(49,"fieldset"),i.Sb(50,"legend",19),i.Wb(51,31),i.Rb(),i.Sb(52,"div",32),i.Mc(53,mu,3,4,"h5",33),i.Mc(54,_u,2,5,"span",34),i.Sb(55,"div",35),i.Sb(56,"div",36),i.Sb(57,"button",37),i.gc("click",(function(){return t.showMatcherModal()})),i.Nb(58,"i",38),i.Qb(59),i.Wb(60,39),i.Pb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Mc(61,yu,3,7,"div",40),i.Rb(),i.Rb(),i.Sb(62,"div",41),i.Sb(63,"div",42),i.Sb(64,"cd-form-button-panel",43),i.gc("submitActionEvent",(function(){return t.submit()})),i.jc(65,"titlecase"),i.jc(66,"upperFirst"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Mc(67,vu,1,2,"ng-template",null,44,i.Nc),i.Mc(69,wu,1,2,"ng-template",null,45,i.Nc)}if(2&e){const e=i.Ac(4),n=i.Ac(68),r=i.Ac(70);i.yb(3),i.pc("formGroup",t.form),i.yb(7),i.ac(i.kc(9,18,t.action))(i.kc(10,20,t.resource)),i.Xb(8),i.yb(1),i.pc("ngIf",t.edit),i.yb(7),i.pc("ngIf",t.form.showError("createdBy",e,"required")),i.yb(7),i.pc("ngIf",t.form.showError("comment",e,"required")),i.yb(8),i.pc("ngbPopover",n),i.yb(2),i.pc("ngIf",t.form.showError("startsAt",e,"required")),i.yb(6),i.pc("ngIf",t.form.showError("duration",e,"required")),i.yb(5),i.pc("ngbPopover",r),i.yb(2),i.pc("ngIf",t.form.showError("endsAt",e,"required")),i.yb(5),i.pc("ngIf",0===t.matchers.length),i.yb(1),i.pc("ngForOf",t.matchers),i.yb(3),i.pc("ngClass",i.uc(26,Su,e.submitted&&0===t.matchers.length)),i.yb(1),i.pc("ngClass",i.uc(28,su,t.icons.add)),i.yb(3),i.pc("ngIf",t.matchers.length&&t.matcherMatch),i.yb(3),i.pc("form",t.form)("submitText",i.kc(65,22,t.action)+" "+i.kc(66,24,t.resource))}},directives:[kn.C,kn.r,Zn.a,kn.k,o.r,Xn.a,On.a,kn.d,ei.a,kn.q,kn.i,Mo.a,Qt.w,o.q,o.p,ti.a,Qt.D,o.w,nu.a],pipes:[o.A,ir.a],styles:["textarea[_ngcontent-%COMP%]{resize:vertical}"]}),e})();var ku=n("w9WL"),xu=n("HDdC");function Du(e,t){1&e&&(i.Sb(0,"cd-alert-panel",2),i.cc(1,3),i.Nb(2,"cd-doc",4),i.Zb(),i.Rb())}function Tu(e,t){if(1&e&&i.Nb(0,"cd-table-key-value",8),2&e){const e=i.ic(2);i.pc("renderObjects",!0)("hideEmpty",!0)("appendParentKey",!1)("data",e.expandedRow)("customCss",e.customCss)("autoReload",!1)}}function Cu(e,t){if(1&e){const e=i.Tb();i.Sb(0,"cd-table",5),i.gc("setExpandedRow",(function(t){return i.Dc(e),i.ic().setExpandedRow(t)}))("fetchData",(function(){return i.Dc(e),i.ic().refresh()}))("updateSelection",(function(t){return i.Dc(e),i.ic().updateSelection(t)})),i.Nb(1,"cd-table-actions",6),i.Mc(2,Tu,1,6,"cd-table-key-value",7),i.Rb()}if(2&e){const e=i.ic();i.pc("data",e.silences)("columns",e.columns)("forceIdentifier",!0)("customCss",e.customCss)("sorts",e.sorts)("hasDetails",!0),i.yb(1),i.pc("permission",e.permission)("selection",e.selection)("tableActions",e.tableActions),i.yb(1),i.pc("ngIf",e.expandedRow)}}let Ou=(()=>{class e extends kl{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 Wt.a,this.customCss={"badge badge-danger":"active","badge badge-warning":"pending","badge badge-default":"expired"},this.sorts=[{prop:"endsAt",dir:ku.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:Ht.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 xu.a(i=>{this.prometheusService.expireSilence(e).subscribe(()=>{this.notificationService.show(yn.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)(i.Mb(Jt.a),i.Mb(Vt.a),i.Mb(vn.a),i.Mb(wn.a),i.Mb(hr.a),i.Mb(gn.b),i.Mb(gn.d),i.Mb(vl))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-silences-list"]],features:[i.xb([{provide:hr.a,useValue:new hr.a("monitoring/silences")}]),i.vb],decls:3,vars:2,consts:function(){return[["type","info",4,"ngIf"],["selectionType","single",3,"data","columns","forceIdentifier","customCss","sorts","hasDetails","setExpandedRow","fetchData","updateSelection",4,"ngIf"],["type","info"],"To enable Silences, please provide the URL to the API of the Prometheus' Alertmanager as described in the " + "\ufffd#2\ufffd" + "" + "\ufffd/#2\ufffd" + ".",["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&&(i.Nb(0,"cd-prometheus-tabs"),i.Mc(1,Du,3,0,"cd-alert-panel",0),i.Mc(2,Cu,3,10,"cd-table",1)),2&e&&(i.yb(1),i.pc("ngIf",!t.isAlertmanagerConfigured),i.yb(1),i.pc("ngIf",t.isAlertmanagerConfigured))},directives:[xl,o.r,pr.a,Cr.a,Bt.a,Sn.a,en.a],styles:[""]}),e})();var Lu=n("Ekvf"),Ru=n("a96k"),Eu=n("ppaS"),Au=n("D4zM");function Iu(e,t){if(1&e&&(i.Sb(0,"option",29),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e),i.yb(1),i.Qc(" ",e," ")}}function Pu(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,31),i.Rb())}function Nu(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,32),i.Rb())}function ju(e,t){1&e&&(i.Sb(0,"span",30),i.cc(1,33),i.Nb(2,"strong"),i.Zb(),i.Rb())}function Fu(e,t){1&e&&(i.Sb(0,"div",7),i.Sb(1,"label",34),i.Wb(2,35),i.Rb(),i.Sb(3,"div",10),i.Sb(4,"select",36),i.Sb(5,"option",37),i.Wb(6,38),i.Rb(),i.Sb(7,"option",39),i.Wb(8,40),i.Rb(),i.Rb(),i.Rb(),i.Rb())}function Yu(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,44),i.Rb())}function zu(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",7),i.Sb(1,"label",41),i.Wb(2,42),i.Rb(),i.Sb(3,"div",10),i.Sb(4,"input",43),i.gc("focus",(function(t){return i.Dc(e),i.ic().labelFocus.next(t.target.value)}))("click",(function(t){return i.Dc(e),i.ic().labelClick.next(t.target.value)})),i.Rb(),i.Mc(5,Yu,2,0,"span",15),i.Rb(),i.Rb()}if(2&e){const e=i.ic(),t=i.Ac(2);i.yb(4),i.pc("ngbTypeahead",e.searchLabels),i.yb(1),i.pc("ngIf",e.serviceForm.showError("label",t,"required"))}}function $u(e,t){if(1&e&&(i.Sb(0,"div",7),i.Sb(1,"label",45),i.Wb(2,46),i.Rb(),i.Sb(3,"div",10),i.Nb(4,"cd-select-badges",47),i.Rb(),i.Rb()),2&e){const e=i.ic();i.yb(4),i.pc("data",e.serviceForm.controls.hosts.value)("options",e.hosts.options)("messages",e.hosts.messages)}}function Hu(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,52),i.Rb())}function Wu(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,53),i.Rb())}function Vu(e,t){if(1&e&&(i.Sb(0,"div",7),i.Sb(1,"label",48),i.Sb(2,"span"),i.Wb(3,49),i.Rb(),i.Sb(4,"cd-helper"),i.Wb(5,50),i.Rb(),i.Rb(),i.Sb(6,"div",10),i.Nb(7,"input",51),i.Mc(8,Hu,2,0,"span",15),i.Mc(9,Wu,2,0,"span",15),i.Rb(),i.Rb()),2&e){const e=i.ic(),t=i.Ac(2);i.yb(8),i.pc("ngIf",e.serviceForm.showError("count",t,"min")),i.yb(1),i.pc("ngIf",e.serviceForm.showError("count",t,"pattern"))}}function Bu(e,t){1&e&&(i.Sb(0,"option",12),i.Wb(1,61),i.Rb()),2&e&&i.pc("ngValue",null)}function Uu(e,t){1&e&&(i.Sb(0,"option",12),i.Wb(1,62),i.Rb()),2&e&&i.pc("ngValue",null)}function Gu(e,t){1&e&&(i.Sb(0,"option",12),i.Wb(1,63),i.Rb()),2&e&&i.pc("ngValue",null)}function qu(e,t){if(1&e&&(i.Sb(0,"option",29),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e.pool_name),i.yb(1),i.Pc(e.pool_name)}}function Ju(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,64),i.Rb())}function Qu(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"div",7),i.Sb(2,"label",54),i.Wb(3,55),i.Rb(),i.Sb(4,"div",10),i.Sb(5,"select",56),i.Mc(6,Bu,2,1,"option",57),i.Mc(7,Uu,2,1,"option",57),i.Mc(8,Gu,2,1,"option",57),i.Mc(9,qu,2,2,"option",14),i.Rb(),i.Mc(10,Ju,2,0,"span",15),i.Rb(),i.Rb(),i.Sb(11,"div",7),i.Sb(12,"label",58),i.Wb(13,59),i.Rb(),i.Sb(14,"div",10),i.Nb(15,"input",60),i.Rb(),i.Rb(),i.Pb()),2&e){const e=i.ic(),t=i.Ac(2);i.yb(6),i.pc("ngIf",null===e.pools),i.yb(1),i.pc("ngIf",null!==e.pools&&0===e.pools.length),i.yb(1),i.pc("ngIf",null!==e.pools&&e.pools.length>0),i.yb(1),i.pc("ngForOf",e.pools),i.yb(1),i.pc("ngIf",e.serviceForm.showError("pool",t,"required"))}}function Ku(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,68),i.Rb())}function Zu(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,69),i.Rb())}function Xu(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,70),i.Rb())}function ed(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"div",7),i.Sb(2,"label",65),i.Wb(3,66),i.Rb(),i.Sb(4,"div",10),i.Nb(5,"input",67),i.Mc(6,Ku,2,0,"span",15),i.Mc(7,Zu,2,0,"span",15),i.Mc(8,Xu,2,0,"span",15),i.Rb(),i.Rb(),i.Pb()),2&e){const e=i.ic(),t=i.Ac(2);i.yb(6),i.pc("ngIf",e.serviceForm.showError("rgw_frontend_port",t,"pattern")),i.yb(1),i.pc("ngIf",e.serviceForm.showError("rgw_frontend_port",t,"min")),i.yb(1),i.pc("ngIf",e.serviceForm.showError("rgw_frontend_port",t,"max"))}}function td(e,t){1&e&&(i.Sb(0,"option",12),i.Wb(1,90),i.Rb()),2&e&&i.pc("ngValue",null)}function nd(e,t){1&e&&(i.Sb(0,"option",12),i.Wb(1,91),i.Rb()),2&e&&i.pc("ngValue",null)}function id(e,t){1&e&&(i.Sb(0,"option",12),i.Wb(1,92),i.Rb()),2&e&&i.pc("ngValue",null)}function rd(e,t){if(1&e&&(i.Sb(0,"option",29),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e.pool_name),i.yb(1),i.Pc(e.pool_name)}}function sd(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,93),i.Rb())}function od(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,94),i.Rb())}function ad(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,95),i.Rb())}function cd(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,96),i.Rb())}function ld(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,97),i.Rb())}function ud(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,98),i.Rb())}const dd=function(){return["iscsi"]},hd=function(e){return{required:e}};function fd(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"div",7),i.Sb(2,"label",54),i.Wb(3,71),i.Rb(),i.Sb(4,"div",10),i.Sb(5,"select",56),i.Mc(6,td,2,1,"option",57),i.Mc(7,nd,2,1,"option",57),i.Mc(8,id,2,1,"option",57),i.Mc(9,rd,2,2,"option",14),i.Rb(),i.Mc(10,sd,2,0,"span",15),i.Rb(),i.Rb(),i.Sb(11,"div",7),i.Sb(12,"label",72),i.Sb(13,"span"),i.Wb(14,73),i.Rb(),i.Sb(15,"cd-helper"),i.Sb(16,"span"),i.Wb(17,74),i.Rb(),i.Nb(18,"br"),i.Sb(19,"span"),i.cc(20,75),i.Nb(21,"b"),i.Zb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(22,"div",10),i.Nb(23,"input",76),i.Rb(),i.Rb(),i.Sb(24,"div",7),i.Sb(25,"label",77),i.Wb(26,78),i.Rb(),i.Sb(27,"div",10),i.Nb(28,"input",79),i.Mc(29,od,2,0,"span",15),i.Mc(30,ad,2,0,"span",15),i.Mc(31,cd,2,0,"span",15),i.Rb(),i.Rb(),i.Sb(32,"div",7),i.Sb(33,"label",80),i.Wb(34,81),i.Rb(),i.Sb(35,"div",10),i.Nb(36,"input",82),i.Mc(37,ld,2,0,"span",15),i.Rb(),i.Rb(),i.Sb(38,"div",7),i.Sb(39,"label",83),i.Wb(40,84),i.Rb(),i.Sb(41,"div",10),i.Sb(42,"div",85),i.Nb(43,"input",86),i.Sb(44,"span",87),i.Nb(45,"button",88),i.Nb(46,"cd-copy-2-clipboard-button",89),i.Rb(),i.Mc(47,ud,2,0,"span",15),i.Rb(),i.Rb(),i.Rb(),i.Pb()),2&e){const e=i.ic(),t=i.Ac(2);i.yb(6),i.pc("ngIf",null===e.pools),i.yb(1),i.pc("ngIf",null!==e.pools&&0===e.pools.length),i.yb(1),i.pc("ngIf",null!==e.pools&&e.pools.length>0),i.yb(1),i.pc("ngForOf",e.pools),i.yb(1),i.pc("ngIf",e.serviceForm.showError("pool",t,"required")),i.yb(19),i.pc("ngIf",e.serviceForm.showError("api_port",t,"pattern")),i.yb(1),i.pc("ngIf",e.serviceForm.showError("api_port",t,"min")),i.yb(1),i.pc("ngIf",e.serviceForm.showError("api_port",t,"max")),i.yb(2),i.pc("ngClass",i.uc(13,hd,i.tc(12,dd).includes(e.serviceForm.controls.service_type.value))),i.yb(4),i.pc("ngIf",e.serviceForm.showError("api_user",t,"required")),i.yb(2),i.pc("ngClass",i.uc(16,hd,i.tc(15,dd).includes(e.serviceForm.controls.service_type.value))),i.yb(8),i.pc("ngIf",e.serviceForm.showError("api_password",t,"required"))}}function pd(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,107),i.Rb())}function md(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,108),i.Rb())}function bd(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",7),i.Sb(1,"label",102),i.Sb(2,"span"),i.Wb(3,103),i.Rb(),i.Sb(4,"cd-helper"),i.Wb(5,104),i.Rb(),i.Rb(),i.Sb(6,"div",10),i.Sb(7,"textarea",105),i.Oc(8,"              "),i.Rb(),i.Sb(9,"input",106),i.gc("change",(function(t){return i.Dc(e),i.ic(2).fileUpload(t.target.files,"ssl_cert")})),i.Rb(),i.Mc(10,pd,2,0,"span",15),i.Mc(11,md,2,0,"span",15),i.Rb(),i.Rb()}if(2&e){const e=i.ic(2),t=i.Ac(2);i.yb(10),i.pc("ngIf",e.serviceForm.showError("ssl_cert",t,"required")),i.yb(1),i.pc("ngIf",e.serviceForm.showError("ssl_cert",t,"pattern"))}}function gd(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,113),i.Rb())}function _d(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,114),i.Rb())}function yd(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",7),i.Sb(1,"label",109),i.Sb(2,"span"),i.Wb(3,110),i.Rb(),i.Sb(4,"cd-helper"),i.Wb(5,111),i.Rb(),i.Rb(),i.Sb(6,"div",10),i.Sb(7,"textarea",112),i.Oc(8,"              "),i.Rb(),i.Sb(9,"input",106),i.gc("change",(function(t){return i.Dc(e),i.ic(2).fileUpload(t.target.files,"ssl_key")})),i.Rb(),i.Mc(10,gd,2,0,"span",15),i.Mc(11,_d,2,0,"span",15),i.Rb(),i.Rb()}if(2&e){const e=i.ic(2),t=i.Ac(2);i.yb(10),i.pc("ngIf",e.serviceForm.showError("ssl_key",t,"required")),i.yb(1),i.pc("ngIf",e.serviceForm.showError("ssl_key",t,"pattern"))}}function vd(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"div",7),i.Sb(2,"div",19),i.Sb(3,"div",20),i.Nb(4,"input",99),i.Sb(5,"label",100),i.Wb(6,101),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Mc(7,bd,12,2,"div",24),i.Mc(8,yd,12,2,"div",24),i.Pb()),2&e){const e=i.ic();i.yb(7),i.pc("ngIf",e.serviceForm.controls.ssl.value),i.yb(1),i.pc("ngIf",e.serviceForm.controls.ssl.value)}}const wd=function(){return["mds","rgw","nfs","iscsi"]},Sd=function(){return["rgw","iscsi"]};let Md=(()=>{class e extends qn.a{constructor(e,t,n,i,r,s,o){super(),this.actionLabels=e,this.cephServiceService=t,this.formBuilder=n,this.hostService=i,this.poolService=r,this.router=s,this.taskWrapperService=o,this.serviceTypes=[],this.labelClick=new $l.a,this.labelFocus=new $l.a,this.searchLabels=e=>Object(Hl.a)(e.pipe(Bl(200),Object(Jl.a)()),this.labelFocus,this.labelClick.pipe(Object(Ql.a)(()=>!this.typeahead.isPopupOpen()))).pipe(Object(Vi.a)(e=>this.labels.filter(t=>t.toLowerCase().indexOf(e.toLowerCase())>-1).slice(0,10))),this.resource="service",this.hosts={options:[],messages:new lr.a({empty:"There are no hosts.",filter:"Filter hosts"})},this.createForm()}createForm(){this.serviceForm=this.formBuilder.group({service_type:[null,[kn.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.composeIf({service_type:"rgw"},[kn.A.required,Cn.a.custom("rgwPattern",e=>!jt.a.isEmpty(e)&&!/^[^.]+\.[^.]+(\.[^.]+)?$/.test(e))])]],placement:["hosts"],label:[null,[Cn.a.requiredIf({placement:"label",unmanaged:!1})]],hosts:[[]],count:[null,[Cn.a.number(!1),kn.A.min(1)]],unmanaged:[!1],pool:[null,[Cn.a.requiredIf({service_type:"nfs",unmanaged:!1}),Cn.a.requiredIf({service_type:"iscsi",unmanaged:!1})]],namespace:[null],rgw_frontend_port:[null,[Cn.a.number(!1),kn.A.min(1),kn.A.max(65535)]],trusted_ip_list:[null],api_port:[null,[Cn.a.number(!1),kn.A.min(1),kn.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})]],ssl:[!1],ssl_cert:["",[Cn.a.composeIf({service_type:"rgw",unmanaged:!1,ssl:!0},[kn.A.required,Cn.a.sslCert()]),Cn.a.composeIf({service_type:"iscsi",unmanaged:!1,ssl:!0},[kn.A.required,Cn.a.sslCert()])]],ssl_key:["",[Cn.a.composeIf({service_type:"rgw",unmanaged:!1,ssl:!0},[kn.A.required,Cn.a.sslPrivKey()]),Cn.a.composeIf({service_type:"iscsi",unmanaged:!1,ssl:!0},[kn.A.required,Cn.a.sslPrivKey()])]]})}ngOnInit(){this.action=this.actionLabels.CREATE,this.cephServiceService.getKnownTypes().subscribe(e=>{this.serviceTypes=jt.a.difference(e,["container","osd"]).sort()}),this.hostService.list().subscribe(e=>{const t=[];jt.a.forEach(e,e=>{if(jt.a.get(e,"sources.orchestrator",!1)){const n=new Ru.a(!1,jt.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})}goToListView(){this.router.navigate(["/services"])}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")}onSubmit(){const e=this,t=this.serviceForm.value,n=t.service_id,i=t.service_type,r={service_type:i,placement:{},unmanaged:t.unmanaged};let s=i;if(jt.a.isString(n)&&!jt.a.isEmpty(n)&&(s=`${i}.${n}`,r.service_id=n),!t.unmanaged){switch(t.placement){case"hosts":t.hosts.length>0&&(r.placement.hosts=t.hosts);break;case"label":r.placement.label=t.label}switch(jt.a.isNumber(t.count)&&t.count>0&&(r.placement.count=t.count),i){case"nfs":r.pool=t.pool,jt.a.isString(t.namespace)&&!jt.a.isEmpty(t.namespace)&&(r.namespace=t.namespace);break;case"rgw":jt.a.isNumber(t.rgw_frontend_port)&&t.rgw_frontend_port>0&&(r.rgw_frontend_port=t.rgw_frontend_port),r.ssl=t.ssl,t.ssl&&(r.rgw_frontend_ssl_certificate=t.ssl_cert.trim(),r.rgw_frontend_ssl_key=t.ssl_key.trim());break;case"iscsi":r.pool=t.pool,jt.a.isString(t.trusted_ip_list)&&!jt.a.isEmpty(t.trusted_ip_list)&&(r.trusted_ip_list=t.trusted_ip_list.trim()),jt.a.isNumber(t.api_port)&&t.api_port>0&&(r.api_port=t.api_port),r.api_user=t.api_user,r.api_password=t.api_password,r.api_secure=t.ssl,t.ssl&&(r.ssl_cert=t.ssl_cert.trim(),r.ssl_key=t.ssl_key.trim())}}this.taskWrapperService.wrapTaskAroundCall({task:new er.a("service/"+gn.e.CREATE,{service_name:s}),call:this.cephServiceService.create(r)}).subscribe({error(){e.serviceForm.setErrors({cdSubmitButton:!0})},complete(){e.goToListView()}})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(gn.b),i.Mb(Fr),i.Mb(So.a),i.Mb(Xi),i.Mb(Lu.a),i.Mb(Pt.e),i.Mb(tr.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-service-form"]],viewQuery:function(e,t){var n;1&e&&i.Tc(Qt.G,!0),2&e&&i.zc(n=i.hc())&&(t.typeahead=n.first)},features:[i.vb],decls:44,vars:31,consts:function(){return[[1,"cd-col-form"],["novalidate","",3,"formGroup"],["frm","ngForm"],[1,"card"],[1,"card-header"],"" + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + "",[1,"card-body"],[1,"form-group","row"],["for","service_type",1,"cd-col-form-label","required"],"Type",[1,"cd-col-form-input"],["id","service_type","formControlName","service_type",1,"form-control","custom-select"],[3,"ngValue"],"-- Select a service type --",[3,"value",4,"ngFor","ngForOf"],["class","invalid-feedback",4,"ngIf"],["for","service_id",1,"cd-col-form-label",3,"ngClass"],"Id",["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"],"Unmanaged",["class","form-group row",4,"ngIf"],[4,"ngIf"],[1,"card-footer"],[1,"text-right"],[3,"form","submitText","submitActionEvent"],[3,"value"],[1,"invalid-feedback"],"This field is required.","This field is required.","The value does not match the pattern " + "\ufffd#2\ufffd" + "<realm_name>.<zone_name>[.<subcluster>]" + "\ufffd/#2\ufffd" + ".",["for","placement",1,"cd-col-form-label"],"Placement",["id","placement","formControlName","placement",1,"form-control","custom-select"],["value","hosts"],"Hosts",["value","label"],"Label",["for","label",1,"cd-col-form-label"],"Label",["id","label","type","text","formControlName","label",1,"form-control",3,"ngbTypeahead","focus","click"],"This field is required.",["for","hosts",1,"cd-col-form-label"],"Hosts",["id","hosts",3,"data","options","messages"],["for","count",1,"cd-col-form-label"],"Count","Only that number of daemons will be created.",["id","count","type","number","formControlName","count","min","1",1,"form-control"],"The value must be at least 1.","The entered value needs to be a number.",["for","pool",1,"cd-col-form-label","required"],"Pool",["id","pool","name","pool","formControlName","pool",1,"form-control","custom-select"],[3,"ngValue",4,"ngIf"],["for","namespace",1,"cd-col-form-label"],"Namespace",["id","namespace","type","text","formControlName","namespace",1,"form-control"],"Loading...","-- No pools available --","-- Select a pool --","This field is required.",["for","rgw_frontend_port",1,"cd-col-form-label"],"Port",["id","rgw_frontend_port","type","number","formControlName","rgw_frontend_port","min","1","max","65535",1,"form-control"],"The entered value needs to be a number.","The value must be at least 1.","The value cannot exceed 65535.","Pool",["for","trusted_ip_list",1,"cd-col-form-label"],"Trusted IPs","Comma separated list of IP addresses.","Please add the " + "\ufffd#21\ufffd" + "Ceph Manager" + "\ufffd/#21\ufffd" + " IP addresses here, otherwise the iSCSI gateways can't be reached.",["id","trusted_ip_list","type","text","formControlName","trusted_ip_list",1,"form-control"],["for","api_port",1,"cd-col-form-label"],"Port",["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"],"User",["id","api_user","type","text","formControlName","api_user",1,"form-control"],["for","api_password",1,"cd-col-form-label",3,"ngClass"],"Password",[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"],"Loading...","-- No pools available --","-- Select a pool --","This field is required.","The entered value needs to be a number.","The value must be at least 1.","The value cannot exceed 65535.","This field is required.","This field is required.",["id","ssl","type","checkbox","formControlName","ssl",1,"custom-control-input"],["for","ssl",1,"custom-control-label"],"SSL",["for","ssl_cert",1,"cd-col-form-label"],"Certificate","The SSL certificate in PEM format.",["id","ssl_cert","formControlName","ssl_cert","rows","5",1,"form-control","resize-vertical","text-monospace","text-pre"],["type","file",3,"change"],"This field is required.","Invalid SSL certificate.",["for","ssl_key",1,"cd-col-form-label"],"Private key","The SSL private key in PEM format.",["id","ssl_key","formControlName","ssl_key","rows","5",1,"form-control","resize-vertical","text-monospace","text-pre"],"This field is required.","Invalid SSL private key."]},template:function(e,t){if(1&e&&(i.Sb(0,"div",0),i.Sb(1,"form",1,2),i.Sb(3,"div",3),i.Sb(4,"div",4),i.Wb(5,5),i.jc(6,"titlecase"),i.jc(7,"upperFirst"),i.Rb(),i.Sb(8,"div",6),i.Sb(9,"div",7),i.Sb(10,"label",8),i.Wb(11,9),i.Rb(),i.Sb(12,"div",10),i.Sb(13,"select",11),i.Sb(14,"option",12),i.Wb(15,13),i.Rb(),i.Mc(16,Iu,2,2,"option",14),i.Rb(),i.Mc(17,Pu,2,0,"span",15),i.Rb(),i.Rb(),i.Sb(18,"div",7),i.Sb(19,"label",16),i.Wb(20,17),i.Rb(),i.Sb(21,"div",10),i.Nb(22,"input",18),i.Mc(23,Nu,2,0,"span",15),i.Mc(24,ju,3,0,"span",15),i.Rb(),i.Rb(),i.Sb(25,"div",7),i.Sb(26,"div",19),i.Sb(27,"div",20),i.Nb(28,"input",21),i.Sb(29,"label",22),i.Wb(30,23),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Mc(31,Fu,9,0,"div",24),i.Mc(32,zu,6,2,"div",24),i.Mc(33,$u,5,3,"div",24),i.Mc(34,Vu,10,2,"div",24),i.Mc(35,Qu,16,5,"ng-container",25),i.Mc(36,ed,9,3,"ng-container",25),i.Mc(37,fd,48,18,"ng-container",25),i.Mc(38,vd,9,2,"ng-container",25),i.Rb(),i.Sb(39,"div",26),i.Sb(40,"div",27),i.Sb(41,"cd-form-button-panel",28),i.gc("submitActionEvent",(function(){return t.onSubmit()})),i.jc(42,"titlecase"),i.jc(43,"upperFirst"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()),2&e){const e=i.Ac(2);i.yb(1),i.pc("formGroup",t.serviceForm),i.yb(6),i.ac(i.kc(6,19,t.action))(i.kc(7,21,t.resource)),i.Xb(5),i.yb(7),i.pc("ngValue",null),i.yb(2),i.pc("ngForOf",t.serviceTypes),i.yb(1),i.pc("ngIf",t.serviceForm.showError("service_type",e,"required")),i.yb(2),i.pc("ngClass",i.uc(28,hd,i.tc(27,wd).includes(t.serviceForm.controls.service_type.value))),i.yb(4),i.pc("ngIf",t.serviceForm.showError("service_id",e,"required")),i.yb(1),i.pc("ngIf",t.serviceForm.showError("service_id",e,"rgwPattern")),i.yb(7),i.pc("ngIf",!t.serviceForm.controls.unmanaged.value),i.yb(1),i.pc("ngIf",!t.serviceForm.controls.unmanaged.value&&"label"===t.serviceForm.controls.placement.value),i.yb(1),i.pc("ngIf",!t.serviceForm.controls.unmanaged.value&&"hosts"===t.serviceForm.controls.placement.value),i.yb(1),i.pc("ngIf",!t.serviceForm.controls.unmanaged.value),i.yb(1),i.pc("ngIf",!t.serviceForm.controls.unmanaged.value&&"nfs"===t.serviceForm.controls.service_type.value),i.yb(1),i.pc("ngIf",!t.serviceForm.controls.unmanaged.value&&"rgw"===t.serviceForm.controls.service_type.value),i.yb(1),i.pc("ngIf",!t.serviceForm.controls.unmanaged.value&&"iscsi"===t.serviceForm.controls.service_type.value),i.yb(1),i.pc("ngIf",!t.serviceForm.controls.unmanaged.value&&i.tc(30,Sd).includes(t.serviceForm.controls.service_type.value)),i.yb(3),i.pc("form",t.serviceForm)("submitText",i.kc(42,23,t.action)+" "+i.kc(43,25,t.resource))}},directives:[kn.C,kn.r,Zn.a,kn.k,Xn.a,On.a,kn.z,ei.a,kn.q,kn.i,kn.u,kn.B,o.q,o.r,o.p,kn.d,kn.b,ti.a,Qt.G,Eu.a,Mo.a,kn.v,Au.a,eo.a],pipes:[o.A,ir.a],styles:[""]}),e})();var kd=n("3E0/"),xd=n("nYR2");let Dd=(()=>{class e{transform(e){if(jt.a.isUndefined(e))return "no spec";if(jt.a.get(e,"unmanaged",!1))return "unmanaged";const t=[],n=jt.a.get(e,"placement.hosts"),i=jt.a.get(e,"placement.count"),r=jt.a.get(e,"placement.label"),s=jt.a.get(e,"placement.host_pattern");return jt.a.isArray(n)&&t.push(...n),jt.a.isNumber(i)&&t.push("count:" + i + ""),jt.a.isString(r)&&t.push("label:" + r + ""),jt.a.isString(s)&&t.push(...s),t.join(";")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Lb({name:"placement",type:e,pure:!0}),e})();function Td(e,t){if(1&e&&(i.Qb(0),i.Nb(1,"cd-service-daemon-list",1),i.Pb()),2&e){const e=i.ic();i.yb(1),i.pc("serviceName",e.selection.service_name)}}let Cd=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({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&&i.Mc(0,Td,2,1,"ng-container",0),2&e&&i.pc("ngIf",t.selection)},directives:[o.r,Ur],styles:[""]}),e})();function Od(e,t){1&e&&i.Nb(0,"cd-orchestrator-doc-panel")}function Ld(e,t){if(1&e){const e=i.Tb();i.Qb(0),i.Sb(1,"cd-table",1),i.gc("fetchData",(function(t){return i.Dc(e),i.ic().getServices(t)}))("setExpandedRow",(function(t){return i.Dc(e),i.ic().setExpandedRow(t)}))("updateSelection",(function(t){return i.Dc(e),i.ic().updateSelection(t)})),i.Nb(2,"cd-table-actions",2),i.Nb(3,"cd-service-details",3),i.Rb(),i.Pb()}if(2&e){const e=i.ic();i.yb(1),i.pc("data",e.services)("columns",e.columns)("autoReload",5e3)("hasDetails",!0),i.yb(1),i.pc("permission",e.permissions.hosts)("selection",e.selection)("tableActions",e.tableActions),i.yb(1),i.pc("permissions",e.permissions)("selection",e.expandedRow)}}let Rd=(()=>{class e extends $t.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.urlBuilder=a,this.hiddenColumns=[],this.showDocPanel=!1,this.actionOrchFeatures={create:[ur.SERVICE_CREATE],delete:[ur.SERVICE_DELETE]},this.columns=[],this.services=[],this.isLoadingServices=!1,this.selection=new Wt.a,this.permissions=this.authStorageService.getPermissions(),this.tableActions=[{permission:"create",icon:_n.a.add,routerLink:()=>this.urlBuilder.getCreate(),name:this.actionLabels.CREATE,canBePrimary:e=>!e.hasSelection,disable:e=>this.getDisable("create",e)},{permission:"delete",icon:_n.a.destroy,click:()=>this.deleteAction(),name:this.actionLabels.DELETE,disable:e=>this.getDisable("delete",e)}]}ngOnInit(){const e=[{name:"Service",prop:"service_name",flexGrow:1},{name:"Container image name",prop:"status.container_image_name",flexGrow:3},{name:"Container image ID",prop:"status.container_image_id",flexGrow:3,cellTransformation:Ht.a.truncate,customTemplateConfig:{length:12}},{name:"Placement",prop:"",pipe:new Dd,flexGrow:1},{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){return"delete"===e&&!(null==t?void 0:t.hasSingleSelection)||this.orchService.getTableActionDisableDesc(this.orchStatus,this.actionOrchFeatures[e])}getServices(e){this.isLoadingServices||(this.isLoadingServices=!0,this.cephServiceService.list().subscribe(e=>{this.services=e,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 er.a("service/"+gn.e.DELETE,{service_name:e.service_name}),call:this.cephServiceService.delete(e.service_name)}).pipe(Object(kd.a)(2e3),Object(xd.a)(()=>{this.table.refreshBtn()}))})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(gn.b),i.Mb(Jt.a),i.Mb(vn.a),i.Mb(cr),i.Mb(Fr),i.Mb(Yr.a),i.Mb(tr.a),i.Mb(hr.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-services"]],viewQuery:function(e,t){var n;1&e&&i.Jc(Bt.a,!0),2&e&&i.zc(n=i.hc())&&(t.table=n.first)},inputs:{hostname:"hostname",hiddenColumns:"hiddenColumns"},features:[i.xb([{provide:hr.a,useValue:new hr.a("services")}]),i.vb,i.wb],decls:2,vars:2,consts:[[4,"ngIf"],["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&&(i.Mc(0,Od,1,0,"cd-orchestrator-doc-panel",0),i.Mc(1,Ld,4,9,"ng-container",0)),2&e&&(i.pc("ngIf",t.showDocPanel),i.yb(1),i.pc("ngIf",null==t.orchStatus?null:t.orchStatus.available))},directives:[o.r,Rr,Bt.a,Sn.a,Cd],styles:[""]}),e})(),Ed=(()=>{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)(i.dc(a.b))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Ad=(()=>{class e{constructor(){this.visible=!1,this.update=new i.o}setVisibility(e){this.visible=e,this.update.emit(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Id(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div"),i.Oc(1," The plugin is already "),i.Sb(2,"b"),i.Oc(3,"enabled"),i.Rb(),i.Oc(4,". Click "),i.Sb(5,"b"),i.Oc(6,"Deactivate"),i.Rb(),i.Oc(7," to disable it.\xa0 "),i.Sb(8,"button",71),i.gc("click",(function(){return i.Dc(e),i.ic(3).disableModule("The Telemetry module has been disabled successfully.")})),i.Wb(9,72),i.Rb(),i.Rb()}}function Pd(e,t){1&e&&(i.Sb(0,"span",73),i.Wb(1,74),i.Rb())}function Nd(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div"),i.Sb(1,"form",4,5),i.Sb(3,"div",6),i.Sb(4,"div",7),i.Wb(5,8),i.Rb(),i.Sb(6,"div",9),i.Sb(7,"p"),i.cc(8,10),i.Nb(9,"br"),i.Nb(10,"a",11),i.Nb(11,"br"),i.Nb(12,"br"),i.Nb(13,"b"),i.Zb(),i.Rb(),i.Mc(14,Id,10,0,"div",12),i.Sb(15,"legend"),i.Wb(16,13),i.Rb(),i.Sb(17,"p"),i.Wb(18,14),i.Rb(),i.Sb(19,"div",15),i.Sb(20,"label",16),i.Qb(21),i.Wb(22,17),i.Pb(),i.Sb(23,"cd-helper"),i.Qb(24),i.Wb(25,18),i.Pb(),i.Sb(26,"ul"),i.Sb(27,"li"),i.Wb(28,19),i.Rb(),i.Sb(29,"li"),i.Wb(30,20),i.Rb(),i.Sb(31,"li"),i.Wb(32,21),i.Rb(),i.Sb(33,"li"),i.Wb(34,22),i.Rb(),i.Sb(35,"li"),i.Wb(36,23),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(37,"div",24),i.Sb(38,"div",25),i.Nb(39,"input",26),i.Nb(40,"label",27),i.Rb(),i.Rb(),i.Rb(),i.Sb(41,"div",15),i.Sb(42,"label",28),i.Qb(43),i.Wb(44,29),i.Pb(),i.Sb(45,"cd-helper"),i.Qb(46),i.Wb(47,30),i.Pb(),i.Sb(48,"ul"),i.Sb(49,"li"),i.Wb(50,31),i.Rb(),i.Sb(51,"li"),i.Wb(52,32),i.Rb(),i.Sb(53,"li"),i.Wb(54,33),i.Rb(),i.Sb(55,"li"),i.Wb(56,34),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(57,"div",24),i.Sb(58,"div",25),i.Nb(59,"input",35),i.Nb(60,"label",36),i.Rb(),i.Rb(),i.Rb(),i.Sb(61,"div",15),i.Sb(62,"label",37),i.Qb(63),i.Wb(64,38),i.Pb(),i.Sb(65,"cd-helper",39),i.Yb(66,40),i.Rb(),i.Rb(),i.Sb(67,"div",24),i.Sb(68,"div",25),i.Nb(69,"input",41),i.Nb(70,"label",42),i.Rb(),i.Rb(),i.Rb(),i.Sb(71,"div",15),i.Sb(72,"label",43),i.Qb(73),i.Wb(74,44),i.Pb(),i.Sb(75,"cd-helper"),i.Qb(76),i.Wb(77,45),i.Pb(),i.Sb(78,"ul"),i.Sb(79,"li"),i.Oc(80,"Cluster description"),i.Rb(),i.Sb(81,"li"),i.Oc(82,"Contact email address"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(83,"div",24),i.Sb(84,"div",25),i.Nb(85,"input",46),i.Nb(86,"label",47),i.Rb(),i.Rb(),i.Rb(),i.Sb(87,"legend"),i.Qb(88),i.Wb(89,48),i.Pb(),i.Sb(90,"cd-helper"),i.Wb(91,49),i.Rb(),i.Rb(),i.Sb(92,"div",15),i.Sb(93,"label",50),i.Wb(94,51),i.Rb(),i.Sb(95,"div",24),i.Nb(96,"input",52),i.Rb(),i.Rb(),i.Sb(97,"div",15),i.Sb(98,"label",53),i.Wb(99,54),i.Rb(),i.Sb(100,"div",24),i.Sb(101,"input",55),i.Yb(102,56),i.Rb(),i.Rb(),i.Rb(),i.Sb(103,"legend"),i.Wb(104,57),i.Rb(),i.Sb(105,"div",15),i.Sb(106,"label",58),i.Qb(107),i.Wb(108,59),i.Pb(),i.Sb(109,"cd-helper"),i.Wb(110,60),i.Rb(),i.Rb(),i.Sb(111,"div",24),i.Nb(112,"input",61),i.Mc(113,Pd,2,0,"span",62),i.Rb(),i.Rb(),i.Sb(114,"div",15),i.Sb(115,"label",63),i.Qb(116),i.Wb(117,64),i.Pb(),i.Sb(118,"cd-helper"),i.Sb(119,"p"),i.Wb(120,65),i.Rb(),i.Sb(121,"p"),i.Wb(122,66),i.Rb(),i.Rb(),i.Rb(),i.Sb(123,"div",24),i.Nb(124,"input",67),i.Rb(),i.Rb(),i.Nb(125,"br"),i.Sb(126,"p"),i.cc(127,68),i.Nb(128,"b"),i.Zb(),i.Rb(),i.Rb(),i.Sb(129,"div",69),i.Sb(130,"div",70),i.Sb(131,"button",71),i.gc("click",(function(){return i.Dc(e),i.ic(2).next()})),i.Qb(132),i.Oc(133),i.Pb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.Ac(2),t=i.ic(2);i.yb(1),i.pc("formGroup",t.configForm),i.yb(4),i.ac(t.step),i.Xb(5),i.yb(8),i.ac(t.sendToUrl)(t.sendToDeviceUrl),i.Xb(8),i.yb(1),i.pc("ngIf",t.moduleEnabled),i.yb(99),i.pc("ngIf",t.configForm.showError("interval",e,"min")),i.yb(20),i.Pc(t.actionLabels.NEXT)}}function jd(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div"),i.Sb(1,"form",75,76),i.Sb(3,"div",6),i.Sb(4,"div",7),i.Wb(5,77),i.Rb(),i.Sb(6,"div",9),i.Sb(7,"div",15),i.Sb(8,"label",78),i.cc(9,79),i.Sb(10,"cd-helper",39),i.Yb(11,80),i.Rb(),i.Zb(),i.Rb(),i.Sb(12,"div",24),i.Nb(13,"input",81),i.Rb(),i.Rb(),i.Sb(14,"div",15),i.Sb(15,"label",82),i.cc(16,83),i.Sb(17,"cd-helper",39),i.Yb(18,84),i.Rb(),i.Zb(),i.Rb(),i.Sb(19,"div",24),i.Nb(20,"textarea",85),i.Rb(),i.Rb(),i.Sb(21,"div",15),i.Sb(22,"div",86),i.Sb(23,"div",87),i.Nb(24,"cd-download-button",88),i.Nb(25,"cd-copy-2-clipboard-button",89),i.Rb(),i.Rb(),i.Rb(),i.Sb(26,"div",15),i.Sb(27,"div",86),i.Sb(28,"div",25),i.Nb(29,"input",90),i.Sb(30,"label",91),i.cc(31,92),i.Nb(32,"a",93),i.Zb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(33,"div",69),i.Sb(34,"div",70),i.Sb(35,"cd-form-button-panel",94),i.gc("submitActionEvent",(function(){return i.Dc(e),i.ic(2).onSubmit()}))("backActionEvent",(function(){return i.Dc(e),i.ic(2).back()})),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.ic(2);i.yb(1),i.pc("formGroup",e.previewForm),i.yb(4),i.ac(e.step),i.Xb(5),i.yb(19),i.pc("objectItem",e.report),i.yb(11),i.pc("form",e.previewForm)("submitText",e.actionLabels.UPDATE)("cancelText",e.actionLabels.BACK)}}function Fd(e,t){if(1&e&&(i.Sb(0,"div",1),i.Qb(1,2),i.Mc(2,Nd,134,7,"div",3),i.Mc(3,jd,36,6,"div",3),i.Pb(),i.Rb()),2&e){const e=i.ic();i.yb(1),i.pc("ngSwitch",e.step),i.yb(1),i.pc("ngSwitchCase",1),i.yb(1),i.pc("ngSwitchCase",2)}}let Yd=(()=>{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(vo.a)(e).subscribe(e=>{const t=e[1];this.moduleEnabled=t.enabled,this.sendToUrl=t.url,this.sendToDeviceUrl=t.device_url,this.options=jt.a.pick(e[0],this.requiredFields);const n=jt.a.pick(t,this.requiredFields);this.createConfigForm(),this.configForm.setValue(n),this.loadingReady()},e=>{this.loadingError()})}createConfigForm(){const e={};jt.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,kn.A.requiredTrue]};this.previewForm=this.formBuilder.group(e)}getValidators(e){const t=[];switch(e.type){case"int":t.push(Cn.a.number()),t.push(kn.A.required),jt.a.isNumber(e.min)&&t.push(kn.A.min(e.min)),jt.a.isNumber(e.max)&&t.push(kn.A.max(e.max));break;case"str":jt.a.isNumber(e.min)&&t.push(kn.A.minLength(e.min)),jt.a.isNumber(e.max)&&t.push(kn.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={};jt.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(yn.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(yn.a.success,"The Telemetry module has been configured and activated successfully."),this.router.navigate([""])})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(gn.b),i.Mb(So.a),i.Mb(wo),i.Mb(wn.a),i.Mb(Pt.e),i.Mb(Ed),i.Mb(Ad))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-telemetry"]],features:[i.vb],decls:1,vars:1,consts:function(){var e,t,n,r,s,o,a,c,l,u,d,h,f,p,m,b,g,_,y,v,w,S,M,k,x,D,T,C,O,L,R,E,A,I,P,N,j,F,Y;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=i.bc(t),n="Channels",r="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",y="Includes information about device metrics like anonymized SMART metrics.",v="Ident",w="Includes user-provided identifying information about the cluster:",S="Contact Information",M="Submitting any contact information is completely optional and disabled by default.",k="Contact",x="Description",D="My first Ceph cluster",T="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",R="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",E="You can also include a user:pass if needed e.g. https://ceph:telemetry@10.0.0.1:8080",A="" + "\ufffd#128\ufffd" + "Note:" + "\ufffd/#128\ufffd" + " By clicking 'Next' you will first see a preview of the report content before you can activate the automatic submission of your data.",I="Deactivate",P="The entered value is too low! It must be greater or equal to 8.",N="Step " + "\ufffd0\ufffd" + " of 2: Telemetry report preview",j="A randomized UUID to identify a particular cluster over the course of several telemetry reports.",F="Report ID " + "\ufffd#10\ufffd" + "" + "\ufffd/#10\ufffd" + "",Y="The actual telemetry data that will be submitted.",[["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,r,[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"],_,[6,"html"],["html",y],["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"],v,w,["type","checkbox","id","channel_ident","formControlName","channel_ident",1,"custom-control-input"],["for","channel_ident",1,"custom-control-label"],S,M,["for","contact",1,"cd-col-form-label"],k,["id","contact","type","text","formControlName","contact","placeholder","Example User <user@example.com>",1,"form-control"],["for","description",1,"cd-col-form-label"],x,["id","description","type","text","formControlName","description",1,"form-control",6,"placeholder"],["placeholder",D],T,["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,R,E,["id","proxy","type","text","formControlName","proxy","placeholder","https://10.0.0.1:8080",1,"form-control"],A,[1,"card-footer"],[1,"button-group","text-right"],["type","button",1,"btn","btn-light",3,"click"],I,[1,"invalid-feedback"],P,["name","previewForm","novalidate","",3,"formGroup"],["frm","ngForm"],N,["for","reportId",1,"cd-col-form-label"],F,["html",j],["type","text","id","reportId","formControlName","reportId","readonly","",1,"form-control"],["for","report",1,"cd-col-form-label"],"Report preview " + "\ufffd#17\ufffd" + "" + "\ufffd/#17\ufffd" + "",["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"],"I agree to my telemetry data being submitted under the " + "\ufffd#32\ufffd" + "Community Data License Agreement - Sharing - Version 1.0" + "\ufffd/#32\ufffd" + "",["href","https://cdla.io/sharing-1-0/"],[3,"form","submitText","cancelText","submitActionEvent","backActionEvent"]]},template:function(e,t){1&e&&i.Mc(0,Fd,4,3,"div",0),2&e&&i.pc("cdFormLoading",t.loading)},directives:[Kn.a,o.t,o.u,kn.C,kn.r,Zn.a,kn.k,o.r,Xn.a,Mo.a,On.a,kn.b,ei.a,kn.q,kn.i,kn.d,kn.v,Xs,eo.a,ti.a],styles:[""]}),e})();var zd=n("2Vo4"),$d=n("Y7HM");function Hd(e){const{subscriber:t,counter:n,period:i}=e;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}let Wd=(()=>{class e{constructor(e){this.ngZone=e,this.intervalDataSource=new zd.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=Vl.a){return(!Object($d.a)(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=Vl.a),new xu.a(n=>(n.add(t.schedule(Hd,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)(i.dc(i.A))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Vd(e,t){if(1&e&&(i.Sb(0,"option",8),i.Oc(1),i.Rb()),2&e){const e=t.$implicit,n=i.ic();i.pc("value",n.intervalList[e]),i.yb(1),i.Pc(e)}}let Bd=(()=>{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)(i.Mb(Wd))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-refresh-selector"]],decls:8,vars:2,consts:function(){return[[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"],"Refresh",["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&&(i.Sb(0,"div",0),i.Sb(1,"div",1),i.Sb(2,"div",2),i.Sb(3,"form",3),i.Sb(4,"label",4),i.Wb(5,5),i.Rb(),i.Sb(6,"select",6),i.gc("change",(function(e){return t.changeRefreshInterval(e.target.value)}))("ngModelChange",(function(e){return t.selectedInterval=e})),i.Mc(7,Vd,2,2,"option",7),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()),2&e&&(i.yb(6),i.pc("ngModel",t.selectedInterval),i.yb(1),i.pc("ngForOf",t.intervalKeys))},directives:[kn.C,kn.r,kn.s,On.a,kn.z,ei.a,kn.q,kn.t,o.q,kn.u,kn.B],styles:[""]}),e})();var Ud=n("d+Og"),Gd=n("ej+x"),qd=n("+EN/"),Jd=n.n(qd);function Qd(e,t){if(1&e&&(i.Sb(0,"div",6),i.cc(1,7),i.jc(2,"lowercase"),i.Sb(3,"cd-doc",8),i.Yb(4,9),i.jc(5,"lowercase"),i.Rb(),i.Zb(),i.Rb()),2&e){const e=i.ic();i.yb(3),i.rc("section","dashboard-landing-page-",i.kc(5,4,e.groupTitle),""),i.yb(2),i.ac(i.kc(2,2,e.groupTitle)),i.Xb(1)}}const Kd=function(e,t){return[e,t]},Zd=["*"];let Xd=(()=>{class e{constructor(){this.icons=_n.a}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-info-group"]],inputs:{groupTitle:"groupTitle"},ngContentSelectors:Zd,decls:11,vars:6,consts:function(){var e;return e="here",[[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"],"For an overview of " + "\ufffd0\ufffd" + " widgets click " + "\ufffd#3\ufffd" + "" + "\ufffd/#3\ufffd" + "",[3,"section",6,"docText"],["docText",e]]},template:function(e,t){if(1&e){const e=i.Tb();i.oc(),i.Sb(0,"div",0),i.Sb(1,"div",1,2),i.Sb(3,"span"),i.Oc(4),i.Rb(),i.Sb(5,"button",3),i.gc("click",(function(){return i.Dc(e),i.Ac(2).toggle()})),i.Nb(6,"i",4),i.Rb(),i.Rb(),i.Rb(),i.Sb(7,"div",0),i.nc(8),i.Rb(),i.Mc(9,Qd,6,6,"ng-template",null,5,i.Nc)}if(2&e){const e=i.Ac(10);i.yb(1),i.pc("ngbPopover",e),i.yb(3),i.Pc(t.groupTitle),i.yb(2),i.pc("ngClass",i.vc(3,Kd,t.icons.infoCircle,t.icons.large))}},directives:[Qt.w,On.a,o.p,Cr.a],pipes:[o.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 eh(e,t){if(1&e&&(i.Sb(0,"a",6),i.Oc(1),i.Rb()),2&e){const e=i.ic();i.pc("routerLink",e.link),i.yb(1),i.Pc(e.cardTitle)}}function th(e,t){if(1&e&&i.Oc(0),2&e){const e=i.ic();i.Qc(" ",e.cardTitle," ")}}const nh=["*"];let ih=(()=>{class e{constructor(){this.cardClass=""}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-info-card"]],inputs:{cardTitle:"cardTitle",link:"link",cardClass:"cardClass",contentClass:"contentClass"},ngContentSelectors:nh,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&&(i.oc(),i.Sb(0,"div",0),i.Sb(1,"div",1),i.Sb(2,"h4",2),i.Mc(3,eh,2,2,"a",3),i.Mc(4,th,1,1,"ng-template",null,4,i.Nc),i.Rb(),i.Sb(6,"div",5),i.nc(7),i.Rb(),i.Rb(),i.Rb()),2&e){const e=i.Ac(5);i.pc("ngClass",t.cardClass),i.yb(3),i.pc("ngIf",t.link)("ngIfElse",e),i.yb(3),i.pc("ngClass",t.contentClass)}},directives:[o.p,o.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 rh=n("MO+k");const sh=["chartCanvas"],oh=["chartTooltip"];let ah=(()=>{class e{constructor(e,t){this.dimlessBinary=e,this.dimless=t,this.config={},this.isBytesData=!1,this.showLabelAsTooltip=!1,this.prepareFn=new i.o,this.chartConfig={chartType:"doughnut",dataset:[{label:null,borderWidth:0}],colors:[{backgroundColor:[Jd.a.chartHealthColorGreen,Jd.a.chartHealthColorYellow,Jd.a.chartHealthColorOrange,Jd.a.chartHealthColorRed,Jd.a.chartHealthColorBlue]}],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:Jd.a.chartHealthTootlipBgColor,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="Helvetica Neue, Helvetica, Arial, sans-serif";rh.defaults.global.defaultFontFamily=t;const n=e.ctx;if(!e.options.plugins.center_text||!e.data.datasets[0].label)return;n.save();const i=e.data.datasets[0].label.split("\n"),r=(e.chartArea.left+e.chartArea.right)/2,s=(e.chartArea.top+e.chartArea.bottom)/2;n.textAlign="center",n.textBaseline="middle",n.font="24px "+t,n.fillStyle=Jd.a.chartHealthCenterTextColor,n.fillText(i[0],r,s-10),i.length>1&&(n.font="14px "+t,n.fillStyle=Jd.a.chartHealthCenterTextDescriptionColor,n.fillText(i[1],r,s+10)),n.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),jt.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;jt.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)(i.Mb(Zt.a),i.Mb(Xt.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-health-pie"]],viewQuery:function(e,t){var n;1&e&&(i.Jc(sh,!0),i.Jc(oh,!0)),2&e&&(i.zc(n=i.hc())&&(t.chartCanvasRef=n.first),i.zc(n=i.hc())&&(t.chartTooltipRef=n.first))},inputs:{data:"data",config:"config",isBytesData:"isBytesData",tooltipFn:"tooltipFn",showLabelAsTooltip:"showLabelAsTooltip"},outputs:{prepareFn:"prepareFn"},features:[i.wb],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&&(i.Sb(0,"div",0),i.Nb(1,"canvas",1,2),i.Sb(3,"div",3,4),i.Nb(5,"table"),i.Rb(),i.Rb()),2&e&&(i.yb(1),i.pc("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:rgba(0,0,0,.7);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 transparent;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})(),ch=(()=>{class e{transform(e){if(!e)return"";let t=0,n=0;jt.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=n-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=i.Lb({name:"osdSummary",type:e,pure:!0}),e})(),lh=(()=>{class e{transform(e){if(!e)return"";let t="",n="",i=0,r=0,s=0;jt.a.each(e.standbys,()=>{i+=1}),e.standbys&&!e.filesystems?(t=`${i} ${"up"}`,n="no filesystems"):0===e.filesystems.length?t="no filesystems":(jt.a.each(e.filesystems,e=>{jt.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=i.Lb({name:"mdsSummary",type:e,pure:!0}),e})(),uh=(()=>{class e{}return e.HEALTH_ERR=Jd.a.healthColorError,e.HEALTH_WARN=Jd.a.healthColorWarning,e.HEALTH_OK=Jd.a.healthColorHealthy,e})(),dh=(()=>{class e{transform(e){return uh[e]?{color:uh[e]}:null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Lb({name:"healthColor",type:e,pure:!0}),e})(),hh=(()=>{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=i.Lb({name:"monSummary",type:e,pure:!0}),e})(),fh=(()=>{class e{transform(e){if(!e)return"";let t="n/a";const n=jt.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=i.Lb({name:"mgrSummary",type:e,pure:!0}),e})();function ph(e,t){1&e&&i.Ob(0)}function mh(e,t){if(1&e&&(i.Sb(0,"li"),i.Sb(1,"span",21),i.jc(2,"healthColor"),i.Oc(3),i.Rb(),i.Oc(4),i.Rb()),2&e){const e=t.$implicit;i.yb(1),i.pc("ngStyle",i.kc(2,3,e.severity)),i.yb(2),i.Pc(e.type),i.yb(1),i.Qc(": ",e.summary.message," ")}}function bh(e,t){if(1&e&&(i.Mc(0,ph,1,0,"ng-container",19),i.Sb(1,"ul"),i.Mc(2,mh,5,5,"li",20),i.Rb()),2&e){i.ic(4);const e=i.Ac(5),t=i.ic();i.pc("ngTemplateOutlet",e),i.yb(2),i.pc("ngForOf",t.healthData.health.checks)}}function gh(e,t){1&e&&i.Nb(0,"i",22)}function _h(e,t){if(1&e&&(i.Qb(0),i.Mc(1,bh,3,2,"ng-template",null,16,i.Nc),i.Sb(3,"div",17),i.jc(4,"healthColor"),i.Oc(5),i.Mc(6,gh,1,0,"i",18),i.Rb(),i.Pb()),2&e){const e=i.Ac(2),t=i.ic(4);i.yb(3),i.pc("ngStyle",i.kc(4,4,t.healthData.health.status))("ngbPopover",e),i.yb(2),i.Qc(" ",t.healthData.health.status," "),i.yb(1),i.pc("ngIf","HEALTH_OK"!=(null==t.healthData.health?null:t.healthData.health.status))}}function yh(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"div",21),i.jc(2,"healthColor"),i.Oc(3),i.Rb(),i.Pb()),2&e){const e=i.ic(4);i.yb(1),i.pc("ngStyle",i.kc(2,2,e.healthData.health.status)),i.yb(2),i.Qc(" ",e.healthData.health.status," ")}}function vh(e,t){if(1&e&&(i.Sb(0,"cd-info-card",13),i.Yb(1,14),i.Mc(2,_h,7,6,"ng-container",15),i.Mc(3,yh,4,4,"ng-container",15),i.Rb()),2&e){const e=i.ic(3);i.yb(2),i.pc("ngIf",(null==e.healthData.health||null==e.healthData.health.checks?null:e.healthData.health.checks.length)>0),i.yb(1),i.pc("ngIf",!(null!=e.healthData.health&&null!=e.healthData.health.checks&&e.healthData.health.checks.length))}}function wh(e,t){if(1&e&&(i.Sb(0,"cd-info-card",23),i.Yb(1,24),i.Oc(2),i.Rb()),2&e){const e=i.ic(3);i.yb(2),i.Qc(" ",e.healthData.hosts," total ")}}function Sh(e,t){if(1&e&&(i.Sb(0,"cd-info-card",25),i.Yb(1,26),i.Oc(2),i.jc(3,"monSummary"),i.Rb()),2&e){const e=i.ic(3);i.yb(2),i.Qc(" ",i.kc(3,1,e.healthData.mon_status)," ")}}function Mh(e,t){if(1&e&&(i.Sb(0,"span",30),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("ngClass",e.class),i.yb(1),i.Qc(" ",e.content," ")}}function kh(e,t){if(1&e&&(i.Sb(0,"cd-info-card",27),i.Yb(1,28),i.Mc(2,Mh,2,2,"span",29),i.Rb()),2&e){const e=t.ngIf;i.yb(2),i.pc("ngForOf",e)}}function xh(e,t){if(1&e&&(i.Sb(0,"span",33),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("ngClass",e.class)("title",null!=e.titleText?e.titleText:""),i.yb(1),i.Qc(" ",e.content," ")}}function Dh(e,t){if(1&e&&(i.Sb(0,"cd-info-card",13),i.Yb(1,31),i.Mc(2,xh,2,3,"span",32),i.jc(3,"mgrSummary"),i.Rb()),2&e){const e=i.ic(3);i.yb(2),i.pc("ngForOf",i.kc(3,1,e.healthData.mgr_map))}}function Th(e,t){if(1&e&&(i.Sb(0,"cd-info-card",34),i.Yb(1,35),i.Oc(2),i.Rb()),2&e){const e=i.ic(3);i.yb(2),i.Qc(" ",e.healthData.rgw," total ")}}function Ch(e,t){if(1&e&&(i.Sb(0,"span",33),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("ngClass",e.class)("title",null!=e.titleText?e.titleText:""),i.yb(1),i.Qc(" ",e.content," ")}}function Oh(e,t){if(1&e&&(i.Sb(0,"cd-info-card",36),i.Yb(1,37),i.Mc(2,Ch,2,3,"span",32),i.Rb()),2&e){const e=t.ngIf;i.pc("contentClass",(e.length>1?"text-area-size-2":"")+" content-highlight"),i.yb(2),i.pc("ngForOf",e)}}const Lh=function(e){return{"card-text-error":e}};function Rh(e,t){if(1&e&&(i.Sb(0,"cd-info-card",38),i.Yb(1,39),i.Oc(2),i.Nb(3,"span",40),i.Oc(4),i.Sb(5,"span",30),i.Oc(6),i.Rb(),i.Rb()),2&e){const e=i.ic(3);i.yb(2),i.Qc(" ",e.healthData.iscsi_daemons.up+e.healthData.iscsi_daemons.down," total "),i.yb(2),i.Qc(" ",e.healthData.iscsi_daemons.up," up, "),i.yb(1),i.pc("ngClass",i.uc(4,Lh,e.healthData.iscsi_daemons.down>0)),i.yb(1),i.Qc("",e.healthData.iscsi_daemons.down," down")}}function Eh(e,t){if(1&e&&(i.Sb(0,"cd-info-group",4),i.Yb(1,5),i.Mc(2,vh,4,2,"cd-info-card",6),i.Mc(3,wh,3,1,"cd-info-card",7),i.Mc(4,Sh,4,3,"cd-info-card",8),i.Mc(5,kh,3,1,"cd-info-card",9),i.jc(6,"osdSummary"),i.Mc(7,Dh,4,3,"cd-info-card",6),i.Mc(8,Th,3,1,"cd-info-card",10),i.Mc(9,Oh,3,2,"cd-info-card",11),i.jc(10,"mdsSummary"),i.Mc(11,Rh,7,6,"cd-info-card",12),i.Rb()),2&e){const e=i.ic().ngIf,t=i.ic();i.yb(2),i.pc("ngIf",null==t.healthData.health?null:t.healthData.health.status),i.yb(1),i.pc("ngIf",null!=t.healthData.hosts),i.yb(1),i.pc("ngIf",t.healthData.mon_status),i.yb(1),i.pc("ngIf",i.kc(6,8,t.healthData.osd_map)),i.yb(2),i.pc("ngIf",t.healthData.mgr_map),i.yb(1),i.pc("ngIf",e.rgw&&null!=t.healthData.rgw),i.yb(1),i.pc("ngIf",i.kc(10,10,e.cephfs&&t.healthData.fs_map)),i.yb(2),i.pc("ngIf",e.iscsi&&null!=t.healthData.iscsi_daemons)}}function Ah(e,t){if(1&e){const e=i.Tb();i.Sb(0,"cd-info-card",45),i.Yb(1,46),i.Sb(2,"cd-health-pie",47),i.gc("prepareFn",(function(t){return i.Dc(e),i.ic(3).prepareRawUsage(t[0],t[1])})),i.Rb(),i.Rb()}if(2&e){const e=i.ic(3);i.yb(2),i.pc("data",e.healthData)("config",e.rawCapacityChartConfig)("isBytesData",!0)}}function Ih(e,t){if(1&e){const e=i.Tb();i.Sb(0,"cd-info-card",45),i.Yb(1,48),i.Sb(2,"cd-health-pie",49),i.gc("prepareFn",(function(t){return i.Dc(e),i.ic(3).prepareObjects(t[0],t[1])})),i.Rb(),i.Rb()}if(2&e){const e=i.ic(3);i.yb(2),i.pc("data",e.healthData)}}function Ph(e,t){1&e&&i.Ob(0)}function Nh(e,t){if(1&e&&(i.Sb(0,"li"),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.yb(1),i.Rc(" ",e.key,": ",e.value," ")}}function jh(e,t){if(1&e&&(i.Mc(0,Ph,1,0,"ng-container",19),i.Sb(1,"ul"),i.Mc(2,Nh,2,2,"li",20),i.jc(3,"keyvalue"),i.Rb()),2&e){i.ic(3);const e=i.Ac(5),t=i.ic();i.pc("ngTemplateOutlet",e),i.yb(2),i.pc("ngForOf",i.kc(3,2,t.healthData.pg_info.statuses))}}function Fh(e,t){if(1&e){const e=i.Tb();i.Sb(0,"cd-info-card",45),i.Yb(1,50),i.Mc(2,jh,4,4,"ng-template",null,51,i.Nc),i.Sb(4,"div",52),i.Sb(5,"div",53),i.Sb(6,"cd-health-pie",54),i.gc("prepareFn",(function(t){return i.Dc(e),i.ic(3).preparePgStatus(t[0],t[1])})),i.Rb(),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.Ac(3),t=i.ic(3);i.yb(5),i.pc("ngbPopover",e),i.yb(1),i.pc("data",t.healthData)("config",t.pgStatusChartConfig)}}function Yh(e,t){if(1&e&&(i.Sb(0,"cd-info-card",55),i.Yb(1,56),i.Oc(2),i.Rb()),2&e){const e=i.ic(3);i.yb(2),i.Qc(" ",e.healthData.pools.length," ")}}function zh(e,t){if(1&e&&(i.Sb(0,"cd-info-card",57),i.Yb(1,58),i.Oc(2),i.jc(3,"dimless"),i.Rb()),2&e){const e=i.ic(3);i.yb(2),i.Qc(" ",i.kc(3,1,e.healthData.pg_info.pgs_per_osd)," ")}}function $h(e,t){if(1&e&&(i.Sb(0,"cd-info-group",4),i.Yb(1,41),i.Mc(2,Ah,3,3,"cd-info-card",42),i.Mc(3,Ih,3,1,"cd-info-card",42),i.Mc(4,Fh,7,3,"cd-info-card",42),i.Mc(5,Yh,3,1,"cd-info-card",43),i.Mc(6,zh,4,3,"cd-info-card",44),i.Rb()),2&e){const e=i.ic(2);i.yb(2),i.pc("ngIf",e.healthData.df),i.yb(1),i.pc("ngIf",null!=(null==e.healthData.pg_info||null==e.healthData.pg_info.object_stats?null:e.healthData.pg_info.object_stats.num_objects)),i.yb(1),i.pc("ngIf",e.healthData.pg_info),i.yb(1),i.pc("ngIf",e.healthData.pools),i.yb(1),i.pc("ngIf",e.healthData.pg_info)}}function Hh(e,t){if(1&e){const e=i.Tb();i.Sb(0,"cd-info-card",62),i.Yb(1,63),i.Sb(2,"cd-health-pie",54),i.gc("prepareFn",(function(t){return i.Dc(e),i.ic(3).prepareReadWriteRatio(t[0],t[1])})),i.Rb(),i.Rb()}if(2&e){const e=i.ic(3);i.yb(2),i.pc("data",e.healthData)("config",e.clientStatsConfig)}}function Wh(e,t){if(1&e){const e=i.Tb();i.Sb(0,"cd-info-card",62),i.Yb(1,64),i.Sb(2,"cd-health-pie",54),i.gc("prepareFn",(function(t){return i.Dc(e),i.ic(3).prepareClientThroughput(t[0],t[1])})),i.Rb(),i.Rb()}if(2&e){const e=i.ic(3);i.yb(2),i.pc("data",e.healthData)("config",e.clientStatsConfig)}}function Vh(e,t){if(1&e&&(i.Sb(0,"cd-info-card",65),i.Yb(1,66),i.Oc(2),i.jc(3,"dimlessBinary"),i.Rb()),2&e){const e=i.ic(3);i.yb(2),i.Qc(" ",i.kc(3,1,e.healthData.client_perf.recovering_bytes_per_sec)+"/s"," ")}}function Bh(e,t){if(1&e&&(i.Sb(0,"cd-info-card",65),i.Yb(1,67),i.Oc(2),i.Rb()),2&e){const e=i.ic(3);i.yb(2),i.Qc(" ",e.healthData.scrub_status," ")}}function Uh(e,t){if(1&e&&(i.Sb(0,"cd-info-group",4),i.Yb(1,59),i.Mc(2,Hh,3,2,"cd-info-card",60),i.Mc(3,Wh,3,2,"cd-info-card",60),i.Mc(4,Vh,4,3,"cd-info-card",61),i.Mc(5,Bh,3,1,"cd-info-card",61),i.Rb()),2&e){const e=i.ic(2);i.yb(2),i.pc("ngIf",e.healthData.client_perf),i.yb(1),i.pc("ngIf",e.healthData.client_perf),i.yb(1),i.pc("ngIf",e.healthData.client_perf),i.yb(1),i.pc("ngIf",e.healthData.scrub_status)}}const Gh=function(e){return[e]};function qh(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"p",68),i.cc(2,69),i.Nb(3,"i",30),i.Nb(4,"a",70),i.Zb(),i.Rb(),i.Pb()),2&e){const e=i.ic(3);i.yb(3),i.pc("ngClass",i.uc(1,Gh,e.icons.infoCircle))}}function Jh(e,t){if(1&e&&i.Mc(0,qh,5,3,"ng-container",15),2&e){const e=i.ic(2);i.pc("ngIf",e.permissions.log.read)}}function Qh(e,t){if(1&e&&(i.Sb(0,"div",1),i.Mc(1,Eh,12,12,"cd-info-group",2),i.Mc(2,$h,7,5,"cd-info-group",2),i.Mc(3,Uh,6,4,"cd-info-group",2),i.Mc(4,Jh,1,1,"ng-template",null,3,i.Nc),i.Rb()),2&e){const e=i.ic();i.yb(1),i.pc("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),i.yb(1),i.pc("ngIf",e.healthData.pools||e.healthData.df||e.healthData.pg_info),i.yb(1),i.pc("ngIf",e.healthData.client_perf||e.healthData.scrub_status)}}let Kh=(()=>{class e{constructor(e,t,n,i,r,s,o){this.healthService=e,this.authStorageService=t,this.pgCategoryService=n,this.featureToggles=i,this.refreshIntervalService=r,this.dimlessBinary=s,this.dimless=o,this.interval=new Oi.a,this.icons=_n.a,this.clientStatsConfig={colors:[{backgroundColor:[Jd.a.chartHealthColorCyan,Jd.a.chartHealthColorPurple]}]},this.rawCapacityChartConfig={colors:[{backgroundColor:[Jd.a.chartHealthColorBlue,Jd.a.chartHealthColorGray]}]},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;jt.a.forEach(t.pg_info.statuses,(e,t)=>{const r=this.pgCategoryService.getTypeByStates(t);jt.a.isUndefined(n[r])&&(n[r]=0),n[r]+=e,i+=e});for(const r of this.pgCategoryService.getAllTypes())jt.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 jt.a.isNumber(e)&&jt.a.isNumber(t)&&0!==t?Math.round(e/t*100):0}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Li),i.Mb(Jt.a),i.Mb(Ud.a),i.Mb(Gd.a),i.Mb(Wd),i.Mb(Zt.a),i.Mb(Xt.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-health"]],decls:2,vars:3,consts:function(){return[["class","container-fluid",4,"ngIf"],[1,"container-fluid"],[4,"ngIf",6,"groupTitle"],["logsLink",""],[6,"groupTitle"],["groupTitle","Status"],["class","cd-status-card","contentClass","content-highlight",4,"ngIf",6,"cardTitle"],["link","/hosts","class","cd-status-card","contentClass","content-highlight",4,"ngIf",6,"cardTitle"],["link","/monitor","class","cd-status-card","contentClass","content-highlight",4,"ngIf",6,"cardTitle"],["link","/osd","class","cd-status-card","contentClass","content-highlight",4,"ngIf",6,"cardTitle"],["link","/rgw/daemon","class","cd-status-card","contentClass","content-highlight",4,"ngIf",6,"cardTitle"],["class","cd-status-card",3,"contentClass",4,"ngIf",6,"cardTitle"],["link","/block/iscsi","class","cd-status-card","contentClass","content-highlight",4,"ngIf",6,"cardTitle"],["contentClass","content-highlight",1,"cd-status-card",6,"cardTitle"],["cardTitle","Cluster Status"],[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"],["link","/hosts","contentClass","content-highlight",1,"cd-status-card",6,"cardTitle"],["cardTitle","Hosts"],["link","/monitor","contentClass","content-highlight",1,"cd-status-card",6,"cardTitle"],["cardTitle","Monitors"],["link","/osd","contentClass","content-highlight",1,"cd-status-card",6,"cardTitle"],["cardTitle","OSDs"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["cardTitle","Managers"],[3,"ngClass","title",4,"ngFor","ngForOf"],[3,"ngClass","title"],["link","/rgw/daemon","contentClass","content-highlight",1,"cd-status-card",6,"cardTitle"],["cardTitle","Object Gateways"],[1,"cd-status-card",3,"contentClass",6,"cardTitle"],["cardTitle","Metadata Servers"],["link","/block/iscsi","contentClass","content-highlight",1,"cd-status-card",6,"cardTitle"],["cardTitle","iSCSI Gateways"],[1,"card-text-line-break"],["groupTitle","Capacity"],["class","cd-capacity-card cd-chart-card","contentClass","content-chart",4,"ngIf",6,"cardTitle"],["link","/pool","class","cd-capacity-card","contentClass","content-highlight",4,"ngIf",6,"cardTitle"],["class","cd-capacity-card","contentClass","content-highlight",4,"ngIf",6,"cardTitle"],["contentClass","content-chart",1,"cd-capacity-card","cd-chart-card",6,"cardTitle"],["cardTitle","Raw Capacity"],[3,"data","config","isBytesData","prepareFn"],["cardTitle","Objects"],[3,"data","prepareFn"],["cardTitle","PG Status"],["pgStatus",""],[1,"pg-status-popover-wrapper"],[3,"ngbPopover"],[3,"data","config","prepareFn"],["link","/pool","contentClass","content-highlight",1,"cd-capacity-card",6,"cardTitle"],["cardTitle","Pools"],["contentClass","content-highlight",1,"cd-capacity-card",6,"cardTitle"],["cardTitle","PGs per OSD"],["groupTitle","Performance"],["class","cd-performance-card cd-chart-card","contentClass","content-chart",4,"ngIf",6,"cardTitle"],["class","cd-performance-card","contentClass","content-highlight",4,"ngIf",6,"cardTitle"],["contentClass","content-chart",1,"cd-performance-card","cd-chart-card",6,"cardTitle"],["cardTitle","Client Read/Write"],["cardTitle","Client Throughput"],["contentClass","content-highlight",1,"cd-performance-card",6,"cardTitle"],["cardTitle","Recovery Throughput"],["cardTitle","Scrubbing"],[1,"logs-link"],"" + "\ufffd#3\ufffd" + "" + "\ufffd/#3\ufffd" + " See " + "\ufffd#4\ufffd" + "Logs" + "\ufffd/#4\ufffd" + " for more details.",["routerLink","/logs"]]},template:function(e,t){1&e&&(i.Mc(0,Qh,6,3,"div",0),i.jc(1,"async")),2&e&&i.pc("ngIf",i.kc(1,1,t.healthData&&t.enabledFeature$))},directives:[o.r,Xd,ih,o.s,Qt.w,o.w,o.q,o.p,ah,Pt.h],pipes:[o.b,ch,lh,dh,hh,fh,o.k,Xt.a,Zt.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 Zh(e,t){1&e&&i.Nb(0,"cd-health")}function Xh(e,t){}function ef(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"ul",1,2),i.Sb(3,"li",3),i.Sb(4,"a",4),i.Wb(5,5),i.Rb(),i.Mc(6,Zh,1,0,"ng-template",6),i.Rb(),i.Sb(7,"li",3),i.Sb(8,"a",4),i.Wb(9,7),i.Rb(),i.Mc(10,Xh,0,0,"ng-template",6),i.Rb(),i.Rb(),i.Nb(11,"div",8),i.Pb()),2&e){const e=i.Ac(2);i.yb(11),i.pc("ngbNavOutlet",e)}}function tf(e,t){1&e&&i.Nb(0,"cd-health")}let nf=(()=>{class e{constructor(){this.hasGrafana=!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-dashboard"]],decls:4,vars:2,consts:function(){return[[4,"ngIf"],["ngbNav","",1,"nav-tabs"],["nav","ngbNav"],["ngbNavItem",""],["ngbNavLink",""],"Health",["ngbNavContent",""],"Statistics",[3,"ngbNavOutlet"]]},template:function(e,t){1&e&&(i.Sb(0,"div"),i.Nb(1,"cd-refresh-selector"),i.Mc(2,ef,12,1,"ng-container",0),i.Mc(3,tf,1,0,"cd-health",0),i.Rb()),2&e&&(i.yb(2),i.pc("ngIf",t.hasGrafana),i.yb(1),i.pc("ngIf",!t.hasGrafana))},directives:[Bd,o.r,Qt.p,Qt.r,Qt.s,Qt.q,Qt.u,Kh],styles:["div[_ngcontent-%COMP%]{padding-top:20px}"]}),e})(),rf=(()=>{class e{constructor(e){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:"MDONLY",help:"Does not allow read or write operations, but allows any other operation"},{value:"MDONLY_RO",help:"Does not allow read, write, or any operation that modifies file attributes or directory content"},{value:"NONE",help:"Allows no access at all"}],this.nfsFsal=[{value:"CEPH",descr:"CephFS"},{value:"RGW",descr:"Object Gateway"}],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,{observe:"response"})}update(e,t,n){return this.http.put(`${this.apiPath}/export/${e}/${t}`,n,{observe:"response"})}delete(e,t){return this.http.delete(`${this.apiPath}/export/${e}/${t}`,{observe:"response"})}lsDir(e,t){return this.http.get(`${this.uiApiPath}/lsdir/${e}?root_dir=${t}`)}buckets(e){return this.http.get(`${this.uiApiPath}/rgw/buckets?user_id=${e}`)}clients(){return this.http.get(this.uiApiPath+"/cephx/clients")}fsals(){return this.http.get(this.uiApiPath+"/fsals")}filesystems(){return this.http.get(this.uiApiPath+"/cephfs/filesystems")}daemon(){return this.http.get(this.apiPath+"/daemon")}start(e){return this.http.put(`${this.apiPath}/service/${e}/start`,null,{observe:"response"})}stop(e){return this.http.put(`${this.apiPath}/service/${e}/stop`,null,{observe:"response"})}}return e.\u0275fac=function(t){return new(t||e)(i.dc(a.b))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var sf=n("P8lu"),of=function(e){return e.user="user",e.orchestrator="orchestrator",e}({}),af=n("TYzs");function cf(e,t){1&e&&(i.Sb(0,"span",14),i.Sb(1,"span",15),i.Wb(2,16),i.Rb(),i.Rb())}function lf(e,t){1&e&&(i.Sb(0,"span"),i.Wb(1,36),i.Rb())}function uf(e,t){1&e&&(i.Sb(0,"span"),i.Qb(1),i.Wb(2,37),i.Pb(),i.Nb(3,"br"),i.Qb(4),i.Wb(5,38),i.Pb(),i.Oc(6," 192.168.0.10, 192.168.1.0/8 "),i.Rb())}function df(e,t){if(1&e&&(i.Sb(0,"option",39),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e.value),i.yb(1),i.Pc(e.value)}}function hf(e,t){if(1&e&&(i.Sb(0,"span",15),i.Oc(1),i.Rb()),2&e){const e=i.ic().index,t=i.ic();i.yb(1),i.Qc(" ",t.getAccessTypeHelp(e)," ")}}function ff(e,t){if(1&e&&(i.Sb(0,"option",39),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e),i.yb(1),i.Pc(e)}}function pf(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div"),i.Sb(1,"div",17),i.Sb(2,"div",18),i.Oc(3),i.jc(4,"ordinal"),i.Sb(5,"span",19),i.gc("click",(function(){i.Dc(e);const n=t.index;return i.ic().removeClient(n)})),i.Oc(6,"\xd7"),i.Rb(),i.Rb(),i.Sb(7,"div",20),i.Sb(8,"div",0),i.Sb(9,"label",21),i.Wb(10,22),i.Rb(),i.Sb(11,"div",23),i.Nb(12,"input",24),i.Sb(13,"span",25),i.Mc(14,lf,2,0,"span",26),i.Mc(15,uf,7,0,"span",26),i.Rb(),i.Rb(),i.Rb(),i.Sb(16,"div",0),i.Sb(17,"label",27),i.Wb(18,28),i.Rb(),i.Sb(19,"div",23),i.Sb(20,"select",29),i.Sb(21,"option",30),i.Oc(22),i.Rb(),i.Mc(23,df,2,2,"option",31),i.Rb(),i.Mc(24,hf,2,1,"span",32),i.Rb(),i.Rb(),i.Sb(25,"div",0),i.Sb(26,"label",33),i.Wb(27,34),i.Rb(),i.Sb(28,"div",23),i.Sb(29,"select",35),i.Sb(30,"option",30),i.Oc(31),i.Rb(),i.Mc(32,ff,2,2,"option",31),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=t.index,n=i.ic(),r=i.Ac(4);i.yb(1),i.pc("formGroupName",e),i.yb(2),i.Qc(" ",i.kc(4,9,e+1)," "),i.yb(11),i.pc("ngIf",n.showError(e,"addresses",r,"required")),i.yb(1),i.pc("ngIf",n.showError(e,"addresses",r,"pattern")),i.yb(7),i.Pc(n.getNoAccessTypeDescr()),i.yb(1),i.pc("ngForOf",n.nfsAccessType),i.yb(1),i.pc("ngIf",n.getValue(e,"access_type")),i.yb(7),i.Pc(n.getNoSquashDescr()),i.yb(1),i.pc("ngForOf",n.nfsSquash)}}const mf=function(e){return[e]};let bf=(()=>{class e{constructor(e){this.nfsService=e,this.nfsSquash=this.nfsService.nfsSquash,this.nfsAccessType=this.nfsService.nfsAccessType,this.icons=_n.a}ngOnInit(){jt.a.forEach(this.clients,e=>{this.addClient().patchValue(e)})}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 jt.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(){const e=this.form.get("clients"),t="(([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3}).([0-9]{1,3})([/](\\d|[1-2]\\d|3[0-2]))?)",n=new Jn.a({addresses:new kn.h("",{validators:[kn.A.required,kn.A.pattern(`${t}([ ,]{1,2}${t})*`)]}),access_type:new kn.h(""),squash:new kn.h("")});return e.push(n),n}removeClient(e){this.form.get("clients").removeAt(e)}showError(e,t,n,i){return this.form.controls.clients.controls[e].showError(t,n,i)}getValue(e,t){return this.form.get("clients").at(e).getValue(t)}trackByFn(e){return e}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(rf))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-nfs-form-client"]],inputs:{form:"form",clients:"clients"},decls:15,vars:7,consts:function(){return[[1,"form-group","row"],[1,"cd-col-form-label"],"Clients",[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"],[1,"btn","btn-light",3,"click"],[3,"ngClass"],"Add clients",[1,"no-border","text-muted"],[1,"form-text","text-muted"],"Any client can access",[1,"card",3,"formGroupName"],[1,"card-header"],["ngbTooltip","Remove",1,"float-right","clickable",3,"click"],[1,"card-body"],["for","addresses",1,"cd-col-form-label"],"Addresses",[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"],"Access Type",["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"],"Squash",["name","squash","id","squash","formControlName","squash",1,"form-control","custom-select"],"This field is required.","Must contain one or more comma-separated values","For example:",[3,"value"]]},template:function(e,t){1&e&&(i.Sb(0,"div",0),i.Sb(1,"label",1),i.Wb(2,2),i.Rb(),i.Sb(3,"div",3,4),i.Mc(5,cf,3,0,"span",5),i.Qb(6,6),i.Mc(7,pf,33,11,"div",7),i.Pb(),i.Sb(8,"div",8),i.Sb(9,"div",9),i.Sb(10,"div",10),i.Sb(11,"button",11),i.gc("click",(function(){return t.addClient()})),i.Nb(12,"i",12),i.Qb(13),i.Wb(14,13),i.Pb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()),2&e&&(i.yb(3),i.pc("formGroup",t.form),i.yb(2),i.pc("ngIf",0===t.form.get("clients").value.length),i.yb(2),i.pc("ngForOf",t.form.get("clients").value)("ngForTrackBy",t.trackByFn),i.yb(5),i.pc("ngClass",i.uc(5,mf,t.icons.add)))},directives:[Xn.a,kn.r,kn.k,Zn.a,o.r,kn.f,o.q,On.a,o.p,kn.l,Qt.D,kn.d,ei.a,kn.q,kn.i,kn.z,kn.u,kn.B],pipes:[af.a],styles:[""]}),e})();var gf=n("wnGv");const _f=["nfsClients"];function yf(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,51),i.Rb())}function vf(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,52),i.Rb())}function wf(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,53),i.Rb())}function Sf(e,t){if(1&e&&(i.Sb(0,"option",54),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e.cluster_id),i.yb(1),i.Pc(e.cluster_id)}}function Mf(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,56),i.Rb())}function kf(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",10),i.Sb(1,"label",47),i.Wb(2,48),i.Rb(),i.Sb(3,"div",13),i.Sb(4,"select",49),i.gc("change",(function(){return i.Dc(e),i.ic(2).onClusterChange()})),i.Mc(5,yf,2,0,"option",15),i.Mc(6,vf,2,0,"option",15),i.Mc(7,wf,2,0,"option",15),i.Mc(8,Sf,2,2,"option",16),i.Rb(),i.Mc(9,Mf,2,0,"span",17),i.Rb(),i.Rb()}if(2&e){i.ic();const e=i.Ac(2),t=i.ic();i.yb(5),i.pc("ngIf",null===t.allClusters),i.yb(1),i.pc("ngIf",null!==t.allClusters&&0===t.allClusters.length),i.yb(1),i.pc("ngIf",null!==t.allClusters&&t.allClusters.length>0),i.yb(1),i.pc("ngForOf",t.allClusters),i.yb(1),i.pc("ngIf",t.nfsForm.showError("cluster_id",e,"required"))}}const xf=function(e){return[e]};function Df(e,t){if(1&e){const e=i.Tb();i.Sb(0,"span",64),i.Sb(1,"button",65),i.gc("click",(function(){i.Dc(e);const t=i.ic(),n=t.index,r=t.$implicit;return i.ic(3).removeDaemon(n,r)})),i.Nb(2,"i",66),i.Rb(),i.Rb()}if(2&e){const e=i.ic(4);i.yb(2),i.pc("ngClass",i.uc(1,xf,e.icons.destroy))}}function Tf(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"div",61),i.Nb(2,"input",62),i.Mc(3,Df,3,3,"span",63),i.Rb(),i.Pb()),2&e){const e=t.$implicit,n=i.ic(3);i.yb(2),i.pc("value",e),i.yb(1),i.pc("ngIf","user"===n.clusterType)}}function Cf(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",67),i.Sb(1,"div",68),i.Sb(2,"cd-select",69),i.gc("selection",(function(){return i.Dc(e),i.ic(3).onDaemonSelection()})),i.Nb(3,"i",70),i.Qb(4),i.Wb(5,71),i.Pb(),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.ic(3);i.yb(2),i.pc("data",e.nfsForm.get("daemons").value)("options",e.daemonsSelections)("messages",e.daemonsMessages),i.yb(1),i.pc("ngClass",i.uc(4,xf,e.icons.add))}}function Of(e,t){1&e&&(i.Qb(0),i.Wb(1,75),i.Pb())}function Lf(e,t){1&e&&(i.Qb(0),i.Wb(1,76),i.Pb())}function Rf(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",67),i.Sb(1,"div",68),i.Sb(2,"button",72),i.gc("click",(function(){return i.Dc(e),i.ic(3).onToggleAllDaemonsSelection()})),i.Nb(3,"i",70),i.Mc(4,Of,2,0,"ng-container",73),i.Mc(5,Lf,2,0,"ng-template",null,74,i.Nc),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.Ac(6),t=i.ic(3);i.yb(3),i.pc("ngClass",i.uc(3,xf,t.icons.add)),i.yb(1),i.pc("ngIf",0===t.nfsForm.getValue("daemons").length)("ngIfElse",e)}}function Ef(e,t){if(1&e&&(i.Sb(0,"div",10),i.Sb(1,"label",57),i.Qb(2),i.Wb(3,58),i.Pb(),i.Rb(),i.Sb(4,"div",13),i.Mc(5,Tf,4,2,"ng-container",59),i.Mc(6,Cf,6,6,"div",60),i.Mc(7,Rf,7,5,"div",60),i.Rb(),i.Rb()),2&e){const e=i.ic(2);i.yb(5),i.pc("ngForOf",e.nfsForm.getValue("daemons")),i.yb(1),i.pc("ngIf","user"===e.clusterType),i.yb(1),i.pc("ngIf","orchestrator"===e.clusterType)}}function Af(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,77),i.Rb())}function If(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,78),i.Rb())}function Pf(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,79),i.Rb())}function Nf(e,t){if(1&e&&(i.Sb(0,"option",54),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e.value),i.yb(1),i.Pc(e.descr)}}function jf(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,80),i.Rb())}function Ff(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,84),i.Rb())}function Yf(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,85),i.Rb())}function zf(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,86),i.Rb())}function $f(e,t){if(1&e&&(i.Sb(0,"option",54),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e),i.yb(1),i.Pc(e)}}function Hf(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,87),i.Rb())}function Wf(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",10),i.Sb(1,"label",81),i.Wb(2,82),i.Rb(),i.Sb(3,"div",13),i.Sb(4,"select",83),i.gc("change",(function(){return i.Dc(e),i.ic(2).rgwUserIdChangeHandler()})),i.Mc(5,Ff,2,0,"option",15),i.Mc(6,Yf,2,0,"option",15),i.Mc(7,zf,2,0,"option",15),i.Mc(8,$f,2,2,"option",16),i.Rb(),i.Mc(9,Hf,2,0,"span",17),i.Rb(),i.Rb()}if(2&e){i.ic();const e=i.Ac(2),t=i.ic();i.yb(5),i.pc("ngIf",null===t.allRgwUsers),i.yb(1),i.pc("ngIf",null!==t.allRgwUsers&&0===t.allRgwUsers.length),i.yb(1),i.pc("ngIf",null!==t.allRgwUsers&&t.allRgwUsers.length>0),i.yb(1),i.pc("ngForOf",t.allRgwUsers),i.yb(1),i.pc("ngIf",t.nfsForm.showError("rgw_user_id",e,"required"))}}function Vf(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,91),i.Rb())}function Bf(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,92),i.Rb())}function Uf(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,93),i.Rb())}function Gf(e,t){if(1&e&&(i.Sb(0,"option",54),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e),i.yb(1),i.Pc(e)}}function qf(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,94),i.Rb())}function Jf(e,t){if(1&e&&(i.Sb(0,"div",10),i.Sb(1,"label",88),i.Wb(2,89),i.Rb(),i.Sb(3,"div",13),i.Sb(4,"select",90),i.Mc(5,Vf,2,0,"option",15),i.Mc(6,Bf,2,0,"option",15),i.Mc(7,Uf,2,0,"option",15),i.Mc(8,Gf,2,2,"option",16),i.Rb(),i.Mc(9,qf,2,0,"span",17),i.Rb(),i.Rb()),2&e){i.ic();const e=i.Ac(2),t=i.ic();i.yb(5),i.pc("ngIf",null===t.allCephxClients),i.yb(1),i.pc("ngIf",null!==t.allCephxClients&&0===t.allCephxClients.length),i.yb(1),i.pc("ngIf",null!==t.allCephxClients&&t.allCephxClients.length>0),i.yb(1),i.pc("ngForOf",t.allCephxClients),i.yb(1),i.pc("ngIf",t.nfsForm.showError("user_id",e,"required"))}}function Qf(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,98),i.Rb())}function Kf(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,99),i.Rb())}function Zf(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,100),i.Rb())}function Xf(e,t){if(1&e&&(i.Sb(0,"option",54),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e.name),i.yb(1),i.Pc(e.name)}}function ep(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,101),i.Rb())}function tp(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",10),i.Sb(1,"label",95),i.Wb(2,96),i.Rb(),i.Sb(3,"div",13),i.Sb(4,"select",97),i.gc("change",(function(){return i.Dc(e),i.ic(2).rgwUserIdChangeHandler()})),i.Mc(5,Qf,2,0,"option",15),i.Mc(6,Kf,2,0,"option",15),i.Mc(7,Zf,2,0,"option",15),i.Mc(8,Xf,2,2,"option",16),i.Rb(),i.Mc(9,ep,2,0,"span",17),i.Rb(),i.Rb()}if(2&e){i.ic();const e=i.Ac(2),t=i.ic();i.yb(5),i.pc("ngIf",null===t.allFsNames),i.yb(1),i.pc("ngIf",null!==t.allFsNames&&0===t.allFsNames.length),i.yb(1),i.pc("ngIf",null!==t.allFsNames&&t.allFsNames.length>0),i.yb(1),i.pc("ngForOf",t.allFsNames),i.yb(1),i.pc("ngIf",t.nfsForm.showError("fs_name",e,"required"))}}function np(e,t){1&e&&i.Nb(0,"input",108)}function ip(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,109),i.Rb())}const rp=function(e){return{required:e}};function sp(e,t){if(1&e&&(i.Sb(0,"div",10),i.Sb(1,"label",102),i.Wb(2,103),i.Rb(),i.Sb(3,"div",13),i.Sb(4,"div",20),i.Nb(5,"input",104),i.Sb(6,"label",105),i.Wb(7,106),i.Rb(),i.Rb(),i.Nb(8,"br"),i.Mc(9,np,1,0,"input",107),i.Mc(10,ip,2,0,"span",17),i.Rb(),i.Rb()),2&e){i.ic();const e=i.Ac(2),t=i.ic();i.yb(1),i.pc("ngClass",i.uc(3,rp,t.nfsForm.getValue("security_label"))),i.yb(8),i.pc("ngIf",t.nfsForm.getValue("security_label")),i.yb(1),i.pc("ngIf",t.nfsForm.showError("sec_label_xattr",e,"required"))}}function op(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,113),i.Rb())}function ap(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,114),i.Rb())}function cp(e,t){1&e&&(i.Sb(0,"span",115),i.Wb(1,116),i.Rb())}function lp(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",10),i.Sb(1,"label",110),i.Wb(2,111),i.Rb(),i.Sb(3,"div",13),i.Sb(4,"input",112),i.gc("selectItem",(function(){return i.Dc(e),i.ic(2).pathChangeHandler()}))("blur",(function(){return i.Dc(e),i.ic(2).pathChangeHandler()})),i.Rb(),i.Mc(5,op,2,0,"span",17),i.Mc(6,ap,2,0,"span",17),i.Mc(7,cp,2,0,"span",30),i.Rb(),i.Rb()}if(2&e){i.ic();const e=i.Ac(2),t=i.ic();i.yb(4),i.pc("ngbTypeahead",t.pathDataSource),i.yb(1),i.pc("ngIf",t.nfsForm.showError("path",e,"required")),i.yb(1),i.pc("ngIf",t.nfsForm.showError("path",e,"pattern")),i.yb(1),i.pc("ngIf",t.isNewDirectory&&!t.nfsForm.showError("path",e))}}function up(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,118),i.Rb())}function dp(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,119),i.Rb())}function hp(e,t){1&e&&(i.Sb(0,"span",115),i.Wb(1,120),i.Rb())}function fp(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",10),i.Sb(1,"label",110),i.Wb(2,117),i.Rb(),i.Sb(3,"div",13),i.Sb(4,"input",112),i.gc("selectItem",(function(){return i.Dc(e),i.ic(2).bucketChangeHandler()}))("blur",(function(){return i.Dc(e),i.ic(2).bucketChangeHandler()})),i.Rb(),i.Mc(5,up,2,0,"span",17),i.Mc(6,dp,2,0,"span",17),i.Mc(7,hp,2,0,"span",30),i.Rb(),i.Rb()}if(2&e){i.ic();const e=i.Ac(2),t=i.ic();i.yb(4),i.pc("ngbTypeahead",t.bucketDataSource),i.yb(1),i.pc("ngIf",t.nfsForm.showError("path",e,"required")),i.yb(1),i.pc("ngIf",t.nfsForm.showError("path",e,"pattern")),i.yb(1),i.pc("ngIf",t.isNewBucket&&!t.nfsForm.showError("path",e))}}function pp(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,121),i.Rb())}function mp(e,t){1&e&&(i.Sb(0,"div",10),i.Sb(1,"label",122),i.Qb(2),i.Wb(3,123),i.Pb(),i.Sb(4,"cd-helper"),i.Sb(5,"p"),i.cc(6,124),i.Nb(7,"strong"),i.Zb(),i.Rb(),i.Sb(8,"p"),i.Wb(9,125),i.Rb(),i.Sb(10,"p"),i.Wb(11,126),i.Rb(),i.Rb(),i.Rb(),i.Sb(12,"div",13),i.Nb(13,"input",127),i.Rb(),i.Rb())}function bp(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,134),i.Rb())}function gp(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,135),i.Rb())}function _p(e,t){if(1&e&&(i.Sb(0,"div",10),i.Sb(1,"label",128),i.Sb(2,"span",129),i.Wb(3,130),i.Rb(),i.Sb(4,"cd-helper"),i.Sb(5,"p"),i.cc(6,131),i.Nb(7,"strong"),i.Nb(8,"strong"),i.Zb(),i.Rb(),i.Sb(9,"p"),i.Wb(10,132),i.Rb(),i.Rb(),i.Rb(),i.Sb(11,"div",13),i.Nb(12,"input",133),i.Mc(13,bp,2,0,"span",17),i.Mc(14,gp,2,0,"span",17),i.Rb(),i.Rb()),2&e){i.ic();const e=i.Ac(2),t=i.ic();i.yb(13),i.pc("ngIf",t.nfsForm.showError("pseudo",e,"required")),i.yb(1),i.pc("ngIf",t.nfsForm.showError("pseudo",e,"pattern"))}}function yp(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,136),i.Rb())}function vp(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,137),i.Rb())}function wp(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,138),i.Rb())}function Sp(e,t){if(1&e&&(i.Sb(0,"option",54),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e.value),i.yb(1),i.Pc(e.value)}}function Mp(e,t){if(1&e&&(i.Sb(0,"span",115),i.Oc(1),i.Rb()),2&e){const e=i.ic(2);i.yb(1),i.Qc(" ",e.getAccessTypeHelp(e.nfsForm.getValue("access_type"))," ")}}function kp(e,t){1&e&&(i.Sb(0,"span",139),i.cc(1,140),i.Nb(2,"cd-doc",141),i.Zb(),i.Rb())}function xp(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,142),i.Rb())}function Dp(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,143),i.Rb())}function Tp(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,144),i.Rb())}function Cp(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,145),i.Rb())}function Op(e,t){if(1&e&&(i.Sb(0,"option",54),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e),i.yb(1),i.Pc(e)}}function Lp(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,146),i.Rb())}function Rp(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,147),i.Rb())}function Ep(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",1),i.Sb(1,"form",2,3),i.Sb(3,"div",4),i.Sb(4,"div",5),i.Wb(5,6),i.jc(6,"titlecase"),i.jc(7,"upperFirst"),i.Rb(),i.Sb(8,"div",7),i.Mc(9,kf,10,5,"div",8),i.Mc(10,Ef,8,3,"div",8),i.Sb(11,"div",9),i.Sb(12,"div",10),i.Sb(13,"label",11),i.Wb(14,12),i.Rb(),i.Sb(15,"div",13),i.Sb(16,"select",14),i.gc("change",(function(){return i.Dc(e),i.ic().fsalChangeHandler()})),i.Mc(17,Af,2,0,"option",15),i.Mc(18,If,2,0,"option",15),i.Mc(19,Pf,2,0,"option",15),i.Mc(20,Nf,2,2,"option",16),i.Rb(),i.Mc(21,jf,2,0,"span",17),i.Rb(),i.Rb(),i.Mc(22,Wf,10,5,"div",8),i.Mc(23,Jf,10,5,"div",8),i.Mc(24,tp,10,5,"div",8),i.Rb(),i.Mc(25,sp,11,5,"div",8),i.Mc(26,lp,8,4,"div",8),i.Mc(27,fp,8,4,"div",8),i.Sb(28,"div",10),i.Sb(29,"label",18),i.Wb(30,19),i.Rb(),i.Sb(31,"div",13),i.Sb(32,"div",20),i.Nb(33,"input",21),i.Sb(34,"label",22),i.Wb(35,23),i.Rb(),i.Rb(),i.Sb(36,"div",20),i.Nb(37,"input",24),i.Sb(38,"label",25),i.Wb(39,26),i.Rb(),i.Rb(),i.Mc(40,pp,2,0,"span",17),i.Rb(),i.Rb(),i.Mc(41,mp,14,0,"div",8),i.Mc(42,_p,15,2,"div",8),i.Sb(43,"div",10),i.Sb(44,"label",27),i.Wb(45,28),i.Rb(),i.Sb(46,"div",13),i.Sb(47,"select",29),i.gc("change",(function(){return i.Dc(e),i.ic().accessTypeChangeHandler()})),i.Mc(48,yp,2,0,"option",15),i.Mc(49,vp,2,0,"option",15),i.Mc(50,wp,2,0,"option",15),i.Mc(51,Sp,2,2,"option",16),i.Rb(),i.Mc(52,Mp,2,1,"span",30),i.Mc(53,kp,3,0,"span",31),i.Mc(54,xp,2,0,"span",17),i.Rb(),i.Rb(),i.Sb(55,"div",10),i.Sb(56,"label",32),i.Wb(57,33),i.Rb(),i.Sb(58,"div",13),i.Sb(59,"select",34),i.Mc(60,Dp,2,0,"option",15),i.Mc(61,Tp,2,0,"option",15),i.Mc(62,Cp,2,0,"option",15),i.Mc(63,Op,2,2,"option",16),i.Rb(),i.Mc(64,Lp,2,0,"span",17),i.Rb(),i.Rb(),i.Sb(65,"div",10),i.Sb(66,"label",35),i.Wb(67,36),i.Rb(),i.Sb(68,"div",13),i.Sb(69,"div",20),i.Nb(70,"input",37),i.Sb(71,"label",38),i.Wb(72,39),i.Rb(),i.Rb(),i.Sb(73,"div",20),i.Nb(74,"input",40),i.Sb(75,"label",41),i.Wb(76,42),i.Rb(),i.Rb(),i.Mc(77,Rp,2,0,"span",17),i.Nb(78,"hr"),i.Rb(),i.Rb(),i.Nb(79,"cd-nfs-form-client",43,44),i.Rb(),i.Sb(81,"div",45),i.Sb(82,"cd-form-button-panel",46),i.gc("submitActionEvent",(function(){return i.Dc(e),i.ic().submitAction()})),i.jc(83,"titlecase"),i.jc(84,"upperFirst"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.Ac(2),t=i.ic();i.yb(1),i.pc("formGroup",t.nfsForm),i.yb(6),i.ac(i.kc(6,36,t.action))(i.kc(7,38,t.resource)),i.Xb(5),i.yb(2),i.pc("ngIf",!t.isDefaultCluster),i.yb(1),i.pc("ngIf",t.clusterType),i.yb(7),i.pc("ngIf",null===t.allFsals),i.yb(1),i.pc("ngIf",null!==t.allFsals&&0===t.allFsals.length),i.yb(1),i.pc("ngIf",null!==t.allFsals&&t.allFsals.length>0),i.yb(1),i.pc("ngForOf",t.allFsals),i.yb(1),i.pc("ngIf",t.nfsForm.showError("name",e,"required")),i.yb(1),i.pc("ngIf","RGW"===t.nfsForm.getValue("name")),i.yb(1),i.pc("ngIf","CEPH"===t.nfsForm.getValue("name")),i.yb(1),i.pc("ngIf","CEPH"===t.nfsForm.getValue("name")),i.yb(1),i.pc("ngIf","CEPH"===t.nfsForm.getValue("name")),i.yb(1),i.pc("ngIf","CEPH"===t.nfsForm.getValue("name")),i.yb(1),i.pc("ngIf","RGW"===t.nfsForm.getValue("name")),i.yb(13),i.pc("ngIf",t.nfsForm.showError("protocolNfsv3",e,"required")||t.nfsForm.showError("protocolNfsv4",e,"required")),i.yb(1),i.pc("ngIf",t.nfsForm.getValue("protocolNfsv3")),i.yb(1),i.pc("ngIf",t.nfsForm.getValue("protocolNfsv4")),i.yb(6),i.pc("ngIf",null===t.nfsAccessType),i.yb(1),i.pc("ngIf",null!==t.nfsAccessType&&0===t.nfsAccessType.length),i.yb(1),i.pc("ngIf",null!==t.nfsAccessType&&t.nfsAccessType.length>0),i.yb(1),i.pc("ngForOf",t.nfsAccessType),i.yb(1),i.pc("ngIf",t.nfsForm.getValue("access_type")),i.yb(1),i.pc("ngIf","RW"===t.nfsForm.getValue("access_type")&&"RGW"===t.nfsForm.getValue("name")),i.yb(1),i.pc("ngIf",t.nfsForm.showError("access_type",e,"required")),i.yb(6),i.pc("ngIf",null===t.nfsSquash),i.yb(1),i.pc("ngIf",null!==t.nfsSquash&&0===t.nfsSquash.length),i.yb(1),i.pc("ngIf",null!==t.nfsSquash&&t.nfsSquash.length>0),i.yb(1),i.pc("ngForOf",t.nfsSquash),i.yb(1),i.pc("ngIf",t.nfsForm.showError("squash",e,"required")),i.yb(13),i.pc("ngIf",t.nfsForm.showError("transportUDP",e,"required")||t.nfsForm.showError("transportTCP",e,"required")),i.yb(2),i.pc("form",t.nfsForm)("clients",t.clients),i.yb(3),i.pc("form",t.nfsForm)("submitText",i.kc(83,40,t.action)+" "+i.kc(84,42,t.resource))}}let Ap=(()=>{class e extends qn.a{constructor(e,t,n,i,r,s,o,a,c){super(),this.authStorageService=e,this.nfsService=t,this.route=n,this.router=i,this.rgwUserService=r,this.formBuilder=s,this.taskWrapper=o,this.cdRef=a,this.actionLabels=c,this.clients=[],this.isEdit=!1,this.cluster_id=null,this.clusterType=null,this.export_id=null,this.isNewDirectory=!1,this.isNewBucket=!1,this.isDefaultCluster=!1,this.allClusters=null,this.allDaemons={},this.icons=_n.a,this.allFsals=[],this.allRgwUsers=[],this.allCephxClients=null,this.allFsNames=null,this.defaultAccessType={RGW:"RO"},this.nfsAccessType=this.nfsService.nfsAccessType,this.nfsSquash=this.nfsService.nfsSquash,this.daemonsSelections=[],this.daemonsMessages=new lr.a({noOptions:"There are no daemons available."}),this.pathDataSource=e=>e.pipe(Bl(200),Object(Jl.a)(),Object(Ki.a)(e=>this.getPathTypeahead(e)),Object(Vi.a)(e=>e.paths)),this.bucketDataSource=e=>e.pipe(Bl(200),Object(Jl.a)(),Object(Ki.a)(e=>this.getBucketTypeahead(e))),this.permission=this.authStorageService.getPermissions().pool,this.resource="NFS export",this.createForm()}ngOnInit(){const e=[this.nfsService.daemon(),this.nfsService.fsals(),this.nfsService.clients(),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(vo.a)(e).subscribe(e=>{this.resolveDaemons(e[0]),this.resolveFsals(e[1]),this.resolveClients(e[2]),this.resolveFilesystems(e[3]),e[4]&&this.resolveModel(e[4]),this.loadingReady()})}createForm(){this.nfsForm=new Jn.a({cluster_id:new kn.h("",{validators:[kn.A.required]}),daemons:new kn.h([]),fsal:new Jn.a({name:new kn.h("",{validators:[kn.A.required]}),user_id:new kn.h("",{validators:[Cn.a.requiredIf({name:"CEPH"})]}),fs_name:new kn.h("",{validators:[Cn.a.requiredIf({name:"CEPH"})]}),rgw_user_id:new kn.h("",{validators:[Cn.a.requiredIf({name:"RGW"})]})}),path:new kn.h(""),protocolNfsv3:new kn.h(!0,{validators:[Cn.a.requiredIf({protocolNfsv4:!1},e=>!e)]}),protocolNfsv4:new kn.h(!0,{validators:[Cn.a.requiredIf({protocolNfsv3:!1},e=>!e)]}),tag:new kn.h(""),pseudo:new kn.h("",{validators:[Cn.a.requiredIf({protocolNfsv4:!0}),kn.A.pattern("^/[^><|&()]*$")]}),access_type:new kn.h("RW",{validators:[kn.A.required]}),squash:new kn.h("",{validators:[kn.A.required]}),transportUDP:new kn.h(!0,{validators:[Cn.a.requiredIf({transportTCP:!1},e=>!e)]}),transportTCP:new kn.h(!0,{validators:[Cn.a.requiredIf({transportUDP:!1},e=>!e)]}),clients:this.formBuilder.array([]),security_label:new kn.h(!1),sec_label_xattr:new kn.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),this.clusterType===of.user&&(this.daemonsSelections=jt.a.map(this.allDaemons[e.cluster_id],t=>new Ru.a(-1!==e.daemons.indexOf(t),t,"")),this.daemonsSelections=[...this.daemonsSelections]),e.protocolNfsv3=-1!==e.protocols.indexOf(3),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}resolveDaemons(e){var t;e=jt.a.sortBy(e,["daemon_id"]);const n=jt.a.groupBy(e,"cluster_id");this.allClusters=[],jt.a.forIn(n,(e,t)=>{this.allClusters.push({cluster_id:t,cluster_type:e[0].cluster_type}),this.allDaemons[t]=[]}),jt.a.forEach(e,e=>{this.allDaemons[e.cluster_id].push(e.daemon_id)}),this.isEdit&&(this.clusterType=null===(t=jt.a.find(this.allClusters,{cluster_id:this.cluster_id}))||void 0===t?void 0:t.cluster_type);const i=jt.a.isArray(this.allClusters)&&1===this.allClusters.length;this.isDefaultCluster=i&&"_default_"===this.allClusters[0].cluster_id,i&&(this.nfsForm.patchValue({cluster_id:this.allClusters[0].cluster_id}),this.onClusterChange())}resolveFsals(e){e.forEach(e=>{const t=this.nfsService.nfsFsal.find(t=>e===t.value);jt.a.isObjectLike(t)&&(this.allFsals.push(t),"RGW"===t.value&&this.rgwUserService.list().subscribe(e=>{e.forEach(e=>{0===e.suspended&&e.keys.length>0&&this.allRgwUsers.push(e.user_id)})}))}),1===this.allFsals.length&&jt.a.isUndefined(this.nfsForm.getValue("fsal"))&&this.nfsForm.patchValue({fsal:this.allFsals[0]})}resolveClients(e){this.allCephxClients=e}resolveFilesystems(e){this.allFsNames=e,1===e.length&&this.nfsForm.patchValue({fsal:{fs_name:e[0].name}})}fsalChangeHandler(){this.nfsForm.patchValue({tag:this._generateTag(),pseudo:this._generatePseudo(),access_type:this._updateAccessType()}),this.setPathValidation(),this.cdRef.detectChanges()}accessTypeChangeHandler(){const e=this.nfsForm.getValue("name"),t=this.nfsForm.getValue("access_type");this.defaultAccessType[e]=t}setPathValidation(){"RGW"===this.nfsForm.getValue("name")?this.nfsForm.get("path").setValidators([kn.A.required,kn.A.pattern("^(/|[^/><|&()#?]+)$")]):this.nfsForm.get("path").setValidators([kn.A.required,kn.A.pattern("^/[^><|&()?]*$")])}rgwUserIdChangeHandler(){this.nfsForm.patchValue({pseudo:this._generatePseudo()})}getAccessTypeHelp(e){const t=this.nfsAccessType.find(t=>{if(e===t.value)return t});return jt.a.isObjectLike(t)?t.help:""}getId(){return jt.a.isString(this.nfsForm.getValue("cluster_id"))&&jt.a.isString(this.nfsForm.getValue("path"))?this.nfsForm.getValue("cluster_id")+":"+this.nfsForm.getValue("path"):""}getPathTypeahead(e){if(!jt.a.isString(e)||"/"===e)return Object(Wi.a)([]);const t=this.nfsForm.getValue("fsal").fs_name;return this.nfsService.lsDir(t,e)}pathChangeHandler(){this.nfsForm.patchValue({pseudo:this._generatePseudo()});const e=this.nfsForm.getValue("path");this.getPathTypeahead(e).subscribe(t=>{this.isNewDirectory="/"!==e&&-1===t.paths.indexOf(e)})}bucketChangeHandler(){this.nfsForm.patchValue({tag:this._generateTag(),pseudo:this._generatePseudo()});const e=this.nfsForm.getValue("path");this.getBucketTypeahead(e).subscribe(t=>{this.isNewBucket=""!==e&&-1===t.indexOf(e)})}getBucketTypeahead(e){const t=this.nfsForm.getValue("rgw_user_id");return jt.a.isString(t)&&jt.a.isString(e)&&"/"!==e&&""!==e?this.nfsService.buckets(t):Object(Wi.a)([])}_generateTag(){let e=this.nfsForm.getValue("tag");return this.nfsForm.get("tag").dirty||(e=void 0,"RGW"===this.nfsForm.getValue("fsal")&&(e=this.nfsForm.getValue("path"))),e}_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",jt.a.isString(this.nfsForm.getValue("path"))&&(e+=this.nfsForm.getValue("path"))):"RGW"===this.nfsForm.getValue("fsal")&&jt.a.isString(this.nfsForm.getValue("rgw_user_id"))&&(e="/"+this.nfsForm.getValue("rgw_user_id"),jt.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}onClusterChange(){var e;const t=this.nfsForm.getValue("cluster_id");this.clusterType=null===(e=jt.a.find(this.allClusters,{cluster_id:t}))||void 0===e?void 0:e.cluster_type,this.clusterType===of.user?(this.daemonsSelections=jt.a.map(this.allDaemons[t],e=>new Ru.a(!1,e,"")),this.daemonsSelections=[...this.daemonsSelections]):this.daemonsSelections=[],this.nfsForm.patchValue({daemons:[]})}removeDaemon(e,t){this.daemonsSelections.forEach(e=>{e.name===t&&(e.selected=!1)});const n=this.nfsForm.get("daemons");return n.value.splice(e,1),n.setValue(n.value),!1}onDaemonSelection(){this.nfsForm.get("daemons").setValue(this.nfsForm.getValue("daemons"))}onToggleAllDaemonsSelection(){const e=this.nfsForm.getValue("cluster_id"),t=0===this.nfsForm.getValue("daemons").length?this.allDaemons[e]:[];this.nfsForm.patchValue({daemons:t})}submitAction(){let e;const t=this._buildRequest();e=this.taskWrapper.wrapTaskAroundCall(this.isEdit?{task:new er.a("nfs/edit",{cluster_id:this.cluster_id,export_id:this.export_id}),call:this.nfsService.update(this.cluster_id,this.export_id,t)}:{task:new er.a("nfs/create",{path:t.path,fsal:t.fsal,cluster_id:t.cluster_id}),call:this.nfsService.create(t)}),e.subscribe({error:()=>this.nfsForm.setErrors({cdSubmitButton:!0}),complete:()=>this.router.navigate(["/nfs"])})}_buildRequest(){const e=jt.a.cloneDeep(this.nfsForm.value);return(jt.a.isUndefined(e.tag)||""===e.tag)&&(e.tag=null),this.isEdit&&(e.export_id=this.export_id),"CEPH"===e.fsal.name?delete e.fsal.rgw_user_id:(delete e.fsal.fs_name,delete e.fsal.user_id),e.protocols=[],e.protocolNfsv3?e.protocols.push(3):e.tag=null,delete e.protocolNfsv3,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=jt.a.isString(t.addresses)?jt()(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}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Jt.a),i.Mb(rf),i.Mb(Pt.a),i.Mb(Pt.e),i.Mb(sf.a),i.Mb(So.a),i.Mb(tr.a),i.Mb(i.h),i.Mb(gn.b))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-nfs-form"]],viewQuery:function(e,t){var n;1&e&&i.Jc(_f,!0),2&e&&i.zc(n=i.hc())&&(t.nfsClients=n.first)},features:[i.vb],decls:1,vars:1,consts:function(){var e,t,n,r,s,o,a,c,l,u,d,h,f,p,m,b,g,_,y,v,w,S,M,k,x,D,T,C,O,L,R,E,A,I,P,N,j,F,Y,z,$,H,W,V,B,U,G,q,J,Q,K,Z,X,ee,te,ne;return e="" + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + "",t="Storage Backend",n="NFS Protocol",r="NFSv3",s="NFSv4",o="Access Type",a="Squash",c="Transport Protocol",l="UDP",u="TCP",d="Cluster",h="Loading...",f="-- No cluster available --",p="-- Select the cluster --",m="This field is required.",b="Daemons",g="Add daemon",_="Add all daemons",y="Remove all daemons",v="Loading...",w="-- No data pools available --",S="-- Select the storage backend --",M="This field is required.",k="Object Gateway User",x="Loading...",D="-- No users available --",T="-- Select the object gateway user --",C="This field is required.",O="CephFS User ID",L="Loading...",R="-- No clients available --",E="-- Select the cephx client --",A="This field is required.",I="CephFS Name",P="Loading...",N="-- No CephFS filesystem available --",j="-- Select the CephFS filesystem --",F="This field is required.",Y="Security Label",z="Enable security label",$="This field is required.",H="CephFS Path",W="This field is required.",V="Path need to start with a '/' and can be followed by a word",B="New directory will be created",U="Path",G="This field is required.",q="Path can only be a single '/' or a word",J="New bucket will be created",Q="This field is required.",K="NFS Tag",Z="Alternative access for " + "\ufffd#7\ufffd" + "NFS v3" + "\ufffd/#7\ufffd" + " mounts (it must not have a leading /).",X="Clients may not mount subdirectories (i.e. if Tag = foo, the client may not mount foo/baz).",ee="By using different Tag options, the same Path may be exported multiple times.",te="Pseudo",ne="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).",[["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"],["class","form-group row",4,"ngIf"],["formGroupName","fsal"],[1,"form-group","row"],["for","name",1,"cd-col-form-label","required"],t,[1,"cd-col-form-input"],["formControlName","name","name","name","id","name",1,"form-control","custom-select",3,"change"],["value","",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["class","invalid-feedback",4,"ngIf"],["for","protocols",1,"cd-col-form-label","required"],n,[1,"custom-control","custom-checkbox"],["type","checkbox","id","protocolNfsv3","name","protocolNfsv3","formControlName","protocolNfsv3",1,"custom-control-input"],["for","protocolNfsv3",1,"custom-control-label"],r,["type","checkbox","formControlName","protocolNfsv4","name","protocolNfsv4","id","protocolNfsv4",1,"custom-control-input"],["for","protocolNfsv4",1,"custom-control-label"],s,["for","access_type",1,"cd-col-form-label","required"],o,["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","required"],a,["name","squash","formControlName","squash","id","squash",1,"form-control","custom-select"],["for","transports",1,"cd-col-form-label","required"],c,["type","checkbox","formControlName","transportUDP","name","transportUDP","id","transportUDP",1,"custom-control-input"],["for","transportUDP",1,"custom-control-label"],l,["type","checkbox","formControlName","transportTCP","name","transportTCP","id","transportTCP",1,"custom-control-input"],["for","transportTCP",1,"custom-control-label"],u,[3,"form","clients"],["nfsClients",""],[1,"card-footer"],["wrappingClass","text-right",3,"form","submitText","submitActionEvent"],["for","cluster_id",1,"cd-col-form-label","required"],d,["formControlName","cluster_id","name","cluster_id","id","cluster_id",1,"form-control","custom-select",3,"change"],["value",""],h,f,p,[3,"value"],[1,"invalid-feedback"],m,["for","daemons",1,"cd-col-form-label"],b,[4,"ngFor","ngForOf"],["class","row",4,"ngIf"],[1,"input-group","cd-mb"],["type","text","disabled","",1,"cd-form-control",3,"value"],["class","input-group-append",4,"ngIf"],[1,"input-group-append"],["type","button",1,"btn","btn-light",3,"click"],["aria-hidden","true",3,"ngClass"],[1,"row"],[1,"col-md-12"],["elemClass","btn btn-light float-right",3,"data","options","messages","selection"],[3,"ngClass"],g,["type","button",1,"btn","btn-light","float-right",3,"click"],[4,"ngIf","ngIfElse"],["hasDaemons",""],_,y,v,w,S,M,["for","rgw_user_id",1,"cd-col-form-label","required"],k,["formControlName","rgw_user_id","name","rgw_user_id","id","rgw_user_id",1,"form-control","custom-select",3,"change"],x,D,T,C,["for","user_id",1,"cd-col-form-label","required"],O,["formControlName","user_id","name","user_id","id","user_id",1,"form-control","custom-select"],L,R,E,A,["for","fs_name",1,"cd-col-form-label","required"],I,["formControlName","fs_name","name","fs_name","id","fs_name",1,"form-control","custom-select",3,"change"],P,N,j,F,["for","security_label",1,"cd-col-form-label",3,"ngClass"],Y,["type","checkbox","formControlName","security_label","name","security_label","id","security_label",1,"custom-control-input"],["for","security_label",1,"custom-control-label"],z,["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"],$,["for","path",1,"cd-col-form-label","required"],H,["type","text","name","path","id","path","formControlName","path",1,"form-control",3,"ngbTypeahead","selectItem","blur"],W,V,[1,"form-text","text-muted"],B,U,G,q,J,Q,["for","tag",1,"cd-col-form-label"],K,Z,X,ee,["type","text","name","tag","id","tag","formControlName","tag",1,"form-control"],["for","pseudo",1,"cd-col-form-label"],[1,"required"],te,ne=i.bc(ne),"By using different Pseudo options, the same Path may be exported multiple times.",["type","text","name","pseudo","id","pseudo","formControlName","pseudo",1,"form-control"],"This field is required.","Pseudo needs to start with a '/' and can't contain any of the following: >, <, |, &, ( or ).","Loading...","-- No access type available --","-- Select the access type --",[1,"form-text","text-warning"],"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.",["section","rgw-nfs"],"This field is required.","Loading...","-- No squash available --","--Select what kind of user id squashing is performed --","This field is required.","This field is required."]},template:function(e,t){1&e&&i.Mc(0,Ep,85,44,"div",0),2&e&&i.pc("cdFormLoading",t.loading)},directives:[Kn.a,kn.C,kn.r,kn.k,Zn.a,o.r,kn.l,Xn.a,On.a,kn.z,ei.a,kn.q,kn.i,o.q,kn.b,bf,ti.a,kn.u,kn.B,o.p,gf.a,kn.d,Qt.G,Mo.a,Cr.a],pipes:[o.A,ir.a],styles:[".cd-mb[_ngcontent-%COMP%]{margin-bottom:10px}"]}),e})();var Ip=n("VTlA");function Pp(e,t){if(1&e&&i.Nb(0,"cd-table-key-value",10),2&e){const e=i.ic(2);i.pc("data",e.data)}}function Np(e,t){if(1&e&&i.Nb(0,"cd-table",11,12),2&e){const e=i.ic(2);i.pc("data",e.clients)("columns",e.clientsColumns)}}function jp(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"ul",1,2),i.Sb(3,"li",3),i.Sb(4,"a",4),i.Wb(5,5),i.Rb(),i.Mc(6,Pp,1,1,"ng-template",6),i.Rb(),i.Sb(7,"li",7),i.Sb(8,"a",4),i.Wb(9,8),i.Rb(),i.Mc(10,Np,2,2,"ng-template",6),i.Rb(),i.Rb(),i.Nb(11,"div",9),i.Pb()),2&e){const e=i.Ac(2),t=i.ic();i.yb(9),i.ac(t.clients.length),i.Xb(9),i.yb(2),i.pc("ngbNavOutlet",e)}}let Fp=(()=>{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["Daemons"]=this.selectedItem.daemons,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.rgw_user_id))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-nfs-details"]],inputs:{selection:"selection"},features:[i.wb],decls:1,vars:1,consts:function(){return[[4,"ngIf"],["ngbNav","","cdStatefulTab","nfs-details",1,"nav-tabs"],["nav","ngbNav"],["ngbNavItem","details"],["ngbNavLink",""],"Details",["ngbNavContent",""],["ngbNavItem","clients"],"Clients (" + "\ufffd0\ufffd" + ")",[3,"ngbNavOutlet"],[3,"data"],["columnMode","flex","identifier","addresses","forceIdentifier","true","selectionType","",3,"data","columns"],["table",""]]},template:function(e,t){1&e&&i.Mc(0,jp,12,2,"ng-container",0),2&e&&i.pc("ngIf",t.selection)},directives:[o.r,Qt.p,Kt.a,Qt.r,Qt.s,Qt.q,Qt.u,en.a,Bt.a],styles:[""]}),e})();const Yp=["nfsState"],zp=["nfsFsal"],$p=["table"];function Hp(e,t){1&e&&(i.Qb(0),i.Wb(1,7),i.Pb())}function Wp(e,t){1&e&&(i.Qb(0),i.Wb(1,8),i.Pb())}function Vp(e,t){if(1&e&&(i.Mc(0,Hp,2,0,"ng-container",6),i.Mc(1,Wp,2,0,"ng-container",6)),2&e){const e=t.value;i.pc("ngIf","CEPH"===e.name),i.yb(1),i.pc("ngIf","RGW"===e.name)}}let Bp=(()=>{class e extends $t.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 Wt.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:Ht.a.executing},{name:"Pseudo",prop:"pseudo",flexGrow:2},{name:"Cluster",prop:"cluster_id",flexGrow:2},{name:"Daemons",prop:"daemons",flexGrow:2},{name:"Storage Backend",prop:"fsal",flexGrow:2,cellTemplate:this.nfsFsal},{name:"Access Type",prop:"access_type",flexGrow:2}],this.nfsService.daemon().subscribe(e=>{const t=jt()(e).map(e=>e.cluster_id).uniq().value();this.isDefaultCluster=1===t.length&&"_default_"===t[0],this.columns[2].isHidden=this.isDefaultCluster,this.table&&this.table.updateColumns(),this.taskListService.init(()=>this.nfsService.list(),e=>this.prepareResponse(e),e=>this.exports=e,()=>this.onFetchError(),this.taskFilter,this.itemFilter,this.builders)},()=>{this.onFetchError()})}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 er.a("nfs/delete",{cluster_id:e,export_id:t}),call:this.nfsService.delete(e,t)})})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Jt.a),i.Mb(vn.a),i.Mb(rf),i.Mb(Ip.a),i.Mb(tr.a),i.Mb(gn.b))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-nfs-list"]],viewQuery:function(e,t){var n;1&e&&(i.Tc(Yp,!0),i.Jc(zp,!0),i.Jc($p,!0)),2&e&&(i.zc(n=i.hc())&&(t.nfsState=n.first),i.zc(n=i.hc())&&(t.nfsFsal=n.first),i.zc(n=i.hc())&&(t.table=n.first))},features:[i.xb([Ip.a]),i.vb],decls:7,vars:7,consts:function(){return[["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"],"CephFS","Object Gateway"]},template:function(e,t){1&e&&(i.Sb(0,"cd-table",0,1),i.gc("setExpandedRow",(function(e){return t.setExpandedRow(e)}))("updateSelection",(function(e){return t.updateSelection(e)})),i.Sb(2,"div",2),i.Nb(3,"cd-table-actions",3),i.Rb(),i.Nb(4,"cd-nfs-details",4),i.Rb(),i.Mc(5,Vp,2,2,"ng-template",null,5,i.Nc)),2&e&&(i.pc("data",t.exports)("columns",t.columns)("hasDetails",!0),i.yb(3),i.pc("permission",t.permission)("selection",t.selection)("tableActions",t.tableActions),i.yb(1),i.pc("selection",t.expandedRow))},directives:[Bt.a,Sn.a,Fp,o.r],styles:[""]}),e})(),Up=(()=>{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)(i.Mb(Pt.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-performance-counter"]],decls:3,vars:4,consts:[[3,"serviceType","serviceId"]],template:function(e,t){1&e&&(i.Sb(0,"legend"),i.Oc(1),i.Rb(),i.Nb(2,"cd-table-performance-counter",0)),2&e&&(i.yb(1),i.Rc("",t.serviceType,".",t.serviceId,""),i.yb(1),i.pc("serviceType",t.serviceType)("serviceId",t.serviceId))},directives:[zc.a],styles:[""]}),e})();var Gp=n("DSvg"),qp=n("Mxhz"),Jp=n("1nQr");function Qp(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,31),i.Rb())}function Kp(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,32),i.Rb())}function Zp(e,t){if(1&e&&i.Nb(0,"cd-helper",33),2&e){const e=i.ic();i.qc("html",e.passwordPolicyHelpText)}}function Xp(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,34),i.Rb())}function em(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,35),i.Rb())}function tm(e,t){if(1&e&&(i.Sb(0,"span",30),i.Oc(1),i.Rb()),2&e){const e=i.ic();i.yb(1),i.Qc(" ",e.passwordValuation," ")}}function nm(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,36),i.Rb())}function im(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,37),i.Rb())}let rm=(()=>{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,[kn.A.required,Cn.a.custom("notmatch",()=>this.userForm&&this.userForm.getValue("newpassword")===this.userForm.getValue("oldpassword"))]],newpassword:[null,[kn.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=jt.a.defaultTo(n,"")})]],confirmnewpassword:[null,[kn.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(yn.a.success,"Updated user password\""),this.router.navigate(["/login"])}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(gn.b),i.Mb(wn.a),i.Mb(qp.a),i.Mb(Jt.a),i.Mb(So.a),i.Mb(Pt.e),i.Mb(Jp.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-user-password-form"]],decls:48,vars:25,consts:function(){return[[1,"cd-col-form"],["novalidate","",3,"formGroup"],["frm","ngForm"],[1,"card"],[1,"card-header"],"" + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + "",[1,"card-body"],[1,"form-group","row"],["for","oldpassword",1,"cd-col-form-label","required"],"Old password",[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"],"New password",["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"],"Confirm new password",["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"],"This field is required.","The old and new passwords must be different.",[1,"text-pre-wrap",3,"html"],"This field is required.","The old and new passwords must be different.","This field is required.","Password confirmation doesn't match the new password."]},template:function(e,t){if(1&e&&(i.Sb(0,"div",0),i.Sb(1,"form",1,2),i.Sb(3,"div",3),i.Sb(4,"div",4),i.Wb(5,5),i.jc(6,"titlecase"),i.jc(7,"upperFirst"),i.Rb(),i.Sb(8,"div",6),i.Sb(9,"div",7),i.Sb(10,"label",8),i.Wb(11,9),i.Rb(),i.Sb(12,"div",10),i.Sb(13,"div",11),i.Nb(14,"input",12),i.Sb(15,"span",13),i.Nb(16,"button",14),i.Rb(),i.Rb(),i.Mc(17,Qp,2,0,"span",15),i.Mc(18,Kp,2,0,"span",15),i.Rb(),i.Rb(),i.Sb(19,"div",7),i.Sb(20,"label",16),i.Sb(21,"span",17),i.Wb(22,18),i.Rb(),i.Mc(23,Zp,1,1,"cd-helper",19),i.Rb(),i.Sb(24,"div",10),i.Sb(25,"div",11),i.Nb(26,"input",20),i.Sb(27,"span",13),i.Nb(28,"button",21),i.Rb(),i.Rb(),i.Sb(29,"div",22),i.Nb(30,"div",23),i.Rb(),i.Mc(31,Xp,2,0,"span",15),i.Mc(32,em,2,0,"span",15),i.Mc(33,tm,2,1,"span",15),i.Rb(),i.Rb(),i.Sb(34,"div",7),i.Sb(35,"label",24),i.Wb(36,25),i.Rb(),i.Sb(37,"div",10),i.Sb(38,"div",11),i.Nb(39,"input",26),i.Sb(40,"span",13),i.Nb(41,"button",27),i.Rb(),i.Rb(),i.Mc(42,nm,2,0,"span",15),i.Mc(43,im,2,0,"span",15),i.Rb(),i.Rb(),i.Rb(),i.Sb(44,"div",28),i.Sb(45,"cd-form-button-panel",29),i.gc("submitActionEvent",(function(){return t.onSubmit()})),i.jc(46,"titlecase"),i.jc(47,"upperFirst"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()),2&e){const e=i.Ac(2);i.yb(1),i.pc("formGroup",t.userForm),i.yb(6),i.ac(i.kc(6,17,t.action))(i.kc(7,19,t.resource)),i.Xb(5),i.yb(10),i.pc("ngIf",t.userForm.showError("oldpassword",e,"required")),i.yb(1),i.pc("ngIf",t.userForm.showError("oldpassword",e,"notmatch")),i.yb(5),i.pc("ngIf",t.passwordPolicyHelpText.length>0),i.yb(7),i.Ab(t.passwordStrengthLevelClass),i.qc("title",t.passwordValuation),i.yb(1),i.pc("ngIf",t.userForm.showError("newpassword",e,"required")),i.yb(1),i.pc("ngIf",t.userForm.showError("newpassword",e,"notmatch")),i.yb(1),i.pc("ngIf",t.userForm.showError("newpassword",e,"passwordPolicy")),i.yb(9),i.pc("ngIf",t.userForm.showError("confirmnewpassword",e,"required")),i.yb(1),i.pc("ngIf",t.userForm.showError("confirmnewpassword",e,"match")),i.yb(2),i.pc("form",t.userForm)("submitText",i.kc(46,21,t.action)+" "+i.kc(47,23,t.resource))}},directives:[kn.C,kn.r,kn.k,Zn.a,Xn.a,On.a,kn.d,ei.a,kn.q,kn.i,nr.a,Au.a,o.r,ti.a,Mo.a],pipes:[o.A,ir.a],styles:[""]}),e})();function sm(e,t){1&e&&(i.Sb(0,"span",17),i.Wb(1,18),i.Rb())}function om(e,t){1&e&&(i.Sb(0,"span",17),i.Wb(1,19),i.Rb())}function am(e,t){1&e&&(i.Sb(0,"span",17),i.Wb(1,20),i.Rb())}function cm(e,t){1&e&&(i.Sb(0,"span",17),i.Wb(1,21),i.Rb())}function lm(e,t){if(1&e&&(i.Sb(0,"span",17),i.Oc(1),i.Rb()),2&e){const e=i.ic();i.yb(1),i.Qc(" ",e.passwordValuation," ")}}function um(e,t){1&e&&(i.Sb(0,"span",17),i.Wb(1,22),i.Rb())}function dm(e,t){1&e&&(i.Sb(0,"span",17),i.Wb(1,23),i.Rb())}let hm=(()=>{class e extends rm{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)(i.Mb(gn.b),i.Mb(wn.a),i.Mb(qp.a),i.Mb(Jt.a),i.Mb(So.a),i.Mb(Pt.e),i.Mb(Jp.a),i.Mb(Gp.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-login-password-form"]],features:[i.vb],decls:34,vars:19,consts:function(){return["Please set a new password.","You will be redirected to the login page afterwards.",["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"],"This field is required.","The old and new passwords must be different.","This field is required.","The old and new passwords must be different.","This field is required.","Password confirmation doesn't match the new password."]},template:function(e,t){if(1&e&&(i.Sb(0,"div"),i.Sb(1,"h2"),i.Wb(2,0),i.Rb(),i.Sb(3,"h4"),i.Wb(4,1),i.Rb(),i.Sb(5,"form",2,3),i.Sb(7,"div",4),i.Sb(8,"div",5),i.Nb(9,"input",6),i.Sb(10,"span",7),i.Nb(11,"button",8),i.Rb(),i.Rb(),i.Mc(12,sm,2,0,"span",9),i.Mc(13,om,2,0,"span",9),i.Rb(),i.Sb(14,"div",4),i.Sb(15,"div",5),i.Nb(16,"input",10),i.Sb(17,"span",7),i.Nb(18,"button",11),i.Rb(),i.Rb(),i.Sb(19,"div",12),i.Nb(20,"div",13),i.Rb(),i.Mc(21,am,2,0,"span",9),i.Mc(22,cm,2,0,"span",9),i.Mc(23,lm,2,1,"span",9),i.Rb(),i.Sb(24,"div",4),i.Sb(25,"div",5),i.Nb(26,"input",14),i.Sb(27,"span",7),i.Nb(28,"button",15),i.Rb(),i.Rb(),i.Mc(29,um,2,0,"span",9),i.Mc(30,dm,2,0,"span",9),i.Rb(),i.Sb(31,"cd-form-button-panel",16),i.gc("submitActionEvent",(function(){return t.onSubmit()}))("backActionEvent",(function(){return t.onCancel()})),i.jc(32,"titlecase"),i.jc(33,"upperFirst"),i.Rb(),i.Rb(),i.Rb()),2&e){const e=i.Ac(6);i.yb(5),i.pc("formGroup",t.userForm),i.yb(7),i.pc("ngIf",t.userForm.showError("oldpassword",e,"required")),i.yb(1),i.pc("ngIf",t.userForm.showError("oldpassword",e,"notmatch")),i.yb(7),i.Ab(t.passwordStrengthLevelClass),i.qc("title",t.passwordValuation),i.yb(1),i.pc("ngIf",t.userForm.showError("newpassword",e,"required")),i.yb(1),i.pc("ngIf",t.userForm.showError("newpassword",e,"notmatch")),i.yb(1),i.pc("ngIf",t.userForm.showError("newpassword",e,"passwordPolicy")),i.yb(6),i.pc("ngIf",t.userForm.showError("confirmnewpassword",e,"required")),i.yb(1),i.pc("ngIf",t.userForm.showError("confirmnewpassword",e,"match")),i.yb(1),i.pc("form",t.userForm)("disabled",t.userForm.invalid)("submitText",i.kc(32,15,t.action)+" "+i.kc(33,17,t.resource))}},directives:[kn.C,kn.r,kn.k,Zn.a,Xn.a,On.a,kn.d,ei.a,kn.q,kn.i,nr.a,Au.a,o.r,ti.a],pipes:[o.A,ir.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:transparent}"]}),e})();class fm{}function pm(e,t){1&e&&(i.Sb(0,"div",21),i.Wb(1,22),i.Rb())}function mm(e,t){1&e&&(i.Sb(0,"div",21),i.Wb(1,23),i.Rb())}function bm(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",1),i.Sb(1,"form",2,3),i.gc("ngSubmit",(function(){return i.Dc(e),i.ic().login()})),i.Sb(3,"div",4),i.Sb(4,"label",5),i.Wb(5,6),i.Rb(),i.Sb(6,"input",7,8),i.gc("ngModelChange",(function(t){return i.Dc(e),i.ic().model.username=t})),i.Rb(),i.Mc(8,pm,2,0,"div",9),i.Rb(),i.Sb(9,"div",10),i.Sb(10,"div",11),i.Sb(11,"div",12),i.Sb(12,"label",13),i.Wb(13,14),i.Rb(),i.Sb(14,"input",15,16),i.gc("ngModelChange",(function(t){return i.Dc(e),i.ic().model.password=t})),i.Rb(),i.Mc(16,mm,2,0,"div",9),i.Rb(),i.Sb(17,"span",17),i.Nb(18,"button",18),i.Rb(),i.Rb(),i.Rb(),i.Sb(19,"input",19),i.Yb(20,20),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.Ac(2),t=i.Ac(7),n=i.Ac(15),r=i.ic();i.yb(6),i.pc("ngModel",r.model.username),i.zb("aria-invalid",t.invalid),i.yb(2),i.pc("ngIf",(e.submitted||t.dirty)&&t.invalid),i.yb(6),i.pc("ngModel",r.model.password),i.zb("aria-invalid",n.invalid),i.yb(2),i.pc("ngIf",(e.submitted||n.dirty)&&n.invalid),i.yb(3),i.pc("disabled",e.invalid)}}let gm=(()=>{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 fm,this.isLoginActive=!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?"#/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(()=>{const e=jt.a.get(this.route.snapshot.queryParams,"returnUrl","/");this.router.navigate([e])})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Gp.a),i.Mb(Jt.a),i.Mb(vn.a),i.Mb(Pt.a),i.Mb(Pt.e))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-login"]],decls:1,vars:1,consts:function(){return[["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"],"Username",["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"],"Password",["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",1,"btn","btn-accent","px-5","py-2",3,"disabled",6,"value"],["value","Log in"],[1,"invalid-feedback","pl-4"],"Username is required","Password is required"]},template:function(e,t){1&e&&i.Mc(0,bm,21,7,"div",0),2&e&&i.pc("ngIf",t.isLoginActive)},directives:[o.r,kn.C,kn.r,kn.s,Xn.a,On.a,kn.d,ei.a,kn.y,nr.a,kn.q,kn.t,Au.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 _m=n("tz6c");function ym(e,t){if(1&e&&(i.Sb(0,"div"),i.Nb(1,"i",8),i.Nb(2,"br"),i.Nb(3,"br"),i.Nb(4,"br"),i.Sb(5,"h3"),i.Sb(6,"b"),i.Oc(7),i.Rb(),i.Rb(),i.Nb(8,"br"),i.Sb(9,"h4"),i.Oc(10),i.Rb(),i.Rb()),2&e){const e=i.ic();i.yb(1),i.Ab(e.icon),i.yb(6),i.Pc(e.header),i.yb(3),i.Pc(e.message)}}function vm(e,t){1&e&&(i.Nb(0,"i",9),i.Nb(1,"br"),i.Nb(2,"br"),i.Nb(3,"br"),i.Sb(4,"h3"),i.cc(5,10),i.Nb(6,"b"),i.Zb(),i.Rb(),i.Nb(7,"br"),i.Sb(8,"h4"),i.Wb(9,11),i.Rb())}function wm(e,t){if(1&e&&(i.Sb(0,"div"),i.Sb(1,"h4"),i.cc(2,12),i.Nb(3,"a",13),i.Zb(),i.Rb(),i.Rb()),2&e){const e=i.ic();i.yb(3),i.qc("href",e.docUrl,i.Gc),i.ac(e.section_info),i.Xb(2)}}let Sm=(()=>{class e{constructor(e,t){this.router=e,this.docService=t}ngOnInit(){this.fetchData(),this.routerSubscription=this.router.events.pipe(Object(Ql.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)(i.Mb(Pt.e),i.Mb(_m.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-error"]],hostBindings:function(e,t){1&e&&i.gc("beforeunload",(function(e){return t.unloadHandler(e)}),!1,i.Cc)},decls:16,vars:4,consts:function(){return[["target","_blank"],[1,"dashboard","row"],[1,"text-center","content"],[4,"ngIf","ngIfElse"],["elseBlock",""],[4,"ngIf"],[1,"btn","btn-primary",3,"routerLink"],"Go To Dashboard",["aria-hidden","true"],["aria-hidden","true",1,"fa","fa-exclamation-triangle"],"" + "\ufffd#6\ufffd" + "Page not Found" + "\ufffd/#6\ufffd" + "","Sorry, we couldn\u2019t find what you were looking for. The page you requested may have been changed or moved.","Please consult the " + "\ufffd#3\ufffd" + "documentation" + "\ufffd/#3\ufffd" + " on how to configure and enable the " + "\ufffd0\ufffd" + " management functionality.",[3,"href"]]},template:function(e,t){if(1&e&&(i.Sb(0,"head"),i.Sb(1,"title"),i.Oc(2,"Error Page"),i.Rb(),i.Nb(3,"base",0),i.Rb(),i.Sb(4,"div",1),i.Sb(5,"div",2),i.Nb(6,"br"),i.Mc(7,ym,11,5,"div",3),i.Mc(8,vm,10,0,"ng-template",null,4,i.Nc),i.Mc(10,wm,4,2,"div",5),i.Nb(11,"br"),i.Nb(12,"br"),i.Sb(13,"div"),i.Sb(14,"button",6),i.Wb(15,7),i.Rb(),i.Rb(),i.Rb(),i.Rb()),2&e){const e=i.Ac(9);i.yb(7),i.pc("ngIf",t.header&&t.message)("ngIfElse",e),i.yb(3),i.pc("ngIf",t.section),i.yb(4),i.pc("routerLink","/dashboard")}},directives:[o.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})(),Mm=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-blank-layout"]],decls:1,vars:0,template:function(e,t){1&e&&i.Nb(0,"router-outlet")},directives:[Pt.j],styles:[""]}),e})(),km=(()=>{class e{constructor(e,t){this.http=e,this.localeId=t}getLocale(){return this.localeId||s.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)(i.dc(a.b),i.dc(i.v))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var xm=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 Dm(e,t){if(1&e){const e=i.Tb();i.Qb(0),i.Sb(1,"button",5),i.gc("click",(function(){i.Dc(e);const n=t.$implicit;return i.ic().changeLanguage(n.key)})),i.Oc(2),i.Rb(),i.Pb()}if(2&e){const e=t.$implicit;i.yb(2),i.Qc(" ",e.value," ")}}let Tm=(()=>{class e{constructor(e){this.languageService=e,this.allLanguages=xm,this.supportedLanguages={}}ngOnInit(){this.selectedLanguage=this.languageService.getLocale(),this.languageService.getLanguages().subscribe(e=>{this.supportedLanguages=jt.a.pick(xm,e)})}reloadWindow(){window.location.reload()}changeLanguage(e){this.languageService.setLocale(e),this.reloadWindow()}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(km))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-language-selector"]],decls:7,vars:4,consts:function(){return[["ngbDropdown","","placement","bottom-right"],["ngbDropdownToggle","",6,"title"],["title","Select a Language"],["ngbDropdownMenu",""],[4,"ngFor","ngForOf"],["ngbDropdownItem","",3,"click"]]},template:function(e,t){1&e&&(i.Sb(0,"div",0),i.Sb(1,"a",1),i.Yb(2,2),i.Oc(3),i.Rb(),i.Sb(4,"div",3),i.Mc(5,Dm,3,1,"ng-container",4),i.jc(6,"keyvalue"),i.Rb(),i.Rb()),2&e&&(i.yb(3),i.Qc(" ",t.allLanguages[t.selectedLanguage]," "),i.yb(2),i.pc("ngForOf",i.kc(6,2,t.supportedLanguages)))},directives:[Qt.i,Qt.m,Qt.k,o.q,On.a,Qt.j],pipes:[o.k],styles:[""]}),e})();function Cm(e,t){if(1&e&&(i.Sb(0,"li",10),i.Sb(1,"cd-doc",11),i.Yb(2,12),i.Rb(),i.Rb()),2&e){const e=t.$implicit;i.yb(1),i.ac(e.text),i.Xb(2),i.qc("section",e.section)}}let Om=(()=>{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=i.Gb({type:e,selectors:[["cd-login-layout"]],decls:15,vars:1,consts:function(){return[[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","" + "\ufffd0\ufffd" + ""]]},template:function(e,t){1&e&&(i.Sb(0,"main",0),i.Sb(1,"header"),i.Sb(2,"nav",1),i.Nb(3,"a",2),i.Sb(4,"div",3),i.Nb(5,"cd-language-selector"),i.Rb(),i.Rb(),i.Rb(),i.Sb(6,"section"),i.Sb(7,"div",4),i.Sb(8,"div",5),i.Sb(9,"div",6),i.Nb(10,"router-outlet"),i.Rb(),i.Sb(11,"div",6),i.Nb(12,"img",7),i.Sb(13,"ul",8),i.Mc(14,Cm,3,2,"li",9),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()),2&e&&(i.yb(14),i.pc("ngForOf",t.docItems))},directives:[Qt.v,Tm,Pt.j,o.q,Cr.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 Lm=n("mSOc");let Rm=(()=>{class e{constructor(e,t){this.document=e,this.summaryService=t}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),uh[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=uh[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)(i.dc(o.d),i.dc(Lm.a))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})();var Em=n("VXsX"),Am=n("oMSZ");function Im(e,t){1&e&&(i.Sb(0,"div"),i.cc(1,3),i.Nb(2,"strong"),i.Nb(3,"a",4),i.Zb(),i.Rb())}function Pm(e,t){if(1&e&&(i.Sb(0,"div"),i.cc(1,5),i.Nb(2,"strong"),i.Nb(3,"a",4),i.Zb(),i.Rb()),2&e){const e=i.ic(2);i.yb(3),i.ac(e.expirationDays),i.Xb(1)}}function Nm(e,t){if(1&e){const e=i.Tb();i.Sb(0,"ngb-alert",1),i.gc("close",(function(t){return i.Dc(e),i.ic().close(t)})),i.Mc(1,Im,4,0,"div",2),i.Mc(2,Pm,4,1,"div",2),i.Rb()}if(2&e){const e=i.ic();i.qc("type",e.alertType),i.yb(1),i.pc("ngIf",0===e.expirationDays),i.yb(1),i.pc("ngIf",e.expirationDays>0)}}let jm=(()=>{class e{constructor(e,t){this.settingsService=e,this.authStorageService=t,this.displayNotification=!1}ngOnInit(){this.settingsService.getStandardSettings().subscribe(e=>{this.pwdExpirationSettings=new Am.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)(i.Mb(yl.a),i.Mb(Jt.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-pwd-expiration-notification"]],decls:1,vars:1,consts:function(){return[["class","no-margin-bottom",3,"type","close",4,"ngIf"],[1,"no-margin-bottom",3,"type","close"],[4,"ngIf"],"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.",["routerLink","/user-profile/edit",1,"alert-link"],"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."]},template:function(e,t){1&e&&i.Mc(0,Nm,3,3,"ngb-alert",0),2&e&&i.pc("ngIf",t.displayNotification)},directives:[o.r,Qt.b,Pt.h],styles:["cd-pwd-expiration-notification .no-margin-bottom{margin-bottom:0}"]}),e})();function Fm(e,t){if(1&e){const e=i.Tb();i.Sb(0,"ngb-alert",1),i.gc("close",(function(t){return i.Dc(e),i.ic().close(t)})),i.Sb(1,"div"),i.cc(2,2),i.Nb(3,"a",3),i.Nb(4,"a",4),i.Zb(),i.Rb(),i.Rb()}}let Ym=(()=>{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;jt.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(yn.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)(i.Mb(wo),i.Mb(Jt.a),i.Mb(wn.a),i.Mb(Ad))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-telemetry-notification"]],decls:1,vars:1,consts:function(){var 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.",[["class","no-margin-bottom","type","warning",3,"close",4,"ngIf"],["type","warning",1,"no-margin-bottom",3,"close"],e=i.bc(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&&i.Mc(0,Fm,5,0,"ngb-alert",0),2&e&&i.pc("ngIf",t.displayNotification)},directives:[o.r,Qt.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 zm=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(Ft.a)(this,void 0,void 0,(function(){var t,n,i;return Object(Ft.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}(),$m=function(){function e(){this._semaphore=new zm(1)}return e.prototype.acquire=function(){return Object(Ft.a)(this,void 0,void 0,(function(){return Object(Ft.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 Hm=(()=>{class e{constructor(e,t){this.alertFormatter=e,this.prometheusService=t,this.backendFailure=!1,this.notifications=[]}refresh(){this.backendFailure||this.prometheusService.getNotifications(jt.a.last(this.notifications)).subscribe(e=>this.handleNotifications(e),()=>this.backendFailure=!0)}handleNotifications(e){0!==e.length&&(this.notifications.length>0&&this.alertFormatter.sendNotifications(jt.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)(i.dc(Sl),i.dc(vl))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Wm=n("ufoC"),Vm=n("Hicy"),Bm=n("WF9J");const Um=function(e,t){return[e,t]},Gm=function(e,t,n,i){return[e,t,n,i]};function qm(e,t){if(1&e&&(i.Sb(0,"div"),i.Sb(1,"div",12),i.Sb(2,"div",13),i.Sb(3,"div",14),i.Sb(4,"span",15),i.Nb(5,"i",7),i.Nb(6,"i",7),i.Rb(),i.Rb(),i.Sb(7,"div",16),i.Sb(8,"div",17),i.Sb(9,"h6",18),i.Oc(10),i.Rb(),i.Sb(11,"div",19),i.Nb(12,"ngb-progressbar",20),i.Rb(),i.Sb(13,"p",21),i.Sb(14,"small",22),i.Oc(15),i.jc(16,"cdDate"),i.Rb(),i.Sb(17,"span",23),i.Oc(18),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Nb(19,"hr"),i.Rb()),2&e){const e=t.$implicit,n=i.ic(2);i.yb(4),i.pc("ngClass",i.vc(11,Um,n.icons.stack,n.icons.large2x)),i.yb(1),i.pc("ngClass",i.vc(14,Um,n.icons.stack2x,n.icons.circle)),i.yb(1),i.pc("ngClass",i.xc(17,Gm,n.icons.stack1x,n.icons.spinner,n.icons.spin,n.icons.inverse)),i.yb(4),i.Pc(e.description),i.yb(2),i.pc("value",null==e?null:e.progress)("striped",!0)("animated",!0),i.yb(3),i.Qc(" ",i.kc(16,9,e.begin_time)," "),i.yb(3),i.Qc(" ",e.progress||0," % ")}}function Jm(e,t){if(1&e&&i.Mc(0,qm,20,22,"div",11),2&e){const e=i.ic();i.pc("ngForOf",e.executingTasks)("ngForTrackBy",e.trackByFn)}}function Qm(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"small"),i.Qb(2),i.Wb(3,36),i.Pb(),i.Oc(4),i.jc(5,"duration"),i.Rb(),i.Nb(6,"br"),i.Pb()),2&e){const e=i.ic().$implicit;i.yb(4),i.Qc(" ",i.kc(5,1,e.duration)," ")}}const Km=function(e,t,n){return[e,t,n]},Zm=function(e){return[e]};function Xm(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",7),i.Sb(1,"div",29),i.Sb(2,"div",13),i.Sb(3,"div",14),i.Sb(4,"span",7),i.Nb(5,"i",7),i.Nb(6,"i",7),i.Rb(),i.Rb(),i.Sb(7,"div",30),i.Sb(8,"div",17),i.Sb(9,"button",31),i.Yb(10,32),i.gc("click",(function(n){i.Dc(e);const r=t.index;return i.ic(3).remove(r),n.stopPropagation()})),i.Nb(11,"i",7),i.Rb(),i.Sb(12,"h6",18),i.Oc(13),i.Rb(),i.Nb(14,"p",33),i.Sb(15,"p",21),i.Mc(16,Qm,7,3,"ng-container",24),i.Sb(17,"small",34),i.jc(18,"cdDate"),i.Oc(19),i.jc(20,"relativeDate"),i.Rb(),i.Nb(21,"i",35),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Nb(22,"hr"),i.Rb()}if(2&e){const e=t.$implicit,n=i.ic(3);i.pc("ngClass",e.borderClass),i.yb(4),i.pc("ngClass",i.wc(16,Km,n.icons.stack,n.icons.large2x,e.textClass)),i.yb(1),i.pc("ngClass",i.vc(20,Um,n.icons.circle,n.icons.stack2x)),i.yb(1),i.pc("ngClass",i.wc(23,Km,n.icons.stack1x,n.icons.inverse,e.iconClass)),i.yb(5),i.pc("ngClass",i.uc(27,Zm,n.icons.trash)),i.yb(2),i.Pc(e.title),i.yb(1),i.pc("innerHtml",e.message,i.Ec),i.yb(2),i.pc("ngIf",e.duration),i.yb(1),i.pc("title",i.kc(18,12,e.timestamp)),i.yb(2),i.Pc(i.kc(20,14,e.timestamp)),i.yb(2),i.pc("ngClass",i.uc(29,Zm,e.applicationClass))("title",e.application)}}function eb(e,t){if(1&e){const e=i.Tb();i.Qb(0),i.Sb(1,"button",25),i.gc("click",(function(t){return i.Dc(e),i.ic(2).removeAll(),t.stopPropagation()})),i.Nb(2,"i",26),i.Oc(3," \xa0 "),i.Qb(4),i.Wb(5,27),i.Pb(),i.Rb(),i.Nb(6,"hr"),i.Mc(7,Xm,23,31,"div",28),i.Pb()}if(2&e){const e=i.ic(2);i.yb(2),i.pc("ngClass",i.uc(2,Zm,e.icons.trash)),i.yb(5),i.pc("ngForOf",e.notifications)}}function tb(e,t){if(1&e&&i.Mc(0,eb,8,4,"ng-container",24),2&e){const e=i.ic();i.pc("ngIf",e.notifications.length>0)}}function nb(e,t){1&e&&(i.Sb(0,"div"),i.Sb(1,"div",37),i.Wb(2,38),i.Rb(),i.Rb())}function ib(e,t){if(1&e&&i.Mc(0,nb,3,0,"div",24),2&e){const e=i.ic();i.pc("ngIf",0===e.notifications.length&&0===e.executingTasks.length)}}function rb(e,t){1&e&&i.Ob(0)}function sb(e,t){1&e&&i.Ob(0)}function ob(e,t){1&e&&i.Ob(0)}let ab=(()=>{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 Oi.a,this.icons=_n.a,this.last_task="",this.mutex=new $m,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=jt.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=>{jt.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 wl.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)(i.Mb(wn.a),i.Mb(Lm.a),i.Mb(Wm.a),i.Mb(Hm),i.Mb(Jt.a),i.Mb(Ml),i.Mb(i.A),i.Mb(i.h))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-notifications-sidebar"]],hostVars:2,hostBindings:function(e,t){2&e&&i.Eb("active",t.isSidebarOpened)},decls:18,vars:6,consts:function(){return[["tasksTpl",""],["notificationsTpl",""],["emptyTpl",""],[1,"card",3,"clickOutsideEnabled","clickOutside"],[1,"card-header"],"Tasks and Notifications",["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"],"Clear notifications",[3,"ngClass",4,"ngFor","ngForOf"],[1,"card","tc_notification","border-0"],[1,"col-md-10"],[1,"btn","btn-link","float-right","mt-0","pt-0",3,"click",6,"title"],["title","Remove notification"],[1,"card-text",3,"innerHtml"],[1,"date",3,"title"],[1,"float-right","custom-icon",3,"ngClass","title"],"Duration:",[1,"message","text-center"],"There are no notifications."]},template:function(e,t){if(1&e&&(i.Mc(0,Jm,1,2,"ng-template",null,0,i.Nc),i.Mc(2,tb,1,1,"ng-template",null,1,i.Nc),i.Mc(4,ib,1,1,"ng-template",null,2,i.Nc),i.Sb(6,"div",3),i.gc("clickOutside",(function(){return t.closeSidebar()})),i.Sb(7,"div",4),i.Qb(8),i.Wb(9,5),i.Pb(),i.Sb(10,"button",6),i.gc("click",(function(){return t.closeSidebar()})),i.Sb(11,"span"),i.Nb(12,"i",7),i.Rb(),i.Rb(),i.Rb(),i.Sb(13,"ngx-simplebar",8),i.Sb(14,"div",9),i.Mc(15,rb,1,0,"ng-container",10),i.Mc(16,sb,1,0,"ng-container",10),i.Mc(17,ob,1,0,"ng-container",10),i.Rb(),i.Rb(),i.Rb()),2&e){const e=i.Ac(1),n=i.Ac(3),r=i.Ac(5);i.yb(6),i.pc("clickOutsideEnabled",t.isSidebarOpened),i.yb(6),i.pc("ngClass",t.icons.close),i.yb(1),i.pc("options",t.simplebar),i.yb(2),i.pc("ngTemplateOutlet",e),i.yb(1),i.pc("ngTemplateOutlet",n),i.yb(1),i.pc("ngTemplateOutlet",r)}},directives:[Vm.a,On.a,o.p,Bm.a,o.w,o.q,Qt.z,o.r],pipes:[Vt.a,Yr.a,Al],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 cb(e,t){1&e&&i.Nb(0,"span",6)}const lb=function(e){return{running:e}},ub=function(e){return[e]};let db=(()=>{class e{constructor(e,t){this.notificationService=e,this.summaryService=t,this.icons=_n.a,this.hasRunningTasks=!1,this.hasNotifications=!1,this.subs=new Oi.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)(i.Mb(wn.a),i.Mb(Lm.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-notifications"]],decls:6,vars:7,consts:function(){return[[3,"ngClass","click",6,"title"],["title","Tasks and Notifications"],[3,"ngClass"],["class","dot",4,"ngIf"],[1,"d-md-none"],"Tasks and Notifications",[1,"dot"]]},template:function(e,t){1&e&&(i.Sb(0,"a",0),i.Yb(1,1),i.gc("click",(function(){return t.toggleSidebar()})),i.Nb(2,"i",2),i.Mc(3,cb,1,0,"span",3),i.Sb(4,"span",4),i.Wb(5,5),i.Rb(),i.Rb()),2&e&&(i.pc("ngClass",i.uc(3,lb,t.hasRunningTasks)),i.yb(2),i.pc("ngClass",i.uc(5,ub,t.icons.bell)),i.yb(1),i.pc("ngIf",t.hasNotifications))},directives:[o.p,o.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 hb=n("e0ae");let fb=(()=>{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(hb.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)(i.Mb(Qt.a),i.Mb(Lm.a),i.Mb(qp.a),i.Mb(Jt.a))},e.\u0275cmp=i.Gb({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&&(i.Sb(0,"div",0),i.Sb(1,"div",1),i.Sb(2,"button",2),i.gc("click",(function(){return t.activeModal.close()})),i.Sb(3,"span",3),i.Oc(4,"\xd7"),i.Rb(),i.Rb(),i.Rb(),i.Sb(5,"div",4),i.Nb(6,"img",5),i.Sb(7,"h3"),i.Sb(8,"strong"),i.Oc(9),i.Rb(),i.Rb(),i.Sb(10,"div",6),i.Sb(11,"strong"),i.Oc(12,"Version"),i.Rb(),i.Nb(13,"br"),i.Oc(14),i.Nb(15,"br"),i.Oc(16),i.Rb(),i.Nb(17,"br"),i.Sb(18,"dl"),i.Sb(19,"dt"),i.Oc(20,"Ceph Manager"),i.Rb(),i.Sb(21,"dd"),i.Oc(22),i.Rb(),i.Sb(23,"dt"),i.Oc(24,"User"),i.Rb(),i.Sb(25,"dd"),i.Oc(26),i.Rb(),i.Sb(27,"dt"),i.Oc(28,"User Role"),i.Rb(),i.Sb(29,"dd"),i.Oc(30),i.Rb(),i.Sb(31,"dt"),i.Oc(32,"Browser"),i.Rb(),i.Sb(33,"dd"),i.Oc(34),i.Rb(),i.Sb(35,"dt"),i.Oc(36,"Browser Version"),i.Rb(),i.Sb(37,"dd"),i.Oc(38),i.Rb(),i.Sb(39,"dt"),i.Oc(40,"Browser OS"),i.Rb(),i.Sb(41,"dd"),i.Oc(42),i.Rb(),i.Rb(),i.Rb(),i.Sb(43,"div",7),i.Sb(44,"div",8),i.Oc(45),i.Rb(),i.Rb(),i.Rb()),2&e&&(i.yb(6),i.qc("alt",t.projectConstants.organization),i.yb(3),i.Pc(t.projectConstants.projectName),i.yb(5),i.Rc(" ",t.versionNumber," ",t.versionHash," "),i.yb(2),i.Qc(" ",t.versionName," "),i.yb(6),i.Pc(t.hostAddr),i.yb(4),i.Pc(t.modalVariables.user),i.yb(4),i.Pc(t.modalVariables.role),i.yb(4),i.Pc(t.modalVariables.browserName),i.yb(4),i.Pc(t.modalVariables.browserVersion),i.yb(4),i.Pc(t.modalVariables.browserOS),i.yb(3),i.Rc(" ",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 pb=["docsForm"],mb=function(e){return[e]},bb=function(e){return{disabled:e}};let gb=(()=>{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(fb,null,{size:"lg"})}goToApiDocs(){this.docsFormElement.nativeElement.submit()}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(vn.a),i.Mb(_m.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-dashboard-help"]],viewQuery:function(e,t){var n;1&e&&i.Jc(pb,!0),2&e&&i.zc(n=i.hc())&&(t.docsFormElement=n.first)},decls:16,vars:7,consts:function(){return[["action","/docs","target","_blank","method","post"],["docsForm",""],["type","hidden","name","token"],["ngbDropdown","","placement","bottom-right"],["ngbDropdownToggle","",6,"title"],["title","Help"],[3,"ngClass"],[1,"d-md-none"],"Help",["ngbDropdownMenu",""],["ngbDropdownItem","","target","_blank",1,"text-capitalize",3,"ngClass","href"],"documentation",["ngbDropdownItem","",3,"click"],"API","About"]},template:function(e,t){1&e&&(i.Sb(0,"form",0,1),i.Nb(2,"input",2),i.Rb(),i.Sb(3,"div",3),i.Sb(4,"a",4),i.Yb(5,5),i.Nb(6,"i",6),i.Sb(7,"span",7),i.Wb(8,8),i.Rb(),i.Rb(),i.Sb(9,"div",9),i.Sb(10,"a",10),i.Wb(11,11),i.Rb(),i.Sb(12,"button",12),i.gc("click",(function(){return t.goToApiDocs()})),i.Wb(13,13),i.Rb(),i.Sb(14,"button",12),i.gc("click",(function(){return t.openAboutModal()})),i.Wb(15,14),i.Rb(),i.Rb(),i.Rb()),2&e&&(i.yb(6),i.pc("ngClass",i.uc(3,mb,t.icons.questionCircle)),i.yb(4),i.qc("href",t.docsUrl,i.Gc),i.pc("ngClass",i.uc(5,bb,!t.docsUrl)))},directives:[On.a,Qt.i,Qt.m,o.p,Qt.k,Qt.j],styles:[""]}),e})();function _b(e,t){1&e&&(i.Sb(0,"button",10),i.Wb(1,11),i.Rb())}function yb(e,t){1&e&&(i.Sb(0,"button",12),i.Wb(1,13),i.Rb())}const vb=function(e){return[e]};function wb(e,t){if(1&e&&(i.Sb(0,"div",1),i.Sb(1,"a",2),i.Yb(2,3),i.Nb(3,"i",4),i.Sb(4,"span",5),i.Wb(5,6),i.Rb(),i.Rb(),i.Sb(6,"div",7),i.Mc(7,_b,2,0,"button",8),i.Mc(8,yb,2,0,"button",9),i.Rb(),i.Rb()),2&e){const e=i.ic();i.yb(3),i.pc("ngClass",i.uc(3,vb,e.icons.deepCheck)),i.yb(4),i.pc("ngIf",e.userPermission.read),i.yb(1),i.pc("ngIf",e.configOptPermission.read)}}let Sb=(()=>{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)(i.Mb(Jt.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-administration"]],decls:1,vars:1,consts:function(){return[["ngbDropdown","","placement","bottom-right",4,"ngIf"],["ngbDropdown","","placement","bottom-right"],["ngbDropdownToggle","",1,"dropdown-toggle",6,"title"],["title","Dashboard Settings"],[3,"ngClass"],[1,"d-md-none"],"Dashboard Settings",["ngbDropdownMenu",""],["ngbDropdownItem","","routerLink","/user-management",4,"ngIf"],["ngbDropdownItem","","routerLink","/telemetry",4,"ngIf"],["ngbDropdownItem","","routerLink","/user-management"],"User management",["ngbDropdownItem","","routerLink","/telemetry"],"Telemetry configuration"]},template:function(e,t){1&e&&i.Mc(0,wb,9,5,"div",0),2&e&&i.pc("ngIf",t.userPermission.read)},directives:[o.r,Qt.i,Qt.m,o.p,Qt.k,On.a,Qt.j,Pt.f],styles:[""]}),e})();const Mb=function(e){return[e]};function kb(e,t){if(1&e&&(i.Sb(0,"button",13),i.Nb(1,"i",3),i.Sb(2,"span"),i.Wb(3,14),i.Rb(),i.Rb()),2&e){const e=i.ic();i.yb(1),i.pc("ngClass",i.uc(1,Mb,e.icons.lock))}}let xb=(()=>{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)(i.Mb(Jt.a),i.Mb(Gp.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-identity"]],decls:16,vars:8,consts:function(){return[["ngbDropdown","","placement","bottom-right"],["ngbDropdownToggle","",6,"title"],["title","Logged in user"],[3,"ngClass"],[1,"d-md-none"],"Logged in user",["ngbDropdownMenu",""],["ngbDropdownItem","","disabled",""],"Signed in as " + "\ufffd#9\ufffd" + "" + "\ufffd0\ufffd" + "" + "\ufffd/#9\ufffd" + "",[1,"dropdown-divider"],["ngbDropdownItem","","routerLink","/user-profile/edit",4,"ngIf"],["ngbDropdownItem","",3,"click"],"Sign out",["ngbDropdownItem","","routerLink","/user-profile/edit"],"Change password"]},template:function(e,t){1&e&&(i.Sb(0,"div",0),i.Sb(1,"a",1),i.Yb(2,2),i.Nb(3,"i",3),i.Sb(4,"span",4),i.Wb(5,5),i.Rb(),i.Rb(),i.Sb(6,"div",6),i.Sb(7,"button",7),i.cc(8,8),i.Nb(9,"strong"),i.Zb(),i.Rb(),i.Nb(10,"li",9),i.Mc(11,kb,4,3,"button",10),i.Sb(12,"button",11),i.gc("click",(function(){return t.logout()})),i.Nb(13,"i",3),i.Sb(14,"span"),i.Wb(15,12),i.Rb(),i.Rb(),i.Rb(),i.Rb()),2&e&&(i.yb(3),i.pc("ngClass",i.uc(4,Mb,t.icons.user)),i.yb(6),i.ac(t.username),i.Xb(8),i.yb(2),i.pc("ngIf",!t.sso),i.yb(2),i.pc("ngClass",i.uc(6,Mb,t.icons.signOut)))},directives:[Qt.i,Qt.m,o.p,Qt.k,On.a,Qt.j,o.r,Pt.f],styles:[""]}),e})();function Db(e,t){1&e&&i.Ob(0)}function Tb(e,t){1&e&&i.Ob(0)}function Cb(e,t){1&e&&(i.Sb(0,"li",21),i.Nb(1,"cd-language-selector",22),i.Rb(),i.Sb(2,"li",21),i.Nb(3,"cd-notifications",22),i.Rb(),i.Sb(4,"li",21),i.Nb(5,"cd-dashboard-help",22),i.Rb(),i.Sb(6,"li",21),i.Nb(7,"cd-administration",22),i.Rb(),i.Sb(8,"li",21),i.Nb(9,"cd-identity",22),i.Rb())}function Ob(e,t){1&e&&(i.Sb(0,"li",48),i.Sb(1,"a",49),i.Wb(2,50),i.Rb(),i.Rb())}function Lb(e,t){1&e&&(i.Sb(0,"li",51),i.Sb(1,"a",52),i.Wb(2,53),i.Rb(),i.Rb())}function Rb(e,t){1&e&&(i.Sb(0,"li",54),i.Sb(1,"a",55),i.Wb(2,56),i.Rb(),i.Rb())}function Eb(e,t){1&e&&(i.Sb(0,"li",57),i.Sb(1,"a",58),i.Wb(2,59),i.Rb(),i.Rb())}function Ab(e,t){1&e&&(i.Sb(0,"li",60),i.Sb(1,"a",61),i.Wb(2,62),i.Rb(),i.Rb())}function Ib(e,t){1&e&&(i.Sb(0,"li",63),i.Sb(1,"a",64),i.Wb(2,65),i.Rb(),i.Rb())}function Pb(e,t){1&e&&(i.Sb(0,"li",66),i.Sb(1,"a",67),i.Wb(2,68),i.Rb(),i.Rb())}function Nb(e,t){1&e&&(i.Sb(0,"li",69),i.Sb(1,"a",70),i.Wb(2,71),i.Rb(),i.Rb())}function jb(e,t){1&e&&(i.Sb(0,"li",72),i.Sb(1,"a",73),i.Wb(2,74),i.Rb(),i.Rb())}function Fb(e,t){if(1&e&&(i.Sb(0,"small",79),i.Oc(1),i.Rb()),2&e){const e=i.ic(5);i.yb(1),i.Pc(e.prometheusAlertService.activeAlerts)}}function Yb(e,t){if(1&e&&(i.Sb(0,"li",75),i.Sb(1,"a",76),i.Qb(2),i.Wb(3,77),i.Pb(),i.Mc(4,Fb,2,1,"small",78),i.Rb(),i.Rb()),2&e){const e=i.ic(4);i.yb(4),i.pc("ngIf",e.prometheusAlertService.activeAlerts>0)}}function zb(e,t){if(1&e){const e=i.Tb();i.Sb(0,"li",34),i.Sb(1,"a",35),i.gc("click",(function(){return i.Dc(e),i.ic(3).toggleSubMenu("cluster")})),i.Qb(2),i.Wb(3,36),i.Pb(),i.Rb(),i.Sb(4,"ul",37),i.Mc(5,Ob,3,0,"li",38),i.Mc(6,Lb,3,0,"li",39),i.Mc(7,Rb,3,0,"li",40),i.Mc(8,Eb,3,0,"li",41),i.Mc(9,Ab,3,0,"li",42),i.Mc(10,Ib,3,0,"li",43),i.Mc(11,Pb,3,0,"li",44),i.Mc(12,Nb,3,0,"li",45),i.Mc(13,jb,3,0,"li",46),i.Mc(14,Yb,5,1,"li",47),i.Rb(),i.Rb()}if(2&e){const e=i.ic(3);i.yb(1),i.zb("aria-expanded","cluster"==e.displayedSubMenu),i.yb(3),i.pc("ngbCollapse","cluster"!==e.displayedSubMenu),i.yb(1),i.pc("ngIf",e.permissions.hosts.read),i.yb(1),i.pc("ngIf",e.permissions.hosts.read),i.yb(1),i.pc("ngIf",e.permissions.monitor.read),i.yb(1),i.pc("ngIf",e.permissions.hosts.read),i.yb(1),i.pc("ngIf",e.permissions.osd.read),i.yb(1),i.pc("ngIf",e.permissions.configOpt.read),i.yb(1),i.pc("ngIf",e.permissions.osd.read),i.yb(1),i.pc("ngIf",e.permissions.configOpt.read),i.yb(1),i.pc("ngIf",e.permissions.log.read),i.yb(1),i.pc("ngIf",e.permissions.prometheus.read)}}function $b(e,t){1&e&&(i.Sb(0,"li",80),i.Sb(1,"a",81),i.Wb(2,82),i.Rb(),i.Rb())}function Hb(e,t){1&e&&(i.Sb(0,"li",89),i.Sb(1,"a",90),i.Wb(2,91),i.Rb(),i.Rb())}function Wb(e,t){if(1&e&&(i.Sb(0,"small",96),i.Oc(1),i.Rb()),2&e){const e=i.ic(5);i.yb(1),i.Pc(null==e.summaryData||null==e.summaryData.rbd_mirroring?null:e.summaryData.rbd_mirroring.warnings)}}function Vb(e,t){if(1&e&&(i.Sb(0,"small",79),i.Oc(1),i.Rb()),2&e){const e=i.ic(5);i.yb(1),i.Pc(null==e.summaryData||null==e.summaryData.rbd_mirroring?null:e.summaryData.rbd_mirroring.errors)}}function Bb(e,t){if(1&e&&(i.Sb(0,"li",92),i.Sb(1,"a",93),i.Qb(2),i.Wb(3,94),i.Pb(),i.Mc(4,Wb,2,1,"small",95),i.Mc(5,Vb,2,1,"small",78),i.Rb(),i.Rb()),2&e){const e=i.ic(4);i.yb(4),i.pc("ngIf",0!==(null==e.summaryData||null==e.summaryData.rbd_mirroring?null:e.summaryData.rbd_mirroring.warnings)),i.yb(1),i.pc("ngIf",0!==(null==e.summaryData||null==e.summaryData.rbd_mirroring?null:e.summaryData.rbd_mirroring.errors))}}function Ub(e,t){1&e&&(i.Sb(0,"li",97),i.Sb(1,"a",98),i.Wb(2,99),i.Rb(),i.Rb())}function Gb(e,t){if(1&e){const e=i.Tb();i.Sb(0,"li",83),i.Sb(1,"a",84),i.gc("click",(function(){return i.Dc(e),i.ic(3).toggleSubMenu("block")})),i.Qb(2),i.Wb(3,85),i.Pb(),i.Rb(),i.Sb(4,"ul",37),i.Mc(5,Hb,3,0,"li",86),i.Mc(6,Bb,6,2,"li",87),i.Mc(7,Ub,3,0,"li",88),i.Rb(),i.Rb()}if(2&e){const e=i.ic().ngIf,t=i.ic(2);i.yb(1),i.pc("ngStyle",t.blockHealthColor()),i.zb("aria-expanded","block"==t.displayedSubMenu),i.yb(3),i.pc("ngbCollapse","block"!==t.displayedSubMenu),i.yb(1),i.pc("ngIf",t.permissions.rbdImage.read&&e.rbd),i.yb(1),i.pc("ngIf",t.permissions.rbdMirroring.read&&e.mirroring),i.yb(1),i.pc("ngIf",t.permissions.iscsi.read&&e.iscsi)}}function qb(e,t){1&e&&(i.Sb(0,"li",100),i.Sb(1,"a",101),i.Wb(2,102),i.Rb(),i.Rb())}function Jb(e,t){1&e&&(i.Sb(0,"li",103),i.Sb(1,"a",104),i.Wb(2,105),i.Rb(),i.Rb())}function Qb(e,t){if(1&e){const e=i.Tb();i.Sb(0,"li",106),i.Sb(1,"a",35),i.gc("click",(function(){return i.Dc(e),i.ic(3).toggleSubMenu("rgw")})),i.Qb(2),i.Wb(3,107),i.Pb(),i.Rb(),i.Sb(4,"ul",37),i.Sb(5,"li",108),i.Sb(6,"a",109),i.Wb(7,110),i.Rb(),i.Rb(),i.Sb(8,"li",111),i.Sb(9,"a",112),i.Wb(10,113),i.Rb(),i.Rb(),i.Sb(11,"li",114),i.Sb(12,"a",115),i.Wb(13,116),i.Rb(),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.ic(3);i.yb(1),i.zb("aria-expanded","rgw"==e.displayedSubMenu),i.yb(3),i.pc("ngbCollapse","rgw"!==e.displayedSubMenu)}}const Kb=function(e){return[e]};function Zb(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"li",24),i.Sb(2,"a",25),i.Sb(3,"span"),i.Wb(4,26),i.Rb(),i.Oc(5,"\xa0 "),i.Nb(6,"i",27),i.jc(7,"healthColor"),i.Rb(),i.Rb(),i.Mc(8,zb,15,12,"li",28),i.Mc(9,$b,3,0,"li",29),i.Mc(10,Gb,8,6,"li",30),i.Mc(11,qb,3,0,"li",31),i.Mc(12,Jb,3,0,"li",32),i.Mc(13,Qb,14,2,"li",33),i.Pb()),2&e){const e=t.ngIf,n=i.ic(2);i.yb(6),i.pc("ngClass",i.uc(10,Kb,n.icons.health))("ngStyle",i.kc(7,8,null==n.summaryData?null:n.summaryData.health_status)),i.yb(2),i.pc("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),i.yb(1),i.pc("ngIf",n.permissions.pool.read),i.yb(1),i.pc("ngIf",(n.permissions.rbdImage.read||n.permissions.rbdMirroring.read||n.permissions.iscsi.read)&&(e.rbd||e.mirroring||e.iscsi)),i.yb(1),i.pc("ngIf",n.permissions.nfs.read&&e.nfs),i.yb(1),i.pc("ngIf",n.permissions.cephfs.read&&e.cephfs),i.yb(1),i.pc("ngIf",n.permissions.rgw.read&&e.rgw)}}function Xb(e,t){if(1&e&&(i.Mc(0,Zb,14,12,"ng-container",23),i.jc(1,"async")),2&e){const e=i.ic();i.pc("ngIf",i.kc(1,1,e.enabledFeature$))}}const eg=function(e){return{active:e}},tg=["*"];let ng=(()=>{class e{constructor(e,t,n,i,r){this.authStorageService=e,this.summaryService=t,this.featureToggles=n,this.telemetryNotificationService=i,this.prometheusAlertService=r,this.notifications=[],this.icons=_n.a,this.isCollapsed=!0,this.showMenuSidebar=!0,this.displayedSubMenu="",this.simplebar={autoHide:!1},this.subs=new Oi.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)}))}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}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)(i.Mb(Jt.a),i.Mb(Lm.a),i.Mb(Gd.a),i.Mb(Ad),i.Mb(Ml))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-navigation"]],hostVars:2,hostBindings:function(e,t){2&e&&i.Ab(t.class)},ngContentSelectors:tg,decls:28,vars:9,consts:function(){return[[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"],"Toggle navigation",[1,""],[1,"fa","fa-navicon","fa-lg"],[1,"collapse","navbar-collapse"],[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"],[4,"ngIf"],["routerLinkActive","active",1,"nav-item","tc_menuitem_dashboard"],["routerLink","/dashboard",1,"nav-link"],"Dashboard",[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"],"Cluster",[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"],"Hosts",["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_cluster_inventory"],["routerLink","/inventory"],"Inventory",["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_cluster_monitor"],["routerLink","/monitor/"],"Monitors",["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_cluster_services"],["routerLink","/services/"],"Services",["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_osds"],["routerLink","/osd"],"OSDs",["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_configuration"],["routerLink","/configuration"],"Configuration",["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_crush"],["routerLink","/crush-map"],"CRUSH map",["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_modules"],["routerLink","/mgr-modules"],"Manager Modules",["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_log"],["routerLink","/logs"],"Logs",["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_monitoring"],["routerLink","/monitoring"],"Monitoring",["class","badge badge-danger",4,"ngIf"],[1,"badge","badge-danger"],["routerLinkActive","active",1,"nav-item","tc_menuitem_pool"],["routerLink","/pool",1,"nav-link"],"Pools",["routerLinkActive","active",1,"nav-item","tc_menuitem_block"],["aria-controls","collapseBasic",1,"nav-link","dropdown-toggle",3,"ngStyle","click"],"Block",["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"],"Images",["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_block_mirroring"],["routerLink","/block/mirroring"],"Mirroring",["class","badge badge-warning",4,"ngIf"],[1,"badge","badge-warning"],["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_block_iscsi"],["routerLink","/block/iscsi"],"iSCSI",["routerLinkActive","active",1,"nav-item","tc_menuitem_nfs"],["routerLink","/nfs",1,"nav-link"],"NFS",["routerLinkActive","active",1,"nav-item","tc_menuitem_cephfs"],["routerLink","/cephfs",1,"nav-link"],"Filesystems",["routerLinkActive","active",1,"nav-item","tc_menuitem_rgw"],"Object Gateway",["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_rgw_daemons"],["routerLink","/rgw/daemon"],"Daemons",["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_rgw_users"],["routerLink","/rgw/user"],"Users",["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_rgw_buckets"],["routerLink","/rgw/bucket"],"Buckets"]},template:function(e,t){if(1&e&&(i.oc(),i.Nb(0,"cd-pwd-expiration-notification"),i.Nb(1,"cd-telemetry-notification"),i.Nb(2,"cd-notifications-sidebar"),i.Sb(3,"div",0),i.Sb(4,"nav",1),i.Sb(5,"button",2),i.gc("click",(function(){return t.showMenuSidebar=!t.showMenuSidebar})),i.Nb(6,"i",3),i.Rb(),i.Sb(7,"a",4),i.Nb(8,"img",5),i.Rb(),i.Sb(9,"button",6),i.gc("click",(function(){return t.isCollapsed=!t.isCollapsed})),i.Sb(10,"span",7),i.Wb(11,8),i.Rb(),i.Sb(12,"span",9),i.Nb(13,"i",10),i.Rb(),i.Rb(),i.Sb(14,"div",11),i.Sb(15,"ul",12),i.Mc(16,Db,1,0,"ng-container",13),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(17,"div",14),i.Sb(18,"nav",15),i.Sb(19,"ngx-simplebar",16),i.Sb(20,"ul",17),i.Mc(21,Tb,1,0,"ng-container",13),i.Rb(),i.Rb(),i.Rb(),i.Sb(22,"div",18),i.nc(23),i.Rb(),i.Rb(),i.Mc(24,Cb,10,0,"ng-template",null,19,i.Nc),i.Mc(26,Xb,2,3,"ng-template",null,20,i.Nc)),2&e){const e=i.Ac(25),n=i.Ac(27);i.yb(16),i.pc("ngTemplateOutlet",e),i.yb(2),i.pc("ngClass",i.uc(5,eg,!t.showMenuSidebar)),i.yb(1),i.pc("options",t.simplebar),i.yb(2),i.pc("ngTemplateOutlet",n),i.yb(1),i.pc("ngClass",i.uc(7,eg,!t.showMenuSidebar))}},directives:[jm,Ym,ab,Qt.v,On.a,o.w,o.p,Bm.a,Tm,db,gb,Sb,xb,o.r,Pt.g,Pt.h,o.s,Qt.e],pipes:[o.b,dh],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.isPwdDisplayed{top:37.6px}  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:transparent;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:transparent;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,   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%]   #content[_ngcontent-%COMP%], .top-notification-1[_nghost-%COMP%]   #sidebar[_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%]   #content[_ngcontent-%COMP%], .top-notification-2[_nghost-%COMP%]   #sidebar[_ngcontent-%COMP%]{top:118.2px}.top-notification-2[_nghost-%COMP%]   cd-notifications-sidebar[_ngcontent-%COMP%]{top:128.2px}']}),e})();var ig=n("5yfJ"),rg=n("9xzX");function sg(e,t){if(1&e){const e=i.Tb();i.Qb(0),i.Sb(1,"button",9),i.gc("click",(function(){i.Dc(e);const n=t.$implicit;return i.ic(3).onDaemonSelection(n)})),i.Oc(2),i.Rb(),i.Pb()}if(2&e){const e=t.$implicit;i.yb(2),i.Rc(" ",e.id," ( ",e.zonegroup_name," ) ")}}function og(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"div",1),i.Sb(2,"span",2),i.Wb(3,3),i.Rb(),i.Sb(4,"div",4),i.Sb(5,"button",5),i.Yb(6,6),i.Oc(7),i.Rb(),i.Sb(8,"div",7),i.Mc(9,sg,3,2,"ng-container",8),i.Rb(),i.Rb(),i.Rb(),i.Pb()),2&e){const e=i.ic().ngIf;i.yb(7),i.Rc(" ",e.selectedDaemon.id," ( ",e.selectedDaemon.zonegroup_name," ) "),i.yb(2),i.pc("ngForOf",e.daemons)}}function ag(e,t){if(1&e&&(i.Qb(0),i.Mc(1,og,10,3,"ng-container",0),i.Pb()),2&e){const e=t.ngIf,n=i.ic();i.yb(1),i.pc("ngIf",e.ftMap&&e.ftMap.rgw&&n.permissions.rgw.read&&n.isRgwRoute&&e.daemons.length>1)}}const cg=function(e,t,n){return{ftMap:e,daemons:t,selectedDaemon:n}};let lg=(()=>{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 Oi.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(Ql.a)(e=>e instanceof Pt.b)).subscribe(()=>this.isRgwRoute=this.router.url.includes(this.rgwUrlPrefix))),this.subs.add(this.timerService.get(()=>this.isRgwRoute?this.rgwDaemonService.list():ig.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)(i.Mb(Jt.a),i.Mb(Gd.a),i.Mb(Pt.e),i.Mb(Ri.a),i.Mb(rg.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-context"]],decls:4,vars:11,consts:function(){return[[4,"ngIf"],[1,"cd-context-bar","pt-3","pb-3"],[1,"mr-1"],"Selected Object Gateway:",["ngbDropdown","","placement","bottom-left",1,"d-inline-block","ml-2"],["ngbDropdownToggle","",1,"btn","btn-outline-info","ctx-bar-selected-rgw-daemon",6,"title"],["title","Select Object Gateway"],["ngbDropdownMenu",""],[4,"ngFor","ngForOf"],["ngbDropdownItem","",1,"ctx-bar-available-rgw-daemon",3,"click"]]},template:function(e,t){1&e&&(i.Mc(0,ag,2,1,"ng-container",0),i.jc(1,"async"),i.jc(2,"async"),i.jc(3,"async")),2&e&&i.pc("ngIf",i.wc(7,cg,i.kc(1,1,t.featureToggleMap$),i.kc(2,3,t.rgwDaemonService.daemons$),i.kc(3,5,t.rgwDaemonService.selectedDaemon$)))},directives:[o.r,Qt.i,On.a,Qt.m,Qt.k,o.q,Qt.j],pipes:[o.b],styles:[".cd-context-bar[_ngcontent-%COMP%]{border-bottom:1px solid #dee2e6}"]}),e})();var ug=n("GyhO"),dg=n("Cfvw"),hg=n("zx2A");class fg{constructor(e,t){this.keySelector=e,this.flushes=t}call(e,t){return t.subscribe(new pg(e,this.keySelector,this.flushes))}}class pg extends hg.b{constructor(e,t,n){super(e),this.keySelector=t,this.values=new Set,n&&this.add(Object(hg.c)(n,new hg.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 mg=n("SxV6");class bg{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(Wi.a)(i)}getFullPath(e){return(e=>e.reduce((e,t)=>e+t.url.reduce((e,t)=>e+"/"+t.path,""),""))(e.pathFromRoot)}}function gg(e,t){if(1&e&&(i.Sb(0,"a",6),i.Oc(1),i.Rb()),2&e){const e=i.ic().$implicit;i.pc("routerLink",e.path),i.yb(1),i.Pc(e.text)}}function _g(e,t){if(1&e&&(i.Sb(0,"span"),i.Oc(1),i.Rb()),2&e){const e=i.ic().$implicit;i.yb(1),i.Pc(e.text)}}const yg=function(e){return{active:e}};function vg(e,t){if(1&e&&(i.Sb(0,"li",3),i.Mc(1,gg,2,2,"a",4),i.Mc(2,_g,2,1,"span",5),i.Rb()),2&e){const e=t.$implicit,n=t.last,r=i.ic(2);i.pc("ngClass",i.uc(3,yg,n&&r.finished)),i.yb(1),i.pc("ngIf",!n&&null!==e.path),i.yb(1),i.pc("ngIf",n||null===e.path)}}function wg(e,t){if(1&e&&(i.Sb(0,"ol",1),i.Mc(1,vg,3,5,"li",2),i.Rb()),2&e){const e=i.ic();i.yb(1),i.pc("ngForOf",e.crumbs)}}let Sg=(()=>{class e{constructor(e,t){this.router=e,this.injector=t,this.crumbs=[],this.finished=!1,this.defaultResolver=new bg,this.subscription=this.router.events.pipe(Object(Ql.a)(e=>e instanceof Pt.c)).subscribe(()=>{this.finished=!1}),this.subscription=this.router.events.pipe(Object(Ql.a)(e=>e instanceof Pt.b)).subscribe(()=>{var t;this._resolveCrumbs(e.routerState.snapshot.root).pipe(Object(Ki.a)(e=>e),(t=e=>e.text,e=>e.lift(new fg(t,void 0))),Qi(),Object(Ki.a)(e=>{const t=this.postProcess(e);return this.wrapIntoObservable(t).pipe(Object(mg.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 bg?this.injector.get(n.breadcrumbs):this.defaultResolver;const r=i.resolve(e);t=this.wrapIntoObservable(r).pipe(Object(mg.a)())}else t=Object(Wi.a)([]);return e.firstChild&&(t=Object(ug.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 xu.a?e:this.isPromise(e)?Object(dg.a)(Promise.resolve(e)):Object(Wi.a)(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Pt.e),i.Mb(i.s))},e.\u0275cmp=i.Gb({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&&i.Mc(0,wg,2,1,"ol",0),2&e&&i.pc("ngIf",t.crumbs.length)},directives:[o.r,o.q,o.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 Mg=function(e){return{dashboard:e}};let kg=(()=>{class e{constructor(e,t,n,i){this.router=e,this.summaryService=t,this.taskManagerService=n,this.faviconService=i,this.subs=new Oi.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)(i.Mb(Pt.e),i.Mb(Lm.a),i.Mb(Em.a),i.Mb(Rm))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-workbench-layout"]],features:[i.xb([Rm])],decls:6,vars:3,consts:[[1,"container-fluid","h-100",3,"ngClass"]],template:function(e,t){1&e&&(i.Sb(0,"block-ui"),i.Sb(1,"cd-navigation"),i.Sb(2,"div",0),i.Nb(3,"cd-context"),i.Nb(4,"cd-breadcrumbs"),i.Nb(5,"router-outlet"),i.Rb(),i.Rb(),i.Rb()),2&e&&(i.yb(2),i.pc("ngClass",i.uc(1,Mg,t.isDashboardPage())))},directives:[na,ng,o.p,lg,Sg,Pt.j],styles:[".dashboard[_ngcontent-%COMP%]{background-color:#e9ecef;margin:0;padding:0}.container-fluid[_ngcontent-%COMP%]{overflow:auto}"]}),e})();var xg=n("Avrn");let Dg=(()=>{class e{constructor(e,t){this.router=e,this.authStorageService=t}canActivate(){return!(this.authStorageService.isLoggedIn()&&!this.authStorageService.isSSO()&&this.authStorageService.getPwdUpdateRequired()&&(this.router.navigate(["/login-change-password"]),1))}canActivateChild(){return this.canActivate()}}return e.\u0275fac=function(t){return new(t||e)(i.dc(Pt.e),i.dc(Jt.a))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Tg=n("Vhfg"),Cg=n("JIr8");let Og=(()=>{class e{constructor(e,t){this.http=e,this.router=t}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(Wi.a)(!0);const n=t.data.moduleStatusGuardConfig;return this.http.get(`api/${n.apiPath}/status`).pipe(Object(Vi.a)(e=>(e.available||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(Cg.a)(()=>(this.router.navigate([n.redirectTo]),Object(Wi.a)(!1))))}}return e.ALLOWLIST=["501"],e.\u0275fac=function(t){return new(t||e)(i.dc(a.b),i.dc(Pt.e))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Lg=(()=>{class e{constructor(e){this.authStorageService=e}canActivate(){if(!this.authStorageService.isSSO())return!0;throw new Fl.c}canActivateChild(){return this.canActivate()}}return e.\u0275fac=function(t){return new(t||e)(i.dc(Jt.a))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Rg=(()=>{class e extends bg{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 Eg(t||e)},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})();const Eg=i.Ub(Rg);let Ag=(()=>{class e extends bg{resolve(e){const t=e.params.name;return[{text:jt.a.startCase(t)+"/Edit",path:t}]}}return e.\u0275fac=function(t){return Ig(t||e)},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})();const Ig=i.Ub(Ag),Pg=[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"",component:kg,canActivate:[xg.a,Dg],canActivateChild:[xg.a,Dg],children:[{path:"dashboard",component:nf},{path:"error",component:Sm},{path:"hosts",data:{breadcrumbs:"Cluster/Hosts"},children:[{path:"",component:Us},{path:gn.e.CREATE,component:ar,data:{breadcrumbs:gn.a.CREATE}}]},{path:"monitor",component:ga,data:{breadcrumbs:"Cluster/Monitors"}},{path:"services",canActivateChild:[Og],data:{moduleStatusGuardConfig:{apiPath:"orchestrator",redirectTo:"error",section:"orch",section_info:"Orchestrator",header:"Orchestrator is not available"},breadcrumbs:"Cluster/Services"},children:[{path:"",component:Rd},{path:gn.e.CREATE,component:Md,data:{breadcrumbs:gn.a.CREATE}}]},{path:"inventory",canActivate:[Og],component:jr,data:{moduleStatusGuardConfig:{apiPath:"orchestrator",redirectTo:"error",section:"orch",section_info:"Orchestrator",header:"Orchestrator is not available"},breadcrumbs:"Cluster/Inventory"}},{path:"osd",data:{breadcrumbs:"Cluster/OSDs"},children:[{path:"",component:_l},{path:gn.e.CREATE,component:Qa,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:Hi,data:{breadcrumbs:"Cluster/CRUSH map"}},{path:"logs",component:yo,data:{breadcrumbs:"Cluster/Logs"}},{path:"telemetry",component:Yd,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:El},{path:"alerts",data:{breadcrumbs:"Alerts"},component:jl},{path:"silences",data:{breadcrumbs:"Silences"},children:[{path:"",component:Ou},{path:gn.e.CREATE,component:Mu,data:{breadcrumbs:gn.a.CREATE+" Silence"}},{path:gn.e.CREATE+"/:id",component:Mu,data:{breadcrumbs:gn.a.CREATE}},{path:gn.e.EDIT+"/:id",component:Mu,data:{breadcrumbs:gn.a.EDIT}},{path:gn.e.RECREATE+"/:id",component:Mu,data:{breadcrumbs:gn.a.RECREATE}}]}]},{path:"perf_counters/:type/:id",component:Up,data:{breadcrumbs:Rg}},{path:"mgr-modules",data:{breadcrumbs:"Cluster/Manager Modules"},children:[{path:"",component:pa},{path:"edit/:name",component:Vo,data:{breadcrumbs:Ag}}]},{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:Bn,canActivate:[Tg.a],data:{breadcrumbs:"Filesystems"}},{path:"rgw",canActivateChild:[Tg.a,Og],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:rm,canActivate:[Lg],data:{breadcrumbs:gn.a.EDIT}}]},{path:"nfs",canActivateChild:[Tg.a,Og],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:Bp},{path:gn.e.CREATE,component:Ap,data:{breadcrumbs:gn.a.CREATE}},{path:gn.e.EDIT+"/:cluster_id/:export_id",component:Ap,data:{breadcrumbs:gn.a.EDIT}}]}]},{path:"",component:Om,children:[{path:"login",component:gm},{path:"login-change-password",component:hm,canActivate:[Lg]}]},{path:"",component:Mm,children:[{path:"**",redirectTo:"/error"}]}];let Ng=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},providers:[Ag,Rg],imports:[[Pt.i.forRoot(Pg,{useHash:!0,preloadingStrategy:Pt.d})],Pt.i]}),e})(),jg=(()=>{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)(i.Mb(Qt.x),i.Mb(Qt.E))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-root"]],decls:1,vars:0,template:function(e,t){1&e&&i.Nb(0,"router-outlet")},directives:[Pt.j],styles:[""]}),e})();var Fg=n("PCNd");let Yg=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[o.c,Fg.a,Ng,sn.b,xn.c,Qt.t]]}),e})();var zg=n("G6Q+"),$g=n("kJI8");let Hg=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[Ng,o.c,kn.x,Fg.a,Qt.t]]}),e})(),Wg=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[o.c,zg.a,Qt.t,Fg.a,Pt.i,kn.m,kn.x,Qt.F,Hg,Qt.H,Qt.C,xn.c,$g.a,Qt.h,Qt.y,Qt.l,zr.a]]}),e})(),Vg=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[$g.a,o.c,Qt.t,Fg.a,sn.b,Pt.i,Qt.y]]}),e})(),Bg=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[kn.x,Pt.i,Fg.a,Qt.t,o.c,Qt.H,Qt.F]]}),e})(),Ug=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[o.c,Wg,Vg,zg.a,Yg,Bg,Fg.a]]}),e})();var Gg=n("LceX");let qg=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[o.c,Gg.AuthModule,Qt.f,Qt.l,Ng,Fg.a,Bm.b,Pt.i]]}),e})(),Jg=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[la.forRoot(),o.c,qg,Qt.l,Pt.i,Fg.a],qg]}),e})();var Qg=n("z6cu");let Kg=(()=>{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:"application/vnd.ceph.api.v1.0+json"}}),t.handle(i).pipe(Object(Cg.a)(e=>{if(e instanceof a.d){let t;switch(e.status){case 400:const n=new er.a,i=e.error.task;jt.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(Qg.a)(e)}))}prepareNotification(e){return this.notificationService.show(()=>{let t="";return jt.a.isPlainObject(e.error)&&jt.a.isString(e.error.detail)?t=e.error.detail:jt.a.isString(e.error)?t=e.error:jt.a.isString(e.message)&&(t=e.message),new wl.b(yn.a.error,`${e.status} - ${e.statusText}`,t,void 0,e.application)})}}return e.\u0275fac=function(t){return new(t||e)(i.dc(Pt.e),i.dc(Jt.a),i.dc(wn.a))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Zg=(()=>{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)(i.dc(a.b))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Xg=(()=>{class e{constructor(e,t){this.injector=e,this.router=t}handleError(e){const t=this.injector.get(Zg),n=window.location.href;if(t.jsError(n,e&&e.message,e&&e.stack).subscribe(),!(e.rejection instanceof Fl.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)(i.dc(i.s),i.dc(Pt.e))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})(),e_=(()=>{class e{}return e.\u0275mod=i.Kb({type:e,bootstrap:[jg]}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},providers:[{provide:i.n,useClass:Xg},{provide:a.a,useClass:Kg,multi:!0},{provide:o.a,useValue:window["base-href"]}],imports:[[a.c,r.a,At,It.a.forRoot({positionClass:"toast-top-right",preventDuplicates:!0,enableHtml:!0}),Ng,Jg,Fg.a,Ug],Fg.a]}),e})();s.a.production&&Object(i.S)(),r.d().bootstrapModule(e_).then(e=>{if(Object(i.U)()){const t=e.injector.get(i.g).components[0];Object(r.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.Lb({name:"pipeFunction",type:e,pure:!0}),e})(),s=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)}}),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.Mb(o.L),o.Mb(o.P),o.Mb(o.j))},e.\u0275dir=o.Hb({type:e,selectors:[["","cdFormLoading",""]],inputs:{cdFormLoading:"cdFormLoading"}}),e})()},zk60:function(e,t,n){var i=n("2oRo"),r=n("kRJp");e.exports=function(e,t){try{r(i,e,t)}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]]]);
\ No newline at end of file
diff --git a/ceph/src/pybind/mgr/dashboard/frontend/dist/en-US/main.abdc8ba4d5af20b6adbf.js b/ceph/src/pybind/mgr/dashboard/frontend/dist/en-US/main.abdc8ba4d5af20b6adbf.js
new file mode 100644 (file)
index 0000000..1b0f08e
--- /dev/null
@@ -0,0 +1,3 @@
+var $localize=Object.assign(void 0===$localize?{}:$localize,{locale:"en-US"});
+"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);;
+(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.Lb({name:"cephReleaseName",type:e,pure:!0}),e})()},"+EN/":function(e,t,n){e.exports={chartHealthCenterTextColor:"#151515",chartHealthCenterTextDescriptionColor:"#72767b",chartHealthColorBlue:"#06c",chartHealthColorCyan:"#73c5c5",chartHealthColorGray:"#ededed",chartHealthColorGreen:"#7cc674",chartHealthColorLightBlue:"#519de9",chartHealthColorLightYellow:"#f9e0a2",chartHealthColorMagenta:"#009596",chartHealthColorOrange:"#ef9234",chartHealthColorPurple:"#3c3d99",chartHealthColorRed:"#c9190b",chartHealthColorYellow:"#f6d173",chartHealthTootlipBgColor:"#000",healthColorError:"#f00",healthColorHealthy:"#0b0",healthColorWarning:"#ffa500"}},"+fVR":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));class i{setExpandedRow(e){this.expandedRow=e}}},"+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"))},"/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("oxzT"),r=n("8Y7J"),s=n("G0yt"),o=n("SVse");const a=function(e){return[e]};function c(e,t){if(1&e&&(r.Sb(0,"td",8),r.Nb(1,"i",9),r.Rb()),2&e){const e=r.ic(2);r.yb(1),r.Cb("alert-",e.bootstrapClass," ",e.typeIcon,""),r.pc("ngClass",r.uc(5,a,e.icons.large3x))}}function l(e,t){if(1&e&&(r.Sb(0,"td",10),r.Oc(1),r.Rb()),2&e){const e=r.ic(2);r.yb(1),r.Pc(e.title)}}function u(e,t){1&e&&r.Ob(0)}function d(e,t){if(1&e&&(r.Qb(0),r.Sb(1,"tr"),r.Mc(2,c,2,7,"td",4),r.Mc(3,l,2,1,"td",5),r.Rb(),r.Sb(4,"tr"),r.Sb(5,"td",6),r.Mc(6,u,1,0,"ng-container",7),r.Rb(),r.Rb(),r.Pb()),2&e){const e=r.ic(),t=r.Ac(6);r.yb(2),r.pc("ngIf",e.showIcon),r.yb(1),r.pc("ngIf",e.showTitle),r.yb(3),r.pc("ngTemplateOutlet",t)}}function h(e,t){if(1&e&&(r.Sb(0,"td",12),r.Nb(1,"i",13),r.Rb()),2&e){const e=r.ic(2);r.yb(1),r.Cb("alert-",e.bootstrapClass," ",e.typeIcon,"")}}function f(e,t){if(1&e&&(r.Sb(0,"td",10),r.Oc(1),r.Rb()),2&e){const e=r.ic(2);r.yb(1),r.Pc(e.title)}}function p(e,t){1&e&&r.Ob(0)}function m(e,t){if(1&e&&(r.Sb(0,"tr"),r.Mc(1,h,2,4,"td",11),r.Mc(2,f,2,1,"td",5),r.Sb(3,"td",6),r.Mc(4,p,1,0,"ng-container",7),r.Rb(),r.Rb()),2&e){const e=r.ic(),t=r.Ac(6);r.yb(1),r.pc("ngIf",e.showIcon),r.yb(1),r.pc("ngIf",e.showTitle),r.yb(2),r.pc("ngTemplateOutlet",t)}}function b(e,t){1&e&&r.nc(0)}const g=["*"];let _=(()=>{class e{constructor(){this.title="",this.bootstrapClass="",this.size="normal",this.showIcon=!0,this.showTitle=!0,this.icons=i.a}ngOnInit(){switch(this.type){case"warning":this.title=this.title||"Warning",this.typeIcon=this.typeIcon||i.a.warning,this.bootstrapClass=this.bootstrapClass||"warning";break;case"error":this.title=this.title||"Error",this.typeIcon=this.typeIcon||i.a.destroyCircle,this.bootstrapClass=this.bootstrapClass||"danger";break;case"info":this.title=this.title||"Information",this.typeIcon=this.typeIcon||i.a.infoCircle,this.bootstrapClass=this.bootstrapClass||"info";break;case"success":this.title=this.title||"Success",this.typeIcon=this.typeIcon||i.a.check,this.bootstrapClass=this.bootstrapClass||"success"}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Gb({type:e,selectors:[["cd-alert-panel"]],inputs:{title:"title",bootstrapClass:"bootstrapClass",type:"type",typeIcon:"typeIcon",size:"size",showIcon:"showIcon",showTitle:"showTitle"},ngContentSelectors:g,decls:7,vars:4,consts:[[3,"type","dismissible"],[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&&(r.oc(),r.Sb(0,"ngb-alert",0),r.Sb(1,"table"),r.Mc(2,d,7,3,"ng-container",1),r.Mc(3,m,5,3,"ng-template",null,2,r.Nc),r.Rb(),r.Rb(),r.Mc(5,b,1,0,"ng-template",null,3,r.Nc)),2&e){const e=r.Ac(4);r.qc("type",t.bootstrapClass),r.pc("dismissible",!1),r.yb(2),r.pc("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})()},"/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 D}));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.Ob(0)}function g(e,t){1&e&&o.Ob(0)}function _(e,t){if(1&e&&(o.Sb(0,"p"),o.cc(1,21),o.jc(2,"lowercase"),o.Nb(3,"strong"),o.Zb(),o.Rb()),2&e){const e=o.ic(2);o.yb(3),o.ac(o.kc(2,2,e.actionDescription))(e.itemNames[0]),o.Xb(1)}}function y(e,t){if(1&e&&(o.Sb(0,"li"),o.Sb(1,"strong"),o.Oc(2),o.Rb(),o.Rb()),2&e){const e=t.$implicit;o.yb(2),o.Pc(e)}}function v(e,t){if(1&e&&(o.Sb(0,"p"),o.Wb(1,22),o.jc(2,"lowercase"),o.Rb(),o.Sb(3,"ul"),o.Mc(4,y,3,1,"li",23),o.Rb()),2&e){const e=o.ic(2);o.yb(2),o.ac(o.kc(2,2,e.actionDescription)),o.Xb(1),o.yb(2),o.pc("ngForOf",e.itemNames)}}function w(e,t){if(1&e&&(o.Sb(0,"span"),o.Mc(1,_,4,4,"p",10),o.Mc(2,v,5,4,"ng-template",null,20,o.Nc),o.Rb()),2&e){const e=o.Ac(3),t=o.ic();o.yb(1),o.pc("ngIf",1===t.itemNames.length)("ngIfElse",e)}}function S(e,t){if(1&e&&(o.Sb(0,"p"),o.Wb(1,24),o.jc(2,"lowercase"),o.Rb()),2&e){const e=o.ic();o.yb(2),o.ac(o.kc(2,2,e.actionDescription))(e.itemDescription),o.Xb(1)}}function M(e,t){1&e&&o.Ob(0)}function k(e,t){if(1&e&&(o.Oc(0),o.jc(1,"titlecase")),2&e){const e=o.ic();o.Rc(" ",o.kc(1,2,e.actionDescription)," ",e.itemDescription,"\n")}}const x=function(e){return{form:e}};let D=(()=>{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.Mb(a.a))},e.\u0275cmp=o.Gb({type:e,selectors:[["cd-deletion-modal"]],viewQuery:function(e,t){var n;1&e&&o.Jc(s.a,!0),2&e&&o.zc(n=o.hc())&&(t.submitButton=n.first)},decls:24,vars:15,consts:function(){return[[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"],"Yes, I am sure.",[1,"modal-footer"],[3,"form","submitText","submitActionEvent"],["deletionHeading",""],["manyNames",""],"Are you sure that you want to " + "\ufffd0\ufffd" + " " + "\ufffd#3\ufffd" + "" + "\ufffd1\ufffd" + "" + "\ufffd/#3\ufffd" + "?","Are you sure that you want to " + "\ufffd0\ufffd" + " the selected items?",[4,"ngFor","ngForOf"],"Are you sure that you want to " + "\ufffd0\ufffd" + " the selected " + "\ufffd1\ufffd" + "?"]},template:function(e,t){if(1&e&&(o.Sb(0,"cd-modal",0,1),o.Qb(2,2),o.Mc(3,b,1,0,"ng-container",3),o.Pb(),o.Qb(4,4),o.Sb(5,"form",5,6),o.Sb(7,"div",7),o.Mc(8,g,1,0,"ng-container",8),o.Sb(9,"div",9),o.Mc(10,w,4,2,"span",10),o.Mc(11,S,3,4,"ng-template",null,11,o.Nc),o.Mc(13,M,1,0,"ng-container",8),o.Sb(14,"div",12),o.Sb(15,"div",13),o.Nb(16,"input",14),o.Sb(17,"label",15),o.Wb(18,16),o.Rb(),o.Rb(),o.Rb(),o.Rb(),o.Rb(),o.Sb(19,"div",17),o.Sb(20,"cd-form-button-panel",18),o.gc("submitActionEvent",(function(){return t.callSubmitAction()})),o.jc(21,"titlecase"),o.Rb(),o.Rb(),o.Rb(),o.Pb(),o.Rb(),o.Mc(22,k,2,4,"ng-template",null,19,o.Nc)),2&e){const e=o.Ac(12),n=o.Ac(23);o.pc("modalRef",t.activeModal),o.yb(3),o.pc("ngTemplateOutlet",n),o.yb(2),o.pc("formGroup",t.deletionForm),o.yb(3),o.pc("ngTemplateOutlet",t.bodyTemplate)("ngTemplateOutletContext",t.bodyContext),o.yb(2),o.pc("ngIf",t.itemNames)("ngIfElse",e),o.yb(3),o.pc("ngTemplateOutlet",t.childFormGroupTemplate)("ngTemplateOutletContext",o.uc(13,x,t.deletionForm)),o.yb(7),o.pc("form",t.deletionForm)("submitText",o.kc(21,11,t.actionDescription)+" "+t.itemDescription)}},directives:[c.a,l.w,i.C,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}}},"0EUg":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("bHdf");function r(){return Object(i.a)(1)}},"0GbY":function(e,t,n){var i=n("Qo9l"),r=n("2oRo"),s=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?s(i[e])||s(r[e]):i[e]&&i[e][t]||r[e]&&r[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("glrk"),r=n("O741");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(s){}return function(n,s){return i(n),r(s),t?e.call(n,s):n.__proto__=s,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("busE"),r=n("0Dky"),s=n("tiKp"),o=n("kmMV"),a=n("kRJp"),c=s("species"),l=!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),u="$0"==="a".replace(/./,"$0"),d=s("replace"),h=!!/./[d]&&""===/./[d]("a","$0"),f=!r((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,d){var p=s(e),m=!r((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),b=m&&!r((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!m||!b||"replace"===e&&(!l||!u||h)||"split"===e&&!f){var g=/./[p],_=n(p,""[e],(function(e,t,n,i,r){return t.exec===o?m&&!r?{done:!0,value:g.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),y=_[1];i(String.prototype,e,_[0]),i(RegExp.prototype,p,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}d&&a(RegExp.prototype[p],"sham",!0)}},"1E5z":function(e,t,n){var i=n("m/L8").f,r=n("UTVS"),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 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,r=500){let c;return h=>h.pristine||p(h.value)?Object(o.a)(null):(c=h.value,s.a.isFunction(n)&&null!==n()&&""!==n()&&(c=i?`${h.value}$${n()}`:`${n()}$${h.value}`),Object(a.a)(r).pipe(l(e.call(t,c)),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))}}}},"1Y/n":function(e,t,n){var i=n("HAuM"),r=n("ewvW"),s=n("RK3t"),o=n("UMSQ"),a=function(e){return function(t,n,a,c){i(n);var l=r(t),u=s(l),d=o(l.length),h=e?d-1:0,f=e?-1:1;if(a<2)for(;;){if(h in u){c=u[h],h+=f;break}if(h+=f,e?h<0:d<=h)throw TypeError("Reduce of empty array with no initial value")}for(;e?h>=0:d>h;h+=f)h in u&&(c=n(c,u[h],h,l));return c}};e.exports={left:a(!1),right:a(!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.dc(o.a))},e.\u0275prov=c.Ib({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.dc(a.b))},e.\u0275prov=o.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),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.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const a=s.Ub(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)}}},"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")()},"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"))},"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=!1,i=void 0;try{this.work(e)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}_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("4mDm"),o=n("kRJp"),a=n("tiKp"),c=a("iterator"),l=a("toStringTag"),u=s.values;for(var d in r){var h=i[d],f=h&&h.prototype;if(f){if(f[c]!==u)try{o(f,c,u)}catch(m){f[c]=u}if(f[l]||o(f,l,d),r[d])for(var p in s)if(f[p]!==s[p])try{o(f,p,s[p])}catch(m){f[p]=s[p]}}}},"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.Lb({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("UTVS"),r=n("ewvW"),s=n("93I0"),o=n("4Xet"),a=s("IE_PROTO"),c=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=r(e),i(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c: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}},"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()}}},"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.Tb();i.Sb(0,"cd-submit-button",2),i.gc("submitAction",(function(){return i.Dc(e),i.ic().submitAction()})),i.Oc(1),i.Rb()}if(2&e){const e=i.ic();i.pc("disabled",e.disabled)("form",e.form),i.yb(1),i.Pc(e.submitText)}}let u=(()=>{class e{constructor(e,t,n){this.location=e,this.actionLabels=t,this.modalService=n,this.submitActionEvent=new i.o,this.backActionEvent=new i.o,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.Mb(a.m),i.Mb(r.b),i.Mb(s.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-form-button-panel"]],viewQuery:function(e,t){var n;1&e&&i.Tc(o.a,!0),2&e&&i.zc(n=i.hc())&&(t.submitButton=n.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.Sb(0,"div"),i.Sb(1,"cd-back-button",0),i.gc("backAction",(function(){return t.backAction()})),i.Rb(),i.Mc(2,l,2,3,"cd-submit-button",1),i.Rb()),2&e&&(i.Ab(t.wrappingClass),i.yb(1),i.pc("name",t.cancelText),i.yb(1),i.pc("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"))},"6JNq":function(e,t,n){var i=n("UTVS"),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.Mb(i.a))},e.\u0275cmp=r.Gb({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.Sb(0,"a",0),r.Oc(1),r.Rb()),2&e&&(r.qc("href",t.docUrl,r.Gc),r.yb(1),r.Pc(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"))},"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"))},"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.Lb({name:"cephShortVersion",type:e,pure:!0}),e})()},"8Y7J":function(e,t,n){"use strict";n.d(t,"a",(function(){return Is})),n.d(t,"b",(function(){return eu})),n.d(t,"c",(function(){return Jl})),n.d(t,"d",(function(){return Gl})),n.d(t,"e",(function(){return ql})),n.d(t,"f",(function(){return Vu})),n.d(t,"g",(function(){return Iu})),n.d(t,"h",(function(){return bs})),n.d(t,"i",(function(){return du})),n.d(t,"j",(function(){return _a})),n.d(t,"k",(function(){return ma})),n.d(t,"l",(function(){return iu})),n.d(t,"m",(function(){return ya})),n.d(t,"n",(function(){return En})),n.d(t,"o",(function(){return Ml})),n.d(t,"p",(function(){return G})),n.d(t,"q",(function(){return d})),n.d(t,"r",(function(){return U})),n.d(t,"s",(function(){return As})),n.d(t,"t",(function(){return Fa})),n.d(t,"u",(function(){return Ya})),n.d(t,"v",(function(){return nu})),n.d(t,"w",(function(){return ce})),n.d(t,"x",(function(){return Nu})),n.d(t,"y",(function(){return ae})),n.d(t,"z",(function(){return Ou})),n.d(t,"A",(function(){return pu})),n.d(t,"B",(function(){return h})),n.d(t,"C",(function(){return Xl})),n.d(t,"D",(function(){return Zl})),n.d(t,"E",(function(){return Ma})),n.d(t,"F",(function(){return wa})),n.d(t,"G",(function(){return Sa})),n.d(t,"H",(function(){return xa})),n.d(t,"I",(function(){return Si})),n.d(t,"J",(function(){return p})),n.d(t,"K",(function(){return Yu})),n.d(t,"L",(function(){return Wa})),n.d(t,"M",(function(){return Su})),n.d(t,"N",(function(){return _s})),n.d(t,"O",(function(){return Da})),n.d(t,"P",(function(){return Ba})),n.d(t,"Q",(function(){return _e})),n.d(t,"R",(function(){return Lu})),n.d(t,"S",(function(){return Qn})),n.d(t,"T",(function(){return R})),n.d(t,"U",(function(){return Jn})),n.d(t,"V",(function(){return Hu})),n.d(t,"W",(function(){return xu})),n.d(t,"X",(function(){return tu})),n.d(t,"Y",(function(){return ys})),n.d(t,"Z",(function(){return ac})),n.d(t,"ab",(function(){return vi})),n.d(t,"bb",(function(){return ni})),n.d(t,"cb",(function(){return zn})),n.d(t,"db",(function(){return Hn})),n.d(t,"eb",(function(){return Un})),n.d(t,"fb",(function(){return Vn})),n.d(t,"gb",(function(){return Wn})),n.d(t,"hb",(function(){return Bn})),n.d(t,"ib",(function(){return ic})),n.d(t,"jb",(function(){return $u})),n.d(t,"kb",(function(){return rc})),n.d(t,"lb",(function(){return sc})),n.d(t,"mb",(function(){return $n})),n.d(t,"nb",(function(){return F})),n.d(t,"ob",(function(){return Bs})),n.d(t,"pb",(function(){return go})),n.d(t,"qb",(function(){return bo})),n.d(t,"rb",(function(){return nc})),n.d(t,"sb",(function(){return Qe})),n.d(t,"tb",(function(){return C})),n.d(t,"ub",(function(){return Yn})),n.d(t,"vb",(function(){return js})),n.d(t,"wb",(function(){return Ve})),n.d(t,"xb",(function(){return pa})),n.d(t,"yb",(function(){return Bi})),n.d(t,"zb",(function(){return Xs})),n.d(t,"Ab",(function(){return Yo})),n.d(t,"Bb",(function(){return na})),n.d(t,"Cb",(function(){return ia})),n.d(t,"Db",(function(){return ra})),n.d(t,"Eb",(function(){return Fo})),n.d(t,"Fb",(function(){return Fl})),n.d(t,"Gb",(function(){return Se})),n.d(t,"Hb",(function(){return Oe})),n.d(t,"Ib",(function(){return _})),n.d(t,"Jb",(function(){return y})),n.d(t,"Kb",(function(){return De})),n.d(t,"Lb",(function(){return Le})),n.d(t,"Mb",(function(){return ro})),n.d(t,"Nb",(function(){return uo})),n.d(t,"Ob",(function(){return po})),n.d(t,"Pb",(function(){return fo})),n.d(t,"Qb",(function(){return ho})),n.d(t,"Rb",(function(){return lo})),n.d(t,"Sb",(function(){return co})),n.d(t,"Tb",(function(){return mo})),n.d(t,"Ub",(function(){return Cn})),n.d(t,"Vb",(function(){return sa})),n.d(t,"Wb",(function(){return Xc})),n.d(t,"Xb",(function(){return nl})),n.d(t,"Yb",(function(){return el})),n.d(t,"Zb",(function(){return Zc})),n.d(t,"ac",(function(){return tl})),n.d(t,"bc",(function(){return il})),n.d(t,"cc",(function(){return Kc})),n.d(t,"dc",(function(){return ie})),n.d(t,"ec",(function(){return so})),n.d(t,"fc",(function(){return Ul})),n.d(t,"gc",(function(){return _o})),n.d(t,"hc",(function(){return $l})),n.d(t,"ic",(function(){return wo})),n.d(t,"jc",(function(){return gl})),n.d(t,"kc",(function(){return _l})),n.d(t,"lc",(function(){return yl})),n.d(t,"mc",(function(){return vl})),n.d(t,"nc",(function(){return Do})),n.d(t,"oc",(function(){return Mo})),n.d(t,"pc",(function(){return oo})),n.d(t,"qc",(function(){return To})),n.d(t,"rc",(function(){return Co})),n.d(t,"sc",(function(){return Oo})),n.d(t,"tc",(function(){return al})),n.d(t,"uc",(function(){return cl})),n.d(t,"vc",(function(){return ll})),n.d(t,"wc",(function(){return ul})),n.d(t,"xc",(function(){return dl})),n.d(t,"yc",(function(){return hl})),n.d(t,"zc",(function(){return Il})),n.d(t,"Ac",(function(){return io})),n.d(t,"Bc",(function(){return ln})),n.d(t,"Cc",(function(){return cn})),n.d(t,"Dc",(function(){return bt})),n.d(t,"Ec",(function(){return Mi})),n.d(t,"Fc",(function(){return xi})),n.d(t,"Gc",(function(){return ki})),n.d(t,"Hc",(function(){return Te})),n.d(t,"Ic",(function(){return Yl})),n.d(t,"Jc",(function(){return Pl})),n.d(t,"Kc",(function(){return jo})),n.d(t,"Lc",(function(){return oa})),n.d(t,"Mc",(function(){return no})),n.d(t,"Nc",(function(){return Bl})),n.d(t,"Oc",(function(){return Ko})),n.d(t,"Pc",(function(){return Zo})),n.d(t,"Qc",(function(){return Xo})),n.d(t,"Rc",(function(){return ea})),n.d(t,"Sc",(function(){return ta})),n.d(t,"Tc",(function(){return Nl}));var i=n("XNiG"),r=n("quSY"),s=n("HDdC"),o=n("VRyK"),a=n("w1tV");function c(e){return{toString:e}.toString()}const l="__parameters__";function u(e,t,n){return c(()=>{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(l)?e[l]:Object.defineProperty(e,l,{value:[]})[l];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 d=u("Inject",e=>({token:e})),h=u("Optional"),f=u("Self"),p=u("SkipSelf");var m=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}({});function b(e){for(let t in e)if(e[t]===b)return t;throw Error("Could not find renamed property on target object.")}function g(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function _(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function y(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function v(e){return w(e,e[M])||w(e,e[D])}function w(e,t){return t&&t.token===e?t:null}function S(e){return e&&(e.hasOwnProperty(k)||e.hasOwnProperty(T))?e[k]:null}const M=b({"\u0275prov":b}),k=b({"\u0275inj":b}),x=b({"\u0275provFallback":b}),D=b({ngInjectableDef:b}),T=b({ngInjectorDef:b});function C(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(C).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 O(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const L=b({__forward_ref__:b});function R(e){return e.__forward_ref__=R,e.toString=function(){return C(this())},e}function E(e){return A(e)?e():e}function A(e){return"function"==typeof e&&e.hasOwnProperty(L)&&e.__forward_ref__===R}const I="undefined"!=typeof globalThis&&globalThis,P="undefined"!=typeof window&&window,N="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,j="undefined"!=typeof global&&global,F=I||j||P||N,Y=b({"\u0275cmp":b}),z=b({"\u0275dir":b}),$=b({"\u0275pipe":b}),H=b({"\u0275mod":b}),W=b({"\u0275loc":b}),V=b({"\u0275fac":b}),B=b({__NG_ELEMENT_ID__:b});class U{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=_({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return"InjectionToken "+this._desc}}const G=new U("INJECTOR",-1),q={},J=/\n/gm,Q="__source",K=b({provide:String,useValue:b});let Z,X=void 0;function ee(e){const t=X;return X=e,t}function te(e){const t=Z;return Z=e,t}function ne(e,t=m.Default){if(void 0===X)throw new Error("inject() must be called from an injection context");return null===X?re(e,void 0,t):X.get(e,t&m.Optional?null:void 0,t)}function ie(e,t=m.Default){return(Z||ne)(E(e),t)}function re(e,t,n){const i=v(e);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&m.Optional)return null;if(void 0!==t)return t;throw new Error(`Injector: NOT_FOUND [${C(e)}]`)}function se(e){const t=[];for(let n=0;n<e.length;n++){const i=E(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let e=void 0,n=m.Default;for(let t=0;t<i.length;t++){const r=i[t];r instanceof h||"Optional"===r.ngMetadataName||r===h?n|=m.Optional:r instanceof p||"SkipSelf"===r.ngMetadataName||r===p?n|=m.SkipSelf:r instanceof f||"Self"===r.ngMetadataName||r===f?n|=m.Self:e=r instanceof d||r===d?r.token:r}t.push(ie(e,n))}else t.push(ie(i))}return t}class oe{get(e,t=q){if(t===q){const t=new Error(`NullInjectorError: No provider for ${C(e)}!`);throw t.name="NullInjectorError",t}return t}}class ae{}class ce{}function le(e,t){for(let n=0;n<e.length;n++)t.push(e[n])}function ue(e,t){e.forEach(e=>Array.isArray(e)?ue(e,t):t(e))}function de(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function he(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function fe(e,t){const n=[];for(let i=0;i<e;i++)n.push(t);return n}function pe(e,t,n){let i=be(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 me(e,t){const n=be(e,t);if(n>=0)return e[1|n]}function be(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)}var ge=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),_e=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});const ye={},ve=[];let we=0;function Se(e){return c(()=>{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===ge.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||ve,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||_e.Emulated,id:"c",styles:e.styles||ve,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,s=e.pipes;return n.id+=we++,n.inputs=Ce(e.inputs,t),n.outputs=Ce(e.outputs),r&&r.forEach(e=>e(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(Me):null,n.pipeDefs=s?()=>("function"==typeof s?s():s).map(ke):null,n})}function Me(e){return Re(e)||function(e){return e[z]||null}(e)}function ke(e){return function(e){return e[$]||null}(e)}const xe={};function De(e){const t={type:e.type,bootstrap:e.bootstrap||ve,declarations:e.declarations||ve,imports:e.imports||ve,exports:e.exports||ve,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&c(()=>{xe[e.id]=e.type}),t}function Te(e,t){return c(()=>{const n=Ae(e,!0);n.declarations=t.declarations||ve,n.imports=t.imports||ve,n.exports=t.exports||ve})}function Ce(e,t){if(null==e)return ye;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=Se;function Le(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Re(e){return e[Y]||null}function Ee(e,t){return e.hasOwnProperty(V)?e[V]:null}function Ae(e,t){const n=e[H]||null;if(!n&&!0===t)throw new Error(`Type ${C(e)} does not have '\u0275mod' property.`);return n}const Ie=20,Pe=10;function Ne(e){return Array.isArray(e)&&"object"==typeof e[1]}function je(e){return Array.isArray(e)&&!0===e[1]}function Fe(e){return 0!=(8&e.flags)}function Ye(e){return 2==(2&e.flags)}function ze(e){return 1==(1&e.flags)}function $e(e){return null!==e.template}function He(e){return 0!=(512&e[2])}class We{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function Ve(){return Be}function Be(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ge),Ue}function Ue(){const e=qe(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===ye)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function Ge(e,t,n,i){const r=qe(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:ye,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],c=o[a];s[a]=new We(c&&c.currentValue,t,o===ye),e[i]=t}function qe(e){return e.__ngSimpleChanges__||null}Ve.ngInherit=!0;let Je=void 0;function Qe(e){Je=e}function Ke(){return void 0!==Je?Je:"undefined"!=typeof document?document:void 0}function Ze(e){return!!e.listen}const Xe={createRenderer:(e,t)=>Ke()};function et(e){for(;Array.isArray(e);)e=e[0];return e}function tt(e,t){return et(t[e+Ie])}function nt(e,t){return et(t[e.index])}function it(e,t){return e.data[t+Ie]}function rt(e,t){return e[t+Ie]}function st(e,t){const n=t[e];return Ne(n)?n:n[0]}function ot(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function at(e){return 4==(4&e[2])}function ct(e){return 128==(128&e[2])}function lt(e,t){return null===e||null==t?null:e[t]}function ut(e){e[18]=0}function dt(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 ht={lFrame:Pt(null),bindingsEnabled:!0,checkNoChangesMode:!1};function ft(){return ht.bindingsEnabled}function pt(){return ht.lFrame.lView}function mt(){return ht.lFrame.tView}function bt(e){ht.lFrame.contextLView=e}function gt(){return ht.lFrame.currentTNode}function _t(e,t){ht.lFrame.currentTNode=e,ht.lFrame.isParent=t}function yt(){return ht.lFrame.isParent}function vt(){ht.lFrame.isParent=!1}function wt(){return ht.checkNoChangesMode}function St(e){ht.checkNoChangesMode=e}function Mt(){const e=ht.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function kt(){return ht.lFrame.bindingIndex}function xt(){return ht.lFrame.bindingIndex++}function Dt(e){const t=ht.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Tt(e,t){const n=ht.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ct(t)}function Ct(e){ht.lFrame.currentDirectiveIndex=e}function Ot(e){const t=ht.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Lt(){return ht.lFrame.currentQueryIndex}function Rt(e){ht.lFrame.currentQueryIndex=e}function Et(e,t){const n=It();ht.lFrame=n,n.currentTNode=t,n.lView=e}function At(e){const t=It(),n=e[1];ht.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex}function It(){const e=ht.lFrame,t=null===e?null:e.child;return null===t?Pt(e):t}function Pt(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function Nt(){const e=ht.lFrame;return ht.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const jt=Nt;function Ft(){const e=Nt();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Yt(){return ht.lFrame.selectedIndex}function zt(e){ht.lFrame.selectedIndex=e}function $t(){const e=ht.lFrame;return it(e.tView,e.selectedIndex)}function Ht(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 Wt(e,t,n){Ut(e,t,3,n)}function Vt(e,t,n,i){(3&e[2])===n&&Ut(e,t,n,i)}function Bt(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Ut(e,t,n,i){const r=null!=i?i:-1;let s=0;for(let o=void 0!==i?65535&e[18]:0;o<t.length;o++)if("number"==typeof t[o+1]){if(s=t[o],null!=i&&s>=i)break}else t[o]<0&&(e[18]+=65536),(s<r||-1==r)&&(Gt(e,n,t,o),e[18]=(4294901760&e[18])+o+2),o++}function Gt(e,t,n,i){const r=n[i]<0,s=n[i+1],o=e[r?-n[i]:n[i]];r?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,s.call(o)):s.call(o)}const qt=-1;class Jt{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function Qt(e,t,n){const i=Ze(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];Zt(o)?i&&e.setProperty(t,o,a):i?e.setAttribute(t,o,a):t.setAttribute(o,a),r++}}return r}function Kt(e){return 3===e||4===e||6===e}function Zt(e){return 64===e.charCodeAt(0)}function Xt(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||en(e,n,r,null,-1===n||2===n?t[++i]:null)}}return e}function en(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 tn(e){return e!==qt}function nn(e){return 32767&e}function rn(e,t){let n=e>>16,i=t;for(;n>0;)i=i[15],n--;return i}function sn(e){return"string"==typeof e?e:null==e?"":""+e}function on(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():sn(e)}const an=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(F))();function cn(e){return{name:"window",target:e.ownerDocument.defaultView}}function ln(e){return{name:"body",target:e.ownerDocument.body}}function un(e){return e instanceof Function?e():e}let dn=!0;function hn(e){const t=dn;return dn=e,t}let fn=0;function pn(e,t){const n=bn(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,mn(i.data,e),mn(t,null),mn(i.blueprint,null));const r=gn(e,t),s=e.injectorIndex;if(tn(r)){const e=nn(r),n=rn(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 mn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function bn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function gn(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 qt;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return qt}function _n(e,t,n){!function(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(B)&&(i=n[B]),null==i&&(i=n[B]=fn++);const r=255&i,s=1<<r,o=64&r,a=32&r,c=t.data;128&r?o?a?c[e+7]|=s:c[e+6]|=s:a?c[e+5]|=s:c[e+4]|=s:o?a?c[e+3]|=s:c[e+2]|=s:a?c[e+1]|=s:c[e]|=s}(e,t,n)}function yn(e,t,n,i=m.Default,r){if(null!==e){const r=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(B)?e[B]:void 0;return"number"==typeof t&&t>0?255&t:t}(n);if("function"==typeof r){Et(t,e);try{const e=r();if(null!=e||i&m.Optional)return e;throw new Error(`No provider for ${on(n)}!`)}finally{jt()}}else if("number"==typeof r){if(-1===r)return new Dn(e,t);let s=null,o=bn(e,t),a=qt,c=i&m.Host?t[16][6]:null;for((-1===o||i&m.SkipSelf)&&(a=-1===o?gn(e,t):t[o+8],a!==qt&&xn(i,!1)?(s=t[1],o=nn(a),t=rn(a,t)):o=-1);-1!==o;){const e=t[1];if(kn(r,o,e.data)){const e=wn(o,t,n,s,i,c);if(e!==vn)return e}a=t[o+8],a!==qt&&xn(i,t[1].data[o+8]===c)&&kn(r,o,t)?(s=e,o=nn(a),t=rn(a,t)):o=-1}}}if(i&m.Optional&&void 0===r&&(r=null),0==(i&(m.Self|m.Host))){const e=t[9],s=te(void 0);try{return e?e.get(n,r,i&m.Optional):re(n,r,i&m.Optional)}finally{te(s)}}if(i&m.Optional)return r;throw new Error(`NodeInjector: NOT_FOUND [${on(n)}]`)}const vn={};function wn(e,t,n,i,r,s){const o=t[1],a=o.data[e+8],c=Sn(a,o,n,null==i?Ye(a)&&dn:i!=o&&2===a.type,r&m.Host&&s===a);return null!==c?Mn(t,o,c,a):vn}function Sn(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&&$e(e)&&e.type===n)return c}return null}function Mn(e,t,n,i){let r=e[n];const s=t.data;if(r instanceof Jt){const o=r;if(o.resolving)throw new Error("Circular dep for "+on(s[n]));const a=hn(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?te(o.injectImpl):null;Et(e,i);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=Be(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&&te(c),hn(a),o.resolving=!1,jt()}}return r}function kn(e,t,n){const i=64&e,r=32&e;let s;return s=128&e?i?r?n[t+7]:n[t+6]:r?n[t+5]:n[t+4]:i?r?n[t+3]:n[t+2]:r?n[t+1]:n[t],!!(s&1<<e)}function xn(e,t){return!(e&m.Self||e&m.Host&&t)}class Dn{constructor(e,t){this._tNode=e,this._lView=t}get(e,t){return yn(this._tNode,this._lView,e,void 0,t)}}function Tn(e){const t=e;if(A(e))return()=>{const e=Tn(E(t));return e?e():null};let n=Ee(t);if(null===n){const e=S(t);n=e&&e.factory}return n||null}function Cn(e){return c(()=>{const t=e.prototype.constructor,n=t[V]||Tn(t),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const e=r[V]||Tn(r);if(e&&e!==n)return e;r=Object.getPrototypeOf(r)}return e=>new e})}function On(e){return e.ngDebugContext}function Ln(e){return e.ngOriginalError}function Rn(e,...t){e.error(...t)}class En{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e.ngErrorLogger||Rn}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?On(e)?On(e):this._findContext(Ln(e)):null}_findOriginalError(e){let t=Ln(e);for(;t&&Ln(t);)t=Ln(t);return t}}class An{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class In extends An{getTypeName(){return"HTML"}}class Pn extends An{getTypeName(){return"Style"}}class Nn extends An{getTypeName(){return"Script"}}class jn extends An{getTypeName(){return"URL"}}class Fn extends An{getTypeName(){return"ResourceURL"}}function Yn(e){return e instanceof An?e.changingThisBreaksApplicationSecurity:e}function zn(e,t){const n=$n(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===t}function $n(e){return e instanceof An&&e.getTypeName()||null}function Hn(e){return new In(e)}function Wn(e){return new Pn(e)}function Vn(e){return new Nn(e)}function Bn(e){return new jn(e)}function Un(e){return new Fn(e)}let Gn=!0,qn=!1;function Jn(){return qn=!0,Gn}function Qn(){if(qn)throw new Error("Cannot enable prod mode after platform setup.");Gn=!1}function Kn(e){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(e){return!1}}()?new Zn:new Xn(e)}class Zn{getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(t){return null}}}class Xn{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=e,t;const n=this.inertDocument.createElement("body");return n.innerHTML=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 ei=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,ti=/^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 ni(e){return(e=String(e)).match(ei)||e.match(ti)?e:(Jn()&&console.warn(`WARNING: sanitizing unsafe URL value ${e} (see http://g.co/ng/security#xss)`),"unsafe:"+e)}function ii(e){return(e=String(e)).split(",").map(e=>ni(e.trim())).join(", ")}function ri(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function si(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const oi=ri("area,br,col,hr,img,wbr"),ai=ri("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ci=ri("rp,rt"),li=si(ci,ai),ui=si(oi,si(ai,ri("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")),si(ci,ri("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")),li),di=ri("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),hi=ri("srcset"),fi=si(di,hi,ri("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"),ri("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")),pi=ri("script,style,template");class mi{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(!ui.hasOwnProperty(t))return this.sanitizedSomething=!0,!pi.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(!fi.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let s=e.value;di[r]&&(s=ni(s)),hi[r]&&(s=ii(s)),this.buf.push(" ",t,'="',_i(s),'"')}return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();ui.hasOwnProperty(t)&&!oi.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(_i(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 bi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gi=/([^\#-~ |!])/g;function _i(e){return e.replace(/&/g,"&amp;").replace(bi,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(gi,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let yi;function vi(e,t){let n=null;try{yi=yi||Kn(e);let i=t?String(t):"";n=yi.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=yi.getInertBodyElement(i)}while(i!==s);const o=new mi,a=o.sanitizeChildren(wi(n)||n);return Jn()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const e=wi(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function wi(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Si=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=Di();return t?t.sanitize(Si.HTML,e)||"":zn(e,"HTML")?Yn(e):vi(Ke(),sn(e))}function ki(e){const t=Di();return t?t.sanitize(Si.URL,e)||"":zn(e,"URL")?Yn(e):ni(sn(e))}function xi(e){const t=Di();if(t)return t.sanitize(Si.RESOURCE_URL,e)||"";if(zn(e,"ResourceURL"))return Yn(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}function Di(){const e=pt();return e&&e[12]}function Ti(e,t){e.__ngContext__=t}function Ci(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 Oi="ng-template";function Li(e,t,n){let i=0;for(;i<e.length;){let r=e[i++];if(n&&"class"===r){if(r=e[i],-1!==Ci(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 Ri(e){return 0===e.type&&e.tagName!==Oi}function Ei(e,t,n){return t===(0!==e.type||n?e.tagName:Oi)}function Ai(e,t,n){let i=4;const r=e.attrs||[],s=function(e){for(let t=0;t<e.length;t++)if(Kt(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&&!Ei(e,c,n)||""===c&&1===t.length){if(Ii(i))return!1;o=!0}}else{const l=8&i?c:t[++a];if(8&i&&null!==e.attrs){if(!Li(e.attrs,l,n)){if(Ii(i))return!1;o=!0}continue}const u=Pi(8&i?"class":c,r,Ri(e),n);if(-1===u){if(Ii(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!==Ci(t,l,0)||2&i&&l!==e){if(Ii(i))return!1;o=!0}}}}else{if(!o&&!Ii(i)&&!Ii(c))return!1;if(o&&Ii(c))continue;o=!1,i=c|1&i}}return Ii(i)||o}function Ii(e){return 0==(1&e)}function Pi(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 Ni(e,t,n=!1){for(let i=0;i<t.length;i++)if(Ai(e,t[i],n))return!0;return!1}function ji(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 Fi(e,t){return e?":not("+t.trim()+")":t}function Yi(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||Ii(o)||(t+=Fi(s,r),r=""),i=o,s=s||!Ii(i);n++}return""!==r&&(t+=Fi(s,r)),t}const zi={};function $i(e){const t=e[3];return je(t)?t[3]:t}function Hi(e){return Vi(e[13])}function Wi(e){return Vi(e[4])}function Vi(e){for(;null!==e&&!je(e);)e=e[4];return e}function Bi(e){Ui(mt(),pt(),Yt()+e,wt())}function Ui(e,t,n,i){if(!i)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&Wt(t,i,n)}else{const i=e.preOrderHooks;null!==i&&Vt(t,i,0,n)}zt(n)}function Gi(e,t){return e<<17|t<<2}function qi(e){return e>>17&32767}function Ji(e){return 2|e}function Qi(e){return(131068&e)>>2}function Ki(e,t){return-131069&e|t<<2}function Zi(e){return 1|e}function Xi(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];Rt(r),n.contentQueries(2,t[s],s)}}}function er(e,t,n){return Ze(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function tr(e,t,n,i,r,s,o,a,c,l){const u=t.blueprint.slice();return u[0]=r,u[2]=140|i,ut(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 nr(e,t,n,i,r){const s=t+Ie,o=e.data[s]||function(e,t,n,i,r){const s=gt(),o=yt(),a=e.data[t]=function(e,t,n,i,r,s){return{type:n,index:i,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName: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:o||(s.next=a)),a}(e,s,n,i,r);return _t(o,!0),o}function ir(e,t,n){At(t);try{const i=e.viewQuery;null!==i&&Pr(1,i,n);const r=e.template;null!==r&&or(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Xi(e,t),e.staticViewQueries&&Pr(2,e.viewQuery,n);const s=e.components;null!==s&&function(e,t){for(let n=0;n<t.length;n++)Lr(e,t[n])}(t,s)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),i}finally{t[2]&=-5,Ft()}}function rr(e,t,n,i){const r=t[2];if(256==(256&r))return;At(t);const s=wt();try{ut(t),ht.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&or(e,t,n,2,i);const o=3==(3&r);if(!s)if(o){const n=e.preOrderCheckHooks;null!==n&&Wt(t,n,null)}else{const n=e.preOrderHooks;null!==n&&Vt(t,n,0,null),Bt(t,0)}if(function(e){for(let t=Hi(e);null!==t;t=Wi(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])&&dt(i,1),n[2]|=1024}}}(t),function(e){for(let t=Hi(e);null!==t;t=Wi(t))for(let e=Pe;e<t.length;e++){const n=t[e],i=n[1];ct(n)&&rr(i,n,i.template,n[8])}}(t),null!==e.contentQueries&&Xi(e,t),!s)if(o){const n=e.contentCheckHooks;null!==n&&Wt(t,n)}else{const n=e.contentHooks;null!==n&&Vt(t,n,1),Bt(t,1)}!function(e,t){try{const n=e.expandoInstructions;if(null!==n){let i=e.expandoStartIndex,r=-1,s=-1;for(let e=0;e<n.length;e++){const o=n[e];"number"==typeof o?o<=0?(s=0-o,zt(s),i+=9+n[++e],r=i):i+=o:(null!==o&&(Tt(i,r),o(2,t[r])),r++)}}}finally{zt(-1)}}(e,t);const a=e.components;null!==a&&function(e,t){for(let n=0;n<t.length;n++)Or(e,t[n])}(t,a);const c=e.viewQuery;if(null!==c&&Pr(2,c,i),!s)if(o){const n=e.viewCheckHooks;null!==n&&Wt(t,n)}else{const n=e.viewHooks;null!==n&&Vt(t,n,2),Bt(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),s||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,dt(t[3],-1))}finally{Ft()}}function sr(e,t,n,i){const r=t[10],s=!wt(),o=at(t);try{s&&!o&&r.begin&&r.begin(),o&&ir(e,t,i),rr(e,t,n,i)}finally{s&&!o&&r.end&&r.end()}}function or(e,t,n,i,r){const s=Yt();try{zt(-1),2&i&&t.length>Ie&&Ui(e,t,0,wt()),n(i,r)}finally{zt(s)}}function ar(e,t,n){if(Fe(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 cr(e,t,n){ft()&&(function(e,t,n,i){const r=n.directiveStart,s=n.directiveEnd;e.firstCreatePass||pn(n,t),Ti(i,t);const o=n.initialInputs;for(let a=r;a<s;a++){const i=e.data[a],s=$e(i);s&&kr(t,n,i);const c=Mn(t,e,a,n);Ti(c,t),null!==o&&Dr(0,a-r,c,i,0,o),s&&(st(n.index,t)[8]=c)}}(e,t,n,nt(n,t)),128==(128&n.flags)&&function(e,t,n){const i=n.directiveStart,r=n.directiveEnd,s=e.expandoInstructions,o=e.firstCreatePass,a=n.index-Ie,c=ht.lFrame.currentDirectiveIndex;try{zt(a);for(let n=i;n<r;n++){const i=e.data[n],r=t[n];Ct(n),null!==i.hostBindings||0!==i.hostVars||null!==i.hostAttrs?_r(i,r):o&&s.push(null)}}finally{zt(-1),Ct(c)}}(e,t,n))}function lr(e,t,n=nt){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 ur(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=dr(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function dr(e,t,n,i,r,s,o,a,c,l){const u=Ie+i,d=u+r,h=function(e,t){const n=[];for(let i=0;i<t;i++)n.push(i<e?null:zi);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,expandoInstructions: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 hr(e,t,n,i){const r=jr(t);r.push(n),e.firstCreatePass&&function(e){return e.cleanup||(e.cleanup=[])}(e).push(i,r.length-1)}function fr(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 pr(e,t,n,i,r,s,o,a){const c=nt(t,n);let l,u=t.inputs;var d;!a&&null!=u&&(l=u[i])?(Yr(e,n,l,i,r),Ye(t)&&function(e,t){const n=st(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):2===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.tagName||"",i):r,Ze(s)?s.setProperty(c,i,r):Zt(i)||(c.setProperty?c.setProperty(i,r):c[i]=r))}function mr(e,t,n,i){let r=!1;if(ft()){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];Ni(n,o.selectors,!1)&&(r||(r=[]),_n(pn(n,t),e,o.type),$e(o)?(vr(e,n),r.unshift(o)):r.push(o))}return r}(e,t,n),o=null===i?null:{"":-1};if(null!==s){let i=0;r=!0,Sr(n,e.data.length,s.length);for(let e=0;e<s.length;e++){const t=s[e];t.providersResolver&&t.providersResolver(t)}yr(e,n,s.length);let a=!1,c=!1;for(let r=0;r<s.length;r++){const l=s[r];n.mergedAttrs=Xt(n.mergedAttrs,l.hostAttrs),Mr(e,t,l),wr(e.data.length-1,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;!a&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index-Ie),a=!0),c||!u.ngOnChanges&&!u.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index-Ie),c=!0),br(e,l),i+=l.hostVars}!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||Ri(t)?null:Tr(n,r);s.push(l),o=fr(n,c,o),a=fr(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),gr(e,t,i)}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 Error(`Export of name '${t[e+1]}' not found!`);i.push(t[e],r)}}}(n,i,o)}return n.mergedAttrs=Xt(n.mergedAttrs,n.attrs),r}function br(e,t){const n=e.expandoInstructions;n.push(t.hostBindings),0!==t.hostVars&&n.push(t.hostVars)}function gr(e,t,n){for(let i=0;i<n;i++)t.push(zi),e.blueprint.push(zi),e.data.push(null)}function _r(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function yr(e,t,n){const i=Ie-t.index,r=e.data.length-(1048575&t.providerIndexes);(e.expandoInstructions||(e.expandoInstructions=[])).push(i,r,n)}function vr(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function wr(e,t,n){if(n){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;$e(t)&&(n[""]=e)}}function Sr(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Mr(e,t,n){e.data.push(n);const i=n.factory||(n.factory=Ee(n.type)),r=new Jt(i,$e(n),null);e.blueprint.push(r),t.push(r)}function kr(e,t,n){const i=nt(t,e),r=ur(n),s=e[10],o=Rr(e,tr(e,r,null,n.onPush?64:16,i,t,s,s.createRenderer(i,n),null,null));e[t.index]=o}function xr(e,t,n,i,r,s){const o=nt(e,t),a=t[11];if(null==i)Ze(a)?a.removeAttribute(o,n,s):o.removeAttribute(n);else{const t=null==r?sn(i):r(i,e.tagName||"",n);Ze(a)?a.setAttribute(o,n,t,s):s?o.setAttributeNS(s,n,t):o.setAttribute(n,t)}}function Dr(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 Tr(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 Cr(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function Or(e,t){const n=st(t,e);if(ct(n)){const e=n[1];80&n[2]?rr(e,n,e.template,n[8]):n[5]>0&&function e(t){for(let i=Hi(t);null!==i;i=Wi(i))for(let t=Pe;t<i.length;t++){const n=i[t];if(1024&n[2]){const e=n[1];rr(e,n,e.template,n[8])}else n[5]>0&&e(n)}const n=t[1].components;if(null!==n)for(let i=0;i<n.length;i++){const r=st(n[i],t);ct(r)&&r[5]>0&&e(r)}}(n)}}function Lr(e,t){const n=st(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),ir(i,n,n[8])}function Rr(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Er(e){for(;e;){e[2]|=64;const t=$i(e);if(He(e)&&!t)return e;e=t}return null}function Ar(e,t,n){const i=t[10];i.begin&&i.begin();try{rr(e,t,e.template,n)}catch(r){throw Fr(t,r),r}finally{i.end&&i.end()}}function Ir(e){!function(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],i=ot(n),r=i[1];sr(r,i,r.template,n)}}(e[8])}function Pr(e,t,n){Rt(0),t(e,n)}const Nr=(()=>Promise.resolve(null))();function jr(e){return e[7]||(e[7]=[])}function Fr(e,t){const n=e[9],i=n?n.get(En,null):null;i&&i.handleError(t)}function Yr(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 zr(e,t,n){const i=tt(t,e),r=e[11];Ze(r)?r.setValue(i,n):i.textContent=n}function $r(e,t,n,i,r){if(null!=i){let s,o=!1;je(i)?s=i:Ne(i)&&(o=!0,i=i[0]);const a=et(i);0===e&&null!==n?null==r?Jr(t,n,a):qr(t,n,a,r||null):1===e&&null!==n?qr(t,n,a,r||null):2===e?es(t,a,o):3===e&&t.destroyNode(a),null!=s&&function(e,t,n,i,r){const s=n[7];s!==et(n)&&$r(t,e,i,s,r);for(let o=Pe;o<n.length;o++){const r=n[o];ns(r[1],r,e,t,i,s)}}(t,e,s,n,r)}}function Hr(e,t){return Ze(t)?t.createText(e):t.createTextNode(e)}function Wr(e,t){const n=e[9],i=n.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,dt(r,-1)),n.splice(i,1)}function Vr(e,t){if(e.length<=Pe)return;const n=Pe+t,i=e[n];if(i){const s=i[17];null!==s&&s!==e&&Wr(s,i),t>0&&(e[n-1][4]=i[4]);const o=he(e,Pe+t);ns(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 Br(e,t){if(!(256&t[2])){const n=t[11];Ze(n)&&n.destroyNode&&ns(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Ur(e[1],e);for(;t;){let n=null;if(Ne(t))n=t[13];else{const e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)Ne(t)&&Ur(t[1],t),t=t[3];null===t&&(t=e),Ne(t)&&Ur(t[1],t),n=t&&t[4]}t=n}}(t)}}function Ur(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 Jt)){const t=n[i+1];if(Array.isArray(t))for(let n=0;n<t.length;n+=2)t[n+1].call(e[t[n]]);else t.call(e)}}}(e,t),function(e,t){const n=e.cleanup;if(null!==n){const e=t[7];for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const r=n[i+1],s="function"==typeof r?r(t):et(t[r]),o=e[n[i+2]],a=n[i+3];"boolean"==typeof a?s.removeEventListener(n[i],o,a):a>=0?e[a]():e[-a].unsubscribe(),i+=2}else n[i].call(e[n[i+1]]);t[7]=null}}(e,t),1===t[1].type&&Ze(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&je(t[3])){n!==t[3]&&Wr(n,t);const i=t[19];null!==i&&i.detachView(e)}}}function Gr(e,t,n){let i=t.parent;for(;null!=i&&(3===i.type||4===i.type);)i=(t=i).parent;if(null===i)return n[0];if(t&&4===t.type&&4&t.flags)return nt(t,n).parentNode;if(2&i.flags){const t=e.data,n=t[t[i.index].directiveStart].encapsulation;if(n!==_e.ShadowDom&&n!==_e.Native)return null}return nt(i,n)}function qr(e,t,n,i){Ze(e)?e.insertBefore(t,n,i):t.insertBefore(n,i,!0)}function Jr(e,t,n){Ze(e)?e.appendChild(t,n):t.appendChild(n)}function Qr(e,t,n,i){null!==i?qr(e,t,n,i):Jr(e,t,n)}function Kr(e,t){return Ze(e)?e.parentNode(t):t.parentNode}function Zr(e,t){return 3===e.type||4===e.type?nt(e,t):null}function Xr(e,t,n,i){const r=Gr(e,i,t);if(null!=r){const e=t[11],s=Zr(i.parent||t[6],t);if(Array.isArray(n))for(let t=0;t<n.length;t++)Qr(e,r,n[t],s);else Qr(e,r,n,s)}}function es(e,t,n){const i=Kr(e,t);i&&function(e,t,n,i){Ze(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}function ts(e,t,n,i,r,s,o){for(;null!=n;){const a=i[n.index],c=n.type;o&&0===t&&(a&&Ti(et(a),i),n.flags|=4),64!=(64&n.flags)&&(3===c||4===c?(ts(e,t,n.child,i,r,s,!1),$r(t,e,r,a,s)):1===c?rs(e,t,i,n,r,s):$r(t,e,r,a,s)),n=o?n.projectionNext:n.next}}function ns(e,t,n,i,r,s){ts(n,i,e.firstChild,t,r,s,!1)}function is(e,t,n){rs(t[11],0,t,n,Gr(e,n,t),Zr(n.parent||t[6],t))}function rs(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++)$r(t,e,r,a[c],s);else ts(e,t,a,o[3],r,s,!0)}function ss(e,t,n){Ze(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function os(e,t,n){Ze(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}class as{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const e=this._lView,t=e[1];return function e(t,n,i,r,s=!1){for(;null!==i;){const o=n[i.index];if(null!==o&&r.push(et(o)),je(o))for(let t=Pe;t<o.length;t++){const n=o[t],i=n[1].firstChild;null!==i&&e(n[1],n,i,r)}const a=i.type;if(3===a||4===a)e(t,n,i.child,r);else if(1===a){const t=n[16],s=t[6].projection[i.projection];if(Array.isArray(s))r.push(...s);else{const n=$i(t);e(n[1],n,s,r,!0)}}i=s?i.projectionNext:i.next}return r}(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._viewContainerRef){const e=this._viewContainerRef.indexOf(this);e>-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Br(this._lView[1],this._lView)}onDestroy(e){hr(this._lView[1],this._lView,null,e)}markForCheck(){Er(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Ar(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){St(!0);try{Ar(e,t,n)}finally{St(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}detachFromAppRef(){var e;this._appRef=null,ns(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class cs extends as{constructor(e){super(e),this._view=e}detectChanges(){Ir(this._view)}checkNoChanges(){!function(e){St(!0);try{Ir(e)}finally{St(!1)}}(this._view)}get context(){return null}}let ls,us,ds;function hs(e,t,n){return ls||(ls=class extends e{}),new ls(nt(t,n))}function fs(e,t,n,i){return us||(us=class extends e{constructor(e,t,n){super(),this._declarationView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=tr(this._declarationView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationView[this._declarationTContainer.index];const i=this._declarationView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),ir(t,n,e),new as(n)}}),0===n.type?new us(i,n,hs(t,n,i)):null}function ps(e,t,n,i){let r;ds||(ds=class extends e{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostView=n}get element(){return hs(t,this._hostTNode,this._hostView)}get injector(){return new Dn(this._hostTNode,this._hostView)}get parentInjector(){const e=gn(this._hostTNode,this._hostView);if(tn(e)){const t=rn(e,this._hostView),n=nn(e);return new Dn(t[1].data[n+8],t)}return new Dn(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}get length(){return this._lContainer.length-Pe}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(ae,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(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),je(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],i=new ds(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=Pe+i,s=n.length;i>0&&(n[r-1][4]=t),i<s-Pe?(t[4]=n[r],de(n,Pe+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=function e(t,n){const i=Pe+t+1;if(i<n.length){const t=n[i],r=t[1].firstChild;if(null!==r)return function t(n,i){if(null!==i){const r=i.type;if(2===r)return nt(i,n);if(0===r)return e(-1,n[i.index]);if(3===r||4===r){const r=i.child;if(null!==r)return t(n,r);{const t=n[i.index];return je(t)?e(-1,t):et(t)}}{const e=n[16],r=e[6],s=$i(e),o=r.projection[i.projection];return null!=o?t(s,o):t(n,i.next)}}return null}(t,r)}return n[7]}(r,s),a=n[11],c=Kr(a,s[7]);return null!==c&&function(e,t,n,i,r,s){i[0]=r,i[6]=t,ns(e,i,n,1,r,s)}(i,s[6],a,n,c,o),e.attachToViewContainerRef(this),de(s[8],r,e),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(e,t)}indexOf(e){const t=this._lContainer[8];return null!==t?t.indexOf(e):-1}remove(e){this.allocateContainerIfNeeded();const t=this._adjustIndex(e,-1),n=Vr(this._lContainer,t);n&&(he(this._lContainer[8],t),Br(n[1],n))}detach(e){this.allocateContainerIfNeeded();const t=this._adjustIndex(e,-1),n=Vr(this._lContainer,t);return n&&null!=he(this._lContainer[8],t)?new as(n):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const s=i[n.index];if(je(s))r=s;else{let e;if(3===n.type)e=et(s);else if(e=i[11].createComment(""),He(i)){const t=i[11],r=nt(n,i);qr(t,Kr(t,r),e,function(e,t){return Ze(e)?e.nextSibling(t):t.nextSibling}(t,r))}else Xr(i[1],i,e,n);i[n.index]=r=Cr(s,i,e,n),Rr(i,r)}return new ds(r,n,i)}function ms(e=!1){return function(e,t,n){if(!n&&Ye(e)){const n=st(e.index,t);return new as(n,n)}return 2===e.type||0===e.type||3===e.type||4===e.type?new as(t[16],t):null}(gt(),pt(),e)}let bs=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>gs(),e})();const gs=ms,_s=Function,ys=new U("Set Injector scope."),vs={},ws={},Ss=[];let Ms=void 0;function ks(){return void 0===Ms&&(Ms=new oe),Ms}function xs(e,t=null,n=null,i){return new Ds(e,n,t||ks(),i)}class Ds{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&&ue(t,n=>this.processProvider(n,e,t)),ue([e],e=>this.processInjectorType(e,[],r)),this.records.set(G,Os(void 0,this));const s=this.records.get(ys);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof e?null:C(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=q,n=m.Default){this.assertNotDestroyed();const i=ee(this);try{if(!(n&m.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(r=e)||"object"==typeof r&&r instanceof U)&&v(e);t=n&&this.injectableDefInScope(n)?Os(Ts(e),vs):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&m.Self?ks():this.parent).get(e,t=n&m.Optional&&t===q?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(C(e)),i)throw s;return function(e,t,n,i){const r=e.ngTempTokenPath;throw t[Q]&&r.unshift(t[Q]),e.message=function(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=C(t);if(Array.isArray(t))r=t.map(C).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):C(i)))}r=`{${e.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${e.replace(J,"\n  ")}`}("\n"+e.message,r,n,i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(s,e,"R3InjectorError",this.source)}throw s}finally{ee(i)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(C(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=E(e)))return!1;let i=S(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=S(r)),null==i)return!1;if(null!=i.imports&&!o){let e;n.push(s);try{ue(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];ue(i,e=>this.processProvider(e,n,i||Ss))}}this.injectorDefTypes.add(s),this.records.set(s,Os(i.factory,vs));const a=i.providers;if(null!=a&&!o){const t=e;ue(a,e=>this.processProvider(e,t,a))}return void 0!==r&&void 0!==e.providers}processProvider(e,t,n){let i=Rs(e=E(e))?e:E(e&&e.provide);const r=function(e,t,n){return Ls(e)?Os(void 0,e.useValue):Os(Cs(e),vs)}(e);if(Rs(e)||!0!==e.multi)this.records.get(i);else{let t=this.records.get(i);t||(t=Os(void 0,vs,!0),t.factory=()=>se(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===vs&&(t.value=ws,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 Ts(e){const t=v(e),n=null!==t?t.factory:Ee(e);if(null!==n)return n;const i=S(e);if(null!==i)return i.factory;if(e instanceof U)throw new Error(`Token ${C(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=fe(t,"?");throw new Error(`Can't resolve all parameters for ${C(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[M]||e[D]||e[x]&&e[x]());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 Cs(e,t,n){let i=void 0;if(Rs(e)){const t=E(e);return Ee(t)||Ts(t)}if(Ls(e))i=()=>E(e.useValue);else if((r=e)&&r.useFactory)i=()=>e.useFactory(...se(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))i=()=>ie(E(e.useExisting));else{const t=E(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Ee(t)||Ts(t);i=()=>new t(...se(e.deps))}var r;return i}function Os(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Ls(e){return null!==e&&"object"==typeof e&&K in e}function Rs(e){return"function"==typeof e}const Es=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 As=(()=>{class e{static create(e,t){return Array.isArray(e)?Es(e,t,""):Es(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=q,e.NULL=new oe,e.\u0275prov=_({token:e,providedIn:"any",factory:()=>ie(G)}),e.__NG_ELEMENT_ID__=-1,e})();const Is=new U("AnalyzeForEntryComponents");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=O(r,e):2==s&&(i=O(i,e+": "+t[++o]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=r:e.classesWithoutHost=r}function Ns(e,t){const n=ot(e)[1],i=n.data.length-1;Ht(n,{directiveStart:i,directiveEnd:i+1})}function js(e){let t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0;const i=[e];for(;t;){let r=void 0;if($e(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=Fs(e.inputs),t.declaredInputs=Fs(e.declaredInputs),t.outputs=Fs(e.outputs);const n=r.hostBindings;n&&$s(e,n);const s=r.viewQuery,o=r.contentQueries;if(s&&Ys(e,s),o&&zs(e,o),g(e.inputs,r.inputs),g(e.declaredInputs,r.declaredInputs),g(e.outputs,r.outputs),$e(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===js&&(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=Xt(r.hostAttrs,n=Xt(n,r.hostAttrs))}}(i)}function Fs(e){return e===ye?{}:e===ve?[]:e}function Ys(e,t){const n=e.viewQuery;e.viewQuery=n?(e,i)=>{t(e,i),n(e,i)}:t}function zs(e,t){const n=e.contentQueries;e.contentQueries=n?(e,i,r)=>{t(e,i,r),n(e,i,r)}:t}function $s(e,t){const n=e.hostBindings;e.hostBindings=n?(e,i)=>{t(e,i),n(e,i)}:t}let Hs=null;function Ws(){if(!Hs){const e=F.Symbol;if(e&&e.iterator)Hs=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&&(Hs=n)}}}return Hs}class Vs{constructor(e){this.wrapped=e}static wrap(e){return new Vs(e)}static unwrap(e){return Vs.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof Vs}}function Bs(e){return!!Us(e)&&(Array.isArray(e)||!(e instanceof Map)&&Ws()in e)}function Us(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Gs(e,t,n){return e[t]=n}function qs(e,t){return e[t]}function Js(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Qs(e,t,n,i){const r=Js(e,t,n);return Js(e,t+1,i)||r}function Ks(e,t,n,i,r){const s=Qs(e,t,n,i);return Js(e,t+2,r)||s}function Zs(e,t,n,i,r,s){const o=Qs(e,t,n,i);return Qs(e,t+2,r,s)||o}function Xs(e,t,n,i){const r=pt();return Js(r,xt(),t)&&(mt(),xr($t(),r,e,t,n,i)),Xs}function eo(e,t,n,i){return Js(e,xt(),n)?t+sn(n)+i:zi}function to(e,t,n,i,r,s){const o=Qs(e,kt(),n,r);return Dt(2),o?t+sn(n)+i+sn(r)+s:zi}function no(e,t,n,i,r,s,o,a){const c=pt(),l=mt(),u=e+Ie,d=l.firstCreatePass?function(e,t,n,i,r,s,o,a,c){const l=t.consts,u=nr(t,e,0,o||null,lt(l,a));mr(t,n,u,lt(l,c)),Ht(t,u);const d=u.tViews=dr(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}(e,l,c,t,n,i,r,s,o):l.data[u];_t(d,!1);const h=c[11].createComment("");Xr(l,c,h,d),Ti(h,c),Rr(c,c[u]=Cr(h,c,h,d)),ze(d)&&cr(l,c,d),null!=o&&lr(c,d,a)}function io(e){return rt(ht.lFrame.contextLView,e)}function ro(e,t=m.Default){const n=pt();return null===n?ie(e,t):yn(gt(),n,E(e),t)}function so(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(Kt(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}(gt(),e)}function oo(e,t,n){const i=pt();return Js(i,xt(),t)&&pr(mt(),$t(),i,e,t,i[11],n,!1),oo}function ao(e,t,n,i,r){const s=r?"class":"style";Yr(e,n,t.inputs[s],s,i)}function co(e,t,n,i){const r=pt(),s=mt(),o=Ie+e,a=r[11],c=r[o]=er(t,a,ht.lFrame.currentNamespace),l=s.firstCreatePass?function(e,t,n,i,r,s,o){const a=t.consts,c=nr(t,e,2,r,lt(a,s));return mr(t,n,c,lt(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}(e,s,r,0,t,n,i):s.data[o];_t(l,!0);const u=l.mergedAttrs;null!==u&&Qt(a,c,u);const d=l.classes;null!==d&&os(a,c,d);const h=l.styles;null!==h&&ss(a,c,h),Xr(s,r,c,l),0===ht.lFrame.elementDepthCount&&Ti(c,r),ht.lFrame.elementDepthCount++,ze(l)&&(cr(s,r,l),ar(s,l,r)),null!==i&&lr(r,l)}function lo(){let e=gt();yt()?vt():(e=e.parent,_t(e,!1));const t=e;ht.lFrame.elementDepthCount--;const n=mt();n.firstCreatePass&&(Ht(n,e),Fe(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&ao(n,t,pt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&ao(n,t,pt(),t.stylesWithoutHost,!1)}function uo(e,t,n,i){co(e,t,n,i),lo()}function ho(e,t,n){const i=pt(),r=mt(),s=e+Ie,o=r.firstCreatePass?function(e,t,n,i,r){const s=t.consts,o=lt(s,i),a=nr(t,e,3,"ng-container",o);return null!==o&&Ps(a,o,!0),mr(t,n,a,lt(s,r)),null!==t.queries&&t.queries.elementStart(t,a),a}(e,r,i,t,n):r.data[s];_t(o,!0);const a=i[s]=i[11].createComment("");Xr(r,i,a,o),Ti(a,i),ze(o)&&(cr(r,i,o),ar(r,o,i)),null!=n&&lr(i,o)}function fo(){let e=gt();const t=mt();yt()?vt():(e=e.parent,_t(e,!1)),t.firstCreatePass&&(Ht(t,e),Fe(e)&&t.queries.elementEnd(e))}function po(e,t,n){ho(e,t,n),fo()}function mo(){return pt()}function bo(e){return!!e&&"function"==typeof e.then}function go(e){return!!e&&"function"==typeof e.subscribe}function _o(e,t,n=!1,i){const r=pt(),s=mt(),o=gt();return function(e,t,n,i,r,s,o=!1,a){const c=ze(i),l=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),u=jr(t);let d=!0;if(2===i.type){const h=nt(i,t),f=a?a(h):ye,p=f.target||h,m=u.length,b=a?e=>a(et(e[i.index])).target:i.index;if(Ze(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=vo(i,t,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=vo(i,t,s,!0),p.addEventListener(r,s,o),u.push(s),l&&l.push(r,b,m,o)}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),_o}function yo(e,t,n){try{return!1!==t(n)}catch(i){return Fr(e,i),!1}}function vo(e,t,n,i){return function r(s){if(s===Function)return n;const o=2&e.flags?st(e.index,t):t;0==(32&t[2])&&Er(o);let a=yo(t,n,s),c=r.__ngNextListenerFn__;for(;c;)a=yo(t,c,s)&&a,c=c.__ngNextListenerFn__;return i&&!1===a&&(s.preventDefault(),s.returnValue=!1),a}}function wo(e=1){return function(e){return(ht.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,ht.lFrame.contextLView))[8]}(e)}function So(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?Ni(e,s,!0):ji(i,s))return r}else n=r}return n}function Mo(e){const t=pt()[16][6];if(!t.projection){const n=t.projection=fe(e?e.length:1,null),i=n.slice();let r=t.child;for(;null!==r;){const t=e?So(r,e):0;null!==t&&(i[t]?i[t].projectionNext=r:n[t]=r,i[t]=r),r=r.next}}}let ko=!1;function xo(e){ko=e}function Do(e,t=0,n){const i=pt(),r=mt(),s=nr(r,e,1,null,n||null);null===s.projection&&(s.projection=t),vt(),ko||is(r,i,s)}function To(e,t,n){return Co(e,"",t,"",n),To}function Co(e,t,n,i,r){const s=pt(),o=eo(s,t,n,i);return o!==zi&&pr(mt(),$t(),s,e,o,s[11],r,!1),Co}function Oo(e,t,n,i,r,s,o){const a=pt(),c=to(a,t,n,i,r,s);return c!==zi&&pr(mt(),$t(),a,e,c,a[11],o,!1),Oo}const Lo=[];function Ro(e,t,n,i,r){const s=e[n+1],o=null===t;let a=i?qi(s):Qi(s),c=!1;for(;0!==a&&(!1===c||o);){const n=e[a+1];Eo(e[a],t)&&(c=!0,e[a+1]=i?Zi(n):Ji(n)),a=i?qi(n):Qi(n)}c&&(e[n+1]=i?Ji(s):Zi(s))}function Eo(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&be(e,t)>=0}const Ao={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Io(e){return e.substring(Ao.key,Ao.keyEnd)}function Po(e,t){const n=Ao.textEnd;return n===t?-1:(t=Ao.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Ao.key=t,n),No(e,t,n))}function No(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function jo(e,t,n){return $o(e,t,n,!1),jo}function Fo(e,t){return $o(e,t,null,!0),Fo}function Yo(e){Ho(pe,zo,e,!0)}function zo(e,t){for(let n=function(e){return function(e){Ao.key=0,Ao.keyEnd=0,Ao.value=0,Ao.valueEnd=0,Ao.textEnd=e.length}(e),Po(e,No(e,0,Ao.textEnd))}(t);n>=0;n=Po(t,n))pe(e,Io(t),!0)}function $o(e,t,n,i){const r=pt(),s=mt(),o=Dt(2);s.firstUpdatePass&&Vo(s,e,o,i),t!==zi&&Js(r,o,t)&&Go(s,s.data[Yt()+Ie],r,r[11],e,r[o+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=C(Yn(e)))),e}(t,n),i,o)}function Ho(e,t,n,i){const r=mt(),s=Dt(2);r.firstUpdatePass&&Vo(r,null,s,i);const o=pt();if(n!==zi&&Js(o,s,n)){const a=r.data[Yt()+Ie];if(Qo(a,i)&&!Wo(r,s)){let e=i?a.classesWithoutHost:a.stylesWithoutHost;null!==e&&(n=O(e,n||"")),ao(r,a,o,n,i)}else!function(e,t,n,i,r,s,o,a){r===zi&&(r=Lo);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=null,m=void 0;u===d?(c+=2,l+=2,h!==f&&(p=d,m=f)):null===d||null!==u&&u<d?(c+=2,p=u):(l+=2,p=d,m=f),null!==p&&Go(e,t,n,i,p,m,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 Lo;const i=[],r=Yn(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 Wo(e,t){return t>=e.expandoStartIndex}function Vo(e,t,n,i){const r=e.data;if(null===r[n+1]){const s=r[Yt()+Ie],o=Wo(e,n);Qo(s,i)&&null===t&&!o&&(t=!1),t=function(e,t,n,i){const r=Ot(e);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Uo(n=Bo(null,e,t,n,i),t.attrs,i),s=null);else{const o=t.directiveStylingLast;if(-1===o||e[o]!==r)if(n=Bo(r,e,t,n,i),null===s){let n=function(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==Qi(i))return e[qi(i)]}(e,t,i);void 0!==n&&Array.isArray(n)&&(n=Bo(null,e,t,n[1],i),n=Uo(n,t.attrs,i),function(e,t,n,i){e[qi(n?t.classBindings:t.styleBindings)]=i}(e,t,i,n))}else s=function(e,t,n){let i=void 0;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<r;s++)i=Uo(i,e[s].hostAttrs,n);return Uo(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=qi(o),c=Qi(o);e[i]=n;let l,u=!1;if(Array.isArray(n)){const e=n;l=e[1],(null===l||be(e,l)>0)&&(u=!0)}else l=n;if(r)if(0!==c){const t=qi(e[a+1]);e[i+1]=Gi(t,a),0!==t&&(e[t+1]=Ki(e[t+1],i)),e[a+1]=131071&e[a+1]|i<<17}else e[i+1]=Gi(a,0),0!==a&&(e[a+1]=Ki(e[a+1],i)),a=i;else e[i+1]=Gi(c,0),0===a?a=i:e[c+1]=Ki(e[c+1],i),c=i;u&&(e[i+1]=Ji(e[i+1])),Ro(e,l,i,!0),Ro(e,l,i,!1),function(e,t,n,i,r){const s=r?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&be(s,t)>=0&&(n[i+1]=Zi(n[i+1]))}(t,l,e,i,s),o=Gi(a,c),s?t.classBindings=o:t.styleBindings=o}(r,s,t,n,o,i)}}function Bo(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=Uo(i,s.hostAttrs,r),s!==e);)a++;return null!==e&&(n.directiveStylingLast=a),i}function Uo(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]),pe(e,o,!!n||t[++s]))}return void 0===e?null:e}function Go(e,t,n,i,r,s,o,a){if(2!==t.type)return;const c=e.data,l=c[a+1];Jo(1==(1&l)?qo(c,t,n,r,Qi(l),o):void 0)||(Jo(s)||2==(2&l)&&(s=qo(c,null,n,r,a,o)),function(e,t,n,i,r){const s=Ze(e);if(t)r?s?e.addClass(n,i):n.classList.add(i):s?e.removeClass(n,i):n.classList.remove(i);else{const t=-1==i.indexOf("-")?void 0:2;null==r?s?e.removeStyle(n,i,t):n.style.removeProperty(i):s?e.setStyle(n,i,r,t):n.style.setProperty(i,r)}}(i,o,tt(Yt(),n),r,s))}function qo(e,t,n,i,r,s){const o=null===t;let a=void 0;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===zi&&(u=l?Lo:void 0);let d=l?me(u,i):c===i?u:void 0;if(s&&!Jo(d)&&(d=me(t,i)),Jo(d)&&(a=d,o))return a;const h=e[r+1];r=o?qi(h):Qi(h)}if(null!==t){let e=s?t.residualClasses:t.residualStyles;null!=e&&(a=me(e,i))}return a}function Jo(e){return void 0!==e}function Qo(e,t){return 0!=(e.flags&(t?16:32))}function Ko(e,t=""){const n=pt(),i=mt(),r=e+Ie,s=i.firstCreatePass?nr(i,e,2,null,null):i.data[r],o=n[r]=Hr(t,n[11]);Xr(i,n,o,s),_t(s,!1)}function Zo(e){return Xo("",e,""),Zo}function Xo(e,t,n){const i=pt(),r=eo(i,e,t,n);return r!==zi&&zr(i,Yt(),r),Xo}function ea(e,t,n,i,r){const s=pt(),o=to(s,e,t,n,i,r);return o!==zi&&zr(s,Yt(),o),ea}function ta(e,t,n,i,r,s,o){const a=pt(),c=function(e,t,n,i,r,s,o,a){const c=Ks(e,kt(),n,r,o);return Dt(3),c?t+sn(n)+i+sn(r)+s+sn(o)+a:zi}(a,e,t,n,i,r,s,o);return c!==zi&&zr(a,Yt(),c),ta}function na(e,t,n){Ho(pe,zo,eo(pt(),e,t,n),!0)}function ia(e,t,n,i,r){Ho(pe,zo,to(pt(),e,t,n,i,r),!0)}function ra(e,t,n,i,r,s,o,a,c){Ho(pe,zo,function(e,t,n,i,r,s,o,a,c,l){const u=Zs(e,kt(),n,r,o,c);return Dt(4),u?t+sn(n)+i+sn(r)+s+sn(o)+a+sn(c)+l:zi}(pt(),e,t,n,i,r,s,o,a,c),!0)}function sa(e,t,n){const i=pt();return Js(i,xt(),t)&&pr(mt(),$t(),i,e,t,i[11],n,!0),sa}function oa(e,t,n){const i=pt();if(Js(i,xt(),t)){const r=mt(),s=$t();pr(r,s,i,e,t,function(e,t,n){return(null===e||$e(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]}(Ot(r.data),s,i),n,!0)}return oa}function aa(e,t,n,i,r){if(e=E(e),Array.isArray(e))for(let s=0;s<e.length;s++)aa(e[s],t,n,i,r);else{const s=mt(),o=pt();let a=Rs(e)?e:E(e.provide),c=Cs(e);const l=gt(),u=1048575&l.providerIndexes,d=l.directiveStart,h=l.providerIndexes>>20;if(Rs(e)||!e.multi){const i=new Jt(c,r,ro),f=ua(a,t,r?u:u+h,d);-1===f?(_n(pn(l,o),s,a),ca(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=ua(a,t,u+h,d),p=ua(a,t,u,u+h),m=f>=0&&n[f],b=p>=0&&n[p];if(r&&!b||!r&&!m){_n(pn(l,o),s,a);const u=function(e,t,n,i,r){const s=new Jt(e,n,ro);return s.multi=[],s.index=t,s.componentProviders=0,la(s,r,i&&!n),s}(r?ha:da,n.length,r,i,c);!r&&b&&(n[p].providerFactory=u),ca(s,e,t.length,0),t.push(a),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(u),o.push(u)}else ca(s,e,f>-1?f:p,la(n[r?p:f],c,!r&&i));!r&&i&&b&&n[p].componentProviders++}}}function ca(e,t,n,i){const r=Rs(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 la(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function ua(e,t,n,i){for(let r=n;r<i;r++)if(t[r]===e)return r;return-1}function da(e,t,n,i){return fa(this.multi,[])}function ha(e,t,n,i){const r=this.multi;let s;if(this.providerFactory){const e=this.providerFactory.componentProviders,t=Mn(n,n[1],this.providerFactory.index,i);s=t.slice(0,e),fa(r,s);for(let n=e;n<t.length;n++)s.push(t[n])}else s=[],fa(r,s);return s}function fa(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function pa(e,t=[]){return n=>{n.providersResolver=(n,i)=>function(e,t,n){const i=mt();if(i.firstCreatePass){const r=$e(e);aa(n,i.data,i.blueprint,r,!0),aa(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}class ma{}class ba{}class ga{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${C(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(e)}}let _a=(()=>{class e{}return e.NULL=new ga,e})(),ya=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>va(e),e})();const va=function(e){return hs(e,gt(),pt())};class wa{}var Sa=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});let Ma=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>ka(),e})();const ka=function(){const e=pt(),t=st(gt().index,e);return function(e){const t=e[11];if(Ze(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Ne(t)?t:e)};let xa=(()=>{class e{}return e.\u0275prov=_({token:e,providedIn:"root",factory:()=>null}),e})();class Da{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Ta=new Da("10.1.5");class Ca{constructor(){}supports(e){return Bs(e)}create(e){return new La(e)}}const Oa=(e,t)=>t;class La{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||Oa}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<Ia(n,i,r)?t:n,o=Ia(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=[]),!Bs(e))throw new Error(`Error trying to diff '${C(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[Ws()]();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._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,i)):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)):e=this._addAfter(new Ra(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 Aa),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 Aa),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 Ra{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 Ea{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 Aa{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new Ea,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 Ia(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 Pa{constructor(){}supports(e){return e instanceof Map||Us(e)}create(){return new Na}}class Na{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||Us(e)))throw new Error(`Error trying to diff '${C(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 ja(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 ja{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}}let Fa=(()=>{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=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new p,new h]]}}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=_({token:e,providedIn:"root",factory:()=>new e([new Ca])}),e})(),Ya=(()=>{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=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new p,new h]]}}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=_({token:e,providedIn:"root",factory:()=>new e([new Pa])}),e})();const za=[new Pa],$a=new Fa([new Ca]),Ha=new Ya(za);let Wa=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Va(e,ya),e})();const Va=function(e,t){return fs(e,t,gt(),pt())};let Ba=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Ua(e,ya),e})();const Ua=function(e,t){return ps(e,t,gt(),pt())},Ga={};class qa extends _a{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=Re(e);return new Ka(t,this.ngModule)}}function Ja(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const Qa=new U("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>an});class Ka extends ba{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(Yi).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Ja(this.componentDef.inputs)}get outputs(){return Ja(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,Ga,r);return s!==Ga||i===Ga?s:t.get(n,i,r)}}}(e,i.injector):e,s=r.get(wa,Xe),o=r.get(xa,null),a=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",l=n?function(e,t,n){if(Ze(e))return e.selectRootElement(t,n===_e.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(a,n,this.componentDef.encapsulation):er(c,s.createRenderer(null,this.componentDef),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:an,clean:Nr,playerHandler:null,flags:0},h=dr(0,null,null,1,0,null,null,null,null,null),f=tr(null,h,d,u,null,null,s,a,o,r);let p,m;At(f);try{const e=function(e,t,n,i,r,s){const o=n[1];n[20]=e;const a=nr(o,0,2,null,null),c=a.mergedAttrs=t.hostAttrs;null!==c&&(Ps(a,c,!0),null!==e&&(Qt(r,e,c),null!==a.classes&&os(r,e,a.classes),null!==a.styles&&ss(r,e,a.styles)));const l=i.createRenderer(e,t),u=tr(n,ur(t),null,t.onPush?64:16,n[20],a,i,l,null,null);return o.firstCreatePass&&(_n(pn(a,n),o,t.type),vr(o,a),Sr(a,n.length,1)),Rr(n,u),n[20]=u}(l,this.componentDef,f,s,a);if(l)if(n)Qt(a,l,["ng-version",Ta.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(!Ii(r))break;r=s}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);e&&Qt(a,l,e),t&&t.length>0&&os(a,l,t.join(" "))}if(m=it(h,0),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=gt();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),yr(e,i,1),Mr(e,t,n));const r=Mn(t,e,t.length-1,i);Ti(r,t);const s=nt(i,t);return s&&Ti(s,t),r}(s,n,t);i.components.push(o),e[8]=o,r&&r.forEach(e=>e(o,t)),t.contentQueries&&t.contentQueries(1,o,n.length-1);const a=gt();if(s.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){zt(a.index-Ie);const e=n[1];br(e,t),gr(e,n,t.hostVars),_r(t,o)}return o}(e,this.componentDef,f,d,[Ns]),ir(h,f,null)}finally{Ft()}return new Za(this.componentType,p,hs(ya,m,f),f,m)}}class Za extends ma{constructor(e,t,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.destroyCbs=[],this.instance=t,this.hostView=this.changeDetectorRef=new cs(i),this.componentType=e}get injector(){return new Dn(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(e=>e()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(e){this.destroyCbs&&this.destroyCbs.push(e)}}const Xa=void 0;var ec=["en",[["a","p"],["AM","PM"],Xa],[["AM","PM"],Xa,Xa],[["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"]],Xa,[["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"]],Xa,[["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}",Xa,"{1} 'at' {0}",Xa],[".",",",";","%","+","-","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 tc={};function nc(e,t,n){"string"!=typeof t&&(n=t,t=e[ac.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),tc[t]=e,n&&(tc[t][ac.ExtraData]=n)}function ic(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=oc(t);if(n)return n;const i=t.split("-")[0];if(n=oc(i),n)return n;if("en"===i)return ec;throw new Error(`Missing locale data for the locale "${e}".`)}function rc(e){return ic(e)[ac.CurrencyCode]||null}function sc(e){return ic(e)[ac.PluralCase]}function oc(e){return e in tc||(tc[e]=F.ng&&F.ng.common&&F.ng.common.locales&&F.ng.common.locales[e]),tc[e]}var ac=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 cc=["zero","one","two","few","many"],lc="en-US";let uc=lc;function dc(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: "+e+` [Expected=> null != ${t} <=Actual]`)}(n,t),"string"==typeof e&&(uc=e.toLowerCase().replace(/_/g,"-"))}const hc={marker:"element"},fc={marker:"comment"},pc=[];let mc=-1,bc=0,gc=0;function _c(e,t,n,i){const r=i[11];let s=null,o=null;const a=[];for(let c=0;c<n.length;c++){const l=n[c];if("string"==typeof l){const t=Hr(l,r),u=n[++c];o=s,s=kc(e,i,u,2,t,null),a.push(u),vt()}else if("number"==typeof l)switch(7&l){case 1:const r=l>>>17;let u;u=r===t?i[6]:it(e,r),o=Sc(e,s,u,o,i);break;case 0:const d=l>=0,h=(d?l:~l)>>>3;a.push(h),o=s,s=it(e,h),s&&_t(s,d);break;case 5:o=s=it(e,l>>>3),_t(s,!1);break;case 4:const f=n[++c],p=n[++c];xr(it(e,l>>>3),i,f,p,null,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${l}"`)}else switch(l){case fc:const t=n[++c],u=n[++c],d=r.createComment(t);o=s,s=kc(e,i,u,4,d,null),a.push(u),Ti(d,i),vt();break;case hc:const h=n[++c],f=n[++c];o=s,s=kc(e,i,f,2,r.createElement(h),h),a.push(f);break;default:throw new Error(`Unable to determine the type of mutate operation for "${l}"`)}}return vt(),a}function yc(e,t,n,i,r,s){let o=!1;for(let a=0;a<i.length;a++){const c=i[a],l=i[++a];if(c&s){let s="";for(let c=a+1;c<=a+l;c++){const a=i[c];if("string"==typeof a)s+=a;else if("number"==typeof a)if(a<0)s+=sn(n[r-a]);else{const l=a>>>2;switch(3&a){case 1:const a=i[++c],u=i[++c];pr(e,it(e,l),n,a,s,n[11],u,!1);break;case 0:zr(n,l,s);break;case 2:o=wc(e,t,i[++c],n,s);break;case 3:vc(e,t,i[++c],r,n,o)}}}}a+=l}}function vc(e,t,n,i,r,s){const o=t[n],a=r[o.currentCaseLViewIndex];null!==a&&yc(e,t,r,o.update[a],i,s?-1:bc)}function wc(e,t,n,i,r){!function e(t,n,i,r){const s=n[i],o=r[s.currentCaseLViewIndex];if(null!==o){const i=s.remove[o];for(let s=0;s<i.length;s++){const o=i[s],a=o>>>3;switch(7&o){case 3:Mc(t,r,a,!1);break;case 6:e(t,n,a,r)}}}}(e,t,n,i);let s=!1;const o=t[n],a=function(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const i=function(e,t){const n=sc(t)(parseInt(e,10)),i=cc[n];return void 0!==i?i:"other"}(t,uc);n=e.cases.indexOf(i),-1===n&&"other"!==i&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return n}(o,r);return i[o.currentCaseLViewIndex]=-1!==a?a:null,a>-1&&(_c(e,-1,o.create[a],i),s=!0),s}function Sc(e,t,n,i,r){const s=t.next;i||(i=n),i===n&&t!==n.child?(t.next=n.child,null===t.parent?e.firstChild=t:n.child=t):i!==n&&t!==i.next?(t.next=i.next,i.next=t):t.next=null,n!==r[6]&&(t.parent=n);let o=t.next;for(;o;)o.next===t&&(o.next=s),o=o.next;if(1===t.type)return is(e,r,t),t;Xr(e,r,nt(t,r),t);const a=r[t.index];return 0!==t.type&&je(a)&&Xr(e,r,a[7],t),t}function Mc(e,t,n,i){const r=it(e,n),s=tt(n,t);s&&es(t[11],s);const o=rt(t,n);if(je(o)){const e=o;0!==r.type&&es(t[11],e[7])}i&&r&&(r.flags|=64)}function kc(e,t,n,i,r,s){const o=gt();t[n+Ie]=r;const a=nr(e,n,i,s,null);return o&&o.next===a&&(o.next=null),a}const xc=/\ufffd(\d+):?\d*\ufffd/gi,Dc=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,Tc=/\ufffd(\d+)\ufffd/,Cc=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/;let Oc;const Lc=[],Rc=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Ec=/\ufffd(\/?[#*!]\d+):?\d*\ufffd/gi,Ac=/\uE500/g;function Ic(e,t,n,i=null){const r=[null,null],s=e.split(xc);let o=0;for(let a=0;a<s.length;a++){const e=s[a];if(1&a){const t=parseInt(e,10);r.push(-1-t),o|=jc(t)}else""!==e&&r.push(e)}return r.push(t<<2|(n?1:0)),n&&r.push(n,i),r[0]=o,r[1]=r.length-2,r}function Pc(e,t=0){let n;t|=jc(e.mainBinding);for(let i=0;i<e.values.length;i++){const r=e.values[i];for(let e=0;e<r.length;e++){const i=r[e];if("string"==typeof i)for(;n=xc.exec(i);)t|=jc(parseInt(n[1],10));else t=Pc(i,t)}}return t}function Nc(e){return e+Oc++}function jc(e){return 1<<Math.min(e,31)}function Fc(e){return void 0===e}function Yc(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 zc(e,t,n,i){const r=[],s=[],o=[],a=[],c=[],l=t.values;for(let u=0;u<l.length;u++){const t=l[u],d=[];for(let e=0;e<t.length;e++){const n=t[e];if("string"!=typeof n){const i=d.push(n)-1;t[e]=`\x3c!--\ufffd${i}\ufffd--\x3e`}}const h=Hc(t.join(""),n,d,e,i);r.push(h.create),s.push(h.remove),o.push(h.update),a.push(h.vars),c.push(h.childIcus)}e.push({type:t.type,vars:a,currentCaseLViewIndex:Ie+i+1,childIcus:c,cases:t.cases,create:r,remove:s,update:o}),Oc+=Math.max(...a)}function $c(e){const t=[],n=[];let i=1,r=0;const s=Wc(e=e.replace(Cc,(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=Wc(s[o++]);t.length>n.length&&n.push(r)}return{type:i,mainBinding:r,cases:t,values:n}}function Hc(e,t,n,i,r){const s=Kn(Ke()).getInertBodyElement(e);if(!s)throw new Error("Unable to generate inert body element");const o={vars:1,childIcus:[],create:[],remove:[],update:[]};return function e(t,n,i,r,s,o){if(t){const a=[];for(;t;){const c=t.nextSibling,l=o+ ++n.vars;switch(t.nodeType){case Node.ELEMENT_NODE:const c=t,u=c.tagName.toLowerCase();if(ui.hasOwnProperty(u)){n.create.push(hc,u,l,i<<17|1);const a=c.attributes;for(let e=0;e<a.length;e++){const t=a.item(e),i=t.name.toLowerCase();t.value.match(xc)?fi.hasOwnProperty(i)&&le(di[i]?Ic(t.value,l,t.name,ni):hi[i]?Ic(t.value,l,t.name,ii):Ic(t.value,l,t.name),n.update):n.create.push(l<<3|4,t.name,t.value)}e(t.firstChild,n,l,r,s,o),n.remove.push(l<<3|3)}else n.vars--;break;case Node.TEXT_NODE:const d=t.textContent||"",h=d.match(xc);n.create.push(h?"":d,l,i<<17|1),n.remove.push(l<<3|3),h&&le(Ic(d,l),n.update);break;case Node.COMMENT_NODE:const f=Tc.exec(t.textContent||"");if(f){const e=parseInt(f[1],10);n.create.push(fc,"",l,i<<17|1),a.push([r[e],l])}else n.vars--;break;default:n.vars--}t=c}for(let e=0;e<a.length;e++){const t=a[e][0],i=a[e][1];zc(s,t,i,o+n.vars);const r=s.length-1;n.vars+=Math.max(...s[r].vars),n.childIcus.push(r);const c=Pc(t);n.update.push(jc(t.mainBinding),3,-1-t.mainBinding,i<<2|2,r,c,2,i<<2|3,r),n.remove.push(r<<3|6,i<<3|3)}}}((wi(s)||s).firstChild,o,t,n,i,r),o}function Wc(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);Cc.test(n)?i.push($c(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}const Vc=/\[(\ufffd.+?\ufffd?)\]/,Bc=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,Uc=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,Gc=/{([A-Z0-9_]+)}/g,qc=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,Jc=/\/\*/,Qc=/\d+\:(\d+)/;function Kc(e,t,n){const i=mt(),r=lt(i.consts,t);!function(e){pc[++mc]=e}(e),xo(!0),i.firstCreatePass&&null===i.data[e+Ie]&&function(e,t,n,i,r){const s=t.blueprint.length-Ie;Oc=0;const o=gt(),a=yt()?o:o&&o.parent;let c=a&&a!==e[6]?a.index-Ie:n,l=0;Lc[l]=c;const u=[];if(n>0&&o!==a){let e=o.index-Ie;yt()||(e=~e),u.push(e<<3|0)}const d=[],h=[];if(""===i&&Fc(r))u.push(i,Nc(s),c<<17|1);else{const e=function(e,t){if(Fc(t))return Yc(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,i=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return Yc(e.substring(n,i))}}(i,r),t=(f=e,f.replace(Ac," ")).split(Ec);for(let n=0;n<t.length;n++){let i=t[n];if(1&n)if("/"===i.charAt(0)){if("#"===i.charAt(1)){const e=parseInt(i.substr(2),10);c=Lc[--l],u.push(e<<3|5)}}else{const e=parseInt(i.substr(1),10),t="#"===i.charAt(0);u.push((t?e:~e)<<3|0,c<<17|1),t&&(Lc[++l]=c=e)}else{const t=Wc(i);for(let n=0;n<t.length;n++)if(1&n){const i=t[n];if("object"!=typeof i)throw new Error(`Unable to parse ICU expression in "${e}" message.`);const r=Nc(s);u.push(fc,"",r,c<<17|1);const o=Pc(i);zc(h,i,r,r);const a=h.length-1;d.push(jc(i.mainBinding),3,-1-i.mainBinding,r<<2|2,a,o,2,r<<2|3,a)}else if(""!==t[n]){const e=t[n],i=e.match(xc),r=Nc(s);u.push(i?"":e,r,c<<17|1),i&&le(Ic(e,r),d)}}}}var f;Oc>0&&function(e,t,n){if(n>0&&e.firstCreatePass){for(let i=0;i<n;i++)e.blueprint.push(null),e.data.push(null),t.push(null);e.expandoInstructions?e.expandoInstructions.push(n):e.expandoStartIndex+=n}}(t,e,Oc),t.data[n+Ie]={vars:Oc,create:u,update:d,icus:h.length?h:null}}(pt(),i,e,r,n)}function Zc(){const e=pt();(function(e,t){const n=pc[mc--],i=e.data[n+Ie],r=gt(),s=_c(e,n,i.create,t);let o=n+1;for(;null!==r&&o<=r.index-Ie;){-1===s.indexOf(o)&&Mc(e,t,o,!0);const n=it(e,o);!n||0!==n.type&&2!==n.type&&3!==n.type||null===n.localNames||(o+=n.localNames.length>>1),o++}})(mt(),e),xo(!1)}function Xc(e,t,n){Kc(e,t,n),Zc()}function el(e,t){const n=pt(),i=mt();!function(e,t,n,i){const r=gt().index-Ie,s=[];for(let o=0;o<i.length;o+=2){const a=i[o],c=i[o+1].split(Dc);for(let i=0;i<c.length;i++){const o=c[i];if(1&i)throw new Error("ICU expressions are not yet supported in attributes");if(""!==o)if(o.match(xc))t.firstCreatePass&&null===t.data[n+Ie]&&le(Ic(o,r,a),s);else{const n=it(t,r);2===n.type&&xr(n,e,a,o,null,null);const i=null!==n.inputs&&n.inputs[a];i&&Yr(t,e,i,a,o)}}}t.firstCreatePass&&null===t.data[n+Ie]&&(t.data[n+Ie]=s)}(n,i,e,lt(i.consts,t))}function tl(e){return Js(pt(),xt(),e)&&(bc|=1<<gc),gc++,tl}function nl(e){!function(e,t,n){if(gc>0){const i=e.data[n+Ie];let r,s=null;Array.isArray(i)?r=i:(r=i.update,s=i.icus),yc(e,s,t,r,kt()-gc-1,bc),bc=0,gc=0}}(mt(),pt(),e)}function il(e,t={}){return function(e,t={}){let n=e;if(Vc.test(e)){const e={},t=[0];n=n.replace(Bc,(n,i,r)=>{const s=i||r,o=e[s]||[];if(o.length||(s.split("|").forEach(e=>{const t=e.match(Qc),n=t?parseInt(t[1],10):0,i=Jc.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(Uc,(e,n,i,r,s,o)=>t.hasOwnProperty(i)?`${n}${t[i]}${o}`:e),n=n.replace(Gc,(e,n)=>t.hasOwnProperty(n)?t[n]:e),n=n.replace(qc,(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)}const rl=new Map;class sl extends ae{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new qa(this);const n=Ae(e),i=e[W]||null;i&&dc(i),this._bootstrapComponents=un(n.bootstrap),this._r3Injector=xs(e,t,[{provide:ae,useValue:this},{provide:_a,useValue:this.componentFactoryResolver}],C(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=As.THROW_IF_NOT_FOUND,n=m.Default){return e===As||e===ae||e===G?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 ol extends ce{constructor(e){super(),this.moduleType=e,null!==Ae(e)&&function e(t){if(null!==t.\u0275mod.id){const e=t.\u0275mod.id;(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${C(t)} vs ${C(t.name)}`)})(e,rl.get(e),t),rl.set(e,t)}let n=t.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(t=>e(t))}(e)}create(e){return new sl(this.moduleType,e)}}function al(e,t,n){const i=Mt()+e,r=pt();return r[i]===zi?Gs(r,i,n?t.call(n):t()):qs(r,i)}function cl(e,t,n,i){return pl(pt(),Mt(),e,t,n,i)}function ll(e,t,n,i,r){return ml(pt(),Mt(),e,t,n,i,r)}function ul(e,t,n,i,r,s){return bl(pt(),Mt(),e,t,n,i,r,s)}function dl(e,t,n,i,r,s,o){return function(e,t,n,i,r,s,o,a,c){const l=t+n;return Zs(e,l,r,s,o,a)?Gs(e,l+4,c?i.call(c,r,s,o,a):i(r,s,o,a)):fl(e,l+4)}(pt(),Mt(),e,t,n,i,r,s,o)}function hl(e,t,n,i,r,s,o,a){const c=Mt()+e,l=pt(),u=Zs(l,c,n,i,r,s);return Js(l,c+4,o)||u?Gs(l,c+5,a?t.call(a,n,i,r,s,o):t(n,i,r,s,o)):qs(l,c+5)}function fl(e,t){const n=e[t];return n===zi?void 0:n}function pl(e,t,n,i,r,s){const o=t+n;return Js(e,o,r)?Gs(e,o+1,s?i.call(s,r):i(r)):fl(e,o+1)}function ml(e,t,n,i,r,s,o){const a=t+n;return Qs(e,a,r,s)?Gs(e,a+2,o?i.call(o,r,s):i(r,s)):fl(e,a+2)}function bl(e,t,n,i,r,s,o,a){const c=t+n;return Ks(e,c,r,s,o)?Gs(e,c+3,a?i.call(a,r,s,o):i(r,s,o)):fl(e,c+3)}function gl(e,t){const n=mt();let i;const r=e+Ie;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 Error(`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=Ee(i.type)),o=te(ro);try{const t=hn(!1),i=s();return hn(t),function(e,t,n,i){const r=n+Ie;r>=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),t[r]=i}(n,pt(),e,i),i}finally{te(o)}}function _l(e,t,n){const i=pt(),r=rt(i,e);return Sl(i,wl(i,e)?pl(i,Mt(),t,r.transform,n,r):r.transform(n))}function yl(e,t,n,i){const r=pt(),s=rt(r,e);return Sl(r,wl(r,e)?ml(r,Mt(),t,s.transform,n,i,s):s.transform(n,i))}function vl(e,t,n,i,r){const s=pt(),o=rt(s,e);return Sl(s,wl(s,e)?bl(s,Mt(),t,o.transform,n,i,r,o):o.transform(n,i,r))}function wl(e,t){return e[1].data[t+Ie].pure}function Sl(e,t){return Vs.isWrapped(t)&&(t=Vs.unwrap(t),e[kt()]=zi),t}const Ml=class extends i.a{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let i,s=e=>null,o=()=>null;e&&"object"==typeof e?(i=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(s=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(o=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const a=super.subscribe(i,s,o);return e instanceof r.a&&e.add(a),a}};function kl(){return this._results[Ws()]()}class xl{constructor(){this.dirty=!0,this._results=[],this.changes=new Ml,this.length=0;const e=Ws(),t=xl.prototype;t[e]||(t[e]=kl)}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){this._results=function e(t,n){void 0===n&&(n=t);for(let i=0;i<t.length;i++){let r=t[i];Array.isArray(r)?(n===t&&(n=t.slice(0,i)),e(r,n)):n!==t&&n.push(r)}return n}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Dl{constructor(e){this.queryList=e,this.matches=null}clone(){return new Dl(this.queryList)}setDirty(){this.queryList.setDirty()}}class Tl{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 Tl(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!==Vl(e,t).matches&&this.queries[t].setDirty()}}class Cl{constructor(e,t,n,i=null){this.predicate=e,this.descendants=t,this.isStatic=n,this.read=i}}class Ol{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 Ol(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 Ll{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 Ll(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){const t=this._declarationNodeIndex;let n=e.parent;for(;null!==n&&3===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,Rl(t,r)),this.matchTNodeWithReadOption(e,t,Sn(t,e,r,!1,!1))}else n===Wa?0===t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Sn(t,e,n,!1,!1))}matchTNodeWithReadOption(e,t,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===ya||i===Ba||i===Wa&&0===t.type)this.addMatch(t.index,-2);else{const n=Sn(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 Rl(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 El(e,t,n,i){return-1===n?function(e,t){return 2===e.type||3===e.type?hs(ya,e,t):0===e.type?fs(Wa,ya,e,t):null}(t,e):-2===n?function(e,t,n){return n===ya?hs(ya,t,e):n===Wa?fs(Wa,ya,t,e):n===Ba?ps(Ba,ya,t,e):void 0}(e,t,i):Mn(e,e[1],n,t)}function Al(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:El(t,i[r],s[e+1],n.metadata.read))}r.matches=o}return r.matches}function Il(e){const t=pt(),n=mt(),i=Lt();Rt(i+1);const r=Vl(n,i);if(e.dirty&&at(t)===r.metadata.isStatic){if(null===r.matches)e.reset([]);else{const s=r.crossesNgTemplate?function e(t,n,i,r){const s=t.queries.getByIndex(i),o=s.matches;if(null!==o){const a=Al(t,n,s,i);for(let t=0;t<o.length;t+=2){const i=o[t];if(i>0)r.push(a[t/2]);else{const s=o[t+1],a=n[-i];for(let t=Pe;t<a.length;t++){const n=a[t];n[17]===n[3]&&e(n[1],n,s,r)}if(null!==a[9]){const t=a[9];for(let n=0;n<t.length;n++){const i=t[n];e(i[1],i,s,r)}}}}}return r}(n,t,i,[]):Al(n,t,r,i);e.reset(s),e.notifyOnChanges()}return!0}return!1}function Pl(e,t,n){jl(mt(),pt(),e,t,n,!0)}function Nl(e,t,n){jl(mt(),pt(),e,t,n,!1)}function jl(e,t,n,i,r,s){e.firstCreatePass&&(Wl(e,new Cl(n,i,s,r),-1),s&&(e.staticViewQueries=!0)),Hl(e,t)}function Fl(e,t,n,i){zl(mt(),pt(),t,n,i,!1,gt(),e)}function Yl(e,t,n,i){zl(mt(),pt(),t,n,i,!0,gt(),e)}function zl(e,t,n,i,r,s,o,a){e.firstCreatePass&&(Wl(e,new Cl(n,i,s,r),o.index),function(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(e.contentQueries.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(e,a),s&&(e.staticContentQueries=!0)),Hl(e,t)}function $l(){return e=pt(),t=Lt(),e[19].queries[t].queryList;var e,t}function Hl(e,t){const n=new xl;hr(e,t,n,n.destroy),null===t[19]&&(t[19]=new Tl),t[19].queries.push(new Dl(n))}function Wl(e,t,n){null===e.queries&&(e.queries=new Ol),e.queries.track(new Ll(t,n))}function Vl(e,t){return e.queries.getByIndex(t)}function Bl(e,t){return fs(Wa,ya,e,t)}function Ul(e=m.Default){const t=ms(!0);if(null!=t||e&m.Optional)return t;throw new Error("No provider for ChangeDetectorRef!")}const Gl=new U("Application Initializer");let ql=(()=>{class e{constructor(e){this.appInits=e,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]();bo(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)(ie(Gl,8))},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e})();const Jl=new U("AppId"),Ql={provide:Jl,useFactory:function(){return`${Kl()}${Kl()}${Kl()}`},deps:[]};function Kl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Zl=new U("Platform Initializer"),Xl=new U("Platform ID"),eu=new U("appBootstrapListener");let tu=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e})();const nu=new U("LocaleId"),iu=new U("DefaultCurrencyCode");class ru{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const su=function(e){return new ol(e)},ou=su,au=function(e){return Promise.resolve(su(e))},cu=function(e){const t=su(e),n=un(Ae(e).declarations).reduce((e,t)=>{const n=Re(t);return n&&e.push(new Ka(n)),e},[]);return new ru(t,n)},lu=cu,uu=function(e){return Promise.resolve(cu(e))};let du=(()=>{class e{constructor(){this.compileModuleSync=ou,this.compileModuleAsync=au,this.compileModuleAndAllComponentsSync=lu,this.compileModuleAndAllComponentsAsync=uu}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e})();const hu=(()=>Promise.resolve(0))();function fu(e){"undefined"==typeof Zone?hu.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class pu{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ml(!1),this.onMicrotaskEmpty=new Ml(!1),this.onStable=new Ml(!1),this.onError=new Ml(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.wtfZoneSpec&&(n._inner=n._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=t,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let e=F.requestAnimationFrame,t=F.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=!!e.shouldCoalesceEventChangeDetection&&e.nativeRequestAnimationFrame&&(()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(F,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,_u(e),gu(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),_u(e))}(e)});e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:t},onInvokeTask:(n,i,r,s,o,a)=>{try{return yu(e),n.invokeTask(r,s,o,a)}finally{t&&"eventTask"===s.type&&t(),vu(e)}},onInvoke:(t,n,i,r,s,o,a)=>{try{return yu(e),t.invoke(i,r,s,o,a)}finally{vu(e)}},onHasTask:(t,n,i,r)=>{t.hasTask(i,r),n===i&&("microTask"==r.change?(e._hasPendingMicrotasks=r.microTask,_u(e),gu(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:(t,n,i,r)=>(t.handleError(i,r),e.runOutsideAngular(()=>e.onError.emit(r)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!pu.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(pu.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,bu,mu,mu);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)}}function mu(){}const bu={};function gu(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 _u(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function yu(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function vu(e){e._nesting--,gu(e)}class wu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ml,this.onMicrotaskEmpty=new Ml,this.onStable=new Ml,this.onError=new Ml}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 Su=(()=>{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:()=>{pu.assertNotInAngularZone(),fu(()=>{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())fu(()=>{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)(ie(pu))},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e})(),Mu=(()=>{class e{constructor(){this._applications=new Map,Tu.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 Tu.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e})();class ku{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}function xu(e){Tu=e}let Du,Tu=new ku;const Cu=new U("AllowMultipleToken");class Ou{constructor(e,t){this.name=e,this.token=t}}function Lu(e,t,n=[]){const i="Platform: "+t,r=new U(i);return(t=[])=>{let s=Ru();if(!s||s.injector.get(Cu,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{const e=n.concat(t).concat({provide:r,useValue:!0},{provide:ys,useValue:"platform"});!function(e){if(Du&&!Du.destroyed&&!Du.injector.get(Cu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Du=e.get(Eu);const t=e.get(Zl,null);t&&t.forEach(e=>e())}(As.create({providers:e,name:i}))}return function(e){const t=Ru();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 Ru(){return Du&&!Du.destroyed?Du:null}let Eu=(()=>{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 wu:("zone.js"===e?void 0:e)||new pu({enableLongStackTrace:Jn(),shouldCoalesceEventChangeDetection:t}),n}(t?t.ngZone:void 0,t&&t.ngZoneEventCoalescing||!1),i=[{provide:pu,useValue:n}];return n.run(()=>{const t=As.create({providers:i,parent:this.injector,name:e.moduleType.name}),r=e.create(t),s=r.injector.get(En,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return r.onDestroy(()=>Pu(this._modules,r)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{s.handleError(e)}})),function(e,t,n){try{const i=n();return bo(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(ql);return e.runInitializers(),e.donePromise.then(()=>(dc(r.injector.get(nu,lc)||lc),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,t=[]){const n=Au({},t);return function(e,t,n){const i=new ol(n);return Promise.resolve(i)}(0,0,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Iu);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${C(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)(ie(As))},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e})();function Au(e,t){return Array.isArray(t)?t.reduce(Au,e):Object.assign(Object.assign({},e),t)}let Iu=(()=>{class e{constructor(e,t,n,i,r,c){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Jn(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new s.a(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),u=new s.a(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{pu.assertNotInAngularZone(),fu(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{pu.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(l,u.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 ba?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(ae),r=n.create(As.NULL,[],t||n.selector,i);r.onDestroy(()=>{this._unloadComponent(r)});const s=r.injector.get(Su,null);return s&&r.injector.get(Mu).registerApplication(r.location.nativeElement,s),this._loadComponent(r),Jn()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),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();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}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;Pu(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(eu,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),Pu(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(ie(pu),ie(tu),ie(As),ie(En),ie(_a),ie(ql))},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e})();function Pu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Nu{}class ju{}const Fu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Yu=(()=>{class e{constructor(e,t){this._compiler=e,this._config=t||Fu}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=>zu(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=>zu(e,t,i))}}return e.\u0275fac=function(t){return new(t||e)(ie(du),ie(ju,8))},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e})();function zu(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}const $u=function(e){return null},Hu=Lu(null,"core",[{provide:Xl,useValue:"unknown"},{provide:Eu,deps:[As]},{provide:Mu,deps:[]},{provide:tu,deps:[]}]),Wu=[{provide:Iu,useClass:Iu,deps:[pu,tu,As,En,_a,ql]},{provide:Qa,deps:[pu],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:ql,useClass:ql,deps:[[new h,Gl]]},{provide:du,useClass:du,deps:[]},Ql,{provide:Fa,useFactory:function(){return $a},deps:[]},{provide:Ya,useFactory:function(){return Ha},deps:[]},{provide:nu,useFactory:function(e){return dc(e=e||"undefined"!=typeof $localize&&$localize.locale||lc),e},deps:[[new d(nu),new h,new p]]},{provide:iu,useValue:"USD"}];let Vu=(()=>{class e{constructor(e){}}return e.\u0275mod=De({type:e}),e.\u0275inj=y({factory:function(t){return new(t||e)(ie(Iu))},providers:Wu}),e})()},"8YOa":function(e,t,n){var i=n("0BK2"),r=n("hh1v"),s=n("UTVS"),o=n("m/L8").f,a=n("kOOl"),c=n("uy83"),l=a("meta"),u=0,d=Object.isExtensible||function(){return!0},h=function(e){o(e,l,{value:{objectID:"O"+ ++u,weakData:{}}})},f=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,l)){if(!d(e))return"F";if(!t)return"E";h(e)}return e[l].objectID},getWeakData:function(e,t){if(!s(e,l)){if(!d(e))return!0;if(!t)return!1;h(e)}return e[l].weakData},onFreeze:function(e){return c&&f.REQUIRED&&d(e)&&!s(e,l)&&h(e),e}};i[l]=!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.Lb({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 y(e){return l=e,a=setTimeout(w,t),u?_(e):o}function v(e){var n=e-c;return void 0===c||n>=t||n<0||b&&e-l>=s}function w(){var e=f();if(v(e))return S(e);a=setTimeout(w,function(e){var n=t-(e-c);return b?h(n,s-(e-l)):n}(e))}function S(e){return a=void 0,g&&i?_(e):(i=r=void 0,o)}function M(){var e=f(),n=v(e);if(i=arguments,r=this,c=e,n){if(void 0===a)return y(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),M.cancel=function(){void 0!==a&&clearTimeout(a),l=0,i=c=r=a=void 0},M.flush=function(){return void 0===a?o:S(f())},M}},"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 T}));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.Lb({name:"encodeUri",type:e,pure:!0}),e})();var b=n("BQkM"),g=n("uYzU"),_=n("FFMq"),y=n("E2fk"),v=n("TJUb"),w=n("dEH0"),S=n("G1/K"),M=n("TYzs"),k=n("Dwqy"),x=n("efK2"),D=n("8xTl");let T=(()=>{class e{}return e.\u0275mod=p.Kb({type:e}),e.\u0275inj=p.Jb({factory:function(t){return new(t||e)},providers:[r.a,o.a,s.a,i.e,l.a,c.a,d.a,u.a,h.a,k.a,g.a,_.a,y.a,a.a,f.a,m,M.a,b.a,w.a,S.a,D.a,v.a,x.a],imports:[[i.c]]}),e})()},"9d/t":function(e,t,n){var i=n("AO7/"),r=n("xrYK"),s=n("tiKp")("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=i?r: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=Object(e),s))?n:o?r(t):"Object"==(i=r(t))&&"function"==typeof t.callee?"Arguments":i}},"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.dc(h.b),d.dc(u.a),d.dc(l.a))},e.\u0275prov=d.Ib({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 y}));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("XNiG"),f=n("zx2A");class p{constructor(e,t){this.notifier=e,this.source=t}call(e,t){return t.subscribe(new m(e,this.notifier,this.source))}}class m extends f.b{constructor(e,t,n){super(e),this.notifier=t,this.source=n}error(e){if(!this.isStopped){let n=this.errors,i=this.retries,r=this.retriesSubscription;if(i)this.errors=void 0,this.retriesSubscription=void 0;else{n=new h.a;try{const{notifier:e}=this;i=e(n)}catch(t){return super.error(t)}r=Object(f.c)(i,new f.a(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=i,this.retriesSubscription=r,n.next(e)}}_unsubscribe(){const{errors:e,retriesSubscription:t}=this;e&&(e.unsubscribe(),this.errors=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}notifyNext(){const{_unsubscribe:e}=this;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=e,this.source.subscribe(this)}}var b=n("IzEk"),g=n("xTzq"),_=n("8Y7J");let y=(()=>{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=>Object(c.a)(!o.a.isEmpty(e)))):Object(l.a)(e)),(t=e=>e.pipe(Object(d.a)(t=>t?e:Object(c.a)("No RGW daemons found!"))),e=>e.lift(new p(t,e))),Object(b.a)(1),Object(d.a)(t=>{let n=new r.e;return n=n.append("daemon_name",t.id),e(n)}));var t}};return e.\u0275fac=function(t){return new(t||e)(_.dc(r.b))},e.\u0275prov=_.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e=Object(i.b)([g.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("HAuM");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return 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.Mb(r.a,8),s.Mb(i.a),s.Mb(s.m))},e.\u0275dir=s.Hb({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.dc(s.e),r.dc(i.a))},e.\u0275prov=r.Ib({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"))},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"}},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.Lb({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"))},Bs8V:function(e,t,n){var i=n("g6v/"),r=n("0eef"),s=n("XGwC"),o=n("/GqU"),a=n("wE6v"),c=n("UTVS"),l=n("DPsx"),u=Object.getOwnPropertyDescriptor;t.f=i?u:function(e,t){if(e=o(e),t=a(t,!0),l)try{return u(e,t)}catch(n){}if(c(e,t))return s(!r.f.call(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"))},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.\u0275mod=d.Kb({type:e}),e.\u0275inj=d.Jb({factory:function(t){return new(t||e)},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.Mb(i.m),i.Mb(i.E))},e.\u0275dir=i.Hb({type:e,selectors:[["","cdPasswordButton",""]],hostBindings:function(e,t){1&e&&i.gc("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"))},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 c}));var i=n("vkgz"),r=n("aexS"),s=n("8Y7J"),o=n("IheW"),a=n("iInd");let c=(()=>{class e{constructor(e,t,n){this.authStorageService=e,this.http=t,this.router=n}check(e){return this.http.post("api/auth/check",{token:e})}login(e){return this.http.post("api/auth",e).pipe(Object(i.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(),this.router.navigate(["/login"],{skipLocationChange:!0}),e&&e(),window.location.replace(t.redirect_url)})}}return e.\u0275fac=function(t){return new(t||e)(s.dc(r.a),s.dc(o.b),s.dc(a.e))},e.\u0275prov=s.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},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"))},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.Lb({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.Lb({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("rkAj"),a=s("reduce"),c=o("reduce",{1:0});i({target:"Array",proto:!0,forced:!a||!c},{reduce:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},EApP:function(e,t,n){"use strict";n.d(t,"a",(function(){return C})),n.d(t,"b",(function(){return x}));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.Tb();i.Sb(0,"button",5),i.gc("click",(function(){return i.Dc(e),i.ic().remove()})),i.Sb(1,"span",6),i.Oc(2,"\xd7"),i.Rb(),i.Rb()}}function u(e,t){if(1&e&&(i.Qb(0),i.Oc(1),i.Pb()),2&e){const e=i.ic(2);i.yb(1),i.Qc("[",e.duplicatesCount+1,"]")}}function d(e,t){if(1&e&&(i.Sb(0,"div"),i.Oc(1),i.Mc(2,u,2,1,"ng-container",4),i.Rb()),2&e){const e=i.ic();i.Ab(e.options.titleClass),i.zb("aria-label",e.title),i.yb(1),i.Qc(" ",e.title," "),i.yb(1),i.pc("ngIf",e.duplicatesCount)}}function h(e,t){if(1&e&&i.Nb(0,"div",7),2&e){const e=i.ic();i.Ab(e.options.messageClass),i.pc("innerHTML",e.message,i.Ec)}}function f(e,t){if(1&e&&(i.Sb(0,"div",8),i.Oc(1),i.Rb()),2&e){const e=i.ic();i.Ab(e.options.messageClass),i.zb("aria-label",e.message),i.yb(1),i.Qc(" ",e.message," ")}}function p(e,t){if(1&e&&(i.Sb(0,"div"),i.Nb(1,"div",9),i.Rb()),2&e){const e=i.ic();i.yb(1),i.Kc("width",e.width+"%")}}class m{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 b={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"},g=new i.r("ToastConfig");class _{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 y 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 v=(()=>{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.dc(a.d))},e.\u0275prov=Object(i.Ib)({factory:function(){return new e(Object(i.dc)(a.d))},token:e,providedIn:"root"}),e})();class w{constructor(e){this._portalHost=e}attach(e,t=!0){return this._portalHost.attach(e,t)}detach(){return this._portalHost.detach()}}let S=(()=>{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 y(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new w(this._createPortalHost(e))}}return e.\u0275fac=function(t){return new(t||e)(i.dc(v),i.dc(i.j),i.dc(i.g),i.dc(a.d))},e.\u0275prov=Object(i.Ib)({factory:function(){return new e(Object(i.dc)(v),Object(i.dc)(i.j),Object(i.dc)(i.g),Object(i.dc)(a.d))},token:e,providedIn:"root"}),e})();class M{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 k{constructor(e,t){this._toastPackage=e,this._parentInjector=t}get(e,t,n){return e===m?this._toastPackage:this._parentInjector.get(e,t,n)}}let x=(()=>{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.I.HTML,t));const l=new M(a),u=new m(this.index,r,c,n,e,l),d=new k(u,this._injector),h=new _(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.dc(g),i.dc(S),i.dc(i.s),i.dc(o.b),i.dc(i.A))},e.\u0275prov=Object(i.Ib)({factory:function(){return new e(Object(i.dc)(g),Object(i.dc)(S),Object(i.dc)(i.p),Object(i.dc)(o.b),Object(i.dc)(i.A))},token:e,providedIn:"root"}),e})(),D=(()=>{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.Mb(x),i.Mb(m),i.Mb(i.A))},e.\u0275cmp=i.Gb({type:e,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,t){1&e&&i.gc("click",(function(){return t.tapToast()}))("mouseenter",(function(){return t.stickAround()}))("mouseleave",(function(){return t.delayedHideToast()})),2&e&&(i.Lc("@flyInOut",t.state),i.Ab(t.toastClasses),i.Kc("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.Mc(0,l,3,0,"button",0),i.Mc(1,d,3,5,"div",1),i.Mc(2,h,1,3,"div",2),i.Mc(3,f,2,4,"div",3),i.Mc(4,p,2,2,"div",4)),2&e&&(i.pc("ngIf",t.options.closeButton),i.yb(1),i.pc("ngIf",t.title),i.yb(1),i.pc("ngIf",t.message&&t.options.enableHtml),i.yb(1),i.pc("ngIf",t.message&&!t.options.enableHtml),i.yb(1),i.pc("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 T=Object.assign(Object.assign({},b),{toastComponent:D});let C=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[{provide:g,useValue:{default:T,config:t}}]}}}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[a.c]]}),e})()},ENF9:function(e,t,n){"use strict";var i,r=n("2oRo"),s=n("4syw"),o=n("8YOa"),a=n("bWFh"),c=n("rKzb"),l=n("hh1v"),u=n("afO8").enforce,d=n("f5p1"),h=!r.ActiveXObject&&"ActiveXObject"in r,f=Object.isExtensible,p=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},m=e.exports=a("WeakMap",p,c);if(d&&h){i=c.getConstructor(p,"WeakMap",!0),o.REQUIRED=!0;var b=m.prototype,g=b.delete,_=b.has,y=b.get,v=b.set;s(b,{delete:function(e){if(l(e)&&!f(e)){var t=u(this);return t.frozen||(t.frozen=new i),g.call(this,e)||t.frozen.delete(e)}return g.call(this,e)},has:function(e){if(l(e)&&!f(e)){var t=u(this);return t.frozen||(t.frozen=new i),_.call(this,e)||t.frozen.has(e)}return _.call(this,e)},get:function(e){if(l(e)&&!f(e)){var t=u(this);return t.frozen||(t.frozen=new i),_.call(this,e)?y.call(this,e):t.frozen.get(e)}return y.call(this,e)},set:function(e,t){if(l(e)&&!f(e)){var n=u(this);n.frozen||(n.frozen=new i),_.call(this,e)?v.call(this,e,t):n.frozen.set(e,t)}else v.call(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"))},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.dc(r.b),c.dc(a.a))},e.\u0275prov=c.Ib({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.o,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.Mb(i.m),i.Mb(c.p),i.Mb(o.a),i.Mb(a.a))},e.\u0275dir=i.Hb({type:e,selectors:[["","cdDimlessBinary",""]],hostBindings:function(e,t){1&e&&i.gc("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"),s=n("rkAj"),o=r("forEach"),a=s("forEach");e.exports=o&&a?[].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.Lb({name:"join",type:e,pure:!0}),e})()},FMNM:function(e,t,n){var i=n("xrYK"),r=n("kmMV");e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var s=n.call(e,t);if("object"!=typeof s)throw TypeError("RegExp exec method returned something other than an Object or null");return s}if("RegExp"!==i(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},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.o}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.Mb(a.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-table-key-value"]],viewQuery:function(e,t){var n;1&e&&i.Jc(c.a,!0),2&e&&i.zc(n=i.hc())&&(t.table=n.first)},inputs:{data:"data",autoReload:"autoReload",renderObjects:"renderObjects",appendParentKey:"appendParentKey",hideEmpty:"hideEmpty",hideKeys:"hideKeys",customCss:"customCss"},outputs:{fetchData:"fetchData"},features:[i.wb],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.Nb(0,"cd-table",0,1),2&e&&i.pc("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.Mb(i.a))},e.\u0275pipe=r.Lb({name:"dimlessBinary",type:e,pure:!0}),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 Xt})),n.d(t,"b",(function(){return He})),n.d(t,"c",(function(){return We})),n.d(t,"d",(function(){return Qe})),n.d(t,"e",(function(){return Ve})),n.d(t,"f",(function(){return Be})),n.d(t,"g",(function(){return ht})),n.d(t,"h",(function(){return jt})),n.d(t,"i",(function(){return Bt})),n.d(t,"j",(function(){return $t})),n.d(t,"k",(function(){return Ht})),n.d(t,"l",(function(){return Ut})),n.d(t,"m",(function(){return Vt})),n.d(t,"n",(function(){return It})),n.d(t,"o",(function(){return sn})),n.d(t,"p",(function(){return dn})),n.d(t,"q",(function(){return ln})),n.d(t,"r",(function(){return un})),n.d(t,"s",(function(){return hn})),n.d(t,"t",(function(){return pn})),n.d(t,"u",(function(){return fn})),n.d(t,"v",(function(){return zt})),n.d(t,"w",(function(){return Sn})),n.d(t,"x",(function(){return yn})),n.d(t,"y",(function(){return Mn})),n.d(t,"z",(function(){return xn})),n.d(t,"A",(function(){return Dn})),n.d(t,"B",(function(){return Nn})),n.d(t,"C",(function(){return jn})),n.d(t,"D",(function(){return $n})),n.d(t,"E",(function(){return Fn})),n.d(t,"F",(function(){return Hn})),n.d(t,"G",(function(){return Kn})),n.d(t,"H",(function(){return Zn}));var i=n("8Y7J"),r=n("SVse"),s=n("s7LF"),o=n("XNiG"),a=n("2Vo4"),c=(n("itXk"),n("PqYM"),n("5yfJ"),n("xgIS")),l=n("VRyK"),u=n("DH7j"),d=n("yCtX"),h=n("l7GE"),f=n("ZUHj");class p{call(e,t){return t.subscribe(new m(e))}}class m extends h.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(f.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 b=n("HDdC"),g=n("lJxs"),_=(n("JX91"),n("/uUt"),n("eIep")),y=n("1G5W"),v=n("pLZG"),w=n("IzEk"),S=n("vkgz");function M(...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 x(e,this.observables,this.project))}}class x extends h.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(f.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 D=n("3E0/"),T=n("w1tV");function C(e,t){if(1&e){const e=i.Tb();i.Sb(0,"button",1),i.Yb(1,2),i.gc("click",(function(){return i.Dc(e),i.ic().closeHandler()})),i.Sb(2,"span",3),i.Oc(3,"\xd7"),i.Rb(),i.Rb()}}const O=["*"],L=["defaultDayTemplate"],R=["content"];function E(e,t){if(1&e&&i.Nb(0,"div",7),2&e){const e=t.currentMonth,n=t.selected,r=t.disabled,s=t.focused;i.pc("date",t.date)("currentMonth",e)("selected",n)("disabled",r)("focused",s)}}function A(e,t){if(1&e&&(i.Sb(0,"div",12),i.Oc(1),i.Rb()),2&e){const e=i.ic().$implicit,t=i.ic(2);i.yb(1),i.Rc(" ",t.i18n.getMonthFullName(e.number,e.year)," ",t.i18n.getYearNumerals(e.year)," ")}}function I(e,t){if(1&e&&(i.Sb(0,"div",9),i.Mc(1,A,2,2,"div",10),i.Nb(2,"ngb-datepicker-month",11),i.Rb()),2&e){const e=t.$implicit,n=i.ic(2);i.yb(1),i.pc("ngIf","none"===n.navigation||n.displayMonths>1&&"select"===n.navigation),i.yb(1),i.pc("month",e.firstDate)}}function P(e,t){if(1&e&&i.Mc(0,I,3,2,"div",8),2&e){const e=i.ic();i.pc("ngForOf",e.model.months)}}function N(e,t){if(1&e){const e=i.Tb();i.Sb(0,"ngb-datepicker-navigation",13),i.gc("navigate",(function(t){return i.Dc(e),i.ic().onNavigateEvent(t)}))("select",(function(t){return i.Dc(e),i.ic().onNavigateDateSelect(t)})),i.Rb()}if(2&e){const e=i.ic();i.pc("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 F(e,t){}function Y(e,t){1&e&&i.Nb(0,"div",5)}function z(e,t){if(1&e&&(i.Sb(0,"div",6),i.Oc(1),i.Rb()),2&e){const e=t.$implicit,n=i.ic(2);i.yb(1),i.Qc(" ",n.i18n.getWeekdayShortName(e)," ")}}function $(e,t){if(1&e&&(i.Sb(0,"div",2),i.Mc(1,Y,1,0,"div",3),i.Mc(2,z,2,1,"div",4),i.Rb()),2&e){const e=i.ic();i.yb(1),i.pc("ngIf",e.datepicker.showWeekNumbers),i.yb(1),i.pc("ngForOf",e.viewModel.weekdays)}}function H(e,t){if(1&e&&(i.Sb(0,"div",11),i.Oc(1),i.Rb()),2&e){const e=i.ic(2).$implicit,t=i.ic();i.yb(1),i.Pc(t.i18n.getWeekNumerals(e.number))}}function W(e,t){}function V(e,t){if(1&e&&i.Mc(0,W,0,0,"ng-template",14),2&e){const e=i.ic().$implicit,t=i.ic(3);i.pc("ngTemplateOutlet",t.datepicker.dayTemplate)("ngTemplateOutletContext",e.context)}}function B(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",12),i.gc("click",(function(n){i.Dc(e);const r=t.$implicit;return i.ic(3).doSelect(r),n.preventDefault()})),i.Mc(1,V,1,2,"ng-template",13),i.Rb()}if(2&e){const e=t.$implicit;i.Eb("disabled",e.context.disabled)("hidden",e.hidden)("ngb-dp-today",e.context.today),i.pc("tabindex",e.tabindex),i.zb("aria-label",e.ariaLabel),i.yb(1),i.pc("ngIf",!e.hidden)}}function U(e,t){if(1&e&&(i.Sb(0,"div",8),i.Mc(1,H,2,1,"div",9),i.Mc(2,B,2,9,"div",10),i.Rb()),2&e){const e=i.ic().$implicit,t=i.ic();i.yb(1),i.pc("ngIf",t.datepicker.showWeekNumbers),i.yb(1),i.pc("ngForOf",e.days)}}function G(e,t){1&e&&i.Mc(0,U,3,2,"div",7),2&e&&i.pc("ngIf",!t.$implicit.collapsed)}function q(e,t){if(1&e){const e=i.Tb();i.Sb(0,"ngb-datepicker-navigation-select",8),i.gc("select",(function(t){return i.Dc(e),i.ic().select.emit(t)})),i.Rb()}if(2&e){const e=i.ic();i.pc("date",e.date)("disabled",e.disabled)("months",e.selectBoxes.months)("years",e.selectBoxes.years)}}function J(e,t){1&e&&i.Nb(0,"div",0)}function Q(e,t){1&e&&i.Nb(0,"div",0)}function K(e,t){if(1&e&&(i.Mc(0,J,1,0,"div",10),i.Sb(1,"div",11),i.Oc(2),i.Rb(),i.Mc(3,Q,1,0,"div",10)),2&e){const e=t.$implicit,n=t.index,r=i.ic(2);i.pc("ngIf",n>0),i.yb(2),i.Rc(" ",r.i18n.getMonthFullName(e.number,e.year)," ",r.i18n.getYearNumerals(e.year)," "),i.yb(1),i.pc("ngIf",n!==r.months.length-1)}}function Z(e,t){if(1&e&&i.Mc(0,K,4,4,"ng-template",9),2&e){const e=i.ic();i.pc("ngForOf",e.months)}}const X=["ngbDatepickerDayView",""],ee=["month"],te=["year"];function ne(e,t){if(1&e&&(i.Sb(0,"option",6),i.Oc(1),i.Rb()),2&e){const e=t.$implicit,n=i.ic();i.pc("value",e),i.zb("aria-label",n.i18n.getMonthFullName(e,null==n.date?null:n.date.year)),i.yb(1),i.Pc(n.i18n.getMonthShortName(e,null==n.date?null:n.date.year))}}function ie(e,t){if(1&e&&(i.Sb(0,"option",6),i.Oc(1),i.Rb()),2&e){const e=t.$implicit,n=i.ic();i.pc("value",e),i.yb(1),i.Pc(n.i18n.getYearNumerals(e))}}const re=["dialog"],se=["ngbNavOutlet",""];function oe(e,t){}const ae=function(e){return{$implicit:e}};function ce(e,t){if(1&e&&(i.Sb(0,"div",2),i.Mc(1,oe,0,0,"ng-template",3),i.Rb()),2&e){const e=i.ic().$implicit,t=i.ic();i.Eb("active",e.active),i.pc("id",e.panelDomId),i.zb("role",t.paneRole?t.paneRole:t.nav.roles?"tabpanel":void 0)("aria-labelledby",e.domId),i.yb(1),i.pc("ngTemplateOutlet",(null==e.contentTpl?null:e.contentTpl.templateRef)||null)("ngTemplateOutletContext",i.uc(7,ae,e.active))}}function le(e,t){1&e&&i.Mc(0,ce,2,9,"div",1),2&e&&i.pc("ngIf",t.$implicit.isPanelInDom())}function ue(e,t){if(1&e&&i.Oc(0),2&e){const e=i.ic(2);i.Pc(e.title)}}function de(e,t){}function he(e,t){if(1&e&&(i.Sb(0,"h3",3),i.Mc(1,ue,1,1,"ng-template",null,4,i.Nc),i.Mc(3,de,0,0,"ng-template",5),i.Rb()),2&e){const e=i.Ac(2),t=i.ic();i.yb(3),i.pc("ngTemplateOutlet",t.isTitleTemplate()?t.title:e)("ngTemplateOutletContext",t.context)}}function fe(e,t){if(1&e&&(i.Sb(0,"span"),i.Wb(1,3),i.jc(2,"percent"),i.Rb()),2&e){const e=i.ic();i.yb(2),i.ac(i.kc(2,1,e.getValue()/e.max)),i.Xb(1)}}function pe(e,t){if(1&e){const e=i.Tb();i.Sb(0,"button",12),i.gc("click",(function(){i.Dc(e);const t=i.ic();return t.changeHour(t.hourStep)})),i.Nb(1,"span",13),i.Sb(2,"span",14),i.Wb(3,15),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.Eb("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),i.pc("disabled",e.disabled)}}function me(e,t){if(1&e){const e=i.Tb();i.Sb(0,"button",12),i.gc("click",(function(){i.Dc(e);const t=i.ic();return t.changeHour(-t.hourStep)})),i.Nb(1,"span",16),i.Sb(2,"span",14),i.Wb(3,17),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.Eb("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),i.pc("disabled",e.disabled)}}function be(e,t){if(1&e){const e=i.Tb();i.Sb(0,"button",12),i.gc("click",(function(){i.Dc(e);const t=i.ic();return t.changeMinute(t.minuteStep)})),i.Nb(1,"span",13),i.Sb(2,"span",14),i.Wb(3,18),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.Eb("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),i.pc("disabled",e.disabled)}}function ge(e,t){if(1&e){const e=i.Tb();i.Sb(0,"button",12),i.gc("click",(function(){i.Dc(e);const t=i.ic();return t.changeMinute(-t.minuteStep)})),i.Nb(1,"span",16),i.Sb(2,"span",14),i.Wb(3,19),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.Eb("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),i.pc("disabled",e.disabled)}}function _e(e,t){1&e&&(i.Sb(0,"div",6),i.Oc(1,":"),i.Rb())}function ye(e,t){if(1&e){const e=i.Tb();i.Sb(0,"button",12),i.gc("click",(function(){i.Dc(e);const t=i.ic(2);return t.changeSecond(t.secondStep)})),i.Nb(1,"span",13),i.Sb(2,"span",14),i.Wb(3,22),i.Rb(),i.Rb()}if(2&e){const e=i.ic(2);i.Eb("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),i.pc("disabled",e.disabled)}}function ve(e,t){if(1&e){const e=i.Tb();i.Sb(0,"button",12),i.gc("click",(function(){i.Dc(e);const t=i.ic(2);return t.changeSecond(-t.secondStep)})),i.Nb(1,"span",16),i.Sb(2,"span",14),i.Wb(3,23),i.Rb(),i.Rb()}if(2&e){const e=i.ic(2);i.Eb("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),i.pc("disabled",e.disabled)}}function we(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",20),i.Mc(1,ye,4,7,"button",3),i.Sb(2,"input",4),i.Yb(3,21),i.gc("change",(function(t){return i.Dc(e),i.ic().updateSecond(t.target.value)}))("input",(function(t){return i.Dc(e),i.ic().formatInput(t.target)}))("keydown.ArrowUp",(function(t){i.Dc(e);const n=i.ic();return n.changeSecond(n.secondStep),t.preventDefault()}))("keydown.ArrowDown",(function(t){i.Dc(e);const n=i.ic();return n.changeSecond(-n.secondStep),t.preventDefault()})),i.Rb(),i.Mc(4,ve,4,7,"button",3),i.Rb()}if(2&e){const e=i.ic();i.yb(1),i.pc("ngIf",e.spinners),i.yb(1),i.Eb("form-control-sm",e.isSmallSize)("form-control-lg",e.isLargeSize),i.pc("value",e.formatMinSec(null==e.model?null:e.model.second))("readOnly",e.readonlyInputs)("disabled",e.disabled),i.yb(2),i.pc("ngIf",e.spinners)}}function Se(e,t){1&e&&i.Nb(0,"div",6)}function Me(e,t){if(1&e&&(i.Qb(0),i.Wb(1,28),i.Pb()),2&e){const e=i.ic(2);i.yb(1),i.ac(e.i18n.getAfternoonPeriod()),i.Xb(1)}}function ke(e,t){if(1&e&&i.Wb(0,29),2&e){const e=i.ic(2);i.ac(e.i18n.getMorningPeriod()),i.Xb(0)}}function xe(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",24),i.Sb(1,"button",25),i.gc("click",(function(){return i.Dc(e),i.ic().toggleMeridian()})),i.Mc(2,Me,2,1,"ng-container",26),i.Mc(3,ke,1,1,"ng-template",null,27,i.Nc),i.Rb(),i.Rb()}if(2&e){const e=i.Ac(4),t=i.ic();i.yb(1),i.Eb("btn-sm",t.isSmallSize)("btn-lg",t.isLargeSize)("disabled",t.disabled),i.pc("disabled",t.disabled),i.yb(1),i.pc("ngIf",t.model&&t.model.hour>=12)("ngIfElse",e)}}function De(e,t){if(1&e&&(i.Sb(0,"span"),i.Oc(1),i.Rb()),2&e){const e=i.ic().$implicit,t=i.ic();i.Ab(t.highlightClass),i.yb(1),i.Pc(e)}}function Te(e,t){if(1&e&&i.Oc(0),2&e){const e=i.ic().$implicit;i.Pc(e)}}function Ce(e,t){if(1&e&&(i.Mc(0,De,2,3,"span",1),i.Mc(1,Te,1,1,"ng-template",null,2,i.Nc)),2&e){const e=t.odd,n=i.Ac(2);i.pc("ngIf",e)("ngIfElse",n)}}function Oe(e,t){if(1&e&&i.Nb(0,"ngb-highlight",2),2&e){const e=t.term;i.pc("result",(0,t.formatter)(t.result))("term",e)}}function Le(e,t){}const Re=function(e,t,n){return{result:e,term:t,formatter:n}};function Ee(e,t){if(1&e){const e=i.Tb();i.Sb(0,"button",3),i.gc("mouseenter",(function(){i.Dc(e);const n=t.index;return i.ic().markActive(n)}))("click",(function(){i.Dc(e);const n=t.$implicit;return i.ic().select(n)})),i.Mc(1,Le,0,0,"ng-template",4),i.Rb()}if(2&e){const e=t.$implicit,n=t.index,r=i.ic(),s=i.Ac(1);i.Eb("active",n===r.activeIdx),i.pc("id",r.id+"-"+n),i.yb(1),i.pc("ngTemplateOutlet",r.resultTemplate||s)("ngTemplateOutletContext",i.wc(5,Re,e,r.term,r.formatter))}}function Ae(e){return parseInt(""+e,10)}function Ie(e){return null!=e?""+e:""}function Pe(e){return"string"==typeof e}function Ne(e){return!isNaN(Ae(e))}function je(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function Fe(e){return null!=e}function Ye(e){return Ne(e)?("0"+e).slice(-2):""}function ze(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 $e=(()=>{let e=class{constructor(){this.dismissible=!0,this.type="warning"}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),He=(()=>{let e=class{constructor(e,t,n){this._renderer=t,this._element=n,this.close=new i.o,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)(i.Mb($e),i.Mb(i.E),i.Mb(i.m))},e.\u0275cmp=i.Gb({type:e,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert"],hostVars:2,hostBindings:function(e,t){2&e&&i.Eb("alert-dismissible",t.dismissible)},inputs:{dismissible:"dismissible",type:"type"},outputs:{close:"close"},features:[i.wb],ngContentSelectors:O,decls:2,vars:1,consts:function(){return[["type","button","class","close",3,"click",4,"ngIf",6,"aria-label"],["type","button",1,"close",3,"click",6,"aria-label"],["aria-label","Close"],["aria-hidden","true"]]},template:function(e,t){1&e&&(i.oc(),i.nc(0),i.Mc(1,C,4,0,"button",0)),2&e&&(i.yb(1),i.pc("ngIf",t.dismissible))},directives:[r.r],styles:["ngb-alert{display:block}"],encapsulation:2,changeDetection:0}),e})(),We=(()=>{let e=class{};return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[r.c]]}),e})(),Ve=(()=>{let e=class{constructor(){this.collapsed=!1}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Hb({type:e,selectors:[["","ngbCollapse",""]],hostVars:4,hostBindings:function(e,t){2&e&&i.Eb("collapse",!0)("show",!t.collapsed)},inputs:{collapsed:["ngbCollapse","collapsed"]},exportAs:["ngbCollapse"]}),e})(),Be=(()=>{let e=class{};return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)}}),e})();class Ue{constructor(e,t,n){this.year=je(e)?e:null,this.month=je(t)?t:null,this.day=je(n)?n:null}static from(e){return e instanceof Ue?e:e?new Ue(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 Ge(e){return new Ue(e.getFullYear(),e.getMonth()+1,e.getDate())}function qe(e){const t=new Date(e.year,e.month-1,e.day,12);return isNaN(t.getTime())||t.setFullYear(e.year),t}function Je(){return new Ke}let Qe=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Ib)({factory:Je,token:e,providedIn:"root"}),e})(),Ke=(()=>{let e=class extends Qe{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=qe(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),Ge(i)}getPrev(e,t="d",n=1){return this.getNext(e,t,-n)}getWeekday(e){let t=qe(e).getDay();return 0===t?7:t}getWeekNumber(e,t){7===t&&(t=0);const n=qe(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 Ge(new Date)}isValid(e){if(!(e&&je(e.year)&&je(e.month)&&je(e.day)))return!1;if(0===e.year)return!1;const t=qe(e);return!isNaN(t.getTime())&&t.getFullYear()===e.year&&t.getMonth()+1===e.month&&t.getDate()===e.day}};return e.\u0275fac=function(t){return Xn(t||e)},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}}),e})();function Ze(e,t){return!function(e,t){return!e&&!t||!!e&&!!t&&e.equals(t)}(e,t)}function Xe(e,t){return!(!e&&!t||e&&t&&e.year===t.year&&e.month===t.month)}function et(e,t,n){return e&&t&&e.before(t)?t:e&&n&&e.after(n)?n:e||null}function tt(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 nt=(()=>{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(i.Ib)({factory:function(){return e=Object(i.dc)(i.v),new it(e);var e},token:e,providedIn:"root"}),e})(),it=(()=>{let e=class extends nt{constructor(e){super(),this._locale=e;const t=Object(r.F)(e,r.g.Standalone,r.B.Short);this._weekdaysShort=t.map((e,n)=>t[(n+1)%7]),this._monthsShort=Object(r.H)(e,r.g.Standalone,r.B.Abbreviated),this._monthsFull=Object(r.H)(e,r.g.Standalone,r.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(r.E)(t,"fullDate",this._locale)}};return e.\u0275fac=function(t){return new(t||e)(i.dc(i.v))},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}}),e})(),rt=(()=>{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(je(e=Ae(e))&&e>0&&this._state.displayMonths!==e)return{displayMonths:e}},disabled:e=>{if(this._state.disabled!==e)return{disabled:e}},firstDayOfWeek:e=>{if(je(e=Ae(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(Ze(this._state.maxDate,t))return{maxDate:t}},minDate:e=>{const t=this.toValidDate(e,null);if(Ze(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 o.a,this._dateSelect$=new o.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(v.a)(e=>e.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe(Object(v.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&&Ze(this._state.focusDate,t)&&this._nextState({focusDate:e})}focusSelect(){tt(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&&!Xe(this._state.firstDate,t)||this._nextState({firstDate:t})}select(e,t={}){const n=this.toValidDate(e,null);null==n||this._state.disabled||(Ze(this._state.selectedDate,n)&&this._nextState({selectedDate:n}),t.emitEvent&&tt(n,this._state)&&this._dateSelect$.next(n))}toValidDate(e,t){const n=Ue.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=et(t.focusDate,t.minDate,t.maxDate),t.firstDate=et(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=et(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=et(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 Ue(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 Ue(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&&!tt(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)(i.dc(Qe),i.dc(nt))},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}}),e})();var st=function(e){return e[e.PREV=0]="PREV",e[e.NEXT=1]="NEXT",e}({});let ot=(()=>{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(i.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})();function at(){return new lt}let ct=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Ib)({factory:at,token:e,providedIn:"root"}),e})(),lt=(()=>{let e=class extends ct{fromModel(e){return e&&je(e.year)&&je(e.month)&&je(e.day)?{year:e.year,month:e.month,day:e.day}:null}toModel(e){return e&&je(e.year)&&je(e.month)&&je(e.day)?{year:e.year,month:e.month,day:e.day}:null}};return e.\u0275fac=function(t){return ei(t||e)},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}}),e})();const ut={provide:s.o,useExisting:Object(i.T)(()=>ht),multi:!0};let dt=(()=>{let e=class{constructor(e){this.templateRef=e}};return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.L))},e.\u0275dir=i.Hb({type:e,selectors:[["ng-template","ngbDatepickerContent",""]]}),e})(),ht=(()=>{let e=class{constructor(e,t,n,r,s,a,c,l){this._service=e,this._calendar=t,this.i18n=n,this._elementRef=a,this._ngbDateAdapter=c,this._ngZone=l,this._controlValue=null,this._destroyed$=new o.a,this._publicState={},this.navigate=new i.o,this.dateSelect=new i.o,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]=r[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,Ze(r,this._controlValue)&&(this._controlValue=r,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(r))),Ze(o,a)&&a&&e.focusVisible&&this.focus(),s.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}focusDate(e){this._service.focus(Ue.from(e))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe(Object(w.a)(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');e&&e.focus()})}navigateTo(e){this._service.open(Ue.from(e?e.day?e:Object.assign(Object.assign({},e),{day:1}):null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const e=Object(c.a)(this._contentEl.nativeElement,"focusin"),t=Object(c.a)(this._contentEl.nativeElement,"focusout"),{nativeElement:n}=this._elementRef;Object(l.a)(e,t).pipe(Object(v.a)(({target:e,relatedTarget:t})=>!(ze(e,"ngb-dp-day")&&ze(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;Xe(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 st.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case st.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=Ue.from(this._ngbDateAdapter.fromModel(e)),this._service.select(this._controlValue)}};return e.\u0275fac=function(t){return new(t||e)(i.Mb(rt),i.Mb(Qe),i.Mb(nt),i.Mb(ot),i.Mb(i.h),i.Mb(i.m),i.Mb(ct),i.Mb(i.A))},e.\u0275cmp=i.Gb({type:e,selectors:[["ngb-datepicker"]],contentQueries:function(e,t,n){var r;1&e&&i.Ic(n,dt,!0),2&e&&i.zc(r=i.hc())&&(t.contentTemplate=r.first)},viewQuery:function(e,t){var n;1&e&&(i.Jc(L,!0),i.Jc(R,!0)),2&e&&(i.zc(n=i.hc())&&(t._defaultDayTemplate=n.first),i.zc(n=i.hc())&&(t._contentEl=n.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:[i.xb([ut,rt]),i.wb],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&&(i.Mc(0,E,1,5,"ng-template",null,0,i.Nc),i.Mc(2,P,1,1,"ng-template",null,1,i.Nc),i.Sb(4,"div",2),i.Mc(5,N,1,7,"ngb-datepicker-navigation",3),i.Rb(),i.Sb(6,"div",4,5),i.Mc(8,j,0,0,"ng-template",6),i.Rb(),i.Mc(9,F,0,0,"ng-template",6)),2&e){const e=i.Ac(3);i.yb(5),i.pc("ngIf","none"!==t.navigation),i.yb(1),i.Eb("ngb-dp-months",!t.contentTemplate),i.yb(2),i.pc("ngTemplateOutlet",(null==t.contentTemplate?null:t.contentTemplate.templateRef)||e),i.yb(1),i.pc("ngTemplateOutlet",t.footerTemplate)}},directives:function(){return[r.r,r.w,Pt,r.q,mt,bt]},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 ft=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 pt=(()=>{let e=class{processKey(e,t){const{state:n,calendar:i}=t;switch(e.which){case ft.PageUp:t.focusDate(i.getPrev(n.focusedDate,e.shiftKey?"y":"m",1));break;case ft.PageDown:t.focusDate(i.getNext(n.focusedDate,e.shiftKey?"y":"m",1));break;case ft.End:t.focusDate(e.shiftKey?n.maxDate:n.lastDate);break;case ft.Home:t.focusDate(e.shiftKey?n.minDate:n.firstDate);break;case ft.ArrowLeft:t.focusDate(i.getPrev(n.focusedDate,"d",1));break;case ft.ArrowUp:t.focusDate(i.getPrev(n.focusedDate,"d",i.getDaysPerWeek()));break;case ft.ArrowRight:t.focusDate(i.getNext(n.focusedDate,"d",1));break;case ft.ArrowDown:t.focusDate(i.getNext(n.focusedDate,"d",i.getDaysPerWeek()));break;case ft.Enter:case ft.Space:t.focusSelect();break;default:return}e.preventDefault(),e.stopPropagation()}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),mt=(()=>{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)(i.Mb(nt),i.Mb(ht),i.Mb(pt),i.Mb(rt))},e.\u0275cmp=i.Gb({type:e,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(e,t){1&e&&i.gc("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&&(i.Mc(0,$,3,2,"div",0),i.Mc(1,G,1,1,"ng-template",1)),2&e&&(i.pc("ngIf",t.datepicker.showWeekdays),i.yb(1),i.pc("ngForOf",t.viewModel.weeks))},directives:[r.r,r.q,r.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})(),bt=(()=>{let e=class{constructor(e){this.i18n=e,this.navigation=st,this.months=[],this.navigate=new i.o,this.select=new i.o}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)(i.Mb(nt))},e.\u0275cmp=i.Gb({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:10,vars:4,consts:function(){return[[1,"ngb-dp-arrow"],["type","button",1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click",6,"aria-label","title"],["aria-label","Previous month","title","Previous month"],[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"],["aria-label","Next month","title","Next month"],[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&&(i.Sb(0,"div",0),i.Sb(1,"button",1),i.Yb(2,2),i.gc("click",(function(e){return t.onClickPrev(e)})),i.Nb(3,"span",3),i.Rb(),i.Rb(),i.Mc(4,q,1,4,"ngb-datepicker-navigation-select",4),i.Mc(5,Z,1,1,void 0,5),i.Sb(6,"div",6),i.Sb(7,"button",1),i.Yb(8,7),i.gc("click",(function(e){return t.onClickNext(e)})),i.Nb(9,"span",3),i.Rb(),i.Rb()),2&e&&(i.yb(1),i.pc("disabled",t.prevDisabled),i.yb(3),i.pc("ngIf",t.showSelect),i.yb(1),i.pc("ngIf",!t.showSelect),i.yb(2),i.pc("disabled",t.nextDisabled))},directives:function(){return[r.r,Nt,r.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 gt=(e,t)=>!!t&&t.some(t=>t.contains(e)),_t=(e,t)=>!t||null!=function(e,t){return t?void 0===e.closest?null:e.closest(t):null}(e,t),yt=(()=>"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 vt(e,t,n,i,r,s,o,a){var l;n&&e.runOutsideAngular((l=()=>{const l=Object(c.a)(t,"keydown").pipe(Object(y.a)(r),Object(v.a)(e=>e.which===ft.Escape),Object(S.a)(e=>e.preventDefault())),h=Object(c.a)(t,"mousedown").pipe(Object(g.a)(e=>{const t=e.target;return 2!==e.button&&!gt(t,o)&&("inside"===n?gt(t,s)&&_t(t,a):"outside"===n?!gt(t,s):_t(t,a)||!gt(t,s))}),Object(y.a)(r)),f=Object(c.a)(t,"mouseup").pipe(M(h),Object(v.a)(([e,t])=>t),Object(D.a)(0),Object(y.a)(r));(function(...e){if(1===e.length){if(!Object(u.a)(e[0]))return e[0];e=e[0]}return Object(d.a)(e,void 0).lift(new p)})([l.pipe(Object(g.a)(e=>0)),f.pipe(Object(g.a)(e=>1))]).subscribe(t=>e.run(()=>i(t)))},yt?()=>setTimeout(()=>l(),100):l))}const wt=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function St(e){const t=Array.from(e.querySelectorAll(wt)).filter(e=>-1!==e.tabIndex);return[t[0],t[t.length-1]]}const Mt=(e,t,n,i=!1)=>{e.runOutsideAngular(()=>{const e=Object(c.a)(t,"focusin").pipe(Object(y.a)(n),Object(g.a)(e=>e.target));Object(c.a)(t,"keydown").pipe(Object(y.a)(n),Object(v.a)(e=>e.which===ft.Tab),M(e)).subscribe(([e,n])=>{const[i,r]=St(t);n!==i&&n!==t||!e.shiftKey||(r.focus(),e.preventDefault()),n!==r||e.shiftKey||(i.focus(),e.preventDefault())}),i&&Object(c.a)(t,"click").pipe(Object(y.a)(n),M(e),Object(g.a)(e=>e[1])).subscribe(e=>e.focus())})};class kt{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}}const xt=/\s+/,Dt=new kt;function Tt(e,t,n,i,r){let s=Array.isArray(n)?n:n.split(xt);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(Dt.positionElements(e,t,d,i)){h=!0;break}r&&n.forEach(e=>{a.remove(e)})}return h||(d=s[0],c(d),Dt.positionElements(e,t,d,i)),d}function Ct(){return new Lt}let Ot=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Ib)({factory:Ct,token:e,providedIn:"root"}),e})(),Lt=(()=>{let e=class extends Ot{parse(e){if(null!=e){const t=e.trim().split("-");if(1===t.length&&Ne(t[0]))return{year:Ae(t[0]),month:null,day:null};if(2===t.length&&Ne(t[0])&&Ne(t[1]))return{year:Ae(t[0]),month:Ae(t[1]),day:null};if(3===t.length&&Ne(t[0])&&Ne(t[1])&&Ne(t[2]))return{year:Ae(t[0]),month:Ae(t[1]),day:Ae(t[2])}}return null}format(e){return e?`${e.year}-${Ne(e.month)?Ye(e.month):""}-${Ne(e.day)?Ye(e.day):""}`:""}};return e.\u0275fac=function(t){return ti(t||e)},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}}),e})(),Rt=(()=>{let e=class extends ot{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 ni(t||e)},e.\u0275prov=Object(i.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})();const Et={provide:s.o,useExisting:Object(i.T)(()=>It),multi:!0},At={provide:s.n,useExisting:Object(i.T)(()=>It),multi:!0};let It=(()=>{let e=class{constructor(e,t,n,r,s,o,a,c,l,u,d){this._parserFormatter=e,this._elRef=t,this._vcRef=n,this._renderer=r,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 i.o,this.navigate=new i.o,this.closed=new i.o,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(Ue.from(this.minDate)))return{ngbDate:{minDate:{minDate:this.minDate,actual:t}}};if(this.maxDate&&e.after(Ue.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(ht);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,Mt(this._ngZone,this._cRef.location.nativeElement,this.closed,!0),this._cRef.instance.focus(),vt(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;Pe(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 Ue(e.year,e.month,e.day):null;return this._calendar.isValid(t)?t:null}_updatePopupPosition(){if(!this._cRef)return;let e;if(e=Pe(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.");Tt(e,this._cRef.location.nativeElement,this.placement,"body"===this.container)}};return e.\u0275fac=function(t){return new(t||e)(i.Mb(Ot),i.Mb(i.m),i.Mb(i.P),i.Mb(i.E),i.Mb(i.j),i.Mb(i.A),i.Mb(Qe),i.Mb(ct),i.Mb(r.d),i.Mb(i.h),i.Mb(Rt))},e.\u0275dir=i.Hb({type:e,selectors:[["input","ngbDatepicker",""]],hostVars:1,hostBindings:function(e,t){1&e&&i.gc("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&&i.Vb("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:[i.xb([Et,At,{provide:ot,useExisting:Rt}]),i.wb]}),e})(),Pt=(()=>{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)(i.Mb(nt))},e.\u0275cmp=i.Gb({type:e,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(e,t){2&e&&i.Eb("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:X,decls:1,vars:1,template:function(e,t){1&e&&i.Oc(0),2&e&&i.Pc(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})(),Nt=(()=>{let e=class{constructor(e,t){this.i18n=e,this._renderer=t,this.select=new i.o,this._month=-1,this._year=-1}changeMonth(e){this.select.emit(new Ue(this.date.year,Ae(e),1))}changeYear(e){this.select.emit(new Ue(Ae(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)(i.Mb(nt),i.Mb(i.E))},e.\u0275cmp=i.Gb({type:e,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(e,t){var n;1&e&&(i.Jc(ee,!0,i.m),i.Jc(te,!0,i.m)),2&e&&(i.zc(n=i.hc())&&(t.monthSelect=n.first),i.zc(n=i.hc())&&(t.yearSelect=n.first))},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},decls:8,vars:4,consts:function(){return[[1,"custom-select",3,"disabled","change",6,"aria-label","title"],["month",""],["aria-label","Select month","title","Select month"],[3,"value",4,"ngFor","ngForOf"],["year",""],["aria-label","Select year","title","Select year"],[3,"value"]]},template:function(e,t){1&e&&(i.Sb(0,"select",0,1),i.Yb(2,2),i.gc("change",(function(e){return t.changeMonth(e.target.value)})),i.Mc(3,ne,2,3,"option",3),i.Rb(),i.Sb(4,"select",0,4),i.Yb(6,5),i.gc("change",(function(e){return t.changeYear(e.target.value)})),i.Mc(7,ie,2,2,"option",3),i.Rb()),2&e&&(i.pc("disabled",t.disabled),i.yb(3),i.pc("ngForOf",t.months),i.yb(1),i.pc("disabled",t.disabled),i.yb(3),i.pc("ngForOf",t.years))},directives:[r.q,s.u,s.B],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})(),jt=(()=>{let e=class{};return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[r.c,s.m]]}),e})(),Ft=(()=>{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(i.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})();var Yt;let zt=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Hb({type:e,selectors:[["",8,"navbar"]]}),e})(),$t=(()=>{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)(i.Mb(i.m))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:2,hostBindings:function(e,t){2&e&&i.Eb("disabled",t.disabled)},inputs:{disabled:"disabled"}}),e})(),Ht=(()=>{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)(i.Mb(Object(i.T)(()=>Bt)),i.Mb(i.m))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(e,t,n){var r;1&e&&i.Fb(n,$t,!1),2&e&&i.zc(r=i.hc())&&(t.menuItems=r)},hostVars:5,hostBindings:function(e,t){1&e&&i.gc("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&&(i.zb("x-placement",t.placement),i.Eb("dropdown-menu",!0)("show",t.dropdown.isOpen()))}}),e})(),Wt=(()=>{let e=class{constructor(e,t){this.dropdown=e,this.nativeElement=t.nativeElement}};return e.\u0275fac=function(t){return new(t||e)(i.Mb(Object(i.T)(()=>Bt)),i.Mb(i.m))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,t){2&e&&i.zb("aria-expanded",t.dropdown.isOpen())}}),e})(),Vt=(()=>{let e=Yt=class extends Wt{constructor(e,t){super(e,t)}};return e.\u0275fac=function(t){return new(t||e)(i.Mb(Object(i.T)(()=>Bt)),i.Mb(i.m))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,t){1&e&&i.gc("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&&i.zb("aria-expanded",t.dropdown.isOpen())},features:[i.xb([{provide:Wt,useExisting:Object(i.T)(()=>Yt)}]),i.vb]}),e})(),Bt=(()=>{let e=class{constructor(e,t,n,r,s,a,c){this._changeDetector=e,this._document=n,this._ngZone=r,this._elementRef=s,this._renderer=a,this._closed$=new o.a,this._bodyContainer=null,this._open=!1,this.openChange=new i.o,this.placement=t.placement,this.container=t.container,this.autoClose=t.autoClose,this.display=c?"static":"dynamic",this._zoneSubscription=r.onStable.subscribe(()=>{this._positionMenu()})}ngAfterContentInit(){this._ngZone.onStable.pipe(Object(w.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(){vt(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!==ft.Space&&t!==ft.Enter){if(t!==ft.Tab){if(s||r){if(this.open(),n.length){switch(t){case ft.ArrowDown:i=Math.min(i+1,n.length-1);break;case ft.ArrowUp:if(this._isDropup()&&-1===i){i=n.length-1;break}i=Math.max(i-1,0);break;case ft.Home:i=0;break;case ft.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(wt);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(c.a)(e.target,"focusout").pipe(Object(w.a)(1)).subscribe(({relatedTarget:e})=>{this._elementRef.nativeElement.contains(e)||this.close()})}}else!r||!0!==this.autoClose&&"inside"!==this.autoClose||Object(c.a)(r,"click").pipe(Object(w.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?Tt(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)(i.Mb(i.h),i.Mb(Ft),i.Mb(r.d),i.Mb(i.A),i.Mb(i.m),i.Mb(i.E),i.Mb(zt,8))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngbDropdown",""]],contentQueries:function(e,t,n){var r;1&e&&(i.Fb(n,Ht,!0),i.Fb(n,Wt,!0)),2&e&&(i.zc(r=i.hc())&&(t._menu=r.first),i.zc(r=i.hc())&&(t._anchor=r.first))},hostVars:2,hostBindings:function(e,t){2&e&&i.Eb("show",t.isOpen())},inputs:{_open:["open","_open"],placement:"placement",container:"container",autoClose:"autoClose",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],features:[i.wb]}),e})(),Ut=(()=>{let e=class{};return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)}}),e})(),Gt=(()=>{let e=class{constructor(){this.backdrop=!0,this.keyboard=!0}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})();class qt{constructor(e,t,n){this.nodes=e,this.viewRef=t,this.componentRef=n}}class Jt{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 i.L){const n=e.createEmbeddedView(t);return this._applicationRef.attachView(n),new qt([n.rootNodes],n)}return new qt([[this._renderer.createText(""+e)]])}return new qt([])}}const Qt=()=>{};let Kt=(()=>{let e=class{constructor(e){this._document=e}compensate(){const e=this._getWidth();return this._isPresent(e)?this._adjustBody(e):Qt}_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)(i.dc(r.d))},e.\u0275prov=Object(i.Ib)({factory:function(){return new e(Object(i.dc)(r.d))},token:e,providedIn:"root"}),e})(),Zt=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:2,hostBindings:function(e,t){2&e&&i.Ab("modal-backdrop fade show"+(t.backdropClass?" "+t.backdropClass:""))},inputs:{backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})();class Xt{close(e){}dismiss(e){}}class en{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 tn=function(e){return e[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",e}({});let nn=(()=>{let e=class{constructor(e,t,n){this._document=e,this._elRef=t,this._zone=n,this._closed$=new o.a,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new i.o}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement}ngAfterViewInit(){const{nativeElement:e}=this._elRef;if(this._zone.runOutsideAngular(()=>{Object(c.a)(e,"keydown").pipe(Object(y.a)(this._closed$),Object(v.a)(e=>e.which===ft.Escape&&this.keyboard)).subscribe(e=>requestAnimationFrame(()=>{e.defaultPrevented||this._zone.run(()=>this.dismiss(tn.ESC))}));let t=!1;Object(c.a)(this._dialogEl.nativeElement,"mousedown").pipe(Object(y.a)(this._closed$),Object(S.a)(()=>t=!1),Object(_.a)(()=>Object(c.a)(e,"mouseup").pipe(Object(y.a)(this._closed$),Object(w.a)(1))),Object(v.a)(({target:t})=>e===t)).subscribe(()=>{t=!0}),Object(c.a)(e,"click").pipe(Object(y.a)(this._closed$)).subscribe(({target:n})=>{!0!==this.backdrop||e!==n||t||this._zone.run(()=>this.dismiss(tn.BACKDROP_CLICK)),t=!1})}),!e.contains(document.activeElement)){const t=e.querySelector("[ngbAutofocus]"),n=St(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)(i.Mb(r.d),i.Mb(i.m),i.Mb(i.A))},e.\u0275cmp=i.Gb({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(e,t){var n;1&e&&i.Jc(re,!0),2&e&&i.zc(n=i.hc())&&(t._dialogEl=n.first)},hostAttrs:["role","dialog","tabindex","-1"],hostVars:5,hostBindings:function(e,t){2&e&&(i.zb("aria-modal",!0)("aria-labelledby",t.ariaLabelledBy)("aria-describedby",t.ariaDescribedBy),i.Ab("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:O,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,t){1&e&&(i.oc(),i.Sb(0,"div",0,1),i.Sb(2,"div",2),i.nc(3),i.Rb(),i.Rb()),2&e&&i.Ab("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})(),rn=(()=>{let e=class{constructor(e,t,n,r,s,a){this._applicationRef=e,this._injector=t,this._document=n,this._scrollBar=r,this._rendererFactory=s,this._ngZone=a,this._activeWindowCmptHasChanged=new o.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 i.o,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const e=this._windowCmpts[this._windowCmpts.length-1];Mt(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:Fe(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 Xt,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 en(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(Zt).create(this._injector);return this._applicationRef.attachView(n.hostView),t.appendChild(n.location.nativeElement),n}_attachWindowComponent(e,t,n){let i=e.resolveComponentFactory(nn).create(this._injector,n.nodes);return this._applicationRef.attachView(i.hostView),t.appendChild(i.location.nativeElement),i}_applyWindowOptions(e,t){this._windowAttributes.forEach(n=>{Fe(t[n])&&(e[n]=t[n])})}_applyBackdropOptions(e,t){this._backdropAttributes.forEach(n=>{Fe(t[n])&&(e[n]=t[n])})}_getContentRef(e,t,n,r,s){return n?n instanceof i.L?this._createFromTemplateRef(n,r):Pe(n)?this._createFromString(n):this._createFromComponent(e,t,n,r,s):new qt([])}_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 qt([n.rootNodes],n)}_createFromString(e){const t=this._document.createTextNode(""+e);return new qt([[t]])}_createFromComponent(e,t,n,r,s){const o=e.resolveComponentFactory(n),a=i.s.create({providers:[{provide:Xt,useValue:r}],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 qt([[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)(i.dc(i.g),i.dc(i.s),i.dc(r.d),i.dc(Kt),i.dc(i.F),i.dc(i.A))},e.\u0275prov=Object(i.Ib)({factory:function(){return new e(Object(i.dc)(i.g),Object(i.dc)(i.p),Object(i.dc)(r.d),Object(i.dc)(Kt),Object(i.dc)(i.F),Object(i.dc)(i.A))},token:e,providedIn:"root"}),e})(),sn=(()=>{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)(i.dc(i.j),i.dc(i.s),i.dc(rn),i.dc(Gt))},e.\u0275prov=Object(i.Ib)({factory:function(){return new e(Object(i.dc)(i.j),Object(i.dc)(i.p),Object(i.dc)(rn),Object(i.dc)(Gt))},token:e,providedIn:"root"}),e})(),on=(()=>{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(i.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})();const an=e=>Fe(e)&&""!==e;let cn=0,ln=(()=>{let e=class{constructor(e){this.templateRef=e}};return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.L))},e.\u0275dir=i.Hb({type:e,selectors:[["ng-template","ngbNavContent",""]]}),e})(),un=(()=>{let e=class{constructor(e,t){this.elementRef=t,this.disabled=!1,this._nav=e}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){Fe(this.domId)||(this.domId="ngb-nav-"+cn++)}get active(){return this._nav.activeId===this.id}get id(){return an(this._id)?this._id:this.domId}get panelDomId(){return this.domId+"-panel"}isPanelInDom(){return(Fe(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}};return e.\u0275fac=function(t){return new(t||e)(i.Mb(Object(i.T)(()=>dn)),i.Mb(i.m))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngbNavItem",""]],contentQueries:function(e,t,n){var r;1&e&&i.Fb(n,ln,!1),2&e&&i.zc(r=i.hc())&&(t.contentTpls=r)},hostVars:2,hostBindings:function(e,t){2&e&&i.Eb("nav-item",!0)},inputs:{disabled:"disabled",domId:"domId",destroyOnHide:"destroyOnHide",_id:["ngbNavItem","_id"]},exportAs:["ngbNavItem"]}),e})(),dn=(()=>{let e=class{constructor(e,t,n,r){this.role=e,this._cd=n,this._document=r,this.activeIdChange=new i.o,this.navChange=new i.o,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 ft.ArrowLeft:if("vertical"===this.orientation)return;r=(r-1+i)%i;break;case ft.ArrowRight:if("vertical"===this.orientation)return;r=(r+1)%i;break;case ft.ArrowDown:if("horizontal"===this.orientation)return;r=(r+1)%i;break;case ft.ArrowUp:if("horizontal"===this.orientation)return;r=(r-1+i)%i;break;case ft.Home:r=0;break;case ft.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(!Fe(this.activeId)){const e=this.items.first?this.items.first.id:null;an(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)(i.ec("role"),i.Mb(on),i.Mb(i.h),i.Mb(r.d))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngbNav",""]],contentQueries:function(e,t,n){var r;1&e&&(i.Fb(n,un,!1),i.Fb(n,hn,!0)),2&e&&(i.zc(r=i.hc())&&(t.items=r),i.zc(r=i.hc())&&(t.links=r))},hostVars:6,hostBindings:function(e,t){1&e&&i.gc("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&&(i.zb("aria-orientation","vertical"===t.orientation&&"tablist"===t.roles?"vertical":void 0)("role",t.role?t.role:t.roles?"tablist":void 0),i.Eb("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})(),hn=(()=>{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)(i.ec("role"),i.Mb(un),i.Mb(dn),i.Mb(i.m))},e.\u0275dir=i.Hb({type:e,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostVars:14,hostBindings:function(e,t){1&e&&i.gc("click",(function(e){return t.nav.click(t.navItem),e.preventDefault()})),2&e&&(i.Vb("id",t.navItem.domId),i.zb("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),i.Eb("nav-link",!0)("nav-item",t.hasNavItemClass())("active",t.navItem.active)("disabled",t.navItem.disabled))}}),e})(),fn=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["","ngbNavOutlet",""]],hostVars:2,hostBindings:function(e,t){2&e&&i.Eb("tab-content",!0)},inputs:{paneRole:"paneRole",nav:["ngbNavOutlet","nav"]},attrs:se,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&&i.Mc(0,le,1,1,"ng-template",0),2&e&&i.pc("ngForOf",t.nav.items)},directives:[r.q,r.r,r.w],encapsulation:2}),e})(),pn=(()=>{let e=class{};return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[r.c]]}),e})();class mn{constructor(e,t){this.open=e,this.close=t,t||(this.close=e)}isManual(){return"manual"===this.open||"manual"===this.close}}const bn={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},gn=e=>e>0?Object(D.a)(e):e=>e;function _n(e,t,n,i,r,s,o=0,a=0){const c=function(e,t=bn){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 mn(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 u=function(e,t,n,i){return new b.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(g.a)(e=>({open:e})),Object(v.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(T.a)()),o=s.pipe(Object(v.a)(e=>e.open),gn(e)),a=s.pipe(Object(v.a)(e=>!e.open),gn(t));return Object(l.a)(o,a).pipe(Object(v.a)(e=>e===r&&(r=null,e.open!==n())),Object(g.a)(e=>e.open))}}(o,a,i)).subscribe(e=>e?r():s());return()=>u.unsubscribe()}let yn=(()=>{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(i.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),vn=0,wn=(()=>{let e=class{isTitleTemplate(){return this.title instanceof i.L}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip"],hostVars:3,hostBindings:function(e,t){2&e&&(i.Vb("id",t.id),i.Ab("popover"+(t.popoverClass?" "+t.popoverClass:"")))},inputs:{title:"title",id:"id",popoverClass:"popoverClass",context:"context"},ngContentSelectors:O,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&&(i.oc(),i.Nb(0,"div",0),i.Mc(1,he,4,2,"h3",1),i.Sb(2,"div",2),i.nc(3),i.Rb()),2&e&&(i.yb(1),i.pc("ngIf",null!=t.title))},directives:[r.r,r.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})(),Sn=(()=>{let e=class{constructor(e,t,n,r,s,o,a,c,l,u){this._elementRef=e,this._renderer=t,this._ngZone=a,this._document=c,this._changeDetector=l,this.shown=new i.o,this.hidden=new i.o,this._ngbPopoverWindowId="ngb-popover-"+vn++,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 Jt(wn,n,s,t,r,u),this._zoneSubscription=a.onStable.subscribe(()=>{this._windowRef&&Tt(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(),vt(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=_n(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)(i.Mb(i.m),i.Mb(i.E),i.Mb(i.s),i.Mb(i.j),i.Mb(i.P),i.Mb(yn),i.Mb(i.A),i.Mb(r.d),i.Mb(i.h),i.Mb(i.g))},e.\u0275dir=i.Hb({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:[i.wb]}),e})(),Mn=(()=>{let e=class{};return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[r.c]]}),e})(),kn=(()=>{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(i.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),xn=(()=>{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=!Ne(e)||e<=0?100:e}get max(){return this._max}getValue(){return function(e,t,n=0){return Math.max(Math.min(e,t),n)}(this.value,this.max)}getPercentValue(){return 100*this.getValue()/this.max}};return e.\u0275fac=function(t){return new(t||e)(i.Mb(kn))},e.\u0275cmp=i.Gb({type:e,selectors:[["ngb-progressbar"]],inputs:{value:"value",max:"max",animated:"animated",striped:"striped",textType:"textType",type:"type",showValue:"showValue",height:"height"},ngContentSelectors:O,decls:4,vars:13,consts:function(){return[[1,"progress"],["role","progressbar","aria-valuemin","0"],[4,"ngIf"],"" + "\ufffd0\ufffd" + ""]},template:function(e,t){1&e&&(i.oc(),i.Sb(0,"div",0),i.Sb(1,"div",1),i.Mc(2,fe,3,3,"span",2),i.nc(3),i.Rb(),i.Rb()),2&e&&(i.Kc("height",t.height),i.yb(1),i.Db("progress-bar",t.type?" bg-"+t.type:"","",t.textType?" text-"+t.textType:"","\n      ",t.animated?" progress-bar-animated":"","",t.striped?" progress-bar-striped":"",""),i.Kc("width",t.getPercentValue(),"%"),i.zb("aria-valuenow",t.getValue())("aria-valuemax",t.max),i.yb(1),i.pc("ngIf",t.showValue))},directives:[r.r],pipes:[r.y],encapsulation:2,changeDetection:0}),e})(),Dn=(()=>{let e=class{};return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[r.c]]}),e})();class Tn{constructor(e,t,n){this.hour=Ae(e),this.minute=Ae(t),this.second=Ae(n)}changeHour(e=1){this.updateHour((isNaN(this.hour)?0:this.hour)+e)}updateHour(e){this.hour=Ne(e)?(e<0?24+e:e)%24:NaN}changeMinute(e=1){this.updateMinute((isNaN(this.minute)?0:this.minute)+e)}updateMinute(e){Ne(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){Ne(e)?(this.second=e<0?60+e%60:e%60,this.changeMinute(Math.floor(e/60))):this.second=NaN}isValid(e=!0){return Ne(this.hour)&&Ne(this.minute)&&(!e||Ne(this.second))}toString(){return`${this.hour||0}:${this.minute||0}:${this.second||0}`}}let Cn=(()=>{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(i.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})();function On(){return new Rn}let Ln=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Ib)({factory:On,token:e,providedIn:"root"}),e})(),Rn=(()=>{let e=class extends Ln{fromModel(e){return e&&je(e.hour)&&je(e.minute)?{hour:e.hour,minute:e.minute,second:je(e.second)?e.second:null}:null}toModel(e){return e&&je(e.hour)&&je(e.minute)?{hour:e.hour,minute:e.minute,second:je(e.second)?e.second:null}:null}};return e.\u0275fac=function(t){return ii(t||e)},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}}),e})(),En=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Ib)({factory:function(){return e=Object(i.dc)(i.v),new An(e);var e},token:e,providedIn:"root"}),e})(),An=(()=>{let e=class extends En{constructor(e){super(),this._periods=Object(r.G)(e,r.g.Standalone,r.B.Narrow)}getMorningPeriod(){return this._periods[0]}getAfternoonPeriod(){return this._periods[1]}};return e.\u0275fac=function(t){return new(t||e)(i.dc(i.v))},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}}),e})();const In=/[^0-9]/g,Pn={provide:s.o,useExisting:Object(i.T)(()=>Nn),multi:!0};let Nn=(()=>{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=je(e)?e:this._config.hourStep}get hourStep(){return this._hourStep}set minuteStep(e){this._minuteStep=je(e)?e:this._config.minuteStep}get minuteStep(){return this._minuteStep}set secondStep(e){this._secondStep=je(e)?e:this._config.secondStep}get secondStep(){return this._secondStep}writeValue(e){const t=this._ngbTimeAdapter.fromModel(e);this.model=t?new Tn(t.hour,t.minute,t.second):new Tn,this.seconds||t&&Ne(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=Ae(e);this.model.updateHour(this.meridian&&(t&&n<12||!t&&12===n)?n+12:n),this.propagateModelChange()}updateMinute(e){this.model.updateMinute(Ae(e)),this.propagateModelChange()}updateSecond(e){this.model.updateSecond(Ae(e)),this.propagateModelChange()}toggleMeridian(){this.meridian&&this.changeHour(12)}formatInput(e){e.value=e.value.replace(In,"")}formatHour(e){return Ne(e)?Ye(this.meridian?e%12==0?12:e%12:e%24):Ye(NaN)}formatMinSec(e){return Ye(Ne(e)?e:NaN)}get isSmallSize(){return"small"===this.size}get isLargeSize(){return"large"===this.size}ngOnChanges(e){e.seconds&&!this.seconds&&this.model&&!Ne(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)(i.Mb(Cn),i.Mb(Ln),i.Mb(i.h),i.Mb(En))},e.\u0275cmp=i.Gb({type:e,selectors:[["ngb-timepicker"]],inputs:{meridian:"meridian",spinners:"spinners",seconds:"seconds",hourStep:"hourStep",minuteStep:"minuteStep",secondStep:"secondStep",readonlyInputs:"readonlyInputs",size:"size"},features:[i.xb([Pn]),i.wb],decls:18,vars:25,consts:function(){return[[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",1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","input","keydown.ArrowUp","keydown.ArrowDown",6,"placeholder","aria-label"],["placeholder","HH","aria-label","Hours"],[1,"ngb-tp-spacer"],[1,"ngb-tp-input-container","ngb-tp-minute"],["placeholder","MM","aria-label","Minutes"],["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"],"Increment hours",[1,"chevron","ngb-tp-chevron","bottom"],"Decrement hours","Increment minutes","Decrement minutes",[1,"ngb-tp-input-container","ngb-tp-second"],["placeholder","SS","aria-label","Seconds"],"Increment seconds","Decrement seconds",[1,"ngb-tp-meridian"],["type","button",1,"btn","btn-outline-primary",3,"disabled","click"],[4,"ngIf","ngIfElse"],["am",""],"" + "\ufffd0\ufffd" + "","" + "\ufffd0\ufffd" + ""]},template:function(e,t){1&e&&(i.Sb(0,"fieldset",0),i.Sb(1,"div",1),i.Sb(2,"div",2),i.Mc(3,pe,4,7,"button",3),i.Sb(4,"input",4),i.Yb(5,5),i.gc("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()})),i.Rb(),i.Mc(6,me,4,7,"button",3),i.Rb(),i.Sb(7,"div",6),i.Oc(8,":"),i.Rb(),i.Sb(9,"div",7),i.Mc(10,be,4,7,"button",3),i.Sb(11,"input",4),i.Yb(12,8),i.gc("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()})),i.Rb(),i.Mc(13,ge,4,7,"button",3),i.Rb(),i.Mc(14,_e,2,0,"div",9),i.Mc(15,we,5,9,"div",10),i.Mc(16,Se,1,0,"div",9),i.Mc(17,xe,5,9,"div",11),i.Rb(),i.Rb()),2&e&&(i.Eb("disabled",t.disabled),i.pc("disabled",t.disabled),i.yb(3),i.pc("ngIf",t.spinners),i.yb(1),i.Eb("form-control-sm",t.isSmallSize)("form-control-lg",t.isLargeSize),i.pc("value",t.formatHour(null==t.model?null:t.model.hour))("readOnly",t.readonlyInputs)("disabled",t.disabled),i.yb(2),i.pc("ngIf",t.spinners),i.yb(4),i.pc("ngIf",t.spinners),i.yb(1),i.Eb("form-control-sm",t.isSmallSize)("form-control-lg",t.isLargeSize),i.pc("value",t.formatMinSec(null==t.model?null:t.model.minute))("readOnly",t.readonlyInputs)("disabled",t.disabled),i.yb(2),i.pc("ngIf",t.spinners),i.yb(1),i.pc("ngIf",t.seconds),i.yb(1),i.pc("ngIf",t.seconds),i.yb(1),i.pc("ngIf",t.meridian),i.yb(1),i.pc("ngIf",t.meridian))},directives:[r.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.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[r.c]]}),e})(),Fn=(()=>{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(i.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Yn=0,zn=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:3,hostBindings:function(e,t){2&e&&(i.Vb("id",t.id),i.Ab("tooltip show"+(t.tooltipClass?" "+t.tooltipClass:"")))},inputs:{id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:O,decls:3,vars:0,consts:[[1,"arrow"],[1,"tooltip-inner"]],template:function(e,t){1&e&&(i.oc(),i.Nb(0,"div",0),i.Sb(1,"div",1),i.nc(2),i.Rb())},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})(),$n=(()=>{let e=class{constructor(e,t,n,r,s,o,a,c,l,u){this._elementRef=e,this._renderer=t,this._ngZone=a,this._document=c,this._changeDetector=l,this.shown=new i.o,this.hidden=new i.o,this._ngbTooltipWindowId="ngb-tooltip-"+Yn++,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 Jt(zn,n,s,t,r,u),this._zoneSubscription=a.onStable.subscribe(()=>{this._windowRef&&Tt(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(),vt(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=_n(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)(i.Mb(i.m),i.Mb(i.E),i.Mb(i.s),i.Mb(i.j),i.Mb(i.P),i.Mb(Fn),i.Mb(i.A),i.Mb(r.d),i.Mb(i.h),i.Mb(i.g))},e.\u0275dir=i.Hb({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:[i.wb]}),e})(),Hn=(()=>{let e=class{};return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)}}),e})(),Wn=(()=>{let e=class{constructor(){this.highlightClass="ngb-highlight"}ngOnChanges(e){const t=Ie(this.result),n=(Array.isArray(this.term)?this.term:[this.term]).map(e=>Ie(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=i.Gb({type:e,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term"},features:[i.wb],decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["even",""]],template:function(e,t){1&e&&i.Mc(0,Ce,3,2,"ng-template",0),2&e&&i.pc("ngForOf",t.parts)},directives:[r.q,r.r],styles:[".ngb-highlight{font-weight:700}"],encapsulation:2,changeDetection:0}),e})(),Vn=(()=>{let e=class{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=Ie,this.selectEvent=new i.o,this.activeChangeEvent=new i.o}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=i.Gb({type:e,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox",1,"dropdown-menu","show"],hostVars:1,hostBindings:function(e,t){1&e&&i.gc("mousedown",(function(e){return e.preventDefault()})),2&e&&i.Vb("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&&(i.Mc(0,Oe,1,2,"ng-template",null,0,i.Nc),i.Mc(2,Ee,2,9,"ng-template",1)),2&e&&(i.yb(2),i.pc("ngForOf",t.results))},directives:[r.q,Wn,r.w],encapsulation:2}),e})();const Bn=new i.r("live announcer delay",{providedIn:"root",factory:function(){return 100}});function Un(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 Gn=(()=>{let e=class{constructor(e,t){this._document=e,this._delay=t}ngOnDestroy(){const e=Un(this._document);e&&e.parentElement.removeChild(e)}say(e){const t=Un(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)(i.dc(r.d),i.dc(Bn))},e.\u0275prov=Object(i.Ib)({factory:function(){return new e(Object(i.dc)(r.d),Object(i.dc)(Bn))},token:e,providedIn:"root"}),e})(),qn=(()=>{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(i.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})();const Jn={provide:s.o,useExisting:Object(i.T)(()=>Kn),multi:!0};let Qn=0,Kn=(()=>{let e=class{constructor(e,t,n,r,s,l,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 o.a,this._inputValueBackup=null,this._windowRef=null,this.autocomplete="off",this.placement="bottom-left",this.selectItem=new i.o,this.activeDescendant=null,this.popupId="ngb-typeahead-"+Qn++,this._onTouched=()=>{},this._onChange=e=>{},this.container=l.container,this.editable=l.editable,this.focusFirst=l.focusFirst,this.showHint=l.showHint,this.placement=l.placement,this._valueChanges=Object(c.a)(e.nativeElement,"input").pipe(Object(g.a)(e=>e.target.value)),this._resubscribeTypeahead=new a.a(null),this._popupService=new Jt(Vn,r,t,n,s,m),this._zoneSubscription=u.onStable.subscribe(()=>{this.isPopupOpen()&&Tt(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(_.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 ft.ArrowDown:e.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case ft.ArrowUp:e.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case ft.Enter:case ft.Tab:const t=this._windowRef.instance.getActive();Fe(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(),vt(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):Ie(e)}_writeInputValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",Ie(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)(i.Mb(i.m),i.Mb(i.P),i.Mb(i.E),i.Mb(i.s),i.Mb(i.j),i.Mb(qn),i.Mb(i.A),i.Mb(Gn),i.Mb(r.d),i.Mb(i.A),i.Mb(i.h),i.Mb(i.g))},e.\u0275dir=i.Hb({type:e,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox","aria-multiline","false"],hostVars:7,hostBindings:function(e,t){1&e&&i.gc("blur",(function(){return t.handleBlur()}))("keydown",(function(e){return t.handleKeyDown(e)})),2&e&&(i.Vb("autocomplete",t.autocomplete),i.zb("aria-autocomplete",t.showHint?"both":"list")("aria-activedescendant",t.activeDescendant)("aria-owns",t.isPopupOpen()?t.popupId:null)("aria-expanded",t.isPopupOpen()),i.Eb("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:[i.xb([Jn])]}),e})(),Zn=(()=>{let e=class{};return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[r.c]]}),e})();const Xn=i.Ub(Ke),ei=i.Ub(lt),ti=i.Ub(Lt),ni=i.Ub(Rt),ii=i.Ub(Rn)},"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.Lb({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}}},"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.\u0275mod=o.Kb({type:e}),e.\u0275inj=o.Jb({factory:function(t){return new(t||e)},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.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){}getPosition(){return 0}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(){let e=0;return this.players.forEach(t=>{const n=t.getPosition();e=Math.min(n,e)}),e}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){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},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.Sb(0,"table"),i.Sb(1,"tr"),i.Sb(2,"td",4),i.Oc(3,"Used:\xa0"),i.Rb(),i.Sb(4,"td",5),i.Sb(5,"strong"),i.Oc(6),i.jc(7,"dimlessBinary"),i.jc(8,"dimless"),i.Rb(),i.Rb(),i.Rb(),i.Sb(9,"tr"),i.Sb(10,"td",4),i.Oc(11,"Free:\xa0"),i.Rb(),i.Sb(12,"td",6),i.Sb(13,"strong"),i.Oc(14),i.jc(15,"dimlessBinary"),i.jc(16,"dimless"),i.Rb(),i.Rb(),i.Rb(),i.Rb()),2&e){const e=i.ic();i.yb(6),i.Qc(" ",e.isBinary?i.kc(7,2,e.used):i.kc(8,4,e.used),""),i.yb(8),i.Pc(e.isBinary?i.kc(15,6,e.total-e.used):i.kc(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.Gb({type:e,selectors:[["cd-usage-bar"]],inputs:{total:"total",used:"used",isBinary:"isBinary",decimals:"decimals"},features:[i.wb],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.Mc(0,c,17,10,"ng-template",null,0,i.Nc),i.Sb(2,"div",1),i.Sb(3,"div",2),i.Sb(4,"span"),i.Oc(5),i.jc(6,"number"),i.Rb(),i.Rb(),i.Nb(7,"div",3),i.Rb()),2&e){const e=i.Ac(1);i.yb(2),i.pc("ngbTooltip",e),i.yb(1),i.Kc("width",t.usedPercentage+"%"),i.yb(2),i.Qc("",i.lc(6,6,t.usedPercentage,"1.0-"+t.decimals),"%"),i.yb(2),i.Kc("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})()},GyhO:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("LRne"),r=n("0EUg");function s(...e){return Object(r.a)()(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"))},HAuM:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},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){e.exports=function(e){if(null==e)throw TypeError("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 s})),n.d(t,"b",(function(){return o}));var i=n("8Y7J"),r=n("SVse"),s=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.o,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.\u0275fac=function(t){return new(t||e)(i.Mb(i.m),i.Mb(i.A),i.Mb(i.C))},e.\u0275dir=i.Hb({type:e,selectors:[["","clickOutside",""]],inputs:{clickOutsideEnabled:"clickOutsideEnabled",attachOutsideOnClick:"attachOutsideOnClick",delayClickOutsideInit:"delayClickOutsideInit",emitOnBlur:"emitOnBlur",exclude:"exclude",excludeBeforeClick:"excludeBeforeClick",clickOutsideEvents:"clickOutsideEvents"},outputs:{clickOutside:"clickOutside"},features:[i.wb]}),e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),o=function(){function e(){}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)}}),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("ppGB"),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.Mb(s.m))},e.\u0275dir=s.Hb({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 D})),n.d(t,"c",(function(){return $})),n.d(t,"d",(function(){return k})),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.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"})}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 y{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||Array.isArray(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 y(t,n,r,{params:c,headers:a,reportProgress:o,responseType:i,withCredentials:s})}}var v=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 S extends w{constructor(e={}){super(e),this.type=v.ResponseHeader}clone(e={}){return new S({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 M extends w{constructor(e={}){super(e),this.type=v.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new M({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 k 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 x(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let D=(()=>{class e{constructor(e){this.handler=e}request(e,t,n={}){let i;if(e instanceof y)i=e;else{let r=void 0;r=n.headers instanceof h?n.headers:new h(n.headers);let s=void 0;n.params&&(s=n.params instanceof m?n.params:new m({fromObject:n.params})),i=new y(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 y||"events"===n.observe)return s;const l=s.pipe(Object(a.a)(e=>e instanceof M));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,x(n,t))}post(e,t,n={}){return this.request("POST",e,x(n,t))}put(e,t,n={}){return this.request("PUT",e,x(n,t))}}return e.\u0275fac=function(t){return new(t||e)(i.dc(u))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})();class T{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const C=new i.r("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.Ib({token:e,factory:e.\u0275fac}),e})();const L=/^\)\]\}',?\n/;class R{}let E=(()=>{class e{constructor(){}build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})(),A=(()=>{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 S({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 M({body:c,headers:i,status:r,statusText:o,url:a||void 0})),t.complete()):t.error(new k({error:c,headers:i,status:r,statusText:o,url:a||void 0}))},a=e=>{const{url:i}=s(),r=new k({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:v.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:v.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),e.reportProgress&&(n.addEventListener("progress",l),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),t.next({type:v.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),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.dc(R))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})();const I=new i.r("XSRF_COOKIE_NAME"),P=new i.r("XSRF_HEADER_NAME");class N{}let j=(()=>{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.dc(l.d),i.dc(i.C),i.dc(I))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})(),F=(()=>{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.dc(N),i.dc(P))},e.\u0275prov=i.Ib({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 T(e,t),this.backend)}return this.chain.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(i.dc(d),i.dc(i.s))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})(),z=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:F,useClass:O}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:I,useValue:t.cookieName}:[],t.headerName?{provide:P,useValue:t.headerName}:[]]}}}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},providers:[F,{provide:C,useExisting:F,multi:!0},{provide:N,useClass:j},{provide:I,useValue:"XSRF-TOKEN"},{provide:P,useValue:"X-XSRF-TOKEN"}]}),e})(),$=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},providers:[D,{provide:u,useClass:Y},A,{provide:d,useExisting:A},E,{provide:R,useExisting:E}],imports:[[z.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("glrk"),r=n("6VoE"),s=n("UMSQ"),o=n("A2ZE"),a=n("NaFW"),c=n("m92n"),l=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,u,d){var h,f,p,m,b,g,_,y=o(t,n,u?2:1);if(d)h=e;else{if("function"!=typeof(f=a(e)))throw TypeError("Target is not iterable");if(r(f)){for(p=0,m=s(e.length);m>p;p++)if((b=u?y(i(_=e[p])[0],_[1]):y(e[p]))&&b instanceof l)return b;return new l(!1)}h=f.call(e)}for(g=h.next;!(_=g.call(h)).done;)if("object"==typeof(b=c(h,y,_.value,u))&&b&&b instanceof l)return b;return new l(!1)}).stop=function(e){return new l(!0,e)}},"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.Mb(i.a))},e.\u0275pipe=r.Lb({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()))}}},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.dc(r.o))},e.\u0275prov=i.Ib({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.Mb(r.p,9))},e.\u0275dir=i.Hb({type:e,selectors:[["","cdStatefulTab",""]],hostBindings:function(e,t){1&e&&i.gc("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)}},"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"))},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"))},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=a&&a.versions,l=c&&c.v8;l?r=(i=l.split("."))[0]+i[1]:o&&(!(i=o.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=o.match(/Chrome\/(\d+)/))&&(r=i[1]),e.exports=r&&+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 Qe})),n.d(t,"RoutedAuthModule",(function(){return Ze}));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.dc(b.b))},e.\u0275prov=m.Ib({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.dc(b.b))},e.\u0275prov=m.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var y=n("mtw6"),v=n("spCT"),w=n("QFaf"),S=n("1Ni5"),M=n("9nlD"),k=function(e){return e.editing="editing",e}({});class x{}var D=n("zc8c"),T=n("NwgZ"),C=n("ocLN"),O=n("ANnk"),L=n("f69J"),R=n("IZUe"),E=n("uIqm"),A=n("6+kj"),I=n("8xTl");const P=["headerPermissionCheckboxTpl"],N=["cellScopeCheckboxTpl"],j=["cellPermissionCheckboxTpl"];function F(e,t){1&e&&(m.Sb(0,"span",27),m.Wb(1,28),m.Rb())}function Y(e,t){1&e&&(m.Sb(0,"span",27),m.Wb(1,29),m.Rb())}const z=function(e){return{required:e}};function $(e,t){if(1&e){const e=m.Tb();m.Sb(0,"div",4),m.Sb(1,"form",5,6),m.Sb(3,"div",7),m.Sb(4,"div",8),m.Wb(5,9),m.jc(6,"titlecase"),m.jc(7,"upperFirst"),m.Rb(),m.Sb(8,"div",10),m.Sb(9,"div",11),m.Sb(10,"label",12),m.Wb(11,13),m.Rb(),m.Sb(12,"div",14),m.Sb(13,"input",15),m.Yb(14,16),m.Rb(),m.Mc(15,F,2,0,"span",17),m.Mc(16,Y,2,0,"span",17),m.Rb(),m.Rb(),m.Sb(17,"div",11),m.Sb(18,"label",18),m.Wb(19,19),m.Rb(),m.Sb(20,"div",14),m.Sb(21,"input",20),m.Yb(22,21),m.Rb(),m.Rb(),m.Rb(),m.Sb(23,"div",11),m.Sb(24,"label",22),m.Wb(25,23),m.Rb(),m.Sb(26,"div",14),m.Nb(27,"cd-table",24),m.Rb(),m.Rb(),m.Rb(),m.Sb(28,"div",25),m.Sb(29,"cd-form-button-panel",26),m.gc("submitActionEvent",(function(){return m.Dc(e),m.ic().submit()})),m.jc(30,"titlecase"),m.jc(31,"upperFirst"),m.Rb(),m.Rb(),m.Rb(),m.Rb(),m.Rb()}if(2&e){const e=m.Ac(2),t=m.ic();m.yb(1),m.pc("formGroup",t.roleForm),m.yb(6),m.ac(m.kc(6,15,t.action))(m.kc(7,17,t.resource)),m.Xb(5),m.yb(3),m.pc("ngClass",m.uc(23,z,t.mode!==t.roleFormMode.editing)),m.yb(5),m.pc("ngIf",t.roleForm.showError("name",e,"required")),m.yb(1),m.pc("ngIf",t.roleForm.showError("name",e,"notUnique")),m.yb(11),m.pc("data",t.scopes_permissions)("columns",t.columns)("toolHeader",!1)("autoReload",!1)("autoSave",!1)("footer",!1)("limit",0),m.yb(2),m.pc("form",t.roleForm)("submitText",m.kc(30,19,t.action)+" "+m.kc(31,21,t.resource))}}function H(e,t){if(1&e){const e=m.Tb();m.Sb(0,"div",30),m.Sb(1,"input",31),m.gc("change",(function(n){m.Dc(e);const i=t.row,r=t.column;return m.ic().onClickCellCheckbox(i.scope,r.prop,n)})),m.Rb(),m.Sb(2,"label",32),m.Oc(3),m.Rb(),m.Rb()}if(2&e){const e=t.row,n=t.value,i=m.ic();m.yb(1),m.rc("id","scope_",e.scope,""),m.pc("checked",i.isRowChecked(e.scope)),m.yb(1),m.rc("for","scope_",e.scope,""),m.yb(1),m.Pc(n)}}function W(e,t){if(1&e){const e=m.Tb();m.Sb(0,"div",30),m.Sb(1,"input",33),m.gc("change",(function(n){m.Dc(e);const i=t.row,r=t.column;return m.ic().onClickCellCheckbox(i.scope,r.prop,n)})),m.Rb(),m.Nb(2,"label",34),m.Rb()}if(2&e){const e=t.column,n=t.row,i=t.value;m.yb(1),m.pc("checked",i)("id",n.scope+"-"+e.prop),m.yb(1),m.pc("for",n.scope+"-"+e.prop)}}function V(e,t){if(1&e){const e=m.Tb();m.Sb(0,"div",30),m.Sb(1,"input",31),m.gc("change",(function(n){m.Dc(e);const i=t.column;return m.ic().onClickHeaderCheckbox(i.prop,n)})),m.Rb(),m.Sb(2,"label",35),m.Oc(3),m.Rb(),m.Rb()}if(2&e){const e=t.column,n=m.ic();m.yb(1),m.rc("id","header_",e.prop,""),m.pc("checked",n.isHeaderChecked(e.prop)),m.yb(1),m.rc("for","header_",e.prop,""),m.yb(1),m.Pc(e.name)}}let B=(()=>{class e extends v.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=k,this.resource="role",this.createForm(),this.listenToChanges()}createForm(){this.roleForm=new w.a({name:new r.h("",{validators:[r.A.required],asyncValidators:[S.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 x;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(y.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(y.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.Mb(s.a),m.Mb(s.e),m.Mb(g),m.Mb(_),m.Mb(M.a),m.Mb(c.b))},e.\u0275cmp=m.Gb({type:e,selectors:[["cd-role-form"]],viewQuery:function(e,t){var n;1&e&&(m.Jc(P,!0),m.Jc(N,!0),m.Jc(j,!0)),2&e&&(m.zc(n=m.hc())&&(t.headerPermissionCheckboxTpl=n.first),m.zc(n=m.hc())&&(t.cellScopeCheckboxTpl=n.first),m.zc(n=m.hc())&&(t.cellPermissionCheckboxTpl=n.first))},features:[m.vb],decls:7,vars:1,consts:function(){return[["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"],"" + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + "",[1,"card-body"],[1,"form-group","row"],["for","name",1,"cd-col-form-label",3,"ngClass"],"Name",[1,"cd-col-form-input"],["type","text","id","name","name","name","formControlName","name","autofocus","",1,"form-control",6,"placeholder"],["placeholder","Name..."],["class","invalid-feedback",4,"ngIf"],["for","description",1,"cd-col-form-label"],"Description",["type","text","id","description","name","description","formControlName","description",1,"form-control",6,"placeholder"],["placeholder","Description..."],[1,"cd-col-form-label"],"Permissions",["columnMode","flex",3,"data","columns","toolHeader","autoReload","autoSave","footer","limit"],[1,"card-footer"],["wrappingClass","text-right",3,"form","submitText","submitActionEvent"],[1,"invalid-feedback"],"This field is required.","The chosen name is already in use.",[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.Mc(0,$,32,25,"div",0),m.Mc(1,H,4,4,"ng-template",null,1,m.Nc),m.Mc(3,W,3,3,"ng-template",null,2,m.Nc),m.Mc(5,V,4,4,"ng-template",null,3,m.Nc)),2&e&&m.pc("cdFormLoading",t.loading)},directives:[D.a,r.C,r.r,r.k,T.a,C.a,i.p,O.a,r.d,L.a,r.q,r.i,R.a,i.r,E.a,A.a],pipes:[i.A,I.a],styles:[".datatable-permissions-header-cell-label[_ngcontent-%COMP%], .datatable-permissions-scope-cell-label[_ngcontent-%COMP%]{font-weight:700}"]}),e})();var U=n("+fVR"),G=n("0+/T"),q=n("Rf2I"),J=n("x38r"),Q=n("oxzT"),K=n("vCyI"),Z=n("nSDx"),X=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.Mb(s.e))},e.\u0275cmp=m.Gb({type:e,selectors:[["cd-user-tabs"]],decls:8,vars:1,consts:function(){return[["ngbNav","",1,"nav-tabs",3,"activeId","navChange"],["nav","ngbNav"],["ngbNavItem","/user-management/users"],["ngbNavLink",""],"Users",["ngbNavItem","/user-management/roles"],"Roles"]},template:function(e,t){1&e&&(m.Sb(0,"ul",0,1),m.gc("navChange",(function(e){return t.router.navigate([e.nextId])})),m.Sb(2,"li",2),m.Sb(3,"a",3),m.Wb(4,4),m.Rb(),m.Rb(),m.Sb(5,"li",5),m.Sb(6,"a",3),m.Wb(7,6),m.Rb(),m.Rb(),m.Rb()),2&e&&m.pc("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.Qb(0),m.Nb(1,"cd-table",1),m.Pb()),2&e){const e=m.ic();m.yb(1),m.pc("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:J.a.checkIcon},{prop:"create",name:"Create",flexGrow:1,cellClass:"text-center",cellTransformation:J.a.checkIcon},{prop:"update",name:"Update",flexGrow:1,cellClass:"text-center",cellTransformation:J.a.checkIcon},{prop:"delete",name:"Delete",flexGrow:1,cellClass:"text-center",cellTransformation:J.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.Gb({type:e,selectors:[["cd-role-details"]],inputs:{selection:"selection",scopes:"scopes"},features:[m.wb],decls:1,vars:1,consts:[[4,"ngIf"],["columnMode","flex",3,"data","columns","toolHeader","autoReload","autoSave","footer","limit"]],template:function(e,t){1&e&&m.Mc(0,re,2,7,"ng-container",0),2&e&&m.pc("ngIf",t.selection)},directives:[i.r,E.a],styles:[".fa[_ngcontent-%COMP%]{font-size:large}.fa.fa-square-o[_ngcontent-%COMP%]{color:#ced4da}"]}),e})(),oe=(()=>{class e extends U.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:Q.a.add,routerLink:()=>this.urlBuilder.getCreate(),name:this.actionLabels.CREATE},{permission:"create",icon:Q.a.clone,name:this.actionLabels.CLONE,disable:()=>!this.selection.hasSingleSelection,click:()=>this.cloneRole()},{permission:"update",icon:Q.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:Q.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:J.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(y.a.success,"Deleted role '" + e + "'")},()=>{this.modalRef.componentInstance.stopLoadingSpinner()})}deleteRoleModal(){const e=this.selection.first().name;this.modalRef=this.modalService.show(G.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(y.a.success,"Cloned role '" + t.newName + "' from '" + e + "'")})}})}}return e.\u0275fac=function(t){return new(t||e)(m.Mb(g),m.Mb(_),m.Mb(Z.a),m.Mb(X.a),m.Mb(ee.a),m.Mb(M.a),m.Mb(te.a),m.Mb(c.b))},e.\u0275cmp=m.Gb({type:e,selectors:[["cd-role-list"]],features:[m.xb([{provide:te.a,useValue:new te.a("user-management/roles")}]),m.vb],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.Nb(0,"cd-user-tabs"),m.Sb(1,"cd-table",0),m.gc("setExpandedRow",(function(e){return t.setExpandedRow(e)}))("fetchData",(function(){return t.getRoles()}))("updateSelection",(function(e){return t.updateSelection(e)})),m.Nb(2,"cd-table-actions",1),m.Nb(3,"cd-role-details",2),m.Rb()),2&e&&(m.yb(1),m.pc("data",t.roles)("columns",t.columns)("hasDetails",!0),m.yb(1),m.pc("permission",t.permission)("selection",t.selection)("tableActions",t.tableActions),m.yb(1),m.pc("selection",t.expandedRow)("scopes",t.scopes))},directives:[ne,E.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 ye=n("D4zM"),ve=n("p4Cf"),we=n("ppaS"),Se=n("MAOJ");const Me=["removeSelfUserReadUpdatePermissionTpl"];function ke(e,t){1&e&&(m.Sb(0,"span",28),m.Wb(1,29),m.Rb())}function xe(e,t){1&e&&(m.Sb(0,"span",28),m.Wb(1,30),m.Rb())}function De(e,t){if(1&e&&m.Nb(0,"cd-helper",40),2&e){const e=m.ic(3);m.qc("html",e.passwordPolicyHelpText)}}function Te(e,t){1&e&&(m.Sb(0,"span",28),m.Wb(1,41),m.Rb())}function Ce(e,t){if(1&e&&(m.Sb(0,"span",28),m.Oc(1),m.Rb()),2&e){const e=m.ic(3);m.yb(1),m.Qc(" ",e.passwordValuation," ")}}function Oe(e,t){if(1&e&&(m.Sb(0,"div",10),m.Sb(1,"label",31),m.Qb(2),m.Wb(3,32),m.Pb(),m.Mc(4,De,1,1,"cd-helper",33),m.Rb(),m.Sb(5,"div",13),m.Sb(6,"div",34),m.Nb(7,"input",35),m.Sb(8,"span",36),m.Nb(9,"button",37),m.Rb(),m.Rb(),m.Sb(10,"div",38),m.Nb(11,"div",39),m.Rb(),m.Mc(12,Te,2,0,"span",15),m.Mc(13,Ce,2,1,"span",15),m.Rb(),m.Rb()),2&e){m.ic();const e=m.Ac(2),t=m.ic();m.yb(4),m.pc("ngIf",t.passwordPolicyHelpText.length>0),m.yb(7),m.Ab(t.passwordStrengthLevelClass),m.qc("title",t.passwordValuation),m.yb(1),m.pc("ngIf",t.userForm.showError("password",e,"required")),m.yb(1),m.pc("ngIf",t.userForm.showError("password",e,"passwordPolicy"))}}function Le(e,t){1&e&&(m.Sb(0,"span",28),m.Wb(1,46),m.Rb())}function Re(e,t){1&e&&(m.Sb(0,"span",28),m.Wb(1,47),m.Rb())}function Ee(e,t){if(1&e&&(m.Sb(0,"div",10),m.Sb(1,"label",42),m.Wb(2,43),m.Rb(),m.Sb(3,"div",13),m.Sb(4,"div",34),m.Nb(5,"input",44),m.Sb(6,"span",36),m.Nb(7,"button",45),m.Rb(),m.Mc(8,Le,2,0,"span",15),m.Rb(),m.Mc(9,Re,2,0,"span",15),m.Rb(),m.Rb()),2&e){m.ic();const e=m.Ac(2),t=m.ic();m.yb(8),m.pc("ngIf",t.userForm.showError("confirmpassword",e,"match")),m.yb(1),m.pc("ngIf",t.userForm.showError("confirmpassword",e,"required"))}}function Ae(e,t){1&e&&(m.Sb(0,"cd-helper",55),m.Sb(1,"p"),m.Oc(2," The Dashboard setting defining the expiration interval of passwords is currently set to "),m.Sb(3,"strong"),m.Oc(4,"0"),m.Rb(),m.Oc(5,". This means if a date is set, the user password will only expire once. "),m.Rb(),m.Sb(6,"p"),m.Oc(7," Consider configuring the Dashboard setting "),m.Sb(8,"a",56),m.Oc(9,"USER_PWD_EXPIRATION_SPAN"),m.Rb(),m.Oc(10," in order to let passwords expire periodically. "),m.Rb(),m.Rb())}function Ie(e,t){1&e&&(m.Sb(0,"span",28),m.Wb(1,57),m.Rb())}const Pe=function(e){return{required:e}};function Ne(e,t){if(1&e){const e=m.Tb();m.Sb(0,"div",10),m.Sb(1,"label",48),m.Qb(2),m.Wb(3,49),m.Pb(),m.Mc(4,Ae,11,0,"cd-helper",50),m.Rb(),m.Sb(5,"div",13),m.Sb(6,"div",34),m.Sb(7,"input",51,52),m.Yb(9,53),m.gc("click",(function(){return m.Dc(e),m.Ac(8).open()}))("keypress",(function(){return m.Dc(e),m.Ac(8).close()})),m.Rb(),m.Sb(10,"span",36),m.Sb(11,"button",54),m.gc("click",(function(){return m.Dc(e),m.ic(2).clearExpirationDate()})),m.Nb(12,"i"),m.Rb(),m.Rb(),m.Mc(13,Ie,2,0,"span",15),m.Rb(),m.Rb(),m.Rb()}if(2&e){m.ic();const e=m.Ac(2),t=m.ic(),n=m.Ac(4);m.yb(1),m.pc("ngClass",m.uc(7,Pe,t.pwdExpirationSettings.pwdExpirationSpan>0)),m.yb(3),m.pc("ngIf",0==t.pwdExpirationSettings.pwdExpirationSpan),m.yb(3),m.pc("ngbPopover",n),m.yb(5),m.Bb("icon-prepend ",t.icons.destroy,""),m.yb(1),m.pc("ngIf",t.userForm.showError("pwdExpirationDate",e,"required"))}}function je(e,t){1&e&&(m.Sb(0,"span",28),m.Wb(1,58),m.Rb())}function Fe(e,t){if(1&e&&(m.Sb(0,"span",59),m.Nb(1,"cd-select-badges",60),m.Rb()),2&e){const e=m.ic(2);m.yb(1),m.pc("data",e.userForm.controls.roles.value)("options",e.allRoles)("messages",e.messages)}}function Ye(e,t){1&e&&(m.Sb(0,"div",10),m.Sb(1,"div",61),m.Sb(2,"div",62),m.Nb(3,"input",63),m.Sb(4,"label",64),m.Wb(5,65),m.Rb(),m.Rb(),m.Rb(),m.Rb())}function ze(e,t){1&e&&(m.Sb(0,"div",10),m.Sb(1,"div",61),m.Sb(2,"div",62),m.Nb(3,"input",66),m.Sb(4,"label",67),m.Wb(5,68),m.Rb(),m.Rb(),m.Rb(),m.Rb())}function $e(e,t){if(1&e){const e=m.Tb();m.Sb(0,"div",3),m.Sb(1,"form",4,5),m.Sb(3,"div",6),m.Sb(4,"div",7),m.Wb(5,8),m.jc(6,"titlecase"),m.jc(7,"upperFirst"),m.Rb(),m.Sb(8,"div",9),m.Sb(9,"div",10),m.Sb(10,"label",11),m.Wb(11,12),m.Rb(),m.Sb(12,"div",13),m.Nb(13,"input",14),m.Mc(14,ke,2,0,"span",15),m.Mc(15,xe,2,0,"span",15),m.Rb(),m.Rb(),m.Mc(16,Oe,14,7,"div",16),m.Mc(17,Ee,10,2,"div",16),m.Mc(18,Ne,14,9,"div",16),m.Sb(19,"div",10),m.Sb(20,"label",17),m.Wb(21,18),m.Rb(),m.Sb(22,"div",13),m.Nb(23,"input",19),m.Rb(),m.Rb(),m.Sb(24,"div",10),m.Sb(25,"label",20),m.Wb(26,21),m.Rb(),m.Sb(27,"div",13),m.Nb(28,"input",22),m.Mc(29,je,2,0,"span",15),m.Rb(),m.Rb(),m.Sb(30,"div",10),m.Sb(31,"label",23),m.Wb(32,24),m.Rb(),m.Sb(33,"div",13),m.Mc(34,Fe,2,3,"span",25),m.Rb(),m.Rb(),m.Mc(35,Ye,6,0,"div",16),m.Mc(36,ze,6,0,"div",16),m.Rb(),m.Sb(37,"div",26),m.Sb(38,"cd-form-button-panel",27),m.gc("submitActionEvent",(function(){return m.Dc(e),m.ic().submit()})),m.jc(39,"titlecase"),m.jc(40,"upperFirst"),m.Rb(),m.Rb(),m.Rb(),m.Rb(),m.Rb()}if(2&e){const e=m.Ac(2),t=m.ic();m.yb(1),m.pc("formGroup",t.userForm),m.yb(6),m.ac(m.kc(6,15,t.action))(m.kc(7,17,t.resource)),m.Xb(5),m.yb(3),m.pc("ngClass",m.uc(23,Pe,t.mode!==t.userFormMode.editing)),m.yb(4),m.pc("ngIf",t.userForm.showError("username",e,"required")),m.yb(1),m.pc("ngIf",t.userForm.showError("username",e,"notUnique")),m.yb(1),m.pc("ngIf",!t.authStorageService.isSSO()),m.yb(1),m.pc("ngIf",!t.authStorageService.isSSO()),m.yb(1),m.pc("ngIf",!t.authStorageService.isSSO()),m.yb(11),m.pc("ngIf",t.userForm.showError("email",e,"email")),m.yb(5),m.pc("ngIf",t.allRoles),m.yb(1),m.pc("ngIf",!t.isCurrentUser()),m.yb(1),m.pc("ngIf",!t.isCurrentUser()&&!t.authStorageService.isSSO()),m.yb(2),m.pc("form",t.userForm)("submitText",m.kc(39,19,t.action)+" "+m.kc(40,21,t.resource))}}function He(e,t){1&e&&(m.Sb(0,"p"),m.Sb(1,"strong"),m.Wb(2,69),m.Rb(),m.Rb(),m.Nb(3,"br"),m.Sb(4,"p"),m.Wb(5,70),m.Rb(),m.Qb(6),m.Wb(7,71),m.Pb())}function We(e,t){if(1&e&&m.Nb(0,"cd-date-time-picker",72),2&e){const e=m.ic();m.pc("control",e.userForm.get("pwdExpirationDate"))("hasTime",!1)}}let Ve=(()=>{class e extends v.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=Q.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],[S.a.unique(this.userService.validateUserName,this.userService)]],name:[""],password:["",[],[S.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:["",[S.a.email]],roles:[[]],enabled:[!0,[r.A.required]],pwdUpdateRequired:[!0]},{validators:[S.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(y.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(y.a.info,"You were automatically logged out because your roles have been changed.")}):(this.notificationService.show(y.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.Mb(le.a),m.Mb(X.a),m.Mb(s.a),m.Mb(s.e),m.Mb(ee.a),m.Mb(g),m.Mb(de.a),m.Mb(M.a),m.Mb(c.b),m.Mb(be.a),m.Mb(pe.a),m.Mb(ue.a))},e.\u0275cmp=m.Gb({type:e,selectors:[["cd-user-form"]],viewQuery:function(e,t){var n;1&e&&m.Jc(Me,!0),2&e&&m.zc(n=m.hc())&&(t.removeSelfUserReadUpdatePermissionTpl=n.first)},features:[m.vb],decls:5,vars:1,consts:function(){return[["class","cd-col-form",4,"cdFormLoading"],["removeSelfUserReadUpdatePermissionTpl",""],["popContent",""],[1,"cd-col-form"],["name","userForm","novalidate","",3,"formGroup"],["formDir","ngForm"],[1,"card"],[1,"card-header"],"" + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + "",[1,"card-body"],[1,"form-group","row"],["for","username",1,"cd-col-form-label",3,"ngClass"],"Username",[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"],"Full name",["type","text","placeholder","Full name...","id","name","name","name","formControlName","name",1,"form-control"],["for","email",1,"cd-col-form-label"],"Email",["type","email","placeholder","Email...","id","email","name","email","formControlName","email",1,"form-control"],[1,"cd-col-form-label"],"Roles",["class","no-border full-height",4,"ngIf"],[1,"card-footer"],["wrappingClass","text-right",3,"form","submitText","submitActionEvent"],[1,"invalid-feedback"],"This field is required.","The username already exists.",["for","password",1,"cd-col-form-label"],"Password",["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"],"This field is required.",["for","confirmpassword",1,"cd-col-form-label"],"Confirm password",["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"],"Password confirmation doesn't match the password.","This field is required.",["for","pwdExpirationDate",1,"cd-col-form-label",3,"ngClass"],"Password expiration date",["class","text-pre-wrap",4,"ngIf"],["id","pwdExpirationDate","name","pwdExpirationDate","formControlName","pwdExpirationDate","triggers","manual",1,"form-control",3,"ngbPopover","click","keypress",6,"placeholder"],["p","ngbPopover"],["placeholder","Password expiration date..."],["type","button",1,"btn","btn-light",3,"click"],[1,"text-pre-wrap"],["routerLink","/mgr-modules/edit/dashboard",1,"alert-link"],"This field is required.","Invalid email.",[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"],"Enabled",["type","checkbox","id","pwdUpdateRequired","name","pwdUpdateRequired","formControlName","pwdUpdateRequired",1,"custom-control-input"],["for","pwdUpdateRequired",1,"custom-control-label"],"User must change password at next logon","You are about to remove \"user read / update\" permissions from your own user.","If you continue, you will no longer be able to add or remove roles from any user.","Are you sure you want to continue?",[3,"control","hasTime"]]},template:function(e,t){1&e&&(m.Mc(0,$e,41,25,"div",0),m.Mc(1,He,8,0,"ng-template",null,1,m.Nc),m.Mc(3,We,1,2,"ng-template",null,2,m.Nc)),2&e&&m.pc("cdFormLoading",t.loading)},directives:[D.a,r.C,r.r,r.k,T.a,C.a,i.p,O.a,r.d,L.a,r.q,r.i,R.a,i.r,A.a,ye.a,ve.a,o.w,s.h,we.a,r.b,Se.a],pipes:[i.A,I.a],styles:[""]}),e})();var Be=n("a0VL");const Ue=["userRolesTpl"];function Ge(e,t){if(1&e&&(m.Sb(0,"span"),m.Oc(1),m.Rb()),2&e){const e=t.$implicit,n=t.last;m.yb(1),m.Rc(" ",e,"",n?"":", "," ")}}function qe(e,t){1&e&&m.Mc(0,Ge,2,2,"span",3),2&e&&m.pc("ngForOf",t.value)}let Je=(()=>{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:Q.a.add,routerLink:()=>this.urlBuilder.getCreate(),name:this.actionLabels.CREATE},{permission:"update",icon:Q.a.edit,routerLink:()=>this.selection.first()&&this.urlBuilder.getEdit(this.selection.first().username),name:this.actionLabels.EDIT},{permission:"delete",icon:Q.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:J.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(y.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(G.a,{itemDescription:"User",itemNames:[t],submitAction:()=>this.deleteUser(t)}):this.notificationService.show(y.a.error,"Failed to delete user '" + t + "'","You are currently logged in as '" + t + "'.")}}return e.\u0275fac=function(t){return new(t||e)(m.Mb(de.a),m.Mb(Z.a),m.Mb(ee.a),m.Mb(M.a),m.Mb(X.a),m.Mb(te.a),m.Mb(Be.a),m.Mb(c.b))},e.\u0275cmp=m.Gb({type:e,selectors:[["cd-user-list"]],viewQuery:function(e,t){var n;1&e&&m.Jc(Ue,!0),2&e&&m.zc(n=m.hc())&&(t.userRolesTpl=n.first)},features:[m.xb([{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.Nb(0,"cd-user-tabs"),m.Sb(1,"cd-table",0),m.gc("fetchData",(function(){return t.getUsers()}))("updateSelection",(function(e){return t.updateSelection(e)})),m.Nb(2,"cd-table-actions",1),m.Rb(),m.Mc(3,qe,1,1,"ng-template",null,2,m.Nc)),2&e&&(m.yb(1),m.pc("data",t.users)("columns",t.columns),m.yb(1),m.pc("permission",t.permission)("selection",t.selection)("tableActions",t.tableActions))},directives:[ne,E.a,ie.a,i.q],styles:[""]}),e})(),Qe=(()=>{class e{}return e.\u0275mod=m.Kb({type:e}),e.\u0275inj=m.Jb({factory:function(t){return new(t||e)},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:Je},{path:c.e.CREATE,component:Ve,data:{breadcrumbs:c.a.CREATE}},{path:c.e.EDIT+"/:username",component:Ve,data:{breadcrumbs:c.a.EDIT}}]},{path:"roles",data:{breadcrumbs:"Roles"},children:[{path:"",component:oe},{path:c.e.CREATE,component:B,data:{breadcrumbs:c.a.CREATE}},{path:c.e.EDIT+"/:name",component:B,data:{breadcrumbs:c.a.EDIT}}]}];let Ze=(()=>{class e{}return e.\u0275mod=m.Kb({type:e}),e.\u0275inj=m.Jb({factory:function(t){return new(t||e)},imports:[[Qe,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]",y="[object Error]",v="[object Function]",w="[object GeneratorFunction]",S="[object Map]",M="[object Number]",k="[object Object]",x="[object Promise]",D="[object RegExp]",T="[object Set]",C="[object String]",O="[object Symbol]",L="[object WeakMap]",R="[object ArrayBuffer]",E="[object DataView]",A="[object Float32Array]",I="[object Float64Array]",P="[object Int8Array]",N="[object Int16Array]",j="[object Int32Array]",F="[object Uint8Array]",Y="[object Uint8ClampedArray]",z="[object Uint16Array]",$="[object Uint32Array]",H=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,B=/&(?:amp|lt|gt|quot|#39);/g,U=/[&<>"']/g,G=RegExp(B.source),q=RegExp(U.source),J=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),ie=/^\s+|\s+$/g,re=/^\s+/,se=/\s+$/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,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,ye=/($^)/,ve=/['\n\r\u2028\u2029\\]/g,we="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="a-z\\xdf-\\xf6\\xf8-\\xff",Me="A-Z\\xc0-\\xd6\\xd8-\\xde",ke="\\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",xe="["+ke+"]",De="["+we+"]",Te="\\d+",Ce="["+Se+"]",Oe="[^\\ud800-\\udfff"+ke+Te+"\\u2700-\\u27bf"+Se+Me+"]",Le="\\ud83c[\\udffb-\\udfff]",Re="[^\\ud800-\\udfff]",Ee="(?:\\ud83c[\\udde6-\\uddff]){2}",Ae="[\\ud800-\\udbff][\\udc00-\\udfff]",Ie="["+Me+"]",Pe="(?:"+Ce+"|"+Oe+")",Ne="(?:"+Ie+"|"+Oe+")",je="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Fe="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ye="(?:"+De+"|"+Le+")?",ze="[\\ufe0e\\ufe0f]?",$e=ze+Ye+"(?:\\u200d(?:"+[Re,Ee,Ae].join("|")+")"+ze+Ye+")*",He="(?:"+["[\\u2700-\\u27bf]",Ee,Ae].join("|")+")"+$e,We="(?:"+[Re+De+"?",De,Ee,Ae,"[\\ud800-\\udfff]"].join("|")+")",Ve=RegExp("['\u2019]","g"),Be=RegExp(De,"g"),Ue=RegExp(Le+"(?="+Le+")|"+We+$e,"g"),Ge=RegExp([Ie+"?"+Ce+"+"+je+"(?="+[xe,Ie,"$"].join("|")+")",Ne+"+"+Fe+"(?="+[xe,Ie+Pe,"$"].join("|")+")",Ie+"?"+Pe+"+"+je,Ie+"+"+Fe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Te,He].join("|"),"g"),qe=RegExp("[\\u200d\\ud800-\\udfff"+we+"\\ufe0e\\ufe0f]"),Je=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Qe=["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,Ze={};Ze[A]=Ze[I]=Ze[P]=Ze[N]=Ze[j]=Ze[F]=Ze[Y]=Ze[z]=Ze[$]=!0,Ze[m]=Ze[b]=Ze[R]=Ze[g]=Ze[E]=Ze[_]=Ze[y]=Ze[v]=Ze[S]=Ze[M]=Ze[k]=Ze[D]=Ze[T]=Ze[C]=Ze[L]=!1;var Xe={};Xe[m]=Xe[b]=Xe[R]=Xe[E]=Xe[g]=Xe[_]=Xe[A]=Xe[I]=Xe[P]=Xe[N]=Xe[j]=Xe[S]=Xe[M]=Xe[k]=Xe[D]=Xe[T]=Xe[C]=Xe[O]=Xe[F]=Xe[Y]=Xe[z]=Xe[$]=!0,Xe[y]=Xe[v]=Xe[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 yt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function vt(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 St(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 Mt(e,t){return!(null==e||!e.length)&&At(e,t,0)>-1}function kt(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 xt(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 Dt(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}function Tt(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=jt("length");function Rt(e,t,n){var i;return n(e,(function(e,n,r){if(t(e,n,r))return i=n,!1})),i}function Et(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 At(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):Et(e,Pt,n)}function It(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 Nt(e,t){var n=null==e?0:e.length;return n?zt(e,t)/n:h}function jt(e){return function(t){return null==t?r:t[e]}}function Ft(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 zt(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 $t(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Ht(e){return function(t){return e(t)}}function Wt(e,t){return xt(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&&At(t,e[n],0)>-1;);return n}function Ut(e,t){for(var n=e.length;n--&&At(t,e[n],0)>-1;);return n}function Gt(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}var qt=Ft({"\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=Ft({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Qt(e){return"\\"+et[e]}function Kt(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 Xt(e,t){return function(n){return e(t(n))}}function en(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 tn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function rn(e){return Kt(e)?function(e){for(var t=Ue.lastIndex=0;Ue.test(e);)++t;return t}(e):Lt(e)}function sn(e){return Kt(e)?function(e){return e.match(Ue)||[]}(e):function(e){return e.split("")}(e)}var on=Ft({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),an=function e(t){var n,i=(t=null==t?st:an.defaults(st.Object(),t,an.pick(st,Qe))).Array,we=t.Date,Se=t.Error,Me=t.Function,ke=t.Math,xe=t.Object,De=t.RegExp,Te=t.String,Ce=t.TypeError,Oe=i.prototype,Le=xe.prototype,Re=t["__core-js_shared__"],Ee=Me.prototype.toString,Ae=Le.hasOwnProperty,Ie=0,Pe=(n=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ne=Le.toString,je=Ee.call(xe),Fe=st._,Ye=De("^"+Ee.call(Ae).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ze=ct?t.Buffer:r,$e=t.Symbol,He=t.Uint8Array,We=ze?ze.allocUnsafe:r,Ue=Xt(xe.getPrototypeOf,xe),qe=xe.create,et=Le.propertyIsEnumerable,it=Oe.splice,rt=$e?$e.isConcatSpreadable:r,ot=$e?$e.iterator:r,at=$e?$e.toStringTag:r,lt=function(){try{var e=as(xe,"defineProperty");return e({},"",{}),e}catch(t){}}(),ut=t.clearTimeout!==st.clearTimeout&&t.clearTimeout,Lt=we&&we.now!==st.Date.now&&we.now,Ft=t.setTimeout!==st.setTimeout&&t.setTimeout,cn=ke.ceil,ln=ke.floor,un=xe.getOwnPropertySymbols,dn=ze?ze.isBuffer:r,hn=t.isFinite,fn=Oe.join,pn=Xt(xe.keys,xe),mn=ke.max,bn=ke.min,gn=we.now,_n=t.parseInt,yn=ke.random,vn=Oe.reverse,wn=as(t,"DataView"),Sn=as(t,"Map"),Mn=as(t,"Promise"),kn=as(t,"Set"),xn=as(t,"WeakMap"),Dn=as(xe,"create"),Tn=xn&&new xn,Cn={},On=Ns(wn),Ln=Ns(Sn),Rn=Ns(Mn),En=Ns(kn),An=Ns(xn),In=$e?$e.prototype:r,Pn=In?In.valueOf:r,Nn=In?In.toString:r;function jn(e){if(ea(e)&&!Wo(e)&&!(e instanceof $n)){if(e instanceof zn)return e;if(Ae.call(e,"__wrapped__"))return js(e)}return new zn(e)}var Fn=function(){function e(){}return function(t){if(!Xo(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function Yn(){}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 Wn(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 Wn(e);this.size=t.size}function Gn(e,t){var n=Wo(e),i=!n&&Ho(e),r=!n&&!i&&Go(e),s=!n&&!i&&!r&&ca(e),o=n||i||r||s,a=o?$t(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)||ps(l,c))||a.push(l);return a}function qn(e){var t=e.length;return t?e[Vi(0,t-1)]:r}function Jn(e,t){return Rs(xr(e),ri(t,0,e.length))}function Qn(e){return Rs(xr(e))}function Kn(e,t,n){(n!==r&&!Yo(e[t],n)||n===r&&!(t in e))&&ni(e,t,n)}function Zn(e,t,n){var i=e[t];Ae.call(e,t)&&Yo(i,n)&&(n!==r||t in e)||ni(e,t,n)}function Xn(e,t){for(var n=e.length;n--;)if(Yo(e[n][0],t))return n;return-1}function ei(e,t,n,i){return li(e,(function(e,r,s){t(i,e,n(e),s)})),i}function ti(e,t){return e&&Dr(t,La(t),e)}function ni(e,t,n){"__proto__"==t&&lt?lt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ii(e,t){for(var n=-1,s=t.length,o=i(s),a=null==e;++n<s;)o[n]=a?r:xa(e,t[n]);return o}function ri(e,t,n){return e==e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function si(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(!Xo(e))return e;var d=Wo(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 xr(e,a)}else{var h=us(e),f=h==v||h==w;if(Go(e))return yr(e,c);if(h==k||h==m||f&&!s){if(a=l||f?{}:hs(e),!c)return l?function(e,t){return Dr(e,ls(e),t)}(e,function(e,t){return e&&Dr(t,Ra(t),e)}(a,e)):function(e,t){return Dr(e,cs(e),t)}(e,ti(a,e))}else{if(!Xe[h])return s?e:{};a=function(e,t,n){var i=e.constructor;switch(t){case R:return vr(e);case g:case _:return new i(+e);case E:return function(e,t){var n=t?vr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case A:case I:case P:case N:case j:case F:case Y:case z:case $:return wr(e,n);case S:return new i;case M:case C:return new i(e);case D:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new i;case O:return Pn?xe(Pn.call(e)):{}}}(e,h,c)}}o||(o=new Un);var p=o.get(e);if(p)return p;o.set(e,a),sa(e)?e.forEach((function(i){a.add(si(i,t,n,i,e,o))})):ta(e)&&e.forEach((function(i,r){a.set(r,si(i,t,n,r,e,o))}));var b=d?r:(u?l?es:Xr:l?Ra:La)(e);return yt(b||e,(function(i,r){b&&(i=e[r=i]),Zn(a,r,si(i,t,n,r,e,o))})),a}function oi(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 ai(e,t,n){if("function"!=typeof e)throw new Ce(s);return Ts((function(){e.apply(r,n)}),t)}function ci(e,t,n,i){var r=-1,s=Mt,o=!0,a=e.length,c=[],l=t.length;if(!a)return c;n&&(t=xt(t,Ht(n))),i?(s=kt,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:J,evaluate:Q,interpolate:K,variable:"",imports:{_:jn}},(jn.prototype=Yn.prototype).constructor=jn,(zn.prototype=Fn(Yn.prototype)).constructor=zn,($n.prototype=Fn(Yn.prototype)).constructor=$n,Hn.prototype.clear=function(){this.__data__=Dn?Dn(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(Dn){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 Dn?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]=Dn&&t===r?o:t,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=Xn(t,e);return!(n<0||(n==t.length-1?t.pop():it.call(t,n,1),--this.size,0))},Wn.prototype.get=function(e){var t=this.__data__,n=Xn(t,e);return n<0?r:t[n][1]},Wn.prototype.has=function(e){return Xn(this.__data__,e)>-1},Wn.prototype.set=function(e,t){var n=this.__data__,i=Xn(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||Wn),string:new Hn}},Vn.prototype.delete=function(e){var t=ss(this,e).delete(e);return this.size-=t?1:0,t},Vn.prototype.get=function(e){return ss(this,e).get(e)},Vn.prototype.has=function(e){return ss(this,e).has(e)},Vn.prototype.set=function(e,t){var n=ss(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 Wn,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 Wn){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 li=Or(gi),ui=Or(_i,!0);function di(e,t){var n=!0;return li(e,(function(e,i,r){return n=!!t(e,i,r)})),n}function hi(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&&!aa(a):n(a,c)))var c=a,l=o}return l}function fi(e,t){var n=[];return li(e,(function(e,i,r){t(e,i,r)&&n.push(e)})),n}function pi(e,t,n,i,r){var s=-1,o=e.length;for(n||(n=fs),r||(r=[]);++s<o;){var a=e[s];t>0&&n(a)?t>1?pi(a,t-1,n,i,r):Dt(r,a):i||(r[r.length]=a)}return r}var mi=Lr(),bi=Lr(!0);function gi(e,t){return e&&mi(e,t,La)}function _i(e,t){return e&&bi(e,t,La)}function yi(e,t){return St(t,(function(t){return Qo(e[t])}))}function vi(e,t){for(var n=0,i=(t=mr(t,e)).length;null!=e&&n<i;)e=e[Ps(t[n++])];return n&&n==i?e:r}function wi(e,t,n){var i=t(e);return Wo(e)?i:Dt(i,n(e))}function Si(e){return null==e?e===r?"[object Undefined]":"[object Null]":at&&at in xe(e)?function(e){var t=Ae.call(e,at),n=e[at];try{e[at]=r;var i=!0}catch(o){}var s=Ne.call(e);return i&&(t?e[at]=n:delete e[at]),s}(e):function(e){return Ne.call(e)}(e)}function Mi(e,t){return e>t}function ki(e,t){return null!=e&&Ae.call(e,t)}function xi(e,t){return null!=e&&t in xe(e)}function Di(e,t,n){for(var s=n?kt:Mt,o=e[0].length,a=e.length,c=a,l=i(a),u=1/0,d=[];c--;){var h=e[c];c&&t&&(h=xt(h,Ht(t))),u=bn(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 Ti(e,t,n){var i=null==(e=Ms(e,t=mr(t,e)))?e:e[Ps(qs(t))];return null==i?r:gt(i,e,n)}function Ci(e){return ea(e)&&Si(e)==m}function Oi(e,t,n,i,s){return e===t||(null==e||null==t||!ea(e)&&!ea(t)?e!=e&&t!=t:function(e,t,n,i,s,o){var a=Wo(e),c=Wo(t),l=a?b:us(e),u=c?b:us(t),d=(l=l==m?k:l)==k,h=(u=u==m?k:u)==k,f=l==u;if(f&&Go(e)){if(!Go(t))return!1;a=!0,d=!1}if(f&&!d)return o||(o=new Un),a||ca(e)?Kr(e,t,n,i,s,o):function(e,t,n,i,r,s,o){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R:return!(e.byteLength!=t.byteLength||!s(new He(e),new He(t)));case g:case _:case M:return Yo(+e,+t);case y:return e.name==t.name&&e.message==t.message;case D:case C:return e==t+"";case S:var a=Zt;case T:if(a||(a=tn),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=Kr(a(e),a(t),i,r,s,o);return o.delete(e),l;case O:if(Pn)return Pn.call(e)==Pn.call(t)}return!1}(e,t,l,n,i,s,o);if(!(1&n)){var p=d&&Ae.call(e,"__wrapped__"),v=h&&Ae.call(t,"__wrapped__");if(p||v){var w=p?e.value():e,x=v?t.value():t;return o||(o=new Un),s(w,x,n,i,o)}}return!!f&&(o||(o=new Un),function(e,t,n,i,s,o){var a=1&n,c=Xr(e),l=c.length;if(l!=Xr(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 y=e.constructor,v=t.constructor;y==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,i,s,o))}(e,t,n,i,Oi,s))}function Li(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?Oi(d,u,3,i,h):f))return!1}}return!0}function Ri(e){return!(!Xo(e)||(t=e,Pe&&Pe in t))&&(Qo(e)?Ye:me).test(Ns(e));var t}function Ei(e){return"function"==typeof e?e:null==e?nc:"object"==typeof e?Wo(e)?ji(e[0],e[1]):Ni(e):dc(e)}function Ai(e){if(!ys(e))return pn(e);var t=[];for(var n in xe(e))Ae.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ii(e,t){return e<t}function Pi(e,t){var n=-1,r=Bo(e)?i(e.length):[];return li(e,(function(e,i,s){r[++n]=t(e,i,s)})),r}function Ni(e){var t=os(e);return 1==t.length&&t[0][2]?ws(t[0][0],t[0][1]):function(n){return n===e||Li(n,e,t)}}function ji(e,t){return bs(e)&&vs(t)?ws(Ps(e),t):function(n){var i=xa(n,e);return i===r&&i===t?Da(n,e):Oi(t,i,3)}}function Fi(e,t,n,i,s){e!==t&&mi(t,(function(o,a){if(s||(s=new Un),Xo(o))!function(e,t,n,i,s,o,a){var c=xs(e,n),l=xs(t,n),u=a.get(l);if(u)Kn(e,n,u);else{var d=o?o(c,l,n+"",e,t,a):r,h=d===r;if(h){var f=Wo(l),p=!f&&Go(l),m=!f&&!p&&ca(l);d=l,f||p||m?Wo(c)?d=c:Uo(c)?d=xr(c):p?(h=!1,d=yr(l,!0)):m?(h=!1,d=wr(l,!0)):d=[]:ia(l)||Ho(l)?(d=c,Ho(c)?d=ba(c):Xo(c)&&!Qo(c)||(d=hs(l))):h=!1}h&&(a.set(l,d),s(d,l,i,o,a),a.delete(l)),Kn(e,n,d)}}(e,t,a,n,Fi,i,s);else{var c=i?i(xs(e,a),o,a+"",e,t,s):r;c===r&&(c=o),Kn(e,a,c)}}),Ra)}function Yi(e,t){var n=e.length;if(n)return ps(t+=t<0?n:0,n)?e[t]:r}function zi(e,t,n){t=t.length?xt(t,(function(e){return Wo(e)?function(t){return vi(t,1===e.length?e[0]:e)}:e})):[nc];var i=-1;return t=xt(t,Ht(rs())),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}(Pi(e,(function(e,n,r){return{criteria:xt(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=vi(e,o);n(a,o)&&Ji(s,mr(o,e),a)}return s}function Hi(e,t,n,i){var r=i?It:At,s=-1,o=t.length,a=e;for(e===t&&(t=xr(t)),n&&(a=xt(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&&it.call(a,c,1),it.call(e,c,1);return e}function Wi(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;ps(r)?it.call(e,r,1):ar(e,r)}}return e}function Vi(e,t){return e+ln(yn()*(t-e+1))}function Bi(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=ln(t/2))&&(e+=e)}while(t);return n}function Ui(e,t){return Cs(Ss(e,t,nc),e+"")}function Gi(e){return qn(Ya(e))}function qi(e,t){var n=Ya(e);return Rs(n,ri(t,0,n.length))}function Ji(e,t,n,i){if(!Xo(e))return e;for(var s=-1,o=(t=mr(t,e)).length,a=o-1,c=e;null!=c&&++s<o;){var l=Ps(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=Xo(d)?d:ps(t[s+1])?[]:{})}Zn(c,l,u),c=c[l]}return e}var Qi=Tn?function(e,t){return Tn.set(e,t),e}:nc,Ki=lt?function(e,t){return lt(e,"toString",{configurable:!0,enumerable:!1,value:Xa(t),writable:!0})}:nc;function Zi(e){return Rs(Ya(e))}function Xi(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 er(e,t){var n;return li(e,(function(e,i,r){return!(n=t(e,i,r))})),!!n}function tr(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&&!aa(o)&&(n?o<=t:o<t)?i=s+1:r=s}return r}return nr(e,t,nc,n)}function nr(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=aa(t),u=t===r;s<o;){var d=ln((s+o)/2),h=n(e[d]),f=h!==r,p=null===h,m=h==h,b=aa(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 bn(o,4294967294)}function ir(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||!Yo(a,c)){var c=a;s[r++]=0===o?0:o}}return s}function rr(e){return"number"==typeof e?e:aa(e)?h:+e}function sr(e){if("string"==typeof e)return e;if(Wo(e))return xt(e,sr)+"";if(aa(e))return Nn?Nn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function or(e,t,n){var i=-1,r=Mt,s=e.length,o=!0,a=[],c=a;if(n)o=!1,r=kt;else if(s>=200){var l=t?null:Br(e);if(l)return tn(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 ar(e,t){return null==(e=Ms(e,t=mr(t,e)))||delete e[Ps(qs(t))]}function cr(e,t,n,i){return Ji(e,t,n(vi(e,t)),i)}function lr(e,t,n,i){for(var r=e.length,s=i?r:-1;(i?s--:++s<r)&&t(e[s],s,e););return n?Xi(e,i?0:s,i?s+1:r):Xi(e,i?s+1:0,i?r:s)}function ur(e,t){var n=e;return n instanceof $n&&(n=n.value()),Tt(t,(function(e,t){return t.func.apply(t.thisArg,Dt([e],t.args))}),n)}function dr(e,t,n){var r=e.length;if(r<2)return r?or(e[0]):[];for(var s=-1,o=i(r);++s<r;)for(var a=e[s],c=-1;++c<r;)c!=s&&(o[s]=ci(o[s]||a,e[c],t,n));return or(pi(o,1),t,n)}function hr(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 fr(e){return Uo(e)?e:[]}function pr(e){return"function"==typeof e?e:nc}function mr(e,t){return Wo(e)?e:bs(e,t)?[e]:Is(ga(e))}var br=Ui;function gr(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:Xi(e,t,n)}var _r=ut||function(e){return st.clearTimeout(e)};function yr(e,t){if(t)return e.slice();var n=e.length,i=We?We(n):new e.constructor(n);return e.copy(i),i}function vr(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function wr(e,t){var n=t?vr(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=aa(e),a=t!==r,c=null===t,l=t==t,u=aa(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 Mr(e,t,n,r){for(var s=-1,o=e.length,a=n.length,c=-1,l=t.length,u=mn(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=mn(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 xr(e,t){var n=-1,r=e.length;for(t||(t=i(r));++n<r;)t[n]=e[n];return t}function Dr(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?ni(n,c,l):Zn(n,c,l)}return n}function Tr(e,t){return function(n,i){var r=Wo(n)?_t:ei,s=t?t():{};return r(n,e,rs(i,2),s)}}function Cr(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&&ms(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 Or(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 Lr(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 Rr(e){return function(t){var n=Kt(t=ga(t))?sn(t):r,i=n?n[0]:t.charAt(0),s=n?gr(n,1).join(""):t.slice(1);return i[e]()+s}}function Er(e){return function(t){return Tt(Qa(Ha(t).replace(Ve,"")),e,"")}}function Ar(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=Fn(e.prototype),i=e.apply(n,t);return Xo(i)?i:n}}function Ir(e){return function(t,n,i){var s=xe(t);if(!Bo(t)){var o=rs(n,3);t=La(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 Pr(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 Ce(s);if(o&&!c&&"wrapper"==ns(a))var c=new zn([],!0)}for(i=c?i:n;++i<n;){var l=ns(a=t[i]),u="wrapper"==l?ts(a):r;c=u&&gs(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[ns(u[0])].apply(c,u[3]):1==a.length&&gs(a)?c[l]():c.thru(a)}return function(){var e=arguments,i=e[0];if(c&&1==e.length&&Wo(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 Nr(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:Ar(e);return function r(){for(var l=arguments.length,y=i(l),v=l;v--;)y[v]=arguments[v];if(b)var w=is(r),S=Gt(y,w);if(s&&(y=Mr(y,s,o,b)),a&&(y=kr(y,a,c,b)),l-=S,b&&l<h){var M=en(y,w);return Wr(e,t,Nr,r.placeholder,n,y,M,u,d,h-l)}var k=p?n:this,x=m?k[e]:e;return l=y.length,u?y=ks(y,u):g&&l>1&&y.reverse(),f&&d<l&&(y.length=d),this&&this!==st&&this instanceof r&&(x=_||Ar(x)),x.apply(k,y)}}function jr(e,t){return function(n,i){return function(e,t,n,i){return gi(e,(function(e,r,s){t(i,n(e),r,s)})),i}(n,e,t(i),{})}}function Fr(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=sr(n),i=sr(i)):(n=rr(n),i=rr(i)),s=e(n,i)}return s}}function Yr(e){return Zr((function(t){return t=xt(t,Ht(rs())),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?" ":sr(t)).length;if(n<2)return n?Bi(t,e):t;var i=Bi(t,cn(e/rn(t)));return Kt(t)?gr(sn(i),0,e).join(""):i.slice(0,e)}function $r(e){return function(t,n,s){return s&&"number"!=typeof s&&ms(t,n,s)&&(n=s=r),t=ha(t),n===r?(n=t,t=0):n=ha(n),function(e,t,n,r){for(var s=-1,o=mn(cn((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:ha(s),e)}}function Hr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ma(t),n=ma(n)),e(t,n)}}function Wr(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 gs(e)&&Ds(p,f),p.placeholder=i,Os(p,e,t)}function Vr(e){var t=ke[e];return function(e,n){if(e=ma(e),(n=null==n?0:bn(fa(n),292))&&hn(e)){var i=(ga(e)+"e").split("e");return+((i=(ga(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var Br=kn&&1/tn(new kn([,-0]))[1]==u?function(e){return new kn(e)}:ac;function Ur(e){return function(t){var n=us(t);return n==S?Zt(t):n==T?nn(t):function(e,t){return xt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Gr(e,t,n,o,u,d,h,f){var p=2&t;if(!p&&"function"!=typeof e)throw new Ce(s);var m=o?o.length:0;if(m||(t&=-97,o=u=r),h=h===r?h:mn(fa(h),0),f=f===r?f:fa(f),m-=u?u.length:0,64&t){var b=o,g=u;o=u=r}var _=p?r:ts(e),y=[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?Mr(o,s,t[4]):s,e[4]=o?en(e[3],a):t[4]}(s=t[5])&&(e[5]=(o=e[5])?kr(o,s,t[6]):s,e[6]=o?en(e[5],a):t[6]),(s=t[7])&&(e[7]=s),i&l&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=r}(y,_),e=y[0],t=y[1],n=y[2],o=y[3],u=y[4],!(f=y[9]=y[9]===r?p?0:e.length:mn(y[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)v=8==t||16==t?function(e,t,n){var s=Ar(e);return function o(){for(var a=arguments.length,c=i(a),l=a,u=is(o);l--;)c[l]=arguments[l];var d=a<3&&c[0]!==u&&c[a-1]!==u?[]:en(c,u);return(a-=d.length)<n?Wr(e,t,Nr,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?Nr.apply(r,y):function(e,t,n,r){var s=1&t,o=Ar(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 v=function(e,t,n){var i=1&t,r=Ar(e);return function t(){return(this&&this!==st&&this instanceof t?r:e).apply(i?n:this,arguments)}}(e,t,n);return Os((_?Qi:Ds)(v,y),e,t)}function qr(e,t,n,i){return e===r||Yo(e,Le[n])&&!Ae.call(i,n)?t:e}function Jr(e,t,n,i,s,o){return Xo(e)&&Xo(t)&&(o.set(t,e),Fi(e,t,r,Jr,o),o.delete(t)),e}function Qr(e){return ia(e)?r:e}function Kr(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 Cs(Ss(e,r,Ws),e+"")}function Xr(e){return wi(e,La,cs)}function es(e){return wi(e,Ra,ls)}var ts=Tn?function(e){return Tn.get(e)}:ac;function ns(e){for(var t=e.name+"",n=Cn[t],i=Ae.call(Cn,t)?n.length:0;i--;){var r=n[i],s=r.func;if(null==s||s==e)return r.name}return t}function is(e){return(Ae.call(jn,"placeholder")?jn:e).placeholder}function rs(){var e=jn.iteratee||ic;return e=e===ic?Ei:e,arguments.length?e(arguments[0],arguments[1]):e}function ss(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 os(e){for(var t=La(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,vs(r)]}return t}function as(e,t){var n=function(e,t){return null==e?r:e[t]}(e,t);return Ri(n)?n:r}var cs=un?function(e){return null==e?[]:(e=xe(e),St(un(e),(function(t){return et.call(e,t)})))}:pc,ls=un?function(e){for(var t=[];e;)Dt(t,cs(e)),e=Ue(e);return t}:pc,us=Si;function ds(e,t,n){for(var i=-1,r=(t=mr(t,e)).length,s=!1;++i<r;){var o=Ps(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)&&ps(o,r)&&(Wo(e)||Ho(e))}function hs(e){return"function"!=typeof e.constructor||ys(e)?{}:Fn(Ue(e))}function fs(e){return Wo(e)||Ho(e)||!!(rt&&e&&e[rt])}function ps(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 ms(e,t,n){if(!Xo(n))return!1;var i=typeof t;return!!("number"==i?Bo(n)&&ps(t,n.length):"string"==i&&t in n)&&Yo(n[t],e)}function bs(e,t){if(Wo(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!aa(e))||X.test(e)||!Z.test(e)||null!=t&&e in xe(t)}function gs(e){var t=ns(e),n=jn[t];if("function"!=typeof n||!(t in $n.prototype))return!1;if(e===n)return!0;var i=ts(n);return!!i&&e===i[0]}(wn&&us(new wn(new ArrayBuffer(1)))!=E||Sn&&us(new Sn)!=S||Mn&&us(Mn.resolve())!=x||kn&&us(new kn)!=T||xn&&us(new xn)!=L)&&(us=function(e){var t=Si(e),n=t==k?e.constructor:r,i=n?Ns(n):"";if(i)switch(i){case On:return E;case Ln:return S;case Rn:return x;case En:return T;case An:return L}return t});var _s=Re?Qo:mc;function ys(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Le)}function vs(e){return e==e&&!Xo(e)}function ws(e,t){return function(n){return null!=n&&n[e]===t&&(t!==r||e in xe(n))}}function Ss(e,t,n){return t=mn(t===r?e.length-1:t,0),function(){for(var r=arguments,s=-1,o=mn(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 Ms(e,t){return t.length<2?e:vi(e,Xi(t,0,-1))}function ks(e,t){for(var n=e.length,i=bn(t.length,n),s=xr(e);i--;){var o=t[i];e[i]=ps(o,n)?s[o]:r}return e}function xs(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ds=Ls(Qi),Ts=Ft||function(e,t){return st.setTimeout(e,t)},Cs=Ls(Ki);function Os(e,t,n){var i=t+"";return Cs(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(oe,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return yt(p,(function(n){var i="_."+n[0];t&n[1]&&!Mt(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(ce):[]}(i),n)))}function Ls(e){var t=0,n=0;return function(){var i=gn(),s=16-(i-n);if(n=i,s>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Rs(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 Es,As,Is=(Es=Ao((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===As.size&&As.clear(),e})),As=Es.cache,Es);function Ps(e){if("string"==typeof e||aa(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ns(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__=xr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Fs=Ui((function(e,t){return Uo(e)?ci(e,pi(t,1,Uo,!0)):[]})),Ys=Ui((function(e,t){var n=qs(t);return Uo(n)&&(n=r),Uo(e)?ci(e,pi(t,1,Uo,!0),rs(n,2)):[]})),zs=Ui((function(e,t){var n=qs(t);return Uo(n)&&(n=r),Uo(e)?ci(e,pi(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:fa(n);return r<0&&(r=mn(i+r,0)),Et(e,rs(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=fa(n),s=n<0?mn(i+s,0):bn(s,i-1)),Et(e,rs(t,3),s,!0)}function Ws(e){return null!=e&&e.length?pi(e,1):[]}function Vs(e){return e&&e.length?e[0]:r}var Bs=Ui((function(e){var t=xt(e,fr);return t.length&&t[0]===e[0]?Di(t):[]})),Us=Ui((function(e){var t=qs(e),n=xt(e,fr);return t===qs(n)?t=r:n.pop(),n.length&&n[0]===e[0]?Di(n,rs(t,2)):[]})),Gs=Ui((function(e){var t=qs(e),n=xt(e,fr);return(t="function"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?Di(n,r,t):[]}));function qs(e){var t=null==e?0:e.length;return t?e[t-1]:r}var Js=Ui(Qs);function Qs(e,t){return e&&e.length&&t&&t.length?Hi(e,t):e}var Ks=Zr((function(e,t){var n=null==e?0:e.length,i=ii(e,t);return Wi(e,xt(t,(function(e){return ps(e,n)?+e:e})).sort(Sr)),i}));function Zs(e){return null==e?e:vn.call(e)}var Xs=Ui((function(e){return or(pi(e,1,Uo,!0))})),eo=Ui((function(e){var t=qs(e);return Uo(t)&&(t=r),or(pi(e,1,Uo,!0),rs(t,2))})),to=Ui((function(e){var t=qs(e);return t="function"==typeof t?t:r,or(pi(e,1,Uo,!0),r,t)}));function no(e){if(!e||!e.length)return[];var t=0;return e=St(e,(function(e){if(Uo(e))return t=mn(e.length,t),!0})),$t(t,(function(t){return xt(e,jt(t))}))}function io(e,t){if(!e||!e.length)return[];var n=no(e);return null==t?n:xt(n,(function(e){return gt(t,r,e)}))}var ro=Ui((function(e,t){return Uo(e)?ci(e,t):[]})),so=Ui((function(e){return dr(St(e,Uo))})),oo=Ui((function(e){var t=qs(e);return Uo(t)&&(t=r),dr(St(e,Uo),rs(t,2))})),ao=Ui((function(e){var t=qs(e);return t="function"==typeof t?t:r,dr(St(e,Uo),r,t)})),co=Ui(no),lo=Ui((function(e){var t=e.length,n=t>1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,io(e,n)}));function uo(e){var t=jn(e);return t.__chain__=!0,t}function ho(e,t){return t(e)}var fo=Zr((function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,s=function(t){return ii(t,e)};return!(t>1||this.__actions__.length)&&i instanceof $n&&ps(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:ho,args:[s],thisArg:r}),new zn(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(r),e}))):this.thru(s)})),po=Tr((function(e,t,n){Ae.call(e,n)?++e[n]:ni(e,n,1)})),mo=Ir($s),bo=Ir(Hs);function go(e,t){return(Wo(e)?yt:li)(e,rs(t,3))}function _o(e,t){return(Wo(e)?vt:ui)(e,rs(t,3))}var yo=Tr((function(e,t,n){Ae.call(e,n)?e[n].push(t):ni(e,n,[t])})),vo=Ui((function(e,t,n){var r=-1,s="function"==typeof t,o=Bo(e)?i(e.length):[];return li(e,(function(e){o[++r]=s?gt(t,e,n):Ti(e,t,n)})),o})),wo=Tr((function(e,t,n){ni(e,n,t)}));function So(e,t){return(Wo(e)?xt:Pi)(e,rs(t,3))}var Mo=Tr((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&&ms(e,t[0],t[1])?t=[]:n>2&&ms(t[0],t[1],t[2])&&(t=[t[0]]),zi(e,pi(t,1),[])})),xo=Lt||function(){return st.Date.now()};function Do(e,t,n){return t=n?r:t,Gr(e,l,r,r,r,r,t=e&&null==t?e.length:t)}function To(e,t){var n;if("function"!=typeof t)throw new Ce(s);return e=fa(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Co=Ui((function(e,t,n){var i=1;if(n.length){var r=en(n,is(Co));i|=c}return Gr(e,i,t,n,r)})),Oo=Ui((function(e,t,n){var i=3;if(n.length){var r=en(n,is(Oo));i|=c}return Gr(t,i,e,n,r)}));function Lo(e,t,n){var i,o,a,c,l,u,d=0,h=!1,f=!1,p=!0;if("function"!=typeof e)throw new Ce(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=Ts(_,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=xo();if(g(e))return y(e);l=Ts(_,function(e){var n=t-(e-u);return f?bn(n,a-(e-d)):n}(e))}function y(e){return l=r,p&&i?m(e):(i=o=r,c)}function v(){var e=xo(),n=g(e);if(i=arguments,o=this,u=e,n){if(l===r)return b(u);if(f)return _r(l),l=Ts(_,t),m(u)}return l===r&&(l=Ts(_,t)),c}return t=ma(t)||0,Xo(n)&&(h=!!n.leading,a=(f="maxWait"in n)?mn(ma(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),v.cancel=function(){l!==r&&_r(l),d=0,i=u=o=l=r},v.flush=function(){return l===r?c:y(xo())},v}var Ro=Ui((function(e,t){return ai(e,1,t)})),Eo=Ui((function(e,t,n){return ai(e,ma(t)||0,n)}));function Ao(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ce(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(Ao.Cache||Vn),n}function Io(e){if("function"!=typeof e)throw new Ce(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)}}Ao.Cache=Vn;var Po=br((function(e,t){var n=(t=1==t.length&&Wo(t[0])?xt(t[0],Ht(rs())):xt(pi(t,1),Ht(rs()))).length;return Ui((function(i){for(var r=-1,s=bn(i.length,n);++r<s;)i[r]=t[r].call(this,i[r]);return gt(e,this,i)}))})),No=Ui((function(e,t){var n=en(t,is(No));return Gr(e,c,r,t,n)})),jo=Ui((function(e,t){var n=en(t,is(jo));return Gr(e,64,r,t,n)})),Fo=Zr((function(e,t){return Gr(e,256,r,r,r,t)}));function Yo(e,t){return e===t||e!=e&&t!=t}var zo=Hr(Mi),$o=Hr((function(e,t){return e>=t})),Ho=Ci(function(){return arguments}())?Ci:function(e){return ea(e)&&Ae.call(e,"callee")&&!et.call(e,"callee")},Wo=i.isArray,Vo=dt?Ht(dt):function(e){return ea(e)&&Si(e)==R};function Bo(e){return null!=e&&Zo(e.length)&&!Qo(e)}function Uo(e){return ea(e)&&Bo(e)}var Go=dn||mc,qo=ht?Ht(ht):function(e){return ea(e)&&Si(e)==_};function Jo(e){if(!ea(e))return!1;var t=Si(e);return t==y||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ia(e)}function Qo(e){if(!Xo(e))return!1;var t=Si(e);return t==v||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ko(e){return"number"==typeof e&&e==fa(e)}function Zo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function Xo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ea(e){return null!=e&&"object"==typeof e}var ta=ft?Ht(ft):function(e){return ea(e)&&us(e)==S};function na(e){return"number"==typeof e||ea(e)&&Si(e)==M}function ia(e){if(!ea(e)||Si(e)!=k)return!1;var t=Ue(e);if(null===t)return!0;var n=Ae.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ee.call(n)==je}var ra=pt?Ht(pt):function(e){return ea(e)&&Si(e)==D},sa=mt?Ht(mt):function(e){return ea(e)&&us(e)==T};function oa(e){return"string"==typeof e||!Wo(e)&&ea(e)&&Si(e)==C}function aa(e){return"symbol"==typeof e||ea(e)&&Si(e)==O}var ca=bt?Ht(bt):function(e){return ea(e)&&Zo(e.length)&&!!Ze[Si(e)]},la=Hr(Ii),ua=Hr((function(e,t){return e<=t}));function da(e){if(!e)return[];if(Bo(e))return oa(e)?sn(e):xr(e);if(ot&&e[ot])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[ot]());var t=us(e);return(t==S?Zt:t==T?tn:Ya)(e)}function ha(e){return e?(e=ma(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fa(e){var t=ha(e),n=t%1;return t==t?n?t-n:t:0}function pa(e){return e?ri(fa(e),0,f):0}function ma(e){if("number"==typeof e)return e;if(aa(e))return h;if(Xo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Xo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ie,"");var n=pe.test(e);return n||be.test(e)?nt(e.slice(2),n?2:8):fe.test(e)?h:+e}function ba(e){return Dr(e,Ra(e))}function ga(e){return null==e?"":sr(e)}var _a=Cr((function(e,t){if(ys(t)||Bo(t))Dr(t,La(t),e);else for(var n in t)Ae.call(t,n)&&Zn(e,n,t[n])})),ya=Cr((function(e,t){Dr(t,Ra(t),e)})),va=Cr((function(e,t,n,i){Dr(t,Ra(t),e,i)})),wa=Cr((function(e,t,n,i){Dr(t,La(t),e,i)})),Sa=Zr(ii),Ma=Ui((function(e,t){e=xe(e);var n=-1,i=t.length,s=i>2?t[2]:r;for(s&&ms(t[0],t[1],s)&&(i=1);++n<i;)for(var o=t[n],a=Ra(o),c=-1,l=a.length;++c<l;){var u=a[c],d=e[u];(d===r||Yo(d,Le[u])&&!Ae.call(e,u))&&(e[u]=o[u])}return e})),ka=Ui((function(e){return e.push(r,Jr),gt(Aa,r,e)}));function xa(e,t,n){var i=null==e?r:vi(e,t);return i===r?n:i}function Da(e,t){return null!=e&&ds(e,t,xi)}var Ta=jr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),e[t]=n}),Xa(nc)),Ca=jr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),Ae.call(e,t)?e[t].push(n):e[t]=[n]}),rs),Oa=Ui(Ti);function La(e){return Bo(e)?Gn(e):Ai(e)}function Ra(e){return Bo(e)?Gn(e,!0):function(e){if(!Xo(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 Ea=Cr((function(e,t,n){Fi(e,t,n)})),Aa=Cr((function(e,t,n,i){Fi(e,t,n,i)})),Ia=Zr((function(e,t){var n={};if(null==e)return n;var i=!1;t=xt(t,(function(t){return t=mr(t,e),i||(i=t.length>1),t})),Dr(e,es(e),n),i&&(n=si(n,7,Qr));for(var r=t.length;r--;)ar(n,t[r]);return n})),Pa=Zr((function(e,t){return null==e?{}:function(e,t){return $i(e,t,(function(t,n){return Da(e,n)}))}(e,t)}));function Na(e,t){if(null==e)return{};var n=xt(es(e),(function(e){return[e]}));return t=rs(t),$i(e,n,(function(e,n){return t(e,n[0])}))}var ja=Ur(La),Fa=Ur(Ra);function Ya(e){return null==e?[]:Wt(e,La(e))}var za=Er((function(e,t,n){return t=t.toLowerCase(),e+(n?$a(t):t)}));function $a(e){return Ja(ga(e).toLowerCase())}function Ha(e){return(e=ga(e))&&e.replace(_e,qt).replace(Be,"")}var Wa=Er((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Va=Er((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ba=Rr("toLowerCase"),Ua=Er((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ga=Er((function(e,t,n){return e+(n?" ":"")+Ja(t)})),qa=Er((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ja=Rr("toUpperCase");function Qa(e,t,n){return e=ga(e),(t=n?r:t)===r?function(e){return Je.test(e)}(e)?function(e){return e.match(Ge)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Ka=Ui((function(e,t){try{return gt(e,r,t)}catch(n){return Jo(n)?n:new Se(n)}})),Za=Zr((function(e,t){return yt(t,(function(t){t=Ps(t),ni(e,t,Co(e[t],e))})),e}));function Xa(e){return function(){return e}}var ec=Pr(),tc=Pr(!0);function nc(e){return e}function ic(e){return Ei("function"==typeof e?e:si(e,1))}var rc=Ui((function(e,t){return function(n){return Ti(n,e,t)}})),sc=Ui((function(e,t){return function(n){return Ti(e,n,t)}}));function oc(e,t,n){var i=La(t),r=yi(t,i);null!=n||Xo(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=yi(t,La(t)));var s=!(Xo(n)&&"chain"in n&&!n.chain),o=Qo(e);return yt(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__=xr(this.__actions__);return r.push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,Dt([this.value()],arguments))})})),e}function ac(){}var cc=Yr(xt),lc=Yr(wt),uc=Yr(Ot);function dc(e){return bs(e)?jt(Ps(e)):function(e){return function(t){return vi(t,e)}}(e)}var hc=$r(),fc=$r(!0);function pc(){return[]}function mc(){return!1}var bc,gc=Fr((function(e,t){return e+t}),0),_c=Vr("ceil"),yc=Fr((function(e,t){return e/t}),1),vc=Vr("floor"),wc=Fr((function(e,t){return e*t}),1),Sc=Vr("round"),Mc=Fr((function(e,t){return e-t}),0);return jn.after=function(e,t){if("function"!=typeof t)throw new Ce(s);return e=fa(e),function(){if(--e<1)return t.apply(this,arguments)}},jn.ary=Do,jn.assign=_a,jn.assignIn=ya,jn.assignInWith=va,jn.assignWith=wa,jn.at=Sa,jn.before=To,jn.bind=Co,jn.bindAll=Za,jn.bindKey=Oo,jn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wo(e)?e:[e]},jn.chain=uo,jn.chunk=function(e,t,n){t=(n?ms(e,t,n):t===r)?1:mn(fa(t),0);var s=null==e?0:e.length;if(!s||t<1)return[];for(var o=0,a=0,c=i(cn(s/t));o<s;)c[a++]=Xi(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 Dt(Wo(n)?xr(n):[n],pi(t,1))},jn.cond=function(e){var t=null==e?0:e.length,n=rs();return e=t?xt(e,(function(e){if("function"!=typeof e[1])throw new Ce(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=La(e);return function(n){return oi(n,e,t)}}(si(e,1))},jn.constant=Xa,jn.countBy=po,jn.create=function(e,t){var n=Fn(e);return null==t?n:ti(n,t)},jn.curry=function e(t,n,i){var s=Gr(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=Gr(t,16,r,r,r,r,r,n=i?r:n);return s.placeholder=e.placeholder,s},jn.debounce=Lo,jn.defaults=Ma,jn.defaultsDeep=ka,jn.defer=Ro,jn.delay=Eo,jn.difference=Fs,jn.differenceBy=Ys,jn.differenceWith=zs,jn.drop=function(e,t,n){var i=null==e?0:e.length;return i?Xi(e,(t=n||t===r?1:fa(t))<0?0:t,i):[]},jn.dropRight=function(e,t,n){var i=null==e?0:e.length;return i?Xi(e,0,(t=i-(t=n||t===r?1:fa(t)))<0?0:t):[]},jn.dropRightWhile=function(e,t){return e&&e.length?lr(e,rs(t,3),!0,!0):[]},jn.dropWhile=function(e,t){return e&&e.length?lr(e,rs(t,3),!0):[]},jn.fill=function(e,t,n,i){var s=null==e?0:e.length;return s?(n&&"number"!=typeof n&&ms(e,t,n)&&(n=0,i=s),function(e,t,n,i){var s=e.length;for((n=fa(n))<0&&(n=-n>s?0:s+n),(i=i===r||i>s?s:fa(i))<0&&(i+=s),i=n>i?0:pa(i);n<i;)e[n++]=t;return e}(e,t,n,i)):[]},jn.filter=function(e,t){return(Wo(e)?St:fi)(e,rs(t,3))},jn.flatMap=function(e,t){return pi(So(e,t),1)},jn.flatMapDeep=function(e,t){return pi(So(e,t),u)},jn.flatMapDepth=function(e,t,n){return n=n===r?1:fa(n),pi(So(e,t),n)},jn.flatten=Ws,jn.flattenDeep=function(e){return null!=e&&e.length?pi(e,u):[]},jn.flattenDepth=function(e,t){return null!=e&&e.length?pi(e,t=t===r?1:fa(t)):[]},jn.flip=function(e){return Gr(e,512)},jn.flow=ec,jn.flowRight=tc,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,La(e))},jn.functionsIn=function(e){return null==e?[]:yi(e,Ra(e))},jn.groupBy=yo,jn.initial=function(e){return null!=e&&e.length?Xi(e,0,-1):[]},jn.intersection=Bs,jn.intersectionBy=Us,jn.intersectionWith=Gs,jn.invert=Ta,jn.invertBy=Ca,jn.invokeMap=vo,jn.iteratee=ic,jn.keyBy=wo,jn.keys=La,jn.keysIn=Ra,jn.map=So,jn.mapKeys=function(e,t){var n={};return t=rs(t,3),gi(e,(function(e,i,r){ni(n,t(e,i,r),e)})),n},jn.mapValues=function(e,t){var n={};return t=rs(t,3),gi(e,(function(e,i,r){ni(n,i,t(e,i,r))})),n},jn.matches=function(e){return Ni(si(e,1))},jn.matchesProperty=function(e,t){return ji(e,si(t,1))},jn.memoize=Ao,jn.merge=Ea,jn.mergeWith=Aa,jn.method=rc,jn.methodOf=sc,jn.mixin=oc,jn.negate=Io,jn.nthArg=function(e){return e=fa(e),Ui((function(t){return Yi(t,e)}))},jn.omit=Ia,jn.omitBy=function(e,t){return Na(e,Io(rs(t)))},jn.once=function(e){return To(2,e)},jn.orderBy=function(e,t,n,i){return null==e?[]:(Wo(t)||(t=null==t?[]:[t]),Wo(n=i?r:n)||(n=null==n?[]:[n]),zi(e,t,n))},jn.over=cc,jn.overArgs=Po,jn.overEvery=lc,jn.overSome=uc,jn.partial=No,jn.partialRight=jo,jn.partition=Mo,jn.pick=Pa,jn.pickBy=Na,jn.property=dc,jn.propertyOf=function(e){return function(t){return null==e?r:vi(e,t)}},jn.pull=Js,jn.pullAll=Qs,jn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Hi(e,t,rs(n,2)):e},jn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Hi(e,t,r,n):e},jn.pullAt=Ks,jn.range=hc,jn.rangeRight=fc,jn.rearg=Fo,jn.reject=function(e,t){return(Wo(e)?St:fi)(e,Io(rs(t,3)))},jn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,r=[],s=e.length;for(t=rs(t,3);++i<s;){var o=e[i];t(o,i,e)&&(n.push(o),r.push(i))}return Wi(e,r),n},jn.rest=function(e,t){if("function"!=typeof e)throw new Ce(s);return Ui(e,t=t===r?t:fa(t))},jn.reverse=Zs,jn.sampleSize=function(e,t,n){return t=(n?ms(e,t,n):t===r)?1:fa(t),(Wo(e)?Jn:qi)(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(Wo(e)?Qn:Zi)(e)},jn.slice=function(e,t,n){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&ms(e,t,n)?(t=0,n=i):(t=null==t?0:fa(t),n=n===r?i:fa(n)),Xi(e,t,n)):[]},jn.sortBy=ko,jn.sortedUniq=function(e){return e&&e.length?ir(e):[]},jn.sortedUniqBy=function(e,t){return e&&e.length?ir(e,rs(t,2)):[]},jn.split=function(e,t,n){return n&&"number"!=typeof n&&ms(e,t,n)&&(t=n=r),(n=n===r?f:n>>>0)?(e=ga(e))&&("string"==typeof t||null!=t&&!ra(t))&&!(t=sr(t))&&Kt(e)?gr(sn(e),0,n):e.split(t,n):[]},jn.spread=function(e,t){if("function"!=typeof e)throw new Ce(s);return t=null==t?0:mn(fa(t),0),Ui((function(n){var i=n[t],r=gr(n,0,t);return i&&Dt(r,i),gt(e,this,r)}))},jn.tail=function(e){var t=null==e?0:e.length;return t?Xi(e,1,t):[]},jn.take=function(e,t,n){return e&&e.length?Xi(e,0,(t=n||t===r?1:fa(t))<0?0:t):[]},jn.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?Xi(e,(t=i-(t=n||t===r?1:fa(t)))<0?0:t,i):[]},jn.takeRightWhile=function(e,t){return e&&e.length?lr(e,rs(t,3),!1,!0):[]},jn.takeWhile=function(e,t){return e&&e.length?lr(e,rs(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 Ce(s);return Xo(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Lo(e,t,{leading:i,maxWait:t,trailing:r})},jn.thru=ho,jn.toArray=da,jn.toPairs=ja,jn.toPairsIn=Fa,jn.toPath=function(e){return Wo(e)?xt(e,Ps):aa(e)?[e]:xr(Is(ga(e)))},jn.toPlainObject=ba,jn.transform=function(e,t,n){var i=Wo(e),r=i||Go(e)||ca(e);if(t=rs(t,4),null==n){var s=e&&e.constructor;n=r?i?new s:[]:Xo(e)&&Qo(s)?Fn(Ue(e)):{}}return(r?yt:gi)(e,(function(e,i,r){return t(n,e,i,r)})),n},jn.unary=function(e){return Do(e,1)},jn.union=Xs,jn.unionBy=eo,jn.unionWith=to,jn.uniq=function(e){return e&&e.length?or(e):[]},jn.uniqBy=function(e,t){return e&&e.length?or(e,rs(t,2)):[]},jn.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?or(e,r,t):[]},jn.unset=function(e,t){return null==e||ar(e,t)},jn.unzip=no,jn.unzipWith=io,jn.update=function(e,t,n){return null==e?e:cr(e,t,pr(n))},jn.updateWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:cr(e,t,pr(n),i)},jn.values=Ya,jn.valuesIn=function(e){return null==e?[]:Wt(e,Ra(e))},jn.without=ro,jn.words=Qa,jn.wrap=function(e,t){return No(pr(t),e)},jn.xor=so,jn.xorBy=oo,jn.xorWith=ao,jn.zip=co,jn.zipObject=function(e,t){return hr(e||[],t||[],Zn)},jn.zipObjectDeep=function(e,t){return hr(e||[],t||[],Ji)},jn.zipWith=lo,jn.entries=ja,jn.entriesIn=Fa,jn.extend=ya,jn.extendWith=va,oc(jn,jn),jn.add=gc,jn.attempt=Ka,jn.camelCase=za,jn.capitalize=$a,jn.ceil=_c,jn.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=ma(n))==n?n:0),t!==r&&(t=(t=ma(t))==t?t:0),ri(ma(e),t,n)},jn.clone=function(e){return si(e,4)},jn.cloneDeep=function(e){return si(e,5)},jn.cloneDeepWith=function(e,t){return si(e,5,t="function"==typeof t?t:r)},jn.cloneWith=function(e,t){return si(e,4,t="function"==typeof t?t:r)},jn.conformsTo=function(e,t){return null==t||oi(e,t,La(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=ga(e),t=sr(t);var i=e.length,s=n=n===r?i:ri(fa(n),0,i);return(n-=t.length)>=0&&e.slice(n,s)==t},jn.eq=Yo,jn.escape=function(e){return(e=ga(e))&&q.test(e)?e.replace(U,Jt):e},jn.escapeRegExp=function(e){return(e=ga(e))&&ne.test(e)?e.replace(te,"\\$&"):e},jn.every=function(e,t,n){var i=Wo(e)?wt:di;return n&&ms(e,t,n)&&(t=r),i(e,rs(t,3))},jn.find=mo,jn.findIndex=$s,jn.findKey=function(e,t){return Rt(e,rs(t,3),gi)},jn.findLast=bo,jn.findLastIndex=Hs,jn.findLastKey=function(e,t){return Rt(e,rs(t,3),_i)},jn.floor=vc,jn.forEach=go,jn.forEachRight=_o,jn.forIn=function(e,t){return null==e?e:mi(e,rs(t,3),Ra)},jn.forInRight=function(e,t){return null==e?e:bi(e,rs(t,3),Ra)},jn.forOwn=function(e,t){return e&&gi(e,rs(t,3))},jn.forOwnRight=function(e,t){return e&&_i(e,rs(t,3))},jn.get=xa,jn.gt=zo,jn.gte=$o,jn.has=function(e,t){return null!=e&&ds(e,t,ki)},jn.hasIn=Da,jn.head=Vs,jn.identity=nc,jn.includes=function(e,t,n,i){e=Bo(e)?e:Ya(e),n=n&&!i?fa(n):0;var r=e.length;return n<0&&(n=mn(r+n,0)),oa(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&At(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:fa(n);return r<0&&(r=mn(i+r,0)),At(e,t,r)},jn.inRange=function(e,t,n){return t=ha(t),n===r?(n=t,t=0):n=ha(n),function(e,t,n){return e>=bn(t,n)&&e<mn(t,n)}(e=ma(e),t,n)},jn.invoke=Oa,jn.isArguments=Ho,jn.isArray=Wo,jn.isArrayBuffer=Vo,jn.isArrayLike=Bo,jn.isArrayLikeObject=Uo,jn.isBoolean=function(e){return!0===e||!1===e||ea(e)&&Si(e)==g},jn.isBuffer=Go,jn.isDate=qo,jn.isElement=function(e){return ea(e)&&1===e.nodeType&&!ia(e)},jn.isEmpty=function(e){if(null==e)return!0;if(Bo(e)&&(Wo(e)||"string"==typeof e||"function"==typeof e.splice||Go(e)||ca(e)||Ho(e)))return!e.length;var t=us(e);if(t==S||t==T)return!e.size;if(ys(e))return!Ai(e).length;for(var n in e)if(Ae.call(e,n))return!1;return!0},jn.isEqual=function(e,t){return Oi(e,t)},jn.isEqualWith=function(e,t,n){var i=(n="function"==typeof n?n:r)?n(e,t):r;return i===r?Oi(e,t,r,n):!!i},jn.isError=Jo,jn.isFinite=function(e){return"number"==typeof e&&hn(e)},jn.isFunction=Qo,jn.isInteger=Ko,jn.isLength=Zo,jn.isMap=ta,jn.isMatch=function(e,t){return e===t||Li(e,t,os(t))},jn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:r,Li(e,t,os(t),n)},jn.isNaN=function(e){return na(e)&&e!=+e},jn.isNative=function(e){if(_s(e))throw new Se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ri(e)},jn.isNil=function(e){return null==e},jn.isNull=function(e){return null===e},jn.isNumber=na,jn.isObject=Xo,jn.isObjectLike=ea,jn.isPlainObject=ia,jn.isRegExp=ra,jn.isSafeInteger=function(e){return Ko(e)&&e>=-9007199254740991&&e<=d},jn.isSet=sa,jn.isString=oa,jn.isSymbol=aa,jn.isTypedArray=ca,jn.isUndefined=function(e){return e===r},jn.isWeakMap=function(e){return ea(e)&&us(e)==L},jn.isWeakSet=function(e){return ea(e)&&"[object WeakSet]"==Si(e)},jn.join=function(e,t){return null==e?"":fn.call(e,t)},jn.kebabCase=Wa,jn.last=qs,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=fa(n))<0?mn(i+s,0):bn(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):Et(e,Pt,s,!0)},jn.lowerCase=Va,jn.lowerFirst=Ba,jn.lt=la,jn.lte=ua,jn.max=function(e){return e&&e.length?hi(e,nc,Mi):r},jn.maxBy=function(e,t){return e&&e.length?hi(e,rs(t,2),Mi):r},jn.mean=function(e){return Nt(e,nc)},jn.meanBy=function(e,t){return Nt(e,rs(t,2))},jn.min=function(e){return e&&e.length?hi(e,nc,Ii):r},jn.minBy=function(e,t){return e&&e.length?hi(e,rs(t,2),Ii):r},jn.stubArray=pc,jn.stubFalse=mc,jn.stubObject=function(){return{}},jn.stubString=function(){return""},jn.stubTrue=function(){return!0},jn.multiply=wc,jn.nth=function(e,t){return e&&e.length?Yi(e,fa(t)):r},jn.noConflict=function(){return st._===this&&(st._=Fe),this},jn.noop=ac,jn.now=xo,jn.pad=function(e,t,n){e=ga(e);var i=(t=fa(t))?rn(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return zr(ln(r),n)+e+zr(cn(r),n)},jn.padEnd=function(e,t,n){e=ga(e);var i=(t=fa(t))?rn(e):0;return t&&i<t?e+zr(t-i,n):e},jn.padStart=function(e,t,n){e=ga(e);var i=(t=fa(t))?rn(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),_n(ga(e).replace(re,""),t||0)},jn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&ms(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=ha(e),t===r?(t=e,e=0):t=ha(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var s=yn();return bn(e+s*(t-e+tt("1e-"+((s+"").length-1))),t)}return Vi(e,t)},jn.reduce=function(e,t,n){var i=Wo(e)?Tt:Yt,r=arguments.length<3;return i(e,rs(t,4),n,r,li)},jn.reduceRight=function(e,t,n){var i=Wo(e)?Ct:Yt,r=arguments.length<3;return i(e,rs(t,4),n,r,ui)},jn.repeat=function(e,t,n){return t=(n?ms(e,t,n):t===r)?1:fa(t),Bi(ga(e),t)},jn.replace=function(){var e=arguments,t=ga(e[0]);return e.length<3?t:t.replace(e[1],e[2])},jn.result=function(e,t,n){var i=-1,s=(t=mr(t,e)).length;for(s||(s=1,e=r);++i<s;){var o=null==e?r:e[Ps(t[i])];o===r&&(i=s,o=n),e=Qo(o)?o.call(e):o}return e},jn.round=Sc,jn.runInContext=e,jn.sample=function(e){return(Wo(e)?qn:Gi)(e)},jn.size=function(e){if(null==e)return 0;if(Bo(e))return oa(e)?rn(e):e.length;var t=us(e);return t==S||t==T?e.size:Ai(e).length},jn.snakeCase=Ua,jn.some=function(e,t,n){var i=Wo(e)?Ot:er;return n&&ms(e,t,n)&&(t=r),i(e,rs(t,3))},jn.sortedIndex=function(e,t){return tr(e,t)},jn.sortedIndexBy=function(e,t,n){return nr(e,t,rs(n,2))},jn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=tr(e,t);if(i<n&&Yo(e[i],t))return i}return-1},jn.sortedLastIndex=function(e,t){return tr(e,t,!0)},jn.sortedLastIndexBy=function(e,t,n){return nr(e,t,rs(n,2),!0)},jn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=tr(e,t,!0)-1;if(Yo(e[n],t))return n}return-1},jn.startCase=Ga,jn.startsWith=function(e,t,n){return e=ga(e),n=null==n?0:ri(fa(n),0,e.length),t=sr(t),e.slice(n,n+t.length)==t},jn.subtract=Mc,jn.sum=function(e){return e&&e.length?zt(e,nc):0},jn.sumBy=function(e,t){return e&&e.length?zt(e,rs(t,2)):0},jn.template=function(e,t,n){var i=jn.templateSettings;n&&ms(e,t,n)&&(t=r),e=ga(e),t=va({},t,i,qr);var s,o,a=va({},t.imports,i.imports,qr),c=La(a),l=Wt(a,c),u=0,d=t.interpolate||ye,h="__p += '",f=De((t.escape||ye).source+"|"+d.source+"|"+(d===K?de:ye).source+"|"+(t.evaluate||ye).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(ve,Qt),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;m||(h="with (obj) {\n"+h+"\n}\n"),h=(o?h.replace(H,""):h).replace(W,"$1").replace(V,"$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=Ka((function(){return Me(c,p+"return "+h).apply(r,l)}));if(b.source=h,Jo(b))throw b;return b},jn.times=function(e,t){if((e=fa(e))<1||e>d)return[];var n=f,i=bn(e,f);t=rs(t),e-=f;for(var r=$t(i,t);++n<e;)t(n);return r},jn.toFinite=ha,jn.toInteger=fa,jn.toLength=pa,jn.toLower=function(e){return ga(e).toLowerCase()},jn.toNumber=ma,jn.toSafeInteger=function(e){return e?ri(fa(e),-9007199254740991,d):0===e?e:0},jn.toString=ga,jn.toUpper=function(e){return ga(e).toUpperCase()},jn.trim=function(e,t,n){if((e=ga(e))&&(n||t===r))return e.replace(ie,"");if(!e||!(t=sr(t)))return e;var i=sn(e),s=sn(t);return gr(i,Bt(i,s),Ut(i,s)+1).join("")},jn.trimEnd=function(e,t,n){if((e=ga(e))&&(n||t===r))return e.replace(se,"");if(!e||!(t=sr(t)))return e;var i=sn(e);return gr(i,0,Ut(i,sn(t))+1).join("")},jn.trimStart=function(e,t,n){if((e=ga(e))&&(n||t===r))return e.replace(re,"");if(!e||!(t=sr(t)))return e;var i=sn(e);return gr(i,Bt(i,sn(t))).join("")},jn.truncate=function(e,t){var n=30,i="...";if(Xo(t)){var s="separator"in t?t.separator:s;n="length"in t?fa(t.length):n,i="omission"in t?sr(t.omission):i}var o=(e=ga(e)).length;if(Kt(e)){var a=sn(e);o=a.length}if(n>=o)return e;var c=n-rn(i);if(c<1)return i;var l=a?gr(a,0,c).join(""):e.slice(0,c);if(s===r)return l+i;if(a&&(c+=l.length-c),ra(s)){if(e.slice(c).search(s)){var u,d=l;for(s.global||(s=De(s.source,ga(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(sr(s),c)!=c){var f=l.lastIndexOf(s);f>-1&&(l=l.slice(0,f))}return l+i},jn.unescape=function(e){return(e=ga(e))&&G.test(e)?e.replace(B,on):e},jn.uniqueId=function(e){var t=++Ie;return ga(e)+t},jn.upperCase=qa,jn.upperFirst=Ja,jn.each=go,jn.eachRight=_o,jn.first=Vs,oc(jn,(bc={},gi(jn,(function(e,t){Ae.call(jn.prototype,t)||(bc[t]=e)})),bc),{chain:!1}),jn.VERSION="4.17.20",yt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){jn[e].placeholder=jn})),yt(["drop","take"],(function(e,t){$n.prototype[e]=function(n){n=n===r?1:mn(fa(n),0);var i=this.__filtered__&&!t?new $n(this):this.clone();return i.__filtered__?i.__takeCount__=bn(n,i.__takeCount__):i.__views__.push({size:bn(n,f),type:e+(i.__dir__<0?"Right":"")}),i},$n.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),yt(["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:rs(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),yt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");$n.prototype[e]=function(){return this[n](1).value()[0]}})),yt(["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(nc)},$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 Ti(n,e,t)}))})),$n.prototype.reject=function(e){return this.filter(Io(rs(e)))},$n.prototype.slice=function(e,t){e=fa(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=fa(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)},gi($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||Wo(t),d=function(e){var t=s.apply(jn,Dt([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:ho,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)})})),yt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Oe[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(Wo(r)?r:[],e)}return this[n]((function(n){return t.apply(Wo(n)?n:[],e)}))}})),gi($n.prototype,(function(e,t){var n=jn[t];if(n){var i=n.name+"";Ae.call(Cn,i)||(Cn[i]=[]),Cn[i].push({name:t,func:n})}})),Cn[Nr(r,2).name]=[{name:"wrapper",func:r}],$n.prototype.clone=function(){var e=new $n(this.__wrapped__);return e.__actions__=xr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=xr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=xr(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=Wo(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=bn(t,e+o);break;case"takeRight":e=mn(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=bn(c,this.__takeCount__);if(!n||!i&&r==c&&f==c)return ur(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,y=(0,g.iteratee)(b);if(2==_)b=y;else if(!y){if(1==_)continue e;break e}}p[h++]=b}return p},jn.prototype.at=fo,jn.prototype.chain=function(){return uo(this)},jn.prototype.commit=function(){return new zn(this.value(),this.__chain__)},jn.prototype.next=function(){this.__values__===r&&(this.__values__=da(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 Yn;){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:ho,args:[Zs],thisArg:r}),new zn(t,this.__chain__)}return this.thru(Zs)},jn.prototype.toJSON=jn.prototype.valueOf=jn.prototype.value=function(){return ur(this.__wrapped__,this.__actions__)},jn.prototype.first=jn.prototype.head,ot&&(jn.prototype[ot]=function(){return this}),jn}();st._=an,(i=(function(){return an}).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.Tb();s.Sb(0,"div",0),s.Sb(1,"ngb-timepicker",4),s.gc("ngModelChange",(function(t){return s.Dc(e),s.ic().time=t}))("ngModelChange",(function(){return s.Dc(e),s.ic().onModelChange()})),s.Rb(),s.Rb()}if(2&e){const e=s.ic();s.yb(1),s.pc("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.Mb(o.d))},e.\u0275cmp=s.Gb({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.Sb(0,"div",0),s.Sb(1,"ngb-datepicker",1,2),s.gc("ngModelChange",(function(e){return t.date=e}))("ngModelChange",(function(){return t.onModelChange()})),s.Rb(),s.Rb(),s.Mc(3,l,2,2,"div",3)),2&e&&(s.yb(1),s.pc("ngModel",t.date)("minDate",t.minDate),s.yb(2),s.pc("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={rgb2hsl:n,rgb2hsv:i,rgb2hwb:s,rgb2cmyk:o,rgb2keyword:a,rgb2xyz:c,rgb2lab:l,rgb2lch:function(e){return y(l(e))},hsl2rgb:u,hsl2hsv:function(e){var t=e[1]/100,n=e[2]/100;return 0===n?[0,0,0]:[e[0],2*(t*=(n*=2)<=1?n:2-n)/(n+t)*100,(n+t)/2*100]},hsl2hwb:function(e){return s(u(e))},hsl2cmyk:function(e){return o(u(e))},hsl2keyword:function(e){return a(u(e))},hsv2rgb:d,hsv2hsl:function(e){var t,n,i=e[1]/100,r=e[2]/100;return t=i*r,[e[0],100*(t=(t/=(n=(2-i)*r)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(e){return s(d(e))},hsv2cmyk:function(e){return o(d(e))},hsv2keyword:function(e){return a(d(e))},hwb2rgb:h,hwb2hsl:function(e){return n(h(e))},hwb2hsv:function(e){return i(h(e))},hwb2cmyk:function(e){return o(h(e))},hwb2keyword:function(e){return a(h(e))},cmyk2rgb:f,cmyk2hsl:function(e){return n(f(e))},cmyk2hsv:function(e){return i(f(e))},cmyk2hwb:function(e){return s(f(e))},cmyk2keyword:function(e){return a(f(e))},keyword2rgb:S,keyword2hsl:function(e){return n(S(e))},keyword2hsv:function(e){return i(S(e))},keyword2hwb:function(e){return s(S(e))},keyword2cmyk:function(e){return o(S(e))},keyword2lab:function(e){return l(S(e))},keyword2xyz:function(e){return c(S(e))},xyz2rgb:p,xyz2lab:m,xyz2lch:function(e){return y(m(e))},lab2xyz:_,lab2rgb:v,lab2lch:y,lch2lab:w,lch2xyz:function(e){return _(w(e))},lch2rgb:function(e){return v(w(e))}};function n(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]}function i(e){var t,n,i=e[0],r=e[1],s=e[2],o=Math.min(i,r,s),a=Math.max(i,r,s),c=a-o;return n=0==a?0:c/a*1e3/10,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),[t,n,a/255*1e3/10]}function s(e){var t=e[0],i=e[1],r=e[2];return[n(e)[0],1/255*Math.min(t,Math.min(i,r))*100,100*(r=1-1/255*Math.max(t,Math.max(i,r)))]}function o(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]}function a(e){return k[JSON.stringify(e)]}function c(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)]}function l(e){var t=c(e),n=t[0],i=t[1],r=t[2];return i/=100,r/=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-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]}function u(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}function d(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]}}function h(e){var t,n,i,s,o=e[0]/360,a=e[1]/100,c=e[2]/100,l=a+c;switch(l>1&&(a/=l,c/=l),i=6*o-(t=Math.floor(6*o)),0!=(1&t)&&(i=1-i),s=a+i*((n=1-c)-a),t){default:case 6:case 0:r=n,g=s,b=a;break;case 1:r=s,g=n,b=a;break;case 2:r=a,g=n,b=s;break;case 3:r=a,g=s,b=n;break;case 4:r=s,g=a,b=n;break;case 5:r=n,g=a,b=s}return[255*r,255*g,255*b]}function f(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))]}function p(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:t*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,[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))]}function m(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))]}function _(e){var t,n,i,r,s=e[0],o=e[1],a=e[2];return s<=8?r=(n=100*s/903.3)/100*7.787+16/116:(n=100*Math.pow((s+16)/116,3),r=Math.pow(n/100,1/3)),[t=t/95.047<=.008856?t=95.047*(o/500+r-16/116)/7.787:95.047*Math.pow(o/500+r,3),n,i=i/108.883<=.008859?i=108.883*(r-a/200-16/116)/7.787:108.883*Math.pow(r-a/200,3)]}function y(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]}function v(e){return p(_(e))}function w(e){var t,n=e[1];return t=e[2]/360*2*Math.PI,[e[0],n*Math.cos(t),n*Math.sin(t)]}function S(e){return M[e]}var M={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]},k={};for(var x in M)k[JSON.stringify(M[x])]=x;var D=function(){return new R};for(var T in t){D[T+"Raw"]=function(e){return function(n){return"number"==typeof n&&(n=Array.prototype.slice.call(arguments)),t[e](n)}}(T);var C=/(\w+)2(\w+)/.exec(T),O=C[1],L=C[2];(D[O]=D[O]||{})[L]=D[T]=function(e){return function(n){"number"==typeof n&&(n=Array.prototype.slice.call(arguments));var i=t[e](n);if("string"==typeof i||void 0===i)return i;for(var r=0;r<i.length;r++)i[r]=Math.round(i[r]);return i}}(T)}var R=function(){this.convs={}};R.prototype.routeSpace=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))},R.prototype.setValues=function(e,t){return this.space=e,this.convs={},this.convs[e]=t,this},R.prototype.getValues=function(e){var t=this.convs[e];if(!t){var n=this.space;t=D[n][e](this.convs[n]),this.convs[e]=t}return t},["rgb","hsl","hsv","cmyk","keyword"].forEach((function(e){R.prototype[e]=function(t){return this.routeSpace(e,arguments)}}));var E=D,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]},I={getRgba:P,getHsla:N,getRgb:function(e){var t=P(e);return t&&t.slice(0,3)},getHsl:function(e){var t=N(e);return t&&t.slice(0,3)},getHwb:j,getAlpha:function(e){var t=P(e);return t||(t=N(e))||(t=j(e))?t[3]:void 0},hexString:function(e,t){return t=void 0!==t&&3===e.length?t:e[3],"#"+H(e[0])+H(e[1])+H(e[2])+(t>=0&&t<1?H(Math.round(255*t)):"")},rgbString:function(e,t){return t<1||e[3]&&e[3]<1?F(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:F,percentString:function(e,t){return t<1||e[3]&&e[3]<1?Y(e,t):"rgb("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%)"},percentaString:Y,hslString:function(e,t){return t<1||e[3]&&e[3]<1?z(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:z,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 W[e.slice(0,3)]}};function P(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]=$(t[s],0,255);return n=n||0==n?$(n,0,1):1,t[3]=n,t}}function N(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[$(parseInt(t[1]),0,360),$(parseFloat(t[2]),0,100),$(parseFloat(t[3]),0,100),$(isNaN(n)?1:n,0,1)]}}}function j(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[$(parseInt(t[1]),0,360),$(parseFloat(t[2]),0,100),$(parseFloat(t[3]),0,100),$(isNaN(n)?1:n,0,1)]}}}function F(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function Y(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 z(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function $(e,t,n){return Math.min(Math.max(t,e),n)}function H(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var W={};for(var V in A)W[A[V]]=V;var B=function(e){return e instanceof B?e:this instanceof B?(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=I.getRgba(e))?this.setValues("rgb",t):(t=I.getHsla(e))?this.setValues("hsl",t):(t=I.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 B(e);var t};B.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 I.hexString(this.values.rgb)},rgbString:function(){return I.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return I.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return I.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return I.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return I.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return I.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return I.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 B,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}},B.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},B.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},B.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},B.prototype.setValues=function(e,t){var n,i,r=this.values,s=this.spaces,o=this.maxes,a=1;if(this.valid=!0,"alpha"===e)a=t;else if(t.length)r[e]=t.slice(0,e.length),a=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)];a=t.a}else if(void 0!==t[s[e][0]]){var c=s[e];for(n=0;n<e.length;n++)r[e][n]=t[c[n]];a=t.alpha}if(r.alpha=Math.max(0,Math.min(1,void 0===a?r.alpha:a)),"alpha"===e)return!1;for(n=0;n<e.length;n++)i=Math.max(0,Math.min(o[e][n],r[e][n])),r[e][n]=Math.round(i);for(var l in s)l!==e&&(r[l]=E[e][l](r[e]));return!0},B.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)},B.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=B);var U,G=B,q={noop:function(){},uid:(U=0,function(){return U++}),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 q.valueOrDefault(q.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(q.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(q.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(!q.arrayEquals(r,s))return!1}else if(r!==s)return!1;return!0},clone:function(e){if(q.isArray(e))return e.map(q.clone);if(q.isObject(e)){for(var t={},n=Object.keys(e),i=n.length,r=0;r<i;++r)t[n[r]]=q.clone(e[n[r]]);return t}return e},_merger:function(e,t,n,i){var r=t[e],s=n[e];q.isObject(r)&&q.isObject(s)?q.merge(r,s,i):t[e]=q.clone(s)},_mergerIf:function(e,t,n){var i=t[e],r=n[e];q.isObject(i)&&q.isObject(r)?q.mergeIf(i,r):t.hasOwnProperty(e)||(t[e]=q.clone(r))},merge:function(e,t,n){var i,r,s,o,a,c=q.isArray(t)?t:[t],l=c.length;if(!q.isObject(e))return e;for(i=(n=n||{}).merger||q._merger,r=0;r<l;++r)if(q.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 q.merge(e,t,{merger:q._mergerIf})},extend:function(e){for(var t=function(t,n){e[n]=t},n=1,i=arguments.length;n<i;++n)q.each(arguments[n],t);return 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=q.inherits,e&&q.extend(n.prototype,e),n.__super__=t.prototype,n}},J=q;q.callCallback=q.callback,q.indexOf=function(e,t,n){return Array.prototype.indexOf.call(e,t,n)},q.getValueOrDefault=q.valueOrDefault,q.getValueAtIndexOrDefault=q.valueAtIndexOrDefault;var Q={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-Q.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*Q.easeInBounce(2*e):.5*Q.easeOutBounce(2*e-1)+.5}},K={effects:Q};J.easingEffects=Q;var Z=Math.PI,X=Z/180,ee=2*Z,te=Z/2,ne=Z/4,ie=2*Z/3,re={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,-Z,-te),e.arc(l,c,o,-te,0),e.arc(l,u,o,0,te),e.arc(a,u,o,te,Z)):a<l?(e.moveTo(a,n),e.arc(l,c,o,-te,te),e.arc(a,c,o,te,Z+te)):c<u?(e.arc(a,c,o,-Z,0),e.arc(a,u,o,0,Z)):e.arc(a,c,o,-Z,Z),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)*X;if(!t||"object"!=typeof t||"[object HTMLImageElement]"!==(o=t.toString())&&"[object HTMLCanvasElement]"!==o){if(!(isNaN(n)||n<=0)){switch(e.beginPath(),t){default:e.arc(i,r,n,0,ee),e.closePath();break;case"triangle":e.moveTo(i+Math.sin(d)*n,r-Math.cos(d)*n),d+=ie,e.lineTo(i+Math.sin(d)*n,r-Math.cos(d)*n),d+=ie,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+ne)*l,c=Math.sin(d+ne)*l,e.arc(i-a,r-c,u,d-Z,d-te),e.arc(i+c,r-a,u,d-te,d),e.arc(i+a,r+c,u,d,d+te),e.arc(i-c,r+a,u,d+te,d+Z),e.closePath();break;case"rect":if(!s){l=Math.SQRT1_2*n,e.rect(i-l,r-l,2*l,2*l);break}d+=ne;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+=ne;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+=ne,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()}}else e.drawImage(t,i-t.width/2,r-t.height/2,t.width,t.height)},_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)}},se=re;J.clear=re.clear,J.drawRoundedRectangle=function(e){e.beginPath(),re.roundedRect.apply(re,arguments)};var oe={_set:function(e,t){return J.merge(this[e]||(this[e]={}),t)}};oe._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 ae=oe,ce=J.valueOrDefault,le={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 J.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=ae.global,n=ce(e.fontSize,t.defaultFontSize),i={family:ce(e.fontFamily,t.defaultFontFamily),lineHeight:J.options.toLineHeight(ce(e.lineHeight,t.defaultLineHeight),n),size:n,style:ce(e.fontStyle,t.defaultFontStyle),weight:null,string:""};return i.string=function(e){return!e||J.isNullOrUndef(e.size)||J.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(i),i},resolve:function(e,t,n){var i,r,s;for(i=0,r=e.length;i<r;++i)if(void 0!==(s=e[i])&&(void 0!==t&&"function"==typeof s&&(s=s(t)),void 0!==n&&J.isArray(s)&&(s=s[n]),void 0!==s))return s}},ue=J,de=se,he=le;ue.easing=K,ue.canvas=de,ue.options=he;var fe=function(e){ue.extend(this,e),this.initialize.apply(this,arguments)};ue.extend(fe.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=ue.clone(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=G(c)).valid&&(h=G(l)).valid){t[o]=h.mix(d,i).rgbString();continue}}else if(ue.isFinite(c)&&ue.isFinite(l)){t[o]=c+(l-c)*i;continue}t[o]=l}}(i,r,n,e),t):(t._view=n,t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return ue.isNumber(this._model.x)&&ue.isNumber(this._model.y)}}),fe.extend=ue.inherits;var pe=fe,me=pe.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),be=me;Object.defineProperty(me.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(me.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}}),ae._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:ue.noop,onComplete:ue.noop}});var ge={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=ue.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=ue.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),ue.callback(e.render,[t,e],t),ue.callback(e.onAnimationProgress,[e],t),e.currentStep>=n?(ue.callback(e.onAnimationComplete,[e],t),t.animating=!1,r.splice(s,1)):++s}},_e=ue.options.resolve,ye=["push","pop","shift","splice","unshift"];function ve(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||(ye.forEach((function(t){delete e[t]})),delete e._chartjs)}}var we=function(e,t){this.initialize(e,t)};ue.extend(we.prototype,{datasetElementType:null,dataElementType:null,initialize:function(e,t){var n=this;n.chart=e,n.index=t,n.linkScales(),n.addElements()},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),n=e.getDataset();null!==t.xAxisID&&t.xAxisID in e.chart.scales||(t.xAxisID=n.xAxisID||e.chart.options.scales.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in e.chart.scales||(t.yAxisID=n.yAxisID||e.chart.options.scales.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&&ve(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&&ve(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]}}),ye.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 ue.each(e._chartjs.listeners,(function(e){"function"==typeof e[n]&&e[n].apply(e,t)})),r}})})))),n._data=r),n.resyncElements()},update:ue.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()},removeHoverStyle:function(e){ue.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=ue.getHoverColor;e.$previousStyle={backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:r.borderWidth},r.backgroundColor=_e([i.hoverBackgroundColor,t.hoverBackgroundColor,s(r.backgroundColor)],void 0,n),r.borderColor=_e([i.hoverBorderColor,t.hoverBorderColor,s(r.borderColor)],void 0,n),r.borderWidth=_e([i.hoverBorderWidth,t.hoverBorderWidth,r.borderWidth],void 0,n)},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)}}),we.extend=ue.inherits;var Se=we;ae._set("global",{elements:{arc:{backgroundColor:ae.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var Me=pe.extend({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=ue.getAngleFromPoint(n,{x:e,y:t}),r=i.angle,s=i.distance,o=n.startAngle,a=n.endAngle;a<o;)a+=2*Math.PI;for(;r>a;)r-=2*Math.PI;for(;r<o;)r+=2*Math.PI;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=n.startAngle,r=n.endAngle,s="inner"===n.borderAlign?.33:0;t.save(),t.beginPath(),t.arc(n.x,n.y,Math.max(n.outerRadius-s,0),i,r),t.arc(n.x,n.y,n.innerRadius,r,i,!0),t.closePath(),t.fillStyle=n.backgroundColor,t.fill(),n.borderWidth&&("inner"===n.borderAlign?(t.beginPath(),t.arc(n.x,n.y,n.outerRadius,i-(e=s/n.outerRadius),r+e),n.innerRadius>s?t.arc(n.x,n.y,n.innerRadius-s,r+(e=s/n.innerRadius),i-e,!0):t.arc(n.x,n.y,s,r+Math.PI/2,i-Math.PI/2),t.closePath(),t.clip(),t.beginPath(),t.arc(n.x,n.y,n.outerRadius,i,r),t.arc(n.x,n.y,n.innerRadius,r,i,!0),t.closePath(),t.lineWidth=2*n.borderWidth,t.lineJoin="round"):(t.lineWidth=n.borderWidth,t.lineJoin="bevel"),t.strokeStyle=n.borderColor,t.stroke()),t.restore()}}),ke=ue.valueOrDefault,xe=ae.global.defaultColor;ae._set("global",{elements:{line:{tension:.4,backgroundColor:xe,borderWidth:3,borderColor:xe,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var De=pe.extend({draw:function(){var e,t,n,i,r=this,s=r._view,o=r._chart.ctx,a=s.spanGaps,c=r._children.slice(),l=ae.global,u=l.elements.line,d=-1;for(r._loop&&c.length&&c.push(c[0]),o.save(),o.lineCap=s.borderCapStyle||u.borderCapStyle,o.setLineDash&&o.setLineDash(s.borderDash||u.borderDash),o.lineDashOffset=ke(s.borderDashOffset,u.borderDashOffset),o.lineJoin=s.borderJoinStyle||u.borderJoinStyle,o.lineWidth=ke(s.borderWidth,u.borderWidth),o.strokeStyle=s.borderColor||l.defaultColor,o.beginPath(),d=-1,e=0;e<c.length;++e)t=c[e],n=ue.previousItem(c,e),i=t._view,0===e?i.skip||(o.moveTo(i.x,i.y),d=e):(n=-1===d?n:c[d],i.skip||(d!==e-1&&!a||-1===d?o.moveTo(i.x,i.y):ue.canvas.lineTo(o,n._view,t._view),d=e));o.stroke(),o.restore()}}),Te=ue.valueOrDefault,Ce=ae.global.defaultColor;function Oe(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}ae._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:Ce,borderColor:Ce,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var Le=pe.extend({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:Oe,inXRange:Oe,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=ae.global,l=c.defaultColor;t.skip||(void 0===e||ue.canvas._isPointInArea(t,e))&&(n.strokeStyle=t.borderColor||l,n.lineWidth=Te(t.borderWidth,c.elements.point.borderWidth),n.fillStyle=t.backgroundColor||l,ue.canvas.drawPoint(n,i,s,o,a,r))}}),Re=ae.global.defaultColor;function Ee(e){return e&&void 0!==e.width}function Ae(e){var t,n,i,r,s;return Ee(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 Ie(e,t,n){return e===t?n:e===n?t:e}function Pe(e,t,n){var i=null===t,r=null===n,s=!(!e||i&&r)&&Ae(e);return s&&(i||t>=s.left&&t<=s.right)&&(r||n>=s.top&&n<=s.bottom)}ae._set("global",{elements:{rectangle:{backgroundColor:Re,borderColor:Re,borderSkipped:"bottom",borderWidth:0}}});var Ne=pe.extend({draw:function(){var e=this._chart.ctx,t=this._view,n=function(e){var t=Ae(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=Ie(t,"left","right")):e.base<e.y&&(t=Ie(t,"bottom","top")),n[t]=!0,n):n}(e);return ue.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 Pe(this._view,e,t)},inLabelRange:function(e,t){var n=this._view;return Ee(n)?Pe(n,e,null):Pe(n,null,t)},inXRange:function(e){return Pe(this._view,e,null)},inYRange:function(e){return Pe(this._view,null,e)},getCenterPoint:function(){var e,t,n=this._view;return Ee(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 Ee(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}}}),je={},Fe=De,Ye=Le,ze=Ne;je.Arc=Me,je.Line=Fe,je.Point=Ye,je.Rectangle=ze;var $e=ue.options.resolve;function He(e,t){var n,i,r,s,o=e.isHorizontal()?e.width:e.height,a=e.getTicks();for(r=1,s=t.length;r<s;++r)o=Math.min(o,Math.abs(t[r]-t[r-1]));for(r=0,s=a.length;r<s;++r)i=e.getPixelForTick(r),o=r>0?Math.min(o,i-n):o,n=i;return o}ae._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}});var We=Se.extend({dataElementType:je.Rectangle,initialize:function(){var e,t=this;Se.prototype.initialize.apply(t,arguments),(e=t.getMeta()).stack=t.getDataset().stack,e.bar=!0},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._resolveElementOptions(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]},i._updateElementGeometry(e,t,n),e.pivot()},_updateElementGeometry:function(e,t,n){var i=this,r=e._model,s=i._getValueScale(),o=s.getBasePixel(),a=s.isHorizontal(),c=i._ruler||i.getRuler(),l=i.calculateBarValuePixels(i.index,t),u=i.calculateBarIndexPixels(i.index,t,c);r.horizontal=a,r.base=n?o:l.base,r.x=a?n?o:l.head:u.center,r.y=a?u.center:n?o:l.head,r.height=a?u.size:void 0,r.width=a?void 0:u.size},_getStacks:function(e){var t,n,i=this.chart,r=this._getIndexScale().options.stacked,s=void 0===e?i.data.datasets.length:e+1,o=[];for(t=0;t<s;++t)(n=i.getDatasetMeta(t)).bar&&i.isDatasetVisible(t)&&(!1===r||!0===r&&-1===o.indexOf(n.stack)||void 0===r&&(void 0===n.stack||-1===o.indexOf(n.stack)))&&o.push(n.stack);return o},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=n.getStackCount(),s=n.index,o=i.isHorizontal(),a=o?i.left:i.top,c=a+(o?i.width:i.height),l=[];for(e=0,t=n.getMeta().data.length;e<t;++e)l.push(i.getPixelForValue(null,e,s));return{min:ue.isNullOrUndef(i.options.barThickness)?He(i,l):-1,pixels:l,start:a,end:c,stackCount:r,scale:i}},calculateBarValuePixels:function(e,t){var n,i,r,s,o,a,c=this,l=c.chart,u=c.getMeta(),d=c._getValueScale(),h=d.isHorizontal(),f=l.data.datasets,p=+d.getRightValue(f[e].data[t]),m=d.options.minBarLength,b=d.options.stacked,g=u.stack,_=0;if(b||void 0===b&&void 0!==g)for(n=0;n<e;++n)(i=l.getDatasetMeta(n)).bar&&i.stack===g&&i.controller._getValueScaleId()===d.id&&l.isDatasetVisible(n)&&(r=+d.getRightValue(f[n].data[t]),(p<0&&r<0||p>=0&&r>0)&&(_+=r));return s=d.getPixelForValue(_),a=(o=d.getPixelForValue(_+p))-s,void 0!==m&&Math.abs(a)<m&&(a=m,o=p>=0&&!h||p<0&&h?s-m:s+m),{size:a,base:s,head:o,center:o+a/2}},calculateBarIndexPixels:function(e,t,n){var i=n.scale.options,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];return ue.isNullOrUndef(s)?(i=t.min*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(ue.valueOrDefault(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(ue.canvas.clipArea(t.ctx,t.chartArea);o<s;++o)isNaN(n.getRightValue(r.data[o]))||i[o].draw();ue.canvas.unclipArea(t.ctx)},_resolveElementOptions:function(e,t){var n,i,r,s=this,o=s.chart,a=o.data.datasets[s.index],c=e.custom||{},l=o.options.elements.rectangle,u={},d={chart:o,dataIndex:t,dataset:a,datasetIndex:s.index},h=["backgroundColor","borderColor","borderSkipped","borderWidth"];for(n=0,i=h.length;n<i;++n)u[r=h[n]]=$e([c[r],a[r],l[r]],d,t);return u}}),Ve=ue.valueOrDefault,Be=ue.options.resolve;ae._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 Ue=Se.extend({dataElementType:je.Point,update:function(e){var t=this,n=t.getMeta();ue.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._resolveElementOptions(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=ue.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Ve(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=Ve(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=Ve(n.hoverBorderWidth,n.borderWidth),t.radius=n.radius+n.hoverRadius},_resolveElementOptions:function(e,t){var n,i,r,s=this,o=s.chart,a=o.data.datasets[s.index],c=e.custom||{},l=o.options.elements.point,u=a.data[t],d={},h={chart:o,dataIndex:t,dataset:a,datasetIndex:s.index},f=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"];for(n=0,i=f.length;n<i;++n)d[r=f[n]]=Be([c[r],a[r],l[r]],h,t);return d.radius=Be([c.radius,u?u.r:void 0,a.radius,l.radius],h,t),d}}),Ge=ue.options.resolve,qe=ue.valueOrDefault;ae._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');var n=e.data,i=n.datasets,r=n.labels;if(i.length)for(var s=0;s<i[0].data.length;++s)t.push('<li><span style="background-color:'+i[0].backgroundColor[s]+'"></span>'),r[s]&&t.push(r[s]),t.push("</li>");return t.push("</ul>"),t.join("")},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=t.datasets[0],o=r.data[i],a=o&&o.custom||{},c=e.options.elements.arc;return{text:n,fillStyle:Ge([a.backgroundColor,s.backgroundColor,c.backgroundColor],void 0,i),strokeStyle:Ge([a.borderColor,s.borderColor,c.borderColor],void 0,i),lineWidth:Ge([a.borderWidth,s.borderWidth,c.borderWidth],void 0,i),hidden:isNaN(s.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:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.labels[e.index],i=": "+t.datasets[e.datasetIndex].data[e.index];return ue.isArray(n)?(n=n.slice())[0]+=i:n+=i,n}}}});var Je=Se.extend({dataElementType:je.Arc,linkScales:ue.noop,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=s.right-s.left,c=s.bottom-s.top,l=Math.min(a,c),u={x:0,y:0},d=i.getMeta(),h=d.data,f=o.cutoutPercentage,p=o.circumference,m=i._getRingWeight(i.index);if(p<2*Math.PI){var b=o.rotation%(2*Math.PI),g=(b+=2*Math.PI*(b>=Math.PI?-1:b<-Math.PI?1:0))+p,_={x:Math.cos(b),y:Math.sin(b)},y={x:Math.cos(g),y:Math.sin(g)},v=b<=0&&g>=0||b<=2*Math.PI&&2*Math.PI<=g,w=b<=.5*Math.PI&&.5*Math.PI<=g||b<=2.5*Math.PI&&2.5*Math.PI<=g,S=b<=-Math.PI&&-Math.PI<=g||b<=Math.PI&&Math.PI<=g,M=b<=.5*-Math.PI&&.5*-Math.PI<=g||b<=1.5*Math.PI&&1.5*Math.PI<=g,k=f/100,x={x:S?-1:Math.min(_.x*(_.x<0?1:k),y.x*(y.x<0?1:k)),y:M?-1:Math.min(_.y*(_.y<0?1:k),y.y*(y.y<0?1:k))},D={x:v?1:Math.max(_.x*(_.x>0?1:k),y.x*(y.x>0?1:k)),y:w?1:Math.max(_.y*(_.y>0?1:k),y.y*(y.y>0?1:k))},T={width:.5*(D.x-x.x),height:.5*(D.y-x.y)};l=Math.min(a/T.width,c/T.height),u={x:-.5*(D.x+x.x),y:-.5*(D.y+x.y)}}for(t=0,n=h.length;t<n;++t)h[t]._options=i._resolveElementOptions(h[t],t);for(r.borderWidth=i.getMaxBorderWidth(),r.outerRadius=Math.max((l-r.borderWidth)/2,0),r.innerRadius=Math.max(f?r.outerRadius/100*f:0,0),r.radiusLength=(r.outerRadius-r.innerRadius)/(i._getVisibleDatasetWeightTotal()||1),r.offsetX=u.x*r.outerRadius,r.offsetY=u.y*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/(2*Math.PI)),p=e._options||{};ue.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:ue.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 ue.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)?2*Math.PI*(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],"inner"!==(o=s?s._resolveElementOptions(r,t):r._options).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=ue.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=qe(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=qe(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=qe(n.hoverBorderWidth,n.borderWidth)},_resolveElementOptions:function(e,t){var n,i,r,s=this,o=s.chart,a=s.getDataset(),c=e.custom||{},l=o.options.elements.arc,u={},d={chart:o,dataIndex:t,dataset:a,datasetIndex:s.index},h=["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"];for(n=0,i=h.length;n<i;++n)u[r=h[n]]=Ge([c[r],a[r],l[r]],d,t);return u},_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(qe(this.chart.data.datasets[e].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});ae._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}});var Qe=We.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),Ke=ue.valueOrDefault,Ze=ue.options.resolve,Xe=ue.canvas._isPointInArea;function et(e,t){return Ke(e.showLine,t.showLines)}ae._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 tt=Se.extend({datasetElementType:je.Line,dataElementType:je.Point,update:function(e){var t,n,i=this,r=i.getMeta(),s=r.dataset,o=r.data||[],a=i.getScaleForId(r.yAxisID),c=i.getDataset(),l=et(c,i.chart.options);for(l&&(void 0!==c.tension&&void 0===c.lineTension&&(c.lineTension=c.tension),s._scale=a,s._datasetIndex=i.index,s._children=o,s._model=i._resolveLineOptions(s),s.pivot()),t=0,n=o.length;t<n;++t)i.updateElement(o[t],t,e);for(l&&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.getScaleForId(o.yAxisID),h=s.getScaleForId(o.xAxisID),f=o.dataset._model,p=s._resolvePointOptions(e,t);i=h.getPixelForValue("object"==typeof u?u:NaN,t,l),r=n?d.getBasePixel():s.calculatePointY(u,t,l),e._xScale=h,e._yScale=d,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:Ke(a.tension,f?f.tension:0),steppedLine:!!f&&f.steppedLine,hitRadius:p.hitRadius}},_resolvePointOptions:function(e,t){var n,i,r,s=this,o=s.chart,a=o.data.datasets[s.index],c=e.custom||{},l=o.options.elements.point,u={},d={chart:o,dataIndex:t,dataset:a,datasetIndex:s.index},h={backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},f=Object.keys(h);for(n=0,i=f.length;n<i;++n)u[r=f[n]]=Ze([c[r],a[h[r]],a[r],l[r]],d,t);return u},_resolveLineOptions:function(e){var t,n,i,r=this.chart,s=r.data.datasets[this.index],o=e.custom||{},a=r.options,c=a.elements.line,l={},u=["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill","cubicInterpolationMode"];for(t=0,n=u.length;t<n;++t)l[i=u[t]]=Ze([o[i],s[i],c[i]]);return l.spanGaps=Ke(s.spanGaps,a.spanGaps),l.tension=Ke(s.lineTension,c.tension),l.steppedLine=Ze([o.steppedLine,s.steppedLine,c.stepped]),l},calculatePointY:function(e,t,n){var i,r,s,o=this,a=o.chart,c=o.getMeta(),l=o.getScaleForId(c.yAxisID),u=0,d=0;if(l.options.stacked){for(i=0;i<n;i++)if(r=a.data.datasets[i],"line"===(s=a.getDatasetMeta(i)).type&&s.yAxisID===l.id&&a.isDatasetVisible(i)){var h=Number(l.getRightValue(r.data[t]));h<0?d+=h||0:u+=h||0}var f=Number(l.getRightValue(e));return l.getPixelForValue(f<0?d+f:u+f)}return l.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)ue.splineCurveMonotone(c);else for(e=0,t=c.length;e<t;++e)n=c[e]._model,i=ue.splineCurve(ue.previousItem(c,e)._model,n,ue.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)Xe(n=c[e]._model,a)&&(e>0&&Xe(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&&Xe(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=r.length,a=0;for(et(t.getDataset(),n.options)&&(ue.canvas.clipArea(n.ctx,{left:s.left,right:s.right,top:s.top-(e=(i.dataset._model.borderWidth||0)/2),bottom:s.bottom+e}),i.dataset.draw(),ue.canvas.unclipArea(n.ctx));a<o;++a)r[a].draw(s)},setHoverStyle:function(e){var t=e._model,n=e._options,i=ue.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Ke(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=Ke(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=Ke(n.hoverBorderWidth,n.borderWidth),t.radius=Ke(n.hoverRadius,n.radius)}}),nt=ue.options.resolve;ae._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=[];t.push('<ul class="'+e.id+'-legend">');var n=e.data,i=n.datasets,r=n.labels;if(i.length)for(var s=0;s<i[0].data.length;++s)t.push('<li><span style="background-color:'+i[0].backgroundColor[s]+'"></span>'),r[s]&&t.push(r[s]),t.push("</li>");return t.push("</ul>"),t.join("")},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=t.datasets[0],o=r.data[i].custom||{},a=e.options.elements.arc;return{text:n,fillStyle:nt([o.backgroundColor,s.backgroundColor,a.backgroundColor],void 0,i),strokeStyle:nt([o.borderColor,s.borderColor,a.borderColor],void 0,i),lineWidth:nt([o.borderWidth,s.borderWidth,a.borderWidth],void 0,i),hidden:isNaN(s.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 it=Se.extend({dataElementType:je.Arc,linkScales:ue.noop,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._resolveElementOptions(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||{};ue.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:ue.valueAtIndexOrDefault(l,t,l[t])}}),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),n=0;return ue.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=ue.getHoverColor,r=ue.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)},_resolveElementOptions:function(e,t){var n,i,r,s=this,o=s.chart,a=s.getDataset(),c=e.custom||{},l=o.options.elements.arc,u={},d={chart:o,dataIndex:t,dataset:a,datasetIndex:s.index},h=["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"];for(n=0,i=h.length;n<i;++n)u[r=h[n]]=nt([c[r],a[r],l[r]],d,t);return u},_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:nt([t.chart.options.elements.arc.angle,2*Math.PI/n],{chart:t.chart,dataIndex:e,dataset:i,datasetIndex:t.index},e)}});ae._set("pie",ue.clone(ae.doughnut)),ae._set("pie",{cutoutPercentage:0});var rt=Je,st=ue.valueOrDefault,ot=ue.options.resolve;ae._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}});var at=Se.extend({datasetElementType:je.Line,dataElementType:je.Point,linkScales:ue.noop,update:function(e){var t,n,i=this,r=i.getMeta(),s=r.dataset,o=r.data||[],a=i.chart.scale,c=i.getDataset();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._resolveLineOptions(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._resolvePointOptions(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:st(r.tension,l?l.tension:0),hitRadius:c.hitRadius}},_resolvePointOptions:function(e,t){var n,i,r,s=this,o=s.chart,a=o.data.datasets[s.index],c=e.custom||{},l=o.options.elements.point,u={},d={chart:o,dataIndex:t,dataset:a,datasetIndex:s.index},h={backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},f=Object.keys(h);for(n=0,i=f.length;n<i;++n)u[r=f[n]]=ot([c[r],a[h[r]],a[r],l[r]],d,t);return u},_resolveLineOptions:function(e){var t,n,i,r=this.chart,s=r.data.datasets[this.index],o=e.custom||{},a=r.options.elements.line,c={},l=["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"];for(t=0,n=l.length;t<n;++t)c[i=l[t]]=ot([o[i],s[i],a[i]]);return c.tension=st(s.lineTension,a.tension),c},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(e=0,t=o.length;e<t;++e)n=o[e]._model,i=ue.splineCurve(ue.previousItem(o,e,!0)._model,n,ue.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=ue.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=st(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=st(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=st(n.hoverBorderWidth,n.borderWidth),t.radius=st(n.hoverRadius,n.radius)}});ae._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}});var ct={bar:We,bubble:Ue,doughnut:Je,horizontalBar:Qe,line:tt,polarArea:it,pie:rt,radar:at,scatter:tt};function lt(e,t){return e.native?{x:e.x,y:e.y}:ue.getRelativePosition(e,t)}function ut(e,t){var n,i,r,s,o;for(i=0,s=e.data.datasets.length;i<s;++i)if(e.isDatasetVisible(i))for(r=0,o=(n=e.getDatasetMeta(i)).data.length;r<o;++r){var a=n.data[r];a._view.skip||t(a)}}function dt(e,t){var n=[];return ut(e,(function(e){e.inRange(t.x,t.y)&&n.push(e)})),n}function ht(e,t,n,i){var r=Number.POSITIVE_INFINITY,s=[];return ut(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 ft(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 pt(e,t,n){var i=lt(t,e);n.axis=n.axis||"x";var r=ft(n.axis),s=n.intersect?dt(e,i):ht(e,i,!1,r),o=[];return s.length?(e.data.datasets.forEach((function(t,n){if(e.isDatasetVisible(n)){var i=e.getDatasetMeta(n).data[s[0]._index];i&&!i._view.skip&&o.push(i)}})),o):[]}var mt={modes:{single:function(e,t){var n=lt(t,e),i=[];return ut(e,(function(e){if(e.inRange(n.x,n.y))return i.push(e),i})),i.slice(0,1)},label:pt,index:pt,dataset:function(e,t,n){var i=lt(t,e);n.axis=n.axis||"xy";var r=ft(n.axis),s=n.intersect?dt(e,i):ht(e,i,!1,r);return s.length>0&&(s=e.getDatasetMeta(s[0]._datasetIndex).data),s},"x-axis":function(e,t){return pt(e,t,{intersect:!1})},point:function(e,t){return dt(e,lt(t,e))},nearest:function(e,t,n){var i=lt(t,e);n.axis=n.axis||"xy";var r=ft(n.axis);return ht(e,i,n.intersect,r)},x:function(e,t,n){var i=lt(t,e),r=[],s=!1;return ut(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=lt(t,e),r=[],s=!1;return ut(e,(function(e){e.inYRange(i.y)&&r.push(e),e.inRange(i.x,i.y)&&(s=!0)})),n.intersect&&!s&&(r=[]),r}}};function bt(e,t){return ue.where(e,(function(e){return e.position===t}))}function gt(e,t){e.forEach((function(e,t){return e._tmpIndex_=t,e})),e.sort((function(e,n){var i=t?n:e,r=t?e:n;return i.weight===r.weight?i._tmpIndex_-r._tmpIndex_:i.weight-r.weight})),e.forEach((function(e){delete e._tmpIndex_}))}function _t(e,t){ue.each(e,(function(e){t[e.position]+=e.isHorizontal()?e.height:e.width}))}ae._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var yt,vt={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,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=ue.options.toPadding((e.options.layout||{}).padding),r=i.left,s=i.right,o=i.top,a=i.bottom,c=bt(e.boxes,"left"),l=bt(e.boxes,"right"),u=bt(e.boxes,"top"),d=bt(e.boxes,"bottom"),h=bt(e.boxes,"chartArea");gt(c,!0),gt(l,!1),gt(u,!0),gt(d,!1);var f,p=c.concat(l),m=u.concat(d),b=p.concat(m),g=t-r-s,_=n-o-a,y=(t-g/2)/p.length,v=g,w=_,S={top:o,left:r,bottom:a,right:s},M=[];ue.each(b,(function(e){var t,n=e.isHorizontal();n?(t=e.update(e.fullWidth?g:v,_/2),w-=t.height):(t=e.update(y,w),v-=t.width),M.push({horizontal:n,width:t.width,box:e})})),f=function(e){var t=0,n=0,i=0,r=0;return ue.each(e,(function(e){if(e.getPadding){var s=e.getPadding();t=Math.max(t,s.top),n=Math.max(n,s.left),i=Math.max(i,s.bottom),r=Math.max(r,s.right)}})),{top:t,left:n,bottom:i,right:r}}(b),ue.each(p,L),_t(p,S),ue.each(m,L),_t(m,S),ue.each(p,(function(e){var t=ue.findNextWhere(M,(function(t){return t.box===e}));t&&e.update(t.width,w,{left:0,right:0,top:S.top,bottom:S.bottom})})),_t(b,S={top:o,left:r,bottom:a,right:s});var k=Math.max(f.left-S.left,0);S.left+=k,S.right+=Math.max(f.right-S.right,0);var x=Math.max(f.top-S.top,0);S.top+=x,S.bottom+=Math.max(f.bottom-S.bottom,0);var D=n-S.top-S.bottom,T=t-S.left-S.right;T===v&&D===w||(ue.each(p,(function(e){e.height=D})),ue.each(m,(function(e){e.fullWidth||(e.width=T)})),w=D,v=T);var C=r+k,O=o+x;ue.each(c.concat(u),R),C+=v,O+=w,ue.each(l,R),ue.each(d,R),e.chartArea={left:S.left,top:S.top,right:S.left+v,bottom:S.top+w},ue.each(h,(function(t){t.left=e.chartArea.left,t.top=e.chartArea.top,t.right=e.chartArea.right,t.bottom=e.chartArea.bottom,t.update(v,w)}))}function L(e){var t=ue.findNextWhere(M,(function(t){return t.box===e}));if(t)if(t.horizontal){var n={left:Math.max(S.left,f.left),right:Math.max(S.right,f.right),top:0,bottom:0};e.update(e.fullWidth?g:v,_/2,n)}else e.update(t.width,w)}function R(e){e.isHorizontal()?(e.left=e.fullWidth?r:S.left,e.right=e.fullWidth?t-s:S.left+v,e.top=O,e.bottom=O+e.height,O=e.bottom):(e.left=C,e.right=C+e.width,e.top=S.top,e.bottom=S.top+w,C=e.right)}}},wt=(yt=Object.freeze({default:"/*\n * DOM element rendering detection\n * https://davidwalsh.name/detect-node-insertion\n */\n@keyframes chartjs-render-animation {\n\tfrom { opacity: 0.99; }\n\tto { opacity: 1; }\n}\n\n.chartjs-render-monitor {\n\tanimation: chartjs-render-animation 0.001s;\n}\n\n/*\n * DOM element resizing detection\n * https://github.com/marcj/css-element-queries\n */\n.chartjs-size-monitor,\n.chartjs-size-monitor-expand,\n.chartjs-size-monitor-shrink {\n\tposition: absolute;\n\tdirection: ltr;\n\tleft: 0;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\toverflow: hidden;\n\tpointer-events: none;\n\tvisibility: hidden;\n\tz-index: -1;\n}\n\n.chartjs-size-monitor-expand > div {\n\tposition: absolute;\n\twidth: 1000000px;\n\theight: 1000000px;\n\tleft: 0;\n\ttop: 0;\n}\n\n.chartjs-size-monitor-shrink > div {\n\tposition: absolute;\n\twidth: 200%;\n\theight: 200%;\n\tleft: 0;\n\ttop: 0;\n}\n"}))&&yt.default||yt,St="chartjs-size-monitor",Mt="chartjs-render-monitor",kt=["animationstart","webkitAnimationStart"],xt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function Dt(e,t){var n=ue.getStyle(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):void 0}var Tt=!!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 Ct(e,t,n){e.addEventListener(t,n,Tt)}function Ot(e,t,n){e.removeEventListener(t,n,Tt)}function Lt(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 Rt(e){var t=document.createElement("div");return t.className=e||"",t}var Et={disableCSSInjection:!1,_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,_ensureLoaded:function(){this._loaded||(this._loaded=!0,this.disableCSSInjection||function(e,t){var n=e._style||document.createElement("style");e._style||(e._style=n,t="/* Chart.js */\n"+t,n.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n)),n.appendChild(document.createTextNode(t))}(this,wt))},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 this._ensureLoaded(),n&&n.canvas===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=Dt(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=Dt(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];ue.isNullOrUndef(i)?t.removeAttribute(e):t.setAttribute(e,i)})),ue.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={});Ct(i,t,(r.proxies||(r.proxies={}))[e.id+"_"+t]=function(t){n(function(e,t){var n=xt[e.type]||e.type,i=ue.getRelativePosition(e,t);return Lt(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=Rt(St),i=Rt(St+"-expand"),r=Rt(St+"-shrink");i.appendChild(Rt()),r.appendChild(Rt()),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 Ct(i,"scroll",s.bind(i,"expand")),Ct(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(Lt("resize",n)),i&&i.clientWidth<r&&n.canvas&&t(Lt("resize",n))}},s=!1,o=[],function(){o=Array.prototype.slice.call(arguments),r=r||this,s||(s=!0,ue.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()};ue.each(kt,(function(t){Ct(e,t,i)})),n.reflow=!!e.offsetParent,e.classList.add(Mt)}(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&&Ot(o,t,a)}else s=(r=(i=o).$chartjs||{}).resizer,delete r.resizer,function(e){var t=e.$chartjs||{},n=t.renderProxy;n&&(ue.each(kt,(function(t){Ot(e,t,n)})),delete t.renderProxy),e.classList.remove(Mt)}(i),s&&s.parentNode&&s.parentNode.removeChild(s)}};ue.addEvent=Ct,ue.removeEvent=Ot;var At=ue.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},Et._enabled?Et:{acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}});ae._set("global",{plugins:{}});var It={_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=ue.clone(ae.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}},Pt={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=ue.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?ue.merge({},[ae.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){var n=this;n.defaults.hasOwnProperty(e)&&(n.defaults[e]=ue.extend(n.defaults[e],t))},addScalesToLayout:function(e){ue.each(e.scales,(function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,vt.addBox(e,t)}))}},Nt=ue.valueOrDefault;ae._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:ue.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:ue.noop,beforeBody:ue.noop,beforeLabel:ue.noop,label:function(e,t){var n=t.datasets[e.datasetIndex].label||"";return n&&(n+=": "),ue.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:ue.noop,afterBody:ue.noop,beforeFooter:ue.noop,footer:ue.noop,afterFooter:ue.noop}}});var jt={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=ue.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 Ft(e,t){return t&&(ue.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Yt(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function zt(e){var t=ae.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,bodyFontColor:e.bodyFontColor,_bodyFontFamily:Nt(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:Nt(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:Nt(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:Nt(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:Nt(e.titleFontStyle,t.defaultFontStyle),titleFontSize:Nt(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:Nt(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:Nt(e.footerFontStyle,t.defaultFontStyle),footerFontSize:Nt(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 $t(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function Ht(e){return Ft([],Yt(e))}var Wt=pe.extend({initialize:function(){this._model=zt(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=Ft(s,Yt(n)),s=Ft(s,Yt(i)),Ft(s,Yt(r))},getBeforeBody:function(){return Ht(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,i=n._options.callbacks,r=[];return ue.each(e,(function(e){var s={before:[],lines:[],after:[]};Ft(s.before,Yt(i.beforeLabel.call(n,e,t))),Ft(s.lines,i.label.call(n,e,t)),Ft(s.after,Yt(i.afterLabel.call(n,e,t))),r.push(s)})),r},getAfterBody:function(){return Ht(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=Ft(s,Yt(n)),s=Ft(s,Yt(i)),Ft(s,Yt(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=zt(h),m=d._active,b=d._data,g={xAlign:f.xAlign,yAlign:f.yAlign},_={x:f.x,y:f.y},y={width:f.width,height:f.height},v={x:f.caretX,y:f.caretY};if(m.length){p.opacity=1;var w=[],S=[];v=jt[h.position].call(d,m,d._eventPosition);var M=[];for(t=0,n=m.length;t<n;++t)M.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&&(M=M.filter((function(e){return h.filter(e,b)}))),h.itemSort&&(M=M.sort((function(e,t){return h.itemSort(e,t,b)}))),ue.each(M,(function(e){w.push(h.callbacks.labelColor.call(d,e,d._chart)),S.push(h.callbacks.labelTextColor.call(d,e,d._chart))})),p.title=d.getTitle(M,b),p.beforeBody=d.getBeforeBody(M,b),p.body=d.getBody(M,b),p.afterBody=d.getAfterBody(M,b),p.footer=d.getFooter(M,b),p.x=v.x,p.y=v.y,p.caretPadding=h.caretPadding,p.labelColors=w,p.labelTextColors=S,p.dataPoints=M,_=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,y=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=ue.fontString(l,t._titleFontStyle,t._titleFontFamily),ue.each(t.title,f),n.font=ue.fontString(u,t._bodyFontStyle,t._bodyFontFamily),ue.each(t.beforeBody.concat(t.afterBody),f),h=t.displayColors?u+2:0,ue.each(s,(function(e){ue.each(e.before,f),ue.each(e.lines,f),ue.each(e.after,f)})),h=0,n.font=ue.fontString(d,t._footerFontStyle,t._footerFontFamily),ue.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,y),d._chart)}else p.opacity=0;return p.xAlign=g.xAlign,p.yAlign=g.yAlign,p.x=_.x,p.y=_.y,p.width=y.width,p.height=y.height,p.caretX=v.x,p.caretY=v.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=t.title;if(i.length){e.x=$t(t,t._titleAlign),n.textAlign=t._titleAlign,n.textBaseline="top";var r,s,o=t.titleFontSize,a=t.titleSpacing;for(n.fillStyle=t.titleFontColor,n.font=ue.fontString(o,t._titleFontStyle,t._titleFontFamily),r=0,s=i.length;r<s;++r)n.fillText(i[r],e.x,e.y),e.y+=o+a,r+1===i.length&&(e.y+=t.titleMarginBottom-a)}},drawBody:function(e,t,n){var i,r=t.bodyFontSize,s=t.bodySpacing,o=t._bodyAlign,a=t.body,c=t.displayColors,l=t.labelColors,u=0,d=c?$t(t,"left"):0;n.textAlign=o,n.textBaseline="top",n.font=ue.fontString(r,t._bodyFontStyle,t._bodyFontFamily),e.x=$t(t,o);var h=function(t){n.fillText(t,e.x+u,e.y),e.y+=r+s};n.fillStyle=t.bodyFontColor,ue.each(t.beforeBody,h),u=c&&"right"!==o?"center"===o?r/2+1:r+2:0,ue.each(a,(function(s,o){n.fillStyle=i=t.labelTextColors[o],ue.each(s.before,h),ue.each(s.lines,(function(s){c&&(n.fillStyle=t.legendColorBackground,n.fillRect(d,e.y,r,r),n.lineWidth=1,n.strokeStyle=l[o].borderColor,n.strokeRect(d,e.y,r,r),n.fillStyle=l[o].backgroundColor,n.fillRect(d+1,e.y+1,r-2,r-2),n.fillStyle=i),h(s)})),ue.each(s.after,h)})),u=0,ue.each(t.afterBody,h),e.y-=s},drawFooter:function(e,t,n){var i=t.footer;i.length&&(e.x=$t(t,t._footerAlign),e.y+=t.footerMarginTop,n.textAlign=t._footerAlign,n.textBaseline="top",n.fillStyle=t.footerFontColor,n.font=ue.fontString(t.footerFontSize,t._footerFontStyle,t._footerFontFamily),ue.each(i,(function(i){n.fillText(i,e.x,e.y),e.y+=t.footerFontSize+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,this.drawTitle(i,t,e),this.drawBody(i,t,e),this.drawFooter(i,t,e),e.restore())}},handleEvent:function(e){var t,n=this,i=n._options;return n._lastActive=n._lastActive||[],n._active="mouseout"===e.type?[]:n._chart.getElementsAtEventForMode(e,i.mode,i),(t=!ue.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}});Wt.positioners=jt;var Vt=ue.valueOrDefault;function Bt(){return ue.merge({},[].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=Vt((o=n[e][r]).type,"xAxes"===e?"category":"linear"),r>=t[e].length&&t[e].push({}),ue.merge(t[e][r],!t[e][r].type||o.type&&o.type!==t[e][r].type?[Pt.getScaleDefaults(s),o]:o)}else ue._merger(e,t,n,i)}})}function Ut(){return ue.merge({},[].slice.call(arguments),{merger:function(e,t,n,i){var r=t[e]||{},s=n[e];"scales"===e?t[e]=Bt(r,s):"scale"===e?t[e]=ue.merge(r,[Pt.getScaleDefaults(s.type),s]):ue._merger(e,t,n,i)}})}function Gt(e){var t=e.options;ue.each(e.scales,(function(t){vt.removeBox(e,t)})),t=Ut(ae.global,ae[e.config.type],t),e.options=e.config.options=t,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=t.tooltips,e.tooltip.initialize()}function qt(e){return"top"===e||"bottom"===e}ae._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 Jt=function(e,t){return this.construct(e,t),this};ue.extend(Jt.prototype,{construct:function(e,t){var n=this;t=function(e){var t=(e=e||{}).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Ut(ae.global,ae[e.type],e.options||{}),e}(t);var i=At.acquireContext(e,t),r=i&&i.canvas,s=r&&r.height,o=r&&r.width;n.id=ue.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.chart=n,n.controller=n,Jt.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 It.notify(e,"beforeInit"),ue.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.initToolTip(),It.notify(e,"afterInit"),e},clear:function(){return ue.canvas.clear(this),this},stop:function(){return ge.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(ue.getMaximumWidth(i))),o=Math.max(0,Math.floor(r?s/r:ue.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",ue.retinaScale(t,n.devicePixelRatio),!e)){var a={width:s,height:o};It.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;ue.each(t.xAxes,(function(e,t){e.id=e.id||"x-axis-"+t})),ue.each(t.yAxes,(function(e,t){e.id=e.id||"y-axis-"+t})),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"}),ue.each(i,(function(t){var i=t.options,s=i.id,o=Vt(i.type,t.dtype);qt(i.position)!==qt(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=Pt.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)})),ue.each(r,(function(e,t){e||delete n[t]})),e.scales=n,Pt.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e=this,t=[];return ue.each(e.data.datasets,(function(n,i){var r=e.getDatasetMeta(i),s=n.type||e.config.type;if(r.type&&r.type!==s&&(e.destroyDatasetMeta(i),r=e.getDatasetMeta(i)),r.type=s,r.controller)r.controller.updateIndex(i),r.controller.linkScales();else{var o=ct[r.type];if(void 0===o)throw new Error('"'+r.type+'" is not a chart type.');r.controller=new o(e,i),t.push(r.controller)}}),e),t},resetElements:function(){var e=this;ue.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=this;if(e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]}),Gt(t),It._invalidate(t),!1!==It.notify(t,"beforeUpdate")){t.tooltip._data=t.data;var n=t.buildOrUpdateControllers();ue.each(t.data.datasets,(function(e,n){t.getDatasetMeta(n).controller.buildOrUpdateElements()}),t),t.updateLayout(),t.options.animation&&t.options.animation.duration&&ue.each(n,(function(e){e.reset()})),t.updateDatasets(),t.tooltip.initialize(),t.lastActive=[],It.notify(t,"afterUpdate"),t._bufferedRender?t._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:t.render(e)}},updateLayout:function(){var e=this;!1!==It.notify(e,"beforeLayout")&&(vt.update(this,this.width,this.height),It.notify(e,"afterScaleUpdate"),It.notify(e,"afterLayout"))},updateDatasets:function(){var e=this;if(!1!==It.notify(e,"beforeDatasetsUpdate")){for(var t=0,n=e.data.datasets.length;t<n;++t)e.updateDataset(t);It.notify(e,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this,n=t.getDatasetMeta(e),i={meta:n,index:e};!1!==It.notify(t,"beforeDatasetUpdate",[i])&&(n.controller.update(),It.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=Vt(e.duration,n&&n.duration),r=e.lazy;if(!1!==It.notify(t,"beforeRender")){var s=function(e){It.notify(t,"afterRender"),ue.callback(n&&n.onComplete,[e],t)};if(n&&i){var o=new be({numSteps:i/16.66,easing:e.easing||n.easing,render:function(e,t){var n=t.currentStep,i=n/t.numSteps;e.draw((0,ue.easing.effects[t.easing])(i),i,n)},onAnimationProgress:n.onProgress,onAnimationComplete:s});ge.addAnimation(t,o,i,r)}else t.draw(),s(new be({numSteps:0,chart:t}));return t}},draw:function(e){var t=this;t.clear(),ue.isNullOrUndef(e)&&(e=1),t.transition(e),t.width<=0||t.height<=0||!1!==It.notify(t,"beforeDraw",[e])&&(ue.each(t.boxes,(function(e){e.draw(t.chartArea)}),t),t.drawDatasets(e),t._drawTooltip(e),It.notify(t,"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)},drawDatasets:function(e){var t=this;if(!1!==It.notify(t,"beforeDatasetsDraw",[e])){for(var n=(t.data.datasets||[]).length-1;n>=0;--n)t.isDatasetVisible(n)&&t.drawDataset(n,e);It.notify(t,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n=this,i=n.getDatasetMeta(e),r={meta:i,index:e,easingValue:t};!1!==It.notify(n,"beforeDatasetDraw",[r])&&(i.controller.draw(t),It.notify(n,"afterDatasetDraw",[r]))},_drawTooltip:function(e){var t=this,n=t.tooltip,i={tooltip:n,easingValue:e};!1!==It.notify(t,"beforeTooltipDraw",[i])&&(n.draw(),It.notify(t,"afterTooltipDraw",[i]))},getElementAtEvent:function(e){return mt.modes.single(this,e)},getElementsAtEvent:function(e){return mt.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return mt.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var i=mt.modes[t];return"function"==typeof i?i(this,e,n):[]},getDatasetAtEvent:function(e){return mt.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}),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(),ue.canvas.clear(n),At.releaseContext(n.ctx),n.canvas=null,n.ctx=null),It.notify(n,"destroy"),delete Jt.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new Wt({_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)};ue.each(e.options.events,(function(i){At.addEventListener(e,i,n),t[i]=n})),e.options.responsive&&(n=function(){e.resize()},At.addEventListener(e,"resize",n),t.resize=n)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,ue.each(t,(function(t,n){At.removeEventListener(e,n,t)})))},updateHoverStyle:function(e,t,n){var i,r,s,o=n?"setHoverStyle":"removeHoverStyle";for(r=0,s=e.length;r<s;++r)(i=e[r])&&this.getDatasetMeta(i._datasetIndex).controller[o](i)},eventHandler:function(e){var t=this,n=t.tooltip;if(!1!==It.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)),It.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),ue.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=!ue.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,t}}),Jt.instances={};var Qt=Jt;function Kt(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function Zt(e){this.options=e||{}}Jt.Controller=Jt,Jt.types={},ue.configMerge=Ut,ue.scaleMerge=Bt,ue.extend(Zt.prototype,{formats:Kt,parse:Kt,format:Kt,add:Kt,diff:Kt,startOf:Kt,endOf:Kt,_create:function(e){return e}}),Zt.override=function(e){ue.extend(Zt.prototype,e)};var Xt={_date:Zt},en={formatters:{values:function(e){return ue.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=ue.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=ue.log10(Math.abs(e));s=e.toExponential(Math.floor(o)-Math.floor(r))}else{var a=-1*Math.floor(r);a=Math.max(Math.min(a,20),0),s=e.toFixed(a)}else s="0";return s},logarithmic:function(e,t,n){var i=e/Math.pow(10,Math.floor(ue.log10(e)));return 0===e?"0":1===i||2===i||5===i||0===t||t===n.length-1?e.toExponential():""}}},tn=ue.valueOrDefault,nn=ue.valueAtIndexOrDefault;function rn(e){var t,n,i=[];for(t=0,n=e.length;t<n;++t)i.push(e[t].label);return i}function sn(e,t,n){return ue.isArray(t)?ue.longestText(e,n,t):e.measureText(t).width}ae._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:en.formatters.values,minor:{},major:{}}});var on=pe.extend({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},mergeTicksOptions:function(){var e=this.options.ticks;for(var t in!1===e.minor&&(e.minor={display:!1}),!1===e.major&&(e.major={display:!1}),e)"major"!==t&&"minor"!==t&&(void 0===e.minor[t]&&(e.minor[t]=e[t]),void 0===e.major[t]&&(e.major[t]=e[t]))},beforeUpdate:function(){ue.callback(this.options.beforeUpdate,[this])},update:function(e,t,n){var i,r,s,o,a,c,l=this;for(l.beforeUpdate(),l.maxWidth=e,l.maxHeight=t,l.margins=ue.extend({left:0,right:0,top:0,bottom:0},n),l._maxLabelLines=0,l.longestLabelWidth=0,l.longestTextCache=l.longestTextCache||{},l.beforeSetDimensions(),l.setDimensions(),l.afterSetDimensions(),l.beforeDataLimits(),l.determineDataLimits(),l.afterDataLimits(),l.beforeBuildTicks(),a=l.buildTicks()||[],a=l.afterBuildTicks(a)||a,l.beforeTickToLabelConversion(),s=l.convertTicksToLabels(a)||l.ticks,l.afterTickToLabelConversion(),l.ticks=s,i=0,r=s.length;i<r;++i)o=s[i],(c=a[i])?c.label=o:a.push(c={label:o,major:!1});return l._ticks=a,l.beforeCalculateTickRotation(),l.calculateTickRotation(),l.afterCalculateTickRotation(),l.beforeFit(),l.fit(),l.afterFit(),l.afterUpdate(),l.minSize},afterUpdate:function(){ue.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){ue.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(){ue.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){ue.callback(this.options.beforeDataLimits,[this])},determineDataLimits:ue.noop,afterDataLimits:function(){ue.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){ue.callback(this.options.beforeBuildTicks,[this])},buildTicks:ue.noop,afterBuildTicks:function(e){var t=this;return ue.isArray(e)&&e.length?ue.callback(t.options.afterBuildTicks,[t,e]):(t.ticks=ue.callback(t.options.afterBuildTicks,[t,t.ticks])||t.ticks,e)},beforeTickToLabelConversion:function(){ue.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(){ue.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){ue.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e=this,t=e.ctx,n=e.options.ticks,i=rn(e._ticks),r=ue.options._parseFont(n);t.font=r.string;var s=n.minRotation||0;if(i.length&&e.options.display&&e.isHorizontal())for(var o,a=ue.longestText(t,r.string,i,e.longestTextCache),c=a,l=e.getPixelForTick(1)-e.getPixelForTick(0)-6;c>l&&s<n.maxRotation;){var u=ue.toRadians(s);if(o=Math.cos(u),Math.sin(u)*a>e.maxHeight){s--;break}s++,c=o*a}e.labelRotation=s},afterCalculateTickRotation:function(){ue.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){ue.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=rn(e._ticks),i=e.options,r=i.ticks,s=i.scaleLabel,o=i.gridLines,a=e._isVisible(),c=i.position,l=e.isHorizontal(),u=ue.options._parseFont,d=u(r),h=i.gridLines.tickMarkLength;if(t.width=l?e.isFullWidth()?e.maxWidth-e.margins.left-e.margins.right:e.maxWidth:a&&o.drawTicks?h:0,t.height=l?a&&o.drawTicks?h:0:e.maxHeight,s.display&&a){var f=u(s),p=ue.options.toPadding(s.padding),m=f.lineHeight+p.height;l?t.height+=m:t.width+=m}if(r.display&&a){var b=ue.longestText(e.ctx,d.string,n,e.longestTextCache),g=ue.numberOfLabelLines(n),_=.5*d.size,y=e.options.ticks.padding;if(e._maxLabelLines=g,e.longestLabelWidth=b,l){var v=ue.toRadians(e.labelRotation),w=Math.cos(v),S=Math.sin(v);t.height=Math.min(e.maxHeight,t.height+(S*b+d.lineHeight*g+_)+y),e.ctx.font=d.string;var M,k,x=sn(e.ctx,n[0],d.string),D=sn(e.ctx,n[n.length-1],d.string),T=e.getPixelForTick(0)-e.left,C=e.right-e.getPixelForTick(n.length-1);0!==e.labelRotation?(M="bottom"===c?w*x:w*_,k="bottom"===c?w*_:w*D):(M=x/2,k=D/2),e.paddingLeft=Math.max(M-T,0)+3,e.paddingRight=Math.max(k-C,0)+3}else r.mirror?b=0:b+=y+_,t.width=Math.min(e.maxWidth,t.width+b),e.paddingTop=d.size/2,e.paddingBottom=d.size/2}e.handleMargins(),e.width=t.width,e.height=t.height},handleMargins:function(){var e=this;e.margins&&(e.paddingLeft=Math.max(e.paddingLeft-e.margins.left,0),e.paddingTop=Math.max(e.paddingTop-e.margins.top,0),e.paddingRight=Math.max(e.paddingRight-e.margins.right,0),e.paddingBottom=Math.max(e.paddingBottom-e.margins.bottom,0))},afterFit:function(){ue.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(ue.isNullOrUndef(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},getLabelForIndex:ue.noop,getPixelForValue:ue.noop,getValueForPixel:ue.noop,getPixelForTick:function(e){var t=this,n=t.options.offset;if(t.isHorizontal()){var i=(t.width-(t.paddingLeft+t.paddingRight))/Math.max(t._ticks.length-(n?0:1),1),r=i*e+t.paddingLeft;return n&&(r+=i/2),t.left+r+(t.isFullWidth()?t.margins.left:0)}return t.top+e*((t.height-(t.paddingTop+t.paddingBottom))/(t._ticks.length-1))},getPixelForDecimal:function(e){var t=this;return t.isHorizontal()?t.left+((t.width-(t.paddingLeft+t.paddingRight))*e+t.paddingLeft)+(t.isFullWidth()?t.margins.left:0):t.top+e*t.height},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=this,r=i.isHorizontal(),s=e.length,o=!1,a=i.options.ticks.minor.maxTicksLimit,c=i._tickSize()*(s-1),l=r?i.width-(i.paddingLeft+i.paddingRight):i.height-(i.paddingTop+i.PaddingBottom),u=[];for(c>l&&(o=1+Math.floor(c/l)),s>a&&(o=Math.max(o,1+Math.floor(s/a))),t=0;t<s;t++)n=e[t],o>1&&t%o>0&&delete n.label,u.push(n);return u},_tickSize:function(){var e=this,t=e.isHorizontal(),n=e.options.ticks.minor,i=ue.toRadians(e.labelRotation),r=Math.abs(Math.cos(i)),s=Math.abs(Math.sin(i)),o=n.autoSkipPadding||0,a=e.longestLabelWidth+o||0,c=ue.options._parseFont(n),l=e._maxLabelLines*c.lineHeight+o||0;return t?l*r>a*s?a/r:l/s:l*s<a*r?l/r:a/s},_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},draw:function(e){var t=this,n=t.options;if(t._isVisible()){var i,r,s,o=t.chart,a=t.ctx,c=ae.global.defaultFontColor,l=n.ticks.minor,u=n.ticks.major||l,d=n.gridLines,h=n.scaleLabel,f=n.position,p=0!==t.labelRotation,m=l.mirror,b=t.isHorizontal(),g=ue.options._parseFont,_=l.display&&l.autoSkip?t._autoSkip(t.getTicks()):t.getTicks(),y=tn(l.fontColor,c),v=g(l),w=v.lineHeight,S=tn(u.fontColor,c),M=g(u),k=l.padding,x=l.labelOffset,D=d.drawTicks?d.tickMarkLength:0,T=tn(h.fontColor,c),C=g(h),O=ue.options.toPadding(h.padding),L=ue.toRadians(t.labelRotation),R=[],E=d.drawBorder?nn(d.lineWidth,0,0):0,A=ue._alignPixel;if("top"===f?(i=A(o,t.bottom,E),r=t.bottom-D,s=i-E/2):"bottom"===f?(i=A(o,t.top,E),r=i+E/2,s=t.top+D):"left"===f?(i=A(o,t.right,E),r=t.right-D,s=i-E/2):(i=A(o,t.left,E),r=i+E/2,s=t.left+D),ue.each(_,(function(i,a){if(!ue.isNullOrUndef(i.label)){var c,l,u,h,g,_,y,v,S,M,T,C,O,I,P,N,j=i.label;a===t.zeroLineIndex&&n.offset===d.offsetGridLines?(c=d.zeroLineWidth,l=d.zeroLineColor,u=d.zeroLineBorderDash||[],h=d.zeroLineBorderDashOffset||0):(c=nn(d.lineWidth,a),l=nn(d.color,a),u=d.borderDash||[],h=d.borderDashOffset||0);var F=ue.isArray(j)?j.length:1,Y=function(e,t,n){var i=e.getPixelForTick(t);return n&&(1===e.getTicks().length?i-=e.isHorizontal()?Math.max(i-e.left,e.right-i):Math.max(i-e.top,e.bottom-i):i-=0===t?(e.getPixelForTick(1)-i)/2:(i-e.getPixelForTick(t-1))/2),i}(t,a,d.offsetGridLines);if(b){var z=D+k;Y<t.left-1e-7&&(l="rgba(0,0,0,0)"),g=y=S=T=A(o,Y,c),_=r,v=s,O=t.getPixelForTick(a)+x,"top"===f?(M=A(o,e.top,E)+E/2,C=e.bottom,P=((p?1:.5)-F)*w,N=p?"left":"center",I=t.bottom-z):(M=e.top,C=A(o,e.bottom,E)-E/2,P=(p?0:.5)*w,N=p?"right":"center",I=t.top+z)}else{var $=(m?0:D)+k;Y<t.top-1e-7&&(l="rgba(0,0,0,0)"),g=r,y=s,_=v=M=C=A(o,Y,c),I=t.getPixelForTick(a)+x,P=(1-F)*w/2,"left"===f?(S=A(o,e.left,E)+E/2,T=e.right,N=m?"left":"right",O=t.right-$):(S=e.left,T=A(o,e.right,E)-E/2,N=m?"right":"left",O=t.left+$)}R.push({tx1:g,ty1:_,tx2:y,ty2:v,x1:S,y1:M,x2:T,y2:C,labelX:O,labelY:I,glWidth:c,glColor:l,glBorderDash:u,glBorderDashOffset:h,rotation:-1*L,label:j,major:i.major,textOffset:P,textAlign:N})}})),ue.each(R,(function(e){var t=e.glWidth,n=e.glColor;if(d.display&&t&&n&&(a.save(),a.lineWidth=t,a.strokeStyle=n,a.setLineDash&&(a.setLineDash(e.glBorderDash),a.lineDashOffset=e.glBorderDashOffset),a.beginPath(),d.drawTicks&&(a.moveTo(e.tx1,e.ty1),a.lineTo(e.tx2,e.ty2)),d.drawOnChartArea&&(a.moveTo(e.x1,e.y1),a.lineTo(e.x2,e.y2)),a.stroke(),a.restore()),l.display){a.save(),a.translate(e.labelX,e.labelY),a.rotate(e.rotation),a.font=e.major?M.string:v.string,a.fillStyle=e.major?S:y,a.textBaseline="middle",a.textAlign=e.textAlign;var i=e.label,r=e.textOffset;if(ue.isArray(i))for(var s=0;s<i.length;++s)a.fillText(""+i[s],0,r),r+=w;else a.fillText(i,0,r);a.restore()}})),h.display){var I,P,N=0,j=C.lineHeight/2;if(b)I=t.left+(t.right-t.left)/2,P="bottom"===f?t.bottom-j-O.bottom:t.top+j+O.top;else{var F="left"===f;I=F?t.left+j+O.top:t.right-j-O.top,P=t.top+(t.bottom-t.top)/2,N=F?-.5*Math.PI:.5*Math.PI}a.save(),a.translate(I,P),a.rotate(N),a.textAlign="center",a.textBaseline="middle",a.fillStyle=T,a.font=C.string,a.fillText(h.labelString,0,0),a.restore()}if(E){var Y,z,$,H,W=E,V=nn(d.lineWidth,_.length-1,0);b?(Y=A(o,t.left,W)-W/2,z=A(o,t.right,V)+V/2,$=H=i):($=A(o,t.top,W)-W/2,H=A(o,t.bottom,V)+V/2,Y=z=i),a.lineWidth=E,a.strokeStyle=nn(d.color,0),a.beginPath(),a.moveTo(Y,$),a.lineTo(z,H),a.stroke()}}}}),an=on.extend({getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels},determineDataLimits:function(){var e,t=this,n=t.getLabels();t.minIndex=0,t.maxIndex=n.length-1,void 0!==t.options.ticks.min&&(e=n.indexOf(t.options.ticks.min),t.minIndex=-1!==e?e:t.minIndex),void 0!==t.options.ticks.max&&(e=n.indexOf(t.options.ticks.max),t.maxIndex=-1!==e?e:t.maxIndex),t.min=n[t.minIndex],t.max=n[t.maxIndex]},buildTicks:function(){var e=this,t=e.getLabels();e.ticks=0===e.minIndex&&e.maxIndex===t.length-1?t:t.slice(e.minIndex,e.maxIndex+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.ticks[e-n.minIndex]},getPixelForValue:function(e,t){var n,i=this,r=i.options.offset,s=Math.max(i.maxIndex+1-i.minIndex-(r?0:1),1);if(null!=e&&(n=i.isHorizontal()?e.x:e.y),void 0!==n||void 0!==e&&isNaN(t)){var o=i.getLabels().indexOf(e=n||e);t=-1!==o?o:t}if(i.isHorizontal()){var a=i.width/s,c=a*(t-i.minIndex);return r&&(c+=a/2),i.left+c}var l=i.height/s,u=l*(t-i.minIndex);return r&&(u+=l/2),i.top+u},getPixelForTick:function(e){return this.getPixelForValue(this.ticks[e],e+this.minIndex,null)},getValueForPixel:function(e){var t=this,n=t.options.offset,i=Math.max(t._ticks.length-(n?0:1),1),r=t.isHorizontal(),s=(r?t.width:t.height)/i;return e-=r?t.left:t.top,n&&(e-=s/2),(e<=0?0:Math.round(e/s))+t.minIndex},getBasePixel:function(){return this.bottom}});an._defaults={position:"bottom"};var cn=ue.isNullOrUndef,ln=on.extend({getRightValue:function(e){return"string"==typeof e?+e:on.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=ue.sign(e.min),i=ue.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:ue.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:ue.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=ue.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=ue.niceNum(s*m/l/c)*c),a||cn(h)?n=Math.pow(10,ue._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)&&ue.almostWhole(u/m,m/1e3)&&(i=u),!cn(d)&&ue.almostWhole(d/m,m/1e3)&&(r=d)),s=ue.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=ue.max(r),e.min=ue.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),on.prototype.convertTicksToLabels.call(e)}}),un={position:"left",ticks:{callback:en.formatters.linear}},dn=ln.extend({determineDataLimits:function(){var e=this,t=e.options,n=e.chart,i=n.data.datasets,r=e.isHorizontal();function s(t){return r?t.xAxisID===e.id:t.yAxisID===e.id}e.min=null,e.max=null;var o=t.stacked;if(void 0===o&&ue.each(i,(function(e,t){if(!o){var i=n.getDatasetMeta(t);n.isDatasetVisible(t)&&s(i)&&void 0!==i.stack&&(o=!0)}})),t.stacked||o){var a={};ue.each(i,(function(i,r){var o=n.getDatasetMeta(r),c=[o.type,void 0===t.stacked&&void 0===o.stack?r:"",o.stack].join(".");void 0===a[c]&&(a[c]={positiveValues:[],negativeValues:[]});var l=a[c].positiveValues,u=a[c].negativeValues;n.isDatasetVisible(r)&&s(o)&&ue.each(i.data,(function(n,i){var r=+e.getRightValue(n);isNaN(r)||o.data[i].hidden||(l[i]=l[i]||0,u[i]=u[i]||0,t.relativePoints?l[i]=100:r<0?u[i]+=r:l[i]+=r)}))})),ue.each(a,(function(t){var n=t.positiveValues.concat(t.negativeValues),i=ue.min(n),r=ue.max(n);e.min=null===e.min?i:Math.min(e.min,i),e.max=null===e.max?r:Math.max(e.max,r)}))}else ue.each(i,(function(t,i){var r=n.getDatasetMeta(i);n.isDatasetVisible(i)&&s(r)&&ue.each(t.data,(function(t,n){var i=+e.getRightValue(t);isNaN(i)||r.data[n].hidden||((null===e.min||i<e.min)&&(e.min=i),(null===e.max||i>e.max)&&(e.max=i))}))}));e.min=isFinite(e.min)&&!isNaN(e.min)?e.min:0,e.max=isFinite(e.max)&&!isNaN(e.max)?e.max:1,this.handleTickRangeOptions()},_computeTickLimit:function(){var e,t=this;return t.isHorizontal()?Math.ceil(t.width/40):(e=ue.options._parseFont(t.options.ticks),Math.ceil(t.height/e.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this,n=t.start,i=+t.getRightValue(e),r=t.end-n;return t.isHorizontal()?t.left+t.width/r*(i-n):t.bottom-t.height/r*(i-n)},getValueForPixel:function(e){var t=this,n=t.isHorizontal();return t.start+(n?e-t.left:t.bottom-e)/(n?t.width:t.height)*(t.end-t.start)},getPixelForTick:function(e){return this.getPixelForValue(this.ticksAsNumbers[e])}});dn._defaults=un;var hn=ue.valueOrDefault,fn={position:"left",ticks:{callback:en.formatters.logarithmic}};function pn(e,t){return ue.isFinite(e)&&e>=0?e:t}var mn=on.extend({determineDataLimits:function(){var e=this,t=e.options,n=e.chart,i=n.data.datasets,r=e.isHorizontal();function s(t){return r?t.xAxisID===e.id:t.yAxisID===e.id}e.min=null,e.max=null,e.minNotZero=null;var o=t.stacked;if(void 0===o&&ue.each(i,(function(e,t){if(!o){var i=n.getDatasetMeta(t);n.isDatasetVisible(t)&&s(i)&&void 0!==i.stack&&(o=!0)}})),t.stacked||o){var a={};ue.each(i,(function(i,r){var o=n.getDatasetMeta(r),c=[o.type,void 0===t.stacked&&void 0===o.stack?r:"",o.stack].join(".");n.isDatasetVisible(r)&&s(o)&&(void 0===a[c]&&(a[c]=[]),ue.each(i.data,(function(t,n){var i=a[c],r=+e.getRightValue(t);isNaN(r)||o.data[n].hidden||r<0||(i[n]=i[n]||0,i[n]+=r)})))})),ue.each(a,(function(t){if(t.length>0){var n=ue.min(t),i=ue.max(t);e.min=null===e.min?n:Math.min(e.min,n),e.max=null===e.max?i:Math.max(e.max,i)}}))}else ue.each(i,(function(t,i){var r=n.getDatasetMeta(i);n.isDatasetVisible(i)&&s(r)&&ue.each(t.data,(function(t,n){var i=+e.getRightValue(t);isNaN(i)||r.data[n].hidden||i<0||((null===e.min||i<e.min)&&(e.min=i),(null===e.max||i>e.max)&&(e.max=i),0!==i&&(null===e.minNotZero||i<e.minNotZero)&&(e.minNotZero=i))}))}));this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;e.min=pn(t.min,e.min),e.max=pn(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(ue.log10(e.min))-1),e.max=Math.pow(10,Math.floor(ue.log10(e.max))+1)):(e.min=1,e.max=10)),null===e.min&&(e.min=Math.pow(10,Math.floor(ue.log10(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(ue.log10(e.min))+1):10),null===e.minNotZero&&(e.minNotZero=e.min>0?e.min:e.max<1?Math.pow(10,Math.floor(ue.log10(e.max))):1)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),i={min:pn(t.min),max:pn(t.max)},r=e.ticks=function(e,t){var n,i,r=[],s=hn(e.min,Math.pow(10,Math.floor(ue.log10(t.min)))),o=Math.floor(ue.log10(t.max)),a=Math.ceil(t.max/Math.pow(10,o));0===s?(n=Math.floor(ue.log10(t.minNotZero)),i=Math.floor(t.minNotZero/Math.pow(10,n)),r.push(s),s=i*Math.pow(10,n)):(n=Math.floor(ue.log10(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=hn(e.max,s);return r.push(l),r}(i,e);e.max=ue.max(r),e.min=ue.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(),on.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){return this.getPixelForValue(this.tickValues[e])},_getFirstTickValue:function(e){var t=Math.floor(ue.log10(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},getPixelForValue:function(e){var t,n,i,r,s,o=this,a=o.options.ticks,c=a.reverse,l=ue.log10,u=o._getFirstTickValue(o.minNotZero),d=0;return e=+o.getRightValue(e),c?(i=o.end,r=o.start,s=-1):(i=o.start,r=o.end,s=1),o.isHorizontal()?(t=o.width,n=c?o.right:o.left):(t=o.height,s*=-1,n=c?o.top:o.bottom),e!==i&&(0===i&&(t-=d=hn(a.fontSize,ae.global.defaultFontSize),i=u),0!==e&&(d+=t/(l(r)-l(i))*(l(e)-l(i))),n+=s*d),n},getValueForPixel:function(e){var t,n,i,r,s=this,o=s.options.ticks,a=o.reverse,c=ue.log10,l=s._getFirstTickValue(s.minNotZero);if(a?(n=s.end,i=s.start):(n=s.start,i=s.end),s.isHorizontal()?(t=s.width,r=a?s.right-e:e-s.left):(t=s.height,r=a?e-s.top:s.bottom-e),r!==n){if(0===n){var u=hn(o.fontSize,ae.global.defaultFontSize);r-=u,t-=u,n=l}r*=c(i)-c(n),r/=t,r=Math.pow(10,c(n)+r)}return r}});mn._defaults=fn;var bn=ue.valueOrDefault,gn=ue.valueAtIndexOrDefault,_n=ue.options.resolve,yn={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:en.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function vn(e){var t=e.options;return t.angleLines.display||t.pointLabels.display?e.chart.data.labels.length:0}function wn(e){var t=e.ticks;return t.display&&e.display?bn(t.fontSize,ae.global.defaultFontSize)+2*t.backdropPaddingY:0}function Sn(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 Mn(e){return 0===e||180===e?"center":e<180?"left":"right"}function kn(e,t,n,i){var r,s,o=n.y+i/2;if(ue.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 xn(e,t,n){90===e||270===e?n.y-=t.h/2:(e>270||e<90)&&(n.y-=t.h)}function Dn(e){return ue.isNumber(e)?e:0}var Tn=ln.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=wn(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;ue.each(t.data.datasets,(function(r,s){if(t.isDatasetVisible(s)){var o=t.getDatasetMeta(s);ue.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/wn(this.options))},convertTicksToLabels:function(){var e=this;ln.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},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=ue.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=vn(e);for(t=0;t<u;t++){i=e.getPointPosition(t,e.drawingArea+5),a=e.ctx,c=r.lineHeight,n=ue.isArray(l=e.pointLabels[t]||"")?{w:ue.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=ue.toDegrees(d)%360,f=Sn(h,i.x,n.w,0,180),p=Sn(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=Dn(r),s=Dn(s),o=Dn(o),a=Dn(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){return e*(2*Math.PI/vn(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(null===e)return 0;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(){var e=this,t=e.min,n=e.max;return e.getPointPositionForValue(0,e.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0)},draw:function(){var e=this,t=e.options,n=t.gridLines,i=t.ticks;if(t.display){var r=e.ctx,s=this.getIndexAngle(0),o=ue.options._parseFont(i);(t.angleLines.display||t.pointLabels.display)&&function(e){var t=e.ctx,n=e.options,i=n.angleLines,r=n.gridLines,s=n.pointLabels,o=bn(i.lineWidth,r.lineWidth),a=bn(i.color,r.color),c=wn(n);t.save(),t.lineWidth=o,t.strokeStyle=a,t.setLineDash&&(t.setLineDash(_n([i.borderDash,r.borderDash,[]])),t.lineDashOffset=_n([i.borderDashOffset,r.borderDashOffset,0]));var l=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),u=ue.options._parseFont(s);t.font=u.string,t.textBaseline="middle";for(var d=vn(e)-1;d>=0;d--){if(i.display&&o&&a){var h=e.getPointPosition(d,l);t.beginPath(),t.moveTo(e.xCenter,e.yCenter),t.lineTo(h.x,h.y),t.stroke()}if(s.display){var f=e.getPointPosition(d,l+(0===d?c/2:0)+5),p=gn(s.fontColor,d,ae.global.defaultFontColor);t.fillStyle=p;var m=e.getIndexAngle(d),b=ue.toDegrees(m);t.textAlign=Mn(b),xn(b,e._pointLabelSizes[d],f),kn(t,e.pointLabels[d]||"",f,u.lineHeight)}}t.restore()}(e),ue.each(e.ticks,(function(t,a){if(a>0||i.reverse){var c=e.getDistanceFromCenterForValue(e.ticksAsNumbers[a]);if(n.display&&0!==a&&function(e,t,n,i){var r,s=e.ctx,o=t.circular,a=vn(e),c=gn(t.color,i-1),l=gn(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()}}(e,n,c,a),i.display){var l=bn(i.fontColor,ae.global.defaultFontColor);if(r.font=o.string,r.save(),r.translate(e.xCenter,e.yCenter),r.rotate(s),i.showLabelBackdrop){var u=r.measureText(t).width;r.fillStyle=i.backdropColor,r.fillRect(-u/2-i.backdropPaddingX,-c-o.size/2-i.backdropPaddingY,u+2*i.backdropPaddingX,o.size+2*i.backdropPaddingY)}r.textAlign="center",r.textBaseline="middle",r.fillStyle=l,r.fillText(t,0,-c),r.restore()}}}))}}});Tn._defaults=yn;var Cn=ue.valueOrDefault,On=Number.MIN_SAFE_INTEGER||-9007199254740991,Ln=Number.MAX_SAFE_INTEGER||9007199254740991,Rn={millisecond:{common:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{common:!0,size:1e3,steps:[1,2,5,10,15,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,15,30]},hour:{common:!0,size:36e5,steps:[1,2,3,6,12]},day:{common:!0,size:864e5,steps:[1,2,5]},week:{common:!1,size:6048e5,steps:[1,2,3,4]},month:{common:!0,size:2628e6,steps:[1,2,3]},quarter:{common:!1,size:7884e6,steps:[1,2,3,4]},year:{common:!0,size:3154e7}},En=Object.keys(Rn);function An(e,t){return e-t}function In(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}function Pn(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 Nn(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)),ue.isFinite(o)||(o="string"==typeof s?n.parse(o,s):n.parse(o)),null!==o?+o:(r||"function"!=typeof s||(o=s(t),ue.isFinite(o)||(o=n.parse(o))),o)}function jn(e,t){if(ue.isNullOrUndef(t))return null;var n=e.options.time,i=Nn(e,e.getRightValue(t));return null===i||n.round&&(i=+e._adapter.startOf(i,n.round)),i}function Fn(e){for(var t=En.indexOf(e)+1,n=En.length;t<n;++t)if(Rn[En[t]].common)return En[t]}var Yn=on.extend({initialize:function(){this.mergeTicksOptions(),on.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 n.format&&console.warn("options.time.format is deprecated and replaced by options.time.parser."),ue.mergeIf(n.displayFormats,i.formats()),on.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),on.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,i,r,s,o=this,a=o.chart,c=o._adapter,l=o.options.time,u=l.unit||"day",d=Ln,h=On,f=[],p=[],m=[],b=a.data.labels||[];for(e=0,n=b.length;e<n;++e)m.push(jn(o,b[e]));for(e=0,n=(a.data.datasets||[]).length;e<n;++e)if(a.isDatasetVisible(e))if(ue.isObject((r=a.data.datasets[e].data)[0]))for(p[e]=[],t=0,i=r.length;t<i;++t)s=jn(o,r[t]),f.push(s),p[e][t]=s;else{for(t=0,i=m.length;t<i;++t)f.push(m[t]);p[e]=m.slice(0)}else p[e]=[];m.length&&(m=In(m).sort(An),d=Math.min(d,m[0]),h=Math.max(h,m[m.length-1])),f.length&&(f=In(f).sort(An),d=Math.min(d,f[0]),h=Math.max(h,f[f.length-1])),d=jn(o,l.min)||d,h=jn(o,l.max)||h,d=d===Ln?+c.startOf(Date.now(),u):d,h=h===On?+c.endOf(Date.now(),u)+1:h,o.min=Math.min(d,h),o.max=Math.max(d+1,h),o._horizontal=o.isHorizontal(),o._table=[],o._timestamps={data:f,datasets:p,labels:m}},buildTicks:function(){var e,t,n,i=this,r=i.min,s=i.max,o=i.options,a=o.time,c=[],l=[];switch(o.ticks.source){case"data":c=i._timestamps.data;break;case"labels":c=i._timestamps.labels;break;case"auto":default:c=function(e,t,n,i){var r,s=e._adapter,o=e.options,a=o.time,c=a.unit||function(e,t,n,i){var r,s,o=En.length;for(r=En.indexOf(e);r<o-1;++r)if((s=Rn[En[r]]).common&&Math.ceil((n-t)/((s.steps?s.steps[s.steps.length-1]:Ln)*s.size))<=i)return En[r];return En[o-1]}(a.minUnit,t,n,i),l=Fn(c),u=Cn(a.stepSize,a.unitStepSize),d="week"===c&&a.isoWeekday,h=o.ticks.major.enabled,f=Rn[c],p=t,m=n,b=[];for(u||(u=function(e,t,n,i){var r,s,o,a=t-e,c=Rn[n],l=c.size,u=c.steps;if(!u)return Math.ceil(a/(i*l));for(r=0,s=u.length;r<s&&(o=u[r],!(Math.ceil(a/(l*o))<=i));++r);return o}(t,n,c,i)),d&&(p=+s.startOf(p,"isoWeek",d),m=+s.startOf(m,"isoWeek",d)),p=+s.startOf(p,d?"day":c),(m=+s.startOf(m,d?"day":c))<n&&(m=+s.add(m,1,c)),r=p,h&&l&&!d&&!a.round&&(r=+s.startOf(r,l),r=+s.add(r,~~((p-r)/(f.size*u))*u,c));r<m;r=+s.add(r,u,c))b.push(+r);return b.push(+r),b}(i,r,s,i.getLabelCapacity(r))}for("ticks"===o.bounds&&c.length&&(r=c[0],s=c[c.length-1]),r=jn(i,a.min)||r,s=jn(i,a.max)||s,e=0,t=c.length;e<t;++e)(n=c[e])>=r&&n<=s&&l.push(n);return i.min=r,i.max=s,i._unit=a.unit||function(e,t,n,i,r){var s,o;for(s=En.length-1;s>=En.indexOf(n);s--)if(Rn[o=En[s]].common&&e._adapter.diff(r,i,o)>=t.length)return o;return En[n?En.indexOf(n):0]}(i,l,a.minUnit,i.min,i.max),i._majorUnit=Fn(i._unit),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,o.distribution),i._offsets=function(e,t,n,i,r){var s,o,a=0,c=0;return r.offset&&t.length&&(r.time.min||(s=Pn(e,"time",t[0],"pos"),a=1===t.length?1-s:(Pn(e,"time",t[1],"pos")-s)/2),r.time.max||(o=Pn(e,"time",t[t.length-1],"pos"),c=1===t.length?o:(o-Pn(e,"time",t[t.length-2],"pos"))/2)),{start:a,end:c}}(i._table,l,0,0,o),o.ticks.reverse&&l.reverse(),function(e,t,n){var i,r,s,o,a=[];for(i=0,r=t.length;i<r;++i)s=t[i],o=!!n&&s===+e._adapter.startOf(s,n),a.push({value:s,major:o});return a}(i,l,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 ue.isObject(a)&&(o=n.getRightValue(a)),s.tooltipFormat?i.format(Nn(n,o),s.tooltipFormat):"string"==typeof o?o:i.format(Nn(n,o),s.displayFormats.datetime)},tickFormatFunction:function(e,t,n,i){var r=this,s=r._adapter,o=r.options,a=o.time.displayFormats,c=a[r._unit],l=r._majorUnit,u=a[l],d=+s.startOf(e,l),h=o.ticks.major,f=h.enabled&&l&&u&&e===d,p=s.format(e,i||(f?u:c)),m=f?h:o.ticks.minor,b=Cn(m.callback,m.userCallback);return b?b(p,t,n):p},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.options.ticks.reverse,i=t._horizontal?t.width:t.height,r=t._horizontal?n?t.right:t.left:n?t.bottom:t.top,s=Pn(t._table,"time",e,"pos"),o=i*(t._offsets.start+s)/(t._offsets.start+1+t._offsets.end);return n?r-o:r+o},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=jn(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._horizontal?t.width:t.height,i=Pn(t._table,"pos",(n?(e-(t._horizontal?t.left:t.top))/n:0)*(t._offsets.start+1+t._offsets.start)-t._offsets.end,"time");return t._adapter._create(i)},getLabelWidth:function(e){var t=this.options.ticks,n=this.ctx.measureText(e).width,i=ue.toRadians(t.maxRotation),r=Math.cos(i),s=Math.sin(i);return n*r+Cn(t.fontSize,ae.global.defaultFontSize)*s},getLabelCapacity:function(e){var t=this,n=t.tickFormatFunction(e,0,[],t.options.time.displayFormats.millisecond),i=t.getLabelWidth(n),r=t.isHorizontal()?t.width:t.height,s=Math.floor(r/i);return s>0?s:1}});Yn._defaults={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};var zn={category:an,linear:dn,logarithmic:mn,radialLinear:Tn,time:Yn},$n={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 $n},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.duration(e(t).diff(e(n))).as(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)}}:{}),ae._set("global",{plugins:{filler:{propagate:!0}}});var Hn={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 function(e){return{x:null===n?e.x:n,y:null===i?e.y:i}}}};function Wn(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 Vn(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.getBasePosition?s=i.getBasePosition():i.getBasePixel&&(s=i.getBasePixel()),null!=s){if(void 0!==s.x&&void 0!==s.y)return s;if(ue.isFinite(s))return{x:(t=i.isHorizontal())?s:null,y:t?null:s}}return null}function Bn(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 Un(e){var t=e.fill,n="dataset";return!1===t?null:(isFinite(t)||(n="boundary"),Hn[n](e))}function Gn(e){return e&&!e.skip}function qn(e,t,n,i,r){var s;if(i&&r){for(e.moveTo(t[0].x,t[0].y),s=1;s<i;++s)ue.canvas.lineTo(e,t[s-1],t[s]);for(e.lineTo(n[r-1].x,n[r-1].y),s=r-1;s>0;--s)ue.canvas.lineTo(e,n[s],n[s-1],!0)}}var Jn={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 je.Line&&(s={visible:e.isDatasetVisible(i),fill:Wn(r,i,o),chart:e,el:r}),n.$filler=s,c.push(s);for(i=0;i<o;++i)(s=c[i])&&(s.fill=Bn(c,i,a),s.boundary=Vn(s),s.mapper=Un(s))},beforeDatasetDraw:function(e,t){var n=t.meta.$filler;if(n){var i=e.ctx,r=n.el,s=r._view,o=r._children||[],a=n.mapper,c=s.backgroundColor||ae.global.defaultColor;a&&c&&o.length&&(ue.canvas.clipArea(i,e.chartArea),function(e,t,n,i,r,s){var o,a,c,l,u,d,h,f=t.length,p=i.spanGaps,m=[],b=[],g=0,_=0;for(e.beginPath(),o=0,a=f+!!s;o<a;++o)u=n(l=t[c=o%f]._view,c,i),d=Gn(l),h=Gn(u),d&&h?(g=m.push(l),_=b.push(u)):g&&_&&(p?(d&&m.push(l),h&&b.push(u)):(qn(e,m,b,g,_),g=_=0,m=[],b=[]));qn(e,m,b,g,_),e.closePath(),e.fillStyle=r,e.fill()}(i,o,a,s,c,r._loop),ue.canvas.unclipArea(i))}}},Qn=ue.noop,Kn=ue.valueOrDefault;function Zn(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}ae._set("global",{legend:{display:!0,position:"top",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;return ue.isArray(t.datasets)?t.datasets.map((function(t,n){return{text:t.label,fillStyle:ue.isArray(t.backgroundColor)?t.backgroundColor[0]:t.backgroundColor,hidden:!e.isDatasetVisible(n),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,datasetIndex:n}}),this):[]}}},legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');for(var n=0;n<e.data.datasets.length;n++)t.push('<li><span style="background-color:'+e.data.datasets[n].backgroundColor+'"></span>'),e.data.datasets[n].label&&t.push(e.data.datasets[n].label),t.push("</li>");return t.push("</ul>"),t.join("")}});var Xn=pe.extend({initialize:function(e){ue.extend(this,e),this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1},beforeUpdate:Qn,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:Qn,beforeSetDimensions:Qn,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:Qn,beforeBuildLabels:Qn,buildLabels:function(){var e=this,t=e.options.labels||{},n=ue.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:Qn,beforeFit:Qn,fit:function(){var e=this,t=e.options,n=t.labels,i=t.display,r=e.ctx,s=ue.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="top",ue.each(e.legendItems,(function(e,t){var i=Zn(n,o)+o/2+r.measureText(e.text).width;(0===t||u[u.length-1]+i+n.padding>c.width)&&(d+=o+n.padding,u[u.length-(t>0?0:1)]=n.padding),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=n.padding,m=0,b=0,g=o+h;ue.each(e.legendItems,(function(e,t){var i=Zn(n,o)+o/2+r.measureText(e.text).width;t>0&&b+g>c.height-h&&(p+=m+n.padding,f.push(m),m=0,b=0),m=Math.max(m,i),b+=g,a[t]={left:0,top:0,width:i,height:o}})),p+=m,f.push(m),c.width+=p}e.width=c.width,e.height=c.height},afterFit:Qn,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,i=ae.global,r=i.defaultColor,s=i.elements.line,o=e.width,a=e.lineWidths;if(t.display){var c,l=e.ctx,u=Kn(n.fontColor,i.defaultFontColor),d=ue.options._parseFont(n),h=d.size;l.textAlign="left",l.textBaseline="middle",l.lineWidth=.5,l.strokeStyle=u,l.fillStyle=u,l.font=d.string;var f=Zn(n,h),p=e.legendHitBoxes,m=e.isHorizontal();c=m?{x:e.left+(o-a[0])/2+n.padding,y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+n.padding,line:0};var b=h+n.padding;ue.each(e.legendItems,(function(i,u){var d=l.measureText(i.text).width,g=f+h/2+d,_=c.x,y=c.y;m?u>0&&_+g+n.padding>e.left+e.minSize.width&&(y=c.y+=b,c.line++,_=c.x=e.left+(o-a[c.line])/2+n.padding):u>0&&y+b>e.top+e.minSize.height&&(_=c.x=_+e.columnWidths[c.line]+n.padding,y=c.y=e.top+n.padding,c.line++),function(e,n,i){if(!(isNaN(f)||f<=0)){l.save();var o=Kn(i.lineWidth,s.borderWidth);if(l.fillStyle=Kn(i.fillStyle,r),l.lineCap=Kn(i.lineCap,s.borderCapStyle),l.lineDashOffset=Kn(i.lineDashOffset,s.borderDashOffset),l.lineJoin=Kn(i.lineJoin,s.borderJoinStyle),l.lineWidth=o,l.strokeStyle=Kn(i.strokeStyle,r),l.setLineDash&&l.setLineDash(Kn(i.lineDash,s.borderDash)),t.labels&&t.labels.usePointStyle){var a=f*Math.SQRT2/2;ue.canvas.drawPoint(l,i.pointStyle,a,e+f/2,n+h/2)}else 0!==o&&l.strokeRect(e,n,f,h),l.fillRect(e,n,f,h);l.restore()}}(_,y,i),p[u].left=_,p[u].top=y,function(e,t,n,i){var r=h/2,s=f+r+e,o=t+r;l.fillText(n.text,s,o),n.hidden&&(l.beginPath(),l.lineWidth=2,l.moveTo(s,o),l.lineTo(s+i,o),l.stroke())}(_,y,i,d),m?c.x+=g+n.padding:c.y+=b}))}},_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 ei(e,t){var n=new Xn({ctx:e.ctx,options:t,chart:e});vt.configure(e,n,t),vt.addBox(e,n),e.legend=n}var ti={id:"legend",_element:Xn,beforeInit:function(e){var t=e.options.legend;t&&ei(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(ue.mergeIf(t,ae.global.legend),n?(vt.configure(e,n,t),n.options=t):ei(e,t)):n&&(vt.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},ni=ue.noop;ae._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var ii=pe.extend({initialize:function(e){ue.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:ni,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:ni,beforeSetDimensions:ni,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:ni,beforeBuildLabels:ni,buildLabels:ni,afterBuildLabels:ni,beforeFit:ni,fit:function(){var e=this,t=e.options,n=t.display,i=e.minSize,r=ue.isArray(t.text)?t.text.length:1,s=ue.options._parseFont(t),o=n?r*s.lineHeight+2*t.padding:0;e.isHorizontal()?(i.width=e.maxWidth,i.height=o):(i.width=o,i.height=e.maxHeight),e.width=i.width,e.height=i.height},afterFit:ni,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=ue.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=ue.valueOrDefault(n.fontColor,ae.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(ue.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 ri(e,t){var n=new ii({ctx:e.ctx,options:t,chart:e});vt.configure(e,n,t),vt.addBox(e,n),e.titleBlock=n}var si={},oi=Jn,ai=ti,ci={id:"title",_element:ii,beforeInit:function(e){var t=e.options.title;t&&ri(e,t)},beforeUpdate:function(e){var t=e.options.title,n=e.titleBlock;t?(ue.mergeIf(t,ae.global.title),n?(vt.configure(e,n,t),n.options=t):ri(e,t)):n&&(vt.removeBox(e,n),delete e.titleBlock)}};for(var li in si.filler=oi,si.legend=ai,si.title=ci,Qt.helpers=ue,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=ue._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"}ue.where=function(e,t){if(ue.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return ue.each(e,(function(e){t(e)&&n.push(e)})),n},ue.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},ue.findNextWhere=function(e,t,n){ue.isNullOrUndef(n)&&(n=-1);for(var i=n+1;i<e.length;i++){var r=e[i];if(t(r))return r}},ue.findPreviousWhere=function(e,t,n){ue.isNullOrUndef(n)&&(n=e.length);for(var i=n-1;i>=0;i--){var r=e[i];if(t(r))return r}},ue.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ue.almostEquals=function(e,t,n){return Math.abs(e-t)<n},ue.almostWhole=function(e,t){var n=Math.round(e);return n-t<e&&n+t>e},ue.max=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.max(e,t)}),Number.NEGATIVE_INFINITY)},ue.min=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.min(e,t)}),Number.POSITIVE_INFINITY)},ue.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0==(e=+e)||isNaN(e)?e:e>0?1:-1},ue.log10=Math.log10?function(e){return Math.log10(e)}:function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t);return e===Math.pow(10,n)?n:t},ue.toRadians=function(e){return e*(Math.PI/180)},ue.toDegrees=function(e){return e*(180/Math.PI)},ue._decimalPlaces=function(e){if(ue.isFinite(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}},ue.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}},ue.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},ue.aliasPixel=function(e){return e%2==0?0:.5},ue._alignPixel=function(e,t,n){var i=e.currentDevicePixelRatio,r=n/2;return Math.round((t-r)*i)/i+r},ue.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)}}},ue.EPSILON=Number.EPSILON||1e-14,ue.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||(ue.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))},ue.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]},ue.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},ue.niceNum=function(e,t){var n=Math.floor(ue.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)},ue.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)},ue.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(ue.getStyle(s,"padding-left")),l=parseFloat(ue.getStyle(s,"padding-top")),u=parseFloat(ue.getStyle(s,"padding-right")),d=parseFloat(ue.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)}},ue.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},ue.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},ue._calculatePadding=function(e,t,n){return(t=ue.getStyle(e,t)).indexOf("%")>-1?n*parseInt(t,10)/100:parseInt(t,10)},ue._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},ue.getMaximumWidth=function(e){var t=ue._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,i=n-ue._calculatePadding(t,"padding-left",n)-ue._calculatePadding(t,"padding-right",n),r=ue.getConstraintWidth(e);return isNaN(r)?i:Math.min(i,r)},ue.getMaximumHeight=function(e){var t=ue._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,i=n-ue._calculatePadding(t,"padding-top",n)-ue._calculatePadding(t,"padding-bottom",n),r=ue.getConstraintHeight(e);return isNaN(r)?i:Math.min(i,r)},ue.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},ue.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")}},ue.fontString=function(e,t,n){return t+" "+e+"px "+n},ue.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=0;ue.each(n,(function(t){null!=t&&!0!==ue.isArray(t)?o=ue.measureText(e,r,s,o,t):ue.isArray(t)&&ue.each(t,(function(t){null==t||ue.isArray(t)||(o=ue.measureText(e,r,s,o,t))}))}));var a=s.length/2;if(a>n.length){for(var c=0;c<a;c++)delete r[s[c]];s.splice(0,a)}return o},ue.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},ue.numberOfLabelLines=function(e){var t=1;return ue.each(e,(function(e){ue.isArray(e)&&e.length>t&&(t=e.length)})),t},ue.color=G?function(e){return e instanceof CanvasGradient&&(e=ae.global.defaultColor),G(e)}:function(e){return console.error("Color.js not found!"),e},ue.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:ue.color(e).saturate(.5).darken(.1).rgbString()}}(),Qt._adapters=Xt,Qt.Animation=be,Qt.animationService=ge,Qt.controllers=ct,Qt.DatasetController=Se,Qt.defaults=ae,Qt.Element=pe,Qt.elements=je,Qt.Interaction=mt,Qt.layouts=vt,Qt.platform=At,Qt.plugins=It,Qt.Scale=on,Qt.scaleService=Pt,Qt.Ticks=en,Qt.Tooltip=Wt,Qt.helpers.each(zn,(function(e,t){Qt.scaleService.registerScaleType(t,e,e._defaults)})),si)si.hasOwnProperty(li)&&Qt.plugins.register(si[li]);Qt.platform.initialize();var ui=Qt;return"undefined"!=typeof window&&(window.Chart=Qt),Qt.Chart=Qt,Qt.Legend=si.legend._element,Qt.Title=si.title._element,Qt.pluginService=Qt.plugins,Qt.PluginBase=Qt.Element.extend({}),Qt.canvasHelpers=Qt.helpers.canvas,Qt.layoutService=Qt.layouts,Qt.LinearScaleBase=ln,Qt.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(e){Qt[e]=function(t,n){return new Qt(t,Qt.helpers.merge(n||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}})),ui}(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.dc(r.b))},e.\u0275prov=i.Ib({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.dc(a.b))},e.\u0275prov=o.Ib({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("33Wh");e.exports=i?Object.defineProperties:function(e,t){s(e);for(var n,i=o(t),a=i.length,c=0;a>c;)r.f(e,n=i[c++],t[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("P4y1"),s=n("tiKp")("iterator");e.exports=function(e){if(null!=e)return e[s]||e["@@iterator"]||r[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.o}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.Hb({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.gc("submit",(function(){return t.onSubmit()}))},inputs:{formGroup:"formGroup"},outputs:{validSubmit:"validSubmit"}}),e})()},O741:function(e,t,n){var i=n("hh1v");e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},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.Sb(0,"span",11),r.Nb(1,"i",12),r.Rb())}function d(e,t){1&e&&r.Ob(0)}function h(e,t){if(1&e&&(r.Sb(0,"p"),r.Oc(1),r.Rb()),2&e){const e=r.ic();r.yb(1),r.Qc(" ",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.Mb(s.a))},e.\u0275cmp=r.Gb({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.Sb(0,"cd-modal",0),r.gc("hide",(function(){return t.cancel()})),r.Qb(1,1),r.Mc(2,u,2,0,"span",2),r.Oc(3),r.Pb(),r.Qb(4,3),r.Sb(5,"form",4,5),r.Sb(7,"div",6),r.Mc(8,d,1,0,"ng-container",7),r.Mc(9,h,2,1,"p",8),r.Rb(),r.Sb(10,"div",9),r.Sb(11,"cd-form-button-panel",10),r.gc("submitActionEvent",(function(){return t.onSubmit(t.confirmationForm.value)}))("backActionEvent",(function(){return t.boundCancel()})),r.Rb(),r.Rb(),r.Rb(),r.Pb(),r.Rb()),2&e&&(r.yb(2),r.pc("ngIf",t.warning),r.yb(1),r.Pc(t.titleText),r.yb(2),r.pc("formGroup",t.confirmationForm),r.yb(3),r.pc("ngTemplateOutlet",t.bodyTpl)("ngTemplateOutletContext",t.bodyContext),r.yb(1),r.pc("ngIf",t.description),r.yb(2),r.pc("form",t.confirmationForm)("submitText",t.buttonText)("showSubmit",t.showSubmit))},directives:[o.a,a.r,i.C,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"))},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={}},P8lu: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("cp0P"),c=n("LRne"),l=n("5+tZ"),u=n("CqXF"),d=n("JIr8"),h=n("9xzX"),f=n("xTzq"),p=n("8Y7J");let m=(()=>{let e=class{constructor(e,t){this.http=e,this.rgwDaemonService=t,this.url="api/rgw/user"}list(){return this.enumerate().pipe(Object(l.a)(e=>e.length>0?Object(a.a)(e.map(e=>this.get(e))):Object(c.a)([])))}enumerate(){return this.rgwDaemonService.request(e=>this.http.get(this.url,{params:e}))}enumerateEmail(){return this.rgwDaemonService.request(e=>this.http.get(this.url+"/get_emails",{params:e}))}get(e){return this.rgwDaemonService.request(t=>this.http.get(`${this.url}/${e}`,{params:t}))}getQuota(e){return this.rgwDaemonService.request(t=>this.http.get(`${this.url}/${e}/quota`,{params:t}))}create(e){return this.rgwDaemonService.request(t=>(o.a.keys(e).forEach(n=>{t=t.append(n,e[n])}),this.http.post(this.url,null,{params:t})))}update(e,t){return this.rgwDaemonService.request(n=>(o.a.keys(t).forEach(e=>{n=n.append(e,t[e])}),this.http.put(`${this.url}/${e}`,null,{params:n})))}updateQuota(e,t){return this.rgwDaemonService.request(n=>(o.a.keys(t).forEach(e=>{n=n.append(e,t[e])}),this.http.put(`${this.url}/${e}/quota`,null,{params:n})))}delete(e){return this.rgwDaemonService.request(t=>this.http.delete(`${this.url}/${e}`,{params:t}))}createSubuser(e,t){return this.rgwDaemonService.request(n=>(o.a.keys(t).forEach(e=>{n=n.append(e,t[e])}),this.http.post(`${this.url}/${e}/subuser`,null,{params:n})))}deleteSubuser(e,t){return this.rgwDaemonService.request(n=>this.http.delete(`${this.url}/${e}/subuser/${t}`,{params:n}))}addCapability(e,t,n){return this.rgwDaemonService.request(i=>(i=(i=i.append("type",t)).append("perm",n),this.http.post(`${this.url}/${e}/capability`,null,{params:i})))}deleteCapability(e,t,n){return this.rgwDaemonService.request(i=>(i=(i=i.append("type",t)).append("perm",n),this.http.delete(`${this.url}/${e}/capability`,{params:i})))}addS3Key(e,t){return this.rgwDaemonService.request(n=>(n=n.append("key_type","s3"),o.a.keys(t).forEach(e=>{n=n.append(e,t[e])}),this.http.post(`${this.url}/${e}/key`,null,{params:n})))}deleteS3Key(e,t){return this.rgwDaemonService.request(n=>(n=(n=n.append("key_type","s3")).append("access_key",t),this.http.delete(`${this.url}/${e}/key`,{params:n})))}exists(e){return this.get(e).pipe(Object(u.a)(!0),Object(d.a)(e=>(o.a.isFunction(e.preventDefault)&&e.preventDefault(),Object(c.a)(!1))))}emailExists(e){return e=decodeURIComponent(e),this.enumerateEmail().pipe(Object(l.a)(t=>{const n=o.a.indexOf(t,e);return Object(c.a)(-1!==n)}))}};return e.\u0275fac=function(t){return new(t||e)(p.dc(r.b),p.dc(h.a))},e.\u0275prov=p.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e=Object(i.b)([f.a,Object(i.d)("design:paramtypes",[r.b,h.a])],e),e})()},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 h}));var i=n("SVse"),r=n("V/fk"),s=n("ChqD"),o=n("yGOH"),a=n("9Xeq"),c=n("Avrn"),l=n("aexS"),u=n("aXbf"),d=n("8Y7J");let h=(()=>{class e{}return e.\u0275mod=d.Kb({type:e}),e.\u0275inj=d.Jb({factory:function(t){return new(t||e)},providers:[l.a,c.a,u.a],imports:[[i.c,a.a,r.a,s.a,o.a],r.a,a.a,s.a,o.a]}),e})()},PKPk:function(e,t,n){"use strict";var i=n("ZUd8").charAt,r=n("afO8"),s=n("fdAy"),o="String Iterator",a=r.set,c=r.getterFor(o);s(String,"String",(function(e){a(this,{type:o,string:String(e),index:0})}),(function(){var e,t=c(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"))},Qo9l:function(e,t,n){var i=n("2oRo");e.exports=i},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("0Dky"),r=n("xrYK"),s="".split;e.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?s.call(e,""):Object(e)}:Object},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 A}));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 y(e,t){if(1&e&&(l.Qb(0,10),l.Oc(1),l.Pb()),2&e){const e=l.ic();l.yb(1),l.Qc(" ",e.titleText," ")}}function v(e,t){if(1&e&&(l.Sb(0,"p"),l.Oc(1),l.Rb()),2&e){const e=l.ic();l.yb(1),l.Pc(e.message)}}const w=function(e){return{required:e}};function S(e,t){if(1&e&&(l.Sb(0,"label",18),l.Oc(1),l.Rb()),2&e){const e=l.ic().$implicit;l.pc("ngClass",l.uc(3,w,!0===(null==e?null:e.required)))("for",e.name),l.yb(1),l.Qc(" ",e.label," ")}}function M(e,t){if(1&e&&l.Nb(0,"input",19),2&e){const e=l.ic().$implicit;l.pc("type",e.type)("id",e.name)("name",e.name)("formControlName",e.name)}}function k(e,t){if(1&e&&l.Nb(0,"input",20),2&e){const e=l.ic().$implicit;l.pc("id",e.name)("name",e.name)("formControlName",e.name)}}function x(e,t){if(1&e&&(l.Sb(0,"option",24),l.Oc(1),l.Rb()),2&e){const e=l.ic(2).$implicit;l.pc("ngValue",null),l.yb(1),l.Qc(" ",null==e||null==e.typeConfig?null:e.typeConfig.placeholder," ")}}function D(e,t){if(1&e&&(l.Sb(0,"option",25),l.Oc(1),l.Rb()),2&e){const e=t.$implicit;l.pc("value",e.value),l.yb(1),l.Qc(" ",e.text," ")}}function T(e,t){if(1&e&&(l.Sb(0,"select",21),l.Mc(1,x,2,2,"option",22),l.Mc(2,D,2,2,"option",23),l.Rb()),2&e){const e=l.ic().$implicit;l.pc("id",e.name)("formControlName",e.name),l.yb(1),l.pc("ngIf",null==e||null==e.typeConfig?null:e.typeConfig.placeholder),l.yb(1),l.pc("ngForOf",null==e||null==e.typeConfig?null:e.typeConfig.options)}}function C(e,t){if(1&e&&l.Nb(0,"cd-select-badges",26),2&e){const e=l.ic().$implicit;l.pc("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.Sb(0,"span",27),l.Oc(1),l.Rb()),2&e){const e=l.ic().$implicit,t=l.ic();l.yb(1),l.Qc(" ",t.getError(e)," ")}}const L=function(e,t){return{"cd-col-form-input":e,"col-sm-12":t}},R=function(){return["text","number"]};function E(e,t){if(1&e&&(l.Qb(0),l.Sb(1,"div"),l.Mc(2,S,2,5,"label",11),l.Sb(3,"div",12),l.Mc(4,M,1,4,"input",13),l.Mc(5,k,1,3,"input",14),l.Mc(6,T,3,4,"select",15),l.Mc(7,C,1,5,"cd-select-badges",16),l.Mc(8,O,2,1,"span",17),l.Rb(),l.Rb(),l.Pb()),2&e){const e=t.$implicit,n=l.ic(),i=l.Ac(4);l.yb(1),l.Bb("form-group row cd-",e.name,"-form-group"),l.yb(1),l.pc("ngIf",e.label),l.yb(1),l.pc("ngClass",l.vc(10,L,e.label,!e.label)),l.yb(1),l.pc("ngIf",l.tc(13,R).includes(e.type)),l.yb(1),l.pc("ngIf","binary"===e.type),l.yb(1),l.pc("ngIf","select"===e.type),l.yb(1),l.pc("ngIf","select-badges"===e.type),l.yb(1),l.pc("ngIf",n.formGroup.showError(e.name,i))}}let A=(()=>{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.Mb(u.a),l.Mb(o.a),l.Mb(c.a),l.Mb(a.a))},e.\u0275cmp=l.Gb({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.Sb(0,"cd-modal",0),l.Mc(1,y,2,1,"ng-container",1),l.Qb(2,2),l.Sb(3,"form",3,4),l.Sb(5,"div",5),l.Mc(6,v,2,1,"p",6),l.Mc(7,E,9,14,"ng-container",7),l.Rb(),l.Sb(8,"div",8),l.Sb(9,"cd-form-button-panel",9),l.gc("submitActionEvent",(function(){return t.onSubmitForm(t.formGroup.value)})),l.Rb(),l.Rb(),l.Rb(),l.Pb(),l.Rb()),2&e&&(l.pc("modalRef",t.activeModal),l.yb(1),l.pc("ngIf",t.titleText),l.yb(2),l.pc("formGroup",t.formGroup),l.yb(3),l.pc("ngIf",t.message),l.yb(1),l.pc("ngForOf",t.fields),l.yb(2),l.pc("form",t.formGroup)("submitText",t.submitButtonText))},directives:[d.a,h.r,i.C,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.B,_.a],styles:[""]}),e})()},Rm1S:function(e,t,n){"use strict";var i=n("14Sl"),r=n("glrk"),s=n("UMSQ"),o=n("HYAF"),a=n("iqWW"),c=n("FMNM");i("match",1,(function(e,t,n){return[function(t){var n=o(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var o=r(e),l=String(this);if(!o.global)return c(o,l);var u=o.unicode;o.lastIndex=0;for(var d,h=[],f=0;null!==(d=c(o,l));){var p=String(d[0]);h[f]=p,""===p&&(o.lastIndex=a(l,s(o.lastIndex),u)),f++}return 0===f?null:h}]}))},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.Tb();o.Qb(0),o.Sb(1,"button",3),o.gc("click",(function(){o.Dc(e);const t=o.ic();return t.useClickAction(t.currentAction)})),o.Nb(2,"i",4),o.Sb(3,"span"),o.Oc(4),o.Rb(),o.Rb(),o.Pb()}if(2&e){const e=o.ic();o.yb(1),o.Bb("btn btn-",e.btnColor,""),o.qc("title",e.useDisableDesc(e.currentAction)),o.pc("ngClass",o.uc(9,u,e.disableSelectionAction(e.currentAction)))("routerLink",e.useRouterLink(e.currentAction))("preserveFragment",e.currentAction.preserveFragment?"":null),o.yb(1),o.pc("ngClass",o.uc(11,d,e.currentAction.icon)),o.yb(2),o.Pc(e.currentAction.name)}}function f(e,t){if(1&e&&(o.Qb(0),o.Oc(1),o.Pb()),2&e){const e=o.ic(2);o.yb(1),o.Qc("",e.dropDownOnly," ")}}function p(e,t){1&e&&o.Nb(0,"span",10)}function m(e,t){if(1&e){const e=o.Tb();o.Qb(0),o.Sb(1,"button",11),o.gc("click",(function(){o.Dc(e);const n=t.$implicit;return o.ic(2).useClickAction(n)})),o.Nb(2,"i",4),o.Sb(3,"span"),o.Oc(4),o.Rb(),o.Rb(),o.Pb()}if(2&e){const e=t.$implicit,n=o.ic(2);o.yb(1),o.Ab(n.toClassName(e)),o.qc("title",n.useDisableDesc(e)),o.pc("routerLink",n.useRouterLink(e))("preserveFragment",e.preserveFragment?"":null)("disabled",n.disableSelectionAction(e)),o.yb(1),o.pc("ngClass",o.uc(9,d,e.icon)),o.yb(2),o.Pc(e.name)}}function b(e,t){if(1&e&&(o.Sb(0,"div",5),o.Sb(1,"button",6),o.Mc(2,f,2,1,"ng-container",1),o.Mc(3,p,1,0,"span",7),o.Rb(),o.Sb(4,"div",8),o.Mc(5,m,5,11,"ng-container",9),o.Rb(),o.Rb()),2&e){const e=o.ic();o.yb(1),o.Bb("btn btn-",e.btnColor," dropdown-toggle-split"),o.yb(1),o.pc("ngIf",e.dropDownOnly),o.yb(1),o.pc("ngIf",!e.dropDownOnly),o.yb(2),o.pc("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.Gb({type:e,selectors:[["cd-table-actions"]],inputs:{permission:"permission",selection:"selection",tableActions:"tableActions",btnColor:"btnColor",dropDownOnly:"dropDownOnly"},features:[o.wb],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.Sb(0,"div",0),o.Mc(1,h,5,13,"ng-container",1),o.Mc(2,b,6,6,"div",2),o.Rb()),2&e&&(o.yb(1),o.pc("ngIf",t.currentAction),o.yb(1),o.pc("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})()},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("0Dky");e.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())}))},SVse:function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return Ae})),n.d(t,"c",(function(){return qe})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return Fe})),n.d(t,"f",(function(){return Ve})),n.d(t,"g",(function(){return C})),n.d(t,"h",(function(){return S})),n.d(t,"i",(function(){return ze})),n.d(t,"j",(function(){return $e})),n.d(t,"k",(function(){return He})),n.d(t,"l",(function(){return d})),n.d(t,"m",(function(){return M})),n.d(t,"n",(function(){return _})),n.d(t,"o",(function(){return Ie})),n.d(t,"p",(function(){return me})),n.d(t,"q",(function(){return ge})),n.d(t,"r",(function(){return ye})),n.d(t,"s",(function(){return De})),n.d(t,"t",(function(){return Me})),n.d(t,"u",(function(){return ke})),n.d(t,"v",(function(){return xe})),n.d(t,"w",(function(){return Te})),n.d(t,"x",(function(){return w})),n.d(t,"y",(function(){return Be})),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 je})),n.d(t,"D",(function(){return Ke})),n.d(t,"E",(function(){return Q})),n.d(t,"F",(function(){return A})),n.d(t,"G",(function(){return E})),n.d(t,"H",(function(){return I})),n.d(t,"I",(function(){return Qe})),n.d(t,"J",(function(){return a})),n.d(t,"K",(function(){return Je})),n.d(t,"L",(function(){return s})),n.d(t,"M",(function(){return pe})),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.r("DocumentToken");let l=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Ib)({factory:u,token:e,providedIn:"platform"}),e})();function u(){return Object(i.dc)(h)}const d=new i.r("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.dc(c))},e.\u0275prov=Object(i.Ib)({factory:p,token:e,providedIn:"platform"}),e})();function f(){return!!window.history.pushState}function p(){return new h(Object(i.dc)(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.Ib)({factory:y,token:e,providedIn:"root"}),e})();function y(e){const t=Object(i.dc)(c).location;return new w(Object(i.dc)(l),t&&t.origin||"")}const v=new i.r("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.dc(l),i.dc(v,8))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})(),S=(()=>{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.dc(l),i.dc(v,8))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})(),M=(()=>{class e{constructor(e,t){this._subject=new i.o,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=b(x(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,x(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.dc(_),i.dc(l))},e.normalizeQueryParams=g,e.joinWithSlash=m,e.stripTrailingSlash=b,e.\u0275prov=Object(i.Ib)({factory:k,token:e,providedIn:"root"}),e})();function k(){return new M(Object(i.dc)(_),Object(i.dc)(l))}function x(e){return e.replace(/\/index.html$/,"")}var D=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}({}),T=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}({}),R=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 E(e,t,n){const r=Object(i.ib)(e),s=H([r[i.Z.DayPeriodsFormat],r[i.Z.DayPeriodsStandalone]],t);return H(s,n)}function A(e,t,n){const r=Object(i.ib)(e),s=H([r[i.Z.DaysFormat],r[i.Z.DaysStandalone]],t);return H(s,n)}function I(e,t,n){const r=Object(i.ib)(e),s=H([r[i.Z.MonthsFormat],r[i.Z.MonthsStandalone]],t);return H(s,n)}function P(e,t){return H(Object(i.ib)(e)[i.Z.DateFormat],t)}function N(e,t){return H(Object(i.ib)(e)[i.Z.TimeFormat],t)}function j(e,t){return H(Object(i.ib)(e)[i.Z.DateTimeFormat],t)}function F(e,t){const n=Object(i.ib)(e),r=n[i.Z.NumberSymbols][t];if(void 0===r){if(t===R.CurrencyDecimal)return n[i.Z.NumberSymbols][R.Decimal];if(t===R.CurrencyGroup)return n[i.Z.NumberSymbols][R.Group]}return r}function Y(e,t){return Object(i.ib)(e)[i.Z.NumberFormats][t]}const z=i.lb;function $(e){if(!e[i.Z.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[i.Z.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function H(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 W(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const V=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,B={},U=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|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 G=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}({}),J=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 Q(e,t,n,r){let s=function(e){if(se(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){e=e.trim();const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){const[t,n,i]=e.split("-").map(e=>+e);return new Date(t,n-1,i)}let n;if(n=e.match(V))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.round(1e3*parseFloat("0."+(e[7]||0)));return s.call(t,o,a,c,l),t}(n)}const t=new Date(e);if(!se(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=function e(t,n){const r=function(e){return Object(i.ib)(e)[i.Z.LocaleId]}(t);if(B[r]=B[r]||{},B[r][n])return B[r][n];let s="";switch(n){case"shortDate":s=P(t,L.Short);break;case"mediumDate":s=P(t,L.Medium);break;case"longDate":s=P(t,L.Long);break;case"fullDate":s=P(t,L.Full);break;case"shortTime":s=N(t,L.Short);break;case"mediumTime":s=N(t,L.Medium);break;case"longTime":s=N(t,L.Long);break;case"fullTime":s=N(t,L.Full);break;case"short":const n=e(t,"shortTime"),i=e(t,"shortDate");s=K(j(t,L.Short),[n,i]);break;case"medium":const r=e(t,"mediumTime"),o=e(t,"mediumDate");s=K(j(t,L.Medium),[r,o]);break;case"long":const a=e(t,"longTime"),c=e(t,"longDate");s=K(j(t,L.Long),[a,c]);break;case"full":const l=e(t,"fullTime"),u=e(t,"fullDate");s=K(j(t,L.Full),[l,u])}return s&&(B[r][n]=s),s}(n,t)||t;let o,a=[];for(;t;){if(o=U.exec(t),!o){a.push(t);break}{a=a.concat(o.slice(1));const e=a.pop();if(!e)break;t=e}}let c=s.getTimezoneOffset();r&&(c=re(r,c),s=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*(re(t,i)-i))}(s,r));let l="";return a.forEach(e=>{const t=function(e){if(ie[e])return ie[e];let t;switch(e){case"G":case"GG":case"GGG":t=ee(J.Eras,O.Abbreviated);break;case"GGGG":t=ee(J.Eras,O.Wide);break;case"GGGGG":t=ee(J.Eras,O.Narrow);break;case"y":t=X(q.FullYear,1,0,!1,!0);break;case"yy":t=X(q.FullYear,2,0,!0,!0);break;case"yyy":t=X(q.FullYear,3,0,!1,!0);break;case"yyyy":t=X(q.FullYear,4,0,!1,!0);break;case"M":case"L":t=X(q.Month,1,1);break;case"MM":case"LL":t=X(q.Month,2,1);break;case"MMM":t=ee(J.Months,O.Abbreviated);break;case"MMMM":t=ee(J.Months,O.Wide);break;case"MMMMM":t=ee(J.Months,O.Narrow);break;case"LLL":t=ee(J.Months,O.Abbreviated,C.Standalone);break;case"LLLL":t=ee(J.Months,O.Wide,C.Standalone);break;case"LLLLL":t=ee(J.Months,O.Narrow,C.Standalone);break;case"w":t=ne(1);break;case"ww":t=ne(2);break;case"W":t=ne(1,!0);break;case"d":t=X(q.Date,1);break;case"dd":t=X(q.Date,2);break;case"E":case"EE":case"EEE":t=ee(J.Days,O.Abbreviated);break;case"EEEE":t=ee(J.Days,O.Wide);break;case"EEEEE":t=ee(J.Days,O.Narrow);break;case"EEEEEE":t=ee(J.Days,O.Short);break;case"a":case"aa":case"aaa":t=ee(J.DayPeriods,O.Abbreviated);break;case"aaaa":t=ee(J.DayPeriods,O.Wide);break;case"aaaaa":t=ee(J.DayPeriods,O.Narrow);break;case"b":case"bb":case"bbb":t=ee(J.DayPeriods,O.Abbreviated,C.Standalone,!0);break;case"bbbb":t=ee(J.DayPeriods,O.Wide,C.Standalone,!0);break;case"bbbbb":t=ee(J.DayPeriods,O.Narrow,C.Standalone,!0);break;case"B":case"BB":case"BBB":t=ee(J.DayPeriods,O.Abbreviated,C.Format,!0);break;case"BBBB":t=ee(J.DayPeriods,O.Wide,C.Format,!0);break;case"BBBBB":t=ee(J.DayPeriods,O.Narrow,C.Format,!0);break;case"h":t=X(q.Hours,1,-12);break;case"hh":t=X(q.Hours,2,-12);break;case"H":t=X(q.Hours,1);break;case"HH":t=X(q.Hours,2);break;case"m":t=X(q.Minutes,1);break;case"mm":t=X(q.Minutes,2);break;case"s":t=X(q.Seconds,1);break;case"ss":t=X(q.Seconds,2);break;case"S":t=X(q.FractionalSeconds,1);break;case"SS":t=X(q.FractionalSeconds,2);break;case"SSS":t=X(q.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=te(G.Short);break;case"ZZZZZ":t=te(G.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=te(G.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=te(G.Long);break;default:return null}return ie[e]=t,t}(e);l+=t?t(s,n,c):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function K(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,(function(e,n){return null!=t&&n in t?t[n]:e}))),e}function Z(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 X(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,Z(a,3).substr(0,c);var c;const l=F(o,R.MinusSign);return Z(a,t,l,i,r)}}function ee(e,t,n=C.Format,r=!1){return function(s,o){return function(e,t,n,r,s,o){switch(n){case J.Months:return I(t,s,r)[e.getMonth()];case J.Days:return A(t,s,r)[e.getDay()];case J.DayPeriods:const a=e.getHours(),c=e.getMinutes();if(o){const e=function(e){const t=Object(i.ib)(e);return $(t),(t[i.Z.ExtraData][2]||[]).map(e=>"string"==typeof e?W(e):[W(e[0]),W(e[1])])}(t),n=function(e,t,n){const r=Object(i.ib)(e);$(r);const s=H([r[i.Z.ExtraData][0],r[i.Z.ExtraData][1]],t)||[];return H(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 E(t,s,r)[a<12?0:1];case J.Eras:return function(e,t){return H(Object(i.ib)(e)[i.Z.Eras],t)}(t,r)[e.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}}(s,o,e,t,n,r)}}function te(e){return function(t,n,i){const r=-1*i,s=F(n,R.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(e){case G.Short:return(r>=0?"+":"")+Z(o,2,s)+Z(Math.abs(r%60),2,s);case G.ShortGMT:return"GMT"+(r>=0?"+":"")+Z(o,1,s);case G.Long:return"GMT"+(r>=0?"+":"")+Z(o,2,s)+":"+Z(Math.abs(r%60),2,s);case G.Extended:return 0===i?"Z":(r>=0?"+":"")+Z(o,2,s)+":"+Z(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${e}"`)}}}function ne(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=(s=n,new Date(s.getFullYear(),s.getMonth(),s.getDate()+(4-s.getDay()))),t=function(e){const t=new Date(e,0,1).getDay();return new Date(e,0,1+(t<=4?4:11)-t)}(e.getFullYear()),i=e.getTime()-t.getTime();r=1+Math.round(i/6048e5)}var s;return Z(r,e,F(i,R.MinusSign))}}const ie={};function re(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function se(e){return e instanceof Date&&!isNaN(e.valueOf())}const oe=/^(\d+)?\.((\d+)(-(\d+))?)?$/,ae=".",ce="0";function le(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(ae))>-1&&(o=o.replace(ae,"")),(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)===ce;i++);if(i===(s=o.length))t=[0],n=1;else{for(s--;o.charAt(s)===ce;)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(oe);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=de(t)),null!=n&&(d=de(n)),null!=i?h=de(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(F(n,i)),b.length&&(a+=F(n,r)+b.join("")),m&&(a+=F(n,R.Exponential)+"+"+m)}else a=F(n,R.Infinity);return a=e<0&&!c?t.negPre+a+t.negSuf:t.posPre+a+t.posSuf,a}function ue(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(ae)?r.split(ae):[r.substring(0,r.lastIndexOf(ce)+1),r.substring(r.lastIndexOf(ce)+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===ce?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 de(e){const t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}class he{}let fe=(()=>{class e extends he{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(z(t||this.locale)(e)){case T.Zero:return"zero";case T.One:return"one";case T.Two:return"two";case T.Few:return"few";case T.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(i.dc(i.v))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})();function pe(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 me=(()=>{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.ob)(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.tb)(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.Mb(i.t),i.Mb(i.u),i.Mb(i.m),i.Mb(i.E))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e})();class be{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 ge=(()=>{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){Object(i.U)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),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 be(null,this._ngForOf,-1,-1),null===i?void 0:i),r=new _e(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 _e(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.Mb(i.P),i.Mb(i.L),i.Mb(i.t))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class _e{constructor(e,t){this.record=e,this.view=t}}let ye=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new ve,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){we("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){we("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.Mb(i.P),i.Mb(i.L))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class ve{constructor(){this.$implicit=null,this.ngIf=null}}function we(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Object(i.tb)(t)}'.`)}class Se{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.Hb({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e})(),ke=(()=>{class e{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new Se(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.P),i.Mb(i.L),i.Mb(Me,1))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e})(),xe=(()=>{class e{constructor(e,t,n){n._addDefault(new Se(e,t))}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.P),i.Mb(i.L),i.Mb(Me,1))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngSwitchDefault",""]]}),e})(),De=(()=>{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.Mb(i.m),i.Mb(i.u),i.Mb(i.E))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e})(),Te=(()=>{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.Mb(i.P))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.wb]}),e})();function Ce(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${Object(i.tb)(e)}'`)}class Oe{createSubscription(e,t){return e.subscribe({next:t,error:e=>{throw e}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class Le{createSubscription(e,t){return e.then(t,e=>{throw e})}dispose(e){}onDestroy(e){}}const Re=new Le,Ee=new Oe;let Ae=(()=>{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.qb)(t))return Re;if(Object(i.pb)(t))return Ee;throw Ce(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.fc())},e.\u0275pipe=i.Lb({name:"async",type:e,pure:!1}),e})(),Ie=(()=>{class e{transform(t){if(!t)return t;if("string"!=typeof t)throw Ce(e,t);return t.toLowerCase()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Lb({name:"lowercase",type:e,pure:!0}),e})();const Pe=/(?:[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(!t)return t;if("string"!=typeof t)throw Ce(e,t);return t.replace(Pe,e=>e[0].toUpperCase()+e.substr(1).toLowerCase())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Lb({name:"titlecase",type:e,pure:!0}),e})(),je=(()=>{class e{transform(t){if(!t)return t;if("string"!=typeof t)throw Ce(e,t);return t.toUpperCase()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Lb({name:"uppercase",type:e,pure:!0}),e})(),Fe=(()=>{class e{constructor(e){this.locale=e}transform(t,n="mediumDate",i,r){if(null==t||""===t||t!=t)return null;try{return Q(t,n,r||this.locale,i)}catch(s){throw Ce(e,s.message)}}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.v))},e.\u0275pipe=i.Lb({name:"date",type:e,pure:!0}),e})();const Ye=/#/g;let ze=(()=>{class e{constructor(e){this._localization=e}transform(t,n,i){if(null==t)return"";if("object"!=typeof n||null===n)throw Ce(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(Ye,t.toString())}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(he))},e.\u0275pipe=i.Lb({name:"i18nPlural",type:e,pure:!0}),e})(),$e=(()=>{class e{transform(e){return JSON.stringify(e,null,2)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Lb({name:"json",type:e,pure:!1}),e})(),He=(()=>{class e{constructor(e){this.differs=e,this.keyValues=[]}transform(e,t=We){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.Mb(i.u))},e.\u0275pipe=i.Lb({name:"keyvalue",type:e,pure:!1}),e})();function We(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 Ve=(()=>{class e{constructor(e){this._locale=e}transform(t,n,i){if(Ue(t))return null;i=i||this._locale;try{return function(e,t,n){return le(e,ue(Y(t,D.Decimal),F(t,R.MinusSign)),t,R.Group,R.Decimal,n)}(Ge(t),i,n)}catch(r){throw Ce(e,r.message)}}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.v))},e.\u0275pipe=i.Lb({name:"number",type:e,pure:!0}),e})(),Be=(()=>{class e{constructor(e){this._locale=e}transform(t,n,i){if(Ue(t))return null;i=i||this._locale;try{return function(e,t,n){return le(e,ue(Y(t,D.Percent),F(t,R.MinusSign)),t,R.Group,R.Decimal,n,!0).replace(new RegExp("%","g"),F(t,R.PercentSign))}(Ge(t),i,n)}catch(r){throw Ce(e,r.message)}}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.v))},e.\u0275pipe=i.Lb({name:"percent",type:e,pure:!0}),e})();function Ue(e){return null==e||""===e||e!=e}function Ge(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.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},providers:[{provide:he,useClass:fe}]}),e})();const Je="browser";function Qe(e){return e===Je}let Ke=(()=>{class e{}return e.\u0275prov=Object(i.Ib)({token:e,providedIn:"root",factory:()=>new Ze(Object(i.dc)(c),window,Object(i.dc)(i.n))}),e})();class Ze{constructor(e,t,n){this.document=e,this.window=t,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(this.supportsScrolling()){const t=this.document.getElementById(e)||this.document.getElementsByName(e)[0];t&&this.scrollToElement(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])}supportScrollRestoration(){try{if(!this.window||!this.window.scrollTo)return!1;const e=Xe(this.window.history)||Xe(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window.scrollTo}catch(e){return!1}}}function Xe(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))}},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.Lb({name:"map",type:e,pure:!0}),e})()},TWQb:function(e,t,n){var i=n("/GqU"),r=n("UMSQ"),s=n("I8vh"),o=function(e){return function(t,n,o){var a,c=i(t),l=r(c.length),u=s(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.Lb({name:"ordinal",type:e,pure:!0}),e})()},TeQF:function(e,t,n){"use strict";var i=n("I+eb"),r=n("tycR").filter,s=n("Hd5f"),o=n("rkAj"),a=s("filter"),c=o("filter");i({target:"Array",proto:!0,forced:!a||!c},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},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("ppGB"),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"))},UTVS:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},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"))},UxlC:function(e,t,n){"use strict";var i=n("14Sl"),r=n("glrk"),s=n("ewvW"),o=n("UMSQ"),a=n("ppGB"),c=n("HYAF"),l=n("iqWW"),u=n("FMNM"),d=Math.max,h=Math.min,f=Math.floor,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g;i("replace",2,(function(e,t,n,i){var b=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=i.REPLACE_KEEPS_$0,_=b?"$":"$0";return[function(n,i){var r=c(this),s=null==n?void 0:n[e];return void 0!==s?s.call(n,r,i):t.call(String(r),n,i)},function(e,i){if(!b&&g||"string"==typeof i&&-1===i.indexOf(_)){var s=n(t,e,this,i);if(s.done)return s.value}var c=r(e),f=String(this),p="function"==typeof i;p||(i=String(i));var m=c.global;if(m){var v=c.unicode;c.lastIndex=0}for(var w=[];;){var S=u(c,f);if(null===S)break;if(w.push(S),!m)break;""===String(S[0])&&(c.lastIndex=l(f,o(c.lastIndex),v))}for(var M,k="",x=0,D=0;D<w.length;D++){S=w[D];for(var T=String(S[0]),C=d(h(a(S.index),f.length),0),O=[],L=1;L<S.length;L++)O.push(void 0===(M=S[L])?M:String(M));var R=S.groups;if(p){var E=[T].concat(O,C,f);void 0!==R&&E.push(R);var A=String(i.apply(void 0,E))}else A=y(T,f,C,O,R,i);C>=x&&(k+=f.slice(x,C)+A,x=C+T.length)}return k+f.slice(x)}];function y(e,n,i,r,o,a){var c=i+e.length,l=r.length,u=m;return void 0!==o&&(o=s(o),u=p),t.call(a,u,(function(t,s){var a;switch(s.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,i);case"'":return n.slice(c);case"<":a=o[s.slice(1,-1)];break;default:var u=+s;if(0===u)return t;if(u>l){var d=f(u/10);return 0===d?t:d<=l?void 0===r[d-1]?s.charAt(1):r[d-1]+s.charAt(1):t}a=r[u-1]}return void 0===a?"":a}))}}))},"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.\u0275mod=h.Kb({type:e}),e.\u0275inj=h.Jb({factory:function(t){return new(t||e)},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"))},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.dc(r.a),s.dc(i.a))},e.\u0275prov=s.Ib({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.Ib({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.dc(s.a))},e.\u0275prov=o.Ib({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.6.5",mode:i?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},Vu81:function(e,t,n){var i=n("0GbY"),r=n("JBy8"),s=n("dBg+"),o=n("glrk");e.exports=i("Reflect","ownKeys")||function(e){var t=r.f(o(e)),n=s.f;return n?t.concat(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 z})),n.d(t,"b",(function(){return $})),n("TeQF"),n("QWBl"),n("4mDm"),n("zKZe"),n("07d7"),n("4l63"),n("PKPk"),n("ENF9"),n("3bBZ");var i=n("hKI/"),r=n.n(i),s=n("9/5/"),o=n.n(s),a=n("uyHG"),c=n.n(a),l=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,i){return e[0]===t&&(n=i,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(t,n){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,i=e(n,t);~i&&n.splice(i,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];e.call(t,r[1],r[0])}},t}()}(),u="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,d="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),h="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(d):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},f=["top","right","bottom","left","width","height","size","weight"],p="undefined"!=typeof MutationObserver,m=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,i=!1,r=0;function s(){n&&(n=!1,e()),i&&a()}function o(){h(s)}function a(){var e=Date.now();if(n){if(e-r<2)return;i=!0}else n=!0,i=!1,setTimeout(o,20);r=e}return a}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){u&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),p?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){u&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;f.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),b=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},g=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||d},_=S(0,0,0,0);function y(e){return parseFloat(e)||0}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+y(e["border-"+n+"-width"])}),0)}var w="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof g(e).SVGGraphicsElement}:function(e){return e instanceof g(e).SVGElement&&"function"==typeof e.getBBox};function S(e,t,n,i){return{x:e,y:t,width:n,height:i}}var M=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=S(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e,t=(e=this.target,u?w(e)?function(e){var t=e.getBBox();return S(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return _;var i=g(e).getComputedStyle(e),r=function(e){for(var t={},n=0,i=["top","right","bottom","left"];n<i.length;n++){var r=i[n];t[r]=y(e["padding-"+r])}return t}(i),s=r.left+r.right,o=r.top+r.bottom,a=y(i.width),c=y(i.height);if("border-box"===i.boxSizing&&(Math.round(a+s)!==t&&(a-=v(i,"left","right")+s),Math.round(c+o)!==n&&(c-=v(i,"top","bottom")+o)),!function(e){return e===g(e).document.documentElement}(e)){var l=Math.round(a+s)-t,u=Math.round(c+o)-n;1!==Math.abs(l)&&(a-=l),1!==Math.abs(u)&&(c-=u)}return S(r.left,r.top,a,c)}(e):_);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),k=function(e,t){var n,i,r,s,o,a,c,l=(i=(n=t).x,r=n.y,s=n.width,o=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(a.prototype),b(c,{x:i,y:r,width:s,height:o,top:r,right:i+s,bottom:o+r,left:i}),c);b(this,{target:e,contentRect:l})},x=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new l,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof g(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new M(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof g(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new k(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),D="undefined"!=typeof WeakMap?new WeakMap:new l,T=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=m.getInstance(),i=new x(t,n,this);D.set(this,i)};["observe","unobserve","disconnect"].forEach((function(e){T.prototype[e]=function(){var t;return(t=D.get(this))[e].apply(t,arguments)}}));var C=void 0!==d.ResizeObserver?d.ResizeObserver:T,O=n("AxL3"),L=n.n(O),R=(n("E9XD"),n("sMBO"),n("rB9j"),n("Rm1S"),n("UxlC"),null),E=null;function A(){if(null===R){if("undefined"==typeof document)return R=0;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),R=n}return R}function I(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}function P(e){return e&&e.ownerDocument?e.ownerDocument:document}L.a&&window.addEventListener("resize",(function(){E!==window.devicePixelRatio&&(E=window.devicePixelRatio,R=null)}));var N=function(){function e(t,n){var i=this;this.onScroll=function(){var e=I(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=P(i.el),n=I(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=r()(this.recalculate.bind(this),64),this.onMouseMove=r()(this.onMouseMove.bind(this),64),this.hideScrollbars=o()(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=o()(this.onWindowResize.bind(this),64,{leading:!0}),e.getRtlHelpers=c()(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=P(e),i=I(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),L.a&&(this.initDOM(),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.initListeners=function(){var e=this,t=I(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||C)((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=I(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=P(this.el),i=I(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=I(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:A()}catch(e){return A()}},t.removeListeners=function(){var e=this,t=I(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}();N.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},N.instances=new WeakMap;var j=N,F=n("8Y7J");const Y=["*"];let z=(()=>{class e{constructor(e){this.elRef=e}ngOnInit(){}ngAfterViewInit(){this.SimpleBar=new j(this.elRef.nativeElement,this.options||{})}ngOnDestroy(){this.SimpleBar.unMount(),this.SimpleBar=null}}return e.\u0275fac=function(t){return new(t||e)(F.Mb(F.m))},e.\u0275cmp=F.Gb({type:e,selectors:[["ngx-simplebar"]],hostAttrs:["data-simplebar","init"],inputs:{options:"options"},ngContentSelectors:Y,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&&(F.oc(),F.Sb(0,"div",0),F.Sb(1,"div",1),F.Nb(2,"div",2),F.Rb(),F.Sb(3,"div",3),F.Sb(4,"div",4),F.Sb(5,"div",5),F.Sb(6,"div",6),F.nc(7),F.Rb(),F.Rb(),F.Rb(),F.Rb(),F.Nb(8,"div",7),F.Rb(),F.Sb(9,"div",8),F.Nb(10,"div",9),F.Rb(),F.Sb(11,"div",10),F.Nb(12,"div",9),F.Rb())},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})(),$=(()=>{class e{}return e.\u0275mod=F.Kb({type:e}),e.\u0275inj=F.Jb({factory:function(t){return new(t||e)},imports:[[]]}),e})()},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("HYAF"),r="["+n("WJkJ")+"]",s=RegExp("^"+r+r+"*"),o=RegExp(r+r+"*$"),a=function(e){return function(t){var n=String(i(t));return 1&e&&(n=n.replace(s,"")),2&e&&(n=n.replace(o,"")),n}};e.exports={start:a(1),end:a(2),trim:a(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))},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"))},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.Gb({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.oc(),r.Sb(0,"ngb-alert",0),r.Sb(1,"strong"),r.Nb(2,"i",1),r.Rb(),r.nc(3),r.Rb()),2&e&&(r.pc("dismissible",!1),r.yb(2),r.pc("ngClass",r.vc(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}}},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}},YNrV:function(e,t,n){"use strict";var i=n("g6v/"),r=n("0Dky"),s=n("33Wh"),o=n("dBg+"),a=n("0eef"),c=n("ewvW"),l=n("RK3t"),u=Object.assign,d=Object.defineProperty;e.exports=!u||r((function(){if(i&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(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!=u({},e)[n]||s(u({},t)).join("")!=r}))?function(e,t){for(var n=c(e),r=arguments.length,u=1,d=o.f,h=a.f;r>u;)for(var f,p=l(arguments[u++]),m=d?s(p).concat(d(p)):s(p),b=m.length,g=0;b>g;)f=m[g++],i&&!h.call(p,f)||(n[f]=p[f]);return n}:u},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)}}},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.o,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.Mb(s.m),i.Mb(r.b))},e.\u0275cmp=i.Gb({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.Sb(0,"button",0),i.gc("click",(function(){return t.back()})),i.Oc(1),i.Rb()),2&e&&(i.yb(1),i.Qc(" ",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("ppGB"),r=n("HYAF"),s=function(e){return function(t,n){var s,o,a=String(r(t)),c=i(n),l=a.length;return c<0||c>=l?e?"":void 0:(s=a.charCodeAt(c))<55296||s>56319||c+1===l||(o=a.charCodeAt(c+1))<56320||o>57343?e?a.charAt(c):s:e?a.slice(c,c+2):o-56320+(s-55296<<10)+65536}};e.exports={codeAt:s(!1),charAt:s(!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("hh1v"),r=n("6LWA"),s=n("tiKp")("species");e.exports=function(e,t){var n;return r(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!r(n.prototype)?i(n)&&null===(n=n[s])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(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.Mb(r.e))},e.\u0275pipe=i.Lb({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)}var n=[/^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],i=/^(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,r=[/^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:r,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:r,monthsRegex:i,monthsShortRegex:i,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:n,longMonthsParse:n,shortMonthsParse:n,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(function e(t){return t>9?e(t%10):t}(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"))},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.Ib({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.Ib({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("hh1v"),l=n("kRJp"),u=n("UTVS"),d=n("93I0"),h=n("0BK2");if(o){var f=new(0,a.WeakMap),p=f.get,m=f.has,b=f.set;i=function(e,t){return b.call(f,e,t),t},r=function(e){return p.call(f,e)||{}},s=function(e){return m.call(f,e)}}else{var g=d("state");h[g]=!0,i=function(e,t){return l(e,g,t),t},r=function(e){return u(e,g)?e[g]:{}},s=function(e){return u(e,g)}}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(!c(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},ajRT:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("8Y7J"),r=n("ANnk");const s=[[["",8,"modal-title"]],[["",8,"modal-content"]]],o=[".modal-title",".modal-content"];let a=(()=>{class e{constructor(){this.hide=new i.o}close(){var e;null===(e=this.modalRef)||void 0===e||e.close(),this.hide.emit()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-modal"]],inputs:{modalRef:"modalRef"},outputs:{hide:"hide"},ngContentSelectors:o,decls:7,vars:0,consts:[[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.oc(s),i.Sb(0,"div",0),i.Sb(1,"h4",1),i.nc(2),i.Rb(),i.Sb(3,"button",2),i.gc("click",(function(){return t.close()})),i.Sb(4,"span",3),i.Oc(5,"\xd7"),i.Rb(),i.Rb(),i.Rb(),i.nc(6,1))},directives:[r.a],styles:[".modal-header[_ngcontent-%COMP%]{border-radius:5px 5px 0 0}.modal-header[_ngcontent-%COMP%],   cd-modal .modal-footer{background-color:#e9ecef;border-bottom:1px solid #ced4da}  cd-modal .modal-footer{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.dc(r.b))},e.\u0275prov=c.Ib({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.Oc(0),c.jc(1,"dimless")),2&e){const e=t.row;c.Rc(" ",c.kc(1,2,e.value)," ",e.unit," ")}}function b(e,t){if(1&e){const e=c.Tb();c.Sb(0,"cd-table",2),c.gc("fetchData",(function(t){return c.Dc(e),c.ic().getCounters(t)})),c.Mc(1,m,2,4,"ng-template",null,3,c.Nc),c.Rb()}if(2&e){const e=c.ic();c.pc("data",e.counters)("columns",e.columns)("autoSave",!1)}}function g(e,t){1&e&&(c.Sb(0,"cd-alert-panel",4),c.Wb(1,5),c.Rb())}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.Mb(l))},e.\u0275cmp=c.Gb({type:e,selectors:[["cd-table-performance-counter"]],viewQuery:function(e,t){var n;1&e&&c.Tc(p,!0),2&e&&c.zc(n=c.hc())&&(t.valueTpl=n.first)},inputs:{serviceType:"serviceType",serviceId:"serviceId"},decls:3,vars:2,consts:function(){return[["columnMode","flex",3,"data","columns","autoSave","fetchData",4,"ngIf","ngIfElse"],["warning",""],["columnMode","flex",3,"data","columns","autoSave","fetchData"],["valueTpl",""],["type","warning"],"Performance counters not available"]},template:function(e,t){if(1&e&&(c.Mc(0,b,3,3,"cd-table",0),c.Mc(1,g,2,0,"ng-template",null,1,c.Nc)),2&e){const e=c.Ac(2);c.pc("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("lMq5"),o=n("busE"),a=n("8YOa"),c=n("ImZN"),l=n("GarU"),u=n("hh1v"),d=n("0Dky"),h=n("HH4o"),f=n("1E5z"),p=n("cVYH");e.exports=function(e,t,n){var m=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),g=m?"set":"add",_=r[e],y=_&&_.prototype,v=_,w={},S=function(e){var t=y[e];o(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(b&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return b&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!u(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(s(e,"function"!=typeof _||!(b||y.forEach&&!d((function(){(new _).entries().next()})))))v=n.getConstructor(t,e,m,g),a.REQUIRED=!0;else if(s(e,!0)){var M=new v,k=M[g](b?{}:-0,1)!=M,x=d((function(){M.has(1)})),D=h((function(e){new _(e)})),T=!b&&d((function(){for(var e=new _,t=5;t--;)e[g](t,t);return!e.has(-0)}));D||((v=t((function(t,n){l(t,v,e);var i=p(new _,t,v);return null!=n&&c(n,i[g],i,m),i}))).prototype=y,y.constructor=v),(x||T)&&(S("delete"),S("has"),m&&S("get")),(T||k)&&S(g),b&&y.clear&&delete y.clear}return w[e]=v,i({global:!0,forced:v!=_},w),f(v,e),b||n.setStrong(v,e,m),v}},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("kRJp"),s=n("UTVS"),o=n("zk60"),a=n("iSVu"),c=n("afO8"),l=c.get,u=c.enforce,d=String(String).split("String");(e.exports=function(e,t,n,a){var c=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,h=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof t||s(n,"name")||r(n,"name",t),u(n).source=d.join("string"==typeof t?t:"")),e!==i?(c?!h&&e[t]&&(l=!0):delete e[t],l?e[t]=n:r(e,t,n)):l?e[t]=n:o(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||a(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.Mb(o.b))},e.\u0275cmp=s.Gb({type:e,selectors:[["cd-copy-2-clipboard-button"]],hostBindings:function(e,t){1&e&&s.gc("click",(function(){return t.onClick()}))},inputs:{source:"source",byId:"byId"},decls:3,vars:3,consts:function(){return[["type","button",1,"btn","btn-light",3,"click",6,"title"],["title","Copy to Clipboard"],[3,"ngClass"]]},template:function(e,t){1&e&&(s.Sb(0,"button",0),s.Yb(1,1),s.gc("click",(function(){return t.onClick()})),s.Nb(2,"i",2),s.Rb()),2&e&&(s.yb(2),s.pc("ngClass",s.uc(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"))},cUpR:function(e,t,n){"use strict";n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return R})),n.d(t,"c",(function(){return $})),n.d(t,"d",(function(){return P})),n.d(t,"e",(function(){return w}));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.r("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.s],multi:!0}];class d{static init(){Object(r.W)(new d)}addToWindow(e){r.nb.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.nb.getAllAngularTestabilities=()=>e.getAllTestabilities(),r.nb.getAllAngularRootElements=()=>e.getAllRootElements(),r.nb.frameworkStabilizers||(r.nb.frameworkStabilizers=[]),r.nb.frameworkStabilizers.push(e=>{const t=r.nb.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.r("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.dc(h),r.dc(r.A))},e.\u0275prov=r.Ib({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.Ib({token:e,factory:e.\u0275fac}),e})(),b=(()=>{class e extends m{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>Object(i.L)().remove(e))}}return e.\u0275fac=function(t){return new(t||e)(r.dc(i.d))},e.\u0275prov=r.Ib({token:e,factory:e.\u0275fac}),e})();const g={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/"},_=/%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(_,e),n.push(r))}return n}function v(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let w=(()=>{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.Q.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new M(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case r.Q.Native:case r.Q.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.dc(f),r.dc(b),r.dc(r.c))},e.\u0275prov=r.Ib({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(g[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=g[i];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const i=g[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.G.DashCase?e.style.setProperty(t,n,i&r.G.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&r.G.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,v(n)):this.eventManager.addEventListener(e,t,v(n))}}class M 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(_,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(_,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.component=i,this.shadowRoot=i.encapsulation===r.Q.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=y(i.id,i.styles,[]);for(let r=0;r<s.length;r++){const e=document.createElement("style");e.textContent=s[r],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 x=(()=>{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.dc(i.d))},e.\u0275prov=r.Ib({token:e,factory:e.\u0275fac}),e})();const D=["alt","control","meta","shift"],T={"\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"},C={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"},O={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let L=(()=>{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(D.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&&C.hasOwnProperty(t)&&(t=C[t]))}return T[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),D.forEach(i=>{i!=n&&(0,O[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.dc(i.d))},e.\u0275prov=r.Ib({token:e,factory:e.\u0275fac}),e})(),R=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Ib)({factory:function(){return Object(r.dc)(A)},token:e,providedIn:"root"}),e})();function E(e){return new A(e.get(i.d))}let A=(()=>{class e extends R{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case r.I.NONE:return t;case r.I.HTML:return Object(r.cb)(t,"HTML")?Object(r.ub)(t):Object(r.ab)(this._doc,String(t));case r.I.STYLE:return Object(r.cb)(t,"Style")?Object(r.ub)(t):t;case r.I.SCRIPT:if(Object(r.cb)(t,"Script"))return Object(r.ub)(t);throw new Error("unsafe value used in a script context");case r.I.URL:return Object(r.mb)(t),Object(r.cb)(t,"URL")?Object(r.ub)(t):Object(r.bb)(String(t));case r.I.RESOURCE_URL:if(Object(r.cb)(t,"ResourceURL"))return Object(r.ub)(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return Object(r.db)(e)}bypassSecurityTrustStyle(e){return Object(r.gb)(e)}bypassSecurityTrustScript(e){return Object(r.fb)(e)}bypassSecurityTrustUrl(e){return Object(r.hb)(e)}bypassSecurityTrustResourceUrl(e){return Object(r.eb)(e)}}return e.\u0275fac=function(t){return new(t||e)(r.dc(i.d))},e.\u0275prov=Object(r.Ib)({factory:function(){return E(Object(r.dc)(r.p))},token:e,providedIn:"root"}),e})();const I=[{provide:r.C,useValue:i.K},{provide:r.D,useValue:function(){o.makeCurrent(),d.init()},multi:!0},{provide:i.d,useFactory:function(){return Object(r.sb)(document),document},deps:[]}],P=Object(r.R)(r.V,"browser",I),N=[[],{provide:r.Y,useValue:"root"},{provide:r.n,useFactory:function(){return new r.n},deps:[]},{provide:h,useClass:x,multi:!0,deps:[i.d,r.A,r.C]},{provide:h,useClass:L,multi:!0,deps:[i.d]},[],{provide:w,useClass:w,deps:[f,b,r.c]},{provide:r.F,useExisting:w},{provide:m,useExisting:b},{provide:b,useClass:b,deps:[i.d]},{provide:r.M,useClass:r.M,deps:[r.A]},{provide:f,useClass:f,deps:[h,r.A]},[]];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.\u0275mod=r.Kb({type:e}),e.\u0275inj=r.Jb({factory:function(t){return new(t||e)(r.dc(e,12))},providers:N,imports:[i.c,r.f]}),e})();const F="undefined"!=typeof window&&window||{};class Y{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!=F.console.profile;t&&r&&F.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&&F.console.profileEnd(n);const c=(a-s)/o;return F.console.log(`ran ${o} change detection cycles`),F.console.log(c.toFixed(2)+" ms per check"),new Y(c,o)}}function $(e){return"profiler",t=new z(e),"undefined"!=typeof COMPILED&&COMPILED||((r.nb.ng=r.nb.ng||{}).profiler=t),e;var t}},cVYH:function(e,t,n){var i=n("hh1v"),r=n("0rvr");e.exports=function(e,t,n){var s,o;return r&&"function"==typeof(s=t.constructor)&&s!==n&&i(o=s.prototype)&&o!==n.prototype&&r(e,o),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.Ib({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.Lb({name:"milliseconds",type:e,pure:!0}),e})()},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.Mb(r.a))},e.\u0275cmp=s.Gb({type:e,selectors:[["cd-sparkline"]],viewQuery:function(e,t){var n;1&e&&(s.Jc(c,!0),s.Jc(l,!0)),2&e&&(s.zc(n=s.hc())&&(t.chartCanvasRef=n.first),s.zc(n=s.hc())&&(t.chartTooltipRef=n.first))},inputs:{data:"data",style:"style",isBinary:"isBinary"},features:[s.wb],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.Sb(0,"div",0),s.Nb(1,"canvas",1,2),s.Sb(3,"div",3,4),s.Nb(5,"table"),s.Rb(),s.Rb()),2&e&&(s.pc("ngStyle",t.style),s.yb(1),s.pc("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:rgba(0,0,0,.7);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 transparent;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}}},"eDl+":function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},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.Lb({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.dc(s.b),r.dc(i.a))},e.\u0275prov=r.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},ewvW:function(e,t,n){var i=n("HYAF");e.exports=function(e){return Object(i(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.Hb({type:e,selectors:[["","cdFormScope",""]],inputs:{cdFormScope:"cdFormScope"}}),e})()},f5p1:function(e,t,n){var i=n("2oRo"),r=n("iSVu"),s=i.WeakMap;e.exports="function"==typeof s&&/native code/.test(r(s))},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.Mb(r.c,13))},e.\u0275dir=i.Hb({type:e,selectors:[["",8,"form-control"],["",8,"form-check-input"],["",8,"custom-control-input"]],hostVars:4,hostBindings:function(e,t){2&e&&i.Eb("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(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(r){}var e,t;f=i?function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t}(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);for(var n=o.length;n--;)delete f.prototype[o[n]];return f()};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=f(),void 0===t?n:s(n,t)}},fdAy:function(e,t,n){"use strict";var i=n("I+eb"),r=n("ntOU"),s=n("4WOD"),o=n("0rvr"),a=n("1E5z"),c=n("kRJp"),l=n("busE"),u=n("tiKp"),d=n("xDBR"),h=n("P4y1"),f=n("rpNk"),p=f.IteratorPrototype,m=f.BUGGY_SAFARI_ITERATORS,b=u("iterator"),g="keys",_="values",y="entries",v=function(){return this};e.exports=function(e,t,n,u,f,w,S){r(n,t,u);var M,k,x,D=function(e){if(e===f&&R)return R;if(!m&&e in O)return O[e];switch(e){case g:case _:case y:return function(){return new n(this,e)}}return function(){return new n(this)}},T=t+" Iterator",C=!1,O=e.prototype,L=O[b]||O["@@iterator"]||f&&O[f],R=!m&&L||D(f),E="Array"==t&&O.entries||L;if(E&&(M=s(E.call(new e)),p!==Object.prototype&&M.next&&(d||s(M)===p||(o?o(M,p):"function"!=typeof M[b]&&c(M,b,v)),a(M,T,!0,!0),d&&(h[T]=v))),f==_&&L&&L.name!==_&&(C=!0,R=function(){return L.call(this)}),d&&!S||O[b]===R||c(O,b,R),h[t]=R,f)if(k={values:D(_),keys:w?R:D(g),entries:D(y)},S)for(x in k)(m||C||!(x in O))&&l(O,x,k[x]);else i({target:t,proto:!0,forced:m||C},k);return k}},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("hh1v");e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},"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 y(t){var n=r,i=s;return r=s=void 0,u=t,a=e.apply(i,n)}function v(e){return u=e,c=setTimeout(S,t),d?y(e):a}function w(e){var n=e-l;return void 0===l||n>=t||n<0||g&&e-u>=o}function S(){var e=p();if(w(e))return M(e);c=setTimeout(S,function(e){var n=t-(e-l);return g?f(n,o-(e-u)):n}(e))}function M(e){return c=void 0,_&&r?y(e):(r=s=void 0,a)}function k(){var e=p(),n=w(e);if(r=arguments,s=this,l=e,n){if(void 0===c)return v(l);if(g)return c=setTimeout(S,t),y(l)}return void 0===c&&(c=setTimeout(S,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:_),k.cancel=function(){void 0!==c&&clearTimeout(c),u=0,r=l=s=c=void 0},k.flush=function(){return void 0===c?a:M(p())},k}(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"))},hh1v:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof 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("MO+k"),s=n("2Vo4"),o=n("LvDl");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 s.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=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e.ngInjectableDef=Object(i.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})();const m=function(){var e={Default:0,Update:1,Refresh:2};return e[e.Default]="Default",e[e.Update]="Update",e[e.Refresh]="Refresh",e}();let b=(()=>{class e{constructor(e,t){this.element=e,this.themeService=t,this.options={},this.chartClick=new i.o,this.chartHover=new i.o,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){r.Chart.plugins.register(e)}static unregisterPlugin(e){r.Chart.plugins.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,t){if(this.chart)return this.chart.update(e,t)}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 r.Chart(e,t)}smartMerge(e,t,n=0){if(0===n&&(e=Object(o.cloneDeep)(e)),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].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.Mb(i.m),i.Mb(p))},e.\u0275dir=i.Hb({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.wb]}),e})(),g=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},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.Lb({name:"booleanText",type:e,pure:!0}),e})()},iInd:function(e,t,n){"use strict";n.d(t,"a",(function(){return Ee})),n.d(t,"b",(function(){return E})),n.d(t,"c",(function(){return R})),n.d(t,"d",(function(){return tn})),n.d(t,"e",(function(){return Gt})),n.d(t,"f",(function(){return qt})),n.d(t,"g",(function(){return Kt})),n.d(t,"h",(function(){return Jt})),n.d(t,"i",(function(){return un})),n.d(t,"j",(function(){return Zt}));var i=n("SVse"),r=n("8Y7J"),s=n("LRne"),o=n("Cfvw"),a=n("2Vo4"),c=n("itXk"),l=n("HDdC"),u=n("sVev"),d=n("EY2u");function h(e){return new l.a(t=>{let n;try{n=e()}catch(i){return void t.error(i)}return(n?Object(o.a)(n):Object(d.b)()).subscribe(t)})}var f=n("XNiG"),p=n("lJxs"),m=n("0EUg"),b=n("NJ9Y"),g=n("eIep"),_=n("IzEk"),y=n("JX91"),v=n("Kqap"),w=n("pLZG"),S=n("JIr8"),M=n("bOdf"),k=n("SxV6"),x=n("5+tZ"),D=n("vkgz"),T=n("BFxc"),C=n("nYR2"),O=n("bHdf");class L{constructor(e,t){this.id=e,this.url=t}}class R extends L{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 E extends L{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class A extends L{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class I extends L{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class P extends L{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 N extends L{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 j extends L{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 F extends L{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 Y extends L{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 z{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ${constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class H{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class W{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class V{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class B{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class U{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 q{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 J(e){return new q(e)}function Q(e){const t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function K(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 Z(e,t){const n=Object.keys(e),i=Object.keys(t);if(!n||!i||n.length!=i.length)return!1;let r;for(let s=0;s<n.length;s++)if(r=n[s],!X(e[r],t[r]))return!1;return!0}function X(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 ee(e){return Array.prototype.concat.apply([],e)}function te(e){return e.length>0?e[e.length-1]:null}function ne(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function ie(e){return Object(r.pb)(e)?e:Object(r.qb)(e)?Object(o.a)(Promise.resolve(e)):Object(s.a)(e)}function re(e,t,n){return n?function(e,t){return Z(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!ce(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children){if(!t.children[i])return!1;if(!e(t.children[i],n.children[i]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>X(e[n],t[n]))}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,i,r){if(n.segments.length>r.length)return!!ce(n.segments.slice(0,r.length),r)&&!i.hasChildren();if(n.segments.length===r.length){if(!ce(n.segments,r))return!1;for(const t in i.children){if(!n.children[t])return!1;if(!e(n.children[t],i.children[t]))return!1}return!0}{const e=r.slice(0,n.segments.length),s=r.slice(n.segments.length);return!!ce(n.segments,e)&&!!n.children.primary&&t(n.children.primary,i,s)}}(t,n,n.segments)}(e.root,t.root)}class se{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=J(this.queryParams)),this._queryParamMap}toString(){return he.serialize(this)}}class oe{constructor(e,t){this.segments=e,this.children=t,this.parent=null,ne(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return fe(this)}}class ae{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=J(this.parameters)),this._parameterMap}toString(){return ye(this)}}function ce(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}function le(e,t){let n=[];return ne(e.children,(e,i)=>{i===G&&(n=n.concat(t(e,i)))}),ne(e.children,(e,i)=>{i!==G&&(n=n.concat(t(e,i)))}),n}class ue{}class de{parse(e){const t=new ke(e);return new se(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){return`${"/"+function e(t,n){if(!t.hasChildren())return fe(t);if(n){const n=t.children.primary?e(t.children.primary,!1):"",i=[];return ne(t.children,(t,n)=>{n!==G&&i.push(`${n}:${e(t,!1)}`)}),i.length>0?`${n}(${i.join("//")})`:n}{const n=le(t,(n,i)=>i===G?[e(t.children.primary,!1)]:[`${i}:${e(n,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${fe(t)}/${n[0]}`:`${fe(t)}/(${n.join("//")})`}}(e.root,!0)}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${me(t)}=${me(e)}`).join("&"):`${me(t)}=${me(n)}`});return t.length?"?"+t.join("&"):""}(e.queryParams)}${"string"==typeof e.fragment?"#"+encodeURI(e.fragment):""}`}}const he=new de;function fe(e){return e.segments.map(e=>ye(e)).join("/")}function pe(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function me(e){return pe(e).replace(/%3B/gi,";")}function be(e){return pe(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ge(e){return decodeURIComponent(e)}function _e(e){return ge(e.replace(/\+/g,"%20"))}function ye(e){return`${be(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${be(e)}=${be(t[e])}`).join("")}`;var t}const ve=/^[^\/()?;=#]+/;function we(e){const t=e.match(ve);return t?t[0]:""}const Se=/^[^=?&#]+/,Me=/^[^?&#]+/;class ke{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new oe([],{}):new oe([],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 oe(e,t)),n}parseSegment(){const e=we(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new ae(ge(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=we(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=we(this.remaining);e&&(n=e,this.capture(n))}e[ge(t)]=ge(n)}parseQueryParam(e){const t=function(e){const t=e.match(Se);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(Me);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const i=_e(t),r=_e(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=we(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let r=void 0;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 oe([],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 xe{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=De(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=De(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=Te(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return Te(e,this._root).map(e=>e.value)}}function De(e,t){if(e===t.value)return t;for(const n of t.children){const t=De(e,n);if(t)return t}return null}function Te(e,t){if(e===t.value)return[t];for(const n of t.children){const i=Te(e,n);if(i.length)return i.unshift(t),i}return[]}class Ce{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function Oe(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class Le extends xe{constructor(e,t){super(e),this.snapshot=t,Ne(this,e)}toString(){return this.snapshot.toString()}}function Re(e,t){const n=function(e,t){const n=new Ie([],{},{},"",{},G,t,null,e.root,-1,{});return new Pe("",new Ce(n,[]))}(e,t),i=new a.a([new ae("",{})]),r=new a.a({}),s=new a.a({}),o=new a.a({}),c=new a.a(""),l=new Ee(i,r,o,c,s,G,t,n.root);return l.snapshot=n.root,new Le(new Ce(l,[]),n)}class Ee{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(p.a)(e=>J(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(p.a)(e=>J(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ae(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 Ie{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=J(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=J(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Pe extends xe{constructor(e,t){super(t),this.url=e,Ne(this,t)}toString(){return je(this._root)}}function Ne(e,t){t.value._routerState=e,t.children.forEach(t=>Ne(e,t))}function je(e){const t=e.children.length>0?` { ${e.children.map(je).join(", ")} } `:"";return`${e.value}${t}`}function Fe(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Z(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Z(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(!Z(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),Z(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function Ye(e,t){var n,i;return Z(e.params,t.params)&&ce(n=e.url,i=t.url)&&n.every((e,t)=>Z(e.parameters,i[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||Ye(e.parent,t.parent))}function ze(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function $e(e,t,n,i,r){let s={};return i&&ne(i,(e,t)=>{s[t]=Array.isArray(e)?e.map(e=>""+e):""+e}),new se(n.root===e?t:function e(t,n,i){const r={};return ne(t.children,(t,s)=>{r[s]=t===n?i:e(t,n,i)}),new oe(t.segments,r)}(n.root,e,t),s,r)}class He{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&ze(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(e=>"object"==typeof e&&null!=e&&e.outlets);if(i&&i!==te(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class We{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function Ve(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets.primary:""+e}function Be(e,t,n){if(e||(e=new oe([],{})),0===e.segments.length&&e.hasChildren())return Ue(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=Ve(n[i]),a=i<n.length-1?n[i+1]:null;if(r>0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!Qe(o,a,t))return s;i+=2}else{if(!Qe(o,{},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 oe(e.segments.slice(0,i.pathIndex),{});return t.children.primary=new oe(e.segments.slice(i.pathIndex),e.children),Ue(t,0,r)}return i.match&&0===r.length?new oe(e.segments,{}):i.match&&!e.hasChildren()?Ge(e,t,n):i.match?Ue(e,0,r):Ge(e,t,n)}function Ue(e,t,n){if(0===n.length)return new oe(e.segments,{});{const i=function(e){return"object"==typeof e[0]&&null!==e[0]&&e[0].outlets?e[0].outlets:{[G]:e}}(n),r={};return ne(i,(n,i)=>{null!==n&&(r[i]=Be(e.children[i],t,n))}),ne(e.children,(e,t)=>{void 0===i[t]&&(r[t]=e)}),new oe(e.segments,r)}}function Ge(e,t,n){const i=e.segments.slice(0,t);let r=0;for(;r<n.length;){if("object"==typeof n[r]&&null!==n[r]&&void 0!==n[r].outlets){const e=qe(n[r].outlets);return new oe(i,e)}if(0===r&&ze(n[0])){i.push(new ae(e.segments[t].path,n[0])),r++;continue}const s=Ve(n[r]),o=r<n.length-1?n[r+1]:null;s&&o&&ze(o)?(i.push(new ae(s,Je(o))),r+=2):(i.push(new ae(s,{})),r++)}return new oe(i,{})}function qe(e){const t={};return ne(e,(e,n)=>{null!==e&&(t[n]=Ge(new oe([],{}),0,e))}),t}function Je(e){const t={};return ne(e,(e,n)=>t[n]=""+e),t}function Qe(e,t,n){return e==n.path&&Z(t,n.parameters)}class Ke{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),Fe(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const i=Oe(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,i[t],n),delete i[t]}),ne(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);if(n){const i=Oe(e),r=e.value.component?n.children:t;ne(i,(e,t)=>this.deactivateRouteAndItsChildren(e,r)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(e,t,n){const i=Oe(t);e.children.forEach(e=>{this.activateRoutes(e,i[e.value.outlet],n),this.forwardEvent(new B(e.value.snapshot))}),e.children.length&&this.forwardEvent(new W(e.value.snapshot))}activateRoutes(e,t,n){const i=e.value,r=t?t.value:null;if(Fe(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),Ze(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 Ze(e){Fe(e.value),e.children.forEach(Ze)}class Xe{constructor(e,t){this.routes=e,this.module=t}}function et(e){return"function"==typeof e}function tt(e){return e instanceof se}const nt=Symbol("INITIAL_VALUE");function it(){return Object(g.a)(e=>Object(c.a)(...e.map(e=>e.pipe(Object(_.a)(1),Object(y.a)(nt)))).pipe(Object(v.a)((e,t)=>{let n=!1;return t.reduce((e,i,r)=>{if(e!==nt)return e;if(i===nt&&(n=!0),!n){if(!1===i)return i;if(r===t.length-1||tt(i))return i}return e},e)},nt),Object(w.a)(e=>e!==nt),Object(p.a)(e=>tt(e)?e:!0===e),Object(_.a)(1)))}class rt{constructor(e){this.segmentGroup=e||null}}class st{constructor(e){this.urlTree=e}}function ot(e){return new l.a(t=>t.error(new rt(e)))}function at(e){return new l.a(t=>t.error(new st(e)))}function ct(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.y)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,G).pipe(Object(p.a)(e=>this.createUrlTree(e,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(S.a)(e=>{if(e instanceof st)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof rt)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,G).pipe(Object(p.a)(t=>this.createUrlTree(t,e.queryParams,e.fragment))).pipe(Object(S.a)(e=>{if(e instanceof rt)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 oe([],{[G]:e}):e;return new se(i,t,n)}expandSegmentGroup(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Object(p.a)(e=>new oe([],e))):this.expandSegment(e,n,t,n.segments,i,!0)}expandChildren(e,t,n){return function(e,t){if(0===Object.keys(e).length)return Object(s.a)({});const n=[],i=[],r={};return ne(e,(e,s)=>{const o=t(s,e).pipe(Object(p.a)(e=>r[s]=e));s===G?n.push(o):i.push(o)}),s.a.apply(null,n.concat(i)).pipe(Object(m.a)(),Object(b.a)(),Object(p.a)(()=>r))}(n.children,(n,i)=>this.expandSegmentGroup(e,t,i,n))}expandSegment(e,t,n,i,r,o){return Object(s.a)(...n).pipe(Object(M.a)(a=>this.expandSegmentAgainstRoute(e,t,n,a,i,r,o).pipe(Object(S.a)(e=>{if(e instanceof rt)return Object(s.a)(null);throw e}))),Object(k.a)(e=>!!e),Object(S.a)((e,n)=>{if(e instanceof u.a||"EmptyError"===e.name){if(this.noLeftoversInUrl(t,i,r))return Object(s.a)(new oe([],{}));throw new rt(t)}throw e}))}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}expandSegmentAgainstRoute(e,t,n,i,r,s,o){return ft(i)!==s?ot(t):void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,s):ot(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("/")?at(r):this.lineralizeSegments(n,r).pipe(Object(x.a)(n=>{const r=new oe(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}=ut(t,i,r);if(!o)return ot(t);const u=this.applyRedirectCommands(a,i.redirectTo,l);return i.redirectTo.startsWith("/")?at(u):this.lineralizeSegments(i,u).pipe(Object(x.a)(i=>this.expandSegment(e,t,n,i.concat(r.slice(c)),s,!1)))}matchSegmentAgainstRoute(e,t,n,i){if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(Object(p.a)(e=>(n._loadedConfig=e,new oe(i,{})))):Object(s.a)(new oe(i,{}));const{matched:r,consumedSegments:o,lastChild:a}=ut(t,n,i);if(!r)return ot(t);const c=i.slice(a);return this.getChildConfig(e,n,i).pipe(Object(x.a)(e=>{const n=e.module,i=e.routes,{segmentGroup:r,slicedSegments:a}=function(e,t,n,i){return n.length>0&&function(e,t,n){return n.some(n=>ht(e,t,n)&&ft(n)!==G)}(e,n,i)?{segmentGroup:dt(new oe(t,function(e,t){const n={};n.primary=t;for(const i of e)""===i.path&&ft(i)!==G&&(n[ft(i)]=new oe([],{}));return n}(i,new oe(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some(n=>ht(e,t,n))}(e,n,i)?{segmentGroup:dt(new oe(e.segments,function(e,t,n,i){const r={};for(const s of n)ht(e,t,s)&&!i[ft(s)]&&(r[ft(s)]=new oe([],{}));return Object.assign(Object.assign({},i),r)}(e,n,i,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,o,c,i);return 0===a.length&&r.hasChildren()?this.expandChildren(n,i,r).pipe(Object(p.a)(e=>new oe(o,e))):0===i.length&&0===a.length?Object(s.a)(new oe(o,{})):this.expandSegment(n,r,i,a,G,!0).pipe(Object(p.a)(e=>new oe(o.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?Object(s.a)(new Xe(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Object(s.a)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(Object(x.a)(n=>n?this.configLoader.load(e.injector,t).pipe(Object(p.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(s.a)(new Xe([],e))}runCanLoadGuards(e,t,n){const i=t.canLoad;if(!i||0===i.length)return Object(s.a)(!0);const r=i.map(i=>{const r=e.get(i);let s;if(function(e){return e&&et(e.canLoad)}(r))s=r.canLoad(t,n);else{if(!et(r))throw new Error("Invalid CanLoad guard");s=r(t,n)}return ie(s)});return Object(s.a)(r).pipe(it(),Object(D.a)(e=>{if(!tt(e))return;const t=Q(`Redirecting to "${this.urlSerializer.serialize(e)}"`);throw t.url=e,t}),Object(p.a)(e=>!0===e))}lineralizeSegments(e,t){let n=[],i=t.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Object(s.a)(n);if(i.numberOfChildren>1||!i.children.primary)return ct(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 se(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return ne(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 ne(t.children,(t,r)=>{s[r]=this.createSegmentGroup(e,t,n,i)}),new oe(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 ut(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const i=(t.matcher||K)(n,e,t);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function dt(e){if(1===e.numberOfChildren&&e.children.primary){const t=e.children.primary;return new oe(e.segments.concat(t.segments),t.children)}return e}function ht(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function ft(e){return e.outlet||G}class pt{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class mt{constructor(e,t){this.component=e,this.route=t}}function bt(e,t,n){const i=e._root;return function e(t,n,i,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=Oe(n);return t.children.forEach(t=>{!function(t,n,i,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,a=n?n.value:null,c=i?i.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!ce(e.url,t.url);case"pathParamsOrQueryParamsChange":return!ce(e.url,t.url)||!Z(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ye(e,t)||!Z(e.queryParams,t.queryParams);case"paramsChange":default:return!Ye(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new pt(r)):(o.data=a.data,o._resolvedData=a._resolvedData),e(t,n,o.component?c?c.children:null:i,r,s),l&&c&&c.outlet&&c.outlet.isActivated&&s.canDeactivateChecks.push(new mt(c.outlet.component,a))}else a&&_t(n,c,s),s.canActivateChecks.push(new pt(r)),e(t,null,o.component?c?c.children:null:i,r,s)}(t,o[t.value.outlet],i,r.concat([t.value]),s),delete o[t.value.outlet]}),ne(o,(e,t)=>_t(e,i.getContext(t),s)),s}(i,t?t._root:null,n,[i.value])}function gt(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 _t(e,t,n){const i=Oe(e),r=e.value;ne(i,(e,i)=>{_t(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new mt(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function yt(e,t){return null!==e&&t&&t(new V(e)),Object(s.a)(!0)}function vt(e,t){return null!==e&&t&&t(new H(e)),Object(s.a)(!0)}function wt(e,t,n){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return Object(s.a)(!0);const r=i.map(i=>h(()=>{const r=gt(i,t,n);let s;if(function(e){return e&&et(e.canActivate)}(r))s=ie(r.canActivate(t,e));else{if(!et(r))throw new Error("Invalid CanActivate guard");s=ie(r(t,e))}return s.pipe(Object(k.a)())}));return Object(s.a)(r).pipe(it())}function St(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=>h(()=>{const r=t.guards.map(r=>{const s=gt(r,t.node,n);let o;if(function(e){return e&&et(e.canActivateChild)}(s))o=ie(s.canActivateChild(i,e));else{if(!et(s))throw new Error("Invalid CanActivateChild guard");o=ie(s(i,e))}return o.pipe(Object(k.a)())});return Object(s.a)(r).pipe(it())}));return Object(s.a)(r).pipe(it())}class Mt{}class kt{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(){try{const e=Tt(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,G),n=new Ie([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},G,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Ce(n,t),r=new Pe(this.url,i);return this.inheritParamsAndData(r._root),Object(s.a)(r)}catch(e){return new l.a(t=>t.error(e))}}inheritParamsAndData(e){const t=e.value,n=Ae(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=le(t,(t,n)=>this.processSegmentGroup(e,t,n));return function(e){const t={};e.forEach(e=>{const n=t[e.value.outlet];if(n){const t=n.url.map(e=>e.toString()).join("/"),i=e.value.url.map(e=>e.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${t}' and '${i}'.`)}t[e.value.outlet]=e.value})}(n),n.sort((e,t)=>e.value.outlet===G?-1:t.value.outlet===G?1:e.value.outlet.localeCompare(t.value.outlet)),n}processSegment(e,t,n,i){for(const s of e)try{return this.processSegmentAgainstRoute(s,t,n,i)}catch(r){if(!(r instanceof Mt))throw r}if(this.noLeftoversInUrl(t,n,i))return[];throw new Mt}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}processSegmentAgainstRoute(e,t,n,i){if(e.redirectTo)throw new Mt;if((e.outlet||G)!==i)throw new Mt;let r,s=[],o=[];if("**"===e.path){const s=n.length>0?te(n).parameters:{};r=new Ie(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Lt(e),i,e.component,e,xt(t),Dt(t)+n.length,Rt(e))}else{const a=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new Mt;return{consumedSegments:[],lastChild:0,parameters:{}}}const i=(t.matcher||K)(n,e,t);if(!i)throw new Mt;const r={};ne(i.posParams,(e,t)=>{r[t]=e.path});const s=i.consumed.length>0?Object.assign(Object.assign({},r),i.consumed[i.consumed.length-1].parameters):r;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:s}}(t,e,n);s=a.consumedSegments,o=n.slice(a.lastChild),r=new Ie(s,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Lt(e),i,e.component,e,xt(t),Dt(t)+s.length,Rt(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:c,slicedSegments:l}=Tt(t,s,o,a,this.relativeLinkResolution);if(0===l.length&&c.hasChildren()){const e=this.processChildren(a,c);return[new Ce(r,e)]}if(0===a.length&&0===l.length)return[new Ce(r,[])];const u=this.processSegment(a,c,l,G);return[new Ce(r,u)]}}function xt(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function Dt(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 Tt(e,t,n,i,r){if(n.length>0&&function(e,t,n){return n.some(n=>Ct(e,t,n)&&Ot(n)!==G)}(e,n,i)){const r=new oe(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&&Ot(s)!==G){const n=new oe([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,r[Ot(s)]=n}return r}(e,t,i,new oe(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=>Ct(e,t,n))}(e,n,i)){const s=new oe(e.segments,function(e,t,n,i,r,s){const o={};for(const a of i)if(Ct(e,n,a)&&!r[Ot(a)]){const n=new oe([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===s?e.segments.length:t.length,o[Ot(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 oe(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Ct(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Ot(e){return e.outlet||G}function Lt(e){return e.data||{}}function Rt(e){return e.resolve||{}}function Et(e){return function(t){return t.pipe(Object(g.a)(t=>{const n=e(t);return n?Object(o.a)(n).pipe(Object(p.a)(()=>t)):Object(o.a)([t])}))}}class At 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}}{}let It=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Gb({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&r.Nb(0,"router-outlet")},directives:function(){return[Zt]},encapsulation:2}),e})();function Pt(e,t=""){for(let n=0;n<e.length;n++){const i=e[n];Nt(i,jt(t,i))}}function Nt(e,t){if(!e)throw new Error(`\n      Invalid configuration of route '${t}': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    `);if(Array.isArray(e))throw new Error(`Invalid configuration of route '${t}': Array cannot be specified`);if(!e.component&&!e.children&&!e.loadChildren&&e.outlet&&e.outlet!==G)throw new Error(`Invalid configuration of route '${t}': a componentless route without children or loadChildren cannot have a named outlet set`);if(e.redirectTo&&e.children)throw new Error(`Invalid configuration of route '${t}': redirectTo and children cannot be used together`);if(e.redirectTo&&e.loadChildren)throw new Error(`Invalid configuration of route '${t}': redirectTo and loadChildren cannot be used together`);if(e.children&&e.loadChildren)throw new Error(`Invalid configuration of route '${t}': children and loadChildren cannot be used together`);if(e.redirectTo&&e.component)throw new Error(`Invalid configuration of route '${t}': redirectTo and component cannot be used together`);if(e.path&&e.matcher)throw new Error(`Invalid configuration of route '${t}': path and matcher cannot be used together`);if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error(`Invalid configuration of route '${t}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===e.path&&void 0===e.matcher)throw new Error(`Invalid configuration of route '${t}': routes must have either a path or a matcher specified`);if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new Error(`Invalid configuration of route '${t}': path cannot start with a slash`);if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch)throw new Error(`Invalid configuration of route '{path: "${t}", redirectTo: "${e.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error(`Invalid configuration of route '${t}': pathMatch can only be set to 'prefix' or 'full'`);e.children&&Pt(e.children,t)}function jt(e,t){return t?e||t.path?e&&!t.path?e+"/":!e&&t.path?t.path:`${e}/${t.path}`:"":e}function Ft(e){const t=e.children&&e.children.map(Ft),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=It),n}const Yt=new r.r("ROUTES");class zt{constructor(e,t,n,i){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=i}load(e,t){return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(Object(p.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const i=n.create(e);return new Xe(ee(i.injector.get(Yt)).map(Ft),i)}))}loadModuleFactory(e){return"string"==typeof e?Object(o.a)(this.loader.load(e)):ie(e()).pipe(Object(x.a)(e=>e instanceof r.w?Object(s.a)(e):Object(o.a)(this.compiler.compileModuleAsync(e))))}}class $t{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ht,this.attachRef=null}}class Ht{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 $t,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class Wt{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function Vt(e){throw e}function Bt(e,t,n){return t.parse("/")}function Ut(e,t){return Object(s.a)(null)}let Gt=(()=>{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.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new f.a,this.errorHandler=Vt,this.malformedUriErrorHandler=Bt,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Ut,afterPreactivation:Ut},this.urlHandlingStrategy=new Wt,this.routeReuseStrategy=new At,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=s.get(r.y),this.console=s.get(r.X);const u=s.get(r.A);this.isNgZoneEnabled=u instanceof r.A,this.resetConfig(l),this.currentUrlTree=new se(new oe([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new zt(o,c,e=>this.triggerEvent(new z(e)),e=>this.triggerEvent(new $(e))),this.routerState=Re(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(p.a)(e=>Object.assign(Object.assign({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),Object(g.a)(e=>{let n=!1,i=!1;return Object(s.a)(e).pipe(Object(D.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(s.a)(e).pipe(Object(g.a)(e=>{const n=this.transitions.getValue();return t.next(new R(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?d.a:[e]}),Object(g.a)(e=>Promise.resolve(e)),(i=this.ngModule.injector,r=this.configLoader,o=this.urlSerializer,a=this.config,function(e){return e.pipe(Object(g.a)(e=>function(e,t,n,i,r){return new lt(e,t,n,i,r).apply()}(i,r,o,e.extractedUrl,a).pipe(Object(p.a)(t=>Object.assign(Object.assign({},e),{urlAfterRedirects:t})))))}),Object(D.a)(e=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,t,n,i,r){return function(s){return s.pipe(Object(x.a)(s=>function(e,t,n,i,r="emptyOnly",s="legacy"){return new kt(e,t,n,i,r,s).recognize()}(e,t,s.urlAfterRedirects,n(s.urlAfterRedirects),i,r).pipe(Object(p.a)(e=>Object.assign(Object.assign({},s),{targetSnapshot:e})))))}}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(D.a)(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),Object(D.a)(e=>{const n=new P(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));var i,r,o,a;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:r,restoredState:o,extras:a}=e,c=new R(n,this.serializeUrl(i),r,o);t.next(c);const l=Re(i,this.rootComponentType).snapshot;return Object(s.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),d.a}),Et(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(D.a)(e=>{const t=new N(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),Object(p.a)(e=>Object.assign(Object.assign({},e),{guards:bt(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return function(n){return n.pipe(Object(x.a)(n=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:a,canDeactivateChecks:c}}=n;return 0===c.length&&0===a.length?Object(s.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return Object(o.a)(e).pipe(Object(x.a)(e=>function(e,t,n,i,r){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(s.a)(!0);const a=o.map(s=>{const o=gt(s,t,r);let a;if(function(e){return e&&et(e.canDeactivate)}(o))a=ie(o.canDeactivate(e,t,n,i));else{if(!et(o))throw new Error("Invalid CanDeactivate guard");a=ie(o(e,t,n,i))}return a.pipe(Object(k.a)())});return Object(s.a)(a).pipe(it())}(e.component,e.route,n,t,i)),Object(k.a)(e=>!0!==e,!0))}(c,i,r,e).pipe(Object(x.a)(n=>n&&"boolean"==typeof n?function(e,t,n,i){return Object(o.a)(t).pipe(Object(M.a)(t=>Object(o.a)([vt(t.route.parent,i),yt(t.route,i),St(e,t.path,n),wt(e,t.route,n)]).pipe(Object(m.a)(),Object(k.a)(e=>!0!==e,!0))),Object(k.a)(e=>!0!==e,!0))}(i,a,e,t):Object(s.a)(n)),Object(p.a)(e=>Object.assign(Object.assign({},n),{guardsResult:e})))}))}}(this.ngModule.injector,e=>this.triggerEvent(e)),Object(D.a)(e=>{if(tt(e.guardsResult)){const t=Q(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}}),Object(D.a)(e=>{const t=new j(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 A(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),Et(e=>{if(e.guards.canActivateChecks.length)return Object(s.a)(e).pipe(Object(D.a)(e=>{const t=new F(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),Object(g.a)(e=>{let n=!1;return Object(s.a)(e).pipe((i=this.paramsInheritanceStrategy,r=this.ngModule.injector,function(e){return e.pipe(Object(x.a)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:n}}=e;if(!n.length)return Object(s.a)(e);let a=0;return Object(o.a)(n).pipe(Object(M.a)(e=>function(e,t,n,i){return function(e,t,n,i){const r=Object.keys(e);if(0===r.length)return Object(s.a)({});const a={};return Object(o.a)(r).pipe(Object(x.a)(r=>function(e,t,n,i){const r=gt(e,t,i);return ie(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(Object(D.a)(e=>{a[r]=e}))),Object(T.a)(1),Object(x.a)(()=>Object.keys(a).length===r.length?Object(s.a)(a):d.a))}(e._resolve,e,t,i).pipe(Object(p.a)(t=>(e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),Ae(e,n).resolve),null)))}(e.route,t,i,r)),Object(D.a)(()=>a++),Object(T.a)(1),Object(x.a)(t=>a===n.length?Object(s.a)(e):d.a))}))}),Object(D.a)({next:()=>n=!0,complete:()=>{if(!n){const n=new A(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(D.a)(e=>{const t=new Y(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),Et(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(p.a)(e=>{const t=function(e,t,n){const i=function e(t,n,i){if(i&&t.shouldReuseRoute(n.value,i.value.snapshot)){const r=i.value;r._futureSnapshot=n.value;const s=function(t,n,i){return n.children.map(n=>{for(const r of i.children)if(t.shouldReuseRoute(r.value.snapshot,n.value))return e(t,n,r);return e(t,n)})}(t,n,i);return new Ce(r,s)}{const i=t.retrieve(n.value);if(i){const e=i.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(let i=0;i<t.children.length;++i)e(t.children[i],n.children[i])}(n,e),e}{const i=new Ee(new a.a((r=n.value).url),new a.a(r.params),new a.a(r.queryParams),new a.a(r.fragment),new a.a(r.data),r.outlet,r.component,r),s=n.children.map(n=>e(t,n));return new Ce(i,s)}}var r}(e,t._root,n?n._root:void 0);return new Le(i,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:t})}),Object(D.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,c=this.routeReuseStrategy,l=e=>this.triggerEvent(e),Object(p.a)(e=>(new Ke(c,e.targetRouterState,e.currentRouterState,l).activate(r),e))),Object(D.a)({next(){n=!0},complete(){n=!0}}),Object(C.a)(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new A(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(S.a)(n=>{if(i=!0,(r=n)&&r.ngNavigationCancelingError){const i=tt(n.url);i||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const r=new A(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(r),i?setTimeout(()=>{const t=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return 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 I(e.id,this.serializeUrl(e.extractedUrl),n);t.next(i);try{e.resolve(this.errorHandler(n))}catch(s){e.reject(s)}}var r;return d.a}));var r,c,l}))}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){Pt(e),this.config=e.map(Ft),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}createUrlTree(e,t={}){const{relativeTo:n,queryParams:i,fragment:s,preserveQueryParams:o,queryParamsHandling:a,preserveFragment:c}=t;Object(r.U)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,u=c?this.currentUrlTree.fragment:s;let d=null;if(a)switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=i||null}else d=o?this.currentUrlTree.queryParams:i||null;return null!==d&&(d=this.removeEmptyProps(d)),function(e,t,n,i,r){if(0===n.length)return $e(t.root,t.root,t,i,r);const s=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new He(!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 ne(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 He(n,t,i)}(n);if(s.toRoot())return $e(t.root,new oe([],{}),t,i,r);const o=function(e,t,n){if(e.isAbsolute)return new We(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){const e=n.snapshot._urlSegment;return new We(e,e===t.root,0)}const i=ze(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 We(i,!1,r-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(s,t,e),a=o.processChildren?Ue(o.segmentGroup,o.index,s.commands):Be(o.segmentGroup,o.index,s.commands);return $e(o.segmentGroup,a,t,i,r)}(l,this.currentUrlTree,e,d,u)}navigateByUrl(e,t={skipLocationChange:!1}){Object(r.U)()&&this.isNgZoneEnabled&&!r.A.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=tt(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(tt(e))return re(this.currentUrlTree,e,t);const n=this.parseUrl(e);return re(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 E(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,i,r){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.dc(r.N),r.dc(ue),r.dc(Ht),r.dc(i.m),r.dc(r.s),r.dc(r.x),r.dc(r.i),r.dc(void 0))},e.\u0275prov=r.Ib({token:e,factory:e.\u0275fac}),e})(),qt=(()=>{class e{constructor(e,t,n,i,r){this.router=e,this.route=t,this.commands=[],this.onChanges=new f.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]:[]}set preserveQueryParams(e){Object(r.U)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=e}onClick(){const e={skipLocationChange:Qt(this.skipLocationChange),replaceUrl:Qt(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Qt(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Qt(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(r.Mb(Gt),r.Mb(Ee),r.ec("tabindex"),r.Mb(r.E),r.Mb(r.m))},e.\u0275dir=r.Hb({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&r.gc("click",(function(){return t.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[r.wb]}),e})(),Jt=(()=>{class e{constructor(e,t,n){this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.onChanges=new f.a,this.subscription=e.events.subscribe(e=>{e instanceof E&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}set preserveQueryParams(e){Object(r.U)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=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:Qt(this.skipLocationChange),replaceUrl:Qt(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:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Qt(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Qt(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(r.Mb(Gt),r.Mb(Ee),r.Mb(i.n))},e.\u0275dir=r.Hb({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&r.gc("click",(function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)})),2&e&&(r.Vb("href",t.href,r.Gc),r.zb("target",t.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[r.wb]}),e})();function Qt(e){return""===e||!!e}let Kt=(()=>{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 E&&this.update()})}ngAfterContentInit(){Object(o.a)([this.links.changes,this.linksWithHrefs.changes,Object(s.a)(null)]).pipe(Object(O.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(o.a)(t).pipe(Object(O.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.Mb(Gt),r.Mb(r.m),r.Mb(r.E),r.Mb(r.h),r.Mb(qt,8),r.Mb(Jt,8))},e.\u0275dir=r.Hb({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(e,t,n){var i;1&e&&(r.Fb(n,qt,!0),r.Fb(n,Jt,!0)),2&e&&(r.zc(i=r.hc())&&(t.links=i),r.zc(i=r.hc())&&(t.linksWithHrefs=i))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[r.wb]}),e})(),Zt=(()=>{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.o,this.deactivateEvents=new r.o,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 Xt(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.Mb(Ht),r.Mb(r.P),r.Mb(r.j),r.ec("name"),r.Mb(r.h))},e.\u0275dir=r.Hb({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e})();class Xt{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===Ee?this.route:e===Ht?this.childContexts:this.parent.get(e,t)}}class en{}class tn{preload(e,t){return t().pipe(Object(S.a)(()=>Object(s.a)(null)))}}class nn{preload(e,t){return Object(s.a)(null)}}let rn=(()=>{class e{constructor(e,t,n,i,r){this.router=e,this.injector=i,this.preloadingStrategy=r,this.loader=new zt(t,n,t=>e.triggerEvent(new z(t)),t=>e.triggerEvent(new $(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(w.a)(e=>e instanceof E),Object(M.a)(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(r.y);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(o.a)(n).pipe(Object(O.a)(),Object(p.a)(e=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>this.loader.load(e.injector,t).pipe(Object(x.a)(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}return e.\u0275fac=function(t){return new(t||e)(r.dc(Gt),r.dc(r.x),r.dc(r.i),r.dc(r.s),r.dc(en))},e.\u0275prov=r.Ib({token:e,factory:e.\u0275fac}),e})(),sn=(()=>{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 R?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof E&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof U&&(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 U(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.dc(Gt),r.dc(i.D),r.dc(void 0))},e.\u0275prov=r.Ib({token:e,factory:e.\u0275fac}),e})();const on=new r.r("ROUTER_CONFIGURATION"),an=new r.r("ROUTER_FORROOT_GUARD"),cn=[i.m,{provide:ue,useClass:de},{provide:Gt,useFactory:function(e,t,n,r,s,o,a,c={},l,u){const d=new Gt(null,e,t,n,r,s,o,ee(a));if(l&&(d.urlHandlingStrategy=l),u&&(d.routeReuseStrategy=u),c.errorHandler&&(d.errorHandler=c.errorHandler),c.malformedUriErrorHandler&&(d.malformedUriErrorHandler=c.malformedUriErrorHandler),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 c.onSameUrlNavigation&&(d.onSameUrlNavigation=c.onSameUrlNavigation),c.paramsInheritanceStrategy&&(d.paramsInheritanceStrategy=c.paramsInheritanceStrategy),c.urlUpdateStrategy&&(d.urlUpdateStrategy=c.urlUpdateStrategy),c.relativeLinkResolution&&(d.relativeLinkResolution=c.relativeLinkResolution),d},deps:[ue,Ht,i.m,r.s,r.x,r.i,Yt,on,[class{},new r.B],[class{},new r.B]]},Ht,{provide:Ee,useFactory:function(e){return e.routerState.root},deps:[Gt]},{provide:r.x,useClass:r.K},rn,nn,tn,{provide:on,useValue:{enableTracing:!1}}];function ln(){return new r.z("Router",Gt)}let un=(()=>{class e{constructor(e,t){}static forRoot(t,n){return{ngModule:e,providers:[cn,pn(t),{provide:an,useFactory:fn,deps:[[Gt,new r.B,new r.J]]},{provide:on,useValue:n||{}},{provide:i.n,useFactory:hn,deps:[i.z,[new r.q(i.a),new r.B],on]},{provide:sn,useFactory:dn,deps:[Gt,i.D,on]},{provide:en,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:nn},{provide:r.z,multi:!0,useFactory:ln},[mn,{provide:r.d,multi:!0,useFactory:bn,deps:[mn]},{provide:_n,useFactory:gn,deps:[mn]},{provide:r.b,multi:!0,useExisting:_n}]]}}static forChild(t){return{ngModule:e,providers:[pn(t)]}}}return e.\u0275mod=r.Kb({type:e}),e.\u0275inj=r.Jb({factory:function(t){return new(t||e)(r.dc(an,8),r.dc(Gt,8))}}),e})();function dn(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new sn(e,t,n)}function hn(e,t,n={}){return n.useHash?new i.h(e,t):new i.x(e,t)}function fn(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function pn(e){return[{provide:r.a,multi:!0,useValue:e},{provide:Yt,multi:!0,useValue:e}]}let mn=(()=>{class e{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new f.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(Gt),i=this.injector.get(on);if(this.isLegacyDisabled(i)||this.isLegacyEnabled(i))e(!0);else if("disabled"===i.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==i.initialNavigation)throw new Error(`Invalid initialNavigation options: '${i.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?Object(s.a)(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()}return t})}bootstrapListener(e){const t=this.injector.get(on),n=this.injector.get(rn),i=this.injector.get(sn),s=this.injector.get(Gt),o=this.injector.get(r.g);e===o.components[0]&&(this.isLegacyEnabled(t)?s.initialNavigation():this.isLegacyDisabled(t)&&s.setUpLocationChangeListener(),n.setUpPreloading(),i.init(),s.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}isLegacyDisabled(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}return e.\u0275fac=function(t){return new(t||e)(r.dc(r.s))},e.\u0275prov=r.Ib({token:e,factory:e.\u0275fac}),e})();function bn(e){return e.appInitializer.bind(e)}function gn(e){return e.bootstrapListener.bind(e)}const _n=new r.r("Router Initializer")},iSVu:function(e,t,n){var i=n("xs3f"),r=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return r.call(e)}),e.exports=i.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"))},insk:function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));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.Sb(0,"cd-loading-panel"),s.Wb(1,2),s.Rb())}function p(e,t){1&e&&(s.Sb(0,"cd-alert-panel",3),s.cc(1,4),s.Nb(2,"cd-doc",5),s.Zb(),s.Rb())}function m(e,t){1&e&&(s.Sb(0,"cd-alert-panel",3),s.cc(1,6),s.Nb(2,"cd-doc",5),s.Zb(),s.Rb())}function b(e,t){if(1&e&&(s.Sb(0,"option",20),s.Oc(1),s.Rb()),2&e){const e=t.$implicit;s.pc("ngValue",e.value),s.yb(1),s.Qc("",e.name," ")}}const g=function(e){return[e]};function _(e,t){if(1&e){const e=s.Tb();s.Qb(0),s.Sb(1,"div",7),s.Sb(2,"div",8),s.Sb(3,"div",9),s.Sb(4,"label",10),s.Wb(5,11),s.Rb(),s.Sb(6,"select",12),s.gc("ngModelChange",(function(t){return s.Dc(e),s.ic().time=t}))("ngModelChange",(function(t){return s.Dc(e),s.ic().onTimepickerChange(t)})),s.Mc(7,b,2,2,"option",13),s.Rb(),s.Sb(8,"button",14),s.Yb(9,15),s.gc("click",(function(){return s.Dc(e),s.ic().reset()})),s.Nb(10,"i",16),s.Rb(),s.Rb(),s.Rb(),s.Rb(),s.Sb(11,"div",7),s.Sb(12,"div",8),s.Sb(13,"div",17),s.Nb(14,"iframe",18,19),s.Rb(),s.Rb(),s.Rb(),s.Pb()}if(2&e){const e=s.ic();s.yb(6),s.pc("ngModel",e.time),s.yb(1),s.pc("ngForOf",e.grafanaTimes),s.yb(3),s.pc("ngClass",s.uc(5,g,e.icons.undo)),s.yb(4),s.pc("src",e.grafanaSrc,s.Fc)("ngClass",e.panelStyle)}}let y=(()=>{class e{constructor(e,t){this.sanitizer=e,this.settingsService=t,this.grafanaExist=!1,this.mode="&kiosk",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"+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.Mb(o.b),s.Mb(i.a))},e.\u0275cmp=s.Gb({type:e,selectors:[["cd-grafana"]],inputs:{grafanaPath:"grafanaPath",grafanaStyle:"grafanaStyle",uid:"uid"},features:[s.wb],decls:4,vars:4,consts:function(){return[[4,"ngIf"],["type","info",4,"ngIf"],"Loading panel data...",["type","info"],"Please consult the " + "\ufffd#2\ufffd" + "" + "\ufffd/#2\ufffd" + " on how to configure and enable the monitoring functionality.",["section","grafana"],"Grafana Dashboard doesn't exist. Please refer to " + "\ufffd#2\ufffd" + "" + "\ufffd/#2\ufffd" + " on how to add dashboards to Grafana.",[1,"row"],[1,"col"],[1,"form-inline","timepicker"],["for","timepicker",1,"ml-1","my-1"],"Grafana Time Picker",["id","timepicker","name","timepicker",1,"custom-select","my-1","mx-3",3,"ngModel","ngModelChange"],[3,"ngValue",4,"ngFor","ngForOf"],[1,"btn","btn-light","my-1",3,"click",6,"title"],["title","Reset Settings"],[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.Mc(0,f,2,0,"cd-loading-panel",0),s.Mc(1,p,3,0,"cd-alert-panel",1),s.Mc(2,m,3,0,"cd-alert-panel",1),s.Mc(3,_,16,7,"ng-container",0)),2&e&&(s.pc("ngIf",t.loading&&t.grafanaExist),s.yb(1),s.pc("ngIf",!t.grafanaExist),s.yb(1),s.pc("ngIf",!t.dashboardExist),s.yb(1),s.pc("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.B],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=void 0,n=void 0;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"])}}},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.\u0275mod=c.Kb({type:e}),e.\u0275inj=c.Jb({factory:function(t){return new(t||e)},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){var n=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+i).toString(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}},kmMV:function(e,t,n){"use strict";var i,r,s=n("rW0t"),o=n("n3/R"),a=RegExp.prototype.exec,c=String.prototype.replace,l=a,u=(r=/b*/g,a.call(i=/a/,"a"),a.call(r,"a"),0!==i.lastIndex||0!==r.lastIndex),d=o.UNSUPPORTED_Y||o.BROKEN_CARET,h=void 0!==/()??/.exec("")[1];(u||h||d)&&(l=function(e){var t,n,i,r,o=this,l=d&&o.sticky,f=s.call(o),p=o.source,m=0,b=e;return l&&(-1===(f=f.replace("y","")).indexOf("g")&&(f+="g"),b=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==e[o.lastIndex-1])&&(p="(?: "+p+")",b=" "+b,m++),n=new RegExp("^(?:"+p+")",f)),h&&(n=new RegExp("^"+p+"$(?!\\s)",f)),u&&(t=o.lastIndex),i=a.call(l?n:o,b),l?i?(i.input=i.input.slice(m),i[0]=i[0].slice(m),i.index=o.lastIndex,o.lastIndex+=i[0].length):o.lastIndex=0:u&&i&&(o.lastIndex=o.global?i.index+i[0].length:t),h&&i&&i.length>1&&c.call(i[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)})),i}),e.exports=l},"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.dc(a.a),d.dc(c.a),d.dc(u.a),d.dc(l.a))},e.\u0275prov=d.Ib({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=/#|\.prototype\./,s=function(e,t){var n=a[o(e)];return n==l||n!=c&&("function"==typeof t?i(t):!!t)},o=s.normalize=function(e){return String(e).replace(r,".").toLowerCase()},a=s.data={},c=s.NATIVE="N",l=s.POLYFILL="P";e.exports=s},"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.dc(c.A))},e.\u0275prov=c.Ib({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.dc(c.A))},e.\u0275prov=c.Ib({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.dc(u),c.dc(d))},e.\u0275prov=c.Ib({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.dc(h))},e.\u0275prov=c.Ib({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"))},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("g6v/"),r=n("DPsx"),s=n("glrk"),o=n("wE6v"),a=Object.defineProperty;t.f=i?a:function(e,t,n){if(s(e),t=o(t,!0),s(n),r)try{return a(e,t,n)}catch(i){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},m92n:function(e,t,n){var i=n("glrk");e.exports=function(e,t,n,r){try{return r?t(i(n)[0],n[1]):t(n)}catch(o){var s=e.return;throw void 0!==s&&i(s.call(e)),o}}},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.dc(u.b),l.dc(c.a))},e.\u0275prov=l.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),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){"use strict";var i=n("0Dky");function r(e,t){return RegExp(e,t)}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")}))},n6bG:function(e,t,n){"use strict";function i(e){return"function"==typeof e}n.d(t,"a",(function(){return i}))},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.Lb({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.Mb(i.a))},e.\u0275pipe=r.Lb({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.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},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}}},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.Mb(r.m))},e.\u0275dir=r.Hb({type:e,selectors:[["",8,"form-group"]],contentQueries:function(e,t,n){var s;1&e&&r.Fb(n,i.i,!1),2&e&&r.zc(s=r.hc())&&(t.formControlNames=s)},hostVars:4,hostBindings:function(e,t){2&e&&r.Eb("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 vo})),n.d(t,"b",(function(){return Fo})),n.d(t,"c",(function(){return oa}));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++Re.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 y(e){return null!==e&&"object"==typeof e}function v(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 S(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function M(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return y(e)&&!0===e[n]}}function k(e){return void 0!==f().Map&&e instanceof f().Map}function x(e){return e instanceof Set}function D(e){for(var t=[];;){var n=e.next();if(n.done)break;t.push(n.value)}return t}function T(){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){S(e,O(),t)}function R(e){return e[O()]=A,e}function E(){return"function"==typeof Symbol&&Symbol.toStringTag||"@@toStringTag"}function A(){return this}var I=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 je(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&&Fe(i,e),i.onBecomeStale()),i.dependenciesState=oe.STALE}}}(this),Ne()},e.prototype.toString=function(){return this.name},e}(),P=M("Atom",I);function N(e,t){return e===t}var j={identity:N,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)||N(e,t)},shallow:function(e,t){return Gt(e,t,1)}},F={},Y={};function z(e,t){var n=t?F:Y;return n[e]||(n[e]={configurable:!0,enumerable:t,get:function(){return $(this),this[e]},set:function(t){$(this),this[e]=t}})}function $(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 H(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},z(r,e))};return W(arguments)?(n=u,i.apply(null,arguments)):(n=Array.prototype.slice.call(arguments),i)}}function W(e){return(2===e.length||3===e.length)&&"string"==typeof e[1]||4===e.length&&!0===e[3]}function V(e,t,n){return at(e)?e:Array.isArray(e)?te.array(e,{name:n}):v(e)?te.object(e,void 0,{name:n}):k(e)?te.map(e,{name:n}):x(e)?te.set(e,{name:n}):e}function B(e){return e}function U(e){var t=H(!0,(function(t,n,i,r,s){!function(e,t,n,i){var r=Yt(e);if(ut(r)){var s=ht(r,{object:e,name:t,type:"add",newValue:n});if(!s)return;n=s.newValue}n=(r.values[t]=new De(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=ft(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&&mt(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 G={deep:!0,name:void 0,defaultDecorator:void 0};function q(e){return null==e?G:"string"==typeof e?{name:e,deep:!0}:e}function J(e){return e.defaultDecorator?e.defaultDecorator.enhancer:!1===e.deep?B:V}Object.freeze(G),Object.freeze({deep:!1,name:void 0,defaultDecorator:void 0});var Q=U(V),K=U((function(e,t,n){return null==e||Vt(e)||Lt(e)||It(e)||jt(e)?e:Array.isArray(e)?te.array(e,{name:n,deep:!1}):v(e)?te.object(e,void 0,{name:n,deep:!1}):k(e)?te.map(e,{name:n,deep:!1}):x(e)?te.set(e,{name:n,deep:!1}):m(!1)})),Z=U(B),X=U((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 De(e,J(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,J(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 Et(e,J(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 Nt(e,J(n),n.name)},object:function(e,t,n){"string"==typeof arguments[1]&&ne("object");var i=q(n);return rt({},e,t,i)},shallowObject:function(e,t){return"string"==typeof arguments[1]&&ne("shallowObject"),te.object(e,{},{name:t,deep:!1})},ref:Z,shallow:K,deep:Q,struct:X},te=function(e,t,n){if("string"==typeof arguments[1])return Q.apply(null,arguments);if(at(e))return e;var i=v(e)?te.object(e,t,n):Array.isArray(e)?te.array(e,t):k(e)?te.map(e,t):x(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=H(!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=Yt(s),c.name=l.name+"."+o,c.context=s,l.values[o]=new Te(c),Object.defineProperty(s,o,function(e){return $t[e]||($t[e]={configurable:Re.computedConfigurable,enumerable:!1,get:function(){return Ht(this).read(this,e)},set:function(t){Ht(this).write(this,e,t)}})}(o))})),re=ie({equals:j.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 Te(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(Re.disableErrorBoundaries)s.get();else try{s.get()}catch(o){return be(t),!0}if(e.dependenciesState===oe.STALE)return be(t),!0}}return ye(e),be(t),!1}}function de(e){var t=e.observers.length>0;Re.computationDepth>0&&t&&m(!1),Re.allowStateChanges||!t&&"strict"!==Re.enforceActions||m(!1)}function he(e,t,n){var i=ge(!0);ye(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++Re.runId;var r,s=Re.trackingDerivation;if(Re.trackingDerivation=e,!0===Re.disableErrorBoundaries)r=t.call(n);else try{r=t.call(n)}catch(o){r=new ce(o)}return Re.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&&Ae(a,e),a.diffValue=0;for(;r--;){var a;1===(a=n[r]).diffValue&&(a.diffValue=0,Ee(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--;)Ae(t[n],e);e.dependenciesState=oe.NOT_TRACKING}function pe(e){var t=me(),n=e();return be(t),n}function me(){var e=Re.trackingDerivation;return Re.trackingDerivation=null,e}function be(e){Re.trackingDerivation=e}function ge(e){var t=Re.allowStateReads;return Re.allowStateReads=e,t}function _e(e){Re.allowStateReads=e}function ye(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 ve=0,we=1;function Se(e,t){var n=function(){return Me(e,t,this,arguments)};return n.isMobxAction=!0,n}function Me(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:ke(!0),prevAllowStateReads:ge(!0),notifySpy:i,startTime:r,actionId:we++,parentActionId:ve};return ve=l.actionId,l}(e,n,i);try{return t.apply(n,i)}catch(s){throw r.error=s,s}finally{!function(e){ve!==e.actionId&&m("invalid action stack. did you forget to finish an action?"),ve=e.parentActionId,void 0!==e.error&&(Re.suppressReactionErrors=!0),xe(e.prevAllowStateChanges),_e(e.prevAllowStateReads),Ne(),be(e.prevDerivation),e.notifySpy&&Ue({time:Date.now()-e.startTime}),Re.suppressReactionErrors=!1}(r)}}function ke(e){var t=Re.allowStateChanges;return Re.allowStateChanges=e,t}function xe(e){Re.allowStateChanges=e}var De=function(e){function t(t,n,i,r,s){void 0===i&&(i="ObservableValue@"+p()),void 0===r&&(r=!0),void 0===s&&(s=j.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()&&We({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))!==Re.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),ut(this)){var t=ht(this,{object:this,type:"update",newValue:e});if(!t)return Re.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?Re.UNCHANGED:e},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),ft(this)&&mt(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 dt(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),pt(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}(I);De.prototype[T()]=De.prototype.valueOf,M("ObservableValue",De);var Te=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=Se(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?j.structural:j.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&&Fe(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!==Re.inBatch||0!==this.observers.length||this.keepAlive?(je(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),Ne());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()&&We({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,Re.computationDepth++,e)t=he(this,this.derivation,this.scope);else if(!0===Re.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(n){t=new ce(n)}return Re.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}();Te.prototype[T()]=Te.prototype.valueOf;var Ce=M("ComputedValue",Te),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,Re=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 Ee(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 Ae(e,t){if(1===e.observers.length)e.observers.length=0,Ie(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 Ie(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,Re.pendingUnobservations.push(e))}function Pe(){Re.inBatch++}function Ne(){if(0==--Re.inBatch){ze();for(var e=Re.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 Te&&n.suspend())}Re.pendingUnobservations=[]}}function je(e){var t=Re.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&&Re.inBatch>0&&Ie(e),!1)}function Fe(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===ae.BREAK){var n=[];!function e(t,n,i){n.length>=1e3?n.push("(and many more)"):(n.push(""+new Array(i).join("\t")+t.name),t.dependencies&&t.dependencies.forEach((function(t){return e(t,n,i+1)})))}((i=e,st(Bt(i,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 Te?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n    ")()}var i}var Ye=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,Re.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()&&We({name:this.name,type:"scheduled-reaction"})}catch(e){this.reportExceptionInDerivation(e)}}Ne()}},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}),Ne()},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(Re.disableErrorBoundaries)throw e;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";Re.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,e),He()&&We({type:"error",name:this.name,message:n,error:""+e}),Re.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Pe(),fe(this),Ne()))},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=ct(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(){Re.inBatch>0||Re.isRunningReactions||function(){Re.isRunningReactions=!0;for(var e=Re.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()}Re.isRunningReactions=!1}()}var $e=M("Reaction",Ye);function He(){return!!Re.spyListeners.length}function We(e){if(Re.spyListeners.length)for(var t=Re.spyListeners,n=0,i=t.length;n<i;n++)t[n](e)}function Ve(e){We(a({},e,{spyReportStart:!0}))}var Be={spyReportEnd:!0};function Ue(e){We(e?a({},e,{spyReportEnd:!0}):Be)}function Ge(){m(!1)}function qe(e){return function(t,n,i){if(i){if(i.value)return{value:Se(e,i.value),enumerable:!1,configurable:!0,writable:!0};var r=i.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return Se(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,Qe(e,t))}})}}var Qe=function(e,t,n,i){return 1===arguments.length&&"function"==typeof e?Se(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof t?Se(e,t):1===arguments.length&&"string"==typeof e?qe(e):!0!==i?qe(t).apply(null,arguments):void(e[t]=Se(e.name||t,n.value))};function Ke(e,t,n){w(e,t,Se(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=et(t),s=!1;n=new Ye(i,(function(){s||(s=!0,r((function(){s=!1,n.isDisposed||n.track(o)})))}),t.onError,t.requiresObservable)}else n=new Ye(i,(function(){this.track(o)}),t.onError,t.requiresObservable);function o(){e(n)}return n.schedule(),n.getDisposer()}Qe.bound=function(e,t,n,i){return!0===i?(Ke(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return Ke(this,t,n.value||n.initializer.call(this)),this[t]},set:Ge}:{enumerable:!1,configurable:!0,set:function(e){Ke(this,t,e)},get:function(){}}};var Xe=function(e){return e()};function et(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Xe}function tt(e,t,n){void 0===n&&(n=d),"boolean"==typeof n&&(n={fireImmediately:n});var i,r,s,o=n.name||"Reaction@"+p(),a=Qe(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=et(n),u=!0,h=!1,f=n.compareStructural?j.structural:n.equals||j.default,m=new Ye(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 nt(e,t,n){return it("onBecomeUnobserved",e,t,n)}function it(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 rt(e,t,n,i){var r=(i=q(i)).defaultDecorator||(!1===i.deep?Z:Q);$(e),Yt(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{Ne()}return e}function st(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(st)),i}function ot(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 at(e){return 1!==arguments.length&&m(!1),ot(e)}function ct(e){switch(e.length){case 0:return Re.trackingDerivation;case 1:return Bt(e[0]);case 2:return Bt(e[0],e[1])}}function lt(e,t){void 0===t&&(t=void 0),Pe();try{return e.apply(t)}finally{Ne()}}function ut(e){return void 0!==e.interceptors&&e.interceptors.length>0}function dt(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 ht(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 ft(e){return void 0!==e.changeListeners&&e.changeListeners.length>0}function pt(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 mt(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 bt,gt,_t,yt,vt=(bt=!1,gt={},Object.defineProperty(gt,"0",{set:function(){bt=!0}}),Object.create(gt)[0]=1,!1===bt),wt=0,St=function(){return function(){}}();_t=St,yt=Array.prototype,void 0!==Object.setPrototypeOf?Object.setPrototypeOf(_t.prototype,yt):void 0!==_t.prototype.__proto__?_t.prototype.__proto__=yt:_t.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 Mt=function(){function e(e,t,n,i){this.array=n,this.owned=i,this.values=[],this.lastKnownLength=0,this.atom=new I(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 dt(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}),pt(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>wt&&Ct(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),ut(this)){var s=ht(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=ft(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&&mt(this,s),i&&Ue()},e.prototype.notifyArraySplice=function(e,t,n){var i=!this.owned&&He(),r=ft(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&&mt(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 Mt(i,n,s,r);if(S(s,"$mobx",o),t&&t.length){var a=ke(!0);s.spliceWithArray(0,0,t),xe(a)}return vt&&Object.defineProperty(o.array,"0",xt),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 Lt(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(ut(n)){var s=ht(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 R({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,E(),"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 xt=Dt(0);function Dt(e){return{enumerable:!1,configurable:!1,get:function(){return this.get(e)},set:function(t){this.set(e,t)}}}function Tt(e){Object.defineProperty(kt.prototype,""+e,Dt(e))}function Ct(e){for(var t=wt;t<e;t++)Tt(t);wt=e}Ct(1e3);var Ot=M("ObservableArrayAdministration",Mt);function Lt(e){return y(e)&&Ot(e.$mobx)}var Rt={},Et=function(){function e(e,t,n){if(void 0===t&&(t=V),void 0===n&&(n="ObservableMap@"+p()),this.enhancer=t,this.name=n,this.$mobx=Rt,this._keys=new kt(void 0,B,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(!Re.trackingDerivation)return this._has(e);var n=this._hasMap.get(e);if(!n){var i=n=new De(this._has(e),B,this.name+"."+At(e)+"?",!1);this._hasMap.set(e,i),nt(i,(function(){return t._hasMap.delete(e)}))}return n.get()},e.prototype.set=function(e,t){var n=this._has(e);if(ut(this)){var i=ht(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(ut(this)&&!(r=ht(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var n=He(),i=ft(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})),lt((function(){t._keys.remove(e),t._updateHasMapEntry(e,!1),t._data.get(e).setNewValue(void 0),t._data.delete(e)})),i&&mt(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))!==Re.UNCHANGED){var i=He(),r=ft(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&&mt(this,s),i&&Ue()}},e.prototype._addValue=function(e,t){var n=this;lt((function(){var i=new De(t,n.enhancer,n.name+"."+At(e),!1);n._data.set(e,i),t=i.value,n._updateHasMapEntry(e,!0),n._keys.push(e)}));var i=He(),r=ft(this),s=r||i?{type:"add",object:this,name:e,newValue:t}:null;i&&Ve(a({},s,{name:this.name,key:e})),r&&mt(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 R({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 R({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 It(e)&&(e=e.toJS()),lt((function(){v(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])})):k(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;lt((function(){pe((function(){e._keys.slice().forEach((function(t){return e.delete(t)}))}))}))},e.prototype.replace=function(e){var t=this;return lt((function(){for(var n,i=k(n=e)||It(n)?n:Array.isArray(n)?new Map(n):v(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:At(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 At(t)+": "+e.get(t)})).join(", ")+" }]"},e.prototype.observe=function(e,t){return pt(this,e)},e.prototype.intercept=function(e){return dt(this,e)},e}();function At(e){return e&&e.toString?e.toString():new String(e).toString()}L(Et.prototype,(function(){return this.entries()})),S(Et.prototype,E(),"Map");var It=M("ObservableMap",Et),Pt={},Nt=function(){function e(e,t,n){if(void 0===t&&(t=V),void 0===n&&(n="ObservableSet@"+p()),this.name=n,this.$mobx=Pt,this._data=new Set,this._atom=function(e,t,n){void 0===t&&(t=_),void 0===n&&(n=_);var i=new I(e);return it("onBecomeObserved",i,t,void 0),nt(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;lt((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),ut(this)&&!(r=ht(this,{type:"add",object:this,newValue:e})))return this;if(!this.has(e)){lt((function(){t._data.add(t.enhancer(e,void 0)),t._atom.reportChanged()}));var n=He(),i=ft(this),r=i||n?{type:"add",object:this,newValue:e}:null;i&&mt(this,r)}return this},e.prototype.delete=function(e){var t=this;if(ut(this)&&!(r=ht(this,{type:"delete",object:this,oldValue:e})))return!1;if(this.has(e)){var n=He(),i=ft(this),r=i||n?{type:"delete",object:this,oldValue:e}:null;return lt((function(){t._atom.reportChanged(),t._data.delete(e)})),i&&mt(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=D(this.keys()),n=D(this.values());return R({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=D(this._data.values()):(e=[],this._data.forEach((function(t){return e.push(t)}))),R({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()),lt((function(){Array.isArray(e)||x(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 pt(this,e)},e.prototype.intercept=function(e){return dt(this,e)},e.prototype.toJS=function(){return new Set(this)},e.prototype.toString=function(){return this.name+"[ "+D(this.keys()).join(", ")+" ]"},e}();L(Nt.prototype,(function(){return this.values()})),S(Nt.prototype,E(),"Set");var jt=M("ObservableSet",Nt),Ft=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 Te)r.set(n);else{if(ut(this)){if(!(c=ht(this,{type:"update",object:i,name:t,newValue:n})))return;n=c.newValue}if((n=r.prepareNewValue(n))!==Re.UNCHANGED){var s=ft(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&&mt(this,c),o&&Ue()}}},e.prototype.remove=function(e){if(this.values[e]){var t=this.target;if(ut(this)&&!(s=ht(this,{object:t,name:e,type:"remove"})))return;try{Pe();var n=ft(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&&mt(this,s),i&&Ue()}finally{Ne()}}},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 pt(this,e)},e.prototype.intercept=function(e){return dt(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 De})),B,"keys("+this.name+")",!0)),this.keys.slice()},e}();function Yt(e,t,n){void 0===t&&(t=""),void 0===n&&(n=V);var i=e.$mobx;return i||(v(e)||(t=(e.constructor.name||"ObservableObject")+"@"+p()),t||(t="ObservableObject@"+p()),S(e,"$mobx",i=new Ft(e,t,n)),i)}var zt=Object.create(null),$t=Object.create(null);function Ht(e){return e.$mobx||($(e),e.$mobx)}var Wt=M("ObservableObjectAdministration",Ft);function Vt(e){return!!y(e)&&($(e),Wt(e.$mobx))}function Bt(e,t){if("object"==typeof e&&null!==e){if(Lt(e))return void 0!==t&&m(!1),e.$mobx.atom;if(jt(e))return e.$mobx;if(It(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($(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)}var Ut=Object.prototype.toString;function Gt(e,t,n){return void 0===n&&(n=-1),function e(t,n,i,r,s){if(t===n)return 0!==t||1/t==1/n;if(null==t||null==n)return!1;if(t!=t)return n!=n;var o=typeof t;if("function"!==o&&"object"!==o&&"object"!=typeof n)return!1;t=qt(t),n=qt(n);var a=Ut.call(t);if(a!==Ut.call(n))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!=+t?+n!=+n:0==+t?1/+t==1/n:+t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(t)===Symbol.valueOf.call(n)}var c="[object Array]"===a;if(!c){if("object"!=typeof t||"object"!=typeof n)return!1;var l=t.constructor,u=n.constructor;if(l!==u&&!("function"==typeof l&&l instanceof l&&"function"==typeof u&&u instanceof u)&&"constructor"in t&&"constructor"in n)return!1}if(0===i)return!1;i<0&&(i=-1),s=s||[];for(var d=(r=r||[]).length;d--;)if(r[d]===t)return s[d]===n;if(r.push(t),s.push(n),c){if((d=t.length)!==n.length)return!1;for(;d--;)if(!e(t[d],n[d],i-1,r,s))return!1}else{var h=Object.keys(t),f=void 0;if(d=h.length,Object.keys(n).length!==d)return!1;for(;d--;)if(!Jt(n,f=h[d])||!e(t[f],n[f],i-1,r,s))return!1}return r.pop(),s.pop(),!0}(e,t,n)}function qt(e){return Lt(e)?e.peek():k(e)||It(e)||x(e)||jt(e)?D(e.entries()):e}function Jt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return Re.spyListeners.push(e),g((function(){Re.spyListeners=Re.spyListeners.filter((function(t){return t!==e}))}))},extras:{getDebugName:function(e,t){return(void 0!==t?Bt(e,t):Vt(e)||It(e)||jt(e)?function e(t,n){return t||m("Expecting some object"),void 0!==n?e(Bt(t,n)):P(t)||Ce(t)||$e(t)||It(t)||jt(t)?t:($(t),t.$mobx?t.$mobx:void m(!1))}(e):Bt(e)).name}},$mobx:"$mobx"});var Qt,Kt,Zt,Xt,en=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)},tn=function(e){return e},nn=Math.max,rn=function(e,t,n){return t=nn(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,s=nn(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),en(e,this,a)}},sn=n("Ju5/"),on=sn.a.Symbol,an=Object.prototype,cn=an.hasOwnProperty,ln=an.toString,un=on?on.toStringTag:void 0,dn=Object.prototype.toString,hn=on?on.toStringTag:void 0,fn=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":hn&&hn in Object(e)?function(e){var t=cn.call(e,un),n=e[un];try{e[un]=void 0;var i=!0}catch(s){}var r=ln.call(e);return i&&(t?e[un]=n:delete e[un]),r}(e):function(e){return dn.call(e)}(e)},pn=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},mn=function(e){if(!pn(e))return!1;var t=fn(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},bn=sn.a["__core-js_shared__"],gn=(Qt=/[^.]+$/.exec(bn&&bn.keys&&bn.keys.IE_PROTO||""))?"Symbol(src)_1."+Qt:"",_n=Function.prototype.toString,yn=function(e){if(null!=e){try{return _n.call(e)}catch(t){}try{return e+""}catch(t){}}return""},vn=/^\[object .+?Constructor\]$/,wn=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Sn=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!pn(e)||(t=e,gn&&gn in t))&&(mn(e)?wn:vn).test(yn(e));var t}(n)?n:void 0},Mn=function(){try{var e=Sn(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),kn=Date.now,xn=(Kt=Mn?function(e,t){return Mn(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:tn,Zt=0,Xt=0,function(){var e=kn(),t=16-(e-Xt);if(Xt=e,t>0){if(++Zt>=800)return arguments[0]}else Zt=0;return Kt.apply(void 0,arguments)}),Dn=function(e,t){return xn(rn(e,t,tn),e+"")},Tn=function(e,t){return e===t||e!=e&&t!=t},Cn=function(e,t){for(var n=e.length;n--;)if(Tn(e[n][0],t))return n;return-1},On=Array.prototype.splice;function Ln(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])}}Ln.prototype.clear=function(){this.__data__=[],this.size=0},Ln.prototype.delete=function(e){var t=this.__data__,n=Cn(t,e);return!(n<0||(n==t.length-1?t.pop():On.call(t,n,1),--this.size,0))},Ln.prototype.get=function(e){var t=this.__data__,n=Cn(t,e);return n<0?void 0:t[n][1]},Ln.prototype.has=function(e){return Cn(this.__data__,e)>-1},Ln.prototype.set=function(e,t){var n=this.__data__,i=Cn(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};var Rn=Ln,En=Sn(sn.a,"Map"),An=Sn(Object,"create"),In=Object.prototype.hasOwnProperty,Pn=Object.prototype.hasOwnProperty;function Nn(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])}}Nn.prototype.clear=function(){this.__data__=An?An(null):{},this.size=0},Nn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Nn.prototype.get=function(e){var t=this.__data__;if(An){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return In.call(t,e)?t[e]:void 0},Nn.prototype.has=function(e){var t=this.__data__;return An?void 0!==t[e]:Pn.call(t,e)},Nn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=An&&void 0===t?"__lodash_hash_undefined__":t,this};var jn=Nn,Fn=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 Yn(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])}}Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new jn,map:new(En||Rn),string:new jn}},Yn.prototype.delete=function(e){var t=Fn(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return Fn(this,e).get(e)},Yn.prototype.has=function(e){return Fn(this,e).has(e)},Yn.prototype.set=function(e,t){var n=Fn(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};var zn=Yn;function $n(e){var t=this.__data__=new Rn(e);this.size=t.size}$n.prototype.clear=function(){this.__data__=new Rn,this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},$n.prototype.get=function(e){return this.__data__.get(e)},$n.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Rn){var i=n.__data__;if(!En||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new zn(i)}return n.set(e,t),this.size=n.size,this};var Hn=$n,Wn=function(e,t,n){"__proto__"==t&&Mn?Mn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Vn=function(e,t,n){(void 0!==n&&!Tn(e[t],n)||void 0===n&&!(t in e))&&Wn(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},Un=n("3/ER"),Gn=sn.a.Uint8Array,qn=function(e){var t=new e.constructor(e.byteLength);return new Gn(t).set(new Gn(e)),t},Jn=function(e,t){var n=t?qn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},Qn=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},Kn=Object.create,Zn=function(){function e(){}return function(t){if(!pn(t))return{};if(Kn)return Kn(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Xn=function(e,t){return function(n){return e(t(n))}},ei=Xn(Object.getPrototypeOf,Object),ti=Object.prototype,ni=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ti)},ii=function(e){return"function"!=typeof e.constructor||ni(e)?{}:Zn(ei(e))},ri=function(e){return null!=e&&"object"==typeof e},si=function(e){return ri(e)&&"[object Arguments]"==fn(e)},oi=Object.prototype,ai=oi.hasOwnProperty,ci=oi.propertyIsEnumerable,li=si(function(){return arguments}())?si:function(e){return ri(e)&&ai.call(e,"callee")&&!ci.call(e,"callee")},ui=Array.isArray,di=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},hi=function(e){return null!=e&&di(e.length)&&!mn(e)},fi=n("WOAq"),pi=Function.prototype.toString,mi=Object.prototype.hasOwnProperty,bi=pi.call(Object),gi=function(e){if(!ri(e)||"[object Object]"!=fn(e))return!1;var t=ei(e);if(null===t)return!0;var n=mi.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&pi.call(n)==bi},_i={};_i["[object Float32Array]"]=_i["[object Float64Array]"]=_i["[object Int8Array]"]=_i["[object Int16Array]"]=_i["[object Int32Array]"]=_i["[object Uint8Array]"]=_i["[object Uint8ClampedArray]"]=_i["[object Uint16Array]"]=_i["[object Uint32Array]"]=!0,_i["[object Arguments]"]=_i["[object Array]"]=_i["[object ArrayBuffer]"]=_i["[object Boolean]"]=_i["[object DataView]"]=_i["[object Date]"]=_i["[object Error]"]=_i["[object Function]"]=_i["[object Map]"]=_i["[object Number]"]=_i["[object Object]"]=_i["[object RegExp]"]=_i["[object Set]"]=_i["[object String]"]=_i["[object WeakMap]"]=!1;var yi,vi=function(e){return function(t){return e(t)}},wi=n("xutz"),Si=wi.a&&wi.a.isTypedArray,Mi=Si?vi(Si):function(e){return ri(e)&&di(e.length)&&!!_i[fn(e)]},ki=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},xi=Object.prototype.hasOwnProperty,Di=function(e,t,n){var i=e[t];xi.call(e,t)&&Tn(i,n)&&(void 0!==n||t in e)||Wn(e,t,n)},Ti=function(e,t,n,i){var r=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var a=t[s],c=i?i(n[a],e[a],a,n,e):void 0;void 0===c&&(c=e[a]),r?Wn(n,a,c):Di(n,a,c)}return n},Ci=/^(?:0|[1-9]\d*)$/,Oi=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Ci.test(e))&&e>-1&&e%1==0&&e<t},Li=Object.prototype.hasOwnProperty,Ri=function(e,t){var n=ui(e),i=!n&&li(e),r=!n&&!i&&Object(fi.a)(e),s=!n&&!i&&!r&&Mi(e),o=n||i||r||s,a=o?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],c=a.length;for(var l in e)!t&&!Li.call(e,l)||o&&("length"==l||r&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Oi(l,c))||a.push(l);return a},Ei=Object.prototype.hasOwnProperty,Ai=function(e){return hi(e)?Ri(e,!0):function(e){if(!pn(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ni(e),n=[];for(var i in e)("constructor"!=i||!t&&Ei.call(e,i))&&n.push(i);return n}(e)},Ii=function e(t,n,i,r,s){t!==n&&Bn(n,(function(o,a){if(s||(s=new Hn),pn(o))!function(e,t,n,i,r,s,o){var a,c=ki(e,n),l=ki(t,n),u=o.get(l);if(u)Vn(e,n,u);else{var d=s?s(c,l,n+"",e,t,o):void 0,h=void 0===d;if(h){var f=ui(l),p=!f&&Object(fi.a)(l),m=!f&&!p&&Mi(l);d=l,f||p||m?ui(c)?d=c:ri(a=c)&&hi(a)?d=Qn(c):p?(h=!1,d=Object(Un.a)(l,!0)):m?(h=!1,d=Jn(l,!0)):d=[]:gi(l)||li(l)?(d=c,li(c)?d=function(e){return Ti(e,Ai(e))}(c):pn(c)&&!mn(c)||(d=ii(l))):h=!1}h&&(o.set(l,d),r(d,l,i,s,o),o.delete(l)),Vn(e,n,d)}}(t,n,a,i,e,r,s);else{var c=r?r(ki(t,a),o,a+"",t,n,s):void 0;void 0===c&&(c=o),Vn(t,a,c)}}),Ai)},Pi=function e(t,n,i,r,s,o){return pn(t)&&pn(n)&&(o.set(n,t),Ii(t,n,void 0,e,o),o.delete(n)),t},Ni=function(e,t,n){if(!pn(n))return!1;var i=typeof t;return!!("number"==i?hi(n)&&Oi(t,n.length):"string"==i&&t in n)&&Tn(n[t],e)},ji=(yi=function(e,t,n,i){Ii(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=yi.length>3&&"function"==typeof r?(i--,r):void 0,s&&Ni(t[0],t[1],s)&&(r=i<3?void 0:r,i=1),e=Object(e);++n<i;){var o=t[n];o&&yi(e,o,n,r)}return e}))),Fi=Dn((function(e){return e.push(void 0,Pi),en(ji,void 0,e)})),Yi=function(e){return"symbol"==typeof e||ri(e)&&"[object Symbol]"==fn(e)},zi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$i=/^\w*$/,Hi=function(e,t){if(ui(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Yi(e))||$i.test(e)||!zi.test(e)||null!=t&&e in Object(t)};function Wi(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(Wi.Cache||zn),n}Wi.Cache=zn;var Vi,Bi,Ui=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gi=/\\(\\)?/g,qi=(Vi=Wi((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ui,(function(e,n,i,r){t.push(i?r.replace(Gi,"$1"):n||e)})),t}),(function(e){return 500===Bi.size&&Bi.clear(),e})),Bi=Vi.cache,Vi),Ji=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},Qi=on?on.prototype:void 0,Ki=Qi?Qi.toString:void 0,Zi=function(e,t){return ui(e)?e:Hi(e,t)?[e]:qi(function(e){return null==e?"":function e(t){if("string"==typeof t)return t;if(ui(t))return Ji(t,e)+"";if(Yi(t))return Ki?Ki.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}(e)}(e))},Xi=function(e){if("string"==typeof e||Yi(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},er=function(e,t){for(var n=0,i=(t=Zi(t,e)).length;null!=e&&n<i;)e=e[Xi(t[n++])];return n&&n==i?e:void 0},tr=function(e,t,n){var i=null==e?void 0:er(e,t);return void 0===i?n:i},nr=Xn(Object.keys,Object),ir=Object.prototype.hasOwnProperty,rr=function(e){return hi(e)?Ri(e):function(e){if(!ni(e))return nr(e);var t=[];for(var n in Object(e))ir.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)},sr=function(){return[]},or=Object.prototype.propertyIsEnumerable,ar=Object.getOwnPropertySymbols,cr=ar?function(e){return null==e?[]:(e=Object(e),function(t,n){for(var i=-1,r=null==t?0:t.length,s=0,o=[];++i<r;){var a=t[i];or.call(e,a)&&(o[s++]=a)}return o}(ar(e)))}:sr,lr=function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e},ur=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)lr(t,cr(e)),e=ei(e);return t}:sr,dr=function(e,t,n){var i=t(e);return ui(e)?i:lr(i,n(e))},hr=function(e){return dr(e,rr,cr)},fr=function(e){return dr(e,Ai,ur)},pr=Sn(sn.a,"DataView"),mr=Sn(sn.a,"Promise"),br=Sn(sn.a,"Set"),gr=Sn(sn.a,"WeakMap"),_r="[object Map]",yr="[object Promise]",vr="[object Set]",wr="[object WeakMap]",Sr="[object DataView]",Mr=yn(pr),kr=yn(En),xr=yn(mr),Dr=yn(br),Tr=yn(gr),Cr=fn;(pr&&Cr(new pr(new ArrayBuffer(1)))!=Sr||En&&Cr(new En)!=_r||mr&&Cr(mr.resolve())!=yr||br&&Cr(new br)!=vr||gr&&Cr(new gr)!=wr)&&(Cr=function(e){var t=fn(e),n="[object Object]"==t?e.constructor:void 0,i=n?yn(n):"";if(i)switch(i){case Mr:return Sr;case kr:return _r;case xr:return yr;case Dr:return vr;case Tr:return wr}return t});var Or=Cr,Lr=Object.prototype.hasOwnProperty,Rr=/\w*$/,Er=on?on.prototype:void 0,Ar=Er?Er.valueOf:void 0,Ir=wi.a&&wi.a.isMap,Pr=Ir?vi(Ir):function(e){return ri(e)&&"[object Map]"==Or(e)},Nr=wi.a&&wi.a.isSet,jr=Nr?vi(Nr):function(e){return ri(e)&&"[object Set]"==Or(e)},Fr="[object Arguments]",Yr="[object Function]",zr={};zr[Fr]=zr["[object Array]"]=zr["[object ArrayBuffer]"]=zr["[object DataView]"]=zr["[object Boolean]"]=zr["[object Date]"]=zr["[object Float32Array]"]=zr["[object Float64Array]"]=zr["[object Int8Array]"]=zr["[object Int16Array]"]=zr["[object Int32Array]"]=zr["[object Map]"]=zr["[object Number]"]=zr["[object Object]"]=zr["[object RegExp]"]=zr["[object Set]"]=zr["[object String]"]=zr["[object Symbol]"]=zr["[object Uint8Array]"]=zr["[object Uint8ClampedArray]"]=zr["[object Uint16Array]"]=zr["[object Uint32Array]"]=!0,zr["[object Error]"]=zr[Yr]=zr["[object WeakMap]"]=!1;var $r=function e(t,n,i,r,s,o){var a,c=1&n,l=2&n,u=4&n;if(i&&(a=s?i(t,r,s,o):i(t)),void 0!==a)return a;if(!pn(t))return t;var d=ui(t);if(d){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Lr.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!c)return Qn(t,a)}else{var h=Or(t),f=h==Yr||"[object GeneratorFunction]"==h;if(Object(fi.a)(t))return Object(Un.a)(t,c);if("[object Object]"==h||h==Fr||f&&!s){if(a=l||f?{}:ii(t),!c)return l?function(e,t){return Ti(e,ur(e),t)}(t,function(e,t){return e&&Ti(t,Ai(t),e)}(a,t)):function(e,t){return Ti(e,cr(e),t)}(t,function(e,t){return e&&Ti(t,rr(t),e)}(a,t))}else{if(!zr[h])return s?t:{};a=function(e,t,n){var i=e.constructor;switch(t){case"[object ArrayBuffer]":return qn(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return function(e,t){var n=t?qn(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 Jn(e,n);case"[object Map]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,Rr.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Set]":return new i;case"[object Symbol]":return Ar?Object(Ar.call(e)):{}}}(t,h,c)}}o||(o=new Hn);var p=o.get(t);if(p)return p;o.set(t,a),jr(t)?t.forEach((function(r){a.add(e(r,n,i,r,t,o))})):Pr(t)&&t.forEach((function(r,s){a.set(s,e(r,n,i,s,t,o))}));var m=u?l?fr:hr:l?keysIn:rr,b=d?void 0:m(t);return function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n););}(b||t,(function(r,s){b&&(r=t[s=r]),Di(a,s,e(r,n,i,s,t,o))})),a},Hr=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},Wr=function(e,t){return null==(e=function(e,t){return t.length<2?e:er(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=Zi(t,e)))||delete e[Xi(Hr(t))]},Vr=function(e){return gi(e)?void 0:e},Br=on?on.isConcatSpreadable:void 0,Ur=function(e){return ui(e)||li(e)||!!(Br&&e&&e[Br])},Gr=function(e){return null!=e&&e.length?function e(t,n,i,r,s){var o=-1,a=t.length;for(i||(i=Ur),s||(s=[]);++o<a;){var c=t[o];n>0&&i(c)?n>1?e(c,n-1,i,r,s):lr(s,c):r||(s[s.length]=c)}return s}(e,1):[]},qr=function(e){return xn(rn(e,void 0,Gr),e+"")},Jr=qr((function(e,t){var n={};if(null==e)return n;var i=!1;t=Ji(t,(function(t){return t=Zi(t,e),i||(i=t.length>1),t})),Ti(e,fr(e),n),i&&(n=$r(n,7,Vr));for(var r=t.length;r--;)Wr(n,t[r]);return n})),Qr=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 Kr(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new zn;++t<n;)this.add(e[t])}Kr.prototype.add=Kr.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Kr.prototype.has=function(e){return this.__data__.has(e)};var Zr=Kr,Xr=function(e,t){return e.has(t)},es=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);if(l&&s.get(t))return l==t;var u=-1,d=!0,h=2&n?new Zr:void 0;for(s.set(e,t),s.set(t,e);++u<a;){var f=e[u],p=t[u];if(i)var m=o?i(p,f,u,t,e,s):i(f,p,u,e,t,s);if(void 0!==m){if(m)continue;d=!1;break}if(h){if(!Qr(t,(function(e,t){if(!Xr(h,t)&&(f===e||r(f,e,n,i,s)))return h.push(t)}))){d=!1;break}}else if(f!==p&&!r(f,p,n,i,s)){d=!1;break}}return s.delete(e),s.delete(t),d},ts=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n},ns=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},is=on?on.prototype:void 0,rs=is?is.valueOf:void 0,ss=Object.prototype.hasOwnProperty,os="[object Arguments]",as="[object Array]",cs="[object Object]",ls=Object.prototype.hasOwnProperty,us=function e(t,n,i,r,s){return t===n||(null==t||null==n||!ri(t)&&!ri(n)?t!=t&&n!=n:function(e,t,n,i,r,s){var o=ui(e),a=ui(t),c=o?as:Or(e),l=a?as:Or(t),u=(c=c==os?cs:c)==cs,d=(l=l==os?cs:l)==cs,h=c==l;if(h&&Object(fi.a)(e)){if(!Object(fi.a)(t))return!1;o=!0,u=!1}if(h&&!u)return s||(s=new Hn),o||Mi(e)?es(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 Gn(e),new Gn(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Tn(+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=ts;case"[object Set]":if(a||(a=ns),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=es(a(e),a(t),i,r,s,o);return o.delete(e),l;case"[object Symbol]":if(rs)return rs.call(e)==rs.call(t)}return!1}(e,t,c,n,i,r,s);if(!(1&n)){var f=u&&ls.call(e,"__wrapped__"),p=d&&ls.call(t,"__wrapped__");if(f||p){var m=f?e.value():e,b=p?t.value():t;return s||(s=new Hn),r(m,b,n,i,s)}}return!!h&&(s||(s=new Hn),function(e,t,n,i,r,s){var o=1&n,a=hr(e),c=a.length;if(c!=hr(t).length&&!o)return!1;for(var l=c;l--;){var u=a[l];if(!(o?u in t:ss.call(t,u)))return!1}var d=s.get(e);if(d&&s.get(t))return d==t;var h=!0;s.set(e,t),s.set(t,e);for(var f=o;++l<c;){var p=e[u=a[l]],m=t[u];if(i)var b=o?i(m,p,u,t,e,s):i(p,m,u,e,t,s);if(!(void 0===b?p===m||r(p,m,n,i,s):b)){h=!1;break}f||(f="constructor"==u)}if(h&&!f){var g=e.constructor,_=t.constructor;g==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof _&&_ instanceof _||(h=!1)}return s.delete(e),s.delete(t),h}(e,t,n,i,r,s))}(t,n,i,r,e,s))},ds=function(e){return e==e&&!pn(e)},hs=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}},fs=function(e,t){return null!=e&&t in Object(e)},ps=function(e,t){return null!=e&&function(e,t,n){for(var i=-1,r=(t=Zi(t,e)).length,s=!1;++i<r;){var o=Xi(t[i]);if(!(s=null!=e&&n(e,o)))break;e=e[o]}return s||++i!=r?s:!!(r=null==e?0:e.length)&&di(r)&&Oi(o,r)&&(ui(e)||li(e))}(e,t,fs)},ms=function(e){return"function"==typeof e?e:null==e?tn:"object"==typeof e?ui(e)?(r=e[1],Hi(i=e[0])&&ds(r)?hs(Xi(i),r):function(e){var t=tr(e,i);return void 0===t&&t===r?ps(e,i):us(r,t,3)}):1==(n=function(e){for(var t=rr(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,ds(r)]}return t}(t=e)).length&&n[0][2]?hs(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;if(!(void 0===u?us(l,c,3,i,d):u))return!1}}return!0}(e,0,n)}:function(e){return Hi(e)?(t=Xi(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return er(t,e)}}(e);var t}(e);var t,n,i,r},bs=function(e,t){if(null==e)return e;if(!hi(e))return function(e,t){return e&&Bn(e,t,rr)}(e,t);for(var n=e.length,i=-1,r=Object(e);++i<n&&!1!==t(r[i],i,r););return e},gs=function(e,t){var n;return bs(e,(function(e,i,r){return!(n=t(e,i,r))})),!!n},_s=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},ys=function(e,t){var n=!0;return bs(e,(function(e,i,r){return n=!!t(e,i,r)})),n},vs=function(e){return e&&e.length?e[0]:void 0},ws=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},Ss=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},Ms=/^\s+|\s+$/g,ks=/^[-+]0x[0-9a-f]+$/i,xs=/^0b[01]+$/i,Ds=/^0o[0-7]+$/i,Ts=parseInt,Cs=function(e){if("number"==typeof e)return e;if(Yi(e))return NaN;if(pn(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=pn(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ms,"");var n=xs.test(e);return n||Ds.test(e)?Ts(e.slice(2),n?2:8):ks.test(e)?NaN:+e},Os=function(e){var t=function(e){return e?1/0===(e=Cs(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},Ls=Math.max,Rs=function(e,t,n){var i=Object(e);if(!hi(e)){var r=ms(t);e=rr(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:Os(n);return r<0&&(r=Ls(i+r,0)),Ss(e,ms(t),r)}(e,t,n);return s>-1?i[r?e[s]:s]:void 0},Es=function(e){return"string"==typeof e||!ui(e)&&ri(e)&&"[object String]"==fn(e)},As=function(){return sn.a.Date.now()},Is=Math.max,Ps=Math.min,Ns=function(e){return e!=e},js=Math.max,Fs=function(e,t,n,i){var r;e=hi(e)?e:null==(r=e)?[]:function(e,t){return Ji(t,(function(t){return e[t]}))}(r,rr(r)),n=n&&!i?Os(n):0;var s=e.length;return n<0&&(n=js(s+n,0)),Es(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):Ss(e,Ns,n)}(e,t,n)>-1},Ys=function(e,t,n,i){if(!pn(e))return e;for(var r=-1,s=(t=Zi(t,e)).length,o=s-1,a=e;null!=a&&++r<s;){var c=Xi(t[r]),l=n;if(r!=o){var u=a[c];void 0===(l=i?i(u,c,a):void 0)&&(l=pn(u)?u:Oi(t[r+1])?[]:{})}Di(a,c,l),a=a[c]}return e},zs=qr((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=er(e,o);n(0,o)&&Ys(s,Zi(o,e),a)}return s}(e,t,(function(t,n){return ps(e,n)}))}(e,t)}));function $s(e,t){1&e&&(i.Sb(0,"span"),i.Oc(1,"loading..."),i.Rb())}const Hs=function(e){return{$implicit:e}};function Ws(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"div"),i.nc(2),i.Rb(),i.Pb()),2&e){const e=i.ic();i.yb(1),i.Kc("height",e.getTotalHeight())}}const Vs=function(){return{dontDetach:!0}},Bs=["*"],Us=["loadingTemplate"],Gs=["treeNodeTemplate"],qs=["treeNodeWrapperTemplate"],Js=["treeNodeFullTemplate"],Qs=["viewport"],Ks=function(e,t,n,i){return{loadingTemplate:e,treeNodeTemplate:t,treeNodeWrapperTemplate:n,treeNodeFullTemplate:i}};function Zs(e,t){if(1&e&&i.Nb(0,"tree-node-collection",4),2&e){const e=i.ic();i.pc("nodes",e.treeModel.roots)("treeModel",e.treeModel)("templates",i.xc(3,Ks,e.loadingTemplate,e.treeNodeTemplate,e.treeNodeWrapperTemplate,e.treeNodeFullTemplate))}}function Xs(e,t){if(1&e&&i.Nb(0,"tree-node-drop-slot",5),2&e){const e=i.ic();i.pc("dropIndex",0)("node",e.treeModel.virtualRoot)}}function eo(e,t){if(1&e&&i.Nb(0,"tree-node-drop-slot",6),2&e){const e=i.ic(3);i.pc("dropIndex",e.node.index)("node",e.node.parent)}}function to(e,t){if(1&e&&(i.Sb(0,"div"),i.Mc(1,eo,1,2,"tree-node-drop-slot",3),i.Nb(2,"tree-node-wrapper",4),i.Nb(3,"tree-node-children",5),i.Nb(4,"tree-node-drop-slot",6),i.Rb()),2&e){const e=i.ic(2);i.Ab(e.node.getClass()),i.Eb("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.yb(1),i.pc("ngIf",0===e.index),i.yb(1),i.pc("node",e.node)("index",e.index)("templates",e.templates),i.yb(1),i.pc("node",e.node)("templates",e.templates),i.yb(1),i.pc("dropIndex",e.node.index+1)("node",e.node.parent)}}const no=function(e,t,n,i){return{$implicit:e,node:t,index:n,templates:i}};function io(e,t){if(1&e&&(i.Qb(0),i.Mc(1,to,5,22,"div",1),i.Ob(2,2),i.Pb()),2&e){const e=i.ic();i.yb(1),i.pc("ngIf",!e.templates.treeNodeFullTemplate),i.yb(1),i.pc("ngTemplateOutlet",e.templates.treeNodeFullTemplate)("ngTemplateOutletContext",i.xc(3,no,e.node,e.node,e.index,e.templates))}}function ro(e,t){if(1&e&&(i.Sb(0,"span"),i.Oc(1),i.Rb()),2&e){const e=i.ic();i.yb(1),i.Pc(e.node.displayField)}}const so=function(e,t,n){return{$implicit:e,node:t,index:n}};function oo(e,t){if(1&e){const e=i.Tb();i.Sb(0,"span",3),i.gc("click",(function(t){return i.Dc(e),i.ic(2).node.mouseAction("expanderClick",t)})),i.Nb(1,"span",4),i.Rb()}if(2&e){const e=i.ic(2);i.Eb("toggle-children-wrapper-expanded",e.node.isExpanded)("toggle-children-wrapper-collapsed",e.node.isCollapsed)}}function ao(e,t){1&e&&i.Nb(0,"span",5)}function co(e,t){if(1&e&&(i.Qb(0),i.Mc(1,oo,2,4,"span",1),i.Mc(2,ao,1,0,"span",2),i.Pb()),2&e){const e=i.ic();i.yb(1),i.pc("ngIf",e.node.hasChildren),i.yb(1),i.pc("ngIf",!e.node.hasChildren)}}function lo(e,t){if(1&e&&i.Nb(0,"tree-node-collection",4),2&e){const e=i.ic(3);i.pc("nodes",e.node.children)("templates",e.templates)("treeModel",e.node.treeModel)}}function uo(e,t){if(1&e&&i.Nb(0,"tree-loading-component",5),2&e){const e=i.ic(3);i.Kc("padding-left",e.node.getNodePadding()),i.pc("template",e.templates.loadingTemplate)("node",e.node)}}function ho(e,t){if(1&e&&(i.Sb(0,"div"),i.Mc(1,lo,1,3,"tree-node-collection",2),i.Mc(2,uo,1,4,"tree-loading-component",3),i.Rb()),2&e){const e=i.ic(2);i.Eb("tree-children",!0)("tree-children-no-padding",e.node.options.levelPadding),i.yb(1),i.pc("ngIf",e.node.children),i.yb(1),i.pc("ngIf",!e.node.children)}}function fo(e,t){if(1&e&&(i.Qb(0),i.Mc(1,ho,3,6,"div",1),i.Pb()),2&e){const e=i.ic();i.yb(1),i.pc("treeAnimateOpen",e.node.isExpanded)("treeAnimateOpenSpeed",e.node.options.animateSpeed)("treeAnimateOpenAcceleration",e.node.options.animateAcceleration)("treeAnimateOpenEnabled",e.node.options.animateExpand)}}function po(e,t){if(1&e&&i.Nb(0,"tree-node",2),2&e){const e=t.$implicit,n=t.index,r=i.ic(2);i.pc("node",e)("index",n)("templates",r.templates)}}function mo(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"div"),i.Mc(2,po,1,3,"tree-node",1),i.Rb(),i.Pb()),2&e){const e=i.ic();i.yb(1),i.Kc("margin-top",e.marginTop),i.yb(1),i.pc("ngForOf",e.viewportNodes)("ngForTrackBy",e.trackNode)}}function bo(e,t){if(1&e&&i.Nb(0,"tree-node-checkbox",4),2&e){const e=i.ic(2);i.pc("node",e.node)}}function go(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",2),i.Mc(1,bo,1,1,"tree-node-checkbox",3),i.Nb(2,"tree-node-expander",4),i.Sb(3,"div",5),i.gc("click",(function(t){return i.Dc(e),i.ic().node.mouseAction("click",t)}))("dblclick",(function(t){return i.Dc(e),i.ic().node.mouseAction("dblClick",t)}))("mouseover",(function(t){return i.Dc(e),i.ic().node.mouseAction("mouseOver",t)}))("mouseout",(function(t){return i.Dc(e),i.ic().node.mouseAction("mouseOut",t)}))("contextmenu",(function(t){return i.Dc(e),i.ic().node.mouseAction("contextMenu",t)}))("treeDrop",(function(t){return i.Dc(e),i.ic().node.onDrop(t)}))("treeDropDragOver",(function(t){return i.Dc(e),i.ic().node.mouseAction("dragOver",t)}))("treeDropDragLeave",(function(t){return i.Dc(e),i.ic().node.mouseAction("dragLeave",t)}))("treeDropDragEnter",(function(t){return i.Dc(e),i.ic().node.mouseAction("dragEnter",t)})),i.Nb(4,"tree-node-content",6),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.Kc("padding-left",e.node.getNodePadding()),i.yb(1),i.pc("ngIf",e.node.options.useCheckbox),i.yb(1),i.pc("node",e.node),i.yb(1),i.Eb("node-content-wrapper-active",e.node.isActive)("node-content-wrapper-focused",e.node.isFocused),i.pc("treeAllowDrop",e.node.allowDrop)("allowDragoverStyling",e.node.allowDragoverStyling())("treeDrag",e.node)("treeDragEnabled",e.node.allowDrag()),i.yb(1),i.pc("node",e.node)("index",e.index)("template",e.templates.treeNodeTemplate)}}function _o(e,t){if(1&e){const e=i.Tb();i.Qb(0),i.Sb(1,"input",1),i.gc("click",(function(t){return i.Dc(e),i.ic().node.mouseAction("checkboxClick",t)})),i.Rb(),i.Pb()}if(2&e){const e=i.ic();i.yb(1),i.pc("checked",e.node.isSelected)("indeterminate",e.node.isPartiallySelected)}}let yo=(()=>{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.Mb(i.L),i.Mb(i.P))},e.\u0275dir=i.Hb({type:e,selectors:[["","treeMobxAutorun",""]],inputs:{treeMobxAutorun:"treeMobxAutorun"}}),e})();const vo={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)}},wo={mouse:{click:vo.TOGGLE_ACTIVE,dblClick:null,contextMenu:null,expanderClick:vo.TOGGLE_EXPANDED,checkboxClick:vo.TOGGLE_SELECTED,drop:vo.MOVE_NODE},keys:{39:vo.DRILL_DOWN,37:vo.DRILL_UP,40:vo.NEXT_NODE,38:vo.PREVIOUS_NODE,32:vo.TOGGLE_ACTIVE,13:vo.TOGGLE_ACTIVE}};class So{constructor(e={}){this.options=e,this.actionMapping=Fi({},this.options.actionMapping,wo),e.rtl&&(this.actionMapping.keys[39]=tr(e,["actionMapping","keys",39])||vo.DRILL_UP,this.actionMapping.keys[37]=tr(e,["actionMapping","keys",37])||vo.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):Jr(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)||ri(e)&&"[object Number]"==fn(e)?this.options.dropSlotHeight:2;var e}}const Mo={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 ko=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},xo=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Do=(()=>{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):(t=e=>e.isSelected,(ui(e=this.children)?Qr:gs)(e,ms(t)));var e,t}get isAllSelected(){return this.isSelectable()?this.treeModel.isSelected(this):(t=e=>e.isAllSelected,(ui(e=this.children)?_s:ys)(e,ms(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 vs((e?this.visibleChildren:this.children)||[])}getLastChild(e=!1){return Hr((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:Mo.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=tt(()=>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:Mo.blur,node:t}),this.fireEvent({eventName:Mo.focus,node:this}),this}blur(){let e=this.treeModel.getFocusedNode();return this.treeModel.setFocusedNode(null),e&&this.fireEvent({eventName:Mo.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 ko([se,xo("design:type",Object),xo("design:paramtypes",[])],e.prototype,"isHidden",null),ko([se,xo("design:type",Object),xo("design:paramtypes",[])],e.prototype,"isExpanded",null),ko([se,xo("design:type",Object),xo("design:paramtypes",[])],e.prototype,"isActive",null),ko([se,xo("design:type",Object),xo("design:paramtypes",[])],e.prototype,"isFocused",null),ko([se,xo("design:type",Object),xo("design:paramtypes",[])],e.prototype,"isSelected",null),ko([se,xo("design:type",Object),xo("design:paramtypes",[])],e.prototype,"isAllSelected",null),ko([se,xo("design:type",Object),xo("design:paramtypes",[])],e.prototype,"isPartiallySelected",null),ko([te,xo("design:type",Array)],e.prototype,"children",void 0),ko([te,xo("design:type",Number)],e.prototype,"index",void 0),ko([te,xo("design:type",Object)],e.prototype,"position",void 0),ko([te,xo("design:type",Number)],e.prototype,"height",void 0),ko([se,xo("design:type",Number),xo("design:paramtypes",[])],e.prototype,"level",null),ko([se,xo("design:type",Array),xo("design:paramtypes",[])],e.prototype,"path",null),ko([se,xo("design:type",Object),xo("design:paramtypes",[])],e.prototype,"visibleChildren",null),ko([Qe,xo("design:type",Function),xo("design:paramtypes",[Object]),xo("design:returntype",void 0)],e.prototype,"setIsSelected",null),ko([Qe,xo("design:type",Function),xo("design:paramtypes",[]),xo("design:returntype",void 0)],e.prototype,"_initChildren",null),e})();var To=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},Co=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Oo=(()=>{class e{constructor(){this.options=new So,this.eventNames=Object.keys(Mo),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 vs(e?this.getVisibleRoots():this.roots)}getLastRoot(e=!1){return Hr(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 ws(e)}get activeNodes(){const e=Object.keys(this.activeNodeIds).filter(e=>this.activeNodeIds[e]).map(e=>this.getNodeById(e));return ws(e)}get hiddenNodes(){const e=Object.keys(this.hiddenNodeIds).filter(e=>this.hiddenNodeIds[e]).map(e=>this.getNodeById(e));return ws(e)}get selectedLeafNodes(){const e=Object.keys(this.selectedLeafNodeIds).filter(e=>this.selectedLeafNodeIds[e]).map(e=>this.getNodeById(e));return ws(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=Rs(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=Rs(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 So(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 Do(e,null,this,0),this.roots=this.virtualRoot.children,this.firstUpdate?this.roots&&(this.firstUpdate=!1,this._calculateExpandedNodes()):this.fireEvent({eventName:Mo.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:Mo.activate,node:e}),this.fireEvent({eventName:Mo.nodeActivate,node:e})):(this.fireEvent({eventName:Mo.deactivate,node:e}),this.fireEvent({eventName:Mo.nodeDeactivate,node:e}))}setSelectedNode(e,t){this.selectedLeafNodeIds=Object.assign({},this.selectedLeafNodeIds,{[e.id]:t}),t?(e.focus(),this.fireEvent({eventName:Mo.select,node:e})):this.fireEvent({eventName:Mo.deselect,node:e})}setExpandedNode(e,t){this.expandedNodeIds=Object.assign({},this.expandedNodeIds,{[e.id]:t}),this.fireEvent({eventName:Mo.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(Es(e))n=t=>-1!==t.displayField.toLowerCase().indexOf(e.toLowerCase());else{if(!mn(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:Mo.changeFilter})}clearFilter(){this.hiddenNodeIds={},this.fireEvent({eventName:Mo.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:Mo.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:Mo.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:Mo.deactivate,node:e}),this.fireEvent({eventName:Mo.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.Ib({token:e,factory:e.\u0275fac}),e.focusedTree=null,To([te,Co("design:type",Array)],e.prototype,"roots",void 0),To([te,Co("design:type",Object)],e.prototype,"expandedNodeIds",void 0),To([te,Co("design:type",Object)],e.prototype,"selectedLeafNodeIds",void 0),To([te,Co("design:type",Object)],e.prototype,"activeNodeIds",void 0),To([te,Co("design:type",Object)],e.prototype,"hiddenNodeIds",void 0),To([te,Co("design:type",Object)],e.prototype,"focusedNodeId",void 0),To([te,Co("design:type",Do)],e.prototype,"virtualRoot",void 0),To([se,Co("design:type",Object),Co("design:paramtypes",[])],e.prototype,"focusedNode",null),To([se,Co("design:type",Object),Co("design:paramtypes",[])],e.prototype,"expandedNodes",null),To([se,Co("design:type",Object),Co("design:paramtypes",[])],e.prototype,"activeNodes",null),To([se,Co("design:type",Object),Co("design:paramtypes",[])],e.prototype,"hiddenNodes",null),To([se,Co("design:type",Object),Co("design:paramtypes",[])],e.prototype,"selectedLeafNodes",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[Object]),Co("design:returntype",void 0)],e.prototype,"setData",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[]),Co("design:returntype",void 0)],e.prototype,"update",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[Object]),Co("design:returntype",void 0)],e.prototype,"setFocusedNode",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[Object]),Co("design:returntype",void 0)],e.prototype,"setFocus",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[Object]),Co("design:returntype",void 0)],e.prototype,"doForAll",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[]),Co("design:returntype",void 0)],e.prototype,"focusNextNode",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[]),Co("design:returntype",void 0)],e.prototype,"focusPreviousNode",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[]),Co("design:returntype",void 0)],e.prototype,"focusDrillDown",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[]),Co("design:returntype",void 0)],e.prototype,"focusDrillUp",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[Object,Object,Object]),Co("design:returntype",void 0)],e.prototype,"setActiveNode",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[Object,Object]),Co("design:returntype",void 0)],e.prototype,"setSelectedNode",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[Object,Object]),Co("design:returntype",void 0)],e.prototype,"setExpandedNode",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[]),Co("design:returntype",void 0)],e.prototype,"expandAll",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[]),Co("design:returntype",void 0)],e.prototype,"collapseAll",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[Object,Object]),Co("design:returntype",void 0)],e.prototype,"setIsHidden",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[Object]),Co("design:returntype",void 0)],e.prototype,"setHiddenNodeIds",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[Object,Object]),Co("design:returntype",void 0)],e.prototype,"filterNodes",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[]),Co("design:returntype",void 0)],e.prototype,"clearFilter",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[Object,Object]),Co("design:returntype",void 0)],e.prototype,"moveNode",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[Object,Object]),Co("design:returntype",void 0)],e.prototype,"copyNode",null),To([Qe,Co("design:type",Function),Co("design:paramtypes",[Object]),Co("design:returntype",void 0)],e.prototype,"setState",null),e})(),Lo=(()=>{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.Ib)({factory:function(){return new e},token:e,providedIn:"root"}),e})();var Ro=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},Eo=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};const Ao=150;let Io=(()=>{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*Ao}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,tt(()=>this.treeModel.roots,e),tt(()=>this.treeModel.expandedNodeIds,e),tt(()=>this.treeModel.hiddenNodeIds,e)],this.treeModel.subscribe(Mo.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/Ao),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/Ao)))}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=Po(t,e=>e.position+500>this.y||e.position+e.height>this.y),i=Po(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/Ao)}}return e.\u0275fac=function(t){return new(t||e)(i.dc(Oo))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),Ro([te,Eo("design:type",Object)],e.prototype,"yBlocks",void 0),Ro([te,Eo("design:type",Object)],e.prototype,"x",void 0),Ro([te,Eo("design:type",Object)],e.prototype,"viewportHeight",void 0),Ro([se,Eo("design:type",Object),Eo("design:paramtypes",[])],e.prototype,"y",null),Ro([se,Eo("design:type",Object),Eo("design:paramtypes",[])],e.prototype,"totalHeight",null),Ro([Qe,Eo("design:type",Function),Eo("design:paramtypes",[Object]),Eo("design:returntype",void 0)],e.prototype,"_setYBlocks",null),Ro([Qe,Eo("design:type",Function),Eo("design:paramtypes",[]),Eo("design:returntype",void 0)],e.prototype,"recalcPositions",null),Ro([Qe,Eo("design:type",Function),Eo("design:paramtypes",[Object]),Eo("design:returntype",void 0)],e.prototype,"setViewport",null),Ro([Qe,Eo("design:type",Function),Eo("design:paramtypes",[Object,Object,Object]),Eo("design:returntype",void 0)],e.prototype,"scrollIntoView",null),e})();function Po(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 No=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({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.Mc(0,$s,2,0,"span",0),i.Ob(1,1)),2&e&&(i.pc("ngIf",!t.template),i.yb(1),i.pc("ngTemplateOutlet",t.template)("ngTemplateOutletContext",i.uc(3,Hs,t.node)))},directives:[r.r,r.w],encapsulation:2}),e})(),jo=(()=>{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 pn(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=As();if(m(e))return g(e);a=setTimeout(b,function(e){var n=t-(e-c);return d?Ps(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=As(),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=Cs(t)||0,pn(n)&&(u=!!n.leading,s=(d="maxWait"in n)?Is(Cs(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(As())},_}(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:Mo.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.Mb(i.m),i.Mb(i.A),i.Mb(Io))},e.\u0275cmp=i.Gb({type:e,selectors:[["tree-viewport"]],features:[i.xb([Io])],ngContentSelectors:Bs,decls:1,vars:2,consts:[[4,"treeMobxAutorun"]],template:function(e,t){1&e&&(i.oc(),i.Mc(0,Ws,3,2,"ng-container",0)),2&e&&i.pc("treeMobxAutorun",i.tc(1,Vs))},directives:[yo],encapsulation:2}),e})(),Fo=(()=>{class e{constructor(e,t){this.treeModel=e,this.treeDraggedElement=t,e.eventNames.forEach(e=>this[e]=new i.o),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(Fs(["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:zs(this,this.treeModel.eventNames)})}sizeChanged(){this.viewportComponent.setViewport()}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Oo),i.Mb(Lo))},e.\u0275cmp=i.Gb({type:e,selectors:[["Tree"],["tree-root"]],contentQueries:function(e,t,n){var r;1&e&&(i.Fb(n,Us,!0),i.Fb(n,Gs,!0),i.Fb(n,qs,!0),i.Fb(n,Js,!0)),2&e&&(i.zc(r=i.hc())&&(t.loadingTemplate=r.first),i.zc(r=i.hc())&&(t.treeNodeTemplate=r.first),i.zc(r=i.hc())&&(t.treeNodeWrapperTemplate=r.first),i.zc(r=i.hc())&&(t.treeNodeFullTemplate=r.first))},viewQuery:function(e,t){var n;1&e&&i.Tc(Qs,!0),2&e&&i.zc(n=i.hc())&&(t.viewportComponent=n.first)},hostBindings:function(e,t){1&e&&i.gc("keydown",(function(e){return t.onKeydown(e)}),!1,i.Bc)("mousedown",(function(e){return t.onMousedown(e)}),!1,i.Bc)},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.xb([Oo]),i.wb],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.Sb(0,"tree-viewport",null,0),i.Sb(2,"div",1),i.Mc(3,Zs,1,8,"tree-node-collection",2),i.Mc(4,Xs,1,2,"tree-node-drop-slot",3),i.Rb(),i.Rb()),2&e&&(i.yb(2),i.Eb("node-dragging",t.treeDraggedElement.isDragging())("angular-tree-component-rtl",t.treeModel.options.rtl),i.yb(1),i.pc("ngIf",t.treeModel.roots),i.yb(1),i.pc("ngIf",t.treeModel.isEmptyTree()))},directives:function(){return[jo,r.r,Zo,$o]},encapsulation:2}),e})(),Yo=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({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.Mc(0,io,3,8,"ng-container",0),2&e&&i.pc("treeMobxAutorun",i.tc(1,Vs))},directives:function(){return[yo,r.r,r.w,Xo,Wo,$o]},encapsulation:2}),e})(),zo=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({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.Mc(0,ro,2,1,"span",0),i.Ob(1,1)),2&e&&(i.pc("ngIf",!t.template),i.yb(1),i.pc("ngTemplateOutlet",t.template)("ngTemplateOutletContext",i.wc(3,so,t.node,t.node,t.index)))},directives:[r.r,r.w],encapsulation:2}),e})(),$o=(()=>{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.Gb({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.Sb(0,"div",0),i.gc("treeDrop",(function(e){return t.onDrop(e)})),i.Rb()),2&e&&i.pc("treeAllowDrop",t.allowDrop.bind(t))("allowDragoverStyling",!0)},directives:function(){return[ia]},encapsulation:2}),e})(),Ho=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({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.Mc(0,co,3,2,"ng-container",0),2&e&&i.pc("treeMobxAutorun",i.tc(1,Vs))},directives:[yo,r.r],encapsulation:2}),e})(),Wo=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({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.Mc(0,fo,2,4,"ng-container",0),2&e&&i.pc("treeMobxAutorun",i.tc(1,Vs))},directives:function(){return[yo,sa,r.r,Zo,No]},encapsulation:2}),e})();function Vo(...e){return Qe(...e)}const Bo=Object.assign(Vo,Qe);function Uo(...e){return se(...e)}const Go=Object.assign(Uo,se);function qo(...e){return te(...e)}const Jo=Object.assign(qo,te);var Qo=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},Ko=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Zo=(()=>{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=[tt(()=>this.virtualScroll.getViewportNodes(this.nodes).map(e=>e.index),e=>{this.viewportNodes=e.map(e=>this.nodes[e])},{compareStructural:!0,fireImmediately:!0}),tt(()=>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.Gb({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.Mc(0,mo,3,4,"ng-container",0),2&e&&i.pc("treeMobxAutorun",i.tc(1,Vs))},directives:[yo,r.q,Yo],encapsulation:2}),Qo([Jo,Ko("design:type",Object)],e.prototype,"_nodes",void 0),Qo([Jo,Ko("design:type",Array)],e.prototype,"viewportNodes",void 0),Qo([Go,Ko("design:type",String),Ko("design:paramtypes",[])],e.prototype,"marginTop",null),Qo([Bo,Ko("design:type",Function),Ko("design:paramtypes",[Object]),Ko("design:returntype",void 0)],e.prototype,"setNodes",null),e})(),Xo=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({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.Mc(0,go,5,15,"div",0),i.Ob(1,1)),2&e&&(i.pc("ngIf",!t.templates.treeNodeWrapperTemplate),i.yb(1),i.pc("ngTemplateOutlet",t.templates.treeNodeWrapperTemplate)("ngTemplateOutletContext",i.xc(3,no,t.node,t.node,t.index,t.templates)))},directives:function(){return[r.r,r.w,Ho,ra,ia,zo,ea]},encapsulation:2}),e})(),ea=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({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.Mc(0,_o,2,2,"ng-container",0),2&e&&i.pc("treeMobxAutorun",i.tc(1,Vs))},directives:[yo],encapsulation:2}),e})();const ta="is-dragging-over",na="is-dragging-over-disabled";let ia=(()=>{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.o,this.onDragOverCallback=new i.o,this.onDragLeaveCallback=new i.o,this.onDragEnterCallback=new i.o,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,ta)}removeClass(){this.renderer.removeClass(this.el.nativeElement,ta)}addDisabledClass(){this.renderer.addClass(this.el.nativeElement,na)}removeDisabledClass(){this.renderer.removeClass(this.el.nativeElement,na)}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.m),i.Mb(i.E),i.Mb(Lo),i.Mb(i.A))},e.\u0275dir=i.Hb({type:e,selectors:[["","treeDrop",""]],hostBindings:function(e,t){1&e&&i.gc("drop",(function(e){return t.onDrop(e)}))},inputs:{allowDragoverStyling:"allowDragoverStyling",treeAllowDrop:"treeAllowDrop"},outputs:{onDropCallback:"treeDrop",onDragOverCallback:"treeDropDragOver",onDragLeaveCallback:"treeDropDragLeave",onDragEnterCallback:"treeDropDragEnter"}}),e})(),ra=(()=>{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.Mb(i.m),i.Mb(i.E),i.Mb(Lo),i.Mb(i.A))},e.\u0275dir=i.Hb({type:e,selectors:[["","treeDrag",""]],hostBindings:function(e,t){1&e&&i.gc("dragstart",(function(e){return t.onDragStart(e)}))("dragend",(function(){return t.onDragEnd()}))},inputs:{draggedElement:["treeDrag","draggedElement"],treeDragEnabled:"treeDragEnabled"}}),e})(),sa=(()=>{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.Mb(i.E),i.Mb(i.L),i.Mb(i.P))},e.\u0275dir=i.Hb({type:e,selectors:[["","treeAnimateOpen",""]],inputs:{isOpen:["treeAnimateOpen","isOpen"],animateSpeed:["treeAnimateOpenSpeed","animateSpeed"],animateAcceleration:["treeAnimateOpenAcceleration","animateAcceleration"],isEnabled:["treeAnimateOpenEnabled","isEnabled"]}}),e})(),oa=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},providers:[],imports:[[r.c]]}),e})()},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.Nb(0,"div",2),r.nc(1)),2&e){const e=r.ic();r.Ab(e.class),r.pc("innerHtml",e.html,r.Ec)}}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.Gb({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.oc(),r.Mc(0,a,2,3,"ng-template",null,0,r.Nc),r.Sb(2,"i",1),r.gc("click",(function(e){return e.preventDefault()})),r.Rb()),2&e){const e=r.Ac(1);r.yb(2),r.pc("ngClass",r.uc(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)}))}},ppGB:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},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.Tb();i.Sb(0,"span"),i.Sb(1,"span",4),i.Sb(2,"span",5),i.Oc(3),i.Rb(),i.Sb(4,"a",6),i.gc("click",(function(){i.Dc(e);const n=t.$implicit;return i.ic(),i.Ac(1).removeItem(n)})),i.Nb(5,"i",7),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=t.$implicit,n=i.ic();i.yb(3),i.Pc(e),i.yb(2),i.pc("ngClass",i.uc(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.o,this.icons=r.a}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-select-badges"]],viewQuery:function(e,t){var n;1&e&&i.Jc(c,!0),2&e&&i.zc(n=i.hc())&&(t.cdSelect=n.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.Sb(0,"cd-select",0,1),i.gc("selection",(function(e){return t.selection.emit(e)})),i.Nb(2,"i",2),i.Rb(),i.Mc(3,u,6,4,"span",3)),2&e&&(i.pc("data",t.data)("options",t.options)("messages",t.messages)("selectionLimit",t.selectionLimit)("customBadges",t.customBadges)("customBadgeValidators",t.customBadgeValidators),i.yb(2),i.pc("ngClass",i.uc(8,l,t.icons.edit)),i.yb(1),i.pc("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}}},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("4syw"),r=n("8YOa").getWeakData,s=n("glrk"),o=n("hh1v"),a=n("GarU"),c=n("ImZN"),l=n("tycR"),u=n("UTVS"),d=n("afO8"),h=d.set,f=d.getterFor,p=l.find,m=l.findIndex,b=0,g=function(e){return e.frozen||(e.frozen=new _)},_=function(){this.entries=[]},y=function(e,t){return p(e.entries,(function(e){return e[0]===t}))};_.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var n=y(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=m(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,l){var d=e((function(e,i){a(e,d,t),h(e,{type:t,id:b++,frozen:void 0}),null!=i&&c(i,e[l],e,n)})),p=f(t),m=function(e,t,n){var i=p(e),o=r(s(t),!0);return!0===o?g(i).set(t,n):o[i.id]=n,e};return i(d.prototype,{delete:function(e){var t=p(this);if(!o(e))return!1;var n=r(e);return!0===n?g(t).delete(e):n&&u(n,t.id)&&delete n[t.id]},has:function(e){var t=p(this);if(!o(e))return!1;var n=r(e);return!0===n?g(t).has(e):n&&u(n,t.id)}}),i(d.prototype,n?{get:function(e){var t=p(this);if(o(e)){var n=r(e);return!0===n?g(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return m(this,e,t)}}:{add:function(e){return m(this,e,!0)}}),d}}},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"))},rkAj:function(e,t,n){var i=n("g6v/"),r=n("0Dky"),s=n("UTVS"),o=Object.defineProperty,a={},c=function(e){throw e};e.exports=function(e,t){if(s(a,e))return a[e];t||(t={});var n=[][e],l=!!s(t,"ACCESSORS")&&t.ACCESSORS,u=s(t,0)?t[0]:c,d=s(t,1)?t[1]:void 0;return a[e]=!!n&&!r((function(){if(l&&!i)return!0;var e={length:-1};l?o(e,1,{enumerable:!0,get:c}):e[1]=1,n.call(e,u,d)}))}},rpNk:function(e,t,n){"use strict";var i,r,s,o=n("4WOD"),a=n("kRJp"),c=n("UTVS"),l=n("tiKp"),u=n("xDBR"),d=l("iterator"),h=!1;[].keys&&("next"in(s=[].keys())?(r=o(o(s)))!==Object.prototype&&(i=r):h=!0),null==i&&(i={}),u||c(i,d)||a(i,d,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:h}},"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 fe})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return be})),n.d(t,"f",(function(){return Ee})),n.d(t,"g",(function(){return Ye})),n.d(t,"h",(function(){return pe})),n.d(t,"i",(function(){return Pe})),n.d(t,"j",(function(){return me})),n.d(t,"k",(function(){return Ce})),n.d(t,"l",(function(){return Le})),n.d(t,"m",(function(){return ze})),n.d(t,"n",(function(){return M})),n.d(t,"o",(function(){return c})),n.d(t,"p",(function(){return g})),n.d(t,"q",(function(){return y})),n.d(t,"r",(function(){return v})),n.d(t,"s",(function(){return ye})),n.d(t,"t",(function(){return ke})),n.d(t,"u",(function(){return H})),n.d(t,"v",(function(){return A})),n.d(t,"w",(function(){return N})),n.d(t,"x",(function(){return $e})),n.d(t,"y",(function(){return je})),n.d(t,"z",(function(){return $})),n.d(t,"A",(function(){return D})),n.d(t,"B",(function(){return U})),n.d(t,"C",(function(){return xe}));var i=n("8Y7J"),r=n("SVse"),s=n("cp0P"),o=n("Cfvw"),a=n("lJxs");const c=new i.r("NgValueAccessor"),l={provide:c,useExisting:Object(i.T)(()=>u),multi:!0};let u=(()=>{class e{constructor(e,t){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.Mb(i.E),i.Mb(i.m))},e.\u0275dir=i.Hb({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&i.gc("change",(function(e){return t.onChange(e.target.checked)}))("blur",(function(){return t.onTouched()}))},features:[i.xb([l])]}),e})();const d={provide:c,useExisting:Object(i.T)(()=>f),multi:!0},h=new i.r("CompositionEventMode");let f=(()=>{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.Mb(i.E),i.Mb(i.m),i.Mb(h,8))},e.\u0275dir=i.Hb({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.gc("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.xb([d])]}),e})(),p=(()=>{class e{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}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.Hb({type:e}),e})(),m=(()=>{class e extends p{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(t){return b(t||e)},e.\u0275dir=i.Hb({type:e,features:[i.vb]}),e})();const b=i.Ub(m);class g extends p{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){}get asyncValidator(){}}class _{constructor(e){this._cd=e}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let y=(()=>{class e extends _{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(g,2))},e.\u0275dir=i.Hb({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.Eb("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[i.vb]}),e})(),v=(()=>{class e extends _{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(m,2))},e.\u0275dir=i.Hb({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.Eb("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[i.vb]}),e})();function w(e){return null==e||0===e.length}function S(e){return null!=e&&"number"==typeof e.length}const M=new i.r("NgValidators"),k=new i.r("NgAsyncValidators"),x=/^(?=.{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 D{static min(e){return t=>{if(w(t.value)||w(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}static max(e){return t=>{if(w(t.value)||w(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}static required(e){return w(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return w(e.value)||x.test(e.value)?null:{email:!0}}static minLength(e){return t=>w(t.value)||!S(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}static maxLength(e){return t=>S(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}static pattern(e){if(!e)return D.nullValidator;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(w(e.value))return null;const i=e.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}static nullValidator(e){return null}static compose(e){if(!e)return null;const t=e.filter(T);return 0==t.length?null:function(e){return O(L(e,t))}}static composeAsync(e){if(!e)return null;const t=e.filter(T);return 0==t.length?null:function(e){const n=L(e,t).map(C);return Object(s.a)(n).pipe(Object(a.a)(O))}}}function T(e){return null!=e}function C(e){const t=Object(i.qb)(e)?Object(o.a)(e):e;return Object(i.pb)(t),t}function O(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 L(e,t){return t.map(t=>t(e))}function R(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}const E={provide:c,useExisting:Object(i.T)(()=>A),multi:!0};let A=(()=>{class e{constructor(e,t){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.Mb(i.E),i.Mb(i.m))},e.\u0275dir=i.Hb({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&i.gc("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[i.xb([E])]}),e})();const I={provide:c,useExisting:Object(i.T)(()=>N),multi:!0};let P=(()=>{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=i.Ib({token:e,factory:e.\u0275fac}),e})(),N=(()=>{class e{constructor(e,t,n,i){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=i,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(g),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.Mb(i.E),i.Mb(i.m),i.Mb(P),i.Mb(i.s))},e.\u0275dir=i.Hb({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&i.gc("change",(function(){return t.onChange()}))("blur",(function(){return t.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[i.xb([I])]}),e})();const j={provide:c,useExisting:Object(i.T)(()=>F),multi:!0};let F=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(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.Mb(i.E),i.Mb(i.m))},e.\u0275dir=i.Hb({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&i.gc("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[i.xb([j])]}),e})();const Y={provide:c,useExisting:Object(i.T)(()=>$),multi:!0};function z(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let $=(()=>{class e{constructor(e,t){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=z(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.Mb(i.E),i.Mb(i.m))},e.\u0275dir=i.Hb({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&i.gc("change",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[i.xb([Y])]}),e})(),H=(()=>{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(z(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.Mb(i.m),i.Mb(i.E),i.Mb($,9))},e.\u0275dir=i.Hb({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const W={provide:c,useExisting:Object(i.T)(()=>B),multi:!0};function V(e,t){return null==e?""+t:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let B=(()=>{class e{constructor(e,t){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.Mb(i.E),i.Mb(i.m))},e.\u0275dir=i.Hb({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&i.gc("change",(function(e){return t.onChange(e.target)}))("blur",(function(){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[i.xb([W])]}),e})(),U=(()=>{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(V(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(V(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.Mb(i.m),i.Mb(i.E),i.Mb(B,9))},e.\u0275dir=i.Hb({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();function G(e,t){return[...t.path,e]}function q(e,t){e.validator=D.compose([e.validator,t.validator]),e.asyncValidator=D.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&J(e,t)})}(e,t),function(e,t){e.registerOnChange((e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&J(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(e=>{t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())}),t._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())})}function J(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Q(e,t){e.validator=D.compose([e.validator,t.validator]),e.asyncValidator=D.composeAsync([e.asyncValidator,t.asyncValidator])}function K(e){return null!=e?D.compose(R(e)):null}function Z(e){return null!=e?D.composeAsync(R(e)):null}function X(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}const ee=[u,F,A,$,B,N];function te(e,t){e._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function ne(e,t){if(!t)return null;Array.isArray(t);let n=void 0,i=void 0,r=void 0;return t.forEach(e=>{var t;e.constructor===f?n=e:(t=e,ee.some(e=>t.constructor===e)?i=e:r=e)}),r||i||n||null}function ie(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const re="VALID",se="INVALID",oe="PENDING",ae="DISABLED";function ce(e){return(he(e)?e.validators:e)||null}function le(e){return Array.isArray(e)?K(e):e||null}function ue(e,t){return(he(t)?t.asyncValidators:e)||null}function de(e){return Array.isArray(e)?Z(e):e||null}function he(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class fe{constructor(e,t){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=le(this._rawValidators),this._composedAsyncValidatorFn=de(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===re}get invalid(){return this.status===se}get pending(){return this.status==oe}get disabled(){return this.status===ae}get enabled(){return this.status!==ae}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=le(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=de(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=oe,!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=ae,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=re,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!==re&&this.status!==oe||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()?ae:re}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=oe,this._hasOwnPendingAsyncValidator=!0;const t=C(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 me?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof be&&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.o,this.statusChanges=new i.o}_calculateStatus(){return this._allControlsDisabled()?ae:this.errors?se:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(oe)?oe:this._anyControlsHaveStatus(se)?se:re}_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){he(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class pe extends fe{constructor(e=null,t,n){super(ce(t),ue(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}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)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(e){this._onDisabledChange.push(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 me extends fe{constructor(e,t,n){super(ce(t),ue(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}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={}){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 pe?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=>e(this.controls[t],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 be extends fe{constructor(e,t,n){super(ce(t),ue(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}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={}){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 pe?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 ge={provide:m,useExisting:Object(i.T)(()=>ye)},_e=(()=>Promise.resolve(null))();let ye=(()=>{class e extends m{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.o,this.form=new me({},K(e),Z(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){_e.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),q(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){_e.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),ie(this._directives,e)})}addFormGroup(e){_e.then(()=>{const t=this._findContainer(e.path),n=new me({});Q(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){_e.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){_e.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,te(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.Mb(M,10),i.Mb(k,10))},e.\u0275dir=i.Hb({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&i.gc("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.xb([ge]),i.vb]}),e})(),ve=(()=>{class e extends m{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return G(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return K(this._validators)}get asyncValidator(){return Z(this._asyncValidators)}_checkParentType(){}}return e.\u0275fac=function(t){return we(t||e)},e.\u0275dir=i.Hb({type:e,features:[i.vb]}),e})();const we=i.Ub(ve),Se={provide:g,useExisting:Object(i.T)(()=>ke)},Me=(()=>Promise.resolve(null))();let ke=(()=>{class e extends g{constructor(e,t,n,r){super(),this.control=new pe,this._registered=!1,this.update=new i.o,this._parent=e,this._rawValidators=t||[],this._rawAsyncValidators=n||[],this.valueAccessor=ne(0,r)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),X(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?G(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return K(this._rawValidators)}get asyncValidator(){return Z(this._rawAsyncValidators)}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(){q(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){Me.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;Me.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.Mb(m,9),i.Mb(M,10),i.Mb(k,10),i.Mb(c,10))},e.\u0275dir=i.Hb({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.xb([Se]),i.vb,i.wb]}),e})(),xe=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Hb({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})();const De=new i.r("NgModelWithFormControlWarning"),Te={provide:m,useExisting:Object(i.T)(()=>Ce)};let Ce=(()=>{class e extends m{constructor(e,t){super(),this._validators=e,this._asyncValidators=t,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new i.o}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return q(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){ie(this.directives,e)}addFormGroup(e){const t=this.form.get(e.path);Q(t,e),t.updateValueAndValidity({emitEvent:!1})}removeFormGroup(e){}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){const t=this.form.get(e.path);Q(t,e),t.updateValueAndValidity({emitEvent:!1})}removeFormArray(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,te(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=this.form.get(e.path);e.control!==t&&(function(e,t){const n=()=>{};t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n),t._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}(e.control,e),t&&q(t,e),e.control=t)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const e=K(this._validators);this.form.validator=D.compose([this.form.validator,e]);const t=Z(this._asyncValidators);this.form.asyncValidator=D.composeAsync([this.form.asyncValidator,t])}_checkFormPresent(){}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(M,10),i.Mb(k,10))},e.\u0275dir=i.Hb({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.gc("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.xb([Te]),i.vb,i.wb]}),e})();const Oe={provide:m,useExisting:Object(i.T)(()=>Le)};let Le=(()=>{class e extends ve{constructor(e,t,n){super(),this._parent=e,this._validators=t,this._asyncValidators=n}_checkParentType(){Ae(this._parent)}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(m,13),i.Mb(M,10),i.Mb(k,10))},e.\u0275dir=i.Hb({type:e,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[i.xb([Oe]),i.vb]}),e})();const Re={provide:m,useExisting:Object(i.T)(()=>Ee)};let Ee=(()=>{class e extends m{constructor(e,t,n){super(),this._parent=e,this._validators=t,this._asyncValidators=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 G(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return K(this._validators)}get asyncValidator(){return Z(this._asyncValidators)}_checkParentType(){Ae(this._parent)}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(m,13),i.Mb(M,10),i.Mb(k,10))},e.\u0275dir=i.Hb({type:e,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[i.xb([Re]),i.vb]}),e})();function Ae(e){return!(e instanceof Le||e instanceof Ce||e instanceof Ee)}const Ie={provide:g,useExisting:Object(i.T)(()=>Pe)};let Pe=(()=>{class e extends g{constructor(e,t,n,r,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new i.o,this._ngModelWarningSent=!1,this._parent=e,this._rawValidators=t||[],this._rawAsyncValidators=n||[],this.valueAccessor=ne(0,r)}set isDisabled(e){}ngOnChanges(t){var n,r;this._added||this._setUpControl(),X(t,this.viewModel)&&(n=e,this,r=this._ngModelWarningConfig,Object(i.U)()&&"never"!==r&&((null!==r&&"once"!==r||n._ngModelWarningSentOnce)&&("always"!==r||this._ngModelWarningSent)||(n._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),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 G(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return K(this._rawValidators)}get asyncValidator(){return Z(this._rawAsyncValidators)}_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.Mb(m,13),i.Mb(M,10),i.Mb(k,10),i.Mb(c,10),i.Mb(De,8))},e.\u0275dir=i.Hb({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i.xb([Ie]),i.vb,i.wb]}),e._ngModelWarningSentOnce=!1,e})();const Ne={provide:M,useExisting:Object(i.T)(()=>je),multi:!0};let je=(()=>{class e{constructor(){this._required=!1}get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()}validate(e){return this.required?D.required(e):null}registerOnValidatorChange(e){this._onChange=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Hb({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.zb("required",t.required?"":null)},inputs:{required:"required"},features:[i.xb([Ne])]}),e})(),Fe=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)}}),e})(),Ye=(()=>{class e{group(e,t=null){const n=this._reduceControls(e);let i=null,r=null,s=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(i=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,s=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null)),new me(n,{asyncValidators:r,updateOn:s,validators:i})}control(e,t,n){return new pe(e,t,n)}array(e,t,n){const i=e.map(e=>this._createControl(e));return new be(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 pe||e instanceof me||e instanceof be?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=i.Ib({token:e,factory:e.\u0275fac}),e})(),ze=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},providers:[P],imports:[Fe]}),e})(),$e=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:De,useValue:t.warnOnNgModelWithFormControl}]}}}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},providers:[Ye,P],imports:[Fe]}),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("m/L8").f,s=Function.prototype,o=s.toString,a=/^\s*function ([^ (]*)/,c="name";i&&!(c in s)&&r(s,c,{configurable:!0,get:function(){try{return o.call(this).match(a)[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.Sb(0,"span"),i.Nb(1,"i",2),i.Rb()),2&e){const e=i.ic();i.yb(1),i.pc("ngClass",i.vc(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.o,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.Mb(i.m))},e.\u0275cmp=i.Gb({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.oc(),i.Sb(0,"button",0),i.gc("click",(function(e){return t.submit(e)})),i.nc(1),i.Mc(2,d,2,4,"span",1),i.Rb()),2&e&&(i.pc("type",t.type)("ngClass",t.btnClass)("disabled",t.loading||t.disabled),i.yb(2),i.pc("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})();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.Ib({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.Ib({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}}},"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"))},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("UTVS"),o=n("kOOl"),a=n("STAE"),c=n("/b8u"),l=r("wks"),u=i.Symbol,d=c?u:u&&u.withoutSetter||o;e.exports=function(e){return s(l,e)||(l[e]=a&&s(u,e)?u[e]:d("Symbol."+e)),l[e]}},tycR:function(e,t,n){var i=n("A2ZE"),r=n("RK3t"),s=n("ewvW"),o=n("UMSQ"),a=n("ZfDv"),c=[].push,l=function(e){var t=1==e,n=2==e,l=3==e,u=4==e,d=6==e,h=5==e||d;return function(f,p,m,b){for(var g,_,y=s(f),v=r(y),w=i(p,m,3),S=o(v.length),M=0,k=b||a,x=t?k(f,S):n?k(f,0):void 0;S>M;M++)if((h||M in v)&&(_=w(g=v[M],M,y),e))if(t)x[M]=_;else if(_)switch(e){case 3:return!0;case 5:return g;case 6:return M;case 2:c.call(x,g)}else if(u)return!1;return d?-1:l||u?u:x}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},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.dc(c.a),l.dc(a.a))},e.\u0275prov=l.Ib({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"))},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 ve}));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"),y=n("4DD9"),v=n("o4+5"),w=n("zWsK"),S=n("yT6U"),M=n("TJUb"),k=n("efK2");const x=["tableCellBoldTpl"],D=["sparklineTpl"],T=["routerLinkTpl"],C=["checkIconTpl"],O=["perSecondTpl"],L=["executingTpl"],R=["classAddingTpl"],E=["badgeTpl"],A=["mapTpl"],I=["truncateTpl"],P=["rowDetailsTpl"];function N(e,t){1&e&&(i.Sb(0,"div",20),i.Sb(1,"div",21),i.nc(2),i.Rb(),i.Rb())}function j(e,t){if(1&e){const e=i.Tb();i.Qb(0),i.Sb(1,"button",36),i.gc("click",(function(){i.Dc(e);const n=t.$implicit;return i.ic(3).onSelectFilter(n),!1})),i.Oc(2),i.Rb(),i.Pb()}if(2&e){const e=t.$implicit;i.yb(2),i.Pc(e.column.name)}}const F=function(e){return[e]};function Y(e,t){if(1&e&&i.Nb(0,"i",28),2&e){const e=i.ic(4);i.pc("ngClass",i.uc(1,F,e.icons.check))}}function z(e,t){if(1&e){const e=i.Tb();i.Qb(0),i.Sb(1,"button",36),i.gc("click",(function(){i.Dc(e);const n=t.$implicit,r=i.ic(3);return r.onChangeFilter(r.selectedFilter,n),!1})),i.Oc(2),i.Mc(3,Y,1,3,"i",37),i.Rb(),i.Pb()}if(2&e){const e=t.$implicit,n=i.ic(3);i.yb(2),i.Qc(" ",e.formatted," "),i.yb(1),i.pc("ngIf",void 0!==n.selectedFilter.value&&n.selectedFilter.value.raw===e.raw)}}const $=function(e,t){return[e,t]};function H(e,t){if(1&e&&(i.Sb(0,"div",32),i.Sb(1,"div",33),i.Sb(2,"button",34),i.Nb(3,"i",28),i.Oc(4),i.Rb(),i.Sb(5,"div",29),i.Mc(6,j,3,1,"ng-container",30),i.Rb(),i.Rb(),i.Sb(7,"div",35),i.Sb(8,"button",34),i.Oc(9),i.Rb(),i.Sb(10,"div",29),i.Mc(11,z,4,2,"ng-container",30),i.Rb(),i.Rb(),i.Rb()),2&e){const e=i.ic(2);i.yb(3),i.pc("ngClass",i.vc(7,$,e.icons.large,e.icons.filter)),i.yb(1),i.Qc(" ",e.selectedFilter.column.name," "),i.yb(2),i.pc("ngForOf",e.columnFilters),i.yb(2),i.Eb("disabled",0===e.selectedFilter.options.length),i.yb(1),i.Qc(" ",e.selectedFilter.value?e.selectedFilter.value.formatted:"Any"," "),i.yb(2),i.pc("ngForOf",e.selectedFilter.options)}}function W(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",38),i.Sb(1,"span",39),i.Sb(2,"span",40),i.Nb(3,"i",28),i.Rb(),i.Rb(),i.Sb(4,"input",41),i.gc("ngModelChange",(function(t){return i.Dc(e),i.ic(2).search=t}))("keyup",(function(){return i.Dc(e),i.ic(2).updateFilter()})),i.Rb(),i.Sb(5,"div",42),i.Sb(6,"button",43),i.gc("click",(function(){return i.Dc(e),i.ic(2).onClearSearch()})),i.Nb(7,"i"),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.ic(2);i.yb(3),i.pc("ngClass",i.uc(5,F,e.icons.search)),i.yb(1),i.pc("ngModel",e.search),i.yb(3),i.Bb("icon-prepend ",e.icons.destroy,"")}}function V(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",44),i.Sb(1,"input",45),i.gc("click",(function(t){return i.Dc(e),i.ic(2).setLimit(t)}))("keyup",(function(t){return i.Dc(e),i.ic(2).setLimit(t)}))("blur",(function(t){return i.Dc(e),i.ic(2).setLimit(t)})),i.Rb(),i.Rb()}if(2&e){const e=i.ic(2);i.yb(1),i.pc("value",e.userConfig.limit)}}function B(e,t){if(1&e){const e=i.Tb();i.Sb(0,"button",36),i.gc("click",(function(){i.Dc(e);const t=i.ic().$implicit;return i.ic(2).toggleColumn(t),!1})),i.Sb(1,"div",47),i.Nb(2,"input",48),i.Sb(3,"label",49),i.Oc(4),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.ic().$implicit;i.yb(2),i.pc("name",e.prop)("id",e.prop)("checked",!e.isHidden),i.yb(1),i.pc("for",e.prop),i.yb(1),i.Pc(e.name)}}function U(e,t){if(1&e&&(i.Qb(0),i.Mc(1,B,5,5,"button",46),i.Pb()),2&e){const e=t.$implicit;i.yb(1),i.pc("ngIf",""!==e.name)}}function G(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",50),i.Sb(1,"button",51),i.gc("click",(function(){return i.Dc(e),i.ic(2).refreshBtn()})),i.Nb(2,"i",28),i.Rb(),i.Rb()}if(2&e){const e=i.ic(2);i.yb(1),i.Ab("btn btn-"+e.status.type),i.pc("ngbTooltip",e.status.msg),i.yb(1),i.Eb("fa-spin",e.updating||e.loadingIndicator),i.pc("ngClass",i.vc(6,$,e.icons.large,e.icons.refresh))}}function q(e,t){if(1&e&&(i.Sb(0,"div",20),i.Sb(1,"div",21),i.nc(2,1),i.Rb(),i.Mc(3,H,12,10,"div",22),i.Mc(4,W,8,7,"div",23),i.Mc(5,V,2,1,"div",24),i.Sb(6,"div",25),i.Sb(7,"div",26),i.Sb(8,"button",27),i.Nb(9,"i",28),i.Rb(),i.Sb(10,"div",29),i.Mc(11,U,2,1,"ng-container",30),i.Rb(),i.Rb(),i.Rb(),i.Mc(12,G,3,9,"div",31),i.Rb()),2&e){const e=i.ic();i.yb(3),i.pc("ngIf",0!==e.columnFilters.length),i.yb(1),i.pc("ngIf",e.searchField),i.yb(1),i.pc("ngIf",e.limit),i.yb(4),i.pc("ngClass",i.vc(6,$,e.icons.large,e.icons.table)),i.yb(2),i.pc("ngForOf",e.columns),i.yb(1),i.pc("ngIf",e.fetchData.observers.length>0)}}function J(e,t){if(1&e){const e=i.Tb();i.Sb(0,"span",56),i.Sb(1,"span",57),i.Oc(2),i.Rb(),i.Sb(3,"a",58),i.gc("click",(function(){i.Dc(e);const t=i.ic().$implicit;return i.ic(2).onChangeFilter(t),!1})),i.Nb(4,"i",59),i.Rb(),i.Rb()}if(2&e){const e=i.ic().$implicit,t=i.ic(2);i.yb(2),i.Rc("",e.column.name,": ",e.value.formatted,""),i.yb(2),i.pc("ngClass",i.uc(3,F,t.icons.destroy))}}function Q(e,t){if(1&e&&(i.Sb(0,"span"),i.Mc(1,J,5,5,"span",55),i.Rb()),2&e){const e=t.$implicit;i.yb(1),i.pc("ngIf",e.value)}}function K(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",20),i.Sb(1,"div",52),i.Mc(2,Q,2,1,"span",30),i.Sb(3,"a",53),i.gc("click",(function(){return i.Dc(e),i.ic().onClearFilters(),!1})),i.Qb(4),i.Wb(5,54),i.Pb(),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.yb(2),i.pc("ngForOf",e.columnFilters)}}function Z(e,t){1&e&&i.nc(0,2)}function X(e,t){if(1&e&&(i.Sb(0,"span"),i.Oc(1),i.Qb(2),i.Wb(3,64),i.Pb(),i.Oc(4," / "),i.Rb()),2&e){const e=i.ic().selectedCount;i.yb(1),i.Qc(" ",e," ")}}function ee(e,t){if(1&e&&(i.Sb(0,"span"),i.Oc(1),i.Qb(2),i.Wb(3,65),i.Pb(),i.Oc(4," / "),i.Rb()),2&e){const e=i.ic().rowCount;i.yb(1),i.Qc(" ",e," ")}}function te(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",60),i.Mc(1,X,5,1,"span",61),i.Mc(2,ee,5,1,"span",61),i.Sb(3,"span"),i.Oc(4),i.Qb(5),i.Wb(6,62),i.Pb(),i.Rb(),i.Rb(),i.Sb(7,"datatable-pager",63),i.gc("change",(function(t){return i.Dc(e),i.ic(),i.Ac(5).onFooterPage(t)})),i.Rb()}if(2&e){const e=t.rowCount,n=t.pageSize,r=t.curPage,s=i.ic();i.yb(1),i.pc("ngIf",s.selectionType),i.yb(1),i.pc("ngIf",e!=(null==s.data?null:s.data.length)),i.yb(2),i.Qc(" ",(null==s.data?null:s.data.length)||0," "),i.yb(3),i.pc("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.Sb(0,"strong"),i.Oc(1),i.Rb()),2&e){const e=t.value;i.yb(1),i.Pc(e)}}function ie(e,t){if(1&e&&i.Nb(0,"cd-sparkline",66),2&e){const e=t.row;i.pc("data",t.value)("isBinary",e.cdIsBinary)}}function re(e,t){if(1&e&&(i.Sb(0,"a",67),i.Oc(1),i.Rb()),2&e){const e=t.row,n=t.value;i.pc("routerLink",i.uc(3,F,e.cdLink))("queryParams",e.cdParams),i.yb(1),i.Pc(n)}}function se(e,t){if(1&e&&(i.Nb(0,"i",68),i.jc(1,"boolean")),2&e){const e=t.value,n=i.ic();i.pc("ngClass",i.uc(4,F,n.icons.check))("hidden",!i.kc(1,2,e))}}function oe(e,t){1&e&&(i.Oc(0),i.jc(1,"dimless")),2&e&&i.Qc(" ",i.kc(1,1,t.value)," /s\n")}function ae(e,t){if(1&e&&i.Nb(0,"i",28),2&e){const e=i.ic(2);i.pc("ngClass",i.vc(1,$,e.icons.spinner,e.icons.spin))}}function ce(e,t){if(1&e&&(i.Sb(0,"span",28),i.Oc(1),i.Rb()),2&e){const e=i.ic(),t=e.column,n=e.row;i.pc("ngClass",null!=t&&null!=t.customTemplateConfig&&t.customTemplateConfig.executingClass?t.customTemplateConfig.executingClass:"text-muted italic"),i.yb(1),i.Qc("(",n.cdExecuting,")")}}function le(e,t){if(1&e&&(i.Mc(0,ae,1,4,"i",37),i.Sb(1,"span",28),i.Oc(2),i.Rb(),i.Mc(3,ce,2,2,"span",37)),2&e){const e=t.column,n=t.row,r=t.value;i.pc("ngIf",n.cdExecuting),i.yb(1),i.pc("ngClass",null==e||null==e.customTemplateConfig?null:e.customTemplateConfig.valueClass),i.yb(1),i.Qc(" ",r," "),i.yb(1),i.pc("ngIf",n.cdExecuting)}}function ue(e,t){if(1&e&&(i.Sb(0,"span"),i.jc(1,"pipeFunction"),i.Oc(2),i.Rb()),2&e){const e=t.value,n=i.ic();i.Ab(i.mc(1,4,e,n.useCustomClass,n)),i.yb(2),i.Pc(e)}}function de(e,t){if(1&e&&(i.Sb(0,"span",70),i.Oc(1),i.Rb()),2&e){const e=i.ic().$implicit,t=i.ic().column;i.pc("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.yb(1),i.Qc(" ",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.Sb(0,"span"),i.Oc(1,"\xa0"),i.Rb())}function fe(e,t){if(1&e&&(i.Sb(0,"span"),i.Mc(1,de,2,2,"span",69),i.Mc(2,he,2,0,"span",61),i.Rb()),2&e){const e=t.$implicit,n=t.last,r=i.ic().column;i.yb(1),i.pc("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.yb(1),i.pc("ngIf",!n)}}function pe(e,t){1&e&&(i.Mc(0,fe,3,2,"span",30),i.jc(1,"array")),2&e&&i.pc("ngForOf",i.kc(1,1,t.value))}function me(e,t){if(1&e&&(i.Sb(0,"span"),i.Oc(1),i.jc(2,"map"),i.Rb()),2&e){const e=t.column,n=t.value;i.yb(1),i.Pc(i.lc(2,1,n,null==e?null:e.customTemplateConfig))}}function be(e,t){if(1&e&&(i.Sb(0,"span",71),i.Oc(1),i.jc(2,"truncate"),i.Rb()),2&e){const e=t.column,n=t.value;i.pc("title",n),i.yb(1),i.Pc(i.mc(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.Tb();i.Sb(0,"a",72),i.Yb(1,73),i.gc("click",(function(n){i.Dc(e);const r=t.row,s=t.expanded;return i.ic().toggleExpandRow(r,s,n)})),i.Rb()}if(2&e){const e=t.expanded;i.Eb("expand-collapse-icon-right",!e)("expand-collapse-icon-down",e)}}const _e=[[["",8,"only-table-actions"]],[["",8,"table-actions"]],[["","cdTableDetail",""]]],ye=[".only-table-actions",".table-actions","[cdTableDetail]"];let ve=(()=>{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.o,this.updateSelection=new i.o,this.setExpandedRow=new i.o,this.columnFiltersChanged=new i.o,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.Mb(i.A),i.Mb(i.h))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-table"]],viewQuery:function(e,t){var n;1&e&&(i.Jc(r.d,!0),i.Jc(x,!0),i.Jc(D,!0),i.Jc(T,!0),i.Jc(C,!0),i.Jc(O,!0),i.Jc(L,!0),i.Jc(R,!0),i.Jc(E,!0),i.Jc(A,!0),i.Jc(I,!0),i.Jc(P,!0)),2&e&&(i.zc(n=i.hc())&&(t.table=n.first),i.zc(n=i.hc())&&(t.tableCellBoldTpl=n.first),i.zc(n=i.hc())&&(t.sparklineTpl=n.first),i.zc(n=i.hc())&&(t.routerLinkTpl=n.first),i.zc(n=i.hc())&&(t.checkIconTpl=n.first),i.zc(n=i.hc())&&(t.perSecondTpl=n.first),i.zc(n=i.hc())&&(t.executingTpl=n.first),i.zc(n=i.hc())&&(t.classAddingTpl=n.first),i.zc(n=i.hc())&&(t.badgeTpl=n.first),i.zc(n=i.hc())&&(t.mapTpl=n.first),i.zc(n=i.hc())&&(t.truncateTpl=n.first),i.zc(n=i.hc())&&(t.rowDetailsTpl=n.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.wb],ngContentSelectors:ye,decls:33,vars:17,consts:function(){return[[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"],"Clear filters",["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"],"total",[3,"pagerLeftArrowIcon","pagerRightArrowIcon","pagerPreviousIcon","pagerNextIcon","page","size","count","hidden","change"],"selected","found",[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)",1,"expand-collapse-icon","tc_expand-collapse",3,"click",6,"title"],["title","Expand/Collapse Row"]]},template:function(e,t){1&e&&(i.oc(_e),i.Sb(0,"div",0),i.Mc(1,N,3,0,"div",1),i.Mc(2,q,13,9,"div",1),i.Mc(3,K,6,1,"div",1),i.Sb(4,"ngx-datatable",2,3),i.gc("select",(function(e){return t.onSelect(e)}))("sort",(function(e){return t.changeSorting(e)})),i.Sb(6,"ngx-datatable-row-detail",4,5),i.Mc(8,Z,1,0,"ng-template",6),i.Rb(),i.Sb(9,"ngx-datatable-footer"),i.Mc(10,te,8,11,"ng-template",7),i.Rb(),i.Rb(),i.Rb(),i.Mc(11,ne,2,1,"ng-template",null,8,i.Nc),i.Mc(13,ie,1,2,"ng-template",null,9,i.Nc),i.Mc(15,re,2,5,"ng-template",null,10,i.Nc),i.Mc(17,se,2,6,"ng-template",null,11,i.Nc),i.Mc(19,oe,2,3,"ng-template",null,12,i.Nc),i.Mc(21,le,4,4,"ng-template",null,13,i.Nc),i.Mc(23,ue,3,8,"ng-template",null,14,i.Nc),i.Mc(25,pe,2,3,"ng-template",null,15,i.Nc),i.Mc(27,me,3,4,"ng-template",null,16,i.Nc),i.Mc(29,be,3,6,"ng-template",null,17,i.Nc),i.Mc(31,ge,2,4,"ng-template",18,19,i.Nc)),2&e&&(i.yb(1),i.pc("ngIf",t.onlyActionHeader),i.yb(1),i.pc("ngIf",t.toolHeader),i.yb(1),i.pc("ngIf",t.toolHeader&&t.columnFiltered),i.yb(1),i.pc("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:[y.a,v.a,w.b,S.a,M.a,k.a],styles:['@charset "UTF-8";.dataTables_wrapper[_ngcontent-%COMP%]{margin-bottom:25px}.dataTables_wrapper[_ngcontent-%COMP%]   .separator[_ngcontent-%COMP%]{border-left:1px solid rgba(0,0,0,.09);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 rgba(0,0,0,.09);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 rgba(0,0,0,.09);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.Lb({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/create":this.newTaskMessage(this.commonOperations.create,e=>this.host(e)),"host/delete":this.newTaskMessage(this.commonOperations.delete,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/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.Ib({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,_=x(a,"Map"),y=x(Object,"create");function v(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 S(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 M(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 k(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 x(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!T(e)||(t=e,h&&h in t))&&(function(e){var t=T(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 D(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(D.Cache||S),n}function T(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}v.prototype.clear=function(){this.__data__=y?y(null):{}},v.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},v.prototype.get=function(e){var t=this.__data__;if(y){var n=t[e];return n===i?void 0:n}return p.call(t,e)?t[e]:void 0},v.prototype.has=function(e){var t=this.__data__;return y?void 0!==t[e]:p.call(t,e)},v.prototype.set=function(e,t){return this.__data__[e]=y&&void 0===t?i:t,this},w.prototype.clear=function(){this.__data__=[]},w.prototype.delete=function(e){var t=this.__data__,n=M(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=M(t,e);return n<0?void 0:t[n][1]},w.prototype.has=function(e){return M(this.__data__,e)>-1},w.prototype.set=function(e,t){var n=this.__data__,i=M(n,e);return i<0?n.push([e,t]):n[i][1]=t,this},S.prototype.clear=function(){this.__data__={hash:new v,map:new(_||w),string:new v}},S.prototype.delete=function(e){return k(this,e).delete(e)},S.prototype.get=function(e){return k(this,e).get(e)},S.prototype.has=function(e){return k(this,e).has(e)},S.prototype.set=function(e,t){return k(this,e).set(e,t),this},D.Cache=S,e.exports=D},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}}},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 p}));var i=n("XNiG"),r=n("HDdC"),s=n("7o/Q"),o=n("quSY");function a(){return function(e){return e.lift(new c(e))}}class c{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const i=new l(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}class l extends s.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()}}class u 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 o.a,e.add(this.source.subscribe(new h(this.getSubject(),this))),e.closed&&(this._connection=null,e=o.a.EMPTY)),e}refCount(){return a()(this)}}const d=(()=>{const e=u.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 h 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()}}}function f(){return new i.a}function p(){return e=>{return a()((t=f,function(e){let n;n="function"==typeof t?t:function(){return t};const i=Object.create(e,d);return i.source=e,i.subjectFactory=n,i})(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 ze})),n.d(t,"f",(function(){return Ye})),n.d(t,"g",(function(){return Fe})),n.d(t,"h",(function(){return kt})),n.d(t,"i",(function(){return ct})),n.d(t,"j",(function(){return ve}));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.Nb(0,"datatable-progress")}function h(e,t){if(1&e&&i.Nb(0,"datatable-summary-row",9),2&e){const e=i.ic(2);i.pc("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.Tb();i.Sb(0,"datatable-body-row",13),i.gc("treeAction",(function(){i.Dc(e);const t=i.ic().$implicit;return i.ic(2).onTreeAction(t)}))("activate",(function(t){i.Dc(e);const n=i.ic().index,r=i.ic(2);return i.Ac(2).onActivate(t,r.indexes.first+n)})),i.Rb()}if(2&e){const e=i.ic().$implicit,t=i.ic(2),n=i.Ac(2);i.pc("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.Tb();i.Sb(0,"datatable-body-row",15),i.gc("activate",(function(n){i.Dc(e);const r=t.index;return i.ic(4),i.Ac(2).onActivate(n,r)})),i.Rb()}if(2&e){const e=t.$implicit,n=i.ic(2).$implicit,r=i.ic(2),s=i.Ac(2);i.pc("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.Mc(0,p,1,10,"datatable-body-row",14),2&e){const e=i.ic().$implicit,t=i.ic(2);i.pc("ngForOf",e.value)("ngForTrackBy",t.rowTrackingFn)}}function b(e,t){if(1&e){const e=i.Tb();i.Sb(0,"datatable-row-wrapper",10),i.gc("rowContextmenu",(function(t){return i.Dc(e),i.ic(2).rowContextmenu.emit(t)})),i.Mc(1,f,1,11,"datatable-body-row",11),i.Mc(2,m,1,2,"ng-template",null,12,i.Nc),i.Rb()}if(2&e){const e=t.$implicit,n=t.index,r=i.Ac(3),s=i.ic(2);i.pc("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.yb(1),i.pc("ngIf",!s.groupedRows)("ngIfElse",r)}}function g(e,t){if(1&e&&i.Nb(0,"datatable-summary-row",16),2&e){const e=i.ic(2);i.pc("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.Tb();i.Sb(0,"datatable-scroller",5),i.gc("scroll",(function(t){return i.Dc(e),i.ic().onBodyScroll(t)})),i.Mc(1,h,1,5,"datatable-summary-row",6),i.Mc(2,b,4,12,"datatable-row-wrapper",7),i.Mc(3,g,1,6,"datatable-summary-row",8),i.Rb()}if(2&e){const e=i.ic();i.pc("scrollbarV",e.scrollbarV)("scrollbarH",e.scrollbarH)("scrollHeight",e.scrollHeight)("scrollWidth",null==e.columnGroupWidths?null:e.columnGroupWidths.total),i.yb(1),i.pc("ngIf",e.summaryRow&&"top"===e.summaryPosition),i.yb(1),i.pc("ngForOf",e.temp)("ngForTrackBy",e.rowTrackingFn),i.yb(1),i.pc("ngIf",e.summaryRow&&"bottom"===e.summaryPosition)}}function y(e,t){if(1&e&&i.Nb(0,"div",17),2&e){const e=i.ic();i.pc("innerHTML",e.emptyMessage,i.Ec)}}function v(e,t){if(1&e){const e=i.Tb();i.Sb(0,"datatable-header-cell",4),i.gc("resize",(function(n){i.Dc(e);const r=t.$implicit;return i.ic(2).onColumnResized(n,r)}))("longPressStart",(function(t){return i.Dc(e),i.ic(2).onLongPressStart(t)}))("longPressEnd",(function(t){return i.Dc(e),i.ic(2).onLongPressEnd(t)}))("sort",(function(t){return i.Dc(e),i.ic(2).onSort(t)}))("select",(function(t){return i.Dc(e),i.ic(2).select.emit(t)}))("columnContextmenu",(function(t){return i.Dc(e),i.ic(2).columnContextmenu.emit(t)})),i.Rb()}if(2&e){const e=t.$implicit,n=i.ic(2);i.pc("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.Sb(0,"div",2),i.Mc(1,v,1,19,"datatable-header-cell",3),i.Rb()),2&e){const e=t.$implicit,n=i.ic();i.Ab("datatable-row-"+e.type),i.pc("ngStyle",n._styleByGroup[e.type]),i.yb(1),i.pc("ngForOf",e.columns)("ngForTrackBy",n.columnTrackingFn)}}function S(e,t){if(1&e){const e=i.Tb();i.Sb(0,"datatable-header",4),i.gc("sort",(function(t){return i.Dc(e),i.ic().onColumnSort(t)}))("resize",(function(t){return i.Dc(e),i.ic().onColumnResize(t)}))("reorder",(function(t){return i.Dc(e),i.ic().onColumnReorder(t)}))("select",(function(t){return i.Dc(e),i.ic().onHeaderSelect(t)}))("columnContextmenu",(function(t){return i.Dc(e),i.ic().onColumnContextmenu(t)})),i.jc(1,"async"),i.Rb()}if(2&e){const e=i.ic();i.pc("sorts",e.sorts)("sortType",e.sortType)("scrollbarH",e.scrollbarH)("innerWidth",e._innerWidth)("offsetX",i.kc(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 M(e,t){if(1&e){const e=i.Tb();i.Sb(0,"datatable-footer",5),i.gc("page",(function(t){return i.Dc(e),i.ic().onFooterPage(t)})),i.Rb()}if(2&e){const e=i.ic();i.pc("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 k(e,t){}function x(e,t){if(1&e&&i.Mc(0,k,0,0,"ng-template",5),2&e){const e=i.ic();i.pc("ngTemplateOutlet",e.targetMarkerTemplate)("ngTemplateOutletContext",e.targetMarkerContext)}}function D(e,t){if(1&e){const e=i.Tb();i.Sb(0,"label",6),i.Sb(1,"input",7),i.gc("change",(function(){i.Dc(e);const t=i.ic();return t.select.emit(!t.allRowsSelected)})),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.yb(1),i.pc("checked",e.allRowsSelected)}}function T(e,t){if(1&e){const e=i.Tb();i.Sb(0,"span",8),i.Sb(1,"span",9),i.gc("click",(function(){return i.Dc(e),i.ic().onSort()})),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.yb(1),i.pc("innerHTML",e.name,i.Ec)}}function C(e,t){}function O(e,t){if(1&e&&i.Mc(0,C,0,0,"ng-template",5),2&e){const e=i.ic();i.pc("ngTemplateOutlet",e.column.headerTemplate)("ngTemplateOutletContext",e.cellContext)}}function L(e,t){}const R=function(e,t,n,i,r){return{rowCount:e,pageSize:t,selectedCount:n,curPage:i,offset:r}};function E(e,t){if(1&e&&i.Mc(0,L,0,0,"ng-template",4),2&e){const e=i.ic();i.pc("ngTemplateOutlet",e.footerTemplate.template)("ngTemplateOutletContext",i.yc(2,R,e.rowCount,e.pageSize,e.selectedCount,e.curPage,e.offset))}}function A(e,t){if(1&e&&(i.Sb(0,"span"),i.Oc(1),i.Rb()),2&e){const e=i.ic(2);i.yb(1),i.Rc(" ",null==e.selectedCount?null:e.selectedCount.toLocaleString()," ",e.selectedMessage," / ")}}function I(e,t){if(1&e&&(i.Sb(0,"div",5),i.Mc(1,A,2,2,"span",1),i.Oc(2),i.Rb()),2&e){const e=i.ic();i.yb(1),i.pc("ngIf",e.selectedMessage),i.yb(1),i.Rc(" ",null==e.rowCount?null:e.rowCount.toLocaleString()," ",e.totalMessage," ")}}function P(e,t){if(1&e){const e=i.Tb();i.Sb(0,"datatable-pager",6),i.gc("change",(function(t){return i.Dc(e),i.ic().page.emit(t)})),i.Rb()}if(2&e){const e=i.ic();i.pc("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 N=function(e){return{"selected-count":e}};function j(e,t){if(1&e){const e=i.Tb();i.Sb(0,"li",6),i.Sb(1,"a",7),i.gc("click",(function(){i.Dc(e);const n=t.$implicit;return i.ic().selectPage(n.number)})),i.Oc(2),i.Rb(),i.Rb()}if(2&e){const e=t.$implicit,n=i.ic();i.Eb("active",e.number===n.page),i.zb("aria-label","page "+e.number),i.yb(2),i.Qc(" ",e.text," ")}}function F(e,t){if(1&e){const e=i.Tb();i.Sb(0,"datatable-body-cell",3),i.gc("activate",(function(n){i.Dc(e);const r=t.index;return i.ic(2).onActivate(n,r)}))("treeAction",(function(){return i.Dc(e),i.ic(2).onTreeAction()})),i.Rb()}if(2&e){const e=t.$implicit,n=i.ic(2);i.pc("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.Sb(0,"div",1),i.Mc(1,F,1,9,"datatable-body-cell",2),i.Rb()),2&e){const e=t.$implicit,n=i.ic();i.Bb("datatable-row-",e.type," datatable-row-group"),i.pc("ngStyle",n._groupStyles[e.type]),i.yb(1),i.pc("ngForOf",e.columns)("ngForTrackBy",n.columnTrackingFn)}}function z(e,t){}function $(e,t){if(1&e&&i.Mc(0,z,0,0,"ng-template",4),2&e){const e=i.ic(2);i.pc("ngTemplateOutlet",e.groupHeader.template)("ngTemplateOutletContext",e.groupContext)}}function H(e,t){if(1&e&&(i.Sb(0,"div",3),i.Mc(1,$,1,2,void 0,1),i.Rb()),2&e){const e=i.ic();i.pc("ngStyle",e.getGroupHeaderStyle()),i.yb(1),i.pc("ngIf",e.groupHeader&&e.groupHeader.template)}}function W(e,t){1&e&&i.nc(0,0,["*ngIf","(groupHeader && groupHeader.template && expanded) || !groupHeader || !groupHeader.template"])}function V(e,t){}function B(e,t){if(1&e&&i.Mc(0,V,0,0,"ng-template",4),2&e){const e=i.ic(2);i.pc("ngTemplateOutlet",e.rowDetail.template)("ngTemplateOutletContext",e.rowContext)}}function U(e,t){if(1&e&&(i.Sb(0,"div",5),i.Mc(1,B,1,2,void 0,1),i.Rb()),2&e){const e=i.ic();i.Kc("height",e.detailRowHeight,"px"),i.yb(1),i.pc("ngIf",e.rowDetail&&e.rowDetail.template)}}const G=["cellTemplate"];function q(e,t){if(1&e){const e=i.Tb();i.Sb(0,"label",4),i.Sb(1,"input",5),i.gc("click",(function(t){return i.Dc(e),i.ic().onCheckboxChange(t)})),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.yb(1),i.pc("checked",e.isSelected)}}function J(e,t){1&e&&i.Nb(0,"i",11)}function Q(e,t){1&e&&i.Nb(0,"i",12)}function K(e,t){1&e&&i.Nb(0,"i",13)}function Z(e,t){if(1&e){const e=i.Tb();i.Sb(0,"button",7),i.gc("click",(function(){return i.Dc(e),i.ic(2).onTreeAction()})),i.Sb(1,"span"),i.Mc(2,J,1,0,"i",8),i.Mc(3,Q,1,0,"i",9),i.Mc(4,K,1,0,"i",10),i.Rb(),i.Rb()}if(2&e){const e=i.ic(2);i.pc("disabled","disabled"===e.treeStatus),i.yb(2),i.pc("ngIf","loading"===e.treeStatus),i.yb(1),i.pc("ngIf","collapsed"===e.treeStatus),i.yb(1),i.pc("ngIf","expanded"===e.treeStatus||"disabled"===e.treeStatus)}}function X(e,t){}const ee=function(e){return{cellContext:e}};function te(e,t){if(1&e&&i.Mc(0,X,0,0,"ng-template",14),2&e){const e=i.ic(2);i.pc("ngTemplateOutlet",e.column.treeToggleTemplate)("ngTemplateOutletContext",i.uc(2,ee,e.cellContext))}}function ne(e,t){if(1&e&&(i.Qb(0),i.Mc(1,Z,5,4,"button",6),i.Mc(2,te,1,4,void 0,2),i.Pb()),2&e){const e=i.ic();i.yb(1),i.pc("ngIf",!e.column.treeToggleTemplate),i.yb(1),i.pc("ngIf",e.column.treeToggleTemplate)}}function ie(e,t){if(1&e&&i.Nb(0,"span",15),2&e){const e=i.ic();i.pc("title",e.sanitizedValue)("innerHTML",e.value,i.Ec)}}function re(e,t){}function se(e,t){if(1&e&&i.Mc(0,re,0,0,"ng-template",14,16,i.Nc),2&e){const e=i.ic();i.pc("ngTemplateOutlet",e.column.cellTemplate)("ngTemplateOutletContext",e.cellContext)}}function oe(e,t){if(1&e&&i.Nb(0,"datatable-body-row",1),2&e){const e=i.ic();i.pc("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.dc(r.d))},e.\u0275prov=i.Ib({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.Ib({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.Ib({token:e,factory:e.\u0275fac}),e})(),ue=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.L))},e.\u0275dir=i.Hb({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.o}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.Mb(i.m),i.Mb(i.A))},e.\u0275dir=i.Hb({type:e,selectors:[["","visibilityObserver",""]],hostVars:2,hostBindings:function(e,t){2&e&&i.Eb("visible",t.isVisible)},outputs:{visible:"visible"}}),e})(),he=(()=>{class e{constructor(e){this.dragX=!0,this.dragY=!0,this.dragStart=new i.o,this.dragging=new i.o,this.dragEnd=new i.o,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.Mb(i.m))},e.\u0275dir=i.Hb({type:e,selectors:[["","draggable",""]],inputs:{dragX:"dragX",dragY:"dragY",dragEventTarget:"dragEventTarget",dragModel:"dragModel"},outputs:{dragStart:"dragStart",dragging:"dragging",dragEnd:"dragEnd"},features:[i.wb]}),e})(),fe=(()=>{class e{constructor(e,t){this.renderer=t,this.resizeEnabled=!0,this.resize=new i.o,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.Mb(i.m),i.Mb(i.E))},e.\u0275dir=i.Hb({type:e,selectors:[["","resizeable",""]],hostVars:2,hostBindings:function(e,t){1&e&&i.gc("mousedown",(function(e){return t.onMousedown(e)})),2&e&&i.Eb("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.o,this.targetChanged=new i.o,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.Mb(i.u),i.Mb(r.d))},e.\u0275dir=i.Hb({type:e,selectors:[["","orderable",""]],contentQueries:function(e,t,n){var r;1&e&&i.Fb(n,he,!0),2&e&&i.zc(r=i.hc())&&(t.draggables=r)},outputs:{reorder:"reorder",targetChanged:"targetChanged"}}),e})(),me=(()=>{class e{constructor(){this.pressEnabled=!0,this.duration=500,this.longPressStart=new i.o,this.longPressing=new i.o,this.longPressEnd=new i.o,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.Hb({type:e,selectors:[["","long-press",""]],hostVars:4,hostBindings:function(e,t){1&e&&i.gc("mousedown",(function(e){return t.onMouseDown(e)})),2&e&&i.Eb("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.o,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.Mb(i.A),i.Mb(i.m),i.Mb(i.E))},e.\u0275cmp=i.Gb({type:e,selectors:[["datatable-scroller"]],hostAttrs:[1,"datatable-scroll"],hostVars:4,hostBindings:function(e,t){2&e&&i.Kc("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.oc(),i.nc(0))},encapsulation:2,changeDetection:0}),e})(),ge=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.L))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngx-datatable-group-header-template",""]]}),e})(),_e=(()=>{class e{constructor(){this.rowHeight=0,this.toggle=new i.o}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.Hb({type:e,selectors:[["ngx-datatable-group-header"]],contentQueries:function(e,t,n){var r;1&e&&i.Ic(n,ge,!0,i.L),2&e&&i.zc(r=i.hc())&&(t._templateQuery=r.first)},inputs:{rowHeight:"rowHeight",_templateInput:["template","_templateInput"]},outputs:{toggle:"toggle"}}),e})();function ye(){return""}function ve(e){return null==e?ye:"number"==typeof e?we:-1!==e.indexOf(".")?Me:Se}function we(e,t){if(null==e)return"";if(!e||null==t)return e;const n=e[t];return null==n?"":n}function Se(e,t){if(null==e)return"";if(!e||!t)return e;const n=e[t];return null==n?"":n}function Me(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 ke(e){return e&&(t=>ve(e)(t,e))}function xe(e,t,n){if(t&&n){const i={},r=e.length;let s=null;i[0]=new De;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 De(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 De{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 Te(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=Te(n.name)),n.$$valueGetter||(n.$$valueGetter=ve(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}({}),Re=function(e){return e.single="single",e.multi="multi",e.multiClick="multiClick",e.cell="cell",e.checkbox="checkbox",e}({}),Ee=function(e){return e.single="single",e.multi="multi",e}({}),Ae=function(e){return e.header="header",e.body="body",e}({});let Ie=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.L))},e.\u0275dir=i.Hb({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.Mb(i.L))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngx-datatable-cell-template",""]]}),e})(),Ne=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.L))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngx-datatable-tree-toggle",""]]}),e})(),je=(()=>{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.Mb(le))},e.\u0275dir=i.Hb({type:e,selectors:[["ngx-datatable-column"]],contentQueries:function(e,t,n){var r;1&e&&(i.Ic(n,Pe,!0,i.L),i.Ic(n,Ie,!0,i.L),i.Ic(n,Ne,!0,i.L)),2&e&&(i.zc(r=i.hc())&&(t._cellTemplateQuery=r.first),i.zc(r=i.hc())&&(t._headerTemplateQuery=r.first),i.zc(r=i.hc())&&(t._treeToggleTemplateQuery=r.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.wb]}),e})(),Fe=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.L))},e.\u0275dir=i.Hb({type:e,selectors:[["","ngx-datatable-row-detail-template",""]]}),e})(),Ye=(()=>{class e{constructor(){this.rowHeight=0,this.toggle=new i.o}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.Hb({type:e,selectors:[["ngx-datatable-row-detail"]],contentQueries:function(e,t,n){var r;1&e&&i.Ic(n,Fe,!0,i.L),2&e&&i.zc(r=i.hc())&&(t._templateQuery=r.first)},inputs:{rowHeight:"rowHeight",_templateInput:["template","_templateInput"]},outputs:{toggle:"toggle"}}),e})(),ze=(()=>{class e{get template(){return this._templateInput||this._templateQuery}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Hb({type:e,selectors:[["ngx-datatable-footer"]],contentQueries:function(e,t,n){var r;1&e&&i.Fb(n,ue,!0,i.L),2&e&&i.zc(r=i.hc())&&(t._templateQuery=r.first)},inputs:{footerHeight:"footerHeight",totalMessage:"totalMessage",selectedMessage:"selectedMessage",pagerLeftArrowIcon:"pagerLeftArrowIcon",pagerRightArrowIcon:"pagerRightArrowIcon",pagerPreviousIcon:"pagerPreviousIcon",pagerNextIcon:"pagerNextIcon",_templateInput:["template","_templateInput"]}}),e})();function $e(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 He(e,t){return{left:We(e.left),center:We(e.center),right:We(e.right),total:Math.floor(We(t))}}function We(e,t){let n=0;if(e)for(const i of e)n+=parseFloat(t&&i[t]?i[t]:i.width);return n}function Ve(e){const t=[],n=$e(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 Be{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 Ue={},Ge="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 Je(e){const t=Te(e);return Ue[t]||(void 0!==qe&&void 0!==Ge[qe.css+e]?Ue[t]=qe.css+e:void 0!==Ge[e]&&(Ue[t]=e)),Ue[t]}const Qe="undefined"!=typeof window?Je("transform"):void 0,Ke="undefined"!=typeof window?Je("backfaceVisibility"):void 0,Ze="undefined"!=typeof window?!!Je("transform"):void 0,Xe="undefined"!=typeof window?!!Je("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!==Qe&&Ze?!tt&&Xe?(e[Qe]=`translate3d(${t}px, ${n}px, 0)`,e[Ke]="hidden"):e[Te(Qe)]=`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.o,this.page=new i.o,this.activate=new i.o,this.select=new i.o,this.detailToggle=new i.o,this.rowContextmenu=new i.o(!1),this.treeAction=new i.o,this.rowHeightsCache=new Be,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=$e(e);this.columnGroupWidths=He(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.Mb(i.h))},e.\u0275cmp=i.Gb({type:e,selectors:[["datatable-body"]],viewQuery:function(e,t){var n;1&e&&i.Tc(be,!0),2&e&&i.zc(n=i.hc())&&(t.scroller=n.first)},hostAttrs:[1,"datatable-body"],hostVars:4,hostBindings:function(e,t){2&e&&i.Kc("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.Mc(0,d,1,0,"datatable-progress",0),i.Sb(1,"datatable-selection",1,2),i.gc("select",(function(e){return t.select.emit(e)}))("activate",(function(e){return t.activate.emit(e)})),i.Mc(3,_,4,8,"datatable-scroller",3),i.Mc(4,y,1,1,"div",4),i.Rb()),2&e&&(i.pc("ngIf",t.loadingIndicator),i.yb(1),i.pc("selected",t.selected)("rows",t.rows)("selectCheck",t.selectCheck)("selectEnabled",t.selectEnabled)("selectionType",t.selectionType)("rowIdentity",t.rowIdentity),i.yb(2),i.pc("ngIf",null==t.rows?null:t.rows.length),i.yb(1),i.pc("ngIf",!(null!=t.rows&&t.rows.length||t.loadingIndicator)))},directives:function(){return[r.r,vt,pt,be,r.q,Mt,gt,r.s,bt]},encapsulation:2,changeDetection:0}),e})(),rt=(()=>{class e{constructor(e){this.cd=e,this.sort=new i.o,this.reorder=new i.o,this.resize=new i.o,this.select=new i.o,this.columnContextmenu=new i.o(!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=$e(this._columns);this._columnGroupWidths=He(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=$e(e);this._columnsByPin=Ve(e),setTimeout(()=>{this._columnGroupWidths=He(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===Ee.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.Mb(i.h))},e.\u0275cmp=i.Gb({type:e,selectors:[["datatable-header"]],hostAttrs:[1,"datatable-header"],hostVars:4,hostBindings:function(e,t){2&e&&i.Kc("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.Sb(0,"div",0),i.gc("reorder",(function(e){return t.onColumnReordered(e)}))("targetChanged",(function(e){return t.onTargetChanged(e)})),i.Mc(1,w,2,5,"div",1),i.Rb()),2&e&&(i.Kc("width",t._columnGroupWidths.total,"px"),i.yb(1),i.pc("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=Ee.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.o,this.activate=new i.o,this.select=new i.o,this.sort=new i.o,this.page=new i.o,this.reorder=new i.o,this.resize=new i.o,this.tableContextmenu=new i.o(!1),this.treeAction=new i.o,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=xe(this._internalRows,ke(this.treeFromRelation),ke(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===Re.checkbox}get isCellSelection(){return this.selectionType===Re.cell}get isSingleSelection(){return this.selectionType===Re.single}get isMultiSelection(){return this.selectionType===Re.multi}get isMultiClickSelection(){return this.selectionType===Re.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=xe(this._internalRows,ke(this.treeFromRelation),ke(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=$e(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:Ae.header,content:t})}onRowContextmenu({event:e,row:t}){this.tableContextmenu.emit({event:e,type:Ae.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=xe(this._internalRows,ke(this.treeFromRelation),ke(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:ve(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.Mb(ae,4),i.Mb(ce,4),i.Mb(i.h),i.Mb(i.m),i.Mb(i.u),i.Mb(le),i.Mb("configuration",8))},e.\u0275cmp=i.Gb({type:e,selectors:[["ngx-datatable"]],contentQueries:function(e,t,n){var r;1&e&&(i.Fb(n,Ye,!0),i.Fb(n,_e,!0),i.Fb(n,ze,!0),i.Fb(n,je,!1)),2&e&&(i.zc(r=i.hc())&&(t.rowDetail=r.first),i.zc(r=i.hc())&&(t.groupHeader=r.first),i.zc(r=i.hc())&&(t.footer=r.first),i.zc(r=i.hc())&&(t.columnTemplates=r))},viewQuery:function(e,t){var n;1&e&&(i.Tc(it,!0),i.Tc(rt,!0)),2&e&&(i.zc(n=i.hc())&&(t.bodyComponent=n.first),i.zc(n=i.hc())&&(t.headerComponent=n.first))},hostAttrs:[1,"ngx-datatable"],hostVars:22,hostBindings:function(e,t){1&e&&i.gc("resize",(function(){return t.onWindowResize()}),!1,i.Cc),2&e&&i.Eb("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.Sb(0,"div",0),i.gc("visible",(function(){return t.recalculate()})),i.Mc(1,S,2,17,"datatable-header",1),i.Sb(2,"datatable-body",2),i.gc("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.jc(3,"async"),i.Rb(),i.Mc(4,M,1,12,"datatable-footer",3),i.Rb()),2&e&&(i.yb(1),i.pc("ngIf",t.headerHeight),i.yb(1),i.pc("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.kc(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.yb(2),i.pc("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.o,this.select=new i.o,this.columnContextmenu=new i.o(!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===Re.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===Ee.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.Mb(i.h))},e.\u0275cmp=i.Gb({type:e,selectors:[["datatable-header-cell"]],hostAttrs:[1,"datatable-header-cell"],hostVars:11,hostBindings:function(e,t){1&e&&i.gc("contextmenu",(function(e){return t.onContextmenu(e)})),2&e&&(i.zb("title",t.name),i.Ab(t.columnCssClasses),i.Kc("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.Sb(0,"div",0),i.Mc(1,x,1,2,void 0,1),i.Mc(2,D,2,1,"label",2),i.Mc(3,T,2,1,"span",3),i.Mc(4,O,1,2,void 0,1),i.Sb(5,"span",4),i.gc("click",(function(){return t.onSort()})),i.Rb(),i.Rb()),2&e&&(i.yb(1),i.pc("ngIf",t.isTarget),i.yb(1),i.pc("ngIf",t.isCheckboxable),i.yb(1),i.pc("ngIf",!t.column.headerTemplate),i.yb(1),i.pc("ngIf",t.column.headerTemplate),i.yb(1),i.Ab(t.sortClass))},directives:[r.r,r.w],encapsulation:2,changeDetection:0}),e})(),ht=(()=>{class e{constructor(){this.selectedCount=0,this.page=new i.o}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.Gb({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.Sb(0,"div",0),i.Mc(1,E,1,8,void 0,1),i.Mc(2,I,3,3,"div",2),i.Mc(3,P,1,8,"datatable-pager",3),i.Rb()),2&e&&(i.Kc("height",t.footerHeight,"px"),i.pc("ngClass",i.uc(6,N,t.selectedMessage)),i.yb(1),i.pc("ngIf",t.footerTemplate),i.yb(1),i.pc("ngIf",!t.footerTemplate),i.yb(1),i.pc("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.o,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.Gb({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.Sb(0,"ul",0),i.Sb(1,"li"),i.Sb(2,"a",1),i.gc("click",(function(){return t.selectPage(1)})),i.Nb(3,"i"),i.Rb(),i.Rb(),i.Sb(4,"li"),i.Sb(5,"a",2),i.gc("click",(function(){return t.prevPage()})),i.Nb(6,"i"),i.Rb(),i.Rb(),i.Mc(7,j,3,4,"li",3),i.Sb(8,"li"),i.Sb(9,"a",4),i.gc("click",(function(){return t.nextPage()})),i.Nb(10,"i"),i.Rb(),i.Rb(),i.Sb(11,"li"),i.Sb(12,"a",5),i.gc("click",(function(){return t.selectPage(t.totalPages)})),i.Nb(13,"i"),i.Rb(),i.Rb(),i.Rb()),2&e&&(i.yb(1),i.Eb("disabled",!t.canPrevious()),i.yb(2),i.Ab(t.pagerPreviousIcon),i.yb(1),i.Eb("disabled",!t.canPrevious()),i.yb(2),i.Ab(t.pagerLeftArrowIcon),i.yb(1),i.pc("ngForOf",t.pages),i.yb(1),i.Eb("disabled",!t.canNext()),i.yb(2),i.Ab(t.pagerRightArrowIcon),i.yb(1),i.Eb("disabled",!t.canNext()),i.yb(2),i.Ab(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.Gb({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.Sb(0,"div",0),i.Sb(1,"div",1),i.Nb(2,"div",2),i.Rb(),i.Rb())},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.o,this.treeAction=new i.o,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=$e(this._columns);this._columnGroupWidths=He(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=$e(this._columns);this._columnsByPin=Ve(this._columns),this._columnGroupWidths=He(t,this._columns)}onTreeAction(){this.treeAction.emit()}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(i.u),i.Mb(ae,4),i.Mb(i.h),i.Mb(i.m))},e.\u0275cmp=i.Gb({type:e,selectors:[["datatable-body-row"]],hostVars:6,hostBindings:function(e,t){1&e&&i.gc("keydown",(function(e){return t.onKeyDown(e)}))("mouseenter",(function(e){return t.onMouseenter(e)})),2&e&&(i.Ab(t.cssClass),i.Kc("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.Mc(0,Y,2,6,"div",0),2&e&&i.pc("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.o(!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.Mb(i.h),i.Mb(i.u))},e.\u0275cmp=i.Gb({type:e,selectors:[["datatable-row-wrapper"]],hostAttrs:[1,"datatable-row-wrapper"],hostBindings:function(e,t){1&e&&i.gc("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.oc(),i.Mc(0,H,2,2,"div",0),i.Mc(1,W,1,0,"ng-content",1),i.Mc(2,U,2,3,"div",2)),2&e&&(i.pc("ngIf",t.groupHeader&&t.groupHeader.template),i.yb(1),i.pc("ngIf",t.groupHeader&&t.groupHeader.template&&t.expanded||!t.groupHeader||!t.groupHeader.template),i.yb(1),i.pc("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.o,this.treeAction=new i.o,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.Mb(i.m),i.Mb(i.h))},e.\u0275cmp=i.Gb({type:e,selectors:[["datatable-body-cell"]],viewQuery:function(e,t){var n;1&e&&i.Jc(G,!0,i.P),2&e&&i.zc(n=i.hc())&&(t.cellTemplate=n.first)},hostVars:10,hostBindings:function(e,t){1&e&&i.gc("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.Ab(t.columnCssClasses),i.Kc("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.Sb(0,"div",0),i.Mc(1,q,2,1,"label",1),i.Mc(2,ne,3,2,"ng-container",2),i.Mc(3,ie,1,2,"span",3),i.Mc(4,se,2,2,void 0,2),i.Rb()),2&e&&(i.Kc("margin-left",t.calcLeftMargin(t.column,t.row),"px"),i.yb(1),i.pc("ngIf",t.column.checkboxable&&(!t.displayCheck||t.displayCheck(t.row,t.column,t.value))),i.yb(1),i.pc("ngIf",t.column.isTreeColumn),i.yb(1),i.pc("ngIf",!t.column.cellTemplate),i.yb(1),i.pc("ngIf",t.column.cellTemplate))},directives:[r.r,r.w],encapsulation:2,changeDetection:0}),e})();function yt(e,t,n){const i=n(t,e);return i>-1?e.splice(i,1):e.push(t),e}let vt=(()=>{class e{constructor(){this.activate=new i.o,this.select=new i.o}selectRow(e,t,n){if(!this.selectEnabled)return;const i=this.selectionType===Re.checkbox,r=this.selectionType===Re.multiClick;let s=[];s=this.selectionType===Re.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)):yt(e.ctrlKey||e.metaKey||r||i?[...this.selected]:[],n,this.getRowSelectedIdx.bind(this)):yt([],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===Re.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===Re.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.Gb({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.oc(),i.nc(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 St(e){return null}let Mt=(()=>{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?St:e.summaryFunc}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["datatable-summary-row"]],hostAttrs:[1,"datatable-summary-row"],inputs:{rows:"rows",columns:"columns",rowHeight:"rowHeight",offsetX:"offsetX",innerWidth:"innerWidth"},features:[i.wb],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.Mc(0,oe,1,6,"datatable-body-row",0),2&e&&i.pc("ngIf",t.summaryRow&&t._internalColumns)},directives:[r.r,bt],encapsulation:2}),e})(),kt=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[{provide:"configuration",useValue:t}]}}}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},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("hh1v");e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},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 kt(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=[],y=!1;function v(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){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,r.updateOffset(this),y=!1)}function S(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function M(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function k(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)}M(e+"\nArguments: "+Array.prototype.slice.call(c).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var x,D={};function T(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),D[e]||(M(t),D[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 R(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,x=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var E=/(\[[^\[]*\])|(\\)?([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,A=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I={},P={};function N(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 R(r.apply(this,arguments),t[1],t[2])}),n&&(P[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function j(e,t){return e.isValid()?(t=F(t,e.localeData()),I[t]=I[t]||function(e){var t,n,i,r=e.match(E);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),I[t](e)):e.localeData().invalidDate()}function F(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(A.lastIndex=0;n>=0&&A.test(e);)e=e.replace(A,i),A.lastIndex=0,n-=1;return e}var Y={};function z(e,t){var n=e.toLowerCase();Y[n]=Y[n+"s"]=Y[t]=e}function $(e){return"string"==typeof e?Y[e]||Y[e.toLowerCase()]:void 0}function H(e){var t,n,i={};for(n in e)a(e,n)&&(t=$(n))&&(i[t]=e[n]);return i}var W={};function V(e,t){W[e]=t}function B(e){return e%4==0&&e%100!=0||e%400==0}function U(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function G(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=U(t)),n}function q(e,t){return function(n){return null!=n?(Q(this,e,n),r.updateOffset(this,t),this):J(this,e)}}function J(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Q(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&B(e.year())&&1===e.month()&&29===e.date()?(n=G(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Se(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var K,Z=/\d/,X=/\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 ye(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),u(t)&&(i=function(e,n){n[t]=G(e)}),n=0;n<e.length;n++)_e[e[n]]=i}function ve(e,t){ye(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 Se(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%12+12)%12;return e+=(t-n)/12,1===n?B(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},N("M",["MM",2],"Mo",(function(){return this.month()+1})),N("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),N("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),z("month","M"),V("month",8),pe("M",ie),pe("MM",ie,X),pe("MMM",(function(e,t){return t.monthsShortRegex(e)})),pe("MMMM",(function(e,t){return t.monthsRegex(e)})),ye(["M","MM"],(function(e,t){t[1]=G(e)-1})),ye(["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 Me="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ke="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),xe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,De=fe,Te=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=G(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Se(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):J(this,"Month")}function Re(){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 Ee(e){return B(e)?366:365}N("Y",0,0,(function(){var e=this.year();return e<=9999?R(e,4):"+"+e})),N(0,["YY",2],0,(function(){return this.year()%100})),N(0,["YYYY",4],0,"year"),N(0,["YYYYY",5],0,"year"),N(0,["YYYYYY",6,!0],0,"year"),z("year","y"),V("year",1),pe("Y",ue),pe("YY",ie,X),pe("YYYY",ae,te),pe("YYYYY",ce,ne),pe("YYYYYY",ce,ne),ye(["YYYYY","YYYYYY"],0),ye("YYYY",(function(e,t){t[0]=2===e.length?r.parseTwoDigitYear(e):G(e)})),ye("YY",(function(e,t){t[0]=r.parseTwoDigitYear(e)})),ye("Y",(function(e,t){t[0]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return G(e)+(G(e)>68?1900:2e3)};var Ae=q("FullYear",!0);function Ie(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 Ne(e,t,n){var i=7+t-n;return-(7+Pe(e,0,i).getUTCDay()-t)%7+i-1}function je(e,t,n,i,r){var s,o,a=1+7*(t-1)+(7+n-i)%7+Ne(e,i,r);return a<=0?o=Ee(s=e-1)+a:a>Ee(e)?(s=e+1,o=a-Ee(e)):(s=e,o=a),{year:s,dayOfYear:o}}function Fe(e,t,n){var i,r,s=Ne(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=Ne(e,t,n),r=Ne(e+1,t,n);return(Ee(e)-i+r)/7}function ze(e,t){return e.slice(t,7).concat(e.slice(0,t))}N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),z("week","w"),z("isoWeek","W"),V("week",5),V("isoWeek",5),pe("w",ie),pe("ww",ie,X),pe("W",ie),pe("WW",ie,X),ve(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=G(e)})),N("d",0,"do","day"),N("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),N("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),N("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),z("day","d"),z("weekday","e"),z("isoWeekday","E"),V("day",11),V("weekday",11),V("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)})),ve(["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})),ve(["d","e","E"],(function(e,t,n,i){t[i]=G(e)}));var $e="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),He="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),We="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ve=fe,Be=fe,Ue=fe;function Ge(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 Je(){return this.hours()%12||12}function Qe(e,t){N(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ke(e,t){return t._meridiemParse}N("H",["HH",2],0,"hour"),N("h",["hh",2],0,Je),N("k",["kk",2],0,(function(){return this.hours()||24})),N("hmm",0,0,(function(){return""+Je.apply(this)+R(this.minutes(),2)})),N("hmmss",0,0,(function(){return""+Je.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)})),N("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)})),N("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)})),Qe("a",!0),Qe("A",!1),z("hour","h"),V("hour",13),pe("a",Ke),pe("A",Ke),pe("H",ie),pe("h",ie),pe("k",ie),pe("HH",ie,X),pe("hh",ie,X),pe("kk",ie,X),pe("hmm",re),pe("hmmss",se),pe("Hmm",re),pe("Hmmss",se),ye(["H","HH"],3),ye(["k","kk"],(function(e,t,n){var i=G(e);t[3]=24===i?0:i})),ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ye(["h","hh"],(function(e,t,n){t[3]=G(e),m(n).bigHour=!0})),ye("hmm",(function(e,t,n){var i=e.length-2;t[3]=G(e.substr(0,i)),t[4]=G(e.substr(i)),m(n).bigHour=!0})),ye("hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=G(e.substr(0,i)),t[4]=G(e.substr(i,2)),t[5]=G(e.substr(r)),m(n).bigHour=!0})),ye("Hmm",(function(e,t,n){var i=e.length-2;t[3]=G(e.substr(0,i)),t[4]=G(e.substr(i))})),ye("Hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=G(e.substr(0,i)),t[4]=G(e.substr(i,2)),t[5]=G(e.substr(r))}));var Ze,Xe=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:Me,monthsShort:ke,week:{dow:0,doy:6},weekdays:$e,weekdaysMin:We,weekdaysShort:He,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=Ze._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))?Ze=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ze._abbr}function at(e,t){if(null!==t){var n,i=et;if(t.abbr=e,null!=tt[e])T("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 Ze;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 Ze}(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]>Se(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||""),St(e)}else e._isValid=!1}function yt(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),ke.indexOf(n),parseInt(i,10),parseInt(r,10),parseInt(s,10)],o&&a.push(parseInt(o,10)),!function(e,t,n){return!e||He.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 vt(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=vt(t.GG,e._a[0],Fe(xt(),1,4).year),i=vt(t.W,1),((r=vt(t.E,1))<1||r>7)&&(c=!0)):(s=e._locale._week.dow,o=e._locale._week.doy,l=Fe(xt(),s,o),n=vt(t.gg,e._a[0],l.year),i=vt(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=je(n,i,r,s,o),e._a[0]=a.year,e._dayOfYear=a.dayOfYear)}(e),null!=e._dayOfYear&&(o=vt(e._a[0],i[0]),(e._dayOfYear>Ee(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:Ie).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 St(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=F(e._f,e._locale).match(E)||[],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 yt(e);else _t(e)}function Mt(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)),S(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=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],St(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?St(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,yt(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=H(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 kt(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(Mt(l))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function xt(e,t,n,i){return kt(e,t,n,i,!1)}r.createFromInputFallback=k("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 Dt=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=xt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()})),Tt=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=xt.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 xt();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=H(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]])!==G(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 Rt(e){return e instanceof Lt}function Et(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function At(e,t){N(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+R(~~(e/60),2)+t+R(~~e%60,2)}))}At("Z",":"),At("ZZ",""),pe("Z",he),pe("ZZ",he),ye(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Pt(he,e)}));var It=/([\+\-]|\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(It)||["-",0,0])[1]+G(n[2]))?0:"+"===n[0]?i:-i}function Nt(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(S(e)||d(e)?e.valueOf():xt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):xt(e).local()}function jt(e){return-Math.round(e._d.getTimezoneOffset())}function Ft(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Yt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,zt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function $t(e,t){var n,i,r,s,o,c,l=e,d=null;return Rt(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:G(d[2])*n,h:G(d[3])*n,m:G(d[4])*n,s:G(d[5])*n,ms:G(Et(1e3*d[6]))*n}):(d=zt.exec(e))?l={y:Ht(d[2],n="-"===d[1]?-1:1),M:Ht(d[3],n),w:Ht(d[4],n),d:Ht(d[5],n),h:Ht(d[6],n),m:Ht(d[7],n),s:Ht(d[8],n)}:null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(s=xt(l.from),o=xt(l.to),r=s.isValid()&&o.isValid()?(o=Nt(o,s),s.isBefore(o)?c=Wt(s,o):((c=Wt(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),Rt(e)&&a(e,"_locale")&&(i._locale=e._locale),Rt(e)&&a(e,"_isValid")&&(i._isValid=e._isValid),i}function Ht(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Wt(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 Vt(e,t){return function(n,i){var r;return null===i||isNaN(+i)||(T(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),Bt(this,$t(n,i),e),this}}function Bt(e,t,n,i){var s=t._milliseconds,o=Et(t._days),a=Et(t._months);e.isValid()&&(i=null==i||i,a&&Oe(e,J(e,"Month")+a*n),o&&Q(e,"Date",J(e,"Date")+o*n),s&&e._d.setTime(e._d.valueOf()+s*n),i&&r.updateOffset(e,o||a))}$t.fn=Lt.prototype,$t.invalid=function(){return $t(NaN)};var Ut=Vt(1,"add"),Gt=Vt(-1,"subtract");function qt(e){return"string"==typeof e||e instanceof String}function Jt(e){return S(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 Qt(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 Zt(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 Xt=k("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){N(0,[e,e.length],0,t)}function hn(e,t,n,i,r){var s;return null==e?Fe(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=je(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}N("N",0,0,"eraAbbr"),N("NN",0,0,"eraAbbr"),N("NNN",0,0,"eraAbbr"),N("NNNN",0,0,"eraName"),N("NNNNN",0,0,"eraNarrow"),N("y",["y",1],"yo","eraYear"),N("y",["yy",2],0,"eraYear"),N("y",["yyy",3],0,"eraYear"),N("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)})),ye(["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})),ye(["y","yy","yyy","yyyy"],0),ye(["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)})),N(0,["gg",2],0,(function(){return this.weekYear()%100})),N(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),dn("gggg","weekYear"),dn("ggggg","weekYear"),dn("GGGG","isoWeekYear"),dn("GGGGG","isoWeekYear"),z("weekYear","gg"),z("isoWeekYear","GG"),V("weekYear",1),V("isoWeekYear",1),pe("G",ue),pe("g",ue),pe("GG",ie,X),pe("gg",ie,X),pe("GGGG",ae,te),pe("gggg",ae,te),pe("GGGGG",ce,ne),pe("ggggg",ce,ne),ve(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,i){t[i.substr(0,2)]=G(e)})),ve(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),N("Q",0,"Qo","quarter"),z("quarter","Q"),V("quarter",7),pe("Q",Z),ye("Q",(function(e,t){t[1]=3*(G(e)-1)})),N("D",["DD",2],"Do","date"),z("date","D"),V("date",9),pe("D",ie),pe("DD",ie,X),pe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ye(["D","DD"],2),ye("Do",(function(e,t){t[2]=G(e.match(ie)[0])}));var pn=q("Date",!0);N("DDD",["DDDD",3],"DDDo","dayOfYear"),z("dayOfYear","DDD"),V("dayOfYear",4),pe("DDD",oe),pe("DDDD",ee),ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=G(e)})),N("m",["mm",2],0,"minute"),z("minute","m"),V("minute",14),pe("m",ie),pe("mm",ie,X),ye(["m","mm"],4);var mn=q("Minutes",!1);N("s",["ss",2],0,"second"),z("second","s"),V("second",15),pe("s",ie),pe("ss",ie,X),ye(["s","ss"],5);var bn,gn,_n=q("Seconds",!1);for(N("S",0,0,(function(){return~~(this.millisecond()/100)})),N(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),N(0,["SSS",3],0,"millisecond"),N(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),N(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),N(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),N(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),N(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),N(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),z("millisecond","ms"),V("millisecond",16),pe("S",oe,Z),pe("SS",oe,X),pe("SSS",oe,ee),bn="SSSS";bn.length<=9;bn+="S")pe(bn,le);function yn(e,t){t[6]=G(1e3*("0."+e))}for(bn="S";bn.length<=9;bn+="S")ye(bn,yn);gn=q("Milliseconds",!1),N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName");var vn=w.prototype;function wn(e){return e}vn.add=Ut,vn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Jt(arguments[0])?(e=arguments[0],t=void 0):Qt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||xt(),i=Nt(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,xt(n)))},vn.clone=function(){return new w(this)},vn.diff=function(e,t,n){var i,r,s;if(!this.isValid())return NaN;if(!(i=Nt(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=$(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:U(s)},vn.endOf=function(e){var t,n;if(void 0===(e=$(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},vn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=j(this,e);return this.localeData().postformat(t)},vn.from=function(e,t){return this.isValid()&&(S(e)&&e.isValid()||xt(e).isValid())?$t({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},vn.fromNow=function(e){return this.from(xt(),e)},vn.to=function(e,t){return this.isValid()&&(S(e)&&e.isValid()||xt(e).isValid())?$t({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},vn.toNow=function(e){return this.to(xt(),e)},vn.get=function(e){return C(this[e=$(e)])?this[e]():this},vn.invalidAt=function(){return m(this).overflow},vn.isAfter=function(e,t){var n=S(e)?e:xt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=$(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},vn.isBefore=function(e,t){var n=S(e)?e:xt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=$(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},vn.isBetween=function(e,t,n,i){var r=S(e)?e:xt(e),s=S(t)?t:xt(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))},vn.isSame=function(e,t){var n,i=S(e)?e:xt(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=$(t)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},vn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},vn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},vn.isValid=function(){return b(this)},vn.lang=Xt,vn.locale=Zt,vn.localeData=en,vn.max=Tt,vn.min=Dt,vn.parsingFlags=function(){return f({},m(this))},vn.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:W[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=H(e));for(n=0;n<i.length;n++)this[i[n].unit](e[i[n].unit])}else if(C(this[e=$(e)]))return this[e](t);return this},vn.startOf=function(e){var t,n;if(void 0===(e=$(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},vn.subtract=Gt,vn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},vn.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()}},vn.toDate=function(){return new Date(this.valueOf())},vn.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?j(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",j(n,"Z")):j(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},vn.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&&(vn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),vn.toJSON=function(){return this.isValid()?this.toISOString():null},vn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},vn.unix=function(){return Math.floor(this.valueOf()/1e3)},vn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},vn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},vn.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""},vn.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""},vn.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""},vn.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()},vn.year=Ae,vn.isLeapYear=function(){return B(this.year())},vn.weekYear=function(e){return hn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},vn.isoWeekYear=function(e){return hn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},vn.quarter=vn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},vn.month=Le,vn.daysInMonth=function(){return Se(this.year(),this.month())},vn.week=vn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},vn.isoWeek=vn.isoWeeks=function(e){var t=Fe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},vn.weeksInYear=function(){var e=this.localeData()._week;return Ye(this.year(),e.dow,e.doy)},vn.weeksInWeekYear=function(){var e=this.localeData()._week;return Ye(this.weekYear(),e.dow,e.doy)},vn.isoWeeksInYear=function(){return Ye(this.year(),1,4)},vn.isoWeeksInISOWeekYear=function(){return Ye(this.isoWeekYear(),1,4)},vn.date=pn,vn.day=vn.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},vn.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")},vn.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},vn.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")},vn.hour=vn.hours=Xe,vn.minute=vn.minutes=mn,vn.second=vn.seconds=_n,vn.millisecond=vn.milliseconds=gn,vn.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=jt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),s!==e&&(!t||this._changeInProgress?Bt(this,$t(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:jt(this)},vn.utc=function(e){return this.utcOffset(0,e)},vn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(jt(this),"m")),this},vn.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},vn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?xt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},vn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},vn.isLocal=function(){return!!this.isValid()&&!this._isUTC},vn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},vn.isUtc=Ft,vn.isUTC=Ft,vn.zoneAbbr=function(){return this._isUTC?"UTC":""},vn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},vn.dates=k("dates accessor is deprecated. Use date instead.",pn),vn.months=k("months accessor is deprecated. Use month instead",Le),vn.years=k("years accessor is deprecated. Use year instead",Ae),vn.zone=k("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()})),vn.isDSTShifted=k("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 v(t,this),(t=Mt(t))._a?(e=t._isUTC?p(t._a):xt(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++)G(e[i])!==G(t[i])&&o++;return o+s}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Sn=L.prototype;function Mn(e,t,n,i){var r=ct(),s=p().set(i,t);return r[n](s,e)}function kn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return Mn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Mn(e,i,n,"month");return r}function xn(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 Mn(t,(n+o)%7,i,"day");for(r=0;r<7;r++)a[r]=Mn(t,(r+o)%7,i,"day");return a}Sn.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return C(i)?i.call(t,n):i},Sn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(E).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},Sn.invalidDate=function(){return this._invalidDate},Sn.ordinal=function(e){return this._ordinal.replace("%d",e)},Sn.preparse=wn,Sn.postformat=wn,Sn.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return C(r)?r(e,t,n,i):r.replace(/%d/i,e)},Sn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return C(n)?n(t):n.replace(/%s/i,t)},Sn.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)},Sn.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},Sn.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]},Sn.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},Sn.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||un.call(this),e?this._erasAbbrRegex:this._erasRegex},Sn.erasNameRegex=function(e){return a(this,"_erasNameRegex")||un.call(this),e?this._erasNameRegex:this._erasRegex},Sn.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||un.call(this),e?this._erasNarrowRegex:this._erasRegex},Sn.months=function(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||xe).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone},Sn.monthsShort=function(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[xe.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Sn.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}},Sn.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Re.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Te),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Sn.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Re.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=De),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Sn.week=function(e){return Fe(e,this._week.dow,this._week.doy).week},Sn.firstDayOfYear=function(){return this._week.doy},Sn.firstDayOfWeek=function(){return this._week.dow},Sn.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?ze(n,this._week.dow):e?n[e.day()]:n},Sn.weekdaysMin=function(e){return!0===e?ze(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Sn.weekdaysShort=function(e){return!0===e?ze(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Sn.weekdaysParse=function(e,t,n){var i,r,s;if(this._weekdaysParseExact)return Ge.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}},Sn.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Ve),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Sn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Be),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Sn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ue),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Sn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Sn.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===G(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=k("moment.lang is deprecated. Use moment.locale instead.",ot),r.langData=k("moment.langData is deprecated. Use moment.localeData instead.",ct);var Dn=Math.abs;function Tn(e,t,n,i){var r=$t(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 Rn(e){return function(){return this.as(e)}}var En=Rn("ms"),An=Rn("s"),In=Rn("m"),Pn=Rn("h"),Nn=Rn("d"),jn=Rn("w"),Fn=Rn("M"),Yn=Rn("Q"),zn=Rn("y");function $n(e){return function(){return this.isValid()?this._data[e]:NaN}}var Hn=$n("milliseconds"),Wn=$n("seconds"),Vn=$n("minutes"),Bn=$n("hours"),Un=$n("days"),Gn=$n("months"),qn=$n("years"),Jn=Math.round,Qn={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 Zn=Math.abs;function Xn(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=Zn(this._milliseconds)/1e3,l=Zn(this._days),u=Zn(this._months),d=this.asSeconds();return d?(e=U(c/60),t=U(e/60),c%=60,e%=60,n=U(u/12),u%=12,i=c?c.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",s=Xn(this._months)!==Xn(d)?"-":"",o=Xn(this._days)!==Xn(d)?"-":"",a=Xn(this._milliseconds)!==Xn(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=Dn(this._milliseconds),this._days=Dn(this._days),this._months=Dn(this._months),e.milliseconds=Dn(e.milliseconds),e.seconds=Dn(e.seconds),e.minutes=Dn(e.minutes),e.hours=Dn(e.hours),e.months=Dn(e.months),e.years=Dn(e.years),this},ti.add=function(e,t){return Tn(this,e,t,1)},ti.subtract=function(e,t){return Tn(this,e,t,-1)},ti.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=$(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=En,ti.asSeconds=An,ti.asMinutes=In,ti.asHours=Pn,ti.asDays=Nn,ti.asWeeks=jn,ti.asMonths=Fn,ti.asQuarters=Yn,ti.asYears=zn,ti.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*G(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=U(s/1e3),c.seconds=e%60,t=U(e/60),c.minutes=t%60,n=U(t/60),c.hours=n%24,o+=U(n/24),a+=r=U(On(o)),o-=Cn(Ln(r)),i=U(a/12),a%=12,c.days=o,c.months=a,c.years=i,this},ti.clone=function(){return $t(this)},ti.get=function(e){return e=$(e),this.isValid()?this[e+"s"]():NaN},ti.milliseconds=Hn,ti.seconds=Wn,ti.minutes=Vn,ti.hours=Bn,ti.days=Un,ti.weeks=function(){return U(this.days()/7)},ti.months=Gn,ti.years=qn,ti.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,s=Qn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(s=Object.assign({},Qn,t),null!=t.s&&null==t.ss&&(s.ss=t.s-1)),i=function(e,t,n,i){var r=$t(e).abs(),s=Jn(r.as("s")),o=Jn(r.as("m")),a=Jn(r.as("h")),c=Jn(r.as("d")),l=Jn(r.as("M")),u=Jn(r.as("w")),d=Jn(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=Zt,ti.localeData=en,ti.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ei),ti.lang=Xt,N("X",0,0,"unix"),N("x",0,0,"valueOf"),pe("x",ue),pe("X",/[+-]?\d+(\.\d{1,3})?/),ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ye("x",(function(e,t,n){n._d=new Date(G(e))})),r.version="2.29.1",t=xt,r.fn=vn,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 xt(1e3*e)},r.months=function(e,t){return kn(e,t,"months")},r.isDate=d,r.locale=ot,r.invalid=g,r.duration=$t,r.isMoment=S,r.weekdays=function(e,t,n){return xn(e,t,n,"weekdays")},r.parseZone=function(){return xt.apply(null,arguments).parseZone()},r.localeData=ct,r.isDuration=Rt,r.monthsShort=function(e,t){return kn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return xn(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 x(tt)},r.weekdaysShort=function(e,t,n){return xn(e,t,n,"weekdaysShort")},r.normalizeUnits=$,r.relativeTimeRounding=function(e){return void 0===e?Jn:"function"==typeof e&&(Jn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Qn[e]&&(void 0===t?Qn[e]:(Qn[e]=t,"s"===e&&(Qn.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=vn,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("WKiH").trim,s=n("WJkJ"),o=i.parseInt,a=/^[+-]?0[Xx]/,c=8!==o(s+"08")||22!==o(s+"0x16");e.exports=c?function(e,t){var n=r(String(e));return o(n,t>>>0||(a.test(n)?16:10))}:o},wnGv:function(e,t,n){"use strict";n.d(t,"a",(function(){return R}));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.Sb(0,"span",12),i.Oc(1),i.Rb()),2&e){const e=i.ic().$implicit,t=i.ic(2);i.yb(1),i.Qc(" ",t.messages.customValidations[e]," ")}}function g(e,t){if(1&e&&(i.Qb(0),i.Mc(1,b,2,1,"span",11),i.Pb()),2&e){const e=t.$implicit;i.ic();const n=i.Ac(1),r=i.ic();i.yb(1),i.pc("ngIf",r.form.showError("filter",n)&&r.filter.hasError(e))}}const _=function(e){return[e]};function y(e,t){if(1&e&&i.Nb(0,"i",18),2&e){const e=i.ic(3);i.pc("ngClass",i.uc(1,_,e.icons.check))}}function v(e,t){if(1&e&&(i.Qb(0),i.Nb(1,"br"),i.Sb(2,"small",19),i.Oc(3),i.Rb(),i.Pb()),2&e){const e=i.ic().$implicit;i.yb(3),i.Qc(" ",e.description,"\xa0 ")}}const w=function(e){return{"help-block disabled":e}};function S(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",13),i.gc("click",(function(){i.Dc(e);const n=t.$implicit;return i.ic(2).triggerSelection(n)})),i.Sb(1,"div",14),i.Mc(2,y,1,3,"i",15),i.Oc(3," \xa0 "),i.Rb(),i.Sb(4,"div",16),i.Oc(5),i.Mc(6,v,4,1,"ng-container",17),i.Rb(),i.Rb()}if(2&e){const e=t.$implicit,n=i.ic(2);i.pc("ngClass",i.uc(4,w,!(n.data.length!==n.selectionLimit&&e.enabled||e.selected))),i.yb(2),i.pc("ngIf",e.selected),i.yb(3),i.Qc(" ",e.name," "),i.yb(1),i.pc("ngIf",e.description)}}function M(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",20),i.gc("click",(function(){return i.Dc(e),i.ic(2).addCustomOption()})),i.Sb(1,"div",14),i.Nb(2,"i",18),i.Oc(3," \xa0 "),i.Rb(),i.Sb(4,"div",16),i.Oc(5),i.Rb(),i.Rb()}if(2&e){const e=i.ic(2);i.yb(2),i.pc("ngClass",i.uc(3,_,e.icons.tag)),i.yb(3),i.Rc(" ",e.messages.add," '",e.filter.value,"' ")}}function k(e,t){if(1&e&&(i.Sb(0,"span",23),i.Oc(1),i.Rb()),2&e){const e=i.ic(3);i.pc("ngbTooltip",e.messages.selectionLimit.tooltip),i.yb(1),i.Qc(" ",e.messages.selectionLimit.text," ")}}function x(e,t){if(1&e&&(i.Sb(0,"div",21),i.Mc(1,k,2,2,"span",22),i.Rb()),2&e){const e=i.ic(2);i.yb(1),i.pc("ngIf",e.data.length===e.selectionLimit)}}function D(e,t){if(1&e){const e=i.Tb();i.Sb(0,"form",4,5),i.Sb(2,"div"),i.Sb(3,"input",6),i.gc("keyup",(function(t){i.Dc(e);const n=i.ic();return 13==t.keyCode?n.selectOption():n.updateFilter()})),i.Rb(),i.Mc(4,g,2,1,"ng-container",7),i.Rb(),i.Rb(),i.Mc(5,S,7,6,"div",8),i.Mc(6,M,6,5,"div",9),i.Mc(7,x,2,1,"div",10)}if(2&e){const e=i.ic();i.pc("formGroup",e.form),i.yb(3),i.pc("placeholder",e.messages.filter),i.yb(1),i.pc("ngForOf",e.Object.keys(e.messages.customValidations)),i.yb(1),i.pc("ngForOf",e.filteredOptions),i.yb(1),i.pc("ngIf",e.isCreatable()),i.yb(1),i.pc("ngIf",e.data.length===e.selectionLimit)}}function T(e,t){if(1&e&&(i.Sb(0,"a",24),i.nc(1),i.Rb()),2&e){const e=i.ic(),t=i.Ac(1);i.pc("ngClass",e.elemClass)("ngbPopover",t)}}function C(e,t){if(1&e&&(i.Sb(0,"span",25),i.Oc(1),i.Rb()),2&e){const e=i.ic();i.yb(1),i.Qc(" ",e.messages.empty,"\n")}}function O(e,t){if(1&e&&(i.Sb(0,"span",25),i.Oc(1),i.Rb()),2&e){const e=i.ic();i.yb(1),i.Qc(" ",e.messages.noOptions,"\n")}}const L=["*"];let R=(()=>{class e{constructor(){this.data=[],this.options=[],this.messages=new l.a({}),this.customBadges=!1,this.customBadgeValidators=[],this.selection=new i.o,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.Gb({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.wb],ngContentSelectors:L,decls:5,vars:3,consts:[["popTemplate",""],["class","select-menu-edit float-left",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"],[1,"select-menu-edit","float-left",3,"ngClass","ngbPopover"],[1,"form-text","text-muted","float-left"]],template:function(e,t){1&e&&(i.oc(),i.Mc(0,D,8,6,"ng-template",null,0,i.Nc),i.Mc(2,T,2,2,"a",1),i.Mc(3,C,2,1,"span",2),i.Mc(4,O,2,1,"span",3)),2&e&&(i.yb(2),i.pc("ngIf",t.customBadges||t.options.length>0),i.yb(1),i.pc("ngIf",0===t.data.length&&!(!t.customBadges&&0===t.options.length)),i.yb(1),i.pc("ngIf",!t.customBadges&&0===t.options.length))},directives:[d.r,r.C,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 rgba(0,0,0,.09);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})()},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,c){return Object(s.a)(n)&&(c=n,n=void 0),c?a(e,t,n).pipe(Object(o.a)(e=>Object(r.a)(e)?c(...e):c(e))):new i.a(i=>{!function e(t,n,i,r,s){let o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){const e=t;t.addEventListener(n,i,s),o=()=>e.removeEventListener(n,i,s)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){const e=t;t.on(n,i),o=()=>e.off(n,i)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){const e=t;t.addListener(n,i),o=()=>e.removeListener(n,i)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,a=t.length;o<a;o++)e(t[o],n,i,r,s)}r.add(o)}(e,t,(function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)}),i,n)})}},xrYK:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(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.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},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.Lb({name:"array",type:e,pure:!0}),e})()},yoRg:function(e,t,n){var i=n("UTVS"),r=n("/GqU"),s=n("TWQb").indexOf,o=n("0BK2");e.exports=function(e,t){var n,a=r(e),c=0,l=[];for(n in a)!i(o,n)&&i(a,n)&&l.push(n);for(;t.length>c;)i(a,n=t[c++])&&(~s(l,n)||l.push(n));return l}},"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})},zUnb:function(e,t,n){"use strict";n.r(t);var i=n("8Y7J"),r=n("cUpR"),s=n("AytR"),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 y=c();(y||"undefined"!=typeof Element)&&(b=(e,t)=>e.contains(t),g=(()=>{if(y||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)i.push(...e.querySelectorAll(t));else{const n=e.querySelector(t);n&&i.push(n)}return i});let v=null,w=!1;function S(e){v||(v=("undefined"!=typeof document?document.body:null)||{},w=!!v.style&&"WebkitAppearance"in v.style);let t=!0;return v.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in v.style,!t&&w)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in v.style),t}const M=g,k=b,x=_;function D(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 T=(()=>{class e{validateStyleProperty(e){return S(e)}matchesElement(e,t){return M(e,t)}containsElement(e,t){return k(e,t)}query(e,t,n){return x(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=i.Ib({token:e,factory:e.\u0275fac}),e})(),C=(()=>{class e{}return e.NOOP=new T,e})();const O="ng-enter",L="ng-leave",R="ng-trigger",E=".ng-trigger",A="ng-animating",I=".ng-animating";function P(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:N(parseFloat(t[1]),t[2])}function N(e,t){switch(t){case"s":return 1e3*e;default:return e}}function j(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=N(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=N(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 F(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 F(e,n);return n}function z(e,t,n){return n?t+":"+n+";":""}function $(e){let t="";for(let n=0;n<e.style.length;n++){const i=e.style.item(n);t+=z(0,i,e.style.getPropertyValue(i))}for(const n in e.style)e.style.hasOwnProperty(n)&&!n.startsWith("_")&&(t+=z(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[n]));e.setAttribute("style",t)}function H(e,t,n){e.style&&(Object.keys(t).forEach(i=>{const r=Q(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[r]),e.style[r]=t[i]}),c()&&$(e))}function W(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=Q(t);e.style[n]=""}),c()&&$(e))}function V(e){return Array.isArray(e)?1==e.length?e[0]:Object(a.f)(e):e}const B=new RegExp("{{\\s*(.+?)\\s*}}","g");function U(e){let t=[];if("string"==typeof e){let n;for(;n=B.exec(e);)t.push(n[1]);B.lastIndex=0}return t}function G(e,t,n){const i=e.toString(),r=i.replace(B,(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 J=/-+([a-z0-9])/g;function Q(e){return e.replace(J,(...e)=>e[1].toUpperCase())}function K(e,t){return 0===e||0===t}function Z(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 X(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),X(this,V(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=>{U(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=X(this,V(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=>X(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=X(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(j(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||j(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=U(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:X(this,V(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,E).replace(/@\w+/g,e=>".ng-trigger-"+e.substr(1)).replace(/:animating/g,I),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,p(t.collectedStyles,t.currentQuerySelector,{});const o=X(this,V(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"}:j(e.timings,t.errors,!0);return{type:12,animation:X(this,V(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=F(e)).params&&(e.params=(t=e.params)?F(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 ve(e,t,c,i,r,l,[]);u.options=a,u.currentTimeline.setStyles([s],null,u.errors,a),X(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),X(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=ye);const e=P(r.delay);i.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>X(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),X(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 j(t.params?G(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=ye);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),X(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;X(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}const ye={};class ve{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=ye,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]=G(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 ve(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=ye,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 Se(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=G(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=F(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 Se 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=Me(o),r.push(c);const l=e.length-1;for(let i=1;i<=l;i++){let o=Y(e[i],!1);o.offset=Me((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 Me(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class ke{}class xe extends ke{normalizePropertyName(e,t){return Q(e)}normalizeStyleValue(e,t,n,i){let r="";const s=n.toString().trim();if(De[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 De=(()=>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 Te(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,y="void"===i,v={params:Object.assign(Object.assign({},d),f)},w=l?[]:ge(e,t,this.ast.animation,r,s,h,m,v,c,u);let S=0;if(w.forEach(e=>{S=Math.max(e.duration+e.delay,S)}),u.length)return Te(t,this._triggerName,n,i,y,h,m,[],[],g,_,S,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 M=q(b.values());return Te(t,this._triggerName,n,i,y,h,m,w,M,g,_,S)}}class Le{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},i=F(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=G(s,i,t)),n[e]=s})}}),n}}class Re{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||{})}),Ee(this.states,"true","1"),Ee(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 Ee(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const Ae=new pe;class Ie{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,Ae,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",Ne="ng-animate-disabled",je=".ng-animate-disabled",Fe=[],Ye={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ze={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class $e{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=F(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 He="void",We=new $e(He);class Ve{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,R),Ke(e,"ng-trigger-"+t),a[t]=We),()=>{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 Ue(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(Ke(e,R),Ke(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o={}));let a=o[t];const c=new $e(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),o[t]=c,a||(a=We),c.value!==He&&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(()=>{W(e,n),H(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(()=>{Ze(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,E,!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,He,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);if(t){const n=new Set;t.forEach(t=>{const i=t.name;if(n.has(i))return;n.add(i);const r=this._triggers[i].fallbackTransition,s=this._engine.statesByElement.get(e)[i]||We,o=new $e(He),a=new Ue(this.id,i,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:r,fromState:s,toState:o,player:a,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 Be{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 Ve(e,t,this);return t.parentNode?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(Ge(t)){const r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),!0}return!1}insertNode(e,t,n,i){if(!Ge(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,Ne)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Ze(e,Ne))}removeNode(e,t,n,i){if(Ge(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 Ge(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,E,!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,I,!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,je)&&this.markElementAsDisabled(e,!1),this.driver.query(e,je,!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=Qe(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 _=[],y=new Set,v=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),y.add(e),t.hasAnimation?this.driver.query(e,".ng-star-inserted",!0).forEach(e=>y.add(e)):v.add(e))}const w=new Map,S=Qe(f,Array.from(y));S.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=>Ze(e,n))}),S.forEach((e,t)=>{const n=w.get(t);e.forEach(e=>Ze(e,n))}),_.forEach(e=>{this.processLeaveNode(e)})});const M=[],k=[];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(M.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)k.push(f);else{if(a)return t.onStart(()=>W(r,f.fromStyles)),t.onDestroy(()=>H(r,f.toStyles)),void i.push(t);if(e.isFallbackTransition)return t.onStart(()=>W(r,f.fromStyles)),t.onDestroy(()=>H(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(k.length){const e=[];k.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),M.forEach(e=>e.destroy()),this.reportError(e)}const x=new Map,D=new Map;s.forEach(e=>{const t=e.element;n.has(t)&&(D.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,x))}),i.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{p(x,t,[]).push(e),e.destroy()})});const T=_.filter(e=>et(e,c,u)),C=new Map;Je(C,this.driver,v,u,a.a).forEach(e=>{et(e,c,u)&&T.push(e)});const R=new Map;m.forEach((e,t)=>{Je(R,this.driver,new Set(e),c,a.l)}),T.forEach(e=>{const t=C.get(e),n=R.get(e);C.set(e,Object.assign(Object.assign({},t),n))});const E=[],A=[],P={};s.forEach(e=>{const{element:t,player:s,instruction:o}=e;if(n.has(t)){if(d.has(t))return s.onDestroy(()=>H(t,o.toStyles)),s.disabled=!0,s.overrideTotalTime(o.totalTime),void i.push(s);let e=P;if(D.size>1){let n=t;const i=[];for(;n=n.parentNode;){const t=D.get(n);if(t){e=t;break}i.push(n)}i.forEach(t=>D.set(t,e))}const n=this._buildAnimation(s.namespaceId,o,x,r,R,C);if(s.setRealPlayer(n),e===P)E.push(s);else{const t=this.playersByElement.get(e);t&&t.length&&(s.parentPlayer=l(t)),i.push(s)}}else W(t,o.fromStyles),s.onDestroy(()=>H(t,o.toStyles)),A.push(s),d.has(t)&&i.push(s)}),A.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(Ze(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,I,!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?Xe(this,e,i):this.processLeaveNode(e)}return _.length=0,E.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),E}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==He;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)})}W(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 function e(t,n){for(let i=0;i<t.length;i++){const r=t[i];r instanceof a.k?e(r.players,n):n.push(r)}}(e,t),t}((n.get(l)||Fe).map(e=>e.getRealPlayer())).filter(e=>!!e.element&&e.element===l),g=r.get(l),_=s.get(l),y=u(0,this._normalizer,0,t.keyframes,g,_),v=this._buildPlayer(t,y,b);if(t.subTimeline&&i&&f.add(l),m){const t=new Ue(e,o,l);t.setRealPlayer(v),d.push(t)}return v});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,A));const b=l(m);return b.onDestroy(()=>{h.forEach(e=>Ze(e,A)),H(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 Ue{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 Ge(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 Je(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=ze,o.push(i))}),e.set(i,s)});let a=0;return n.forEach(e=>qe(e,s[a++])),o}function Qe(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;return t.forEach(e=>{const t=function e(t){if(!t)return 1;let s=r.get(t);if(s)return s;const o=t.parentNode;return s=n.has(o)?o:i.has(o)?1:e(o),r.set(t,s),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 Ze(e,t){if(e.classList)e.classList.remove(t);else{let n=e.$$classes;n&&delete n[t]}}function Xe(e,t,n){l(n).onDone(()=>e.processLeaveNode(t))}function et(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 tt{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Be(e,t,n),this._timelineEngine=new Ie(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 Re(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 nt(e,t){let n=null,i=null;return Array.isArray(t)&&t.length?(n=rt(t[0]),t.length>1&&(i=rt(t[t.length-1]))):t&&(n=rt(t)),n||i?new it(e,n,i):null}let it=(()=>{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&&H(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(H(this._element,this._initialStyles),this._endStyles&&(H(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(W(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(W(this._element,this._endStyles),this._endStyles=null),H(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function rt(e){let t=null;const n=Object.keys(e);for(let i=0;i<n.length;i++){const r=n[i];st(r)&&(t=t||{},t[r]=e[r])}return t}function st(e){return"display"===e||"position"===e}const ot="animation",at="animationend";class ct{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=pt(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}`),ft(e,"",t)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),ht(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){lt(this._element,this._name,"paused")}resume(){lt(this._element,this._name,"running")}setPosition(e){const t=ut(this._element,this._name);this._position=e*this._duration,ft(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(),ht(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=pt(e,"").split(","),i=dt(n,t);i>=0&&(n.splice(i,1),ft(e,"",n.join(",")))}(this._element,this._name))}}function lt(e,t,n){ft(e,"PlayState",n,ut(e,t))}function ut(e,t){const n=pt(e,"");return n.indexOf(",")>0?dt(n.split(","),t):dt([n],t)}function dt(e,t){for(let n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function ht(e,t,n){n?e.removeEventListener(at,t):e.addEventListener(at,t)}function ft(e,t,n,i){const r=ot+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 pt(e,t){return e.style[ot+t]}class mt{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 ct(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 bt extends a.d{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=D(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 gt{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(e){return S(e)}matchesElement(e,t){return M(e,t)}containsElement(e,t){return k(e,t)}query(e,t,n){return x(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>D(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.innerHTML=i,s}animate(e,t,n,i,r,s=[],o){o&&this._notifyFaultyScrubber();const a=s.filter(e=>e instanceof mt),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=Z(e,t,c));if(0==n)return new bt(e,l);const u="gen_css_kf_"+this._count++,d=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(d);const h=nt(e,t),f=new mt(e,t,u,n,i,r,l,h);return f.onDestroy(()=>{var e;(e=d).parentNode.removeChild(e)}),f}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n","  visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class _t{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){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(vt().toString()),this._cssKeyframesDriver=new gt}validateStyleProperty(e){return S(e)}matchesElement(e,t){return M(e,t)}containsElement(e,t){return k(e,t)}query(e,t,n){return x(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 _t);K(n,i)&&l.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>c[e]=t[e])});const u=nt(e,t=Z(e,t=t.map(e=>Y(e,!1)),c));return new _t(e,t,a,u)}}function vt(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var wt=n("SVse");let St=(()=>{class e extends a.b{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:i.Q.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?Object(a.f)(e):e;return xt(this._renderer,null,t,"register",[n]),new Mt(t,this._renderer)}}return e.\u0275fac=function(t){return new(t||e)(i.dc(i.F),i.dc(wt.d))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})();class Mt extends a.c{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new kt(this._id,e,t||{},this._renderer)}}class kt{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 xt(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(){return 0}}function xt(e,t,n,i,r){return e.setProperty(t,`@@${n}:${i}`,r)}const Dt="@",Tt="@.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)(i.dc(i.F),i.dc(tt),i.dc(i.A))},e.\u0275prov=i.Ib({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){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)}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)==Dt&&t==Tt?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)==Dt?"."==t.charAt(1)&&t==Tt?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)==Dt){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)!=Dt&&([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 Rt=(()=>{class e extends tt{constructor(e,t,n){super(e.body,t,n)}}return e.\u0275fac=function(t){return new(t||e)(i.dc(wt.d),i.dc(C),i.dc(ke))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})();const Et=[{provide:C,useFactory:function(){return"function"==typeof vt()?new yt:new gt}},{provide:new i.r("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:a.b,useClass:St},{provide:ke,useFactory:function(){return new xe}},{provide:tt,useClass:Rt},{provide:i.F,useFactory:function(e,t,n){return new Ct(e,t,n)},deps:[r.e,tt,i.A]}];let At=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},providers:Et,imports:[r.a]}),e})();var It=n("EApP"),Pt=n("iInd"),Nt=n("LvDl"),jt=n.n(Nt),Ft=n("mrSG"),Yt=n("xTzq");let zt=(()=>{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),jt.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)(i.dc(o.b))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e=Object(Ft.b)([Yt.a,Object(Ft.d)("design:paramtypes",[o.b])],e),e})();var $t=n("+fVR"),Ht=n("x38r"),Wt=n("vCyI"),Vt=n("a0VL"),Bt=n("uIqm"),Ut=n("PqYM"),Gt=n("VxPD"),qt=n("yJti"),Jt=n("aexS"),Qt=n("G0yt"),Kt=n("JP8w"),Zt=n("Fgil"),Xt=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(){jt.a.isUndefined(this.mdsCounter)||(this.setChartTooltip(),this.updateChart())}ngOnChanges(){jt.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,jt.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])}];jt.a.merge(this.chart,{datasets:e}),this.chart.datasets=[...this.chart.datasets]}convertTimeSeries(e){const t=[];return jt.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=i.Gb({type:e,selectors:[["cd-cephfs-chart"]],viewQuery:function(e,t){var n;1&e&&(i.Jc(on,!0),i.Jc(an,!0)),2&e&&(i.zc(n=i.hc())&&(t.chartCanvas=n.first),i.zc(n=i.hc())&&(t.chartTooltip=n.first))},inputs:{mdsCounter:"mdsCounter"},features:[i.wb],decls:6,vars:3,consts:[[1,"chart-container"],["baseChart","",3,"datasets","options","chartType"],["chartCanvas",""],[1,"chartjs-tooltip"],["chartTooltip",""]],template:function(e,t){1&e&&(i.Sb(0,"div",0),i.Nb(1,"canvas",1,2),i.Sb(3,"div",3,4),i.Nb(5,"table"),i.Rb(),i.Rb()),2&e&&(i.yb(1),i.pc("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:rgba(0,0,0,.7);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 transparent;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&&(i.Sb(0,"div",0),i.Sb(1,"div",11),i.Nb(2,"cd-cephfs-chart",12),i.Rb(),i.Rb()),2&e){const e=t.$implicit;i.yb(2),i.pc("mdsCounter",e)}}function fn(e,t){if(1&e&&i.Nb(0,"cd-usage-bar",13),2&e){const e=t.row;i.pc("total",e.size)("used",e.used)}}function pn(e,t){1&e&&(i.Oc(0),i.jc(1,"dimless")),2&e&&i.Rc(" ","standby-replay"===t.row.state?"Evts":"Reqs",": ",i.kc(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)(i.Mb(Zt.a),i.Mb(Xt.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-cephfs-detail"]],viewQuery:function(e,t){var n;1&e&&(i.Jc(un,!0),i.Jc(dn,!0)),2&e&&(i.zc(n=i.hc())&&(t.poolUsageTpl=n.first),i.zc(n=i.hc())&&(t.activityTmpl=n.first))},inputs:{data:"data"},features:[i.wb],decls:19,vars:9,consts:function(){return[[1,"row"],[1,"col-sm-6"],"Ranks",[3,"data","columns","toolHeader"],"Standbys",[3,"data"],"Pools","MDS performance counters",["class","row",4,"ngFor","ngForOf","ngForTrackBy"],["poolUsageTpl",""],["activityTmpl",""],[1,"col-md-12"],[3,"mdsCounter"],[3,"total","used"]]},template:function(e,t){1&e&&(i.Sb(0,"div",0),i.Sb(1,"div",1),i.Sb(2,"legend"),i.Wb(3,2),i.Rb(),i.Nb(4,"cd-table",3),i.Sb(5,"legend"),i.Wb(6,4),i.Rb(),i.Nb(7,"cd-table-key-value",5),i.Rb(),i.Sb(8,"div",1),i.Sb(9,"legend"),i.Wb(10,6),i.Rb(),i.Nb(11,"cd-table",3),i.Rb(),i.Rb(),i.Sb(12,"legend"),i.Wb(13,7),i.Rb(),i.Mc(14,hn,3,1,"div",8),i.Mc(15,fn,1,2,"ng-template",null,9,i.Nc),i.Mc(17,pn,2,4,"ng-template",null,10,i.Nc)),2&e&&(i.yb(4),i.pc("data",t.data.ranks)("columns",t.columns.ranks)("toolHeader",!1),i.yb(3),i.pc("data",t.standbys),i.yb(4),i.pc("data",t.data.pools)("columns",t.columns.pools)("toolHeader",!1),i.yb(3),i.pc("ngForOf",t.objectValues(t.data.mdsCounters))("ngForTrackBy",t.trackByFn))},directives:[Bt.a,en.a,wt.q,cn,ln.a],pipes:[Xt.a],styles:[".progress[_ngcontent-%COMP%]{margin-bottom:0}"]}),e})();var bn=n("0+/T"),gn=n("sne2"),_n=n("oxzT"),yn=n("mtw6"),vn=n("JK/P"),wn=n("9nlD"),Sn=n("S7zO");let Mn=(()=>{class e{constructor(e,t,n,r,s){this.cephfsService=e,this.modalService=t,this.notificationService=n,this.authStorageService=r,this.actionLabels=s,this.triggerApiUpdate=new i.o,this.selection=new Wt.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(yn.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)(i.Mb(zt),i.Mb(vn.a),i.Mb(wn.a),i.Mb(Jt.a),i.Mb(gn.b))},e.\u0275cmp=i.Gb({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&&(i.Sb(0,"cd-table",0),i.gc("fetchData",(function(){return t.triggerApiUpdate.emit()}))("updateSelection",(function(e){return t.updateSelection(e)})),i.Nb(1,"cd-table-actions",1),i.Rb()),2&e&&(i.pc("data",t.clients.data)("columns",t.columns)("status",t.clients.status)("autoReload",-1),i.yb(1),i.pc("permission",t.permission)("selection",t.selection)("tableActions",t.tableActions))},directives:[Bt.a,Sn.a],styles:[""]}),e})();var kn=n("s7LF"),xn=n("ohO+"),Dn=n("OLbh"),Tn=n("Rf2I"),Cn=n("1Ni5"),On=n("ANnk");const Ln=["origin"],Rn=function(e,t){return[e,t]};function En(e,t){if(1&e&&i.Nb(0,"i",5),2&e){const e=i.ic(2);i.pc("ngClass",i.vc(1,Rn,e.icons.spinner,e.icons.spin))}}function An(e,t){if(1&e&&(i.Sb(0,"tree-root",10),i.Mc(1,En,1,4,"ng-template",null,11,i.Nc),i.Rb()),2&e){const e=i.ic();i.pc("nodes",e.nodes)("options",e.treeOptions)}}function In(e,t){if(1&e){const e=i.Tb();i.Qb(0),i.Sb(1,"legend"),i.Wb(2,17),i.Rb(),i.Sb(3,"cd-table",18),i.gc("updateSelection",(function(t){return i.Dc(e),i.ic(2).quota.updateSelection(t)})),i.Nb(4,"cd-table-actions",19),i.Rb(),i.Pb()}if(2&e){const e=i.ic(2);i.yb(3),i.pc("data",e.settings)("columns",e.quota.columns)("limit",0)("footer",!1)("onlyActionHeader",!0)("forceIdentifier",!0)("toolHeader",!1),i.yb(1),i.pc("permission",e.permission)("selection",e.quota.selection)("tableActions",e.quota.tableActions)}}function Pn(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",12),i.Sb(1,"div",2),i.Sb(2,"div",3),i.Oc(3),i.Rb(),i.Sb(4,"div",6),i.Mc(5,In,5,10,"ng-container",13),i.Sb(6,"legend"),i.Wb(7,14),i.Rb(),i.Sb(8,"cd-table",15),i.gc("updateSelection",(function(t){return i.Dc(e),i.ic().snapshot.updateSelection(t)})),i.Nb(9,"cd-table-actions",16),i.Rb(),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.yb(3),i.Qc(" ",e.selectedDir.path," "),i.yb(2),i.pc("ngIf","/"!==e.selectedDir.path),i.yb(3),i.pc("data",e.selectedDir.snapshots)("columns",e.snapshot.columns),i.yb(1),i.pc("permission",e.permission)("selection",e.snapshot.selection)("tableActions",e.snapshot.tableActions)}}function Nn(e,t){if(1&e){const e=i.Tb();i.Sb(0,"span",20),i.gc("click",(function(){i.Dc(e);const n=t.value;return i.ic().selectOrigin(n)})),i.Oc(1),i.Rb()}if(2&e){const e=t.value;i.yb(1),i.Pc(e)}}let jn=(()=>{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){xn.a.TOGGLE_EXPANDED(e,t,n),this.selectNode(t)}selectNode(e){xn.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 Wt.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 Wt.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()},{name:this.actionLabels.DELETE,icon:_n.a.destroy,permission:"delete",click:()=>this.deleteSnapshotModal(),canBePrimary:e=>e.hasSelection,disable:e=>!e.hasSelection}]}}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 jt.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(Tn.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):kn.A.min(0)];i&&s.push(r?Cn.a.binaryMax(i):kn.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(yn.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(Dn.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(Tn.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(yn.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}};jt.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;jt.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(yn.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)(i.Mb(Jt.a),i.Mb(vn.a),i.Mb(zt),i.Mb(Vt.a),i.Mb(gn.b),i.Mb(wn.a),i.Mb(Zt.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-cephfs-directories"]],viewQuery:function(e,t){var n;1&e&&(i.Tc(xn.b,!0),i.Jc(Ln,!0)),2&e&&(i.zc(n=i.hc())&&(t.treeComponent=n.first),i.zc(n=i.hc())&&(t.originTmpl=n.first))},inputs:{id:"id"},features:[i.wb],decls:11,vars:10,consts:function(){return[[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"],"Snapshots",["identifier","name","forceIdentifier","true","selectionType","multiClick",3,"data","columns","updateSelection"],[1,"table-actions",3,"permission","selection","tableActions"],"Quotas",["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&&(i.Sb(0,"div",0),i.Sb(1,"div",1),i.Sb(2,"div",2),i.Sb(3,"div",3),i.Sb(4,"button",4),i.gc("click",(function(){return t.refreshAllDirectories()})),i.Nb(5,"i",5),i.Rb(),i.Rb(),i.Sb(6,"div",6),i.Mc(7,An,3,2,"tree-root",7),i.Rb(),i.Rb(),i.Rb(),i.Mc(8,Pn,10,7,"div",8),i.Rb(),i.Mc(9,Nn,2,1,"ng-template",null,9,i.Nc)),2&e&&(i.yb(4),i.Eb("disabled",t.loadingIndicator),i.yb(1),i.Eb("fa-spin",t.loadingIndicator),i.pc("ngClass",i.vc(7,Rn,t.icons.large,t.icons.refresh)),i.yb(2),i.pc("ngIf",t.nodes),i.yb(1),i.pc("ngIf",t.selectedDir))},directives:[On.a,wt.p,wt.r,xn.b,Bt.a,Sn.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 Fn=n("insk");function Yn(e,t){if(1&e&&i.Nb(0,"cd-cephfs-detail",15),2&e){const e=i.ic(2);i.pc("data",e.details)}}function zn(e,t){if(1&e){const e=i.Tb();i.Sb(0,"cd-cephfs-clients",16),i.gc("triggerApiUpdate",(function(){return i.Dc(e),i.ic(2).refresh()})),i.Rb()}if(2&e){const e=i.ic(2);i.pc("id",e.id)("clients",e.clients)}}function $n(e,t){if(1&e&&i.Nb(0,"cd-cephfs-directories",17),2&e){const e=i.ic(2);i.pc("id",e.id)}}function Hn(e,t){if(1&e&&i.Nb(0,"cd-grafana",18),2&e){const e=i.ic(2);i.pc("grafanaPath","mds-performance?var-mds_servers=mds."+e.grafanaId)}}function Wn(e,t){if(1&e){const e=i.Tb();i.Qb(0),i.Sb(1,"ul",1,2),i.gc("navChange",(function(){return i.Dc(e),i.ic().softRefresh()})),i.Sb(3,"li",3),i.Sb(4,"a",4),i.Wb(5,5),i.Rb(),i.Mc(6,Yn,1,1,"ng-template",6),i.Rb(),i.Sb(7,"li",7),i.Sb(8,"a",4),i.Qb(9),i.Wb(10,8),i.Pb(),i.Sb(11,"span",9),i.Oc(12),i.Rb(),i.Rb(),i.Mc(13,zn,1,2,"ng-template",6),i.Rb(),i.Sb(14,"li",10),i.Sb(15,"a",4),i.Wb(16,11),i.Rb(),i.Mc(17,$n,1,1,"ng-template",6),i.Rb(),i.Sb(18,"li",12),i.Sb(19,"a",4),i.Wb(20,13),i.Rb(),i.Mc(21,Hn,1,1,"ng-template",6),i.Rb(),i.Rb(),i.Nb(22,"div",14),i.Pb()}if(2&e){const e=i.Ac(2),t=i.ic();i.yb(12),i.Pc(t.clients.data.length),i.yb(10),i.pc("ngbNavOutlet",e)}}let Vn=(()=>{class e{constructor(e,t,n){this.ngZone=e,this.authStorageService=t,this.cephfsService=n,this.clients={data:[],status:new Gt.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=jt.a.first(Object.values(t));this.grafanaId=n&&n.name,this.details={standbys:"",pools:[],ranks:[],mdsCounters:{},name:""},this.clients={data:[],status:new Gt.a(qt.a.ValueNone)},this.updateInterval()}updateInterval(){this.unsubscribeInterval(),this.subscribeInterval()}unsubscribeInterval(){this.reloadSubscriber&&this.reloadSubscriber.unsubscribe()}subscribeInterval(){this.ngZone.runOutsideAngular(()=>this.reloadSubscriber=Object(Ut.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 Gt.a(qt.a.ValueException)})}softRefresh(){const e=jt.a.cloneDeep(this.data);this.clients=e.clients,this.clients.status=new Gt.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)(i.Mb(i.A),i.Mb(Jt.a),i.Mb(zt))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-cephfs-tabs"]],inputs:{selection:"selection"},features:[i.wb],decls:1,vars:1,consts:function(){return[[4,"ngIf"],["ngbNav","","cdStatefulTab","cephfs-tabs",1,"nav-tabs",3,"navChange"],["nav","ngbNav"],["ngbNavItem","details"],["ngbNavLink",""],"Details",["ngbNavContent",""],["ngbNavItem","clients"],"Clients",[1,"badge","badge-pill","badge-tab","ml-1"],["ngbNavItem","directories"],"Directories",["ngbNavItem","performance-details"],"Performance Details",[3,"ngbNavOutlet"],[3,"data"],[3,"id","clients","triggerApiUpdate"],[3,"id"],["uid","tbO9LAiZz","grafanaStyle","one",3,"grafanaPath"]]},template:function(e,t){1&e&&i.Mc(0,Wn,23,2,"ng-container",0),2&e&&i.pc("ngIf",t.selection)},directives:[wt.r,Qt.p,Kt.a,Qt.r,Qt.s,Qt.q,Qt.u,mn,Mn,jn,Fn.a],styles:[""]}),e})(),Bn=(()=>{class e extends $t.a{constructor(e,t){super(),this.cephfsService=e,this.cdDatePipe=t,this.filesystems=[],this.selection=new Wt.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:Ht.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)(i.Mb(zt),i.Mb(Vt.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-cephfs-list"]],features:[i.vb],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&&(i.Sb(0,"cd-table",0),i.gc("fetchData",(function(e){return t.loadFilesystems(e)}))("setExpandedRow",(function(e){return t.setExpandedRow(e)}))("updateSelection",(function(e){return t.updateSelection(e)})),i.Nb(1,"cd-cephfs-tabs",1),i.Rb()),2&e&&(i.pc("data",t.filesystems)("columns",t.columns)("hasDetails",!0),i.yb(1),i.pc("selection",t.expandedRow))},directives:[Bt.a,Vn],styles:[""]}),e})();var Un=n("MuvH");let Gn=(()=>{class e{static getType(e){const t=jt.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(kn.A.max(t.max))),t.min&&""!==t.min?(i.min=t.min,i.validators.push(kn.A.min(t.min))):"defaultMin"in n&&(i.min=n.defaultMin,i.validators.push(kn.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"),Jn=n("QFaf");class Qn{constructor(){this.value=[]}}var Kn=n("zc8c"),Zn=n("NwgZ"),Xn=n("ocLN"),ei=n("f69J"),ti=n("6+kj");function ni(e,t){1&e&&(i.Sb(0,"div",8),i.Sb(1,"label",9),i.Wb(2,20),i.Rb(),i.Sb(3,"div",11),i.Sb(4,"textarea",21),i.Oc(5,"            "),i.Rb(),i.Rb(),i.Rb())}function ii(e,t){1&e&&(i.Sb(0,"div",8),i.Sb(1,"label",9),i.Wb(2,22),i.Rb(),i.Sb(3,"div",11),i.Sb(4,"textarea",23),i.Oc(5,"            "),i.Rb(),i.Rb(),i.Rb())}function ri(e,t){1&e&&(i.Sb(0,"div",8),i.Sb(1,"label",9),i.Wb(2,24),i.Rb(),i.Sb(3,"div",11),i.Nb(4,"input",25),i.Rb(),i.Rb())}function si(e,t){1&e&&(i.Sb(0,"div",8),i.Sb(1,"label",9),i.Wb(2,26),i.Rb(),i.Sb(3,"div",11),i.Nb(4,"input",27),i.Rb(),i.Rb())}function oi(e,t){if(1&e&&(i.Sb(0,"span",30),i.Sb(1,"span",31),i.Oc(2),i.Rb(),i.Rb()),2&e){const e=t.$implicit;i.yb(2),i.Pc(e)}}function ai(e,t){if(1&e&&(i.Sb(0,"div",8),i.Sb(1,"label",9),i.Wb(2,28),i.Rb(),i.Sb(3,"div",11),i.Mc(4,oi,3,1,"span",29),i.Rb(),i.Rb()),2&e){const e=i.ic(2);i.yb(4),i.pc("ngForOf",e.configForm.getValue("services"))}}function ci(e,t){if(1&e&&(i.Sb(0,"div",8),i.Sb(1,"label",32),i.Oc(2),i.Rb(),i.Sb(3,"div",11),i.Sb(4,"select",33),i.Sb(5,"option",34),i.Wb(6,35),i.Rb(),i.Sb(7,"option",34),i.Wb(8,36),i.Rb(),i.Sb(9,"option",34),i.Wb(10,37),i.Rb(),i.Rb(),i.Rb(),i.Rb()),2&e){const e=i.ic().$implicit;i.yb(1),i.pc("for",e),i.yb(1),i.Qc("",e," "),i.yb(2),i.pc("formControlName",e),i.yb(1),i.pc("ngValue",null),i.yb(2),i.pc("ngValue",!0),i.yb(2),i.pc("ngValue",!1)}}function li(e,t){if(1&e&&(i.Sb(0,"span",40),i.Oc(1),i.Rb()),2&e){const e=i.ic(4);i.yb(1),i.Qc(" ",e.patternHelpText," ")}}function ui(e,t){if(1&e&&(i.Sb(0,"span",40),i.Oc(1),i.Rb()),2&e){const e=i.ic(4);i.yb(1),i.Qc(" ",e.patternHelpText," ")}}function di(e,t){if(1&e&&(i.Sb(0,"span",40),i.Wb(1,41),i.Rb()),2&e){const e=i.ic(4);i.yb(1),i.ac(e.maxValue),i.Xb(1)}}function hi(e,t){if(1&e&&(i.Sb(0,"span",40),i.Wb(1,42),i.Rb()),2&e){const e=i.ic(4);i.yb(1),i.ac(e.minValue),i.Xb(1)}}function fi(e,t){if(1&e&&(i.Sb(0,"div",8),i.Sb(1,"label",32),i.Oc(2),i.Rb(),i.Sb(3,"div",11),i.Nb(4,"input",38),i.Mc(5,li,2,1,"span",39),i.Mc(6,ui,2,1,"span",39),i.Mc(7,di,2,1,"span",39),i.Mc(8,hi,2,1,"span",39),i.Rb(),i.Rb()),2&e){const e=i.ic().$implicit;i.ic();const t=i.Ac(2),n=i.ic();i.yb(1),i.pc("for",e),i.yb(1),i.Qc("",e," "),i.yb(2),i.pc("type",n.inputType)("id",e)("placeholder",n.humanReadableType)("formControlName",e)("step",n.getStep(n.type,n.configForm.getValue(e))),i.yb(1),i.pc("ngIf",n.configForm.showError(e,t,"pattern")),i.yb(1),i.pc("ngIf",n.configForm.showError(e,t,"invalidUuid")),i.yb(1),i.pc("ngIf",n.configForm.showError(e,t,"max")),i.yb(1),i.pc("ngIf",n.configForm.showError(e,t,"min"))}}function pi(e,t){if(1&e&&(i.Qb(0),i.Mc(1,ci,11,6,"div",13),i.Mc(2,fi,9,11,"div",13),i.Pb()),2&e){const e=i.ic(2);i.yb(1),i.pc("ngIf","bool"===e.type),i.yb(1),i.pc("ngIf","bool"!==e.type)}}function mi(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",1),i.Sb(1,"form",2,3),i.Sb(3,"div",4),i.Sb(4,"div",5),i.Qb(5,6),i.Oc(6,"Edit"),i.Pb(),i.Oc(7),i.Rb(),i.Sb(8,"div",7),i.Sb(9,"div",8),i.Sb(10,"label",9),i.Wb(11,10),i.Rb(),i.Sb(12,"div",11),i.Nb(13,"input",12),i.Rb(),i.Rb(),i.Mc(14,ni,6,0,"div",13),i.Mc(15,ii,6,0,"div",13),i.Mc(16,ri,5,0,"div",13),i.Mc(17,si,5,0,"div",13),i.Mc(18,ai,5,1,"div",13),i.Sb(19,"div",14),i.Sb(20,"h3",15),i.Wb(21,16),i.Rb(),i.Mc(22,pi,3,2,"ng-container",17),i.Rb(),i.Rb(),i.Sb(23,"div",18),i.Sb(24,"cd-form-button-panel",19),i.gc("submitActionEvent",(function(){return i.Dc(e),i.ic().submit()})),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.yb(1),i.pc("formGroup",e.configForm),i.yb(6),i.Qc(" ",e.configForm.getValue("name")," "),i.yb(7),i.pc("ngIf",e.configForm.getValue("desc")),i.yb(1),i.pc("ngIf",e.configForm.getValue("long_desc")),i.yb(1),i.pc("ngIf",""!==e.configForm.getValue("default")),i.yb(1),i.pc("ngIf",""!==e.configForm.getValue("daemon_default")),i.yb(1),i.pc("ngIf",e.configForm.getValue("services").length>0),i.yb(4),i.pc("ngForOf",e.availSections),i.yb(2),i.pc("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 kn.h({value:null}),desc:new kn.h({value:null}),long_desc:new kn.h({value:null}),values:new kn.j({}),default:new kn.h({value:null}),daemon_default:new kn.h({value:null}),services:new kn.h([])};this.availSections.forEach(t=>{e.values.addControl(t,new kn.h(null))}),this.configForm=new Jn.a(e)}ngOnInit(){this.route.params.subscribe(e=>{this.configService.get(e.name).subscribe(e=>{this.setResponse(e),this.loadingReady()})})}getValidators(e){const t=Gn.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 Gn.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=Gn.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})}),!jt.a.isEqual(this.response.value,e)){const t=new Qn;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(yn.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)(i.Mb(gn.b),i.Mb(Pt.a),i.Mb(Pt.e),i.Mb(Un.a),i.Mb(wn.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-configuration-form"]],features:[i.vb],decls:1,vars:1,consts:function(){return[["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"],"Name",[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"],"Values",[4,"ngFor","ngForOf"],[1,"card-footer"],["wrappingClass","text-right",3,"form","submitText","submitActionEvent"],"Description",["id","desc","formControlName","desc","readonly","",1,"form-control","resize-vertical"],"Long description",["id","long_desc","formControlName","long_desc","readonly","",1,"form-control","resize-vertical"],"Default",["type","text","id","default","formControlName","default","readonly","",1,"form-control"],"Daemon default",["type","text","id","daemon_default","formControlName","daemon_default","readonly","",1,"form-control"],"Services",["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"],"-- Default --","true","false",[1,"form-control",3,"type","id","placeholder","formControlName","step"],["class","invalid-feedback",4,"ngIf"],[1,"invalid-feedback"],"The entered value is too high! It must not be greater than " + "\ufffd0\ufffd" + ".","The entered value is too low! It must not be lower than " + "\ufffd0\ufffd" + "."]},template:function(e,t){1&e&&i.Mc(0,mi,25,10,"div",0),2&e&&i.pc("cdFormLoading",t.loading)},directives:[Kn.a,kn.C,kn.r,Zn.a,kn.k,Xn.a,On.a,kn.d,ei.a,kn.q,kn.i,wt.r,kn.l,wt.q,ti.a,kn.z,kn.u,kn.B],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&&(i.Sb(0,"span"),i.Oc(1),i.Nb(2,"br"),i.Rb()),2&e){const e=t.$implicit,n=t.last;i.yb(1),i.Sc(" ",e.section,": ",e.value,"",n?"":",","")}}function yi(e,t){if(1&e&&(i.Sb(0,"span"),i.Sb(1,"span",23),i.Sb(2,"span",24),i.Oc(3),i.jc(4,"uppercase"),i.Rb(),i.Rb(),i.Rb()),2&e){const e=t.$implicit,n=i.ic(2);i.yb(1),i.qc("title",n.flags[e]),i.yb(2),i.Pc(i.kc(4,2,e))}}function vi(e,t){if(1&e&&(i.Sb(0,"span"),i.Sb(1,"span",24),i.Oc(2),i.Rb(),i.Rb()),2&e){const e=t.$implicit;i.yb(2),i.Pc(e)}}function wi(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"table",1),i.Sb(2,"tbody"),i.Sb(3,"tr"),i.Sb(4,"td",2),i.Wb(5,3),i.Rb(),i.Sb(6,"td",4),i.Oc(7),i.Rb(),i.Rb(),i.Sb(8,"tr"),i.Sb(9,"td",5),i.Wb(10,6),i.Rb(),i.Sb(11,"td"),i.Oc(12),i.Rb(),i.Rb(),i.Sb(13,"tr"),i.Sb(14,"td",5),i.Wb(15,7),i.Rb(),i.Sb(16,"td"),i.Oc(17),i.Rb(),i.Rb(),i.Sb(18,"tr"),i.Sb(19,"td",5),i.Wb(20,8),i.Rb(),i.Sb(21,"td"),i.Mc(22,_i,3,3,"span",9),i.Rb(),i.Rb(),i.Sb(23,"tr"),i.Sb(24,"td",5),i.Wb(25,10),i.Rb(),i.Sb(26,"td"),i.Oc(27),i.Rb(),i.Rb(),i.Sb(28,"tr"),i.Sb(29,"td",5),i.Wb(30,11),i.Rb(),i.Sb(31,"td"),i.Oc(32),i.Rb(),i.Rb(),i.Sb(33,"tr"),i.Sb(34,"td",5),i.Wb(35,12),i.Rb(),i.Sb(36,"td"),i.Oc(37),i.Rb(),i.Rb(),i.Sb(38,"tr"),i.Sb(39,"td",5),i.Wb(40,13),i.Rb(),i.Sb(41,"td"),i.Oc(42),i.Rb(),i.Rb(),i.Sb(43,"tr"),i.Sb(44,"td",5),i.Wb(45,14),i.Rb(),i.Sb(46,"td"),i.Oc(47),i.Rb(),i.Rb(),i.Sb(48,"tr"),i.Sb(49,"td",5),i.Wb(50,15),i.Rb(),i.Sb(51,"td"),i.Mc(52,yi,5,4,"span",9),i.Rb(),i.Rb(),i.Sb(53,"tr"),i.Sb(54,"td",5),i.Wb(55,16),i.Rb(),i.Sb(56,"td"),i.Mc(57,vi,3,1,"span",9),i.Rb(),i.Rb(),i.Sb(58,"tr"),i.Sb(59,"td",5),i.Wb(60,17),i.Rb(),i.Sb(61,"td"),i.Oc(62),i.Rb(),i.Rb(),i.Sb(63,"tr"),i.Sb(64,"td",5),i.Wb(65,18),i.Rb(),i.Sb(66,"td"),i.Oc(67),i.Rb(),i.Rb(),i.Sb(68,"tr"),i.Sb(69,"td",5),i.Wb(70,19),i.Rb(),i.Sb(71,"td"),i.Oc(72),i.jc(73,"booleanText"),i.Rb(),i.Rb(),i.Sb(74,"tr"),i.Sb(75,"td",5),i.Wb(76,20),i.Rb(),i.Sb(77,"td"),i.Oc(78),i.Rb(),i.Rb(),i.Sb(79,"tr"),i.Sb(80,"td",5),i.Wb(81,21),i.Rb(),i.Sb(82,"td"),i.Oc(83),i.Rb(),i.Rb(),i.Sb(84,"tr"),i.Sb(85,"td",5),i.Wb(86,22),i.Rb(),i.Sb(87,"td"),i.Oc(88),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Pb()),2&e){const e=i.ic();i.yb(7),i.Pc(e.selection.name),i.yb(5),i.Pc(e.selection.desc),i.yb(5),i.Pc(e.selection.long_desc),i.yb(5),i.pc("ngForOf",e.selection.value),i.yb(5),i.Pc(e.selection.default),i.yb(5),i.Pc(e.selection.daemon_default),i.yb(5),i.Pc(e.selection.type),i.yb(5),i.Pc(e.selection.min),i.yb(5),i.Pc(e.selection.max),i.yb(5),i.pc("ngForOf",e.selection.flags),i.yb(5),i.pc("ngForOf",e.selection.services),i.yb(5),i.Pc(e.selection.source),i.yb(5),i.Pc(e.selection.level),i.yb(5),i.Pc(i.kc(73,17,e.selection.can_update_at_runtime)),i.yb(6),i.Pc(e.selection.tags),i.yb(5),i.Pc(e.selection.enum_values),i.yb(5),i.Pc(e.selection.see_also)}}let Si=(()=>{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=jt.a.split(this.selection.services,","))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-configuration-details"]],inputs:{selection:"selection"},features:[i.wb],decls:1,vars:1,consts:function(){return[[4,"ngIf"],[1,"table","table-striped","table-bordered"],[1,"bold","w-25"],"Name",[1,"w-75"],[1,"bold"],"Description","Long description","Current values",[4,"ngFor","ngForOf"],"Default","Daemon default","Type","Min","Max","Flags","Services","Source","Level","Can be updated at runtime (editable)","Tags","Enum values","See also",[3,"title"],[1,"badge","badge-dark","mr-2"]]},template:function(e,t){1&e&&i.Mc(0,wi,89,19,"ng-container",0),2&e&&i.pc("ngIf",t.selection)},directives:[wt.r,wt.q],pipes:[gi.a,wt.C],styles:[""]}),e})();const Mi=["confValTpl"],ki=["confFlagTpl"];function xi(e,t){if(1&e&&(i.Sb(0,"span"),i.Oc(1),i.Nb(2,"br"),i.Rb()),2&e){const e=t.$implicit,n=t.last;i.yb(1),i.Sc(" ",e.section,": ",e.value,"",n?"":",","")}}function Di(e,t){if(1&e&&(i.Sb(0,"span"),i.Mc(1,xi,3,3,"span",5),i.Rb()),2&e){const e=i.ic().value;i.yb(1),i.pc("ngForOf",e)}}function Ti(e,t){1&e&&i.Mc(0,Di,2,1,"span",4),2&e&&i.pc("ngIf",t.value)}let Ci=(()=>{class e extends $t.a{constructor(e,t,n){super(),this.authStorageService=e,this.configurationService=t,this.actionLabels=n,this.data=[],this.icons=_n.a,this.selection=new Wt.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:Ht.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)(i.Mb(Jt.a),i.Mb(Un.a),i.Mb(gn.b))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-configuration"]],viewQuery:function(e,t){var n;1&e&&(i.Jc(Mi,!0),i.Tc(ki,!0)),2&e&&(i.zc(n=i.hc())&&(t.confValTpl=n.first),i.zc(n=i.hc())&&(t.confFlagTpl=n.first))},features:[i.vb],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&&(i.Sb(0,"cd-table",0),i.gc("fetchData",(function(e){return t.getConfigurationList(e)}))("setExpandedRow",(function(e){return t.setExpandedRow(e)}))("updateSelection",(function(e){return t.updateSelection(e)})),i.Nb(1,"cd-table-actions",1),i.Nb(2,"cd-configuration-details",2),i.Rb(),i.Mc(3,Ti,1,1,"ng-template",null,3,i.Nc)),2&e&&(i.pc("data",t.data)("columns",t.columns)("extraFilterableColumns",t.filters)("hasDetails",!0),i.yb(1),i.pc("permission",t.permission)("selection",t.selection)("tableActions",t.tableActions),i.yb(1),i.pc("selection",t.expandedRow))},directives:[Bt.a,Sn.a,Si,wt.r,wt.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("quSY");let Li=(()=>{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)(i.dc(o.b))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Ri=n("lOp/");const Ei=["tree"],Ai=function(e,t,n){return[e,t,n]};function Ii(e,t){if(1&e&&i.Nb(0,"i",12),2&e){const e=i.ic();i.pc("ngClass",i.wc(1,Ai,e.icons.large,e.icons.spinner,e.icons.spin))}}const Pi=function(){return["in","up"]},Ni=function(){return["down","out","destroyed"]},ji=function(e,t){return{"badge-success":e,"badge-danger":t}};function Fi(e,t){if(1&e&&(i.Sb(0,"span",15),i.Oc(1),i.Rb()),2&e){const e=i.ic().$implicit;i.pc("ngClass",i.vc(4,ji,i.tc(2,Pi).includes(e.data.status),i.tc(3,Ni).includes(e.data.status))),i.yb(1),i.Qc(" ",e.data.status," ")}}const Yi=function(e){return{"type-osd":e}};function zi(e,t){if(1&e&&(i.Mc(0,Fi,2,7,"span",13),i.Sb(1,"span"),i.Oc(2,"\xa0"),i.Rb(),i.Nb(3,"span",14)),2&e){const e=t.$implicit;i.pc("ngIf",e.data.status),i.yb(3),i.pc("ngClass",i.uc(3,Yi,"osd"===e.data.type))("innerHTML",e.data.name,i.Ec)}}function $i(e,t){if(1&e&&(i.Sb(0,"div",16),i.Sb(1,"legend"),i.Oc(2),i.Rb(),i.Nb(3,"cd-table-key-value",17),i.Rb()),2&e){const e=i.ic();i.yb(2),i.Pc(e.metadataTitle),i.yb(1),i.pc("data",e.metadata)}}let Hi=(()=>{class e{constructor(e,t){this.healthService=e,this.timerService=t,this.sub=new Oi.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.healthService.getFullHealth().subscribe(e=>{this.loadingIndicator=!1,this.nodes=this.abstractTreeData(e)}),this.sub=this.timerService.get(()=>this.healthService.getFullHealth(),5e3).subscribe(e=>{this.nodes=this.abstractTreeData(e)})}ngOnDestroy(){this.sub.unsubscribe()}abstractTreeData(e){const t=e.osd_map.tree.nodes||[],n={};if(0===t.length)return[{name:"No nodes!"}];const i=[];return t.reverse().forEach(e=>{"root"===e.type&&i.push(e.id),n[e.id]=this.generateTreeLeaf(e,n)}),i.map(e=>n[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(xn.a.ACTIVATE(e,t,!0),void 0!==t.data.cdId){const e=this.metadataKeyMap[t.data.cdId],{name:n,type:i}=e,r=Object(Ft.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)(i.Mb(Li),i.Mb(Ri.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-crushmap"]],viewQuery:function(e,t){var n;1&e&&i.Tc(Ei,!0),2&e&&i.zc(n=i.hc())&&(t.tree=n.first)},decls:14,vars:4,consts:function(){return[[1,"row"],[1,"col-sm-12","col-lg-12"],[1,"card"],[1,"card-header"],"CRUSH map viewer",[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&&(i.Sb(0,"div",0),i.Sb(1,"div",1),i.Sb(2,"div",2),i.Sb(3,"div",3),i.Wb(4,4),i.Rb(),i.Sb(5,"div",5),i.Sb(6,"div",0),i.Sb(7,"div",6),i.Mc(8,Ii,1,5,"i",7),i.Sb(9,"tree-root",8,9),i.gc("updateData",(function(){return t.onUpdateData()})),i.Mc(11,zi,4,5,"ng-template",null,10,i.Nc),i.Rb(),i.Rb(),i.Mc(13,$i,4,2,"div",11),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()),2&e&&(i.yb(8),i.pc("ngIf",t.loadingIndicator),i.yb(1),i.pc("nodes",t.nodes)("options",t.treeOptions),i.yb(4),i.pc("ngIf",t.metadata))},directives:[wt.r,xn.b,wt.p,en.a],styles:[".tree-container[_ngcontent-%COMP%]{height:calc(100vh - 200px)}"]}),e})();var Wi=n("LRne"),Vi=n("lJxs"),Bi=n("Kqap"),Ui=n("BFxc"),Gi=n("xbPD"),qi=n("mCNh");function Ji(e,t,n){return 0===n?[t]:(e.push(t),e)}function Qi(){return function(e,t){return arguments.length>=2?function(n){return Object(qi.a)(Object(Bi.a)(e,t),Object(Ui.a)(1),Object(Gi.a)(t))(n)}:function(t){return Object(qi.a)(Object(Bi.a)((t,n,i)=>e(t,n,i+1)),Object(Ui.a)(1))(t)}}(Ji,[])}var Ki=n("5+tZ");let Zi=(()=>{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=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Xi=(()=>{class e{constructor(e,t){this.http=e,this.deviceService=t,this.baseURL="api/host",this.baseUIURL="ui-api/host"}list(){return this.http.get(this.baseURL)}create(e){return this.http.post(this.baseURL,{hostname:e},{observe:"response"})}delete(e){return this.http.delete(`${this.baseURL}/${e}`,{observe:"response"})}getDevices(e){return this.http.get(`${this.baseURL}/${e}/devices`).pipe(Object(Vi.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})}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",jt.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(Qi()):this.inventoryList(t),n.pipe(Object(Ki.a)(e=>{const t=jt.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(Wi.a)(t)}))}}return e.\u0275fac=function(t){return new(t||e)(i.dc(o.b),i.dc(Zi))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var er=n("kvvV"),tr=n("kn/O"),nr=n("IZUe"),ir=n("8xTl");function rr(e,t){1&e&&(i.Sb(0,"span",16),i.Wb(1,17),i.Rb())}function sr(e,t){1&e&&(i.Sb(0,"span",16),i.Wb(1,18),i.Rb())}function or(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",1),i.Sb(1,"form",2,3),i.Sb(3,"div",4),i.Sb(4,"div",5),i.Wb(5,6),i.jc(6,"titlecase"),i.jc(7,"upperFirst"),i.Rb(),i.Sb(8,"div",7),i.Sb(9,"div",8),i.Sb(10,"label",9),i.Wb(11,10),i.Rb(),i.Sb(12,"div",11),i.Nb(13,"input",12),i.Mc(14,rr,2,0,"span",13),i.Mc(15,sr,2,0,"span",13),i.Rb(),i.Rb(),i.Rb(),i.Sb(16,"div",14),i.Sb(17,"cd-form-button-panel",15),i.gc("submitActionEvent",(function(){return i.Dc(e),i.ic().submit()})),i.jc(18,"titlecase"),i.jc(19,"upperFirst"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.Ac(2),t=i.ic();i.yb(1),i.pc("formGroup",t.hostForm),i.yb(6),i.ac(i.kc(6,7,t.action))(i.kc(7,9,t.resource)),i.Xb(5),i.yb(7),i.pc("ngIf",t.hostForm.showError("hostname",e,"required")),i.yb(1),i.pc("ngIf",t.hostForm.showError("hostname",e,"uniqueName")),i.yb(2),i.pc("form",t.hostForm)("submitText",i.kc(18,11,t.action)+" "+i.kc(19,13,t.resource))}}let ar=(()=>{class e extends qn.a{constructor(e,t,n,i){super(),this.router=e,this.actionLabels=t,this.hostService=n,this.taskWrapper=i,this.resource="host",this.action=this.actionLabels.CREATE,this.createForm()}ngOnInit(){this.hostService.list().subscribe(e=>{this.hostnames=e.map(e=>e.hostname),this.loadingReady()})}createForm(){this.hostForm=new Jn.a({hostname:new kn.h("",{validators:[kn.A.required,Cn.a.custom("uniqueName",e=>this.hostnames&&-1!==this.hostnames.indexOf(e))]})})}submit(){const e=this.hostForm.get("hostname").value;this.taskWrapper.wrapTaskAroundCall({task:new er.a("host/"+gn.e.CREATE,{hostname:e}),call:this.hostService.create(e)}).subscribe({error:()=>{this.hostForm.setErrors({cdSubmitButton:!0})},complete:()=>{this.router.navigate(["/hosts"])}})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Pt.e),i.Mb(gn.b),i.Mb(Xi),i.Mb(tr.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-host-form"]],features:[i.vb],decls:1,vars:1,consts:function(){return[["class","cd-col-form",4,"cdFormLoading"],[1,"cd-col-form"],["name","hostForm","novalidate","",3,"formGroup"],["formDir","ngForm"],[1,"card"],[1,"card-header"],"" + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + "",[1,"card-body"],[1,"form-group","row"],["for","hostname",1,"cd-col-form-label","required"],"Hostname",[1,"cd-col-form-input"],["type","text","placeholder","mon-123","id","hostname","name","hostname","formControlName","hostname","autofocus","",1,"form-control"],["class","invalid-feedback",4,"ngIf"],[1,"card-footer"],["wrappingClass","text-right",3,"form","submitText","submitActionEvent"],[1,"invalid-feedback"],"This field is required.","The chosen hostname is already in use."]},template:function(e,t){1&e&&i.Mc(0,or,20,15,"div",0),2&e&&i.pc("cdFormLoading",t.loading)},directives:[Kn.a,kn.C,kn.r,Zn.a,kn.k,Xn.a,On.a,kn.d,ei.a,kn.q,kn.i,nr.a,wt.r,ti.a],pipes:[wt.A,ir.a],styles:[""]}),e})(),cr=(()=>{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 jt.a.every(t,t=>jt.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)(i.dc(o.b))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var lr=n("DNAf"),ur=function(e){return e.HOST_LIST="get_hosts",e.HOST_CREATE="add_host",e.HOST_DELETE="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.SERVICE_LIST="describe_service",e.SERVICE_CREATE="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}({}),dr=n("85J/"),hr=n("EgGo");n("jKX/");let fr=(()=>{class e{constructor(e,t){this.http=e,this.deviceService=t,this.path="api/osd",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:jt.a.join(jt.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(Vi.a)(e=>e.map(e=>this.deviceService.prepareDevice(e))))}}return e.\u0275fac=function(t){return new(t||e)(i.dc(o.b),i.dc(Zi))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var pr=n("/NlG");const mr=["deviceLocation"],br=["lifeExpectancy"],gr=["lifeExpectancyTimestamp"];function _r(e,t){if(1&e&&i.Nb(0,"cd-table",5),2&e){const e=i.ic();i.pc("data",e.devices)("columns",e.columns)}}function yr(e,t){1&e&&(i.Sb(0,"cd-alert-panel",6),i.Wb(1,7),i.Rb())}function vr(e,t){if(1&e&&(i.Sb(0,"span"),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.yb(1),i.Pc(e.dev)}}function wr(e,t){1&e&&i.Mc(0,vr,2,1,"span",8),2&e&&i.pc("ngForOf",t.value)}function Sr(e,t){if(1&e&&(i.Sb(0,"span"),i.Oc(1),i.jc(2,"i18nPlural"),i.Rb()),2&e){const e=i.ic().value,t=i.ic();i.yb(1),i.Qc("> ",i.lc(2,1,e.min,t.translationMapping),"")}}function Mr(e,t){if(1&e&&(i.Sb(0,"span"),i.Oc(1),i.jc(2,"i18nPlural"),i.Rb()),2&e){const e=i.ic().value,t=i.ic();i.yb(1),i.Qc("< ",i.lc(2,1,e.max,t.translationMapping),"")}}function kr(e,t){if(1&e&&(i.Sb(0,"span"),i.Oc(1),i.jc(2,"i18nPlural"),i.Rb()),2&e){const e=i.ic().value,t=i.ic();i.yb(1),i.Rc("",e.min," to ",i.lc(2,2,e.max,t.translationMapping),"")}}function xr(e,t){if(1&e&&(i.Mc(0,Sr,3,4,"span",9),i.Mc(1,Mr,3,4,"span",9),i.Mc(2,kr,3,5,"span",9)),2&e){const e=t.value;i.pc("ngIf",e.min&&!e.max),i.yb(1),i.pc("ngIf",e.max&&!e.min),i.yb(1),i.pc("ngIf",e.max&&e.min)}}function Dr(e,t){1&e&&i.Oc(0),2&e&&i.Qc(" ",t.value,"\n")}let Tr=(()=>{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:Ht.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)(i.Mb(Xi),i.Mb(wt.e),i.Mb(fr))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-device-list"]],viewQuery:function(e,t){var n;1&e&&(i.Jc(mr,!0),i.Jc(br,!0),i.Jc(gr,!0)),2&e&&(i.zc(n=i.hc())&&(t.locationTemplate=n.first),i.zc(n=i.hc())&&(t.lifeExpectancyTemplate=n.first),i.zc(n=i.hc())&&(t.lifeExpectancyTimestampTemplate=n.first))},inputs:{hostname:"hostname",osdId:"osdId"},features:[i.wb],decls:8,vars:2,consts:function(){return[[3,"data","columns",4,"ngIf"],["type","warning",4,"ngIf"],["deviceLocation",""],["lifeExpectancy",""],["lifeExpectancyTimestamp",""],[3,"data","columns"],["type","warning"],"Neither hostname nor OSD ID given",[4,"ngFor","ngForOf"],[4,"ngIf"]]},template:function(e,t){1&e&&(i.Mc(0,_r,1,2,"cd-table",0),i.Mc(1,yr,2,0,"cd-alert-panel",1),i.Mc(2,wr,1,1,"ng-template",null,2,i.Nc),i.Mc(4,xr,3,3,"ng-template",null,3,i.Nc),i.Mc(6,Dr,1,1,"ng-template",null,4,i.Nc)),2&e&&(i.pc("ngIf",t.hostname||null!==t.osdId),i.yb(1),i.pc("ngIf",""===t.hostname&&null===t.osdId))},directives:[wt.r,Bt.a,pr.a,wt.q],pipes:[wt.i],styles:[""]}),e})();var Cr=n("6qls");function Or(e,t){1&e&&(i.Sb(0,"cd-alert-panel",2),i.Wb(1,3),i.Rb())}function Lr(e,t){1&e&&(i.Sb(0,"cd-alert-panel",2),i.cc(1,4),i.Nb(2,"cd-doc",5),i.Zb(),i.Rb())}let Rr=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-orchestrator-doc-panel"]],inputs:{missingFeatures:"missingFeatures"},decls:3,vars:2,consts:function(){return[["type","info",4,"ngIf","ngIfElse"],["elseBlock",""],["type","info"],"The feature is not supported in the current Orchestrator.","Orchestrator is not available. Please consult the " + "\ufffd#2\ufffd" + "" + "\ufffd/#2\ufffd" + " on how to configure and enable the functionality.",["section","orch"]]},template:function(e,t){if(1&e&&(i.Mc(0,Or,2,0,"cd-alert-panel",0),i.Mc(1,Lr,3,0,"ng-template",null,1,i.Nc)),2&e){const e=i.Ac(2);i.pc("ngIf",t.missingFeatures)("ngIfElse",e)}},directives:[wt.r,pr.a,Cr.a],styles:[""]}),e})(),Er=(()=>{class e{constructor(e,t,n,r,s,o){this.authStorageService=e,this.dimlessBinary=t,this.modalService=n,this.notificationService=r,this.orchService=s,this.hostService=o,this.devices=[],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 i.o,this.fetchInventory=new i.o,this.icons=_n.a,this.columns=[],this.selection=new Wt.a,this.orchStatus=void 0,this.actionOrchFeatures={identify:[ur.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:()=>jt.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:Ht.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:Ht.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:Ht.a.badge,customTemplateConfig:{class:"badge-dark",prefix:"osd."}}];this.columns=e.filter(e=>!this.hiddenColumns.includes(e.prop)),jt.a.forEach(this.filterColumns,e=>{const t=jt.a.find(this.columns,{prop:e});t&&(t.filterable=!0)}),this.fetchInventory.observers.length>0&&(this.fetchInventorySub=this.table.fetchData.subscribe(()=>{this.fetchInventory.emit()}))}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(Tn.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(yn.a.success,"Identifying '" + n + "' started on host '" + t + "'")})}})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Jt.a),i.Mb(Zt.a),i.Mb(vn.a),i.Mb(wn.a),i.Mb(cr),i.Mb(Xi))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-inventory-devices"]],viewQuery:function(e,t){var n;1&e&&i.Jc(Bt.a,!0),2&e&&i.zc(n=i.hc())&&(t.table=n.first)},inputs:{devices:"devices",hiddenColumns:"hiddenColumns",filterColumns:"filterColumns",selectionType:"selectionType",orchStatus:"orchStatus"},outputs:{filterChange:"filterChange",fetchInventory:"fetchInventory"},decls:2,vars:9,consts:[["identifier","uid","columnMode","flex",3,"data","columns","forceIdentifier","selectionType","autoReload","searchField","updateSelection","columnFiltersChanged"],[1,"table-actions",3,"permission","selection","tableActions"]],template:function(e,t){1&e&&(i.Sb(0,"cd-table",0),i.gc("updateSelection",(function(e){return t.updateSelection(e)}))("columnFiltersChanged",(function(e){return t.onColumnFiltersChanged(e)})),i.Nb(1,"cd-table-actions",1),i.Rb()),2&e&&(i.pc("data",t.devices)("columns",t.columns)("forceIdentifier",!0)("selectionType",t.selectionType)("autoReload",!1)("searchField",!1),i.yb(1),i.pc("permission",t.permission)("selection",t.selection)("tableActions",t.tableActions))},directives:[Bt.a,Sn.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 Ar(e,t){1&e&&i.Nb(0,"cd-orchestrator-doc-panel")}const Ir=function(){return[]},Pr=function(){return["hostname"]};function Nr(e,t){if(1&e){const e=i.Tb();i.Qb(0),i.Sb(1,"legend"),i.Wb(2,1),i.Rb(),i.Sb(3,"div",2),i.Sb(4,"div",3),i.Sb(5,"cd-inventory-devices",4),i.gc("fetchInventory",(function(){return i.Dc(e),i.ic().refresh()})),i.Rb(),i.Rb(),i.Rb(),i.Pb()}if(2&e){const e=i.ic();i.yb(5),i.pc("devices",e.devices)("hiddenColumns",void 0===e.hostname?i.tc(3,Ir):i.tc(4,Pr))("orchStatus",e.orchStatus)}}let jr=(()=>{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(Ut.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)(i.Mb(cr),i.Mb(Xi),i.Mb(i.A))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-inventory"]],inputs:{hostname:"hostname"},features:[i.wb],decls:2,vars:2,consts:function(){return[[4,"ngIf"],"Physical Disks",[1,"row"],[1,"col-md-12"],["selectionType","single",3,"devices","hiddenColumns","orchStatus","fetchInventory"]]},template:function(e,t){1&e&&(i.Mc(0,Ar,1,0,"cd-orchestrator-doc-panel",0),i.Mc(1,Nr,6,5,"ng-container",0)),2&e&&(i.pc("ngIf",t.showDocPanel),i.yb(1),i.pc("ngIf",null==t.orchStatus?null:t.orchStatus.available))},directives:[wt.r,Rr,Er],styles:[""]}),e})(),Fr=(()=>{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)(i.dc(o.b))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Yr=n("Dwqy"),zr=n("zWsK");const $r=["statusTpl"],Hr=["daemonsTable"];function Wr(e,t){1&e&&i.Nb(0,"cd-orchestrator-doc-panel")}function Vr(e,t){if(1&e){const e=i.Tb();i.Sb(0,"cd-table",3,4),i.gc("fetchData",(function(t){return i.Dc(e),i.ic().getDaemons(t)})),i.Rb()}if(2&e){const e=i.ic();i.pc("data",e.daemons)("columns",e.columns)("autoReload",5e3)}}function Br(e,t){if(1&e&&(i.Sb(0,"span",5),i.jc(1,"pipeFunction"),i.Oc(2),i.Rb()),2&e){const e=t.row,n=i.ic();i.pc("ngClass",i.lc(1,2,e,n.getStatusClass)),i.yb(2),i.Qc(" ",e.status_desc," ")}}let Ur=(()=>{class e{constructor(e,t,n,i){this.hostService=e,this.cephServiceService=t,this.orchService=n,this.relativeDatePipe=i,this.daemons=[],this.columns=[],this.hasOrchestrator=!1,this.showDocPanel=!1}ngOnInit(){this.columns=[{name:"Hostname",prop:"hostname",flexGrow:1,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:3,filterable:!0,cellTransformation:Ht.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:3,filterable:!0,cellTransformation:Ht.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:2}],this.orchService.status().subscribe(e=>{this.hasOrchestrator=e.available,this.showDocPanel=!e.available})}ngOnChanges(){jt.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()}getStatusClass(e){return jt.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()})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Xi),i.Mb(Fr),i.Mb(cr),i.Mb(Yr.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-service-daemon-list"]],viewQuery:function(e,t){var n;1&e&&(i.Jc($r,!0),i.Tc(Hr,!0)),2&e&&(i.zc(n=i.hc())&&(t.statusTpl=n.first),i.zc(n=i.hc())&&(t.daemonsTableTpls=n))},inputs:{serviceName:"serviceName",hostname:"hostname"},features:[i.wb],decls:4,vars:2,consts:[[4,"ngIf"],["columnMode","flex",3,"data","columns","autoReload","fetchData",4,"ngIf"],["statusTpl",""],["columnMode","flex",3,"data","columns","autoReload","fetchData"],["daemonsTable",""],[1,"badge",3,"ngClass"]],template:function(e,t){1&e&&(i.Mc(0,Wr,1,0,"cd-orchestrator-doc-panel",0),i.Mc(1,Vr,2,3,"cd-table",1),i.Mc(2,Br,3,5,"ng-template",null,2,i.Nc)),2&e&&(i.pc("ngIf",t.showDocPanel),i.yb(1),i.pc("ngIf",t.hasOrchestrator))},directives:[wt.r,Rr,Bt.a,wt.p],pipes:[zr.b],styles:[""]}),e})();var Gr=n("XFyV");const qr=["innerNav"];function Jr(e,t){1&e&&(i.Sb(0,"cd-alert-panel",5),i.Wb(1,6),i.Rb())}function Qr(e,t){1&e&&(i.Sb(0,"cd-alert-panel",7),i.Wb(1,8),i.Rb())}function Kr(e,t){1&e&&(i.Sb(0,"cd-alert-panel",10),i.Wb(1,11),i.Rb())}function Zr(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"cd-alert-panel",20),i.Oc(2),i.Rb(),i.Pb()),2&e){const e=i.ic(2).$implicit;i.yb(2),i.Pc(e.value.userMessage)}}function Xr(e,t){1&e&&(i.Sb(0,"cd-alert-panel",23),i.Yb(1,24),i.Wb(2,25),i.Rb())}function es(e,t){1&e&&(i.Qb(0),i.Sb(1,"cd-alert-panel",27),i.Yb(2,28),i.Wb(3,29),i.Rb(),i.Pb())}function ts(e,t){1&e&&(i.Sb(0,"cd-alert-panel",30),i.Yb(1,31),i.Wb(2,32),i.Rb())}function ns(e,t){if(1&e&&(i.Mc(0,es,4,0,"ng-container",0),i.Mc(1,ts,3,0,"ng-template",null,26,i.Nc)),2&e){const e=i.Ac(2),t=i.ic(3).$implicit;i.pc("ngIf",t.value.info.smart_status.passed)("ngIfElse",e)}}function is(e,t){if(1&e&&(i.Mc(0,Xr,3,0,"cd-alert-panel",21),i.jc(1,"pipeFunction"),i.Mc(2,ns,3,2,"ng-template",null,22,i.Nc)),2&e){const e=i.Ac(3),t=i.ic(2).$implicit,n=i.ic(4);i.pc("ngIf",i.lc(1,2,null==t.value.info?null:t.value.info.smart_status,n.isEmpty))("ngIfElse",e)}}function rs(e,t){if(1&e&&i.Nb(0,"cd-table-key-value",39),2&e){const e=i.ic(4).$implicit;i.pc("renderObjects",!0)("data",e.value.info)}}function ss(e,t){1&e&&(i.Sb(0,"cd-alert-panel",40),i.Wb(1,41),i.Rb())}function os(e,t){if(1&e&&(i.Mc(0,rs,1,2,"cd-table-key-value",37),i.jc(1,"pipeFunction"),i.Mc(2,ss,2,0,"cd-alert-panel",38),i.jc(3,"pipeFunction")),2&e){const e=i.ic(3).$implicit,t=i.ic(4);i.pc("ngIf",!i.lc(1,2,e.value.info,t.isEmpty)),i.yb(2),i.pc("ngIf",i.lc(3,5,e.value.info,t.isEmpty))}}function as(e,t){if(1&e&&i.Nb(0,"cd-table",45),2&e){const e=i.ic(4).$implicit,t=i.ic(4);i.pc("data",e.value.smart.attributes.table)("columns",t.smartDataColumns)}}function cs(e,t){if(1&e&&i.Nb(0,"cd-table-key-value",46),2&e){const e=i.ic(4).$implicit;i.pc("renderObjects",!0)("data",e.value.smart.nvmeData)}}function ls(e,t){1&e&&(i.Sb(0,"cd-alert-panel",47),i.Wb(1,48),i.Rb())}function us(e,t){if(1&e&&(i.Mc(0,as,1,2,"cd-table",42),i.Mc(1,cs,1,2,"cd-table-key-value",43),i.Mc(2,ls,2,0,"cd-alert-panel",44)),2&e){const e=i.ic(3).$implicit;i.pc("ngIf",null==e.value.smart?null:e.value.smart.attributes),i.yb(1),i.pc("ngIf",null==e.value.smart?null:e.value.smart.nvmeData),i.yb(1),i.pc("ngIf",!(null!=e.value.smart&&e.value.smart.attributes||null!=e.value.smart&&e.value.smart.nvmeData))}}function ds(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"ul",12,33),i.Sb(3,"li",34),i.Sb(4,"a",17),i.Wb(5,35),i.Rb(),i.Mc(6,os,4,8,"ng-template",18),i.Rb(),i.Sb(7,"li",34),i.Sb(8,"a",17),i.Wb(9,36),i.Rb(),i.Mc(10,us,3,3,"ng-template",18),i.Rb(),i.Rb(),i.Nb(11,"div",15),i.Pb()),2&e){const e=i.Ac(2);i.yb(3),i.pc("ngbNavItem",1),i.yb(4),i.pc("ngbNavItem",2),i.yb(4),i.pc("ngbNavOutlet",e)}}function hs(e,t){if(1&e&&(i.Mc(0,Zr,3,1,"ng-container",0),i.Mc(1,is,4,5,"ng-template",null,19,i.Nc),i.Mc(3,ds,12,3,"ng-container",4),i.jc(4,"pipeFunction"),i.jc(5,"pipeFunction")),2&e){const e=i.Ac(2),t=i.ic().$implicit,n=i.ic(4);i.pc("ngIf",t.value.error)("ngIfElse",e),i.yb(3),i.pc("ngIf",!i.lc(4,3,t.value.info,n.isEmpty)||!i.lc(5,6,t.value.smart,n.isEmpty))}}function fs(e,t){if(1&e&&(i.Sb(0,"li",16),i.Sb(1,"a",17),i.Oc(2),i.Rb(),i.Mc(3,hs,6,9,"ng-template",18),i.Rb()),2&e){const e=t.$implicit;i.yb(2),i.Rc("",e.value.device," (",e.value.identifier,")")}}function ps(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"ul",12,13),i.Mc(3,fs,4,2,"li",14),i.jc(4,"keyvalue"),i.Rb(),i.Nb(5,"div",15),i.Pb()),2&e){const e=i.Ac(2),t=i.ic(3);i.yb(3),i.pc("ngForOf",i.kc(4,2,t.data)),i.yb(2),i.pc("ngbNavOutlet",e)}}function ms(e,t){if(1&e&&(i.Qb(0),i.Mc(1,Kr,2,0,"cd-alert-panel",9),i.jc(2,"pipeFunction"),i.Mc(3,ps,6,4,"ng-container",4),i.jc(4,"pipeFunction"),i.Pb()),2&e){const e=i.ic(2);i.yb(1),i.pc("ngIf",i.lc(2,2,e.data,e.isEmpty)),i.yb(2),i.pc("ngIf",!i.lc(4,5,e.data,e.isEmpty))}}function bs(e,t){if(1&e&&(i.Qb(0),i.Mc(1,Jr,2,0,"cd-alert-panel",2),i.Mc(2,Qr,2,0,"cd-alert-panel",3),i.Mc(3,ms,5,8,"ng-container",4),i.Pb()),2&e){const e=i.ic();i.yb(1),i.pc("ngIf",e.error),i.yb(1),i.pc("ngIf",e.incompatible),i.yb(1),i.pc("ngIf",!e.error&&!e.incompatible)}}function gs(e,t){1&e&&(i.Sb(0,"cd-loading-panel"),i.Wb(1,49),i.Rb())}let _s=(()=>{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=jt.a.isEmpty}isSmartError(e){return void 0!==jt.a.get(e,"error")}isNvmeSmartData(e){return"nvme"===jt.a.get(e,"device.protocol","").toLowerCase()}isHddSmartData(e){return"ata"===jt.a.get(e,"device.protocol","").toLowerCase()}fetchData(e){const t={};jt.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:jt.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=jt.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)(i.Mb(fr),i.Mb(Xi))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-smart-list"]],viewQuery:function(e,t){var n;1&e&&i.Tc(qr,!0),2&e&&i.zc(n=i.hc())&&(t.nav=n.first)},inputs:{osdId:"osdId",hostname:"hostname"},features:[i.wb],decls:3,vars:2,consts:function(){return[[4,"ngIf","ngIfElse"],["isLoading",""],["type","error",4,"ngIf"],["type","warning",4,"ngIf"],[4,"ngIf"],["type","error"],"Failed to retrieve SMART data.",["type","warning"],"The data received has the JSON format version 2.x and is currently incompatible with the dashboard.",["type","info",4,"ngIf"],["type","info"],"No SMART data available.",["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",4,"ngIf","ngIfElse",6,"title"],["hasSmartStatus",""],["id","alert-self-test-unknown","size","slim","type","warning",6,"title"],["title","SMART overall-health self-assessment test result"],"unknown",["selfTestFailed",""],["id","alert-self-test-passed","size","slim","type","info",6,"title"],["title","SMART overall-health self-assessment test result"],"passed",["id","alert-self-test-failed","size","slim","type","warning",6,"title"],["title","SMART overall-health self-assessment test result"],"failed",["innerNav","ngbNav"],[3,"ngbNavItem"],"Device Information","SMART",[3,"renderObjects","data",4,"ngIf"],["id","alert-device-info-unavailable","type","info",4,"ngIf"],[3,"renderObjects","data"],["id","alert-device-info-unavailable","type","info"],"No device information available for this device.",["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"],"No SMART data available for this device.","SMART data is loading."]},template:function(e,t){if(1&e&&(i.Mc(0,bs,4,3,"ng-container",0),i.Mc(1,gs,2,0,"ng-template",null,1,i.Nc)),2&e){const e=i.Ac(2);i.pc("ngIf",!t.loading)("ngIfElse",e)}},directives:[wt.r,pr.a,Qt.p,wt.q,Qt.u,Qt.r,Qt.s,Qt.q,en.a,Bt.a,Gr.a],pipes:[zr.b,wt.k],styles:[""]}),e})();function ys(e,t){if(1&e&&i.Nb(0,"cd-device-list",14),2&e){const e=i.ic(2);i.pc("hostname",e.selection.hostname)}}function vs(e,t){if(1&e&&i.Nb(0,"cd-inventory",14),2&e){const e=i.ic(3);i.pc("hostname",e.selectedHostname)}}function ws(e,t){1&e&&(i.Sb(0,"li",15),i.Sb(1,"a",5),i.Wb(2,16),i.Rb(),i.Mc(3,vs,1,1,"ng-template",7),i.Rb())}function Ss(e,t){if(1&e&&i.Nb(0,"cd-service-daemon-list",14),2&e){const e=i.ic(3);i.pc("hostname",e.selectedHostname)}}function Ms(e,t){1&e&&(i.Sb(0,"li",17),i.Sb(1,"a",5),i.Wb(2,18),i.Rb(),i.Mc(3,Ss,1,1,"ng-template",7),i.Rb())}function ks(e,t){if(1&e&&i.Nb(0,"cd-grafana",21),2&e){const e=i.ic(3);i.pc("grafanaPath","host-details?var-ceph_hosts="+e.selectedHostname)}}function xs(e,t){1&e&&(i.Sb(0,"li",19),i.Sb(1,"a",5),i.Wb(2,20),i.Rb(),i.Mc(3,ks,1,1,"ng-template",7),i.Rb())}function Ds(e,t){if(1&e&&i.Nb(0,"cd-smart-list",14),2&e){const e=i.ic(3);i.pc("hostname",e.selectedHostname)}}function Ts(e,t){if(1&e&&i.Mc(0,Ds,1,1,"cd-smart-list",22),2&e){const e=i.ic(2),t=i.Ac(2);i.pc("ngIf",e.selectedHostname)("ngIfElse",t)}}function Cs(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"ul",2,3),i.Sb(3,"li",4),i.Sb(4,"a",5),i.Wb(5,6),i.Rb(),i.Mc(6,ys,1,1,"ng-template",7),i.Rb(),i.Mc(7,ws,4,0,"li",8),i.Mc(8,Ms,4,0,"li",9),i.Mc(9,xs,4,0,"li",10),i.Sb(10,"li",11),i.Sb(11,"a",5),i.Wb(12,12),i.Rb(),i.Mc(13,Ts,1,2,"ng-template",7),i.Rb(),i.Rb(),i.Nb(14,"div",13),i.Pb()),2&e){const e=i.Ac(2),t=i.ic();i.yb(7),i.pc("ngIf",t.permissions.hosts.read),i.yb(1),i.pc("ngIf",t.permissions.hosts.read),i.yb(1),i.pc("ngIf",t.permissions.grafana.read),i.yb(5),i.pc("ngbNavOutlet",e)}}function Os(e,t){1&e&&(i.Sb(0,"cd-alert-panel",23),i.Wb(1,24),i.Rb())}let Ls=(()=>{class e{get selectedHostname(){return void 0!==this.selection?this.selection.hostname:null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-host-details"]],inputs:{permissions:"permissions",selection:"selection"},decls:3,vars:1,consts:function(){return[[4,"ngIf"],["noHostname",""],["ngbNav","","cdStatefulTab","host-details",1,"nav-tabs"],["nav","ngbNav"],["ngbNavItem","devices"],["ngbNavLink",""],"Devices",["ngbNavContent",""],["ngbNavItem","inventory",4,"ngIf"],["ngbNavItem","daemons",4,"ngIf"],["ngbNavItem","performance-details",4,"ngIf"],["ngbNavItem","device-health"],"Device health",[3,"ngbNavOutlet"],[3,"hostname"],["ngbNavItem","inventory"],"Inventory",["ngbNavItem","daemons"],"Daemons",["ngbNavItem","performance-details"],"Performance Details",["uid","rtOg0AiWz","grafanaStyle","four",3,"grafanaPath"],[3,"hostname",4,"ngIf","ngIfElse"],["type","error"],"No hostname found."]},template:function(e,t){1&e&&(i.Mc(0,Cs,15,4,"ng-container",0),i.Mc(1,Os,2,0,"ng-template",null,1,i.Nc)),2&e&&i.pc("ngIf",t.selection)},directives:[wt.r,Qt.p,Kt.a,Qt.r,Qt.s,Qt.q,Qt.u,Tr,jr,Ur,Fn.a,_s,pr.a],styles:[""]}),e})();const Rs=["servicesTpl"],Es=["maintenanceConfirmTpl"];function As(e,t){if(1&e){const e=i.Tb();i.Sb(0,"cd-table",10),i.gc("fetchData",(function(t){return i.Dc(e),i.ic().getHosts(t)}))("setExpandedRow",(function(t){return i.Dc(e),i.ic().setExpandedRow(t)}))("updateSelection",(function(t){return i.Dc(e),i.ic().updateSelection(t)})),i.Sb(1,"div",11),i.Nb(2,"cd-table-actions",12),i.Rb(),i.Nb(3,"cd-host-details",13),i.Rb()}if(2&e){const e=i.ic();i.pc("data",e.hosts)("columns",e.columns)("hasDetails",!0),i.yb(2),i.pc("permission",e.permissions.hosts)("selection",e.selection)("tableActions",e.tableActions),i.yb(1),i.pc("permissions",e.permissions)("selection",e.expandedRow)}}function Is(e,t){1&e&&i.Nb(0,"cd-grafana",15),2&e&&i.pc("grafanaPath","host-overview?")}function Ps(e,t){1&e&&(i.Sb(0,"li",2),i.Sb(1,"a",3),i.Wb(2,14),i.Rb(),i.Mc(3,Is,1,1,"ng-template",5),i.Rb())}const Ns=function(e){return[e]};function js(e,t){if(1&e&&(i.Sb(0,"a",19),i.Oc(1),i.Rb()),2&e){const e=i.ic().$implicit,t=i.ic(2);i.pc("routerLink",i.uc(4,Ns,e.cdLink))("queryParams",t.cdParams),i.yb(1),i.Rc("",e.type,".",e.id,"")}}function Fs(e,t){if(1&e&&(i.Sb(0,"span"),i.Oc(1),i.Rb()),2&e){const e=i.ic().$implicit;i.yb(1),i.Rc(" ",e.type,".",e.id," ")}}function Ys(e,t){1&e&&(i.Qb(0),i.Oc(1,", "),i.Pb())}function zs(e,t){if(1&e&&(i.Sb(0,"span"),i.Mc(1,js,2,6,"a",17),i.Mc(2,Fs,2,2,"span",18),i.Mc(3,Ys,2,0,"ng-container",18),i.Rb()),2&e){const e=t.$implicit,n=t.last;i.yb(1),i.pc("ngIf",e.canRead),i.yb(1),i.pc("ngIf",!e.canRead),i.yb(1),i.pc("ngIf",!n)}}function $s(e,t){1&e&&i.Mc(0,zs,4,3,"span",16),2&e&&i.pc("ngForOf",t.value)}function Hs(e,t){if(1&e&&(i.Sb(0,"ul"),i.Sb(1,"li"),i.Wb(2,20),i.Rb(),i.Rb()),2&e){const e=i.ic().$implicit;i.yb(2),i.ac(e),i.Xb(2)}}function Ws(e,t){if(1&e&&(i.Sb(0,"div"),i.Mc(1,Hs,3,1,"ul",18),i.Rb()),2&e){const e=t.last,n=i.ic(2);i.yb(1),i.pc("ngIf",!e||"1"==n.errorMessage.length)}}function Vs(e,t){1&e&&(i.Qb(0),i.Wb(1,21),i.Pb())}function Bs(e,t){if(1&e&&(i.Mc(0,Ws,2,1,"div",16),i.Mc(1,Vs,2,0,"ng-container",18)),2&e){const e=i.ic();i.pc("ngForOf",e.errorMessage),i.yb(1),i.pc("ngIf",e.showSubmit)}}let Us=(()=>{class e extends $t.a{constructor(e,t,n,i,r,s,o,a,c,l){super(),this.authStorageService=e,this.hostService=t,this.cephShortVersionPipe=n,this.urlBuilder=i,this.actionLabels=r,this.modalService=s,this.taskWrapper=o,this.router=a,this.notificationService=c,this.orchService=l,this.columns=[],this.hosts=[],this.isLoadingHosts=!1,this.cdParams={fromLink:"/hosts"},this.selection=new Wt.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={create:[ur.HOST_CREATE],edit:[ur.HOST_LABEL_ADD,ur.HOST_LABEL_REMOVE],delete:[ur.HOST_DELETE],maintenance:[ur.HOST_MAINTENANCE_ENTER,ur.HOST_MAINTENANCE_EXIT]},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)},{name:this.actionLabels.EDIT,permission:"update",icon:_n.a.edit,click:()=>this.editAction(),disable:e=>this.getDisable("edit",e)},{name:this.actionLabels.DELETE,permission:"delete",icon:_n.a.destroy,click:()=>this.deleteAction(),disable:e=>this.getDisable("delete",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},{name:this.actionLabels.EXIT_MAINTENANCE,permission:"update",icon:_n.a.exit,click:()=>this.hostMaintenance(),disable:e=>this.getDisable("maintenance",e)||this.isExecuting||!this.enableButton}]}ngOnInit(){this.columns=[{name:"Hostname",prop:"hostname",flexGrow:1},{name:"Services",prop:"services",flexGrow:3,cellTemplate:this.servicesTpl},{name:"Labels",prop:"labels",flexGrow:1,cellTransformation:Ht.a.badge,customTemplateConfig:{class:"badge-dark"}},{name:"Status",prop:"status",flexGrow:1,cellTransformation:Ht.a.badge,customTemplateConfig:{map:{maintenance:{class:"badge-warning"}}}},{name:"Version",prop:"ceph_version",flexGrow:1,pipe:this.cephShortVersionPipe}],this.orchService.status().subscribe(e=>{this.orchStatus=e})}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=e.map(e=>({enabled:!0,name:e}));this.modalService.show(Tn.a,{titleText:"Edit Host: " + t.hostname + "",fields:[{type:"select-badges",name:"labels",value:t.labels,label:"Labels",typeConfig:{customBadges:!0,options:n,messages:new lr.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(yn.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(yn.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"))this.notificationService.show(yn.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(Dn.a,t)}}):this.hostService.update(e.hostname,!1,[],!0).subscribe(()=>{this.isExecuting=!1,this.notificationService.show(yn.a.success,"\"" + e.hostname + "\" has exited maintenance"),this.table.refreshBtn()})}getDisable(e,t){if("delete"===e||"edit"===e||"maintenance"===e){if(!(null==t?void 0:t.hasSingleSelection))return!0;if(!jt.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:"delete",submitActionObservable:()=>this.taskWrapper.wrapTaskAroundCall({task:new er.a("host/delete",{hostname:e}),call:this.hostService.delete(e)})})}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.hostService.list().subscribe(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)),this.hosts=e,this.isLoadingHosts=!1},()=>{this.isLoadingHosts=!1,e.error()})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Jt.a),i.Mb(Xi),i.Mb(dr.a),i.Mb(hr.a),i.Mb(gn.b),i.Mb(vn.a),i.Mb(tr.a),i.Mb(Pt.e),i.Mb(wn.a),i.Mb(cr))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-hosts"]],viewQuery:function(e,t){var n;1&e&&(i.Tc(Bt.a,!0),i.Jc(Rs,!0),i.Jc(Es,!0)),2&e&&(i.zc(n=i.hc())&&(t.table=n.first),i.zc(n=i.hc())&&(t.servicesTpl=n.first),i.zc(n=i.hc())&&(t.maintenanceConfirmTpl=n.first))},features:[i.xb([{provide:hr.a,useValue:new hr.a("hosts")}]),i.vb],decls:12,vars:2,consts:function(){return[["ngbNav","",1,"nav-tabs"],["nav","ngbNav"],["ngbNavItem",""],["ngbNavLink",""],"Hosts List",["ngbNavContent",""],["ngbNavItem","",4,"ngIf"],[3,"ngbNavOutlet"],["servicesTpl",""],["maintenanceConfirmTpl",""],["columnMode","flex","selectionType","single",3,"data","columns","hasDetails","fetchData","setExpandedRow","updateSelection"],[1,"table-actions","btn-toolbar"],["id","host-actions",1,"btn-group",3,"permission","selection","tableActions"],["cdTableDetail","",3,"permissions","selection"],"Overall Performance",["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"],"" + "\ufffd0\ufffd" + "","Are you sure you want to continue?"]},template:function(e,t){if(1&e&&(i.Sb(0,"ul",0,1),i.Sb(2,"li",2),i.Sb(3,"a",3),i.Wb(4,4),i.Rb(),i.Mc(5,As,4,8,"ng-template",5),i.Rb(),i.Mc(6,Ps,4,0,"li",6),i.Rb(),i.Nb(7,"div",7),i.Mc(8,$s,1,1,"ng-template",null,8,i.Nc),i.Mc(10,Bs,2,2,"ng-template",null,9,i.Nc)),2&e){const e=i.Ac(1);i.yb(6),i.pc("ngIf",t.permissions.grafana.read),i.yb(1),i.pc("ngbNavOutlet",e)}},directives:[Qt.p,Qt.r,Qt.s,Qt.q,wt.r,Qt.u,Bt.a,Sn.a,Ls,Fn.a,wt.q,Pt.h],styles:[""]}),e})(),Gs=(()=>{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)(i.dc(o.b))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var qs=n("Iab2");let Js=(()=>{class e{download(e,t){Object(qs.saveAs)(new Blob([e]),t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Qs=function(e){return[e]};function Ks(e,t){if(1&e){const e=i.Tb();i.Sb(0,"button",5),i.gc("click",(function(){return i.Dc(e),i.ic().download("json")})),i.Nb(1,"i",2),i.Sb(2,"span"),i.Oc(3,"JSON"),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.yb(1),i.pc("ngClass",i.uc(1,Qs,e.icons.json))}}function Zs(e,t){if(1&e){const e=i.Tb();i.Sb(0,"button",5),i.gc("click",(function(){return i.Dc(e),i.ic().download()})),i.Nb(1,"i",2),i.Sb(2,"span"),i.Oc(3,"Text"),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.yb(1),i.pc("ngClass",i.uc(1,Qs,e.icons.text))}}let Xs=(()=>{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)(i.Mb(Js))},e.\u0275cmp=i.Gb({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&&(i.Sb(0,"div",0),i.Sb(1,"button",1),i.Nb(2,"i",2),i.Rb(),i.Sb(3,"div",3),i.Mc(4,Ks,4,3,"button",4),i.Mc(5,Zs,4,3,"button",4),i.Rb(),i.Rb()),2&e&&(i.yb(1),i.pc("title",t.title),i.yb(1),i.pc("ngClass",i.uc(4,Qs,t.icons.download)),i.yb(2),i.pc("ngIf",t.objectItem),i.yb(1),i.pc("ngIf",t.textItem))},directives:[Qt.i,On.a,Qt.m,wt.p,Qt.k,wt.r,Qt.j],styles:[""]}),e})();var eo=n("cEzo"),to=n("E2fk");function no(e,t){1&e&&i.Ob(0)}function io(e,t){if(1&e&&(i.Sb(0,"div",19),i.Nb(1,"cd-download-button",20),i.Nb(2,"cd-copy-2-clipboard-button",21),i.Rb()),2&e){const e=i.ic(4);i.yb(1),i.pc("objectItem",e.clog)("textItem",e.clogText),i.yb(1),i.pc("source",e.clogText)("byId",!1)}}function ro(e,t){if(1&e&&(i.Sb(0,"p"),i.Sb(1,"span",22),i.Oc(2),i.jc(3,"cdDate"),i.Rb(),i.Sb(4,"span"),i.jc(5,"logPriority"),i.Oc(6),i.Rb(),i.Sb(7,"span",23),i.Oc(8),i.Rb(),i.Rb()),2&e){const e=t.$implicit;i.yb(2),i.Pc(i.kc(3,6,e.stamp)),i.yb(2),i.Bb("priority ",i.kc(5,8,e.priority),""),i.yb(2),i.Pc(e.priority),i.yb(2),i.Pc(e.message)}}function so(e,t){1&e&&i.Ob(0)}function oo(e,t){if(1&e&&(i.Sb(0,"div",14),i.Mc(1,io,3,4,"div",15),i.Sb(2,"div",16),i.Mc(3,ro,9,10,"p",17),i.Mc(4,so,1,0,"ng-container",18),i.Rb(),i.Rb()),2&e){const e=i.ic(3),t=i.Ac(4);i.yb(1),i.pc("ngIf",e.clog.length),i.yb(2),i.pc("ngForOf",e.clog),i.yb(1),i.pc("ngIf",0!=e.clog.length)("ngIfElse",t)}}function ao(e,t){if(1&e&&i.Mc(0,oo,5,4,"div",13),2&e){const e=i.ic(2);i.pc("ngIf",e.clog)}}function co(e,t){if(1&e&&(i.Sb(0,"div",19),i.Nb(1,"cd-download-button",24),i.Nb(2,"cd-copy-2-clipboard-button",21),i.Rb()),2&e){const e=i.ic(4);i.yb(1),i.pc("objectItem",e.audit_log)("textItem",e.auditLogText),i.yb(1),i.pc("source",e.auditLogText)("byId",!1)}}function lo(e,t){if(1&e&&(i.Sb(0,"p"),i.Sb(1,"span",22),i.Oc(2),i.jc(3,"cdDate"),i.Rb(),i.Sb(4,"span"),i.jc(5,"logPriority"),i.Oc(6),i.Rb(),i.Sb(7,"span",23),i.Oc(8),i.Rb(),i.Rb()),2&e){const e=t.$implicit;i.yb(2),i.Pc(i.kc(3,6,e.stamp)),i.yb(2),i.Bb("priority ",i.kc(5,8,e.priority),""),i.yb(2),i.Pc(e.priority),i.yb(2),i.Pc(e.message)}}function uo(e,t){1&e&&i.Ob(0)}function ho(e,t){if(1&e&&(i.Sb(0,"div",14),i.Mc(1,co,3,4,"div",15),i.Sb(2,"div",16),i.Mc(3,lo,9,10,"p",17),i.Mc(4,uo,1,0,"ng-container",18),i.Rb(),i.Rb()),2&e){const e=i.ic(3),t=i.Ac(4);i.yb(1),i.pc("ngIf",e.audit_log.length),i.yb(2),i.pc("ngForOf",e.audit_log),i.yb(1),i.pc("ngIf",0!=e.audit_log.length)("ngIfElse",t)}}function fo(e,t){if(1&e&&i.Mc(0,ho,5,4,"div",13),2&e){const e=i.ic(2);i.pc("ngIf",e.audit_log)}}function po(e,t){if(1&e&&(i.Sb(0,"div"),i.Mc(1,no,1,0,"ng-container",3),i.Sb(2,"ul",4,5),i.Sb(4,"li",6),i.Sb(5,"a",7),i.Wb(6,8),i.Rb(),i.Mc(7,ao,1,1,"ng-template",9),i.Rb(),i.Sb(8,"li",10),i.Sb(9,"a",7),i.Wb(10,11),i.Rb(),i.Mc(11,fo,1,1,"ng-template",9),i.Rb(),i.Rb(),i.Nb(12,"div",12),i.Rb()),2&e){const e=i.Ac(3);i.ic();const t=i.Ac(2);i.yb(1),i.pc("ngTemplateOutlet",t),i.yb(11),i.pc("ngbNavOutlet",e)}}function mo(e,t){if(1&e&&(i.Sb(0,"option",46),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e.value),i.yb(1),i.Pc(e.name)}}const bo=function(e){return[e]};function go(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",25),i.Sb(1,"div",26),i.Sb(2,"label",27),i.Wb(3,28),i.Rb(),i.Sb(4,"select",29),i.gc("ngModelChange",(function(t){return i.Dc(e),i.ic().priority=t}))("ngModelChange",(function(){return i.Dc(e),i.ic().filterLogs()})),i.Mc(5,mo,2,2,"option",30),i.Rb(),i.Rb(),i.Sb(6,"div",26),i.Sb(7,"label",31),i.Wb(8,32),i.Rb(),i.Sb(9,"div",33),i.Sb(10,"div",34),i.Sb(11,"span",35),i.Nb(12,"i",36),i.Rb(),i.Rb(),i.Sb(13,"input",37),i.gc("ngModelChange",(function(t){return i.Dc(e),i.ic().search=t}))("keyup",(function(){return i.Dc(e),i.ic().filterLogs()})),i.Rb(),i.Sb(14,"div",38),i.Sb(15,"button",39),i.gc("click",(function(){return i.Dc(e),i.ic().clearSearchKey()})),i.Nb(16,"i"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(17,"div",26),i.Sb(18,"label",40),i.Wb(19,41),i.Rb(),i.Sb(20,"div",33),i.Sb(21,"input",42,43),i.gc("click",(function(){return i.Dc(e),i.Ac(22).open()}))("ngModelChange",(function(t){return i.Dc(e),i.ic().selectedDate=t}))("ngModelChange",(function(){return i.Dc(e),i.ic().filterLogs()})),i.Rb(),i.Sb(23,"span",38),i.Sb(24,"button",39),i.gc("click",(function(){return i.Dc(e),i.ic().clearDate()})),i.Nb(25,"i"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(26,"div",26),i.Sb(27,"label"),i.Wb(28,44),i.Rb(),i.Sb(29,"ngb-timepicker",45),i.gc("ngModelChange",(function(t){return i.Dc(e),i.ic().startTime=t}))("ngModelChange",(function(){return i.Dc(e),i.ic().filterLogs()})),i.Rb(),i.Sb(30,"span"),i.Oc(31,"\xa0\u2014\xa0"),i.Rb(),i.Sb(32,"ngb-timepicker",45),i.gc("ngModelChange",(function(t){return i.Dc(e),i.ic().endTime=t}))("ngModelChange",(function(){return i.Dc(e),i.ic().filterLogs()})),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.yb(4),i.pc("ngModel",e.priority),i.yb(1),i.pc("ngForOf",e.priorities),i.yb(7),i.pc("ngClass",i.uc(16,bo,e.icons.search)),i.yb(1),i.pc("ngModel",e.search),i.yb(3),i.Bb("icon-prepend ",e.icons.destroy,""),i.yb(5),i.pc("maxDate",e.maxDate)("ngModel",e.selectedDate),i.yb(4),i.Bb("icon-prepend ",e.icons.destroy,""),i.yb(4),i.pc("spinners",!1)("ngModel",e.startTime),i.yb(3),i.pc("spinners",!1)("ngModel",e.endTime)}}function _o(e,t){if(1&e){const e=i.Tb();i.Sb(0,"span"),i.Wb(1,47),i.Rb(),i.Sb(2,"span"),i.Oc(3,"\xa0"),i.Rb(),i.Sb(4,"a",48),i.gc("click",(function(){return i.Dc(e),i.ic().resetFilter()})),i.Wb(5,49),i.Rb()}}let yo=(()=>{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)(i.Mb(Gs),i.Mb(wt.e),i.Mb(i.A))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-logs"]],decls:5,vars:1,consts:function(){return[[4,"ngIf"],["logFiltersTpl",""],["noEntriesTpl",""],[4,"ngTemplateOutlet"],["ngbNav","","cdStatefulTab","logs",1,"nav-tabs"],["nav","ngbNav"],["ngbNavItem","cluster-logs"],["ngbNavLink",""],"Cluster Logs",["ngbNavContent",""],["ngbNavItem","audit-logs"],"Audit Logs",[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"],"Priority:",["id","logs-priority",1,"form-control","custom-select",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["for","logs-keyword"],"Keyword:",[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"],"Date:",["id","logs-date","placeholder","YYYY-MM-DD","ngbDatepicker","",1,"form-control",3,"maxDate","ngModel","click","ngModelChange"],["d","ngbDatepicker"],"Time range:",[3,"spinners","ngModel","ngModelChange"],[3,"value"],"No log entries found. Please try to select different filter options.",["href","#",3,"click"],"Reset filter."]},template:function(e,t){1&e&&(i.Mc(0,po,13,2,"div",0),i.Mc(1,go,33,18,"ng-template",null,1,i.Nc),i.Mc(3,_o,6,0,"ng-template",null,2,i.Nc)),2&e&&i.pc("ngIf",t.contentData)},directives:[wt.r,wt.w,Qt.p,Kt.a,Qt.r,Qt.s,Qt.q,Qt.u,wt.q,Xs,eo.a,Xn.a,On.a,kn.z,ei.a,kn.q,kn.t,wt.p,kn.d,Qt.n,Qt.B,kn.u,kn.B],pipes:[Vt.a,to.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})();var vo=n("cp0P");let wo=(()=>{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)(i.dc(o.b))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var So=n("2EZI"),Mo=n("p4Cf");function ko(e,t){if(1&e&&(i.Sb(0,"cd-helper"),i.Oc(1),i.jc(2,"upperFirst"),i.Rb()),2&e){const e=i.ic().$implicit;i.yb(1),i.Qc(" ",i.kc(2,1,e.value.long_desc||e.value.desc)," ")}}function xo(e,t){if(1&e&&(i.Sb(0,"div",15),i.Sb(1,"div",16),i.Nb(2,"input",17),i.Nb(3,"label",18),i.Rb(),i.Rb()),2&e){const e=i.ic().$implicit;i.yb(2),i.qc("id",e.value.name),i.qc("formControlName",e.value.name),i.yb(1),i.qc("for",e.value.name)}}function Do(e,t){if(1&e&&i.Nb(0,"input",22),2&e){const e=i.ic(2).$implicit;i.qc("id",e.value.name),i.qc("formControlName",e.value.name)}}function To(e,t){if(1&e&&(i.Sb(0,"option",25),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("ngValue",e),i.yb(1),i.Qc(" ",e," ")}}function Co(e,t){if(1&e&&(i.Sb(0,"select",23),i.Mc(1,To,2,2,"option",24),i.Rb()),2&e){const e=i.ic(2).$implicit;i.qc("id",e.value.name),i.qc("formControlName",e.value.name),i.yb(1),i.pc("ngForOf",e.value.enum_allowed)}}function Oo(e,t){1&e&&(i.Sb(0,"span",26),i.Wb(1,27),i.Rb())}function Lo(e,t){1&e&&(i.Sb(0,"span",26),i.Wb(1,28),i.Rb())}function Ro(e,t){if(1&e&&(i.Sb(0,"div",15),i.Mc(1,Do,1,2,"input",19),i.Mc(2,Co,2,3,"select",20),i.Mc(3,Oo,2,0,"span",21),i.Mc(4,Lo,2,0,"span",21),i.Rb()),2&e){const e=i.ic().$implicit;i.ic();const t=i.Ac(2),n=i.ic();i.yb(1),i.pc("ngIf",0===e.value.enum_allowed.length),i.yb(1),i.pc("ngIf",e.value.enum_allowed.length>0),i.yb(1),i.pc("ngIf",n.mgrModuleForm.showError(e.value.name,t,"invalidUuid")),i.yb(1),i.pc("ngIf",n.mgrModuleForm.showError(e.value.name,t,"pattern"))}}function Eo(e,t){1&e&&(i.Sb(0,"span",26),i.Wb(1,30),i.Rb())}function Ao(e,t){if(1&e&&(i.Sb(0,"span",26),i.Wb(1,31),i.Rb()),2&e){const e=i.ic(2).$implicit;i.yb(1),i.ac(e.value.max),i.Xb(1)}}function Io(e,t){if(1&e&&(i.Sb(0,"span",26),i.Wb(1,32),i.Rb()),2&e){const e=i.ic(2).$implicit;i.yb(1),i.ac(e.value.min),i.Xb(1)}}function Po(e,t){1&e&&(i.Sb(0,"span",26),i.Wb(1,33),i.Rb())}function No(e,t){if(1&e&&(i.Sb(0,"div",15),i.Nb(1,"input",29),i.Mc(2,Eo,2,0,"span",21),i.Mc(3,Ao,2,1,"span",21),i.Mc(4,Io,2,1,"span",21),i.Mc(5,Po,2,0,"span",21),i.Rb()),2&e){const e=i.ic().$implicit;i.ic();const t=i.Ac(2),n=i.ic();i.yb(1),i.qc("id",e.value.name),i.qc("formControlName",e.value.name),i.qc("min",e.value.min),i.qc("max",e.value.max),i.yb(1),i.pc("ngIf",n.mgrModuleForm.showError(e.value.name,t,"required")),i.yb(1),i.pc("ngIf",n.mgrModuleForm.showError(e.value.name,t,"max")),i.yb(1),i.pc("ngIf",n.mgrModuleForm.showError(e.value.name,t,"min")),i.yb(1),i.pc("ngIf",n.mgrModuleForm.showError(e.value.name,t,"pattern"))}}function jo(e,t){1&e&&(i.Sb(0,"span",26),i.Wb(1,35),i.Rb())}function Fo(e,t){1&e&&(i.Sb(0,"span",26),i.Wb(1,36),i.Rb())}function Yo(e,t){if(1&e&&(i.Sb(0,"div",15),i.Nb(1,"input",34),i.Mc(2,jo,2,0,"span",21),i.Mc(3,Fo,2,0,"span",21),i.Rb()),2&e){const e=i.ic().$implicit;i.ic();const t=i.Ac(2),n=i.ic();i.yb(1),i.qc("id",e.value.name),i.qc("formControlName",e.value.name),i.yb(1),i.pc("ngIf",n.mgrModuleForm.showError(e.value.name,t,"required")),i.yb(1),i.pc("ngIf",n.mgrModuleForm.showError(e.value.name,t,"pattern"))}}const zo=function(){return["addr","str","uuid"]},$o=function(){return["uint","int","size","secs"]};function Ho(e,t){if(1&e&&(i.Sb(0,"div",11),i.Sb(1,"label",12),i.Oc(2),i.Mc(3,ko,3,3,"cd-helper",13),i.Rb(),i.Mc(4,xo,4,3,"div",14),i.Mc(5,Ro,5,4,"div",14),i.Mc(6,No,6,8,"div",14),i.Mc(7,Yo,4,4,"div",14),i.Rb()),2&e){const e=t.$implicit;i.yb(1),i.qc("for",e.value.name),i.yb(1),i.Qc(" ",e.value.name," "),i.yb(1),i.pc("ngIf",e.value.long_desc||e.value.desc),i.yb(1),i.pc("ngIf","bool"===e.value.type),i.yb(1),i.pc("ngIf",i.tc(7,zo).includes(e.value.type)),i.yb(1),i.pc("ngIf",i.tc(8,$o).includes(e.value.type)),i.yb(1),i.pc("ngIf","float"===e.value.type)}}function Wo(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",1),i.Sb(1,"form",2,3),i.Sb(3,"div",4),i.Sb(4,"div",5),i.Wb(5,6),i.Rb(),i.Sb(6,"div",7),i.Mc(7,Ho,8,9,"div",8),i.jc(8,"keyvalue"),i.Rb(),i.Sb(9,"div",9),i.Sb(10,"cd-form-button-panel",10),i.gc("submitActionEvent",(function(){return i.Dc(e),i.ic().onSubmit()})),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.ic();i.yb(1),i.pc("formGroup",e.mgrModuleForm),i.yb(6),i.pc("ngForOf",i.kc(8,4,e.moduleOptions)),i.yb(3),i.pc("form",e.mgrModuleForm)("submitText",e.actionLabels.UPDATE)}}let Vo=(()=>{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(vo.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(kn.A.required),jt.a.isNumber(e.min)&&t.push(kn.A.min(e.min)),jt.a.isNumber(e.max)&&t.push(kn.A.max(e.max));break;case"str":jt.a.isNumber(e.min)&&t.push(kn.A.minLength(e.min)),jt.a.isNumber(e.max)&&t.push(kn.A.maxLength(e.max));break;case"float":t.push(kn.A.required),t.push(Cn.a.decimalNumber());break;case"uuid":t.push(Cn.a.uuid())}return t}createForm(){const e={};jt.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={};jt.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(yn.a.success,"Updated options for module '" + this.moduleName + "'."),this.goToListView()},()=>{this.mgrModuleForm.setErrors({cdSubmitButton:!0})})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(gn.b),i.Mb(Pt.a),i.Mb(Pt.e),i.Mb(So.a),i.Mb(wo),i.Mb(wn.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-mgr-module-form"]],features:[i.vb],decls:1,vars:1,consts:function(){return[["class","cd-col-form",4,"cdFormLoading"],[1,"cd-col-form"],["name","mgrModuleForm","novalidate","",3,"formGroup"],["frm","ngForm"],[1,"card"],[1,"card-header"],"Edit Manager module",[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"],"The entered value is not a valid UUID, e.g.: 67dcac9f-2c03-4d6c-b7bd-1210b3a259a8","The entered value needs to be a valid IP address.",["type","number",1,"form-control",3,"id","formControlName","min","max"],"This field is required.","The entered value is too high! It must be lower or equal to " + "\ufffd0\ufffd" + ".","The entered value is too low! It must be greater or equal to " + "\ufffd0\ufffd" + ".","The entered value needs to be a number.",["type","number",1,"form-control",3,"id","formControlName"],"This field is required.","The entered value needs to be a number or decimal."]},template:function(e,t){1&e&&i.Mc(0,Wo,11,6,"div",0),2&e&&i.pc("cdFormLoading",t.loading)},directives:[Kn.a,kn.C,kn.r,kn.k,Zn.a,wt.q,ti.a,Xn.a,wt.r,Mo.a,On.a,kn.b,ei.a,kn.q,kn.i,kn.d,kn.z,kn.u,kn.B,kn.v],pipes:[wt.k,ir.a],styles:[""]}),e})();var Bo=n("jtHE");const Uo=["*"],Go=["templateOutlet"];function qo(e,t){if(1&e&&(i.Sb(0,"div",6),i.Oc(1),i.Rb()),2&e){const e=i.ic(2);i.yb(1),i.Qc(" ",e.message||e.defaultMessage," ")}}function Jo(e,t){if(1&e&&(i.Sb(0,"div",3),i.Nb(1,"div",4),i.Mc(2,qo,2,1,"div",5),i.Rb()),2&e){const e=i.ic();i.yb(2),i.pc("ngIf",e.message||e.defaultMessage)}}function Qo(e,t){}function Ko(e,t){1&e&&i.Mc(0,Qo,0,0,"ng-template",null,7,i.Nc)}const Zo=function(e){return{active:e}};let Xo=(()=>{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 ea="block-ui-main";let ta=(()=>{let e=class{constructor(){this.blockUISettings={},this.blockUIInstances={},this.blockUISubject=new Bo.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,Xo.START,e),update:this.dispatch(this.blockUISubject,Xo.UPDATE,e),stop:this.dispatch(this.blockUISubject,Xo.STOP,e),reset:this.dispatch(this.blockUISubject,Xo.RESET,e),resetGlobal:this.dispatch(this.blockUISubject,Xo.RESET_GLOBAL,e),unsubscribe:this.dispatch(this.blockUISubject,Xo.UNSUBSCRIBE,e)};return this.blockUIInstances[e]=this.blockUIInstances[e]||t,t}observe(){return this.blockUIObservable}clearInstance(e){this.dispatch(this.blockUISubject,Xo.RESET,e)}blockUIMiddleware({action:e,name:t}){let n=null;switch(e){case Xo.START:n=!0;break;case Xo.STOP:case Xo.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=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}}),e})(),na=(()=>{let e=class{constructor(e){this.blockUI=e}ngOnInit(){this.name=this.name||ea,this.template=this.template||this.blockUI.blockUISettings.template}};return e.\u0275fac=function(t){return new(t||e)(i.Mb(ta))},e.\u0275cmp=i.Gb({type:e,selectors:[["block-ui"]],inputs:{name:"name",template:"template",message:"message",delayStart:"delayStart",delayStop:"delayStop"},ngContentSelectors:Uo,decls:2,vars:5,consts:[[3,"name","message","template","delayStart","delayStop"]],template:function(e,t){1&e&&(i.oc(),i.nc(0),i.Nb(1,"block-ui-content",0)),2&e&&(i.yb(1),i.pc("name",t.name)("message",t.message)("template",t.template)("delayStart",t.delayStart)("delayStop",t.delayStop))},directives:function(){return[ia]},encapsulation:2}),e})(),ia=(()=>{let e=class{constructor(e,t,n){this.blockUI=e,this.resolver=t,this.changeDetectionRef=n,this.name=ea,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 i.L)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 Xo.START:this.onStart(e);break;case Xo.STOP:this.onStop(e);break;case Xo.UPDATE:this.onUpdate(e);break;case Xo.RESET:this.onReset(e);break;case Xo.RESET_GLOBAL:this.resetState();break;case Xo.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 i.k&&(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)(i.Mb(ta),i.Mb(i.j),i.Mb(i.h))},e.\u0275cmp=i.Gb({type:e,selectors:[["block-ui-content"]],viewQuery:function(e,t){var n;1&e&&i.Tc(Go,!0,i.P),2&e&&i.zc(n=i.hc())&&(t.templateOutlet=n.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&&(i.Sb(0,"div",0),i.Mc(1,Jo,3,1,"div",1),i.Mc(2,Ko,2,0,void 0,2),i.Rb()),2&e&&(i.Cb("block-ui-wrapper ",t.name," ",t.className,""),i.pc("ngClass",i.uc(7,Zo,t.state.blockCount>0)),i.yb(1),i.pc("ngIf",!t.templateCmp),i.yb(1),i.pc("ngIf",t.templateCmp))},directives:[wt.p,wt.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})(),ra=(()=>{let e=class{constructor(e){this.blockUIInstance=e,this.globalDispatch=this.blockUIInstance.decorate()}start(e,t){this.dispatch(e,Xo.START,t)}stop(e){this.dispatch(e,Xo.STOP)}reset(e){this.dispatch(e,Xo.RESET)}resetGlobal(){this.globalDispatch.resetGlobal()}update(e,t){this.dispatch(e,Xo.UPDATE,t)}unsubscribe(e){this.dispatch(e,Xo.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)(i.dc(ta))},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}}),e})();var sa;const oa=new ta,aa=new i.r("BlockUIModuleSettings");function ca(e){return oa.updateSettings(e),oa}let la=(()=>{let e=sa=class{static forRoot(e={}){return{ngModule:sa,providers:[{provide:aa,useValue:e},{provide:ta,useFactory:ca,deps:[aa]},ra]}}};return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[wt.c]]}),e})(),ua=1;function da(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}-${ua++}`;return this[i]=oa.decorate(t),this[i]},set:function(e){this[i]=e}})}:function(t,n){t[n]=oa.decorate(e)}}function ha(e,t){if(1&e&&(i.Qb(0),i.Nb(1,"cd-table-key-value",1),i.Pb()),2&e){const e=i.ic();i.yb(1),i.pc("data",e.module_config)}}let fa=(()=>{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)(i.Mb(wo))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-mgr-module-details"]],inputs:{selection:"selection"},features:[i.wb],decls:1,vars:1,consts:[[4,"ngIf"],[3,"data"]],template:function(e,t){1&e&&i.Mc(0,ha,2,1,"ng-container",0),2&e&&i.pc("ngIf",t.selection)},directives:[wt.r,en.a],styles:[""]}),e})(),pa=(()=>{class e extends $t.a{constructor(e,t,n){super(),this.authStorageService=e,this.mgrModuleService=t,this.notificationService=n,this.columns=[],this.modules=[],this.selection=new Wt.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:Ht.a.checkIcon},{name:"Always-On",prop:"always_on",flexGrow:1,cellClass:"text-center",cellTransformation:Ht.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(Ut.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)(i.Mb(Jt.a),i.Mb(wo),i.Mb(wn.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-mgr-module-list"]],viewQuery:function(e,t){var n;1&e&&i.Jc(Bt.a,!0),2&e&&i.zc(n=i.hc())&&(t.table=n.first)},features:[i.vb],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&&(i.Sb(0,"cd-table",0,1),i.gc("setExpandedRow",(function(e){return t.setExpandedRow(e)}))("updateSelection",(function(e){return t.updateSelection(e)}))("fetchData",(function(e){return t.getModuleList(e)})),i.Nb(2,"cd-table-actions",2),i.Nb(3,"cd-mgr-module-details",3),i.Rb()),2&e&&(i.pc("autoReload",!1)("data",t.modules)("columns",t.columns)("hasDetails",!0),i.yb(2),i.pc("permission",t.permission)("selection",t.selection)("tableActions",t.tableActions),i.yb(1),i.pc("selection",t.expandedRow))},directives:[Bt.a,Sn.a,fa],styles:[""]}),Object(Ft.b)([da(),Object(Ft.d)("design:type",Object)],e.prototype,"blockUI",void 0),e})(),ma=(()=>{class e{constructor(e){this.http=e}getMonitor(){return this.http.get("api/monitor")}}return e.\u0275fac=function(t){return new(t||e)(i.dc(o.b))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function ba(e,t){if(1&e&&(i.Sb(0,"table",11),i.Sb(1,"tr"),i.Sb(2,"td",12),i.Wb(3,13),i.Rb(),i.Sb(4,"td"),i.Oc(5),i.Rb(),i.Rb(),i.Sb(6,"tr"),i.Sb(7,"td",12),i.Wb(8,14),i.Rb(),i.Sb(9,"td"),i.Oc(10),i.jc(11,"relativeDate"),i.Rb(),i.Rb(),i.Sb(12,"tr"),i.Sb(13,"td",12),i.Wb(14,15),i.Rb(),i.Sb(15,"td"),i.Oc(16),i.Rb(),i.Rb(),i.Sb(17,"tr"),i.Sb(18,"td",12),i.Wb(19,16),i.Rb(),i.Sb(20,"td"),i.Oc(21),i.Rb(),i.Rb(),i.Sb(22,"tr"),i.Sb(23,"td",12),i.Wb(24,17),i.Rb(),i.Sb(25,"td"),i.Oc(26),i.Rb(),i.Rb(),i.Sb(27,"tr"),i.Sb(28,"td",12),i.Wb(29,18),i.Rb(),i.Sb(30,"td"),i.Oc(31),i.Rb(),i.Rb(),i.Sb(32,"tr"),i.Sb(33,"td",12),i.Wb(34,19),i.Rb(),i.Sb(35,"td"),i.Oc(36),i.Rb(),i.Rb(),i.Rb()),2&e){const e=i.ic();i.yb(5),i.Pc(e.mon_status.monmap.fsid),i.yb(5),i.Pc(i.kc(11,7,e.mon_status.monmap.modified)),i.yb(6),i.Pc(e.mon_status.monmap.epoch),i.yb(5),i.Pc(e.mon_status.features.quorum_con),i.yb(5),i.Pc(e.mon_status.features.quorum_mon),i.yb(5),i.Pc(e.mon_status.features.required_con),i.yb(5),i.Pc(e.mon_status.features.required_mon)}}let ga=(()=>{class e{constructor(e){this.monitorService=e,this.inQuorum={columns:[{prop:"name",name:"Name",cellTransformation:Ht.a.routerLink},{prop:"rank",name:"Rank"},{prop:"public_addr",name:"Public Address"},{prop:"cdOpenSessions",name:"Open Sessions",cellTransformation:Ht.a.sparkline,comparator:(e,t)=>{const n=jt.a.last(e),i=jt.a.last(t);return n&&i&&n!==i?n>i?1:-1:0}}]},this.notInQuorum={columns:[{prop:"name",name:"Name",cellTransformation:Ht.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)(i.Mb(ma))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-monitor"]],decls:13,vars:5,consts:function(){return[[1,"row"],[1,"col-lg-4"],[1,"cd-header"],"Status",["class","table table-striped",4,"ngIf"],[1,"col-lg-8"],[1,"in-quorum","cd-header"],"In Quorum",[3,"data","columns"],"Not In Quorum",[3,"data","columns","fetchData"],[1,"table","table-striped"],[1,"bold"],"Cluster ID","monmap modified","monmap epoch","quorum con","quorum mon","required con","required mon"]},template:function(e,t){1&e&&(i.Sb(0,"div",0),i.Sb(1,"div",1),i.Sb(2,"fieldset"),i.Sb(3,"legend",2),i.Wb(4,3),i.Rb(),i.Mc(5,ba,37,9,"table",4),i.Rb(),i.Rb(),i.Sb(6,"div",5),i.Sb(7,"legend",6),i.Wb(8,7),i.Rb(),i.Nb(9,"cd-table",8),i.Sb(10,"legend",6),i.Wb(11,9),i.Rb(),i.Sb(12,"cd-table",10),i.gc("fetchData",(function(){return t.refresh()})),i.Rb(),i.Rb(),i.Rb()),2&e&&(i.yb(5),i.pc("ngIf",t.mon_status),i.yb(4),i.pc("data",t.inQuorum.data)("columns",t.inQuorum.columns),i.yb(3),i.pc("data",t.notInQuorum.data)("columns",t.notInQuorum.columns))},directives:[wt.r,Bt.a],pipes:[Yr.a],styles:[""]}),e})();var _a=n("ajRT");let ya=(()=>{class e{constructor(e,t,n,r,s){this.activeModal=e,this.actionLabels=t,this.formBuilder=n,this.osdService=r,this.taskWrapper=s,this.driveGroups=[],this.submitAction=new i.o,this.action=t.CREATE,this.createForm()}createForm(){this.formGroup=this.formBuilder.group({})}onSubmit(){this.taskWrapper.wrapTaskAroundCall({task:new er.a("osd/"+gn.e.CREATE,{tracking_id:jt.a.join(jt.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)(i.Mb(Qt.a),i.Mb(gn.b),i.Mb(So.a),i.Mb(fr),i.Mb(tr.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-osd-creation-preview-modal"]],inputs:{driveGroups:"driveGroups"},outputs:{submitAction:"submitAction"},decls:15,vars:9,consts:function(){return[[3,"modalRef"],[1,"modal-title"],"OSD creation preview",[1,"modal-content"],["novalidate","",3,"formGroup"],["frm","ngForm"],[1,"modal-body"],"DriveGroups",[1,"modal-footer"],[3,"form","submitText","submitActionEvent"]]},template:function(e,t){1&e&&(i.Sb(0,"cd-modal",0),i.Qb(1,1),i.Wb(2,2),i.Pb(),i.Qb(3,3),i.Sb(4,"form",4,5),i.Sb(6,"div",6),i.Sb(7,"h4"),i.Wb(8,7),i.Rb(),i.Sb(9,"pre"),i.Oc(10),i.jc(11,"json"),i.Rb(),i.Rb(),i.Sb(12,"div",8),i.Sb(13,"cd-form-button-panel",9),i.gc("submitActionEvent",(function(){return t.onSubmit()})),i.jc(14,"titlecase"),i.Rb(),i.Rb(),i.Rb(),i.Pb(),i.Rb()),2&e&&(i.pc("modalRef",t.activeModal),i.yb(4),i.pc("formGroup",t.formGroup),i.yb(6),i.Pc(i.kc(11,5,t.driveGroups)),i.yb(3),i.pc("form",t.formGroup)("submitText",i.kc(14,7,t.action)))},directives:[_a.a,kn.C,kn.r,Zn.a,kn.k,ti.a],pipes:[wt.j,wt.A],styles:[""]}),e})();const va=["inventoryDevices"];function wa(e,t){if(1&e&&(i.Sb(0,"span",16),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.yb(1),i.Qc(" ",e," ")}}function Sa(e,t){if(1&e&&(i.Sb(0,"cd-alert-panel",13),i.Qb(1),i.Wb(2,14),i.Pb(),i.Mc(3,wa,2,1,"span",15),i.Rb()),2&e){const e=i.ic();i.pc("showTitle",!1),i.yb(3),i.pc("ngForOf",e.requiredFilters)}}function Ma(e,t){if(1&e&&(i.Sb(0,"div"),i.Sb(1,"p",17),i.Sb(2,"span"),i.Wb(3,18),i.jc(4,"dimlessBinary"),i.Rb(),i.Rb(),i.Rb()),2&e){const e=i.ic();i.yb(4),i.ac(e.filteredDevices.length)(i.kc(4,2,e.capacity)),i.Xb(3)}}const ka=function(){return["available","osd_ids"]};let xa=(()=>{class e{constructor(e,t,n){this.formBuilder=e,this.activeModal=t,this.actionLabels=n,this.submitAction=new i.o,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=jt.a.filter(this.inventoryDevices.columns,e=>this.filterColumns.includes(e.prop)&&"hostname"!==e.prop);setTimeout(()=>{this.requiredFilters=jt.a.map(e,"name")},0)}createForm(){this.formGroup=this.formBuilder.group({})}onFilterChange(e){if(this.capacity=0,this.canSubmit=!1,jt.a.isEmpty(e.filters))this.filteredDevices=[],this.event=void 0;else{const t=e.filters.filter(e=>"hostname"!==e.prop);this.canSubmit=!jt.a.isEmpty(t),this.filteredDevices=e.data,this.capacity=jt.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)(i.Mb(So.a),i.Mb(Qt.a),i.Mb(gn.b))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-osd-devices-selection-modal"]],viewQuery:function(e,t){var n;1&e&&i.Tc(va,!0),2&e&&i.zc(n=i.hc())&&(t.inventoryDevices=n.first)},outputs:{submitAction:"submitAction"},decls:14,vars:14,consts:function(){return[[3,"modalRef"],[1,"modal-title"],"" + "\ufffd0\ufffd" + " devices",[1,"modal-content"],["novalidate","",3,"formGroup"],["frm","ngForm"],[1,"modal-body"],["type","warning","size","slim",3,"showTitle",4,"ngIf"],[3,"devices","filterColumns","hiddenColumns","filterChange"],["inventoryDevices",""],[4,"ngIf"],[1,"modal-footer"],[3,"form","disabled","submitText","submitActionEvent"],["type","warning","size","slim",3,"showTitle"],"At least one of these filters must be applied in order to proceed:",["class","badge badge-dark ml-2",4,"ngFor","ngForOf"],[1,"badge","badge-dark","ml-2"],[1,"text-center"],"Number of devices: " + "\ufffd0\ufffd" + ". Raw capacity: " + "\ufffd1\ufffd" + "."]},template:function(e,t){1&e&&(i.Sb(0,"cd-modal",0),i.Qb(1,1),i.Wb(2,2),i.Pb(),i.Qb(3,3),i.Sb(4,"form",4,5),i.Sb(6,"div",6),i.Mc(7,Sa,4,2,"cd-alert-panel",7),i.Sb(8,"cd-inventory-devices",8,9),i.gc("filterChange",(function(e){return t.onFilterChange(e)})),i.Rb(),i.Mc(10,Ma,5,4,"div",10),i.Rb(),i.Sb(11,"div",11),i.Sb(12,"cd-form-button-panel",12),i.gc("submitActionEvent",(function(){return t.onSubmit()})),i.jc(13,"titlecase"),i.Rb(),i.Rb(),i.Rb(),i.Pb(),i.Rb()),2&e&&(i.pc("modalRef",t.activeModal),i.yb(2),i.ac(t.deviceType),i.Xb(2),i.yb(2),i.pc("formGroup",t.formGroup),i.yb(3),i.pc("ngIf",!t.canSubmit),i.yb(1),i.pc("devices",t.devices)("filterColumns",t.filterColumns)("hiddenColumns",i.tc(13,ka)),i.yb(2),i.pc("ngIf",t.canSubmit),i.yb(2),i.pc("form",t.formGroup)("disabled",!t.canSubmit||0===t.filteredDevices.length)("submitText",i.kc(13,11,t.action)))},directives:[_a.a,kn.C,kn.r,Zn.a,kn.k,wt.r,Er,ti.a,pr.a,wt.q],pipes:[wt.A,Zt.a],styles:[""]}),e})();function Da(e,t){1&e&&(i.Sb(0,"span"),i.Wb(1,7),i.Rb())}function Ta(e,t){1&e&&(i.Sb(0,"span"),i.Wb(1,8),i.Rb())}function Ca(e,t){1&e&&(i.Sb(0,"span"),i.Wb(1,9),i.Rb())}const Oa=function(e){return[e]};function La(e,t){if(1&e){const e=i.Tb();i.Qb(0),i.Sb(1,"button",10),i.gc("click",(function(){return i.Dc(e),i.ic().showSelectionModal()})),i.Nb(2,"i",11),i.Qb(3),i.Wb(4,12),i.Pb(),i.Rb(),i.Pb()}if(2&e){const e=i.ic();i.yb(1),i.pc("title",e.addButtonTooltip)("disabled",0===e.availDevices.length||!e.canSelect),i.yb(1),i.pc("ngClass",i.uc(3,Oa,e.icons.add))}}function Ra(e,t){if(1&e&&(i.Sb(0,"span"),i.Sb(1,"span",19),i.Oc(2),i.Rb(),i.Rb()),2&e){const e=t.$implicit;i.yb(2),i.Rc("",e.name,": ",e.value.formatted,"")}}function Ea(e,t){if(1&e&&(i.Sb(0,"div",20),i.Sb(1,"span"),i.Wb(2,21),i.jc(3,"dimlessBinary"),i.Rb(),i.Rb()),2&e){const e=i.ic(2);i.yb(3),i.ac(i.kc(3,1,e.capacity)),i.Xb(2)}}const Aa=function(){return["available","osd_ids"]},Ia=function(){return[]};function Pa(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",13),i.Mc(1,Ra,3,2,"span",14),i.Sb(2,"a",15),i.gc("click",(function(){return i.Dc(e),i.ic().clearDevices(),!1})),i.Nb(3,"i",11),i.Qb(4),i.Wb(5,16),i.Pb(),i.Rb(),i.Rb(),i.Sb(6,"div"),i.Nb(7,"cd-inventory-devices",17),i.Rb(),i.Mc(8,Ea,4,3,"div",18)}if(2&e){const e=i.ic();i.yb(1),i.pc("ngForOf",e.appliedFilters),i.yb(2),i.pc("ngClass",i.uc(6,Oa,e.icons.clearFilters)),i.yb(4),i.pc("devices",e.devices)("hiddenColumns",i.tc(8,Aa))("filterColumns",i.tc(9,Ia)),i.yb(1),i.pc("ngIf","data"===e.type)}}let Na=(()=>{class e{constructor(e){this.modalService=e,this.selected=new i.o,this.cleared=new i.o,this.icons=_n.a,this.devices=[],this.capacity=0,this.appliedFilters=[],this.tooltips={noAvailDevices:"No available devices",addPrimaryFirst:"Please add primary devices first",addByFilters:"Add devices by using filters"}}ngOnInit(){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(xa,{hostname:this.hostname,deviceType:this.name,devices:this.availDevices,filterColumns:e},{size:"xl"}).componentInstance.submitAction.subscribe(e=>{this.devices=e.data,this.capacity=jt.a.sumBy(this.devices,"sys_api.size"),this.appliedFilters=e.filters;const t=jt.a.assign({type:this.type},e);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(){const e={type:this.type,clearedDevices:[...this.devices]};this.devices=[],this.cleared.emit(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(vn.a))},e.\u0275cmp=i.Gb({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:[i.wb],decls:12,vars:6,consts:function(){return[[1,"form-group","row"],["for","createDeleteButton",1,"cd-col-form-label"],"" + "\ufffd0\ufffd" + " devices",[4,"ngIf"],[1,"cd-col-form-input"],[4,"ngIf","ngIfElse"],["blockClearDevices",""],"The primary storage devices. These devices contain all OSD data.","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.","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).",["type","button","data-toggle","tooltip",1,"btn","btn-light",3,"title","disabled","click"],[3,"ngClass"],"Add",[1,"pb-2","my-2","border-bottom"],[4,"ngFor","ngForOf"],["href","",1,"tc_clearSelections",3,"click"],"Clear",[3,"devices","hiddenColumns","filterColumns"],["class","float-right",4,"ngIf"],[1,"badge","badge-dark","mr-2"],[1,"float-right"],"Raw capacity: " + "\ufffd0\ufffd" + ""]},template:function(e,t){if(1&e&&(i.Sb(0,"div",0),i.Sb(1,"label",1),i.Qb(2),i.Wb(3,2),i.Pb(),i.Sb(4,"cd-helper"),i.Mc(5,Da,2,0,"span",3),i.Mc(6,Ta,2,0,"span",3),i.Mc(7,Ca,2,0,"span",3),i.Rb(),i.Rb(),i.Sb(8,"div",4),i.Mc(9,La,5,5,"ng-container",5),i.Mc(10,Pa,9,10,"ng-template",null,6,i.Nc),i.Rb(),i.Rb()),2&e){const e=i.Ac(11);i.yb(3),i.ac(t.name),i.Xb(3),i.yb(2),i.pc("ngIf","data"===t.type),i.yb(1),i.pc("ngIf","wal"===t.type),i.yb(1),i.pc("ngIf","db"===t.type),i.yb(2),i.pc("ngIf",0===t.devices.length)("ngIfElse",e)}},directives:[Xn.a,Mo.a,wt.r,On.a,wt.p,wt.q,Er],pipes:[Zt.a],styles:[".tc_clearSelections[_ngcontent-%COMP%]{text-decoration:none}"]}),e})();var ja=n("aXbf");class Fa{constructor(){this.reset(),this.formatterService=new ja.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-"+jt.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 Ya=["dataDeviceSelectionGroups"],za=["walDeviceSelectionGroups"],$a=["dbDeviceSelectionGroups"],Ha=["previewButtonPanel"];function Wa(e,t){1&e&&i.Nb(0,"cd-orchestrator-doc-panel")}function Va(e,t){1&e&&(i.Sb(0,"span",33),i.Wb(1,34),i.Rb())}function Ba(e,t){if(1&e&&(i.Sb(0,"div",26),i.Sb(1,"label",27),i.Qb(2),i.Wb(3,28),i.Pb(),i.Sb(4,"cd-helper"),i.Sb(5,"span"),i.Wb(6,29),i.Rb(),i.Nb(7,"br"),i.Sb(8,"span"),i.Wb(9,30),i.Rb(),i.Rb(),i.Rb(),i.Sb(10,"div",21),i.Nb(11,"input",31),i.Mc(12,Va,2,0,"span",32),i.Rb(),i.Rb()),2&e){i.ic();const e=i.Ac(2),t=i.ic();i.yb(12),i.pc("ngIf",t.form.showError("walSlots",e,"min"))}}function Ua(e,t){1&e&&(i.Sb(0,"span",33),i.Wb(1,40),i.Rb())}function Ga(e,t){if(1&e&&(i.Sb(0,"div",26),i.Sb(1,"label",35),i.Qb(2),i.Wb(3,36),i.Pb(),i.Sb(4,"cd-helper"),i.Sb(5,"span"),i.Wb(6,37),i.Rb(),i.Nb(7,"br"),i.Sb(8,"span"),i.Wb(9,38),i.Rb(),i.Rb(),i.Rb(),i.Sb(10,"div",21),i.Nb(11,"input",39),i.Mc(12,Ua,2,0,"span",32),i.Rb(),i.Rb()),2&e){i.ic();const e=i.Ac(2),t=i.ic();i.yb(12),i.pc("ngIf",t.form.showError("dbSlots",e,"min"))}}function qa(e,t){if(1&e&&(i.Sb(0,"div",41),i.Nb(1,"input",42),i.Sb(2,"label",43),i.Oc(3),i.Rb(),i.Rb()),2&e){const e=t.$implicit;i.yb(1),i.qc("id",e.key),i.qc("name",e.key),i.qc("formControlName",e.key),i.yb(1),i.qc("for",e.key),i.yb(1),i.Pc(e.desc)}}function Ja(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",2),i.Sb(1,"form",3,4),i.Sb(3,"div",5),i.Sb(4,"div",6),i.Wb(5,7),i.jc(6,"titlecase"),i.jc(7,"upperFirst"),i.Rb(),i.Sb(8,"div",8),i.Sb(9,"fieldset"),i.Sb(10,"cd-osd-devices-selection-groups",9,10),i.gc("selected",(function(t){return i.Dc(e),i.ic().onDevicesSelected(t)}))("cleared",(function(t){return i.Dc(e),i.ic().onDevicesCleared(t)})),i.Rb(),i.Rb(),i.Sb(12,"fieldset"),i.Sb(13,"legend"),i.Wb(14,11),i.Rb(),i.Sb(15,"cd-osd-devices-selection-groups",12,13),i.gc("selected",(function(t){return i.Dc(e),i.ic().onDevicesSelected(t)}))("cleared",(function(t){return i.Dc(e),i.ic().onDevicesCleared(t)})),i.Rb(),i.Mc(17,Ba,13,1,"div",14),i.Sb(18,"cd-osd-devices-selection-groups",15,16),i.gc("selected",(function(t){return i.Dc(e),i.ic().onDevicesSelected(t)}))("cleared",(function(t){return i.Dc(e),i.ic().onDevicesCleared(t)})),i.Rb(),i.Mc(20,Ga,13,1,"div",14),i.Rb(),i.Sb(21,"fieldset"),i.Sb(22,"legend"),i.Wb(23,17),i.Rb(),i.Sb(24,"div",18),i.Sb(25,"label",19),i.Wb(26,20),i.Rb(),i.Sb(27,"div",21),i.Mc(28,qa,4,5,"div",22),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(29,"div",23),i.Sb(30,"cd-form-button-panel",24,25),i.gc("submitActionEvent",(function(){return i.Dc(e),i.ic().submit()})),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.Ac(11),t=i.Ac(16),n=i.Ac(19),r=i.ic();i.yb(1),i.pc("formGroup",r.form),i.yb(6),i.ac(i.kc(6,15,r.action))(i.kc(7,17,r.resource)),i.Xb(5),i.yb(3),i.pc("availDevices",r.availDevices)("canSelect",0!==r.availDevices.length),i.yb(5),i.pc("availDevices",r.availDevices)("canSelect",0!==e.devices.length),i.yb(2),i.pc("ngIf",0!==t.devices.length),i.yb(1),i.pc("availDevices",r.availDevices)("canSelect",0!==e.devices.length),i.yb(2),i.pc("ngIf",0!==n.devices.length),i.yb(8),i.pc("ngForOf",r.featureList),i.yb(2),i.pc("form",r.form)("disabled",0===e.devices.length)("submitText",r.actionLabels.PREVIEW)}}let Qa=(()=>{class e extends qn.a{constructor(e,t,n,i,r,s){super(),this.actionLabels=e,this.authStorageService=t,this.orchService=n,this.hostService=i,this.router=r,this.modalService=s,this.icons=_n.a,this.columns=[],this.allDevices=[],this.availDevices=[],this.dataDeviceFilters=[],this.dbDeviceFilters=[],this.walDeviceFilters=[],this.hostname="",this.driveGroup=new Fa,this.featureList=[],this.hasOrchestrator=!0,this.resource="OSDs",this.action=this.actionLabels.CREATE,this.features={encrypted:{key:"encrypted",desc:"Encryption"}},this.featureList=jt.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)),jt.a.each(this.features,e=>{this.form.get("features").get(e.key).valueChanges.subscribe(t=>this.featureFormUpdate(e.key,t))})}createForm(){this.form=new Jn.a({walSlots:new kn.h(0,{validators:[kn.A.min(0)]}),dbSlots:new kn.h(0,{validators:[kn.A.min(0)]}),features:new Jn.a(this.featureList.reduce((e,t)=>(e[t.key]=new kn.h({value:!1,disabled:!0}),e),{}))})}getDataDevices(){this.hostService.inventoryDeviceList().subscribe(e=>{this.allDevices=jt.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=jt.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)}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}-${jt.a.now()}`),this.modalService.show(ya,{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)(i.Mb(gn.b),i.Mb(Jt.a),i.Mb(cr),i.Mb(Xi),i.Mb(Pt.e),i.Mb(vn.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-osd-form"]],viewQuery:function(e,t){var n;1&e&&(i.Tc(Ya,!0),i.Tc(za,!0),i.Tc($a,!0),i.Tc(Ha,!0)),2&e&&(i.zc(n=i.hc())&&(t.dataDeviceSelectionGroups=n.first),i.zc(n=i.hc())&&(t.walDeviceSelectionGroups=n.first),i.zc(n=i.hc())&&(t.dbDeviceSelectionGroups=n.first),i.zc(n=i.hc())&&(t.previewButtonPanel=n.first))},features:[i.vb],decls:2,vars:2,consts:function(){return[[4,"ngIf"],["class","cd-col-form",4,"cdFormLoading"],[1,"cd-col-form"],["name","form","novalidate","",3,"formGroup"],["formDir","ngForm"],[1,"card"],[1,"card-header"],"" + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + "",[1,"card-body"],["name","Primary","type","data",3,"availDevices","canSelect","selected","cleared"],["dataDeviceSelectionGroups",""],"Shared devices",["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",""],"Configuration",["formGroupName","features",1,"form-group","row"],["for","features",1,"cd-col-form-label"],"Features",[1,"cd-col-form-input"],["class","custom-control custom-checkbox",4,"ngFor","ngForOf"],[1,"card-footer"],["wrappingClass","text-right",3,"form","disabled","submitText","submitActionEvent"],["previewButtonPanel",""],[1,"form-group","row"],["for","walSlots",1,"cd-col-form-label"],"WAL slots","How many OSDs per WAL device.","Specify 0 to let Orchestrator backend decide it.",["id","walSlots","name","walSlots","type","number","min","0","formControlName","walSlots",1,"form-control"],["class","invalid-feedback",4,"ngIf"],[1,"invalid-feedback"],"Value should be greater than or equal to 0",["for","dbSlots",1,"cd-col-form-label"],"DB slots","How many OSDs per DB device.","Specify 0 to let Orchestrator backend decide it.",["id","dbSlots","name","dbSlots","type","number","min","0","formControlName","dbSlots",1,"form-control"],"Value should be greater than or equal to 0",[1,"custom-control","custom-checkbox"],["type","checkbox",1,"custom-control-input",3,"id","name","formControlName"],[1,"custom-control-label",3,"for"]]},template:function(e,t){1&e&&(i.Mc(0,Wa,1,0,"cd-orchestrator-doc-panel",0),i.Mc(1,Ja,32,19,"div",1)),2&e&&(i.pc("ngIf",!t.hasOrchestrator),i.yb(1),i.pc("cdFormLoading",t.loading))},directives:[wt.r,Kn.a,Rr,kn.C,kn.r,Zn.a,kn.k,Na,Xn.a,kn.l,wt.q,ti.a,Mo.a,On.a,kn.v,kn.d,ei.a,kn.q,kn.i,kn.b],pipes:[wt.A,ir.a],styles:[""]}),e})();function Ka(e,t){if(1&e&&(i.Sb(0,"span",18),i.Wb(1,19),i.Rb()),2&e){const e=i.ic(2);i.pc("ngbTooltip",e.clusterWideTooltip)}}function Za(e,t){1&e&&i.Nb(0,"hr",20)}function Xa(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",12),i.Sb(1,"input",13),i.gc("change",(function(){i.Dc(e);const n=t.$implicit;return i.ic().changeValue(n)})),i.Rb(),i.Sb(2,"label",14),i.Sb(3,"strong"),i.Oc(4),i.Rb(),i.Mc(5,Ka,2,1,"span",15),i.Nb(6,"br"),i.Sb(7,"span",16),i.Oc(8),i.Rb(),i.Rb(),i.Mc(9,Za,1,0,"hr",17),i.Rb()}if(2&e){const e=t.$implicit,n=t.last;i.yb(1),i.pc("checked",e.value)("indeterminate",e.indeterminate)("name",e.code)("id",e.code),i.yb(1),i.pc("for",e.code),i.yb(2),i.Pc(e.name),i.yb(1),i.pc("ngIf",e.clusterWide),i.yb(3),i.Pc(e.description),i.yb(1),i.pc("ngIf",!n)}}let ec=(()=>{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 kn.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=jt.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=jt.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(yn.a.success,"Updated OSD Flags"),this.activeModal.close()},()=>{this.activeModal.close()})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Qt.a),i.Mb(gn.b),i.Mb(Jt.a),i.Mb(fr),i.Mb(wn.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-osd-flags-indiv-modal"]],decls:12,vars:6,consts:function(){return[[3,"modalRef"],[1,"modal-title"],"Individual OSD Flags",[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"],"Restore previous selection",[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"],"Cluster-wide",[1,"m-1"]]},template:function(e,t){1&e&&(i.Sb(0,"cd-modal",0),i.Qb(1,1),i.Wb(2,2),i.Pb(),i.Qb(3,3),i.Sb(4,"form",4,5),i.Sb(6,"div",6),i.Mc(7,Xa,10,9,"div",7),i.Rb(),i.Sb(8,"div",8),i.Sb(9,"button",9),i.gc("click",(function(){return t.resetSelection()})),i.Wb(10,10),i.Rb(),i.Sb(11,"cd-form-button-panel",11),i.gc("submitActionEvent",(function(){return t.submitAction()})),i.Rb(),i.Rb(),i.Rb(),i.Pb(),i.Rb()),2&e&&(i.pc("modalRef",t.activeModal),i.yb(4),i.pc("formGroup",t.osdFlagsForm),i.yb(3),i.pc("ngForOf",t.flags),i.yb(4),i.pc("form",t.osdFlagsForm)("showSubmit",t.permissions.osd.update)("submitText",t.actionLabels.UPDATE))},directives:[_a.a,kn.C,kn.r,Zn.a,kn.k,wt.q,On.a,ti.a,ei.a,wt.r,Qt.D],styles:[""]}),e})();var tc=n("f/UV");function nc(e,t){1&e&&i.Nb(0,"hr",15)}function ic(e,t){if(1&e&&(i.Sb(0,"div",10),i.Sb(1,"input",11),i.gc("change",(function(){const e=t.$implicit;return e.value=!e.value})),i.Rb(),i.Sb(2,"label",12),i.Sb(3,"strong"),i.Oc(4),i.Rb(),i.Nb(5,"br"),i.Sb(6,"span",13),i.Oc(7),i.Rb(),i.Rb(),i.Mc(8,nc,1,0,"hr",14),i.Rb()),2&e){const e=t.$implicit,n=t.last;i.yb(1),i.pc("checked",e.value)("name",e.code)("id",e.code)("disabled",e.disabled),i.yb(1),i.pc("for",e.code),i.yb(2),i.Pc(e.name),i.yb(3),i.Pc(e.description),i.yb(1),i.pc("ngIf",!n)}}let rc=(()=>{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 kn.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=jt.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(yn.a.success,"Updated OSD Flags"),this.activeModal.close()},()=>{this.activeModal.close()})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Qt.a),i.Mb(gn.b),i.Mb(Jt.a),i.Mb(fr),i.Mb(wn.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-osd-flags-modal"]],decls:10,vars:6,consts:function(){return[[3,"modalRef"],[1,"modal-title"],"Cluster-wide OSD Flags",[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&&(i.Sb(0,"cd-modal",0),i.Qb(1,1),i.Wb(2,2),i.Pb(),i.Qb(3,3),i.Sb(4,"form",4,5),i.Sb(6,"div",6),i.Mc(7,ic,9,8,"div",7),i.Rb(),i.Sb(8,"div",8),i.Sb(9,"cd-form-button-panel",9),i.gc("submitActionEvent",(function(){return t.submitAction()})),i.Rb(),i.Rb(),i.Rb(),i.Pb(),i.Rb()),2&e&&(i.pc("modalRef",t.activeModal),i.yb(4),i.pc("formGroup",t.osdFlagsForm),i.yb(3),i.pc("ngForOf",t.flags),i.yb(2),i.pc("form",t.osdFlagsForm)("showSubmit",t.permissions.osd.update)("submitText",t.actionLabels.UPDATE))},directives:[_a.a,kn.C,kn.r,tc.a,Zn.a,kn.k,wt.q,ti.a,On.a,ei.a,wt.r],styles:[""]}),e})();function sc(e,t){if(1&e&&(i.Sb(0,"cd-helper"),i.Oc(1),i.Rb()),2&e){const e=i.ic(2).$implicit;i.yb(1),i.Qc(" ",e.long_desc,"")}}function oc(e,t){if(1&e&&(i.Sb(0,"div",4),i.Sb(1,"label",5),i.Sb(2,"b"),i.Oc(3),i.Rb(),i.Nb(4,"br"),i.Sb(5,"span",6),i.Oc(6),i.Mc(7,sc,2,1,"cd-helper",7),i.Rb(),i.Rb(),i.Sb(8,"div",8),i.Sb(9,"div",9),i.Nb(10,"input",10),i.Nb(11,"label",11),i.Rb(),i.Rb(),i.Rb()),2&e){const e=i.ic().$implicit;i.yb(1),i.pc("for",e.name),i.yb(2),i.Pc(e.text),i.yb(3),i.Qc(" ",e.desc," "),i.yb(1),i.pc("ngIf",e.long_desc),i.yb(3),i.pc("id",e.name)("formControlName",e.name),i.yb(1),i.pc("for",e.name)}}function ac(e,t){if(1&e&&(i.Sb(0,"cd-helper"),i.Oc(1),i.Rb()),2&e){const e=i.ic(2).$implicit;i.yb(1),i.Qc(" ",e.long_desc,"")}}const cc=function(e){return[e]};function lc(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",16),i.Sb(1,"button",17),i.Yb(2,18),i.gc("click",(function(){i.Dc(e);const t=i.ic(2).$implicit;return i.ic().resetValue(t.name)})),i.Nb(3,"i",19),i.Rb(),i.Rb()}if(2&e){const e=i.ic(3);i.yb(3),i.pc("ngClass",i.uc(1,cc,e.icons.erase))}}function uc(e,t){if(1&e&&(i.Sb(0,"span",20),i.Oc(1),i.Rb()),2&e){const e=i.ic(2).$implicit;i.yb(1),i.Qc(" ",e.additionalTypeInfo.patternHelpText,"")}}function dc(e,t){if(1&e&&(i.Sb(0,"span",20),i.Oc(1),i.Rb()),2&e){const e=i.ic(2).$implicit;i.yb(1),i.Qc(" ",e.additionalTypeInfo.patternHelpText,"")}}function hc(e,t){if(1&e&&(i.Sb(0,"span",20),i.Wb(1,21),i.Rb()),2&e){const e=i.ic(2).$implicit;i.yb(1),i.ac(e.maxValue),i.Xb(1)}}function fc(e,t){if(1&e&&(i.Sb(0,"span",20),i.Wb(1,22),i.Rb()),2&e){const e=i.ic(2).$implicit;i.yb(1),i.ac(e.minValue),i.Xb(1)}}function pc(e,t){if(1&e&&(i.Sb(0,"div",4),i.Sb(1,"label",5),i.Oc(2),i.Nb(3,"br"),i.Sb(4,"span",6),i.Oc(5),i.Mc(6,ac,2,1,"cd-helper",7),i.Rb(),i.Rb(),i.Sb(7,"div",8),i.Sb(8,"div",12),i.Nb(9,"input",13),i.Mc(10,lc,4,3,"div",14),i.Rb(),i.Mc(11,uc,2,1,"span",15),i.Mc(12,dc,2,1,"span",15),i.Mc(13,hc,2,1,"span",15),i.Mc(14,fc,2,1,"span",15),i.Rb(),i.Rb()),2&e){const e=i.ic().$implicit,t=i.ic();i.yb(1),i.pc("for",e.name),i.yb(1),i.Qc("",e.text," "),i.yb(3),i.Qc(" ",e.desc," "),i.yb(1),i.pc("ngIf",e.long_desc),i.yb(3),i.pc("type",e.additionalTypeInfo.inputType)("id",e.name)("placeholder",e.additionalTypeInfo.humanReadable)("formControlName",e.name)("step",t.getStep(e.type,t.optionsForm.getValue(e.name))),i.yb(1),i.pc("ngIf",t.optionsFormShowReset),i.yb(1),i.pc("ngIf",t.optionsForm.showError(e.name,t.optionsFormDir,"pattern")),i.yb(1),i.pc("ngIf",t.optionsForm.showError(e.name,t.optionsFormDir,"invalidUuid")),i.yb(1),i.pc("ngIf",t.optionsForm.showError(e.name,t.optionsFormDir,"max")),i.yb(1),i.pc("ngIf",t.optionsForm.showError(e.name,t.optionsFormDir,"min"))}}function mc(e,t){1&e&&i.Nb(0,"hr",23)}function bc(e,t){if(1&e&&(i.Sb(0,"div"),i.Mc(1,oc,12,7,"div",2),i.Mc(2,pc,15,14,"div",2),i.Mc(3,mc,1,0,"hr",3),i.Rb()),2&e){const e=t.$implicit,n=t.last;i.yb(1),i.pc("ngIf","bool"===e.type),i.yb(1),i.pc("ngIf","bool"!==e.type),i.yb(1),i.pc("ngIf",!n)}}let gc=(()=>{class e{constructor(e){this.configService=e,this.optionNames=[],this.optionsForm=new Jn.a({}),this.optionsFormDir=new kn.s([],[]),this.optionsFormGroupName="",this.optionsFormShowReset=!0,this.icons=_n.a,this.options=[],this.optionsFormGroup=new Jn.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 kn.h(null))})}getStep(e,t){return Gn.getTypeStep(e,t)}loadStoredData(){this.configService.filter(this.optionNames).subscribe(t=>{this.options=t.map(t=>{const n=this.optionsForm.get(t.name),i=Gn.getTypeValidators(t);return t.additionalTypeInfo=Gn.getType(t.type),t.text=e.optionNameToText(t.name),t.value=jt.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)(i.Mb(Un.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-config-option"]],inputs:{optionNames:"optionNames",optionsForm:"optionsForm",optionsFormDir:"optionsFormDir",optionsFormGroupName:"optionsFormGroupName",optionsFormShowReset:"optionsFormShowReset"},decls:2,vars:2,consts:function(){return[[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",1,"btn","btn-light",3,"click",6,"title"],["title","Remove the custom configuration value. The default configuration will be inherited and used instead."],["aria-hidden","true",3,"ngClass"],[1,"invalid-feedback"],"The entered value is too high! It must not be greater than " + "\ufffd0\ufffd" + ".","The entered value is too low! It must not be lower than " + "\ufffd0\ufffd" + ".",[1,"my-2"]]},template:function(e,t){1&e&&(i.Sb(0,"div",0),i.Mc(1,bc,4,3,"div",1),i.Rb()),2&e&&(i.pc("formGroup",t.optionsFormGroup),i.yb(1),i.pc("ngForOf",t.options))},directives:[kn.r,kn.k,Zn.a,wt.q,wt.r,Xn.a,On.a,kn.b,ei.a,kn.q,kn.i,Mo.a,kn.d,wt.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})(),_c=(()=>{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 yc=["basicOptionsValues"],vc=["advancedOptionsValues"];function wc(e,t){if(1&e){const e=i.Tb();i.Sb(0,"a",15),i.gc("click",(function(){return i.Dc(e),i.ic().advancedEnabled=!0})),i.Wb(1,16),i.Rb()}}function Sc(e,t){if(1&e&&(i.Sb(0,"div"),i.Sb(1,"h3",17),i.Wb(2,18),i.Rb(),i.Nb(3,"cd-config-option",7,19),i.Rb()),2&e){const e=i.ic(),t=i.Ac(7);i.yb(3),i.pc("optionNames",e.advancedOptions)("optionsForm",e.osdPgScrubForm)("optionsFormDir",t)("optionsFormGroupName","advancedFormGroup")}}let Mc=(()=>{class e{constructor(e,t,n,i){this.activeModal=e,this.authStorageService=t,this.notificationService=n,this.actionLabels=i,this.basicOptions=_c.basicOptions,this.advancedOptions=_c.advancedOptions,this.advancedEnabled=!1,this.osdPgScrubForm=new Jn.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(vo.a)(e).subscribe(()=>{this.notificationService.show(yn.a.success,"Updated PG scrub options"),this.activeModal.close()},()=>{this.activeModal.close()})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Qt.a),i.Mb(Jt.a),i.Mb(wn.a),i.Mb(gn.b))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-osd-pg-scrub-modal"]],viewQuery:function(e,t){var n;1&e&&(i.Jc(yc,!0),i.Tc(vc,!0)),2&e&&(i.zc(n=i.hc())&&(t.basicOptionsValues=n.first),i.zc(n=i.hc())&&(t.advancedOptionsValues=n.first))},decls:19,vars:21,consts:function(){return[[3,"modalRef"],[1,"modal-title"],"" + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + "",[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"],"Advanced...",[1,"page-header"],"Advanced configuration options",["advancedOptionsValues",""]]},template:function(e,t){if(1&e&&(i.Sb(0,"cd-modal",0),i.Qb(1,1),i.Wb(2,2),i.jc(3,"titlecase"),i.jc(4,"upperFirst"),i.Pb(),i.Qb(5,3),i.Sb(6,"form",4,5),i.Sb(8,"div",6),i.Nb(9,"cd-config-option",7,8),i.Sb(11,"div",9),i.Sb(12,"div",10),i.Mc(13,wc,2,0,"a",11),i.Rb(),i.Rb(),i.Mc(14,Sc,5,4,"div",12),i.Rb(),i.Sb(15,"div",13),i.Sb(16,"cd-form-button-panel",14),i.gc("submitActionEvent",(function(){return t.submitAction()})),i.jc(17,"titlecase"),i.jc(18,"upperFirst"),i.Rb(),i.Rb(),i.Rb(),i.Pb(),i.Rb()),2&e){const e=i.Ac(7);i.pc("modalRef",t.activeModal),i.yb(4),i.ac(i.kc(3,13,t.action))(i.kc(4,15,t.resource)),i.Xb(2),i.yb(2),i.pc("formGroup",t.osdPgScrubForm),i.yb(3),i.pc("optionNames",t.basicOptions)("optionsForm",t.osdPgScrubForm)("optionsFormDir",e)("optionsFormGroupName","basicFormGroup"),i.yb(4),i.pc("ngIf",!t.advancedEnabled),i.yb(1),i.pc("ngIf",t.advancedEnabled),i.yb(2),i.pc("form",t.osdPgScrubForm)("showSubmit",t.permissions.configOpt.update)("submitText",i.kc(17,17,t.action)+" "+i.kc(18,19,t.resource))}},directives:[_a.a,kn.C,kn.r,tc.a,Zn.a,kn.k,gc,wt.r,ti.a],pipes:[wt.A,ir.a],styles:[""]}),e})();function kc(e,t){if(1&e&&(i.Sb(0,"option",22),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e.name),i.yb(1),i.Qc(" ",e.text," ")}}function xc(e,t){1&e&&(i.Sb(0,"span",23),i.Wb(1,24),i.Rb())}function Dc(e,t){if(1&e&&(i.Sb(0,"cd-helper"),i.Oc(1),i.Rb()),2&e){const e=i.ic().$implicit;i.yb(1),i.Pc(e.value.desc)}}function Tc(e,t){1&e&&(i.Sb(0,"span",23),i.Wb(1,29),i.Rb())}function Cc(e,t){if(1&e&&(i.Sb(0,"span",23),i.Wb(1,30),i.Rb()),2&e){const e=i.ic().$implicit;i.yb(1),i.ac(e.value.patternHelpText),i.Xb(1)}}function Oc(e,t){if(1&e&&(i.Sb(0,"span",23),i.Wb(1,31),i.Rb()),2&e){const e=i.ic().$implicit;i.yb(1),i.ac(e.value.maxValue),i.Xb(1)}}function Lc(e,t){if(1&e&&(i.Sb(0,"span",23),i.Wb(1,32),i.Rb()),2&e){const e=i.ic().$implicit;i.yb(1),i.ac(e.value.minValue),i.Xb(1)}}const Rc=function(e){return{required:e}};function Ec(e,t){if(1&e&&(i.Sb(0,"div",7),i.Sb(1,"label",25),i.Sb(2,"span",26),i.Oc(3),i.Rb(),i.Mc(4,Dc,2,1,"cd-helper",27),i.Rb(),i.Sb(5,"div",10),i.Nb(6,"input",28),i.Mc(7,Tc,2,0,"span",13),i.Mc(8,Cc,2,1,"span",13),i.Mc(9,Oc,2,1,"span",13),i.Mc(10,Lc,2,1,"span",13),i.Rb(),i.Rb()),2&e){const e=t.$implicit,n=i.ic(),r=i.Ac(5);i.yb(1),i.pc("for",e.key),i.yb(1),i.pc("ngClass",i.uc(11,Rc,n.osdRecvSpeedForm.getValue("customizePriority"))),i.yb(1),i.Qc(" ",e.value.text," "),i.yb(1),i.pc("ngIf",e.value.desc),i.yb(2),i.pc("id",e.key)("formControlName",e.key)("readonly",!n.osdRecvSpeedForm.getValue("customizePriority")),i.yb(1),i.pc("ngIf",n.osdRecvSpeedForm.getValue("customizePriority")&&n.osdRecvSpeedForm.showError(e.key,r,"required")),i.yb(1),i.pc("ngIf",n.osdRecvSpeedForm.getValue("customizePriority")&&n.osdRecvSpeedForm.showError(e.key,r,"pattern")),i.yb(1),i.pc("ngIf",n.osdRecvSpeedForm.getValue("customizePriority")&&n.osdRecvSpeedForm.showError(e.key,r,"max")),i.yb(1),i.pc("ngIf",n.osdRecvSpeedForm.getValue("customizePriority")&&n.osdRecvSpeedForm.showError(e.key,r,"min"))}}let Ac=(()=>{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 Jn.a({priority:new kn.h(null,{validators:[kn.A.required]}),customizePriority:new kn.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 kn.h(null,{validators:[kn.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=jt.a.find(this.priorities,t=>jt.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=jt.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=Gn.getTypeValidators(e);t?(t.validators.push(kn.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(kn.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=jt.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(yn.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)(i.Mb(Qt.a),i.Mb(gn.b),i.Mb(Jt.a),i.Mb(Un.a),i.Mb(wn.a),i.Mb(fr))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-osd-recv-speed-modal"]],decls:24,vars:10,consts:function(){return[[3,"modalRef"],[1,"modal-title"],"OSD Recovery Priority",[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"],"Priority",[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"],"Customize priority values",["class","form-group row",4,"ngFor","ngForOf"],[1,"modal-footer"],[3,"form","submitText","showSubmit","submitActionEvent"],[3,"value"],[1,"invalid-feedback"],"This field is required.",[1,"cd-col-form-label",3,"for"],[3,"ngClass"],[4,"ngIf"],["type","number",1,"form-control",3,"id","formControlName","readonly"],"This field is required!","" + "\ufffd0\ufffd" + "","The entered value is too high! It must not be greater than " + "\ufffd0\ufffd" + ".","The entered value is too low! It must not be lower than " + "\ufffd0\ufffd" + "."]},template:function(e,t){if(1&e&&(i.Sb(0,"cd-modal",0),i.Qb(1,1),i.Wb(2,2),i.Pb(),i.Qb(3,3),i.Sb(4,"form",4,5),i.Sb(6,"div",6),i.Sb(7,"div",7),i.Sb(8,"label",8),i.Wb(9,9),i.Rb(),i.Sb(10,"div",10),i.Sb(11,"select",11),i.gc("change",(function(e){return t.onPriorityChange(e.target.value)})),i.Mc(12,kc,2,2,"option",12),i.Rb(),i.Mc(13,xc,2,0,"span",13),i.Rb(),i.Rb(),i.Sb(14,"div",7),i.Sb(15,"div",14),i.Sb(16,"div",15),i.Sb(17,"input",16),i.gc("change",(function(){return t.onCustomizePriorityChange()})),i.Rb(),i.Sb(18,"label",17),i.Wb(19,18),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Mc(20,Ec,11,13,"div",19),i.jc(21,"keyvalue"),i.Rb(),i.Sb(22,"div",20),i.Sb(23,"cd-form-button-panel",21),i.gc("submitActionEvent",(function(){return t.submitAction()})),i.Rb(),i.Rb(),i.Rb(),i.Pb(),i.Rb()),2&e){const e=i.Ac(5);i.pc("modalRef",t.activeModal),i.yb(4),i.pc("formGroup",t.osdRecvSpeedForm),i.yb(8),i.pc("ngForOf",t.priorities),i.yb(1),i.pc("ngIf",t.osdRecvSpeedForm.showError("priority",e,"required")),i.yb(7),i.pc("ngForOf",i.kc(21,8,t.priorityAttrs)),i.yb(3),i.pc("form",t.osdRecvSpeedForm)("submitText",t.actionLabels.UPDATE)("showSubmit",t.permissions.configOpt.update)}},directives:[_a.a,kn.C,kn.r,tc.a,Zn.a,kn.k,Xn.a,On.a,kn.z,ei.a,kn.q,kn.i,wt.q,wt.r,kn.b,ti.a,kn.u,kn.B,wt.p,kn.v,kn.d,Mo.a],pipes:[wt.k],styles:[""]}),e})();function Ic(e,t){1&e&&(i.Sb(0,"span"),i.Wb(1,15),i.Rb())}function Pc(e,t){1&e&&(i.Sb(0,"span"),i.Wb(1,16),i.Rb())}function Nc(e,t){if(1&e&&(i.Sb(0,"span",13),i.Mc(1,Ic,2,0,"span",14),i.Mc(2,Pc,2,0,"span",14),i.Rb()),2&e){const e=i.ic();i.yb(1),i.pc("ngIf",null==e.weight.errors?null:e.weight.errors.required),i.yb(1),i.pc("ngIf",(null==e.weight.errors?null:e.weight.errors.max)||(null==e.weight.errors?null:e.weight.errors.min))}}let jc=(()=>{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,[kn.A.required,kn.A.max(1),kn.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)(i.Mb(gn.b),i.Mb(Qt.a),i.Mb(fr),i.Mb(So.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-osd-reweight-modal"]],decls:14,vars:7,consts:function(){return[[3,"modalRef"],[1,"modal-title"],"Reweight OSD: " + "\ufffd0\ufffd" + "",[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"],"This field is required.","The value needs to be between 0 and 1."]},template:function(e,t){1&e&&(i.Sb(0,"cd-modal",0),i.Qb(1,1),i.Wb(2,2),i.Pb(),i.Qb(3,3),i.Sb(4,"form",4),i.Sb(5,"div",5),i.Sb(6,"div",6),i.Sb(7,"label",7),i.Oc(8,"Weight"),i.Rb(),i.Sb(9,"div",8),i.Nb(10,"input",9),i.Mc(11,Nc,3,2,"span",10),i.Rb(),i.Rb(),i.Rb(),i.Sb(12,"div",11),i.Sb(13,"cd-form-button-panel",12),i.gc("submitActionEvent",(function(){return t.reweight()})),i.Rb(),i.Rb(),i.Rb(),i.Pb(),i.Rb()),2&e&&(i.pc("modalRef",t.activeModal),i.yb(2),i.ac(t.osdId),i.Xb(2),i.yb(2),i.pc("formGroup",t.reweightForm),i.yb(6),i.pc("value",t.currentWeight),i.yb(1),i.pc("ngIf",t.weight.errors),i.yb(2),i.pc("form",t.reweightForm)("submitText",t.actionLabels.REWEIGHT))},directives:[_a.a,kn.C,kn.r,Zn.a,kn.k,On.a,kn.v,kn.d,ei.a,kn.q,kn.i,wt.r,ti.a],styles:[""]}),e})();var Fc=n("FFMq");let Yc=(()=>{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 kn.j({})}scrub(){Object(vo.a)(this.selected.map(e=>this.osdService.scrub(e,this.deep))).subscribe(()=>{this.notificationService.show(yn.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)(i.Mb(Qt.a),i.Mb(gn.b),i.Mb(fr),i.Mb(wn.a),i.Mb(Fc.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-osd-scrub-modal"]],decls:13,vars:9,consts:function(){var e,t,n;return e="{VAR_SELECT, select, true {Deep } other {}}",e=i.bc(e,{VAR_SELECT:"\ufffd0\ufffd"}),t="OSDs " + e + "Scrub",n="{VAR_SELECT, select, true {deep } other {}}",n=i.bc(n,{VAR_SELECT:"\ufffd0\ufffd"}),[[3,"modalRef"],[1,"modal-title"],t,[1,"modal-content"],["name","scrubForm","novalidate","",3,"formGroup"],["formDir","ngForm"],[1,"modal-body"],"You are about to apply a " + n + "scrub to the OSD(s): " + "\ufffd#9\ufffd" + "" + "\ufffd1\ufffd" + "" + "\ufffd/#9\ufffd" + ".",[1,"modal-footer"],[3,"form","submitText","submitActionEvent"]]},template:function(e,t){1&e&&(i.Sb(0,"cd-modal",0),i.Sb(1,"span",1),i.Wb(2,2),i.Rb(),i.Qb(3,3),i.Sb(4,"form",4,5),i.Sb(6,"div",6),i.Sb(7,"p"),i.cc(8,7),i.Nb(9,"strong"),i.jc(10,"join"),i.Zb(),i.Rb(),i.Rb(),i.Sb(11,"div",8),i.Sb(12,"cd-form-button-panel",9),i.gc("submitActionEvent",(function(){return t.scrub()})),i.Rb(),i.Rb(),i.Rb(),i.Pb(),i.Rb()),2&e&&(i.pc("modalRef",t.activeModal),i.yb(2),i.ac(t.deep),i.Xb(2),i.yb(2),i.pc("formGroup",t.scrubForm),i.yb(6),i.ac(t.deep)(i.kc(10,7,t.selected)),i.Xb(8),i.yb(2),i.pc("form",t.scrubForm)("submitText",t.actionLabels.UPDATE))},directives:[_a.a,kn.C,kn.r,Zn.a,kn.k,ti.a],pipes:[Fc.a],styles:[""]}),e})();var zc=n("b5OY");function $c(e,t){if(1&e&&i.Nb(0,"cd-device-list",17),2&e){const e=i.ic(2);i.pc("osdId",null==e.osd?null:e.osd.id)}}function Hc(e,t){if(1&e&&i.Nb(0,"cd-table-key-value",18),2&e){const e=i.ic(2);i.pc("data",null==e.osd||null==e.osd.details?null:e.osd.details.osd_map)}}function Wc(e,t){if(1&e){const e=i.Tb();i.Sb(0,"cd-table-key-value",21),i.gc("fetchData",(function(){return i.Dc(e),i.ic(3).refresh()})),i.Rb()}if(2&e){const e=i.ic(3);i.pc("data",null==e.osd||null==e.osd.details?null:e.osd.details.osd_metadata)}}function Vc(e,t){1&e&&(i.Sb(0,"cd-alert-panel",22),i.Wb(1,23),i.Rb())}function Bc(e,t){if(1&e&&(i.Mc(0,Wc,1,1,"cd-table-key-value",19),i.Mc(1,Vc,2,0,"ng-template",null,20,i.Nc)),2&e){const e=i.Ac(2),t=i.ic(2);i.pc("ngIf",null==t.osd||null==t.osd.details?null:t.osd.details.osd_metadata)("ngIfElse",e)}}function Uc(e,t){if(1&e&&i.Nb(0,"cd-smart-list",17),2&e){const e=i.ic(2);i.pc("osdId",null==e.osd?null:e.osd.id)}}function Gc(e,t){if(1&e&&i.Nb(0,"cd-table-performance-counter",25),2&e){const e=i.ic(3);i.pc("serviceId",null==e.osd?null:e.osd.id)}}function qc(e,t){if(1&e&&i.Mc(0,Gc,1,1,"cd-table-performance-counter",24),2&e){const e=i.ic(2);i.pc("ngIf",null==e.osd?null:e.osd.details)}}function Jc(e,t){if(1&e&&i.Nb(0,"cd-grafana",28),2&e){const e=i.ic(3);i.pc("grafanaPath","osd-device-details?var-osd=osd."+e.osd.id)}}function Qc(e,t){1&e&&(i.Sb(0,"li",26),i.Sb(1,"a",4),i.Wb(2,27),i.Rb(),i.Mc(3,Jc,1,1,"ng-template",6),i.Rb())}function Kc(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"ul",1,2),i.Sb(3,"li",3),i.Sb(4,"a",4),i.Wb(5,5),i.Rb(),i.Mc(6,$c,1,1,"ng-template",6),i.Rb(),i.Sb(7,"li",7),i.Sb(8,"a",4),i.Wb(9,8),i.Rb(),i.Mc(10,Hc,1,1,"ng-template",6),i.Rb(),i.Sb(11,"li",9),i.Sb(12,"a",4),i.Wb(13,10),i.Rb(),i.Mc(14,Bc,3,2,"ng-template",6),i.Rb(),i.Sb(15,"li",11),i.Sb(16,"a",4),i.Wb(17,12),i.Rb(),i.Mc(18,Uc,1,1,"ng-template",6),i.Rb(),i.Sb(19,"li",13),i.Sb(20,"a",4),i.Wb(21,14),i.Rb(),i.Mc(22,qc,1,1,"ng-template",6),i.Rb(),i.Mc(23,Qc,4,0,"li",15),i.Rb(),i.Nb(24,"div",16),i.Pb()),2&e){const e=i.Ac(2),t=i.ic();i.yb(23),i.pc("ngIf",t.grafanaPermission.read),i.yb(1),i.pc("ngbNavOutlet",e)}}let Zc=(()=>{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),jt.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)(i.Mb(fr),i.Mb(Jt.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-osd-details"]],inputs:{selection:"selection"},features:[i.wb],decls:1,vars:1,consts:function(){return[[4,"ngIf"],["ngbNav","","id","tabset-osd-details","cdStatefulTab","osd-details",1,"nav-tabs"],["nav","ngbNav"],["ngbNavItem","devices"],["ngbNavLink",""],"Devices",["ngbNavContent",""],["ngbNavItem","attributes"],"Attributes (OSD map)",["ngbNavItem","metadata"],"Metadata",["ngbNavItem","device-health"],"Device health",["ngbNavItem","performance-counter"],"Performance counter",["ngbNavItem","performance-details",4,"ngIf"],[3,"ngbNavOutlet"],[3,"osdId"],[3,"data"],[3,"data","fetchData",4,"ngIf","ngIfElse"],["noMetaData",""],[3,"data","fetchData"],["type","warning"],"Metadata not available",["serviceType","osd",3,"serviceId",4,"ngIf"],["serviceType","osd",3,"serviceId"],["ngbNavItem","performance-details"],"Performance Details",["uid","CrAHE0iZz","grafanaStyle","three",3,"grafanaPath"]]},template:function(e,t){1&e&&i.Mc(0,Kc,25,2,"ng-container",0),2&e&&i.pc("ngIf",t.selection)},directives:[wt.r,Qt.p,Kt.a,Qt.r,Qt.s,Qt.q,Qt.u,Tr,en.a,pr.a,_s,zc.a,Fn.a],styles:[""]}),e})();const Xc=["osdUsageTpl"],el=["markOsdConfirmationTpl"],tl=["criticalConfirmationTpl"],nl=["reweightBodyTpl"],il=["safeToDestroyBodyTpl"],rl=["deleteOsdExtraTpl"],sl=["flagsTpl"],ol=function(){return{read:!0}};function al(e,t){if(1&e){const e=i.Tb();i.Sb(0,"cd-table",13),i.gc("fetchData",(function(){return i.Dc(e),i.ic().getOsdList()}))("setExpandedRow",(function(t){return i.Dc(e),i.ic().setExpandedRow(t)}))("updateSelection",(function(t){return i.Dc(e),i.ic().updateSelection(t)})),i.Sb(1,"div",14),i.Nb(2,"cd-table-actions",15),i.Nb(3,"cd-table-actions",16),i.Rb(),i.Nb(4,"cd-osd-details",17),i.Rb()}if(2&e){const e=i.ic();i.pc("data",e.osds)("columns",e.columns)("hasDetails",!0)("updateSelectionOnRefresh","never"),i.yb(2),i.pc("permission",e.permissions.osd)("selection",e.selection)("tableActions",e.tableActions),i.yb(1),i.pc("permission",i.tc(11,ol))("selection",e.selection)("tableActions",e.clusterWideActions),i.yb(1),i.pc("selection",e.expandedRow)}}function cl(e,t){1&e&&i.Nb(0,"cd-grafana",19),2&e&&i.pc("grafanaPath","osd-overview?")}function ll(e,t){1&e&&(i.Sb(0,"li",2),i.Sb(1,"a",3),i.Wb(2,18),i.Rb(),i.Mc(3,cl,1,1,"ng-template",5),i.Rb())}function ul(e,t){if(1&e&&(i.Qb(0),i.cc(1,20),i.Nb(2,"strong"),i.jc(3,"join"),i.Nb(4,"strong"),i.Zb(),i.Pb()),2&e){const e=t.markActionDescription,n=t.osdIds;i.yb(4),i.ac(i.kc(3,2,n))(e),i.Xb(1)}}function dl(e,t){if(1&e&&(i.Sb(0,"div",23),i.Sb(1,"cd-alert-panel",24),i.Wb(2,25),i.Rb(),i.Rb()),2&e){const e=i.ic(),t=e.actionDescription,n=e.message,r=i.ic();i.yb(2),i.ac(r.selection.hasSingleSelection)(t)(n),i.Xb(2)}}function hl(e,t){if(1&e&&(i.Mc(0,dl,3,3,"div",21),i.Qb(1),i.cc(2,22),i.Nb(3,"strong"),i.jc(4,"join"),i.Nb(5,"strong"),i.Zb(),i.Pb()),2&e){const e=t.actionDescription,n=t.osdIds;i.pc("ngIf",!t.safeToPerform),i.yb(5),i.ac(i.kc(4,3,n))(e),i.Xb(2)}}function fl(e,t){if(1&e&&(i.Sb(0,"span",28),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.yb(1),i.Pc(e)}}function pl(e,t){if(1&e&&(i.Sb(0,"span",29),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.yb(1),i.Pc(e)}}function ml(e,t){if(1&e&&(i.Mc(0,fl,2,1,"span",26),i.Mc(1,pl,2,1,"span",27)),2&e){const e=t.row;i.pc("ngForOf",e.cdClusterFlags),i.yb(1),i.pc("ngForOf",e.cdIndivFlags)}}function bl(e,t){if(1&e&&i.Nb(0,"cd-usage-bar",30),2&e){const e=t.row;i.pc("total",e.stats.stat_bytes)("used",e.stats.stat_bytes_used)}}function gl(e,t){1&e&&(i.Qb(0,31),i.Qb(1,32),i.Sb(2,"div",33),i.Sb(3,"div",34),i.Nb(4,"input",35),i.Sb(5,"label",36),i.Wb(6,37),i.Rb(),i.Rb(),i.Rb(),i.Pb(),i.Pb()),2&e&&i.pc("formGroup",t.form)}let _l=(()=>{class e extends $t.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 Wt.a,this.osds=[],this.disabledFlags=["sortbitwise","purged_snapdirs","recovery_deletes","pglog_hardlimit"],this.indivFlagNames=["noup","nodown","noin","noout"],this.actionOrchFeatures={create:[ur.OSD_CREATE],delete:[ur.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 Wt.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 Wt.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:Ht.a.executing,customTemplateConfig:{valueClass:"bold"}},{prop:"host.name",name:"Host"},{prop:"collectedStates",name:"Status",flexGrow:1,cellTransformation:Ht.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:Ht.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:Ht.a.sparkline},{prop:"stats_history.in_bytes",name:"Write bytes",cellTransformation:Ht.a.sparkline},{prop:"stats.op_r",name:"Read ops",cellTransformation:Ht.a.perSecond},{prop:"stats.op_w",name:"Write ops",cellTransformation:Ht.a.perSecond}],this.orchService.status().subscribe(e=>this.orchStatus=e)}getDisable(e,t){if("delete"===e){if(!t.hasSelection)return!0;if(jt.a.some(this.getSelectedOsds(),e=>{const t=jt.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=>!jt.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(vo.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=jt.a.get(n,"operational_status","unmanaged");return"unmanaged"!==i&&"working"!==i&&(n.cdExecuting=i),n})})}editAction(){const e=jt.a.filter(this.osds,["id",this.selection.first().id]).pop();this.modalService.show(Tn.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(yn.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(Yc,t)}configureFlagsAction(){this.bsModalRef=this.modalService.show(rc)}configureFlagsIndivAction(){const e={selected:this.getSelectedOsds()};this.bsModalRef=this.modalService.show(ec,e)}showConfirmationModal(e,t){const n=this.getSelectedOsdIds();this.bsModalRef=this.modalService.show(Dn.a,{titleText:"Mark OSD " + e + "",buttonText:"Mark " + e + "",bodyTpl:this.markOsdConfirmationTpl,bodyContext:{markActionDescription:e,osdIds:n},onSubmit:()=>{Object(vo.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(jc,{currentWeight:e.weight,osdId:e.id})}delete(){const e=new Jn.a({preserve:new kn.h(!1)});this.showCriticalConfirmationModal("delete","OSD","deleted",e=>this.osdService.safeToDelete(JSON.stringify(e)),"is_safe_to_delete",t=>(this.selection=new Wt.a,this.taskWrapper.wrapTaskAroundCall({task:new er.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(vo.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(Ac)}configurePgScrubAction(){this.bsModalRef=this.modalService.show(Mc,void 0,{size:"lg"})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Jt.a),i.Mb(fr),i.Mb(Zt.a),i.Mb(vn.a),i.Mb(hr.a),i.Mb(Pt.e),i.Mb(tr.a),i.Mb(gn.b),i.Mb(wn.a),i.Mb(cr))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-osd-list"]],viewQuery:function(e,t){var n;1&e&&(i.Jc(Xc,!0),i.Jc(el,!0),i.Jc(tl,!0),i.Tc(nl,!0),i.Tc(il,!0),i.Tc(rl,!0),i.Jc(sl,!0)),2&e&&(i.zc(n=i.hc())&&(t.osdUsageTpl=n.first),i.zc(n=i.hc())&&(t.markOsdConfirmationTpl=n.first),i.zc(n=i.hc())&&(t.criticalConfirmationTpl=n.first),i.zc(n=i.hc())&&(t.reweightBodyTpl=n.first),i.zc(n=i.hc())&&(t.safeToDestroyBodyTpl=n.first),i.zc(n=i.hc())&&(t.deleteOsdExtraTpl=n.first),i.zc(n=i.hc())&&(t.flagsTpl=n.first))},features:[i.xb([{provide:hr.a,useValue:new hr.a("osd")}]),i.vb],decls:18,vars:2,consts:function(){var e,t,n,r,s;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=i.bc(n),r="" + "[\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.",r=i.bc(r),s="{VAR_SELECT, select, true {OSD is} other {OSDs are}}",s=i.bc(s,{VAR_SELECT:"\ufffd0\ufffd"}),[["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"],r,[1,"danger"],["type","warning"],"The " + s + " not safe to be " + "\ufffd1\ufffd" + "! " + "\ufffd2\ufffd" + "",["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"],"Preserve OSD ID(s) for replacement."]},template:function(e,t){if(1&e&&(i.Sb(0,"ul",0,1),i.Sb(2,"li",2),i.Sb(3,"a",3),i.Wb(4,4),i.Rb(),i.Mc(5,al,5,12,"ng-template",5),i.Rb(),i.Mc(6,ll,4,0,"li",6),i.Rb(),i.Nb(7,"div",7),i.Mc(8,ul,5,4,"ng-template",null,8,i.Nc),i.Mc(10,hl,6,5,"ng-template",null,9,i.Nc),i.Mc(12,ml,2,2,"ng-template",null,10,i.Nc),i.Mc(14,bl,1,2,"ng-template",null,11,i.Nc),i.Mc(16,gl,7,1,"ng-template",null,12,i.Nc)),2&e){const e=i.Ac(1);i.yb(6),i.pc("ngIf",t.permissions.grafana.read),i.yb(1),i.pc("ngbNavOutlet",e)}},directives:[Qt.p,Qt.r,Qt.s,Qt.q,wt.r,Qt.u,Bt.a,Sn.a,Zc,Fn.a,pr.a,wt.q,ln.a,Zn.a,kn.r,kn.k,kn.l,Xn.a,On.a,kn.b,ei.a,kn.q,kn.i],pipes:[Fc.a],styles:[""]}),e})();var yl=n("20UP");let vl=(()=>{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(Vi.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)(i.dc(o.b),i.dc(yl.a))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var wl=n("G1I9");let Sl=(()=>{class e{constructor(e){this.notificationService=e}sendNotifications(e){e.forEach(e=>this.notificationService.show(e))}convertToCustomAlerts(e){return jt.a.uniqWith(e.map(e=>({status:jt.a.isObject(e.status)?e.status.state:this.getPrometheusNotificationStatus(e),name:e.labels.alertname,url:e.generatorURL,description:e.annotations.description,fingerprint:jt.a.isObject(e.status)&&e.fingerprint})),jt.a.isEqual)}getPrometheusNotificationStatus(e){const t=e.status;return"firing"===t?"active":t}convertAlertToNotification(e){return new wl.b(this.formatType(e.status),`${e.name} (${e.status})`,this.appendSourceLink(e,e.description),void 0,"Prometheus")}formatType(e){return yn.a[jt.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)(i.dc(wn.a))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Ml=(()=>{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=jt.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)).map(e=>this.alertFormatter.convertAlertToNotification(e));this.alertFormatter.sendNotifications(n)}getChangedAlerts(e,t){return jt.a.differenceWith(e,t,jt.a.isEqual).concat(this.getVanishedAlerts(e,t))}getVanishedAlerts(e,t){return jt.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)(i.dc(Sl),i.dc(vl))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),kl=(()=>{class e extends $t.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)(i.Mb(vl))},e.\u0275dir=i.Hb({type:e,features:[i.vb]}),e})(),xl=(()=>{class e{constructor(e){this.router=e}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Pt.e))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-prometheus-tabs"]],decls:11,vars:1,consts:function(){return[["ngbNav","",1,"nav-tabs",3,"activeId","navChange"],["nav","ngbNav"],["ngbNavItem","/monitoring/active-alerts"],["ngbNavLink",""],"Active Alerts",["ngbNavItem","/monitoring/alerts"],"Alerts",["ngbNavItem","/monitoring/silences"],"Silences"]},template:function(e,t){1&e&&(i.Sb(0,"ul",0,1),i.gc("navChange",(function(e){return t.router.navigate([e.nextId])})),i.Sb(2,"li",2),i.Sb(3,"a",3),i.Wb(4,4),i.Rb(),i.Rb(),i.Sb(5,"li",5),i.Sb(6,"a",3),i.Wb(7,6),i.Rb(),i.Rb(),i.Sb(8,"li",7),i.Sb(9,"a",3),i.Wb(10,8),i.Rb(),i.Rb(),i.Rb()),2&e&&i.pc("activeId",t.router.url)},directives:[Qt.p,Qt.r,Qt.s],styles:[""]}),e})();const Dl=["externalLinkTpl"];function Tl(e,t){1&e&&(i.Sb(0,"cd-alert-panel",3),i.cc(1,4),i.Nb(2,"cd-doc",5),i.Zb(),i.Rb())}function Cl(e,t){if(1&e&&i.Nb(0,"cd-table-key-value",9),2&e){const e=i.ic(2);i.pc("renderObjects",!0)("hideEmpty",!0)("appendParentKey",!1)("data",e.expandedRow)("customCss",e.customCss)("autoReload",!1)}}function Ol(e,t){if(1&e){const e=i.Tb();i.Sb(0,"cd-table",6),i.gc("setExpandedRow",(function(t){return i.Dc(e),i.ic().setExpandedRow(t)}))("updateSelection",(function(t){return i.Dc(e),i.ic().updateSelection(t)})),i.Nb(1,"cd-table-actions",7),i.Mc(2,Cl,1,6,"cd-table-key-value",8),i.Rb()}if(2&e){const e=i.ic();i.pc("data",e.prometheusAlertService.alerts)("columns",e.columns)("forceIdentifier",!0)("customCss",e.customCss)("hasDetails",!0),i.yb(1),i.pc("permission",e.permission)("selection",e.selection)("tableActions",e.tableActions),i.yb(1),i.pc("ngIf",e.expandedRow)}}const Ll=function(e){return[e]};function Rl(e,t){if(1&e&&(i.Sb(0,"a",10),i.Nb(1,"i",11),i.Oc(2," Source"),i.Rb()),2&e){const e=t.value,n=i.ic();i.pc("href",e,i.Gc),i.yb(1),i.pc("ngClass",i.uc(2,Ll,n.icons.lineChart))}}let El=(()=>{class e extends kl{constructor(e,t,n,i,r){super(r),this.authStorageService=e,this.prometheusAlertService=t,this.urlBuilder=n,this.cdDatePipe=i,this.selection=new Wt.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:Ht.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)(i.Mb(Jt.a),i.Mb(Ml),i.Mb(hr.a),i.Mb(Vt.a),i.Mb(vl))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-active-alert-list"]],viewQuery:function(e,t){var n;1&e&&i.Jc(Dl,!0),2&e&&i.zc(n=i.hc())&&(t.externalLinkTpl=n.first)},features:[i.xb([{provide:hr.a,useValue:new hr.a("silences")}]),i.vb],decls:5,vars:2,consts:function(){return[["type","info",4,"ngIf"],["identifier","fingerprint","selectionType","single",3,"data","columns","forceIdentifier","customCss","hasDetails","setExpandedRow","updateSelection",4,"ngIf"],["externalLinkTpl",""],["type","info"],"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" + ".",["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&&(i.Nb(0,"cd-prometheus-tabs"),i.Mc(1,Tl,3,0,"cd-alert-panel",0),i.Mc(2,Ol,3,9,"cd-table",1),i.Mc(3,Rl,3,4,"ng-template",null,2,i.Nc)),2&e&&(i.yb(1),i.pc("ngIf",!t.isAlertmanagerConfigured),i.yb(1),i.pc("ngIf",t.isAlertmanagerConfigured))},directives:[xl,wt.r,pr.a,Cr.a,Bt.a,Sn.a,en.a,wt.p],styles:[""]}),e})(),Al=(()=>{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=i.Lb({name:"duration",type:e,pure:!1}),e})();function Il(e,t){1&e&&(i.Sb(0,"cd-alert-panel",2),i.cc(1,3),i.Nb(2,"cd-doc",4),i.Zb(),i.Rb())}function Pl(e,t){if(1&e&&i.Nb(0,"cd-table-key-value",7),2&e){const e=i.ic(2);i.pc("data",e.expandedRow)("renderObjects",!0)("hideKeys",e.hideKeys)}}function Nl(e,t){if(1&e){const e=i.Tb();i.Sb(0,"cd-table",5),i.gc("updateSelection",(function(t){return i.Dc(e),i.ic().setExpandedRow(t)})),i.Mc(1,Pl,1,3,"cd-table-key-value",6),i.Rb()}if(2&e){const e=i.ic();i.pc("data",e.prometheusAlertService.rules)("columns",e.columns)("hasDetails",!0)("selectionType","single"),i.yb(1),i.pc("ngIf",e.expandedRow)}}let jl=(()=>{class e extends kl{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 Al},{prop:"query",name:"Query",isHidden:!0},{prop:"annotations.description",name:"Description"}]}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Ml),i.Mb(vl))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-rules-list"]],features:[i.vb],decls:3,vars:2,consts:function(){return[["type","info",4,"ngIf"],[3,"data","columns","hasDetails","selectionType","updateSelection",4,"ngIf"],["type","info"],"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" + ".",["section","prometheus"],[3,"data","columns","hasDetails","selectionType","updateSelection"],["cdTableDetail","",3,"data","renderObjects","hideKeys",4,"ngIf"],["cdTableDetail","",3,"data","renderObjects","hideKeys"]]},template:function(e,t){1&e&&(i.Nb(0,"cd-prometheus-tabs"),i.Mc(1,Il,3,0,"cd-alert-panel",0),i.Mc(2,Nl,2,5,"cd-table",1)),2&e&&(i.yb(1),i.pc("ngIf",!t.isPrometheusConfigured),i.yb(1),i.pc("ngIf",t.isPrometheusConfigured))},directives:[xl,wt.r,pr.a,Cr.a,Bt.a,en.a],styles:[""]}),e})();var Fl=n("WE5d");let Yl=(()=>{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=>jt.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=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),zl=(()=>{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(jt.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=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var $l=n("XNiG"),Hl=n("VRyK"),Wl=n("7o/Q"),Vl=n("D0XW");function Bl(e,t=Vl.a){return n=>n.lift(new Ul(e,t))}class Ul{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new Gl(e,this.dueTime,this.scheduler))}}class Gl extends Wl.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(ql,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 ql(e){e.debouncedNext()}var Jl=n("/uUt"),Ql=n("pLZG");function Kl(e,t){if(1&e&&(i.Sb(0,"option",27),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e),i.yb(1),i.Qc(" ",e," ")}}function Zl(e,t){1&e&&(i.Sb(0,"span",28),i.Wb(1,29),i.Rb())}function Xl(e,t){1&e&&(i.Sb(0,"span",28),i.Wb(1,30),i.Rb())}function eu(e,t){if(1&e&&(i.Sb(0,"div",31),i.Sb(1,"span"),i.Oc(2),i.Rb(),i.Rb()),2&e){const e=i.ic();i.Bb("cd-col-form-offset ",e.matcherMatch.cssClass,""),i.yb(1),i.Bb("text-muted ",e.matcherMatch.cssClass,""),i.yb(1),i.Qc(" ",e.matcherMatch.status," ")}}let tu=(()=>{class e{constructor(e,t,n,r){this.formBuilder=e,this.silenceMatcher=t,this.activeModal=n,this.actionLabels=r,this.submitAction=new i.o,this.editMode=!1,this.nameAttributes=["alertname","instance","job","severity"],this.possibleValues=[],this.matcherMatch=void 0,this.valueClick=new $l.a,this.valueFocus=new $l.a,this.search=e=>Object(Hl.a)(e.pipe(Bl(200),Object(Jl.a)()),this.valueFocus,this.valueClick.pipe(Object(Ql.a)(()=>!this.typeahead.isPopupOpen()))).pipe(Object(Vi.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,[kn.A.required]],value:[{value:"",disabled:!0},[kn.A.required]],isRegex:new kn.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=jt.a.sortedUniq(this.rules.map(t=>jt.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)(i.Mb(So.a),i.Mb(Yl),i.Mb(Qt.a),i.Mb(gn.b))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-silence-matcher-modal"]],viewQuery:function(e,t){var n;1&e&&i.Jc(Qt.G,!0),2&e&&i.zc(n=i.hc())&&(t.typeahead=n.first)},outputs:{submitAction:"submitAction"},decls:31,vars:11,consts:function(){var e;return e="{VAR_SELECT, select, true {Edit} other {Add}}",e=i.bc(e,{VAR_SELECT:"\ufffd0\ufffd"}),[[3,"modalRef"],[1,"modal-title"],"" + e + " Matcher",[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"],"Name",[1,"cd-col-form-input"],["id","name","formControlName","name","name","name",1,"form-control"],[3,"ngValue"],"-- Select an attribute to match against --",[3,"value",4,"ngFor","ngForOf"],["class","help-block",4,"ngIf"],["for","value",1,"cd-col-form-label","required"],"Value",["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"],"Use regular expression",[1,"modal-footer"],[3,"form","submitText","submitActionEvent"],[3,"value"],[1,"help-block"],"This field is required!","This field is required!",["id","match-state"]]},template:function(e,t){if(1&e&&(i.Sb(0,"cd-modal",0),i.Sb(1,"span",1),i.Wb(2,2),i.Rb(),i.Qb(3,3),i.Sb(4,"form",4,5),i.Sb(6,"div",6),i.Sb(7,"div",7),i.Sb(8,"label",8),i.Wb(9,9),i.Rb(),i.Sb(10,"div",10),i.Sb(11,"select",11),i.Sb(12,"option",12),i.Wb(13,13),i.Rb(),i.Mc(14,Kl,2,2,"option",14),i.Rb(),i.Mc(15,Zl,2,0,"span",15),i.Rb(),i.Rb(),i.Sb(16,"div",7),i.Sb(17,"label",16),i.Wb(18,17),i.Rb(),i.Sb(19,"div",10),i.Sb(20,"input",18),i.gc("focus",(function(e){return t.valueFocus.next(e.target.value)}))("click",(function(e){return t.valueClick.next(e.target.value)})),i.Rb(),i.Mc(21,Xl,2,0,"span",15),i.Rb(),i.Mc(22,eu,3,7,"div",19),i.Rb(),i.Sb(23,"div",7),i.Sb(24,"div",20),i.Sb(25,"div",21),i.Nb(26,"input",22),i.Sb(27,"label",23),i.Wb(28,24),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(29,"div",25),i.Sb(30,"cd-form-button-panel",26),i.gc("submitActionEvent",(function(){return t.onSubmit()})),i.Rb(),i.Rb(),i.Rb(),i.Pb(),i.Rb()),2&e){const e=i.Ac(5);i.pc("modalRef",t.activeModal),i.yb(2),i.ac(t.editMode),i.Xb(2),i.yb(2),i.pc("formGroup",t.form),i.yb(8),i.pc("ngValue",null),i.yb(2),i.pc("ngForOf",t.nameAttributes),i.yb(1),i.pc("ngIf",t.form.showError("name",e,"required")),i.yb(5),i.pc("ngbTypeahead",t.search),i.yb(1),i.pc("ngIf",t.form.showError("value",e,"required")),i.yb(1),i.pc("ngIf",t.form.getValue("value")&&!t.form.getValue("isRegex")&&t.matcherMatch),i.yb(8),i.pc("form",t.form)("submitText",t.getMode())}},directives:[_a.a,kn.C,kn.r,Zn.a,kn.k,Xn.a,On.a,kn.z,ei.a,kn.q,kn.i,kn.u,kn.B,wt.q,wt.r,kn.d,Qt.G,kn.b,ti.a],styles:[""]}),e})();var nu=n("MAOJ");function iu(e,t){if(1&e&&(i.Qb(0),i.Nb(1,"input",54),i.Pb()),2&e){const e=i.ic().$implicit,t=i.ic(),n=t.index,r=t.matcher;i.yb(1),i.sc("id","matcher-",e.attribute,"-",n,""),i.pc("value",r[e.attribute])}}function ru(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"div",47),i.Sb(2,"div",55),i.Nb(3,"input",56),i.Rb(),i.Rb(),i.Pb()),2&e){const e=i.ic().$implicit,t=i.ic(),n=t.index,r=t.matcher;i.yb(3),i.sc("id","matcher-",e.attribute,"-",n,""),i.pc("checked",r[e.attribute])}}const su=function(e){return[e]};function ou(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"div",52),i.Sb(2,"span",53),i.Nb(3,"i",38),i.Rb(),i.Rb(),i.Mc(4,iu,2,3,"ng-container",7),i.Mc(5,ru,4,3,"ng-container",7),i.Pb()),2&e){const e=t.$implicit;i.yb(2),i.pc("ngbTooltip",e.tooltip),i.yb(1),i.pc("ngClass",i.uc(4,su,e.icon)),i.yb(1),i.pc("ngIf","isRegex"!==e.attribute),i.yb(1),i.pc("ngIf","isRegex"===e.attribute)}}function au(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",46),i.Mc(1,ou,6,6,"ng-container",34),i.Sb(2,"span",47),i.Sb(3,"button",48),i.Yb(4,49),i.gc("click",(function(){i.Dc(e);const n=t.index;return i.ic().showMatcherModal(n)})),i.Nb(5,"i",38),i.Rb(),i.Sb(6,"button",48),i.Yb(7,50),i.gc("click",(function(){i.Dc(e);const n=t.index;return i.ic().deleteMatcher(n)})),i.Nb(8,"i",38),i.Rb(),i.Rb(),i.Rb(),i.Nb(9,"span",51)}if(2&e){const e=t.index,n=i.ic();i.yb(1),i.pc("ngForOf",n.matcherConfig),i.yb(2),i.rc("id","matcher-edit-",e,""),i.yb(2),i.pc("ngClass",i.uc(5,su,n.icons.edit)),i.yb(1),i.rc("id","matcher-delete-",e,""),i.yb(2),i.pc("ngClass",i.uc(7,su,n.icons.trash))}}function cu(e,t){1&e&&(i.Sb(0,"cd-helper"),i.Wb(1,57),i.Rb())}function lu(e,t){1&e&&(i.Sb(0,"span",58),i.Wb(1,59),i.Rb())}function uu(e,t){1&e&&(i.Sb(0,"span",58),i.Wb(1,60),i.Rb())}function du(e,t){1&e&&(i.Sb(0,"span",58),i.Wb(1,61),i.Rb())}function hu(e,t){1&e&&(i.Sb(0,"span",58),i.Wb(1,62),i.Rb())}function fu(e,t){1&e&&(i.Sb(0,"span",58),i.Wb(1,63),i.Rb())}const pu=function(e,t){return{"text-warning":e,"text-danger":t}};function mu(e,t){if(1&e&&(i.Sb(0,"h5",38),i.Sb(1,"strong"),i.Wb(2,64),i.Rb(),i.Rb()),2&e){i.ic();const e=i.Ac(4);i.pc("ngClass",i.vc(1,pu,!e.submitted,e.submitted))}}function bu(e,t){1&e&&i.Ob(0)}const gu=function(e,t){return{index:e,matcher:t}};function _u(e,t){if(1&e&&(i.Sb(0,"span"),i.Mc(1,bu,1,0,"ng-container",65),i.Rb()),2&e){const e=t.$implicit,n=t.index;i.ic();const r=i.Ac(1);i.yb(1),i.pc("ngTemplateOutlet",r)("ngTemplateOutletContext",i.vc(2,gu,n,e))}}function yu(e,t){if(1&e&&(i.Sb(0,"div",66),i.Sb(1,"span"),i.Oc(2),i.Rb(),i.Rb()),2&e){const e=i.ic();i.Bb("cd-col-form-offset ",e.matcherMatch.cssClass,""),i.yb(1),i.Bb("text-muted ",e.matcherMatch.cssClass,""),i.yb(1),i.Qc(" ",e.matcherMatch.status," ")}}function vu(e,t){if(1&e&&i.Nb(0,"cd-date-time-picker",67),2&e){const e=i.ic();i.pc("control",e.form.get("startsAt"))("hasSeconds",!1)}}function wu(e,t){if(1&e&&i.Nb(0,"cd-date-time-picker",67),2&e){const e=i.ic();i.pc("control",e.form.get("endsAt"))("hasSeconds",!1)}}const Su=function(e){return{"btn-warning":e}};let Mu=(()=>{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 Fl.b}createForm(){const e=Cn.a.custom("format",e=>!(""===e||nn()(e,this.datetimeFormat).isValid()));this.form=this.formBuilder.group({startsAt:["",[kn.A.required,e]],duration:["2h",[kn.A.min(1)]],endsAt:["",[kn.A.required,e]],createdBy:[this.authStorageService.getUsername(),[kn.A.required]],comment:[null,[kn.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)=>jt.a.concat(e,t.rules),[])},()=>{this.prometheusService.disablePrometheusConfig(),this.rules=[]}),()=>{this.rules=[],this.notificationService.show(yn.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){jt.a.isNumber(t)?this.matchers[t]=e:this.matchers.push(e),this.validateMatchers()}showMatcherModal(e){const t=this.modalService.show(tu).componentInstance;t.rules=this.rules,jt.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(yn.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)(i.Mb(Pt.e),i.Mb(Jt.a),i.Mb(So.a),i.Mb(vl),i.Mb(wn.a),i.Mb(Pt.a),i.Mb(zl),i.Mb(vn.a),i.Mb(Yl),i.Mb(gn.b),i.Mb(gn.d))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-prometheus-form"]],decls:71,vars:30,consts:function(){return[["matcherTpl",""],[1,"cd-col-form"],["name","form","novalidate","",1,"form",3,"formGroup"],["formDir","ngForm"],[1,"card"],[1,"card-header"]," " + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + " ",[4,"ngIf"],[1,"card-body"],[1,"form-group","row"],["for","created-by",1,"cd-col-form-label","required"],"Creator",[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"],"Comment",["formControlName","comment","id","comment","name","comment","type","text",1,"form-control"],["for","starts-at",1,"cd-col-form-label"],[1,"required"],"Start time","If the start time lies in the past the creation time will be used",["formControlName","startsAt","triggers","manual",1,"form-control",3,"ngbPopover","click","keypress"],["ps","ngbPopover"],["for","duration",1,"cd-col-form-label","required"],"Duration",["formControlName","duration","id","duration","name","duration","type","text",1,"form-control"],["for","ends-at",1,"cd-col-form-label","required"],"End time",["formControlName","endsAt","triggers","manual",1,"form-control",3,"ngbPopover","click","keypress"],["pe","ngbPopover"],"Matchers",[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"],"Add matcher",["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",1,"btn","btn-light",3,"id","click",6,"ngbTooltip"],["ngbTooltip","Edit"],["ngbTooltip","Delete"],[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"],"Editing a silence will expire the old silence and recreate it as a new silence",[1,"invalid-feedback"],"This field is required!","This field is required!","This field is required!","This field is required!","This field is required!","A silence requires at least one matcher",[4,"ngTemplateOutlet","ngTemplateOutletContext"],["id","match-state"],[3,"control","hasSeconds"]]},template:function(e,t){if(1&e){const e=i.Tb();i.Mc(0,au,10,9,"ng-template",null,0,i.Nc),i.Sb(2,"div",1),i.Sb(3,"form",2,3),i.Sb(5,"div",4),i.Sb(6,"div",5),i.Sb(7,"span"),i.Wb(8,6),i.jc(9,"titlecase"),i.jc(10,"upperFirst"),i.Rb(),i.Mc(11,cu,2,0,"cd-helper",7),i.Rb(),i.Sb(12,"div",8),i.Sb(13,"div",9),i.Sb(14,"label",10),i.Wb(15,11),i.Rb(),i.Sb(16,"div",12),i.Nb(17,"input",13),i.Mc(18,lu,2,0,"span",14),i.Rb(),i.Rb(),i.Sb(19,"div",9),i.Sb(20,"label",15),i.Wb(21,16),i.Rb(),i.Sb(22,"div",12),i.Sb(23,"textarea",17),i.Oc(24,"            "),i.Rb(),i.Mc(25,uu,2,0,"span",14),i.Rb(),i.Rb(),i.Sb(26,"div",9),i.Sb(27,"label",18),i.Sb(28,"span",19),i.Wb(29,20),i.Rb(),i.Sb(30,"cd-helper"),i.Wb(31,21),i.Rb(),i.Rb(),i.Sb(32,"div",12),i.Sb(33,"input",22,23),i.gc("click",(function(){return i.Dc(e),i.Ac(34).open()}))("keypress",(function(){return i.Dc(e),i.Ac(34).close()})),i.Rb(),i.Mc(35,du,2,0,"span",14),i.Rb(),i.Rb(),i.Sb(36,"div",9),i.Sb(37,"label",24),i.Wb(38,25),i.Rb(),i.Sb(39,"div",12),i.Nb(40,"input",26),i.Mc(41,hu,2,0,"span",14),i.Rb(),i.Rb(),i.Sb(42,"div",9),i.Sb(43,"label",27),i.Wb(44,28),i.Rb(),i.Sb(45,"div",12),i.Sb(46,"input",29,30),i.gc("click",(function(){return i.Dc(e),i.Ac(47).open()}))("keypress",(function(){return i.Dc(e),i.Ac(47).close()})),i.Rb(),i.Mc(48,fu,2,0,"span",14),i.Rb(),i.Rb(),i.Sb(49,"fieldset"),i.Sb(50,"legend",19),i.Wb(51,31),i.Rb(),i.Sb(52,"div",32),i.Mc(53,mu,3,4,"h5",33),i.Mc(54,_u,2,5,"span",34),i.Sb(55,"div",35),i.Sb(56,"div",36),i.Sb(57,"button",37),i.gc("click",(function(){return t.showMatcherModal()})),i.Nb(58,"i",38),i.Qb(59),i.Wb(60,39),i.Pb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Mc(61,yu,3,7,"div",40),i.Rb(),i.Rb(),i.Sb(62,"div",41),i.Sb(63,"div",42),i.Sb(64,"cd-form-button-panel",43),i.gc("submitActionEvent",(function(){return t.submit()})),i.jc(65,"titlecase"),i.jc(66,"upperFirst"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Mc(67,vu,1,2,"ng-template",null,44,i.Nc),i.Mc(69,wu,1,2,"ng-template",null,45,i.Nc)}if(2&e){const e=i.Ac(4),n=i.Ac(68),r=i.Ac(70);i.yb(3),i.pc("formGroup",t.form),i.yb(7),i.ac(i.kc(9,18,t.action))(i.kc(10,20,t.resource)),i.Xb(8),i.yb(1),i.pc("ngIf",t.edit),i.yb(7),i.pc("ngIf",t.form.showError("createdBy",e,"required")),i.yb(7),i.pc("ngIf",t.form.showError("comment",e,"required")),i.yb(8),i.pc("ngbPopover",n),i.yb(2),i.pc("ngIf",t.form.showError("startsAt",e,"required")),i.yb(6),i.pc("ngIf",t.form.showError("duration",e,"required")),i.yb(5),i.pc("ngbPopover",r),i.yb(2),i.pc("ngIf",t.form.showError("endsAt",e,"required")),i.yb(5),i.pc("ngIf",0===t.matchers.length),i.yb(1),i.pc("ngForOf",t.matchers),i.yb(3),i.pc("ngClass",i.uc(26,Su,e.submitted&&0===t.matchers.length)),i.yb(1),i.pc("ngClass",i.uc(28,su,t.icons.add)),i.yb(3),i.pc("ngIf",t.matchers.length&&t.matcherMatch),i.yb(3),i.pc("form",t.form)("submitText",i.kc(65,22,t.action)+" "+i.kc(66,24,t.resource))}},directives:[kn.C,kn.r,Zn.a,kn.k,wt.r,Xn.a,On.a,kn.d,ei.a,kn.q,kn.i,Mo.a,Qt.w,wt.q,wt.p,ti.a,Qt.D,wt.w,nu.a],pipes:[wt.A,ir.a],styles:["textarea[_ngcontent-%COMP%]{resize:vertical}"]}),e})();var ku=n("w9WL"),xu=n("HDdC");function Du(e,t){1&e&&(i.Sb(0,"cd-alert-panel",2),i.cc(1,3),i.Nb(2,"cd-doc",4),i.Zb(),i.Rb())}function Tu(e,t){if(1&e&&i.Nb(0,"cd-table-key-value",8),2&e){const e=i.ic(2);i.pc("renderObjects",!0)("hideEmpty",!0)("appendParentKey",!1)("data",e.expandedRow)("customCss",e.customCss)("autoReload",!1)}}function Cu(e,t){if(1&e){const e=i.Tb();i.Sb(0,"cd-table",5),i.gc("setExpandedRow",(function(t){return i.Dc(e),i.ic().setExpandedRow(t)}))("fetchData",(function(){return i.Dc(e),i.ic().refresh()}))("updateSelection",(function(t){return i.Dc(e),i.ic().updateSelection(t)})),i.Nb(1,"cd-table-actions",6),i.Mc(2,Tu,1,6,"cd-table-key-value",7),i.Rb()}if(2&e){const e=i.ic();i.pc("data",e.silences)("columns",e.columns)("forceIdentifier",!0)("customCss",e.customCss)("sorts",e.sorts)("hasDetails",!0),i.yb(1),i.pc("permission",e.permission)("selection",e.selection)("tableActions",e.tableActions),i.yb(1),i.pc("ngIf",e.expandedRow)}}let Ou=(()=>{class e extends kl{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 Wt.a,this.customCss={"badge badge-danger":"active","badge badge-warning":"pending","badge badge-default":"expired"},this.sorts=[{prop:"endsAt",dir:ku.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:Ht.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 xu.a(i=>{this.prometheusService.expireSilence(e).subscribe(()=>{this.notificationService.show(yn.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)(i.Mb(Jt.a),i.Mb(Vt.a),i.Mb(vn.a),i.Mb(wn.a),i.Mb(hr.a),i.Mb(gn.b),i.Mb(gn.d),i.Mb(vl))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-silences-list"]],features:[i.xb([{provide:hr.a,useValue:new hr.a("monitoring/silences")}]),i.vb],decls:3,vars:2,consts:function(){return[["type","info",4,"ngIf"],["selectionType","single",3,"data","columns","forceIdentifier","customCss","sorts","hasDetails","setExpandedRow","fetchData","updateSelection",4,"ngIf"],["type","info"],"To enable Silences, please provide the URL to the API of the Prometheus' Alertmanager as described in the " + "\ufffd#2\ufffd" + "" + "\ufffd/#2\ufffd" + ".",["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&&(i.Nb(0,"cd-prometheus-tabs"),i.Mc(1,Du,3,0,"cd-alert-panel",0),i.Mc(2,Cu,3,10,"cd-table",1)),2&e&&(i.yb(1),i.pc("ngIf",!t.isAlertmanagerConfigured),i.yb(1),i.pc("ngIf",t.isAlertmanagerConfigured))},directives:[xl,wt.r,pr.a,Cr.a,Bt.a,Sn.a,en.a],styles:[""]}),e})();var Lu=n("Ekvf"),Ru=n("a96k"),Eu=n("ppaS"),Au=n("D4zM");function Iu(e,t){if(1&e&&(i.Sb(0,"option",29),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e),i.yb(1),i.Qc(" ",e," ")}}function Pu(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,31),i.Rb())}function Nu(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,32),i.Rb())}function ju(e,t){1&e&&(i.Sb(0,"span",30),i.cc(1,33),i.Nb(2,"strong"),i.Zb(),i.Rb())}function Fu(e,t){1&e&&(i.Sb(0,"div",7),i.Sb(1,"label",34),i.Wb(2,35),i.Rb(),i.Sb(3,"div",10),i.Sb(4,"select",36),i.Sb(5,"option",37),i.Wb(6,38),i.Rb(),i.Sb(7,"option",39),i.Wb(8,40),i.Rb(),i.Rb(),i.Rb(),i.Rb())}function Yu(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,44),i.Rb())}function zu(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",7),i.Sb(1,"label",41),i.Wb(2,42),i.Rb(),i.Sb(3,"div",10),i.Sb(4,"input",43),i.gc("focus",(function(t){return i.Dc(e),i.ic().labelFocus.next(t.target.value)}))("click",(function(t){return i.Dc(e),i.ic().labelClick.next(t.target.value)})),i.Rb(),i.Mc(5,Yu,2,0,"span",15),i.Rb(),i.Rb()}if(2&e){const e=i.ic(),t=i.Ac(2);i.yb(4),i.pc("ngbTypeahead",e.searchLabels),i.yb(1),i.pc("ngIf",e.serviceForm.showError("label",t,"required"))}}function $u(e,t){if(1&e&&(i.Sb(0,"div",7),i.Sb(1,"label",45),i.Wb(2,46),i.Rb(),i.Sb(3,"div",10),i.Nb(4,"cd-select-badges",47),i.Rb(),i.Rb()),2&e){const e=i.ic();i.yb(4),i.pc("data",e.serviceForm.controls.hosts.value)("options",e.hosts.options)("messages",e.hosts.messages)}}function Hu(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,52),i.Rb())}function Wu(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,53),i.Rb())}function Vu(e,t){if(1&e&&(i.Sb(0,"div",7),i.Sb(1,"label",48),i.Sb(2,"span"),i.Wb(3,49),i.Rb(),i.Sb(4,"cd-helper"),i.Wb(5,50),i.Rb(),i.Rb(),i.Sb(6,"div",10),i.Nb(7,"input",51),i.Mc(8,Hu,2,0,"span",15),i.Mc(9,Wu,2,0,"span",15),i.Rb(),i.Rb()),2&e){const e=i.ic(),t=i.Ac(2);i.yb(8),i.pc("ngIf",e.serviceForm.showError("count",t,"min")),i.yb(1),i.pc("ngIf",e.serviceForm.showError("count",t,"pattern"))}}function Bu(e,t){1&e&&(i.Sb(0,"option",12),i.Wb(1,61),i.Rb()),2&e&&i.pc("ngValue",null)}function Uu(e,t){1&e&&(i.Sb(0,"option",12),i.Wb(1,62),i.Rb()),2&e&&i.pc("ngValue",null)}function Gu(e,t){1&e&&(i.Sb(0,"option",12),i.Wb(1,63),i.Rb()),2&e&&i.pc("ngValue",null)}function qu(e,t){if(1&e&&(i.Sb(0,"option",29),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e.pool_name),i.yb(1),i.Pc(e.pool_name)}}function Ju(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,64),i.Rb())}function Qu(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"div",7),i.Sb(2,"label",54),i.Wb(3,55),i.Rb(),i.Sb(4,"div",10),i.Sb(5,"select",56),i.Mc(6,Bu,2,1,"option",57),i.Mc(7,Uu,2,1,"option",57),i.Mc(8,Gu,2,1,"option",57),i.Mc(9,qu,2,2,"option",14),i.Rb(),i.Mc(10,Ju,2,0,"span",15),i.Rb(),i.Rb(),i.Sb(11,"div",7),i.Sb(12,"label",58),i.Wb(13,59),i.Rb(),i.Sb(14,"div",10),i.Nb(15,"input",60),i.Rb(),i.Rb(),i.Pb()),2&e){const e=i.ic(),t=i.Ac(2);i.yb(6),i.pc("ngIf",null===e.pools),i.yb(1),i.pc("ngIf",null!==e.pools&&0===e.pools.length),i.yb(1),i.pc("ngIf",null!==e.pools&&e.pools.length>0),i.yb(1),i.pc("ngForOf",e.pools),i.yb(1),i.pc("ngIf",e.serviceForm.showError("pool",t,"required"))}}function Ku(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,68),i.Rb())}function Zu(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,69),i.Rb())}function Xu(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,70),i.Rb())}function ed(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"div",7),i.Sb(2,"label",65),i.Wb(3,66),i.Rb(),i.Sb(4,"div",10),i.Nb(5,"input",67),i.Mc(6,Ku,2,0,"span",15),i.Mc(7,Zu,2,0,"span",15),i.Mc(8,Xu,2,0,"span",15),i.Rb(),i.Rb(),i.Pb()),2&e){const e=i.ic(),t=i.Ac(2);i.yb(6),i.pc("ngIf",e.serviceForm.showError("rgw_frontend_port",t,"pattern")),i.yb(1),i.pc("ngIf",e.serviceForm.showError("rgw_frontend_port",t,"min")),i.yb(1),i.pc("ngIf",e.serviceForm.showError("rgw_frontend_port",t,"max"))}}function td(e,t){1&e&&(i.Sb(0,"option",12),i.Wb(1,90),i.Rb()),2&e&&i.pc("ngValue",null)}function nd(e,t){1&e&&(i.Sb(0,"option",12),i.Wb(1,91),i.Rb()),2&e&&i.pc("ngValue",null)}function id(e,t){1&e&&(i.Sb(0,"option",12),i.Wb(1,92),i.Rb()),2&e&&i.pc("ngValue",null)}function rd(e,t){if(1&e&&(i.Sb(0,"option",29),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e.pool_name),i.yb(1),i.Pc(e.pool_name)}}function sd(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,93),i.Rb())}function od(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,94),i.Rb())}function ad(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,95),i.Rb())}function cd(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,96),i.Rb())}function ld(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,97),i.Rb())}function ud(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,98),i.Rb())}const dd=function(){return["iscsi"]},hd=function(e){return{required:e}};function fd(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"div",7),i.Sb(2,"label",54),i.Wb(3,71),i.Rb(),i.Sb(4,"div",10),i.Sb(5,"select",56),i.Mc(6,td,2,1,"option",57),i.Mc(7,nd,2,1,"option",57),i.Mc(8,id,2,1,"option",57),i.Mc(9,rd,2,2,"option",14),i.Rb(),i.Mc(10,sd,2,0,"span",15),i.Rb(),i.Rb(),i.Sb(11,"div",7),i.Sb(12,"label",72),i.Sb(13,"span"),i.Wb(14,73),i.Rb(),i.Sb(15,"cd-helper"),i.Sb(16,"span"),i.Wb(17,74),i.Rb(),i.Nb(18,"br"),i.Sb(19,"span"),i.cc(20,75),i.Nb(21,"b"),i.Zb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(22,"div",10),i.Nb(23,"input",76),i.Rb(),i.Rb(),i.Sb(24,"div",7),i.Sb(25,"label",77),i.Wb(26,78),i.Rb(),i.Sb(27,"div",10),i.Nb(28,"input",79),i.Mc(29,od,2,0,"span",15),i.Mc(30,ad,2,0,"span",15),i.Mc(31,cd,2,0,"span",15),i.Rb(),i.Rb(),i.Sb(32,"div",7),i.Sb(33,"label",80),i.Wb(34,81),i.Rb(),i.Sb(35,"div",10),i.Nb(36,"input",82),i.Mc(37,ld,2,0,"span",15),i.Rb(),i.Rb(),i.Sb(38,"div",7),i.Sb(39,"label",83),i.Wb(40,84),i.Rb(),i.Sb(41,"div",10),i.Sb(42,"div",85),i.Nb(43,"input",86),i.Sb(44,"span",87),i.Nb(45,"button",88),i.Nb(46,"cd-copy-2-clipboard-button",89),i.Rb(),i.Mc(47,ud,2,0,"span",15),i.Rb(),i.Rb(),i.Rb(),i.Pb()),2&e){const e=i.ic(),t=i.Ac(2);i.yb(6),i.pc("ngIf",null===e.pools),i.yb(1),i.pc("ngIf",null!==e.pools&&0===e.pools.length),i.yb(1),i.pc("ngIf",null!==e.pools&&e.pools.length>0),i.yb(1),i.pc("ngForOf",e.pools),i.yb(1),i.pc("ngIf",e.serviceForm.showError("pool",t,"required")),i.yb(19),i.pc("ngIf",e.serviceForm.showError("api_port",t,"pattern")),i.yb(1),i.pc("ngIf",e.serviceForm.showError("api_port",t,"min")),i.yb(1),i.pc("ngIf",e.serviceForm.showError("api_port",t,"max")),i.yb(2),i.pc("ngClass",i.uc(13,hd,i.tc(12,dd).includes(e.serviceForm.controls.service_type.value))),i.yb(4),i.pc("ngIf",e.serviceForm.showError("api_user",t,"required")),i.yb(2),i.pc("ngClass",i.uc(16,hd,i.tc(15,dd).includes(e.serviceForm.controls.service_type.value))),i.yb(8),i.pc("ngIf",e.serviceForm.showError("api_password",t,"required"))}}function pd(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,107),i.Rb())}function md(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,108),i.Rb())}function bd(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",7),i.Sb(1,"label",102),i.Sb(2,"span"),i.Wb(3,103),i.Rb(),i.Sb(4,"cd-helper"),i.Wb(5,104),i.Rb(),i.Rb(),i.Sb(6,"div",10),i.Sb(7,"textarea",105),i.Oc(8,"              "),i.Rb(),i.Sb(9,"input",106),i.gc("change",(function(t){return i.Dc(e),i.ic(2).fileUpload(t.target.files,"ssl_cert")})),i.Rb(),i.Mc(10,pd,2,0,"span",15),i.Mc(11,md,2,0,"span",15),i.Rb(),i.Rb()}if(2&e){const e=i.ic(2),t=i.Ac(2);i.yb(10),i.pc("ngIf",e.serviceForm.showError("ssl_cert",t,"required")),i.yb(1),i.pc("ngIf",e.serviceForm.showError("ssl_cert",t,"pattern"))}}function gd(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,113),i.Rb())}function _d(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,114),i.Rb())}function yd(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",7),i.Sb(1,"label",109),i.Sb(2,"span"),i.Wb(3,110),i.Rb(),i.Sb(4,"cd-helper"),i.Wb(5,111),i.Rb(),i.Rb(),i.Sb(6,"div",10),i.Sb(7,"textarea",112),i.Oc(8,"              "),i.Rb(),i.Sb(9,"input",106),i.gc("change",(function(t){return i.Dc(e),i.ic(2).fileUpload(t.target.files,"ssl_key")})),i.Rb(),i.Mc(10,gd,2,0,"span",15),i.Mc(11,_d,2,0,"span",15),i.Rb(),i.Rb()}if(2&e){const e=i.ic(2),t=i.Ac(2);i.yb(10),i.pc("ngIf",e.serviceForm.showError("ssl_key",t,"required")),i.yb(1),i.pc("ngIf",e.serviceForm.showError("ssl_key",t,"pattern"))}}function vd(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"div",7),i.Sb(2,"div",19),i.Sb(3,"div",20),i.Nb(4,"input",99),i.Sb(5,"label",100),i.Wb(6,101),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Mc(7,bd,12,2,"div",24),i.Mc(8,yd,12,2,"div",24),i.Pb()),2&e){const e=i.ic();i.yb(7),i.pc("ngIf",e.serviceForm.controls.ssl.value),i.yb(1),i.pc("ngIf",e.serviceForm.controls.ssl.value)}}const wd=function(){return["mds","rgw","nfs","iscsi"]},Sd=function(){return["rgw","iscsi"]};let Md=(()=>{class e extends qn.a{constructor(e,t,n,i,r,s,o){super(),this.actionLabels=e,this.cephServiceService=t,this.formBuilder=n,this.hostService=i,this.poolService=r,this.router=s,this.taskWrapperService=o,this.serviceTypes=[],this.labelClick=new $l.a,this.labelFocus=new $l.a,this.searchLabels=e=>Object(Hl.a)(e.pipe(Bl(200),Object(Jl.a)()),this.labelFocus,this.labelClick.pipe(Object(Ql.a)(()=>!this.typeahead.isPopupOpen()))).pipe(Object(Vi.a)(e=>this.labels.filter(t=>t.toLowerCase().indexOf(e.toLowerCase())>-1).slice(0,10))),this.resource="service",this.hosts={options:[],messages:new lr.a({empty:"There are no hosts.",filter:"Filter hosts"})},this.createForm()}createForm(){this.serviceForm=this.formBuilder.group({service_type:[null,[kn.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.composeIf({service_type:"rgw"},[kn.A.required,Cn.a.custom("rgwPattern",e=>!jt.a.isEmpty(e)&&!/^[^.]+\.[^.]+(\.[^.]+)?$/.test(e))])]],placement:["hosts"],label:[null,[Cn.a.requiredIf({placement:"label",unmanaged:!1})]],hosts:[[]],count:[null,[Cn.a.number(!1),kn.A.min(1)]],unmanaged:[!1],pool:[null,[Cn.a.requiredIf({service_type:"nfs",unmanaged:!1}),Cn.a.requiredIf({service_type:"iscsi",unmanaged:!1})]],namespace:[null],rgw_frontend_port:[null,[Cn.a.number(!1),kn.A.min(1),kn.A.max(65535)]],trusted_ip_list:[null],api_port:[null,[Cn.a.number(!1),kn.A.min(1),kn.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})]],ssl:[!1],ssl_cert:["",[Cn.a.composeIf({service_type:"rgw",unmanaged:!1,ssl:!0},[kn.A.required,Cn.a.sslCert()]),Cn.a.composeIf({service_type:"iscsi",unmanaged:!1,ssl:!0},[kn.A.required,Cn.a.sslCert()])]],ssl_key:["",[Cn.a.composeIf({service_type:"rgw",unmanaged:!1,ssl:!0},[kn.A.required,Cn.a.sslPrivKey()]),Cn.a.composeIf({service_type:"iscsi",unmanaged:!1,ssl:!0},[kn.A.required,Cn.a.sslPrivKey()])]]})}ngOnInit(){this.action=this.actionLabels.CREATE,this.cephServiceService.getKnownTypes().subscribe(e=>{this.serviceTypes=jt.a.difference(e,["container","osd"]).sort()}),this.hostService.list().subscribe(e=>{const t=[];jt.a.forEach(e,e=>{if(jt.a.get(e,"sources.orchestrator",!1)){const n=new Ru.a(!1,jt.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})}goToListView(){this.router.navigate(["/services"])}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")}onSubmit(){const e=this,t=this.serviceForm.value,n=t.service_id,i=t.service_type,r={service_type:i,placement:{},unmanaged:t.unmanaged};let s=i;if(jt.a.isString(n)&&!jt.a.isEmpty(n)&&(s=`${i}.${n}`,r.service_id=n),!t.unmanaged){switch(t.placement){case"hosts":t.hosts.length>0&&(r.placement.hosts=t.hosts);break;case"label":r.placement.label=t.label}switch(jt.a.isNumber(t.count)&&t.count>0&&(r.placement.count=t.count),i){case"nfs":r.pool=t.pool,jt.a.isString(t.namespace)&&!jt.a.isEmpty(t.namespace)&&(r.namespace=t.namespace);break;case"rgw":jt.a.isNumber(t.rgw_frontend_port)&&t.rgw_frontend_port>0&&(r.rgw_frontend_port=t.rgw_frontend_port),r.ssl=t.ssl,t.ssl&&(r.rgw_frontend_ssl_certificate=t.ssl_cert.trim(),r.rgw_frontend_ssl_key=t.ssl_key.trim());break;case"iscsi":r.pool=t.pool,jt.a.isString(t.trusted_ip_list)&&!jt.a.isEmpty(t.trusted_ip_list)&&(r.trusted_ip_list=t.trusted_ip_list.trim()),jt.a.isNumber(t.api_port)&&t.api_port>0&&(r.api_port=t.api_port),r.api_user=t.api_user,r.api_password=t.api_password,r.api_secure=t.ssl,t.ssl&&(r.ssl_cert=t.ssl_cert.trim(),r.ssl_key=t.ssl_key.trim())}}this.taskWrapperService.wrapTaskAroundCall({task:new er.a("service/"+gn.e.CREATE,{service_name:s}),call:this.cephServiceService.create(r)}).subscribe({error(){e.serviceForm.setErrors({cdSubmitButton:!0})},complete(){e.goToListView()}})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(gn.b),i.Mb(Fr),i.Mb(So.a),i.Mb(Xi),i.Mb(Lu.a),i.Mb(Pt.e),i.Mb(tr.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-service-form"]],viewQuery:function(e,t){var n;1&e&&i.Tc(Qt.G,!0),2&e&&i.zc(n=i.hc())&&(t.typeahead=n.first)},features:[i.vb],decls:44,vars:31,consts:function(){return[[1,"cd-col-form"],["novalidate","",3,"formGroup"],["frm","ngForm"],[1,"card"],[1,"card-header"],"" + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + "",[1,"card-body"],[1,"form-group","row"],["for","service_type",1,"cd-col-form-label","required"],"Type",[1,"cd-col-form-input"],["id","service_type","formControlName","service_type",1,"form-control","custom-select"],[3,"ngValue"],"-- Select a service type --",[3,"value",4,"ngFor","ngForOf"],["class","invalid-feedback",4,"ngIf"],["for","service_id",1,"cd-col-form-label",3,"ngClass"],"Id",["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"],"Unmanaged",["class","form-group row",4,"ngIf"],[4,"ngIf"],[1,"card-footer"],[1,"text-right"],[3,"form","submitText","submitActionEvent"],[3,"value"],[1,"invalid-feedback"],"This field is required.","This field is required.","The value does not match the pattern " + "\ufffd#2\ufffd" + "<realm_name>.<zone_name>[.<subcluster>]" + "\ufffd/#2\ufffd" + ".",["for","placement",1,"cd-col-form-label"],"Placement",["id","placement","formControlName","placement",1,"form-control","custom-select"],["value","hosts"],"Hosts",["value","label"],"Label",["for","label",1,"cd-col-form-label"],"Label",["id","label","type","text","formControlName","label",1,"form-control",3,"ngbTypeahead","focus","click"],"This field is required.",["for","hosts",1,"cd-col-form-label"],"Hosts",["id","hosts",3,"data","options","messages"],["for","count",1,"cd-col-form-label"],"Count","Only that number of daemons will be created.",["id","count","type","number","formControlName","count","min","1",1,"form-control"],"The value must be at least 1.","The entered value needs to be a number.",["for","pool",1,"cd-col-form-label","required"],"Pool",["id","pool","name","pool","formControlName","pool",1,"form-control","custom-select"],[3,"ngValue",4,"ngIf"],["for","namespace",1,"cd-col-form-label"],"Namespace",["id","namespace","type","text","formControlName","namespace",1,"form-control"],"Loading...","-- No pools available --","-- Select a pool --","This field is required.",["for","rgw_frontend_port",1,"cd-col-form-label"],"Port",["id","rgw_frontend_port","type","number","formControlName","rgw_frontend_port","min","1","max","65535",1,"form-control"],"The entered value needs to be a number.","The value must be at least 1.","The value cannot exceed 65535.","Pool",["for","trusted_ip_list",1,"cd-col-form-label"],"Trusted IPs","Comma separated list of IP addresses.","Please add the " + "\ufffd#21\ufffd" + "Ceph Manager" + "\ufffd/#21\ufffd" + " IP addresses here, otherwise the iSCSI gateways can't be reached.",["id","trusted_ip_list","type","text","formControlName","trusted_ip_list",1,"form-control"],["for","api_port",1,"cd-col-form-label"],"Port",["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"],"User",["id","api_user","type","text","formControlName","api_user",1,"form-control"],["for","api_password",1,"cd-col-form-label",3,"ngClass"],"Password",[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"],"Loading...","-- No pools available --","-- Select a pool --","This field is required.","The entered value needs to be a number.","The value must be at least 1.","The value cannot exceed 65535.","This field is required.","This field is required.",["id","ssl","type","checkbox","formControlName","ssl",1,"custom-control-input"],["for","ssl",1,"custom-control-label"],"SSL",["for","ssl_cert",1,"cd-col-form-label"],"Certificate","The SSL certificate in PEM format.",["id","ssl_cert","formControlName","ssl_cert","rows","5",1,"form-control","resize-vertical","text-monospace","text-pre"],["type","file",3,"change"],"This field is required.","Invalid SSL certificate.",["for","ssl_key",1,"cd-col-form-label"],"Private key","The SSL private key in PEM format.",["id","ssl_key","formControlName","ssl_key","rows","5",1,"form-control","resize-vertical","text-monospace","text-pre"],"This field is required.","Invalid SSL private key."]},template:function(e,t){if(1&e&&(i.Sb(0,"div",0),i.Sb(1,"form",1,2),i.Sb(3,"div",3),i.Sb(4,"div",4),i.Wb(5,5),i.jc(6,"titlecase"),i.jc(7,"upperFirst"),i.Rb(),i.Sb(8,"div",6),i.Sb(9,"div",7),i.Sb(10,"label",8),i.Wb(11,9),i.Rb(),i.Sb(12,"div",10),i.Sb(13,"select",11),i.Sb(14,"option",12),i.Wb(15,13),i.Rb(),i.Mc(16,Iu,2,2,"option",14),i.Rb(),i.Mc(17,Pu,2,0,"span",15),i.Rb(),i.Rb(),i.Sb(18,"div",7),i.Sb(19,"label",16),i.Wb(20,17),i.Rb(),i.Sb(21,"div",10),i.Nb(22,"input",18),i.Mc(23,Nu,2,0,"span",15),i.Mc(24,ju,3,0,"span",15),i.Rb(),i.Rb(),i.Sb(25,"div",7),i.Sb(26,"div",19),i.Sb(27,"div",20),i.Nb(28,"input",21),i.Sb(29,"label",22),i.Wb(30,23),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Mc(31,Fu,9,0,"div",24),i.Mc(32,zu,6,2,"div",24),i.Mc(33,$u,5,3,"div",24),i.Mc(34,Vu,10,2,"div",24),i.Mc(35,Qu,16,5,"ng-container",25),i.Mc(36,ed,9,3,"ng-container",25),i.Mc(37,fd,48,18,"ng-container",25),i.Mc(38,vd,9,2,"ng-container",25),i.Rb(),i.Sb(39,"div",26),i.Sb(40,"div",27),i.Sb(41,"cd-form-button-panel",28),i.gc("submitActionEvent",(function(){return t.onSubmit()})),i.jc(42,"titlecase"),i.jc(43,"upperFirst"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()),2&e){const e=i.Ac(2);i.yb(1),i.pc("formGroup",t.serviceForm),i.yb(6),i.ac(i.kc(6,19,t.action))(i.kc(7,21,t.resource)),i.Xb(5),i.yb(7),i.pc("ngValue",null),i.yb(2),i.pc("ngForOf",t.serviceTypes),i.yb(1),i.pc("ngIf",t.serviceForm.showError("service_type",e,"required")),i.yb(2),i.pc("ngClass",i.uc(28,hd,i.tc(27,wd).includes(t.serviceForm.controls.service_type.value))),i.yb(4),i.pc("ngIf",t.serviceForm.showError("service_id",e,"required")),i.yb(1),i.pc("ngIf",t.serviceForm.showError("service_id",e,"rgwPattern")),i.yb(7),i.pc("ngIf",!t.serviceForm.controls.unmanaged.value),i.yb(1),i.pc("ngIf",!t.serviceForm.controls.unmanaged.value&&"label"===t.serviceForm.controls.placement.value),i.yb(1),i.pc("ngIf",!t.serviceForm.controls.unmanaged.value&&"hosts"===t.serviceForm.controls.placement.value),i.yb(1),i.pc("ngIf",!t.serviceForm.controls.unmanaged.value),i.yb(1),i.pc("ngIf",!t.serviceForm.controls.unmanaged.value&&"nfs"===t.serviceForm.controls.service_type.value),i.yb(1),i.pc("ngIf",!t.serviceForm.controls.unmanaged.value&&"rgw"===t.serviceForm.controls.service_type.value),i.yb(1),i.pc("ngIf",!t.serviceForm.controls.unmanaged.value&&"iscsi"===t.serviceForm.controls.service_type.value),i.yb(1),i.pc("ngIf",!t.serviceForm.controls.unmanaged.value&&i.tc(30,Sd).includes(t.serviceForm.controls.service_type.value)),i.yb(3),i.pc("form",t.serviceForm)("submitText",i.kc(42,23,t.action)+" "+i.kc(43,25,t.resource))}},directives:[kn.C,kn.r,Zn.a,kn.k,Xn.a,On.a,kn.z,ei.a,kn.q,kn.i,kn.u,kn.B,wt.q,wt.r,wt.p,kn.d,kn.b,ti.a,Qt.G,Eu.a,Mo.a,kn.v,Au.a,eo.a],pipes:[wt.A,ir.a],styles:[""]}),e})();var kd=n("3E0/"),xd=n("nYR2");let Dd=(()=>{class e{transform(e){if(jt.a.isUndefined(e))return "no spec";if(jt.a.get(e,"unmanaged",!1))return "unmanaged";const t=[],n=jt.a.get(e,"placement.hosts"),i=jt.a.get(e,"placement.count"),r=jt.a.get(e,"placement.label"),s=jt.a.get(e,"placement.host_pattern");return jt.a.isArray(n)&&t.push(...n),jt.a.isNumber(i)&&t.push("count:" + i + ""),jt.a.isString(r)&&t.push("label:" + r + ""),jt.a.isString(s)&&t.push(...s),t.join(";")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Lb({name:"placement",type:e,pure:!0}),e})();function Td(e,t){if(1&e&&(i.Qb(0),i.Nb(1,"cd-service-daemon-list",1),i.Pb()),2&e){const e=i.ic();i.yb(1),i.pc("serviceName",e.selection.service_name)}}let Cd=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({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&&i.Mc(0,Td,2,1,"ng-container",0),2&e&&i.pc("ngIf",t.selection)},directives:[wt.r,Ur],styles:[""]}),e})();function Od(e,t){1&e&&i.Nb(0,"cd-orchestrator-doc-panel")}function Ld(e,t){if(1&e){const e=i.Tb();i.Qb(0),i.Sb(1,"cd-table",1),i.gc("fetchData",(function(t){return i.Dc(e),i.ic().getServices(t)}))("setExpandedRow",(function(t){return i.Dc(e),i.ic().setExpandedRow(t)}))("updateSelection",(function(t){return i.Dc(e),i.ic().updateSelection(t)})),i.Nb(2,"cd-table-actions",2),i.Nb(3,"cd-service-details",3),i.Rb(),i.Pb()}if(2&e){const e=i.ic();i.yb(1),i.pc("data",e.services)("columns",e.columns)("autoReload",5e3)("hasDetails",!0),i.yb(1),i.pc("permission",e.permissions.hosts)("selection",e.selection)("tableActions",e.tableActions),i.yb(1),i.pc("permissions",e.permissions)("selection",e.expandedRow)}}let Rd=(()=>{class e extends $t.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.urlBuilder=a,this.hiddenColumns=[],this.showDocPanel=!1,this.actionOrchFeatures={create:[ur.SERVICE_CREATE],delete:[ur.SERVICE_DELETE]},this.columns=[],this.services=[],this.isLoadingServices=!1,this.selection=new Wt.a,this.permissions=this.authStorageService.getPermissions(),this.tableActions=[{permission:"create",icon:_n.a.add,routerLink:()=>this.urlBuilder.getCreate(),name:this.actionLabels.CREATE,canBePrimary:e=>!e.hasSelection,disable:e=>this.getDisable("create",e)},{permission:"delete",icon:_n.a.destroy,click:()=>this.deleteAction(),name:this.actionLabels.DELETE,disable:e=>this.getDisable("delete",e)}]}ngOnInit(){const e=[{name:"Service",prop:"service_name",flexGrow:1},{name:"Container image name",prop:"status.container_image_name",flexGrow:3},{name:"Container image ID",prop:"status.container_image_id",flexGrow:3,cellTransformation:Ht.a.truncate,customTemplateConfig:{length:12}},{name:"Placement",prop:"",pipe:new Dd,flexGrow:1},{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){return"delete"===e&&!(null==t?void 0:t.hasSingleSelection)||this.orchService.getTableActionDisableDesc(this.orchStatus,this.actionOrchFeatures[e])}getServices(e){this.isLoadingServices||(this.isLoadingServices=!0,this.cephServiceService.list().subscribe(e=>{this.services=e,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 er.a("service/"+gn.e.DELETE,{service_name:e.service_name}),call:this.cephServiceService.delete(e.service_name)}).pipe(Object(kd.a)(2e3),Object(xd.a)(()=>{this.table.refreshBtn()}))})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(gn.b),i.Mb(Jt.a),i.Mb(vn.a),i.Mb(cr),i.Mb(Fr),i.Mb(Yr.a),i.Mb(tr.a),i.Mb(hr.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-services"]],viewQuery:function(e,t){var n;1&e&&i.Jc(Bt.a,!0),2&e&&i.zc(n=i.hc())&&(t.table=n.first)},inputs:{hostname:"hostname",hiddenColumns:"hiddenColumns"},features:[i.xb([{provide:hr.a,useValue:new hr.a("services")}]),i.vb,i.wb],decls:2,vars:2,consts:[[4,"ngIf"],["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&&(i.Mc(0,Od,1,0,"cd-orchestrator-doc-panel",0),i.Mc(1,Ld,4,9,"ng-container",0)),2&e&&(i.pc("ngIf",t.showDocPanel),i.yb(1),i.pc("ngIf",null==t.orchStatus?null:t.orchStatus.available))},directives:[wt.r,Rr,Bt.a,Sn.a,Cd],styles:[""]}),e})(),Ed=(()=>{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)(i.dc(o.b))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Ad=(()=>{class e{constructor(){this.visible=!1,this.update=new i.o}setVisibility(e){this.visible=e,this.update.emit(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Id(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div"),i.Oc(1," The plugin is already "),i.Sb(2,"b"),i.Oc(3,"enabled"),i.Rb(),i.Oc(4,". Click "),i.Sb(5,"b"),i.Oc(6,"Deactivate"),i.Rb(),i.Oc(7," to disable it.\xa0 "),i.Sb(8,"button",71),i.gc("click",(function(){return i.Dc(e),i.ic(3).disableModule("The Telemetry module has been disabled successfully.")})),i.Wb(9,72),i.Rb(),i.Rb()}}function Pd(e,t){1&e&&(i.Sb(0,"span",73),i.Wb(1,74),i.Rb())}function Nd(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div"),i.Sb(1,"form",4,5),i.Sb(3,"div",6),i.Sb(4,"div",7),i.Wb(5,8),i.Rb(),i.Sb(6,"div",9),i.Sb(7,"p"),i.cc(8,10),i.Nb(9,"br"),i.Nb(10,"a",11),i.Nb(11,"br"),i.Nb(12,"br"),i.Nb(13,"b"),i.Zb(),i.Rb(),i.Mc(14,Id,10,0,"div",12),i.Sb(15,"legend"),i.Wb(16,13),i.Rb(),i.Sb(17,"p"),i.Wb(18,14),i.Rb(),i.Sb(19,"div",15),i.Sb(20,"label",16),i.Qb(21),i.Wb(22,17),i.Pb(),i.Sb(23,"cd-helper"),i.Qb(24),i.Wb(25,18),i.Pb(),i.Sb(26,"ul"),i.Sb(27,"li"),i.Wb(28,19),i.Rb(),i.Sb(29,"li"),i.Wb(30,20),i.Rb(),i.Sb(31,"li"),i.Wb(32,21),i.Rb(),i.Sb(33,"li"),i.Wb(34,22),i.Rb(),i.Sb(35,"li"),i.Wb(36,23),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(37,"div",24),i.Sb(38,"div",25),i.Nb(39,"input",26),i.Nb(40,"label",27),i.Rb(),i.Rb(),i.Rb(),i.Sb(41,"div",15),i.Sb(42,"label",28),i.Qb(43),i.Wb(44,29),i.Pb(),i.Sb(45,"cd-helper"),i.Qb(46),i.Wb(47,30),i.Pb(),i.Sb(48,"ul"),i.Sb(49,"li"),i.Wb(50,31),i.Rb(),i.Sb(51,"li"),i.Wb(52,32),i.Rb(),i.Sb(53,"li"),i.Wb(54,33),i.Rb(),i.Sb(55,"li"),i.Wb(56,34),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(57,"div",24),i.Sb(58,"div",25),i.Nb(59,"input",35),i.Nb(60,"label",36),i.Rb(),i.Rb(),i.Rb(),i.Sb(61,"div",15),i.Sb(62,"label",37),i.Qb(63),i.Wb(64,38),i.Pb(),i.Sb(65,"cd-helper",39),i.Yb(66,40),i.Rb(),i.Rb(),i.Sb(67,"div",24),i.Sb(68,"div",25),i.Nb(69,"input",41),i.Nb(70,"label",42),i.Rb(),i.Rb(),i.Rb(),i.Sb(71,"div",15),i.Sb(72,"label",43),i.Qb(73),i.Wb(74,44),i.Pb(),i.Sb(75,"cd-helper"),i.Qb(76),i.Wb(77,45),i.Pb(),i.Sb(78,"ul"),i.Sb(79,"li"),i.Oc(80,"Cluster description"),i.Rb(),i.Sb(81,"li"),i.Oc(82,"Contact email address"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(83,"div",24),i.Sb(84,"div",25),i.Nb(85,"input",46),i.Nb(86,"label",47),i.Rb(),i.Rb(),i.Rb(),i.Sb(87,"legend"),i.Qb(88),i.Wb(89,48),i.Pb(),i.Sb(90,"cd-helper"),i.Wb(91,49),i.Rb(),i.Rb(),i.Sb(92,"div",15),i.Sb(93,"label",50),i.Wb(94,51),i.Rb(),i.Sb(95,"div",24),i.Nb(96,"input",52),i.Rb(),i.Rb(),i.Sb(97,"div",15),i.Sb(98,"label",53),i.Wb(99,54),i.Rb(),i.Sb(100,"div",24),i.Sb(101,"input",55),i.Yb(102,56),i.Rb(),i.Rb(),i.Rb(),i.Sb(103,"legend"),i.Wb(104,57),i.Rb(),i.Sb(105,"div",15),i.Sb(106,"label",58),i.Qb(107),i.Wb(108,59),i.Pb(),i.Sb(109,"cd-helper"),i.Wb(110,60),i.Rb(),i.Rb(),i.Sb(111,"div",24),i.Nb(112,"input",61),i.Mc(113,Pd,2,0,"span",62),i.Rb(),i.Rb(),i.Sb(114,"div",15),i.Sb(115,"label",63),i.Qb(116),i.Wb(117,64),i.Pb(),i.Sb(118,"cd-helper"),i.Sb(119,"p"),i.Wb(120,65),i.Rb(),i.Sb(121,"p"),i.Wb(122,66),i.Rb(),i.Rb(),i.Rb(),i.Sb(123,"div",24),i.Nb(124,"input",67),i.Rb(),i.Rb(),i.Nb(125,"br"),i.Sb(126,"p"),i.cc(127,68),i.Nb(128,"b"),i.Zb(),i.Rb(),i.Rb(),i.Sb(129,"div",69),i.Sb(130,"div",70),i.Sb(131,"button",71),i.gc("click",(function(){return i.Dc(e),i.ic(2).next()})),i.Qb(132),i.Oc(133),i.Pb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.Ac(2),t=i.ic(2);i.yb(1),i.pc("formGroup",t.configForm),i.yb(4),i.ac(t.step),i.Xb(5),i.yb(8),i.ac(t.sendToUrl)(t.sendToDeviceUrl),i.Xb(8),i.yb(1),i.pc("ngIf",t.moduleEnabled),i.yb(99),i.pc("ngIf",t.configForm.showError("interval",e,"min")),i.yb(20),i.Pc(t.actionLabels.NEXT)}}function jd(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div"),i.Sb(1,"form",75,76),i.Sb(3,"div",6),i.Sb(4,"div",7),i.Wb(5,77),i.Rb(),i.Sb(6,"div",9),i.Sb(7,"div",15),i.Sb(8,"label",78),i.cc(9,79),i.Sb(10,"cd-helper",39),i.Yb(11,80),i.Rb(),i.Zb(),i.Rb(),i.Sb(12,"div",24),i.Nb(13,"input",81),i.Rb(),i.Rb(),i.Sb(14,"div",15),i.Sb(15,"label",82),i.cc(16,83),i.Sb(17,"cd-helper",39),i.Yb(18,84),i.Rb(),i.Zb(),i.Rb(),i.Sb(19,"div",24),i.Nb(20,"textarea",85),i.Rb(),i.Rb(),i.Sb(21,"div",15),i.Sb(22,"div",86),i.Sb(23,"div",87),i.Nb(24,"cd-download-button",88),i.Nb(25,"cd-copy-2-clipboard-button",89),i.Rb(),i.Rb(),i.Rb(),i.Sb(26,"div",15),i.Sb(27,"div",86),i.Sb(28,"div",25),i.Nb(29,"input",90),i.Sb(30,"label",91),i.cc(31,92),i.Nb(32,"a",93),i.Zb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(33,"div",69),i.Sb(34,"div",70),i.Sb(35,"cd-form-button-panel",94),i.gc("submitActionEvent",(function(){return i.Dc(e),i.ic(2).onSubmit()}))("backActionEvent",(function(){return i.Dc(e),i.ic(2).back()})),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.ic(2);i.yb(1),i.pc("formGroup",e.previewForm),i.yb(4),i.ac(e.step),i.Xb(5),i.yb(19),i.pc("objectItem",e.report),i.yb(11),i.pc("form",e.previewForm)("submitText",e.actionLabels.UPDATE)("cancelText",e.actionLabels.BACK)}}function Fd(e,t){if(1&e&&(i.Sb(0,"div",1),i.Qb(1,2),i.Mc(2,Nd,134,7,"div",3),i.Mc(3,jd,36,6,"div",3),i.Pb(),i.Rb()),2&e){const e=i.ic();i.yb(1),i.pc("ngSwitch",e.step),i.yb(1),i.pc("ngSwitchCase",1),i.yb(1),i.pc("ngSwitchCase",2)}}let Yd=(()=>{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(vo.a)(e).subscribe(e=>{const t=e[1];this.moduleEnabled=t.enabled,this.sendToUrl=t.url,this.sendToDeviceUrl=t.device_url,this.options=jt.a.pick(e[0],this.requiredFields);const n=jt.a.pick(t,this.requiredFields);this.createConfigForm(),this.configForm.setValue(n),this.loadingReady()},e=>{this.loadingError()})}createConfigForm(){const e={};jt.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,kn.A.requiredTrue]};this.previewForm=this.formBuilder.group(e)}getValidators(e){const t=[];switch(e.type){case"int":t.push(Cn.a.number()),t.push(kn.A.required),jt.a.isNumber(e.min)&&t.push(kn.A.min(e.min)),jt.a.isNumber(e.max)&&t.push(kn.A.max(e.max));break;case"str":jt.a.isNumber(e.min)&&t.push(kn.A.minLength(e.min)),jt.a.isNumber(e.max)&&t.push(kn.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={};jt.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(yn.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(yn.a.success,"The Telemetry module has been configured and activated successfully."),this.router.navigate([""])})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(gn.b),i.Mb(So.a),i.Mb(wo),i.Mb(wn.a),i.Mb(Pt.e),i.Mb(Ed),i.Mb(Ad))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-telemetry"]],features:[i.vb],decls:1,vars:1,consts:function(){var e,t,n,r,s,o,a,c,l,u,d,h,f,p,m,b,g,_,y,v,w,S,M,k,x,D,T,C,O,L,R,E,A,I,P,N,j,F,Y;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=i.bc(t),n="Channels",r="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",y="Includes information about device metrics like anonymized SMART metrics.",v="Ident",w="Includes user-provided identifying information about the cluster:",S="Contact Information",M="Submitting any contact information is completely optional and disabled by default.",k="Contact",x="Description",D="My first Ceph cluster",T="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",R="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",E="You can also include a user:pass if needed e.g. https://ceph:telemetry@10.0.0.1:8080",A="" + "\ufffd#128\ufffd" + "Note:" + "\ufffd/#128\ufffd" + " By clicking 'Next' you will first see a preview of the report content before you can activate the automatic submission of your data.",I="Deactivate",P="The entered value is too low! It must be greater or equal to 8.",N="Step " + "\ufffd0\ufffd" + " of 2: Telemetry report preview",j="A randomized UUID to identify a particular cluster over the course of several telemetry reports.",F="Report ID " + "\ufffd#10\ufffd" + "" + "\ufffd/#10\ufffd" + "",Y="The actual telemetry data that will be submitted.",[["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,r,[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"],_,[6,"html"],["html",y],["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"],v,w,["type","checkbox","id","channel_ident","formControlName","channel_ident",1,"custom-control-input"],["for","channel_ident",1,"custom-control-label"],S,M,["for","contact",1,"cd-col-form-label"],k,["id","contact","type","text","formControlName","contact","placeholder","Example User <user@example.com>",1,"form-control"],["for","description",1,"cd-col-form-label"],x,["id","description","type","text","formControlName","description",1,"form-control",6,"placeholder"],["placeholder",D],T,["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,R,E,["id","proxy","type","text","formControlName","proxy","placeholder","https://10.0.0.1:8080",1,"form-control"],A,[1,"card-footer"],[1,"button-group","text-right"],["type","button",1,"btn","btn-light",3,"click"],I,[1,"invalid-feedback"],P,["name","previewForm","novalidate","",3,"formGroup"],["frm","ngForm"],N,["for","reportId",1,"cd-col-form-label"],F,["html",j],["type","text","id","reportId","formControlName","reportId","readonly","",1,"form-control"],["for","report",1,"cd-col-form-label"],"Report preview " + "\ufffd#17\ufffd" + "" + "\ufffd/#17\ufffd" + "",["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"],"I agree to my telemetry data being submitted under the " + "\ufffd#32\ufffd" + "Community Data License Agreement - Sharing - Version 1.0" + "\ufffd/#32\ufffd" + "",["href","https://cdla.io/sharing-1-0/"],[3,"form","submitText","cancelText","submitActionEvent","backActionEvent"]]},template:function(e,t){1&e&&i.Mc(0,Fd,4,3,"div",0),2&e&&i.pc("cdFormLoading",t.loading)},directives:[Kn.a,wt.t,wt.u,kn.C,kn.r,Zn.a,kn.k,wt.r,Xn.a,Mo.a,On.a,kn.b,ei.a,kn.q,kn.i,kn.d,kn.v,Xs,eo.a,ti.a],styles:[""]}),e})();var zd=n("2Vo4"),$d=n("Y7HM");function Hd(e){const{subscriber:t,counter:n,period:i}=e;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}let Wd=(()=>{class e{constructor(e){this.ngZone=e,this.intervalDataSource=new zd.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=Vl.a){return(!Object($d.a)(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=Vl.a),new xu.a(n=>(n.add(t.schedule(Hd,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)(i.dc(i.A))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Vd(e,t){if(1&e&&(i.Sb(0,"option",8),i.Oc(1),i.Rb()),2&e){const e=t.$implicit,n=i.ic();i.pc("value",n.intervalList[e]),i.yb(1),i.Pc(e)}}let Bd=(()=>{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)(i.Mb(Wd))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-refresh-selector"]],decls:8,vars:2,consts:function(){return[[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"],"Refresh",["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&&(i.Sb(0,"div",0),i.Sb(1,"div",1),i.Sb(2,"div",2),i.Sb(3,"form",3),i.Sb(4,"label",4),i.Wb(5,5),i.Rb(),i.Sb(6,"select",6),i.gc("change",(function(e){return t.changeRefreshInterval(e.target.value)}))("ngModelChange",(function(e){return t.selectedInterval=e})),i.Mc(7,Vd,2,2,"option",7),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()),2&e&&(i.yb(6),i.pc("ngModel",t.selectedInterval),i.yb(1),i.pc("ngForOf",t.intervalKeys))},directives:[kn.C,kn.r,kn.s,On.a,kn.z,ei.a,kn.q,kn.t,wt.q,kn.u,kn.B],styles:[""]}),e})();var Ud=n("d+Og"),Gd=n("ej+x"),qd=n("+EN/"),Jd=n.n(qd);function Qd(e,t){if(1&e&&(i.Sb(0,"div",6),i.cc(1,7),i.jc(2,"lowercase"),i.Sb(3,"cd-doc",8),i.Yb(4,9),i.jc(5,"lowercase"),i.Rb(),i.Zb(),i.Rb()),2&e){const e=i.ic();i.yb(3),i.rc("section","dashboard-landing-page-",i.kc(5,4,e.groupTitle),""),i.yb(2),i.ac(i.kc(2,2,e.groupTitle)),i.Xb(1)}}const Kd=function(e,t){return[e,t]},Zd=["*"];let Xd=(()=>{class e{constructor(){this.icons=_n.a}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-info-group"]],inputs:{groupTitle:"groupTitle"},ngContentSelectors:Zd,decls:11,vars:6,consts:function(){var e;return e="here",[[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"],"For an overview of " + "\ufffd0\ufffd" + " widgets click " + "\ufffd#3\ufffd" + "" + "\ufffd/#3\ufffd" + "",[3,"section",6,"docText"],["docText",e]]},template:function(e,t){if(1&e){const e=i.Tb();i.oc(),i.Sb(0,"div",0),i.Sb(1,"div",1,2),i.Sb(3,"span"),i.Oc(4),i.Rb(),i.Sb(5,"button",3),i.gc("click",(function(){return i.Dc(e),i.Ac(2).toggle()})),i.Nb(6,"i",4),i.Rb(),i.Rb(),i.Rb(),i.Sb(7,"div",0),i.nc(8),i.Rb(),i.Mc(9,Qd,6,6,"ng-template",null,5,i.Nc)}if(2&e){const e=i.Ac(10);i.yb(1),i.pc("ngbPopover",e),i.yb(3),i.Pc(t.groupTitle),i.yb(2),i.pc("ngClass",i.vc(3,Kd,t.icons.infoCircle,t.icons.large))}},directives:[Qt.w,On.a,wt.p,Cr.a],pipes:[wt.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 eh(e,t){if(1&e&&(i.Sb(0,"a",6),i.Oc(1),i.Rb()),2&e){const e=i.ic();i.pc("routerLink",e.link),i.yb(1),i.Pc(e.cardTitle)}}function th(e,t){if(1&e&&i.Oc(0),2&e){const e=i.ic();i.Qc(" ",e.cardTitle," ")}}const nh=["*"];let ih=(()=>{class e{constructor(){this.cardClass=""}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-info-card"]],inputs:{cardTitle:"cardTitle",link:"link",cardClass:"cardClass",contentClass:"contentClass"},ngContentSelectors:nh,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&&(i.oc(),i.Sb(0,"div",0),i.Sb(1,"div",1),i.Sb(2,"h4",2),i.Mc(3,eh,2,2,"a",3),i.Mc(4,th,1,1,"ng-template",null,4,i.Nc),i.Rb(),i.Sb(6,"div",5),i.nc(7),i.Rb(),i.Rb(),i.Rb()),2&e){const e=i.Ac(5);i.pc("ngClass",t.cardClass),i.yb(3),i.pc("ngIf",t.link)("ngIfElse",e),i.yb(3),i.pc("ngClass",t.contentClass)}},directives:[wt.p,wt.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 rh=n("MO+k");const sh=["chartCanvas"],oh=["chartTooltip"];let ah=(()=>{class e{constructor(e,t){this.dimlessBinary=e,this.dimless=t,this.config={},this.isBytesData=!1,this.showLabelAsTooltip=!1,this.prepareFn=new i.o,this.chartConfig={chartType:"doughnut",dataset:[{label:null,borderWidth:0}],colors:[{backgroundColor:[Jd.a.chartHealthColorGreen,Jd.a.chartHealthColorYellow,Jd.a.chartHealthColorOrange,Jd.a.chartHealthColorRed,Jd.a.chartHealthColorBlue]}],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:Jd.a.chartHealthTootlipBgColor,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="Helvetica Neue, Helvetica, Arial, sans-serif";rh.defaults.global.defaultFontFamily=t;const n=e.ctx;if(!e.options.plugins.center_text||!e.data.datasets[0].label)return;n.save();const i=e.data.datasets[0].label.split("\n"),r=(e.chartArea.left+e.chartArea.right)/2,s=(e.chartArea.top+e.chartArea.bottom)/2;n.textAlign="center",n.textBaseline="middle",n.font="24px "+t,n.fillStyle=Jd.a.chartHealthCenterTextColor,n.fillText(i[0],r,s-10),i.length>1&&(n.font="14px "+t,n.fillStyle=Jd.a.chartHealthCenterTextDescriptionColor,n.fillText(i[1],r,s+10)),n.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),jt.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;jt.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)(i.Mb(Zt.a),i.Mb(Xt.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-health-pie"]],viewQuery:function(e,t){var n;1&e&&(i.Jc(sh,!0),i.Jc(oh,!0)),2&e&&(i.zc(n=i.hc())&&(t.chartCanvasRef=n.first),i.zc(n=i.hc())&&(t.chartTooltipRef=n.first))},inputs:{data:"data",config:"config",isBytesData:"isBytesData",tooltipFn:"tooltipFn",showLabelAsTooltip:"showLabelAsTooltip"},outputs:{prepareFn:"prepareFn"},features:[i.wb],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&&(i.Sb(0,"div",0),i.Nb(1,"canvas",1,2),i.Sb(3,"div",3,4),i.Nb(5,"table"),i.Rb(),i.Rb()),2&e&&(i.yb(1),i.pc("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:rgba(0,0,0,.7);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 transparent;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})(),ch=(()=>{class e{transform(e){if(!e)return"";let t=0,n=0;jt.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=n-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=i.Lb({name:"osdSummary",type:e,pure:!0}),e})(),lh=(()=>{class e{transform(e){if(!e)return"";let t="",n="",i=0,r=0,s=0;jt.a.each(e.standbys,()=>{i+=1}),e.standbys&&!e.filesystems?(t=`${i} ${"up"}`,n="no filesystems"):0===e.filesystems.length?t="no filesystems":(jt.a.each(e.filesystems,e=>{jt.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=i.Lb({name:"mdsSummary",type:e,pure:!0}),e})(),uh=(()=>{class e{}return e.HEALTH_ERR=Jd.a.healthColorError,e.HEALTH_WARN=Jd.a.healthColorWarning,e.HEALTH_OK=Jd.a.healthColorHealthy,e})(),dh=(()=>{class e{transform(e){return uh[e]?{color:uh[e]}:null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Lb({name:"healthColor",type:e,pure:!0}),e})(),hh=(()=>{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=i.Lb({name:"monSummary",type:e,pure:!0}),e})(),fh=(()=>{class e{transform(e){if(!e)return"";let t="n/a";const n=jt.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=i.Lb({name:"mgrSummary",type:e,pure:!0}),e})();function ph(e,t){1&e&&i.Ob(0)}function mh(e,t){if(1&e&&(i.Sb(0,"li"),i.Sb(1,"span",21),i.jc(2,"healthColor"),i.Oc(3),i.Rb(),i.Oc(4),i.Rb()),2&e){const e=t.$implicit;i.yb(1),i.pc("ngStyle",i.kc(2,3,e.severity)),i.yb(2),i.Pc(e.type),i.yb(1),i.Qc(": ",e.summary.message," ")}}function bh(e,t){if(1&e&&(i.Mc(0,ph,1,0,"ng-container",19),i.Sb(1,"ul"),i.Mc(2,mh,5,5,"li",20),i.Rb()),2&e){i.ic(4);const e=i.Ac(5),t=i.ic();i.pc("ngTemplateOutlet",e),i.yb(2),i.pc("ngForOf",t.healthData.health.checks)}}function gh(e,t){1&e&&i.Nb(0,"i",22)}function _h(e,t){if(1&e&&(i.Qb(0),i.Mc(1,bh,3,2,"ng-template",null,16,i.Nc),i.Sb(3,"div",17),i.jc(4,"healthColor"),i.Oc(5),i.Mc(6,gh,1,0,"i",18),i.Rb(),i.Pb()),2&e){const e=i.Ac(2),t=i.ic(4);i.yb(3),i.pc("ngStyle",i.kc(4,4,t.healthData.health.status))("ngbPopover",e),i.yb(2),i.Qc(" ",t.healthData.health.status," "),i.yb(1),i.pc("ngIf","HEALTH_OK"!=(null==t.healthData.health?null:t.healthData.health.status))}}function yh(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"div",21),i.jc(2,"healthColor"),i.Oc(3),i.Rb(),i.Pb()),2&e){const e=i.ic(4);i.yb(1),i.pc("ngStyle",i.kc(2,2,e.healthData.health.status)),i.yb(2),i.Qc(" ",e.healthData.health.status," ")}}function vh(e,t){if(1&e&&(i.Sb(0,"cd-info-card",13),i.Yb(1,14),i.Mc(2,_h,7,6,"ng-container",15),i.Mc(3,yh,4,4,"ng-container",15),i.Rb()),2&e){const e=i.ic(3);i.yb(2),i.pc("ngIf",(null==e.healthData.health||null==e.healthData.health.checks?null:e.healthData.health.checks.length)>0),i.yb(1),i.pc("ngIf",!(null!=e.healthData.health&&null!=e.healthData.health.checks&&e.healthData.health.checks.length))}}function wh(e,t){if(1&e&&(i.Sb(0,"cd-info-card",23),i.Yb(1,24),i.Oc(2),i.Rb()),2&e){const e=i.ic(3);i.yb(2),i.Qc(" ",e.healthData.hosts," total ")}}function Sh(e,t){if(1&e&&(i.Sb(0,"cd-info-card",25),i.Yb(1,26),i.Oc(2),i.jc(3,"monSummary"),i.Rb()),2&e){const e=i.ic(3);i.yb(2),i.Qc(" ",i.kc(3,1,e.healthData.mon_status)," ")}}function Mh(e,t){if(1&e&&(i.Sb(0,"span",30),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("ngClass",e.class),i.yb(1),i.Qc(" ",e.content," ")}}function kh(e,t){if(1&e&&(i.Sb(0,"cd-info-card",27),i.Yb(1,28),i.Mc(2,Mh,2,2,"span",29),i.Rb()),2&e){const e=t.ngIf;i.yb(2),i.pc("ngForOf",e)}}function xh(e,t){if(1&e&&(i.Sb(0,"span",33),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("ngClass",e.class)("title",null!=e.titleText?e.titleText:""),i.yb(1),i.Qc(" ",e.content," ")}}function Dh(e,t){if(1&e&&(i.Sb(0,"cd-info-card",13),i.Yb(1,31),i.Mc(2,xh,2,3,"span",32),i.jc(3,"mgrSummary"),i.Rb()),2&e){const e=i.ic(3);i.yb(2),i.pc("ngForOf",i.kc(3,1,e.healthData.mgr_map))}}function Th(e,t){if(1&e&&(i.Sb(0,"cd-info-card",34),i.Yb(1,35),i.Oc(2),i.Rb()),2&e){const e=i.ic(3);i.yb(2),i.Qc(" ",e.healthData.rgw," total ")}}function Ch(e,t){if(1&e&&(i.Sb(0,"span",33),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("ngClass",e.class)("title",null!=e.titleText?e.titleText:""),i.yb(1),i.Qc(" ",e.content," ")}}function Oh(e,t){if(1&e&&(i.Sb(0,"cd-info-card",36),i.Yb(1,37),i.Mc(2,Ch,2,3,"span",32),i.Rb()),2&e){const e=t.ngIf;i.pc("contentClass",(e.length>1?"text-area-size-2":"")+" content-highlight"),i.yb(2),i.pc("ngForOf",e)}}const Lh=function(e){return{"card-text-error":e}};function Rh(e,t){if(1&e&&(i.Sb(0,"cd-info-card",38),i.Yb(1,39),i.Oc(2),i.Nb(3,"span",40),i.Oc(4),i.Sb(5,"span",30),i.Oc(6),i.Rb(),i.Rb()),2&e){const e=i.ic(3);i.yb(2),i.Qc(" ",e.healthData.iscsi_daemons.up+e.healthData.iscsi_daemons.down," total "),i.yb(2),i.Qc(" ",e.healthData.iscsi_daemons.up," up, "),i.yb(1),i.pc("ngClass",i.uc(4,Lh,e.healthData.iscsi_daemons.down>0)),i.yb(1),i.Qc("",e.healthData.iscsi_daemons.down," down")}}function Eh(e,t){if(1&e&&(i.Sb(0,"cd-info-group",4),i.Yb(1,5),i.Mc(2,vh,4,2,"cd-info-card",6),i.Mc(3,wh,3,1,"cd-info-card",7),i.Mc(4,Sh,4,3,"cd-info-card",8),i.Mc(5,kh,3,1,"cd-info-card",9),i.jc(6,"osdSummary"),i.Mc(7,Dh,4,3,"cd-info-card",6),i.Mc(8,Th,3,1,"cd-info-card",10),i.Mc(9,Oh,3,2,"cd-info-card",11),i.jc(10,"mdsSummary"),i.Mc(11,Rh,7,6,"cd-info-card",12),i.Rb()),2&e){const e=i.ic().ngIf,t=i.ic();i.yb(2),i.pc("ngIf",null==t.healthData.health?null:t.healthData.health.status),i.yb(1),i.pc("ngIf",null!=t.healthData.hosts),i.yb(1),i.pc("ngIf",t.healthData.mon_status),i.yb(1),i.pc("ngIf",i.kc(6,8,t.healthData.osd_map)),i.yb(2),i.pc("ngIf",t.healthData.mgr_map),i.yb(1),i.pc("ngIf",e.rgw&&null!=t.healthData.rgw),i.yb(1),i.pc("ngIf",i.kc(10,10,e.cephfs&&t.healthData.fs_map)),i.yb(2),i.pc("ngIf",e.iscsi&&null!=t.healthData.iscsi_daemons)}}function Ah(e,t){if(1&e){const e=i.Tb();i.Sb(0,"cd-info-card",45),i.Yb(1,46),i.Sb(2,"cd-health-pie",47),i.gc("prepareFn",(function(t){return i.Dc(e),i.ic(3).prepareRawUsage(t[0],t[1])})),i.Rb(),i.Rb()}if(2&e){const e=i.ic(3);i.yb(2),i.pc("data",e.healthData)("config",e.rawCapacityChartConfig)("isBytesData",!0)}}function Ih(e,t){if(1&e){const e=i.Tb();i.Sb(0,"cd-info-card",45),i.Yb(1,48),i.Sb(2,"cd-health-pie",49),i.gc("prepareFn",(function(t){return i.Dc(e),i.ic(3).prepareObjects(t[0],t[1])})),i.Rb(),i.Rb()}if(2&e){const e=i.ic(3);i.yb(2),i.pc("data",e.healthData)}}function Ph(e,t){1&e&&i.Ob(0)}function Nh(e,t){if(1&e&&(i.Sb(0,"li"),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.yb(1),i.Rc(" ",e.key,": ",e.value," ")}}function jh(e,t){if(1&e&&(i.Mc(0,Ph,1,0,"ng-container",19),i.Sb(1,"ul"),i.Mc(2,Nh,2,2,"li",20),i.jc(3,"keyvalue"),i.Rb()),2&e){i.ic(3);const e=i.Ac(5),t=i.ic();i.pc("ngTemplateOutlet",e),i.yb(2),i.pc("ngForOf",i.kc(3,2,t.healthData.pg_info.statuses))}}function Fh(e,t){if(1&e){const e=i.Tb();i.Sb(0,"cd-info-card",45),i.Yb(1,50),i.Mc(2,jh,4,4,"ng-template",null,51,i.Nc),i.Sb(4,"div",52),i.Sb(5,"div",53),i.Sb(6,"cd-health-pie",54),i.gc("prepareFn",(function(t){return i.Dc(e),i.ic(3).preparePgStatus(t[0],t[1])})),i.Rb(),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.Ac(3),t=i.ic(3);i.yb(5),i.pc("ngbPopover",e),i.yb(1),i.pc("data",t.healthData)("config",t.pgStatusChartConfig)}}function Yh(e,t){if(1&e&&(i.Sb(0,"cd-info-card",55),i.Yb(1,56),i.Oc(2),i.Rb()),2&e){const e=i.ic(3);i.yb(2),i.Qc(" ",e.healthData.pools.length," ")}}function zh(e,t){if(1&e&&(i.Sb(0,"cd-info-card",57),i.Yb(1,58),i.Oc(2),i.jc(3,"dimless"),i.Rb()),2&e){const e=i.ic(3);i.yb(2),i.Qc(" ",i.kc(3,1,e.healthData.pg_info.pgs_per_osd)," ")}}function $h(e,t){if(1&e&&(i.Sb(0,"cd-info-group",4),i.Yb(1,41),i.Mc(2,Ah,3,3,"cd-info-card",42),i.Mc(3,Ih,3,1,"cd-info-card",42),i.Mc(4,Fh,7,3,"cd-info-card",42),i.Mc(5,Yh,3,1,"cd-info-card",43),i.Mc(6,zh,4,3,"cd-info-card",44),i.Rb()),2&e){const e=i.ic(2);i.yb(2),i.pc("ngIf",e.healthData.df),i.yb(1),i.pc("ngIf",null!=(null==e.healthData.pg_info||null==e.healthData.pg_info.object_stats?null:e.healthData.pg_info.object_stats.num_objects)),i.yb(1),i.pc("ngIf",e.healthData.pg_info),i.yb(1),i.pc("ngIf",e.healthData.pools),i.yb(1),i.pc("ngIf",e.healthData.pg_info)}}function Hh(e,t){if(1&e){const e=i.Tb();i.Sb(0,"cd-info-card",62),i.Yb(1,63),i.Sb(2,"cd-health-pie",54),i.gc("prepareFn",(function(t){return i.Dc(e),i.ic(3).prepareReadWriteRatio(t[0],t[1])})),i.Rb(),i.Rb()}if(2&e){const e=i.ic(3);i.yb(2),i.pc("data",e.healthData)("config",e.clientStatsConfig)}}function Wh(e,t){if(1&e){const e=i.Tb();i.Sb(0,"cd-info-card",62),i.Yb(1,64),i.Sb(2,"cd-health-pie",54),i.gc("prepareFn",(function(t){return i.Dc(e),i.ic(3).prepareClientThroughput(t[0],t[1])})),i.Rb(),i.Rb()}if(2&e){const e=i.ic(3);i.yb(2),i.pc("data",e.healthData)("config",e.clientStatsConfig)}}function Vh(e,t){if(1&e&&(i.Sb(0,"cd-info-card",65),i.Yb(1,66),i.Oc(2),i.jc(3,"dimlessBinary"),i.Rb()),2&e){const e=i.ic(3);i.yb(2),i.Qc(" ",i.kc(3,1,e.healthData.client_perf.recovering_bytes_per_sec)+"/s"," ")}}function Bh(e,t){if(1&e&&(i.Sb(0,"cd-info-card",65),i.Yb(1,67),i.Oc(2),i.Rb()),2&e){const e=i.ic(3);i.yb(2),i.Qc(" ",e.healthData.scrub_status," ")}}function Uh(e,t){if(1&e&&(i.Sb(0,"cd-info-group",4),i.Yb(1,59),i.Mc(2,Hh,3,2,"cd-info-card",60),i.Mc(3,Wh,3,2,"cd-info-card",60),i.Mc(4,Vh,4,3,"cd-info-card",61),i.Mc(5,Bh,3,1,"cd-info-card",61),i.Rb()),2&e){const e=i.ic(2);i.yb(2),i.pc("ngIf",e.healthData.client_perf),i.yb(1),i.pc("ngIf",e.healthData.client_perf),i.yb(1),i.pc("ngIf",e.healthData.client_perf),i.yb(1),i.pc("ngIf",e.healthData.scrub_status)}}const Gh=function(e){return[e]};function qh(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"p",68),i.cc(2,69),i.Nb(3,"i",30),i.Nb(4,"a",70),i.Zb(),i.Rb(),i.Pb()),2&e){const e=i.ic(3);i.yb(3),i.pc("ngClass",i.uc(1,Gh,e.icons.infoCircle))}}function Jh(e,t){if(1&e&&i.Mc(0,qh,5,3,"ng-container",15),2&e){const e=i.ic(2);i.pc("ngIf",e.permissions.log.read)}}function Qh(e,t){if(1&e&&(i.Sb(0,"div",1),i.Mc(1,Eh,12,12,"cd-info-group",2),i.Mc(2,$h,7,5,"cd-info-group",2),i.Mc(3,Uh,6,4,"cd-info-group",2),i.Mc(4,Jh,1,1,"ng-template",null,3,i.Nc),i.Rb()),2&e){const e=i.ic();i.yb(1),i.pc("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),i.yb(1),i.pc("ngIf",e.healthData.pools||e.healthData.df||e.healthData.pg_info),i.yb(1),i.pc("ngIf",e.healthData.client_perf||e.healthData.scrub_status)}}let Kh=(()=>{class e{constructor(e,t,n,i,r,s,o){this.healthService=e,this.authStorageService=t,this.pgCategoryService=n,this.featureToggles=i,this.refreshIntervalService=r,this.dimlessBinary=s,this.dimless=o,this.interval=new Oi.a,this.icons=_n.a,this.clientStatsConfig={colors:[{backgroundColor:[Jd.a.chartHealthColorCyan,Jd.a.chartHealthColorPurple]}]},this.rawCapacityChartConfig={colors:[{backgroundColor:[Jd.a.chartHealthColorBlue,Jd.a.chartHealthColorGray]}]},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;jt.a.forEach(t.pg_info.statuses,(e,t)=>{const r=this.pgCategoryService.getTypeByStates(t);jt.a.isUndefined(n[r])&&(n[r]=0),n[r]+=e,i+=e});for(const r of this.pgCategoryService.getAllTypes())jt.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 jt.a.isNumber(e)&&jt.a.isNumber(t)&&0!==t?Math.round(e/t*100):0}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Li),i.Mb(Jt.a),i.Mb(Ud.a),i.Mb(Gd.a),i.Mb(Wd),i.Mb(Zt.a),i.Mb(Xt.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-health"]],decls:2,vars:3,consts:function(){return[["class","container-fluid",4,"ngIf"],[1,"container-fluid"],[4,"ngIf",6,"groupTitle"],["logsLink",""],[6,"groupTitle"],["groupTitle","Status"],["class","cd-status-card","contentClass","content-highlight",4,"ngIf",6,"cardTitle"],["link","/hosts","class","cd-status-card","contentClass","content-highlight",4,"ngIf",6,"cardTitle"],["link","/monitor","class","cd-status-card","contentClass","content-highlight",4,"ngIf",6,"cardTitle"],["link","/osd","class","cd-status-card","contentClass","content-highlight",4,"ngIf",6,"cardTitle"],["link","/rgw/daemon","class","cd-status-card","contentClass","content-highlight",4,"ngIf",6,"cardTitle"],["class","cd-status-card",3,"contentClass",4,"ngIf",6,"cardTitle"],["link","/block/iscsi","class","cd-status-card","contentClass","content-highlight",4,"ngIf",6,"cardTitle"],["contentClass","content-highlight",1,"cd-status-card",6,"cardTitle"],["cardTitle","Cluster Status"],[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"],["link","/hosts","contentClass","content-highlight",1,"cd-status-card",6,"cardTitle"],["cardTitle","Hosts"],["link","/monitor","contentClass","content-highlight",1,"cd-status-card",6,"cardTitle"],["cardTitle","Monitors"],["link","/osd","contentClass","content-highlight",1,"cd-status-card",6,"cardTitle"],["cardTitle","OSDs"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["cardTitle","Managers"],[3,"ngClass","title",4,"ngFor","ngForOf"],[3,"ngClass","title"],["link","/rgw/daemon","contentClass","content-highlight",1,"cd-status-card",6,"cardTitle"],["cardTitle","Object Gateways"],[1,"cd-status-card",3,"contentClass",6,"cardTitle"],["cardTitle","Metadata Servers"],["link","/block/iscsi","contentClass","content-highlight",1,"cd-status-card",6,"cardTitle"],["cardTitle","iSCSI Gateways"],[1,"card-text-line-break"],["groupTitle","Capacity"],["class","cd-capacity-card cd-chart-card","contentClass","content-chart",4,"ngIf",6,"cardTitle"],["link","/pool","class","cd-capacity-card","contentClass","content-highlight",4,"ngIf",6,"cardTitle"],["class","cd-capacity-card","contentClass","content-highlight",4,"ngIf",6,"cardTitle"],["contentClass","content-chart",1,"cd-capacity-card","cd-chart-card",6,"cardTitle"],["cardTitle","Raw Capacity"],[3,"data","config","isBytesData","prepareFn"],["cardTitle","Objects"],[3,"data","prepareFn"],["cardTitle","PG Status"],["pgStatus",""],[1,"pg-status-popover-wrapper"],[3,"ngbPopover"],[3,"data","config","prepareFn"],["link","/pool","contentClass","content-highlight",1,"cd-capacity-card",6,"cardTitle"],["cardTitle","Pools"],["contentClass","content-highlight",1,"cd-capacity-card",6,"cardTitle"],["cardTitle","PGs per OSD"],["groupTitle","Performance"],["class","cd-performance-card cd-chart-card","contentClass","content-chart",4,"ngIf",6,"cardTitle"],["class","cd-performance-card","contentClass","content-highlight",4,"ngIf",6,"cardTitle"],["contentClass","content-chart",1,"cd-performance-card","cd-chart-card",6,"cardTitle"],["cardTitle","Client Read/Write"],["cardTitle","Client Throughput"],["contentClass","content-highlight",1,"cd-performance-card",6,"cardTitle"],["cardTitle","Recovery Throughput"],["cardTitle","Scrubbing"],[1,"logs-link"],"" + "\ufffd#3\ufffd" + "" + "\ufffd/#3\ufffd" + " See " + "\ufffd#4\ufffd" + "Logs" + "\ufffd/#4\ufffd" + " for more details.",["routerLink","/logs"]]},template:function(e,t){1&e&&(i.Mc(0,Qh,6,3,"div",0),i.jc(1,"async")),2&e&&i.pc("ngIf",i.kc(1,1,t.healthData&&t.enabledFeature$))},directives:[wt.r,Xd,ih,wt.s,Qt.w,wt.w,wt.q,wt.p,ah,Pt.h],pipes:[wt.b,ch,lh,dh,hh,fh,wt.k,Xt.a,Zt.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 Zh(e,t){1&e&&i.Nb(0,"cd-health")}function Xh(e,t){}function ef(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"ul",1,2),i.Sb(3,"li",3),i.Sb(4,"a",4),i.Wb(5,5),i.Rb(),i.Mc(6,Zh,1,0,"ng-template",6),i.Rb(),i.Sb(7,"li",3),i.Sb(8,"a",4),i.Wb(9,7),i.Rb(),i.Mc(10,Xh,0,0,"ng-template",6),i.Rb(),i.Rb(),i.Nb(11,"div",8),i.Pb()),2&e){const e=i.Ac(2);i.yb(11),i.pc("ngbNavOutlet",e)}}function tf(e,t){1&e&&i.Nb(0,"cd-health")}let nf=(()=>{class e{constructor(){this.hasGrafana=!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-dashboard"]],decls:4,vars:2,consts:function(){return[[4,"ngIf"],["ngbNav","",1,"nav-tabs"],["nav","ngbNav"],["ngbNavItem",""],["ngbNavLink",""],"Health",["ngbNavContent",""],"Statistics",[3,"ngbNavOutlet"]]},template:function(e,t){1&e&&(i.Sb(0,"div"),i.Nb(1,"cd-refresh-selector"),i.Mc(2,ef,12,1,"ng-container",0),i.Mc(3,tf,1,0,"cd-health",0),i.Rb()),2&e&&(i.yb(2),i.pc("ngIf",t.hasGrafana),i.yb(1),i.pc("ngIf",!t.hasGrafana))},directives:[Bd,wt.r,Qt.p,Qt.r,Qt.s,Qt.q,Qt.u,Kh],styles:["div[_ngcontent-%COMP%]{padding-top:20px}"]}),e})(),rf=(()=>{class e{constructor(e){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:"MDONLY",help:"Does not allow read or write operations, but allows any other operation"},{value:"MDONLY_RO",help:"Does not allow read, write, or any operation that modifies file attributes or directory content"},{value:"NONE",help:"Allows no access at all"}],this.nfsFsal=[{value:"CEPH",descr:"CephFS"},{value:"RGW",descr:"Object Gateway"}],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,{observe:"response"})}update(e,t,n){return this.http.put(`${this.apiPath}/export/${e}/${t}`,n,{observe:"response"})}delete(e,t){return this.http.delete(`${this.apiPath}/export/${e}/${t}`,{observe:"response"})}lsDir(e,t){return this.http.get(`${this.uiApiPath}/lsdir/${e}?root_dir=${t}`)}buckets(e){return this.http.get(`${this.uiApiPath}/rgw/buckets?user_id=${e}`)}clients(){return this.http.get(this.uiApiPath+"/cephx/clients")}fsals(){return this.http.get(this.uiApiPath+"/fsals")}filesystems(){return this.http.get(this.uiApiPath+"/cephfs/filesystems")}daemon(){return this.http.get(this.apiPath+"/daemon")}start(e){return this.http.put(`${this.apiPath}/service/${e}/start`,null,{observe:"response"})}stop(e){return this.http.put(`${this.apiPath}/service/${e}/stop`,null,{observe:"response"})}}return e.\u0275fac=function(t){return new(t||e)(i.dc(o.b))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var sf=n("P8lu"),of=function(e){return e.user="user",e.orchestrator="orchestrator",e}({}),af=n("TYzs");function cf(e,t){1&e&&(i.Sb(0,"span",14),i.Sb(1,"span",15),i.Wb(2,16),i.Rb(),i.Rb())}function lf(e,t){1&e&&(i.Sb(0,"span"),i.Wb(1,36),i.Rb())}function uf(e,t){1&e&&(i.Sb(0,"span"),i.Qb(1),i.Wb(2,37),i.Pb(),i.Nb(3,"br"),i.Qb(4),i.Wb(5,38),i.Pb(),i.Oc(6," 192.168.0.10, 192.168.1.0/8 "),i.Rb())}function df(e,t){if(1&e&&(i.Sb(0,"option",39),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e.value),i.yb(1),i.Pc(e.value)}}function hf(e,t){if(1&e&&(i.Sb(0,"span",15),i.Oc(1),i.Rb()),2&e){const e=i.ic().index,t=i.ic();i.yb(1),i.Qc(" ",t.getAccessTypeHelp(e)," ")}}function ff(e,t){if(1&e&&(i.Sb(0,"option",39),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e),i.yb(1),i.Pc(e)}}function pf(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div"),i.Sb(1,"div",17),i.Sb(2,"div",18),i.Oc(3),i.jc(4,"ordinal"),i.Sb(5,"span",19),i.gc("click",(function(){i.Dc(e);const n=t.index;return i.ic().removeClient(n)})),i.Oc(6,"\xd7"),i.Rb(),i.Rb(),i.Sb(7,"div",20),i.Sb(8,"div",0),i.Sb(9,"label",21),i.Wb(10,22),i.Rb(),i.Sb(11,"div",23),i.Nb(12,"input",24),i.Sb(13,"span",25),i.Mc(14,lf,2,0,"span",26),i.Mc(15,uf,7,0,"span",26),i.Rb(),i.Rb(),i.Rb(),i.Sb(16,"div",0),i.Sb(17,"label",27),i.Wb(18,28),i.Rb(),i.Sb(19,"div",23),i.Sb(20,"select",29),i.Sb(21,"option",30),i.Oc(22),i.Rb(),i.Mc(23,df,2,2,"option",31),i.Rb(),i.Mc(24,hf,2,1,"span",32),i.Rb(),i.Rb(),i.Sb(25,"div",0),i.Sb(26,"label",33),i.Wb(27,34),i.Rb(),i.Sb(28,"div",23),i.Sb(29,"select",35),i.Sb(30,"option",30),i.Oc(31),i.Rb(),i.Mc(32,ff,2,2,"option",31),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=t.index,n=i.ic(),r=i.Ac(4);i.yb(1),i.pc("formGroupName",e),i.yb(2),i.Qc(" ",i.kc(4,9,e+1)," "),i.yb(11),i.pc("ngIf",n.showError(e,"addresses",r,"required")),i.yb(1),i.pc("ngIf",n.showError(e,"addresses",r,"pattern")),i.yb(7),i.Pc(n.getNoAccessTypeDescr()),i.yb(1),i.pc("ngForOf",n.nfsAccessType),i.yb(1),i.pc("ngIf",n.getValue(e,"access_type")),i.yb(7),i.Pc(n.getNoSquashDescr()),i.yb(1),i.pc("ngForOf",n.nfsSquash)}}const mf=function(e){return[e]};let bf=(()=>{class e{constructor(e){this.nfsService=e,this.nfsSquash=this.nfsService.nfsSquash,this.nfsAccessType=this.nfsService.nfsAccessType,this.icons=_n.a}ngOnInit(){jt.a.forEach(this.clients,e=>{this.addClient().patchValue(e)})}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 jt.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(){const e=this.form.get("clients"),t="(([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3}).([0-9]{1,3})([/](\\d|[1-2]\\d|3[0-2]))?)",n=new Jn.a({addresses:new kn.h("",{validators:[kn.A.required,kn.A.pattern(`${t}([ ,]{1,2}${t})*`)]}),access_type:new kn.h(""),squash:new kn.h("")});return e.push(n),n}removeClient(e){this.form.get("clients").removeAt(e)}showError(e,t,n,i){return this.form.controls.clients.controls[e].showError(t,n,i)}getValue(e,t){return this.form.get("clients").at(e).getValue(t)}trackByFn(e){return e}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(rf))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-nfs-form-client"]],inputs:{form:"form",clients:"clients"},decls:15,vars:7,consts:function(){return[[1,"form-group","row"],[1,"cd-col-form-label"],"Clients",[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"],[1,"btn","btn-light",3,"click"],[3,"ngClass"],"Add clients",[1,"no-border","text-muted"],[1,"form-text","text-muted"],"Any client can access",[1,"card",3,"formGroupName"],[1,"card-header"],["ngbTooltip","Remove",1,"float-right","clickable",3,"click"],[1,"card-body"],["for","addresses",1,"cd-col-form-label"],"Addresses",[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"],"Access Type",["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"],"Squash",["name","squash","id","squash","formControlName","squash",1,"form-control","custom-select"],"This field is required.","Must contain one or more comma-separated values","For example:",[3,"value"]]},template:function(e,t){1&e&&(i.Sb(0,"div",0),i.Sb(1,"label",1),i.Wb(2,2),i.Rb(),i.Sb(3,"div",3,4),i.Mc(5,cf,3,0,"span",5),i.Qb(6,6),i.Mc(7,pf,33,11,"div",7),i.Pb(),i.Sb(8,"div",8),i.Sb(9,"div",9),i.Sb(10,"div",10),i.Sb(11,"button",11),i.gc("click",(function(){return t.addClient()})),i.Nb(12,"i",12),i.Qb(13),i.Wb(14,13),i.Pb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()),2&e&&(i.yb(3),i.pc("formGroup",t.form),i.yb(2),i.pc("ngIf",0===t.form.get("clients").value.length),i.yb(2),i.pc("ngForOf",t.form.get("clients").value)("ngForTrackBy",t.trackByFn),i.yb(5),i.pc("ngClass",i.uc(5,mf,t.icons.add)))},directives:[Xn.a,kn.r,kn.k,Zn.a,wt.r,kn.f,wt.q,On.a,wt.p,kn.l,Qt.D,kn.d,ei.a,kn.q,kn.i,kn.z,kn.u,kn.B],pipes:[af.a],styles:[""]}),e})();var gf=n("wnGv");const _f=["nfsClients"];function yf(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,51),i.Rb())}function vf(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,52),i.Rb())}function wf(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,53),i.Rb())}function Sf(e,t){if(1&e&&(i.Sb(0,"option",54),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e.cluster_id),i.yb(1),i.Pc(e.cluster_id)}}function Mf(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,56),i.Rb())}function kf(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",10),i.Sb(1,"label",47),i.Wb(2,48),i.Rb(),i.Sb(3,"div",13),i.Sb(4,"select",49),i.gc("change",(function(){return i.Dc(e),i.ic(2).onClusterChange()})),i.Mc(5,yf,2,0,"option",15),i.Mc(6,vf,2,0,"option",15),i.Mc(7,wf,2,0,"option",15),i.Mc(8,Sf,2,2,"option",16),i.Rb(),i.Mc(9,Mf,2,0,"span",17),i.Rb(),i.Rb()}if(2&e){i.ic();const e=i.Ac(2),t=i.ic();i.yb(5),i.pc("ngIf",null===t.allClusters),i.yb(1),i.pc("ngIf",null!==t.allClusters&&0===t.allClusters.length),i.yb(1),i.pc("ngIf",null!==t.allClusters&&t.allClusters.length>0),i.yb(1),i.pc("ngForOf",t.allClusters),i.yb(1),i.pc("ngIf",t.nfsForm.showError("cluster_id",e,"required"))}}const xf=function(e){return[e]};function Df(e,t){if(1&e){const e=i.Tb();i.Sb(0,"span",64),i.Sb(1,"button",65),i.gc("click",(function(){i.Dc(e);const t=i.ic(),n=t.index,r=t.$implicit;return i.ic(3).removeDaemon(n,r)})),i.Nb(2,"i",66),i.Rb(),i.Rb()}if(2&e){const e=i.ic(4);i.yb(2),i.pc("ngClass",i.uc(1,xf,e.icons.destroy))}}function Tf(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"div",61),i.Nb(2,"input",62),i.Mc(3,Df,3,3,"span",63),i.Rb(),i.Pb()),2&e){const e=t.$implicit,n=i.ic(3);i.yb(2),i.pc("value",e),i.yb(1),i.pc("ngIf","user"===n.clusterType)}}function Cf(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",67),i.Sb(1,"div",68),i.Sb(2,"cd-select",69),i.gc("selection",(function(){return i.Dc(e),i.ic(3).onDaemonSelection()})),i.Nb(3,"i",70),i.Qb(4),i.Wb(5,71),i.Pb(),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.ic(3);i.yb(2),i.pc("data",e.nfsForm.get("daemons").value)("options",e.daemonsSelections)("messages",e.daemonsMessages),i.yb(1),i.pc("ngClass",i.uc(4,xf,e.icons.add))}}function Of(e,t){1&e&&(i.Qb(0),i.Wb(1,75),i.Pb())}function Lf(e,t){1&e&&(i.Qb(0),i.Wb(1,76),i.Pb())}function Rf(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",67),i.Sb(1,"div",68),i.Sb(2,"button",72),i.gc("click",(function(){return i.Dc(e),i.ic(3).onToggleAllDaemonsSelection()})),i.Nb(3,"i",70),i.Mc(4,Of,2,0,"ng-container",73),i.Mc(5,Lf,2,0,"ng-template",null,74,i.Nc),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.Ac(6),t=i.ic(3);i.yb(3),i.pc("ngClass",i.uc(3,xf,t.icons.add)),i.yb(1),i.pc("ngIf",0===t.nfsForm.getValue("daemons").length)("ngIfElse",e)}}function Ef(e,t){if(1&e&&(i.Sb(0,"div",10),i.Sb(1,"label",57),i.Qb(2),i.Wb(3,58),i.Pb(),i.Rb(),i.Sb(4,"div",13),i.Mc(5,Tf,4,2,"ng-container",59),i.Mc(6,Cf,6,6,"div",60),i.Mc(7,Rf,7,5,"div",60),i.Rb(),i.Rb()),2&e){const e=i.ic(2);i.yb(5),i.pc("ngForOf",e.nfsForm.getValue("daemons")),i.yb(1),i.pc("ngIf","user"===e.clusterType),i.yb(1),i.pc("ngIf","orchestrator"===e.clusterType)}}function Af(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,77),i.Rb())}function If(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,78),i.Rb())}function Pf(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,79),i.Rb())}function Nf(e,t){if(1&e&&(i.Sb(0,"option",54),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e.value),i.yb(1),i.Pc(e.descr)}}function jf(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,80),i.Rb())}function Ff(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,84),i.Rb())}function Yf(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,85),i.Rb())}function zf(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,86),i.Rb())}function $f(e,t){if(1&e&&(i.Sb(0,"option",54),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e),i.yb(1),i.Pc(e)}}function Hf(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,87),i.Rb())}function Wf(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",10),i.Sb(1,"label",81),i.Wb(2,82),i.Rb(),i.Sb(3,"div",13),i.Sb(4,"select",83),i.gc("change",(function(){return i.Dc(e),i.ic(2).rgwUserIdChangeHandler()})),i.Mc(5,Ff,2,0,"option",15),i.Mc(6,Yf,2,0,"option",15),i.Mc(7,zf,2,0,"option",15),i.Mc(8,$f,2,2,"option",16),i.Rb(),i.Mc(9,Hf,2,0,"span",17),i.Rb(),i.Rb()}if(2&e){i.ic();const e=i.Ac(2),t=i.ic();i.yb(5),i.pc("ngIf",null===t.allRgwUsers),i.yb(1),i.pc("ngIf",null!==t.allRgwUsers&&0===t.allRgwUsers.length),i.yb(1),i.pc("ngIf",null!==t.allRgwUsers&&t.allRgwUsers.length>0),i.yb(1),i.pc("ngForOf",t.allRgwUsers),i.yb(1),i.pc("ngIf",t.nfsForm.showError("rgw_user_id",e,"required"))}}function Vf(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,91),i.Rb())}function Bf(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,92),i.Rb())}function Uf(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,93),i.Rb())}function Gf(e,t){if(1&e&&(i.Sb(0,"option",54),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e),i.yb(1),i.Pc(e)}}function qf(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,94),i.Rb())}function Jf(e,t){if(1&e&&(i.Sb(0,"div",10),i.Sb(1,"label",88),i.Wb(2,89),i.Rb(),i.Sb(3,"div",13),i.Sb(4,"select",90),i.Mc(5,Vf,2,0,"option",15),i.Mc(6,Bf,2,0,"option",15),i.Mc(7,Uf,2,0,"option",15),i.Mc(8,Gf,2,2,"option",16),i.Rb(),i.Mc(9,qf,2,0,"span",17),i.Rb(),i.Rb()),2&e){i.ic();const e=i.Ac(2),t=i.ic();i.yb(5),i.pc("ngIf",null===t.allCephxClients),i.yb(1),i.pc("ngIf",null!==t.allCephxClients&&0===t.allCephxClients.length),i.yb(1),i.pc("ngIf",null!==t.allCephxClients&&t.allCephxClients.length>0),i.yb(1),i.pc("ngForOf",t.allCephxClients),i.yb(1),i.pc("ngIf",t.nfsForm.showError("user_id",e,"required"))}}function Qf(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,98),i.Rb())}function Kf(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,99),i.Rb())}function Zf(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,100),i.Rb())}function Xf(e,t){if(1&e&&(i.Sb(0,"option",54),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e.name),i.yb(1),i.Pc(e.name)}}function ep(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,101),i.Rb())}function tp(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",10),i.Sb(1,"label",95),i.Wb(2,96),i.Rb(),i.Sb(3,"div",13),i.Sb(4,"select",97),i.gc("change",(function(){return i.Dc(e),i.ic(2).rgwUserIdChangeHandler()})),i.Mc(5,Qf,2,0,"option",15),i.Mc(6,Kf,2,0,"option",15),i.Mc(7,Zf,2,0,"option",15),i.Mc(8,Xf,2,2,"option",16),i.Rb(),i.Mc(9,ep,2,0,"span",17),i.Rb(),i.Rb()}if(2&e){i.ic();const e=i.Ac(2),t=i.ic();i.yb(5),i.pc("ngIf",null===t.allFsNames),i.yb(1),i.pc("ngIf",null!==t.allFsNames&&0===t.allFsNames.length),i.yb(1),i.pc("ngIf",null!==t.allFsNames&&t.allFsNames.length>0),i.yb(1),i.pc("ngForOf",t.allFsNames),i.yb(1),i.pc("ngIf",t.nfsForm.showError("fs_name",e,"required"))}}function np(e,t){1&e&&i.Nb(0,"input",108)}function ip(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,109),i.Rb())}const rp=function(e){return{required:e}};function sp(e,t){if(1&e&&(i.Sb(0,"div",10),i.Sb(1,"label",102),i.Wb(2,103),i.Rb(),i.Sb(3,"div",13),i.Sb(4,"div",20),i.Nb(5,"input",104),i.Sb(6,"label",105),i.Wb(7,106),i.Rb(),i.Rb(),i.Nb(8,"br"),i.Mc(9,np,1,0,"input",107),i.Mc(10,ip,2,0,"span",17),i.Rb(),i.Rb()),2&e){i.ic();const e=i.Ac(2),t=i.ic();i.yb(1),i.pc("ngClass",i.uc(3,rp,t.nfsForm.getValue("security_label"))),i.yb(8),i.pc("ngIf",t.nfsForm.getValue("security_label")),i.yb(1),i.pc("ngIf",t.nfsForm.showError("sec_label_xattr",e,"required"))}}function op(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,113),i.Rb())}function ap(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,114),i.Rb())}function cp(e,t){1&e&&(i.Sb(0,"span",115),i.Wb(1,116),i.Rb())}function lp(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",10),i.Sb(1,"label",110),i.Wb(2,111),i.Rb(),i.Sb(3,"div",13),i.Sb(4,"input",112),i.gc("selectItem",(function(){return i.Dc(e),i.ic(2).pathChangeHandler()}))("blur",(function(){return i.Dc(e),i.ic(2).pathChangeHandler()})),i.Rb(),i.Mc(5,op,2,0,"span",17),i.Mc(6,ap,2,0,"span",17),i.Mc(7,cp,2,0,"span",30),i.Rb(),i.Rb()}if(2&e){i.ic();const e=i.Ac(2),t=i.ic();i.yb(4),i.pc("ngbTypeahead",t.pathDataSource),i.yb(1),i.pc("ngIf",t.nfsForm.showError("path",e,"required")),i.yb(1),i.pc("ngIf",t.nfsForm.showError("path",e,"pattern")),i.yb(1),i.pc("ngIf",t.isNewDirectory&&!t.nfsForm.showError("path",e))}}function up(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,118),i.Rb())}function dp(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,119),i.Rb())}function hp(e,t){1&e&&(i.Sb(0,"span",115),i.Wb(1,120),i.Rb())}function fp(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",10),i.Sb(1,"label",110),i.Wb(2,117),i.Rb(),i.Sb(3,"div",13),i.Sb(4,"input",112),i.gc("selectItem",(function(){return i.Dc(e),i.ic(2).bucketChangeHandler()}))("blur",(function(){return i.Dc(e),i.ic(2).bucketChangeHandler()})),i.Rb(),i.Mc(5,up,2,0,"span",17),i.Mc(6,dp,2,0,"span",17),i.Mc(7,hp,2,0,"span",30),i.Rb(),i.Rb()}if(2&e){i.ic();const e=i.Ac(2),t=i.ic();i.yb(4),i.pc("ngbTypeahead",t.bucketDataSource),i.yb(1),i.pc("ngIf",t.nfsForm.showError("path",e,"required")),i.yb(1),i.pc("ngIf",t.nfsForm.showError("path",e,"pattern")),i.yb(1),i.pc("ngIf",t.isNewBucket&&!t.nfsForm.showError("path",e))}}function pp(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,121),i.Rb())}function mp(e,t){1&e&&(i.Sb(0,"div",10),i.Sb(1,"label",122),i.Qb(2),i.Wb(3,123),i.Pb(),i.Sb(4,"cd-helper"),i.Sb(5,"p"),i.cc(6,124),i.Nb(7,"strong"),i.Zb(),i.Rb(),i.Sb(8,"p"),i.Wb(9,125),i.Rb(),i.Sb(10,"p"),i.Wb(11,126),i.Rb(),i.Rb(),i.Rb(),i.Sb(12,"div",13),i.Nb(13,"input",127),i.Rb(),i.Rb())}function bp(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,134),i.Rb())}function gp(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,135),i.Rb())}function _p(e,t){if(1&e&&(i.Sb(0,"div",10),i.Sb(1,"label",128),i.Sb(2,"span",129),i.Wb(3,130),i.Rb(),i.Sb(4,"cd-helper"),i.Sb(5,"p"),i.cc(6,131),i.Nb(7,"strong"),i.Nb(8,"strong"),i.Zb(),i.Rb(),i.Sb(9,"p"),i.Wb(10,132),i.Rb(),i.Rb(),i.Rb(),i.Sb(11,"div",13),i.Nb(12,"input",133),i.Mc(13,bp,2,0,"span",17),i.Mc(14,gp,2,0,"span",17),i.Rb(),i.Rb()),2&e){i.ic();const e=i.Ac(2),t=i.ic();i.yb(13),i.pc("ngIf",t.nfsForm.showError("pseudo",e,"required")),i.yb(1),i.pc("ngIf",t.nfsForm.showError("pseudo",e,"pattern"))}}function yp(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,136),i.Rb())}function vp(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,137),i.Rb())}function wp(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,138),i.Rb())}function Sp(e,t){if(1&e&&(i.Sb(0,"option",54),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e.value),i.yb(1),i.Pc(e.value)}}function Mp(e,t){if(1&e&&(i.Sb(0,"span",115),i.Oc(1),i.Rb()),2&e){const e=i.ic(2);i.yb(1),i.Qc(" ",e.getAccessTypeHelp(e.nfsForm.getValue("access_type"))," ")}}function kp(e,t){1&e&&(i.Sb(0,"span",139),i.cc(1,140),i.Nb(2,"cd-doc",141),i.Zb(),i.Rb())}function xp(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,142),i.Rb())}function Dp(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,143),i.Rb())}function Tp(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,144),i.Rb())}function Cp(e,t){1&e&&(i.Sb(0,"option",50),i.Wb(1,145),i.Rb())}function Op(e,t){if(1&e&&(i.Sb(0,"option",54),i.Oc(1),i.Rb()),2&e){const e=t.$implicit;i.pc("value",e),i.yb(1),i.Pc(e)}}function Lp(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,146),i.Rb())}function Rp(e,t){1&e&&(i.Sb(0,"span",55),i.Wb(1,147),i.Rb())}function Ep(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",1),i.Sb(1,"form",2,3),i.Sb(3,"div",4),i.Sb(4,"div",5),i.Wb(5,6),i.jc(6,"titlecase"),i.jc(7,"upperFirst"),i.Rb(),i.Sb(8,"div",7),i.Mc(9,kf,10,5,"div",8),i.Mc(10,Ef,8,3,"div",8),i.Sb(11,"div",9),i.Sb(12,"div",10),i.Sb(13,"label",11),i.Wb(14,12),i.Rb(),i.Sb(15,"div",13),i.Sb(16,"select",14),i.gc("change",(function(){return i.Dc(e),i.ic().fsalChangeHandler()})),i.Mc(17,Af,2,0,"option",15),i.Mc(18,If,2,0,"option",15),i.Mc(19,Pf,2,0,"option",15),i.Mc(20,Nf,2,2,"option",16),i.Rb(),i.Mc(21,jf,2,0,"span",17),i.Rb(),i.Rb(),i.Mc(22,Wf,10,5,"div",8),i.Mc(23,Jf,10,5,"div",8),i.Mc(24,tp,10,5,"div",8),i.Rb(),i.Mc(25,sp,11,5,"div",8),i.Mc(26,lp,8,4,"div",8),i.Mc(27,fp,8,4,"div",8),i.Sb(28,"div",10),i.Sb(29,"label",18),i.Wb(30,19),i.Rb(),i.Sb(31,"div",13),i.Sb(32,"div",20),i.Nb(33,"input",21),i.Sb(34,"label",22),i.Wb(35,23),i.Rb(),i.Rb(),i.Sb(36,"div",20),i.Nb(37,"input",24),i.Sb(38,"label",25),i.Wb(39,26),i.Rb(),i.Rb(),i.Mc(40,pp,2,0,"span",17),i.Rb(),i.Rb(),i.Mc(41,mp,14,0,"div",8),i.Mc(42,_p,15,2,"div",8),i.Sb(43,"div",10),i.Sb(44,"label",27),i.Wb(45,28),i.Rb(),i.Sb(46,"div",13),i.Sb(47,"select",29),i.gc("change",(function(){return i.Dc(e),i.ic().accessTypeChangeHandler()})),i.Mc(48,yp,2,0,"option",15),i.Mc(49,vp,2,0,"option",15),i.Mc(50,wp,2,0,"option",15),i.Mc(51,Sp,2,2,"option",16),i.Rb(),i.Mc(52,Mp,2,1,"span",30),i.Mc(53,kp,3,0,"span",31),i.Mc(54,xp,2,0,"span",17),i.Rb(),i.Rb(),i.Sb(55,"div",10),i.Sb(56,"label",32),i.Wb(57,33),i.Rb(),i.Sb(58,"div",13),i.Sb(59,"select",34),i.Mc(60,Dp,2,0,"option",15),i.Mc(61,Tp,2,0,"option",15),i.Mc(62,Cp,2,0,"option",15),i.Mc(63,Op,2,2,"option",16),i.Rb(),i.Mc(64,Lp,2,0,"span",17),i.Rb(),i.Rb(),i.Sb(65,"div",10),i.Sb(66,"label",35),i.Wb(67,36),i.Rb(),i.Sb(68,"div",13),i.Sb(69,"div",20),i.Nb(70,"input",37),i.Sb(71,"label",38),i.Wb(72,39),i.Rb(),i.Rb(),i.Sb(73,"div",20),i.Nb(74,"input",40),i.Sb(75,"label",41),i.Wb(76,42),i.Rb(),i.Rb(),i.Mc(77,Rp,2,0,"span",17),i.Nb(78,"hr"),i.Rb(),i.Rb(),i.Nb(79,"cd-nfs-form-client",43,44),i.Rb(),i.Sb(81,"div",45),i.Sb(82,"cd-form-button-panel",46),i.gc("submitActionEvent",(function(){return i.Dc(e),i.ic().submitAction()})),i.jc(83,"titlecase"),i.jc(84,"upperFirst"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.Ac(2),t=i.ic();i.yb(1),i.pc("formGroup",t.nfsForm),i.yb(6),i.ac(i.kc(6,36,t.action))(i.kc(7,38,t.resource)),i.Xb(5),i.yb(2),i.pc("ngIf",!t.isDefaultCluster),i.yb(1),i.pc("ngIf",t.clusterType),i.yb(7),i.pc("ngIf",null===t.allFsals),i.yb(1),i.pc("ngIf",null!==t.allFsals&&0===t.allFsals.length),i.yb(1),i.pc("ngIf",null!==t.allFsals&&t.allFsals.length>0),i.yb(1),i.pc("ngForOf",t.allFsals),i.yb(1),i.pc("ngIf",t.nfsForm.showError("name",e,"required")),i.yb(1),i.pc("ngIf","RGW"===t.nfsForm.getValue("name")),i.yb(1),i.pc("ngIf","CEPH"===t.nfsForm.getValue("name")),i.yb(1),i.pc("ngIf","CEPH"===t.nfsForm.getValue("name")),i.yb(1),i.pc("ngIf","CEPH"===t.nfsForm.getValue("name")),i.yb(1),i.pc("ngIf","CEPH"===t.nfsForm.getValue("name")),i.yb(1),i.pc("ngIf","RGW"===t.nfsForm.getValue("name")),i.yb(13),i.pc("ngIf",t.nfsForm.showError("protocolNfsv3",e,"required")||t.nfsForm.showError("protocolNfsv4",e,"required")),i.yb(1),i.pc("ngIf",t.nfsForm.getValue("protocolNfsv3")),i.yb(1),i.pc("ngIf",t.nfsForm.getValue("protocolNfsv4")),i.yb(6),i.pc("ngIf",null===t.nfsAccessType),i.yb(1),i.pc("ngIf",null!==t.nfsAccessType&&0===t.nfsAccessType.length),i.yb(1),i.pc("ngIf",null!==t.nfsAccessType&&t.nfsAccessType.length>0),i.yb(1),i.pc("ngForOf",t.nfsAccessType),i.yb(1),i.pc("ngIf",t.nfsForm.getValue("access_type")),i.yb(1),i.pc("ngIf","RW"===t.nfsForm.getValue("access_type")&&"RGW"===t.nfsForm.getValue("name")),i.yb(1),i.pc("ngIf",t.nfsForm.showError("access_type",e,"required")),i.yb(6),i.pc("ngIf",null===t.nfsSquash),i.yb(1),i.pc("ngIf",null!==t.nfsSquash&&0===t.nfsSquash.length),i.yb(1),i.pc("ngIf",null!==t.nfsSquash&&t.nfsSquash.length>0),i.yb(1),i.pc("ngForOf",t.nfsSquash),i.yb(1),i.pc("ngIf",t.nfsForm.showError("squash",e,"required")),i.yb(13),i.pc("ngIf",t.nfsForm.showError("transportUDP",e,"required")||t.nfsForm.showError("transportTCP",e,"required")),i.yb(2),i.pc("form",t.nfsForm)("clients",t.clients),i.yb(3),i.pc("form",t.nfsForm)("submitText",i.kc(83,40,t.action)+" "+i.kc(84,42,t.resource))}}let Ap=(()=>{class e extends qn.a{constructor(e,t,n,i,r,s,o,a,c){super(),this.authStorageService=e,this.nfsService=t,this.route=n,this.router=i,this.rgwUserService=r,this.formBuilder=s,this.taskWrapper=o,this.cdRef=a,this.actionLabels=c,this.clients=[],this.isEdit=!1,this.cluster_id=null,this.clusterType=null,this.export_id=null,this.isNewDirectory=!1,this.isNewBucket=!1,this.isDefaultCluster=!1,this.allClusters=null,this.allDaemons={},this.icons=_n.a,this.allFsals=[],this.allRgwUsers=[],this.allCephxClients=null,this.allFsNames=null,this.defaultAccessType={RGW:"RO"},this.nfsAccessType=this.nfsService.nfsAccessType,this.nfsSquash=this.nfsService.nfsSquash,this.daemonsSelections=[],this.daemonsMessages=new lr.a({noOptions:"There are no daemons available."}),this.pathDataSource=e=>e.pipe(Bl(200),Object(Jl.a)(),Object(Ki.a)(e=>this.getPathTypeahead(e)),Object(Vi.a)(e=>e.paths)),this.bucketDataSource=e=>e.pipe(Bl(200),Object(Jl.a)(),Object(Ki.a)(e=>this.getBucketTypeahead(e))),this.permission=this.authStorageService.getPermissions().pool,this.resource="NFS export",this.createForm()}ngOnInit(){const e=[this.nfsService.daemon(),this.nfsService.fsals(),this.nfsService.clients(),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(vo.a)(e).subscribe(e=>{this.resolveDaemons(e[0]),this.resolveFsals(e[1]),this.resolveClients(e[2]),this.resolveFilesystems(e[3]),e[4]&&this.resolveModel(e[4]),this.loadingReady()})}createForm(){this.nfsForm=new Jn.a({cluster_id:new kn.h("",{validators:[kn.A.required]}),daemons:new kn.h([]),fsal:new Jn.a({name:new kn.h("",{validators:[kn.A.required]}),user_id:new kn.h("",{validators:[Cn.a.requiredIf({name:"CEPH"})]}),fs_name:new kn.h("",{validators:[Cn.a.requiredIf({name:"CEPH"})]}),rgw_user_id:new kn.h("",{validators:[Cn.a.requiredIf({name:"RGW"})]})}),path:new kn.h(""),protocolNfsv3:new kn.h(!0,{validators:[Cn.a.requiredIf({protocolNfsv4:!1},e=>!e)]}),protocolNfsv4:new kn.h(!0,{validators:[Cn.a.requiredIf({protocolNfsv3:!1},e=>!e)]}),tag:new kn.h(""),pseudo:new kn.h("",{validators:[Cn.a.requiredIf({protocolNfsv4:!0}),kn.A.pattern("^/[^><|&()]*$")]}),access_type:new kn.h("RW",{validators:[kn.A.required]}),squash:new kn.h("",{validators:[kn.A.required]}),transportUDP:new kn.h(!0,{validators:[Cn.a.requiredIf({transportTCP:!1},e=>!e)]}),transportTCP:new kn.h(!0,{validators:[Cn.a.requiredIf({transportUDP:!1},e=>!e)]}),clients:this.formBuilder.array([]),security_label:new kn.h(!1),sec_label_xattr:new kn.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),this.clusterType===of.user&&(this.daemonsSelections=jt.a.map(this.allDaemons[e.cluster_id],t=>new Ru.a(-1!==e.daemons.indexOf(t),t,"")),this.daemonsSelections=[...this.daemonsSelections]),e.protocolNfsv3=-1!==e.protocols.indexOf(3),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}resolveDaemons(e){var t;e=jt.a.sortBy(e,["daemon_id"]);const n=jt.a.groupBy(e,"cluster_id");this.allClusters=[],jt.a.forIn(n,(e,t)=>{this.allClusters.push({cluster_id:t,cluster_type:e[0].cluster_type}),this.allDaemons[t]=[]}),jt.a.forEach(e,e=>{this.allDaemons[e.cluster_id].push(e.daemon_id)}),this.isEdit&&(this.clusterType=null===(t=jt.a.find(this.allClusters,{cluster_id:this.cluster_id}))||void 0===t?void 0:t.cluster_type);const i=jt.a.isArray(this.allClusters)&&1===this.allClusters.length;this.isDefaultCluster=i&&"_default_"===this.allClusters[0].cluster_id,i&&(this.nfsForm.patchValue({cluster_id:this.allClusters[0].cluster_id}),this.onClusterChange())}resolveFsals(e){e.forEach(e=>{const t=this.nfsService.nfsFsal.find(t=>e===t.value);jt.a.isObjectLike(t)&&(this.allFsals.push(t),"RGW"===t.value&&this.rgwUserService.list().subscribe(e=>{e.forEach(e=>{0===e.suspended&&e.keys.length>0&&this.allRgwUsers.push(e.user_id)})}))}),1===this.allFsals.length&&jt.a.isUndefined(this.nfsForm.getValue("fsal"))&&this.nfsForm.patchValue({fsal:this.allFsals[0]})}resolveClients(e){this.allCephxClients=e}resolveFilesystems(e){this.allFsNames=e,1===e.length&&this.nfsForm.patchValue({fsal:{fs_name:e[0].name}})}fsalChangeHandler(){this.nfsForm.patchValue({tag:this._generateTag(),pseudo:this._generatePseudo(),access_type:this._updateAccessType()}),this.setPathValidation(),this.cdRef.detectChanges()}accessTypeChangeHandler(){const e=this.nfsForm.getValue("name"),t=this.nfsForm.getValue("access_type");this.defaultAccessType[e]=t}setPathValidation(){"RGW"===this.nfsForm.getValue("name")?this.nfsForm.get("path").setValidators([kn.A.required,kn.A.pattern("^(/|[^/><|&()#?]+)$")]):this.nfsForm.get("path").setValidators([kn.A.required,kn.A.pattern("^/[^><|&()?]*$")])}rgwUserIdChangeHandler(){this.nfsForm.patchValue({pseudo:this._generatePseudo()})}getAccessTypeHelp(e){const t=this.nfsAccessType.find(t=>{if(e===t.value)return t});return jt.a.isObjectLike(t)?t.help:""}getId(){return jt.a.isString(this.nfsForm.getValue("cluster_id"))&&jt.a.isString(this.nfsForm.getValue("path"))?this.nfsForm.getValue("cluster_id")+":"+this.nfsForm.getValue("path"):""}getPathTypeahead(e){if(!jt.a.isString(e)||"/"===e)return Object(Wi.a)([]);const t=this.nfsForm.getValue("fsal").fs_name;return this.nfsService.lsDir(t,e)}pathChangeHandler(){this.nfsForm.patchValue({pseudo:this._generatePseudo()});const e=this.nfsForm.getValue("path");this.getPathTypeahead(e).subscribe(t=>{this.isNewDirectory="/"!==e&&-1===t.paths.indexOf(e)})}bucketChangeHandler(){this.nfsForm.patchValue({tag:this._generateTag(),pseudo:this._generatePseudo()});const e=this.nfsForm.getValue("path");this.getBucketTypeahead(e).subscribe(t=>{this.isNewBucket=""!==e&&-1===t.indexOf(e)})}getBucketTypeahead(e){const t=this.nfsForm.getValue("rgw_user_id");return jt.a.isString(t)&&jt.a.isString(e)&&"/"!==e&&""!==e?this.nfsService.buckets(t):Object(Wi.a)([])}_generateTag(){let e=this.nfsForm.getValue("tag");return this.nfsForm.get("tag").dirty||(e=void 0,"RGW"===this.nfsForm.getValue("fsal")&&(e=this.nfsForm.getValue("path"))),e}_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",jt.a.isString(this.nfsForm.getValue("path"))&&(e+=this.nfsForm.getValue("path"))):"RGW"===this.nfsForm.getValue("fsal")&&jt.a.isString(this.nfsForm.getValue("rgw_user_id"))&&(e="/"+this.nfsForm.getValue("rgw_user_id"),jt.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}onClusterChange(){var e;const t=this.nfsForm.getValue("cluster_id");this.clusterType=null===(e=jt.a.find(this.allClusters,{cluster_id:t}))||void 0===e?void 0:e.cluster_type,this.clusterType===of.user?(this.daemonsSelections=jt.a.map(this.allDaemons[t],e=>new Ru.a(!1,e,"")),this.daemonsSelections=[...this.daemonsSelections]):this.daemonsSelections=[],this.nfsForm.patchValue({daemons:[]})}removeDaemon(e,t){this.daemonsSelections.forEach(e=>{e.name===t&&(e.selected=!1)});const n=this.nfsForm.get("daemons");return n.value.splice(e,1),n.setValue(n.value),!1}onDaemonSelection(){this.nfsForm.get("daemons").setValue(this.nfsForm.getValue("daemons"))}onToggleAllDaemonsSelection(){const e=this.nfsForm.getValue("cluster_id"),t=0===this.nfsForm.getValue("daemons").length?this.allDaemons[e]:[];this.nfsForm.patchValue({daemons:t})}submitAction(){let e;const t=this._buildRequest();e=this.taskWrapper.wrapTaskAroundCall(this.isEdit?{task:new er.a("nfs/edit",{cluster_id:this.cluster_id,export_id:this.export_id}),call:this.nfsService.update(this.cluster_id,this.export_id,t)}:{task:new er.a("nfs/create",{path:t.path,fsal:t.fsal,cluster_id:t.cluster_id}),call:this.nfsService.create(t)}),e.subscribe({error:()=>this.nfsForm.setErrors({cdSubmitButton:!0}),complete:()=>this.router.navigate(["/nfs"])})}_buildRequest(){const e=jt.a.cloneDeep(this.nfsForm.value);return(jt.a.isUndefined(e.tag)||""===e.tag)&&(e.tag=null),this.isEdit&&(e.export_id=this.export_id),"CEPH"===e.fsal.name?delete e.fsal.rgw_user_id:(delete e.fsal.fs_name,delete e.fsal.user_id),e.protocols=[],e.protocolNfsv3?e.protocols.push(3):e.tag=null,delete e.protocolNfsv3,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=jt.a.isString(t.addresses)?jt()(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}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Jt.a),i.Mb(rf),i.Mb(Pt.a),i.Mb(Pt.e),i.Mb(sf.a),i.Mb(So.a),i.Mb(tr.a),i.Mb(i.h),i.Mb(gn.b))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-nfs-form"]],viewQuery:function(e,t){var n;1&e&&i.Jc(_f,!0),2&e&&i.zc(n=i.hc())&&(t.nfsClients=n.first)},features:[i.vb],decls:1,vars:1,consts:function(){var e,t,n,r,s,o,a,c,l,u,d,h,f,p,m,b,g,_,y,v,w,S,M,k,x,D,T,C,O,L,R,E,A,I,P,N,j,F,Y,z,$,H,W,V,B,U,G,q,J,Q,K,Z,X,ee,te,ne;return e="" + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + "",t="Storage Backend",n="NFS Protocol",r="NFSv3",s="NFSv4",o="Access Type",a="Squash",c="Transport Protocol",l="UDP",u="TCP",d="Cluster",h="Loading...",f="-- No cluster available --",p="-- Select the cluster --",m="This field is required.",b="Daemons",g="Add daemon",_="Add all daemons",y="Remove all daemons",v="Loading...",w="-- No data pools available --",S="-- Select the storage backend --",M="This field is required.",k="Object Gateway User",x="Loading...",D="-- No users available --",T="-- Select the object gateway user --",C="This field is required.",O="CephFS User ID",L="Loading...",R="-- No clients available --",E="-- Select the cephx client --",A="This field is required.",I="CephFS Name",P="Loading...",N="-- No CephFS filesystem available --",j="-- Select the CephFS filesystem --",F="This field is required.",Y="Security Label",z="Enable security label",$="This field is required.",H="CephFS Path",W="This field is required.",V="Path need to start with a '/' and can be followed by a word",B="New directory will be created",U="Path",G="This field is required.",q="Path can only be a single '/' or a word",J="New bucket will be created",Q="This field is required.",K="NFS Tag",Z="Alternative access for " + "\ufffd#7\ufffd" + "NFS v3" + "\ufffd/#7\ufffd" + " mounts (it must not have a leading /).",X="Clients may not mount subdirectories (i.e. if Tag = foo, the client may not mount foo/baz).",ee="By using different Tag options, the same Path may be exported multiple times.",te="Pseudo",ne="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).",[["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"],["class","form-group row",4,"ngIf"],["formGroupName","fsal"],[1,"form-group","row"],["for","name",1,"cd-col-form-label","required"],t,[1,"cd-col-form-input"],["formControlName","name","name","name","id","name",1,"form-control","custom-select",3,"change"],["value","",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["class","invalid-feedback",4,"ngIf"],["for","protocols",1,"cd-col-form-label","required"],n,[1,"custom-control","custom-checkbox"],["type","checkbox","id","protocolNfsv3","name","protocolNfsv3","formControlName","protocolNfsv3",1,"custom-control-input"],["for","protocolNfsv3",1,"custom-control-label"],r,["type","checkbox","formControlName","protocolNfsv4","name","protocolNfsv4","id","protocolNfsv4",1,"custom-control-input"],["for","protocolNfsv4",1,"custom-control-label"],s,["for","access_type",1,"cd-col-form-label","required"],o,["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","required"],a,["name","squash","formControlName","squash","id","squash",1,"form-control","custom-select"],["for","transports",1,"cd-col-form-label","required"],c,["type","checkbox","formControlName","transportUDP","name","transportUDP","id","transportUDP",1,"custom-control-input"],["for","transportUDP",1,"custom-control-label"],l,["type","checkbox","formControlName","transportTCP","name","transportTCP","id","transportTCP",1,"custom-control-input"],["for","transportTCP",1,"custom-control-label"],u,[3,"form","clients"],["nfsClients",""],[1,"card-footer"],["wrappingClass","text-right",3,"form","submitText","submitActionEvent"],["for","cluster_id",1,"cd-col-form-label","required"],d,["formControlName","cluster_id","name","cluster_id","id","cluster_id",1,"form-control","custom-select",3,"change"],["value",""],h,f,p,[3,"value"],[1,"invalid-feedback"],m,["for","daemons",1,"cd-col-form-label"],b,[4,"ngFor","ngForOf"],["class","row",4,"ngIf"],[1,"input-group","cd-mb"],["type","text","disabled","",1,"cd-form-control",3,"value"],["class","input-group-append",4,"ngIf"],[1,"input-group-append"],["type","button",1,"btn","btn-light",3,"click"],["aria-hidden","true",3,"ngClass"],[1,"row"],[1,"col-md-12"],["elemClass","btn btn-light float-right",3,"data","options","messages","selection"],[3,"ngClass"],g,["type","button",1,"btn","btn-light","float-right",3,"click"],[4,"ngIf","ngIfElse"],["hasDaemons",""],_,y,v,w,S,M,["for","rgw_user_id",1,"cd-col-form-label","required"],k,["formControlName","rgw_user_id","name","rgw_user_id","id","rgw_user_id",1,"form-control","custom-select",3,"change"],x,D,T,C,["for","user_id",1,"cd-col-form-label","required"],O,["formControlName","user_id","name","user_id","id","user_id",1,"form-control","custom-select"],L,R,E,A,["for","fs_name",1,"cd-col-form-label","required"],I,["formControlName","fs_name","name","fs_name","id","fs_name",1,"form-control","custom-select",3,"change"],P,N,j,F,["for","security_label",1,"cd-col-form-label",3,"ngClass"],Y,["type","checkbox","formControlName","security_label","name","security_label","id","security_label",1,"custom-control-input"],["for","security_label",1,"custom-control-label"],z,["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"],$,["for","path",1,"cd-col-form-label","required"],H,["type","text","name","path","id","path","formControlName","path",1,"form-control",3,"ngbTypeahead","selectItem","blur"],W,V,[1,"form-text","text-muted"],B,U,G,q,J,Q,["for","tag",1,"cd-col-form-label"],K,Z,X,ee,["type","text","name","tag","id","tag","formControlName","tag",1,"form-control"],["for","pseudo",1,"cd-col-form-label"],[1,"required"],te,ne=i.bc(ne),"By using different Pseudo options, the same Path may be exported multiple times.",["type","text","name","pseudo","id","pseudo","formControlName","pseudo",1,"form-control"],"This field is required.","Pseudo needs to start with a '/' and can't contain any of the following: >, <, |, &, ( or ).","Loading...","-- No access type available --","-- Select the access type --",[1,"form-text","text-warning"],"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.",["section","rgw-nfs"],"This field is required.","Loading...","-- No squash available --","--Select what kind of user id squashing is performed --","This field is required.","This field is required."]},template:function(e,t){1&e&&i.Mc(0,Ep,85,44,"div",0),2&e&&i.pc("cdFormLoading",t.loading)},directives:[Kn.a,kn.C,kn.r,kn.k,Zn.a,wt.r,kn.l,Xn.a,On.a,kn.z,ei.a,kn.q,kn.i,wt.q,kn.b,bf,ti.a,kn.u,kn.B,wt.p,gf.a,kn.d,Qt.G,Mo.a,Cr.a],pipes:[wt.A,ir.a],styles:[".cd-mb[_ngcontent-%COMP%]{margin-bottom:10px}"]}),e})();var Ip=n("VTlA");function Pp(e,t){if(1&e&&i.Nb(0,"cd-table-key-value",10),2&e){const e=i.ic(2);i.pc("data",e.data)}}function Np(e,t){if(1&e&&i.Nb(0,"cd-table",11,12),2&e){const e=i.ic(2);i.pc("data",e.clients)("columns",e.clientsColumns)}}function jp(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"ul",1,2),i.Sb(3,"li",3),i.Sb(4,"a",4),i.Wb(5,5),i.Rb(),i.Mc(6,Pp,1,1,"ng-template",6),i.Rb(),i.Sb(7,"li",7),i.Sb(8,"a",4),i.Wb(9,8),i.Rb(),i.Mc(10,Np,2,2,"ng-template",6),i.Rb(),i.Rb(),i.Nb(11,"div",9),i.Pb()),2&e){const e=i.Ac(2),t=i.ic();i.yb(9),i.ac(t.clients.length),i.Xb(9),i.yb(2),i.pc("ngbNavOutlet",e)}}let Fp=(()=>{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["Daemons"]=this.selectedItem.daemons,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.rgw_user_id))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-nfs-details"]],inputs:{selection:"selection"},features:[i.wb],decls:1,vars:1,consts:function(){return[[4,"ngIf"],["ngbNav","","cdStatefulTab","nfs-details",1,"nav-tabs"],["nav","ngbNav"],["ngbNavItem","details"],["ngbNavLink",""],"Details",["ngbNavContent",""],["ngbNavItem","clients"],"Clients (" + "\ufffd0\ufffd" + ")",[3,"ngbNavOutlet"],[3,"data"],["columnMode","flex","identifier","addresses","forceIdentifier","true","selectionType","",3,"data","columns"],["table",""]]},template:function(e,t){1&e&&i.Mc(0,jp,12,2,"ng-container",0),2&e&&i.pc("ngIf",t.selection)},directives:[wt.r,Qt.p,Kt.a,Qt.r,Qt.s,Qt.q,Qt.u,en.a,Bt.a],styles:[""]}),e})();const Yp=["nfsState"],zp=["nfsFsal"],$p=["table"];function Hp(e,t){1&e&&(i.Qb(0),i.Wb(1,7),i.Pb())}function Wp(e,t){1&e&&(i.Qb(0),i.Wb(1,8),i.Pb())}function Vp(e,t){if(1&e&&(i.Mc(0,Hp,2,0,"ng-container",6),i.Mc(1,Wp,2,0,"ng-container",6)),2&e){const e=t.value;i.pc("ngIf","CEPH"===e.name),i.yb(1),i.pc("ngIf","RGW"===e.name)}}let Bp=(()=>{class e extends $t.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 Wt.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:Ht.a.executing},{name:"Pseudo",prop:"pseudo",flexGrow:2},{name:"Cluster",prop:"cluster_id",flexGrow:2},{name:"Daemons",prop:"daemons",flexGrow:2},{name:"Storage Backend",prop:"fsal",flexGrow:2,cellTemplate:this.nfsFsal},{name:"Access Type",prop:"access_type",flexGrow:2}],this.nfsService.daemon().subscribe(e=>{const t=jt()(e).map(e=>e.cluster_id).uniq().value();this.isDefaultCluster=1===t.length&&"_default_"===t[0],this.columns[2].isHidden=this.isDefaultCluster,this.table&&this.table.updateColumns(),this.taskListService.init(()=>this.nfsService.list(),e=>this.prepareResponse(e),e=>this.exports=e,()=>this.onFetchError(),this.taskFilter,this.itemFilter,this.builders)},()=>{this.onFetchError()})}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 er.a("nfs/delete",{cluster_id:e,export_id:t}),call:this.nfsService.delete(e,t)})})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Jt.a),i.Mb(vn.a),i.Mb(rf),i.Mb(Ip.a),i.Mb(tr.a),i.Mb(gn.b))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-nfs-list"]],viewQuery:function(e,t){var n;1&e&&(i.Tc(Yp,!0),i.Jc(zp,!0),i.Jc($p,!0)),2&e&&(i.zc(n=i.hc())&&(t.nfsState=n.first),i.zc(n=i.hc())&&(t.nfsFsal=n.first),i.zc(n=i.hc())&&(t.table=n.first))},features:[i.xb([Ip.a]),i.vb],decls:7,vars:7,consts:function(){return[["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"],"CephFS","Object Gateway"]},template:function(e,t){1&e&&(i.Sb(0,"cd-table",0,1),i.gc("setExpandedRow",(function(e){return t.setExpandedRow(e)}))("updateSelection",(function(e){return t.updateSelection(e)})),i.Sb(2,"div",2),i.Nb(3,"cd-table-actions",3),i.Rb(),i.Nb(4,"cd-nfs-details",4),i.Rb(),i.Mc(5,Vp,2,2,"ng-template",null,5,i.Nc)),2&e&&(i.pc("data",t.exports)("columns",t.columns)("hasDetails",!0),i.yb(3),i.pc("permission",t.permission)("selection",t.selection)("tableActions",t.tableActions),i.yb(1),i.pc("selection",t.expandedRow))},directives:[Bt.a,Sn.a,Fp,wt.r],styles:[""]}),e})(),Up=(()=>{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)(i.Mb(Pt.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-performance-counter"]],decls:3,vars:4,consts:[[3,"serviceType","serviceId"]],template:function(e,t){1&e&&(i.Sb(0,"legend"),i.Oc(1),i.Rb(),i.Nb(2,"cd-table-performance-counter",0)),2&e&&(i.yb(1),i.Rc("",t.serviceType,".",t.serviceId,""),i.yb(1),i.pc("serviceType",t.serviceType)("serviceId",t.serviceId))},directives:[zc.a],styles:[""]}),e})();var Gp=n("DSvg"),qp=n("Mxhz"),Jp=n("1nQr");function Qp(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,31),i.Rb())}function Kp(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,32),i.Rb())}function Zp(e,t){if(1&e&&i.Nb(0,"cd-helper",33),2&e){const e=i.ic();i.qc("html",e.passwordPolicyHelpText)}}function Xp(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,34),i.Rb())}function em(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,35),i.Rb())}function tm(e,t){if(1&e&&(i.Sb(0,"span",30),i.Oc(1),i.Rb()),2&e){const e=i.ic();i.yb(1),i.Qc(" ",e.passwordValuation," ")}}function nm(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,36),i.Rb())}function im(e,t){1&e&&(i.Sb(0,"span",30),i.Wb(1,37),i.Rb())}let rm=(()=>{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,[kn.A.required,Cn.a.custom("notmatch",()=>this.userForm&&this.userForm.getValue("newpassword")===this.userForm.getValue("oldpassword"))]],newpassword:[null,[kn.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=jt.a.defaultTo(n,"")})]],confirmnewpassword:[null,[kn.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(yn.a.success,"Updated user password\""),this.router.navigate(["/login"])}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(gn.b),i.Mb(wn.a),i.Mb(qp.a),i.Mb(Jt.a),i.Mb(So.a),i.Mb(Pt.e),i.Mb(Jp.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-user-password-form"]],decls:48,vars:25,consts:function(){return[[1,"cd-col-form"],["novalidate","",3,"formGroup"],["frm","ngForm"],[1,"card"],[1,"card-header"],"" + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + "",[1,"card-body"],[1,"form-group","row"],["for","oldpassword",1,"cd-col-form-label","required"],"Old password",[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"],"New password",["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"],"Confirm new password",["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"],"This field is required.","The old and new passwords must be different.",[1,"text-pre-wrap",3,"html"],"This field is required.","The old and new passwords must be different.","This field is required.","Password confirmation doesn't match the new password."]},template:function(e,t){if(1&e&&(i.Sb(0,"div",0),i.Sb(1,"form",1,2),i.Sb(3,"div",3),i.Sb(4,"div",4),i.Wb(5,5),i.jc(6,"titlecase"),i.jc(7,"upperFirst"),i.Rb(),i.Sb(8,"div",6),i.Sb(9,"div",7),i.Sb(10,"label",8),i.Wb(11,9),i.Rb(),i.Sb(12,"div",10),i.Sb(13,"div",11),i.Nb(14,"input",12),i.Sb(15,"span",13),i.Nb(16,"button",14),i.Rb(),i.Rb(),i.Mc(17,Qp,2,0,"span",15),i.Mc(18,Kp,2,0,"span",15),i.Rb(),i.Rb(),i.Sb(19,"div",7),i.Sb(20,"label",16),i.Sb(21,"span",17),i.Wb(22,18),i.Rb(),i.Mc(23,Zp,1,1,"cd-helper",19),i.Rb(),i.Sb(24,"div",10),i.Sb(25,"div",11),i.Nb(26,"input",20),i.Sb(27,"span",13),i.Nb(28,"button",21),i.Rb(),i.Rb(),i.Sb(29,"div",22),i.Nb(30,"div",23),i.Rb(),i.Mc(31,Xp,2,0,"span",15),i.Mc(32,em,2,0,"span",15),i.Mc(33,tm,2,1,"span",15),i.Rb(),i.Rb(),i.Sb(34,"div",7),i.Sb(35,"label",24),i.Wb(36,25),i.Rb(),i.Sb(37,"div",10),i.Sb(38,"div",11),i.Nb(39,"input",26),i.Sb(40,"span",13),i.Nb(41,"button",27),i.Rb(),i.Rb(),i.Mc(42,nm,2,0,"span",15),i.Mc(43,im,2,0,"span",15),i.Rb(),i.Rb(),i.Rb(),i.Sb(44,"div",28),i.Sb(45,"cd-form-button-panel",29),i.gc("submitActionEvent",(function(){return t.onSubmit()})),i.jc(46,"titlecase"),i.jc(47,"upperFirst"),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()),2&e){const e=i.Ac(2);i.yb(1),i.pc("formGroup",t.userForm),i.yb(6),i.ac(i.kc(6,17,t.action))(i.kc(7,19,t.resource)),i.Xb(5),i.yb(10),i.pc("ngIf",t.userForm.showError("oldpassword",e,"required")),i.yb(1),i.pc("ngIf",t.userForm.showError("oldpassword",e,"notmatch")),i.yb(5),i.pc("ngIf",t.passwordPolicyHelpText.length>0),i.yb(7),i.Ab(t.passwordStrengthLevelClass),i.qc("title",t.passwordValuation),i.yb(1),i.pc("ngIf",t.userForm.showError("newpassword",e,"required")),i.yb(1),i.pc("ngIf",t.userForm.showError("newpassword",e,"notmatch")),i.yb(1),i.pc("ngIf",t.userForm.showError("newpassword",e,"passwordPolicy")),i.yb(9),i.pc("ngIf",t.userForm.showError("confirmnewpassword",e,"required")),i.yb(1),i.pc("ngIf",t.userForm.showError("confirmnewpassword",e,"match")),i.yb(2),i.pc("form",t.userForm)("submitText",i.kc(46,21,t.action)+" "+i.kc(47,23,t.resource))}},directives:[kn.C,kn.r,kn.k,Zn.a,Xn.a,On.a,kn.d,ei.a,kn.q,kn.i,nr.a,Au.a,wt.r,ti.a,Mo.a],pipes:[wt.A,ir.a],styles:[""]}),e})();function sm(e,t){1&e&&(i.Sb(0,"span",17),i.Wb(1,18),i.Rb())}function om(e,t){1&e&&(i.Sb(0,"span",17),i.Wb(1,19),i.Rb())}function am(e,t){1&e&&(i.Sb(0,"span",17),i.Wb(1,20),i.Rb())}function cm(e,t){1&e&&(i.Sb(0,"span",17),i.Wb(1,21),i.Rb())}function lm(e,t){if(1&e&&(i.Sb(0,"span",17),i.Oc(1),i.Rb()),2&e){const e=i.ic();i.yb(1),i.Qc(" ",e.passwordValuation," ")}}function um(e,t){1&e&&(i.Sb(0,"span",17),i.Wb(1,22),i.Rb())}function dm(e,t){1&e&&(i.Sb(0,"span",17),i.Wb(1,23),i.Rb())}let hm=(()=>{class e extends rm{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)(i.Mb(gn.b),i.Mb(wn.a),i.Mb(qp.a),i.Mb(Jt.a),i.Mb(So.a),i.Mb(Pt.e),i.Mb(Jp.a),i.Mb(Gp.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-login-password-form"]],features:[i.vb],decls:34,vars:19,consts:function(){return["Please set a new password.","You will be redirected to the login page afterwards.",["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"],"This field is required.","The old and new passwords must be different.","This field is required.","The old and new passwords must be different.","This field is required.","Password confirmation doesn't match the new password."]},template:function(e,t){if(1&e&&(i.Sb(0,"div"),i.Sb(1,"h2"),i.Wb(2,0),i.Rb(),i.Sb(3,"h4"),i.Wb(4,1),i.Rb(),i.Sb(5,"form",2,3),i.Sb(7,"div",4),i.Sb(8,"div",5),i.Nb(9,"input",6),i.Sb(10,"span",7),i.Nb(11,"button",8),i.Rb(),i.Rb(),i.Mc(12,sm,2,0,"span",9),i.Mc(13,om,2,0,"span",9),i.Rb(),i.Sb(14,"div",4),i.Sb(15,"div",5),i.Nb(16,"input",10),i.Sb(17,"span",7),i.Nb(18,"button",11),i.Rb(),i.Rb(),i.Sb(19,"div",12),i.Nb(20,"div",13),i.Rb(),i.Mc(21,am,2,0,"span",9),i.Mc(22,cm,2,0,"span",9),i.Mc(23,lm,2,1,"span",9),i.Rb(),i.Sb(24,"div",4),i.Sb(25,"div",5),i.Nb(26,"input",14),i.Sb(27,"span",7),i.Nb(28,"button",15),i.Rb(),i.Rb(),i.Mc(29,um,2,0,"span",9),i.Mc(30,dm,2,0,"span",9),i.Rb(),i.Sb(31,"cd-form-button-panel",16),i.gc("submitActionEvent",(function(){return t.onSubmit()}))("backActionEvent",(function(){return t.onCancel()})),i.jc(32,"titlecase"),i.jc(33,"upperFirst"),i.Rb(),i.Rb(),i.Rb()),2&e){const e=i.Ac(6);i.yb(5),i.pc("formGroup",t.userForm),i.yb(7),i.pc("ngIf",t.userForm.showError("oldpassword",e,"required")),i.yb(1),i.pc("ngIf",t.userForm.showError("oldpassword",e,"notmatch")),i.yb(7),i.Ab(t.passwordStrengthLevelClass),i.qc("title",t.passwordValuation),i.yb(1),i.pc("ngIf",t.userForm.showError("newpassword",e,"required")),i.yb(1),i.pc("ngIf",t.userForm.showError("newpassword",e,"notmatch")),i.yb(1),i.pc("ngIf",t.userForm.showError("newpassword",e,"passwordPolicy")),i.yb(6),i.pc("ngIf",t.userForm.showError("confirmnewpassword",e,"required")),i.yb(1),i.pc("ngIf",t.userForm.showError("confirmnewpassword",e,"match")),i.yb(1),i.pc("form",t.userForm)("disabled",t.userForm.invalid)("submitText",i.kc(32,15,t.action)+" "+i.kc(33,17,t.resource))}},directives:[kn.C,kn.r,kn.k,Zn.a,Xn.a,On.a,kn.d,ei.a,kn.q,kn.i,nr.a,Au.a,wt.r,ti.a],pipes:[wt.A,ir.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:transparent}"]}),e})();class fm{}function pm(e,t){1&e&&(i.Sb(0,"div",21),i.Wb(1,22),i.Rb())}function mm(e,t){1&e&&(i.Sb(0,"div",21),i.Wb(1,23),i.Rb())}function bm(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",1),i.Sb(1,"form",2,3),i.gc("ngSubmit",(function(){return i.Dc(e),i.ic().login()})),i.Sb(3,"div",4),i.Sb(4,"label",5),i.Wb(5,6),i.Rb(),i.Sb(6,"input",7,8),i.gc("ngModelChange",(function(t){return i.Dc(e),i.ic().model.username=t})),i.Rb(),i.Mc(8,pm,2,0,"div",9),i.Rb(),i.Sb(9,"div",10),i.Sb(10,"div",11),i.Sb(11,"div",12),i.Sb(12,"label",13),i.Wb(13,14),i.Rb(),i.Sb(14,"input",15,16),i.gc("ngModelChange",(function(t){return i.Dc(e),i.ic().model.password=t})),i.Rb(),i.Mc(16,mm,2,0,"div",9),i.Rb(),i.Sb(17,"span",17),i.Nb(18,"button",18),i.Rb(),i.Rb(),i.Rb(),i.Sb(19,"input",19),i.Yb(20,20),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.Ac(2),t=i.Ac(7),n=i.Ac(15),r=i.ic();i.yb(6),i.pc("ngModel",r.model.username),i.zb("aria-invalid",t.invalid),i.yb(2),i.pc("ngIf",(e.submitted||t.dirty)&&t.invalid),i.yb(6),i.pc("ngModel",r.model.password),i.zb("aria-invalid",n.invalid),i.yb(2),i.pc("ngIf",(e.submitted||n.dirty)&&n.invalid),i.yb(3),i.pc("disabled",e.invalid)}}let gm=(()=>{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 fm,this.isLoginActive=!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?"#/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(()=>{const e=jt.a.get(this.route.snapshot.queryParams,"returnUrl","/");this.router.navigate([e])})}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Gp.a),i.Mb(Jt.a),i.Mb(vn.a),i.Mb(Pt.a),i.Mb(Pt.e))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-login"]],decls:1,vars:1,consts:function(){return[["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"],"Username",["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"],"Password",["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",1,"btn","btn-accent","px-5","py-2",3,"disabled",6,"value"],["value","Log in"],[1,"invalid-feedback","pl-4"],"Username is required","Password is required"]},template:function(e,t){1&e&&i.Mc(0,bm,21,7,"div",0),2&e&&i.pc("ngIf",t.isLoginActive)},directives:[wt.r,kn.C,kn.r,kn.s,Xn.a,On.a,kn.d,ei.a,kn.y,nr.a,kn.q,kn.t,Au.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 _m=n("tz6c");function ym(e,t){if(1&e&&(i.Sb(0,"div"),i.Nb(1,"i",8),i.Nb(2,"br"),i.Nb(3,"br"),i.Nb(4,"br"),i.Sb(5,"h3"),i.Sb(6,"b"),i.Oc(7),i.Rb(),i.Rb(),i.Nb(8,"br"),i.Sb(9,"h4"),i.Oc(10),i.Rb(),i.Rb()),2&e){const e=i.ic();i.yb(1),i.Ab(e.icon),i.yb(6),i.Pc(e.header),i.yb(3),i.Pc(e.message)}}function vm(e,t){1&e&&(i.Nb(0,"i",9),i.Nb(1,"br"),i.Nb(2,"br"),i.Nb(3,"br"),i.Sb(4,"h3"),i.cc(5,10),i.Nb(6,"b"),i.Zb(),i.Rb(),i.Nb(7,"br"),i.Sb(8,"h4"),i.Wb(9,11),i.Rb())}function wm(e,t){if(1&e&&(i.Sb(0,"div"),i.Sb(1,"h4"),i.cc(2,12),i.Nb(3,"a",13),i.Zb(),i.Rb(),i.Rb()),2&e){const e=i.ic();i.yb(3),i.qc("href",e.docUrl,i.Gc),i.ac(e.section_info),i.Xb(2)}}let Sm=(()=>{class e{constructor(e,t){this.router=e,this.docService=t}ngOnInit(){this.fetchData(),this.routerSubscription=this.router.events.pipe(Object(Ql.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)(i.Mb(Pt.e),i.Mb(_m.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-error"]],hostBindings:function(e,t){1&e&&i.gc("beforeunload",(function(e){return t.unloadHandler(e)}),!1,i.Cc)},decls:16,vars:4,consts:function(){return[["target","_blank"],[1,"dashboard","row"],[1,"text-center","content"],[4,"ngIf","ngIfElse"],["elseBlock",""],[4,"ngIf"],[1,"btn","btn-primary",3,"routerLink"],"Go To Dashboard",["aria-hidden","true"],["aria-hidden","true",1,"fa","fa-exclamation-triangle"],"" + "\ufffd#6\ufffd" + "Page not Found" + "\ufffd/#6\ufffd" + "","Sorry, we couldn\u2019t find what you were looking for. The page you requested may have been changed or moved.","Please consult the " + "\ufffd#3\ufffd" + "documentation" + "\ufffd/#3\ufffd" + " on how to configure and enable the " + "\ufffd0\ufffd" + " management functionality.",[3,"href"]]},template:function(e,t){if(1&e&&(i.Sb(0,"head"),i.Sb(1,"title"),i.Oc(2,"Error Page"),i.Rb(),i.Nb(3,"base",0),i.Rb(),i.Sb(4,"div",1),i.Sb(5,"div",2),i.Nb(6,"br"),i.Mc(7,ym,11,5,"div",3),i.Mc(8,vm,10,0,"ng-template",null,4,i.Nc),i.Mc(10,wm,4,2,"div",5),i.Nb(11,"br"),i.Nb(12,"br"),i.Sb(13,"div"),i.Sb(14,"button",6),i.Wb(15,7),i.Rb(),i.Rb(),i.Rb(),i.Rb()),2&e){const e=i.Ac(9);i.yb(7),i.pc("ngIf",t.header&&t.message)("ngIfElse",e),i.yb(3),i.pc("ngIf",t.section),i.yb(4),i.pc("routerLink","/dashboard")}},directives:[wt.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})(),Mm=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-blank-layout"]],decls:1,vars:0,template:function(e,t){1&e&&i.Nb(0,"router-outlet")},directives:[Pt.j],styles:[""]}),e})(),km=(()=>{class e{constructor(e,t){this.http=e,this.localeId=t}getLocale(){return this.localeId||s.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)(i.dc(o.b),i.dc(i.v))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var xm=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 Dm(e,t){if(1&e){const e=i.Tb();i.Qb(0),i.Sb(1,"button",5),i.gc("click",(function(){i.Dc(e);const n=t.$implicit;return i.ic().changeLanguage(n.key)})),i.Oc(2),i.Rb(),i.Pb()}if(2&e){const e=t.$implicit;i.yb(2),i.Qc(" ",e.value," ")}}let Tm=(()=>{class e{constructor(e){this.languageService=e,this.allLanguages=xm,this.supportedLanguages={}}ngOnInit(){this.selectedLanguage=this.languageService.getLocale(),this.languageService.getLanguages().subscribe(e=>{this.supportedLanguages=jt.a.pick(xm,e)})}reloadWindow(){window.location.reload()}changeLanguage(e){this.languageService.setLocale(e),this.reloadWindow()}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(km))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-language-selector"]],decls:7,vars:4,consts:function(){return[["ngbDropdown","","placement","bottom-right"],["ngbDropdownToggle","",6,"title"],["title","Select a Language"],["ngbDropdownMenu",""],[4,"ngFor","ngForOf"],["ngbDropdownItem","",3,"click"]]},template:function(e,t){1&e&&(i.Sb(0,"div",0),i.Sb(1,"a",1),i.Yb(2,2),i.Oc(3),i.Rb(),i.Sb(4,"div",3),i.Mc(5,Dm,3,1,"ng-container",4),i.jc(6,"keyvalue"),i.Rb(),i.Rb()),2&e&&(i.yb(3),i.Qc(" ",t.allLanguages[t.selectedLanguage]," "),i.yb(2),i.pc("ngForOf",i.kc(6,2,t.supportedLanguages)))},directives:[Qt.i,Qt.m,Qt.k,wt.q,On.a,Qt.j],pipes:[wt.k],styles:[""]}),e})();function Cm(e,t){if(1&e&&(i.Sb(0,"li",10),i.Sb(1,"cd-doc",11),i.Yb(2,12),i.Rb(),i.Rb()),2&e){const e=t.$implicit;i.yb(1),i.ac(e.text),i.Xb(2),i.qc("section",e.section)}}let Om=(()=>{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=i.Gb({type:e,selectors:[["cd-login-layout"]],decls:15,vars:1,consts:function(){return[[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","" + "\ufffd0\ufffd" + ""]]},template:function(e,t){1&e&&(i.Sb(0,"main",0),i.Sb(1,"header"),i.Sb(2,"nav",1),i.Nb(3,"a",2),i.Sb(4,"div",3),i.Nb(5,"cd-language-selector"),i.Rb(),i.Rb(),i.Rb(),i.Sb(6,"section"),i.Sb(7,"div",4),i.Sb(8,"div",5),i.Sb(9,"div",6),i.Nb(10,"router-outlet"),i.Rb(),i.Sb(11,"div",6),i.Nb(12,"img",7),i.Sb(13,"ul",8),i.Mc(14,Cm,3,2,"li",9),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb()),2&e&&(i.yb(14),i.pc("ngForOf",t.docItems))},directives:[Qt.v,Tm,Pt.j,wt.q,Cr.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 Lm=n("mSOc");let Rm=(()=>{class e{constructor(e,t){this.document=e,this.summaryService=t}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),uh[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=uh[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)(i.dc(wt.d),i.dc(Lm.a))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})();var Em=n("VXsX"),Am=n("oMSZ");function Im(e,t){1&e&&(i.Sb(0,"div"),i.cc(1,3),i.Nb(2,"strong"),i.Nb(3,"a",4),i.Zb(),i.Rb())}function Pm(e,t){if(1&e&&(i.Sb(0,"div"),i.cc(1,5),i.Nb(2,"strong"),i.Nb(3,"a",4),i.Zb(),i.Rb()),2&e){const e=i.ic(2);i.yb(3),i.ac(e.expirationDays),i.Xb(1)}}function Nm(e,t){if(1&e){const e=i.Tb();i.Sb(0,"ngb-alert",1),i.gc("close",(function(t){return i.Dc(e),i.ic().close(t)})),i.Mc(1,Im,4,0,"div",2),i.Mc(2,Pm,4,1,"div",2),i.Rb()}if(2&e){const e=i.ic();i.qc("type",e.alertType),i.yb(1),i.pc("ngIf",0===e.expirationDays),i.yb(1),i.pc("ngIf",e.expirationDays>0)}}let jm=(()=>{class e{constructor(e,t){this.settingsService=e,this.authStorageService=t,this.displayNotification=!1}ngOnInit(){this.settingsService.getStandardSettings().subscribe(e=>{this.pwdExpirationSettings=new Am.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)(i.Mb(yl.a),i.Mb(Jt.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-pwd-expiration-notification"]],decls:1,vars:1,consts:function(){return[["class","no-margin-bottom",3,"type","close",4,"ngIf"],[1,"no-margin-bottom",3,"type","close"],[4,"ngIf"],"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.",["routerLink","/user-profile/edit",1,"alert-link"],"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."]},template:function(e,t){1&e&&i.Mc(0,Nm,3,3,"ngb-alert",0),2&e&&i.pc("ngIf",t.displayNotification)},directives:[wt.r,Qt.b,Pt.h],styles:["cd-pwd-expiration-notification .no-margin-bottom{margin-bottom:0}"]}),e})();function Fm(e,t){if(1&e){const e=i.Tb();i.Sb(0,"ngb-alert",1),i.gc("close",(function(t){return i.Dc(e),i.ic().close(t)})),i.Sb(1,"div"),i.cc(2,2),i.Nb(3,"a",3),i.Nb(4,"a",4),i.Zb(),i.Rb(),i.Rb()}}let Ym=(()=>{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;jt.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(yn.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)(i.Mb(wo),i.Mb(Jt.a),i.Mb(wn.a),i.Mb(Ad))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-telemetry-notification"]],decls:1,vars:1,consts:function(){var 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.",[["class","no-margin-bottom","type","warning",3,"close",4,"ngIf"],["type","warning",1,"no-margin-bottom",3,"close"],e=i.bc(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&&i.Mc(0,Fm,5,0,"ngb-alert",0),2&e&&i.pc("ngIf",t.displayNotification)},directives:[wt.r,Qt.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 zm=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(Ft.a)(this,void 0,void 0,(function(){var t,n,i;return Object(Ft.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}(),$m=function(){function e(){this._semaphore=new zm(1)}return e.prototype.acquire=function(){return Object(Ft.a)(this,void 0,void 0,(function(){return Object(Ft.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 Hm=(()=>{class e{constructor(e,t){this.alertFormatter=e,this.prometheusService=t,this.backendFailure=!1,this.notifications=[]}refresh(){this.backendFailure||this.prometheusService.getNotifications(jt.a.last(this.notifications)).subscribe(e=>this.handleNotifications(e),()=>this.backendFailure=!0)}handleNotifications(e){0!==e.length&&(this.notifications.length>0&&this.alertFormatter.sendNotifications(jt.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)(i.dc(Sl),i.dc(vl))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Wm=n("ufoC"),Vm=n("Hicy"),Bm=n("WF9J");const Um=function(e,t){return[e,t]},Gm=function(e,t,n,i){return[e,t,n,i]};function qm(e,t){if(1&e&&(i.Sb(0,"div"),i.Sb(1,"div",12),i.Sb(2,"div",13),i.Sb(3,"div",14),i.Sb(4,"span",15),i.Nb(5,"i",7),i.Nb(6,"i",7),i.Rb(),i.Rb(),i.Sb(7,"div",16),i.Sb(8,"div",17),i.Sb(9,"h6",18),i.Oc(10),i.Rb(),i.Sb(11,"div",19),i.Nb(12,"ngb-progressbar",20),i.Rb(),i.Sb(13,"p",21),i.Sb(14,"small",22),i.Oc(15),i.jc(16,"cdDate"),i.Rb(),i.Sb(17,"span",23),i.Oc(18),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Nb(19,"hr"),i.Rb()),2&e){const e=t.$implicit,n=i.ic(2);i.yb(4),i.pc("ngClass",i.vc(11,Um,n.icons.stack,n.icons.large2x)),i.yb(1),i.pc("ngClass",i.vc(14,Um,n.icons.stack2x,n.icons.circle)),i.yb(1),i.pc("ngClass",i.xc(17,Gm,n.icons.stack1x,n.icons.spinner,n.icons.spin,n.icons.inverse)),i.yb(4),i.Pc(e.description),i.yb(2),i.pc("value",null==e?null:e.progress)("striped",!0)("animated",!0),i.yb(3),i.Qc(" ",i.kc(16,9,e.begin_time)," "),i.yb(3),i.Qc(" ",e.progress||0," % ")}}function Jm(e,t){if(1&e&&i.Mc(0,qm,20,22,"div",11),2&e){const e=i.ic();i.pc("ngForOf",e.executingTasks)("ngForTrackBy",e.trackByFn)}}function Qm(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"small"),i.Qb(2),i.Wb(3,36),i.Pb(),i.Oc(4),i.jc(5,"duration"),i.Rb(),i.Nb(6,"br"),i.Pb()),2&e){const e=i.ic().$implicit;i.yb(4),i.Qc(" ",i.kc(5,1,e.duration)," ")}}const Km=function(e,t,n){return[e,t,n]},Zm=function(e){return[e]};function Xm(e,t){if(1&e){const e=i.Tb();i.Sb(0,"div",7),i.Sb(1,"div",29),i.Sb(2,"div",13),i.Sb(3,"div",14),i.Sb(4,"span",7),i.Nb(5,"i",7),i.Nb(6,"i",7),i.Rb(),i.Rb(),i.Sb(7,"div",30),i.Sb(8,"div",17),i.Sb(9,"button",31),i.Yb(10,32),i.gc("click",(function(n){i.Dc(e);const r=t.index;return i.ic(3).remove(r),n.stopPropagation()})),i.Nb(11,"i",7),i.Rb(),i.Sb(12,"h6",18),i.Oc(13),i.Rb(),i.Nb(14,"p",33),i.Sb(15,"p",21),i.Mc(16,Qm,7,3,"ng-container",24),i.Sb(17,"small",34),i.jc(18,"cdDate"),i.Oc(19),i.jc(20,"relativeDate"),i.Rb(),i.Nb(21,"i",35),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Nb(22,"hr"),i.Rb()}if(2&e){const e=t.$implicit,n=i.ic(3);i.pc("ngClass",e.borderClass),i.yb(4),i.pc("ngClass",i.wc(16,Km,n.icons.stack,n.icons.large2x,e.textClass)),i.yb(1),i.pc("ngClass",i.vc(20,Um,n.icons.circle,n.icons.stack2x)),i.yb(1),i.pc("ngClass",i.wc(23,Km,n.icons.stack1x,n.icons.inverse,e.iconClass)),i.yb(5),i.pc("ngClass",i.uc(27,Zm,n.icons.trash)),i.yb(2),i.Pc(e.title),i.yb(1),i.pc("innerHtml",e.message,i.Ec),i.yb(2),i.pc("ngIf",e.duration),i.yb(1),i.pc("title",i.kc(18,12,e.timestamp)),i.yb(2),i.Pc(i.kc(20,14,e.timestamp)),i.yb(2),i.pc("ngClass",i.uc(29,Zm,e.applicationClass))("title",e.application)}}function eb(e,t){if(1&e){const e=i.Tb();i.Qb(0),i.Sb(1,"button",25),i.gc("click",(function(t){return i.Dc(e),i.ic(2).removeAll(),t.stopPropagation()})),i.Nb(2,"i",26),i.Oc(3," \xa0 "),i.Qb(4),i.Wb(5,27),i.Pb(),i.Rb(),i.Nb(6,"hr"),i.Mc(7,Xm,23,31,"div",28),i.Pb()}if(2&e){const e=i.ic(2);i.yb(2),i.pc("ngClass",i.uc(2,Zm,e.icons.trash)),i.yb(5),i.pc("ngForOf",e.notifications)}}function tb(e,t){if(1&e&&i.Mc(0,eb,8,4,"ng-container",24),2&e){const e=i.ic();i.pc("ngIf",e.notifications.length>0)}}function nb(e,t){1&e&&(i.Sb(0,"div"),i.Sb(1,"div",37),i.Wb(2,38),i.Rb(),i.Rb())}function ib(e,t){if(1&e&&i.Mc(0,nb,3,0,"div",24),2&e){const e=i.ic();i.pc("ngIf",0===e.notifications.length&&0===e.executingTasks.length)}}function rb(e,t){1&e&&i.Ob(0)}function sb(e,t){1&e&&i.Ob(0)}function ob(e,t){1&e&&i.Ob(0)}let ab=(()=>{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 Oi.a,this.icons=_n.a,this.last_task="",this.mutex=new $m,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=jt.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=>{jt.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 wl.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)(i.Mb(wn.a),i.Mb(Lm.a),i.Mb(Wm.a),i.Mb(Hm),i.Mb(Jt.a),i.Mb(Ml),i.Mb(i.A),i.Mb(i.h))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-notifications-sidebar"]],hostVars:2,hostBindings:function(e,t){2&e&&i.Eb("active",t.isSidebarOpened)},decls:18,vars:6,consts:function(){return[["tasksTpl",""],["notificationsTpl",""],["emptyTpl",""],[1,"card",3,"clickOutsideEnabled","clickOutside"],[1,"card-header"],"Tasks and Notifications",["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"],"Clear notifications",[3,"ngClass",4,"ngFor","ngForOf"],[1,"card","tc_notification","border-0"],[1,"col-md-10"],[1,"btn","btn-link","float-right","mt-0","pt-0",3,"click",6,"title"],["title","Remove notification"],[1,"card-text",3,"innerHtml"],[1,"date",3,"title"],[1,"float-right","custom-icon",3,"ngClass","title"],"Duration:",[1,"message","text-center"],"There are no notifications."]},template:function(e,t){if(1&e&&(i.Mc(0,Jm,1,2,"ng-template",null,0,i.Nc),i.Mc(2,tb,1,1,"ng-template",null,1,i.Nc),i.Mc(4,ib,1,1,"ng-template",null,2,i.Nc),i.Sb(6,"div",3),i.gc("clickOutside",(function(){return t.closeSidebar()})),i.Sb(7,"div",4),i.Qb(8),i.Wb(9,5),i.Pb(),i.Sb(10,"button",6),i.gc("click",(function(){return t.closeSidebar()})),i.Sb(11,"span"),i.Nb(12,"i",7),i.Rb(),i.Rb(),i.Rb(),i.Sb(13,"ngx-simplebar",8),i.Sb(14,"div",9),i.Mc(15,rb,1,0,"ng-container",10),i.Mc(16,sb,1,0,"ng-container",10),i.Mc(17,ob,1,0,"ng-container",10),i.Rb(),i.Rb(),i.Rb()),2&e){const e=i.Ac(1),n=i.Ac(3),r=i.Ac(5);i.yb(6),i.pc("clickOutsideEnabled",t.isSidebarOpened),i.yb(6),i.pc("ngClass",t.icons.close),i.yb(1),i.pc("options",t.simplebar),i.yb(2),i.pc("ngTemplateOutlet",e),i.yb(1),i.pc("ngTemplateOutlet",n),i.yb(1),i.pc("ngTemplateOutlet",r)}},directives:[Vm.a,On.a,wt.p,Bm.a,wt.w,wt.q,Qt.z,wt.r],pipes:[Vt.a,Yr.a,Al],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 cb(e,t){1&e&&i.Nb(0,"span",6)}const lb=function(e){return{running:e}},ub=function(e){return[e]};let db=(()=>{class e{constructor(e,t){this.notificationService=e,this.summaryService=t,this.icons=_n.a,this.hasRunningTasks=!1,this.hasNotifications=!1,this.subs=new Oi.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)(i.Mb(wn.a),i.Mb(Lm.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-notifications"]],decls:6,vars:7,consts:function(){return[[3,"ngClass","click",6,"title"],["title","Tasks and Notifications"],[3,"ngClass"],["class","dot",4,"ngIf"],[1,"d-md-none"],"Tasks and Notifications",[1,"dot"]]},template:function(e,t){1&e&&(i.Sb(0,"a",0),i.Yb(1,1),i.gc("click",(function(){return t.toggleSidebar()})),i.Nb(2,"i",2),i.Mc(3,cb,1,0,"span",3),i.Sb(4,"span",4),i.Wb(5,5),i.Rb(),i.Rb()),2&e&&(i.pc("ngClass",i.uc(3,lb,t.hasRunningTasks)),i.yb(2),i.pc("ngClass",i.uc(5,ub,t.icons.bell)),i.yb(1),i.pc("ngIf",t.hasNotifications))},directives:[wt.p,wt.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 hb=n("e0ae");let fb=(()=>{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(hb.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)(i.Mb(Qt.a),i.Mb(Lm.a),i.Mb(qp.a),i.Mb(Jt.a))},e.\u0275cmp=i.Gb({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&&(i.Sb(0,"div",0),i.Sb(1,"div",1),i.Sb(2,"button",2),i.gc("click",(function(){return t.activeModal.close()})),i.Sb(3,"span",3),i.Oc(4,"\xd7"),i.Rb(),i.Rb(),i.Rb(),i.Sb(5,"div",4),i.Nb(6,"img",5),i.Sb(7,"h3"),i.Sb(8,"strong"),i.Oc(9),i.Rb(),i.Rb(),i.Sb(10,"div",6),i.Sb(11,"strong"),i.Oc(12,"Version"),i.Rb(),i.Nb(13,"br"),i.Oc(14),i.Nb(15,"br"),i.Oc(16),i.Rb(),i.Nb(17,"br"),i.Sb(18,"dl"),i.Sb(19,"dt"),i.Oc(20,"Ceph Manager"),i.Rb(),i.Sb(21,"dd"),i.Oc(22),i.Rb(),i.Sb(23,"dt"),i.Oc(24,"User"),i.Rb(),i.Sb(25,"dd"),i.Oc(26),i.Rb(),i.Sb(27,"dt"),i.Oc(28,"User Role"),i.Rb(),i.Sb(29,"dd"),i.Oc(30),i.Rb(),i.Sb(31,"dt"),i.Oc(32,"Browser"),i.Rb(),i.Sb(33,"dd"),i.Oc(34),i.Rb(),i.Sb(35,"dt"),i.Oc(36,"Browser Version"),i.Rb(),i.Sb(37,"dd"),i.Oc(38),i.Rb(),i.Sb(39,"dt"),i.Oc(40,"Browser OS"),i.Rb(),i.Sb(41,"dd"),i.Oc(42),i.Rb(),i.Rb(),i.Rb(),i.Sb(43,"div",7),i.Sb(44,"div",8),i.Oc(45),i.Rb(),i.Rb(),i.Rb()),2&e&&(i.yb(6),i.qc("alt",t.projectConstants.organization),i.yb(3),i.Pc(t.projectConstants.projectName),i.yb(5),i.Rc(" ",t.versionNumber," ",t.versionHash," "),i.yb(2),i.Qc(" ",t.versionName," "),i.yb(6),i.Pc(t.hostAddr),i.yb(4),i.Pc(t.modalVariables.user),i.yb(4),i.Pc(t.modalVariables.role),i.yb(4),i.Pc(t.modalVariables.browserName),i.yb(4),i.Pc(t.modalVariables.browserVersion),i.yb(4),i.Pc(t.modalVariables.browserOS),i.yb(3),i.Rc(" ",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 pb=["docsForm"],mb=function(e){return[e]},bb=function(e){return{disabled:e}};let gb=(()=>{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(fb,null,{size:"lg"})}goToApiDocs(){this.docsFormElement.nativeElement.submit()}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(vn.a),i.Mb(_m.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-dashboard-help"]],viewQuery:function(e,t){var n;1&e&&i.Jc(pb,!0),2&e&&i.zc(n=i.hc())&&(t.docsFormElement=n.first)},decls:16,vars:7,consts:function(){return[["action","/docs","target","_blank","method","post"],["docsForm",""],["type","hidden","name","token"],["ngbDropdown","","placement","bottom-right"],["ngbDropdownToggle","",6,"title"],["title","Help"],[3,"ngClass"],[1,"d-md-none"],"Help",["ngbDropdownMenu",""],["ngbDropdownItem","","target","_blank",1,"text-capitalize",3,"ngClass","href"],"documentation",["ngbDropdownItem","",3,"click"],"API","About"]},template:function(e,t){1&e&&(i.Sb(0,"form",0,1),i.Nb(2,"input",2),i.Rb(),i.Sb(3,"div",3),i.Sb(4,"a",4),i.Yb(5,5),i.Nb(6,"i",6),i.Sb(7,"span",7),i.Wb(8,8),i.Rb(),i.Rb(),i.Sb(9,"div",9),i.Sb(10,"a",10),i.Wb(11,11),i.Rb(),i.Sb(12,"button",12),i.gc("click",(function(){return t.goToApiDocs()})),i.Wb(13,13),i.Rb(),i.Sb(14,"button",12),i.gc("click",(function(){return t.openAboutModal()})),i.Wb(15,14),i.Rb(),i.Rb(),i.Rb()),2&e&&(i.yb(6),i.pc("ngClass",i.uc(3,mb,t.icons.questionCircle)),i.yb(4),i.qc("href",t.docsUrl,i.Gc),i.pc("ngClass",i.uc(5,bb,!t.docsUrl)))},directives:[On.a,Qt.i,Qt.m,wt.p,Qt.k,Qt.j],styles:[""]}),e})();function _b(e,t){1&e&&(i.Sb(0,"button",10),i.Wb(1,11),i.Rb())}function yb(e,t){1&e&&(i.Sb(0,"button",12),i.Wb(1,13),i.Rb())}const vb=function(e){return[e]};function wb(e,t){if(1&e&&(i.Sb(0,"div",1),i.Sb(1,"a",2),i.Yb(2,3),i.Nb(3,"i",4),i.Sb(4,"span",5),i.Wb(5,6),i.Rb(),i.Rb(),i.Sb(6,"div",7),i.Mc(7,_b,2,0,"button",8),i.Mc(8,yb,2,0,"button",9),i.Rb(),i.Rb()),2&e){const e=i.ic();i.yb(3),i.pc("ngClass",i.uc(3,vb,e.icons.deepCheck)),i.yb(4),i.pc("ngIf",e.userPermission.read),i.yb(1),i.pc("ngIf",e.configOptPermission.read)}}let Sb=(()=>{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)(i.Mb(Jt.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-administration"]],decls:1,vars:1,consts:function(){return[["ngbDropdown","","placement","bottom-right",4,"ngIf"],["ngbDropdown","","placement","bottom-right"],["ngbDropdownToggle","",1,"dropdown-toggle",6,"title"],["title","Dashboard Settings"],[3,"ngClass"],[1,"d-md-none"],"Dashboard Settings",["ngbDropdownMenu",""],["ngbDropdownItem","","routerLink","/user-management",4,"ngIf"],["ngbDropdownItem","","routerLink","/telemetry",4,"ngIf"],["ngbDropdownItem","","routerLink","/user-management"],"User management",["ngbDropdownItem","","routerLink","/telemetry"],"Telemetry configuration"]},template:function(e,t){1&e&&i.Mc(0,wb,9,5,"div",0),2&e&&i.pc("ngIf",t.userPermission.read)},directives:[wt.r,Qt.i,Qt.m,wt.p,Qt.k,On.a,Qt.j,Pt.f],styles:[""]}),e})();const Mb=function(e){return[e]};function kb(e,t){if(1&e&&(i.Sb(0,"button",13),i.Nb(1,"i",3),i.Sb(2,"span"),i.Wb(3,14),i.Rb(),i.Rb()),2&e){const e=i.ic();i.yb(1),i.pc("ngClass",i.uc(1,Mb,e.icons.lock))}}let xb=(()=>{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)(i.Mb(Jt.a),i.Mb(Gp.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-identity"]],decls:16,vars:8,consts:function(){return[["ngbDropdown","","placement","bottom-right"],["ngbDropdownToggle","",6,"title"],["title","Logged in user"],[3,"ngClass"],[1,"d-md-none"],"Logged in user",["ngbDropdownMenu",""],["ngbDropdownItem","","disabled",""],"Signed in as " + "\ufffd#9\ufffd" + "" + "\ufffd0\ufffd" + "" + "\ufffd/#9\ufffd" + "",[1,"dropdown-divider"],["ngbDropdownItem","","routerLink","/user-profile/edit",4,"ngIf"],["ngbDropdownItem","",3,"click"],"Sign out",["ngbDropdownItem","","routerLink","/user-profile/edit"],"Change password"]},template:function(e,t){1&e&&(i.Sb(0,"div",0),i.Sb(1,"a",1),i.Yb(2,2),i.Nb(3,"i",3),i.Sb(4,"span",4),i.Wb(5,5),i.Rb(),i.Rb(),i.Sb(6,"div",6),i.Sb(7,"button",7),i.cc(8,8),i.Nb(9,"strong"),i.Zb(),i.Rb(),i.Nb(10,"li",9),i.Mc(11,kb,4,3,"button",10),i.Sb(12,"button",11),i.gc("click",(function(){return t.logout()})),i.Nb(13,"i",3),i.Sb(14,"span"),i.Wb(15,12),i.Rb(),i.Rb(),i.Rb(),i.Rb()),2&e&&(i.yb(3),i.pc("ngClass",i.uc(4,Mb,t.icons.user)),i.yb(6),i.ac(t.username),i.Xb(8),i.yb(2),i.pc("ngIf",!t.sso),i.yb(2),i.pc("ngClass",i.uc(6,Mb,t.icons.signOut)))},directives:[Qt.i,Qt.m,wt.p,Qt.k,On.a,Qt.j,wt.r,Pt.f],styles:[""]}),e})();function Db(e,t){1&e&&i.Ob(0)}function Tb(e,t){1&e&&i.Ob(0)}function Cb(e,t){1&e&&(i.Sb(0,"li",21),i.Nb(1,"cd-language-selector",22),i.Rb(),i.Sb(2,"li",21),i.Nb(3,"cd-notifications",22),i.Rb(),i.Sb(4,"li",21),i.Nb(5,"cd-dashboard-help",22),i.Rb(),i.Sb(6,"li",21),i.Nb(7,"cd-administration",22),i.Rb(),i.Sb(8,"li",21),i.Nb(9,"cd-identity",22),i.Rb())}function Ob(e,t){1&e&&(i.Sb(0,"li",48),i.Sb(1,"a",49),i.Wb(2,50),i.Rb(),i.Rb())}function Lb(e,t){1&e&&(i.Sb(0,"li",51),i.Sb(1,"a",52),i.Wb(2,53),i.Rb(),i.Rb())}function Rb(e,t){1&e&&(i.Sb(0,"li",54),i.Sb(1,"a",55),i.Wb(2,56),i.Rb(),i.Rb())}function Eb(e,t){1&e&&(i.Sb(0,"li",57),i.Sb(1,"a",58),i.Wb(2,59),i.Rb(),i.Rb())}function Ab(e,t){1&e&&(i.Sb(0,"li",60),i.Sb(1,"a",61),i.Wb(2,62),i.Rb(),i.Rb())}function Ib(e,t){1&e&&(i.Sb(0,"li",63),i.Sb(1,"a",64),i.Wb(2,65),i.Rb(),i.Rb())}function Pb(e,t){1&e&&(i.Sb(0,"li",66),i.Sb(1,"a",67),i.Wb(2,68),i.Rb(),i.Rb())}function Nb(e,t){1&e&&(i.Sb(0,"li",69),i.Sb(1,"a",70),i.Wb(2,71),i.Rb(),i.Rb())}function jb(e,t){1&e&&(i.Sb(0,"li",72),i.Sb(1,"a",73),i.Wb(2,74),i.Rb(),i.Rb())}function Fb(e,t){if(1&e&&(i.Sb(0,"small",79),i.Oc(1),i.Rb()),2&e){const e=i.ic(5);i.yb(1),i.Pc(e.prometheusAlertService.activeAlerts)}}function Yb(e,t){if(1&e&&(i.Sb(0,"li",75),i.Sb(1,"a",76),i.Qb(2),i.Wb(3,77),i.Pb(),i.Mc(4,Fb,2,1,"small",78),i.Rb(),i.Rb()),2&e){const e=i.ic(4);i.yb(4),i.pc("ngIf",e.prometheusAlertService.activeAlerts>0)}}function zb(e,t){if(1&e){const e=i.Tb();i.Sb(0,"li",34),i.Sb(1,"a",35),i.gc("click",(function(){return i.Dc(e),i.ic(3).toggleSubMenu("cluster")})),i.Qb(2),i.Wb(3,36),i.Pb(),i.Rb(),i.Sb(4,"ul",37),i.Mc(5,Ob,3,0,"li",38),i.Mc(6,Lb,3,0,"li",39),i.Mc(7,Rb,3,0,"li",40),i.Mc(8,Eb,3,0,"li",41),i.Mc(9,Ab,3,0,"li",42),i.Mc(10,Ib,3,0,"li",43),i.Mc(11,Pb,3,0,"li",44),i.Mc(12,Nb,3,0,"li",45),i.Mc(13,jb,3,0,"li",46),i.Mc(14,Yb,5,1,"li",47),i.Rb(),i.Rb()}if(2&e){const e=i.ic(3);i.yb(1),i.zb("aria-expanded","cluster"==e.displayedSubMenu),i.yb(3),i.pc("ngbCollapse","cluster"!==e.displayedSubMenu),i.yb(1),i.pc("ngIf",e.permissions.hosts.read),i.yb(1),i.pc("ngIf",e.permissions.hosts.read),i.yb(1),i.pc("ngIf",e.permissions.monitor.read),i.yb(1),i.pc("ngIf",e.permissions.hosts.read),i.yb(1),i.pc("ngIf",e.permissions.osd.read),i.yb(1),i.pc("ngIf",e.permissions.configOpt.read),i.yb(1),i.pc("ngIf",e.permissions.osd.read),i.yb(1),i.pc("ngIf",e.permissions.configOpt.read),i.yb(1),i.pc("ngIf",e.permissions.log.read),i.yb(1),i.pc("ngIf",e.permissions.prometheus.read)}}function $b(e,t){1&e&&(i.Sb(0,"li",80),i.Sb(1,"a",81),i.Wb(2,82),i.Rb(),i.Rb())}function Hb(e,t){1&e&&(i.Sb(0,"li",89),i.Sb(1,"a",90),i.Wb(2,91),i.Rb(),i.Rb())}function Wb(e,t){if(1&e&&(i.Sb(0,"small",96),i.Oc(1),i.Rb()),2&e){const e=i.ic(5);i.yb(1),i.Pc(null==e.summaryData||null==e.summaryData.rbd_mirroring?null:e.summaryData.rbd_mirroring.warnings)}}function Vb(e,t){if(1&e&&(i.Sb(0,"small",79),i.Oc(1),i.Rb()),2&e){const e=i.ic(5);i.yb(1),i.Pc(null==e.summaryData||null==e.summaryData.rbd_mirroring?null:e.summaryData.rbd_mirroring.errors)}}function Bb(e,t){if(1&e&&(i.Sb(0,"li",92),i.Sb(1,"a",93),i.Qb(2),i.Wb(3,94),i.Pb(),i.Mc(4,Wb,2,1,"small",95),i.Mc(5,Vb,2,1,"small",78),i.Rb(),i.Rb()),2&e){const e=i.ic(4);i.yb(4),i.pc("ngIf",0!==(null==e.summaryData||null==e.summaryData.rbd_mirroring?null:e.summaryData.rbd_mirroring.warnings)),i.yb(1),i.pc("ngIf",0!==(null==e.summaryData||null==e.summaryData.rbd_mirroring?null:e.summaryData.rbd_mirroring.errors))}}function Ub(e,t){1&e&&(i.Sb(0,"li",97),i.Sb(1,"a",98),i.Wb(2,99),i.Rb(),i.Rb())}function Gb(e,t){if(1&e){const e=i.Tb();i.Sb(0,"li",83),i.Sb(1,"a",84),i.gc("click",(function(){return i.Dc(e),i.ic(3).toggleSubMenu("block")})),i.Qb(2),i.Wb(3,85),i.Pb(),i.Rb(),i.Sb(4,"ul",37),i.Mc(5,Hb,3,0,"li",86),i.Mc(6,Bb,6,2,"li",87),i.Mc(7,Ub,3,0,"li",88),i.Rb(),i.Rb()}if(2&e){const e=i.ic().ngIf,t=i.ic(2);i.yb(1),i.pc("ngStyle",t.blockHealthColor()),i.zb("aria-expanded","block"==t.displayedSubMenu),i.yb(3),i.pc("ngbCollapse","block"!==t.displayedSubMenu),i.yb(1),i.pc("ngIf",t.permissions.rbdImage.read&&e.rbd),i.yb(1),i.pc("ngIf",t.permissions.rbdMirroring.read&&e.mirroring),i.yb(1),i.pc("ngIf",t.permissions.iscsi.read&&e.iscsi)}}function qb(e,t){1&e&&(i.Sb(0,"li",100),i.Sb(1,"a",101),i.Wb(2,102),i.Rb(),i.Rb())}function Jb(e,t){1&e&&(i.Sb(0,"li",103),i.Sb(1,"a",104),i.Wb(2,105),i.Rb(),i.Rb())}function Qb(e,t){if(1&e){const e=i.Tb();i.Sb(0,"li",106),i.Sb(1,"a",35),i.gc("click",(function(){return i.Dc(e),i.ic(3).toggleSubMenu("rgw")})),i.Qb(2),i.Wb(3,107),i.Pb(),i.Rb(),i.Sb(4,"ul",37),i.Sb(5,"li",108),i.Sb(6,"a",109),i.Wb(7,110),i.Rb(),i.Rb(),i.Sb(8,"li",111),i.Sb(9,"a",112),i.Wb(10,113),i.Rb(),i.Rb(),i.Sb(11,"li",114),i.Sb(12,"a",115),i.Wb(13,116),i.Rb(),i.Rb(),i.Rb(),i.Rb()}if(2&e){const e=i.ic(3);i.yb(1),i.zb("aria-expanded","rgw"==e.displayedSubMenu),i.yb(3),i.pc("ngbCollapse","rgw"!==e.displayedSubMenu)}}const Kb=function(e){return[e]};function Zb(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"li",24),i.Sb(2,"a",25),i.Sb(3,"span"),i.Wb(4,26),i.Rb(),i.Oc(5,"\xa0 "),i.Nb(6,"i",27),i.jc(7,"healthColor"),i.Rb(),i.Rb(),i.Mc(8,zb,15,12,"li",28),i.Mc(9,$b,3,0,"li",29),i.Mc(10,Gb,8,6,"li",30),i.Mc(11,qb,3,0,"li",31),i.Mc(12,Jb,3,0,"li",32),i.Mc(13,Qb,14,2,"li",33),i.Pb()),2&e){const e=t.ngIf,n=i.ic(2);i.yb(6),i.pc("ngClass",i.uc(10,Kb,n.icons.health))("ngStyle",i.kc(7,8,null==n.summaryData?null:n.summaryData.health_status)),i.yb(2),i.pc("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),i.yb(1),i.pc("ngIf",n.permissions.pool.read),i.yb(1),i.pc("ngIf",(n.permissions.rbdImage.read||n.permissions.rbdMirroring.read||n.permissions.iscsi.read)&&(e.rbd||e.mirroring||e.iscsi)),i.yb(1),i.pc("ngIf",n.permissions.nfs.read&&e.nfs),i.yb(1),i.pc("ngIf",n.permissions.cephfs.read&&e.cephfs),i.yb(1),i.pc("ngIf",n.permissions.rgw.read&&e.rgw)}}function Xb(e,t){if(1&e&&(i.Mc(0,Zb,14,12,"ng-container",23),i.jc(1,"async")),2&e){const e=i.ic();i.pc("ngIf",i.kc(1,1,e.enabledFeature$))}}const eg=function(e){return{active:e}},tg=["*"];let ng=(()=>{class e{constructor(e,t,n,i,r){this.authStorageService=e,this.summaryService=t,this.featureToggles=n,this.telemetryNotificationService=i,this.prometheusAlertService=r,this.notifications=[],this.icons=_n.a,this.isCollapsed=!0,this.showMenuSidebar=!0,this.displayedSubMenu="",this.simplebar={autoHide:!1},this.subs=new Oi.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)}))}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}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)(i.Mb(Jt.a),i.Mb(Lm.a),i.Mb(Gd.a),i.Mb(Ad),i.Mb(Ml))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-navigation"]],hostVars:2,hostBindings:function(e,t){2&e&&i.Ab(t.class)},ngContentSelectors:tg,decls:28,vars:9,consts:function(){return[[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"],"Toggle navigation",[1,""],[1,"fa","fa-navicon","fa-lg"],[1,"collapse","navbar-collapse"],[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"],[4,"ngIf"],["routerLinkActive","active",1,"nav-item","tc_menuitem_dashboard"],["routerLink","/dashboard",1,"nav-link"],"Dashboard",[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"],"Cluster",[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"],"Hosts",["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_cluster_inventory"],["routerLink","/inventory"],"Inventory",["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_cluster_monitor"],["routerLink","/monitor/"],"Monitors",["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_cluster_services"],["routerLink","/services/"],"Services",["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_osds"],["routerLink","/osd"],"OSDs",["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_configuration"],["routerLink","/configuration"],"Configuration",["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_crush"],["routerLink","/crush-map"],"CRUSH map",["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_modules"],["routerLink","/mgr-modules"],"Manager Modules",["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_log"],["routerLink","/logs"],"Logs",["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_monitoring"],["routerLink","/monitoring"],"Monitoring",["class","badge badge-danger",4,"ngIf"],[1,"badge","badge-danger"],["routerLinkActive","active",1,"nav-item","tc_menuitem_pool"],["routerLink","/pool",1,"nav-link"],"Pools",["routerLinkActive","active",1,"nav-item","tc_menuitem_block"],["aria-controls","collapseBasic",1,"nav-link","dropdown-toggle",3,"ngStyle","click"],"Block",["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"],"Images",["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_block_mirroring"],["routerLink","/block/mirroring"],"Mirroring",["class","badge badge-warning",4,"ngIf"],[1,"badge","badge-warning"],["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_block_iscsi"],["routerLink","/block/iscsi"],"iSCSI",["routerLinkActive","active",1,"nav-item","tc_menuitem_nfs"],["routerLink","/nfs",1,"nav-link"],"NFS",["routerLinkActive","active",1,"nav-item","tc_menuitem_cephfs"],["routerLink","/cephfs",1,"nav-link"],"Filesystems",["routerLinkActive","active",1,"nav-item","tc_menuitem_rgw"],"Object Gateway",["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_rgw_daemons"],["routerLink","/rgw/daemon"],"Daemons",["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_rgw_users"],["routerLink","/rgw/user"],"Users",["routerLinkActive","active",1,"tc_submenuitem","tc_submenuitem_rgw_buckets"],["routerLink","/rgw/bucket"],"Buckets"]},template:function(e,t){if(1&e&&(i.oc(),i.Nb(0,"cd-pwd-expiration-notification"),i.Nb(1,"cd-telemetry-notification"),i.Nb(2,"cd-notifications-sidebar"),i.Sb(3,"div",0),i.Sb(4,"nav",1),i.Sb(5,"button",2),i.gc("click",(function(){return t.showMenuSidebar=!t.showMenuSidebar})),i.Nb(6,"i",3),i.Rb(),i.Sb(7,"a",4),i.Nb(8,"img",5),i.Rb(),i.Sb(9,"button",6),i.gc("click",(function(){return t.isCollapsed=!t.isCollapsed})),i.Sb(10,"span",7),i.Wb(11,8),i.Rb(),i.Sb(12,"span",9),i.Nb(13,"i",10),i.Rb(),i.Rb(),i.Sb(14,"div",11),i.Sb(15,"ul",12),i.Mc(16,Db,1,0,"ng-container",13),i.Rb(),i.Rb(),i.Rb(),i.Rb(),i.Sb(17,"div",14),i.Sb(18,"nav",15),i.Sb(19,"ngx-simplebar",16),i.Sb(20,"ul",17),i.Mc(21,Tb,1,0,"ng-container",13),i.Rb(),i.Rb(),i.Rb(),i.Sb(22,"div",18),i.nc(23),i.Rb(),i.Rb(),i.Mc(24,Cb,10,0,"ng-template",null,19,i.Nc),i.Mc(26,Xb,2,3,"ng-template",null,20,i.Nc)),2&e){const e=i.Ac(25),n=i.Ac(27);i.yb(16),i.pc("ngTemplateOutlet",e),i.yb(2),i.pc("ngClass",i.uc(5,eg,!t.showMenuSidebar)),i.yb(1),i.pc("options",t.simplebar),i.yb(2),i.pc("ngTemplateOutlet",n),i.yb(1),i.pc("ngClass",i.uc(7,eg,!t.showMenuSidebar))}},directives:[jm,Ym,ab,Qt.v,On.a,wt.w,wt.p,Bm.a,Tm,db,gb,Sb,xb,wt.r,Pt.g,Pt.h,wt.s,Qt.e],pipes:[wt.b,dh],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.isPwdDisplayed{top:37.6px}  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:transparent;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:transparent;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,   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%]   #content[_ngcontent-%COMP%], .top-notification-1[_nghost-%COMP%]   #sidebar[_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%]   #content[_ngcontent-%COMP%], .top-notification-2[_nghost-%COMP%]   #sidebar[_ngcontent-%COMP%]{top:118.2px}.top-notification-2[_nghost-%COMP%]   cd-notifications-sidebar[_ngcontent-%COMP%]{top:128.2px}']}),e})();var ig=n("5yfJ"),rg=n("9xzX");function sg(e,t){if(1&e){const e=i.Tb();i.Qb(0),i.Sb(1,"button",9),i.gc("click",(function(){i.Dc(e);const n=t.$implicit;return i.ic(3).onDaemonSelection(n)})),i.Oc(2),i.Rb(),i.Pb()}if(2&e){const e=t.$implicit;i.yb(2),i.Rc(" ",e.id," ( ",e.zonegroup_name," ) ")}}function og(e,t){if(1&e&&(i.Qb(0),i.Sb(1,"div",1),i.Sb(2,"span",2),i.Wb(3,3),i.Rb(),i.Sb(4,"div",4),i.Sb(5,"button",5),i.Yb(6,6),i.Oc(7),i.Rb(),i.Sb(8,"div",7),i.Mc(9,sg,3,2,"ng-container",8),i.Rb(),i.Rb(),i.Rb(),i.Pb()),2&e){const e=i.ic().ngIf;i.yb(7),i.Rc(" ",e.selectedDaemon.id," ( ",e.selectedDaemon.zonegroup_name," ) "),i.yb(2),i.pc("ngForOf",e.daemons)}}function ag(e,t){if(1&e&&(i.Qb(0),i.Mc(1,og,10,3,"ng-container",0),i.Pb()),2&e){const e=t.ngIf,n=i.ic();i.yb(1),i.pc("ngIf",e.ftMap&&e.ftMap.rgw&&n.permissions.rgw.read&&n.isRgwRoute&&e.daemons.length>1)}}const cg=function(e,t,n){return{ftMap:e,daemons:t,selectedDaemon:n}};let lg=(()=>{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 Oi.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(Ql.a)(e=>e instanceof Pt.b)).subscribe(()=>this.isRgwRoute=this.router.url.includes(this.rgwUrlPrefix))),this.subs.add(this.timerService.get(()=>this.isRgwRoute?this.rgwDaemonService.list():ig.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)(i.Mb(Jt.a),i.Mb(Gd.a),i.Mb(Pt.e),i.Mb(Ri.a),i.Mb(rg.a))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-context"]],decls:4,vars:11,consts:function(){return[[4,"ngIf"],[1,"cd-context-bar","pt-3","pb-3"],[1,"mr-1"],"Selected Object Gateway:",["ngbDropdown","","placement","bottom-left",1,"d-inline-block","ml-2"],["ngbDropdownToggle","",1,"btn","btn-outline-info","ctx-bar-selected-rgw-daemon",6,"title"],["title","Select Object Gateway"],["ngbDropdownMenu",""],[4,"ngFor","ngForOf"],["ngbDropdownItem","",1,"ctx-bar-available-rgw-daemon",3,"click"]]},template:function(e,t){1&e&&(i.Mc(0,ag,2,1,"ng-container",0),i.jc(1,"async"),i.jc(2,"async"),i.jc(3,"async")),2&e&&i.pc("ngIf",i.wc(7,cg,i.kc(1,1,t.featureToggleMap$),i.kc(2,3,t.rgwDaemonService.daemons$),i.kc(3,5,t.rgwDaemonService.selectedDaemon$)))},directives:[wt.r,Qt.i,On.a,Qt.m,Qt.k,wt.q,Qt.j],pipes:[wt.b],styles:[".cd-context-bar[_ngcontent-%COMP%]{border-bottom:1px solid #dee2e6}"]}),e})();var ug=n("GyhO"),dg=n("Cfvw"),hg=n("zx2A");class fg{constructor(e,t){this.keySelector=e,this.flushes=t}call(e,t){return t.subscribe(new pg(e,this.keySelector,this.flushes))}}class pg extends hg.b{constructor(e,t,n){super(e),this.keySelector=t,this.values=new Set,n&&this.add(Object(hg.c)(n,new hg.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 mg=n("SxV6");class bg{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(Wi.a)(i)}getFullPath(e){return(e=>e.reduce((e,t)=>e+t.url.reduce((e,t)=>e+"/"+t.path,""),""))(e.pathFromRoot)}}function gg(e,t){if(1&e&&(i.Sb(0,"a",6),i.Oc(1),i.Rb()),2&e){const e=i.ic().$implicit;i.pc("routerLink",e.path),i.yb(1),i.Pc(e.text)}}function _g(e,t){if(1&e&&(i.Sb(0,"span"),i.Oc(1),i.Rb()),2&e){const e=i.ic().$implicit;i.yb(1),i.Pc(e.text)}}const yg=function(e){return{active:e}};function vg(e,t){if(1&e&&(i.Sb(0,"li",3),i.Mc(1,gg,2,2,"a",4),i.Mc(2,_g,2,1,"span",5),i.Rb()),2&e){const e=t.$implicit,n=t.last,r=i.ic(2);i.pc("ngClass",i.uc(3,yg,n&&r.finished)),i.yb(1),i.pc("ngIf",!n&&null!==e.path),i.yb(1),i.pc("ngIf",n||null===e.path)}}function wg(e,t){if(1&e&&(i.Sb(0,"ol",1),i.Mc(1,vg,3,5,"li",2),i.Rb()),2&e){const e=i.ic();i.yb(1),i.pc("ngForOf",e.crumbs)}}let Sg=(()=>{class e{constructor(e,t){this.router=e,this.injector=t,this.crumbs=[],this.finished=!1,this.defaultResolver=new bg,this.subscription=this.router.events.pipe(Object(Ql.a)(e=>e instanceof Pt.c)).subscribe(()=>{this.finished=!1}),this.subscription=this.router.events.pipe(Object(Ql.a)(e=>e instanceof Pt.b)).subscribe(()=>{var t;this._resolveCrumbs(e.routerState.snapshot.root).pipe(Object(Ki.a)(e=>e),(t=e=>e.text,e=>e.lift(new fg(t,void 0))),Qi(),Object(Ki.a)(e=>{const t=this.postProcess(e);return this.wrapIntoObservable(t).pipe(Object(mg.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 bg?this.injector.get(n.breadcrumbs):this.defaultResolver;const r=i.resolve(e);t=this.wrapIntoObservable(r).pipe(Object(mg.a)())}else t=Object(Wi.a)([]);return e.firstChild&&(t=Object(ug.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 xu.a?e:this.isPromise(e)?Object(dg.a)(Promise.resolve(e)):Object(Wi.a)(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Mb(Pt.e),i.Mb(i.s))},e.\u0275cmp=i.Gb({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&&i.Mc(0,wg,2,1,"ol",0),2&e&&i.pc("ngIf",t.crumbs.length)},directives:[wt.r,wt.q,wt.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 Mg=function(e){return{dashboard:e}};let kg=(()=>{class e{constructor(e,t,n,i){this.router=e,this.summaryService=t,this.taskManagerService=n,this.faviconService=i,this.subs=new Oi.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)(i.Mb(Pt.e),i.Mb(Lm.a),i.Mb(Em.a),i.Mb(Rm))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-workbench-layout"]],features:[i.xb([Rm])],decls:6,vars:3,consts:[[1,"container-fluid","h-100",3,"ngClass"]],template:function(e,t){1&e&&(i.Sb(0,"block-ui"),i.Sb(1,"cd-navigation"),i.Sb(2,"div",0),i.Nb(3,"cd-context"),i.Nb(4,"cd-breadcrumbs"),i.Nb(5,"router-outlet"),i.Rb(),i.Rb(),i.Rb()),2&e&&(i.yb(2),i.pc("ngClass",i.uc(1,Mg,t.isDashboardPage())))},directives:[na,ng,wt.p,lg,Sg,Pt.j],styles:[".dashboard[_ngcontent-%COMP%]{background-color:#e9ecef;margin:0;padding:0}.container-fluid[_ngcontent-%COMP%]{overflow:auto}"]}),e})();var xg=n("Avrn");let Dg=(()=>{class e{constructor(e,t){this.router=e,this.authStorageService=t}canActivate(){return!(this.authStorageService.isLoggedIn()&&!this.authStorageService.isSSO()&&this.authStorageService.getPwdUpdateRequired()&&(this.router.navigate(["/login-change-password"]),1))}canActivateChild(){return this.canActivate()}}return e.\u0275fac=function(t){return new(t||e)(i.dc(Pt.e),i.dc(Jt.a))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Tg=n("Vhfg"),Cg=n("JIr8");let Og=(()=>{class e{constructor(e,t){this.http=e,this.router=t}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(Wi.a)(!0);const n=t.data.moduleStatusGuardConfig;return this.http.get(`api/${n.apiPath}/status`).pipe(Object(Vi.a)(e=>(e.available||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(Cg.a)(()=>(this.router.navigate([n.redirectTo]),Object(Wi.a)(!1))))}}return e.ALLOWLIST=["501"],e.\u0275fac=function(t){return new(t||e)(i.dc(o.b),i.dc(Pt.e))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Lg=(()=>{class e{constructor(e){this.authStorageService=e}canActivate(){if(!this.authStorageService.isSSO())return!0;throw new Fl.c}canActivateChild(){return this.canActivate()}}return e.\u0275fac=function(t){return new(t||e)(i.dc(Jt.a))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Rg=(()=>{class e extends bg{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 Eg(t||e)},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})();const Eg=i.Ub(Rg);let Ag=(()=>{class e extends bg{resolve(e){const t=e.params.name;return[{text:jt.a.startCase(t)+"/Edit",path:t}]}}return e.\u0275fac=function(t){return Ig(t||e)},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})();const Ig=i.Ub(Ag),Pg=[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"",component:kg,canActivate:[xg.a,Dg],canActivateChild:[xg.a,Dg],children:[{path:"dashboard",component:nf},{path:"error",component:Sm},{path:"hosts",data:{breadcrumbs:"Cluster/Hosts"},children:[{path:"",component:Us},{path:gn.e.CREATE,component:ar,data:{breadcrumbs:gn.a.CREATE}}]},{path:"monitor",component:ga,data:{breadcrumbs:"Cluster/Monitors"}},{path:"services",canActivateChild:[Og],data:{moduleStatusGuardConfig:{apiPath:"orchestrator",redirectTo:"error",section:"orch",section_info:"Orchestrator",header:"Orchestrator is not available"},breadcrumbs:"Cluster/Services"},children:[{path:"",component:Rd},{path:gn.e.CREATE,component:Md,data:{breadcrumbs:gn.a.CREATE}}]},{path:"inventory",canActivate:[Og],component:jr,data:{moduleStatusGuardConfig:{apiPath:"orchestrator",redirectTo:"error",section:"orch",section_info:"Orchestrator",header:"Orchestrator is not available"},breadcrumbs:"Cluster/Inventory"}},{path:"osd",data:{breadcrumbs:"Cluster/OSDs"},children:[{path:"",component:_l},{path:gn.e.CREATE,component:Qa,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:Hi,data:{breadcrumbs:"Cluster/CRUSH map"}},{path:"logs",component:yo,data:{breadcrumbs:"Cluster/Logs"}},{path:"telemetry",component:Yd,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:El},{path:"alerts",data:{breadcrumbs:"Alerts"},component:jl},{path:"silences",data:{breadcrumbs:"Silences"},children:[{path:"",component:Ou},{path:gn.e.CREATE,component:Mu,data:{breadcrumbs:gn.a.CREATE+" Silence"}},{path:gn.e.CREATE+"/:id",component:Mu,data:{breadcrumbs:gn.a.CREATE}},{path:gn.e.EDIT+"/:id",component:Mu,data:{breadcrumbs:gn.a.EDIT}},{path:gn.e.RECREATE+"/:id",component:Mu,data:{breadcrumbs:gn.a.RECREATE}}]}]},{path:"perf_counters/:type/:id",component:Up,data:{breadcrumbs:Rg}},{path:"mgr-modules",data:{breadcrumbs:"Cluster/Manager Modules"},children:[{path:"",component:pa},{path:"edit/:name",component:Vo,data:{breadcrumbs:Ag}}]},{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:Bn,canActivate:[Tg.a],data:{breadcrumbs:"Filesystems"}},{path:"rgw",canActivateChild:[Tg.a,Og],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:rm,canActivate:[Lg],data:{breadcrumbs:gn.a.EDIT}}]},{path:"nfs",canActivateChild:[Tg.a,Og],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:Bp},{path:gn.e.CREATE,component:Ap,data:{breadcrumbs:gn.a.CREATE}},{path:gn.e.EDIT+"/:cluster_id/:export_id",component:Ap,data:{breadcrumbs:gn.a.EDIT}}]}]},{path:"",component:Om,children:[{path:"login",component:gm},{path:"login-change-password",component:hm,canActivate:[Lg]}]},{path:"",component:Mm,children:[{path:"**",redirectTo:"/error"}]}];let Ng=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},providers:[Ag,Rg],imports:[[Pt.i.forRoot(Pg,{useHash:!0,preloadingStrategy:Pt.d})],Pt.i]}),e})(),jg=(()=>{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)(i.Mb(Qt.x),i.Mb(Qt.E))},e.\u0275cmp=i.Gb({type:e,selectors:[["cd-root"]],decls:1,vars:0,template:function(e,t){1&e&&i.Nb(0,"router-outlet")},directives:[Pt.j],styles:[""]}),e})();var Fg=n("PCNd");let Yg=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[wt.c,Fg.a,Ng,sn.b,xn.c,Qt.t]]}),e})();var zg=n("G6Q+"),$g=n("kJI8");let Hg=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[Ng,wt.c,kn.x,Fg.a,Qt.t]]}),e})(),Wg=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[wt.c,zg.a,Qt.t,Fg.a,Pt.i,kn.m,kn.x,Qt.F,Hg,Qt.H,Qt.C,xn.c,$g.a,Qt.h,Qt.y,Qt.l,zr.a]]}),e})(),Vg=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[$g.a,wt.c,Qt.t,Fg.a,sn.b,Pt.i,Qt.y]]}),e})(),Bg=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[kn.x,Pt.i,Fg.a,Qt.t,wt.c,Qt.H,Qt.F]]}),e})(),Ug=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[wt.c,Wg,Vg,zg.a,Yg,Bg,Fg.a]]}),e})();var Gg=n("LceX");let qg=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[wt.c,Gg.AuthModule,Qt.f,Qt.l,Ng,Fg.a,Bm.b,Pt.i]]}),e})(),Jg=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},imports:[[la.forRoot(),wt.c,qg,Qt.l,Pt.i,Fg.a],qg]}),e})();var Qg=n("z6cu");let Kg=(()=>{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:"application/vnd.ceph.api.v1.0+json"}}),t.handle(i).pipe(Object(Cg.a)(e=>{if(e instanceof o.d){let t;switch(e.status){case 400:const n=new er.a,i=e.error.task;jt.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(Qg.a)(e)}))}prepareNotification(e){return this.notificationService.show(()=>{let t="";return jt.a.isPlainObject(e.error)&&jt.a.isString(e.error.detail)?t=e.error.detail:jt.a.isString(e.error)?t=e.error:jt.a.isString(e.message)&&(t=e.message),new wl.b(yn.a.error,`${e.status} - ${e.statusText}`,t,void 0,e.application)})}}return e.\u0275fac=function(t){return new(t||e)(i.dc(Pt.e),i.dc(Jt.a),i.dc(wn.a))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Zg=(()=>{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)(i.dc(o.b))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Xg=(()=>{class e{constructor(e,t){this.injector=e,this.router=t}handleError(e){const t=this.injector.get(Zg),n=window.location.href;if(t.jsError(n,e&&e.message,e&&e.stack).subscribe(),!(e.rejection instanceof Fl.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)(i.dc(i.s),i.dc(Pt.e))},e.\u0275prov=i.Ib({token:e,factory:e.\u0275fac}),e})(),e_=(()=>{class e{}return e.\u0275mod=i.Kb({type:e,bootstrap:[jg]}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)},providers:[{provide:i.n,useClass:Xg},{provide:o.a,useClass:Kg,multi:!0}],imports:[[o.c,r.a,At,It.a.forRoot({positionClass:"toast-top-right",preventDuplicates:!0,enableHtml:!0}),Ng,Jg,Fg.a,Ug],Fg.a]}),e})();s.a.production&&Object(i.S)(),r.d().bootstrapModule(e_).then(e=>{if(Object(i.U)()){const t=e.injector.get(i.g).components[0];Object(r.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.Lb({name:"pipeFunction",type:e,pure:!0}),e})(),s=(()=>{class e{}return e.\u0275mod=i.Kb({type:e}),e.\u0275inj=i.Jb({factory:function(t){return new(t||e)}}),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.Mb(o.L),o.Mb(o.P),o.Mb(o.j))},e.\u0275dir=o.Hb({type:e,selectors:[["","cdFormLoading",""]],inputs:{cdFormLoading:"cdFormLoading"}}),e})()},zk60:function(e,t,n){var i=n("2oRo"),r=n("kRJp");e.exports=function(e,t){try{r(i,e,t)}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]]]);
\ No newline at end of file
index cbe447bbb5455007a484521c3b8d4a19fb8d9ab9..2f59a0175ac730999db86feedd7beb744c947442 100644 (file)
@@ -1,4 +1,3 @@
-import { APP_BASE_HREF } from '@angular/common';
 import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
 import { ErrorHandler, NgModule } from '@angular/core';
 import { BrowserModule } from '@angular/platform-browser';
@@ -40,10 +39,6 @@ import { SharedModule } from './shared/shared.module';
       provide: HTTP_INTERCEPTORS,
       useClass: ApiInterceptorService,
       multi: true
-    },
-    {
-      provide: APP_BASE_HREF,
-      useValue: window['base-href']
     }
   ],
   bootstrap: [AppComponent]
index 523fce3fc2be31abe1cef6c7b436bb632cb48b23..bfd6d3ecd83731e1dd316c07d008740c1ca125f9 100644 (file)
@@ -3,10 +3,9 @@
 <head>
   <meta charset="utf-8">
   <title>Ceph</title>
-  <base href="/">
 
   <script>
-    window['base-href'] = window.location.pathname;
+    document.write('<base href="' + document.location+ '" />');
   </script>
 
   <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
index 69b158f696a204b05cc13ebbaf18baeeea18cfbd..c8e5ba4020a1202e2606beef1857a2810d772f07 100644 (file)
@@ -14,9 +14,16 @@ import sys
 import tempfile
 import threading
 import time
-from typing import Optional
+from typing import TYPE_CHECKING, Optional
 
-from mgr_module import CLIWriteCommand, MgrModule, MgrStandbyModule, Option, _get_localized_key
+if TYPE_CHECKING:
+    if sys.version_info >= (3, 8):
+        from typing import Literal
+    else:
+        from typing_extensions import Literal
+
+from mgr_module import CLIWriteCommand, HandleCommandResult, MgrModule, \
+    MgrStandbyModule, Option, _get_localized_key
 from mgr_util import ServerConfigException, create_self_signed_cert, \
     get_default_addr, verify_tls_files
 
@@ -214,6 +221,10 @@ class CherryPyConfig(object):
                 return uri
 
 
+if TYPE_CHECKING:
+    SslConfigKey = Literal['crt', 'key']
+
+
 class Module(MgrModule, CherryPyConfig):
     """
     dashboard module entrypoint
@@ -357,31 +368,36 @@ class Module(MgrModule, CherryPyConfig):
         logger.info('Stopping engine...')
         self.shutdown_event.set()
 
-    @CLIWriteCommand("dashboard set-ssl-certificate")
-    def set_ssl_certificate(self,
-                            mgr_id: Optional[str] = None,
-                            inbuf: Optional[bytes] = None):
+    def _set_ssl_item(self, item_label: str, item_key: 'SslConfigKey' = 'crt',
+                      mgr_id: Optional[str] = None, inbuf: Optional[str] = None):
         if inbuf is None:
-            return -errno.EINVAL, '',\
-                'Please specify the certificate file with "-i" option'
+            return -errno.EINVAL, '', f'Please specify the {item_label} with "-i" option'
+
         if mgr_id is not None:
-            self.set_store(_get_localized_key(mgr_id, 'crt'), inbuf.decode())
+            self.set_store(_get_localized_key(mgr_id, item_key), inbuf)
         else:
-            self.set_store('crt', inbuf.decode())
-        return 0, 'SSL certificate updated', ''
+            self.set_store(item_key, inbuf)
+        return 0, f'SSL {item_label} updated', ''
+
+    @CLIWriteCommand("dashboard set-ssl-certificate")
+    def set_ssl_certificate(self, mgr_id: Optional[str] = None, inbuf: Optional[str] = None):
+        return self._set_ssl_item('certificate', 'crt', mgr_id, inbuf)
 
     @CLIWriteCommand("dashboard set-ssl-certificate-key")
-    def set_ssl_certificate_key(self,
-                                mgr_id: Optional[str] = None,
-                                inbuf: Optional[bytes] = None):
-        if inbuf is None:
-            return -errno.EINVAL, '',\
-                'Please specify the certificate key file with "-i" option'
-        if mgr_id is not None:
-            self.set_store(_get_localized_key(mgr_id, 'key'), inbuf.decode())
-        else:
-            self.set_store('key', inbuf.decode())
-        return 0, 'SSL certificate key updated', ''
+    def set_ssl_certificate_key(self, mgr_id: Optional[str] = None, inbuf: Optional[str] = None):
+        return self._set_ssl_item('certificate key', 'key', mgr_id, inbuf)
+
+    @CLIWriteCommand("dashboard create-self-signed-cert")
+    def set_mgr_created_self_signed_cert(self):
+        cert, pkey = create_self_signed_cert('IT', 'ceph-dashboard')
+        result = HandleCommandResult(*self.set_ssl_certificate(inbuf=cert))
+        if result.retval != 0:
+            return result
+
+        result = HandleCommandResult(*self.set_ssl_certificate_key(inbuf=pkey))
+        if result.retval != 0:
+            return result
+        return 0, 'Self-signed certificate created', ''
 
     def handle_command(self, inbuf, cmd):
         # pylint: disable=too-many-return-statements
@@ -397,9 +413,6 @@ class Module(MgrModule, CherryPyConfig):
         if cmd['prefix'] == 'dashboard get-jwt-token-ttl':
             ttl = self.get_module_option('jwt_token_ttl', JwtManager.JWT_TOKEN_TTL)
             return 0, str(ttl), ''
-        if cmd['prefix'] == 'dashboard create-self-signed-cert':
-            self.create_self_signed_cert()
-            return 0, 'Self-signed certificate created', ''
         if cmd['prefix'] == 'dashboard grafana dashboards update':
             push_local_dashboards()
             return 0, 'Grafana dashboards updated', ''
@@ -407,11 +420,6 @@ class Module(MgrModule, CherryPyConfig):
         return (-errno.EINVAL, '', 'Command not found \'{0}\''
                 .format(cmd['prefix']))
 
-    def create_self_signed_cert(self):
-        cert, pkey = create_self_signed_cert('IT', 'ceph-dashboard')
-        self.set_store('crt', cert)
-        self.set_store('key', pkey)
-
     def notify(self, notify_type, notify_id):
         NotificationQueue.new_notification(notify_type, notify_id)
 
index 72d5204b6588dcf6532c94d5c0f1116f16263baa..46c6b8043cc8b7e0a8f0c9e362711a6582c26617 100644 (file)
@@ -11,11 +11,12 @@ from unittest.mock import Mock
 import cherrypy
 from cherrypy._cptools import HandlerWrapperTool
 from cherrypy.test import helper
-from mgr_module import CLICommand
+from mgr_module import HandleCommandResult
 from pyfakefs import fake_filesystem
 
 from .. import DEFAULT_VERSION, mgr
 from ..controllers import generate_controller_routes, json_error_page
+from ..module import Module
 from ..plugins import PLUGIN_MANAGER, debug, feature_toggles  # noqa
 from ..services.auth import AuthManagerTool
 from ..services.exception import dashboard_exception_handler
@@ -28,34 +29,22 @@ PLUGIN_MANAGER.hook.register_commands()
 logger = logging.getLogger('tests')
 
 
+class ModuleTestClass(Module):
+    """Dashboard module subclass for testing the module methods."""
+
+    def __init__(self) -> None:
+        pass
+
+    def _unconfigure_logging(self) -> None:
+        pass
+
+
 class CmdException(Exception):
     def __init__(self, retcode, message):
         super(CmdException, self).__init__(message)
         self.retcode = retcode
 
 
-def exec_dashboard_cmd(command_handler, cmd, **kwargs):
-    inbuf = kwargs['inbuf'] if 'inbuf' in kwargs else None
-    cmd_dict = {'prefix': 'dashboard {}'.format(cmd)}
-    cmd_dict.update(kwargs)
-    if cmd_dict['prefix'] not in CLICommand.COMMANDS:
-        ret, out, err = command_handler(cmd_dict)
-        if ret < 0:
-            raise CmdException(ret, err)
-        try:
-            return json.loads(out)
-        except ValueError:
-            return out
-
-    ret, out, err = CLICommand.COMMANDS[cmd_dict['prefix']].call(mgr, cmd_dict, inbuf)
-    if ret < 0:
-        raise CmdException(ret, err)
-    try:
-        return json.loads(out)
-    except ValueError:
-        return out
-
-
 class KVStoreMockMixin(object):
     CONFIG_KEY_DICT = {}
 
@@ -81,10 +70,24 @@ class KVStoreMockMixin(object):
         return cls.CONFIG_KEY_DICT.get(key, None)
 
 
+# pylint: disable=protected-access
 class CLICommandTestMixin(KVStoreMockMixin):
+    _dashboard_module = ModuleTestClass()
+
     @classmethod
     def exec_cmd(cls, cmd, **kwargs):
-        return exec_dashboard_cmd(None, cmd, **kwargs)
+        inbuf = kwargs['inbuf'] if 'inbuf' in kwargs else None
+        cmd_dict = {'prefix': 'dashboard {}'.format(cmd)}
+        cmd_dict.update(kwargs)
+
+        result = HandleCommandResult(*cls._dashboard_module._handle_command(inbuf, cmd_dict))
+
+        if result.retval < 0:
+            raise CmdException(result.retval, result.stderr)
+        try:
+            return json.loads(result.stdout)
+        except ValueError:
+            return result.stdout
 
 
 class FakeFsMixin(object):
diff --git a/ceph/src/pybind/mgr/dashboard/tests/test_ssl.py b/ceph/src/pybind/mgr/dashboard/tests/test_ssl.py
new file mode 100644 (file)
index 0000000..840f2b8
--- /dev/null
@@ -0,0 +1,28 @@
+import errno
+import unittest
+
+from ..tests import CLICommandTestMixin, CmdException
+
+
+class SslTest(unittest.TestCase, CLICommandTestMixin):
+
+    def test_ssl_certificate_and_key(self):
+        with self.assertRaises(CmdException) as ctx:
+            self.exec_cmd('set-ssl-certificate', inbuf='', mgr_id='x')
+        self.assertEqual(ctx.exception.retcode, -errno.EINVAL)
+        self.assertEqual(str(ctx.exception), 'Please specify the certificate with "-i" option')
+
+        result = self.exec_cmd('set-ssl-certificate', inbuf='content', mgr_id='x')
+        self.assertEqual(result, 'SSL certificate updated')
+
+        with self.assertRaises(CmdException) as ctx:
+            self.exec_cmd('set-ssl-certificate-key', inbuf='', mgr_id='x')
+        self.assertEqual(ctx.exception.retcode, -errno.EINVAL)
+        self.assertEqual(str(ctx.exception), 'Please specify the certificate key with "-i" option')
+
+        result = self.exec_cmd('set-ssl-certificate-key', inbuf='content', mgr_id='x')
+        self.assertEqual(result, 'SSL certificate key updated')
+
+    def test_set_mgr_created_self_signed_cert(self):
+        result = self.exec_cmd('create-self-signed-cert')
+        self.assertEqual(result, 'Self-signed certificate created')
index ee97fb20fddf445200ae59b1d804f2e16aca1c20..ab565137a18f98759b7992f719b9689f3935baa1 100644 (file)
@@ -5,13 +5,11 @@ from __future__ import absolute_import
 import errno
 import unittest
 
-from ..services.sso import handle_sso_command, load_sso_db
-from . import CmdException  # pylint: disable=no-name-in-module
-from . import KVStoreMockMixin  # pylint: disable=no-name-in-module
-from . import exec_dashboard_cmd  # pylint: disable=no-name-in-module
+from ..services.sso import load_sso_db
+from . import CLICommandTestMixin, CmdException  # pylint: disable=no-name-in-module
 
 
-class AccessControlTest(unittest.TestCase, KVStoreMockMixin):
+class AccessControlTest(unittest.TestCase, CLICommandTestMixin):
     IDP_METADATA = '''<?xml version="1.0"?>
 <md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
                      xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
@@ -64,10 +62,6 @@ class AccessControlTest(unittest.TestCase, KVStoreMockMixin):
         self.mock_kv_store()
         load_sso_db()
 
-    @classmethod
-    def exec_cmd(cls, cmd, **kwargs):
-        return exec_dashboard_cmd(handle_sso_command, cmd, **kwargs)
-
     def validate_onelogin_settings(self, onelogin_settings, ceph_dashboard_base_url, uid,
                                    sp_x509cert, sp_private_key, signature_enabled):
         self.assertIn('sp', onelogin_settings)
index 94d08f7ae3b9c4d0c76dec39a25ab7256ed096f7..3fa600ad1d60ad0607edd01ba475b9b19d5eb9fa 100644 (file)
@@ -148,8 +148,9 @@ void RGWCORSRule::format_exp_headers(string& s) {
     if (s.length() > 0)
       s.append(",");
     // these values are sent to clients in a 'Access-Control-Expose-Headers'
-    // response header, so we escape '\n' to avoid header injection
-    boost::replace_all_copy(std::back_inserter(s), header, "\n", "\\n");
+    // response header, so we escape '\n' and '\r' to avoid header injection
+    std::string tmp = boost::replace_all_copy(header, "\n", "\\n");
+    boost::replace_all_copy(std::back_inserter(s), tmp, "\r", "\\r");
   }
 }
 
index 0a8d6cdf99325d4f4c328309184b225efb603692..11bf7abd03aa21c7f284e0526436b554faecbc2f 100644 (file)
@@ -2560,6 +2560,9 @@ bool RGWSwiftWebsiteHandler::is_web_dir() const
     return false;
   } else if (subdir_name.back() == '/') {
     subdir_name.pop_back();
+    if (subdir_name.empty()) {
+      return false;
+    }
   }
 
   rgw::sal::RGWRadosObject obj(store, rgw_obj_key(std::move(subdir_name)), s->bucket.get());
index 1ea4b17675a559a822e7ae3a8e5000e2c0f73424..9c12c9ba4446690a122eff36cb8b34b0e4fecec7 100644 (file)
@@ -14,7 +14,6 @@ MemoryDenyWriteExecute=true
 NoNewPrivileges=true
 # ceph-fuse requires access to /dev fuse device
 PrivateDevices=no
-ProtectClock=true
 ProtectControlGroups=true
 ProtectHostname=true
 ProtectKernelLogs=true
index f5782487f9e209a41584368650ac986a92255d0f..62ff8dbd2729e1f3a0373ff5ceb554fd6085dace 100644 (file)
@@ -14,7 +14,6 @@ MemoryDenyWriteExecute=true
 NoNewPrivileges=true
 PrivateDevices=yes
 PrivateTmp=true
-ProtectClock=true
 ProtectControlGroups=true
 ProtectHome=true
 ProtectHostname=true
index 2884f587f9768f876facd895fb13f607443f7248..afa36702f9c0ab0257b7dbdfb161bd2b770d8713 100644 (file)
@@ -17,7 +17,6 @@ MemoryDenyWriteExecute=true
 NoNewPrivileges=true
 PrivateDevices=yes
 PrivateTmp=true
-ProtectClock=true
 ProtectControlGroups=true
 ProtectHome=true
 ProtectHostname=true
index 1ee28285209ba6c801d0c410b9a09859eccb0a33..8fadc4746b3ad18c2c7082e3a4cb5f2159c19617 100644 (file)
@@ -16,7 +16,6 @@ LockPersonality=true
 NoNewPrivileges=true
 PrivateDevices=yes
 PrivateTmp=true
-ProtectClock=true
 ProtectControlGroups=true
 ProtectHome=true
 ProtectHostname=true
index 994cdfd2869593f65148f39f7f096fccb206fab0..b7c92f278e345d0e14c501bb0f24c067d55881e3 100644 (file)
@@ -22,7 +22,6 @@ MemoryDenyWriteExecute=true
 NoNewPrivileges=false
 PrivateDevices=yes
 PrivateTmp=true
-ProtectClock=true
 ProtectControlGroups=true
 ProtectHome=true
 ProtectHostname=true
index 4981417d6202cb0484c23a39a4736f7ee3d2eedf..046500efb66b27d9d1af52b27e5cdca0bec50a28 100644 (file)
@@ -18,7 +18,6 @@ MemoryDenyWriteExecute=true
 # Need NewPrivileges via `sudo smartctl`
 NoNewPrivileges=false
 PrivateTmp=true
-ProtectClock=true
 ProtectControlGroups=true
 ProtectHome=true
 ProtectHostname=true
index cfff60c18b8ccc754b630540e2813d8f72e42f8c..b74747055065282bd2740da2c4afebc60c40d275 100644 (file)
@@ -16,7 +16,6 @@ MemoryDenyWriteExecute=true
 NoNewPrivileges=true
 PrivateDevices=yes
 PrivateTmp=true
-ProtectClock=true
 ProtectControlGroups=true
 ProtectHome=true
 ProtectHostname=true
index fe49f11116e1859d52df2a31dd4c5e0877f53b48..1057892dc99c25e45411cdf651d3c5e862979c35 100644 (file)
@@ -16,7 +16,6 @@ MemoryDenyWriteExecute=true
 NoNewPrivileges=true
 PrivateDevices=yes
 PrivateTmp=true
-ProtectClock=true
 ProtectControlGroups=true
 ProtectHome=true
 ProtectHostname=true
index a97d6ad8b57a50bc389484b87523df8b97195d29..bed9d195302ba14c6efaa019ddc34c0637486d62 100644 (file)
@@ -15,7 +15,6 @@ MemoryDenyWriteExecute=true
 NoNewPrivileges=true
 PrivateDevices=yes
 PrivateTmp=true
-ProtectClock=true
 ProtectControlGroups=true
 ProtectHome=true
 ProtectHostname=true
@@ -30,4 +29,4 @@ StartLimitInterval=30min
 TasksMax=infinity
 
 [Install]
-WantedBy=cephfs-mirror.target
\ No newline at end of file
+WantedBy=cephfs-mirror.target