From b2db8896ea0a3cb3e44a91c7d1901e22bd00248a Mon Sep 17 00:00:00 2001 From: grossmj Date: Wed, 20 Nov 2024 14:00:49 +1000 Subject: [PATCH] Release v3.0.0rc2 --- CHANGELOG | 15 +++++++++++++++ gns3server/crash_report.py | 2 +- gns3server/static/web-ui/main.4185a8e61824af0d.js | 1 - gns3server/version.py | 2 +- 4 files changed, 17 insertions(+), 3 deletions(-) delete mode 100644 gns3server/static/web-ui/main.4185a8e61824af0d.js diff --git a/CHANGELOG b/CHANGELOG index 57e62df21..9fd09c9b9 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,20 @@ # Change Log +## 3.0.0rc2 20/11/2024 + +* Bundle web-ui v3.0.0rc2 +* Fix error 500 on PUT for cloud, nat, vmware and vpcs nodes. Fixes #2426 +* Add a duplicated project in the same resource pools as the original project if it is in any +* Upgrade FastAPI to v0.115.5 +* Overwrite user resources when the originals have changed. +* Relax setuptools requirement to allow for easier Debian packaging on Ubuntu Focal & Jammy +* Increase SQLite timeout. Ref #2422 +* Fix test user with wrong creds +* Upgrade dependencies and fix Pydantic warnings +* Upgrade aiohttp to v3.10.10. Fixes #2411 +* Replace aiohttp.web.HTTPConflict() +* Python 3.13 support + ## 2.2.51 07/11/2024 * Catch error when cannot resize Docker container TTY. diff --git a/gns3server/crash_report.py b/gns3server/crash_report.py index b4d0d9deb..b6b202bde 100644 --- a/gns3server/crash_report.py +++ b/gns3server/crash_report.py @@ -58,7 +58,7 @@ class CrashReport: Report crash to a third party service """ - DSN = "https://1ae6f3c9d64e75bf8ad39295723da722@o19455.ingest.us.sentry.io/38482" + DSN = "https://29d15f2b7fde7fbd860843b7ee24dc7f@o19455.ingest.us.sentry.io/38482" _instance = None def __init__(self): diff --git a/gns3server/static/web-ui/main.4185a8e61824af0d.js b/gns3server/static/web-ui/main.4185a8e61824af0d.js deleted file mode 100644 index 634583881..000000000 --- a/gns3server/static/web-ui/main.4185a8e61824af0d.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgns3_web_ui=self.webpackChunkgns3_web_ui||[]).push([[179],{5735:function(De,K,m){"use strict";m.d(K,{o:function(){return R}});var G=m(5671),W=m(3144),A=m(591),U=m(8929),R=function(){function P(){(0,G.Z)(this,P),this.data=[],this.dataChange=new A.X([]),this.itemUpdated=new U.xQ}return(0,W.Z)(P,[{key:"getItems",value:function(){return this.data}},{key:"add",value:function(D){this.findIndex(D)>=0?this.update(D):(this.data.push(D),this.dataChange.next(this.data))}},{key:"set",value:function(D){var j=this;D.forEach(function(v){var k=j.findIndex(v);if(k>=0){var b=Object.assign(j.data[k],v);j.data[k]=b}else j.data.push(v)}),this.data.filter(function(v){return 0===D.filter(function(k){return j.getItemKey(k)===j.getItemKey(v)}).length}).forEach(function(v){return j.remove(v)}),this.dataChange.next(this.data)}},{key:"get",value:function(D){var j=this,L=this.data.findIndex(function(v){return j.getItemKey(v)===D});if(L>=0)return this.data[L]}},{key:"update",value:function(D){var j=this.findIndex(D);if(j>=0){var L=Object.assign(this.data[j],D);this.data[j]=L,this.dataChange.next(this.data),this.itemUpdated.next(L)}}},{key:"remove",value:function(D){var j=this.findIndex(D);j>=0&&(this.data.splice(j,1),this.dataChange.next(this.data))}},{key:"changes",get:function(){return this.dataChange}},{key:"itemChanged",get:function(){return this.itemUpdated}},{key:"clear",value:function(){this.data=[],this.dataChange.next(this.data)}},{key:"findIndex",value:function(D){var j=this;return this.data.findIndex(function(L){return j.getItemKey(L)===j.getItemKey(D)})}}]),P}()},6215:function(De,K,m){"use strict";m.d(K,{F:function(){return E}});var G=m(5671),W=m(3144),A=m(136),U=m(9388),R=m(5735),P=m(5e3),E=function(D){(0,A.Z)(L,D);var j=(0,U.Z)(L);function L(){return(0,G.Z)(this,L),j.apply(this,arguments)}return(0,W.Z)(L,[{key:"getItemKey",value:function(k){return k.link_id}}]),L}(R.o);E.\u0275fac=function(){var D;return function(L){return(D||(D=P.n5z(E)))(L||E)}}(),E.\u0275prov=P.Yz7({token:E,factory:E.\u0275fac})},5366:function(De,K,m){"use strict";m.d(K,{G:function(){return E}});var G=m(5671),W=m(3144),A=m(136),U=m(9388),R=m(5735),P=m(5e3),E=function(D){(0,A.Z)(L,D);var j=(0,U.Z)(L);function L(){return(0,G.Z)(this,L),j.apply(this,arguments)}return(0,W.Z)(L,[{key:"getItemKey",value:function(k){return k.node_id}}]),L}(R.o);E.\u0275fac=function(){var D;return function(L){return(D||(D=P.n5z(E)))(L||E)}}(),E.\u0275prov=P.Yz7({token:E,factory:E.\u0275fac})},5542:function(De,K,m){"use strict";m.d(K,{X:function(){return P}});var G=m(5671),W=m(3144),A=m(4766),U=m(5e3),R=m(2437),P=function(){function E(D){(0,G.Z)(this,E),this.httpController=D}return(0,W.Z)(E,[{key:"getComputes",value:function(j){return this.httpController.get(j,"/computes")}},{key:"getUploadPath",value:function(j,L,v){return"".concat(j.protocol,"//").concat(j.host,":").concat(j.port,"/").concat(A.N.current_version,"/").concat(L,"/images/").concat(v)}},{key:"getStatistics",value:function(j){return this.httpController.get(j,"/statistics")}}]),E}();P.\u0275fac=function(D){return new(D||P)(U.LFG(R.zw))},P.\u0275prov=U.Yz7({token:P,factory:P.\u0275fac})},2437:function(De,K,m){"use strict";m.d(K,{CJ:function(){return k},zw:function(){return b}});var G=m(5671),W=m(3144),A=m(136),U=m(9388),R=m(5724),P=m(5e3),E=m(4766),D=m(1737),j=m(7221),L=m(520),v=function(O){(0,A.Z)(y,O);var S=(0,U.Z)(y);function y(T){return(0,G.Z)(this,y),S.call(this,T)}return(0,W.Z)(y,null,[{key:"fromError",value:function(M,x){var N=new y(M);return N.originalError=x,N}}]),y}((0,R.Z)(Error)),k=function(){function O(){(0,G.Z)(this,O)}return(0,W.Z)(O,[{key:"handleError",value:function(y){var T=y;return"HttpErrorResponse"===y.name&&0===y.status&&(T=v.fromError("Controller is unreachable",y)),401===y.status&&window.location.reload(),(0,D._)(T)}}]),O}();k.\u0275fac=function(S){return new(S||k)},k.\u0275prov=P.Yz7({token:k,factory:k.\u0275fac});var b=function(){function O(S,y){(0,G.Z)(this,O),this.http=S,this.errorHandler=y,this.requestsNotificationEmitter=new P.vpe}return(0,W.Z)(O,[{key:"get",value:function(y,T,M){M=this.getJsonOptions(M);var x=this.getOptionsForController(y,T,M);return this.requestsNotificationEmitter.emit("GET ".concat(x.url)),this.http.get(x.url,x.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"getText",value:function(y,T,M){M=this.getTextOptions(M);var x=this.getOptionsForController(y,T,M);return this.requestsNotificationEmitter.emit("GET ".concat(x.url)),this.http.get(x.url,x.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"getBlob",value:function(y,T,M){M=this.getBlobOptions(M);var x=this.getOptionsForController(y,T,M);return this.requestsNotificationEmitter.emit("GET ".concat(x.url)),this.http.get(x.url,x.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"post",value:function(y,T,M,x){x=this.getJsonOptions(x);var N=this.getOptionsForController(y,T,x);return this.requestsNotificationEmitter.emit("POST ".concat(N.url)),this.http.post(N.url,M,N.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"put",value:function(y,T,M,x){x=this.getJsonOptions(x);var N=this.getOptionsForController(y,T,x);return this.requestsNotificationEmitter.emit("PUT ".concat(N.url)),this.http.put(N.url,M,N.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"delete",value:function(y,T,M){M=this.getJsonOptions(M);var x=this.getOptionsForController(y,T,M);return this.requestsNotificationEmitter.emit("DELETE ".concat(x.url)),this.http.delete(x.url,x.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"patch",value:function(y,T,M,x){x=this.getJsonOptions(x);var N=this.getOptionsForController(y,T,x);return this.http.patch(N.url,M,N.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"head",value:function(y,T,M){M=this.getJsonOptions(M);var x=this.getOptionsForController(y,T,M);return this.http.head(x.url,x.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"options",value:function(y,T,M){M=this.getJsonOptions(M);var x=this.getOptionsForController(y,T,M);return this.http.options(x.url,x.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"getJsonOptions",value:function(y){return y||{responseType:"json"}}},{key:"getTextOptions",value:function(y){return y||{responseType:"text"}}},{key:"getBlobOptions",value:function(y){return y||{responseType:"blob"}}},{key:"getOptionsForController",value:function(y,T,M){return y&&y.host&&y.port?(y.protocol||(y.protocol=location.protocol),T="".concat(y.protocol,"//").concat(y.host,":").concat(y.port,"/").concat(E.N.current_version).concat(T)):T="/".concat(E.N.current_version).concat(T),M.headers||(M.headers={}),y&&y.authToken&&!y.tokenExpired&&(M.headers.Authorization="Bearer ".concat(y.authToken)),{url:T,options:M}}}]),O}();b.\u0275fac=function(S){return new(S||b)(P.LFG(L.eN),P.LFG(k))},b.\u0275prov=P.Yz7({token:b,factory:b.\u0275fac})},9971:function(De,K,m){"use strict";m.d(K,{Y:function(){return j}});var G=m(5671),W=m(3144),A=m(4766),U=m(8929),R=m(5e3),P=m(2437),E=m(9449),D=m(9740),j=function(){function L(v,k,b){(0,G.Z)(this,L),this.httpController=v,this.settingsService=k,this.recentlyOpenedProjectService=b,this.compression_methods=[{id:1,value:"none",name:"None"},{id:2,value:"zip",name:"Zip compression (deflate)"},{id:3,value:"bzip2",name:"Bzip2 compression"},{id:4,value:"lzma",name:"Lzma compression"},{id:5,value:"zstd",name:"Zstandard compression"}],this.compression_level_default_value=[{id:1,name:"none",value:"",selectionValues:[]},{id:2,name:"zip",value:6,selectionValues:[0,1,2,3,4,5,6,7,8,9]},{id:3,name:"bzip2",value:9,selectionValues:[1,2,3,4,5,6,7,8,9]},{id:4,name:"lzma",value:" ",selectionValues:[]},{id:5,name:"zstd",value:3,selectionValues:[1,2,3,4,5,6,7,8,9.1,11,12,13,14,15,16,17,18,19,20,21,22]}],this.projectListSubject=new U.xQ,this.projectLockIconSubject=new U.xQ}return(0,W.Z)(L,[{key:"projectListUpdated",value:function(){this.projectListSubject.next(!0)}},{key:"getReadmeFile",value:function(k,b){return this.httpController.getText(k,"/projects/".concat(b,"/files/README.txt"))}},{key:"postReadmeFile",value:function(k,b,O){return this.httpController.post(k,"/projects/".concat(b,"/files/README.txt"),O)}},{key:"get",value:function(k,b){return this.httpController.get(k,"/projects/".concat(b))}},{key:"open",value:function(k,b){return this.httpController.post(k,"/projects/".concat(b,"/open"),{})}},{key:"close",value:function(k,b){return this.recentlyOpenedProjectService.removeData(),this.httpController.post(k,"/projects/".concat(b,"/close"),{})}},{key:"list",value:function(k){return this.httpController.get(k,"/projects")}},{key:"nodes",value:function(k,b){return this.httpController.get(k,"/projects/".concat(b,"/nodes"))}},{key:"links",value:function(k,b){return this.httpController.get(k,"/projects/".concat(b,"/links"))}},{key:"drawings",value:function(k,b){return this.httpController.get(k,"/projects/".concat(b,"/drawings"))}},{key:"add",value:function(k,b,O){return this.httpController.post(k,"/projects",{name:b,project_id:O})}},{key:"update",value:function(k,b){return this.httpController.put(k,"/projects/".concat(b.project_id),{auto_close:b.auto_close,auto_open:b.auto_open,auto_start:b.auto_start,drawing_grid_size:b.drawing_grid_size,grid_size:b.grid_size,name:b.name,scene_width:b.scene_width,scene_height:b.scene_height,show_interface_labels:b.show_interface_labels})}},{key:"delete",value:function(k,b){return this.httpController.delete(k,"/projects/".concat(b))}},{key:"getUploadPath",value:function(k,b,O){return"".concat(k.protocol,"//").concat(k.host,":").concat(k.port,"/").concat(A.N.current_version,"/projects/").concat(b,"/import?name=").concat(O)}},{key:"getExportPath",value:function(k,b){return"".concat(k.protocol,"//").concat(k.host,":").concat(k.port,"/").concat(A.N.current_version,"/projects/").concat(b.project_id,"/export")}},{key:"export",value:function(k,b){return this.httpController.get(k,"/projects/".concat(b,"/export"))}},{key:"getStatistics",value:function(k,b){return this.httpController.get(k,"/projects/".concat(b,"/stats"))}},{key:"duplicate",value:function(k,b,O){return this.httpController.post(k,"/projects/".concat(b,"/duplicate"),{name:O})}},{key:"isReadOnly",value:function(k){return!!k.readonly&&k.readonly}},{key:"getCompression",value:function(){return this.compression_methods}},{key:"getCompressionLevel",value:function(){return this.compression_level_default_value}},{key:"getexportPortableProjectPath",value:function(k,b){var O=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return null!=O.compression_level&&""!=O.compression_level?"".concat(k.protocol,"//").concat(k.host,":").concat(k.port,"/").concat(A.N.current_version,"/projects/").concat(b,"/export?include_snapshots=").concat(O.include_snapshots,"&include_images=").concat(O.include_base_image,"&reset_mac_addresses=").concat(O.reset_mac_address,"&compression=").concat(O.compression,"&compression_level=").concat(O.compression_level,"&token=").concat(k.authToken):"".concat(k.protocol,"//").concat(k.host,":").concat(k.port,"/").concat(A.N.current_version,"/projects/").concat(b,"/export?include_snapshots=").concat(O.include_snapshots,"&include_images=").concat(O.include_base_image,"&reset_mac_addresses=").concat(O.reset_mac_address,"&compression=").concat(O.compression,"&token=").concat(k.authToken)}},{key:"getProjectStatus",value:function(k,b){return this.get(k,"".concat(b,"/locked"))}},{key:"projectUpdateLockIcon",value:function(){this.projectLockIconSubject.next(!0)}}]),L}();j.\u0275fac=function(v){return new(v||j)(R.LFG(P.zw),R.LFG(E.g),R.LFG(D.p))},j.\u0275prov=R.Yz7({token:j,factory:j.\u0275fac})},9740:function(De,K,m){"use strict";m.d(K,{p:function(){return U}});var G=m(5671),W=m(3144),A=m(5e3),U=function(){function R(){(0,G.Z)(this,R)}return(0,W.Z)(R,[{key:"setcontrollerId",value:function(E){this.controllerId=E}},{key:"setProjectId",value:function(E){this.projectId=E}},{key:"setcontrollerIdProjectList",value:function(E){this.controllerIdProjectList=E}},{key:"getcontrollerId",value:function(){return this.controllerId}},{key:"getProjectId",value:function(){return this.projectId}},{key:"getcontrollerIdProjectList",value:function(){return this.controllerIdProjectList}},{key:"removeData",value:function(){this.controllerId="",this.projectId=""}}]),R}();U.\u0275fac=function(P){return new(P||U)},U.\u0275prov=A.Yz7({token:U,factory:U.\u0275fac})},9449:function(De,K,m){"use strict";m.d(K,{g:function(){return U}});var G=m(5671),W=m(3144),A=m(5e3),U=function(){function R(){(0,G.Z)(this,R),this.settings={crash_reports:!0,console_command:void 0,anonymous_statistics:!0},this.reportsSettings="crash_reports",this.consoleSettings="console_command",this.statisticsSettings="statistics_command",this.getItem(this.reportsSettings)&&(this.settings.crash_reports="true"===this.getItem(this.reportsSettings)),this.getItem(this.consoleSettings)&&(this.settings.console_command=this.getItem(this.consoleSettings)),this.getItem(this.statisticsSettings)&&(this.settings.anonymous_statistics="true"===this.getItem(this.statisticsSettings))}return(0,W.Z)(R,[{key:"setReportsSettings",value:function(E){this.settings.crash_reports=E,this.removeItem(this.reportsSettings),E?this.setItem(this.reportsSettings,"true"):this.setItem(this.reportsSettings,"false")}},{key:"setStatisticsSettings",value:function(E){this.settings.anonymous_statistics=E,this.removeItem(this.statisticsSettings),E?this.setItem(this.statisticsSettings,"true"):this.setItem(this.statisticsSettings,"false")}},{key:"getReportsSettings",value:function(){return"true"===this.getItem(this.reportsSettings)}},{key:"getStatisticsSettings",value:function(){return"true"===this.getItem(this.statisticsSettings)}},{key:"setConsoleSettings",value:function(E){this.settings.console_command=E,this.removeItem(this.consoleSettings),this.setItem(this.consoleSettings,E)}},{key:"getConsoleSettings",value:function(){return this.getItem(this.consoleSettings)}},{key:"removeItem",value:function(E){localStorage.removeItem(E)}},{key:"setItem",value:function(E,D){localStorage.setItem(E,D)}},{key:"getItem",value:function(E){return localStorage.getItem(E)}},{key:"getAll",value:function(){return this.settings}},{key:"setAll",value:function(E){this.settings=E,this.setConsoleSettings(E.console_command),this.setReportsSettings(E.crash_reports),this.setStatisticsSettings(E.anonymous_statistics)}}]),R}();U.\u0275fac=function(P){return new(P||U)},U.\u0275prov=A.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"})},4068:function(De,K,m){"use strict";m.d(K,{f:function(){return R}});var G=m(5671),W=m(3144),A=m(5e3),U=m(591),R=function(){function P(){(0,G.Z)(this,P),this._darkMode$=new U.X(!1),this.darkMode$=this._darkMode$.asObservable(),this.themeChanged=new A.vpe,this.savedTheme="dark",localStorage.getItem("theme")||localStorage.setItem("theme","dark"),this.savedTheme=localStorage.getItem("theme")}return(0,W.Z)(P,[{key:"getActualTheme",value:function(){return this.savedTheme}},{key:"setDarkMode",value:function(D){D?(this.savedTheme="dark",this.themeChanged.emit("dark-theme"),localStorage.setItem("theme","dark")):(this.savedTheme="light",this.themeChanged.emit("light-theme"),localStorage.setItem("theme","light"))}}]),P}();R.\u0275fac=function(E){return new(E||R)},R.\u0275prov=A.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"})},4766:function(De,K,m){"use strict";m.d(K,{N:function(){return G}});var G={production:!0,electron:!1,githubio:!1,solarputty_download_url:"",current_version:"v3",compute_id:"local"}},6742:function(De,K,m){"use strict";var G={};m.r(G),m.d(G,{active:function(){return SSe},arc:function(){return m1e},area:function(){return vee},areaRadial:function(){return wee},ascending:function(){return Jy},axisBottom:function(){return _ce},axisLeft:function(){return gce},axisRight:function(){return mce},axisTop:function(){return hce},bisect:function(){return Y1},bisectLeft:function(){return zue},bisectRight:function(){return VY},bisector:function(){return O7},brush:function(){return Dpe},brushSelection:function(){return Spe},brushX:function(){return Epe},brushY:function(){return xpe},chord:function(){return Ope},clientPoint:function(){return mN},cluster:function(){return oge},color:function(){return JL},contourDensity:function(){return _he},contours:function(){return Oq},create:function(){return UCe},creator:function(){return pN},cross:function(){return Vue},csvFormat:function(){return Mhe},csvFormatRows:function(){return She},csvParse:function(){return khe},csvParseRows:function(){return The},cubehelix:function(){return Dq},curveBasis:function(){return R1e},curveBasisClosed:function(){return L1e},curveBasisOpen:function(){return Z1e},curveBundle:function(){return N1e},curveCardinal:function(){return B1e},curveCardinalClosed:function(){return F1e},curveCardinalOpen:function(){return U1e},curveCatmullRom:function(){return H1e},curveCatmullRomClosed:function(){return j1e},curveCatmullRomOpen:function(){return G1e},curveLinear:function(){return vN},curveLinearClosed:function(){return z1e},curveMonotoneX:function(){return W1e},curveMonotoneY:function(){return V1e},curveNatural:function(){return Y1e},curveStep:function(){return K1e},curveStepAfter:function(){return J1e},curveStepBefore:function(){return q1e},customEvent:function(){return LCe},descending:function(){return Yue},deviation:function(){return qY},dispatch:function(){return Xy},drag:function(){return fg},dragDisable:function(){return xL},dragEnable:function(){return DL},dsvFormat:function(){return D9},easeBack:function(){return Hq},easeBackIn:function(){return Xhe},easeBackInOut:function(){return Hq},easeBackOut:function(){return $he},easeBounce:function(){return hx},easeBounceIn:function(){return Jhe},easeBounceInOut:function(){return Qhe},easeBounceOut:function(){return hx},easeCircle:function(){return Uq},easeCircleIn:function(){return Uhe},easeCircleInOut:function(){return Uq},easeCircleOut:function(){return Hhe},easeCubic:function(){return GL},easeCubicIn:function(){return mpe},easeCubicInOut:function(){return GL},easeCubicOut:function(){return _pe},easeElastic:function(){return jq},easeElasticIn:function(){return eme},easeElasticInOut:function(){return tme},easeElasticOut:function(){return jq},easeExp:function(){return Fq},easeExpIn:function(){return Bhe},easeExpInOut:function(){return Fq},easeExpOut:function(){return Fhe},easeLinear:function(){return Ohe},easePoly:function(){return Lq},easePolyIn:function(){return Rhe},easePolyInOut:function(){return Lq},easePolyOut:function(){return Lhe},easeQuad:function(){return Rq},easeQuadIn:function(){return Ihe},easeQuadInOut:function(){return Rq},easeQuadOut:function(){return Phe},easeSin:function(){return Bq},easeSinIn:function(){return Zhe},easeSinInOut:function(){return Bq},easeSinOut:function(){return Nhe},entries:function(){return Vpe},event:function(){return om},extent:function(){return I7},forceCenter:function(){return nme},forceCollide:function(){return Cme},forceLink:function(){return kme},forceManyBody:function(){return Dme},forceRadial:function(){return Ame},forceSimulation:function(){return xme},forceX:function(){return Ome},forceY:function(){return Ime},format:function(){return Xq},formatDefaultLocale:function(){return eJ},formatLocale:function(){return Qq},formatPrefix:function(){return $q},formatSpecifier:function(){return oZ},geoAlbers:function(){return pQ},geoAlbersUsa:function(){return F_e},geoArea:function(){return zme},geoAzimuthalEqualArea:function(){return U_e},geoAzimuthalEqualAreaRaw:function(){return bH},geoAzimuthalEquidistant:function(){return H_e},geoAzimuthalEquidistantRaw:function(){return CH},geoBounds:function(){return Kme},geoCentroid:function(){return e_e},geoCircle:function(){return t_e},geoClipAntimeridian:function(){return $9},geoClipCircle:function(){return LJ},geoClipExtent:function(){return l_e},geoClipRectangle:function(){return DZ},geoConicConformal:function(){return G_e},geoConicConformalRaw:function(){return _Q},geoConicEqualArea:function(){return UZ},geoConicEqualAreaRaw:function(){return fQ},geoConicEquidistant:function(){return W_e},geoConicEquidistantRaw:function(){return gQ},geoContains:function(){return m_e},geoDistance:function(){return bx},geoEquirectangular:function(){return z_e},geoEquirectangularRaw:function(){return Dx},geoGnomonic:function(){return V_e},geoGnomonicRaw:function(){return wH},geoGraticule:function(){return WJ},geoGraticule10:function(){return __e},geoIdentity:function(){return Y_e},geoInterpolate:function(){return g_e},geoLength:function(){return ZJ},geoMercator:function(){return j_e},geoMercatorRaw:function(){return xx},geoNaturalEarth1:function(){return K_e},geoNaturalEarth1Raw:function(){return kH},geoOrthographic:function(){return q_e},geoOrthographicRaw:function(){return TH},geoPath:function(){return D_e},geoProjection:function(){return nm},geoProjectionMutator:function(){return vH},geoRotation:function(){return EJ},geoStereographic:function(){return J_e},geoStereographicRaw:function(){return MH},geoStream:function(){return Qd},geoTransform:function(){return A_e},geoTransverseMercator:function(){return Q_e},geoTransverseMercatorRaw:function(){return SH},hcl:function(){return Tq},hierarchy:function(){return EH},histogram:function(){return Que},hsl:function(){return mq},interpolate:function(){return UH},interpolateArray:function(){return YQ},interpolateBasis:function(){return GQ},interpolateBasisClosed:function(){return zQ},interpolateBlues:function(){return nbe},interpolateBrBG:function(){return L0e},interpolateBuGn:function(){return z0e},interpolateBuPu:function(){return W0e},interpolateCool:function(){return pbe},interpolateCubehelix:function(){return wve},interpolateCubehelixDefault:function(){return dbe},interpolateCubehelixLong:function(){return kve},interpolateDate:function(){return KQ},interpolateGnBu:function(){return V0e},interpolateGreens:function(){return rbe},interpolateGreys:function(){return ibe},interpolateHcl:function(){return yve},interpolateHclLong:function(){return bve},interpolateHsl:function(){return mve},interpolateHslLong:function(){return _ve},interpolateInferno:function(){return gbe},interpolateLab:function(){return vve},interpolateMagma:function(){return _be},interpolateNumber:function(){return gp},interpolateObject:function(){return qQ},interpolateOrRd:function(){return Y0e},interpolateOranges:function(){return sbe},interpolatePRGn:function(){return Z0e},interpolatePiYG:function(){return N0e},interpolatePlasma:function(){return vbe},interpolatePuBu:function(){return q0e},interpolatePuBuGn:function(){return K0e},interpolatePuOr:function(){return B0e},interpolatePuRd:function(){return J0e},interpolatePurples:function(){return obe},interpolateRainbow:function(){return hbe},interpolateRdBu:function(){return F0e},interpolateRdGy:function(){return U0e},interpolateRdPu:function(){return Q0e},interpolateRdYlBu:function(){return H0e},interpolateRdYlGn:function(){return j0e},interpolateReds:function(){return abe},interpolateRgb:function(){return NH},interpolateRgbBasis:function(){return nve},interpolateRgbBasisClosed:function(){return rve},interpolateRound:function(){return ave},interpolateSpectral:function(){return G0e},interpolateString:function(){return JQ},interpolateTransformCss:function(){return uve},interpolateTransformSvg:function(){return cve},interpolateViridis:function(){return mbe},interpolateWarm:function(){return fbe},interpolateYlGn:function(){return $0e},interpolateYlGnBu:function(){return X0e},interpolateYlOrBr:function(){return ebe},interpolateYlOrRd:function(){return tbe},interpolateZoom:function(){return hve},interrupt:function(){return ene},interval:function(){return Hke},isoFormat:function(){return Nke},isoParse:function(){return Uke},keys:function(){return zpe},lab:function(){return kq},line:function(){return yN},lineRadial:function(){return Cee},linkHorizontal:function(){return T1e},linkRadial:function(){return S1e},linkVertical:function(){return M1e},local:function(){return hee},map:function(){return cg},matcher:function(){return tee},max:function(){return QY},mean:function(){return ece},median:function(){return tce},merge:function(){return B7},min:function(){return XY},mouse:function(){return jCe},namespace:function(){return Cj},namespaces:function(){return bj},nest:function(){return Upe},now:function(){return ug},pack:function(){return Age},packEnclose:function(){return yQ},packSiblings:function(){return Ege},pairs:function(){return Wue},partition:function(){return Oge},path:function(){return Jd},permute:function(){return nce},pie:function(){return v1e},pointRadial:function(){return Qx},polygonArea:function(){return Mve},polygonCentroid:function(){return Sve},polygonContains:function(){return Ave},polygonHull:function(){return Dve},polygonLength:function(){return Ove},precisionFixed:function(){return Bme},precisionPrefix:function(){return Fme},precisionRound:function(){return Ume},quadtree:function(){return rZ},quantile:function(){return XE},quantize:function(){return Tve},radialArea:function(){return wee},radialLine:function(){return Cee},randomBates:function(){return Rve},randomExponential:function(){return Lve},randomIrwinHall:function(){return wX},randomLogNormal:function(){return Pve},randomNormal:function(){return CX},randomUniform:function(){return Ive},range:function(){return hc},rgb:function(){return pq},ribbon:function(){return Fpe},scaleBand:function(){return nj},scaleIdentity:function(){return LX},scaleImplicit:function(){return ej},scaleLinear:function(){return RX},scaleLog:function(){return UX},scaleOrdinal:function(){return tj},scalePoint:function(){return Zve},scalePow:function(){return sj},scaleQuantile:function(){return HX},scaleQuantize:function(){return jX},scaleSequential:function(){return b$},scaleSqrt:function(){return rye},scaleThreshold:function(){return GX},scaleTime:function(){return C0e},scaleUtc:function(){return M0e},scan:function(){return rce},schemeAccent:function(){return E0e},schemeBlues:function(){return j$},schemeBrBG:function(){return C$},schemeBuGn:function(){return A$},schemeBuPu:function(){return O$},schemeCategory10:function(){return S0e},schemeDark2:function(){return x0e},schemeGnBu:function(){return I$},schemeGreens:function(){return G$},schemeGreys:function(){return z$},schemeOrRd:function(){return P$},schemeOranges:function(){return Y$},schemePRGn:function(){return w$},schemePaired:function(){return D0e},schemePastel1:function(){return A0e},schemePastel2:function(){return O0e},schemePiYG:function(){return k$},schemePuBu:function(){return L$},schemePuBuGn:function(){return R$},schemePuOr:function(){return T$},schemePuRd:function(){return Z$},schemePurples:function(){return W$},schemeRdBu:function(){return M$},schemeRdGy:function(){return S$},schemeRdPu:function(){return N$},schemeRdYlBu:function(){return E$},schemeRdYlGn:function(){return x$},schemeReds:function(){return V$},schemeSet1:function(){return I0e},schemeSet2:function(){return P0e},schemeSet3:function(){return R0e},schemeSpectral:function(){return D$},schemeYlGn:function(){return F$},schemeYlGnBu:function(){return B$},schemeYlOrBr:function(){return U$},schemeYlOrRd:function(){return H$},select:function(){return pee},selectAll:function(){return GCe},selection:function(){return FCe},selector:function(){return wj},selectorAll:function(){return $$},set:function(){return Gpe},shuffle:function(){return ice},stack:function(){return X1e},stackOffsetDiverging:function(){return ewe},stackOffsetExpand:function(){return $1e},stackOffsetNone:function(){return Dw},stackOffsetSilhouette:function(){return twe},stackOffsetWiggle:function(){return nwe},stackOrderAscending:function(){return Wee},stackOrderDescending:function(){return rwe},stackOrderInsideOut:function(){return iwe},stackOrderNone:function(){return Aw},stackOrderReverse:function(){return owe},stratify:function(){return Lge},style:function(){return iee},sum:function(){return oce},symbol:function(){return P1e},symbolCircle:function(){return Rj},symbolCross:function(){return kee},symbolDiamond:function(){return Mee},symbolSquare:function(){return xee},symbolStar:function(){return Eee},symbolTriangle:function(){return Dee},symbolWye:function(){return Aee},symbols:function(){return I1e},thresholdFreedmanDiaconis:function(){return Xue},thresholdScott:function(){return $ue},thresholdSturges:function(){return N7},tickIncrement:function(){return QE},tickStep:function(){return Qy},ticks:function(){return Z7},timeDay:function(){return cwe},timeDays:function(){return dwe},timeFormat:function(){return Pte},timeFormatDefaultLocale:function(){return Lte},timeFormatLocale:function(){return wte},timeFriday:function(){return ste},timeFridays:function(){return _we},timeHour:function(){return lwe},timeHours:function(){return uwe},timeInterval:function(){return ws},timeMillisecond:function(){return Yee},timeMilliseconds:function(){return Kee},timeMinute:function(){return awe},timeMinutes:function(){return swe},timeMonday:function(){return rte},timeMondays:function(){return fwe},timeMonth:function(){return vwe},timeMonths:function(){return ywe},timeParse:function(){return Rte},timeSaturday:function(){return lte},timeSaturdays:function(){return gwe},timeSecond:function(){return Xee},timeSeconds:function(){return $ee},timeSunday:function(){return zj},timeSundays:function(){return ute},timeThursday:function(){return ate},timeThursdays:function(){return mwe},timeTuesday:function(){return ite},timeTuesdays:function(){return pwe},timeWednesday:function(){return ote},timeWednesdays:function(){return hwe},timeWeek:function(){return zj},timeWeeks:function(){return ute},timeYear:function(){return bwe},timeYears:function(){return Cwe},timeout:function(){return sx},timer:function(){return ax},timerFlush:function(){return NK},touch:function(){return zCe},touches:function(){return WCe},transition:function(){return Cne},transpose:function(){return $Y},tree:function(){return Hge},treemap:function(){return jge},treemapBinary:function(){return Gge},treemapDice:function(){return Ox},treemapResquarify:function(){return Wge},treemapSlice:function(){return YZ},treemapSliceDice:function(){return zge},treemapSquarify:function(){return PQ},tsvFormat:function(){return Dhe},tsvFormatRows:function(){return Ahe},tsvParse:function(){return Ehe},tsvParseRows:function(){return xhe},utcDay:function(){return Swe},utcDays:function(){return Ewe},utcFormat:function(){return Kj},utcFriday:function(){return vte},utcFridays:function(){return Iwe},utcHour:function(){return Twe},utcHours:function(){return Mwe},utcMillisecond:function(){return Yee},utcMilliseconds:function(){return Kee},utcMinute:function(){return wwe},utcMinutes:function(){return kwe},utcMonday:function(){return hte},utcMondays:function(){return xwe},utcMonth:function(){return Rwe},utcMonths:function(){return Lwe},utcParse:function(){return qj},utcSaturday:function(){return yte},utcSaturdays:function(){return Pwe},utcSecond:function(){return Xee},utcSeconds:function(){return $ee},utcSunday:function(){return Vj},utcSundays:function(){return bte},utcThursday:function(){return gte},utcThursdays:function(){return Owe},utcTuesday:function(){return mte},utcTuesdays:function(){return Dwe},utcWednesday:function(){return _te},utcWednesdays:function(){return Awe},utcWeek:function(){return Vj},utcWeeks:function(){return bte},utcYear:function(){return Zwe},utcYears:function(){return Nwe},values:function(){return Wpe},variance:function(){return KY},voronoi:function(){return WSe},window:function(){return kj},zip:function(){return sce},zoom:function(){return Lne},zoomIdentity:function(){return HN},zoomTransform:function(){return Pne}});var W={};m.r(W),m.d(W,{safe:function(){return soe},spec:function(){return LLe}});var A={};m.r(A),m.d(A,{angle:function(){return bZe},decibel:function(){return MZe},flex:function(){return TZe},frequency:function(){return wZe},length:function(){return yZe},resolution:function(){return kZe},semitones:function(){return SZe},time:function(){return CZe}});var U={};m.r(U),m.d(U,{getTrace:function(){return Voe},isKeyword:function(){return dNe},isProperty:function(){return cNe},isType:function(){return uNe}});var R={};m.r(R),m.d(R,{generate:function(){return kNe},name:function(){return CNe},parse:function(){return eae},structure:function(){return wNe}});var P={};m.r(P),m.d(P,{generate:function(){return xNe},name:function(){return MNe},parse:function(){return nae},structure:function(){return ENe},walkContext:function(){return SNe}});var E={};m.r(E),m.d(E,{generate:function(){return INe},name:function(){return DNe},parse:function(){return rae},structure:function(){return ONe},walkContext:function(){return ANe}});var D={};m.r(D),m.d(D,{generate:function(){return UNe},name:function(){return BNe},parse:function(){return oae},structure:function(){return FNe}});var j={};m.r(j),m.d(j,{generate:function(){return VNe},name:function(){return GNe},parse:function(){return uae},structure:function(){return WNe},walkContext:function(){return zNe}});var L={};m.r(L),m.d(L,{generate:function(){return qNe},name:function(){return YNe},parse:function(){return cae},structure:function(){return KNe}});var v={};m.r(v),m.d(v,{generate:function(){return XNe},name:function(){return JNe},parse:function(){return dae},structure:function(){return QNe}});var k={};m.r(k),m.d(k,{generate:function(){return tBe},name:function(){return $Ne},parse:function(){return fae},structure:function(){return eBe}});var b={};m.r(b),m.d(b,{generate:function(){return oBe},name:function(){return rBe},parse:function(){return pae},structure:function(){return iBe}});var O={};m.r(O),m.d(O,{generate:function(){return dBe},name:function(){return uBe},parse:function(){return mae},structure:function(){return cBe}});var S={};m.r(S),m.d(S,{generate:function(){return _Be},name:function(){return hBe},parse:function(){return _ae},structure:function(){return mBe}});var y={};m.r(y),m.d(y,{generate:function(){return xBe},name:function(){return MBe},parse:function(){return yae},structure:function(){return EBe},walkContext:function(){return SBe}});var T={};m.r(T),m.d(T,{generate:function(){return RBe},name:function(){return IBe},parse:function(){return bae},structure:function(){return PBe}});var M={};m.r(M),m.d(M,{generate:function(){return NBe},name:function(){return LBe},parse:function(){return Cae},structure:function(){return ZBe}});var x={};m.r(x),m.d(x,{generate:function(){return HBe},name:function(){return BBe},parse:function(){return wae},structure:function(){return UBe},walkContext:function(){return FBe}});var N={};m.r(N),m.d(N,{generate:function(){return WBe},name:function(){return GBe},parse:function(){return kae},structure:function(){return zBe},xxx:function(){return jBe}});var F={};m.r(F),m.d(F,{generate:function(){return KBe},name:function(){return VBe},parse:function(){return Tae},structure:function(){return YBe}});var X={};m.r(X),m.d(X,{generate:function(){return QBe},name:function(){return qBe},parse:function(){return Mae},structure:function(){return JBe}});var $={};m.r($),m.d($,{generate:function(){return eFe},name:function(){return XBe},parse:function(){return Sae},structure:function(){return $Be}});var Y={};m.r(Y),m.d(Y,{generate:function(){return rFe},name:function(){return tFe},parse:function(){return Eae},structure:function(){return nFe}});var Q={};m.r(Q),m.d(Q,{generate:function(){return aFe},name:function(){return iFe},parse:function(){return xae},structure:function(){return oFe}});var ne={};m.r(ne),m.d(ne,{generate:function(){return cFe},name:function(){return lFe},parse:function(){return Dae},structure:function(){return uFe}});var be={};m.r(be),m.d(be,{generate:function(){return pFe},name:function(){return dFe},parse:function(){return Aae},structure:function(){return fFe}});var pe={};m.r(pe),m.d(pe,{generate:function(){return _Fe},name:function(){return hFe},parse:function(){return Oae},structure:function(){return mFe}});var de={};m.r(de),m.d(de,{generate:function(){return yFe},name:function(){return gFe},parse:function(){return Iae},structure:function(){return vFe}});var le={};m.r(le),m.d(le,{generate:function(){return wFe},name:function(){return bFe},parse:function(){return Pae},structure:function(){return CFe}});var ce={};m.r(ce),m.d(ce,{generate:function(){return MFe},name:function(){return kFe},parse:function(){return Rae},structure:function(){return TFe}});var me={};m.r(me),m.d(me,{generate:function(){return DFe},name:function(){return SFe},parse:function(){return Lae},structure:function(){return xFe},walkContext:function(){return EFe}});var je={};m.r(je),m.d(je,{generate:function(){return PFe},name:function(){return AFe},parse:function(){return Zae},structure:function(){return IFe},walkContext:function(){return OFe}});var at={};m.r(at),m.d(at,{generate:function(){return BFe},name:function(){return ZFe},parse:function(){return Bae},structure:function(){return NFe}});var Mt={};m.r(Mt),m.d(Mt,{generate:function(){return jFe},name:function(){return UFe},parse:function(){return Fae},structure:function(){return HFe}});var Tt={};m.r(Tt),m.d(Tt,{generate:function(){return YFe},name:function(){return zFe},parse:function(){return Hae},structure:function(){return VFe},walkContext:function(){return WFe}});var xt={};m.r(xt),m.d(xt,{generate:function(){return JFe},name:function(){return KFe},parse:function(){return jae},structure:function(){return qFe}});var Lt={};m.r(Lt),m.d(Lt,{generate:function(){return e5e},name:function(){return QFe},parse:function(){return Gae},structure:function(){return $Fe},walkContext:function(){return XFe}});var Ze={};m.r(Ze),m.d(Ze,{generate:function(){return i5e},name:function(){return n5e},parse:function(){return Yae},structure:function(){return r5e}});var $t={};m.r($t),m.d($t,{generate:function(){return u5e},name:function(){return a5e},parse:function(){return qae},structure:function(){return l5e},walkContext:function(){return s5e}});var Ft={};m.r(Ft),m.d(Ft,{generate:function(){return p5e},name:function(){return d5e},parse:function(){return Qae},structure:function(){return f5e}});var fn={};m.r(fn),m.d(fn,{generate:function(){return v5e},name:function(){return _5e},parse:function(){return ese},structure:function(){return g5e}});var nt={};m.r(nt),m.d(nt,{generate:function(){return E5e},name:function(){return M5e},parse:function(){return nse},structure:function(){return S5e}});var Ot={};m.r(Ot),m.d(Ot,{generate:function(){return A5e},name:function(){return x5e},parse:function(){return rse},structure:function(){return D5e}});var _t={};m.r(_t),m.d(_t,{generate:function(){return R5e},name:function(){return I5e},parse:function(){return ise},structure:function(){return P5e}});var Ct={};m.r(Ct),m.d(Ct,{AnPlusB:function(){return R},Atrule:function(){return P},AtrulePrelude:function(){return E},AttributeSelector:function(){return D},Block:function(){return j},Brackets:function(){return L},CDC:function(){return v},CDO:function(){return k},ClassSelector:function(){return b},Combinator:function(){return O},Comment:function(){return S},Declaration:function(){return y},DeclarationList:function(){return T},Dimension:function(){return M},Function:function(){return x},Hash:function(){return N},IdSelector:function(){return X},Identifier:function(){return F},MediaFeature:function(){return $},MediaQuery:function(){return Y},MediaQueryList:function(){return Q},NestingSelector:function(){return ne},Nth:function(){return be},Number:function(){return pe},Operator:function(){return de},Parentheses:function(){return le},Percentage:function(){return ce},PseudoClassSelector:function(){return me},PseudoElementSelector:function(){return je},Ratio:function(){return at},Raw:function(){return Mt},Rule:function(){return Tt},Selector:function(){return xt},SelectorList:function(){return Lt},String:function(){return Ze},StyleSheet:function(){return $t},TypeSelector:function(){return Ft},UnicodeRange:function(){return fn},Url:function(){return nt},Value:function(){return Ot},WhiteSpace:function(){return _t}});var We={};m.r(We),m.d(We,{AtrulePrelude:function(){return H5e},Selector:function(){return X5e},Value:function(){return t4e}});var lt={};m.r(lt),m.d(lt,{AnPlusB:function(){return eae},Atrule:function(){return nae},AtrulePrelude:function(){return rae},AttributeSelector:function(){return oae},Block:function(){return uae},Brackets:function(){return cae},CDC:function(){return dae},CDO:function(){return fae},ClassSelector:function(){return pae},Combinator:function(){return mae},Comment:function(){return _ae},Declaration:function(){return yae},DeclarationList:function(){return bae},Dimension:function(){return Cae},Function:function(){return wae},Hash:function(){return kae},IdSelector:function(){return Mae},Identifier:function(){return Tae},MediaFeature:function(){return Sae},MediaQuery:function(){return Eae},MediaQueryList:function(){return xae},NestingSelector:function(){return Dae},Nth:function(){return Aae},Number:function(){return Oae},Operator:function(){return Iae},Parentheses:function(){return Pae},Percentage:function(){return Rae},PseudoClassSelector:function(){return Lae},PseudoElementSelector:function(){return Zae},Ratio:function(){return Bae},Raw:function(){return Fae},Rule:function(){return Hae},Selector:function(){return jae},SelectorList:function(){return Gae},String:function(){return Yae},StyleSheet:function(){return qae},TypeSelector:function(){return Qae},UnicodeRange:function(){return ese},Url:function(){return nse},Value:function(){return rse},WhiteSpace:function(){return ise}});var qt,dt=m(3237),Ut=m(1120),B=m(3144),H=m(5671),tt=m(136),Ye=m(9388),ge=m(9808),t=m(5e3),Dt=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i;return(0,H.Z)(this,e),(i=r.apply(this,arguments)).supportsDOMEvents=!0,i}return(0,B.Z)(e)}(ge.w_),Zt=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"onAndCancel",value:function(o,a,s){return o.addEventListener(a,s,!1),function(){o.removeEventListener(a,s,!1)}}},{key:"dispatchEvent",value:function(o,a){o.dispatchEvent(a)}},{key:"remove",value:function(o){o.parentNode&&o.parentNode.removeChild(o)}},{key:"createElement",value:function(o,a){return(a=a||this.getDefaultDocument()).createElement(o)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(o){return o.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(o){return o instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(o,a){return"window"===a?window:"document"===a?o:"body"===a?o.body:null}},{key:"getBaseHref",value:function(o){var a=function sn(){return(zt=zt||document.querySelector("base"))?zt.getAttribute("href"):null}();return null==a?null:function yn(n){(qt=qt||document.createElement("a")).setAttribute("href",n);var r=qt.pathname;return"/"===r.charAt(0)?r:"/".concat(r)}(a)}},{key:"resetBaseElement",value:function(){zt=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(o){return(0,ge.Mx)(document.cookie,o)}}],[{key:"makeCurrent",value:function(){(0,ge.HT)(new e)}}]),e}(Dt),zt=null;var Kt=new t.OlP("TRANSITION_ID");var Je=[{provide:t.ip1,useFactory:function Xt(n,r,e){return function(){e.get(t.CZH).donePromise.then(function(){for(var i=(0,ge.q)(),o=r.querySelectorAll('style[ng-transition="'.concat(n,'"]')),a=0;a1&&void 0!==arguments[1])||arguments[1],s=e.findTestabilityInTree(o,a);if(null==s)throw new Error("Could not find testability for element.");return s},t.dqk.getAllAngularTestabilities=function(){return e.getAllTestabilities()},t.dqk.getAllAngularRootElements=function(){return e.getAllRootElements()};t.dqk.frameworkStabilizers||(t.dqk.frameworkStabilizers=[]),t.dqk.frameworkStabilizers.push(function(a){var s=t.dqk.getAllAngularTestabilities(),l=s.length,u=!1,d=function(g){u=u||g,0==--l&&a(u)};s.forEach(function(h){h.whenStable(d)})})}},{key:"findTestabilityInTree",value:function(e,i,o){if(null==i)return null;var a=e.getTestability(i);return null!=a?a:o?(0,ge.q)().isShadowRoot(i)?this.findTestabilityInTree(e,i.host,!0):this.findTestabilityInTree(e,i.parentElement,!0):null}}]),n}(),te=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"build",value:function(){return new XMLHttpRequest}}]),n}();te.\u0275fac=function(r){return new(r||te)},te.\u0275prov=t.Yz7({token:te,factory:te.\u0275fac});var ye=new t.OlP("EventManagerPlugins"),fe=function(){function n(r,e){var i=this;(0,H.Z)(this,n),this._zone=e,this._eventNameToPlugin=new Map,r.forEach(function(o){return o.manager=i}),this._plugins=r.slice().reverse()}return(0,B.Z)(n,[{key:"addEventListener",value:function(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}},{key:"addGlobalEventListener",value:function(e,i,o){return this._findPluginFor(i).addGlobalEventListener(e,i,o)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var i=this._eventNameToPlugin.get(e);if(i)return i;for(var o=this._plugins,a=0;a-1&&(a.splice(d,1),u="code."),kt.forEach(function(g){var C=a.indexOf(g);C>-1&&(a.splice(C,1),u+=g+".")}),u+=l,0!=a.length||0===l.length)return null;var h={};return h.domEventName=s,h.fullKey=u,h}},{key:"matchEventFullKeyCode",value:function(o,a){var s=$e[o.key]||o.key,l="";return a.indexOf("code.")>-1&&(s=o.code,l="code."),!(null==s||!s)&&(" "===(s=s.toLowerCase())?s="space":"."===s&&(s="dot"),kt.forEach(function(u){u!==s&&((0,gt[u])(o)&&(l+=u+"."))}),(l+=s)===a)}},{key:"eventCallback",value:function(o,a,s){return function(l){e.matchEventFullKeyCode(l,o)&&s.runGuarded(function(){return a(l)})}}},{key:"_normalizeKey",value:function(o){return"esc"===o?"escape":o}}]),e}(Ne);yt.\u0275fac=function(r){return new(r||yt)(t.LFG(ge.K0))},yt.\u0275prov=t.Yz7({token:yt,factory:yt.\u0275fac});var Pa=[{provide:t.Lbi,useValue:ge.bD},{provide:t.g9A,useValue:function Or(){Zt.makeCurrent()},multi:!0},{provide:ge.K0,useFactory:function Gi(){return(0,t.RDi)(document),document},deps:[]}],Ra=(0,t.eFA)(t._c5,"browser",Pa),ua=new t.OlP(""),ss=[{provide:t.rWj,useClass:Be,deps:[]},{provide:t.lri,useClass:t.dDg,deps:[t.R0b,t.eoX,t.rWj]},{provide:t.dDg,useClass:t.dDg,deps:[t.R0b,t.eoX,t.rWj]}],ta=[{provide:t.zSh,useValue:"root"},{provide:t.qLn,useFactory:function hi(){return new t.qLn},deps:[]},{provide:ye,useClass:Yt,multi:!0,deps:[ge.K0,t.R0b,t.Lbi]},{provide:ye,useClass:yt,multi:!0,deps:[ge.K0]},{provide:ze,useClass:ze,deps:[fe,ct,t.AFp]},{provide:t.FYo,useExisting:ze},{provide:st,useExisting:ct},{provide:ct,useClass:ct,deps:[ge.K0]},{provide:fe,useClass:fe,deps:[ye,t.R0b]},{provide:ge.JF,useClass:te,deps:[]},[]],ri=function(){function n(r){(0,H.Z)(this,n),false}return(0,B.Z)(n,null,[{key:"withServerTransition",value:function(e){return{ngModule:n,providers:[{provide:t.AFp,useValue:e.appId},{provide:Kt,useExisting:t.AFp},Je]}}}]),n}();ri.\u0275fac=function(r){return new(r||ri)(t.LFG(ua,12))},ri.\u0275mod=t.oAB({type:ri}),ri.\u0275inj=t.cJS({providers:[].concat(ta,ss),imports:[ge.ez,t.hGG]});var zi=function(){function n(r){(0,H.Z)(this,n),this._doc=r,this._dom=(0,ge.q)()}return(0,B.Z)(n,[{key:"addTag",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?this._getOrCreateElement(e,i):null}},{key:"addTags",value:function(e){var i=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?e.reduce(function(a,s){return s&&a.push(i._getOrCreateElement(s,o)),a},[]):[]}},{key:"getTag",value:function(e){return e&&this._doc.querySelector("meta[".concat(e,"]"))||null}},{key:"getTags",value:function(e){if(!e)return[];var i=this._doc.querySelectorAll("meta[".concat(e,"]"));return i?[].slice.call(i):[]}},{key:"updateTag",value:function(e,i){if(!e)return null;i=i||this._parseSelector(e);var o=this.getTag(i);return o?this._setMetaElementAttributes(e,o):this._getOrCreateElement(e,!0)}},{key:"removeTag",value:function(e){this.removeTagElement(this.getTag(e))}},{key:"removeTagElement",value:function(e){e&&this._dom.remove(e)}},{key:"_getOrCreateElement",value:function(e){var i=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!o){var a=this._parseSelector(e),s=this.getTags(a).filter(function(d){return i._containsAttributes(e,d)})[0];if(void 0!==s)return s}var l=this._dom.createElement("meta");this._setMetaElementAttributes(e,l);var u=this._doc.getElementsByTagName("head")[0];return u.appendChild(l),l}},{key:"_setMetaElementAttributes",value:function(e,i){var o=this;return Object.keys(e).forEach(function(a){return i.setAttribute(o._getMetaKeyMap(a),e[a])}),i}},{key:"_parseSelector",value:function(e){var i=e.name?"name":"property";return"".concat(i,'="').concat(e[i],'"')}},{key:"_containsAttributes",value:function(e,i){var o=this;return Object.keys(e).every(function(a){return i.getAttribute(o._getMetaKeyMap(a))===e[a]})}},{key:"_getMetaKeyMap",value:function(e){return Yn[e]||e}}]),n}();zi.\u0275fac=function(r){return new(r||zi)(t.LFG(ge.K0))},zi.\u0275prov=t.Yz7({token:zi,factory:function(r){return r?new r:function Vs(){return new zi((0,t.LFG)(ge.K0))}()},providedIn:"root"});var Yn={httpEquiv:"http-equiv"};var Hr=function(){function n(r){(0,H.Z)(this,n),this._doc=r}return(0,B.Z)(n,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(e){this._doc.title=e||""}}]),n}();Hr.\u0275fac=function(r){return new(r||Hr)(t.LFG(ge.K0))},Hr.\u0275prov=t.Yz7({token:Hr,factory:function(r){return r?new r:function yr(){return new Hr((0,t.LFG)(ge.K0))}()},providedIn:"root"});function qr(n,r){"undefined"!=typeof COMPILED&&COMPILED||((t.dqk.ng=t.dqk.ng||{})[n]=r)}var Bi="undefined"!=typeof window&&window||{},ba=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.msPerTick=r,this.numTicks=e}),Ar=function(){function n(r){(0,H.Z)(this,n),this.appRef=r.injector.get(t.z2F)}return(0,B.Z)(n,[{key:"timeChangeDetection",value:function(e){var i=e&&e.record,o="Change Detection",a=null!=Bi.console.profile;i&&a&&Bi.console.profile(o);for(var s=Fi(),l=0;l<5||Fi()-s<500;)this.appRef.tick(),l++;var u=Fi();i&&a&&Bi.console.profileEnd(o);var d=(u-s)/l;return Bi.console.log("ran ".concat(l," change detection cycles")),Bi.console.log("".concat(d.toFixed(2)," ms per check")),new ba(d,l)}}]),n}();function Fi(){return Bi.performance&&Bi.performance.now?Bi.performance.now():(new Date).getTime()}var Uo="profiler";var Ai=function(){function n(){(0,H.Z)(this,n),this.store={},this.onSerializeCallbacks={}}return(0,B.Z)(n,[{key:"get",value:function(e,i){return void 0!==this.store[e]?this.store[e]:i}},{key:"set",value:function(e,i){this.store[e]=i}},{key:"remove",value:function(e){delete this.store[e]}},{key:"hasKey",value:function(e){return this.store.hasOwnProperty(e)}},{key:"isEmpty",get:function(){return 0===Object.keys(this.store).length}},{key:"onSerialize",value:function(e,i){this.onSerializeCallbacks[e]=i}},{key:"toJson",value:function(){for(var e in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(e))try{this.store[e]=this.onSerializeCallbacks[e]()}catch(i){console.warn("Exception in onSerialize callback: ",i)}return JSON.stringify(this.store)}}]),n}();Ai.\u0275fac=function(r){return new(r||Ai)},Ai.\u0275prov=t.Yz7({token:Ai,factory:function(){return r=(0,t.f3M)(ge.K0),e=(0,t.f3M)(t.AFp),(i=new Ai).store=function fo(n,r){var e=n.getElementById(r+"-state"),i={};if(e&&e.textContent)try{i=JSON.parse(function na(n){var r={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return n.replace(/&[^;]+;/g,function(e){return r[e]})}(e.textContent))}catch(o){console.warn("Exception while restoring TransferState for app "+r,o)}return i}(r,e),i;var r,e,i},providedIn:"root"});var La=(0,B.Z)(function n(){(0,H.Z)(this,n)});La.\u0275fac=function(r){return new(r||La)},La.\u0275mod=t.oAB({type:La}),La.\u0275inj=t.cJS({});var gu={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},Wi=new t.OlP("HammerGestureConfig"),Ui=new t.OlP("HammerLoader"),Ss=function(){function n(){(0,H.Z)(this,n),this.events=[],this.overrides={}}return(0,B.Z)(n,[{key:"buildHammer",value:function(e){var i=new Hammer(e,this.options);for(var o in i.get("pinch").set({enable:!0}),i.get("rotate").set({enable:!0}),this.overrides)i.get(o).set(this.overrides[o]);return i}}]),n}();Ss.\u0275fac=function(r){return new(r||Ss)},Ss.\u0275prov=t.Yz7({token:Ss,factory:Ss.\u0275fac});var qi=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,i))._config=o,l.console=a,l.loader=s,l._loaderPromise=null,l}return(0,B.Z)(e,[{key:"supports",value:function(o){return!(!gu.hasOwnProperty(o.toLowerCase())&&!this.isCustomEvent(o)||!window.Hammer&&!this.loader)}},{key:"addEventListener",value:function(o,a,s){var l=this,u=this.manager.getZone();if(a=a.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||u.runOutsideAngular(function(){return l.loader()});var d=!1,h=function(){d=!0};return u.runOutsideAngular(function(){return l._loaderPromise.then(function(){window.Hammer?d||(h=l.addEventListener(o,a,s)):h=function(){}}).catch(function(){h=function(){}})}),function(){h()}}return u.runOutsideAngular(function(){var g=l._config.buildHammer(o),C=function(z){u.runGuarded(function(){s(z)})};return g.on(a,C),function(){g.off(a,C),"function"==typeof g.destroy&&g.destroy()}})}},{key:"isCustomEvent",value:function(o){return this._config.events.indexOf(o)>-1}}]),e}(Ne);qi.\u0275fac=function(r){return new(r||qi)(t.LFG(ge.K0),t.LFG(Wi),t.LFG(t.c2e),t.LFG(Ui,8))},qi.\u0275prov=t.Yz7({token:qi,factory:qi.\u0275fac});var tn=(0,B.Z)(function n(){(0,H.Z)(this,n)});tn.\u0275fac=function(r){return new(r||tn)},tn.\u0275mod=t.oAB({type:tn}),tn.\u0275inj=t.cJS({providers:[{provide:ye,useClass:qi,multi:!0,deps:[ge.K0,Wi,t.c2e,[new t.FiY,Ui]]},{provide:Wi,useClass:Ss,deps:[]}]});var Jt=(0,B.Z)(function n(){(0,H.Z)(this,n)});Jt.\u0275fac=function(r){return new(r||Jt)},Jt.\u0275prov=t.Yz7({token:Jt,factory:function(r){return r?new(r||Jt):t.LFG(Mi)},providedIn:"root"});var Mi=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,H.Z)(this,e),(o=r.call(this))._doc=i,o}return(0,B.Z)(e,[{key:"sanitize",value:function(o,a){if(null==a)return null;switch(o){case t.q3G.NONE:return a;case t.q3G.HTML:return(0,t.qzn)(a,"HTML")?(0,t.z3N)(a):(0,t.EiD)(this._doc,String(a)).toString();case t.q3G.STYLE:return(0,t.qzn)(a,"Style")?(0,t.z3N)(a):a;case t.q3G.SCRIPT:if((0,t.qzn)(a,"Script"))return(0,t.z3N)(a);throw new Error("unsafe value used in a script context");case t.q3G.URL:return(0,t.qzn)(a,"URL")?(0,t.z3N)(a):(0,t.mCW)(String(a));case t.q3G.RESOURCE_URL:if((0,t.qzn)(a,"ResourceURL"))return(0,t.z3N)(a);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(o," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(o){return(0,t.JVY)(o)}},{key:"bypassSecurityTrustStyle",value:function(o){return(0,t.L6k)(o)}},{key:"bypassSecurityTrustScript",value:function(o){return(0,t.eBb)(o)}},{key:"bypassSecurityTrustUrl",value:function(o){return(0,t.LAX)(o)}},{key:"bypassSecurityTrustResourceUrl",value:function(o){return(0,t.pB0)(o)}}]),e}(Jt);Mi.\u0275fac=function(r){return new(r||Mi)(t.LFG(ge.K0))},Mi.\u0275prov=t.Yz7({token:Mi,factory:function(r){return r?new r:function Jr(n){return new Mi(n.get(ge.K0))}(t.LFG(t.zs3))},providedIn:"root"});new t.GfV("14.3.0");var Ho=m(2963),bi=m(1002);function Rn(){Rn=function(){return n};var n={},r=Object.prototype,e=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(bt,Xe,Pe){return Object.defineProperty(bt,Xe,{value:Pe,enumerable:!0,configurable:!0,writable:!0}),bt[Xe]}try{l({},"")}catch(bt){l=function(Pe,ft,Nt){return Pe[ft]=Nt}}function u(bt,Xe,Pe,ft){var Tn,jn,zn,or,Nt=Xe&&Xe.prototype instanceof g?Xe:g,Gt=Object.create(Nt.prototype),It=new Ae(ft||[]);return Gt._invoke=(Tn=bt,jn=Pe,zn=It,or="suspendedStart",function(Mr,_r){if("executing"===or)throw new Error("Generator is already running");if("completed"===or){if("throw"===Mr)throw _r;return{value:void 0,done:!0}}for(zn.method=Mr,zn.arg=_r;;){var zr=zn.delegate;if(zr){var Ur=Ee(zr,zn);if(Ur){if(Ur===h)continue;return Ur}}if("next"===zn.method)zn.sent=zn._sent=zn.arg;else if("throw"===zn.method){if("suspendedStart"===or)throw or="completed",zn.arg;zn.dispatchException(zn.arg)}else"return"===zn.method&&zn.abrupt("return",zn.arg);or="executing";var Kr=d(Tn,jn,zn);if("normal"===Kr.type){if(or=zn.done?"completed":"suspendedYield",Kr.arg===h)continue;return{value:Kr.arg,done:zn.done}}"throw"===Kr.type&&(or="completed",zn.method="throw",zn.arg=Kr.arg)}}),Gt}function d(bt,Xe,Pe){try{return{type:"normal",arg:bt.call(Xe,Pe)}}catch(ft){return{type:"throw",arg:ft}}}n.wrap=u;var h={};function g(){}function C(){}function Z(){}var z={};l(z,o,function(){return this});var q=Object.getPrototypeOf,re=q&&q(q(ot([])));re&&re!==r&&e.call(re,o)&&(z=re);var ae=Z.prototype=g.prototype=Object.create(z);function Se(bt){["next","throw","return"].forEach(function(Xe){l(bt,Xe,function(Pe){return this._invoke(Xe,Pe)})})}function Ce(bt,Xe){function Pe(Nt,Gt,It,Tn){var jn=d(bt[Nt],bt,Gt);if("throw"!==jn.type){var zn=jn.arg,or=zn.value;return or&&"object"==(0,bi.Z)(or)&&e.call(or,"__await")?Xe.resolve(or.__await).then(function(Mr){Pe("next",Mr,It,Tn)},function(Mr){Pe("throw",Mr,It,Tn)}):Xe.resolve(or).then(function(Mr){zn.value=Mr,It(zn)},function(Mr){return Pe("throw",Mr,It,Tn)})}Tn(jn.arg)}var ft;this._invoke=function(Nt,Gt){function It(){return new Xe(function(Tn,jn){Pe(Nt,Gt,Tn,jn)})}return ft=ft?ft.then(It,It):It()}}function Ee(bt,Xe){var Pe=bt.iterator[Xe.method];if(void 0===Pe){if(Xe.delegate=null,"throw"===Xe.method){if(bt.iterator.return&&(Xe.method="return",Xe.arg=void 0,Ee(bt,Xe),"throw"===Xe.method))return h;Xe.method="throw",Xe.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var ft=d(Pe,bt.iterator,Xe.arg);if("throw"===ft.type)return Xe.method="throw",Xe.arg=ft.arg,Xe.delegate=null,h;var Nt=ft.arg;return Nt?Nt.done?(Xe[bt.resultName]=Nt.value,Xe.next=bt.nextLoc,"return"!==Xe.method&&(Xe.method="next",Xe.arg=void 0),Xe.delegate=null,h):Nt:(Xe.method="throw",Xe.arg=new TypeError("iterator result is not an object"),Xe.delegate=null,h)}function Ve(bt){var Xe={tryLoc:bt[0]};1 in bt&&(Xe.catchLoc=bt[1]),2 in bt&&(Xe.finallyLoc=bt[2],Xe.afterLoc=bt[3]),this.tryEntries.push(Xe)}function ut(bt){var Xe=bt.completion||{};Xe.type="normal",delete Xe.arg,bt.completion=Xe}function Ae(bt){this.tryEntries=[{tryLoc:"root"}],bt.forEach(Ve,this),this.reset(!0)}function ot(bt){if(bt){var Xe=bt[o];if(Xe)return Xe.call(bt);if("function"==typeof bt.next)return bt;if(!isNaN(bt.length)){var Pe=-1,ft=function Nt(){for(;++Pe=0;--Nt){var Gt=this.tryEntries[Nt],It=Gt.completion;if("root"===Gt.tryLoc)return ft("end");if(Gt.tryLoc<=this.prev){var Tn=e.call(Gt,"catchLoc"),jn=e.call(Gt,"finallyLoc");if(Tn&&jn){if(this.prev=0;--ft){var Nt=this.tryEntries[ft];if(Nt.tryLoc<=this.prev&&e.call(Nt,"finallyLoc")&&this.prev=0;--Pe){var ft=this.tryEntries[Pe];if(ft.finallyLoc===Xe)return this.complete(ft.completion,ft.afterLoc),ut(ft),h}},catch:function(Xe){for(var Pe=this.tryEntries.length-1;Pe>=0;--Pe){var ft=this.tryEntries[Pe];if(ft.tryLoc===Xe){var Nt=ft.completion;if("throw"===Nt.type){var Gt=Nt.arg;ut(ft)}return Gt}}throw new Error("illegal catch attempt")},delegateYield:function(Xe,Pe,ft){return this.delegate={iterator:ot(Xe),resultName:Pe,nextLoc:ft},"next"===this.method&&(this.arg=void 0),h}},n}var mi,n,go=m(4506),Bl=m(5647),Nn=m(7685),xn=m(7762),pn=m(4902);function Ji(n){if(":"!=n[0])return[null,n];var r=n.indexOf(":",1);if(-1===r)throw new Error('Unsupported format "'.concat(n,'" expecting ":namespace:name"'));return[n.slice(1,r),n.slice(r+1)]}function jo(n){return"ng-container"===Ji(n)[1]}function Qi(n){return"ng-content"===Ji(n)[1]}function ei(n){return null===n?null:Ji(n)[0]}function _i(n,r){return n?":".concat(n,":").concat(r):r}(n=mi||(mi={}))[n.RAW_TEXT=0]="RAW_TEXT",n[n.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",n[n.PARSABLE_DATA=2]="PARSABLE_DATA";var Do,Xi,ir=function(){function n(){var r=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.closedByChildren,o=e.implicitNamespacePrefix,a=e.contentType,s=void 0===a?mi.PARSABLE_DATA:a,l=e.closedByParent,u=void 0!==l&&l,d=e.isVoid,h=void 0!==d&&d,g=e.ignoreFirstLf,C=void 0!==g&&g,Z=e.preventNamespaceInheritance,z=void 0!==Z&&Z;(0,H.Z)(this,n),this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,i&&i.length>0&&i.forEach(function(q){return r.closedByChildren[q]=!0}),this.isVoid=h,this.closedByParent=u||h,this.implicitNamespacePrefix=o||null,this.contentType=s,this.ignoreFirstLf=C,this.preventNamespaceInheritance=z}return(0,B.Z)(n,[{key:"isClosedByChild",value:function(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}},{key:"getContentType",value:function(e){if("object"==typeof this.contentType){var i=void 0===e?void 0:this.contentType[e];return null!=i?i:this.contentType.default}return this.contentType}}]),n}();function wa(n){var r,e;return Xi||(Do=new ir,Xi={base:new ir({isVoid:!0}),meta:new ir({isVoid:!0}),area:new ir({isVoid:!0}),embed:new ir({isVoid:!0}),link:new ir({isVoid:!0}),img:new ir({isVoid:!0}),input:new ir({isVoid:!0}),param:new ir({isVoid:!0}),hr:new ir({isVoid:!0}),br:new ir({isVoid:!0}),source:new ir({isVoid:!0}),track:new ir({isVoid:!0}),wbr:new ir({isVoid:!0}),p:new ir({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new ir({closedByChildren:["tbody","tfoot"]}),tbody:new ir({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new ir({closedByChildren:["tbody"],closedByParent:!0}),tr:new ir({closedByChildren:["tr"],closedByParent:!0}),td:new ir({closedByChildren:["td","th"],closedByParent:!0}),th:new ir({closedByChildren:["td","th"],closedByParent:!0}),col:new ir({isVoid:!0}),svg:new ir({implicitNamespacePrefix:"svg"}),foreignObject:new ir({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new ir({implicitNamespacePrefix:"math"}),li:new ir({closedByChildren:["li"],closedByParent:!0}),dt:new ir({closedByChildren:["dt","dd"]}),dd:new ir({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new ir({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new ir({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new ir({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new ir({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new ir({closedByChildren:["optgroup"],closedByParent:!0}),option:new ir({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new ir({ignoreFirstLf:!0}),listing:new ir({ignoreFirstLf:!0}),style:new ir({contentType:mi.RAW_TEXT}),script:new ir({contentType:mi.RAW_TEXT}),title:new ir({contentType:{default:mi.ESCAPABLE_RAW_TEXT,svg:mi.PARSABLE_DATA}}),textarea:new ir({contentType:mi.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),null!==(e=null!==(r=Xi[n])&&void 0!==r?r:Xi[n.toLowerCase()])&&void 0!==e?e:Do}var ao,qa,Za=new RegExp("(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),oo=function(){function n(){(0,H.Z)(this,n),this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return(0,B.Z)(n,[{key:"unescapeAttribute",value:function(e){for(var i="",o=!1,a=0;a0&&void 0!==arguments[0]?arguments[0]:null;this.element=e}},{key:"getMatchingElementTemplate",value:function(){for(var e=this.element||"div",i=this.classNames.length>0?' class="'.concat(this.classNames.join(" "),'"'):"",o="",a=0;a"):"<".concat(e).concat(i).concat(o,">")}},{key:"getAttrs",value:function(){var e=[];return this.classNames.length>0&&e.push("class",this.classNames.join(" ")),e.concat(this.attrs)}},{key:"addAttribute",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.attrs.push(e,i&&i.toLowerCase()||"")}},{key:"addClassName",value:function(e){this.classNames.push(e.toLowerCase())}},{key:"toString",value:function(){var e=this.element||"";if(this.classNames&&this.classNames.forEach(function(s){return e+=".".concat(s)}),this.attrs)for(var i=0;i0&&!z.element&&0==z.classNames.length&&0==z.attrs.length&&(z.element="*"),Z.push(z)},a=new n,l=a,u=!1;for(Za.lastIndex=0;s=Za.exec(e);){if(s[1]){if(u)throw new Error("Nesting :not in a selector is not allowed");u=!0,l=new n,a.notSelectors.push(l)}var d=s[2];if(d){var h=s[3];"#"===h?l.addAttribute("id",d.slice(1)):"."===h?l.addClassName(d.slice(1)):l.setElement(d)}var g=s[4];if(g&&l.addAttribute(l.unescapeAttribute(g),s[6]),s[7]&&(u=!1,l=a),s[8]){if(u)throw new Error("Multiple selectors in :not are not supported");o(i,a),a=l=new n}}return o(i,a),i}}]),n}();!function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(ao||(ao={})),function(n){n[n.OnPush=0]="OnPush",n[n.Default=1]="Default"}(qa||(qa={}));var Hi,Yi,ka={name:"custom-elements"},vu={name:"no-errors-schema"};function Tf(n){var r=function Ec(n){var r=n.classNames&&n.classNames.length?[8].concat((0,pn.Z)(n.classNames)):[];return[n.element&&"*"!==n.element?n.element:""].concat((0,pn.Z)(n.attrs),(0,pn.Z)(r))}(n),e=n.notSelectors&&n.notSelectors.length?n.notSelectors.map(function(i){return function fl(n){var r=n.classNames&&n.classNames.length?[8].concat((0,pn.Z)(n.classNames)):[];return n.element?[5,n.element].concat((0,pn.Z)(n.attrs),(0,pn.Z)(r)):n.attrs.length?[3].concat((0,pn.Z)(n.attrs),(0,pn.Z)(r)):n.classNames&&n.classNames.length?[9].concat((0,pn.Z)(n.classNames)):[]}(i)}):[];return r.concat.apply(r,(0,pn.Z)(e))}function us(n){return n?oo.parse(n).map(Tf):[]}!function(n){n[n.NONE=0]="NONE",n[n.HTML=1]="HTML",n[n.STYLE=2]="STYLE",n[n.SCRIPT=3]="SCRIPT",n[n.URL=4]="URL",n[n.RESOURCE_URL=5]="RESOURCE_URL"}(Hi||(Hi={})),function(n){n[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Ignore=2]="Ignore"}(Yi||(Yi={}));var so=/-+([a-z0-9])/g;function vo(n,r,e){var i=n.indexOf(r);return-1==i?e:[n.slice(0,i).trim(),n.slice(i+1).trim()]}function Ba(n){throw new Error("Internal Error: ".concat(n))}function po(n){for(var r=[],e=0;e=55296&&i<=56319&&n.length>e+1){var o=n.charCodeAt(e+1);o>=56320&&o<=57343&&(e++,i=(i-55296<<10)+o-56320+65536)}i<=127?r.push(i):i<=2047?r.push(i>>6&31|192,63&i|128):i<=65535?r.push(i>>12|224,i>>6&63|128,63&i|128):i<=2097151&&r.push(i>>18&7|240,i>>12&63|128,i>>6&63|128,63&i|128)}return r}function Sf(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Sf).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return"".concat(n.overriddenName);if(n.name)return"".concat(n.name);if(!n.toString)return"object";var r=n.toString();if(null==r)return""+r;var e=r.indexOf("\n");return-1===e?r:r.substring(0,e)}var Ys=(0,B.Z)(function n(r){(0,H.Z)(this,n),this.full=r;var e=r.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}),Ku=function(){return"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self}();var ds=function(){function n(r){(0,H.Z)(this,n),this.digits=r}return(0,B.Z)(n,[{key:"clone",value:function(){return new n(this.digits.slice())}},{key:"add",value:function(e){var i=this.clone();return i.addToSelf(e),i}},{key:"addToSelf",value:function(e){for(var i=Math.max(this.digits.length,e.digits.length),o=0,a=0;a=10?(this.digits[a]=s-10,o=1):(this.digits[a]=s,o=0)}o>0&&(this.digits[i]=1)}},{key:"toString",value:function(){for(var e="",i=this.digits.length-1;i>=0;i--)e+=this.digits[i];return e}}],[{key:"zero",value:function(){return new n([0])}},{key:"one",value:function(){return new n([1])}}]),n}(),Tr=function(){function n(r){(0,H.Z)(this,n),this.powerOfTwos=[r]}return(0,B.Z)(n,[{key:"getValue",value:function(){return this.powerOfTwos[0]}},{key:"multiplyBy",value:function(e){var i=ds.zero();return this.multiplyByAndAddTo(e,i),i}},{key:"multiplyByAndAddTo",value:function(e,i){for(var o=0;0!==e;e>>>=1,o++)if(1&e){var a=this.getMultipliedByPowerOfTwo(o);i.addToSelf(a)}}},{key:"getMultipliedByPowerOfTwo",value:function(e){for(var i=this.powerOfTwos.length;i<=e;i++){var o=this.powerOfTwos[i-1];this.powerOfTwos[i]=o.add(o)}return this.powerOfTwos[e]}}]),n}(),xs=function(){function n(r){(0,H.Z)(this,n),this.base=r,this.exponents=[new Tr(ds.one())]}return(0,B.Z)(n,[{key:"toThePowerOf",value:function(e){for(var i=this.exponents.length;i<=e;i++){var o=this.exponents[i-1].multiplyBy(this.base);this.exponents[i]=new Tr(o)}return this.exponents[e]}}]),n}();function rh(n){return function we(n){var r=po(n),e=function Xo(n,r){for(var e=n.length+3>>>2,i=[],o=0;o>5]|=128<<24-i%32,e[15+(i+64>>9<<4)]=i;for(var h=0;h>>4).toString(16)+(15&i).toString(16)}return r.toLowerCase()}(function hl(n){return n.reduce(function(r,e){return r.concat(function fs(n){for(var r=[],e=0;e<4;e++)r.push(n>>>8*(3-e)&255);return r}(e))},[])}([a,s,l,u,d]))}(function Hl(n){return n.map(function(r){return r.visit(qu,null)})}(n.nodes).join("")+"[".concat(n.meaning,"]"))}function ih(n){return n.id||Ef(n)}function Ef(n){var r=new An;return Me(n.nodes.map(function(i){return i.visit(r,null)}).join(""),n.meaning)}var Ds=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"visitText",value:function(e,i){return e.value}},{key:"visitContainer",value:function(e,i){var o=this;return"[".concat(e.children.map(function(a){return a.visit(o)}).join(", "),"]")}},{key:"visitIcu",value:function(e,i){var o=this,a=Object.keys(e.cases).map(function(s){return"".concat(s," {").concat(e.cases[s].visit(o),"}")});return"{".concat(e.expression,", ").concat(e.type,", ").concat(a.join(", "),"}")}},{key:"visitTagPlaceholder",value:function(e,i){var o=this;return e.isVoid?''):'').concat(e.children.map(function(a){return a.visit(o)}).join(", "),'')}},{key:"visitPlaceholder",value:function(e,i){return e.value?'').concat(e.value,""):'')}},{key:"visitIcuPlaceholder",value:function(e,i){return'').concat(e.value.visit(this),"")}}]),n}(),qu=new Ds;var Ht,An=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"visitIcu",value:function(o,a){var s=this,l=Object.keys(o.cases).map(function(u){return"".concat(u," {").concat(o.cases[u].visit(s),"}")});return"{".concat(o.type,", ").concat(l.join(", "),"}")}}]),e}(Ds);function Te(n,r,e,i){return n<20?[r&e|~r&i,1518500249]:n<40?[r^e^i,1859775393]:n<60?[r&e|r&i|e&i,2400959708]:[r^e^i,3395469782]}function se(n){var r=po(n),e=Oe(r,0),i=Oe(r,102072);return 0==e&&(0==i||1==i)&&(e^=319790063,i^=-1801410264),[e,i]}function Me(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=se(n);if(r){var i=se(r);e=pl(jl(e,1),i)}var o=e[0],a=e[1];return $m(2147483647&o,a)}function Oe(n,r){var o,e=2654435769,i=2654435769,a=n.length;for(o=0;o+12<=a;o+=12){var s=mt(e=On(e,Ks(n,o,Ht.Little)),i=On(i,Ks(n,o+4,Ht.Little)),r=On(r,Ks(n,o+8,Ht.Little)));e=s[0],i=s[1],r=s[2]}return e=On(e,Ks(n,o,Ht.Little)),i=On(i,Ks(n,o+4,Ht.Little)),r=On(r,a),mt(e,i,r=On(r,Ks(n,o+8,Ht.Little)<<8))[2]}function mt(n,r,e){return n=lo(n,r),n=lo(n,e),n^=e>>>13,r=lo(r,e),r=lo(r,n),r^=n<<8,e=lo(e,n),e=lo(e,r),e^=r>>>13,n=lo(n,r),n=lo(n,e),n^=e>>>12,r=lo(r,e),r=lo(r,n),r^=n<<16,e=lo(e,n),e=lo(e,r),e^=r>>>5,n=lo(n,r),n=lo(n,e),n^=e>>>3,r=lo(r,e),r=lo(r,n),r^=n<<10,e=lo(e,n),e=lo(e,r),[n,r,e^=r>>>15]}function On(n,r){return sr(n,r)[1]}function sr(n,r){var e=(65535&n)+(65535&r),i=(n>>>16)+(r>>>16)+(e>>>16);return[i>>>16,i<<16|65535&e]}function pl(n,r){var e=n[0],i=n[1],o=r[0],s=sr(i,r[1]),l=s[0],u=s[1];return[On(On(e,o),l),u]}function lo(n,r){var e=(65535&n)-(65535&r);return(n>>16)-(r>>16)+(e>>16)<<16|65535&e}function yd(n,r){return n<>>32-r}function jl(n,r){var e=n[0],i=n[1];return[e<>>32-r,i<>>32-r]}function Ta(n,r){return r>=n.length?0:n[r]}function Ks(n,r,e){var i=0;if(e===Ht.Big)for(var o=0;o<4;o++)i+=Ta(n,r+o)<<24-8*o;else for(var a=0;a<4;a++)i+=Ta(n,r+a)<<8*a;return i}!function(n){n[n.Little=0]="Little",n[n.Big=1]="Big"}(Ht||(Ht={}));var bd,oh=new xs(256);function $m(n,r){var e=oh.toThePowerOf(0).multiplyBy(r);return oh.toThePowerOf(4).multiplyByAndAddTo(n,e),e.toString()}!function(n){n[n.None=0]="None",n[n.Const=1]="Const"}(bd||(bd={}));var ps,Ju=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bd.None;(0,H.Z)(this,n),this.modifiers=r}return(0,B.Z)(n,[{key:"hasModifier",value:function(e){return 0!=(this.modifiers&e)}}]),n}();!function(n){n[n.Dynamic=0]="Dynamic",n[n.Bool=1]="Bool",n[n.String=2]="String",n[n.Int=3]="Int",n[n.Number=4]="Number",n[n.Function=5]="Function",n[n.Inferred=6]="Inferred",n[n.None=7]="None"}(ps||(ps={}));var Ge,it,ml=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a;return(0,H.Z)(this,e),(a=r.call(this,o)).name=i,a}return(0,B.Z)(e,[{key:"visitType",value:function(o,a){return o.visitBuiltinType(this,a)}}]),e}(Ju),hs=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,H.Z)(this,e),(a=r.call(this,o)).value=i,a.typeParams=s,a}return(0,B.Z)(e,[{key:"visitType",value:function(o,a){return o.visitExpressionType(this,a)}}]),e}(Ju),qs=new ml(ps.Dynamic),ia=new ml(ps.Inferred),ah=new ml(ps.Bool),Ue=(new ml(ps.Int),new ml(ps.Number)),_e=new ml(ps.String),ke=(new ml(ps.Function),new ml(ps.None));function Wt(n,r){return null==n||null==r?n==r:n.isEquivalent(r)}function Cn(n,r,e){var i=n.length;if(i!==r.length)return!1;for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2?arguments[2]:void 0;return new Si(this,e,i,null,o)}},{key:"equals",value:function(e,i){return new yo(it.Equals,this,e,null,i)}},{key:"notEquals",value:function(e,i){return new yo(it.NotEquals,this,e,null,i)}},{key:"identical",value:function(e,i){return new yo(it.Identical,this,e,null,i)}},{key:"notIdentical",value:function(e,i){return new yo(it.NotIdentical,this,e,null,i)}},{key:"minus",value:function(e,i){return new yo(it.Minus,this,e,null,i)}},{key:"plus",value:function(e,i){return new yo(it.Plus,this,e,null,i)}},{key:"divide",value:function(e,i){return new yo(it.Divide,this,e,null,i)}},{key:"multiply",value:function(e,i){return new yo(it.Multiply,this,e,null,i)}},{key:"modulo",value:function(e,i){return new yo(it.Modulo,this,e,null,i)}},{key:"and",value:function(e,i){return new yo(it.And,this,e,null,i)}},{key:"bitwiseAnd",value:function(e,i){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return new yo(it.BitwiseAnd,this,e,null,i,o)}},{key:"or",value:function(e,i){return new yo(it.Or,this,e,null,i)}},{key:"lower",value:function(e,i){return new yo(it.Lower,this,e,null,i)}},{key:"lowerEquals",value:function(e,i){return new yo(it.LowerEquals,this,e,null,i)}},{key:"bigger",value:function(e,i){return new yo(it.Bigger,this,e,null,i)}},{key:"biggerEquals",value:function(e,i){return new yo(it.BiggerEquals,this,e,null,i)}},{key:"isBlank",value:function(e){return this.equals(sh,e)}},{key:"nullishCoalesce",value:function(e,i){return new yo(it.NullishCoalesce,this,e,null,i)}},{key:"toStmt",value:function(){return new Of(this,null)}}]),n}(),ms=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,o,a)).name=i,s}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.name===o.name}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitReadVarExpr(this,a)}},{key:"set",value:function(o){return new Ac(this.name,o,null,this.sourceSpan)}}]),e}(Pr),_l=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,o,a)).expr=i,s}return(0,B.Z)(e,[{key:"visitExpression",value:function(o,a){return o.visitTypeofExpr(this,a)}},{key:"isEquivalent",value:function(o){return o instanceof e&&o.expr.isEquivalent(this.expr)}},{key:"isConstant",value:function(){return this.expr.isConstant()}}]),e}(Pr),Ir=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,o,a)).node=i,s}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.node===o.node}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitWrappedNodeExpr(this,a)}}]),e}(Pr),Ac=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,a||o.type,s)).name=i,l.value=o,l}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.name===o.name&&this.value.isEquivalent(o.value)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitWriteVarExpr(this,a)}},{key:"toDeclStmt",value:function(o,a){return new Af(this.name,this.value,o,a,this.sourceSpan)}},{key:"toConstDecl",value:function(){return this.toDeclStmt(ia,Os.Final)}}]),e}(Pr),xf=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,s||a.type,l)).receiver=i,u.index=o,u.value=a,u}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.receiver.isEquivalent(o.receiver)&&this.index.isEquivalent(o.index)&&this.value.isEquivalent(o.value)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitWriteKeyExpr(this,a)}}]),e}(Pr),e_=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,s||a.type,l)).receiver=i,u.name=o,u.value=a,u}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.receiver.isEquivalent(o.receiver)&&this.name===o.name&&this.value.isEquivalent(o.value)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitWritePropExpr(this,a)}}]),e}(Pr),Df=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l,u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,H.Z)(this,e),(l=r.call(this,a,s)).fn=i,l.args=o,l.pure=u,l}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.fn.isEquivalent(o.fn)&&gr(this.args,o.args)&&this.pure===o.pure}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitInvokeFunctionExpr(this,a)}}]),e}(Pr),lC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,a,s)).tag=i,l.template=o,l}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.tag.isEquivalent(o.tag)&&Cn(this.template.elements,o.template.elements,function(a,s){return a.text===s.text})&&gr(this.template.expressions,o.template.expressions)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitTaggedTemplateExpr(this,a)}}]),e}(Pr),ie=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,a,s)).classExpr=i,l.args=o,l}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.classExpr.isEquivalent(o.classExpr)&&gr(this.args,o.args)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitInstantiateExpr(this,a)}}]),e}(Pr),ue=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,o,a)).value=i,s}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.value===o.value}},{key:"isConstant",value:function(){return!0}},{key:"visitExpression",value:function(o,a){return o.visitLiteralExpr(this,a)}}]),e}(Pr),he=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.elements=r,this.expressions=e}),Fe=(0,B.Z)(function n(r,e,i){var o;(0,H.Z)(this,n),this.text=r,this.sourceSpan=e,this.rawText=null!==(o=null!=i?i:null==e?void 0:e.toString())&&void 0!==o?o:da(Qr(r))}),Qe=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.text=r,this.sourceSpan=e}),Pt=(0,B.Z)(function n(r,e,i){(0,H.Z)(this,n),this.text=r,this.sourceSpan=e,this.associatedMessage=i}),kr=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,_e,l)).metaBlock=i,u.messageParts=o,u.placeHolderNames=a,u.expressions=s,u}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return!1}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitLocalizedString(this,a)}},{key:"serializeI18nHead",value:function(){var o=this.metaBlock.description||"";return this.metaBlock.meaning&&(o="".concat(this.metaBlock.meaning).concat("|").concat(o)),this.metaBlock.customId&&(o="".concat(o).concat("@@").concat(this.metaBlock.customId)),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(function(a){o="".concat(o).concat("\u241f").concat(a)}),As(o,this.messageParts[0].text,this.getMessagePartSourceSpan(0))}},{key:"getMessagePartSourceSpan",value:function(o){var a,s;return null!==(s=null===(a=this.messageParts[o])||void 0===a?void 0:a.sourceSpan)&&void 0!==s?s:this.sourceSpan}},{key:"getPlaceholderSourceSpan",value:function(o){var a,s,l,u;return null!==(u=null!==(s=null===(a=this.placeHolderNames[o])||void 0===a?void 0:a.sourceSpan)&&void 0!==s?s:null===(l=this.expressions[o])||void 0===l?void 0:l.sourceSpan)&&void 0!==u?u:this.sourceSpan}},{key:"serializeI18nTemplatePart",value:function(o){var a,s=this.placeHolderNames[o-1],l=this.messageParts[o],u=s.text;return 0===(null===(a=s.associatedMessage)||void 0===a?void 0:a.legacyIds.length)&&(u+="".concat("@@").concat(Me(s.associatedMessage.messageString,s.associatedMessage.meaning))),As(u,l.text,this.getMessagePartSourceSpan(o))}}]),e}(Pr),Qr=function(r){return r.replace(/\\/g,"\\\\")},si=function(r){return r.replace(/^:/,"\\:")},Ao=function(r){return r.replace(/:/g,"\\:")},da=function(r){return r.replace(/`/g,"\\`").replace(/\${/g,"$\\{")};function As(n,r,e){return""===n?{cooked:r,raw:da(si(Qr(r))),range:e}:{cooked:":".concat(n,":").concat(r),raw:da(":".concat(Ao(Qr(n)),":").concat(Qr(r))),range:e}}var Os,oa=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=arguments.length>3?arguments[3]:void 0;return(0,H.Z)(this,e),(a=r.call(this,o,l)).value=i,a.typeParams=s,a}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.value.name===o.value.name&&this.value.moduleName===o.value.moduleName&&this.value.runtime===o.value.runtime}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitExternalExpr(this,a)}}]),e}(Pr),Si=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=arguments.length>3?arguments[3]:void 0,u=arguments.length>4?arguments[4]:void 0;return(0,H.Z)(this,e),(a=r.call(this,l||o.type,u)).condition=i,a.falseCase=s,a.trueCase=o,a}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.condition.isEquivalent(o.condition)&&this.trueCase.isEquivalent(o.trueCase)&&Wt(this.falseCase,o.falseCase)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitConditionalExpr(this,a)}}]),e}(Pr),Qu=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a;return(0,H.Z)(this,e),(a=r.call(this,ah,o)).condition=i,a}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.condition.isEquivalent(o.condition)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitNotExpr(this,a)}}]),e}(Pr),Go=function(){function n(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,H.Z)(this,n),this.name=r,this.type=e}return(0,B.Z)(n,[{key:"isEquivalent",value:function(e){return this.name===e.name}}]),n}(),Xu=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,a,s)).params=i,u.statements=o,u.name=l,u}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&gr(this.params,o.params)&&gr(this.statements,o.statements)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitFunctionExpr(this,a)}},{key:"toDeclStmt",value:function(o,a){return new oM(o,this.params,this.statements,this.type,a,this.sourceSpan)}}]),e}(Pr),$u=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l,u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return(0,H.Z)(this,e),(l=r.call(this,a||Ue,s)).operator=i,l.expr=o,l.parens=u,l}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.operator===o.operator&&this.expr.isEquivalent(o.expr)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitUnaryOperatorExpr(this,a)}}]),e}(Pr),yo=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u,d=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return(0,H.Z)(this,e),(u=r.call(this,s||o.type,l)).operator=i,u.rhs=a,u.parens=d,u.lhs=o,u}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.operator===o.operator&&this.lhs.isEquivalent(o.lhs)&&this.rhs.isEquivalent(o.rhs)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitBinaryOperatorExpr(this,a)}}]),e}(Pr),uC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,a,s)).receiver=i,l.name=o,l}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.receiver.isEquivalent(o.receiver)&&this.name===o.name}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitReadPropExpr(this,a)}},{key:"set",value:function(o){return new e_(this.receiver,this.name,o,null,this.sourceSpan)}}]),e}(Pr),nM=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,a,s)).receiver=i,l.index=o,l}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.receiver.isEquivalent(o.receiver)&&this.index.isEquivalent(o.index)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitReadKeyExpr(this,a)}},{key:"set",value:function(o){return new xf(this.receiver,this.index,o,null,this.sourceSpan)}}]),e}(Pr),cC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,o,a)).entries=i,s}return(0,B.Z)(e,[{key:"isConstant",value:function(){return this.entries.every(function(o){return o.isConstant()})}},{key:"isEquivalent",value:function(o){return o instanceof e&&gr(this.entries,o.entries)}},{key:"visitExpression",value:function(o,a){return o.visitLiteralArrayExpr(this,a)}}]),e}(Pr),yu=function(){function n(r,e,i){(0,H.Z)(this,n),this.key=r,this.value=e,this.quoted=i}return(0,B.Z)(n,[{key:"isEquivalent",value:function(e){return this.key===e.key&&this.value.isEquivalent(e.value)}}]),n}(),rM=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,o,a)).entries=i,s.valueType=null,o&&(s.valueType=o.valueType),s}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&gr(this.entries,o.entries)}},{key:"isConstant",value:function(){return this.entries.every(function(o){return o.value.isConstant()})}},{key:"visitExpression",value:function(o,a){return o.visitLiteralMapExpr(this,a)}}]),e}(Pr),t_=new ue(null,null,null),sh=new ue(null,ia,null);!function(n){n[n.None=0]="None",n[n.Final=1]="Final",n[n.Private=2]="Private",n[n.Exported=4]="Exported",n[n.Static=8]="Static"}(Os||(Os={}));var n_=function(){function n(r,e,i){(0,H.Z)(this,n),this.text=r,this.multiline=e,this.trailingNewline=i}return(0,B.Z)(n,[{key:"toString",value:function(){return this.multiline?" ".concat(this.text," "):this.text}}]),n}(),iM=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,H.Z)(this,e),(o=r.call(this,"",!0,!0)).tags=i,o}return(0,B.Z)(e,[{key:"toString",value:function(){return function ho(n){if(0===n.length)return"";if(1===n.length&&n[0].tagName&&!n[0].text)return"*".concat(lM(n[0])," ");var i,r="*\n",e=(0,xn.Z)(n);try{for(e.s();!(i=e.n()).done;){var o=i.value;r+=" *",r+=lM(o).replace(/\n/g,"\n * "),r+="\n"}}catch(a){e.e(a)}finally{e.f()}return r+" "}(this.tags)}}]),e}(n_),lh=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Os.None,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0;(0,H.Z)(this,n),this.modifiers=r,this.sourceSpan=e,this.leadingComments=i}return(0,B.Z)(n,[{key:"hasModifier",value:function(e){return 0!=(this.modifiers&e)}},{key:"addLeadingComment",value:function(e){var i;this.leadingComments=null!==(i=this.leadingComments)&&void 0!==i?i:[],this.leadingComments.push(e)}}]),n}(),Af=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u){var d;return(0,H.Z)(this,e),(d=r.call(this,s,l,u)).name=i,d.value=o,d.type=a||o&&o.type||null,d}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.name===o.name&&(this.value?!!o.value&&this.value.isEquivalent(o.value):!o.value)}},{key:"visitStatement",value:function(o,a){return o.visitDeclareVarStmt(this,a)}}]),e}(lh),oM=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,H.Z)(this,e),(h=r.call(this,l,u,d)).name=i,h.params=o,h.statements=a,h.type=s||null,h}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&gr(this.params,o.params)&&gr(this.statements,o.statements)}},{key:"visitStatement",value:function(o,a){return o.visitDeclareFunctionStmt(this,a)}}]),e}(lh),Of=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,Os.None,o,a)).expr=i,s}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.expr.isEquivalent(o.expr)}},{key:"visitStatement",value:function(o,a){return o.visitExpressionStmt(this,a)}}]),e}(lh),_s=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2?arguments[2]:void 0;return(0,H.Z)(this,e),(o=r.call(this,Os.None,a,s)).value=i,o}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.value.isEquivalent(o.value)}},{key:"visitStatement",value:function(o,a){return o.visitReturnStmt(this,a)}}]),e}(lh),Dv=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],l=arguments.length>3?arguments[3]:void 0,u=arguments.length>4?arguments[4]:void 0;return(0,H.Z)(this,e),(a=r.call(this,Os.None,l,u)).condition=i,a.trueCase=o,a.falseCase=s,a}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.condition.isEquivalent(o.condition)&&gr(this.trueCase,o.trueCase)&&gr(this.falseCase,o.falseCase)}},{key:"visitStatement",value:function(o,a){return o.visitIfStmt(this,a)}}]),e}(lh);function aM(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new iM(n)}function ii(n,r,e){return new ms(n,r,e)}function Jn(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=arguments.length>2?arguments[2]:void 0;return new oa(n,null,r,e)}function Is(n,r,e){return new hs(n,r,e)}function r_(n){return new _l(n)}function di(n,r,e){return new cC(n,r,e)}function Qs(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new rM(n.map(function(e){return new yu(e.key,e.value,e.quoted)}),r,null)}function uh(n,r){return new Qu(n,r)}function aa(n,r,e,i,o){return new Xu(n,r,e,i,o)}function wd(n,r,e,i,o){return new Dv(n,r,e,i,o)}function ch(n,r,e,i){return new lC(n,r,e,i)}function rn(n,r,e){return new ue(n,r,e)}function dh(n,r,e,i,o){return new kr(n,r,e,i,o)}function Oc(n){return n instanceof ue&&null===n.value}function lM(n){var r="";if(n.tagName&&(r+=" @".concat(n.tagName)),n.text){if(n.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');r+=" "+n.text.replace(/@/g,"\\@")}return r}var Ov=ii(""),PP={},RP=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,H.Z)(this,e),(o=r.call(this,i.type)).resolved=i,o.original=i,o}return(0,B.Z)(e,[{key:"visitExpression",value:function(o,a){return a===PP?this.original.visitExpression(o,a):this.resolved.visitExpression(o,a)}},{key:"isEquivalent",value:function(o){return o instanceof e&&this.resolved.isEquivalent(o.resolved)}},{key:"isConstant",value:function(){return!0}},{key:"fixup",value:function(o){this.resolved=o,this.shared=!0}}]),e}(Pr),LP=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,H.Z)(this,n),this.isClosureCompilerEnabled=r,this.statements=[],this.literals=new Map,this.literalFactories=new Map,this.nextNameIndex=0}return(0,B.Z)(n,[{key:"getConstLiteral",value:function(e,i){if(e instanceof ue&&!Ma(e)||e instanceof RP)return e;var o=this.keyOf(e),a=this.literals.get(o),s=!1;if(a||(a=new RP(e),this.literals.set(o,a),s=!0),!s&&!a.shared||s&&i){var u,d,l=this.freshName();this.isClosureCompilerEnabled&&Ma(e)?(u=ii(l).set(new Xu([],[new _s(e)])),d=ii(l).callFn([])):(u=ii(l).set(e),d=ii(l)),this.statements.push(u.toDeclStmt(ia,Os.Final)),a.fixup(d)}return a}},{key:"getLiteralFactory",value:function(e){if(e instanceof cC){var i=e.entries.map(function(l){return l.isConstant()?l:Ov}),o=this.keyOf(di(i));return this._getLiteralFactory(o,e.entries,function(l){return di(l)})}var a=Qs(e.entries.map(function(l){return{key:l.key,value:l.value.isConstant()?l.value:Ov,quoted:l.quoted}})),s=this.keyOf(a);return this._getLiteralFactory(s,e.entries.map(function(l){return l.value}),function(l){return Qs(l.map(function(u,d){return{key:e.entries[d].key,value:u,quoted:e.entries[d].quoted}}))})}},{key:"_getLiteralFactory",value:function(e,i,o){var a=this,s=this.literalFactories.get(e),l=i.filter(function(C){return!C.isConstant()});if(!s){var u=i.map(function(C,Z){return C.isConstant()?a.getConstLiteral(C,!0):ii("a".concat(Z))}),h=aa(u.filter(ZP).map(function(C){return new Go(C.name,qs)}),[new _s(o(u))],ia),g=this.freshName();this.statements.push(ii(g).set(h).toDeclStmt(ia,Os.Final)),s=ii(g),this.literalFactories.set(e,s)}return{literalFactory:s,literalFactoryArguments:l}}},{key:"uniqueName",value:function(e){return"".concat(e).concat(this.nextNameIndex++)}},{key:"freshName",value:function(){return this.uniqueName("_c")}},{key:"keyOf",value:function(e){return e.visitExpression(new fh,PP)}}]),n}(),fh=function(){function n(){(0,H.Z)(this,n),this.visitWrappedNodeExpr=Fa,this.visitWriteVarExpr=Fa,this.visitWriteKeyExpr=Fa,this.visitWritePropExpr=Fa,this.visitInvokeFunctionExpr=Fa,this.visitTaggedTemplateExpr=Fa,this.visitInstantiateExpr=Fa,this.visitConditionalExpr=Fa,this.visitNotExpr=Fa,this.visitAssertNotNullExpr=Fa,this.visitCastExpr=Fa,this.visitFunctionExpr=Fa,this.visitUnaryOperatorExpr=Fa,this.visitBinaryOperatorExpr=Fa,this.visitReadPropExpr=Fa,this.visitReadKeyExpr=Fa,this.visitCommaExpr=Fa,this.visitLocalizedString=Fa}return(0,B.Z)(n,[{key:"visitLiteralExpr",value:function(e){return"".concat("string"==typeof e.value?'"'+e.value+'"':e.value)}},{key:"visitLiteralArrayExpr",value:function(e,i){var o=this;return"[".concat(e.entries.map(function(a){return a.visitExpression(o,i)}).join(","),"]")}},{key:"visitLiteralMapExpr",value:function(e,i){var o=this;return"{".concat(e.entries.map(function(u){return"".concat(function(u){var d=u.quoted?'"':"";return"".concat(d).concat(u.key).concat(d)}(u),":").concat(u.value.visitExpression(o,i))}).join(","))}},{key:"visitExternalExpr",value:function(e){return e.value.moduleName?"EX:".concat(e.value.moduleName,":").concat(e.value.name):"EX:".concat(e.value.runtime.name)}},{key:"visitReadVarExpr",value:function(e){return"VAR:".concat(e.name)}},{key:"visitTypeofExpr",value:function(e,i){return"TYPEOF:".concat(e.expr.visitExpression(this,i))}}]),n}();function Fa(n){throw new Error("Invalid state: Visitor ".concat(this.constructor.name," doesn't handle ").concat(n.constructor.name))}function ZP(n){return n instanceof ms}function Ma(n){return n instanceof ue&&"string"==typeof n.value&&n.value.length>=50}var Qt="@angular/core",Le=(0,B.Z)(function n(){(0,H.Z)(this,n)});Le.NEW_METHOD="factory",Le.TRANSFORM_METHOD="transform",Le.PATCH_DEPS="patchedDeps",Le.core={name:null,moduleName:Qt},Le.namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:Qt},Le.namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:Qt},Le.namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:Qt},Le.element={name:"\u0275\u0275element",moduleName:Qt},Le.elementStart={name:"\u0275\u0275elementStart",moduleName:Qt},Le.elementEnd={name:"\u0275\u0275elementEnd",moduleName:Qt},Le.advance={name:"\u0275\u0275advance",moduleName:Qt},Le.syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:Qt},Le.syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:Qt},Le.attribute={name:"\u0275\u0275attribute",moduleName:Qt},Le.attributeInterpolate1={name:"\u0275\u0275attributeInterpolate1",moduleName:Qt},Le.attributeInterpolate2={name:"\u0275\u0275attributeInterpolate2",moduleName:Qt},Le.attributeInterpolate3={name:"\u0275\u0275attributeInterpolate3",moduleName:Qt},Le.attributeInterpolate4={name:"\u0275\u0275attributeInterpolate4",moduleName:Qt},Le.attributeInterpolate5={name:"\u0275\u0275attributeInterpolate5",moduleName:Qt},Le.attributeInterpolate6={name:"\u0275\u0275attributeInterpolate6",moduleName:Qt},Le.attributeInterpolate7={name:"\u0275\u0275attributeInterpolate7",moduleName:Qt},Le.attributeInterpolate8={name:"\u0275\u0275attributeInterpolate8",moduleName:Qt},Le.attributeInterpolateV={name:"\u0275\u0275attributeInterpolateV",moduleName:Qt},Le.classProp={name:"\u0275\u0275classProp",moduleName:Qt},Le.elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:Qt},Le.elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:Qt},Le.elementContainer={name:"\u0275\u0275elementContainer",moduleName:Qt},Le.styleMap={name:"\u0275\u0275styleMap",moduleName:Qt},Le.styleMapInterpolate1={name:"\u0275\u0275styleMapInterpolate1",moduleName:Qt},Le.styleMapInterpolate2={name:"\u0275\u0275styleMapInterpolate2",moduleName:Qt},Le.styleMapInterpolate3={name:"\u0275\u0275styleMapInterpolate3",moduleName:Qt},Le.styleMapInterpolate4={name:"\u0275\u0275styleMapInterpolate4",moduleName:Qt},Le.styleMapInterpolate5={name:"\u0275\u0275styleMapInterpolate5",moduleName:Qt},Le.styleMapInterpolate6={name:"\u0275\u0275styleMapInterpolate6",moduleName:Qt},Le.styleMapInterpolate7={name:"\u0275\u0275styleMapInterpolate7",moduleName:Qt},Le.styleMapInterpolate8={name:"\u0275\u0275styleMapInterpolate8",moduleName:Qt},Le.styleMapInterpolateV={name:"\u0275\u0275styleMapInterpolateV",moduleName:Qt},Le.classMap={name:"\u0275\u0275classMap",moduleName:Qt},Le.classMapInterpolate1={name:"\u0275\u0275classMapInterpolate1",moduleName:Qt},Le.classMapInterpolate2={name:"\u0275\u0275classMapInterpolate2",moduleName:Qt},Le.classMapInterpolate3={name:"\u0275\u0275classMapInterpolate3",moduleName:Qt},Le.classMapInterpolate4={name:"\u0275\u0275classMapInterpolate4",moduleName:Qt},Le.classMapInterpolate5={name:"\u0275\u0275classMapInterpolate5",moduleName:Qt},Le.classMapInterpolate6={name:"\u0275\u0275classMapInterpolate6",moduleName:Qt},Le.classMapInterpolate7={name:"\u0275\u0275classMapInterpolate7",moduleName:Qt},Le.classMapInterpolate8={name:"\u0275\u0275classMapInterpolate8",moduleName:Qt},Le.classMapInterpolateV={name:"\u0275\u0275classMapInterpolateV",moduleName:Qt},Le.styleProp={name:"\u0275\u0275styleProp",moduleName:Qt},Le.stylePropInterpolate1={name:"\u0275\u0275stylePropInterpolate1",moduleName:Qt},Le.stylePropInterpolate2={name:"\u0275\u0275stylePropInterpolate2",moduleName:Qt},Le.stylePropInterpolate3={name:"\u0275\u0275stylePropInterpolate3",moduleName:Qt},Le.stylePropInterpolate4={name:"\u0275\u0275stylePropInterpolate4",moduleName:Qt},Le.stylePropInterpolate5={name:"\u0275\u0275stylePropInterpolate5",moduleName:Qt},Le.stylePropInterpolate6={name:"\u0275\u0275stylePropInterpolate6",moduleName:Qt},Le.stylePropInterpolate7={name:"\u0275\u0275stylePropInterpolate7",moduleName:Qt},Le.stylePropInterpolate8={name:"\u0275\u0275stylePropInterpolate8",moduleName:Qt},Le.stylePropInterpolateV={name:"\u0275\u0275stylePropInterpolateV",moduleName:Qt},Le.nextContext={name:"\u0275\u0275nextContext",moduleName:Qt},Le.resetView={name:"\u0275\u0275resetView",moduleName:Qt},Le.templateCreate={name:"\u0275\u0275template",moduleName:Qt},Le.text={name:"\u0275\u0275text",moduleName:Qt},Le.enableBindings={name:"\u0275\u0275enableBindings",moduleName:Qt},Le.disableBindings={name:"\u0275\u0275disableBindings",moduleName:Qt},Le.getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:Qt},Le.textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:Qt},Le.textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:Qt},Le.textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:Qt},Le.textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:Qt},Le.textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:Qt},Le.textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:Qt},Le.textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:Qt},Le.textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:Qt},Le.textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:Qt},Le.textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:Qt},Le.restoreView={name:"\u0275\u0275restoreView",moduleName:Qt},Le.pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:Qt},Le.pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:Qt},Le.pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:Qt},Le.pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:Qt},Le.pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:Qt},Le.pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:Qt},Le.pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:Qt},Le.pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:Qt},Le.pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:Qt},Le.pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:Qt},Le.pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:Qt},Le.pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:Qt},Le.pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:Qt},Le.pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:Qt},Le.pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:Qt},Le.hostProperty={name:"\u0275\u0275hostProperty",moduleName:Qt},Le.property={name:"\u0275\u0275property",moduleName:Qt},Le.propertyInterpolate={name:"\u0275\u0275propertyInterpolate",moduleName:Qt},Le.propertyInterpolate1={name:"\u0275\u0275propertyInterpolate1",moduleName:Qt},Le.propertyInterpolate2={name:"\u0275\u0275propertyInterpolate2",moduleName:Qt},Le.propertyInterpolate3={name:"\u0275\u0275propertyInterpolate3",moduleName:Qt},Le.propertyInterpolate4={name:"\u0275\u0275propertyInterpolate4",moduleName:Qt},Le.propertyInterpolate5={name:"\u0275\u0275propertyInterpolate5",moduleName:Qt},Le.propertyInterpolate6={name:"\u0275\u0275propertyInterpolate6",moduleName:Qt},Le.propertyInterpolate7={name:"\u0275\u0275propertyInterpolate7",moduleName:Qt},Le.propertyInterpolate8={name:"\u0275\u0275propertyInterpolate8",moduleName:Qt},Le.propertyInterpolateV={name:"\u0275\u0275propertyInterpolateV",moduleName:Qt},Le.i18n={name:"\u0275\u0275i18n",moduleName:Qt},Le.i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:Qt},Le.i18nExp={name:"\u0275\u0275i18nExp",moduleName:Qt},Le.i18nStart={name:"\u0275\u0275i18nStart",moduleName:Qt},Le.i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:Qt},Le.i18nApply={name:"\u0275\u0275i18nApply",moduleName:Qt},Le.i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:Qt},Le.pipe={name:"\u0275\u0275pipe",moduleName:Qt},Le.projection={name:"\u0275\u0275projection",moduleName:Qt},Le.projectionDef={name:"\u0275\u0275projectionDef",moduleName:Qt},Le.reference={name:"\u0275\u0275reference",moduleName:Qt},Le.inject={name:"\u0275\u0275inject",moduleName:Qt},Le.injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:Qt},Le.directiveInject={name:"\u0275\u0275directiveInject",moduleName:Qt},Le.invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:Qt},Le.invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:Qt},Le.templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:Qt},Le.forwardRef={name:"forwardRef",moduleName:Qt},Le.resolveForwardRef={name:"resolveForwardRef",moduleName:Qt},Le.\u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:Qt},Le.declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:Qt},Le.InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:Qt},Le.resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:Qt},Le.resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:Qt},Le.resolveBody={name:"\u0275\u0275resolveBody",moduleName:Qt},Le.defineComponent={name:"\u0275\u0275defineComponent",moduleName:Qt},Le.declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:Qt},Le.setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:Qt},Le.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:Qt},Le.ViewEncapsulation={name:"ViewEncapsulation",moduleName:Qt},Le.ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:Qt},Le.FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:Qt},Le.declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:Qt},Le.FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:Qt},Le.defineDirective={name:"\u0275\u0275defineDirective",moduleName:Qt},Le.declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:Qt},Le.DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:Qt},Le.InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:Qt},Le.InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:Qt},Le.defineInjector={name:"\u0275\u0275defineInjector",moduleName:Qt},Le.declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:Qt},Le.NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:Qt},Le.ModuleWithProviders={name:"ModuleWithProviders",moduleName:Qt},Le.defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:Qt},Le.declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:Qt},Le.setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:Qt},Le.registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:Qt},Le.PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:Qt},Le.definePipe={name:"\u0275\u0275definePipe",moduleName:Qt},Le.declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:Qt},Le.declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:Qt},Le.setClassMetadata={name:"\u0275setClassMetadata",moduleName:Qt},Le.queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:Qt},Le.viewQuery={name:"\u0275\u0275viewQuery",moduleName:Qt},Le.loadQuery={name:"\u0275\u0275loadQuery",moduleName:Qt},Le.contentQuery={name:"\u0275\u0275contentQuery",moduleName:Qt},Le.NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:Qt},Le.InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:Qt},Le.CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:Qt},Le.StandaloneFeature={name:"\u0275\u0275StandaloneFeature",moduleName:Qt},Le.ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:Qt},Le.listener={name:"\u0275\u0275listener",moduleName:Qt},Le.getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:Qt},Le.sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:Qt},Le.sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:Qt},Le.sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:Qt},Le.sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:Qt},Le.sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:Qt},Le.sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:Qt},Le.trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:Qt},Le.trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:Qt},Le.validateIframeAttribute={name:"\u0275\u0275validateIframeAttribute",moduleName:Qt};var Gl=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,H.Z)(this,n),this.file=r,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return(0,B.Z)(n,[{key:"addSource",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.sourcesContent.has(e)||this.sourcesContent.set(e,i),this}},{key:"addLine",value:function(){return this.lines.push([]),this.lastCol0=0,this}},{key:"addMapping",value:function(e,i,o,a){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=i&&!this.sourcesContent.has(i))throw new Error('Unknown source file "'.concat(i,'"'));if(null==e)throw new Error("The column in the generated code must be provided");if(e>2),r+=Td((3&o)<<4|(null===a?0:a>>4)),r+=null===a?"=":Td((15&a)<<2|(null===s?0:s>>6)),r+=null===a||null===s?"=":Td(63&s)}return r}(JSON.stringify(this,null,0)):""}}]),n}();function Iv(n){n=n<0?1+(-n<<1):n<<1;var r="";do{var e=31&n;(n>>=5)>0&&(e|=32),r+=Td(e)}while(n>0);return r}function Td(n){if(n<0||n>=64)throw new Error("Can only encode value in the range [0, 63]");return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[n]}var NP=/'|\\|\n|\r|\$/g,r5=/^[$A-Z_][0-9A-Z_$]*$/i,i5=(0,B.Z)(function n(r){(0,H.Z)(this,n),this.indent=r,this.partsLength=0,this.parts=[],this.srcSpans=[]}),eV=function(){function n(r){(0,H.Z)(this,n),this._indent=r,this._lines=[new i5(r)]}return(0,B.Z)(n,[{key:"_currentLine",get:function(){return this._lines[this._lines.length-1]}},{key:"println",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.print(e||null,i,!0)}},{key:"lineIsEmpty",value:function(){return 0===this._currentLine.parts.length}},{key:"lineLength",value:function(){return this._currentLine.indent*" ".length+this._currentLine.partsLength}},{key:"print",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i.length>0&&(this._currentLine.parts.push(i),this._currentLine.partsLength+=i.length,this._currentLine.srcSpans.push(e&&e.sourceSpan||null)),o&&this._lines.push(new i5(this._indent))}},{key:"removeEmptyLastLine",value:function(){this.lineIsEmpty()&&this._lines.pop()}},{key:"incIndent",value:function(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}},{key:"decIndent",value:function(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}},{key:"toSource",value:function(){return this.sourceLines.map(function(e){return e.parts.length>0?fC(e.indent)+e.parts.join(""):""}).join("\n")}},{key:"toSourceMapGenerator",value:function(e){for(var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=new Gl(e),a=!1,s=function(){a||(o.addSource(e," ").addMapping(0,e,0,0),a=!0)},l=0;la)return o.srcSpans[s];a-=l.length}return null}},{key:"sourceLines",get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines}}],[{key:"createRoot",value:function(){return new n(0)}}]),n}(),BP=function(){function n(r){(0,H.Z)(this,n),this._escapeDollarInStrings=r}return(0,B.Z)(n,[{key:"printLeadingComments",value:function(e,i){if(void 0!==e.leadingComments){var a,o=(0,xn.Z)(e.leadingComments);try{for(o.s();!(a=o.n()).done;){var s=a.value;s instanceof iM?i.print(e,"/*".concat(s.toString(),"*/"),s.trailingNewline):s.multiline?i.print(e,"/* ".concat(s.text," */"),s.trailingNewline):s.text.split("\n").forEach(function(l){i.println(e,"// ".concat(l))})}}catch(l){o.e(l)}finally{o.f()}}}},{key:"visitExpressionStmt",value:function(e,i){return this.printLeadingComments(e,i),e.expr.visitExpression(this,i),i.println(e,";"),null}},{key:"visitReturnStmt",value:function(e,i){return this.printLeadingComments(e,i),i.print(e,"return "),e.value.visitExpression(this,i),i.println(e,";"),null}},{key:"visitIfStmt",value:function(e,i){this.printLeadingComments(e,i),i.print(e,"if ("),e.condition.visitExpression(this,i),i.print(e,") {");var o=null!=e.falseCase&&e.falseCase.length>0;return e.trueCase.length<=1&&!o?(i.print(e," "),this.visitAllStatements(e.trueCase,i),i.removeEmptyLastLine(),i.print(e," ")):(i.println(),i.incIndent(),this.visitAllStatements(e.trueCase,i),i.decIndent(),o&&(i.println(e,"} else {"),i.incIndent(),this.visitAllStatements(e.falseCase,i),i.decIndent())),i.println(e,"}"),null}},{key:"visitWriteVarExpr",value:function(e,i){var o=i.lineIsEmpty();return o||i.print(e,"("),i.print(e,"".concat(e.name," = ")),e.value.visitExpression(this,i),o||i.print(e,")"),null}},{key:"visitWriteKeyExpr",value:function(e,i){var o=i.lineIsEmpty();return o||i.print(e,"("),e.receiver.visitExpression(this,i),i.print(e,"["),e.index.visitExpression(this,i),i.print(e,"] = "),e.value.visitExpression(this,i),o||i.print(e,")"),null}},{key:"visitWritePropExpr",value:function(e,i){var o=i.lineIsEmpty();return o||i.print(e,"("),e.receiver.visitExpression(this,i),i.print(e,".".concat(e.name," = ")),e.value.visitExpression(this,i),o||i.print(e,")"),null}},{key:"visitInvokeFunctionExpr",value:function(e,i){return e.fn.visitExpression(this,i),i.print(e,"("),this.visitAllExpressions(e.args,i,","),i.print(e,")"),null}},{key:"visitTaggedTemplateExpr",value:function(e,i){e.tag.visitExpression(this,i),i.print(e,"`"+e.template.elements[0].rawText);for(var o=1;o0&&(o.lineLength()>80?(o.print(null,a,!0),s||(o.incIndent(),o.incIndent(),s=!0)):o.print(null,a,!1)),e(i[l]);s&&(o.decIndent(),o.decIndent())}},{key:"visitAllStatements",value:function(e,i){var o=this;e.forEach(function(a){return a.visitStatement(o,i)})}}]),n}();function Ua(n,r){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(null==n)return null;var i=n.replace(NP,function(){return"$"==(arguments.length<=0?void 0:arguments[0])?r?"\\$":"$":"\n"==(arguments.length<=0?void 0:arguments[0])?"\\n":"\r"==(arguments.length<=0?void 0:arguments[0])?"\\r":"\\".concat(arguments.length<=0?void 0:arguments[0])}),o=e||!r5.test(i);return o?"'".concat(i,"'"):i}function fC(n){for(var r="",e=0;e0?Qs(r):null}(i);return null!==o?(r=!0,o):rn(null)});return r?Is(di(e)):ke}(n.deps):ke;return Is(Jn(Le.FactoryDeclaration,[Md(n.type.type,n.typeArgumentCount),r]))}function fM(n,r){return n.map(function(e,i){return function Pv(n,r,e){if(null===n.token)return Jn(Le.invalidFactoryDep).callFn([rn(e)]);if(null===n.attributeNameType){var i=0|(n.self?2:0)|(n.skipSelf?4:0)|(n.host?1:0)|(n.optional?8:0)|(r===ec.Pipe?16:0),o=0!==i||n.optional?rn(i):null,a=[n.token];o&&a.push(o);var s=function GP(n){switch(n){case ec.Component:case ec.Directive:case ec.Pipe:return Le.directiveInject;case ec.NgModule:case ec.Injectable:default:return Le.inject}}(r);return Jn(s).callFn(a)}return Jn(Le.injectAttribute).callFn([n.token])}(e,r,i)})}function fa(n){return void 0!==n.delegateType}!function(n){n[n.Class=0]="Class",n[n.Function=1]="Function"}(If||(If={})),function(n){n[n.Directive=0]="Directive",n[n.Component=1]="Component",n[n.Injectable=2]="Injectable",n[n.Pipe=3]="Pipe",n[n.NgModule=4]="NgModule"}(ec||(ec={}));var pM=function(){function n(r,e){(0,H.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,B.Z)(n,[{key:"visit",value:function(e){throw new Error("visit() not implemented for Comment")}}]),n}(),Pf=function(){function n(r,e){(0,H.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitText(this)}}]),n}(),hM=function(){function n(r,e,i){(0,H.Z)(this,n),this.value=r,this.sourceSpan=e,this.i18n=i}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitBoundText(this)}}]),n}(),mM=function(){function n(r,e,i,o,a,s){(0,H.Z)(this,n),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a,this.i18n=s}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitTextAttribute(this)}}]),n}(),zP=function(){function n(r,e,i,o,a,s,l,u,d){(0,H.Z)(this,n),this.name=r,this.type=e,this.securityContext=i,this.value=o,this.unit=a,this.sourceSpan=s,this.keySpan=l,this.valueSpan=u,this.i18n=d}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitBoundAttribute(this)}}],[{key:"fromBoundElementProperty",value:function(e,i){if(void 0===e.keySpan)throw new Error("Unexpected state: keySpan must be defined for bound attributes but was not for ".concat(e.name,": ").concat(e.sourceSpan));return new n(e.name,e.type,e.securityContext,e.value,e.unit,e.sourceSpan,e.keySpan,e.valueSpan,i)}}]),n}(),Rv=function(){function n(r,e,i,o,a,s,l,u){(0,H.Z)(this,n),this.name=r,this.type=e,this.handler=i,this.target=o,this.phase=a,this.sourceSpan=s,this.handlerSpan=l,this.keySpan=u}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitBoundEvent(this)}}],[{key:"fromParsedEvent",value:function(e){var i=0===e.type?e.targetOrPhase:null,o=1===e.type?e.targetOrPhase:null;if(void 0===e.keySpan)throw new Error("Unexpected state: keySpan must be defined for bound event but was not for ".concat(e.name,": ").concat(e.sourceSpan));return new n(e.name,e.type,e.handler,i,o,e.sourceSpan,e.handlerSpan,e.keySpan)}}]),n}(),Rf=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,H.Z)(this,n),this.name=r,this.attributes=e,this.inputs=i,this.outputs=o,this.children=a,this.references=s,this.sourceSpan=l,this.startSourceSpan=u,this.endSourceSpan=d,this.i18n=h}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitElement(this)}}]),n}(),hh=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C){(0,H.Z)(this,n),this.tagName=r,this.attributes=e,this.inputs=i,this.outputs=o,this.templateAttrs=a,this.children=s,this.references=l,this.variables=u,this.sourceSpan=d,this.startSourceSpan=h,this.endSourceSpan=g,this.i18n=C}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitTemplate(this)}}]),n}(),o_=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.selector=r,this.attributes=e,this.sourceSpan=i,this.i18n=o,this.name="ng-content"}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitContent(this)}}]),n}(),_M=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitVariable(this)}}]),n}(),WP=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitReference(this)}}]),n}(),a_=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.vars=r,this.placeholders=e,this.sourceSpan=i,this.i18n=o}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitIcu(this)}}]),n}();function VP(n,r){var e=[];if(n.visit){var o,i=(0,xn.Z)(r);try{for(i.s();!(o=i.n()).done;){var a=o.value;n.visit(a)||a.visit(n)}}catch(g){i.e(g)}finally{i.f()}}else{var u,l=(0,xn.Z)(r);try{for(l.s();!(u=l.n()).done;){var h=u.value.visit(n);h&&e.push(h)}}catch(g){l.e(g)}finally{l.f()}}return e}var bu=(0,B.Z)(function n(r,e,i,o,a,s){(0,H.Z)(this,n),this.nodes=r,this.placeholders=e,this.placeholderToMessage=i,this.meaning=o,this.description=a,this.customId=s,this.id=this.customId,this.legacyIds=[],this.messageString=function gC(n){var r=new YP,e=n.map(function(i){return i.visit(r)}).join("");return e}(this.nodes),r.length?this.sources=[{filePath:r[0].sourceSpan.start.file.url,startLine:r[0].sourceSpan.start.line+1,startCol:r[0].sourceSpan.start.col+1,endLine:r[r.length-1].sourceSpan.end.line+1,endCol:r[0].sourceSpan.start.col+1}]:this.sources=[]}),hC=function(){function n(r,e){(0,H.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,B.Z)(n,[{key:"visit",value:function(e,i){return e.visitText(this,i)}}]),n}(),mC=function(){function n(r,e){(0,H.Z)(this,n),this.children=r,this.sourceSpan=e}return(0,B.Z)(n,[{key:"visit",value:function(e,i){return e.visitContainer(this,i)}}]),n}(),vM=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.expression=r,this.type=e,this.cases=i,this.sourceSpan=o}return(0,B.Z)(n,[{key:"visit",value:function(e,i){return e.visitIcu(this,i)}}]),n}(),f5=function(){function n(r,e,i,o,a,s,l,u,d){(0,H.Z)(this,n),this.tag=r,this.attrs=e,this.startName=i,this.closeName=o,this.children=a,this.isVoid=s,this.sourceSpan=l,this.startSourceSpan=u,this.endSourceSpan=d}return(0,B.Z)(n,[{key:"visit",value:function(e,i){return e.visitTagPlaceholder(this,i)}}]),n}(),p5=function(){function n(r,e,i){(0,H.Z)(this,n),this.value=r,this.name=e,this.sourceSpan=i}return(0,B.Z)(n,[{key:"visit",value:function(e,i){return e.visitPlaceholder(this,i)}}]),n}(),_C=function(){function n(r,e,i){(0,H.Z)(this,n),this.value=r,this.name=e,this.sourceSpan=i}return(0,B.Z)(n,[{key:"visit",value:function(e,i){return e.visitIcuPlaceholder(this,i)}}]),n}();var YP=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"visitText",value:function(e){return e.value}},{key:"visitContainer",value:function(e){var i=this;return e.children.map(function(o){return o.visit(i)}).join("")}},{key:"visitIcu",value:function(e){var i=this,o=Object.keys(e.cases).map(function(a){return"".concat(a," {").concat(e.cases[a].visit(i),"}")});return"{".concat(e.expressionPlaceholder,", ").concat(e.type,", ").concat(o.join(" "),"}")}},{key:"visitTagPlaceholder",value:function(e){var i=this,o=e.children.map(function(a){return a.visit(i)}).join("");return"{$".concat(e.startName,"}").concat(o,"{$").concat(e.closeName,"}")}},{key:"visitPlaceholder",value:function(e){return"{$".concat(e.name,"}")}},{key:"visitIcuPlaceholder",value:function(e){return"{$".concat(e.name,"}")}}]),n}(),oV=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"visitTag",value:function(e){var i=this,o=this._serializeAttributes(e.attrs);if(0==e.children.length)return"<".concat(e.name).concat(o,"/>");var a=e.children.map(function(s){return s.visit(i)});return"<".concat(e.name).concat(o,">").concat(a.join(""),"")}},{key:"visitText",value:function(e){return e.value}},{key:"visitDeclaration",value:function(e){return"")}},{key:"_serializeAttributes",value:function(e){var i=Object.keys(e).map(function(o){return"".concat(o,'="').concat(e[o],'"')}).join(" ");return i.length>0?" "+i:""}},{key:"visitDoctype",value:function(e){return"")}}]),n}();new oV;function Zv(n){return n.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var vC="i18n-";function XP(n){return"i18n"===n||n.startsWith(vC)}function s_(n){return n instanceof bu}function yC(n){return s_(n)&&1===n.nodes.length&&n.nodes[0]instanceof vM}function w5(n){return!!n.i18n}function bC(n){return n.nodes[0]}function Nv(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=r>0?":".concat(r):"";return"".concat("\ufffd").concat(n).concat(e).concat("\ufffd")}function Ps(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=n;return function(){return r++}}function l_(n){var r={};return n.forEach(function(e,i){r[i]=rn(e.length>1?"[".concat(e.join("|"),"]"):e[0])}),r}function Bv(n,r){for(var e=n.get(r)||[],i=arguments.length,o=new Array(i>2?i-2:0),a=2;a1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=r,o=new Map,a=n instanceof bu?n.nodes.find(function(s){return s instanceof mC}):n;return a&&a.children.filter(function(s){return s instanceof p5}).forEach(function(s,l){var u=Nv(i+l,e);Bv(o,s.name,u)}),o}function kM(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,e={};return n&&Object.keys(n).length&&Object.keys(n).forEach(function(i){return e[u_(i,r)]=n[i]}),e}function u_(n){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=Zv(n);if(!r)return e;var o,i=e.split("_");if(1===i.length)return n.toLowerCase();/^\d+$/.test(i[i.length-1])&&(o=i.pop());var a=i.shift().toLowerCase();return i.length&&(a+=i.map(function(s){return s.charAt(0).toUpperCase()+s.slice(1).toLowerCase()}).join("")),o?"".concat(a,"_").concat(o):a}function e3(n){return"".concat("MSG_").concat(n).toUpperCase()}function t3(n){return new Af(n.name,void 0,ia,void 0,n.sourceSpan)}var k5=/[-.]/,CC="_t",tc="ctx",Fv="rf",SM="restoredCtx",Uv=new Set([Le.element,Le.elementStart,Le.elementEnd,Le.elementContainer,Le.elementContainerStart,Le.elementContainerEnd,Le.i18nExp,Le.listener,Le.classProp,Le.syntheticHostListener,Le.hostProperty,Le.syntheticHostProperty,Le.property,Le.propertyInterpolate1,Le.propertyInterpolate2,Le.propertyInterpolate3,Le.propertyInterpolate4,Le.propertyInterpolate5,Le.propertyInterpolate6,Le.propertyInterpolate7,Le.propertyInterpolate8,Le.propertyInterpolateV,Le.attribute,Le.attributeInterpolate1,Le.attributeInterpolate2,Le.attributeInterpolate3,Le.attributeInterpolate4,Le.attributeInterpolate5,Le.attributeInterpolate6,Le.attributeInterpolate7,Le.attributeInterpolate8,Le.attributeInterpolateV,Le.styleProp,Le.stylePropInterpolate1,Le.stylePropInterpolate2,Le.stylePropInterpolate3,Le.stylePropInterpolate4,Le.stylePropInterpolate5,Le.stylePropInterpolate6,Le.stylePropInterpolate7,Le.stylePropInterpolate8,Le.stylePropInterpolateV,Le.textInterpolate,Le.textInterpolate1,Le.textInterpolate2,Le.textInterpolate3,Le.textInterpolate4,Le.textInterpolate5,Le.textInterpolate6,Le.textInterpolate7,Le.textInterpolate8,Le.textInterpolateV]);function mh(n,r,e){return Jn(r,null,n).callFn(e,n)}function n3(n,r){var e=null;return function(){return e||(n.push(new Af("_t",void 0,qs)),e=ii(r)),e}}function _h(n){throw new Error("Invalid state: Visitor ".concat(this.constructor.name," doesn't handle ").concat(n.constructor.name))}function vl(n){return Array.isArray(n)?di(n.map(vl)):rn(n,ia)}function Hv(n,r){return Object.getOwnPropertyNames(n).length>0?function uV(n,r){return Qs(Object.getOwnPropertyNames(n).map(function(e){var o,a,s,l,i=n[e];if(Array.isArray(i)){var u=(0,Nn.Z)(i,2);s=e,l=(a=u[0])!==(o=u[1])}else s=o=e,a=i,l=!1;return{key:s,quoted:k5.test(s),value:r&&l?di([vl(a),vl(o)]):vl(a)}}))}(n,r):null}function Lf(n){for(;Oc(n[n.length-1]);)n.pop();return n}function EM(n,r){if(Array.isArray(n.predicate)){var e=[];return n.predicate.forEach(function(i){var o=i.split(",").map(function(a){return rn(a.trim())});e.push.apply(e,(0,pn.Z)(o))}),r.getConstLiteral(di(e),!0)}switch(n.predicate.forwardRef){case 0:case 2:return n.predicate.expression;case 1:return Jn(Le.resolveForwardRef).callFn([n.predicate.expression])}}var Sa=function(){function n(){(0,H.Z)(this,n),this.values=[]}return(0,B.Z)(n,[{key:"set",value:function(e,i){i&&this.values.push({key:e,value:i,quoted:!1})}},{key:"toLiteralMap",value:function(){return Qs(this.values)}}]),n}();function Sd(n){var r=n.expressions,e=n.strings;return 1===r.length&&2===e.length&&""===e[0]&&""===e[1]?1:r.length+e.length}function wC(n){var r,l,e=[],i=null,o=null,a=0,s=(0,xn.Z)(n);try{for(s.s();!(l=s.n()).done;){var u=l.value,d=null!==(r="function"==typeof u.paramsOrFn?u.paramsOrFn():u.paramsOrFn)&&void 0!==r?r:[],h=Array.isArray(d)?d:[d];a<500&&o===u.reference&&Uv.has(o)?(i=i.callFn(h,i.sourceSpan),a++):(null!==i&&e.push(i.toStmt()),i=mh(u.span,u.reference,h),o=u.reference,a=0)}}catch(g){s.e(g)}finally{s.f()}return null!==i&&e.push(i.toStmt()),e}function r3(n,r){var e=null,i={name:n.name,type:n.type,internalType:n.internalType,typeArgumentCount:n.typeArgumentCount,deps:[],target:ec.Injectable};if(void 0!==n.useClass){var o=n.useClass.expression.isEquivalent(n.internalType),a=void 0;void 0!==n.deps&&(a=n.deps),e=void 0!==a?ph(Object.assign(Object.assign({},i),{delegate:n.useClass.expression,delegateDeps:a,delegateType:If.Class})):o?ph(i):{statements:[],expression:o3(n.type.value,n.useClass.expression,r)}}else e=void 0!==n.useFactory?void 0!==n.deps?ph(Object.assign(Object.assign({},i),{delegate:n.useFactory,delegateDeps:n.deps||[],delegateType:If.Function})):{statements:[],expression:aa([],[new _s(n.useFactory.callFn([]))])}:void 0!==n.useValue?ph(Object.assign(Object.assign({},i),{expression:n.useValue.expression})):void 0!==n.useExisting?ph(Object.assign(Object.assign({},i),{expression:Jn(Le.inject).callFn([n.useExisting.expression])})):{statements:[],expression:o3(n.type.value,n.internalType,r)};var s=n.internalType,l=new Sa;return l.set("token",s),l.set("factory",e.expression),null!==n.providedIn.expression.value&&l.set("providedIn",zl(n.providedIn)),{expression:Jn(Le.\u0275\u0275defineInjectable).callFn([l.toLiteralMap()],void 0,!0),type:i3(n),statements:e.statements}}function i3(n){return new hs(Jn(Le.InjectableDeclaration,[Md(n.type.type,n.typeArgumentCount)]))}function o3(n,r,e){return n.node===r.node?r.prop("\u0275fac"):a3(e?Jn(Le.resolveForwardRef).callFn([r]):r)}function a3(n){return aa([new Go("t",qs)],[new _s(n.prop("\u0275fac").callFn([ii("t")]))])}var S5=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];var kC=function(){function n(r,e){(0,H.Z)(this,n),this.start=r,this.end=e}return(0,B.Z)(n,null,[{key:"fromArray",value:function(e){return e?(function s3(n,r){if(null!=r&&(!Array.isArray(r)||2!=r.length))throw new Error("Expected '".concat(n,"' to be an array, [start, end]."));if(null!=r){var e=r[0],i=r[1];S5.forEach(function(o){if(o.test(e)||o.test(i))throw new Error("['".concat(e,"', '").concat(i,"'] contains unusable interpolation symbol."))})}}("interpolation",e),new n(e[0],e[1])):wu}}]),n}(),wu=new kC("{{","}}"),Hf=123,Lc=125;function RM(n){return n>=9&&n<=32||160==n}function jf(n){return 48<=n&&n<=57}function LM(n){return n>=97&&n<=122||n>=65&&n<=90}function Zc(n){return 10===n||13===n}function __(n){return 48<=n&&n<=55}function IC(n){return 39===n||34===n||96===n}var Dd,g_=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.file=r,this.offset=e,this.line=i,this.col=o}return(0,B.Z)(n,[{key:"toString",value:function(){return null!=this.offset?"".concat(this.file.url,"@").concat(this.line,":").concat(this.col):this.file.url}},{key:"moveBy",value:function(e){for(var i=this.file.content,o=i.length,a=this.offset,s=this.line,l=this.col;a>0&&e<0;){if(a--,e++,10==i.charCodeAt(a)){s--;var d=i.substring(0,a-1).lastIndexOf(String.fromCharCode(10));l=d>0?a-d:a}else l--}for(;a0;){var h=i.charCodeAt(a);a++,e--,10==h?(s++,l=0):l++}return new n(this.file,a,s,l)}},{key:"getContext",value:function(e,i){var o=this.file.content,a=this.offset;if(null!=a){a>o.length-1&&(a=o.length-1);for(var s=a,l=0,u=0;l0&&(l++,"\n"!=o[--a]||++u!=i););for(l=0,u=0;l2&&void 0!==arguments[2]?arguments[2]:r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;(0,H.Z)(this,n),this.start=r,this.end=e,this.fullStart=i,this.details=o}return(0,B.Z)(n,[{key:"toString",value:function(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}]),n}();!function(n){n[n.WARNING=0]="WARNING",n[n.ERROR=1]="ERROR"}(Dd||(Dd={}));var Yv=function(){function n(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dd.ERROR;(0,H.Z)(this,n),this.span=r,this.msg=e,this.level=i}return(0,B.Z)(n,[{key:"contextualMessage",value:function(){var e=this.span.start.getContext(100,3);return e?"".concat(this.msg,' ("').concat(e.before,"[").concat(Dd[this.level]," ->]").concat(e.after,'")'):this.msg}},{key:"toString",value:function(){var e=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(e)}}]),n}();var NM=0;function v_(n){return n.replace(/\W/g,"_")}var RC,BM='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})',P5=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.call(this,!1)}return(0,B.Z)(e,[{key:"visitWrappedNodeExpr",value:function(o,a){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")}},{key:"visitDeclareVarStmt",value:function(o,a){return a.print(o,"var ".concat(o.name)),o.value&&(a.print(o," = "),o.value.visitExpression(this,a)),a.println(o,";"),null}},{key:"visitTaggedTemplateExpr",value:function(o,a){var s=this,l=o.template.elements;return o.tag.visitExpression(this,a),a.print(o,"(".concat(BM,"(")),a.print(o,"[".concat(l.map(function(u){return Ua(u.text,!1)}).join(", "),"], ")),a.print(o,"[".concat(l.map(function(u){return Ua(u.rawText,!1)}).join(", "),"])")),o.template.expressions.forEach(function(u){a.print(o,", "),u.visitExpression(s,a)}),a.print(o,")"),null}},{key:"visitFunctionExpr",value:function(o,a){return a.print(o,"function".concat(o.name?" "+o.name:"","(")),this._visitParams(o.params,a),a.println(o,") {"),a.incIndent(),this.visitAllStatements(o.statements,a),a.decIndent(),a.print(o,"}"),null}},{key:"visitDeclareFunctionStmt",value:function(o,a){return a.print(o,"function ".concat(o.name,"(")),this._visitParams(o.params,a),a.println(o,") {"),a.incIndent(),this.visitAllStatements(o.statements,a),a.decIndent(),a.println(o,"}"),null}},{key:"visitLocalizedString",value:function(o,a){var s=this;a.print(o,"$localize(".concat(BM,"("));for(var l=[o.serializeI18nHead()],u=1;u0&&!function UM(n){return n.isEquivalent(rn("use strict").toStmt())}(i[0])&&(i=[rn("use strict").toStmt()].concat((0,pn.Z)(i))),s.visitAllStatements(i,l),s.createReturnStmt(l),this.evaluateCode(e,l,s.getArgs(),a)}},{key:"evaluateCode",value:function(e,i,o,a){var s='"use strict";'.concat(i.toSource(),"\n//# sourceURL=").concat(e),l=[],u=[];for(var d in o)u.push(o[d]),l.push(d);if(a){var h=FM.apply(void 0,(0,pn.Z)(l.concat("return null;"))).toString(),g=h.slice(0,h.indexOf("return null;")).split("\n").length-1;s+="\n".concat(i.toSourceMapGenerator(e,g).toJsComment())}var C=FM.apply(void 0,(0,pn.Z)(l.concat(s)));return this.executeFunction(C,u)}},{key:"executeFunction",value:function(e,i){return e.apply(void 0,(0,pn.Z)(i))}}]),n}(),y3=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,H.Z)(this,e),(o=r.call(this)).refResolver=i,o._evalArgNames=[],o._evalArgValues=[],o._evalExportedVars=[],o}return(0,B.Z)(e,[{key:"createReturnStmt",value:function(o){new _s(new rM(this._evalExportedVars.map(function(s){return new yu(s,ii(s),!1)}))).visitStatement(this,o)}},{key:"getArgs",value:function(){for(var o={},a=0;a=0?(e="anonymous_".concat(NM++),r.__anonymousType=e):e=v_(e),e}({reference:a})||"val";this._evalArgNames.push("jit_".concat(u,"_").concat(l))}s.print(o,this._evalArgNames[l])}}]),e}(P5);function b3(n){var r=new Sa;return null!==n.providers&&r.set("providers",n.providers),n.imports.length>0&&r.set("imports",di(n.imports)),{expression:Jn(Le.defineInjector).callFn([r.toLiteralMap()],void 0,!0),type:Ad(n),statements:[]}}function Ad(n){return new hs(Jn(Le.InjectorDeclaration,[new hs(n.type.type)]))}var y_,yh,C3=function(){function n(r){(0,H.Z)(this,n),this.context=r}return(0,B.Z)(n,[{key:"resolveExternalReference",value:function(e){if("@angular/core"!==e.moduleName)throw new Error("Cannot resolve external reference to ".concat(e.moduleName,", only references to @angular/core are supported."));if(!this.context.hasOwnProperty(e.name))throw new Error("No value provided for @angular/core symbol '".concat(e.name,"'."));return this.context[e.name]}}]),n}();function HM(n){var r=n.adjacentType,e=n.internalType,i=n.bootstrap,o=n.declarations,a=n.imports,s=n.exports,l=n.schemas,u=n.containsForwardDecls,d=n.selectorScopeMode,h=n.id,g=[],C=new Sa;if(C.set("type",e),i.length>0&&C.set("bootstrap",gl(i,u)),d===y_.Inline)o.length>0&&C.set("declarations",gl(o,u)),a.length>0&&C.set("imports",gl(a,u)),s.length>0&&C.set("exports",gl(s,u));else if(d===y_.SideEffect){var Z=function Z5(n){var r=n.adjacentType,e=n.declarations,i=n.imports,o=n.exports,a=n.containsForwardDecls,s=new Sa;if(e.length>0&&s.set("declarations",gl(e,a)),i.length>0&&s.set("imports",gl(i,a)),o.length>0&&s.set("exports",gl(o,a)),0===Object.keys(s.values).length)return null;var u=function l5(n){return UP("ngJitMode",n)}(new Df(Jn(Le.setNgModuleScope),[r,s.toLiteralMap()])),d=new Xu([],[u.toStmt()]);return new Df(d,[]).toStmt()}(n);null!==Z&&g.push(Z)}return null!==l&&l.length>0&&C.set("schemas",di(l.map(function(re){return re.value}))),null!==h&&(C.set("id",h),g.push(Jn(Le.registerNgModuleType).callFn([r,h]).toStmt())),{expression:Jn(Le.defineNgModule).callFn([C.toLiteralMap()],void 0,!0),type:k3(n),statements:g}}function k3(n){var r=n.type,e=n.declarations,i=n.exports,o=n.imports,a=n.includeImportTypes,s=n.publicDeclarationTypes;return new hs(Jn(Le.NgModuleDeclaration,[new hs(r.type),null===s?jM(e):N5(s),a?jM(o):ke,jM(i)]))}function jM(n){var r=n.map(function(e){return r_(e.type)});return n.length>0?Is(di(r)):ke}function N5(n){var r=n.map(function(e){return r_(e)});return n.length>0?Is(di(r)):ke}function T3(n){var r=[];return r.push({key:"name",value:rn(n.pipeName),quoted:!1}),r.push({key:"type",value:n.type.value,quoted:!1}),r.push({key:"pure",value:rn(n.pure),quoted:!1}),n.isStandalone&&r.push({key:"standalone",value:rn(!0),quoted:!1}),{expression:Jn(Le.definePipe).callFn([Qs(r)],void 0,!0),type:B5(n),statements:[]}}function B5(n){return new hs(Jn(Le.PipeDeclaration,[Md(n.type.type,n.typeArgumentCount),new hs(new ue(n.pipeName)),new hs(new ue(n.isStandalone))]))}!function(n){n[n.Inline=0]="Inline",n[n.SideEffect=1]="SideEffect",n[n.Omit=2]="Omit"}(y_||(y_={})),function(n){n[n.Directive=0]="Directive",n[n.Pipe=1]="Pipe",n[n.NgModule=2]="NgModule"}(yh||(yh={}));var Gf,bh=(0,B.Z)(function n(r,e,i,o){(0,H.Z)(this,n),this.input=e,this.errLocation=i,this.ctxLocation=o,this.message="Parser Error: ".concat(r," ").concat(i," [").concat(e,"] in ").concat(o)}),Ch=function(){function n(r,e){(0,H.Z)(this,n),this.start=r,this.end=e}return(0,B.Z)(n,[{key:"toAbsolute",value:function(e){return new Su(e+this.start,e+this.end)}}]),n}(),Ha=function(){function n(r,e){(0,H.Z)(this,n),this.span=r,this.sourceSpan=e}return(0,B.Z)(n,[{key:"toString",value:function(){return"AST"}}]),n}(),Kv=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,i,o)).nameSpan=a,s}return(0,B.Z)(e)}(Ha),Wl=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"visit",value:function(o){arguments.length>1&&void 0!==arguments[1]&&arguments[1]}}]),e}(Ha),qv=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitImplicitReceiver(this,a)}}]),e}(Ha),ZC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"visit",value:function(o){var s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null===(s=o.visitThisReceiver)||void 0===s?void 0:s.call(o,this,a)}}]),e}(qv),NC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,i,o)).expressions=a,s}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitChain(this,a)}}]),e}(Ha),Jv=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,i,o)).condition=a,u.trueExp=s,u.falseExp=l,u}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitConditional(this,a)}}]),e}(Ha),wh=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,i,o,a)).receiver=s,u.name=l,u}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitPropertyRead(this,a)}}]),e}(Kv),GM=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u){var d;return(0,H.Z)(this,e),(d=r.call(this,i,o,a)).receiver=s,d.name=l,d.value=u,d}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitPropertyWrite(this,a)}}]),e}(Kv),Qv=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,i,o,a)).receiver=s,u.name=l,u}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitSafePropertyRead(this,a)}}]),e}(Kv),Xv=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,i,o)).receiver=a,l.key=s,l}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitKeyedRead(this,a)}}]),e}(Ha),$v=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,i,o)).receiver=a,l.key=s,l}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitSafeKeyedRead(this,a)}}]),e}(Ha),Od=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.key=s,u.value=l,u}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitKeyedWrite(this,a)}}]),e}(Ha),BC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u){var d;return(0,H.Z)(this,e),(d=r.call(this,i,o,u)).exp=a,d.name=s,d.args=l,d}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitPipe(this,a)}}]),e}(Kv),Xs=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,i,o)).value=a,s}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitLiteralPrimitive(this,a)}}]),e}(Ha),kh=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,i,o)).expressions=a,s}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitLiteralArray(this,a)}}]),e}(Ha),zM=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,i,o)).keys=a,l.values=s,l}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitLiteralMap(this,a)}}]),e}(Ha),gs=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,i,o)).strings=a,l.expressions=s,l}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitInterpolation(this,a)}}]),e}(Ha),Vl=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,i,o)).operation=a,u.left=s,u.right=l,u}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitBinary(this,a)}}]),e}(Ha),Mu=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,H.Z)(this,e),(h=r.call(this,i,o,l,u,d)).operator=a,h.expr=s,h.left=null,h.right=null,h.operation=null,h}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return void 0!==o.visitUnary?o.visitUnary(this,a):o.visitBinary(this,a)}}],[{key:"createMinus",value:function(o,a,s){return new e(o,a,"-",s,"-",new Xs(o,a,0),s)}},{key:"createPlus",value:function(o,a,s){return new e(o,a,"+",s,"-",s,new Xs(o,a,0))}}]),e}(Vl),FC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,i,o)).expression=a,s}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitPrefixNot(this,a)}}]),e}(Ha),ey=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,i,o)).expression=a,s}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitNonNullAssert(this,a)}}]),e}(Ha),b_=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.args=s,u.argumentSpan=l,u}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitCall(this,a)}}]),e}(Ha),UC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.args=s,u.argumentSpan=l,u}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitSafeCall(this,a)}}]),e}(Ha),Su=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.start=r,this.end=e}),Yl=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,new Ch(0,null===o?0:o.length),new Su(s,null===o?s:s+o.length))).ast=i,u.source=o,u.location=a,u.errors=l,u}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitASTWithSource?o.visitASTWithSource(this,a):this.ast.visit(o,a)}},{key:"toString",value:function(){return"".concat(this.source," in ").concat(this.location)}}]),e}(Ha),WM=(0,B.Z)(function n(r,e,i){(0,H.Z)(this,n),this.sourceSpan=r,this.key=e,this.value=i}),F5=(0,B.Z)(function n(r,e,i){(0,H.Z)(this,n),this.sourceSpan=r,this.key=e,this.value=i}),U5=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"visit",value:function(e,i){e.visit(this,i)}},{key:"visitUnary",value:function(e,i){this.visit(e.expr,i)}},{key:"visitBinary",value:function(e,i){this.visit(e.left,i),this.visit(e.right,i)}},{key:"visitChain",value:function(e,i){this.visitAll(e.expressions,i)}},{key:"visitConditional",value:function(e,i){this.visit(e.condition,i),this.visit(e.trueExp,i),this.visit(e.falseExp,i)}},{key:"visitPipe",value:function(e,i){this.visit(e.exp,i),this.visitAll(e.args,i)}},{key:"visitImplicitReceiver",value:function(e,i){}},{key:"visitThisReceiver",value:function(e,i){}},{key:"visitInterpolation",value:function(e,i){this.visitAll(e.expressions,i)}},{key:"visitKeyedRead",value:function(e,i){this.visit(e.receiver,i),this.visit(e.key,i)}},{key:"visitKeyedWrite",value:function(e,i){this.visit(e.receiver,i),this.visit(e.key,i),this.visit(e.value,i)}},{key:"visitLiteralArray",value:function(e,i){this.visitAll(e.expressions,i)}},{key:"visitLiteralMap",value:function(e,i){this.visitAll(e.values,i)}},{key:"visitLiteralPrimitive",value:function(e,i){}},{key:"visitPrefixNot",value:function(e,i){this.visit(e.expression,i)}},{key:"visitNonNullAssert",value:function(e,i){this.visit(e.expression,i)}},{key:"visitPropertyRead",value:function(e,i){this.visit(e.receiver,i)}},{key:"visitPropertyWrite",value:function(e,i){this.visit(e.receiver,i),this.visit(e.value,i)}},{key:"visitSafePropertyRead",value:function(e,i){this.visit(e.receiver,i)}},{key:"visitSafeKeyedRead",value:function(e,i){this.visit(e.receiver,i),this.visit(e.key,i)}},{key:"visitCall",value:function(e,i){this.visit(e.receiver,i),this.visitAll(e.args,i)}},{key:"visitSafeCall",value:function(e,i){this.visit(e.receiver,i),this.visitAll(e.args,i)}},{key:"visitAll",value:function(e,i){var a,o=(0,xn.Z)(e);try{for(o.s();!(a=o.n()).done;){var s=a.value;this.visit(s,i)}}catch(l){o.e(l)}finally{o.f()}}}]),n}(),H5=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"visitImplicitReceiver",value:function(e,i){return e}},{key:"visitThisReceiver",value:function(e,i){return e}},{key:"visitInterpolation",value:function(e,i){return new gs(e.span,e.sourceSpan,e.strings,this.visitAll(e.expressions))}},{key:"visitLiteralPrimitive",value:function(e,i){return new Xs(e.span,e.sourceSpan,e.value)}},{key:"visitPropertyRead",value:function(e,i){return new wh(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}},{key:"visitPropertyWrite",value:function(e,i){return new GM(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name,e.value.visit(this))}},{key:"visitSafePropertyRead",value:function(e,i){return new Qv(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}},{key:"visitLiteralArray",value:function(e,i){return new kh(e.span,e.sourceSpan,this.visitAll(e.expressions))}},{key:"visitLiteralMap",value:function(e,i){return new zM(e.span,e.sourceSpan,e.keys,this.visitAll(e.values))}},{key:"visitUnary",value:function(e,i){switch(e.operator){case"+":return Mu.createPlus(e.span,e.sourceSpan,e.expr.visit(this));case"-":return Mu.createMinus(e.span,e.sourceSpan,e.expr.visit(this));default:throw new Error("Unknown unary operator ".concat(e.operator))}}},{key:"visitBinary",value:function(e,i){return new Vl(e.span,e.sourceSpan,e.operation,e.left.visit(this),e.right.visit(this))}},{key:"visitPrefixNot",value:function(e,i){return new FC(e.span,e.sourceSpan,e.expression.visit(this))}},{key:"visitNonNullAssert",value:function(e,i){return new ey(e.span,e.sourceSpan,e.expression.visit(this))}},{key:"visitConditional",value:function(e,i){return new Jv(e.span,e.sourceSpan,e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this))}},{key:"visitPipe",value:function(e,i){return new BC(e.span,e.sourceSpan,e.exp.visit(this),e.name,this.visitAll(e.args),e.nameSpan)}},{key:"visitKeyedRead",value:function(e,i){return new Xv(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this))}},{key:"visitKeyedWrite",value:function(e,i){return new Od(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this),e.value.visit(this))}},{key:"visitCall",value:function(e,i){return new b_(e.span,e.sourceSpan,e.receiver.visit(this),this.visitAll(e.args),e.argumentSpan)}},{key:"visitSafeCall",value:function(e,i){return new UC(e.span,e.sourceSpan,e.receiver.visit(this),this.visitAll(e.args),e.argumentSpan)}},{key:"visitAll",value:function(e){for(var i=[],o=0;o=0;i--)e.unshift(x3(r,i))}(u.temporaryCount,i,d),u.usesImplicitReceiver&&n.notifyImplicitReceiverUse();var h=d.length-1;if(h>=0){var g=d[h];g instanceof Of&&(d[h]=new _s(g.expr))}return d}KM.event=ii("$event");var Oi,w_=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.stmts=r,this.currValExpr=e});function Th(n,r,e,i){n||(n=new D3);var o=new ty(n,r,i,!1),a=e.visit(o,Oi.Expression),s=W5(o,i);return o.usesImplicitReceiver&&n.notifyImplicitReceiverUse(),new w_(s,a)}function W5(n,r){for(var e=[],i=0;i":o=it.Bigger;break;case"<=":o=it.LowerEquals;break;case">=":o=it.BiggerEquals;break;case"??":return this.convertNullishCoalesce(e,i);default:throw new Error("Unsupported operation ".concat(e.operation))}return vs(i,new yo(o,this._visit(e.left,Oi.Expression),this._visit(e.right,Oi.Expression),void 0,this.convertSourceSpan(e.span)))}},{key:"visitChain",value:function(e,i){return function V5(n,r){if(n!==Oi.Statement)throw new Error("Expected a statement, but saw ".concat(r))}(i,e),this.visitAll(e.expressions,i)}},{key:"visitConditional",value:function(e,i){return vs(i,this._visit(e.condition,Oi.Expression).conditional(this._visit(e.trueExp,Oi.Expression),this._visit(e.falseExp,Oi.Expression),this.convertSourceSpan(e.span)))}},{key:"visitPipe",value:function(e,i){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: ".concat(e.name))}},{key:"visitImplicitReceiver",value:function(e,i){return jC(i,e),this.usesImplicitReceiver=!0,this._implicitReceiver}},{key:"visitThisReceiver",value:function(e,i){return this.visitImplicitReceiver(e,i)}},{key:"visitInterpolation",value:function(e,i){if(!this.supportsInterpolation)throw new Error("Unexpected interpolation");jC(i,e);for(var o=[],a=0;a=9&&(o=[di(o)]),new K5(o)}},{key:"visitKeyedRead",value:function(e,i){var o=this.leftMostSafeNode(e);return o?this.convertSafeAccess(e,o,i):vs(i,this._visit(e.receiver,Oi.Expression).key(this._visit(e.key,Oi.Expression)))}},{key:"visitKeyedWrite",value:function(e,i){var o=this._visit(e.receiver,Oi.Expression),a=this._visit(e.key,Oi.Expression),s=this._visit(e.value,Oi.Expression);return o===this._implicitReceiver&&this._localResolver.maybeRestoreView(),vs(i,o.key(a).set(s))}},{key:"visitLiteralArray",value:function(e,i){throw new Error("Illegal State: literal arrays should have been converted into functions")}},{key:"visitLiteralMap",value:function(e,i){throw new Error("Illegal State: literal maps should have been converted into functions")}},{key:"visitLiteralPrimitive",value:function(e,i){var o=null===e.value||void 0===e.value||!0===e.value||!0===e.value?ia:void 0;return vs(i,rn(e.value,o,this.convertSourceSpan(e.span)))}},{key:"_getLocal",value:function(e,i){var o;return(null===(o=this._localResolver.globals)||void 0===o?void 0:o.has(e))&&i instanceof ZC?null:this._localResolver.getLocal(e)}},{key:"visitPrefixNot",value:function(e,i){return vs(i,uh(this._visit(e.expression,Oi.Expression)))}},{key:"visitNonNullAssert",value:function(e,i){return vs(i,this._visit(e.expression,Oi.Expression))}},{key:"visitPropertyRead",value:function(e,i){var o=this.leftMostSafeNode(e);if(o)return this.convertSafeAccess(e,o,i);var a=null,s=this.usesImplicitReceiver,l=this._visit(e.receiver,Oi.Expression);return l===this._implicitReceiver&&((a=this._getLocal(e.name,e.receiver))&&(this.usesImplicitReceiver=s,this.addImplicitReceiverAccess(e.name))),null==a&&(a=l.prop(e.name,this.convertSourceSpan(e.span))),vs(i,a)}},{key:"visitPropertyWrite",value:function(e,i){var o=this._visit(e.receiver,Oi.Expression),a=this.usesImplicitReceiver,s=null;if(o===this._implicitReceiver){var l=this._getLocal(e.name,e.receiver);if(l){if(!(l instanceof uC)){var u=e.name,d=e.value instanceof wh?e.value.name:void 0;throw new Error('Cannot assign value "'.concat(d,'" to template variable "').concat(u,'". Template variables are read-only.'))}s=l,this.usesImplicitReceiver=a,this.addImplicitReceiverAccess(e.name)}}return null===s&&(s=o.prop(e.name,this.convertSourceSpan(e.span))),vs(i,s.set(this._visit(e.value,Oi.Expression)))}},{key:"visitSafePropertyRead",value:function(e,i){return this.convertSafeAccess(e,this.leftMostSafeNode(e),i)}},{key:"visitSafeKeyedRead",value:function(e,i){return this.convertSafeAccess(e,this.leftMostSafeNode(e),i)}},{key:"visitAll",value:function(e,i){var o=this;return e.map(function(a){return o._visit(a,i)})}},{key:"visitCall",value:function(e,i){var o=this.leftMostSafeNode(e);if(o)return this.convertSafeAccess(e,o,i);var a=this.visitAll(e.args,Oi.Expression);if(e instanceof T_)return vs(i,e.converter(a));var s=e.receiver;if(s instanceof wh&&s.receiver instanceof qv&&!(s.receiver instanceof ZC)&&"$any"===s.name){if(1!==a.length)throw new Error("Invalid call to $any, expected 1 argument but received ".concat(a.length||"none"));return vs(i,a[0])}return vs(i,this._visit(s,Oi.Expression).callFn(a,this.convertSourceSpan(e.span)))}},{key:"visitSafeCall",value:function(e,i){return this.convertSafeAccess(e,this.leftMostSafeNode(e),i)}},{key:"_visit",value:function(e,i){return this._resultMap.get(e)||(this._nodeMap.get(e)||e).visit(this,i)}},{key:"convertSafeAccess",value:function(e,i,o){var a=this._visit(i.receiver,Oi.Expression),s=void 0;this.needsTemporaryInSafeAccess(i.receiver)&&(a=(s=this.allocateTemporary()).set(a),this._resultMap.set(i.receiver,s));var l=a.isBlank();i instanceof UC?this._nodeMap.set(i,new b_(i.span,i.sourceSpan,i.receiver,i.args,i.argumentSpan)):i instanceof $v?this._nodeMap.set(i,new Xv(i.span,i.sourceSpan,i.receiver,i.key)):this._nodeMap.set(i,new wh(i.span,i.sourceSpan,i.nameSpan,i.receiver,i.name));var u=this._visit(e,Oi.Expression);return this._nodeMap.delete(i),s&&this.releaseTemporary(s),vs(o,l.conditional(t_,u))}},{key:"convertNullishCoalesce",value:function(e,i){var o=this._visit(e.left,Oi.Expression),a=this._visit(e.right,Oi.Expression),s=this.allocateTemporary();return this.releaseTemporary(s),vs(i,s.set(o).notIdentical(t_).and(s.notIdentical(rn(void 0))).conditional(s,a))}},{key:"leftMostSafeNode",value:function(e){var i=this,o=function(s,l){return(i._nodeMap.get(l)||l).visit(s)};return e.visit({visitUnary:function(s){return null},visitBinary:function(s){return null},visitChain:function(s){return null},visitConditional:function(s){return null},visitCall:function(s){return o(this,s.receiver)},visitSafeCall:function(s){return o(this,s.receiver)||s},visitImplicitReceiver:function(s){return null},visitThisReceiver:function(s){return null},visitInterpolation:function(s){return null},visitKeyedRead:function(s){return o(this,s.receiver)},visitKeyedWrite:function(s){return null},visitLiteralArray:function(s){return null},visitLiteralMap:function(s){return null},visitLiteralPrimitive:function(s){return null},visitPipe:function(s){return null},visitPrefixNot:function(s){return null},visitNonNullAssert:function(s){return null},visitPropertyRead:function(s){return o(this,s.receiver)},visitPropertyWrite:function(s){return null},visitSafePropertyRead:function(s){return o(this,s.receiver)||s},visitSafeKeyedRead:function(s){return o(this,s.receiver)||s}})}},{key:"needsTemporaryInSafeAccess",value:function(e){var i=this,o=function(l,u){return u&&(i._nodeMap.get(u)||u).visit(l)};return e.visit({visitUnary:function(l){return o(this,l.expr)},visitBinary:function(l){return o(this,l.left)||o(this,l.right)},visitChain:function(l){return!1},visitConditional:function(l){return o(this,l.condition)||o(this,l.trueExp)||o(this,l.falseExp)},visitCall:function(l){return!0},visitSafeCall:function(l){return!0},visitImplicitReceiver:function(l){return!1},visitThisReceiver:function(l){return!1},visitInterpolation:function(l){return function(l,u){return u.some(function(d){return o(l,d)})}(this,l.expressions)},visitKeyedRead:function(l){return!1},visitKeyedWrite:function(l){return!1},visitLiteralArray:function(l){return!0},visitLiteralMap:function(l){return!0},visitLiteralPrimitive:function(l){return!1},visitPipe:function(l){return!0},visitPrefixNot:function(l){return o(this,l.expression)},visitNonNullAssert:function(l){return o(this,l.expression)},visitPropertyRead:function(l){return!1},visitPropertyWrite:function(l){return!1},visitSafePropertyRead:function(l){return!1},visitSafeKeyedRead:function(l){return!1}})}},{key:"allocateTemporary",value:function(){var e=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new ms(HC(this.bindingId,e))}},{key:"releaseTemporary",value:function(e){if(this._currentTemporary--,e.name!=HC(this.bindingId,this._currentTemporary))throw new Error("Temporary ".concat(e.name," released out of order"))}},{key:"convertSourceSpan",value:function(e){if(this.baseSourceSpan){var i=this.baseSourceSpan.start.moveBy(e.start),o=this.baseSourceSpan.start.moveBy(e.end),a=this.baseSourceSpan.fullStart.moveBy(e.start);return new Qa(i,o,a)}return null}},{key:"addImplicitReceiverAccess",value:function(e){this.implicitReceiverAccesses&&this.implicitReceiverAccesses.add(e)}}]),n}();function k_(n,r){Array.isArray(n)?n.forEach(function(e){return k_(e,r)}):r.push(n)}function JM(){throw new Error("Unsupported operation")}var ny,K5=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,H.Z)(this,e),(o=r.call(this,null,null)).args=i,o.isConstant=JM,o.isEquivalent=JM,o.visitExpression=JM,o}return(0,B.Z)(e)}(Pr),D3=function(){function n(r){(0,H.Z)(this,n),this.globals=r}return(0,B.Z)(n,[{key:"notifyImplicitReceiverUse",value:function(){}},{key:"maybeRestoreView",value:function(){}},{key:"getLocal",value:function(e){return e===KM.event.name?KM.event:null}}]),n}(),T_=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,i,o,new Wl(i,o),a,null)).converter=s,l}return(0,B.Z)(e)}(b_);function QM(){return ny||(ny={},GC(Hi.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),GC(Hi.STYLE,["*|style"]),GC(Hi.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),GC(Hi.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),ny}function GC(n,r){var i,e=(0,xn.Z)(r);try{for(e.s();!(i=e.n()).done;){var o=i.value;ny[o.toLowerCase()]=n}}catch(a){e.e(a)}finally{e.f()}}var M_=new Set(["sandbox","allow","allowfullscreen","referrerpolicy","csp","fetchpriority"]);function Nc(n){return M_.has(n.toLowerCase())}var q5=function(){function n(){(0,H.Z)(this,n),this.strictStyling=!0}return(0,B.Z)(n,[{key:"shimCssText",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=n4(e);e=Z3(e),e=this._insertDirectives(e);var s=this._scopeCssText(e,i,o);return[s].concat((0,pn.Z)(a)).join("\n")}},{key:"_insertDirectives",value:function(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)}},{key:"_insertPolyfillDirectivesInCssText",value:function(e){return e.replace(hV,function(){return(arguments.length<=2?void 0:arguments[2])+"{"})}},{key:"_insertPolyfillRulesInCssText",value:function(e){return e.replace(mV,function(){for(var i=arguments.length,o=new Array(i),a=0;a0;)for(var a=o.length,s=n.pop(),l=0;l-1)ut=a._applySimpleSelectorScope(Ve,i,o);else{var Ae=Ve.replace(S_,"");if(Ae.length>0){var ot=Ae.match(/([^:]*)(:*)(.*)/);ot&&(ut=ot[1]+l+ot[2]+ot[3])}}return ut},d=new J5(e),h="",g=0,Z=/( |>|\+|~(?!=))\s*/g,q=!((e=d.content()).indexOf(Mh)>-1);null!==(C=Z.exec(e));){var re=C[1],ae=e.slice(g,C.index).trim(),Se=(q=q||ae.indexOf(Mh)>-1)?u(ae):ae;h+="".concat(Se," ").concat(re," "),g=Z.lastIndex}var Ce=e.substring(g);return h+=(q=q||Ce.indexOf(Mh)>-1)?u(Ce):Ce,d.restore(h)}},{key:"_insertPolyfillHostInCssText",value:function(e){return e.replace($5,zC).replace(X5,$M)}}]),n}(),J5=function(){function n(r){var e=this;(0,H.Z)(this,n),this.placeholders=[],this.index=0,r=this._escapeRegexMatches(r,/(\[[^\]]*\])/g),r=this._escapeRegexMatches(r,/(\\.)/g),this._content=r.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(i,o,a){var s="__ph-".concat(e.index,"__");return e.placeholders.push(a),e.index++,o+s})}return(0,B.Z)(n,[{key:"restore",value:function(e){var i=this;return e.replace(/__ph-(\d+)__/g,function(o,a){return i.placeholders[+a]})}},{key:"content",value:function(){return this._content}},{key:"_escapeRegexMatches",value:function(e,i){var o=this;return e.replace(i,function(a,s){var l="__ph-".concat(o.index,"__");return o.placeholders.push(s),o.index++,l})}}]),n}(),hV=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,mV=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,XM=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,$M="-shadowcsshost",zC="-shadowcsscontext",A3="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",O3=new RegExp($M+A3,"gim"),Q5=new RegExp(zC+A3,"gim"),I3=new RegExp(zC+A3,"im"),Mh=$M+"-no-combinator",P3=/-shadowcsshost-no-combinator([^\s]*)/,rc=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],R3=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,L3="([>\\s~+[.,{:][\\s\\S]*)?$",S_=/-shadowcsshost/gim,X5=/:host/gim,$5=/:host-context/gim,e4=/\/\*[\s\S]*?\*\//g;function Z3(n){return n.replace(e4,"")}var t4=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;function n4(n){return n.match(t4)||[]}var eS="%BLOCK%",N3=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,B3=/%QUOTED%/g,F3=new Map([["{","}"]]),r4=new Map([['"','"'],["'","'"]]),tS=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.selector=r,this.content=e});function nS(n,r){var e=rS(n,r4,"%QUOTED%"),i=rS(e.escapedString,F3,eS),o=0,a=0;return i.escapedString.replace(N3,function(){var s=arguments.length<=2?void 0:arguments[2],l="",u=arguments.length<=4?void 0:arguments[4],d="";u&&u.startsWith("{"+eS)&&(l=i.blocks[o++],u=u.substring(eS.length+1),d="{");var h=r(new tS(s,l));return"".concat(arguments.length<=1?void 0:arguments[1]).concat(h.selector).concat(arguments.length<=3?void 0:arguments[3]).concat(d).concat(h.content).concat(u)}).replace(B3,function(){return e.blocks[a++]})}var i4=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.escapedString=r,this.blocks=e});function rS(n,r,e){for(var u,d,i=[],o=[],a=0,s=0,l=-1,h=0;h0,0===o?o=39:39===o&&92!==n.charCodeAt(e-1)&&(o=0);break;case 34:u=u||a>0,0===o?o=34:34===o&&92!==n.charCodeAt(e-1)&&(o=0);break;case 58:!l&&0===i&&0===o&&(l=oS(n.substring(s,e-1).trim()),a=e);break;case 59:if(l&&a>0&&0===i&&0===o){var h=n.substring(a,e-1).trim();r.push(l,u?iS(h):h),s=e,a=0,l=null,u=!1}}if(l&&a){var g=n.slice(a).trim();r.push(l,u?iS(g):g)}return r}(e),this._hasInitialValues=!0}},{key:"registerClassAttr",value:function(e){this._initialClassValues=e.trim().split(/\s+/g),this._hasInitialValues=!0}},{key:"populateInitialStylingAttrs",value:function(e){if(this._initialClassValues.length){e.push(rn(1));for(var i=0;i0?n.substring(0,e):"",r=!0);var i=null,o=n,a=n.lastIndexOf(".");return a>0&&(i=n.slice(a+1),o=n.substring(0,a)),{property:o,suffix:i,hasOverrideFlag:r}}function c4(n){switch(Sd(n)){case 1:return Le.styleProp;case 3:return Le.stylePropInterpolate1;case 5:return Le.stylePropInterpolate2;case 7:return Le.stylePropInterpolate3;case 9:return Le.stylePropInterpolate4;case 11:return Le.stylePropInterpolate5;case 13:return Le.stylePropInterpolate6;case 15:return Le.stylePropInterpolate7;case 17:return Le.stylePropInterpolate8;default:return Le.stylePropInterpolateV}}function aS(n){return n instanceof Yl&&(n=n.ast),n instanceof Wl}!function(n){n[n.Character=0]="Character",n[n.Identifier=1]="Identifier",n[n.PrivateIdentifier=2]="PrivateIdentifier",n[n.Keyword=3]="Keyword",n[n.String=4]="String",n[n.Operator=5]="Operator",n[n.Number=6]="Number",n[n.Error=7]="Error"}(Xr||(Xr={}));var f4=["var","let","as","null","undefined","true","false","if","else","this"],Id=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"tokenize",value:function(e){for(var i=new cS(e),o=[],a=i.scanToken();null!=a;)o.push(a),a=i.scanToken();return o}}]),n}(),Pd=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.index=r,this.end=e,this.type=i,this.numValue=o,this.strValue=a}return(0,B.Z)(n,[{key:"isCharacter",value:function(e){return this.type==Xr.Character&&this.numValue==e}},{key:"isNumber",value:function(){return this.type==Xr.Number}},{key:"isString",value:function(){return this.type==Xr.String}},{key:"isOperator",value:function(e){return this.type==Xr.Operator&&this.strValue==e}},{key:"isIdentifier",value:function(){return this.type==Xr.Identifier}},{key:"isPrivateIdentifier",value:function(){return this.type==Xr.PrivateIdentifier}},{key:"isKeyword",value:function(){return this.type==Xr.Keyword}},{key:"isKeywordLet",value:function(){return this.type==Xr.Keyword&&"let"==this.strValue}},{key:"isKeywordAs",value:function(){return this.type==Xr.Keyword&&"as"==this.strValue}},{key:"isKeywordNull",value:function(){return this.type==Xr.Keyword&&"null"==this.strValue}},{key:"isKeywordUndefined",value:function(){return this.type==Xr.Keyword&&"undefined"==this.strValue}},{key:"isKeywordTrue",value:function(){return this.type==Xr.Keyword&&"true"==this.strValue}},{key:"isKeywordFalse",value:function(){return this.type==Xr.Keyword&&"false"==this.strValue}},{key:"isKeywordThis",value:function(){return this.type==Xr.Keyword&&"this"==this.strValue}},{key:"isError",value:function(){return this.type==Xr.Error}},{key:"toNumber",value:function(){return this.type==Xr.Number?this.numValue:-1}},{key:"toString",value:function(){switch(this.type){case Xr.Character:case Xr.Identifier:case Xr.Keyword:case Xr.Operator:case Xr.PrivateIdentifier:case Xr.String:case Xr.Error:return this.strValue;case Xr.Number:return this.numValue.toString();default:return null}}}]),n}();function sS(n,r,e){return new Pd(n,r,Xr.Character,e,String.fromCharCode(e))}function lS(n,r,e){return new Pd(n,r,Xr.Operator,0,e)}var uS=new Pd(-1,-1,Xr.Character,0,""),cS=function(){function n(r){(0,H.Z)(this,n),this.input=r,this.peek=0,this.index=-1,this.length=r.length,this.advance()}return(0,B.Z)(n,[{key:"advance",value:function(){this.peek=++this.index>=this.length?0:this.input.charCodeAt(this.index)}},{key:"scanToken",value:function(){for(var e=this.input,i=this.length,o=this.peek,a=this.index;o<=32;){if(++a>=i){o=0;break}o=e.charCodeAt(a)}if(this.peek=o,this.index=a,a>=i)return null;if(dS(o))return this.scanIdentifier();if(jf(o))return this.scanNumber(a);var s=a;switch(o){case 46:return this.advance(),jf(this.peek)?this.scanNumber(s):sS(s,this.index,46);case 40:case 41:case Hf:case Lc:case 91:case 93:case 44:case 58:case 59:return this.scanCharacter(s,o);case 39:case 34:return this.scanString();case 35:return this.scanPrivateIdentifier();case 43:case 45:case 42:case 47:case 37:case 94:return this.scanOperator(s,String.fromCharCode(o));case 63:return this.scanQuestion(s);case 60:case 62:return this.scanComplexOperator(s,String.fromCharCode(o),61,"=");case 33:case 61:return this.scanComplexOperator(s,String.fromCharCode(o),61,"=",61,"=");case 38:return this.scanComplexOperator(s,"&",38,"&");case 124:return this.scanComplexOperator(s,"|",124,"|");case 160:for(;RM(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character [".concat(String.fromCharCode(o),"]"),0)}},{key:"scanCharacter",value:function(e,i){return this.advance(),sS(e,this.index,i)}},{key:"scanOperator",value:function(e,i){return this.advance(),lS(e,this.index,i)}},{key:"scanComplexOperator",value:function(e,i,o,a,s,l){this.advance();var u=i;return this.peek==o&&(this.advance(),u+=a),null!=s&&this.peek==s&&(this.advance(),u+=l),lS(e,this.index,u)}},{key:"scanIdentifier",value:function(){var e=this.index;for(this.advance();KC(this.peek);)this.advance();var i=this.input.substring(e,this.index);return f4.indexOf(i)>-1?function j3(n,r,e){return new Pd(n,r,Xr.Keyword,0,e)}(e,this.index,i):function H3(n,r,e){return new Pd(n,r,Xr.Identifier,0,e)}(e,this.index,i)}},{key:"scanPrivateIdentifier",value:function(){var e=this.index;if(this.advance(),!dS(this.peek))return this.error("Invalid character [#]",-1);for(;KC(this.peek);)this.advance();var i=this.input.substring(e,this.index);return function p4(n,r,e){return new Pd(n,r,Xr.PrivateIdentifier,0,e)}(e,this.index,i)}},{key:"scanNumber",value:function(e){var i=this.index===e,o=!1;for(this.advance();;){if(!jf(this.peek))if(95===this.peek){if(!jf(this.input.charCodeAt(this.index-1))||!jf(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);o=!0}else if(46===this.peek)i=!1;else{if(!fS(this.peek))break;if(this.advance(),ry(this.peek)&&this.advance(),!jf(this.peek))return this.error("Invalid exponent",-1);i=!1}this.advance()}var a=this.input.substring(e,this.index);o&&(a=a.replace(/_/g,""));var s=i?function z3(n){var r=parseInt(n);if(isNaN(r))throw new Error("Invalid integer literal when parsing "+n);return r}(a):parseFloat(a);return function m4(n,r,e){return new Pd(n,r,Xr.Number,e,"")}(e,this.index,s)}},{key:"scanString",value:function(){var e=this.index,i=this.peek;this.advance();for(var o="",a=this.index,s=this.input;this.peek!=i;)if(92==this.peek){o+=s.substring(a,this.index),this.advance();var l=void 0;if(this.peek=this.peek,117==this.peek){var u=s.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(u))return this.error("Invalid unicode escape [\\u".concat(u,"]"),0);l=parseInt(u,16);for(var d=0;d<5;d++)this.advance()}else l=G3(this.peek),this.advance();o+=String.fromCharCode(l),a=this.index}else{if(0==this.peek)return this.error("Unterminated quote",0);this.advance()}var h=s.substring(a,this.index);return this.advance(),function h4(n,r,e){return new Pd(n,r,Xr.String,0,e)}(e,this.index,o+h)}},{key:"scanQuestion",value:function(e){this.advance();var i="?";return(63===this.peek||46===this.peek)&&(i+=46===this.peek?".":"?",this.advance()),lS(e,this.index,i)}},{key:"error",value:function(e,i){var o=this.index+i;return function _4(n,r,e){return new Pd(n,r,Xr.Error,0,e)}(o,this.index,"Lexer Error: ".concat(e," at column ").concat(o," in expression [").concat(this.input,"]"))}}]),n}();function dS(n){return 97<=n&&n<=122||65<=n&&n<=90||95==n||36==n}function KC(n){return LM(n)||jf(n)||95==n||36==n}function fS(n){return 101==n||69==n}function ry(n){return 45==n||43==n}function G3(n){switch(n){case 110:return 10;case 102:return 12;case 114:return 13;case 116:return 9;case 118:return 11;default:return n}}var Sh,v4=(0,B.Z)(function n(r,e,i){(0,H.Z)(this,n),this.strings=r,this.expressions=e,this.offsets=i}),E_=(0,B.Z)(function n(r,e,i){(0,H.Z)(this,n),this.templateBindings=r,this.warnings=e,this.errors=i}),pS=function(){function n(r){(0,H.Z)(this,n),this._lexer=r,this.errors=[]}return(0,B.Z)(n,[{key:"parseAction",value:function(e,i,o,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:wu;this._checkNoInterpolation(e,o,s);var l=this._stripComments(e),u=this._lexer.tokenize(l),d=1;i&&(d|=2);var h=new zf(e,o,a,u,d,this.errors,0).parseChain();return new Yl(h,e,o,a,this.errors)}},{key:"parseBinding",value:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:wu,s=this._parseBindingAst(e,i,o,a);return new Yl(s,e,i,o,this.errors)}},{key:"checkSimpleExpression",value:function(e){var i=new ic;return e.visit(i),i.errors}},{key:"parseSimpleBinding",value:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:wu,s=this._parseBindingAst(e,i,o,a),l=this.checkSimpleExpression(s);return l.length>0&&this._reportError("Host binding expression cannot contain ".concat(l.join(" ")),e,i),new Yl(s,e,i,o,this.errors)}},{key:"_reportError",value:function(e,i,o,a){this.errors.push(new bh(e,i,o,a))}},{key:"_parseBindingAst",value:function(e,i,o,a){this._checkNoInterpolation(e,i,a);var s=this._stripComments(e),l=this._lexer.tokenize(s);return new zf(e,i,o,l,0,this.errors,0).parseChain()}},{key:"parseTemplateBindings",value:function(e,i,o,a,s){var l=this._lexer.tokenize(i);return new zf(i,o,s,l,0,this.errors,0).parseTemplateBindings({source:e,span:new Su(a,a+e.length)})}},{key:"parseInterpolation",value:function(e,i,o,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:wu,l=this.splitInterpolation(e,i,a,s),u=l.strings,d=l.expressions,h=l.offsets;if(0===d.length)return null;for(var g=[],C=0;C3&&void 0!==arguments[3]?arguments[3]:wu,l=[],u=[],d=[],h=o?W3(o):null,g=0,C=!1,Z=!1,z=a.start,q=a.end;g-1)break}}catch(C){d.e(C)}finally{d.f()}l>-1&&u>-1&&this._reportError("Got interpolation (".concat(a).concat(s,") where expression was expected"),e,"at column ".concat(l," in"),i)}},{key:"_getInterpolationEndIndex",value:function(e,i,o){var s,a=(0,xn.Z)(this._forEachUnquotedChar(e,o));try{for(a.s();!(s=a.n()).done;){var l=s.value;if(e.startsWith(i,l))return l;if(e.startsWith("//",l))return e.indexOf(i,l)}}catch(u){a.e(u)}finally{a.f()}return-1}},{key:"_forEachUnquotedChar",value:Rn().mark(function r(e,i){var o,a,s,l;return Rn().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:o=null,a=0,s=i;case 3:if(!(s=this.tokens.length}},{key:"inputIndex",get:function(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}},{key:"currentEndIndex",get:function(){return this.index>0?this.peek(-1).end+this.offset:0===this.tokens.length?this.input.length+this.offset:this.next.index+this.offset}},{key:"currentAbsoluteOffset",get:function(){return this.absoluteOffset+this.inputIndex}},{key:"span",value:function(e,i){var o=this.currentEndIndex;if(void 0!==i&&i>this.currentEndIndex&&(o=i),e>o){var a=o;o=e,e=a}return new Ch(e,o)}},{key:"sourceSpan",value:function(e,i){var o="".concat(e,"@").concat(this.inputIndex,":").concat(i);return this.sourceSpanCache.has(o)||this.sourceSpanCache.set(o,this.span(e,i).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(o)}},{key:"advance",value:function(){this.index++}},{key:"withContext",value:function(e,i){this.context|=e;var o=i();return this.context^=e,o}},{key:"consumeOptionalCharacter",value:function(e){return!!this.next.isCharacter(e)&&(this.advance(),!0)}},{key:"peekKeywordLet",value:function(){return this.next.isKeywordLet()}},{key:"peekKeywordAs",value:function(){return this.next.isKeywordAs()}},{key:"expectCharacter",value:function(e){this.consumeOptionalCharacter(e)||this.error("Missing expected ".concat(String.fromCharCode(e)))}},{key:"consumeOptionalOperator",value:function(e){return!!this.next.isOperator(e)&&(this.advance(),!0)}},{key:"expectOperator",value:function(e){this.consumeOptionalOperator(e)||this.error("Missing expected operator ".concat(e))}},{key:"prettyPrintToken",value:function(e){return e===uS?"end of input":"token ".concat(e)}},{key:"expectIdentifierOrKeyword",value:function(){var e=this.next;return e.isIdentifier()||e.isKeyword()?(this.advance(),e.toString()):(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error("Unexpected ".concat(this.prettyPrintToken(e),", expected identifier or keyword")),null)}},{key:"expectIdentifierOrKeywordOrString",value:function(){var e=this.next;return e.isIdentifier()||e.isKeyword()||e.isString()?(this.advance(),e.toString()):(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error("Unexpected ".concat(this.prettyPrintToken(e),", expected identifier, keyword, or string")),"")}},{key:"parseChain",value:function(){for(var e=[],i=this.inputIndex;this.index":case"<=":case">=":this.advance();var a=this.parseAdditive();i=new Vl(this.span(e),this.sourceSpan(e),o,i,a);continue}break}return i}},{key:"parseAdditive",value:function(){for(var e=this.inputIndex,i=this.parseMultiplicative();this.next.type==Xr.Operator;){var o=this.next.strValue;switch(o){case"+":case"-":this.advance();var a=this.parseMultiplicative();i=new Vl(this.span(e),this.sourceSpan(e),o,i,a);continue}break}return i}},{key:"parseMultiplicative",value:function(){for(var e=this.inputIndex,i=this.parsePrefix();this.next.type==Xr.Operator;){var o=this.next.strValue;switch(o){case"*":case"%":case"/":this.advance();var a=this.parsePrefix();i=new Vl(this.span(e),this.sourceSpan(e),o,i,a);continue}break}return i}},{key:"parsePrefix",value:function(){if(this.next.type==Xr.Operator){var o,e=this.inputIndex;switch(this.next.strValue){case"+":return this.advance(),o=this.parsePrefix(),Mu.createPlus(this.span(e),this.sourceSpan(e),o);case"-":return this.advance(),o=this.parsePrefix(),Mu.createMinus(this.span(e),this.sourceSpan(e),o);case"!":return this.advance(),o=this.parsePrefix(),new FC(this.span(e),this.sourceSpan(e),o)}}return this.parseCallChain()}},{key:"parseCallChain",value:function(){for(var e=this.inputIndex,i=this.parsePrimary();;)if(this.consumeOptionalCharacter(46))i=this.parseAccessMember(i,e,!1);else if(this.consumeOptionalOperator("?."))i=this.consumeOptionalCharacter(40)?this.parseCall(i,e,!0):this.consumeOptionalCharacter(91)?this.parseKeyedReadOrWrite(i,e,!0):this.parseAccessMember(i,e,!0);else if(this.consumeOptionalCharacter(91))i=this.parseKeyedReadOrWrite(i,e,!1);else if(this.consumeOptionalCharacter(40))i=this.parseCall(i,e,!1);else{if(!this.consumeOptionalOperator("!"))return i;i=new ey(this.span(e),this.sourceSpan(e),i)}}},{key:"parsePrimary",value:function(){var e=this.inputIndex;if(this.consumeOptionalCharacter(40)){this.rparensExpected++;var i=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),i}if(this.next.isKeywordNull())return this.advance(),new Xs(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new Xs(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new Xs(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new Xs(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new ZC(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(91)){this.rbracketsExpected++;var o=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new kh(this.span(e),this.sourceSpan(e),o)}if(this.next.isCharacter(Hf))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new qv(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){var a=this.next.toNumber();return this.advance(),new Xs(this.span(e),this.sourceSpan(e),a)}if(this.next.isString()){var s=this.next.toString();return this.advance(),new Xs(this.span(e),this.sourceSpan(e),s)}return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new Wl(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error("Unexpected end of expression: ".concat(this.input)),new Wl(this.span(e),this.sourceSpan(e))):(this.error("Unexpected token ".concat(this.next)),new Wl(this.span(e),this.sourceSpan(e)))}},{key:"parseExpressionList",value:function(e){var i=[];do{if(this.next.isCharacter(e))break;i.push(this.parsePipe())}while(this.consumeOptionalCharacter(44));return i}},{key:"parseLiteralMap",value:function(){var e=[],i=[],o=this.inputIndex;if(this.expectCharacter(Hf),!this.consumeOptionalCharacter(Lc)){this.rbracesExpected++;do{var a=this.inputIndex,s=this.next.isString(),l=this.expectIdentifierOrKeywordOrString();if(e.push({key:l,quoted:s}),s)this.expectCharacter(58),i.push(this.parsePipe());else if(this.consumeOptionalCharacter(58))i.push(this.parsePipe());else{var u=this.span(a),d=this.sourceSpan(a);i.push(new wh(u,d,d,new qv(u,d),l))}}while(this.consumeOptionalCharacter(44));this.rbracesExpected--,this.expectCharacter(Lc)}return new zM(this.span(o),this.sourceSpan(o),e,i)}},{key:"parseAccessMember",value:function(e,i,o){var d,a=this,s=this.inputIndex,l=this.withContext(Sh.Writable,function(){var g,C=null!==(g=a.expectIdentifierOrKeyword())&&void 0!==g?g:"";return 0===C.length&&a.error("Expected identifier for property access",e.span.end),C}),u=this.sourceSpan(s);if(o)this.consumeOptionalAssignment()?(this.error("The '?.' operator cannot be used in the assignment"),d=new Wl(this.span(i),this.sourceSpan(i))):d=new Qv(this.span(i),this.sourceSpan(i),u,e,l);else if(this.consumeOptionalAssignment()){if(!(1&this.parseFlags))return this.error("Bindings cannot contain assignments"),new Wl(this.span(i),this.sourceSpan(i));var h=this.parseConditional();d=new GM(this.span(i),this.sourceSpan(i),u,e,l,h)}else d=new wh(this.span(i),this.sourceSpan(i),u,e,l);return d}},{key:"parseCall",value:function(e,i,o){var a=this.inputIndex;this.rparensExpected++;var s=this.parseCallArguments(),l=this.span(a,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(41),this.rparensExpected--;var u=this.span(i),d=this.sourceSpan(i);return o?new UC(u,d,e,s,l):new b_(u,d,e,s,l)}},{key:"consumeOptionalAssignment",value:function(){return 2&this.parseFlags&&this.next.isOperator("!")&&this.peek(1).isOperator("=")?(this.advance(),this.advance(),!0):this.consumeOptionalOperator("=")}},{key:"parseCallArguments",value:function(){if(this.next.isCharacter(41))return[];var e=[];do{e.push(this.parsePipe())}while(this.consumeOptionalCharacter(44));return e}},{key:"expectTemplateBindingKey",value:function(){var e="",i=!1,o=this.currentAbsoluteOffset;do{e+=this.expectIdentifierOrKeywordOrString(),(i=this.consumeOptionalOperator("-"))&&(e+="-")}while(i);return{source:e,span:new Su(o,o+e.length)}}},{key:"parseTemplateBindings",value:function(e){var i=[];for(i.push.apply(i,(0,pn.Z)(this.parseDirectiveKeywordBindings(e)));this.index1&&void 0!==arguments[1]?arguments[1]:null;this.errors.push(new bh(e,this.input,this.locationText(i),this.location)),this.skip()}},{key:"locationText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null==e&&(e=this.index),e5&&void 0!==arguments[5]?arguments[5]:null,h=arguments.length>6?arguments[6]:void 0;return(0,H.Z)(this,e),(u=r.call(this,s,h)).name=i,u.attrs=o,u.children=a,u.startSourceSpan=l,u.endSourceSpan=d,u}return(0,B.Z)(e,[{key:"visit",value:function(o,a){return o.visitElement(this,a)}}]),e}(iy),mS=function(){function n(r,e){(0,H.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,B.Z)(n,[{key:"visit",value:function(e,i){return e.visitComment(this,i)}}]),n}();function xu(n,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=[],o=n.visit?function(a){return n.visit(a,e)||a.visit(n,e)}:function(a){return a.visit(n,e)};return r.forEach(function(a){var s=o(a);s&&i.push(s)}),i}var Eh={AElig:"\xc6",AMP:"&",amp:"&",Aacute:"\xc1",Abreve:"\u0102",Acirc:"\xc2",Acy:"\u0410",Afr:"\ud835\udd04",Agrave:"\xc0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2a53",Aogon:"\u0104",Aopf:"\ud835\udd38",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xc5",angst:"\xc5",Ascr:"\ud835\udc9c",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xc3",Auml:"\xc4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2ae7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212c",Bscr:"\u212c",bernou:"\u212c",Beta:"\u0392",Bfr:"\ud835\udd05",Bopf:"\ud835\udd39",Breve:"\u02d8",breve:"\u02d8",Bumpeq:"\u224e",HumpDownHump:"\u224e",bump:"\u224e",CHcy:"\u0427",COPY:"\xa9",copy:"\xa9",Cacute:"\u0106",Cap:"\u22d2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212d",Cfr:"\u212d",Ccaron:"\u010c",Ccedil:"\xc7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010a",Cedilla:"\xb8",cedil:"\xb8",CenterDot:"\xb7",centerdot:"\xb7",middot:"\xb7",Chi:"\u03a7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201d",rdquo:"\u201d",rdquor:"\u201d",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2a74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222f",DoubleContourIntegral:"\u222f",ContourIntegral:"\u222e",conint:"\u222e",oint:"\u222e",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2a2f",Cscr:"\ud835\udc9e",Cup:"\u22d3",CupCap:"\u224d",asympeq:"\u224d",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040f",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21a1",Dashv:"\u2ae4",DoubleLeftTee:"\u2ae4",Dcaron:"\u010e",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\ud835\udd07",DiacriticalAcute:"\xb4",acute:"\xb4",DiacriticalDot:"\u02d9",dot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",dblac:"\u02dd",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02dc",tilde:"\u02dc",Diamond:"\u22c4",diam:"\u22c4",diamond:"\u22c4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\ud835\udd3b",Dot:"\xa8",DoubleDot:"\xa8",die:"\xa8",uml:"\xa8",DotDot:"\u20dc",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21d3",Downarrow:"\u21d3",dArr:"\u21d3",DoubleLeftArrow:"\u21d0",Leftarrow:"\u21d0",lArr:"\u21d0",DoubleLeftRightArrow:"\u21d4",Leftrightarrow:"\u21d4",hArr:"\u21d4",iff:"\u21d4",DoubleLongLeftArrow:"\u27f8",Longleftarrow:"\u27f8",xlArr:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",Longleftrightarrow:"\u27fa",xhArr:"\u27fa",DoubleLongRightArrow:"\u27f9",Longrightarrow:"\u27f9",xrArr:"\u27f9",DoubleRightArrow:"\u21d2",Implies:"\u21d2",Rightarrow:"\u21d2",rArr:"\u21d2",DoubleRightTee:"\u22a8",vDash:"\u22a8",DoubleUpArrow:"\u21d1",Uparrow:"\u21d1",uArr:"\u21d1",DoubleUpDownArrow:"\u21d5",Updownarrow:"\u21d5",vArr:"\u21d5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",duarr:"\u21f5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",leftharpoondown:"\u21bd",lhard:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",rhard:"\u21c1",rightharpoondown:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",top:"\u22a4",DownTeeArrow:"\u21a7",mapstodown:"\u21a7",Dscr:"\ud835\udc9f",Dstrok:"\u0110",ENG:"\u014a",ETH:"\xd0",Eacute:"\xc9",Ecaron:"\u011a",Ecirc:"\xca",Ecy:"\u042d",Edot:"\u0116",Efr:"\ud835\udd08",Egrave:"\xc8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25fb",EmptyVerySmallSquare:"\u25ab",Eogon:"\u0118",Eopf:"\ud835\udd3c",Epsilon:"\u0395",Equal:"\u2a75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21cc",rightleftharpoons:"\u21cc",rlhar:"\u21cc",Escr:"\u2130",expectation:"\u2130",Esim:"\u2a73",Eta:"\u0397",Euml:"\xcb",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\ud835\udd09",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",blacksquare:"\u25aa",squarf:"\u25aa",squf:"\u25aa",Fopf:"\ud835\udd3d",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03dc",Gbreve:"\u011e",Gcedil:"\u0122",Gcirc:"\u011c",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\ud835\udd0a",Gg:"\u22d9",ggg:"\u22d9",Gopf:"\ud835\udd3e",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22db",gel:"\u22db",gtreqless:"\u22db",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2a7e",geqslant:"\u2a7e",ges:"\u2a7e",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\ud835\udca2",Gt:"\u226b",NestedGreaterGreater:"\u226b",gg:"\u226b",HARDcy:"\u042a",Hacek:"\u02c7",caron:"\u02c7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210c",Poincareplane:"\u210c",HilbertSpace:"\u210b",Hscr:"\u210b",hamilt:"\u210b",Hopf:"\u210d",quaternions:"\u210d",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224f",bumpe:"\u224f",bumpeq:"\u224f",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xcd",Icirc:"\xce",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xcc",Imacr:"\u012a",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222c",Integral:"\u222b",int:"\u222b",Intersection:"\u22c2",bigcap:"\u22c2",xcap:"\u22c2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012e",Iopf:"\ud835\udd40",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xcf",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\ud835\udd0d",Jopf:"\ud835\udd41",Jscr:"\ud835\udca5",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040c",Kappa:"\u039a",Kcedil:"\u0136",Kcy:"\u041a",Kfr:"\ud835\udd0e",Kopf:"\ud835\udd42",Kscr:"\ud835\udca6",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039b",Lang:"\u27ea",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219e",twoheadleftarrow:"\u219e",Lcaron:"\u013d",Lcedil:"\u013b",Lcy:"\u041b",LeftAngleBracket:"\u27e8",lang:"\u27e8",langle:"\u27e8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21e4",larrb:"\u21e4",LeftArrowRightArrow:"\u21c6",leftrightarrows:"\u21c6",lrarr:"\u21c6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27e6",lobrk:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",dharl:"\u21c3",downharpoonleft:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",lfloor:"\u230a",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294e",LeftTee:"\u22a3",dashv:"\u22a3",LeftTeeArrow:"\u21a4",mapstoleft:"\u21a4",LeftTeeVector:"\u295a",LeftTriangle:"\u22b2",vartriangleleft:"\u22b2",vltri:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",ltrie:"\u22b4",trianglelefteq:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",uharl:"\u21bf",upharpoonleft:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",leftharpoonup:"\u21bc",lharu:"\u21bc",LeftVectorBar:"\u2952",LessEqualGreater:"\u22da",leg:"\u22da",lesseqgtr:"\u22da",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2aa1",LessSlantEqual:"\u2a7d",leqslant:"\u2a7d",les:"\u2a7d",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\ud835\udd0f",Ll:"\u22d8",Lleftarrow:"\u21da",lAarr:"\u21da",Lmidot:"\u013f",LongLeftArrow:"\u27f5",longleftarrow:"\u27f5",xlarr:"\u27f5",LongLeftRightArrow:"\u27f7",longleftrightarrow:"\u27f7",xharr:"\u27f7",LongRightArrow:"\u27f6",longrightarrow:"\u27f6",xrarr:"\u27f6",Lopf:"\ud835\udd43",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21b0",lsh:"\u21b0",Lstrok:"\u0141",Lt:"\u226a",NestedLessLess:"\u226a",ll:"\u226a",Map:"\u2905",Mcy:"\u041c",MediumSpace:"\u205f",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\ud835\udd10",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\ud835\udd44",Mu:"\u039c",NJcy:"\u040a",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041d",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",ZeroWidthSpace:"\u200b",NewLine:"\n",Nfr:"\ud835\udd11",NoBreak:"\u2060",NonBreakingSpace:"\xa0",nbsp:"\xa0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2aec",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226f",ngt:"\u226f",ngtr:"\u226f",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",nGtv:"\u226b\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224e\u0338",nbump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",nbumpe:"\u224f\u0338",NotLeftTriangle:"\u22ea",nltri:"\u22ea",ntriangleleft:"\u22ea",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangleEqual:"\u22ec",nltrie:"\u22ec",ntrianglelefteq:"\u22ec",NotLess:"\u226e",nless:"\u226e",nlt:"\u226e",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226a\u0338",nLtv:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",npre:"\u2aaf\u0338",npreceq:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",nprcue:"\u22e0",NotReverseElement:"\u220c",notni:"\u220c",notniva:"\u220c",NotRightTriangle:"\u22eb",nrtri:"\u22eb",ntriangleright:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",nrtrie:"\u22ed",ntrianglerighteq:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",nsqsube:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",nsqsupe:"\u22e3",NotSubset:"\u2282\u20d2",nsubset:"\u2282\u20d2",vnsub:"\u2282\u20d2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",nsce:"\u2ab0\u0338",nsucceq:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",nsccue:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",nsupset:"\u2283\u20d2",vnsup:"\u2283\u20d2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\ud835\udca9",Ntilde:"\xd1",Nu:"\u039d",OElig:"\u0152",Oacute:"\xd3",Ocirc:"\xd4",Ocy:"\u041e",Odblac:"\u0150",Ofr:"\ud835\udd12",Ograve:"\xd2",Omacr:"\u014c",Omega:"\u03a9",ohm:"\u03a9",Omicron:"\u039f",Oopf:"\ud835\udd46",OpenCurlyDoubleQuote:"\u201c",ldquo:"\u201c",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2a54",Oscr:"\ud835\udcaa",Oslash:"\xd8",Otilde:"\xd5",Otimes:"\u2a37",Ouml:"\xd6",OverBar:"\u203e",oline:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",tbrk:"\u23b4",OverParenthesis:"\u23dc",PartialD:"\u2202",part:"\u2202",Pcy:"\u041f",Pfr:"\ud835\udd13",Phi:"\u03a6",Pi:"\u03a0",PlusMinus:"\xb1",plusmn:"\xb1",pm:"\xb1",Popf:"\u2119",primes:"\u2119",Pr:"\u2abb",Precedes:"\u227a",pr:"\u227a",prec:"\u227a",PrecedesEqual:"\u2aaf",pre:"\u2aaf",preceq:"\u2aaf",PrecedesSlantEqual:"\u227c",prcue:"\u227c",preccurlyeq:"\u227c",PrecedesTilde:"\u227e",precsim:"\u227e",prsim:"\u227e",Prime:"\u2033",Product:"\u220f",prod:"\u220f",Proportional:"\u221d",prop:"\u221d",propto:"\u221d",varpropto:"\u221d",vprop:"\u221d",Pscr:"\ud835\udcab",Psi:"\u03a8",QUOT:'"',quot:'"',Qfr:"\ud835\udd14",Qopf:"\u211a",rationals:"\u211a",Qscr:"\ud835\udcac",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xae",circledR:"\xae",reg:"\xae",Racute:"\u0154",Rang:"\u27eb",Rarr:"\u21a0",twoheadrightarrow:"\u21a0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211c",Rfr:"\u211c",real:"\u211c",realpart:"\u211c",ReverseElement:"\u220b",SuchThat:"\u220b",ni:"\u220b",niv:"\u220b",ReverseEquilibrium:"\u21cb",leftrightharpoons:"\u21cb",lrhar:"\u21cb",ReverseUpEquilibrium:"\u296f",duhar:"\u296f",Rho:"\u03a1",RightAngleBracket:"\u27e9",rang:"\u27e9",rangle:"\u27e9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21e5",rarrb:"\u21e5",RightArrowLeftArrow:"\u21c4",rightleftarrows:"\u21c4",rlarr:"\u21c4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27e7",robrk:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",dharr:"\u21c2",downharpoonright:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",rfloor:"\u230b",RightTee:"\u22a2",vdash:"\u22a2",RightTeeArrow:"\u21a6",map:"\u21a6",mapsto:"\u21a6",RightTeeVector:"\u295b",RightTriangle:"\u22b3",vartriangleright:"\u22b3",vrtri:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",rtrie:"\u22b5",trianglerighteq:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",uharr:"\u21be",upharpoonright:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",rharu:"\u21c0",rightharpoonup:"\u21c0",RightVectorBar:"\u2953",Ropf:"\u211d",reals:"\u211d",RoundImplies:"\u2970",Rrightarrow:"\u21db",rAarr:"\u21db",Rscr:"\u211b",realine:"\u211b",Rsh:"\u21b1",rsh:"\u21b1",RuleDelayed:"\u29f4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042c",Sacute:"\u015a",Sc:"\u2abc",Scaron:"\u0160",Scedil:"\u015e",Scirc:"\u015c",Scy:"\u0421",Sfr:"\ud835\udd16",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03a3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\ud835\udd4a",Sqrt:"\u221a",radic:"\u221a",Square:"\u25a1",squ:"\u25a1",square:"\u25a1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228f",sqsub:"\u228f",sqsubset:"\u228f",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\ud835\udcae",Star:"\u22c6",sstarf:"\u22c6",Sub:"\u22d0",Subset:"\u22d0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227b",sc:"\u227b",succ:"\u227b",SucceedsEqual:"\u2ab0",sce:"\u2ab0",succeq:"\u2ab0",SucceedsSlantEqual:"\u227d",sccue:"\u227d",succcurlyeq:"\u227d",SucceedsTilde:"\u227f",scsim:"\u227f",succsim:"\u227f",Sum:"\u2211",sum:"\u2211",Sup:"\u22d1",Supset:"\u22d1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xde",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040b",TScy:"\u0426",Tab:"\t",Tau:"\u03a4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\ud835\udd17",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205f\u200a",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223c",sim:"\u223c",thicksim:"\u223c",thksim:"\u223c",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\ud835\udd4b",TripleDot:"\u20db",tdot:"\u20db",Tscr:"\ud835\udcaf",Tstrok:"\u0166",Uacute:"\xda",Uarr:"\u219f",Uarrocir:"\u2949",Ubrcy:"\u040e",Ubreve:"\u016c",Ucirc:"\xdb",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\ud835\udd18",Ugrave:"\xd9",Umacr:"\u016a",UnderBar:"_",lowbar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",bbrk:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",bigcup:"\u22c3",xcup:"\u22c3",UnionPlus:"\u228e",uplus:"\u228e",Uogon:"\u0172",Uopf:"\ud835\udd4c",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",udarr:"\u21c5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296e",udhar:"\u296e",UpTee:"\u22a5",bot:"\u22a5",bottom:"\u22a5",perp:"\u22a5",UpTeeArrow:"\u21a5",mapstoup:"\u21a5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03d2",upsih:"\u03d2",Upsilon:"\u03a5",Uring:"\u016e",Uscr:"\ud835\udcb0",Utilde:"\u0168",Uuml:"\xdc",VDash:"\u22ab",Vbar:"\u2aeb",Vcy:"\u0412",Vdash:"\u22a9",Vdashl:"\u2ae6",Vee:"\u22c1",bigvee:"\u22c1",xvee:"\u22c1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200a",hairsp:"\u200a",Vfr:"\ud835\udd19",Vopf:"\ud835\udd4d",Vscr:"\ud835\udcb1",Vvdash:"\u22aa",Wcirc:"\u0174",Wedge:"\u22c0",bigwedge:"\u22c0",xwedge:"\u22c0",Wfr:"\ud835\udd1a",Wopf:"\ud835\udd4e",Wscr:"\ud835\udcb2",Xfr:"\ud835\udd1b",Xi:"\u039e",Xopf:"\ud835\udd4f",Xscr:"\ud835\udcb3",YAcy:"\u042f",YIcy:"\u0407",YUcy:"\u042e",Yacute:"\xdd",Ycirc:"\u0176",Ycy:"\u042b",Yfr:"\ud835\udd1c",Yopf:"\ud835\udd50",Yscr:"\ud835\udcb4",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017d",Zcy:"\u0417",Zdot:"\u017b",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\ud835\udcb5",aacute:"\xe1",abreve:"\u0103",ac:"\u223e",mstpos:"\u223e",acE:"\u223e\u0333",acd:"\u223f",acirc:"\xe2",acy:"\u0430",aelig:"\xe6",afr:"\ud835\udd1e",agrave:"\xe0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03b1",amacr:"\u0101",amalg:"\u2a3f",and:"\u2227",wedge:"\u2227",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",angle:"\u2220",ange:"\u29a4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angzarr:"\u237c",aogon:"\u0105",aopf:"\ud835\udd52",apE:"\u2a70",apacir:"\u2a6f",ape:"\u224a",approxeq:"\u224a",apid:"\u224b",apos:"'",aring:"\xe5",ascr:"\ud835\udcb6",ast:"*",midast:"*",atilde:"\xe3",auml:"\xe4",awint:"\u2a11",bNot:"\u2aed",backcong:"\u224c",bcong:"\u224c",backepsilon:"\u03f6",bepsi:"\u03f6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223d",bsim:"\u223d",backsimeq:"\u22cd",bsime:"\u22cd",barvee:"\u22bd",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23b6",bcy:"\u0431",bdquo:"\u201e",ldquor:"\u201e",bemptyv:"\u29b0",beta:"\u03b2",beth:"\u2136",between:"\u226c",twixt:"\u226c",bfr:"\ud835\udd1f",bigcirc:"\u25ef",xcirc:"\u25ef",bigodot:"\u2a00",xodot:"\u2a00",bigoplus:"\u2a01",xoplus:"\u2a01",bigotimes:"\u2a02",xotime:"\u2a02",bigsqcup:"\u2a06",xsqcup:"\u2a06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25bd",xdtri:"\u25bd",bigtriangleup:"\u25b3",xutri:"\u25b3",biguplus:"\u2a04",xuplus:"\u2a04",bkarow:"\u290d",rbarr:"\u290d",blacklozenge:"\u29eb",lozf:"\u29eb",blacktriangle:"\u25b4",utrif:"\u25b4",blacktriangledown:"\u25be",dtrif:"\u25be",blacktriangleleft:"\u25c2",ltrif:"\u25c2",blacktriangleright:"\u25b8",rtrif:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bnot:"\u2310",bopf:"\ud835\udd53",bowtie:"\u22c8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255d",boxUR:"\u255a",boxUl:"\u255c",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256c",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256b",boxVl:"\u2562",boxVr:"\u255f",boxbox:"\u29c9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250c",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252c",boxhu:"\u2534",boxminus:"\u229f",minusb:"\u229f",boxplus:"\u229e",plusb:"\u229e",boxtimes:"\u22a0",timesb:"\u22a0",boxuL:"\u255b",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256a",boxvL:"\u2561",boxvR:"\u255e",boxvh:"\u253c",boxvl:"\u2524",boxvr:"\u251c",brvbar:"\xa6",bscr:"\ud835\udcb7",bsemi:"\u204f",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2aae",cacute:"\u0107",cap:"\u2229",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",caps:"\u2229\ufe00",caret:"\u2041",ccaps:"\u2a4d",ccaron:"\u010d",ccedil:"\xe7",ccirc:"\u0109",ccups:"\u2a4c",ccupssm:"\u2a50",cdot:"\u010b",cemptyv:"\u29b2",cent:"\xa2",cfr:"\ud835\udd20",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03c7",cir:"\u25cb",cirE:"\u29c3",circ:"\u02c6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21ba",olarr:"\u21ba",circlearrowright:"\u21bb",orarr:"\u21bb",circledS:"\u24c8",oS:"\u24c8",circledast:"\u229b",oast:"\u229b",circledcirc:"\u229a",ocir:"\u229a",circleddash:"\u229d",odash:"\u229d",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2a6d",copf:"\ud835\udd54",copysr:"\u2117",crarr:"\u21b5",cross:"\u2717",cscr:"\ud835\udcb8",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",curlyeqprec:"\u22de",cuesc:"\u22df",curlyeqsucc:"\u22df",cularr:"\u21b6",curvearrowleft:"\u21b6",cularrp:"\u293d",cup:"\u222a",cupbrcap:"\u2a48",cupcap:"\u2a46",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curvearrowright:"\u21b7",curarrm:"\u293c",curlyvee:"\u22ce",cuvee:"\u22ce",curlywedge:"\u22cf",cuwed:"\u22cf",curren:"\xa4",cwint:"\u2231",cylcty:"\u232d",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290f",rBarr:"\u290f",dcaron:"\u010f",dcy:"\u0434",ddarr:"\u21ca",downdownarrows:"\u21ca",ddotseq:"\u2a77",eDDot:"\u2a77",deg:"\xb0",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",dfr:"\ud835\udd21",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03dd",gammad:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",djcy:"\u0452",dlcorn:"\u231e",llcorner:"\u231e",dlcrop:"\u230d",dollar:"$",dopf:"\ud835\udd55",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22a1",sdotb:"\u22a1",drcorn:"\u231f",lrcorner:"\u231f",drcrop:"\u230c",dscr:"\ud835\udcb9",dscy:"\u0455",dsol:"\u29f6",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",triangledown:"\u25bf",dwangle:"\u29a6",dzcy:"\u045f",dzigrarr:"\u27ff",eacute:"\xe9",easter:"\u2a6e",ecaron:"\u011b",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xea",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044d",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\ud835\udd22",eg:"\u2a9a",egrave:"\xe8",egs:"\u2a96",eqslantgtr:"\u2a96",egsdot:"\u2a98",el:"\u2a99",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",eqslantless:"\u2a95",elsdot:"\u2a97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014b",ensp:"\u2002",eogon:"\u0119",eopf:"\ud835\udd56",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",epsilon:"\u03b5",epsiv:"\u03f5",straightepsilon:"\u03f5",varepsilon:"\u03f5",equals:"=",equest:"\u225f",questeq:"\u225f",equivDD:"\u2a78",eqvparsl:"\u29e5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212f",eta:"\u03b7",eth:"\xf0",euml:"\xeb",euro:"\u20ac",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",ffr:"\ud835\udd23",filig:"\ufb01",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",fopf:"\ud835\udd57",fork:"\u22d4",pitchfork:"\u22d4",forkv:"\u2ad9",fpartint:"\u2a0d",frac12:"\xbd",half:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\ud835\udcbb",gEl:"\u2a8c",gtreqqless:"\u2a8c",gacute:"\u01f5",gamma:"\u03b3",gap:"\u2a86",gtrapprox:"\u2a86",gbreve:"\u011f",gcirc:"\u011d",gcy:"\u0433",gdot:"\u0121",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",gfr:"\ud835\udd24",gimel:"\u2137",gjcy:"\u0453",glE:"\u2a92",gla:"\u2aa5",glj:"\u2aa4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gneq:"\u2a88",gnsim:"\u22e7",gopf:"\ud835\udd58",gscr:"\u210a",gsime:"\u2a8e",gsiml:"\u2a90",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtrdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrarr:"\u2978",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",hardcy:"\u044a",harrcir:"\u2948",harrw:"\u21ad",leftrightsquigarrow:"\u21ad",hbar:"\u210f",hslash:"\u210f",planck:"\u210f",plankv:"\u210f",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22b9",hfr:"\ud835\udd25",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",larrhk:"\u21a9",hookrightarrow:"\u21aa",rarrhk:"\u21aa",hopf:"\ud835\udd59",horbar:"\u2015",hscr:"\ud835\udcbd",hstrok:"\u0127",hybull:"\u2043",iacute:"\xed",icirc:"\xee",icy:"\u0438",iecy:"\u0435",iexcl:"\xa1",ifr:"\ud835\udd26",igrave:"\xec",iiiint:"\u2a0c",qint:"\u2a0c",iiint:"\u222d",tint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012b",imath:"\u0131",inodot:"\u0131",imof:"\u22b7",imped:"\u01b5",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",intcal:"\u22ba",intercal:"\u22ba",intlarhk:"\u2a17",intprod:"\u2a3c",iprod:"\u2a3c",iocy:"\u0451",iogon:"\u012f",iopf:"\ud835\udd5a",iota:"\u03b9",iquest:"\xbf",iscr:"\ud835\udcbe",isinE:"\u22f9",isindot:"\u22f5",isins:"\u22f4",isinsv:"\u22f3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xef",jcirc:"\u0135",jcy:"\u0439",jfr:"\ud835\udd27",jmath:"\u0237",jopf:"\ud835\udd5b",jscr:"\ud835\udcbf",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03ba",kappav:"\u03f0",varkappa:"\u03f0",kcedil:"\u0137",kcy:"\u043a",kfr:"\ud835\udd28",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045c",kopf:"\ud835\udd5c",kscr:"\ud835\udcc0",lAtail:"\u291b",lBarr:"\u290e",lEg:"\u2a8b",lesseqqgtr:"\u2a8b",lHar:"\u2962",lacute:"\u013a",laemptyv:"\u29b4",lambda:"\u03bb",langd:"\u2991",lap:"\u2a85",lessapprox:"\u2a85",laquo:"\xab",larrbfs:"\u291f",larrfs:"\u291d",larrlp:"\u21ab",looparrowleft:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",leftarrowtail:"\u21a2",lat:"\u2aab",latail:"\u2919",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",lcaron:"\u013e",lcedil:"\u013c",lcy:"\u043b",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21c7",llarr:"\u21c7",leftthreetimes:"\u22cb",lthree:"\u22cb",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessdot:"\u22d6",ltdot:"\u22d6",lfisht:"\u297c",lfr:"\ud835\udd29",lgE:"\u2a91",lharul:"\u296a",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296b",lltri:"\u25fa",lmidot:"\u0140",lmoust:"\u23b0",lmoustache:"\u23b0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lneq:"\u2a87",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",longmapsto:"\u27fc",xmap:"\u27fc",looparrowright:"\u21ac",rarrlp:"\u21ac",lopar:"\u2985",lopf:"\ud835\udd5d",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",loz:"\u25ca",lozenge:"\u25ca",lpar:"(",lparlt:"\u2993",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\ud835\udcc1",lsime:"\u2a8d",lsimg:"\u2a8f",lsquor:"\u201a",sbquo:"\u201a",lstrok:"\u0142",ltcc:"\u2aa6",ltcir:"\u2a79",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltrPar:"\u2996",ltri:"\u25c3",triangleleft:"\u25c3",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",mDDot:"\u223a",macr:"\xaf",strns:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25ae",mcomma:"\u2a29",mcy:"\u043c",mdash:"\u2014",mfr:"\ud835\udd2a",mho:"\u2127",micro:"\xb5",midcir:"\u2af0",minus:"\u2212",minusdu:"\u2a2a",mlcp:"\u2adb",models:"\u22a7",mopf:"\ud835\udd5e",mscr:"\ud835\udcc2",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nGg:"\u22d9\u0338",nGt:"\u226b\u20d2",nLeftarrow:"\u21cd",nlArr:"\u21cd",nLeftrightarrow:"\u21ce",nhArr:"\u21ce",nLl:"\u22d8\u0338",nLt:"\u226a\u20d2",nRightarrow:"\u21cf",nrArr:"\u21cf",nVDash:"\u22af",nVdash:"\u22ae",nacute:"\u0144",nang:"\u2220\u20d2",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",natur:"\u266e",natural:"\u266e",ncap:"\u2a43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",ncy:"\u043d",ndash:"\u2013",neArr:"\u21d7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\ud835\udd2b",nharr:"\u21ae",nleftrightarrow:"\u21ae",nhpar:"\u2af2",nis:"\u22fc",nisd:"\u22fa",njcy:"\u045a",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219a",nleftarrow:"\u219a",nldr:"\u2025",nopf:"\ud835\udd5f",not:"\xac",notinE:"\u22f9\u0338",notindot:"\u22f5\u0338",notinvb:"\u22f7",notinvc:"\u22f6",notnivb:"\u22fe",notnivc:"\u22fd",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",nrarr:"\u219b",nrightarrow:"\u219b",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nscr:"\ud835\udcc3",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsubseteqq:"\u2ac5\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupseteqq:"\u2ac6\u0338",ntilde:"\xf1",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22ad",nvHarr:"\u2904",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwArr:"\u21d6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xf3",ocirc:"\xf4",ocy:"\u043e",odblac:"\u0151",odiv:"\u2a38",odsold:"\u29bc",oelig:"\u0153",ofcir:"\u29bf",ofr:"\ud835\udd2c",ogon:"\u02db",ograve:"\xf2",ogt:"\u29c1",ohbar:"\u29b5",olcir:"\u29be",olcross:"\u29bb",olt:"\u29c0",omacr:"\u014d",omega:"\u03c9",omicron:"\u03bf",omid:"\u29b6",oopf:"\ud835\udd60",opar:"\u29b7",operp:"\u29b9",or:"\u2228",vee:"\u2228",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oslash:"\xf8",osol:"\u2298",otilde:"\xf5",otimesas:"\u2a36",ouml:"\xf6",ovbar:"\u233d",para:"\xb6",parsim:"\u2af3",parsl:"\u2afd",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\ud835\udd2d",phi:"\u03c6",phiv:"\u03d5",straightphi:"\u03d5",varphi:"\u03d5",phone:"\u260e",pi:"\u03c0",piv:"\u03d6",varpi:"\u03d6",planckh:"\u210e",plus:"+",plusacir:"\u2a23",pluscir:"\u2a22",plusdu:"\u2a25",pluse:"\u2a72",plussim:"\u2a26",plustwo:"\u2a27",pointint:"\u2a15",popf:"\ud835\udd61",pound:"\xa3",prE:"\u2ab3",prap:"\u2ab7",precapprox:"\u2ab7",precnapprox:"\u2ab9",prnap:"\u2ab9",precneqq:"\u2ab5",prnE:"\u2ab5",precnsim:"\u22e8",prnsim:"\u22e8",prime:"\u2032",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prurel:"\u22b0",pscr:"\ud835\udcc5",psi:"\u03c8",puncsp:"\u2008",qfr:"\ud835\udd2e",qopf:"\ud835\udd62",qprime:"\u2057",qscr:"\ud835\udcc6",quatint:"\u2a16",quest:"?",rAtail:"\u291c",rHar:"\u2964",race:"\u223d\u0331",racute:"\u0155",raemptyv:"\u29b3",rangd:"\u2992",range:"\u29a5",raquo:"\xbb",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21a3",rightarrowtail:"\u21a3",rarrw:"\u219d",rightsquigarrow:"\u219d",ratail:"\u291a",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21b3",rect:"\u25ad",rfisht:"\u297d",rfr:"\ud835\udd2f",rharul:"\u296c",rho:"\u03c1",rhov:"\u03f1",varrho:"\u03f1",rightrightarrows:"\u21c9",rrarr:"\u21c9",rightthreetimes:"\u22cc",rthree:"\u22cc",ring:"\u02da",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",ropar:"\u2986",ropf:"\ud835\udd63",roplus:"\u2a2e",rotimes:"\u2a35",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rsaquo:"\u203a",rscr:"\ud835\udcc7",rtimes:"\u22ca",rtri:"\u25b9",triangleright:"\u25b9",rtriltri:"\u29ce",ruluhar:"\u2968",rx:"\u211e",sacute:"\u015b",scE:"\u2ab4",scap:"\u2ab8",succapprox:"\u2ab8",scaron:"\u0161",scedil:"\u015f",scirc:"\u015d",scnE:"\u2ab6",succneqq:"\u2ab6",scnap:"\u2aba",succnapprox:"\u2aba",scnsim:"\u22e9",succnsim:"\u22e9",scpolint:"\u2a13",scy:"\u0441",sdot:"\u22c5",sdote:"\u2a66",seArr:"\u21d8",sect:"\xa7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\ud835\udd30",sharp:"\u266f",shchcy:"\u0449",shcy:"\u0448",shy:"\xad",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",varsigma:"\u03c2",simdot:"\u2a6a",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",smashp:"\u2a33",smeparsl:"\u29e4",smile:"\u2323",ssmile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",softcy:"\u044c",sol:"/",solb:"\u29c4",solbar:"\u233f",sopf:"\ud835\udd64",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\ufe00",sqcups:"\u2294\ufe00",sscr:"\ud835\udcc8",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2ac5",subseteqq:"\u2ac5",subdot:"\u2abd",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subsetneqq:"\u2acb",subne:"\u228a",subsetneq:"\u228a",subplus:"\u2abf",subrarr:"\u2979",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",sung:"\u266a",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supE:"\u2ac6",supseteqq:"\u2ac6",supdot:"\u2abe",supdsub:"\u2ad8",supedot:"\u2ac4",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supsetneqq:"\u2acc",supne:"\u228b",supsetneq:"\u228b",supplus:"\u2ac0",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swArr:"\u21d9",swnwar:"\u292a",szlig:"\xdf",target:"\u2316",tau:"\u03c4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\ud835\udd31",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",vartheta:"\u03d1",thorn:"\xfe",times:"\xd7",timesbar:"\u2a31",timesd:"\u2a30",topbot:"\u2336",topcir:"\u2af1",topf:"\ud835\udd65",topfork:"\u2ada",tprime:"\u2034",triangle:"\u25b5",utri:"\u25b5",triangleq:"\u225c",trie:"\u225c",tridot:"\u25ec",triminus:"\u2a3a",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",tscr:"\ud835\udcc9",tscy:"\u0446",tshcy:"\u045b",tstrok:"\u0167",uHar:"\u2963",uacute:"\xfa",ubrcy:"\u045e",ubreve:"\u016d",ucirc:"\xfb",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297e",ufr:"\ud835\udd32",ugrave:"\xf9",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",umacr:"\u016b",uogon:"\u0173",uopf:"\ud835\udd66",upsi:"\u03c5",upsilon:"\u03c5",upuparrows:"\u21c8",uuarr:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",uring:"\u016f",urtri:"\u25f9",uscr:"\ud835\udcca",utdot:"\u22f0",utilde:"\u0169",uuml:"\xfc",uwangle:"\u29a7",vBar:"\u2ae8",vBarv:"\u2ae9",vangrt:"\u299c",varsubsetneq:"\u228a\ufe00",vsubne:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",vsubnE:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",vsupne:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vsupnE:"\u2acc\ufe00",vcy:"\u0432",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",vfr:"\ud835\udd33",vopf:"\ud835\udd67",vscr:"\ud835\udccb",vzigzag:"\u299a",wcirc:"\u0175",wedbar:"\u2a5f",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\ud835\udd34",wopf:"\ud835\udd68",wscr:"\ud835\udccc",xfr:"\ud835\udd35",xi:"\u03be",xnis:"\u22fb",xopf:"\ud835\udd69",xscr:"\ud835\udccd",yacute:"\xfd",yacy:"\u044f",ycirc:"\u0177",ycy:"\u044b",yen:"\xa5",yfr:"\ud835\udd36",yicy:"\u0457",yopf:"\ud835\udd6a",yscr:"\ud835\udcce",yucy:"\u044e",yuml:"\xff",zacute:"\u017a",zcaron:"\u017e",zcy:"\u0437",zdot:"\u017c",zeta:"\u03b6",zfr:"\ud835\udd37",zhcy:"\u0436",zigrarr:"\u21dd",zopf:"\ud835\udd6b",zscr:"\ud835\udccf",zwj:"\u200d",zwnj:"\u200c"};Eh.ngsp="\ue500";var sy=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,a,i)).tokenType=o,s}return(0,B.Z)(e)}(Yv),_S=(0,B.Z)(function n(r,e,i){(0,H.Z)(this,n),this.tokens=r,this.errors=e,this.nonNormalizedIcuExpressions=i});var qC,_V=/\r\n?/g;function ly(n){var r=0===n?"EOF":String.fromCharCode(n);return'Unexpected character "'.concat(r,'"')}function Y3(n){return'Unknown entity "'.concat(n,'" - use the "&#;" or "&#x;" syntax')}!function(n){n.HEX="hexadecimal",n.DEC="decimal"}(qC||(qC={}));var JC=(0,B.Z)(function n(r){(0,H.Z)(this,n),this.error=r}),gV=function(){function n(r,e,i){(0,H.Z)(this,n),this._getTagDefinition=e,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=i.tokenizeExpansionForms||!1,this._interpolationConfig=i.interpolationConfig||wu,this._leadingTriviaCodePoints=i.leadingTriviaChars&&i.leadingTriviaChars.map(function(a){return a.codePointAt(0)||0});var o=i.range||{endPos:r.content.length,startPos:0,startLine:0,startCol:0};this._cursor=i.escapedString?new bV(r,o):new k4(r,o),this._preserveLineEndings=i.preserveLineEndings||!1,this._escapedString=i.escapedString||!1,this._i18nNormalizeLineEndingsInICUs=i.i18nNormalizeLineEndingsInICUs||!1;try{this._cursor.init()}catch(a){this.handleError(a)}}return(0,B.Z)(n,[{key:"_processCarriageReturns",value:function(e){return this._preserveLineEndings?e:e.replace(_V,"\n")}},{key:"tokenize",value:function(){for(var e=this;0!==this._cursor.peek();){var i=this._cursor.clone();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(i):this._attemptCharCode(45)?this._consumeComment(i):this._consumeDocType(i):this._attemptCharCode(47)?this._consumeTagClose(i):this._consumeTagOpen(i):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,function(){return e._isTextEnd()},function(){return e._isTagStart()})}catch(o){this.handleError(o)}}this._beginToken(24),this._endToken([])}},{key:"_tokenizeExpansionForm",value:function(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(function vS(n){return n!==Lc}(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===Lc){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}},{key:"_beginToken",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._cursor.clone();this._currentTokenStart=i,this._currentTokenType=e}},{key:"_endToken",value:function(e,i){if(null===this._currentTokenStart)throw new sy("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(i));if(null===this._currentTokenType)throw new sy("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));var o={type:this._currentTokenType,parts:e,sourceSpan:(null!=i?i:this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(o),this._currentTokenStart=null,this._currentTokenType=null,o}},{key:"_createError",value:function(e,i){this._isInExpansionForm()&&(e+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var o=new sy(e,this._currentTokenType,i);return this._currentTokenStart=null,this._currentTokenType=null,new JC(o)}},{key:"handleError",value:function(e){if(e instanceof J3&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),!(e instanceof JC))throw e;this.errors.push(e.error)}},{key:"_attemptCharCode",value:function(e){return this._cursor.peek()===e&&(this._cursor.advance(),!0)}},{key:"_attemptCharCodeCaseInsensitive",value:function(e){return!!function vV(n,r){return w4(n)===w4(r)}(this._cursor.peek(),e)&&(this._cursor.advance(),!0)}},{key:"_requireCharCode",value:function(e){var i=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(ly(this._cursor.peek()),this._cursor.getSpan(i))}},{key:"_attemptStr",value:function(e){var i=e.length;if(this._cursor.charsLeft()")}),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}},{key:"_consumeDocType",value:function(e){this._beginToken(18,e);var i=this._cursor.clone();this._attemptUntilChar(62);var o=this._cursor.getChars(i);this._cursor.advance(),this._endToken([o])}},{key:"_consumePrefixAndName",value:function(){for(var e=this._cursor.clone(),i="";58!==this._cursor.peek()&&!K3(this._cursor.peek());)this._cursor.advance();var o;return 58===this._cursor.peek()?(i=this._cursor.getChars(e),this._cursor.advance(),o=this._cursor.clone()):o=e,this._requireCharCodeUntilFn(b4,""===i?0:1),[i,this._cursor.getChars(o)]}},{key:"_consumeTagOpen",value:function(e){var i,o,a;try{if(!LM(this._cursor.peek()))throw this._createError(ly(this._cursor.peek()),this._cursor.getSpan(e));for(o=(a=this._consumeTagOpenStart(e)).parts[0],i=a.parts[1],this._attemptCharCodeUntilFn(ql);47!==this._cursor.peek()&&62!==this._cursor.peek()&&60!==this._cursor.peek()&&0!==this._cursor.peek();)this._consumeAttributeName(),this._attemptCharCodeUntilFn(ql),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(ql),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(ql);this._consumeTagOpenEnd()}catch(l){if(l instanceof JC)return void(a?a.type=4:(this._beginToken(5,e),this._endToken(["<"])));throw l}var s=this._getTagDefinition(i).getContentType(o);s===mi.RAW_TEXT?this._consumeRawTextWithTagClose(o,i,!1):s===mi.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(o,i,!0)}},{key:"_consumeRawTextWithTagClose",value:function(e,i,o){var a=this;this._consumeRawText(o,function(){return!!(a._attemptCharCode(60)&&a._attemptCharCode(47)&&(a._attemptCharCodeUntilFn(ql),a._attemptStrCaseInsensitive(i)))&&(a._attemptCharCodeUntilFn(ql),a._attemptCharCode(62))}),this._beginToken(3),this._requireCharCodeUntilFn(function(s){return 62===s},3),this._cursor.advance(),this._endToken([e,i])}},{key:"_consumeTagOpenStart",value:function(e){this._beginToken(0,e);var i=this._consumePrefixAndName();return this._endToken(i)}},{key:"_consumeAttributeName",value:function(){var e=this._cursor.peek();if(39===e||34===e)throw this._createError(ly(e),this._cursor.getSpan());this._beginToken(14);var i=this._consumePrefixAndName();this._endToken(i)}},{key:"_consumeAttributeValue",value:function(){var e=this;if(39===this._cursor.peek()||34===this._cursor.peek()){var o=this._cursor.peek();this._consumeQuote(o);var a=function(){return e._cursor.peek()===o};this._consumeWithInterpolation(16,17,a,a),this._consumeQuote(o)}else{var s=function(){return b4(e._cursor.peek())};this._consumeWithInterpolation(16,17,s,s)}}},{key:"_consumeQuote",value:function(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}},{key:"_consumeTagOpenEnd",value:function(){var e=this._attemptCharCode(47)?2:1;this._beginToken(e),this._requireCharCode(62),this._endToken([])}},{key:"_consumeTagClose",value:function(e){this._beginToken(3,e),this._attemptCharCodeUntilFn(ql);var i=this._consumePrefixAndName();this._attemptCharCodeUntilFn(ql),this._requireCharCode(62),this._endToken(i)}},{key:"_consumeExpansionFormStart",value:function(){this._beginToken(19),this._requireCharCode(Hf),this._endToken([]),this._expansionCaseStack.push(19),this._beginToken(7);var e=this._readUntil(44),i=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([i]);else{var o=this._endToken([e]);i!==e&&this.nonNormalizedIcuExpressions.push(o)}this._requireCharCode(44),this._attemptCharCodeUntilFn(ql),this._beginToken(7);var a=this._readUntil(44);this._endToken([a]),this._requireCharCode(44),this._attemptCharCodeUntilFn(ql)}},{key:"_consumeExpansionCaseStart",value:function(){this._beginToken(20);var e=this._readUntil(Hf).trim();this._endToken([e]),this._attemptCharCodeUntilFn(ql),this._beginToken(21),this._requireCharCode(Hf),this._endToken([]),this._attemptCharCodeUntilFn(ql),this._expansionCaseStack.push(21)}},{key:"_consumeExpansionCaseEnd",value:function(){this._beginToken(22),this._requireCharCode(Lc),this._endToken([]),this._attemptCharCodeUntilFn(ql),this._expansionCaseStack.pop()}},{key:"_consumeExpansionFormEnd",value:function(){this._beginToken(23),this._requireCharCode(Lc),this._endToken([]),this._expansionCaseStack.pop()}},{key:"_consumeWithInterpolation",value:function(e,i,o,a){this._beginToken(e);for(var s=[];!o();){var l=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(s.join(""))],l),s.length=0,this._consumeInterpolation(i,l,a),this._beginToken(e)):38===this._cursor.peek()?(this._endToken([this._processCarriageReturns(s.join(""))]),s.length=0,this._consumeEntity(e),this._beginToken(e)):s.push(this._readChar())}this._inInterpolation=!1,this._endToken([this._processCarriageReturns(s.join(""))])}},{key:"_consumeInterpolation",value:function(e,i,o){var a=[];this._beginToken(e,i),a.push(this._interpolationConfig.start);for(var s=this._cursor.clone(),l=null,u=!1;0!==this._cursor.peek()&&(null===o||!o());){var d=this._cursor.clone();if(this._isTagStart())return this._cursor=d,a.push(this._getProcessedChars(s,d)),void this._endToken(a);if(null===l){if(this._attemptStr(this._interpolationConfig.end))return a.push(this._getProcessedChars(s,d)),a.push(this._interpolationConfig.end),void this._endToken(a);this._attemptStr("//")&&(u=!0)}var h=this._cursor.peek();this._cursor.advance(),92===h?this._cursor.advance():h===l?l=null:!u&&null===l&&IC(h)&&(l=h)}a.push(this._getProcessedChars(s,this._cursor)),this._endToken(a)}},{key:"_getProcessedChars",value:function(e,i){return this._processCarriageReturns(i.getChars(e))}},{key:"_isTextEnd",value:function(){return!!(this._isTagStart()||0===this._cursor.peek()||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===Lc&&this._isInExpansionCase()))}},{key:"_isTagStart",value:function(){if(60===this._cursor.peek()){var e=this._cursor.clone();e.advance();var i=e.peek();if(97<=i&&i<=122||65<=i&&i<=90||47===i||33===i)return!0}return!1}},{key:"_readUntil",value:function(e){var i=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(i)}},{key:"_isInExpansionCase",value:function(){return this._expansionCaseStack.length>0&&21===this._expansionCaseStack[this._expansionCaseStack.length-1]}},{key:"_isInExpansionForm",value:function(){return this._expansionCaseStack.length>0&&19===this._expansionCaseStack[this._expansionCaseStack.length-1]}},{key:"isExpansionFormStart",value:function(){if(this._cursor.peek()!==Hf)return!1;if(this._interpolationConfig){var e=this._cursor.clone(),i=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!i}return!0}}]),n}();function ql(n){return!RM(n)||0===n}function b4(n){return RM(n)||62===n||60===n||47===n||39===n||34===n||61===n||0===n}function K3(n){return(n<97||12257)}function q3(n){return 59===n||0===n||!function OC(n){return n>=97&&n<=102||n>=65&&n<=70||jf(n)}(n)}function C4(n){return 59===n||0===n||!LM(n)}function w4(n){return n>=97&&n<=122?n-97+65:n}function yV(n){for(var r=[],e=void 0,i=0;i0&&-1!==i.indexOf(e.peek());)o===e&&(e=e.clone()),e.advance();var a=this.locationFromCursor(e),s=this.locationFromCursor(this),l=o!==e?this.locationFromCursor(o):a;return new Qa(a,s,l)}},{key:"getChars",value:function(e){return this.input.substring(e.state.offset,this.state.offset)}},{key:"charAt",value:function(e){return this.input.charCodeAt(e)}},{key:"advanceState",value:function(e){if(e.offset>=this.end)throw this.state=e,new J3('Unexpected character "EOF"',this);var i=this.charAt(e.offset);10===i?(e.line++,e.column=0):Zc(i)||e.column++,e.offset++,this.updatePeek(e)}},{key:"updatePeek",value:function(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)}},{key:"locationFromCursor",value:function(e){return new g_(e.file,e.state.offset,e.state.line,e.state.column)}}]),n}(),bV=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a;return(0,H.Z)(this,e),i instanceof e?(a=r.call(this,i)).internalState=Object.assign({},i.internalState):(a=r.call(this,i,o)).internalState=a.state,(0,Ho.Z)(a)}return(0,B.Z)(e,[{key:"advance",value:function(){this.state=this.internalState,(0,dt.Z)((0,Ut.Z)(e.prototype),"advance",this).call(this),this.processEscapeSequence()}},{key:"init",value:function(){(0,dt.Z)((0,Ut.Z)(e.prototype),"init",this).call(this),this.processEscapeSequence()}},{key:"clone",value:function(){return new e(this)}},{key:"getChars",value:function(o){for(var a=o.clone(),s="";a.internalState.offset3&&void 0!==arguments[3]?arguments[3]:{},o=new gV(new PC(n,r),e,i);return o.tokenize(),new _S(yV(o.tokens),o.errors,o.nonNormalizedIcuExpressions)}(e,i,this.getTagDefinition,o),s=new wV(a.tokens,this.getTagDefinition);return s.build(),new Q3(s.rootNodes,a.errors.concat(s.errors))}}]),n}(),wV=function(){function n(r,e){(0,H.Z)(this,n),this.tokens=r,this.getTagDefinition=e,this._index=-1,this._elementStack=[],this.rootNodes=[],this.errors=[],this._advance()}return(0,B.Z)(n,[{key:"build",value:function(){for(;24!==this._peek.type;)0===this._peek.type||4===this._peek.type?this._consumeStartTag(this._advance()):3===this._peek.type?this._consumeEndTag(this._advance()):12===this._peek.type?(this._closeVoidElement(),this._consumeCdata(this._advance())):10===this._peek.type?(this._closeVoidElement(),this._consumeComment(this._advance())):5===this._peek.type||7===this._peek.type||6===this._peek.type?(this._closeVoidElement(),this._consumeText(this._advance())):19===this._peek.type?this._consumeExpansion(this._advance()):this._advance()}},{key:"_advance",value:function(){var e=this._peek;return this._index0)return this.errors=this.errors.concat(s.errors),null;var l=new Qa(e.sourceSpan.start,a.sourceSpan.end,e.sourceSpan.fullStart),u=new Qa(i.sourceSpan.start,a.sourceSpan.end,i.sourceSpan.fullStart);return new hS(e.parts[0],s.rootNodes,l,e.sourceSpan,u)}},{key:"_collectExpansionExpTokens",value:function(e){for(var i=[],o=[21];;){if((19===this._peek.type||21===this._peek.type)&&o.push(this._peek.type),22===this._peek.type){if(!Rd(o,21))return this.errors.push(Wf.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(o.pop(),0===o.length)return i}if(23===this._peek.type){if(!Rd(o,19))return this.errors.push(Wf.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;o.pop()}if(24===this._peek.type)return this.errors.push(Wf.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;i.push(this._advance())}}},{key:"_consumeText",value:function(e){var i=[e],o=e.sourceSpan,a=e.parts[0];if(a.length>0&&"\n"===a[0]){var s=this._getParentElement();null!=s&&0===s.children.length&&this.getTagDefinition(s.name).ignoreFirstLf&&(a=a.substring(1),i[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[a]})}for(;8===this._peek.type||5===this._peek.type||9===this._peek.type;)e=this._advance(),i.push(e),8===e.type?a+=e.parts.join("").replace(/&([^;]+);/g,QC):9===e.type?a+=e.parts[0]:a+=e.parts.join("");if(a.length>0){var l=e.sourceSpan;this._addToParent(new x_(a,new Qa(o.start,l.end,o.fullStart,o.details),i))}}},{key:"_closeVoidElement",value:function(){var e=this._getParentElement();e&&this.getTagDefinition(e.name).isVoid&&this._elementStack.pop()}},{key:"_consumeStartTag",value:function(e){for(var i=(0,Nn.Z)(e.parts,2),o=i[0],a=i[1],s=[];14===this._peek.type;)s.push(this._consumeAttr(this._advance()));var l=this._getElementFullName(o,a,this._getParentElement()),u=!1;if(2===this._peek.type){this._advance(),u=!0;var d=this.getTagDefinition(l);d.canSelfClose||null!==ei(l)||d.isVoid||this.errors.push(Wf.create(l,e.sourceSpan,'Only void and foreign elements can be self closed "'.concat(e.parts[1],'"')))}else 1===this._peek.type&&(this._advance(),u=!1);var h=this._peek.sourceSpan.fullStart,g=new Qa(e.sourceSpan.start,h,e.sourceSpan.fullStart),C=new Qa(e.sourceSpan.start,h,e.sourceSpan.fullStart),Z=new oy(l,s,[],g,C,void 0);this._pushElement(Z),u?this._popElement(l,g):4===e.type&&(this._popElement(l,null),this.errors.push(Wf.create(l,g,'Opening tag "'.concat(l,'" not terminated.'))))}},{key:"_pushElement",value:function(e){var i=this._getParentElement();i&&this.getTagDefinition(i.name).isClosedByChild(e.name)&&this._elementStack.pop(),this._addToParent(e),this._elementStack.push(e)}},{key:"_consumeEndTag",value:function(e){var i=this._getElementFullName(e.parts[0],e.parts[1],this._getParentElement());if(this.getTagDefinition(i).isVoid)this.errors.push(Wf.create(i,e.sourceSpan,'Void elements do not have end tags "'.concat(e.parts[1],'"')));else if(!this._popElement(i,e.sourceSpan)){var o='Unexpected closing tag "'.concat(i,'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags');this.errors.push(Wf.create(i,e.sourceSpan,o))}}},{key:"_popElement",value:function(e,i){for(var o=!1,a=this._elementStack.length-1;a>=0;a--){var s=this._elementStack[a];if(s.name===e)return s.endSourceSpan=i,s.sourceSpan.end=null!==i?i.end:s.sourceSpan.end,this._elementStack.splice(a,this._elementStack.length-a),!o;this.getTagDefinition(s.name).closedByParent||(o=!0)}return!1}},{key:"_consumeAttr",value:function(e){var i=_i(e.parts[0],e.parts[1]),o=e.sourceSpan.end;15===this._peek.type&&this._advance();var a="",s=[],l=void 0,u=void 0;if(16===this._peek.type)for(l=this._peek.sourceSpan,u=this._peek.sourceSpan.end;16===this._peek.type||17===this._peek.type||9===this._peek.type;){var h=this._advance();s.push(h),17===h.type?a+=h.parts.join("").replace(/&([^;]+);/g,QC):9===h.type?a+=h.parts[0]:a+=h.parts.join(""),u=o=h.sourceSpan.end}15===this._peek.type&&(o=this._advance().sourceSpan.end);var C=l&&u&&new Qa(l.start,u,l.fullStart);return new V3(i,a,new Qa(e.sourceSpan.start,o,e.sourceSpan.fullStart),e.sourceSpan,C,s.length>0?s:void 0,void 0)}},{key:"_getParentElement",value:function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null}},{key:"_addToParent",value:function(e){var i=this._getParentElement();null!=i?i.children.push(e):this.rootNodes.push(e)}},{key:"_getElementFullName",value:function(e,i,o){if(""===e&&(""===(e=this.getTagDefinition(i).implicitNamespacePrefix||"")&&null!=o)){var a=Ji(o.name)[1];this.getTagDefinition(a).preventNamespaceInheritance||(e=ei(o.name))}return _i(e,i)}}]),n}();function Rd(n,r){return n.length>0&&n[n.length-1]===r}function QC(n,r){return void 0!==Eh[r]?Eh[r]||n:/^#x[a-f0-9]+$/i.test(r)?String.fromCodePoint(parseInt(r.slice(2),16)):/^#\d+$/.test(r)?String.fromCodePoint(parseInt(r.slice(1),10)):n}var T4=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.call(this,wa)}return(0,B.Z)(e,[{key:"parse",value:function(o,a,s){return(0,dt.Z)((0,Ut.Z)(e.prototype),"parse",this).call(this,o,a,s)}}]),e}(CV),yS="ngPreserveWhitespaces",bS=new Set(["pre","template","textarea","script","style"]),CS=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff",wS=new RegExp("[^".concat(CS,"]")),M4=new RegExp("[".concat(CS,"]{2,}"),"g");function kS(n){return n.replace(new RegExp("\ue500","g")," ")}var X3=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"visitElement",value:function(e,i){return bS.has(e.name)||function Vf(n){return n.some(function(r){return r.name===yS})}(e.attrs)?new oy(e.name,xu(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n):new oy(e.name,e.attrs,function E4(n,r){var e=[];return r.forEach(function(i,o){var a={prev:r[o-1],next:r[o+1]},s=i.visit(n,a);s&&e.push(s)}),e}(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}},{key:"visitAttribute",value:function(e,i){return e.name!==yS?e:null}},{key:"visitText",value:function(e,i){var o=e.value.match(wS),a=i&&(i.prev instanceof Eu||i.next instanceof Eu);if(o||a){var s=e.tokens.map(function(u){return 5===u.type?function S4(n){var r=n.type,e=n.parts,i=n.sourceSpan;return{type:r,parts:[TS(e[0])],sourceSpan:i}}(u):u}),l=TS(e.value);return new x_(l,e.sourceSpan,s,e.i18n)}return null}},{key:"visitComment",value:function(e,i){return e}},{key:"visitExpansion",value:function(e,i){return e}},{key:"visitExpansionCase",value:function(e,i){return e}}]),n}();function TS(n){return kS(n).replace(M4," ")}function Ld(n){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Qs(Object.keys(n).map(function(e){return{key:e,quoted:r,value:n[e]}}))}var SS=(0,B.Z)(function n(){(0,H.Z)(this,n)}),xS=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|autocomplete,!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,autocomplete,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|"],$C=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),t6=Array.from($C).reduce(function(n,r){var e=(0,Nn.Z)(r,2),i=e[0],o=e[1];return n.set(i,o),n},new Map),e1=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i;return(0,H.Z)(this,e),(i=r.call(this))._schema=new Map,i._eventSchema=new Map,xS.forEach(function(o){var a=new Map,s=new Set,l=o.split("|"),u=(0,Nn.Z)(l,2),d=u[0],g=u[1].split(","),C=d.split("^"),Z=(0,Nn.Z)(C,2),z=Z[0],q=Z[1];z.split(",").forEach(function(ht){i._schema.set(ht.toLowerCase(),a),i._eventSchema.set(ht.toLowerCase(),s)});var re=q&&i._schema.get(q.toLowerCase());if(re){var Se,ae=(0,xn.Z)(re);try{for(ae.s();!(Se=ae.n()).done;){var Ce=(0,Nn.Z)(Se.value,2),Ee=Ce[0],Ve=Ce[1];a.set(Ee,Ve)}}catch(ht){ae.e(ht)}finally{ae.f()}var Ae,ut=(0,xn.Z)(i._eventSchema.get(q.toLowerCase()));try{for(ut.s();!(Ae=ut.n()).done;){var ot=Ae.value;s.add(ot)}}catch(ht){ut.e(ht)}finally{ut.f()}}g.forEach(function(ht){if(ht.length>0)switch(ht[0]){case"*":s.add(ht.substring(1));break;case"!":a.set(ht.substring(1),"boolean");break;case"#":a.set(ht.substring(1),"number");break;case"%":a.set(ht.substring(1),"object");break;default:a.set(ht,"string")}})}),i}return(0,B.Z)(e,[{key:"hasProperty",value:function(o,a,s){if(s.some(function(u){return u.name===vu.name}))return!0;if(o.indexOf("-")>-1){if(jo(o)||Qi(o))return!1;if(s.some(function(u){return u.name===ka.name}))return!0}return(this._schema.get(o.toLowerCase())||this._schema.get("unknown")).has(a)}},{key:"hasElement",value:function(o,a){return!!(a.some(function(s){return s.name===vu.name})||o.indexOf("-")>-1&&(jo(o)||Qi(o)||a.some(function(s){return s.name===ka.name})))||this._schema.has(o.toLowerCase())}},{key:"securityContext",value:function(o,a,s){s&&(a=this.getMappedPropName(a)),o=o.toLowerCase(),a=a.toLowerCase();var l=QM()[o+"|"+a];return l||((l=QM()["*|"+a])||Hi.NONE)}},{key:"getMappedPropName",value:function(o){var a;return null!==(a=$C.get(o))&&void 0!==a?a:o}},{key:"getDefaultComponentElementName",value:function(){return"ng-component"}},{key:"validateProperty",value:function(o){return o.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event property '".concat(o,"' is disallowed for security reasons, ")+"please use (".concat(o.slice(2),")=...")+"\nIf '".concat(o,"' is a directive input, make sure the directive is imported by the")+" current module."}:{error:!1}}},{key:"validateAttribute",value:function(o){return o.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event attribute '".concat(o,"' is disallowed for security reasons, ")+"please use (".concat(o.slice(2),")=...")}:{error:!1}}},{key:"allKnownElementNames",value:function(){return Array.from(this._schema.keys())}},{key:"allKnownAttributesOfElement",value:function(o){var a=this._schema.get(o.toLowerCase())||this._schema.get("unknown");return Array.from(a.keys()).map(function(s){var l;return null!==(l=t6.get(s))&&void 0!==l?l:s})}},{key:"allKnownEventsOfElement",value:function(o){var a;return Array.from(null!==(a=this._eventSchema.get(o.toLowerCase()))&&void 0!==a?a:[])}},{key:"normalizeAnimationStyleProperty",value:function(o){return function Es(n){return n.replace(so,function(){for(var r=arguments.length,e=new Array(r),i=0;i2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(i.isAnimation)return new j5(i.name,4,Hi.NONE,i.expression,null,i.sourceSpan,i.keySpan,i.valueSpan);var s=null,l=void 0,u=null,d=i.name.split("."),h=void 0;if(d.length>1)if("attr"==d[0]){u=d.slice(1).join("."),o||this._validatePropertyOrAttributeName(u,i.sourceSpan,!0),h=AS(this._schemaRegistry,e,u,!0);var g=u.indexOf(":");if(g>-1){var C=u.substring(0,g),Z=u.substring(g+1);u=_i(C,Z)}l=1}else"class"==d[0]?(u=d[1],l=2,h=[Hi.NONE]):"style"==d[0]&&(s=d.length>2?d[2]:null,u=d[1],l=3,h=[Hi.STYLE]);if(null===u){var z=this._schemaRegistry.getMappedPropName(i.name);u=a?z:i.name,h=AS(this._schemaRegistry,e,z,!1),l=0,o||this._validatePropertyOrAttributeName(z,i.sourceSpan,!1)}return new j5(u,l,h[0],i.expression,s,i.sourceSpan,i.keySpan,i.valueSpan)}},{key:"parseEvent",value:function(e,i,o,a,s,l,u,d){0===e.length&&this._reportError("Event name is missing in binding",a),a6(e)?(e=e.slice(1),void 0!==d&&(d=Bc(d,new Su(d.start.offset+1,d.end.offset))),this._parseAnimationEvent(e,i,o,a,s,u,d)):this._parseRegularEvent(e,i,o,a,s,l,u,d)}},{key:"calcPossibleSecurityContexts",value:function(e,i,o){var a=this._schemaRegistry.getMappedPropName(i);return AS(this._schemaRegistry,e,a,o)}},{key:"_parseAnimationEvent",value:function(e,i,o,a,s,l,u){var d=function xc(n,r){return vo(n,".",r)}(e,[e,""]),h=d[0],g=d[1].toLowerCase(),C=this._parseAction(i,o,s);l.push(new M3(h,g,1,C,a,s,u)),0===h.length&&this._reportError("Animation event name is missing in binding",a),g?"start"!==g&&"done"!==g&&this._reportError('The provided animation output phase value "'.concat(g,'" for "@').concat(h,'" is not supported (use start or done)'),a):this._reportError("The animation trigger output event (@".concat(h,") is missing its phase value name (start or done are currently supported)"),a)}},{key:"_parseRegularEvent",value:function(e,i,o,a,s,l,u,d){var h=function Fl(n,r){return vo(n,":",r)}(e,[null,e]),g=(0,Nn.Z)(h,2),C=g[0],Z=g[1],z=this._parseAction(i,o,s);l.push([e,z.source]),u.push(new M3(Z,C,0,z,a,s,d))}},{key:"_parseAction",value:function(e,i,o){var a=(o&&o.start||"(unknown").toString(),s=o&&o.start?o.start.offset:0;try{var l=this._exprParser.parseAction(e,i,a,s,this._interpolationConfig);return l&&this._reportExpressionParserErrors(l.errors,o),!l||l.ast instanceof Wl?(this._reportError("Empty expressions are not allowed",o),this._exprParser.wrapLiteralPrimitive("ERROR",a,s)):l}catch(u){return this._reportError("".concat(u),o),this._exprParser.wrapLiteralPrimitive("ERROR",a,s)}}},{key:"_reportError",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dd.ERROR;this.errors.push(new Yv(i,e,o))}},{key:"_reportExpressionParserErrors",value:function(e,i){var a,o=(0,xn.Z)(e);try{for(o.s();!(a=o.n()).done;){var s=a.value;this._reportError(s.message,i)}}catch(l){o.e(l)}finally{o.f()}}},{key:"_validatePropertyOrAttributeName",value:function(e,i,o){var a=o?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);a.error&&this._reportError(a.msg,i,Dd.ERROR)}}]),n}();function a6(n){return"@"==n[0]}function AS(n,r,e,i){var o=[];return oo.parse(r).forEach(function(a){var s=a.element?[a.element]:n.allKnownElementNames(),l=new Set(a.notSelectors.filter(function(d){return d.isElementSelector()}).map(function(d){return d.element})),u=s.filter(function(d){return!l.has(d)});o.push.apply(o,(0,pn.Z)(u.map(function(d){return n.securityContext(d,e,i)})))}),0===o.length?[Hi.NONE]:Array.from(new Set(o)).sort()}function Bc(n,r){var e=r.start-n.start.offset,i=r.end-n.end.offset;return new Qa(n.start.moveBy(e),n.end.moveBy(i),n.fullStart.moveBy(e),n.details)}var $o,I4=/^([^:/?#]+):/;function f6(n){var r=null,e=null,i=null,o=!1,a="";n.attrs.forEach(function(u){var d=u.name.toLowerCase();"select"==d?r=u.value:"href"==d?e=u.value:"rel"==d?i=u.value:"ngNonBindable"==u.name?o=!0:"ngProjectAs"==u.name&&u.value.length>0&&(a=u.value)}),r=function B4(n){return null===n||0===n.length?"*":n}(r);var s=n.name.toLowerCase(),l=$o.OTHER;return Qi(s)?l=$o.NG_CONTENT:"style"==s?l=$o.STYLE:"script"==s?l=$o.SCRIPT:"link"==s&&"stylesheet"==i&&(l=$o.STYLESHEET),new OS(l,r,e,o,a)}!function(n){n[n.NG_CONTENT=0]="NG_CONTENT",n[n.STYLE=1]="STYLE",n[n.STYLESHEET=2]="STYLESHEET",n[n.SCRIPT=3]="SCRIPT",n[n.OTHER=4]="OTHER"}($o||($o={}));var OS=(0,B.Z)(function n(r,e,i,o,a){(0,H.Z)(this,n),this.type=r,this.selectAttr=e,this.hrefAttr=i,this.nonBindable=o,this.projectAs=a});var F4=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,Yf_BANANA_BOX={start:"[(",end:")]"},Yf_PROPERTY={start:"[",end:"]"},Yf_EVENT={start:"(",end:")"};function RS(n,r,e){var i=new t1(r,e),s={nodes:xu(i,n),errors:r.errors.concat(i.errors),styleUrls:i.styleUrls,styles:i.styles,ngContentSelectors:i.ngContentSelectors};return e.collectCommentNodes&&(s.commentNodes=i.commentNodes),s}var Du,t1=function(){function n(r,e){(0,H.Z)(this,n),this.bindingParser=r,this.options=e,this.errors=[],this.styles=[],this.styleUrls=[],this.ngContentSelectors=[],this.commentNodes=[],this.inI18nBlock=!1}return(0,B.Z)(n,[{key:"visitElement",value:function(e){var i=this,o=s_(e.i18n);o&&(this.inI18nBlock&&this.reportError("Cannot mark an element as translatable inside of a translatable section. Please remove the nested i18n marker.",e.sourceSpan),this.inI18nBlock=!0);var a=f6(e);if(a.type===$o.SCRIPT)return null;if(a.type===$o.STYLE){var s=function v6(n){return 1===n.children.length&&n.children[0]instanceof x_?n.children[0].value:null}(e);return null!==s&&this.styles.push(s),null}if(a.type===$o.STYLESHEET&&function s6(n){if(null==n||0===n.length||"/"==n[0])return!1;var r=n.match(I4);return null===r||"package"==r[1]||"asset"==r[1]}(a.hrefAttr))return this.styleUrls.push(a.hrefAttr),null;var Se,l=function Vi(n){return"ng-template"===Ji(n)[1]}(e.name),u=[],d=[],h=[],g=[],C=[],Z={},z=[],q=[],re=!1,ae=(0,xn.Z)(e.attrs);try{for(ae.s();!(Se=ae.n()).done;){var Ce=Se.value,Ee=!1,Ve=H4(Ce.name),ut=!1;if(Ce.i18n&&(Z[Ce.name]=Ce.i18n),Ve.startsWith("*")){re&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",Ce.sourceSpan),ut=!0,re=!0;var Ae=Ce.value,ot=Ve.substring("*".length),ht=[],bt=Ce.valueSpan?Ce.valueSpan.start.offset:Ce.sourceSpan.start.offset+Ce.name.length;this.bindingParser.parseInlineTemplateBinding(ot,Ae,Ce.sourceSpan,bt,[],z,ht,!0),q.push.apply(q,(0,pn.Z)(ht.map(function(_r){return new _M(_r.name,_r.value,_r.sourceSpan,_r.keySpan,_r.valueSpan)})))}else Ee=this.parseAttribute(l,Ce,[],u,d,h,g);!Ee&&!ut&&C.push(this.visitAttribute(Ce))}}catch(_r){ae.e(_r)}finally{ae.f()}var Pe,Xe=xu(a.nonBindable?LS:this,e.children);if(a.type===$o.NG_CONTENT){e.children&&!e.children.every(function(_r){return function _6(n){return n instanceof x_&&0==n.value.trim().length}(_r)||function g6(n){return n instanceof mS}(_r)})&&this.reportError(" element cannot have content.",e.sourceSpan);var ft=a.selectAttr,Nt=e.attrs.map(function(_r){return i.visitAttribute(_r)});Pe=new o_(ft,Nt,e.sourceSpan,e.i18n),this.ngContentSelectors.push(ft)}else if(l){var Gt=this.extractAttributes(e.name,u,Z);Pe=new hh(e.name,C,Gt.bound,d,[],Xe,g,h,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{var It=this.extractAttributes(e.name,u,Z);Pe=new Rf(e.name,C,It.bound,d,Xe,g,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}if(re){var Tn=this.extractAttributes("ng-template",z,Z),jn=[];Tn.literal.forEach(function(_r){return jn.push(_r)}),Tn.bound.forEach(function(_r){return jn.push(_r)});var zn=Pe instanceof Rf?{attributes:Pe.attributes,inputs:Pe.inputs,outputs:Pe.outputs}:{attributes:[],inputs:[],outputs:[]},or=l&&o?void 0:e.i18n,Mr=Pe instanceof hh?null:Pe.name;Pe=new hh(Mr,zn.attributes,zn.inputs,zn.outputs,jn,[Pe],[],q,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,or)}return o&&(this.inI18nBlock=!1),Pe}},{key:"visitAttribute",value:function(e){return new mM(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}},{key:"visitText",value:function(e){return this._visitTextWithInterpolation(e.value,e.sourceSpan,e.tokens,e.i18n)}},{key:"visitExpansion",value:function(e){var i=this;if(!e.i18n)return null;if(!s_(e.i18n))throw new Error('Invalid type "'.concat(e.i18n.constructor,'" for "i18n" property of ').concat(e.sourceSpan.toString(),'. Expected a "Message"'));var o=e.i18n,a={},s={};return Object.keys(o.placeholders).forEach(function(l){var u=o.placeholders[l];if(l.startsWith("VAR_")){var d=l.trim(),h=i.bindingParser.parseInterpolationExpression(u.text,u.sourceSpan);a[d]=new hM(h,u.sourceSpan)}else s[l]=i._visitTextWithInterpolation(u.text,u.sourceSpan,null)}),new a_(a,s,e.sourceSpan,o)}},{key:"visitExpansionCase",value:function(e){return null}},{key:"visitComment",value:function(e){return this.options.collectCommentNodes&&this.commentNodes.push(new pM(e.value||"",e.sourceSpan)),null}},{key:"extractAttributes",value:function(e,i,o){var a=this,s=[],l=[];return i.forEach(function(u){var d=o[u.name];if(u.isLiteral)l.push(new mM(u.name,u.expression.source||"",u.sourceSpan,u.keySpan,u.valueSpan,d));else{var h=a.bindingParser.createBoundElementProperty(e,u,!0,!1);s.push(zP.fromBoundElementProperty(h,d))}}),{bound:s,literal:l}}},{key:"parseAttribute",value:function(e,i,o,a,s,l,u){var d,h=H4(i.name),g=i.value,C=i.sourceSpan,Z=i.valueSpan?i.valueSpan.start.offset:C.start.offset;function z(jn,zn,or){var Mr=i.name.length-h.length,_r=jn.start.moveBy(zn.length+Mr),zr=_r.moveBy(or.length);return new Qa(_r,zr,_r,or)}var q=h.match(F4);if(q){if(null!=q[1]){var re=q[7],ae=z(C,q[1],re);this.bindingParser.parsePropertyBinding(re,g,!1,C,Z,i.valueSpan,o,a,ae)}else if(q[2])if(e){var Se=q[7],Ce=z(C,q[2],Se);this.parseVariable(Se,g,C,Ce,i.valueSpan,l)}else this.reportError('"let-" is only supported on ng-template elements.',C);else if(q[3]){var Ee=q[7],Ve=z(C,q[3],Ee);this.parseReference(Ee,g,C,Ve,i.valueSpan,u)}else if(q[4]){var ut=[],Ae=q[7],ot=z(C,q[4],Ae);this.bindingParser.parseEvent(Ae,g,!1,C,i.valueSpan||C,o,ut,ot),n1(ut,s)}else if(q[5]){var ht=q[7],bt=z(C,q[5],ht);this.bindingParser.parsePropertyBinding(ht,g,!1,C,Z,i.valueSpan,o,a,bt),this.parseAssignmentEvent(ht,g,C,i.valueSpan,o,s,bt)}else if(q[6]){var Xe=z(C,"",h);this.bindingParser.parseLiteralAttr(h,g,C,Z,i.valueSpan,o,a,Xe)}return!0}var Pe=null;if(h.startsWith(Yf_BANANA_BOX.start)?Pe=Yf_BANANA_BOX:h.startsWith(Yf_PROPERTY.start)?Pe=Yf_PROPERTY:h.startsWith(Yf_EVENT.start)&&(Pe=Yf_EVENT),null!==Pe&&h.endsWith(Pe.end)&&h.length>Pe.start.length+Pe.end.length){var ft=h.substring(Pe.start.length,h.length-Pe.end.length),Nt=z(C,Pe.start,ft);if(Pe.start===Yf_BANANA_BOX.start)this.bindingParser.parsePropertyBinding(ft,g,!1,C,Z,i.valueSpan,o,a,Nt),this.parseAssignmentEvent(ft,g,C,i.valueSpan,o,s,Nt);else if(Pe.start===Yf_PROPERTY.start)this.bindingParser.parsePropertyBinding(ft,g,!1,C,Z,i.valueSpan,o,a,Nt);else{var Gt=[];this.bindingParser.parseEvent(ft,g,!1,C,i.valueSpan||C,o,Gt,Nt),n1(Gt,s)}return!0}var It=z(C,"",h);return this.bindingParser.parsePropertyInterpolation(h,g,C,i.valueSpan,o,a,It,null!==(d=i.valueTokens)&&void 0!==d?d:null)}},{key:"_visitTextWithInterpolation",value:function(e,i,o,a){var s=kS(e),l=this.bindingParser.parseInterpolation(s,i,o);return l?new hM(l,i,a):new Pf(s,i)}},{key:"parseVariable",value:function(e,i,o,a,s,l){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',o):0===e.length&&this.reportError("Variable does not have a name",o),l.push(new _M(e,i,o,a,s))}},{key:"parseReference",value:function(e,i,o,a,s,l){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',o):0===e.length?this.reportError("Reference does not have a name",o):l.some(function(u){return u.name===e})&&this.reportError('Reference "#'.concat(e,'" is defined more than once'),o),l.push(new WP(e,i,o,a,s))}},{key:"parseAssignmentEvent",value:function(e,i,o,a,s,l,u){var d=[];this.bindingParser.parseEvent("".concat(e,"Change"),"".concat(i," =$event"),!0,o,a||o,s,d,u),n1(d,l)}},{key:"reportError",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dd.ERROR;this.errors.push(new Yv(i,e,o))}}]),n}(),MV=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"visitElement",value:function(e){var i=f6(e);if(i.type===$o.SCRIPT||i.type===$o.STYLE||i.type===$o.STYLESHEET)return null;var o=xu(this,e.children,null);return new Rf(e.name,xu(this,e.attrs),[],[],o,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}},{key:"visitComment",value:function(e){return null}},{key:"visitAttribute",value:function(e){return new mM(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}},{key:"visitText",value:function(e){return new Pf(e.value,e.sourceSpan)}},{key:"visitExpansion",value:function(e){return null}},{key:"visitExpansionCase",value:function(e){return null}}]),n}(),LS=new MV;function H4(n){return/^data-/i.test(n)?n.substring(5):n}function n1(n,r){r.push.apply(r,(0,pn.Z)(n.map(function(e){return Rv.fromParsedEvent(e)})))}function Zd(){return{getUniqueId:Ps(),icus:new Map}}!function(n){n[n.ELEMENT=0]="ELEMENT",n[n.TEMPLATE=1]="TEMPLATE"}(Du||(Du={}));var r1=function(){function n(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;(0,H.Z)(this,n),this.index=r,this.ref=e,this.level=i,this.templateIndex=o,this.meta=a,this.registry=s,this.bindings=new Set,this.placeholders=new Map,this.isEmitted=!1,this._unresolvedCtxCount=0,this._registry=s||Zd(),this.id=this._registry.getUniqueId()}return(0,B.Z)(n,[{key:"appendTag",value:function(e,i,o,a){if(!i.isVoid||!a){var s=i.isVoid||!a?i.startName:i.closeName,l={type:e,index:o,ctx:this.id,isVoid:i.isVoid,closed:a};Bv(this.placeholders,s,l)}}},{key:"icus",get:function(){return this._registry.icus}},{key:"isRoot",get:function(){return 0===this.level}},{key:"isResolved",get:function(){return 0===this._unresolvedCtxCount}},{key:"getSerializedPlaceholders",value:function(){var e=new Map;return this.placeholders.forEach(function(i,o){return e.set(o,i.map(ZS))}),e}},{key:"appendBinding",value:function(e){this.bindings.add(e)}},{key:"appendIcu",value:function(e,i){Bv(this._registry.icus,e,i)}},{key:"appendBoundText",value:function(e){var i=this;$P(e,this.bindings.size,this.id).forEach(function(a,s){return Bv.apply(void 0,[i.placeholders,s].concat((0,pn.Z)(a)))})}},{key:"appendTemplate",value:function(e,i){this.appendTag(Du.TEMPLATE,e,i,!1),this.appendTag(Du.TEMPLATE,e,i,!0),this._unresolvedCtxCount++}},{key:"appendElement",value:function(e,i,o){this.appendTag(Du.ELEMENT,e,i,o)}},{key:"appendProjection",value:function(e,i){this.appendTag(Du.ELEMENT,e,i,!1),this.appendTag(Du.ELEMENT,e,i,!0)}},{key:"forkChildContext",value:function(e,i,o){return new n(e,this.ref,this.level+1,i,o,this._registry)}},{key:"reconcileChildContext",value:function(e){var i=this;["start","close"].forEach(function(a){var s=e.meta["".concat(a,"Name")],u=(i.placeholders.get(s)||[]).find(y6(i.id,e.templateIndex));u&&(u.ctx=e.id)}),e.placeholders.forEach(function(a,s){var l=i.placeholders.get(s);if(l){var u=l.findIndex(y6(e.id,e.templateIndex));if(u>=0){var d=s.startsWith("CLOSE");if(s.endsWith("NG-TEMPLATE"))l.splice.apply(l,[u+(d?0:1),0].concat((0,pn.Z)(a)));else a[d?a.length-1:0].tmpl=l[u],l.splice.apply(l,[u,1].concat((0,pn.Z)(a)))}else l.push.apply(l,(0,pn.Z)(a));i.placeholders.set(s,l)}else i.placeholders.set(s,a)}),this._unresolvedCtxCount--}}]),n}();function D_(n,r,e,i){var o=i?"/":"";return Nv("".concat(o).concat(n).concat(r),e)}function xh(n,r,e){var i=r.index,o=r.ctx;return r.isVoid?D_(n,i,o)+D_(n,i,o,!0):D_(n,i,o,e)}function y6(n,r){return function(e){return"object"==typeof e&&e.type===Du.TEMPLATE&&e.index===r&&e.ctx===n}}function ZS(n){var r=function(a,s){return xh("#",a,s)},e=function(a,s){return xh("*",a,s)};switch(n.type){case Du.ELEMENT:return n.closed?r(n,!0)+(n.tmpl?e(n.tmpl,!0):""):n.tmpl?e(n.tmpl)+r(n)+(n.isVoid?e(n.tmpl,!0):""):r(n);case Du.TEMPLATE:return e(n,n.closed);default:return n}}var b6=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"visitText",value:function(e){return e.value}},{key:"visitContainer",value:function(e){var i=this;return e.children.map(function(o){return o.visit(i)}).join("")}},{key:"visitIcu",value:function(e){var i=this,o=Object.keys(e.cases).map(function(s){return"".concat(s," {").concat(e.cases[s].visit(i),"}")});return"{".concat(e.expressionPlaceholder,", ").concat(e.type,", ").concat(o.join(" "),"}")}},{key:"visitTagPlaceholder",value:function(e){var i=this;return e.isVoid?this.formatPh(e.startName):"".concat(this.formatPh(e.startName)).concat(e.children.map(function(o){return o.visit(i)}).join("")).concat(this.formatPh(e.closeName))}},{key:"visitPlaceholder",value:function(e){return this.formatPh(e.name)}},{key:"visitIcuPlaceholder",value:function(e,i){return this.formatPh(e.name)}},{key:"formatPh",value:function(e){return"{".concat(u_(e,!1),"}")}}]),n}(),j4=new b6;function C6(n){return n.visit(j4)}var A_={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},G4=function(){function n(){(0,H.Z)(this,n),this._placeHolderNameCounts={},this._signatureToName={}}return(0,B.Z)(n,[{key:"getStartTagPlaceholderName",value:function(e,i,o){var a=this._hashTag(e,i,o);if(this._signatureToName[a])return this._signatureToName[a];var s=e.toUpperCase(),l=A_[s]||"TAG_".concat(s),u=this._generateUniqueName(o?l:"START_".concat(l));return this._signatureToName[a]=u,u}},{key:"getCloseTagPlaceholderName",value:function(e){var i=this._hashClosingTag(e);if(this._signatureToName[i])return this._signatureToName[i];var o=e.toUpperCase(),a=A_[o]||"TAG_".concat(o),s=this._generateUniqueName("CLOSE_".concat(a));return this._signatureToName[i]=s,s}},{key:"getPlaceholderName",value:function(e,i){var o=e.toUpperCase(),a="PH: ".concat(o,"=").concat(i);if(this._signatureToName[a])return this._signatureToName[a];var s=this._generateUniqueName(o);return this._signatureToName[a]=s,s}},{key:"getUniquePlaceholder",value:function(e){return this._generateUniqueName(e.toUpperCase())}},{key:"_hashTag",value:function(e,i,o){return"<".concat(e)+Object.keys(i).sort().map(function(u){return" ".concat(u,"=").concat(i[u])}).join("")+(o?"/>":">"))}},{key:"_hashClosingTag",value:function(e){return this._hashTag("/".concat(e),{},!1)}},{key:"_generateUniqueName",value:function(e){if(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;var o=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=o+1,"".concat(e,"_").concat(o)}}]),n}(),SV=new pS(new Id);function z4(n){var r=new W4(SV,n);return function(e,i,o,a,s){return r.toI18nMessage(e,i,o,a,s)}}function EV(n,r){return r}var W4=function(){function n(r,e){(0,H.Z)(this,n),this._expressionParser=r,this._interpolationConfig=e}return(0,B.Z)(n,[{key:"toI18nMessage",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s=arguments.length>4?arguments[4]:void 0,l={isIcu:1==e.length&&e[0]instanceof Eu,icuDepth:0,placeholderRegistry:new G4,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:s||EV},u=xu(this,e,l);return new bu(u,l.placeholderToContent,l.placeholderToMessage,i,o,a)}},{key:"visitElement",value:function(e,i){var o,a=xu(this,e.children,i),s={};e.attrs.forEach(function(g){s[g.name]=g.value});var l=wa(e.name).isVoid,u=i.placeholderRegistry.getStartTagPlaceholderName(e.name,s,l);i.placeholderToContent[u]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};var d="";l||(d=i.placeholderRegistry.getCloseTagPlaceholderName(e.name),i.placeholderToContent[d]={text:""),sourceSpan:null!==(o=e.endSourceSpan)&&void 0!==o?o:e.sourceSpan});var h=new f5(e.name,s,u,d,a,l,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return i.visitNodeFn(e,h)}},{key:"visitAttribute",value:function(e,i){var o=void 0===e.valueTokens||1===e.valueTokens.length?new hC(e.value,e.valueSpan||e.sourceSpan):this._visitTextWithInterpolation(e.valueTokens,e.valueSpan||e.sourceSpan,i,e.i18n);return i.visitNodeFn(e,o)}},{key:"visitText",value:function(e,i){var o=1===e.tokens.length?new hC(e.value,e.sourceSpan):this._visitTextWithInterpolation(e.tokens,e.sourceSpan,i,e.i18n);return i.visitNodeFn(e,o)}},{key:"visitComment",value:function(e,i){return null}},{key:"visitExpansion",value:function(e,i){var o=this;i.icuDepth++;var a={},s=new vM(e.switchValue,e.type,a,e.sourceSpan);if(e.cases.forEach(function(h){a[h.value]=new mC(h.expression.map(function(g){return g.visit(o,i)}),h.expSourceSpan)}),i.icuDepth--,i.isIcu||i.icuDepth>0){var l=i.placeholderRegistry.getUniquePlaceholder("VAR_".concat(e.type));return s.expressionPlaceholder=l,i.placeholderToContent[l]={text:e.switchValue,sourceSpan:e.switchValueSourceSpan},i.visitNodeFn(e,s)}var u=i.placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString());i.placeholderToMessage[u]=this.toI18nMessage([e],"","","",void 0);var d=new _C(s,u,e.sourceSpan);return i.visitNodeFn(e,d)}},{key:"visitExpansionCase",value:function(e,i){throw new Error("Unreachable code")}},{key:"_visitTextWithInterpolation",value:function(e,i,o,a){var d,s=[],l=!1,u=(0,xn.Z)(e);try{for(u.s();!(d=u.n()).done;){var h=d.value;switch(h.type){case 8:case 17:l=!0;var g=h.parts[1],C=K4(g)||"INTERPOLATION",Z=o.placeholderRegistry.getPlaceholderName(C,g);o.placeholderToContent[Z]={text:h.parts.join(""),sourceSpan:h.sourceSpan},s.push(new p5(g,Z,h.sourceSpan));break;default:if(h.parts[0].length>0){var z=s[s.length-1];z instanceof hC?(z.value+=h.parts[0],z.sourceSpan=new Qa(z.sourceSpan.start,h.sourceSpan.end,z.sourceSpan.fullStart,z.sourceSpan.details)):s.push(new hC(h.parts[0],h.sourceSpan))}}}}catch(q){u.e(q)}finally{u.f()}return l?(function V4(n,r){if(r instanceof bu&&(function Y4(n){var r=n.nodes;if(1!==r.length||!(r[0]instanceof mC))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}(r),r=r.nodes[0]),r instanceof mC){!function w6(n,r){if(n.length!==r.length)throw new Error("The number of i18n message children changed between first and second pass.");if(n.some(function(e,i){return r[i].constructor!==e.constructor}))throw new Error("The types of the i18n message children changed between first and second pass.")}(r.children,n);for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:wu,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,H.Z)(this,n),this.interpolationConfig=r,this.keepI18nAttrs=e,this.enableI18nLegacyMessageIdFormat=i,this.hasI18nMeta=!1,this._errors=[],this._createI18nMessage=z4(this.interpolationConfig)}return(0,B.Z)(n,[{key:"_generateI18nMessage",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,a=this._parseMetadata(i),s=a.meaning,l=a.description,u=a.customId,d=this._createI18nMessage(e,s,l,u,o);return this._setMessageId(d,i),this._setLegacyIds(d,i),d}},{key:"visitAllWithErrors",value:function(e){var i=this,o=e.map(function(a){return a.visit(i,null)});return new Q3(o,this._errors)}},{key:"visitElement",value:function(e){var i=void 0;if(function Cu(n){return n.attrs.some(function(r){return XP(r.name)})}(e)){this.hasI18nMeta=!0;var l,o=[],a={},s=(0,xn.Z)(e.attrs);try{for(s.s();!(l=s.n()).done;){var u=l.value;if("i18n"===u.name){var d=e.i18n||u.value;0===(i=this._generateI18nMessage(e.children,d,q4)).nodes.length&&(i=void 0),e.i18n=i}else if(u.name.startsWith(vC)){var h=u.name.slice(vC.length);n6(e.name,h)?this._reportError(u,"Translating attribute '".concat(h,"' is disallowed for security reasons.")):a[h]=u.value}else o.push(u)}}catch(q){s.e(q)}finally{s.f()}if(Object.keys(a).length){var C,g=(0,xn.Z)(o);try{for(g.s();!(C=g.n()).done;){var Z=C.value,z=a[Z.name];void 0!==z&&Z.value&&(Z.i18n=this._generateI18nMessage([Z],Z.i18n||z))}}catch(q){g.e(q)}finally{g.f()}}this.keepI18nAttrs||(e.attrs=o)}return xu(this,e.children,i),e}},{key:"visitExpansion",value:function(e,i){var o,a=e.i18n;if(this.hasI18nMeta=!0,a instanceof _C){var s=a.name;bC(o=this._generateI18nMessage([e],a)).name=s,null!==i&&(i.placeholderToMessage[s]=o)}else o=this._generateI18nMessage([e],i||a);return e.i18n=o,e}},{key:"visitText",value:function(e){return e}},{key:"visitAttribute",value:function(e){return e}},{key:"visitComment",value:function(e){return e}},{key:"visitExpansionCase",value:function(e){return e}},{key:"_parseMetadata",value:function(e){return"string"==typeof e?function X4(){var r,e,i,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(n=n.trim()){var s,o=n.indexOf("@@"),a=n.indexOf("|"),l=o>-1?[n.slice(0,o),n.slice(o+2)]:[n,""],u=(0,Nn.Z)(l,2);s=u[0],r=u[1];var d=a>-1?[s.slice(0,a),s.slice(a+1)]:["",s],h=(0,Nn.Z)(d,2);e=h[0],i=h[1]}return{customId:r,meaning:e,description:i}}(e):e instanceof bu?e:{}}},{key:"_setMessageId",value:function(e,i){e.id||(e.id=i instanceof bu&&i.id||ih(e))}},{key:"_setLegacyIds",value:function(e,i){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[rh(e),Ef(e)];else if("string"!=typeof i){var o=i instanceof bu?i:i instanceof _C?i.previousMessage:void 0;e.legacyIds=o?o.legacyIds:[]}}},{key:"_reportError",value:function(e,i){this._errors.push(new BS(e.sourceSpan,i))}}]),n}();function Dh(n,r,e,i){var o=function e8(n){return n.nodes.map(function(r){return r.visit(fy,null)}).join("")}(r),a=[rn(o)];Object.keys(i).length&&(a.push(Ld(kM(i,!0),!0)),a.push(Ld({original_code:Qs(Object.keys(i).map(function(u){return{key:u_(u),quoted:!0,value:r.placeholders[u]?rn(r.placeholders[u].sourceSpan.toString()):rn(r.placeholderToMessage[u].nodes.map(function(d){return d.sourceSpan.toString()}).join(""))}}))})));var s=e.set(ii("goog.getMsg").callFn(a)).toConstDecl();return s.addLeadingComment(function $4(n){var r=[];return n.description?r.push({tagName:"desc",text:n.description}):r.push({tagName:"suppress",text:"{msgDescriptions}"}),n.meaning&&r.push({tagName:"meaning",text:n.meaning}),aM(r)}(r)),[s,new Of(n.set(e))]}var xV=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"formatPh",value:function(e){return"{$".concat(u_(e),"}")}},{key:"visitText",value:function(e){return e.value}},{key:"visitContainer",value:function(e){var i=this;return e.children.map(function(o){return o.visit(i)}).join("")}},{key:"visitIcu",value:function(e){return C6(e)}},{key:"visitTagPlaceholder",value:function(e){var i=this;return e.isVoid?this.formatPh(e.startName):"".concat(this.formatPh(e.startName)).concat(e.children.map(function(o){return o.visit(i)}).join("")).concat(this.formatPh(e.closeName))}},{key:"visitPlaceholder",value:function(e){return this.formatPh(e.name)}},{key:"visitIcuPlaceholder",value:function(e,i){return this.formatPh(e.name)}}]),n}(),fy=new xV;function t8(n,r,e){var i=function n8(n){var r=[],e=new FS(n.placeholderToMessage,r);return n.nodes.forEach(function(i){return i.visit(e)}),function py(n){var r=[],e=[];n[0]instanceof Pt&&r.push(Xa(n[0].sourceSpan.start));for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:null,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=n.type,o=n.name,a=n.target,s=n.phase,l=n.handler;if(a&&!hy.has(a))throw new Error("Unexpected global target '".concat(a,"' defined for '").concat(o,"' event.\n Supported list of global targets: ").concat(Array.from(hy.keys()),"."));var u="$event",d=new Set,h=null===e||0===e.bindingLevel?ii(tc):e.getOrCreateSharedContextVar(0),g=C_(e,h,l,"b",n.handlerSpan,d,Jl),C=[],Z=null==e?void 0:e.variableDeclarations(),z=null==e?void 0:e.restoreViewStatement();if(Z&&C.push.apply(C,(0,pn.Z)(Z)),C.push.apply(C,(0,pn.Z)(g)),z){C.unshift(z);var q=C[C.length-1];q instanceof _s?C[C.length-1]=new _s(mh(q.value.sourceSpan,Le.resetView,[q.value])):C.push(new Of(mh(null,Le.resetView,[])))}var re=1===i?a5(o,s):o,ae=r&&v_(r),Se=[];d.has(u)&&Se.push(new Go(u,qs));var Ce=aa(Se,C,ia,null,ae),Ee=[rn(re),Ce];return a&&Ee.push(rn(!1),Jn(hy.get(a))),Ee}function I_(){return{prepareStatements:[],constExpressions:[],i18nVarRefsCache:new Map}}var P_=function(){function n(r,e){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,l=arguments.length>5?arguments[5]:void 0,u=arguments.length>6?arguments[6]:void 0,d=arguments.length>7?arguments[7]:void 0,h=arguments.length>8?arguments[8]:void 0,g=arguments.length>9?arguments[9]:void 0,C=arguments.length>10&&void 0!==arguments[10]?arguments[10]:I_();(0,H.Z)(this,n),this.constantPool=r,this.level=o,this.contextName=a,this.i18nContext=s,this.templateIndex=l,this.templateName=u,this._namespace=d,this.i18nUseExternalIds=g,this._constants=C,this._dataIndex=0,this._bindingContext=0,this._prefixCode=[],this._creationCodeFns=[],this._updateCodeFns=[],this._currentIndex=0,this._tempVariables=[],this._nestedTemplateFns=[],this.i18n=null,this._pureFunctionSlots=0,this._bindingSlots=0,this._ngContentReservedSlots=[],this._ngContentSelectorsOffset=0,this._implicitReceiverExpr=null,this.visitReference=_h,this.visitVariable=_h,this.visitTextAttribute=_h,this.visitBoundAttribute=_h,this.visitBoundEvent=_h,this._bindingScope=e.nestedScope(o),this.fileBasedI18nSuffix=h.replace(/[^A-Za-z0-9]/g,"_")+"_",this._valueConverter=new Ih(r,function(){return i.allocateDataSlot()},function(Z){return i.allocatePureFunctionSlots(Z)},function(Z,z,q,re){i._bindingScope.set(i.level,z,re),i.creationInstruction(null,Le.pipe,[rn(q),rn(Z)])})}return(0,B.Z)(n,[{key:"buildTemplateFunction",value:function(e,i){var o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3?arguments[3]:void 0;this._ngContentSelectorsOffset=a,this._namespace!==Le.namespaceHTML&&this.creationInstruction(null,this._namespace),i.forEach(function(ae){return o.registerContextVariables(ae)});var l=this.i18nContext||s_(s)&&!yC(s)&&!(a8(e)&&e[0].i18n===s),u=gy(e);if(l&&this.i18nStart(null,s,u),VP(this,e),this._pureFunctionSlots+=this._bindingSlots,this._valueConverter.updatePipeSlotOffsets(this._bindingSlots),this._nestedTemplateFns.forEach(function(ae){return ae()}),0===this.level&&this._ngContentReservedSlots.length){var d=[];if(this._ngContentReservedSlots.length>1||"*"!==this._ngContentReservedSlots[0]){var h=this._ngContentReservedSlots.map(function(ae){return"*"!==ae?us(ae):ae});d.push(this.constantPool.getConstLiteral(vl(h),!0))}this.creationInstruction(null,Le.projectionDef,d,!0)}l&&this.i18nEnd(null,u);var g=wC(this._creationCodeFns),C=wC(this._updateCodeFns),Z=this._bindingScope.viewSnapshotStatements(),z=this._bindingScope.variableDeclarations().concat(this._tempVariables),q=g.length>0?[Ql(1,Z.concat(g))]:[],re=C.length>0?[Ql(2,z.concat(C))]:[];return aa([new Go(Fv,Ue),new Go(tc,null)],[].concat((0,pn.Z)(this._prefixCode),q,re),ia,null,this.templateName)}},{key:"getLocal",value:function(e){return this._bindingScope.get(e)}},{key:"notifyImplicitReceiverUse",value:function(){this._bindingScope.notifyImplicitReceiverUse()}},{key:"maybeRestoreView",value:function(){this._bindingScope.maybeRestoreView()}},{key:"i18nTranslate",value:function(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,l=a||this.i18nGenerateMainBlockVar(),u=this.i18nGenerateClosureVar(e.id),d=c1(e,l,u,o,s);return(i=this._constants.prepareStatements).push.apply(i,(0,pn.Z)(d)),l}},{key:"registerContextVariables",value:function(e){var i=this._bindingScope.freshReferenceName(),o=this.level,a=ii(e.name+i);this._bindingScope.set(o,e.name,a,1,function(s,l){var u;s.bindingLevel===o?s.isListenerScope()&&s.hasRestoreViewVariable()?(u=ii(SM),s.notifyRestoredViewContextUse()):u=ii(tc):u=s.getSharedContextName(o)||my(l);return[a.set(u.prop(e.value||"$implicit")).toConstDecl()]})}},{key:"i18nAppendBindings",value:function(e){var i=this;e.length>0&&e.forEach(function(o){return i.i18n.appendBinding(o)})}},{key:"i18nBindProps",value:function(e){var i=this,o={};return Object.keys(e).forEach(function(a){var s=e[a];if(s instanceof Pf)o[a]=rn(s.value);else{var l=s.value.visit(i._valueConverter);if(i.allocateBindingSlots(l),l instanceof gs){var u=l.strings,d=l.expressions,h=i.i18n,g=h.id,Z=function wM(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!n.length)return"";for(var i="",o=n.length-1,a=0;a1})||Object.keys(d).length)&&(C=function(z){var q=[z];return Object.keys(d).length&&q.push(Ld(d,!0)),mh(null,Le.i18nPostprocess,q)}),this.i18nTranslate(o,h,e.ref,C)}}},{key:"i18nStart",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,a=this.allocateDataSlot();this.i18n=this.i18nContext?this.i18nContext.forkChildContext(a,this.templateIndex,i):new r1(a,this.i18nGenerateMainBlockVar(),0,this.templateIndex,i);var s=this.i18n,l=s.id,u=s.ref,d=[rn(a),this.addToConsts(u)];l>0&&d.push(rn(l)),this.creationInstruction(e,o?Le.i18n:Le.i18nStart,d)}},{key:"i18nEnd",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1?arguments[1]:void 0;if(!this.i18n)throw new Error("i18nEnd is executed with no i18n context present");this.i18nContext?(this.i18nContext.reconcileChildContext(this.i18n),this.i18nUpdateRef(this.i18nContext)):this.i18nUpdateRef(this.i18n);var a=this.i18n,s=a.index,l=a.bindings;if(l.size){var d,u=(0,xn.Z)(l);try{var h=function(){var C=d.value;e.updateInstructionWithAdvance(e.getConstCount()-1,i,Le.i18nExp,function(){return e.convertPropertyBinding(C)})};for(u.s();!(d=u.n()).done;)h()}catch(g){u.e(g)}finally{u.f()}this.updateInstruction(i,Le.i18nApply,[rn(s)])}o||this.creationInstruction(i,Le.i18nEnd),this.i18n=null}},{key:"i18nAttributesInstruction",value:function(e,i,o){var a=this,s=!1,l=[];if(i.forEach(function(h){var g=h.i18n,C=h.value.visit(a._valueConverter);if(a.allocateBindingSlots(C),C instanceof gs){var z=l_($P(g));l.push(rn(h.name),a.i18nTranslate(g,z)),C.expressions.forEach(function(q){s=!0,a.updateInstructionWithAdvance(e,o,Le.i18nExp,function(){return a.convertPropertyBinding(q)})})}}),l.length>0){var u=rn(this.allocateDataSlot()),d=this.addToConsts(di(l));this.creationInstruction(o,Le.i18nAttributes,[u,d]),s&&this.updateInstruction(o,Le.i18nApply,[u])}}},{key:"getNamespaceInstruction",value:function(e){switch(e){case"math":return Le.namespaceMathML;case"svg":return Le.namespaceSVG;default:return Le.namespaceHTML}}},{key:"addNamespaceInstruction",value:function(e,i){this._namespace=e,this.creationInstruction(i.startSourceSpan,e)}},{key:"interpolatedUpdateInstruction",value:function(e,i,o,a,s,l){var u=this;this.updateInstructionWithAdvance(i,a.sourceSpan,e,function(){return[rn(o)].concat((0,pn.Z)(u.getUpdateInstructionArguments(s)),(0,pn.Z)(l))})}},{key:"visitContent",value:function(e){var i=this.allocateDataSlot(),o=this._ngContentSelectorsOffset+this._ngContentReservedSlots.length,a=[rn(i)];this._ngContentReservedSlots.push(e.selector);var s=e.attributes.filter(function(u){return"select"!==u.name.toLowerCase()}),l=this.getAttributeExpressions(e.name,s,[],[]);l.length>0?a.push(rn(o),di(l)):0!==o&&a.push(rn(o)),this.creationInstruction(e.sourceSpan,Le.projection,a),this.i18n&&this.i18n.appendProjection(e.i18n,i)}},{key:"visitElement",value:function(e){var o,a,ae,i=this,s=this.allocateDataSlot(),l=new VC(null),u=!1,d=s_(e.i18n)&&!yC(e.i18n),h=[],g=Ji(e.name),C=(0,Nn.Z)(g,2),Z=C[0],z=C[1],q=jo(e.name),re=(0,xn.Z)(e.attributes);try{for(re.s();!(ae=re.n()).done;){var Se=ae.value,Ce=Se.name,Ee=Se.value;"ngNonBindable"===Ce?u=!0:"style"===Ce?l.registerStyleAttr(Ee):"class"===Ce?l.registerClassAttr(Ee):h.push(Se)}}catch(un){re.e(un)}finally{re.f()}var Ve=[rn(s)];q||Ve.push(rn(z));var ut=[],Ae=[];e.inputs.forEach(function(un){l.registerBoundInput(un)||(0===un.type&&un.i18n?Ae.push(un):ut.push(un))});var ot=this.getAttributeExpressions(e.name,h,ut,e.outputs,l,[],Ae);Ve.push(this.addAttrsToConsts(ot));var ht=this.prepareRefsArray(e.references);Ve.push(this.addToConsts(ht));var bt=this._namespace,Xe=this.getNamespaceInstruction(Z);Xe!==bt&&this.addNamespaceInstruction(Xe,e),this.i18n&&this.i18n.appendElement(e.i18n,s);var Pe=!d&&this.i18n?!gy(e.children):e.children.length>0,ft=!l.hasBindingsWithPipes&&0===e.outputs.length&&0===Ae.length&&!Pe,Nt=!ft&&gy(e.children);if(ft)this.creationInstruction(e.sourceSpan,q?Le.elementContainer:Le.element,Lf(Ve));else{if(this.creationInstruction(e.startSourceSpan,q?Le.elementContainerStart:Le.elementStart,Lf(Ve)),u&&this.creationInstruction(e.startSourceSpan,Le.disableBindings),Ae.length>0&&this.i18nAttributesInstruction(s,Ae,null!==(o=e.startSourceSpan)&&void 0!==o?o:e.sourceSpan),e.outputs.length>0){var It,Gt=(0,xn.Z)(e.outputs);try{for(Gt.s();!(It=Gt.n()).done;){var Tn=It.value;this.creationInstruction(Tn.sourceSpan,Le.listener,this.prepareListenerParameter(e.name,Tn,s))}}catch(un){Gt.e(un)}finally{Gt.f()}}d&&this.i18nStart(e.startSourceSpan,e.i18n,Nt)}for(var jn=l.buildUpdateLevelInstructions(this._valueConverter),zn=jn.length-1,or=0;or<=zn;or++){var Mr=jn[or];this._bindingSlots+=this.processStylingUpdateInstruction(s,Mr)}var _r=rn(void 0),zr=[],Ur=[];ut.forEach(function(un){var bn=un.type;if(4===bn){var Bn=un.value.visit(i._valueConverter),nr=!(Bn instanceof Xs)||!!Bn.value;i.allocateBindingSlots(Bn),zr.push({span:un.sourceSpan,paramsOrFn:u1(function(){return nr?i.convertPropertyBinding(Bn):_r},cM(un.name))})}else{if(un.i18n)return;var vr=un.value.visit(i._valueConverter);if(void 0!==vr){var io=[],Yu=Ji(un.name),Mv=(0,Nn.Z)(Yu,2),Sv=Mv[0],Jm=Mv[1],aC=1===bn,Ia=a1(un.securityContext,aC);if(Ia||function l1(n){return"iframe"===n.toLowerCase()}(e.name)&&Nc(un.name)&&(Ia=Jn(Le.validateIframeAttribute)),Ia&&io.push(Ia),Sv){var AP=rn(Sv);Ia?io.push(AP):io.push(rn(null),AP)}if(i.allocateBindingSlots(vr),0===bn)vr instanceof gs?i.interpolatedUpdateInstruction(jS(vr),s,Jm,un,vr,io):zr.push({span:un.sourceSpan,paramsOrFn:u1(function(){return i.convertPropertyBinding(vr)},Jm,io)});else if(1===bn)if(vr instanceof gs&&Sd(vr)>1)i.interpolatedUpdateInstruction(function i8(n){switch(Sd(n)){case 3:return Le.attributeInterpolate1;case 5:return Le.attributeInterpolate2;case 7:return Le.attributeInterpolate3;case 9:return Le.attributeInterpolate4;case 11:return Le.attributeInterpolate5;case 13:return Le.attributeInterpolate6;case 15:return Le.attributeInterpolate7;case 17:return Le.attributeInterpolate8;default:return Le.attributeInterpolateV}}(vr),s,Jm,un,vr,io);else{var QW=vr instanceof gs?vr.expressions[0]:vr;Ur.push({span:un.sourceSpan,paramsOrFn:u1(function(){return i.convertPropertyBinding(QW)},Jm,io)})}else i.updateInstructionWithAdvance(s,un.sourceSpan,Le.classProp,function(){return[rn(s),rn(Jm),i.convertPropertyBinding(vr)].concat(io)})}}});for(var Kr=0,Fo=zr;Kr0&&this.i18nAttributesInstruction(s,re,null!==(o=e.startSourceSpan)&&void 0!==o?o:e.sourceSpan),ae.length>0&&this.templatePropertyBindings(s,ae);var Ce,Se=(0,xn.Z)(e.outputs);try{for(Se.s();!(Ce=Se.n()).done;){var Ee=Ce.value;this.creationInstruction(Ee.sourceSpan,Le.listener,this.prepareListenerParameter("ng_template",Ee,s))}}catch(Ve){Se.e(Ve)}finally{Se.f()}}}},{key:"visitBoundText",value:function(e){var i=this;if(this.i18n){var o=e.value.visit(this._valueConverter);return this.allocateBindingSlots(o),void(o instanceof gs&&(this.i18n.appendBoundText(e.i18n),this.i18nAppendBindings(o.expressions)))}var a=this.allocateDataSlot();this.creationInstruction(e.sourceSpan,Le.text,[rn(a)]);var s=e.value.visit(this._valueConverter);this.allocateBindingSlots(s),s instanceof gs?this.updateInstructionWithAdvance(a,e.sourceSpan,function o8(n){switch(Sd(n)){case 1:return Le.textInterpolate;case 3:return Le.textInterpolate1;case 5:return Le.textInterpolate2;case 7:return Le.textInterpolate3;case 9:return Le.textInterpolate4;case 11:return Le.textInterpolate5;case 13:return Le.textInterpolate6;case 15:return Le.textInterpolate7;case 17:return Le.textInterpolate8;default:return Le.textInterpolateV}}(s),function(){return i.getUpdateInstructionArguments(s)}):Ba("Text nodes should be interpolated and never bound directly.")}},{key:"visitText",value:function(e){this.i18n||this.creationInstruction(e.sourceSpan,Le.text,[rn(this.allocateDataSlot()),rn(e.value)])}},{key:"visitIcu",value:function(e){var i=!1;this.i18n||(i=!0,this.i18nStart(null,e.i18n,!0));var o=this.i18n,a=this.i18nBindProps(e.vars),s=this.i18nBindProps(e.placeholders),l=e.i18n,u=function(g){var Z=kM(Object.assign(Object.assign({},a),s),!1);return mh(null,Le.i18nPostprocess,[g,Ld(Z,!0)])};if(yC(o.meta))this.i18nTranslate(l,{},o.ref,u);else{var d=this.i18nTranslate(l,{},void 0,u);o.appendIcu(bC(l).name,d)}return i&&this.i18nEnd(null,!0),null}},{key:"allocateDataSlot",value:function(){return this._dataIndex++}},{key:"getConstCount",value:function(){return this._dataIndex}},{key:"getVarCount",value:function(){return this._pureFunctionSlots}},{key:"getConsts",value:function(){return this._constants}},{key:"getNgContentSelectors",value:function(){return this._ngContentReservedSlots.length?this.constantPool.getConstLiteral(vl(this._ngContentReservedSlots),!0):null}},{key:"bindingContext",value:function(){return"".concat(this._bindingContext++)}},{key:"templatePropertyBindings",value:function(e,i){var l,o=this,a=[],s=(0,xn.Z)(i);try{var u=function(){var z=l.value;if(!(z instanceof zP))return 0;var q=z.value.visit(o._valueConverter);if(void 0===q)return 0;if(o.allocateBindingSlots(q),q instanceof gs){o.interpolatedUpdateInstruction(jS(q),e,z.name,z,q,[])}else a.push({span:z.sourceSpan,paramsOrFn:u1(function(){return o.convertPropertyBinding(q)},z.name)})};for(s.s();!(l=s.n()).done;)u()}catch(Z){s.e(Z)}finally{s.f()}for(var h=0,g=a;h4&&void 0!==arguments[4]&&arguments[4];e[s?"unshift":"push"]({span:i,reference:o,paramsOrFn:a})}},{key:"processStylingUpdateInstruction",value:function(e,i){var o=this,a=0;if(i){var l,s=(0,xn.Z)(i.calls);try{var u=function(){var h=l.value;a+=h.allocateBindingSlots,o.updateInstructionWithAdvance(e,h.sourceSpan,i.reference,function(){return h.params(function(g){return h.supportsInterpolation&&g instanceof gs?o.getUpdateInstructionArguments(g):o.convertPropertyBinding(g)})})};for(s.s();!(l=s.n()).done;)u()}catch(d){s.e(d)}finally{s.f()}}return a}},{key:"creationInstruction",value:function(e,i,o,a){this.instructionFn(this._creationCodeFns,e,i,o||[],a)}},{key:"updateInstructionWithAdvance",value:function(e,i,o,a){this.addAdvanceInstructionIfNecessary(e,i),this.updateInstruction(i,o,a)}},{key:"updateInstruction",value:function(e,i,o){this.instructionFn(this._updateCodeFns,e,i,o||[])}},{key:"addAdvanceInstructionIfNecessary",value:function(e,i){if(e!==this._currentIndex){var o=e-this._currentIndex;if(o<1)throw new Error("advance instruction can only go forwards");this.instructionFn(this._updateCodeFns,i,Le.advance,[rn(o)]),this._currentIndex=e}}},{key:"allocatePureFunctionSlots",value:function(e){var i=this._pureFunctionSlots;return this._pureFunctionSlots+=e,i}},{key:"allocateBindingSlots",value:function(e){this._bindingSlots+=e instanceof gs?e.expressions.length:1}},{key:"getImplicitReceiverExpr",value:function(){return this._implicitReceiverExpr?this._implicitReceiverExpr:this._implicitReceiverExpr=0===this.level?ii(tc):this._bindingScope.getOrCreateSharedContextVar(0)}},{key:"convertPropertyBinding",value:function(e){var i,o=Th(this,this.getImplicitReceiverExpr(),e,this.bindingContext()),a=o.currValExpr;return(i=this._tempVariables).push.apply(i,(0,pn.Z)(o.stmts)),a}},{key:"getUpdateInstructionArguments",value:function(e){var i,o=function z5(n,r,e,i){var o=new ty(n,r,i,!0),a=o.visitInterpolation(e,Oi.Expression);return o.usesImplicitReceiver&&n.notifyImplicitReceiverUse(),{stmts:W5(o,i),args:a.args}}(this,this.getImplicitReceiverExpr(),e,this.bindingContext()),a=o.args,s=o.stmts;return(i=this._tempVariables).push.apply(i,(0,pn.Z)(s)),a}},{key:"getAttributeExpressions",value:function(e,i,o,a,s){var g,Z,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],d=new Set,h=[],C=(0,xn.Z)(i);try{for(C.s();!(Z=C.n()).done;){var z=Z.value;if(z.name===o1&&(g=z),z.i18n){var q=this._constants.i18nVarRefsCache,re=void 0;q.has(z.i18n)?re=q.get(z.i18n):(re=this.i18nTranslate(z.i18n),q.set(z.i18n,re)),h.push(rn(z.name),re)}else h.push.apply(h,(0,pn.Z)(HS(z.name)).concat([GS(e,z)]))}}catch(Ae){C.e(Ae)}finally{C.f()}function ae(Ae,ot){"string"==typeof Ae?d.has(Ae)||(h.push.apply(h,(0,pn.Z)(HS(Ae))),void 0!==ot&&h.push(ot),d.add(Ae)):h.push(rn(Ae))}if(g&&h.push.apply(h,(0,pn.Z)(S6(g))),s&&s.populateInitialStylingAttrs(h),o.length||a.length){for(var Se=h.length,Ce=0;Ce0?this.addToConsts(di(e)):sh}},{key:"prepareRefsArray",value:function(e){var i=this;return e&&0!==e.length?vl(WS(e.map(function(a){var s=i.allocateDataSlot(),l=i._bindingScope.freshReferenceName(),u=i.level,d=ii(l);return i._bindingScope.set(u,a.name,d,0,function(h,g){var C=g>0?[my(g).toStmt()]:[],Z=d.set(Jn(Le.reference).callFn([rn(s)]));return C.concat(Z.toConstDecl())},!0),[a.name,a.value]}))):sh}},{key:"prepareListenerParameter",value:function(e,i,o){var a=this;return function(){var s=i.name,l=1===i.type?FP(s,i.phase):v_(s),u="".concat(a.templateName,"_").concat(e,"_").concat(l,"_").concat(o,"_listener"),d=a._bindingScope.nestedScope(a._bindingScope.bindingLevel,Jl);return Oh(i,u,d)}}}]),n}(),Ih=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this)).constantPool=i,l.allocateSlot=o,l.allocatePureFunctionSlots=a,l.definePipe=s,l._pipeBindExprs=[],l}return(0,B.Z)(e,[{key:"visitPipe",value:function(o,a){var s=this.allocateSlot(),l="PIPE:".concat(s),u=this.allocatePureFunctionSlots(2+o.args.length),d=new wh(o.span,o.sourceSpan,o.nameSpan,new qv(o.span,o.sourceSpan),l),h=function L_(n){var r=R_[n.length];return{identifier:r||Le.pipeBindV,isVarLength:!r}}(o.args),g=h.identifier,C=h.isVarLength;this.definePipe(o.name,l,s,Jn(g));var Z=[o.exp].concat((0,pn.Z)(o.args)),z=C?this.visitAll([new kh(o.span,o.sourceSpan,Z)]):this.visitAll(Z),q=new b_(o.span,o.sourceSpan,d,[new Xs(o.span,o.sourceSpan,s),new Xs(o.span,o.sourceSpan,u)].concat((0,pn.Z)(z)),null);return this._pipeBindExprs.push(q),q}},{key:"updatePipeSlotOffsets",value:function(o){this._pipeBindExprs.forEach(function(a){a.args[1].value+=o})}},{key:"visitLiteralArray",value:function(o,a){var s=this;return new T_(o.span,o.sourceSpan,this.visitAll(o.expressions),function(l){var u=di(l);return US(s.constantPool,u,s.allocatePureFunctionSlots)})}},{key:"visitLiteralMap",value:function(o,a){var s=this;return new T_(o.span,o.sourceSpan,this.visitAll(o.values),function(l){var u=Qs(l.map(function(d,h){return{key:o.keys[h].key,value:d,quoted:o.keys[h].quoted}}));return US(s.constantPool,u,s.allocatePureFunctionSlots)})}}]),e}(VM),R_=[Le.pipeBind1,Le.pipeBind2,Le.pipeBind3,Le.pipeBind4];var Z_=[Le.pureFunction0,Le.pureFunction1,Le.pureFunction2,Le.pureFunction3,Le.pureFunction4,Le.pureFunction5,Le.pureFunction6,Le.pureFunction7,Le.pureFunction8];function my(n){return Jn(Le.nextContext).callFn(n>1?[rn(n)]:[])}function US(n,r,e){var i=n.getLiteralFactory(r),o=i.literalFactory,a=i.literalFactoryArguments,s=e(1+a.length),l=function T6(n){var r=Z_[n.length];return{identifier:r||Le.pureFunctionV,isVarLength:!r}}(a),u=l.identifier,d=l.isVarLength,h=[rn(s),o];return d?h.push(di(a)):h.push.apply(h,(0,pn.Z)(a)),Jn(u).callFn(h)}function HS(n){var r=Ji(n),e=(0,Nn.Z)(r,2),i=e[0],a=rn(e[1]);return i?[rn(0),rn(i),a]:[a]}var Ph="$$shared_ctx$$",M6=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0;if((0,H.Z)(this,n),this.bindingLevel=r,this.parent=e,this.globals=i,this.map=new Map,this.referenceNameIndex=0,this.restoreViewVariable=null,this.usesRestoredViewContext=!1,void 0!==i){var a,o=(0,xn.Z)(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;this.set(0,s,ii(s))}}catch(l){o.e(l)}finally{o.f()}}}return(0,B.Z)(n,[{key:"get",value:function(e){for(var i=this;i;){var o=i.map.get(e);if(null!=o)return i!==this&&(o={retrievalLevel:o.retrievalLevel,lhs:o.lhs,declareLocalCallback:o.declareLocalCallback,declare:!1,priority:o.priority},this.map.set(e,o),this.maybeGenerateSharedContextVar(o),this.maybeRestoreView()),o.declareLocalCallback&&!o.declare&&(o.declare=!0),o.lhs;i=i.parent}return 0===this.bindingLevel?null:this.getComponentProperty(e)}},{key:"set",value:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4?arguments[4]:void 0,l=arguments.length>5?arguments[5]:void 0;if(this.map.has(i)){if(l)return this;Ba("The name ".concat(i," is already defined in scope to be ").concat(this.map.get(i)))}return this.map.set(i,{retrievalLevel:e,lhs:o,declare:!1,declareLocalCallback:s,priority:a}),this}},{key:"getLocal",value:function(e){return this.get(e)}},{key:"notifyImplicitReceiverUse",value:function(){0!==this.bindingLevel&&(this.map.get(Ph+0).declare=!0)}},{key:"nestedScope",value:function(e,i){var o=new n(e,this,i);return e>0&&o.generateSharedContextVar(0),o}},{key:"getOrCreateSharedContextVar",value:function(e){var i=Ph+e;return this.map.has(i)||this.generateSharedContextVar(e),this.map.get(i).lhs}},{key:"getSharedContextName",value:function(e){var i=this.map.get(Ph+e);return i&&i.declare?i.lhs:null}},{key:"maybeGenerateSharedContextVar",value:function(e){if(1===e.priority&&e.retrievalLevel0&&void 0!==arguments[0]?arguments[0]:wu;return new o6(new pS(new Id),n,x6,[])}function a1(n,r){switch(n){case Hi.HTML:return Jn(Le.sanitizeHtml);case Hi.SCRIPT:return Jn(Le.sanitizeScript);case Hi.STYLE:return r?Jn(Le.sanitizeStyle):null;case Hi.URL:return Jn(Le.sanitizeUrl);case Hi.RESOURCE_URL:return Jn(Le.sanitizeResourceUrl);default:return null}}function GS(n,r){var e=vl(r.value);if(!n6(n,r.name))return e;switch(x6.securityContext(n,r.name,!0)){case Hi.HTML:return ch(Jn(Le.trustConstantHtml),new he([new Fe(r.value)],[]),void 0,r.valueSpan);case Hi.RESOURCE_URL:return ch(Jn(Le.trustConstantResourceUrl),new he([new Fe(r.value)],[]),void 0,r.valueSpan);default:return e}}function a8(n){return 1===n.length&&n[0]instanceof Rf}function s1(n){return n instanceof Pf||n instanceof hM||n instanceof a_}function gy(n){return n.every(s1)}function u1(n,r,e){return function(){var i=n(),o=Array.isArray(i)?i:[i];return e&&o.push.apply(o,(0,pn.Z)(e)),r&&o.unshift(rn(r)),o}}var vy="ngI18nClosureMode";function c1(n,r,e){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,a=[t3(r),wd(zS(),Dh(r,n,e,i),t8(r,n,kM(i,!1)))];return o&&a.push(new Of(r.set(o(r)))),a}function zS(){return r_(ii(vy)).notIdentical(rn("undefined",_e)).and(ii(vy))}function WS(n){return n.reduce(function(r,e){var i=Array.isArray(e)?WS(e):e;return r.concat(i)},[])}var VS=/attr\.([^\]]+)/,D6="_nghost-".concat("%COMP%"),KS="_ngcontent-".concat("%COMP%");function d1(n,r,e){var i=new Sa,o=us(n.selector);return i.set("type",n.internalType),o.length>0&&i.set("selectors",vl(o)),n.queries.length>0&&i.set("contentQueries",function JS(n,r,e){var l,i=[],o=[],a=n3(o,"_t"),s=(0,xn.Z)(n);try{for(s.s();!(l=s.n()).done;){var u=l.value;i.push(Jn(Le.contentQuery).callFn([ii("dirIndex")].concat((0,pn.Z)(R6(u,r)))).toStmt());var d=a(),h=Jn(Le.loadQuery).callFn([]),g=Jn(Le.queryRefresh).callFn([d.set(h)]),C=ii(tc).prop(u.propertyName).set(u.first?d.prop("first"):d);o.push(g.and(C).toStmt())}}catch(z){s.e(z)}finally{s.f()}var Z=e?"".concat(e,"_ContentQueries"):null;return aa([new Go(Fv,Ue),new Go(tc,null),new Go("dirIndex",null)],[Ql(1,i),Ql(2,o)],ia,null,Z)}(n.queries,r,n.name)),n.viewQueries.length&&i.set("viewQuery",function N6(n,r,e){var i=[],o=[],a=n3(o,CC);n.forEach(function(l){var u=Jn(Le.viewQuery).callFn(R6(l,r));i.push(u.toStmt());var d=a(),h=Jn(Le.loadQuery).callFn([]),g=Jn(Le.queryRefresh).callFn([d.set(h)]),C=ii(tc).prop(l.propertyName).set(l.first?d.prop("first"):d);o.push(g.and(C).toStmt())});var s=e?"".concat(e,"_Query"):null;return aa([new Go(Fv,Ue),new Go(tc,null)],[Ql(1,i),Ql(2,o)],ia,null,s)}(n.viewQueries,r,n.name)),i.set("hostBindings",function B6(n,r,e,i,o,a,s){var l=ii(tc),u=new VC(l),d=n.specialAttributes,h=d.styleAttr,g=d.classAttr;void 0!==h&&u.registerStyleAttr(h),void 0!==g&&u.registerClassAttr(g);var C=[],Z=[],z=[],q=r,re=e.createDirectiveHostEventAsts(n.listeners,q);re&&re.length&&C.push.apply(C,(0,pn.Z)(function s8(n,r){var s,e=[],i=[],o=[],a=(0,xn.Z)(n);try{for(a.s();!(s=a.n()).done;){var l=s.value,u=l.name&&v_(l.name),d=1===l.type?FP(u,l.targetOrPhase):u,h=r&&u?"".concat(r,"_").concat(d,"_HostBindingHandler"):null,g=Oh(Rv.fromParsedEvent(l),h);1==l.type?i.push(g):e.push(g)}}catch(Se){a.e(Se)}finally{a.f()}for(var C=0,Z=i;C-1&&jn.indexOf(Hi.RESOURCE_URL)>-1?Jn(Le.sanitizeUrlOrResourceUrl):a1(jn[0],Tn));var or=[rn(Gt),ft.currValExpr];zn?or.push(zn):Nc(Gt)&&or.push(Jn(Le.validateIframeAttribute)),z.push.apply(z,(0,pn.Z)(ft.stmts)),It===Le.hostProperty?ut.push(or):It===Le.attribute?Ae.push(or):It===Le.syntheticHostProperty?ot.push(or):Z.push({reference:It,paramsOrFn:or,span:null})}for(var Mr=0,_r=ut;Mr<_r.length;Mr++){var zr=_r[Mr];Z.push({reference:Le.hostProperty,paramsOrFn:zr,span:null})}for(var Ur=0,Kr=Ae;Ur0||Z.length>0){var tr=a?"".concat(a,"_HostBindings"):null,un=[];return C.length>0&&un.push(Ql(1,wC(C))),Z.length>0&&un.push(Ql(2,z.concat(wC(Z)))),aa([new Go(Fv,Ue),new Go(tc,null)],un,ia,null,tr)}return null}(n.host,n.typeSourceSpan,e,r,n.selector||"",n.name,i)),i.set("inputs",Hv(n.inputs,!0)),i.set("outputs",Hv(n.outputs)),null!==n.exportAs&&i.set("exportAs",di(n.exportAs.map(function(a){return rn(a)}))),n.isStandalone&&i.set("standalone",rn(!0)),i}function A6(n,r){var e=[],i=r.providers,o=r.viewProviders;if(i||o){var a=[i||new cC([])];o&&a.push(o),e.push(Jn(Le.ProvidersFeature).callFn(a))}r.usesInheritance&&e.push(Jn(Le.InheritDefinitionFeature)),r.fullInheritance&&e.push(Jn(Le.CopyDefinitionFeature)),r.lifecycle.usesOnChanges&&e.push(Jn(Le.NgOnChangesFeature)),r.hasOwnProperty("template")&&r.isStandalone&&e.push(Jn(Le.StandaloneFeature)),e.length&&n.set("features",di(e))}function I6(n,r,e){var i=d1(n,r,e);A6(i,n);var o=n.selector&&oo.parse(n.selector),a=o&&o[0];if(a){var s=a.getAttrs();s.length&&i.set("attrs",r.getConstLiteral(di(s.map(function(ut){return rn(null!=ut?ut:void 0)})),!0))}var l=n.name,u=l?"".concat(l,"_Template"):null,d=n.changeDetection,h=n.template,g=new P_(r,M6.createRootScope(),0,l,null,null,u,Le.namespaceHTML,n.relativeContextFilePath,n.i18nUseExternalIds),C=g.buildTemplateFunction(h.nodes,[]),Z=g.getNgContentSelectors();Z&&i.set("ngContentSelectors",Z),i.set("decls",rn(g.getConstCount())),i.set("vars",rn(g.getVarCount()));var z=g.getConsts(),q=z.constExpressions,re=z.prepareStatements;if(q.length>0){var ae=di(q);re.length>0&&(ae=aa([],[].concat((0,pn.Z)(re),[new _s(ae)]))),i.set("consts",ae)}if(i.set("template",C),n.declarations.length>0&&i.set("dependencies",function P6(n,r){switch(r){case 0:return n;case 1:return aa([],[new _s(n)]);case 2:var e=n.prop("map").callFn([Jn(Le.resolveForwardRef)]);return aa([],[new _s(e)])}}(di(n.declarations.map(function(ut){return ut.type})),n.declarationListEmitMode)),null===n.encapsulation&&(n.encapsulation=ao.Emulated),n.styles&&n.styles.length){var Se=n.encapsulation==ao.Emulated?function ja(n,r,e){var i=new q5;return n.map(function(o){return i.shimCssText(o,r,e)})}(n.styles,KS,D6):n.styles,Ce=Se.reduce(function(ut,Ae){return Ae.trim().length>0&&ut.push(r.getConstLiteral(rn(Ae))),ut},[]);Ce.length>0&&i.set("styles",di(Ce))}else n.encapsulation===ao.Emulated&&(n.encapsulation=ao.None);return n.encapsulation!==ao.Emulated&&i.set("encapsulation",rn(n.encapsulation)),null!==n.animations&&i.set("data",Qs([{key:"animation",value:n.animations,quoted:!1}])),null!=d&&d!==qa.Default&&i.set("changeDetection",rn(d)),{expression:Jn(Le.defineComponent).callFn([i.toLiteralMap()],void 0,!0),type:qS(n),statements:[]}}function qS(n){var r=QS(n);return r.push(h1(n.template.ngContentSelectors)),r.push(Is(rn(n.isStandalone))),Is(Jn(Le.ComponentDeclaration,r))}function R6(n,r){var e=[EM(n,r),rn(L6(n))];return n.read&&e.push(n.read),e}function L6(n){return(n.descendants?1:0)|(n.static?2:0)|(n.emitDistinctChangesOnly?4:0)}function f1(n){return Is(rn(n))}function p1(n){return Is(Qs(Object.keys(n).map(function(e){return{key:e,value:rn(Array.isArray(n[e])?n[e][0]:n[e]),quoted:!0}})))}function h1(n){return n.length>0?Is(di(n.map(function(r){return rn(r)}))):ke}function QS(n){var r=null!==n.selector?n.selector.replace(/\n/g,""):null;return[Md(n.type.type,n.typeArgumentCount),null!==r?f1(r):ke,null!==n.exportAs?h1(n.exportAs):ke,p1(n.inputs),p1(n.outputs),h1(n.queries.map(function(e){return e.propertyName}))]}function XS(n){var r=QS(n);return r.push(ke),r.push(Is(rn(n.isStandalone))),Is(Jn(Le.DirectiveDeclaration,r))}function $S(n,r){return Th(null,n,r,"b")}function F6(n,r,e){return n.params(function(i){return e(r,i).currValExpr})}function DV(n){var e,r=n.name,i=r.match(VS);return i?(r=i[1],e=Le.attribute):n.isAnimation?(r=cM(r),e=Le.syntheticHostProperty):e=Le.hostProperty,{bindingName:r,instruction:e,isAttribute:!!i}}var l8=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;var H6=(0,B.Z)(function n(){(0,H.Z)(this,n)}),c8=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new LC;(0,H.Z)(this,n),this.jitEvaluator=r,this.FactoryTarget=ec,this.ResourceLoader=H6,this.elementSchemaRegistry=new e1}return(0,B.Z)(n,[{key:"compilePipe",value:function(e,i,o){var s=T3({name:o.name,type:Ja(o.type),internalType:new Ir(o.type),typeArgumentCount:0,deps:null,pipeName:o.pipeName,pure:o.pure,isStandalone:o.isStandalone});return this.jitExpression(s.expression,e,i,[])}},{key:"compilePipeDeclaration",value:function(e,i,o){var a=function iE(n){var r,e;return{name:n.type.name,type:Ja(n.type),internalType:new Ir(n.type),typeArgumentCount:0,pipeName:n.name,deps:null,pure:null===(r=n.pure)||void 0===r||r,isStandalone:null!==(e=n.isStandalone)&&void 0!==e&&e}}(o),s=T3(a);return this.jitExpression(s.expression,e,i,[])}},{key:"compileInjectable",value:function(e,i,o){var a,s=r3({name:o.name,type:Ja(o.type),internalType:new Ir(o.type),typeArgumentCount:o.typeArgumentCount,providedIn:V6(o.providedIn),useClass:Kf(o,"useClass"),useFactory:Au(o,"useFactory"),useValue:Kf(o,"useValue"),useExisting:Kf(o,"useExisting"),deps:null===(a=o.deps)||void 0===a?void 0:a.map(oc)},!0),l=s.expression,u=s.statements;return this.jitExpression(l,e,i,u)}},{key:"compileInjectableDeclaration",value:function(e,i,o){var a,s=r3({name:o.type.name,type:Ja(o.type),internalType:new Ir(o.type),typeArgumentCount:0,providedIn:V6(o.providedIn),useClass:Kf(o,"useClass"),useFactory:Au(o,"useFactory"),useValue:Kf(o,"useValue"),useExisting:Kf(o,"useExisting"),deps:null===(a=o.deps)||void 0===a?void 0:a.map(Ou)},!0),l=s.expression,u=s.statements;return this.jitExpression(l,e,i,u)}},{key:"compileInjector",value:function(e,i,o){var s=b3({name:o.name,type:Ja(o.type),internalType:new Ir(o.type),providers:o.providers&&o.providers.length>0?new Ir(o.providers):null,imports:o.imports.map(function(l){return new Ir(l)})});return this.jitExpression(s.expression,e,i,[])}},{key:"compileInjectorDeclaration",value:function(e,i,o){var a=function yy(n){return{name:n.type.name,type:Ja(n.type),internalType:new Ir(n.type),providers:void 0!==n.providers&&n.providers.length>0?new Ir(n.providers):null,imports:void 0!==n.imports?n.imports.map(function(r){return new Ir(r)}):[]}}(o),s=b3(a);return this.jitExpression(s.expression,e,i,[])}},{key:"compileNgModule",value:function(e,i,o){var s=HM({type:Ja(o.type),internalType:new Ir(o.type),adjacentType:new Ir(o.type),bootstrap:o.bootstrap.map(Ja),declarations:o.declarations.map(Ja),publicDeclarationTypes:null,imports:o.imports.map(Ja),includeImportTypes:!0,exports:o.exports.map(Ja),selectorScopeMode:y_.Inline,containsForwardDecls:!1,schemas:o.schemas?o.schemas.map(Ja):null,id:o.id?new Ir(o.id):null});return this.jitExpression(s.expression,e,i,[])}},{key:"compileNgModuleDeclaration",value:function(e,i,o){var a=function w3(n){var r=new Sa;return r.set("type",new Ir(n.type)),void 0!==n.bootstrap&&r.set("bootstrap",new Ir(n.bootstrap)),void 0!==n.declarations&&r.set("declarations",new Ir(n.declarations)),void 0!==n.imports&&r.set("imports",new Ir(n.imports)),void 0!==n.exports&&r.set("exports",new Ir(n.exports)),void 0!==n.schemas&&r.set("schemas",new Ir(n.schemas)),void 0!==n.id&&r.set("id",new Ir(n.id)),Jn(Le.defineNgModule).callFn([r.toLiteralMap()])}(o);return this.jitExpression(a,e,i,[])}},{key:"compileDirective",value:function(e,i,o){var a=tE(o);return this.compileDirectiveFromMeta(e,i,a)}},{key:"compileDirectiveDeclaration",value:function(e,i,o){var s=nE(o,this.createParseSourceSpan("Directive",o.type.name,i));return this.compileDirectiveFromMeta(e,i,s)}},{key:"compileDirectiveFromMeta",value:function(e,i,o){var a=new LP,l=function O6(n,r,e){var i=d1(n,r,e);return A6(i,n),{expression:Jn(Le.defineDirective).callFn([i.toLiteralMap()],void 0,!0),type:XS(n),statements:[]}}(o,a,_y());return this.jitExpression(l.expression,e,i,a.statements)}},{key:"compileComponent",value:function(e,i,o){var a=m1(o.template,o.name,i,o.preserveWhitespaces,o.interpolation),s=a.template,l=a.interpolation,u=Object.assign(Object.assign(Object.assign({},o),tE(o)),{selector:o.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:s,declarations:o.declarations.map(z6),declarationListEmitMode:0,styles:[].concat((0,pn.Z)(o.styles),(0,pn.Z)(s.styles)),encapsulation:o.encapsulation,interpolation:l,changeDetection:o.changeDetection,animations:null!=o.animations?new Ir(o.animations):null,viewProviders:null!=o.viewProviders?new Ir(o.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0}),d="ng:///".concat(o.name,".js");return this.compileComponentFromMeta(e,d,u)}},{key:"compileComponentDeclaration",value:function(e,i,o){var s=function f8(n,r,e){var i,o,a,s,l=m1(n.template,n.type.name,e,null!==(i=n.preserveWhitespaces)&&void 0!==i&&i,n.interpolation),u=l.template,d=l.interpolation,h=[];if(n.dependencies){var C,g=(0,xn.Z)(n.dependencies);try{for(g.s();!(C=g.n()).done;){var Z=C.value;switch(Z.kind){case"directive":case"component":h.push(rE(Z));break;case"pipe":h.push(AV(Z))}}}catch(z){g.e(z)}finally{g.f()}}else(n.components||n.directives||n.pipes)&&(n.components&&h.push.apply(h,(0,pn.Z)(n.components.map(function(z){return rE(z,!0)}))),n.directives&&h.push.apply(h,(0,pn.Z)(n.directives.map(function(z){return rE(z)}))),n.pipes&&h.push.apply(h,(0,pn.Z)(function W6(n){return n?Object.keys(n).map(function(r){return{kind:yh.Pipe,name:r,type:new Ir(n[r])}}):[]}(n.pipes))));return Object.assign(Object.assign({},nE(n,r)),{template:u,styles:null!==(o=n.styles)&&void 0!==o?o:[],declarations:h,viewProviders:void 0!==n.viewProviders?new Ir(n.viewProviders):null,animations:void 0!==n.animations?new Ir(n.animations):null,changeDetection:null!==(a=n.changeDetection)&&void 0!==a?a:qa.Default,encapsulation:null!==(s=n.encapsulation)&&void 0!==s?s:ao.Emulated,interpolation:d,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0})}(o,this.createParseSourceSpan("Component",o.type.name,i),i);return this.compileComponentFromMeta(e,i,s)}},{key:"compileComponentFromMeta",value:function(e,i,o){var a=new LP,l=I6(o,a,_y(o.interpolation));return this.jitExpression(l.expression,e,i,a.statements)}},{key:"compileFactory",value:function(e,i,o){var a=ph({name:o.name,type:Ja(o.type),internalType:new Ir(o.type),typeArgumentCount:o.typeArgumentCount,deps:Y6(o.deps),target:o.target});return this.jitExpression(a.expression,e,i,a.statements)}},{key:"compileFactoryDeclaration",value:function(e,i,o){var a=ph({name:o.type.name,type:Ja(o.type),internalType:new Ir(o.type),typeArgumentCount:0,deps:Array.isArray(o.deps)?o.deps.map(Ou):o.deps,target:o.target});return this.jitExpression(a.expression,e,i,a.statements)}},{key:"createParseSourceSpan",value:function(e,i,o){return function ZM(n,r,e){var i="in ".concat(n," ").concat(r," in ").concat(e),o=new PC("",i);return new Qa(new g_(o,-1,-1,-1),new g_(o,-1,-1,-1))}(e,i,o)}},{key:"jitExpression",value:function(e,i,o,a){var s=[].concat((0,pn.Z)(a),[new Af("$def",e,void 0,Os.Exported)]);return this.jitEvaluator.evaluateStatements(o,s,new C3(i),!0).$def}}]),n}();function j6(n){return Object.assign(Object.assign({},n),{predicate:G6(n.predicate),read:n.read?new Ir(n.read):null,static:n.static,emitDistinctChangesOnly:n.emitDistinctChangesOnly})}function eE(n){var r,e,i,o;return{propertyName:n.propertyName,first:null!==(r=n.first)&&void 0!==r&&r,predicate:G6(n.predicate),descendants:null!==(e=n.descendants)&&void 0!==e&&e,read:n.read?new Ir(n.read):null,static:null!==(i=n.static)&&void 0!==i&&i,emitDistinctChangesOnly:null===(o=n.emitDistinctChangesOnly)||void 0===o||o}}function G6(n){return Array.isArray(n)?n:dM(new Ir(n),1)}function tE(n){var r=J6(n.inputs||[]),e=J6(n.outputs||[]),i=n.propMetadata,o={},a={},s=function(d){i.hasOwnProperty(d)&&i[d].forEach(function(h){!function h8(n){return"Input"===n.ngMetadataName}(h)?function m8(n){return"Output"===n.ngMetadataName}(h)&&(a[d]=h.bindingPropertyName||d):o[d]=h.bindingPropertyName?[h.bindingPropertyName,d]:d})};for(var l in i)s(l);return Object.assign(Object.assign({},n),{typeArgumentCount:0,typeSourceSpan:n.typeSourceSpan,type:Ja(n.type),internalType:new Ir(n.type),deps:null,host:K6(n.propMetadata,n.typeSourceSpan,n.host),inputs:Object.assign(Object.assign({},r),o),outputs:Object.assign(Object.assign({},e),a),queries:n.queries.map(j6),providers:null!=n.providers?new Ir(n.providers):null,viewQueries:n.viewQueries.map(j6),fullInheritance:!1})}function nE(n,r){var e,i,o,a,s,l,u,d,h;return{name:n.type.name,type:Ja(n.type),typeSourceSpan:r,internalType:new Ir(n.type),selector:null!==(e=n.selector)&&void 0!==e?e:null,inputs:null!==(i=n.inputs)&&void 0!==i?i:{},outputs:null!==(o=n.outputs)&&void 0!==o?o:{},host:N_(n.host),queries:(null!==(a=n.queries)&&void 0!==a?a:[]).map(eE),viewQueries:(null!==(s=n.viewQueries)&&void 0!==s?s:[]).map(eE),providers:void 0!==n.providers?new Ir(n.providers):null,exportAs:null!==(l=n.exportAs)&&void 0!==l?l:null,usesInheritance:null!==(u=n.usesInheritance)&&void 0!==u&&u,lifecycle:{usesOnChanges:null!==(d=n.usesOnChanges)&&void 0!==d&&d},deps:null,typeArgumentCount:0,fullInheritance:!1,isStandalone:null!==(h=n.isStandalone)&&void 0!==h&&h}}function N_(){var r,e,i,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{attributes:d8(null!==(r=n.attributes)&&void 0!==r?r:{}),listeners:null!==(e=n.listeners)&&void 0!==e?e:{},properties:null!==(i=n.properties)&&void 0!==i?i:{},specialAttributes:{classAttr:n.classAttribute,styleAttr:n.styleAttribute}}}function d8(n){for(var r={},e=0,i=Object.keys(n);e1&&void 0!==arguments[1]?arguments[1]:null;return{kind:yh.Directive,isComponent:r||"component"===n.kind,selector:n.selector,type:new Ir(n.type),inputs:null!==(e=n.inputs)&&void 0!==e?e:[],outputs:null!==(i=n.outputs)&&void 0!==i?i:[],exportAs:null!==(o=n.exportAs)&&void 0!==o?o:null}}function AV(n){return{kind:yh.Pipe,name:n.name,type:new Ir(n.type)}}function m1(n,r,e,i,o){var a=o?kC.fromArray(o):wu,s=function E6(n,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.interpolationConfig,o=e.preserveWhitespaces,a=e.enableI18nLegacyMessageIdFormat,s=_y(i),u=(new T4).parse(n,r,Object.assign(Object.assign({leadingTriviaChars:O_},e),{tokenizeExpansionForms:!0}));if(!e.alwaysAttemptHtmlToR3AstConversion&&u.errors&&u.errors.length>0){var d={interpolationConfig:i,preserveWhitespaces:o,errors:u.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return e.collectCommentNodes&&(d.commentNodes=[]),d}var h=u.rootNodes,g=new k6(i,!o,a),C=g.visitAllWithErrors(h);if(!e.alwaysAttemptHtmlToR3AstConversion&&C.errors&&C.errors.length>0){var Z={interpolationConfig:i,preserveWhitespaces:o,errors:C.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return e.collectCommentNodes&&(Z.commentNodes=[]),Z}h=C.rootNodes,o||(h=xu(new X3,h),g.hasI18nMeta&&(h=xu(new k6(i,!1),h)));var z=RS(h,s,{collectCommentNodes:!!e.collectCommentNodes}),q=z.nodes,re=z.errors,ae=z.styleUrls,Se=z.styles,Ce=z.ngContentSelectors,Ee=z.commentNodes;re.push.apply(re,(0,pn.Z)(u.errors).concat((0,pn.Z)(C.errors)));var Ve={interpolationConfig:i,preserveWhitespaces:o,errors:re.length>0?re:null,nodes:q,styleUrls:ae,styles:Se,ngContentSelectors:Ce};return e.collectCommentNodes&&(Ve.commentNodes=Ee),Ve}(n,e,{preserveWhitespaces:i,interpolationConfig:a});if(null!==s.errors){var l=s.errors.map(function(u){return u.toString()}).join(", ");throw new Error("Errors during JIT compilation of template for ".concat(r,": ").concat(l))}return{template:s,interpolation:a}}function Kf(n,r){if(n.hasOwnProperty(r))return dM(new Ir(n[r]),0)}function Au(n,r){if(n.hasOwnProperty(r))return new Ir(n[r])}function V6(n){return dM("function"==typeof n?new Ir(n):new ue(null!=n?n:null),0)}function Y6(n){return null==n?null:n.map(oc)}function oc(n){var r=null!=n.attribute,e=null===n.token?null:new Ir(n.token);return Iu(r?new Ir(n.attribute):e,r,n.host,n.optional,n.self,n.skipSelf)}function Ou(n){var r,e,i,o,a,s=null!==(r=n.attribute)&&void 0!==r&&r;return Iu(null===n.token?null:new Ir(n.token),s,null!==(e=n.host)&&void 0!==e&&e,null!==(i=n.optional)&&void 0!==i&&i,null!==(o=n.self)&&void 0!==o&&o,null!==(a=n.skipSelf)&&void 0!==a&&a)}function Iu(n,r,e,i,o,a){return{token:n,attributeNameType:r?rn("unknown"):null,host:e,optional:i,self:o,skipSelf:a}}function K6(n,r,e){var i=function U6(n){for(var r={},e={},i={},o={},a=0,s=Object.keys(n);a-1?1:1e3;return parseFloat(n)*r}function mE(n,r){return n.getPropertyValue(r).split(",").map(function(i){return i.trim()})}function _E(n){var r=n.getBoundingClientRect();return{top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height,x:r.x,y:r.y}}function My(n,r,e){var i=n.top,o=n.bottom,a=n.left,s=n.right;return e>=i&&e<=o&&r>=a&&r<=s}function Sy(n,r,e){n.top+=r,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function gE(n,r,e,i){var o=n.top,a=n.right,s=n.bottom,l=n.left,h=n.width*r,g=n.height*r;return i>o-g&&il-h&&e=l._config.dragStartThreshold){var Z=Date.now()>=l._dragStartTime+l._getDragStartDelay(u),z=l._dropContainer;if(!Z)return void l._endDragSequence(u);(!z||!z.isDragging()&&!z.isReceiving())&&(u.preventDefault(),l._hasStartedDragging=!0,l._ngZone.run(function(){return l._startDragSequence(u)}))}}},this._pointerUp=function(u){l._endDragSequence(u)},this._nativeDragStart=function(u){if(l._handles.length){var d=l._getTargetHandle(u);d&&!l._disabledHandles.has(d)&&!l.disabled&&u.preventDefault()}else l.disabled||u.preventDefault()},this.withRootElement(r).withParent(e.parentDragRef||null),this._parentPositions=new pR(i),s.registerDragItem(this)}return(0,B.Z)(n,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var i=(0,Mn.Ig)(e);i!==this._disabled&&(this._disabled=i,this._toggleNativeDragInteractions(),this._handles.forEach(function(o){return qf(o,i)}))}},{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(e){var i=this;this._handles=e.map(function(a){return(0,Mn.fI)(a)}),this._handles.forEach(function(a){return qf(a,i.disabled)}),this._toggleNativeDragInteractions();var o=new Set;return this._disabledHandles.forEach(function(a){i._handles.indexOf(a)>-1&&o.add(a)}),this._disabledHandles=o,this}},{key:"withPreviewTemplate",value:function(e){return this._previewTemplate=e,this}},{key:"withPlaceholderTemplate",value:function(e){return this._placeholderTemplate=e,this}},{key:"withRootElement",value:function(e){var i=this,o=(0,Mn.fI)(e);return o!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){o.addEventListener("mousedown",i._pointerDown,b1),o.addEventListener("touchstart",i._pointerDown,vR),o.addEventListener("dragstart",i._nativeDragStart,b1)}),this._initialTransform=void 0,this._rootElement=o),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}},{key:"withBoundaryElement",value:function(e){var i=this;return this._boundaryElement=e?(0,Mn.fI)(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(function(){return i._containInsideBoundaryOnResize()})),this}},{key:"withParent",value:function(e){return this._parentDragRef=e,this}},{key:"dispose",value:function(){var e,i;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(e=this._rootElement)||void 0===e||e.remove()),null===(i=this._anchor)||void 0===i||i.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),qf(e,!0))}},{key:"enableHandle",value:function(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),qf(e,this.disabled))}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"_withDropContainer",value:function(e){this._dropContainer=e}},{key:"getFreeDragPosition",value:function(){var e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}},{key:"setFreeDragPosition",value:function(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}},{key:"withPreviewContainer",value:function(e){return this._previewContainer=e,this}},{key:"_sortFromLastPointerPosition",value:function(){var e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){var e,i;null===(e=this._preview)||void 0===e||e.remove(),null===(i=this._previewRef)||void 0===i||i.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){var e,i;null===(e=this._placeholder)||void 0===e||e.remove(),null===(i=this._placeholderRef)||void 0===i||i.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(e){var i=this;if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:e}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){i._cleanupDragArtifacts(e),i._cleanupCachedDimensions(),i._dragDropRegistry.stopDragging(i)});else{this._passiveTransform.x=this._activeTransform.x;var o=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){i.ended.next({source:i,distance:i._getDragDistance(o),dropPoint:o,event:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}},{key:"_startDragSequence",value:function(e){Ey(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var i=this._dropContainer;if(i){var o=this._rootElement,a=o.parentNode,s=this._placeholder=this._createPlaceholderElement(),l=this._anchor=this._anchor||this._document.createComment(""),u=this._getShadowRoot();a.insertBefore(l,o),this._initialTransform=o.style.transform||"",this._preview=this._createPreviewElement(),fR(o,!1,C1),this._document.body.appendChild(a.replaceChild(s,o)),this._getPreviewInsertionPoint(a,u).appendChild(this._preview),this.started.next({source:this,event:e}),i.start(),this._initialContainer=i,this._initialIndex=i.getItemIndex(this)}else this.started.next({source:this,event:e}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(i?i.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(e,i){var o=this;this._parentDragRef&&i.stopPropagation();var a=this.isDragging(),s=Ey(i),l=!s&&0!==i.button,u=this._rootElement,d=(0,Ii.sA)(i),h=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),g=s?(0,Yr.yG)(i):(0,Yr.X6)(i);if(d&&d.draggable&&"mousedown"===i.type&&i.preventDefault(),!(a||l||h||g)){if(this._handles.length){var C=u.style;this._rootElementTapHighlight=C.webkitTapHighlightColor||"",C.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(q){return o._updateOnScroll(q)}),this._boundaryElement&&(this._boundaryRect=_E(this._boundaryElement));var Z=this._previewTemplate;this._pickupPositionInElement=Z&&Z.template&&!Z.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,e,i);var z=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(i);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:z.x,y:z.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,i)}}},{key:"_cleanupDragArtifacts",value:function(e){var i=this;fR(this._rootElement,!0,C1),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(function(){var o=i._dropContainer,a=o.getItemIndex(i),s=i._getPointerPositionOnPage(e),l=i._getDragDistance(s),u=o._isOverContainer(s.x,s.y);i.ended.next({source:i,distance:l,dropPoint:s,event:e}),i.dropped.next({item:i,currentIndex:a,previousIndex:i._initialIndex,container:o,previousContainer:i._initialContainer,isPointerOverContainer:u,distance:l,dropPoint:s,event:e}),o.drop(i,a,i._initialIndex,i._initialContainer,u,l,s,e),i._dropContainer=i._initialContainer})}},{key:"_updateActiveDropContainer",value:function(e,i){var o=this,a=e.x,s=e.y,l=i.x,u=i.y,d=this._initialContainer._getSiblingContainerFromPosition(this,a,s);!d&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,s)&&(d=this._initialContainer),d&&d!==this._dropContainer&&this._ngZone.run(function(){o.exited.next({item:o,container:o._dropContainer}),o._dropContainer.exit(o),o._dropContainer=d,o._dropContainer.enter(o,a,s,d===o._initialContainer&&d.sortingDisabled?o._initialIndex:void 0),o.entered.next({item:o,container:d,currentIndex:d.getItemIndex(o)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(l,u),this._dropContainer._sortItem(this,a,s,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(a,s):this._applyPreviewTransform(a-this._pickupPositionInElement.x,s-this._pickupPositionInElement.y))}},{key:"_createPreviewElement",value:function(){var a,e=this._previewTemplate,i=this.previewClass,o=e?e.template:null;if(o&&e){var s=e.matchSize?this._initialClientRect:null,l=e.viewContainer.createEmbeddedView(o,e.context);l.detectChanges(),a=bR(l,this._document),this._previewRef=l,e.matchSize?CR(a,s):a.style.transform=w1(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else CR(a=hR(this._rootElement),this._initialClientRect),this._initialTransform&&(a.style.transform=this._initialTransform);return pE(a.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":"".concat(this._config.zIndex||1e3)},C1),qf(a,!1),a.classList.add("cdk-drag-preview"),a.setAttribute("dir",this._direction),i&&(Array.isArray(i)?i.forEach(function(u){return a.classList.add(u)}):a.classList.add(i)),a}},{key:"_animatePreviewToPlaceholder",value:function(){var e=this;if(!this._hasMoved)return Promise.resolve();var i=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(i.left,i.top);var o=function nU(n){var r=getComputedStyle(n),e=mE(r,"transition-property"),i=e.find(function(l){return"transform"===l||"all"===l});if(!i)return 0;var o=e.indexOf(i),a=mE(r,"transition-duration"),s=mE(r,"transition-delay");return hE(a[o])+hE(s[o])}(this._preview);return 0===o?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(a){var s=function u(d){var h;(!d||(0,Ii.sA)(d)===e._preview&&"transform"===d.propertyName)&&(null===(h=e._preview)||void 0===h||h.removeEventListener("transitionend",u),a(),clearTimeout(l))},l=setTimeout(s,1.5*o);e._preview.addEventListener("transitionend",s)})})}},{key:"_createPlaceholderElement",value:function(){var o,e=this._placeholderTemplate,i=e?e.template:null;return i?(this._placeholderRef=e.viewContainer.createEmbeddedView(i,e.context),this._placeholderRef.detectChanges(),o=bR(this._placeholderRef,this._document)):o=hR(this._rootElement),o.style.pointerEvents="none",o.classList.add("cdk-drag-placeholder"),o}},{key:"_getPointerPositionInElement",value:function(e,i,o){var a=i===this._rootElement?null:i,s=a?a.getBoundingClientRect():e,l=Ey(o)?o.targetTouches[0]:o,u=this._getViewportScrollPosition(),d=l.pageX-s.left-u.left,h=l.pageY-s.top-u.top;return{x:s.left-e.left+d,y:s.top-e.top+h}}},{key:"_getPointerPositionOnPage",value:function(e){var i=this._getViewportScrollPosition(),o=Ey(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,a=o.pageX-i.left,s=o.pageY-i.top;if(this._ownerSVGElement){var l=this._ownerSVGElement.getScreenCTM();if(l){var u=this._ownerSVGElement.createSVGPoint();return u.x=a,u.y=s,u.matrixTransform(l.inverse())}}return{x:a,y:s}}},{key:"_getConstrainedPointerPosition",value:function(e){var i=this._dropContainer?this._dropContainer.lockAxis:null,o=this.constrainPosition?this.constrainPosition(e,this,this._initialClientRect,this._pickupPositionInElement):e,a=o.x,s=o.y;if("x"===this.lockAxis||"x"===i?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===i)&&(a=this._pickupPositionOnPage.x),this._boundaryRect){var l=this._pickupPositionInElement,u=l.x,d=l.y,h=this._boundaryRect,g=this._getPreviewRect(),C=g.width,Z=g.height,z=h.top+d,q=h.bottom-(Z-d);a=vE(a,h.left+u,h.right-(C-u)),s=vE(s,z,q)}return{x:a,y:s}}},{key:"_updatePointerDirectionDelta",value:function(e){var i=e.x,o=e.y,a=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,l=Math.abs(i-s.x),u=Math.abs(o-s.y);return l>this._config.pointerDirectionChangeThreshold&&(a.x=i>s.x?1:-1,s.x=i),u>this._config.pointerDirectionChangeThreshold&&(a.y=o>s.y?1:-1,s.y=o),a}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,qf(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,b1),e.removeEventListener("touchstart",this._pointerDown,vR),e.removeEventListener("dragstart",this._nativeDragStart,b1)}},{key:"_applyRootElementTransform",value:function(e,i){var o=w1(e,i),a=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=a.transform&&"none"!=a.transform?a.transform:""),a.transform=Ty(o,this._initialTransform)}},{key:"_applyPreviewTransform",value:function(e,i){var o,a=null!==(o=this._previewTemplate)&&void 0!==o&&o.template?void 0:this._initialTransform,s=w1(e,i);this._preview.style.transform=Ty(s,a)}},{key:"_getDragDistance",value:function(e){var i=this._pickupPositionOnPage;return i?{x:e.x-i.x,y:e.y-i.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var e=this._passiveTransform,i=e.x,o=e.y;if(!(0===i&&0===o||this.isDragging())&&this._boundaryElement){var a=this._rootElement.getBoundingClientRect(),s=this._boundaryElement.getBoundingClientRect();if(!(0===s.width&&0===s.height||0===a.width&&0===a.height)){var l=s.left-a.left,u=a.right-s.right,d=s.top-a.top,h=a.bottom-s.bottom;s.width>a.width?(l>0&&(i+=l),u>0&&(i-=u)):i=0,s.height>a.height?(d>0&&(o+=d),h>0&&(o-=h)):o=0,(i!==this._passiveTransform.x||o!==this._passiveTransform.y)&&this.setFreeDragPosition({y:o,x:i})}}}},{key:"_getDragStartDelay",value:function(e){var i=this.dragStartDelay;return"number"==typeof i?i:Ey(e)?i.touch:i?i.mouse:0}},{key:"_updateOnScroll",value:function(e){var i=this._parentPositions.handleScroll(e);if(i){var o=(0,Ii.sA)(e);this._boundaryRect&&o!==this._boundaryElement&&o.contains(this._boundaryElement)&&Sy(this._boundaryRect,i.top,i.left),this._pickupPositionOnPage.x+=i.left,this._pickupPositionOnPage.y+=i.top,this._dropContainer||(this._activeTransform.x-=i.left,this._activeTransform.y-=i.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}},{key:"_getViewportScrollPosition",value:function(){var e;return(null===(e=this._parentPositions.positions.get(this._document))||void 0===e?void 0:e.scrollPosition)||this._parentPositions.getViewportScrollPosition()}},{key:"_getShadowRoot",value:function(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,Ii.kV)(this._rootElement)),this._cachedShadowRoot}},{key:"_getPreviewInsertionPoint",value:function(e,i){var o=this._previewContainer||"global";if("parent"===o)return e;if("global"===o){var a=this._document;return i||a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||a.body}return(0,Mn.fI)(o)}},{key:"_getPreviewRect",value:function(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}},{key:"_getTargetHandle",value:function(e){return this._handles.find(function(i){return e.target&&(e.target===i||i.contains(e.target))})}}]),n}();function w1(n,r){return"translate3d(".concat(Math.round(n),"px, ").concat(Math.round(r),"px, 0)")}function vE(n,r,e){return Math.max(r,Math.min(e,n))}function Ey(n){return"t"===n.type[0]}function bR(n,r){var e=n.rootNodes;if(1===e.length&&e[0].nodeType===r.ELEMENT_NODE)return e[0];var i=r.createElement("div");return e.forEach(function(o){return i.appendChild(o)}),i}function CR(n,r){n.style.width="".concat(r.width,"px"),n.style.height="".concat(r.height,"px"),n.style.transform=w1(r.left,r.top)}function Rh(n,r){return Math.max(0,Math.min(r,n))}var aU=function(){function n(r,e){(0,H.Z)(this,n),this._element=r,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}return(0,B.Z)(n,[{key:"start",value:function(e){this.withItems(e)}},{key:"sort",value:function(e,i,o,a){var s=this._itemPositions,l=this._getItemIndexFromPointerPosition(e,i,o,a);if(-1===l&&s.length>0)return null;var u="horizontal"===this.orientation,d=s.findIndex(function(ae){return ae.drag===e}),h=s[l],g=s[d].clientRect,C=h.clientRect,Z=d>l?1:-1,z=this._getItemOffsetPx(g,C,Z),q=this._getSiblingOffsetPx(d,s,Z),re=s.slice();return function yE(n,r,e){var i=Rh(r,n.length-1),o=Rh(e,n.length-1);if(i!==o){for(var a=n[i],s=o-1&&l.splice(u,1),h&&!this._dragDropRegistry.isDragging(h)){var g=h.getRootElement();g.parentElement.insertBefore(d,g),l.splice(s,0,e)}else(0,Mn.fI)(this._element).appendChild(d),l.push(e);d.style.transform="",this._cacheItemPositions()}},{key:"withItems",value:function(e){this._activeDraggables=e.slice(),this._cacheItemPositions()}},{key:"withSortPredicate",value:function(e){this._sortPredicate=e}},{key:"reset",value:function(){var e=this;this._activeDraggables.forEach(function(i){var o,a=i.getRootElement();if(a){var s=null===(o=e._itemPositions.find(function(l){return l.drag===i}))||void 0===o?void 0:o.initialTransform;a.style.transform=s||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}},{key:"getActiveItemsSnapshot",value:function(){return this._activeDraggables}},{key:"getItemIndex",value:function(e){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(function(o){return o.drag===e})}},{key:"updateOnScroll",value:function(e,i){var o=this;this._itemPositions.forEach(function(a){Sy(a.clientRect,e,i)}),this._itemPositions.forEach(function(a){var s=a.drag;o._dragDropRegistry.isDragging(s)&&s._sortFromLastPointerPosition()})}},{key:"_cacheItemPositions",value:function(){var e="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(function(i){var o=i.getVisibleElement();return{drag:i,offset:0,initialTransform:o.style.transform||"",clientRect:_E(o)}}).sort(function(i,o){return e?i.clientRect.left-o.clientRect.left:i.clientRect.top-o.clientRect.top})}},{key:"_getItemOffsetPx",value:function(e,i,o){var a="horizontal"===this.orientation,s=a?i.left-e.left:i.top-e.top;return-1===o&&(s+=a?i.width-e.width:i.height-e.height),s}},{key:"_getSiblingOffsetPx",value:function(e,i,o){var a="horizontal"===this.orientation,s=i[e].clientRect,l=i[e+-1*o],u=s[a?"width":"height"]*o;if(l){var d=a?"left":"top",h=a?"right":"bottom";-1===o?u-=l.clientRect[d]-s[h]:u+=s[d]-l.clientRect[h]}return u}},{key:"_shouldEnterAsFirstChild",value:function(e,i){if(!this._activeDraggables.length)return!1;var o=this._itemPositions,a="horizontal"===this.orientation;if(o[0].drag!==this._activeDraggables[0]){var l=o[o.length-1].clientRect;return a?e>=l.right:i>=l.bottom}var u=o[0].clientRect;return a?e<=u.left:i<=u.top}},{key:"_getItemIndexFromPointerPosition",value:function(e,i,o,a){var s=this,l="horizontal"===this.orientation,u=this._itemPositions.findIndex(function(d){var h=d.drag,g=d.clientRect;if(h===e)return!1;if(a){var C=l?a.x:a.y;if(h===s._previousSwap.drag&&s._previousSwap.overlaps&&C===s._previousSwap.delta)return!1}return l?i>=Math.floor(g.left)&&i=Math.floor(g.top)&&o7&&void 0!==arguments[7]?arguments[7]:{};this._reset(),this.dropped.next({item:e,currentIndex:i,previousIndex:o,container:this,previousContainer:a,isPointerOverContainer:s,distance:l,dropPoint:u,event:d})}},{key:"withItems",value:function(e){var i=this,o=this._draggables;(this._draggables=e,e.forEach(function(s){return s._withDropContainer(i)}),this.isDragging())&&(o.filter(function(s){return s.isDragging()}).every(function(s){return-1===e.indexOf(s)})?this._reset():this._sortStrategy.withItems(this._draggables));return this}},{key:"withDirection",value:function(e){return this._sortStrategy.direction=e,this}},{key:"connectedTo",value:function(e){return this._siblings=e.slice(),this}},{key:"withOrientation",value:function(e){return this._sortStrategy.orientation=e,this}},{key:"withScrollableParents",value:function(e){var i=(0,Mn.fI)(this.element);return this._scrollableElements=-1===e.indexOf(i)?[i].concat((0,pn.Z)(e)):e.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(e){return this._isDragging?this._sortStrategy.getItemIndex(e):this._draggables.indexOf(e)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(e,i,o,a){if(!this.sortingDisabled&&this._clientRect&&gE(this._clientRect,.05,i,o)){var s=this._sortStrategy.sort(e,i,o,a);s&&this.sorted.next({previousIndex:s.previousIndex,currentIndex:s.currentIndex,container:this,item:e})}}},{key:"_startScrollingIfNecessary",value:function(e,i){var o=this;if(!this.autoScrollDisabled){var a,s=0,l=0;if(this._parentPositions.positions.forEach(function(C,Z){if(Z!==o._document&&C.clientRect&&!a&&gE(C.clientRect,.05,e,i)){var z=function TR(n,r,e,i){var o=bE(r,i),a=Lh(r,e),s=0,l=0;if(o){var u=n.scrollTop;1===o?u>0&&(s=1):n.scrollHeight-u>n.clientHeight&&(s=2)}if(a){var d=n.scrollLeft;1===a?d>0&&(l=1):n.scrollWidth-d>n.clientWidth&&(l=2)}return[s,l]}(Z,C.clientRect,e,i),q=(0,Nn.Z)(z,2);s=q[0],l=q[1],(s||l)&&(a=Z)}}),!s&&!l){var u=this._viewportRuler.getViewportSize(),d=u.width,h=u.height,g={width:d,height:h,top:0,right:d,bottom:h,left:0};s=bE(g,i),l=Lh(g,e),a=window}a&&(s!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||a!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=l,this._scrollNode=a,(s||l)&&a?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_draggingStarted",value:function(){var e=(0,Mn.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var e=(0,Mn.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}},{key:"_reset",value:function(){var e=this;this._isDragging=!1;var i=(0,Mn.fI)(this.element).style;i.scrollSnapType=i.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(function(o){return o._stopReceiving(e)}),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_isOverContainer",value:function(e,i){return null!=this._clientRect&&My(this._clientRect,e,i)}},{key:"_getSiblingContainerFromPosition",value:function(e,i,o){return this._siblings.find(function(a){return a._canReceive(e,i,o)})}},{key:"_canReceive",value:function(e,i,o){if(!this._clientRect||!My(this._clientRect,i,o)||!this.enterPredicate(e,this))return!1;var a=this._getShadowRoot().elementFromPoint(i,o);if(!a)return!1;var s=(0,Mn.fI)(this.element);return a===s||s.contains(a)}},{key:"_startReceiving",value:function(e,i){var o=this,a=this._activeSiblings;!a.has(e)&&i.every(function(s){return o.enterPredicate(s,o)||o._draggables.indexOf(s)>-1})&&(a.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var e=this;this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(i){if(e.isDragging()){var o=e._parentPositions.handleScroll(i);o&&e._sortStrategy.updateOnScroll(o.top,o.left)}else e.isReceiving()&&e._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var e=(0,Ii.kV)((0,Mn.fI)(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var e=this,i=this._sortStrategy.getActiveItemsSnapshot().filter(function(o){return o.isDragging()});this._siblings.forEach(function(o){return o._startReceiving(e,i)})}}]),n}();function bE(n,r){var e=n.top,i=n.bottom,a=.05*n.height;return r>=e-a&&r<=e+a?1:r>=i-a&&r<=i+a?2:0}function Lh(n,r){var e=n.left,i=n.right,a=.05*n.width;return r>=e-a&&r<=e+a?1:r>=i-a&&r<=i+a?2:0}var T1=(0,Ii.i$)({passive:!1,capture:!0}),xy=function(){function n(r,e){var i=this;(0,H.Z)(this,n),this._ngZone=r,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=function(o){return o.isDragging()},this.pointerMove=new In.xQ,this.pointerUp=new In.xQ,this.scroll=new In.xQ,this._preventDefaultWhileDragging=function(o){i._activeDragInstances.length>0&&o.preventDefault()},this._persistentTouchmoveListener=function(o){i._activeDragInstances.length>0&&(i._activeDragInstances.some(i._draggingPredicate)&&o.preventDefault(),i.pointerMove.next(o))},this._document=e}return(0,B.Z)(n,[{key:"registerDropContainer",value:function(e){this._dropInstances.has(e)||this._dropInstances.add(e)}},{key:"registerDragItem",value:function(e){var i=this;this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(function(){i._document.addEventListener("touchmove",i._persistentTouchmoveListener,T1)})}},{key:"removeDropContainer",value:function(e){this._dropInstances.delete(e)}},{key:"removeDragItem",value:function(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,T1)}},{key:"startDragging",value:function(e,i){var o=this;if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){var a=i.type.startsWith("touch");this._globalListeners.set(a?"touchend":"mouseup",{handler:function(l){return o.pointerUp.next(l)},options:!0}).set("scroll",{handler:function(l){return o.scroll.next(l)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:T1}),a||this._globalListeners.set("mousemove",{handler:function(l){return o.pointerMove.next(l)},options:T1}),this._ngZone.runOutsideAngular(function(){o._globalListeners.forEach(function(s,l){o._document.addEventListener(l,s.handler,s.options)})})}}},{key:"stopDragging",value:function(e){var i=this._activeDragInstances.indexOf(e);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}},{key:"isDragging",value:function(e){return this._activeDragInstances.indexOf(e)>-1}},{key:"scrolled",value:function(e){var i=this,o=[this.scroll];return e&&e!==this._document&&o.push(new $i.y(function(a){return i._ngZone.runOutsideAngular(function(){var l=function(d){i._activeDragInstances.length&&a.next(d)};return e.addEventListener("scroll",l,true),function(){e.removeEventListener("scroll",l,true)}})})),ji.T.apply(void 0,o)}},{key:"ngOnDestroy",value:function(){var e=this;this._dragInstances.forEach(function(i){return e.removeDragItem(i)}),this._dropInstances.forEach(function(i){return e.removeDropContainer(i)}),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var e=this;this._globalListeners.forEach(function(i,o){e._document.removeEventListener(o,i.handler,i.options)}),this._globalListeners.clear()}}]),n}();xy.\u0275fac=function(r){return new(r||xy)(t.LFG(t.R0b),t.LFG(ge.K0))},xy.\u0275prov=t.Yz7({token:xy,factory:xy.\u0275fac,providedIn:"root"});var MR={dragStartThreshold:5,pointerDirectionChangeThreshold:5},Uc=function(){function n(r,e,i,o){(0,H.Z)(this,n),this._document=r,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=o}return(0,B.Z)(n,[{key:"createDrag",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:MR;return new iU(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new sU(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),n}();Uc.\u0275fac=function(r){return new(r||Uc)(t.LFG(ge.K0),t.LFG(t.R0b),t.LFG(ha.rL),t.LFG(xy))},Uc.\u0275prov=t.Yz7({token:Uc,factory:Uc.\u0275fac,providedIn:"root"});var CE=new t.OlP("CDK_DRAG_PARENT"),Dy=new t.OlP("CdkDropListGroup"),Jf=function(){function n(){(0,H.Z)(this,n),this._items=new Set,this._disabled=!1}return(0,B.Z)(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,Mn.Ig)(e)}},{key:"ngOnDestroy",value:function(){this._items.clear()}}]),n}();Jf.\u0275fac=function(r){return new(r||Jf)},Jf.\u0275dir=t.lG2({type:Jf,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"],features:[t._Bn([{provide:Dy,useExisting:Jf}])]});var wE=new t.OlP("CDK_DRAG_CONFIG");var lU=0,SR=new t.OlP("CdkDropList"),Zh=function(){function n(r,e,i,o,a,s,l){var u=this;(0,H.Z)(this,n),this.element=r,this._changeDetectorRef=i,this._scrollDispatcher=o,this._dir=a,this._group=s,this._destroyed=new In.xQ,this.connectedTo=[],this.id="cdk-drop-list-".concat(lU++),this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.dropped=new t.vpe,this.entered=new t.vpe,this.exited=new t.vpe,this.sorted=new t.vpe,this._unsortedItems=new Set,this._dropListRef=e.createDropList(r),this._dropListRef.data=this,l&&this._assignDefaults(l),this._dropListRef.enterPredicate=function(d,h){return u.enterPredicate(d.data,h.data)},this._dropListRef.sortPredicate=function(d,h,g){return u.sortPredicate(d,h.data,g.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),n._dropLists.push(this),s&&s._items.add(this)}return(0,B.Z)(n,[{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(e){this._dropListRef.disabled=this._disabled=(0,Mn.Ig)(e)}},{key:"addItem",value:function(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"removeItem",value:function(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"getSortedItems",value:function(){return Array.from(this._unsortedItems).sort(function(e,i){return e._dragRef.getVisibleElement().compareDocumentPosition(i._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})}},{key:"ngOnDestroy",value:function(){var e=n._dropLists.indexOf(this);e>-1&&n._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}},{key:"_setupInputSyncSubscription",value:function(e){var i=this;this._dir&&this._dir.change.pipe((0,eo.O)(this._dir.value),(0,Nr.R)(this._destroyed)).subscribe(function(o){return e.withDirection(o)}),e.beforeStarted.subscribe(function(){var o=(0,Mn.Eq)(i.connectedTo).map(function(s){return"string"==typeof s?n._dropLists.find(function(u){return u.id===s}):s});if(i._group&&i._group._items.forEach(function(s){-1===o.indexOf(s)&&o.push(s)}),!i._scrollableParentsResolved){var a=i._scrollDispatcher.getAncestorScrollContainers(i.element).map(function(s){return s.getElementRef().nativeElement});i._dropListRef.withScrollableParents(a),i._scrollableParentsResolved=!0}e.disabled=i.disabled,e.lockAxis=i.lockAxis,e.sortingDisabled=(0,Mn.Ig)(i.sortingDisabled),e.autoScrollDisabled=(0,Mn.Ig)(i.autoScrollDisabled),e.autoScrollStep=(0,Mn.su)(i.autoScrollStep,2),e.connectedTo(o.filter(function(s){return s&&s!==i}).map(function(s){return s._dropListRef})).withOrientation(i.orientation)})}},{key:"_handleEvents",value:function(e){var i=this;e.beforeStarted.subscribe(function(){i._syncItemsWithRef(),i._changeDetectorRef.markForCheck()}),e.entered.subscribe(function(o){i.entered.emit({container:i,item:o.item.data,currentIndex:o.currentIndex})}),e.exited.subscribe(function(o){i.exited.emit({container:i,item:o.item.data}),i._changeDetectorRef.markForCheck()}),e.sorted.subscribe(function(o){i.sorted.emit({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:i,item:o.item.data})}),e.dropped.subscribe(function(o){i.dropped.emit({previousIndex:o.previousIndex,currentIndex:o.currentIndex,previousContainer:o.previousContainer.data,container:o.container.data,item:o.item.data,isPointerOverContainer:o.isPointerOverContainer,distance:o.distance,dropPoint:o.dropPoint,event:o.event}),i._changeDetectorRef.markForCheck()})}},{key:"_assignDefaults",value:function(e){var i=e.lockAxis,o=e.draggingDisabled,a=e.sortingDisabled,s=e.listAutoScrollDisabled,l=e.listOrientation;this.disabled=null!=o&&o,this.sortingDisabled=null!=a&&a,this.autoScrollDisabled=null!=s&&s,this.orientation=l||"vertical",i&&(this.lockAxis=i)}},{key:"_syncItemsWithRef",value:function(){this._dropListRef.withItems(this.getSortedItems().map(function(e){return e._dragRef}))}}]),n}();Zh._dropLists=[],Zh.\u0275fac=function(r){return new(r||Zh)(t.Y36(t.SBq),t.Y36(Uc),t.Y36(t.sBO),t.Y36(ha.mF),t.Y36(Ls.Is,8),t.Y36(Dy,12),t.Y36(wE,8))},Zh.\u0275dir=t.lG2({type:Zh,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(r,e){2&r&&(t.uIk("id",e.id),t.ekj("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[t._Bn([{provide:Dy,useValue:void 0},{provide:SR,useExisting:Zh}])]});var kE=new t.OlP("CdkDragHandle"),M1=function(){function n(r,e){(0,H.Z)(this,n),this.element=r,this._stateChanges=new In.xQ,this._disabled=!1,this._parentDrag=e}return(0,B.Z)(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,Mn.Ig)(e),this._stateChanges.next(this)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}();M1.\u0275fac=function(r){return new(r||M1)(t.Y36(t.SBq),t.Y36(CE,12))},M1.\u0275dir=t.lG2({type:M1,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[t._Bn([{provide:kE,useExisting:M1}])]});var ER=new t.OlP("CdkDragPlaceholder"),Ay=(0,B.Z)(function n(r){(0,H.Z)(this,n),this.templateRef=r});Ay.\u0275fac=function(r){return new(r||Ay)(t.Y36(t.Rgc))},Ay.\u0275dir=t.lG2({type:Ay,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"},features:[t._Bn([{provide:ER,useExisting:Ay}])]});var uU=new t.OlP("CdkDragPreview"),H_=function(){function n(r){(0,H.Z)(this,n),this.templateRef=r,this._matchSize=!1}return(0,B.Z)(n,[{key:"matchSize",get:function(){return this._matchSize},set:function(e){this._matchSize=(0,Mn.Ig)(e)}}]),n}();H_.\u0275fac=function(r){return new(r||H_)(t.Y36(t.Rgc))},H_.\u0275dir=t.lG2({type:H_,selectors:[["ng-template","cdkDragPreview",""]],inputs:{data:"data",matchSize:"matchSize"},features:[t._Bn([{provide:uU,useExisting:H_}])]});var j_=function(){function n(r,e,i,o,a,s,l,u,d,h,g){var C=this;(0,H.Z)(this,n),this.element=r,this.dropContainer=e,this._ngZone=o,this._viewContainerRef=a,this._dir=l,this._changeDetectorRef=d,this._selfHandle=h,this._parentDrag=g,this._destroyed=new In.xQ,this.started=new t.vpe,this.released=new t.vpe,this.ended=new t.vpe,this.entered=new t.vpe,this.exited=new t.vpe,this.dropped=new t.vpe,this.moved=new $i.y(function(Z){var z=C._dragRef.moved.pipe((0,$n.U)(function(q){return{source:C,pointerPosition:q.pointerPosition,event:q.event,delta:q.delta,distance:q.distance}})).subscribe(Z);return function(){z.unsubscribe()}}),this._dragRef=u.createDrag(r,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5,zIndex:null==s?void 0:s.zIndex}),this._dragRef.data=this,n._dragInstances.push(this),s&&this._assignDefaults(s),e&&(this._dragRef._withDropContainer(e._dropListRef),e.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return(0,B.Z)(n,[{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(e){this._disabled=(0,Mn.Ig)(e),this._dragRef.disabled=this._disabled}},{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"setFreeDragPosition",value:function(e){this._dragRef.setFreeDragPosition(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe((0,Ei.q)(1),(0,Nr.R)(e._destroyed)).subscribe(function(){e._updateRootElement(),e._setupHandlesListener(),e.freeDragPosition&&e._dragRef.setFreeDragPosition(e.freeDragPosition)})})}},{key:"ngOnChanges",value:function(e){var i=e.rootElementSelector,o=e.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),o&&!o.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){var e=this;this.dropContainer&&this.dropContainer.removeItem(this);var i=n._dragInstances.indexOf(this);i>-1&&n._dragInstances.splice(i,1),this._ngZone.runOutsideAngular(function(){e._destroyed.next(),e._destroyed.complete(),e._dragRef.dispose()})}},{key:"_updateRootElement",value:function(){var e,i=this.element.nativeElement,o=i;this.rootElementSelector&&(o=void 0!==i.closest?i.closest(this.rootElementSelector):null===(e=i.parentElement)||void 0===e?void 0:e.closest(this.rootElementSelector)),this._dragRef.withRootElement(o||i)}},{key:"_getBoundaryElement",value:function(){var e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):(0,Mn.fI)(e):null}},{key:"_syncInputs",value:function(e){var i=this;e.beforeStarted.subscribe(function(){if(!e.isDragging()){var o=i._dir,a=i.dragStartDelay,s=i._placeholderTemplate?{template:i._placeholderTemplate.templateRef,context:i._placeholderTemplate.data,viewContainer:i._viewContainerRef}:null,l=i._previewTemplate?{template:i._previewTemplate.templateRef,context:i._previewTemplate.data,matchSize:i._previewTemplate.matchSize,viewContainer:i._viewContainerRef}:null;e.disabled=i.disabled,e.lockAxis=i.lockAxis,e.dragStartDelay="object"==typeof a&&a?a:(0,Mn.su)(a),e.constrainPosition=i.constrainPosition,e.previewClass=i.previewClass,e.withBoundaryElement(i._getBoundaryElement()).withPlaceholderTemplate(s).withPreviewTemplate(l).withPreviewContainer(i.previewContainer||"global"),o&&e.withDirection(o.value)}}),e.beforeStarted.pipe((0,Ei.q)(1)).subscribe(function(){var o;if(i._parentDrag)e.withParent(i._parentDrag._dragRef);else for(var a=i.element.nativeElement.parentElement;a;){if(a.classList.contains("cdk-drag")){e.withParent((null===(o=n._dragInstances.find(function(s){return s.element.nativeElement===a}))||void 0===o?void 0:o._dragRef)||null);break}a=a.parentElement}})}},{key:"_handleEvents",value:function(e){var i=this;e.started.subscribe(function(o){i.started.emit({source:i,event:o.event}),i._changeDetectorRef.markForCheck()}),e.released.subscribe(function(o){i.released.emit({source:i,event:o.event})}),e.ended.subscribe(function(o){i.ended.emit({source:i,distance:o.distance,dropPoint:o.dropPoint,event:o.event}),i._changeDetectorRef.markForCheck()}),e.entered.subscribe(function(o){i.entered.emit({container:o.container.data,item:i,currentIndex:o.currentIndex})}),e.exited.subscribe(function(o){i.exited.emit({container:o.container.data,item:i})}),e.dropped.subscribe(function(o){i.dropped.emit({previousIndex:o.previousIndex,currentIndex:o.currentIndex,previousContainer:o.previousContainer.data,container:o.container.data,isPointerOverContainer:o.isPointerOverContainer,item:i,distance:o.distance,dropPoint:o.dropPoint,event:o.event})})}},{key:"_assignDefaults",value:function(e){var i=e.lockAxis,o=e.dragStartDelay,a=e.constrainPosition,s=e.previewClass,l=e.boundaryElement,u=e.draggingDisabled,d=e.rootElementSelector,h=e.previewContainer;this.disabled=null!=u&&u,this.dragStartDelay=o||0,i&&(this.lockAxis=i),a&&(this.constrainPosition=a),s&&(this.previewClass=s),l&&(this.boundaryElement=l),d&&(this.rootElementSelector=d),h&&(this.previewContainer=h)}},{key:"_setupHandlesListener",value:function(){var e=this;this._handles.changes.pipe((0,eo.O)(this._handles),(0,pa.b)(function(i){var o=i.filter(function(a){return a._parentDrag===e}).map(function(a){return a.element});e._selfHandle&&e.rootElementSelector&&o.push(e.element),e._dragRef.withHandles(o)}),(0,bo.w)(function(i){return ji.T.apply(void 0,(0,pn.Z)(i.map(function(o){return o._stateChanges.pipe((0,eo.O)(o))})))}),(0,Nr.R)(this._destroyed)).subscribe(function(i){var o=e._dragRef,a=i.element.nativeElement;i.disabled?o.disableHandle(a):o.enableHandle(a)})}}]),n}();j_._dragInstances=[],j_.\u0275fac=function(r){return new(r||j_)(t.Y36(t.SBq),t.Y36(SR,12),t.Y36(ge.K0),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(wE,8),t.Y36(Ls.Is,8),t.Y36(Uc),t.Y36(t.sBO),t.Y36(kE,10),t.Y36(CE,12))},j_.\u0275dir=t.lG2({type:j_,selectors:[["","cdkDrag",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,uU,5),t.Suo(i,ER,5),t.Suo(i,kE,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._previewTemplate=o.first),t.iGM(o=t.CRH())&&(e._placeholderTemplate=o.first),t.iGM(o=t.CRH())&&(e._handles=o))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(r,e){2&r&&t.ekj("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[t._Bn([{provide:CE,useExisting:j_}]),t.TTD]});var G_=(0,B.Z)(function n(){(0,H.Z)(this,n)});G_.\u0275fac=function(r){return new(r||G_)},G_.\u0275mod=t.oAB({type:G_}),G_.\u0275inj=t.cJS({providers:[Uc],imports:[ha.ZD]});var xi=m(1314),Ci=m(449),Zs=m(3527),to=m(591),Oy=m(4715),qn=m(1086),xR=[[["caption"]],[["colgroup"],["col"]]];function cU(n,r){if(1&n&&(t.TgZ(0,"th",3),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.Udp("text-align",e.justify),t.xp6(1),t.hij(" ",e.headerText," ")}}function dU(n,r){if(1&n&&(t.TgZ(0,"td",4),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.Udp("text-align",i.justify),t.xp6(1),t.hij(" ",i.dataAccessor(e,i.name)," ")}}function TE(n){return function(r){(0,tt.Z)(i,r);var e=(0,Ye.Z)(i);function i(){var o;(0,H.Z)(this,i);for(var a=arguments.length,s=new Array(a),l=0;l4&&void 0!==arguments[4])||arguments[4],s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],l=arguments.length>6?arguments[6]:void 0;(0,H.Z)(this,n),this._isNativeHtmlTable=r,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=o,this._isBrowser=a,this._needsPositionStickyOnElement=s,this._positionListener=l,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(e,"-border-elem-top"),bottom:"".concat(e,"-border-elem-bottom"),left:"".concat(e,"-border-elem-left"),right:"".concat(e,"-border-elem-right")}}return(0,B.Z)(n,[{key:"clearStickyPositioning",value:function(e,i){var l,o=this,a=[],s=(0,xn.Z)(e);try{for(s.s();!(l=s.n()).done;){var u=l.value;if(u.nodeType===u.ELEMENT_NODE){a.push(u);for(var d=0;d3&&void 0!==arguments[3])||arguments[3];if(e.length&&this._isBrowser&&(i.some(function(z){return z})||o.some(function(z){return z}))){var l=e[0],u=l.children.length,d=this._getCellWidths(l,s),h=this._getStickyStartColumnPositions(d,i),g=this._getStickyEndColumnPositions(d,o),C=i.lastIndexOf(!0),Z=o.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var Se,z="rtl"===a.direction,q=z?"right":"left",re=z?"left":"right",ae=(0,xn.Z)(e);try{for(ae.s();!(Se=ae.n()).done;)for(var Ce=Se.value,Ee=0;Ee1&&void 0!==arguments[1])||arguments[1];if(!i&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var o=[],a=e.children,s=0;s0;s--)i[s]&&(o[s]=a,a+=e[s]);return o}}]),n}();var SE=new t.OlP("CDK_SPL"),Py=(0,B.Z)(function n(){(0,H.Z)(this,n)});Py.\u0275fac=function(r){return new(r||Py)},Py.\u0275dir=t.lG2({type:Py,selectors:[["cdk-table","recycleRows",""],["table","cdk-table","","recycleRows",""]],features:[t._Bn([{provide:Ci.k,useClass:Ci.eX}])]});var Ud=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.viewContainer=r,this.elementRef=e});Ud.\u0275fac=function(r){return new(r||Ud)(t.Y36(t.s_b),t.Y36(t.SBq))},Ud.\u0275dir=t.lG2({type:Ud,selectors:[["","rowOutlet",""]]});var $f=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.viewContainer=r,this.elementRef=e});$f.\u0275fac=function(r){return new(r||$f)(t.Y36(t.s_b),t.Y36(t.SBq))},$f.\u0275dir=t.lG2({type:$f,selectors:[["","headerRowOutlet",""]]});var ep=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.viewContainer=r,this.elementRef=e});ep.\u0275fac=function(r){return new(r||ep)(t.Y36(t.s_b),t.Y36(t.SBq))},ep.\u0275dir=t.lG2({type:ep,selectors:[["","footerRowOutlet",""]]});var tp=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.viewContainer=r,this.elementRef=e});tp.\u0275fac=function(r){return new(r||tp)(t.Y36(t.s_b),t.Y36(t.SBq))},tp.\u0275dir=t.lG2({type:tp,selectors:[["","noDataRowOutlet",""]]});t.a5r;var Hd=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C){(0,H.Z)(this,n),this._differs=r,this._changeDetectorRef=e,this._elementRef=i,this._dir=a,this._platform=l,this._viewRepeater=u,this._coalescedStyleScheduler=d,this._viewportRuler=h,this._stickyPositioningListener=g,this._ngZone=C,this._onDestroy=new In.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new t.vpe,this.viewChange=new to.X({start:0,end:Number.MAX_VALUE}),o||this._elementRef.nativeElement.setAttribute("role","table"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return(0,B.Z)(n,[{key:"trackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(e){this._multiTemplateDataRows=(0,Mn.Ig)(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(e){this._fixedLayout=(0,Mn.Ig)(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(i,o){return e.trackBy?e.trackBy(o.dataIndex,o.data):o}),this._viewportRuler.change().pipe((0,Nr.R)(this._onDestroy)).subscribe(function(){e._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;var i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(function(e){e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,Ci.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var e=this;this._renderRows=this._getAllRenderRows();var i=this._dataDiffer.diff(this._renderRows);if(!i)return this._updateNoDataRow(),void this.contentChanged.next();var o=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(i,o,function(a,s,l){return e._getEmbeddedViewArgs(a.item,l)},function(a){return a.item.data},function(a){1===a.operation&&a.context&&e._renderCellTemplateForItem(a.record.item.rowDef,a.context)}),this._updateRowIndexContext(),i.forEachIdentityChange(function(a){o.get(a.currentIndex).context.$implicit=a.item.data}),this._updateNoDataRow(),this._ngZone&&t.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,Ei.q)(1),(0,Nr.R)(this._onDestroy)).subscribe(function(){e.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}},{key:"addColumnDef",value:function(e){this._customColumnDefs.add(e)}},{key:"removeColumnDef",value:function(e){this._customColumnDefs.delete(e)}},{key:"addRowDef",value:function(e){this._customRowDefs.add(e)}},{key:"removeRowDef",value:function(e){this._customRowDefs.delete(e)}},{key:"addHeaderRowDef",value:function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(e){this._customNoDataRow=e}},{key:"updateStickyHeaderRowStyles",value:function(){var e=this._getRenderedRows(this._headerRowOutlet),o=this._elementRef.nativeElement.querySelector("thead");o&&(o.style.display=e.length?"":"none");var a=this._headerRowDefs.map(function(s){return s.sticky});this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,a,"top"),this._headerRowDefs.forEach(function(s){return s.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var e=this._getRenderedRows(this._footerRowOutlet),o=this._elementRef.nativeElement.querySelector("tfoot");o&&(o.style.display=e.length?"":"none");var a=this._footerRowDefs.map(function(s){return s.sticky});this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,a,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,a),this._footerRowDefs.forEach(function(s){return s.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var e=this,i=this._getRenderedRows(this._headerRowOutlet),o=this._getRenderedRows(this._rowOutlet),a=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat((0,pn.Z)(i),(0,pn.Z)(o),(0,pn.Z)(a)),["left","right"]),this._stickyColumnStylesNeedReset=!1),i.forEach(function(s,l){e._addStickyColumnStyles([s],e._headerRowDefs[l])}),this._rowDefs.forEach(function(s){for(var l=[],u=0;u0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(i,o){return e._renderRow(e._headerRowOutlet,i,o)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(i,o){return e._renderRow(e._footerRowOutlet,i,o)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(e,i){var o=this,a=Array.from(i.columns||[]).map(function(u){return o._columnDefsByName.get(u)}),s=a.map(function(u){return u.sticky}),l=a.map(function(u){return u.stickyEnd});this._stickyStyler.updateStickyColumns(e,s,l,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(e){for(var i=[],o=0;o3&&void 0!==arguments[3]?arguments[3]:{},s=e.viewContainer.createEmbeddedView(i.template,a,o);return this._renderCellTemplateForItem(i,a),s}},{key:"_renderCellTemplateForItem",value:function(e,i){var a,o=(0,xn.Z)(this._getCellTemplates(e));try{for(o.s();!(a=o.n()).done;){var s=a.value;Ga.mostRecentCellOutlet&&Ga.mostRecentCellOutlet._viewContainer.createEmbeddedView(s,i)}}catch(l){o.e(l)}finally{o.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,i=0,o=e.length;i open-instant",(0,Rt.jt)("0ms")),(0,Rt.eR)("void <=> open, open-instant => void",(0,Rt.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};var TU=new t.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function NR(){return!1}}),Ny=new t.OlP("MAT_DRAWER_CONTAINER");var zc=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,a,s,l))._changeDetectorRef=i,u._container=o,u}return(0,B.Z)(e,[{key:"ngAfterContentInit",value:function(){var o=this;this._container._contentMarginChanges.subscribe(function(){o._changeDetectorRef.markForCheck()})}}]),e}(ha.PQ);zc.\u0275fac=function(r){return new(r||zc)(t.Y36(t.sBO),t.Y36((0,t.Gpc)(function(){return zd})),t.Y36(t.SBq),t.Y36(ha.mF),t.Y36(t.R0b))},zc.\u0275cmp=t.Xpm({type:zc,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(r,e){2&r&&t.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[t._Bn([{provide:ha.PQ,useExisting:zc}]),t.qOj],ngContentSelectors:D1,decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0});var Gd=function(){function n(r,e,i,o,a,s,l,u){var d=this;(0,H.Z)(this,n),this._elementRef=r,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=o,this._ngZone=a,this._interactivityChecker=s,this._doc=l,this._container=u,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new In.xQ,this._animationEnd=new In.xQ,this._animationState="void",this.openedChange=new t.vpe(!0),this._openedStream=this.openedChange.pipe((0,ti.h)(function(h){return h}),(0,$n.U)(function(){})),this.openedStart=this._animationStarted.pipe((0,ti.h)(function(h){return h.fromState!==h.toState&&0===h.toState.indexOf("open")}),(0,x1.h)(void 0)),this._closedStream=this.openedChange.pipe((0,ti.h)(function(h){return!h}),(0,$n.U)(function(){})),this.closedStart=this._animationStarted.pipe((0,ti.h)(function(h){return h.fromState!==h.toState&&"void"===h.toState}),(0,x1.h)(void 0)),this._destroyed=new In.xQ,this.onPositionChanged=new t.vpe,this._modeChanged=new In.xQ,this.openedChange.subscribe(function(h){h?(d._doc&&(d._elementFocusedBeforeDrawerWasOpened=d._doc.activeElement),d._takeFocus()):d._isFocusWithinDrawer()&&d._restoreFocus(d._openedVia||"program")}),this._ngZone.runOutsideAngular(function(){(0,jd.R)(d._elementRef.nativeElement,"keydown").pipe((0,ti.h)(function(h){return h.keyCode===Sr.hY&&!d.disableClose&&!(0,Sr.Vb)(h)}),(0,Nr.R)(d._destroyed)).subscribe(function(h){return d._ngZone.run(function(){d.close(),h.stopPropagation(),h.preventDefault()})})}),this._animationEnd.pipe((0,Ly.x)(function(h,g){return h.fromState===g.fromState&&h.toState===g.toState})).subscribe(function(h){var g=h.fromState,C=h.toState;(0===C.indexOf("open")&&"void"===g||"void"===C&&0===g.indexOf("open"))&&d.openedChange.emit(d._opened)})}return(0,B.Z)(n,[{key:"position",get:function(){return this._position},set:function(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(e){this._disableClose=(0,Mn.Ig)(e)}},{key:"autoFocus",get:function(){var e=this._autoFocus;return null==e?"side"===this.mode?"dialog":"first-tabbable":e},set:function(e){("true"===e||"false"===e||null==e)&&(e=(0,Mn.Ig)(e)),this._autoFocus=e}},{key:"opened",get:function(){return this._opened},set:function(e){this.toggle((0,Mn.Ig)(e))}},{key:"_forceFocus",value:function(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(function(){var o=function a(){e.removeEventListener("blur",a),e.removeEventListener("mousedown",a),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(i)}},{key:"_focusByCssSelector",value:function(e,i){var o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,i)}},{key:"_takeFocus",value:function(){var e=this;if(this._focusTrap){var i=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(function(o){!o&&"function"==typeof e._elementRef.nativeElement.focus&&i.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}}},{key:"_restoreFocus",value:function(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}},{key:"_isFocusWithinDrawer",value:function(){var e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}},{key:"ngAfterViewInit",value:function(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){var e;this._focusTrap&&this._focusTrap.destroy(),null===(e=this._anchor)||void 0===e||e.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(e){return this.toggle(!0,e)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"_closeViaBackdropClick",value:function(){return this._setOpen(!1,!0,"mouse")}},{key:"toggle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,i=arguments.length>1?arguments[1]:void 0;e&&i&&(this._openedVia=i);var o=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),o}},{key:"_setOpen",value:function(e,i,o){var a=this;return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(o)),this._updateFocusTrapState(),new Promise(function(s){a.openedChange.pipe((0,Ei.q)(1)).subscribe(function(l){return s(l?"open":"close")})})}},{key:"_getWidth",value:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_updatePositionInParent",value:function(e){var i=this._elementRef.nativeElement,o=i.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,i)),o.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}}]),n}();Gd.\u0275fac=function(r){return new(r||Gd)(t.Y36(t.SBq),t.Y36(Yr.qV),t.Y36(Yr.tE),t.Y36(Ii.t4),t.Y36(t.R0b),t.Y36(Yr.ic),t.Y36(ge.K0,8),t.Y36(Ny,8))},Gd.\u0275cmp=t.Xpm({type:Gd,selectors:[["mat-drawer"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(CU,5),2&r)&&(t.iGM(i=t.CRH())&&(e._content=i.first))},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(r,e){1&r&&t.WFA("@transform.start",function(o){return e._animationStarted.next(o)})("@transform.done",function(o){return e._animationEnd.next(o)}),2&r&&(t.uIk("align",null),t.d8E("@transform",e._animationState),t.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:D1,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"div",0,1),t.Hsn(2),t.qZA())},dependencies:[ha.PQ],encapsulation:2,data:{animation:[ZR.transformDrawer]},changeDetection:0});var zd=function(){function n(r,e,i,o,a){var s=this,l=arguments.length>5&&void 0!==arguments[5]&&arguments[5],u=arguments.length>6?arguments[6]:void 0;(0,H.Z)(this,n),this._dir=r,this._element=e,this._ngZone=i,this._changeDetectorRef=o,this._animationMode=u,this._drawers=new t.n_E,this.backdropClick=new t.vpe,this._destroyed=new In.xQ,this._doCheckSubject=new In.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new In.xQ,r&&r.change.pipe((0,Nr.R)(this._destroyed)).subscribe(function(){s._validateDrawers(),s.updateContentMargins()}),a.change().pipe((0,Nr.R)(this._destroyed)).subscribe(function(){return s.updateContentMargins()}),this._autosize=l}return(0,B.Z)(n,[{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(e){this._autosize=(0,Mn.Ig)(e)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(e){this._backdropOverride=null==e?null:(0,Mn.Ig)(e)}},{key:"scrollable",get:function(){return this._userContent||this._content}},{key:"ngAfterContentInit",value:function(){var e=this;this._allDrawers.changes.pipe((0,eo.O)(this._allDrawers),(0,Nr.R)(this._destroyed)).subscribe(function(i){e._drawers.reset(i.filter(function(o){return!o._container||o._container===e})),e._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,eo.O)(null)).subscribe(function(){e._validateDrawers(),e._drawers.forEach(function(i){e._watchDrawerToggle(i),e._watchDrawerPosition(i),e._watchDrawerMode(i)}),(!e._drawers.length||e._isDrawerOpen(e._start)||e._isDrawerOpen(e._end))&&e.updateContentMargins(),e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._doCheckSubject.pipe((0,tl.b)(10),(0,Nr.R)(e._destroyed)).subscribe(function(){return e.updateContentMargins()})})}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach(function(e){return e.open()})}},{key:"close",value:function(){this._drawers.forEach(function(e){return e.close()})}},{key:"updateContentMargins",value:function(){var e=this,i=0,o=0;if(this._left&&this._left.opened)if("side"==this._left.mode)i+=this._left._getWidth();else if("push"==this._left.mode){var a=this._left._getWidth();i+=a,o-=a}if(this._right&&this._right.opened)if("side"==this._right.mode)o+=this._right._getWidth();else if("push"==this._right.mode){var s=this._right._getWidth();o+=s,i-=s}o=o||null,((i=i||null)!==this._contentMargins.left||o!==this._contentMargins.right)&&(this._contentMargins={left:i,right:o},this._ngZone.run(function(){return e._contentMarginChanges.next(e._contentMargins)}))}},{key:"ngDoCheck",value:function(){var e=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return e._doCheckSubject.next()})}},{key:"_watchDrawerToggle",value:function(e){var i=this;e._animationStarted.pipe((0,ti.h)(function(o){return o.fromState!==o.toState}),(0,Nr.R)(this._drawers.changes)).subscribe(function(o){"open-instant"!==o.toState&&"NoopAnimations"!==i._animationMode&&i._element.nativeElement.classList.add("mat-drawer-transition"),i.updateContentMargins(),i._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe((0,Nr.R)(this._drawers.changes)).subscribe(function(){return i._setContainerClass(e.opened)})}},{key:"_watchDrawerPosition",value:function(e){var i=this;!e||e.onPositionChanged.pipe((0,Nr.R)(this._drawers.changes)).subscribe(function(){i._ngZone.onMicrotaskEmpty.pipe((0,Ei.q)(1)).subscribe(function(){i._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(e){var i=this;e&&e._modeChanged.pipe((0,Nr.R)((0,ji.T)(this._drawers.changes,this._destroyed))).subscribe(function(){i.updateContentMargins(),i._changeDetectorRef.markForCheck()})}},{key:"_setContainerClass",value:function(e){var i=this._element.nativeElement.classList,o="mat-drawer-container-has-open";e?i.add(o):i.remove(o)}},{key:"_validateDrawers",value:function(){var e=this;this._start=this._end=null,this._drawers.forEach(function(i){"end"==i.position?(e._end,e._end=i):(e._start,e._start=i)}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}},{key:"_closeModalDrawersViaBackdrop",value:function(){var e=this;[this._start,this._end].filter(function(i){return i&&!i.disableClose&&e._canHaveBackdrop(i)}).forEach(function(i){return i._closeViaBackdropClick()})}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(e){return"side"!==e.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(e){return null!=e&&e.opened}}]),n}();zd.\u0275fac=function(r){return new(r||zd)(t.Y36(Ls.Is,8),t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(ha.rL),t.Y36(TU),t.Y36(t.QbO,8))},zd.\u0275cmp=t.Xpm({type:zd,selectors:[["mat-drawer-container"]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,zc,5),t.Suo(i,Gd,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._content=o.first),t.iGM(o=t.CRH())&&(e._allDrawers=o))},viewQuery:function(r,e){var i;(1&r&&t.Gf(zc,5),2&r)&&(t.iGM(i=t.CRH())&&(e._userContent=i.first))},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[t._Bn([{provide:Ny,useExisting:zd}])],ngContentSelectors:["mat-drawer","mat-drawer-content","*"],decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(r,e){1&r&&(t.F$t(PR),t.YNc(0,fY,1,2,"div",0),t.Hsn(1),t.Hsn(2,1),t.YNc(3,pY,2,0,"mat-drawer-content",1)),2&r&&(t.Q6J("ngIf",e.hasBackdrop),t.xp6(3),t.Q6J("ngIf",!e._content))},dependencies:[ge.O5,zc],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0});var V_=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){return(0,H.Z)(this,e),r.call(this,i,o,a,s,l)}return(0,B.Z)(e)}(zc);V_.\u0275fac=function(r){return new(r||V_)(t.Y36(t.sBO),t.Y36((0,t.Gpc)(function(){return zh})),t.Y36(t.SBq),t.Y36(ha.mF),t.Y36(t.R0b))},V_.\u0275cmp=t.Xpm({type:V_,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(r,e){2&r&&t.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[t._Bn([{provide:ha.PQ,useExisting:V_}]),t.qOj],ngContentSelectors:D1,decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0});var Gh=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i;return(0,H.Z)(this,e),(i=r.apply(this,arguments))._fixedInViewport=!1,i._fixedTopGap=0,i._fixedBottomGap=0,i}return(0,B.Z)(e,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(o){this._fixedInViewport=(0,Mn.Ig)(o)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(o){this._fixedTopGap=(0,Mn.su)(o)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(o){this._fixedBottomGap=(0,Mn.su)(o)}}]),e}(Gd);Gh.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Gh)))(e||Gh)}}(),Gh.\u0275cmp=t.Xpm({type:Gh,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(r,e){2&r&&(t.uIk("align",null),t.Udp("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),t.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[t.qOj],ngContentSelectors:D1,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"div",0,1),t.Hsn(2),t.qZA())},dependencies:[ha.PQ],encapsulation:2,data:{animation:[ZR.transformDrawer]},changeDetection:0});var zh=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(zd);zh.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(zh)))(e||zh)}}(),zh.\u0275cmp=t.Xpm({type:zh,selectors:[["mat-sidenav-container"]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,V_,5),t.Suo(i,Gh,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._content=o.first),t.iGM(o=t.CRH())&&(e._allDrawers=o))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[t._Bn([{provide:Ny,useExisting:zh}]),t.qOj],ngContentSelectors:["mat-sidenav","mat-sidenav-content","*"],decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(r,e){1&r&&(t.F$t(EE),t.YNc(0,Zy,1,2,"div",0),t.Hsn(1),t.Hsn(2,1),t.YNc(3,wU,2,0,"mat-sidenav-content",1)),2&r&&(t.Q6J("ngIf",e.hasBackdrop),t.xp6(3),t.Q6J("ngIf",!e._content))},dependencies:[ge.O5,V_],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0});var Wh=(0,B.Z)(function n(){(0,H.Z)(this,n)});Wh.\u0275fac=function(r){return new(r||Wh)},Wh.\u0275mod=t.oAB({type:Wh}),Wh.\u0275inj=t.cJS({imports:[ge.ez,Vt.BQ,ha.ZD,ha.ZD,Vt.BQ]});function BR(n){return new t.vHH(3e3,!1)}function RU(n){return new t.vHH(3502,!1)}function JR(){return new t.vHH(3300,!1)}function LU(n){return new t.vHH(3504,!1)}function A1(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Vd(n){switch(n.length){case 0:return new Rt.ZN;case 1:return n[0];default:return new Rt.ZE(n)}}function jU(n,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Map,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:new Map,s=[],l=[],u=-1,d=null;if(i.forEach(function(h){var g=h.get("offset"),C=g==u,Z=C&&d||new Map;h.forEach(function(z,q){var re=q,ae=z;if("offset"!==q)switch(re=r.normalizePropertyName(re,s),ae){case Rt.k1:ae=o.get(q);break;case Rt.l3:ae=a.get(q);break;default:ae=r.normalizeStyleValue(q,re,ae,s)}Z.set(re,ae)}),C||l.push(Z),d=Z,u=g}),s.length)throw RU();return l}function Fy(n,r,e,i){switch(r){case"start":n.onStart(function(){return i(e&&O1(e,"start",n))});break;case"done":n.onDone(function(){return i(e&&O1(e,"done",n))});break;case"destroy":n.onDestroy(function(){return i(e&&O1(e,"destroy",n))})}}function O1(n,r,e){var i=e.totalTime,o=!!e.disabled,a=AE(n.element,n.triggerName,n.fromState,n.toState,r||n.phaseName,null==i?n.totalTime:i,o),s=n._data;return null!=s&&(a._data=s),a}function AE(n,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=arguments.length>6?arguments[6]:void 0;return{element:n,triggerName:r,fromState:e,toState:i,phaseName:o,totalTime:a,disabled:!!s}}function bl(n,r,e){var i=n.get(r);return i||n.set(r,i=e),i}function GU(n){var r=n.indexOf(":");return[n.substring(1,r),n.slice(r+1)]}var OE=function(r,e){return!1},Vh=function(r,e,i){return[]},XR=null;function Y_(n){var r=n.parentNode||n.host;return r===XR?null:r}(A1()||"undefined"!=typeof Element)&&(function Wd(){return"undefined"!=typeof window&&void 0!==window.document}()?(XR=function(){return document.documentElement}(),OE=function(r,e){for(;e;){if(e===r)return!0;e=Y_(e)}return!1}):OE=function(r,e){return r.contains(e)},Vh=function(r,e,i){if(i)return Array.from(r.querySelectorAll(e));var o=r.querySelector(e);return o?[o]:[]});var K_=null,IE=!1;function WU(n){K_||(K_=function VU(){return"undefined"!=typeof document?document.body:null}()||{},IE=!!K_.style&&"WebkitAppearance"in K_.style);var r=!0;K_.style&&!function yY(n){return"ebkit"==n.substring(1,6)}(n)&&(!(r=n in K_.style)&&IE)&&(r="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in K_.style);return r}var YU=OE,$R=Vh;var ip=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"validateStyleProperty",value:function(e){return WU(e)}},{key:"matchesElement",value:function(e,i){return!1}},{key:"containsElement",value:function(e,i){return YU(e,i)}},{key:"getParentElement",value:function(e){return Y_(e)}},{key:"query",value:function(e,i,o){return $R(e,i,o)}},{key:"computeStyle",value:function(e,i,o){return o||""}},{key:"animate",value:function(e,i,o,a,s){arguments.length>5&&void 0!==arguments[5]&&arguments[5],arguments.length>6&&arguments[6];return new Rt.ZN(o,a)}}]),n}();ip.\u0275fac=function(r){return new(r||ip)},ip.\u0275prov=t.Yz7({token:ip,factory:ip.\u0275fac});var PE=(0,B.Z)(function n(){(0,H.Z)(this,n)});PE.NOOP=new ip;var tL="ng-enter",uc="ng-leave",I1="ng-trigger",q_=".ng-trigger",nL="ng-animating",LE=".ng-animating";function cc(n){if("number"==typeof n)return n;var r=n.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:P1(parseFloat(r[1]),r[2])}function P1(n,r){return"s"===r?1e3*n:n}function Hy(n,r,e){return n.hasOwnProperty("duration")?n:function qU(n,r,e){var o,i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,a=0,s="";if("string"==typeof n){var l=n.match(i);if(null===l)return r.push(BR()),{duration:0,delay:0,easing:""};o=P1(parseFloat(l[1]),l[2]);var u=l[3];null!=u&&(a=P1(parseFloat(u),l[4]));var d=l[5];d&&(s=d)}else o=n;if(!e){var h=!1,g=r.length;o<0&&(r.push(function FR(){return new t.vHH(3100,!1)}()),h=!0),a<0&&(r.push(function xE(){return new t.vHH(3101,!1)}()),h=!0),h&&r.splice(g,0,BR())}return{duration:o,delay:a,easing:s}}(n,r,e)}function J_(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(n).forEach(function(e){r[e]=n[e]}),r}function ZE(n){var r=new Map;return Object.keys(n).forEach(function(e){var i=n[e];r.set(e,i)}),r}function Q_(n){return n.length?n[0]instanceof Map?n:n.map(function(r){return ZE(r)}):[]}function op(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,e=arguments.length>2?arguments[2]:void 0;if(e){var o,i=(0,xn.Z)(e);try{for(i.s();!(o=i.n()).done;){var a=(0,Nn.Z)(o.value,2),s=a[0],l=a[1];r.set(s,l)}}catch(Z){i.e(Z)}finally{i.f()}}var d,u=(0,xn.Z)(n);try{for(u.s();!(d=u.n()).done;){var h=(0,Nn.Z)(d.value,2),g=h[0],C=h[1];r.set(g,C)}}catch(Z){u.e(Z)}finally{u.f()}return r}function $_(n,r,e){return e?r+":"+e+";":""}function dc(n){for(var r="",e=0;e *";case":leave":return"* => void";case":increment":return function(e,i){return parseFloat(i)>parseFloat(e)};case":decrement":return function(e,i){return parseFloat(i) *"}}(n,e);if("function"==typeof i)return void r.push(i);n=i}var o=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==o||o.length<4)return e.push(function YR(n){return new t.vHH(3015,!1)}()),r;var a=o[1],s=o[2],l=o[3];r.push(cL(a,l));var u="*"==a&&"*"==l;"<"==s[0]&&!u&&r.push(cL(l,a))}(i,e,r)}):e.push(n),e}var Gy=new Set(["true","1"]),NE=new Set(["false","0"]);function cL(n,r){var e=Gy.has(n)||NE.has(n),i=Gy.has(r)||NE.has(r);return function(o,a){var s="*"==n||n==o,l="*"==r||r==a;return!s&&e&&"boolean"==typeof o&&(s=o?Gy.has(n):NE.has(n)),!l&&i&&"boolean"==typeof a&&(l=a?Gy.has(r):NE.has(r)),s&&l}}var r7=":self",CY=new RegExp("s*".concat(":self","s*,?"),"g");function BE(n,r,e,i){return new i7(n).build(r,e,i)}var i7=function(){function n(r){(0,H.Z)(this,n),this._driver=r}return(0,B.Z)(n,[{key:"build",value:function(e,i,o){var a=new s7(i);return this._resetContextStyleTimingState(a),Cl(this,Xl(e),a)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}},{key:"visitTrigger",value:function(e,i){var o=this,a=i.queryCount=0,s=i.depCount=0,l=[],u=[];return"@"==e.name.charAt(0)&&i.errors.push(function xU(){return new t.vHH(3006,!1)}()),e.definitions.forEach(function(d){if(o._resetContextStyleTimingState(i),0==d.type){var h=d,g=h.name;g.toString().split(/\s*,\s*/).forEach(function(Z){h.name=Z,l.push(o.visitState(h,i))}),h.name=g}else if(1==d.type){var C=o.visitTransition(d,i);a+=C.queryCount,s+=C.depCount,u.push(C)}else i.errors.push(function UR(){return new t.vHH(3007,!1)}())}),{type:7,name:e.name,states:l,transitions:u,queryCount:a,depCount:s,options:null}}},{key:"visitState",value:function(e,i){var o=this.visitStyle(e.styles,i),a=e.options&&e.options.params||null;if(o.containsDynamicStyles){var s=new Set,l=a||{};if(o.styles.forEach(function(d){d instanceof Map&&d.forEach(function(h){iL(h).forEach(function(g){l.hasOwnProperty(g)||s.add(g)})})}),s.size){R1(s.values());i.errors.push(function HR(n,r){return new t.vHH(3008,!1)}(e.name))}}return{type:0,name:e.name,style:o,options:a?{params:a}:null}}},{key:"visitTransition",value:function(e,i){i.queryCount=0,i.depCount=0;var o=Cl(this,Xl(e.animation),i);return{type:1,matchers:lL(e.expr,i.errors),animation:o,queryCount:i.queryCount,depCount:i.depCount,options:tg(e.options)}}},{key:"visitSequence",value:function(e,i){var o=this;return{type:2,steps:e.steps.map(function(a){return Cl(o,a,i)}),options:tg(e.options)}}},{key:"visitGroup",value:function(e,i){var o=this,a=i.currentTime,s=0,l=e.steps.map(function(u){i.currentTime=a;var d=Cl(o,u,i);return s=Math.max(s,i.currentTime),d});return i.currentTime=s,{type:3,steps:l,options:tg(e.options)}}},{key:"visitAnimate",value:function(e,i){var o=function kY(n,r){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n){return FE(Hy(n,r).duration,0,"")}var i=n,o=i.split(/\s+/).some(function(l){return"{"==l.charAt(0)&&"{"==l.charAt(1)});if(o){var a=FE(0,0,"");return a.dynamic=!0,a.strValue=i,a}var s=Hy(i,r);return FE(s.duration,s.delay,s.easing)}(e.timings,i.errors);i.currentAnimateTimings=o;var a,s=e.styles?e.styles:(0,Rt.oB)({});if(5==s.type)a=this.visitKeyframes(s,i);else{var l=e.styles,u=!1;if(!l){u=!0;var d={};o.easing&&(d.easing=o.easing),l=(0,Rt.oB)(d)}i.currentTime+=o.duration+o.delay;var h=this.visitStyle(l,i);h.isEmptyStep=u,a=h}return i.currentAnimateTimings=null,{type:4,timings:o,style:a,options:null}}},{key:"visitStyle",value:function(e,i){var o=this._makeStyleAst(e,i);return this._validateStyleAst(o,i),o}},{key:"_makeStyleAst",value:function(e,i){var l,o=[],a=Array.isArray(e.styles)?e.styles:[e.styles],s=(0,xn.Z)(a);try{for(s.s();!(l=s.n()).done;){var u=l.value;"string"==typeof u?u===Rt.l3?o.push(u):i.errors.push(new t.vHH(3002,!1)):o.push(ZE(u))}}catch(g){s.e(g)}finally{s.f()}var d=!1,h=null;return o.forEach(function(g){if(g instanceof Map&&(g.has("easing")&&(h=g.get("easing"),g.delete("easing")),!d)){var Z,C=(0,xn.Z)(g.values());try{for(C.s();!(Z=C.n()).done;){if(Z.value.toString().indexOf("{{")>=0){d=!0;break}}}catch(q){C.e(q)}finally{C.f()}}}),{type:6,styles:o,easing:h,offset:e.offset,containsDynamicStyles:d,options:null}}},{key:"_validateStyleAst",value:function(e,i){var a=i.currentAnimateTimings,s=i.currentTime,l=i.currentTime;a&&l>0&&(l-=a.duration+a.delay),e.styles.forEach(function(u){"string"!=typeof u&&u.forEach(function(d,h){var g=i.collectedStyles.get(i.currentQuerySelector),C=g.get(h),Z=!0;C&&(l!=s&&l>=C.startTime&&s<=C.endTime&&(i.errors.push(function GR(n,r,e,i,o){return new t.vHH(3010,!1)}(0,C.startTime,C.endTime)),Z=!1),l=C.startTime),Z&&g.set(h,{startTime:l,endTime:s}),i.options&&JU(d,i.options,i.errors)})})}},{key:"visitKeyframes",value:function(e,i){var o=this,a={type:5,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(function zR(){return new t.vHH(3011,!1)}()),a;var l=0,u=[],d=!1,h=!1,g=0,C=e.steps.map(function(Ce){var Ee=o._makeStyleAst(Ce,i),Ve=null!=Ee.offset?Ee.offset:function wY(n){if("string"==typeof n)return null;var r=null;if(Array.isArray(n))n.forEach(function(i){if(i instanceof Map&&i.has("offset")){var o=i;r=parseFloat(o.get("offset")),o.delete("offset")}});else if(n instanceof Map&&n.has("offset")){var e=n;r=parseFloat(e.get("offset")),e.delete("offset")}return r}(Ee.styles),ut=0;return null!=Ve&&(l++,ut=Ee.offset=Ve),h=h||ut<0||ut>1,d=d||ut0&&l0?Ee==q?1:z*Ee:u[Ee],ut=Ve*Se;i.currentTime=re+ae.delay+ut,ae.duration=ut,o._validateStyleAst(Ce,i),Ce.offset=Ve,a.styles.push(Ce)}),a}},{key:"visitReference",value:function(e,i){return{type:8,animation:Cl(this,Xl(e.animation),i),options:tg(e.options)}}},{key:"visitAnimateChild",value:function(e,i){return i.depCount++,{type:9,options:tg(e.options)}}},{key:"visitAnimateRef",value:function(e,i){return{type:10,animation:this.visitReference(e.animation,i),options:tg(e.options)}}},{key:"visitQuery",value:function(e,i){var o=i.currentQuerySelector,a=e.options||{};i.queryCount++,i.currentQuery=e;var s=function o7(n){var r=!!n.split(/\s*,\s*/).find(function(e){return e==r7});return r&&(n=n.replace(CY,"")),n=n.replace(/@\*/g,q_).replace(/@\w+/g,function(e){return q_+"-"+e.slice(1)}).replace(/:animating/g,LE),[n,r]}(e.selector),l=(0,Nn.Z)(s,2),u=l[0],d=l[1];i.currentQuerySelector=o.length?o+" "+u:u,bl(i.collectedStyles,i.currentQuerySelector,new Map);var h=Cl(this,Xl(e.animation),i);return i.currentQuery=null,i.currentQuerySelector=o,{type:11,selector:u,limit:a.limit||0,optional:!!a.optional,includeSelf:d,animation:h,originalSelector:e.selector,options:tg(e.options)}}},{key:"visitStagger",value:function(e,i){i.currentQuery||i.errors.push(function OU(){return new t.vHH(3013,!1)}());var o="full"===e.timings?{duration:0,delay:0,easing:"full"}:Hy(e.timings,i.errors,!0);return{type:12,animation:Cl(this,Xl(e.animation),i),timings:o,options:null}}}]),n}();var s7=(0,B.Z)(function n(r){(0,H.Z)(this,n),this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set});function tg(n){return n?(n=J_(n)).params&&(n.params=function a7(n){return n?J_(n):null}(n.params)):n={},n}function FE(n,r,e){return{duration:n,delay:r,easing:e}}function zy(n,r,e,i,o,a){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:n,keyframes:r,preStyleProps:e,postStyleProps:i,duration:o,delay:a,totalTime:o+a,easing:s,subTimeline:l}}var dL=function(){function n(){(0,H.Z)(this,n),this._map=new Map}return(0,B.Z)(n,[{key:"get",value:function(e){return this._map.get(e)||[]}},{key:"append",value:function(e,i){var o,a=this._map.get(e);a||this._map.set(e,a=[]),(o=a).push.apply(o,(0,pn.Z)(i))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),n}(),Kh=new RegExp(":enter","g"),UE=new RegExp(":leave","g");function N1(n,r,e,i,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:new Map,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:new Map,l=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,d=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new MY).buildKeyframes(n,r,e,i,o,a,s,l,u,d)}var MY=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"buildKeyframes",value:function(e,i,o,a,s,l,u,d,h){var g=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];h=h||new dL;var C=new HE(e,i,h,a,s,g,[]);C.options=d;var Z=d.delay?cc(d.delay):0;C.currentTimeline.delayNextStep(Z),C.currentTimeline.setStyles([l],null,C.errors,d),Cl(this,o,C);var z=C.timelines.filter(function(Se){return Se.containsAnimation()});if(z.length&&u.size){for(var q,re=z.length-1;re>=0;re--){var ae=z[re];if(ae.element===i){q=ae;break}}q&&!q.allowOnlyTimelineStyles()&&q.setStyles([u],null,C.errors,d)}return z.length?z.map(function(Se){return Se.buildKeyframes()}):[zy(i,[],[],[],0,Z,"",!1)]}},{key:"visitTrigger",value:function(e,i){}},{key:"visitState",value:function(e,i){}},{key:"visitTransition",value:function(e,i){}},{key:"visitAnimateChild",value:function(e,i){var o=i.subInstructions.get(i.element);if(o){var a=i.createSubContext(e.options),s=i.currentTimeline.currentTime,l=this._visitSubInstructions(o,a,a.options);s!=l&&i.transformIntoNewTimeline(l)}i.previousNode=e}},{key:"visitAnimateRef",value:function(e,i){var o=i.createSubContext(e.options);o.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],i,o),this.visitReference(e.animation,o),i.transformIntoNewTimeline(o.currentTimeline.currentTime),i.previousNode=e}},{key:"_applyAnimationRefDelays",value:function(e,i,o){var a,l,s=(0,xn.Z)(e);try{for(s.s();!(l=s.n()).done;){var u=l.value,d=null==u?void 0:u.delay;if(d){var h="number"==typeof d?d:cc(jy(d,null!==(a=null==u?void 0:u.params)&&void 0!==a?a:{},i.errors));o.delayNextStep(h)}}}catch(g){s.e(g)}finally{s.f()}}},{key:"_visitSubInstructions",value:function(e,i,o){var s=i.currentTimeline.currentTime,l=null!=o.duration?cc(o.duration):null,u=null!=o.delay?cc(o.delay):null;return 0!==l&&e.forEach(function(d){var h=i.appendInstructionToTimeline(d,l,u);s=Math.max(s,h.duration+h.delay)}),s}},{key:"visitReference",value:function(e,i){i.updateOptions(e.options,!0),Cl(this,e.animation,i),i.previousNode=e}},{key:"visitSequence",value:function(e,i){var o=this,a=i.subContextCount,s=i,l=e.options;if(l&&(l.params||l.delay)&&((s=i.createSubContext(l)).transformIntoNewTimeline(),null!=l.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=ng);var u=cc(l.delay);s.delayNextStep(u)}e.steps.length&&(e.steps.forEach(function(d){return Cl(o,d,s)}),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>a&&s.transformIntoNewTimeline()),i.previousNode=e}},{key:"visitGroup",value:function(e,i){var o=this,a=[],s=i.currentTimeline.currentTime,l=e.options&&e.options.delay?cc(e.options.delay):0;e.steps.forEach(function(u){var d=i.createSubContext(e.options);l&&d.delayNextStep(l),Cl(o,u,d),s=Math.max(s,d.currentTimeline.currentTime),a.push(d.currentTimeline)}),a.forEach(function(u){return i.currentTimeline.mergeTimelineCollectedStyles(u)}),i.transformIntoNewTimeline(s),i.previousNode=e}},{key:"_visitTiming",value:function(e,i){if(e.dynamic){var o=e.strValue;return Hy(i.params?jy(o,i.params,i.errors):o,i.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,i){var o=i.currentAnimateTimings=this._visitTiming(e.timings,i),a=i.currentTimeline;o.delay&&(i.incrementTime(o.delay),a.snapshotCurrentStyles());var s=e.style;5==s.type?this.visitKeyframes(s,i):(i.incrementTime(o.duration),this.visitStyle(s,i),a.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=e}},{key:"visitStyle",value:function(e,i){var o=i.currentTimeline,a=i.currentAnimateTimings;!a&&o.hasCurrentStyleProperties()&&o.forwardFrame();var s=a&&a.easing||e.easing;e.isEmptyStep?o.applyEmptyStep(s):o.setStyles(e.styles,s,i.errors,i.options),i.previousNode=e}},{key:"visitKeyframes",value:function(e,i){var o=i.currentAnimateTimings,a=i.currentTimeline.duration,s=o.duration,u=i.createSubContext().currentTimeline;u.easing=o.easing,e.styles.forEach(function(d){var h=d.offset||0;u.forwardTime(h*s),u.setStyles(d.styles,d.easing,i.errors,i.options),u.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(u),i.transformIntoNewTimeline(a+s),i.previousNode=e}},{key:"visitQuery",value:function(e,i){var o=this,a=i.currentTimeline.currentTime,s=e.options||{},l=s.delay?cc(s.delay):0;l&&(6===i.previousNode.type||0==a&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ng);var u=a,d=i.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,i.errors);i.currentQueryTotal=d.length;var h=null;d.forEach(function(g,C){i.currentQueryIndex=C;var Z=i.createSubContext(e.options,g);l&&Z.delayNextStep(l),g===i.element&&(h=Z.currentTimeline),Cl(o,e.animation,Z),Z.currentTimeline.applyStylesToKeyframe();var z=Z.currentTimeline.currentTime;u=Math.max(u,z)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(u),h&&(i.currentTimeline.mergeTimelineCollectedStyles(h),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=e}},{key:"visitStagger",value:function(e,i){var o=i.parentContext,a=i.currentTimeline,s=e.timings,l=Math.abs(s.duration),u=l*(i.currentQueryTotal-1),d=l*i.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":d=u-d;break;case"full":d=o.currentStaggerTime}var g=i.currentTimeline;d&&g.delayNextStep(d);var C=g.currentTime;Cl(this,e.animation,i),i.previousNode=e,o.currentStaggerTime=a.currentTime-C+(a.startTime-o.currentTimeline.startTime)}}]),n}(),ng={},HE=function(){function n(r,e,i,o,a,s,l,u){(0,H.Z)(this,n),this._driver=r,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=a,this.errors=s,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ng,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new jE(this._driver,e,0),l.push(this.currentTimeline)}return(0,B.Z)(n,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,i){var o=this;if(e){var a=e,s=this.options;null!=a.duration&&(s.duration=cc(a.duration)),null!=a.delay&&(s.delay=cc(a.delay));var l=a.params;if(l){var u=s.params;u||(u=this.options.params={}),Object.keys(l).forEach(function(d){(!i||!u.hasOwnProperty(d))&&(u[d]=jy(l[d],u,o.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var i=this.options.params;if(i){var o=e.params={};Object.keys(i).forEach(function(a){o[a]=i[a]})}}return e}},{key:"createSubContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,a=i||this.element,s=new n(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,o||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=ng,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,i,o){var a={duration:null!=i?i:e.duration,delay:this.currentTimeline.currentTime+(null!=o?o:0)+e.delay,easing:""},s=new SY(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,a,e.stretchStartingKeyframe);return this.timelines.push(s),a}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,i,o,a,s,l){var u=[];if(a&&u.push(this.element),e.length>0){e=(e=e.replace(Kh,"."+this._enterClassName)).replace(UE,"."+this._leaveClassName);var d=1!=o,h=this._driver.query(this.element,e,d);0!==o&&(h=o<0?h.slice(h.length+o,h.length):h.slice(0,o)),u.push.apply(u,(0,pn.Z)(h))}return!s&&0==u.length&&l.push(function VR(n){return new t.vHH(3014,!1)}()),u}}]),n}(),jE=function(){function n(r,e,i,o){(0,H.Z)(this,n),this._driver=r,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return(0,B.Z)(n,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}},{key:"hasCurrentStyleProperties",value:function(){return this._currentKeyframe.size>0}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var i=1===this._keyframes.size&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+e),i&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(e,i){return this.applyStylesToKeyframe(),new n(this._driver,e,i||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,i){this._localTimelineStyles.set(e,i),this._globalTimelineStyles.set(e,i),this._styleSummary.set(e,{time:this.currentTime,value:i})}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){e&&this._previousKeyframe.set("easing",e);var o,i=(0,xn.Z)(this._globalTimelineStyles);try{for(i.s();!(o=i.n()).done;){var a=(0,Nn.Z)(o.value,2),s=a[0],l=a[1];this._backFill.set(s,l||Rt.l3),this._currentKeyframe.set(s,Rt.l3)}}catch(u){i.e(u)}finally{i.f()}this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,i,o,a){var s;i&&this._previousKeyframe.set("easing",i);var h,l=a&&a.params||{},u=function EY(n,r){var i,e=new Map;return n.forEach(function(o){if("*"===o){i=i||r.keys();var s,a=(0,xn.Z)(i);try{for(a.s();!(s=a.n()).done;){var l=s.value;e.set(l,Rt.l3)}}catch(u){a.e(u)}finally{a.f()}}else op(o,e)}),e}(e,this._globalTimelineStyles),d=(0,xn.Z)(u);try{for(d.s();!(h=d.n()).done;){var g=(0,Nn.Z)(h.value,2),C=g[0],z=jy(g[1],l,o);this._pendingStyles.set(C,z),this._localTimelineStyles.has(C)||this._backFill.set(C,null!==(s=this._globalTimelineStyles.get(C))&&void 0!==s?s:Rt.l3),this._updateStyle(C,z)}}catch(q){d.e(q)}finally{d.f()}}},{key:"applyStylesToKeyframe",value:function(){var e=this;0!=this._pendingStyles.size&&(this._pendingStyles.forEach(function(i,o){e._currentKeyframe.set(o,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach(function(i,o){e._currentKeyframe.has(o)||e._currentKeyframe.set(o,i)}))}},{key:"snapshotCurrentStyles",value:function(){var i,e=(0,xn.Z)(this._localTimelineStyles);try{for(e.s();!(i=e.n()).done;){var o=(0,Nn.Z)(i.value,2),a=o[0],s=o[1];this._pendingStyles.set(a,s),this._updateStyle(a,s)}}catch(l){e.e(l)}finally{e.f()}}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var i in this._currentKeyframe)e.push(i);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var i=this;e._styleSummary.forEach(function(o,a){var s=i._styleSummary.get(a);(!s||o.time>s.time)&&i._updateStyle(a,o.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var i=new Set,o=new Set,a=1===this._keyframes.size&&0===this.duration,s=[];this._keyframes.forEach(function(g,C){var Z=op(g,new Map,e._backFill);Z.forEach(function(z,q){z===Rt.k1?i.add(q):z===Rt.l3&&o.add(q)}),a||Z.set("offset",C/e.duration),s.push(Z)});var l=i.size?R1(i.values()):[],u=o.size?R1(o.values()):[];if(a){var d=s[0],h=new Map(d);d.set("offset",0),h.set("offset",1),s=[d,h]}return zy(this.element,s,l,u,this.duration,this.startTime,this.easing,!1)}}]),n}(),SY=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u){var d,h=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return(0,H.Z)(this,e),(d=r.call(this,i,o,u.delay)).keyframes=a,d.preStyleProps=s,d.postStyleProps=l,d._stretchStartingKeyframe=h,d.timings={duration:u.duration,delay:u.delay,easing:u.easing},d}return(0,B.Z)(e,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var o=this.keyframes,a=this.timings,s=a.delay,l=a.duration,u=a.easing;if(this._stretchStartingKeyframe&&s){var d=[],h=l+s,g=s/h,C=op(o[0]);C.set("offset",0),d.push(C);var Z=op(o[0]);Z.set("offset",u7(g)),d.push(Z);for(var z=o.length-1,q=1;q<=z;q++){var re=op(o[q]),Se=s+re.get("offset")*l;re.set("offset",u7(Se/h)),d.push(re)}l=h,s=0,u="",o=d}return zy(this.element,o,this.preStyleProps,this.postStyleProps,l,s,u,!0)}}]),e}(jE);function u7(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,e=Math.pow(10,r-1);return Math.round(n*e)/e}var B1=(0,B.Z)(function n(){(0,H.Z)(this,n)}),c7=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),d7=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"normalizePropertyName",value:function(o,a){return L1(o)}},{key:"normalizeStyleValue",value:function(o,a,s,l){var u="",d=s.toString().trim();if(c7.has(a)&&0!==s&&"0"!==s)if("number"==typeof s)u="px";else{var h=s.match(/^[+-]?[\d\.]+([a-z]*)$/);h&&0==h[1].length&&l.push(function EU(n,r){return new t.vHH(3005,!1)}())}return d+u}}]),e}(B1);function pL(n,r,e,i,o,a,s,l,u,d,h,g,C){return{type:0,element:n,triggerName:r,isRemovalTransition:o,fromState:e,fromStyles:a,toState:i,toStyles:s,timelines:l,queriedElements:u,preStyleProps:d,postStyleProps:h,totalTime:g,errors:C}}var F1={},GE=function(){function n(r,e,i){(0,H.Z)(this,n),this._triggerName=r,this.ast=e,this._stateStyles=i}return(0,B.Z)(n,[{key:"match",value:function(e,i,o,a){return function p7(n,r,e,i,o){return n.some(function(a){return a(r,e,i,o)})}(this.ast.matchers,e,i,o,a)}},{key:"buildStyles",value:function(e,i,o){var a=this._stateStyles.get("*");return void 0!==e&&(a=this._stateStyles.get(null==e?void 0:e.toString())||a),a?a.buildStyles(i,o):new Map}},{key:"build",value:function(e,i,o,a,s,l,u,d,h,g){var C,Z=[],z=this.ast.options&&this.ast.options.params||F1,q=u&&u.params||F1,re=this.buildStyles(o,q,Z),ae=d&&d.params||F1,Se=this.buildStyles(a,ae,Z),Ce=new Set,Ee=new Map,Ve=new Map,ut="void"===a,Ae={params:h7(ae,z),delay:null===(C=this.ast.options)||void 0===C?void 0:C.delay},ot=g?[]:N1(e,i,this.ast.animation,s,l,re,Se,Ae,h,Z),ht=0;if(ot.forEach(function(Xe){ht=Math.max(Xe.duration+Xe.delay,ht)}),Z.length)return pL(i,this._triggerName,o,a,ut,re,Se,[],[],Ee,Ve,ht,Z);ot.forEach(function(Xe){var Pe=Xe.element,ft=bl(Ee,Pe,new Set);Xe.preStyleProps.forEach(function(Gt){return ft.add(Gt)});var Nt=bl(Ve,Pe,new Set);Xe.postStyleProps.forEach(function(Gt){return Nt.add(Gt)}),Pe!==i&&Ce.add(Pe)});var bt=R1(Ce.values());return pL(i,this._triggerName,o,a,ut,re,Se,ot,bt,Ee,Ve,ht)}}]),n}();function h7(n,r){var e=J_(r);for(var i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}var hL=function(){function n(r,e,i){(0,H.Z)(this,n),this.styles=r,this.defaultParams=e,this.normalizer=i}return(0,B.Z)(n,[{key:"buildStyles",value:function(e,i){var o=this,a=new Map,s=J_(this.defaultParams);return Object.keys(e).forEach(function(l){var u=e[l];null!==u&&(s[l]=u)}),this.styles.styles.forEach(function(l){"string"!=typeof l&&l.forEach(function(u,d){u&&(u=jy(u,s,i));var h=o.normalizer.normalizePropertyName(d,i);u=o.normalizer.normalizeStyleValue(d,h,u,i),a.set(h,u)})}),a}}]),n}();var DY=function(){function n(r,e,i){var o=this;(0,H.Z)(this,n),this.name=r,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(function(a){var s=a.options&&a.options.params||{};o.states.set(a.name,new hL(a.style,s,i))}),rg(this.states,"true","1"),rg(this.states,"false","0"),e.transitions.forEach(function(a){o.transitionFactories.push(new GE(r,a,o.states))}),this.fallbackTransition=function mL(n,r,e){return new GE(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(s,l){return!0}],options:null,queryCount:0,depCount:0},r)}(r,this.states,this._normalizer)}return(0,B.Z)(n,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,i,o,a){return this.transitionFactories.find(function(l){return l.match(e,i,o,a)})||null}},{key:"matchStyles",value:function(e,i,o){return this.fallbackTransition.buildStyles(e,i,o)}}]),n}();function rg(n,r,e){n.has(r)?n.has(e)||n.set(e,n.get(r)):n.has(e)&&n.set(r,n.get(e))}var m7=new dL,_7=function(){function n(r,e,i){(0,H.Z)(this,n),this.bodyNode=r,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}return(0,B.Z)(n,[{key:"register",value:function(e,i){var o=[],a=[],s=BE(this._driver,i,o,a);if(o.length)throw function qR(n){return new t.vHH(3503,!1)}();a.length,this._animations.set(e,s)}},{key:"_buildPlayer",value:function(e,i,o){var a=e.element,s=jU(this._driver,this._normalizer,a,e.keyframes,i,o);return this._driver.animate(a,s,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,i){var u,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=[],l=this._animations.get(e),d=new Map;if(l?(u=N1(this._driver,i,l,tL,uc,new Map,new Map,a,m7,s)).forEach(function(C){var Z=bl(d,C.element,new Map);C.postStyleProps.forEach(function(z){return Z.set(z,null)})}):(s.push(JR()),u=[]),s.length)throw LU();d.forEach(function(C,Z){C.forEach(function(z,q){C.set(q,o._driver.computeStyle(Z,q,Rt.l3))})});var h=u.map(function(C){var Z=d.get(C.element);return o._buildPlayer(C,new Map,Z)}),g=Vd(h);return this._playersById.set(e,g),g.onDestroy(function(){return o.destroy(e)}),this.players.push(g),g}},{key:"destroy",value:function(e){var i=this._getPlayer(e);i.destroy(),this._playersById.delete(e);var o=this.players.indexOf(i);o>=0&&this.players.splice(o,1)}},{key:"_getPlayer",value:function(e){var i=this._playersById.get(e);if(!i)throw function ZU(n){return new t.vHH(3301,!1)}();return i}},{key:"listen",value:function(e,i,o,a){var s=AE(i,"","","");return Fy(this._getPlayer(e),o,s,a),function(){}}},{key:"command",value:function(e,i,o,a){if("register"!=o)if("create"!=o){var l=this._getPlayer(e);switch(o){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(a[0]));break;case"destroy":this.destroy(e)}}else{var s=a[0]||{};this.create(e,i,s)}else this.register(e,a[0])}}]),n}(),g7="ng-animate-queued",zE="ng-animate-disabled",v7="ng-star-inserted",IY=[],y7={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},PY={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},pc="__ng_removed",WE=function(){function n(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,H.Z)(this,n),this.namespaceId=e;var i=r&&r.hasOwnProperty("value"),o=i?r.value:r;if(this.value=c(o),i){var a=J_(r);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return(0,B.Z)(n,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var i=e.params;if(i){var o=this.options.params;Object.keys(i).forEach(function(a){null==o[a]&&(o[a]=i[a])})}}}]),n}(),U1="void",_L=new WE(U1),RY=function(){function n(r,e,i){(0,H.Z)(this,n),this.id=r,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,V(e,this._hostClassName)}return(0,B.Z)(n,[{key:"listen",value:function(e,i,o,a){var s=this;if(!this._triggers.has(i))throw function NU(n,r){return new t.vHH(3302,!1)}();if(null==o||0==o.length)throw function BU(n){return new t.vHH(3303,!1)}();if(!function p(n){return"start"==n||"done"==n}(o))throw function FU(n,r){return new t.vHH(3400,!1)}();var l=bl(this._elementListeners,e,[]),u={name:i,phase:o,callback:a};l.push(u);var d=bl(this._engine.statesByElement,e,new Map);return d.has(i)||(V(e,I1),V(e,I1+"-"+i),d.set(i,_L)),function(){s._engine.afterFlush(function(){var h=l.indexOf(u);h>=0&&l.splice(h,1),s._triggers.has(i)||d.delete(i)})}}},{key:"register",value:function(e,i){return!this._triggers.has(e)&&(this._triggers.set(e,i),!0)}},{key:"_getTrigger",value:function(e){var i=this._triggers.get(e);if(!i)throw function UU(n){return new t.vHH(3401,!1)}();return i}},{key:"trigger",value:function(e,i,o){var a=this,s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],l=this._getTrigger(i),u=new gL(this.id,i,e),d=this._engine.statesByElement.get(e);d||(V(e,I1),V(e,I1+"-"+i),this._engine.statesByElement.set(e,d=new Map));var h=d.get(i),g=new WE(o,this.id),C=o&&o.hasOwnProperty("value");!C&&h&&g.absorbOptions(h.options),d.set(i,g),h||(h=_L);var Z=g.value===U1;if(Z||h.value!==g.value){var ae=bl(this._engine.playersByElement,e,[]);ae.forEach(function(Ee){Ee.namespaceId==a.id&&Ee.triggerName==i&&Ee.queued&&Ee.destroy()});var Se=l.matchTransition(h.value,g.value,e,g.params),Ce=!1;if(!Se){if(!s)return;Se=l.fallbackTransition,Ce=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:Se,fromState:h,toState:g,player:u,isFallbackTransition:Ce}),Ce||(V(e,g7),u.onStart(function(){ee(e,g7)})),u.onDone(function(){var Ee=a.players.indexOf(u);Ee>=0&&a.players.splice(Ee,1);var Ve=a._engine.playersByElement.get(e);if(Ve){var ut=Ve.indexOf(u);ut>=0&&Ve.splice(ut,1)}}),this.players.push(u),ae.push(u),u}if(!rt(h.params,g.params)){var z=[],q=l.matchStyles(h.value,h.params,z),re=l.matchStyles(g.value,g.params,z);z.length?this._engine.reportError(z):this._engine.afterFlush(function(){Yd(e,q),fc(e,re)})}}},{key:"deregister",value:function(e){var i=this;this._triggers.delete(e),this._engine.statesByElement.forEach(function(o){return o.delete(e)}),this._elementListeners.forEach(function(o,a){i._elementListeners.set(a,o.filter(function(s){return s.name!=e}))})}},{key:"clearElementCache",value:function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var i=this._engine.playersByElement.get(e);i&&(i.forEach(function(o){return o.destroy()}),this._engine.playersByElement.delete(e))}},{key:"_signalRemovalForInnerTriggers",value:function(e,i){var o=this,a=this._engine.driver.query(e,q_,!0);a.forEach(function(s){if(!s[pc]){var l=o._engine.fetchNamespacesByElement(s);l.size?l.forEach(function(u){return u.triggerLeaveAnimation(s,i,!1,!0)}):o.clearElementCache(s)}}),this._engine.afterFlushAnimationsDone(function(){return a.forEach(function(s){return o.clearElementCache(s)})})}},{key:"triggerLeaveAnimation",value:function(e,i,o,a){var s=this,l=this._engine.statesByElement.get(e),u=new Map;if(l){var d=[];if(l.forEach(function(h,g){if(u.set(g,h.value),s._triggers.has(g)){var C=s.trigger(e,g,U1,a);C&&d.push(C)}}),d.length)return this._engine.markElementAsRemoved(this.id,e,!0,i,u),o&&Vd(d).onDone(function(){return s._engine.processLeaveNode(e)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(e){var i=this,o=this._elementListeners.get(e),a=this._engine.statesByElement.get(e);if(o&&a){var s=new Set;o.forEach(function(l){var u=l.name;if(!s.has(u)){s.add(u);var h=i._triggers.get(u).fallbackTransition,g=a.get(u)||_L,C=new WE(U1),Z=new gL(i.id,u,e);i._engine.totalQueuedPlayers++,i._queue.push({element:e,triggerName:u,transition:h,fromState:g,toState:C,player:Z,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(e,i){var o=this,a=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,i),!this.triggerLeaveAnimation(e,i,!0)){var s=!1;if(a.totalAnimations){var l=a.players.length?a.playersByQueriedElement.get(e):[];if(l&&l.length)s=!0;else for(var u=e;u=u.parentNode;){if(a.statesByElement.get(u)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)a.markElementAsRemoved(this.id,e,!1,i);else{var h=e[pc];(!h||h===y7)&&(a.afterFlush(function(){return o.clearElementCache(e)}),a.destroyInnerAnimations(e),a._onRemovalComplete(e,i))}}}},{key:"insertNode",value:function(e,i){V(e,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(e){var i=this,o=[];return this._queue.forEach(function(a){var s=a.player;if(!s.destroyed){var l=a.element,u=i._elementListeners.get(l);u&&u.forEach(function(d){if(d.name==a.triggerName){var h=AE(l,a.triggerName,a.fromState.value,a.toState.value);h._data=e,Fy(a.player,d.phase,h,d.callback)}}),s.markedForDestroy?i._engine.afterFlush(function(){s.destroy()}):o.push(a)}}),this._queue=[],o.sort(function(a,s){var l=a.transition.ast.depCount,u=s.transition.ast.depCount;return 0==l||0==u?l-u:i._engine.driver.containsElement(a.element,s.element)?1:-1})}},{key:"destroy",value:function(e){this.players.forEach(function(i){return i.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,e)}},{key:"elementContainsData",value:function(e){var i=!1;return this._elementListeners.has(e)&&(i=!0),i=!!this._queue.find(function(o){return o.element===e})||i}}]),n}(),LY=function(){function n(r,e,i){(0,H.Z)(this,n),this.bodyNode=r,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(o,a){}}return(0,B.Z)(n,[{key:"_onRemovalComplete",value:function(e,i){this.onRemovalComplete(e,i)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach(function(i){i.players.forEach(function(o){o.queued&&e.push(o)})}),e}},{key:"createNamespace",value:function(e,i){var o=new RY(e,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(o,i):(this.newHostElements.set(i,o),this.collectEnterElement(i)),this._namespaceLookup[e]=o}},{key:"_balanceNamespaceList",value:function(e,i){var o=this._namespaceList,a=this.namespacesByHostElement;if(o.length-1>=0){for(var l=!1,u=this.driver.getParentElement(i);u;){var d=a.get(u);if(d){var h=o.indexOf(d);o.splice(h+1,0,e),l=!0;break}u=this.driver.getParentElement(u)}l||o.unshift(e)}else o.push(e);return a.set(i,e),e}},{key:"register",value:function(e,i){var o=this._namespaceLookup[e];return o||(o=this.createNamespace(e,i)),o}},{key:"registerTrigger",value:function(e,i,o){var a=this._namespaceLookup[e];a&&a.register(i,o)&&this.totalAnimations++}},{key:"destroy",value:function(e,i){var o=this;if(e){var a=this._fetchNamespace(e);this.afterFlush(function(){o.namespacesByHostElement.delete(a.hostElement),delete o._namespaceLookup[e];var s=o._namespaceList.indexOf(a);s>=0&&o._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(function(){return a.destroy(i)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var i=new Set,o=this.statesByElement.get(e);if(o){var s,a=(0,xn.Z)(o.values());try{for(a.s();!(s=a.n()).done;){var l=s.value;if(l.namespaceId){var u=this._fetchNamespace(l.namespaceId);u&&i.add(u)}}}catch(d){a.e(d)}finally{a.f()}}return i}},{key:"trigger",value:function(e,i,o,a){if(f(i)){var s=this._fetchNamespace(e);if(s)return s.trigger(i,o,a),!0}return!1}},{key:"insertNode",value:function(e,i,o,a){if(f(i)){var s=i[pc];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;var l=this.collectedLeaveElements.indexOf(i);l>=0&&this.collectedLeaveElements.splice(l,1)}if(e){var u=this._fetchNamespace(e);u&&u.insertNode(i,o)}a&&this.collectEnterElement(i)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,i){i?this.disabledNodes.has(e)||(this.disabledNodes.add(e),V(e,zE)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ee(e,zE))}},{key:"removeNode",value:function(e,i,o,a){if(f(i)){var s=e?this._fetchNamespace(e):null;if(s?s.removeNode(i,a):this.markElementAsRemoved(e,i,!1,a),o){var l=this.namespacesByHostElement.get(i);l&&l.id!==e&&l.removeNode(i,a)}}else this._onRemovalComplete(i,a)}},{key:"markElementAsRemoved",value:function(e,i,o,a,s){this.collectedLeaveElements.push(i),i[pc]={namespaceId:e,setForRemoval:a,hasAnimation:o,removedBeforeQueried:!1,previousTriggersValues:s}}},{key:"listen",value:function(e,i,o,a,s){return f(i)?this._fetchNamespace(e).listen(i,o,a,s):function(){}}},{key:"_buildInstruction",value:function(e,i,o,a,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,o,a,e.fromState.options,e.toState.options,i,s)}},{key:"destroyInnerAnimations",value:function(e){var i=this,o=this.driver.query(e,q_,!0);o.forEach(function(a){return i.destroyActiveAnimationsForElement(a)}),0!=this.playersByQueriedElement.size&&(o=this.driver.query(e,LE,!0)).forEach(function(a){return i.finishActiveQueriedAnimationOnElement(a)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var i=this.playersByElement.get(e);i&&i.forEach(function(o){o.queued?o.markedForDestroy=!0:o.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var i=this.playersByQueriedElement.get(e);i&&i.forEach(function(o){return o.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(i){if(e.players.length)return Vd(e.players).onDone(function(){return i()});i()})}},{key:"processLeaveNode",value:function(e){var o,i=this,a=e[pc];if(a&&a.setForRemoval){if(e[pc]=y7,a.namespaceId){this.destroyInnerAnimations(e);var s=this._fetchNamespace(a.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,a.setForRemoval)}!(null===(o=e.classList)||void 0===o)&&o.contains(zE)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(l){i.markElementAsDisabled(l,!1)})}},{key:"flush",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,o=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(C,Z){return e._balanceNamespaceList(C,Z)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var a=0;a=0;Pe--){this._namespaceList[Pe].drainQueuedTransitions(i).forEach(function(bn){var Bn=bn.player,nr=bn.element;if(bt.push(Bn),o.collectedEnterElements.length){var vr=nr[pc];if(vr&&vr.setForMove){if(vr.previousTriggersValues&&vr.previousTriggersValues.has(bn.triggerName)){var io=vr.previousTriggersValues.get(bn.triggerName),Yu=o.statesByElement.get(bn.element);if(Yu&&Yu.has(bn.triggerName)){var Mv=Yu.get(bn.triggerName);Mv.value=io,Yu.set(bn.triggerName,Mv)}}return void Bn.destroy()}}var Sv=!Z||!o.driver.containsElement(Z,nr),Jm=ot.get(nr),aC=re.get(nr),Ia=o._buildInstruction(bn,a,aC,Jm,Sv);if(Ia.errors&&Ia.errors.length)Xe.push(Ia);else{if(Sv)return Bn.onStart(function(){return Yd(nr,Ia.fromStyles)}),Bn.onDestroy(function(){return fc(nr,Ia.toStyles)}),void s.push(Bn);if(bn.isFallbackTransition)return Bn.onStart(function(){return Yd(nr,Ia.fromStyles)}),Bn.onDestroy(function(){return fc(nr,Ia.toStyles)}),void s.push(Bn);var AP=[];Ia.timelines.forEach(function(th){th.stretchStartingKeyframe=!0,o.disabledNodes.has(th.element)||AP.push(th)}),Ia.timelines=AP,a.append(nr,Ia.timelines);var QW={instruction:Ia,player:Bn,element:nr};u.push(QW),Ia.queriedElements.forEach(function(th){return bl(d,th,[]).push(Bn)}),Ia.preStyleProps.forEach(function(th,OP){if(th.size){var sC=h.get(OP);sC||h.set(OP,sC=new Set),th.forEach(function(net,XW){return sC.add(XW)})}}),Ia.postStyleProps.forEach(function(th,OP){var sC=g.get(OP);sC||g.set(OP,sC=new Set),th.forEach(function(net,XW){return sC.add(XW)})})}})}if(Xe.length){var Nt=[];Xe.forEach(function(bn){Nt.push(function vY(n,r){return new t.vHH(3505,!1)}(bn.triggerName,bn.errors))}),bt.forEach(function(bn){return bn.destroy()}),this.reportError(Nt)}var Gt=new Map,It=new Map;u.forEach(function(bn){var Bn=bn.element;a.has(Bn)&&(It.set(Bn,Bn),o._beforeAnimationBuild(bn.player.namespaceId,bn.instruction,Gt))}),s.forEach(function(bn){var Bn=bn.element;o._getPreviousPlayers(Bn,!1,bn.namespaceId,bn.triggerName,null).forEach(function(vr){bl(Gt,Bn,[]).push(vr),vr.destroy()})});var Tn=Se.filter(function(bn){return pt(bn,h,g)}),jn=new Map;w(jn,this.driver,Ee,g,Rt.l3).forEach(function(bn){pt(bn,h,g)&&Tn.push(bn)});var or=new Map;q.forEach(function(bn,Bn){w(or,o.driver,new Set(bn),h,Rt.k1)}),Tn.forEach(function(bn){var Bn,nr,vr=jn.get(bn),io=or.get(bn);jn.set(bn,new Map([].concat((0,pn.Z)(Array.from(null!==(Bn=null==vr?void 0:vr.entries())&&void 0!==Bn?Bn:[])),(0,pn.Z)(Array.from(null!==(nr=null==io?void 0:io.entries())&&void 0!==nr?nr:[])))))});var Mr=[],_r=[],zr={};u.forEach(function(bn){var Bn=bn.element,nr=bn.player,vr=bn.instruction;if(a.has(Bn)){if(C.has(Bn))return nr.onDestroy(function(){return fc(Bn,vr.toStyles)}),nr.disabled=!0,nr.overrideTotalTime(vr.totalTime),void s.push(nr);var io=zr;if(It.size>1){for(var Yu=Bn,Mv=[];Yu=Yu.parentNode;){var Sv=It.get(Yu);if(Sv){io=Sv;break}Mv.push(Yu)}Mv.forEach(function(Ia){return It.set(Ia,io)})}var Jm=o._buildAnimation(nr.namespaceId,vr,Gt,l,or,jn);if(nr.setRealPlayer(Jm),io===zr)Mr.push(nr);else{var aC=o.playersByElement.get(io);aC&&aC.length&&(nr.parentPlayer=Vd(aC)),s.push(nr)}}else Yd(Bn,vr.fromStyles),nr.onDestroy(function(){return fc(Bn,vr.toStyles)}),_r.push(nr),C.has(Bn)&&s.push(nr)}),_r.forEach(function(bn){var Bn=l.get(bn.element);if(Bn&&Bn.length){var nr=Vd(Bn);bn.setRealPlayer(nr)}}),s.forEach(function(bn){bn.parentPlayer?bn.syncPlayerEvents(bn.parentPlayer):bn.destroy()});for(var Ur=0;Ur0?this.driver.animate(e.element,i,e.duration,e.delay,e.easing,o):new Rt.ZN(e.duration,e.delay)}}]),n}(),gL=function(){function n(r,e,i){(0,H.Z)(this,n),this.namespaceId=r,this.triggerName=e,this.element=i,this._player=new Rt.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return(0,B.Z)(n,[{key:"setRealPlayer",value:function(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach(function(i,o){i.forEach(function(a){return Fy(e,o,void 0,a)})}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var i=this,o=this._player;o.triggerCallback&&e.onStart(function(){return o.triggerCallback("start")}),e.onDone(function(){return i.finish()}),e.onDestroy(function(){return i.destroy()})}},{key:"_queueEvent",value:function(e,i){bl(this._queuedCallbacks,e,[]).push(i)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var i=this._player;i.triggerCallback&&i.triggerCallback(e)}}]),n}();function c(n){return null!=n?n:null}function f(n){return n&&1===n.nodeType}function _(n,r){var e=n.style.display;return n.style.display=null!=r?r:"none",e}function w(n,r,e,i,o){var a=[];e.forEach(function(u){return a.push(_(u))});var s=[];i.forEach(function(u,d){var h=new Map;u.forEach(function(g){var C=r.computeStyle(d,g,o);h.set(g,C),(!C||0==C.length)&&(d[pc]=PY,s.push(d))}),n.set(d,h)});var l=0;return e.forEach(function(u){return _(u,a[l++])}),s}function I(n,r){var e=new Map;if(n.forEach(function(l){return e.set(l,[])}),0==r.length)return e;var o=new Set(r),a=new Map;function s(l){if(!l)return 1;var u=a.get(l);if(u)return u;var d=l.parentNode;return u=e.has(d)?d:o.has(d)?1:s(d),a.set(l,u),u}return r.forEach(function(l){var u=s(l);1!==u&&e.get(u).push(l)}),e}function V(n,r){var e;null===(e=n.classList)||void 0===e||e.add(r)}function ee(n,r){var e;null===(e=n.classList)||void 0===e||e.remove(r)}function oe(n,r,e){Vd(e).onDone(function(){return n.processLeaveNode(r)})}function He(n,r){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),n}();function en(n,r){var e=null,i=null;return Array.isArray(r)&&r.length?(e=Un(r[0]),r.length>1&&(i=Un(r[r.length-1]))):r instanceof Map&&(e=Un(r)),e||i?new _n(n,e,i):null}var _n=function(){function n(r,e,i){(0,H.Z)(this,n),this._element=r,this._startStyles=e,this._endStyles=i,this._state=0;var o=n.initialStylesByElement.get(r);o||n.initialStylesByElement.set(r,o=new Map),this._initialStyles=o}return(0,B.Z)(n,[{key:"start",value:function(){this._state<1&&(this._startStyles&&fc(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(fc(this._element,this._initialStyles),this._endStyles&&(fc(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Yd(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Yd(this._element,this._endStyles),this._endStyles=null),fc(this._element,this._initialStyles),this._state=3)}}]),n}();function Un(n){var r=null;return n.forEach(function(e,i){(function Qn(n){return"display"===n||"position"===n})(i)&&(r=r||new Map).set(i,e)}),r}_n.initialStylesByElement=new WeakMap;var Xn=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.element=r,this.keyframes=e,this.options=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return(0,B.Z)(n,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:new Map,this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_convertKeyframesToObject",value:function(e){var i=[];return e.forEach(function(o){i.push(Object.fromEntries(o))}),i}},{key:"_triggerWebAnimation",value:function(e,i,o){return e.animate(this._convertKeyframesToObject(i),o)}},{key:"onStart",value:function(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,i=new Map;this.hasStarted()&&this._finalKeyframe.forEach(function(a,s){"offset"!==s&&i.set(s,e._finished?a:$U(e.element,s))});this.currentSnapshot=i}},{key:"triggerCallback",value:function(e){var i="start"===e?this._onStartFns:this._onDoneFns;i.forEach(function(o){return o()}),i.length=0}}]),n}(),wn=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"validateStyleProperty",value:function(e){return!0}},{key:"validateAnimatableStyleProperty",value:function(e){return!0}},{key:"matchesElement",value:function(e,i){return!1}},{key:"containsElement",value:function(e,i){return YU(e,i)}},{key:"getParentElement",value:function(e){return Y_(e)}},{key:"query",value:function(e,i,o){return $R(e,i,o)}},{key:"computeStyle",value:function(e,i,o){return window.getComputedStyle(e)[i]}},{key:"animate",value:function(e,i,o,a,s){var l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],u=0==a?"both":"forwards",d={duration:o,delay:a,fill:u};s&&(d.easing=s);var h=new Map,g=l.filter(function(z){return z instanceof Xn});oL(o,a)&&g.forEach(function(z){z.currentSnapshot.forEach(function(q,re){return h.set(re,q)})});var C=Q_(i).map(function(z){return op(z)}),Z=en(e,C=XU(e,C,h));return new Xn(e,C,d,Z)}}]),n}(),br=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a;(0,H.Z)(this,e),(a=r.call(this))._nextAnimationId=0;var s={id:"0",encapsulation:t.ifc.None,styles:[],data:{animation:[]}};return a._renderer=i.createRenderer(o.body,s),a}return(0,B.Z)(e,[{key:"build",value:function(o){var a=this._nextAnimationId.toString();this._nextAnimationId++;var s=Array.isArray(o)?(0,Rt.vP)(o):o;return $a(this._renderer,null,a,"register",[s]),new gi(a,this._renderer)}}]),e}(Rt._j);br.\u0275fac=function(r){return new(r||br)(t.LFG(t.FYo),t.LFG(ge.K0))},br.\u0275prov=t.Yz7({token:br,factory:br.\u0275fac});var gi=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a;return(0,H.Z)(this,e),(a=r.call(this))._id=i,a._renderer=o,a}return(0,B.Z)(e,[{key:"create",value:function(o,a){return new wi(this._id,o,a||{},this._renderer)}}]),e}(Rt.LC),wi=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.id=r,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return(0,B.Z)(n,[{key:"_listen",value:function(e,i){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),i)}},{key:"_command",value:function(e){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a=0&&e3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,i,o),this.engine.onInsert(this.namespaceId,i,e,a)}},{key:"removeChild",value:function(e,i,o){this.engine.onRemove(this.namespaceId,i,this.delegate,o)}},{key:"selectRootElement",value:function(e,i){return this.delegate.selectRootElement(e,i)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,i,o,a){this.delegate.setAttribute(e,i,o,a)}},{key:"removeAttribute",value:function(e,i,o){this.delegate.removeAttribute(e,i,o)}},{key:"addClass",value:function(e,i){this.delegate.addClass(e,i)}},{key:"removeClass",value:function(e,i){this.delegate.removeClass(e,i)}},{key:"setStyle",value:function(e,i,o,a){this.delegate.setStyle(e,i,o,a)}},{key:"removeStyle",value:function(e,i,o){this.delegate.removeStyle(e,i,o)}},{key:"setProperty",value:function(e,i,o){"@"==i.charAt(0)&&i==wl?this.disableAnimations(e,!!o):this.delegate.setProperty(e,i,o)}},{key:"setValue",value:function(e,i){this.delegate.setValue(e,i)}},{key:"listen",value:function(e,i,o){return this.delegate.listen(e,i,o)}},{key:"disableAnimations",value:function(e,i){this.engine.disableAnimations(e,i)}}]),n}(),Vy=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,o,a,s,l)).factory=i,u.namespaceId=o,u}return(0,B.Z)(e,[{key:"setProperty",value:function(o,a,s){"@"==a.charAt(0)?"."==a.charAt(1)&&a==wl?(s=void 0===s||!!s,this.disableAnimations(o,s)):this.engine.process(this.namespaceId,o,a.slice(1),s):this.delegate.setProperty(o,a,s)}},{key:"listen",value:function(o,a,s){var l=this;if("@"==a.charAt(0)){var u=function Yy(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(o),d=a.slice(1),h="";if("@"!=d.charAt(0)){var g=function ag(n){var r=n.indexOf("."),e=n.substring(0,r),i=n.slice(r+1);return[e,i]}(d),C=(0,Nn.Z)(g,2);d=C[0],h=C[1]}return this.engine.listen(this.namespaceId,u,d,h,function(Z){var z=Z._data||-1;l.factory.scheduleListenerCallback(z,s,Z)})}return this.delegate.listen(o,a,s)}}]),e}(og);var Vc=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){return(0,H.Z)(this,e),r.call(this,i.body,o,a)}return(0,B.Z)(e,[{key:"ngOnDestroy",value:function(){this.flush()}}]),e}(wt);Vc.\u0275fac=function(r){return new(r||Vc)(t.LFG(ge.K0),t.LFG(PE),t.LFG(B1),t.LFG(t.z2F))},Vc.\u0275prov=t.Yz7({token:Vc,factory:Vc.\u0275fac});var NY=[{provide:Rt._j,useClass:br},{provide:B1,useFactory:function VE(){return new d7}},{provide:wt,useClass:Vc},{provide:t.FYo,useFactory:function xue(n,r,e){return new $l(n,r,e)},deps:[ze,wt,t.R0b]}],b7=[{provide:PE,useFactory:function(){return new wn}},{provide:t.QbO,useValue:"BrowserAnimations"}].concat(NY),C7=[{provide:PE,useClass:ip},{provide:t.QbO,useValue:"NoopAnimations"}].concat(NY),H1=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,null,[{key:"withConfig",value:function(e){return{ngModule:n,providers:e.disableAnimations?C7:b7}}}]),n}();H1.\u0275fac=function(r){return new(r||H1)},H1.\u0275mod=t.oAB({type:H1}),H1.\u0275inj=t.cJS({providers:b7,imports:[ri]});var YE=(0,B.Z)(function n(){(0,H.Z)(this,n)});YE.\u0275fac=function(r){return new(r||YE)},YE.\u0275mod=t.oAB({type:YE}),YE.\u0275inj=t.cJS({providers:C7,imports:[ri]});var Due=m(839),j1=m(6053),ys=m(1709),G1=m(8117),w7=m(2821),Aue=m(3906),BY=m(519);function k7(n,r){return n=function Oue(n,r){return void 0===n?void 0===r?n:r:n}(n,r),"function"==typeof n?function(){for(var i=arguments,o=arguments.length,a=Array(o),s=0;s0;)e[i]=r[i+1];return Iue(n,e=e.map(S7))}function Rue(n){for(var r=arguments,e=[],i=arguments.length-1;i-- >0;)e[i]=r[i+1];return e.map(S7).reduce(function(o,a){var s=UY(n,a);return-1!==s?o.concat(n.splice(s,1)):o},[])}function S7(n,r){if("string"==typeof n)try{return document.querySelector(n)}catch(e){throw e}if(!FY(n)&&!r)throw new TypeError(n+" is not a DOM element.");return n}function HY(n){if(n===window)return function Zue(){var n={top:{value:0,enumerable:!0},left:{value:0,enumerable:!0},right:{value:window.innerWidth,enumerable:!0},bottom:{value:window.innerHeight,enumerable:!0},width:{value:window.innerWidth,enumerable:!0},height:{value:window.innerHeight,enumerable:!0},x:{value:0,enumerable:!0},y:{value:0,enumerable:!0}};if(Object.create)return Object.create({},n);var r={};return Object.defineProperties(r,n),r}();try{var r=n.getBoundingClientRect();return void 0===r.x&&(r.x=r.left,r.y=r.top),r}catch(e){throw new TypeError("Can't call getBoundingClientRect on "+n)}}var r,E7=void 0;"function"!=typeof Object.create?(r=function(){},E7=function(e,i){if(e!==Object(e)&&null!==e)throw TypeError("Argument must be an object, or null");r.prototype=e||{};var o=new r;return r.prototype=null,void 0!==i&&Object.defineProperties(o,i),null===e&&(o.__proto__=null),o}):E7=Object.create;var Bue=E7,Ky=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function x7(n,r){r=r||{};for(var e=Bue(n),i=0;iPe.right-e.margin.right?Math.ceil(Math.min(1,(s.x-Pe.right)/e.margin.right+1)*e.maxSpeed.right):0,Nt=s.yPe.bottom-e.margin.bottom?Math.ceil(Math.min(1,(s.y-Pe.bottom)/e.margin.bottom+1)*e.maxSpeed.bottom):0,e.syncMove()&&u.dispatch(Xe,{pageX:s.pageX+ft,pageY:s.pageY+Nt,clientX:s.x+ft,clientY:s.y+Nt}),setTimeout(function(){Nt&&function ht(Xe,Pe){Xe===window?window.scrollTo(Xe.pageXOffset,Xe.pageYOffset+Pe):Xe.scrollTop+=Pe}(Xe,Nt),ft&&function bt(Xe,Pe){Xe===window?window.scrollTo(Xe.pageXOffset+Pe,Xe.pageYOffset):Xe.scrollLeft+=Pe}(Xe,ft)})}window.addEventListener("mousedown",q,!1),window.addEventListener("touchstart",q,!1),window.addEventListener("mouseup",re,!1),window.addEventListener("touchend",re,!1),window.addEventListener("pointerup",re,!1),window.addEventListener("mousemove",Ve,!1),window.addEventListener("touchmove",Ve,!1),window.addEventListener("mouseleave",Se,!1),window.addEventListener("scroll",z,!0)}function jY(n,r,e){return e?n.y>e.top&&n.ye.left&&n.xe.top&&n.ye.left&&n.x0&&e.zone.run(function(){e.dragPointerDown.next({x:0,y:0})});var h=(0,ji.T)(e.pointerUp$,e.pointerDown$,d,e.destroy$).pipe((0,G1.B)()),g=(0,j1.aj)([e.pointerMove$,l]).pipe((0,$n.U)(function(z){var q=(0,Nn.Z)(z,2),re=q[0],ae=q[1];return{currentDrag$:u,transformX:re.clientX-o.clientX,transformY:re.clientY-o.clientY,clientX:re.clientX,clientY:re.clientY,scrollLeft:ae.left,scrollTop:ae.top,target:re.event.target}}),(0,$n.U)(function(z){return e.dragSnapGrid.x&&(z.transformX=Math.round(z.transformX/e.dragSnapGrid.x)*e.dragSnapGrid.x),e.dragSnapGrid.y&&(z.transformY=Math.round(z.transformY/e.dragSnapGrid.y)*e.dragSnapGrid.y),z}),(0,$n.U)(function(z){return e.dragAxis.x||(z.transformX=0),e.dragAxis.y||(z.transformY=0),z}),(0,$n.U)(function(z){var q=z.scrollLeft-s.left,re=z.scrollTop-s.top;return Object.assign(Object.assign({},z),{x:z.transformX+q,y:z.transformY+re})}),(0,ti.h)(function(z){var q=z.x,re=z.y,ae=z.transformX,Se=z.transformY;return!e.validateDrag||e.validateDrag({x:q,y:re,transform:{x:ae,y:Se}})}),(0,Nr.R)(h),(0,G1.B)()),C=g.pipe((0,Ei.q)(1),(0,G1.B)()),Z=g.pipe((0,w7.h)(1),(0,G1.B)());return C.subscribe(function(z){var q=z.clientX,re=z.clientY,ae=z.x,Se=z.y;if(e.dragStart.observers.length>0&&e.zone.run(function(){e.dragStart.next({cancelDrag$:d})}),e.scroller=jue([e.scrollContainer?e.scrollContainer.elementRef.nativeElement:e.document.defaultView],Object.assign(Object.assign({},e.autoScroll),{autoScroll:function(){return!0}})),A7(e.renderer,e.element,e.dragActiveClass),e.ghostDragEnabled){var Ce=e.element.nativeElement.getBoundingClientRect(),Ee=e.element.nativeElement.cloneNode(!0);if(e.showOriginalElementWhileDragging||e.renderer.setStyle(e.element.nativeElement,"visibility","hidden"),e.ghostElementAppendTo?e.ghostElementAppendTo.appendChild(Ee):e.element.nativeElement.parentNode.insertBefore(Ee,e.element.nativeElement.nextSibling),e.ghostElement=Ee,e.document.body.style.cursor=e.dragCursor,e.setElementStyles(Ee,{position:"fixed",top:"".concat(Ce.top,"px"),left:"".concat(Ce.left,"px"),width:"".concat(Ce.width,"px"),height:"".concat(Ce.height,"px"),cursor:e.dragCursor,margin:"0",willChange:"transform",pointerEvents:"none"}),e.ghostElementTemplate){var Ve=e.vcr.createEmbeddedView(e.ghostElementTemplate);Ee.innerHTML="",Ve.rootNodes.filter(function(ut){return ut instanceof Node}).forEach(function(ut){Ee.appendChild(ut)}),Z.subscribe(function(){e.vcr.remove(e.vcr.indexOf(Ve))})}e.ghostElementCreated.observers.length>0&&e.zone.run(function(){e.ghostElementCreated.emit({clientX:q-ae,clientY:re-Se,element:Ee})}),Z.subscribe(function(){Ee.parentElement.removeChild(Ee),e.ghostElement=null,e.renderer.setStyle(e.element.nativeElement,"visibility","")})}e.draggableHelper.currentDrag.next(u)}),Z.pipe((0,ys.zg)(function(z){var q=d.pipe((0,Aue.Q)(),(0,Ei.q)(1),(0,$n.U)(function(re){return Object.assign(Object.assign({},z),{dragCancelled:re>0})}));return d.complete(),q})).subscribe(function(z){var q=z.x,re=z.y,ae=z.dragCancelled;e.scroller.destroy(),e.dragEnd.observers.length>0&&e.zone.run(function(){e.dragEnd.next({x:q,y:re,dragCancelled:ae})}),vL(e.renderer,e.element,e.dragActiveClass),u.complete()}),(0,ji.T)(h,Z).pipe((0,Ei.q)(1)).subscribe(function(){requestAnimationFrame(function(){e.document.head.removeChild(a)})}),g}),(0,G1.B)());(0,ji.T)(i.pipe((0,Ei.q)(1),(0,$n.U)(function(o){return[,o]})),i.pipe((0,BY.G)())).pipe((0,ti.h)(function(o){var a=(0,Nn.Z)(o,2),s=a[0],l=a[1];return!s||(s.x!==l.x||s.y!==l.y)}),(0,$n.U)(function(o){var a=(0,Nn.Z)(o,2);a[0];return a[1]})).subscribe(function(o){var a=o.x,s=o.y,l=o.currentDrag$,u=o.clientX,d=o.clientY,h=o.transformX,g=o.transformY,C=o.target;e.dragging.observers.length>0&&e.zone.run(function(){e.dragging.next({x:a,y:s})}),requestAnimationFrame(function(){if(e.ghostElement){var Z="translate3d(".concat(h,"px, ").concat(g,"px, 0px)");e.setElementStyles(e.ghostElement,{transform:Z,"-webkit-transform":Z,"-ms-transform":Z,"-moz-transform":Z,"-o-transform":Z})}}),l.next({clientX:u,clientY:d,dropData:e.dropData,target:C})})}},{key:"ngOnChanges",value:function(e){e.dragAxis&&this.checkEventListeners()}},{key:"ngOnDestroy",value:function(){this.unsubscribeEventListeners(),this.pointerDown$.complete(),this.pointerMove$.complete(),this.pointerUp$.complete(),this.destroy$.next()}},{key:"checkEventListeners",value:function(){var e=this,i=this.canDrag(),o=Object.keys(this.eventListenerSubscriptions).length>0;i&&!o?this.zone.runOutsideAngular(function(){e.eventListenerSubscriptions.mousedown=e.renderer.listen(e.element.nativeElement,"mousedown",function(a){e.onMouseDown(a)}),e.eventListenerSubscriptions.mouseup=e.renderer.listen("document","mouseup",function(a){e.onMouseUp(a)}),e.eventListenerSubscriptions.touchstart=e.renderer.listen(e.element.nativeElement,"touchstart",function(a){e.onTouchStart(a)}),e.eventListenerSubscriptions.touchend=e.renderer.listen("document","touchend",function(a){e.onTouchEnd(a)}),e.eventListenerSubscriptions.touchcancel=e.renderer.listen("document","touchcancel",function(a){e.onTouchEnd(a)}),e.eventListenerSubscriptions.mouseenter=e.renderer.listen(e.element.nativeElement,"mouseenter",function(){e.onMouseEnter()}),e.eventListenerSubscriptions.mouseleave=e.renderer.listen(e.element.nativeElement,"mouseleave",function(){e.onMouseLeave()})}):!i&&o&&this.unsubscribeEventListeners()}},{key:"onMouseDown",value:function(e){var i=this;0===e.button&&(this.eventListenerSubscriptions.mousemove||(this.eventListenerSubscriptions.mousemove=this.renderer.listen("document","mousemove",function(o){i.pointerMove$.next({event:o,clientX:o.clientX,clientY:o.clientY})})),this.pointerDown$.next({event:e,clientX:e.clientX,clientY:e.clientY}))}},{key:"onMouseUp",value:function(e){0===e.button&&(this.eventListenerSubscriptions.mousemove&&(this.eventListenerSubscriptions.mousemove(),delete this.eventListenerSubscriptions.mousemove),this.pointerUp$.next({event:e,clientX:e.clientX,clientY:e.clientY}))}},{key:"onTouchStart",value:function(e){var o,a,s,i=this;if(this.touchStartLongPress&&(this.timeLongPress.timerBegin=Date.now(),a=!1,s=this.hasScrollbar(),o=this.getScrollPosition()),!this.eventListenerSubscriptions.touchmove){var l=(0,jd.R)(this.document,"contextmenu").subscribe(function(d){d.preventDefault()}),u=(0,jd.R)(this.document,"touchmove",{passive:!1}).subscribe(function(d){i.touchStartLongPress&&!a&&s&&(a=i.shouldBeginDrag(e,d,o)),(!i.touchStartLongPress||!s||a)&&(d.preventDefault(),i.pointerMove$.next({event:d,clientX:d.targetTouches[0].clientX,clientY:d.targetTouches[0].clientY}))});this.eventListenerSubscriptions.touchmove=function(){l.unsubscribe(),u.unsubscribe()}}this.pointerDown$.next({event:e,clientX:e.touches[0].clientX,clientY:e.touches[0].clientY})}},{key:"onTouchEnd",value:function(e){this.eventListenerSubscriptions.touchmove&&(this.eventListenerSubscriptions.touchmove(),delete this.eventListenerSubscriptions.touchmove,this.touchStartLongPress&&this.enableScroll()),this.pointerUp$.next({event:e,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY})}},{key:"onMouseEnter",value:function(){this.setCursor(this.dragCursor)}},{key:"onMouseLeave",value:function(){this.setCursor("")}},{key:"canDrag",value:function(){return this.dragAxis.x||this.dragAxis.y}},{key:"setCursor",value:function(e){this.eventListenerSubscriptions.mousemove||this.renderer.setStyle(this.element.nativeElement,"cursor",e)}},{key:"unsubscribeEventListeners",value:function(){var e=this;Object.keys(this.eventListenerSubscriptions).forEach(function(i){e.eventListenerSubscriptions[i](),delete e.eventListenerSubscriptions[i]})}},{key:"setElementStyles",value:function(e,i){var o=this;Object.keys(i).forEach(function(a){o.renderer.setStyle(e,a,i[a])})}},{key:"getScrollElement",value:function(){return this.scrollContainer?this.scrollContainer.elementRef.nativeElement:this.document.body}},{key:"getScrollPosition",value:function(){return this.scrollContainer?{top:this.scrollContainer.elementRef.nativeElement.scrollTop,left:this.scrollContainer.elementRef.nativeElement.scrollLeft}:{top:window.pageYOffset||this.document.documentElement.scrollTop,left:window.pageXOffset||this.document.documentElement.scrollLeft}}},{key:"shouldBeginDrag",value:function(e,i,o){var a=this.getScrollPosition(),s_top=Math.abs(a.top-o.top),s_left=Math.abs(a.left-o.left),d=Math.abs(i.targetTouches[0].clientX-e.touches[0].clientX)-s_left+(Math.abs(i.targetTouches[0].clientY-e.touches[0].clientY)-s_top),h=this.touchStartLongPress;return(d>h.delta||s_top>0||s_left>0)&&(this.timeLongPress.timerBegin=Date.now()),this.timeLongPress.timerEnd=Date.now(),this.timeLongPress.timerEnd-this.timeLongPress.timerBegin>=h.delay&&(this.disableScroll(),!0)}},{key:"enableScroll",value:function(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow",""),this.renderer.setStyle(this.document.body,"overflow","")}},{key:"disableScroll",value:function(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow","hidden"),this.renderer.setStyle(this.document.body,"overflow","hidden")}},{key:"hasScrollbar",value:function(){var e=this.getScrollElement(),i=e.scrollWidth>e.clientWidth,o=e.scrollHeight>e.clientHeight;return i||o}}]),n}();function GY(n,r,e){return n>=e.left&&n<=e.right&&r>=e.top&&r<=e.bottom}JE.\u0275fac=function(r){return new(r||JE)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(qy),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(W1,8),t.Y36(ge.K0))},JE.\u0275dir=t.lG2({type:JE,selectors:[["","mwlDraggable",""]],inputs:{dropData:"dropData",dragAxis:"dragAxis",dragSnapGrid:"dragSnapGrid",ghostDragEnabled:"ghostDragEnabled",showOriginalElementWhileDragging:"showOriginalElementWhileDragging",validateDrag:"validateDrag",dragCursor:"dragCursor",dragActiveClass:"dragActiveClass",ghostElementAppendTo:"ghostElementAppendTo",ghostElementTemplate:"ghostElementTemplate",touchStartLongPress:"touchStartLongPress",autoScroll:"autoScroll"},outputs:{dragPointerDown:"dragPointerDown",dragStart:"dragStart",ghostElementCreated:"ghostElementCreated",dragging:"dragging",dragEnd:"dragEnd"},features:[t.TTD]});var yL=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.element=r,this.draggableHelper=e,this.zone=i,this.renderer=o,this.scrollContainer=a,this.dragEnter=new t.vpe,this.dragLeave=new t.vpe,this.dragOver=new t.vpe,this.drop=new t.vpe}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.currentDragSubscription=this.draggableHelper.currentDrag.subscribe(function(i){A7(e.renderer,e.element,e.dragActiveClass);var s,d,o={updateCache:!0},a=e.renderer.listen(e.scrollContainer?e.scrollContainer.elementRef.nativeElement:"window","scroll",function(){o.updateCache=!0}),l=i.pipe((0,$n.U)(function(h){var g=h.clientX,C=h.clientY,Z=h.dropData,z=h.target;s={clientX:g,clientY:C,dropData:Z,target:z},o.updateCache&&(o.rect=e.element.nativeElement.getBoundingClientRect(),e.scrollContainer&&(o.scrollContainerRect=e.scrollContainer.elementRef.nativeElement.getBoundingClientRect()),o.updateCache=!1);var q=GY(g,C,o.rect),re=!e.validateDrop||e.validateDrop({clientX:g,clientY:C,target:z,dropData:Z});return o.scrollContainerRect?q&&re&&GY(g,C,o.scrollContainerRect):q&&re})),u=l.pipe((0,Ly.x)());u.pipe((0,ti.h)(function(h){return h})).subscribe(function(){d=!0,A7(e.renderer,e.element,e.dragOverClass),e.dragEnter.observers.length>0&&e.zone.run(function(){e.dragEnter.next(s)})}),l.pipe((0,ti.h)(function(h){return h})).subscribe(function(){e.dragOver.observers.length>0&&e.zone.run(function(){e.dragOver.next(s)})}),u.pipe((0,BY.G)(),(0,ti.h)(function(h){var g=(0,Nn.Z)(h,2),C=g[0],Z=g[1];return C&&!Z})).subscribe(function(){d=!1,vL(e.renderer,e.element,e.dragOverClass),e.dragLeave.observers.length>0&&e.zone.run(function(){e.dragLeave.next(s)})}),i.subscribe({complete:function(){a(),vL(e.renderer,e.element,e.dragActiveClass),d&&(vL(e.renderer,e.element,e.dragOverClass),e.drop.observers.length>0&&e.zone.run(function(){e.drop.next(s)}))}})})}},{key:"ngOnDestroy",value:function(){this.currentDragSubscription&&this.currentDragSubscription.unsubscribe()}}]),n}();yL.\u0275fac=function(r){return new(r||yL)(t.Y36(t.SBq),t.Y36(qy),t.Y36(t.R0b),t.Y36(t.Qsj),t.Y36(W1,8))},yL.\u0275dir=t.lG2({type:yL,selectors:[["","mwlDroppable",""]],inputs:{dragOverClass:"dragOverClass",dragActiveClass:"dragActiveClass",validateDrop:"validateDrop"},outputs:{dragEnter:"dragEnter",dragLeave:"dragLeave",dragOver:"dragOver",drop:"drop"}});var V1=(0,B.Z)(function n(){(0,H.Z)(this,n)});V1.\u0275fac=function(r){return new(r||V1)},V1.\u0275mod=t.oAB({type:V1}),V1.\u0275inj=t.cJS({});var zY=m(2072);function Jy(n,r){return nr?1:n>=r?0:NaN}function O7(n){return 1===n.length&&(n=function Gue(n){return function(r,e){return Jy(n(r),e)}}(n)),{left:function(e,i,o,a){for(null==o&&(o=0),null==a&&(a=e.length);o>>1;n(e[s],i)<0?o=s+1:a=s}return o},right:function(e,i,o,a){for(null==o&&(o=0),null==a&&(a=e.length);o>>1;n(e[s],i)>0?a=s:o=s+1}return o}}}var WY=O7(Jy),VY=WY.right,zue=WY.left,Y1=VY;function Wue(n,r){null==r&&(r=YY);for(var e=0,i=n.length-1,o=n[0],a=new Array(i<0?0:i);en?1:r>=n?0:NaN}function sg(n){return null===n?NaN:+n}function KY(n,r){var s,l,e=n.length,i=0,o=-1,a=0,u=0;if(null==r)for(;++o1)return u/(i-1)}function qY(n,r){var e=KY(n,r);return e&&Math.sqrt(e)}function I7(n,r){var o,a,s,e=n.length,i=-1;if(null==r){for(;++i=o)for(a=s=o;++io&&(a=o),s=o)for(a=s=o;++io&&(a=o),s0)return[n];if((i=r0)for(n=Math.ceil(n/l),r=Math.floor(r/l),s=new Array(a=Math.ceil(r-n+1));++o=0?(a>=P7?10:a>=R7?5:a>=L7?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(a>=P7?10:a>=R7?5:a>=L7?2:1)}function Qy(n,r,e){var i=Math.abs(r-n)/Math.max(0,e),o=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),a=i/o;return a>=P7?o*=10:a>=R7?o*=5:a>=L7&&(o*=2),rg;)C.pop(),--Z;var q,z=new Array(Z+1);for(a=0;a<=Z;++a)(q=z[a]=[]).x0=a>0?C[a-1]:h,q.x1=a=1)return+e(n[i-1],i-1,n);var i,o=(i-1)*r,a=Math.floor(o),s=+e(n[a],a,n);return s+(+e(n[a+1],a+1,n)-s)*(o-a)}}function Xue(n,r,e){return n=que.call(n,sg).sort(Jy),Math.ceil((e-r)/(2*(XE(n,.75)-XE(n,.25))*Math.pow(n.length,-1/3)))}function $ue(n,r,e){return Math.ceil((e-r)/(3.5*qY(n)*Math.pow(n.length,-1/3)))}function QY(n,r){var o,a,e=n.length,i=-1;if(null==r){for(;++i=o)for(a=o;++ia&&(a=o)}else for(;++i=o)for(a=o;++ia&&(a=o);return a}function ece(n,r){var a,e=n.length,i=e,o=-1,s=0;if(null==r)for(;++o=0;)for(e=(s=n[r]).length;--e>=0;)a[--o]=s[e];return a}function XY(n,r){var o,a,e=n.length,i=-1;if(null==r){for(;++i=o)for(a=o;++io&&(a=o)}else for(;++i=o)for(a=o;++io&&(a=o);return a}function nce(n,r){for(var e=r.length,i=new Array(e);e--;)i[e]=n[r[e]];return i}function rce(n,r){if(e=n.length){var e,a,i=0,o=0,s=n[o];for(null==r&&(r=Jy);++i=0&&(i=e.slice(o+1),e=e.slice(0,o)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}function bce(n,r){for(var o,e=0,i=n.length;e0)for(var a,s,i=new Array(a),o=0;or?1:n>=r?0:NaN}var j7="http://www.w3.org/1999/xhtml",sK={svg:"http://www.w3.org/2000/svg",xhtml:j7,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function SL(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),sK.hasOwnProperty(r)?{space:sK[r],local:n}:n}function Gce(n){return function(){this.removeAttribute(n)}}function zce(n){return function(){this.removeAttributeNS(n.space,n.local)}}function Wce(n,r){return function(){this.setAttribute(n,r)}}function Vce(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function Yce(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function Kce(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}}function lK(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function Jce(n){return function(){this.style.removeProperty(n)}}function Qce(n,r,e){return function(){this.style.setProperty(n,r,e)}}function Xce(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function K1(n,r){return n.style.getPropertyValue(r)||lK(n).getComputedStyle(n,null).getPropertyValue(r)}function ede(n){return function(){delete this[n]}}function tde(n,r){return function(){this[n]=r}}function nde(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function uK(n){return n.trim().split(/^|\s+/)}function G7(n){return n.classList||new cK(n)}function cK(n){this._node=n,this._names=uK(n.getAttribute("class")||"")}function dK(n,r){for(var e=G7(n),i=-1,o=r.length;++i=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};var hK={},Zn=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(hK={mouseenter:"mouseover",mouseleave:"mouseout"}));function Ide(n,r,e){return n=mK(n,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&n.call(this,i)}}function mK(n,r,e){return function(i){var o=Zn;Zn=i;try{n.call(this,this.__data__,r,e)}finally{Zn=o}}}function Pde(n){return n.trim().split(/^|\s+/).map(function(r){var e="",i=r.indexOf(".");return i>=0&&(e=r.slice(i+1),r=r.slice(0,i)),{type:r,name:e}})}function Rde(n){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e=Ce&&(Ce=Se+1);!(Ve=re[Ce])&&++Ce=0;)(s=i[o])&&(a&&4^s.compareDocumentPosition(a)&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function Lce(n){function r(g,C){return g&&C?n(g.__data__,C.__data__):!g-!C}n||(n=Zce);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a1?this.each((null==r?Jce:"function"==typeof r?Xce:Qce)(n,r,null==e?"":e)):K1(this.node(),n)},property:function rde(n,r){return arguments.length>1?this.each((null==r?ede:"function"==typeof r?nde:tde)(n,r)):this.node()[n]},classed:function sde(n,r){var e=uK(n+"");if(arguments.length<2){for(var i=G7(this.node()),o=-1,a=e.length;++o>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?OL(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?OL(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=Hde.exec(n))?new eu(r[1],r[2],r[3],1):(r=jde.exec(n))?new eu(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Gde.exec(n))?OL(r[1],r[2],r[3],r[4]):(r=zde.exec(n))?OL(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Wde.exec(n))?SK(r[1],r[2]/100,r[3]/100,1):(r=Vde.exec(n))?SK(r[1],r[2]/100,r[3]/100,r[4]):yK.hasOwnProperty(n)?wK(yK[n]):"transparent"===n?new eu(NaN,NaN,NaN,0):null}function wK(n){return new eu(n>>16&255,n>>8&255,255&n,1)}function OL(n,r,e,i){return i<=0&&(n=r=e=NaN),new eu(n,r,e,i)}function kK(n){return n instanceof J1||(n=e0(n)),n?new eu((n=n.rgb()).r,n.g,n.b,n.opacity):new eu}function IL(n,r,e,i){return 1===arguments.length?kK(n):new eu(n,r,e,null==i?1:i)}function eu(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function TK(){return"#"+V7(this.r)+V7(this.g)+V7(this.b)}function MK(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}function V7(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function SK(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new lp(n,r,e,i)}function EK(n){if(n instanceof lp)return new lp(n.h,n.s,n.l,n.opacity);if(n instanceof J1||(n=e0(n)),!n)return new lp;if(n instanceof lp)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,o=Math.min(r,e,i),a=Math.max(r,e,i),s=NaN,l=a-o,u=(a+o)/2;return l?(s=r===a?(e-i)/l+6*(e0&&u<1?0:s,new lp(s,l,u,n.opacity)}function lp(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function Y7(n,r,e){return 255*(n<60?r+(e-r)*n/60:n<180?e:n<240?r+(e-r)*(240-n)/60:r)}function xK(n,r,e,i,o){var a=n*n,s=a*n;return((1-3*n+3*a-s)*r+(4-6*a+3*s)*e+(1+3*n+3*a-3*s)*i+s*o)/6}function PL(n){return function(){return n}}function DK(n,r){return function(e){return n+e*r}}function $de(n){return 1==(n=+n)?$1:function(r,e){return e-r?function Qde(n,r,e){return n=Math.pow(n,e),r=Math.pow(r,e)-n,e=1/e,function(i){return Math.pow(n+i*r,e)}}(r,e,n):PL(isNaN(r)?e:r)}}function $1(n,r){var e=r-n;return e?DK(n,e):PL(isNaN(n)?r:n)}AL(J1,e0,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:bK,formatHex:bK,formatHsl:function Yde(){return EK(this).formatHsl()},formatRgb:CK,toString:CK}),AL(eu,IL,W7(J1,{brighter:function(r){return r=null==r?Q1:Math.pow(Q1,r),new eu(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new eu(this.r*r,this.g*r,this.b*r,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:TK,formatHex:TK,formatRgb:MK,toString:MK})),AL(lp,function Kde(n,r,e,i){return 1===arguments.length?EK(n):new lp(n,r,e,null==i?1:i)},W7(J1,{brighter:function(r){return r=null==r?Q1:Math.pow(Q1,r),new lp(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new lp(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+360*(this.h<0),e=isNaN(r)||isNaN(this.s)?0:this.s,i=this.l,o=i+(i<.5?i:1-i)*e,a=2*i-o;return new eu(Y7(r>=240?r-240:r+120,a,o),Y7(r,a,o),Y7(r<120?r+240:r-120,a,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var r=this.opacity;return(1===(r=isNaN(r)?1:Math.max(0,Math.min(1,r)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===r?")":", "+r+")")}}));var RL=function n(r){var e=$de(r);function i(o,a){var s=e((o=IL(o)).r,(a=IL(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),d=$1(o.opacity,a.opacity);return function(h){return o.r=s(h),o.g=l(h),o.b=u(h),o.opacity=d(h),o+""}}return i.gamma=n,i}(1);function AK(n){return function(r){var s,l,e=r.length,i=new Array(e),o=new Array(e),a=new Array(e);for(s=0;s=1?(e=1,r-1):Math.floor(e*r),o=n[i],a=n[i+1],s=i>0?n[i-1]:2*o-a,l=ie&&(a=r.slice(e,a),l[s]?l[s]+=a:l[++s]=a),(i=i[0])===(o=o[0])?l[s]?l[s]+=o:l[++s]=o:(l[++s]=null,u.push({i:s,x:Yc(i,o)})),e=q7.lastIndex;return e=0&&n._call.call(null,r),n=n._next;--ew}function BK(){t0=(NL=ix.now())+BL,ew=tx=0;try{NK()}finally{ew=0,function ufe(){for(var n,e,r=ZL,i=1/0;r;)r._call?(i>r._time&&(i=r._time),n=r,r=r._next):(e=r._next,r._next=null,r=n?n._next=e:ZL=e);rx=n,J7(i)}(),t0=0}}function lfe(){var n=ix.now(),r=n-NL;r>1e3&&(BL-=r,NL=n)}function J7(n){ew||(tx&&(tx=clearTimeout(tx)),n-t0>24?(n<1/0&&(tx=setTimeout(BK,n-ix.now()-BL)),nx&&(nx=clearInterval(nx))):(nx||(NL=ix.now(),nx=setInterval(lfe,1e3)),ew=1,ZK(BK)))}function sx(n,r,e){var i=new ox;return r=null==r?0:+r,i.restart(function(o){i.stop(),n(o+r)},r,e),i}ox.prototype=ax.prototype={constructor:ox,restart:function(r,e,i){if("function"!=typeof r)throw new TypeError("callback is not a function");i=(null==i?ug():+i)+(null==e?0:+e),!this._next&&rx!==this&&(rx?rx._next=this:ZL=this,rx=this),this._call=r,this._time=i,J7()},stop:function(){this._call&&(this._call=null,this._time=1/0,J7())}};var cfe=Xy("start","end","cancel","interrupt"),dfe=[];function HL(n,r,e,i,o,a){var s=n.__transition;if(s){if(e in s)return}else n.__transition={};!function ffe(n,r,e){var o,i=n.__transition;function a(d){e.state=1,e.timer.restart(s,e.delay,e.time),e.delay<=d&&s(d-e.delay)}function s(d){var h,g,C,Z;if(1!==e.state)return u();for(h in i)if((Z=i[h]).name===e.name){if(3===Z.state)return sx(s);4===Z.state?(Z.state=6,Z.timer.stop(),Z.on.call("interrupt",n,n.__data__,Z.index,Z.group),delete i[h]):+h0)throw new Error("too late; already scheduled");return e}function qh(n,r){var e=qd(n,r);if(e.state>3)throw new Error("too late; already running");return e}function qd(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}function tw(n,r){var i,o,s,e=n.__transition,a=!0;if(e){for(s in r=null==r?null:r+"",e)(i=e[s]).name===r?(o=i.state>2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(o?"interrupt":"cancel",n,n.__data__,i.index,i.group),delete e[s]):a=!1;a&&delete n.__transition}}var lx,t9,zK,jL,jK=180/Math.PI,e9={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function GK(n,r,e,i,o,a){var s,l,u;return(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s),(u=n*e+r*i)&&(e-=n*u,i-=r*u),(l=Math.sqrt(e*e+i*i))&&(e/=l,i/=l,u/=l),n*i180?h+=360:h-d>180&&(d+=360),C.push({i:g.push(o(g)+"rotate(",null,i)-2,x:Yc(d,h)})):h&&g.push(o(g)+"rotate("+h+i)}(d.rotate,h.rotate,g,C),function l(d,h,g,C){d!==h?C.push({i:g.push(o(g)+"skewX(",null,i)-2,x:Yc(d,h)}):h&&g.push(o(g)+"skewX("+h+i)}(d.skewX,h.skewX,g,C),function u(d,h,g,C,Z,z){if(d!==g||h!==C){var q=Z.push(o(Z)+"scale(",null,",",null,")");z.push({i:q-4,x:Yc(d,g)},{i:q-2,x:Yc(h,C)})}else(1!==g||1!==C)&&Z.push(o(Z)+"scale("+g+","+C+")")}(d.scaleX,d.scaleY,h.scaleX,h.scaleY,g,C),d=h=null,function(Z){for(var re,z=-1,q=C.length;++z=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?$7:qh;return function(){var s=a(this,n),l=s.on;l!==i&&(o=(i=l).copy()).on(r,e),s.on=o}}var Jfe=lg.prototype.constructor;function YK(n){return function(){this.style.removeProperty(n)}}function rpe(n,r,e){return function(i){this.style.setProperty(n,r.call(this,i),e)}}function ipe(n,r,e){var i,o;function a(){var s=r.apply(this,arguments);return s!==o&&(i=(o=s)&&rpe(n,s,e)),i}return a._value=r,a}function upe(n){return function(r){this.textContent=n.call(this,r)}}function cpe(n){var r,e;function i(){var o=n.apply(this,arguments);return o!==e&&(r=(e=o)&&upe(o)),r}return i._value=n,i}var hpe=0;function Jh(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function r9(n){return lg().transition(n)}function KK(){return++hpe}var nw=lg.prototype;function mpe(n){return n*n*n}function _pe(n){return--n*n*n+1}function GL(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}Jh.prototype=r9.prototype={constructor:Jh,select:function Kfe(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=H7(n));for(var i=this._groups,o=i.length,a=new Array(o),s=0;sMath.abs(bn[1]-zr[1])?Mr=!0:or=!0),zr=bn,jn=!0,zL(),Sn()}function Sn(){var bn;switch(It=zr[0]-_r[0],Tn=zr[1]-_r[1],z){case o9:case QK:q&&(It=Math.max(Ee-Ve,Math.min(bt-Xe,It)),ut=Ve+It,Pe=Xe+It),re&&(Tn=Math.max(Ae-ot,Math.min(ft-Nt,Tn)),ht=ot+Tn,Gt=Nt+Tn);break;case rw:q<0?(It=Math.max(Ee-Ve,Math.min(bt-Ve,It)),ut=Ve+It,Pe=Xe):q>0&&(It=Math.max(Ee-Xe,Math.min(bt-Xe,It)),ut=Ve,Pe=Xe+It),re<0?(Tn=Math.max(Ae-ot,Math.min(ft-ot,Tn)),ht=ot+Tn,Gt=Nt):re>0&&(Tn=Math.max(Ae-Nt,Math.min(ft-Nt,Tn)),ht=ot,Gt=Nt+Tn);break;case iw:q&&(ut=Math.max(Ee,Math.min(bt,Ve-It*q)),Pe=Math.max(Ee,Math.min(bt,Xe+It*q))),re&&(ht=Math.max(Ae,Math.min(ft,ot-Tn*re)),Gt=Math.max(Ae,Math.min(ft,Nt+Tn*re)))}Pe0&&(Ve=ut-It),re<0?Nt=Gt-Tn:re>0&&(ot=ht-Tn),z=o9,Fo.attr("cursor",Qh.selection),Sn());break;default:return}zL()}function un(){switch(Zn.keyCode){case 16:zn&&(or=Mr=zn=!1,Sn());break;case 18:z===iw&&(q<0?Xe=Pe:q>0&&(Ve=ut),re<0?Nt=Gt:re>0&&(ot=ht),z=rw,Sn());break;case 32:z===o9&&(Zn.altKey?(q&&(Xe=Pe-It*q,Ve=ut+It*q),re&&(Nt=Gt-Tn*re,ot=ht+Tn*re),z=iw):(q<0?Xe=Pe:q>0&&(Ve=ut),re<0?Nt=Gt:re>0&&(ot=ht),z=rw),Fo.attr("cursor",Qh[Z]),Sn());break;default:return}zL()}}function g(){var C=this.__brush||{selection:null};return C.extent=r.apply(this,arguments),C.dim=n,C}return s.move=function(C,Z){C.selection?C.on("start.brush",function(){u(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){u(this,arguments).end()}).tween("brush",function(){var z=this,q=z.__brush,re=u(z,arguments),ae=q.selection,Se=n.input("function"==typeof Z?Z.apply(this,arguments):Z,q.extent),Ce=LL(ae,Se);function Ee(Ve){q.selection=1===Ve&&s9(Se)?null:Ce(Ve),l.call(z),re.brush()}return ae&&Se?Ee:Ee(1)}):C.each(function(){var z=this,q=arguments,re=z.__brush,ae=n.input("function"==typeof Z?Z.apply(z,q):Z,re.extent),Se=u(z,q).beforestart();tw(z),re.selection=null==ae||s9(ae)?null:ae,l.call(z),Se.start().brush().end()})},d.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(Z){EL(new bpe(s,Z,n.output(this.state.selection)),i.apply,i,[Z,this.that,this.args])}},s.extent=function(C){return arguments.length?(r="function"==typeof C?C:qK([[+C[0][0],+C[0][1]],[+C[1][0],+C[1][1]]]),s):r},s.filter=function(C){return arguments.length?(e="function"==typeof C?C:qK(!!C),s):e},s.handleSize=function(C){return arguments.length?(o=+C,s):o},s.on=function(){var C=i.on.apply(i,arguments);return C===i?s:C},s}var eq=Math.cos,tq=Math.sin,nq=Math.PI,YL=nq/2,rq=2*nq,iq=Math.max;function Ape(n){return function(r,e){return n(r.source.value+r.target.value,e.source.value+e.target.value)}}function Ope(){var n=0,r=null,e=null,i=null;function o(a){var Z,z,q,re,ae,Se,s=a.length,l=[],u=hc(s),d=[],h=[],g=h.groups=new Array(s),C=new Array(s*s);for(Z=0,ae=-1;++aen0)if(Math.abs(g*u-d*h)>n0&&a){var Z=i-s,z=o-l,q=u*u+d*d,re=Z*Z+z*z,ae=Math.sqrt(q),Se=Math.sqrt(C),Ce=a*Math.tan((c9-Math.acos((q+C-re)/(2*ae*Se)))/2),Ee=Ce/Se,Ve=Ce/ae;Math.abs(Ee-1)>n0&&(this._+="L"+(r+Ee*h)+","+(e+Ee*g)),this._+="A"+a+","+a+",0,0,"+ +(g*Z>h*z)+","+(this._x1=r+Ve*u)+","+(this._y1=e+Ve*d)}else this._+="L"+(this._x1=r)+","+(this._y1=e)},arc:function(r,e,i,o,a,s){r=+r,e=+e,s=!!s;var l=(i=+i)*Math.cos(o),u=i*Math.sin(o),d=r+l,h=e+u,g=1^s,C=s?o-a:a-o;if(i<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+d+","+h:(Math.abs(this._x1-d)>n0||Math.abs(this._y1-h)>n0)&&(this._+="L"+d+","+h),i&&(C<0&&(C=C%d9+d9),C>Ppe?this._+="A"+i+","+i+",0,1,"+g+","+(r-l)+","+(e-u)+"A"+i+","+i+",0,1,"+g+","+(this._x1=d)+","+(this._y1=h):C>n0&&(this._+="A"+i+","+i+",0,"+ +(C>=c9)+","+g+","+(this._x1=r+i*Math.cos(a))+","+(this._y1=e+i*Math.sin(a))))},rect:function(r,e,i,o){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+e)+"h"+ +i+"v"+ +o+"h"+-i+"Z"},toString:function(){return this._}};var Jd=oq;function Rpe(n){return n.source}function Lpe(n){return n.target}function Zpe(n){return n.radius}function Npe(n){return n.startAngle}function Bpe(n){return n.endAngle}function Fpe(){var n=Rpe,r=Lpe,e=Zpe,i=Npe,o=Bpe,a=null;function s(){var l,u=Ipe.call(arguments),d=n.apply(this,u),h=r.apply(this,u),g=+e.apply(this,(u[0]=d,u)),C=i.apply(this,u)-YL,Z=o.apply(this,u)-YL,z=g*eq(C),q=g*tq(C),re=+e.apply(this,(u[0]=h,u)),ae=i.apply(this,u)-YL,Se=o.apply(this,u)-YL;if(a||(a=l=Jd()),a.moveTo(z,q),a.arc(0,0,g,C,Z),(C!==ae||Z!==Se)&&(a.quadraticCurveTo(0,0,re*eq(ae),re*tq(ae)),a.arc(0,0,re,ae,Se)),a.quadraticCurveTo(0,0,z,q),a.closePath(),l)return a=null,l+""||null}return s.radius=function(l){return arguments.length?(e="function"==typeof l?l:u9(+l),s):e},s.startAngle=function(l){return arguments.length?(i="function"==typeof l?l:u9(+l),s):i},s.endAngle=function(l){return arguments.length?(o="function"==typeof l?l:u9(+l),s):o},s.source=function(l){return arguments.length?(n=l,s):n},s.target=function(l){return arguments.length?(r=l,s):r},s.context=function(l){return arguments.length?(a=null==l?null:l,s):a},s}var Kc="$";function KL(){}function aq(n,r){var e=new KL;if(n instanceof KL)n.each(function(l,u){e.set(u,l)});else if(Array.isArray(n)){var a,i=-1,o=n.length;if(null==r)for(;++i=n.length)return null!=e&&l.sort(e),null!=i?i(l):l;for(var z,q,ae,g=-1,C=l.length,Z=n[u++],re=cg(),Se=d();++gn.length)return l;var d,h=r[u-1];return null!=i&&u>=n.length?d=l.entries():(d=[],l.each(function(g,C){d.push({key:C,values:s(g,u)})})),null!=h?d.sort(function(g,C){return h(g.key,C.key)}):d}return o={object:function(u){return a(u,0,Hpe,jpe)},map:function(u){return a(u,0,sq,lq)},entries:function(u){return s(a(u,0,sq,lq),0)},key:function(u){return n.push(u),o},sortKeys:function(u){return r[n.length-1]=u,o},sortValues:function(u){return e=u,o},rollup:function(u){return i=u,o}}}function Hpe(){return{}}function jpe(n,r,e){n[r]=e}function sq(){return cg()}function lq(n,r,e){n.set(r,e)}function qL(){}var r0=cg.prototype;function uq(n,r){var e=new qL;if(n instanceof qL)n.each(function(a){e.add(a)});else if(n){var i=-1,o=n.length;if(null==r)for(;++i>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):(r=Kpe.exec(n))?dq(parseInt(r[1],16)):(r=qpe.exec(n))?new nl(r[1],r[2],r[3],1):(r=Jpe.exec(n))?new nl(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Qpe.exec(n))?fq(r[1],r[2],r[3],r[4]):(r=Xpe.exec(n))?fq(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=$pe.exec(n))?hq(r[1],r[2]/100,r[3]/100,1):(r=ehe.exec(n))?hq(r[1],r[2]/100,r[3]/100,r[4]):cq.hasOwnProperty(n)?dq(cq[n]):"transparent"===n?new nl(NaN,NaN,NaN,0):null}function dq(n){return new nl(n>>16&255,n>>8&255,255&n,1)}function fq(n,r,e,i){return i<=0&&(n=r=e=NaN),new nl(n,r,e,i)}function p9(n){return n instanceof dg||(n=JL(n)),n?new nl((n=n.rgb()).r,n.g,n.b,n.opacity):new nl}function pq(n,r,e,i){return 1===arguments.length?p9(n):new nl(n,r,e,null==i?1:i)}function nl(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function hq(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new cp(n,r,e,i)}function the(n){if(n instanceof cp)return new cp(n.h,n.s,n.l,n.opacity);if(n instanceof dg||(n=JL(n)),!n)return new cp;if(n instanceof cp)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,o=Math.min(r,e,i),a=Math.max(r,e,i),s=NaN,l=a-o,u=(a+o)/2;return l?(s=r===a?(e-i)/l+6*(e0&&u<1?0:s,new cp(s,l,u,n.opacity)}function mq(n,r,e,i){return 1===arguments.length?the(n):new cp(n,r,e,null==i?1:i)}function cp(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function h9(n,r,e){return 255*(n<60?r+(e-r)*n/60:n<180?e:n<240?r+(e-r)*(240-n)/60:r)}ow(dg,JL,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),ow(nl,pq,cx(dg,{brighter:function(r){return r=null==r?aw:Math.pow(aw,r),new nl(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new nl(this.r*r,this.g*r,this.b*r,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var r=this.opacity;return(1===(r=isNaN(r)?1:Math.max(0,Math.min(1,r)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===r?")":", "+r+")")}})),ow(cp,mq,cx(dg,{brighter:function(r){return r=null==r?aw:Math.pow(aw,r),new cp(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new cp(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+360*(this.h<0),e=isNaN(r)||isNaN(this.s)?0:this.s,i=this.l,o=i+(i<.5?i:1-i)*e,a=2*i-o;return new nl(h9(r>=240?r-240:r+120,a,o),h9(r,a,o),h9(r<120?r+240:r-120,a,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var _q=Math.PI/180,gq=180/Math.PI,Cq=4/29,lw=6/29,wq=3*lw*lw;function m9(n){if(n instanceof dp)return new dp(n.l,n.a,n.b,n.opacity);if(n instanceof Xh){if(isNaN(n.h))return new dp(n.l,0,0,n.opacity);var r=n.h*_q;return new dp(n.l,Math.cos(r)*n.c,Math.sin(r)*n.c,n.opacity)}n instanceof nl||(n=p9(n));var s,l,e=y9(n.r),i=y9(n.g),o=y9(n.b),a=_9((.2225045*e+.7168786*i+.0606169*o)/1);return e===i&&i===o?s=l=a:(s=_9((.4360747*e+.3850649*i+.1430804*o)/.96422),l=_9((.0139322*e+.0971045*i+.7141733*o)/.82521)),new dp(116*a-16,500*(s-a),200*(a-l),n.opacity)}function kq(n,r,e,i){return 1===arguments.length?m9(n):new dp(n,r,e,null==i?1:i)}function dp(n,r,e,i){this.l=+n,this.a=+r,this.b=+e,this.opacity=+i}function _9(n){return n>.008856451679035631?Math.pow(n,1/3):n/wq+Cq}function g9(n){return n>lw?n*n*n:wq*(n-Cq)}function v9(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function y9(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function rhe(n){if(n instanceof Xh)return new Xh(n.h,n.c,n.l,n.opacity);if(n instanceof dp||(n=m9(n)),0===n.a&&0===n.b)return new Xh(NaN,0,n.l,n.opacity);var r=Math.atan2(n.b,n.a)*gq;return new Xh(r<0?r+360:r,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function Tq(n,r,e,i){return 1===arguments.length?rhe(n):new Xh(n,r,e,null==i?1:i)}function Xh(n,r,e,i){this.h=+n,this.c=+r,this.l=+e,this.opacity=+i}ow(dp,kq,cx(dg,{brighter:function(r){return new dp(this.l+18*(null==r?1:r),this.a,this.b,this.opacity)},darker:function(r){return new dp(this.l-18*(null==r?1:r),this.a,this.b,this.opacity)},rgb:function(){var r=(this.l+16)/116,e=isNaN(this.a)?r:r+this.a/500,i=isNaN(this.b)?r:r-this.b/200;return new nl(v9(3.1338561*(e=.96422*g9(e))-1.6168667*(r=1*g9(r))-.4906146*(i=.82521*g9(i))),v9(-.9787684*e+1.9161415*r+.033454*i),v9(.0719453*e-.2289914*r+1.4052427*i),this.opacity)}})),ow(Xh,Tq,cx(dg,{brighter:function(r){return new Xh(this.h,this.c,this.l+18*(null==r?1:r),this.opacity)},darker:function(r){return new Xh(this.h,this.c,this.l-18*(null==r?1:r),this.opacity)},rgb:function(){return m9(this).rgb()}}));var b9=1.78277,C9=-.29227,XL=-.90649,fx=1.97294,Sq=fx*XL,Eq=fx*b9,xq=b9*C9- -.14861*XL;function ihe(n){if(n instanceof o0)return new o0(n.h,n.s,n.l,n.opacity);n instanceof nl||(n=p9(n));var r=n.r/255,e=n.g/255,i=n.b/255,o=(xq*i+Sq*r-Eq*e)/(xq+Sq-Eq),a=i-o,s=(fx*(e-o)-C9*a)/XL,l=Math.sqrt(s*s+a*a)/(fx*o*(1-o)),u=l?Math.atan2(s,a)*gq-120:NaN;return new o0(u<0?u+360:u,l,o,n.opacity)}function Dq(n,r,e,i){return 1===arguments.length?ihe(n):new o0(n,r,e,null==i?1:i)}function o0(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}ow(o0,Dq,cx(dg,{brighter:function(r){return r=null==r?aw:Math.pow(aw,r),new o0(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new o0(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*_q,e=+this.l,i=isNaN(this.s)?0:this.s*e*(1-e),o=Math.cos(r),a=Math.sin(r);return new nl(255*(e+i*(-.14861*o+b9*a)),255*(e+i*(C9*o+XL*a)),255*(e+i*(fx*o)),this.opacity)}}));var Aq=Array.prototype.slice;function ahe(n,r){return n-r}function a0(n){return function(){return n}}function lhe(n,r){for(var o,e=-1,i=r.length;++ei!=Z>i&&e<(C-d)*(i-h)/(Z-h)+d&&(o=-o)}return o}function che(n,r,e){var i;return function dhe(n,r,e){return(r[0]-n[0])*(e[1]-n[1])==(e[0]-n[0])*(r[1]-n[1])}(n,r,e)&&function fhe(n,r,e){return n<=r&&r<=e||e<=r&&r<=n}(n[i=+(n[0]===r[0])],e[i],r[i])}function phe(){}var $h=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Oq(){var n=1,r=1,e=N7,i=u;function o(d){var h=e(d);if(Array.isArray(h))h=h.slice().sort(ahe);else{var g=I7(d),C=g[0],Z=g[1];h=Qy(C,Z,h),h=hc(Math.floor(C/h)*h,Math.floor(Z/h)*h,h)}return h.map(function(z){return a(d,z)})}function a(d,h){var g=[],C=[];return function s(d,h,g){var z,q,re,ae,Se,Ce,C=new Array,Z=new Array;for(z=q=-1,ae=d[0]>=h,$h[ae<<1].forEach(Ee);++z=h,$h[re|ae<<1].forEach(Ee);for($h[ae<<0].forEach(Ee);++q=h,Se=d[q*n]>=h,$h[ae<<1|Se<<2].forEach(Ee);++z=h,Ce=Se,Se=d[q*n+z+1]>=h,$h[re|ae<<1|Se<<2|Ce<<3].forEach(Ee);$h[ae|Se<<3].forEach(Ee)}for(z=-1,Se=d[q*n]>=h,$h[Se<<2].forEach(Ee);++z=h,$h[Se<<2|Ce<<3].forEach(Ee);function Ee(Ve){var bt,Xe,ut=[Ve[0][0]+z,Ve[0][1]+q],Ae=[Ve[1][0]+z,Ve[1][1]+q],ot=l(ut),ht=l(Ae);(bt=Z[ot])?(Xe=C[ht])?(delete Z[bt.end],delete C[Xe.start],bt===Xe?(bt.ring.push(Ae),g(bt.ring)):C[bt.start]=Z[Xe.end]={start:bt.start,end:Xe.end,ring:bt.ring.concat(Xe.ring)}):(delete Z[bt.end],bt.ring.push(Ae),Z[bt.end=ht]=bt):(bt=C[ht])?(Xe=Z[ot])?(delete C[bt.start],delete Z[Xe.end],bt===Xe?(bt.ring.push(Ae),g(bt.ring)):C[Xe.start]=Z[bt.end]={start:Xe.start,end:bt.end,ring:Xe.ring.concat(bt.ring)}):(delete C[bt.start],bt.ring.unshift(ut),C[bt.start=ot]=bt):C[ot]=Z[ht]={start:ot,end:ht,ring:[ut,Ae]}}$h[Se<<3].forEach(Ee)}(d,h,function(Z){i(Z,d,h),function she(n){for(var r=0,e=n.length,i=n[e-1][1]*n[0][0]-n[e-1][0]*n[0][1];++r0?g.push([Z]):C.push(Z)}),C.forEach(function(Z){for(var re,z=0,q=g.length;z0&&Z0&&z0&&g>0))throw new Error("invalid size");return n=h,r=g,o},o.thresholds=function(d){return arguments.length?(e="function"==typeof d?d:Array.isArray(d)?a0(Aq.call(d)):a0(d),o):e},o.smooth=function(d){return arguments.length?(i=d?u:phe,o):i===u},o}function w9(n,r,e){for(var i=n.width,o=n.height,a=1+(e<<1),s=0;s=e&&(l>=a&&(u-=n.data[l-a+s*i]),r.data[l-e+s*i]=u/Math.min(l+1,i-1+a-l,a))}function k9(n,r,e){for(var i=n.width,o=n.height,a=1+(e<<1),s=0;s=e&&(l>=a&&(u-=n.data[s+(l-a)*i]),r.data[s+(l-e)*i]=u/Math.min(l+1,o-1+a-l,a))}function hhe(n){return n[0]}function mhe(n){return n[1]}function _he(){var n=hhe,r=mhe,e=960,i=500,o=20,a=2,s=3*o,l=e+2*s>>a,u=i+2*s>>a,d=a0(20);function h(re){var ae=new Float32Array(l*u),Se=new Float32Array(l*u);re.forEach(function(Ve,ut,Ae){var ot=n(Ve,ut,Ae)+s>>a,ht=r(Ve,ut,Ae)+s>>a;ot>=0&&ot=0&&ht>a),k9({width:l,height:u,data:Se},{width:l,height:u,data:ae},o>>a),w9({width:l,height:u,data:ae},{width:l,height:u,data:Se},o>>a),k9({width:l,height:u,data:Se},{width:l,height:u,data:ae},o>>a),w9({width:l,height:u,data:ae},{width:l,height:u,data:Se},o>>a),k9({width:l,height:u,data:Se},{width:l,height:u,data:ae},o>>a);var Ce=d(ae);if(!Array.isArray(Ce)){var Ee=QY(ae);Ce=Qy(0,Ee,Ce),(Ce=hc(0,Math.floor(Ee/Ce)*Ce,Ce)).shift()}return Oq().thresholds(Ce).size([l,u])(ae).map(g)}function g(re){return re.value*=Math.pow(2,-2*a),re.coordinates.forEach(C),re}function C(re){re.forEach(Z)}function Z(re){re.forEach(z)}function z(re){re[0]=re[0]*Math.pow(2,a)-s,re[1]=re[1]*Math.pow(2,a)-s}function q(){return l=e+2*(s=3*o)>>a,u=i+2*s>>a,h}return h.x=function(re){return arguments.length?(n="function"==typeof re?re:a0(+re),h):n},h.y=function(re){return arguments.length?(r="function"==typeof re?re:a0(+re),h):r},h.size=function(re){if(!arguments.length)return[e,i];var ae=Math.ceil(re[0]),Se=Math.ceil(re[1]);if(!(ae>=0||ae>=0))throw new Error("invalid size");return e=ae,i=Se,q()},h.cellSize=function(re){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(re)/Math.LN2),q()},h.thresholds=function(re){return arguments.length?(d="function"==typeof re?re:Array.isArray(re)?a0(Aq.call(re)):a0(re),h):d},h.bandwidth=function(re){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((re=+re)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*re*re+1)-1)/2),q()},h}function T9(n,r,e){arguments.length<3&&(e=r,r=PK().changedTouches);for(var a,i=0,o=r?r.length:0;ig}o.mouse("drag")}function q(){vi(Zn.view).on("mousemove.drag mouseup.drag",null),DL(Zn.view,d),q1(),o.mouse("end")}function re(){if(n.apply(this,arguments)){var Ae,ot,Ee=Zn.changedTouches,Ve=r.apply(this,arguments),ut=Ee.length;for(Ae=0;Ae=C?re=!0:10===(ut=d.charCodeAt(Z++))?ae=!0:13===ut&&(ae=!0,10===d.charCodeAt(Z)&&++Z),d.slice(Ve+1,Ee-1).replace(/""/g,'"')}for(;Z=(g=(l+d)/2))?l=g:d=g,(re=e>=(C=(u+h)/2))?u=C:h=C,o=a,!(a=a[ae=re<<1|q]))return o[ae]=s,n;if(Z=+n._x.call(null,a.data),z=+n._y.call(null,a.data),r===Z&&e===z)return s.next=a,o?o[ae]=s:n._root=s,n;do{o=o?o[ae]=new Array(4):n._root=new Array(4),(q=r>=(g=(l+d)/2))?l=g:d=g,(re=e>=(C=(u+h)/2))?u=C:h=C}while((ae=re<<1|q)==(Se=(z>=C)<<1|Z>=g));return o[Se]=a,o[ae]=s,n}function tu(n,r,e,i,o){this.node=n,this.x0=r,this.y0=e,this.x1=i,this.y1=o}function mme(n){return n[0]}function gme(n){return n[1]}function rZ(n,r,e){var i=new L9(null==r?mme:r,null==e?gme:e,NaN,NaN,NaN,NaN);return null==n?i:i.addAll(n)}function L9(n,r,e,i,o,a){this._x=n,this._y=r,this._x0=e,this._y0=i,this._x1=o,this._y1=a,this._root=void 0}function zq(n){for(var r={data:n.data},e=r;n=n.next;)e=e.next={data:n.data};return r}var nu=rZ.prototype=L9.prototype;function yme(n){return n.x+n.vx}function bme(n){return n.y+n.vy}function Cme(n){var r,e,i=1,o=1;function a(){for(var u,h,g,C,Z,z,q,d=r.length,re=0;reC+ht||VeZ+ht||utg.index){var bt=C-Ae.x-Ae.vx,Xe=Z-Ae.y-Ae.vy,Pe=bt*bt+Xe*Xe;Peu.r&&(u.r=u[d].r)}function l(){if(r){var u,h,d=r.length;for(e=new Array(d),u=0;uh&&(h=o),ag&&(g=a));if(u>h||d>g)return this;for(this.cover(u,d).cover(h,g),e=0;en||n>=o||i>r||r>=a;)switch(d=(rh||(l=z.y0)>g||(u=z.x1)=ae)<<1|n>=re)&&(z=C[C.length-1],C[C.length-1]=C[C.length-1-q],C[C.length-1-q]=z)}else{var Se=n-+this._x.call(null,Z.data),Ce=r-+this._y.call(null,Z.data),Ee=Se*Se+Ce*Ce;if(Ee=(C=(s+u)/2))?s=C:u=C,(q=g>=(Z=(l+d)/2))?l=Z:d=Z,r=e,!(e=e[re=q<<1|z]))return this;if(!e.length)break;(r[re+1&3]||r[re+2&3]||r[re+3&3])&&(i=r,ae=re)}for(;e.data!==n;)if(o=e,!(e=e.next))return this;return(a=e.next)&&delete e.next,o?(a?o.next=a:delete o.next,this):r?(a?r[re]=a:delete r[re],(e=r[0]||r[1]||r[2]||r[3])&&e===(r[3]||r[2]||r[1]||r[0])&&!e.length&&(i?i[ae]=e:this._root=e),this):(this._root=a,this)},nu.removeAll=function cme(n){for(var r=0,e=n.length;r1?(null==re?l.remove(q):l.set(q,Z(re)),r):l.get(q)},find:function(q,re,ae){var Ee,Ve,ut,Ae,ot,Se=0,Ce=n.length;for(null==ae?ae=1/0:ae*=ae,Se=0;Se1?(d.on(q,re),r):d.on(q)}}}function Dme(){var n,r,e,o,i=bs(-30),a=1,s=1/0,l=.81;function u(C){var Z,z=n.length,q=rZ(n,Tme,Mme).visitAfter(h);for(e=C,Z=0;Z=s)){(C.data!==r||C.next)&&(0===re&&(Ce+=(re=hg())*re),0===ae&&(Ce+=(ae=hg())*ae),Ce1?i[0]+i.slice(2):i,+n.slice(e+1)]}function cw(n){return(n=iZ(Math.abs(n)))?n[1]:NaN}function Yq(n,r){var e=iZ(n,r);if(!e)return n+"";var i=e[0],o=e[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}var Kq={"":function Lme(n,r){e:for(var a,e=(n=n.toPrecision(r)).length,i=1,o=-1;i0&&(o=0)}return o>0?n.slice(0,o)+n.slice(a+1):n},"%":function(r,e){return(100*r).toFixed(e)},b:function(r){return Math.round(r).toString(2)},c:function(r){return r+""},d:function(r){return Math.round(r).toString(10)},e:function(r,e){return r.toExponential(e)},f:function(r,e){return r.toFixed(e)},g:function(r,e){return r.toPrecision(e)},o:function(r){return Math.round(r).toString(8)},p:function(r,e){return Yq(100*r,e)},r:Yq,s:function Zme(n,r){var e=iZ(n,r);if(!e)return n+"";var i=e[0],o=e[1],a=o-(Vq=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+new Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+iZ(n,Math.max(0,r+a-1))[0]},X:function(r){return Math.round(r).toString(16).toUpperCase()},x:function(r){return Math.round(r).toString(16)}},Nme=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function oZ(n){return new Z9(n)}function Z9(n){if(!(r=Nme.exec(n)))throw new Error("invalid format: "+n);var r,e=r[1]||" ",i=r[2]||">",o=r[3]||"-",a=r[4]||"",s=!!r[5],l=r[6]&&+r[6],u=!!r[7],d=r[8]&&+r[8].slice(1),h=r[9]||"";"n"===h?(u=!0,h="g"):Kq[h]||(h=""),(s||"0"===e&&"="===i)&&(s=!0,e="0",i="="),this.fill=e,this.align=i,this.sign=o,this.symbol=a,this.zero=s,this.width=l,this.comma=u,this.precision=d,this.type=h}function qq(n){return n}oZ.prototype=Z9.prototype,Z9.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var aZ,Xq,$q,Jq=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Qq(n){var r=n.grouping&&n.thousands?function Pme(n,r){return function(e,i){for(var o=e.length,a=[],s=0,l=n[0],u=0;o>0&&l>0&&(u+l+1>i&&(l=Math.max(1,i-u)),a.push(e.substring(o-=l,o+l)),!((u+=l+1)>i));)l=n[s=(s+1)%n.length];return a.reverse().join(r)}}(n.grouping,n.thousands):qq,e=n.currency,i=n.decimal,o=n.numerals?function Rme(n){return function(r){return r.replace(/[0-9]/g,function(e){return n[+e]})}}(n.numerals):qq,a=n.percent||"%";function s(u){var d=(u=oZ(u)).fill,h=u.align,g=u.sign,C=u.symbol,Z=u.zero,z=u.width,q=u.comma,re=u.precision,ae=u.type,Se="$"===C?e[0]:"#"===C&&/[boxX]/.test(ae)?"0"+ae.toLowerCase():"",Ce="$"===C?e[1]:/[%p]/.test(ae)?a:"",Ee=Kq[ae],Ve=!ae||/[defgprs%]/.test(ae);function ut(Ae){var bt,Xe,Pe,ot=Se,ht=Ce;if("c"===ae)ht=Ee(Ae)+ht,Ae="";else{var ft=(Ae=+Ae)<0;if(Ae=Ee(Math.abs(Ae),re),ft&&0==+Ae&&(ft=!1),ot=(ft?"("===g?g:"-":"-"===g||"("===g?"":g)+ot,ht=("s"===ae?Jq[8+Vq/3]:"")+ht+(ft&&"("===g?")":""),Ve)for(bt=-1,Xe=Ae.length;++bt(Pe=Ae.charCodeAt(bt))||Pe>57){ht=(46===Pe?i+Ae.slice(bt+1):Ae.slice(bt))+ht,Ae=Ae.slice(0,bt);break}}q&&!Z&&(Ae=r(Ae,1/0));var Nt=ot.length+Ae.length+ht.length,Gt=Nt>1)+ot+Ae+ht+Gt.slice(Nt);break;default:Ae=Gt+ot+Ae+ht}return o(Ae)}return re=null==re?ae?6:12:/[gprs]/.test(ae)?Math.max(1,Math.min(21,re)):Math.max(0,Math.min(20,re)),ut.toString=function(){return u+""},ut}return{format:s,formatPrefix:function l(u,d){var h=s(((u=oZ(u)).type="f",u)),g=3*Math.max(-8,Math.min(8,Math.floor(cw(d)/3))),C=Math.pow(10,-g),Z=Jq[8+g/3];return function(z){return h(C*z)+Z}}}}function eJ(n){return aZ=Qq(n),Xq=aZ.format,$q=aZ.formatPrefix,aZ}function Bme(n){return Math.max(0,-cw(Math.abs(n)))}function Fme(n,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(cw(r)/3)))-cw(Math.abs(n)))}function Ume(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,cw(r)-cw(n))+1}function mg(){return new sZ}function sZ(){this.reset()}eJ({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),sZ.prototype={constructor:sZ,reset:function(){this.s=this.t=0},add:function(r){tJ(lZ,r,this.t),tJ(this,lZ.s,this.s),this.s?this.t+=lZ.t:this.s=lZ.t},valueOf:function(){return this.s}};var lZ=new sZ;function tJ(n,r,e){var i=n.s=r+e,o=i-r,a=i-o;n.t=r-a+(e-o)}var Er=1e-6,Pi=Math.PI,xa=Pi/2,uZ=Pi/4,Ru=2*Pi,zo=180/Pi,Rr=Pi/180,no=Math.abs,dw=Math.atan,ru=Math.atan2,xr=Math.cos,cZ=Math.ceil,rJ=Math.exp,dZ=(Math.floor,Math.log),N9=Math.pow,mr=Math.sin,mx=Math.sign||function(n){return n>0?1:n<0?-1:0},Cs=Math.sqrt,B9=Math.tan;function iJ(n){return n>1?0:n<-1?Pi:Math.acos(n)}function _c(n){return n>1?xa:n<-1?-xa:Math.asin(n)}function oJ(n){return(n=mr(n/2))*n}function ma(){}function fZ(n,r){n&&sJ.hasOwnProperty(n.type)&&sJ[n.type](n,r)}var aJ={Feature:function(r,e){fZ(r.geometry,e)},FeatureCollection:function(r,e){for(var i=r.features,o=-1,a=i.length;++o=0?1:-1,o=i*e,a=xr(r=(r*=Rr)/2+uZ),s=mr(r),l=j9*s,u=H9*a+l*xr(o),d=l*i*mr(o);pZ.add(ru(d,u)),U9=n,H9=a,j9=s}function zme(n){return hZ.reset(),Qd(n,fp),2*hZ}function mZ(n){return[ru(n[1],n[0]),_c(n[2])]}function s0(n){var r=n[0],e=n[1],i=xr(e);return[i*xr(r),i*mr(r),mr(e)]}function _Z(n,r){return n[0]*r[0]+n[1]*r[1]+n[2]*r[2]}function fw(n,r){return[n[1]*r[2]-n[2]*r[1],n[2]*r[0]-n[0]*r[2],n[0]*r[1]-n[1]*r[0]]}function G9(n,r){n[0]+=r[0],n[1]+=r[1],n[2]+=r[2]}function gZ(n,r){return[n[0]*r,n[1]*r,n[2]*r]}function vZ(n){var r=Cs(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=r,n[1]/=r,n[2]/=r}var Da,gc,za,qc,l0,fJ,pJ,pw,_g,em,_x=mg(),tm={point:z9,lineStart:mJ,lineEnd:_J,polygonStart:function(){tm.point=gJ,tm.lineStart=Wme,tm.lineEnd=Vme,_x.reset(),fp.polygonStart()},polygonEnd:function(){fp.polygonEnd(),tm.point=z9,tm.lineStart=mJ,tm.lineEnd=_J,pZ<0?(Da=-(za=180),gc=-(qc=90)):_x>Er?qc=90:_x<-Er&&(gc=-90),em[0]=Da,em[1]=za}};function z9(n,r){_g.push(em=[Da=n,za=n]),rqc&&(qc=r)}function hJ(n,r){var e=s0([n*Rr,r*Rr]);if(pw){var i=fw(pw,e),a=fw([i[1],-i[0],0],i);vZ(a),a=mZ(a);var d,s=n-l0,l=s>0?1:-1,u=a[0]*zo*l,h=no(s)>180;h^(l*l0qc&&(qc=d):h^(l*l0<(u=(u+360)%360-180)&&uqc&&(qc=r)),h?nvc(Da,za)&&(za=n):vc(n,za)>vc(Da,za)&&(Da=n):za>=Da?(nza&&(za=n)):n>l0?vc(Da,n)>vc(Da,za)&&(za=n):vc(n,za)>vc(Da,za)&&(Da=n)}else _g.push(em=[Da=n,za=n]);rqc&&(qc=r),pw=e,l0=n}function mJ(){tm.point=hJ}function _J(){em[0]=Da,em[1]=za,tm.point=z9,pw=null}function gJ(n,r){if(pw){var e=n-l0;_x.add(no(e)>180?e+(e>0?360:-360):e)}else fJ=n,pJ=r;fp.point(n,r),hJ(n,r)}function Wme(){fp.lineStart()}function Vme(){gJ(fJ,pJ),fp.lineEnd(),no(_x)>Er&&(Da=-(za=180)),em[0]=Da,em[1]=za,pw=null}function vc(n,r){return(r-=n)<0?r+360:r}function Yme(n,r){return n[0]-r[0]}function vJ(n,r){return n[0]<=n[1]?n[0]<=r&&r<=n[1]:rvc(i[0],i[1])&&(i[1]=o[1]),vc(o[0],i[1])>vc(i[0],i[1])&&(i[0]=o[0])):a.push(i=o);for(s=-1/0,r=0,i=a[e=a.length-1];r<=e;i=o,++r)o=a[r],(l=vc(i[1],o[0]))>s&&(s=l,Da=o[0],za=i[1])}return _g=em=null,Da===1/0||gc===1/0?[[NaN,NaN],[NaN,NaN]]:[[Da,gc],[za,qc]]}var gx,yZ,bZ,CZ,wZ,kZ,TZ,MZ,W9,V9,Y9,yJ,bJ,iu,ou,au,Xd={sphere:ma,point:K9,lineStart:CJ,lineEnd:wJ,polygonStart:function(){Xd.lineStart=Qme,Xd.lineEnd=Xme},polygonEnd:function(){Xd.lineStart=CJ,Xd.lineEnd=wJ}};function K9(n,r){n*=Rr;var e=xr(r*=Rr);vx(e*xr(n),e*mr(n),mr(r))}function vx(n,r,e){++gx,bZ+=(n-bZ)/gx,CZ+=(r-CZ)/gx,wZ+=(e-wZ)/gx}function CJ(){Xd.point=qme}function qme(n,r){n*=Rr;var e=xr(r*=Rr);iu=e*xr(n),ou=e*mr(n),au=mr(r),Xd.point=Jme,vx(iu,ou,au)}function Jme(n,r){n*=Rr;var e=xr(r*=Rr),i=e*xr(n),o=e*mr(n),a=mr(r),s=ru(Cs((s=ou*a-au*o)*s+(s=au*i-iu*a)*s+(s=iu*o-ou*i)*s),iu*i+ou*o+au*a);yZ+=s,kZ+=s*(iu+(iu=i)),TZ+=s*(ou+(ou=o)),MZ+=s*(au+(au=a)),vx(iu,ou,au)}function wJ(){Xd.point=K9}function Qme(){Xd.point=$me}function Xme(){kJ(yJ,bJ),Xd.point=K9}function $me(n,r){yJ=n,bJ=r,n*=Rr,r*=Rr,Xd.point=kJ;var e=xr(r);iu=e*xr(n),ou=e*mr(n),au=mr(r),vx(iu,ou,au)}function kJ(n,r){n*=Rr;var e=xr(r*=Rr),i=e*xr(n),o=e*mr(n),a=mr(r),s=ou*a-au*o,l=au*i-iu*a,u=iu*o-ou*i,d=Cs(s*s+l*l+u*u),h=_c(d),g=d&&-h/d;W9+=g*s,V9+=g*l,Y9+=g*u,yZ+=h,kZ+=h*(iu+(iu=i)),TZ+=h*(ou+(ou=o)),MZ+=h*(au+(au=a)),vx(iu,ou,au)}function e_e(n){gx=yZ=bZ=CZ=wZ=kZ=TZ=MZ=W9=V9=Y9=0,Qd(n,Xd);var r=W9,e=V9,i=Y9,o=r*r+e*e+i*i;return o<1e-12&&(r=kZ,e=TZ,i=MZ,yZPi?n-Ru:n<-Pi?n+Ru:n,r]}function Q9(n,r,e){return(n%=Ru)?r||e?q9(MJ(n),SJ(r,e)):MJ(n):r||e?SJ(r,e):J9}function TJ(n){return function(r,e){return[(r+=n)>Pi?r-Ru:r<-Pi?r+Ru:r,e]}}function MJ(n){var r=TJ(n);return r.invert=TJ(-n),r}function SJ(n,r){var e=xr(n),i=mr(n),o=xr(r),a=mr(r);function s(l,u){var d=xr(u),h=xr(l)*d,g=mr(l)*d,C=mr(u),Z=C*e+h*i;return[ru(g*o-Z*a,h*e-C*i),_c(Z*o+g*a)]}return s.invert=function(l,u){var d=xr(u),h=xr(l)*d,g=mr(l)*d,C=mr(u),Z=C*o-g*a;return[ru(g*o+C*a,h*e+Z*i),_c(Z*e-h*i)]},s}function EJ(n){function r(e){return(e=n(e[0]*Rr,e[1]*Rr))[0]*=zo,e[1]*=zo,e}return n=Q9(n[0]*Rr,n[1]*Rr,n.length>2?n[2]*Rr:0),r.invert=function(e){return(e=n.invert(e[0]*Rr,e[1]*Rr))[0]*=zo,e[1]*=zo,e},r}function xJ(n,r,e,i,o,a){if(e){var s=xr(r),l=mr(r),u=i*e;null==o?(o=r+i*Ru,a=r-u/2):(o=DJ(s,o),a=DJ(s,a),(i>0?oa)&&(o+=i*Ru));for(var d,h=o;i>0?h>a:h1&&n.push(n.pop().concat(n.shift()))},result:function(){var i=n;return n=[],r=null,i}}}function SZ(n,r){return no(n[0]-r[0])=0;--l)o.point((g=h[l])[0],g[1]);else i(C.x,C.p.x,-1,o);C=C.p}h=(C=C.o).z,Z=!Z}while(!C.v);o.lineEnd()}}}function IJ(n){if(r=n.length){for(var r,o,e=0,i=n[0];++e=0?1:-1,ht=ot*Ae,bt=ht>Pi,Xe=q*Ve;if(X9.add(ru(Xe*ot*mr(ht),re*ut+Xe*xr(ht))),s+=bt?Ae+ot*Ru:Ae,bt^Z>=e^Ce>=e){var Pe=fw(s0(C),s0(Se));vZ(Pe);var ft=fw(a,Pe);vZ(ft);var Nt=(bt^Ae>=0?-1:1)*_c(ft[2]);(i>Nt||i===Nt&&(Pe[0]||Pe[1]))&&(l+=bt^Ae>=0?1:-1)}}return(s<-Er||s0){for(u||(o.polygonStart(),u=!0),o.lineStart(),ut=0;ut1&&2&Ee&&Ve.push(Ve.pop().concat(Ve.shift())),h.push(Ve.filter(n_e))}}return C}}function n_e(n){return n.length>1}function r_e(n,r){return((n=n.x)[0]<0?n[1]-xa-Er:xa-n[1])-((r=r.x)[0]<0?r[1]-xa-Er:xa-r[1])}var $9=RJ(function(){return!0},function i_e(n){var o,r=NaN,e=NaN,i=NaN;return{lineStart:function(){n.lineStart(),o=1},point:function(s,l){var u=s>0?Pi:-Pi,d=no(s-r);no(d-Pi)0?xa:-xa),n.point(i,e),n.lineEnd(),n.lineStart(),n.point(u,e),n.point(s,e),o=0):i!==u&&d>=Pi&&(no(r-i)Er?dw((mr(r)*(a=xr(i))*mr(e)-mr(i)*(o=xr(r))*mr(n))/(o*a*s)):(r+i)/2}(r,e,s,l),n.point(i,e),n.lineEnd(),n.lineStart(),n.point(u,e),o=0),n.point(r=s,e=l),i=u},lineEnd:function(){n.lineEnd(),r=e=NaN},clean:function(){return 2-o}}},function a_e(n,r,e,i){var o;if(null==n)o=e*xa,i.point(-Pi,o),i.point(0,o),i.point(Pi,o),i.point(Pi,0),i.point(Pi,-o),i.point(0,-o),i.point(-Pi,-o),i.point(-Pi,0),i.point(-Pi,o);else if(no(n[0]-r[0])>Er){var a=n[0]0,o=no(r)>Er;function s(h,g){return xr(h)*xr(g)>r}function u(h,g,C){var q=[1,0,0],re=fw(s0(h),s0(g)),ae=_Z(re,re),Se=re[0],Ce=ae-Se*Se;if(!Ce)return!C&&h;var Ee=r*ae/Ce,Ve=-r*Se/Ce,ut=fw(q,re),Ae=gZ(q,Ee);G9(Ae,gZ(re,Ve));var ht=ut,bt=_Z(Ae,ht),Xe=_Z(ht,ht),Pe=bt*bt-Xe*(_Z(Ae,Ae)-1);if(!(Pe<0)){var ft=Cs(Pe),Nt=gZ(ht,(-bt-ft)/Xe);if(G9(Nt,Ae),Nt=mZ(Nt),!C)return Nt;var zn,Gt=h[0],It=g[0],Tn=h[1],jn=g[1];It0^Nt[1]<(no(Nt[0]-Gt)Pi^(Gt<=Nt[0]&&Nt[0]<=It)){var zr=gZ(ht,(-bt+ft)/Xe);return G9(zr,Ae),[Nt,mZ(zr)]}}}function d(h,g){var C=i?n:Pi-n,Z=0;return h<-C?Z|=1:h>C&&(Z|=2),g<-C?Z|=4:g>C&&(Z|=8),Z}return RJ(s,function l(h){var g,C,Z,z,q;return{lineStart:function(){z=Z=!1,q=1},point:function(ae,Se){var Ee,Ce=[ae,Se],Ve=s(ae,Se),ut=i?Ve?0:d(ae,Se):Ve?d(ae+(ae<0?Pi:-Pi),Se):0;if(!g&&(z=Z=Ve)&&h.lineStart(),Ve!==Z&&((!(Ee=u(g,Ce))||SZ(g,Ee)||SZ(Ce,Ee))&&(Ce[0]+=Er,Ce[1]+=Er,Ve=s(Ce[0],Ce[1]))),Ve!==Z)q=0,Ve?(h.lineStart(),Ee=u(Ce,g),h.point(Ee[0],Ee[1])):(Ee=u(g,Ce),h.point(Ee[0],Ee[1]),h.lineEnd()),g=Ee;else if(o&&g&&i^Ve){var Ae;!(ut&C)&&(Ae=u(Ce,g,!0))&&(q=0,i?(h.lineStart(),h.point(Ae[0][0],Ae[0][1]),h.point(Ae[1][0],Ae[1][1]),h.lineEnd()):(h.point(Ae[1][0],Ae[1][1]),h.lineEnd(),h.lineStart(),h.point(Ae[0][0],Ae[0][1])))}Ve&&(!g||!SZ(g,Ce))&&h.point(Ce[0],Ce[1]),g=Ce,Z=Ve,C=ut},lineEnd:function(){Z&&h.lineEnd(),g=null},clean:function(){return q|(z&&Z)<<1}}},function a(h,g,C,Z){xJ(Z,n,e,C,h,g)},i?[0,-n]:[-Pi,n-Pi])}var yx=1e9,xZ=-yx;function DZ(n,r,e,i){function o(d,h){return n<=d&&d<=e&&r<=h&&h<=i}function a(d,h,g,C){var Z=0,z=0;if(null==d||(Z=s(d,g))!==(z=s(h,g))||u(d,h)<0^g>0)do{C.point(0===Z||3===Z?n:e,Z>1?i:r)}while((Z=(Z+g+4)%4)!==z);else C.point(h[0],h[1])}function s(d,h){return no(d[0]-n)0?0:3:no(d[0]-e)0?2:1:no(d[1]-r)0?1:0:h>0?3:2}function l(d,h){return u(d.x,h.x)}function u(d,h){var g=s(d,1),C=s(h,1);return g!==C?g-C:0===g?h[1]-d[1]:1===g?d[0]-h[0]:2===g?d[1]-h[1]:h[0]-d[0]}return function(d){var C,Z,z,q,re,ae,Se,Ce,Ee,Ve,ut,h=d,g=AJ(),Ae={point:ot,lineStart:function Pe(){Ae.point=Nt,Z&&Z.push(z=[]),Ve=!0,Ee=!1,Se=Ce=NaN},lineEnd:function ft(){C&&(Nt(q,re),ae&&Ee&&g.rejoin(),C.push(g.result())),Ae.point=ot,Ee&&h.lineEnd()},polygonStart:function bt(){h=g,C=[],Z=[],ut=!0},polygonEnd:function Xe(){var Gt=function ht(){for(var Gt=0,It=0,Tn=Z.length;Iti&&(Ur-_r)*(i-zr)>(Kr-zr)*(n-_r)&&++Gt:Kr<=i&&(Ur-_r)*(i-zr)<(Kr-zr)*(n-_r)&&--Gt;return Gt}(),It=ut&&Gt,Tn=(C=B7(C)).length;(It||Tn)&&(d.polygonStart(),It&&(d.lineStart(),a(null,null,1,d),d.lineEnd()),Tn&&OJ(C,l,Gt,a,d),d.polygonEnd()),h=d,C=Z=z=null}};function ot(Gt,It){o(Gt,It)&&h.point(Gt,It)}function Nt(Gt,It){var Tn=o(Gt,It);if(Z&&z.push([Gt,It]),Ve)q=Gt,re=It,ae=Tn,Ve=!1,Tn&&(h.lineStart(),h.point(Gt,It));else if(Tn&&Ee)h.point(Gt,It);else{var jn=[Se=Math.max(xZ,Math.min(yx,Se)),Ce=Math.max(xZ,Math.min(yx,Ce))],zn=[Gt=Math.max(xZ,Math.min(yx,Gt)),It=Math.max(xZ,Math.min(yx,It))];!function s_e(n,r,e,i,o,a){var z,s=n[0],l=n[1],h=0,g=1,C=r[0]-s,Z=r[1]-l;if(z=e-s,C||!(z>0)){if(z/=C,C<0){if(z0){if(z>g)return;z>h&&(h=z)}if(z=o-s,C||!(z<0)){if(z/=C,C<0){if(z>g)return;z>h&&(h=z)}else if(C>0){if(z0)){if(z/=Z,Z<0){if(z0){if(z>g)return;z>h&&(h=z)}if(z=a-l,Z||!(z<0)){if(z/=Z,Z<0){if(z>g)return;z>h&&(h=z)}else if(Z>0){if(z0&&(n[0]=s+h*C,n[1]=l+h*Z),g<1&&(r[0]=s+g*C,r[1]=l+g*Z),!0}}}}}(jn,zn,n,r,e,i)?Tn&&(h.lineStart(),h.point(Gt,It),ut=!1):(Ee||(h.lineStart(),h.point(jn[0],jn[1])),h.point(zn[0],zn[1]),Tn||h.lineEnd(),ut=!1)}Se=Gt,Ce=It,Ee=Tn}return Ae}}function l_e(){var o,a,s,n=0,r=0,e=960,i=500;return s={stream:function(u){return o&&a===u?o:o=DZ(n,r,e,i)(a=u)},extent:function(u){return arguments.length?(n=+u[0][0],r=+u[0][1],e=+u[1][0],i=+u[1][1],o=a=null,s):[[n,r],[e,i]]}}}var tH,AZ,OZ,eH=mg(),mw={sphere:ma,point:ma,lineStart:function u_e(){mw.point=d_e,mw.lineEnd=c_e},lineEnd:ma,polygonStart:ma,polygonEnd:ma};function c_e(){mw.point=mw.lineEnd=ma}function d_e(n,r){tH=n*=Rr,AZ=mr(r*=Rr),OZ=xr(r),mw.point=f_e}function f_e(n,r){n*=Rr;var e=mr(r*=Rr),i=xr(r),o=no(n-tH),a=xr(o),l=i*mr(o),u=OZ*e-AZ*i*a,d=AZ*e+OZ*i*a;eH.add(ru(Cs(l*l+u*u),d)),tH=n,AZ=e,OZ=i}function ZJ(n){return eH.reset(),Qd(n,mw),+eH}var nH=[null,null],p_e={type:"LineString",coordinates:nH};function bx(n,r){return nH[0]=n,nH[1]=r,ZJ(p_e)}var NJ={Feature:function(r,e){return IZ(r.geometry,e)},FeatureCollection:function(r,e){for(var i=r.features,o=-1,a=i.length;++oEr}).map(C)).concat(hc(cZ(a/d)*d,o,d).filter(function(Ce){return no(Ce%g)>Er}).map(Z))}return ae.lines=function(){return Se().map(function(Ce){return{type:"LineString",coordinates:Ce}})},ae.outline=function(){return{type:"Polygon",coordinates:[z(i).concat(q(s).slice(1),z(e).reverse().slice(1),q(l).reverse().slice(1))]}},ae.extent=function(Ce){return arguments.length?ae.extentMajor(Ce).extentMinor(Ce):ae.extentMinor()},ae.extentMajor=function(Ce){return arguments.length?(i=+Ce[0][0],e=+Ce[1][0],l=+Ce[0][1],s=+Ce[1][1],i>e&&(Ce=i,i=e,e=Ce),l>s&&(Ce=l,l=s,s=Ce),ae.precision(re)):[[i,l],[e,s]]},ae.extentMinor=function(Ce){return arguments.length?(r=+Ce[0][0],n=+Ce[1][0],a=+Ce[0][1],o=+Ce[1][1],r>n&&(Ce=r,r=n,n=Ce),a>o&&(Ce=a,a=o,o=Ce),ae.precision(re)):[[r,a],[n,o]]},ae.step=function(Ce){return arguments.length?ae.stepMajor(Ce).stepMinor(Ce):ae.stepMinor()},ae.stepMajor=function(Ce){return arguments.length?(h=+Ce[0],g=+Ce[1],ae):[h,g]},ae.stepMinor=function(Ce){return arguments.length?(u=+Ce[0],d=+Ce[1],ae):[u,d]},ae.precision=function(Ce){return arguments.length?(re=+Ce,C=GJ(a,o,90),Z=zJ(r,n,re),z=GJ(l,s,90),q=zJ(i,e,re),ae):re},ae.extentMajor([[-180,-90+Er],[180,90-Er]]).extentMinor([[-180,-80-Er],[180,80+Er]])}function __e(){return WJ()()}function g_e(n,r){var e=n[0]*Rr,i=n[1]*Rr,o=r[0]*Rr,a=r[1]*Rr,s=xr(i),l=mr(i),u=xr(a),d=mr(a),h=s*xr(e),g=s*mr(e),C=u*xr(o),Z=u*mr(o),z=2*_c(Cs(oJ(a-i)+s*u*oJ(o-e))),q=mr(z),re=z?function(ae){var Se=mr(ae*=z)/q,Ce=mr(z-ae)/q,Ee=Ce*h+Se*C,Ve=Ce*g+Se*Z,ut=Ce*l+Se*d;return[ru(Ve,Ee)*zo,ru(ut,Cs(Ee*Ee+Ve*Ve))*zo]}:function(){return[e*zo,i*zo]};return re.distance=z,re}function u0(n){return n}var VJ,YJ,oH,aH,rH=mg(),iH=mg(),gg={point:ma,lineStart:ma,lineEnd:ma,polygonStart:function(){gg.lineStart=v_e,gg.lineEnd=b_e},polygonEnd:function(){gg.lineStart=gg.lineEnd=gg.point=ma,rH.add(no(iH)),iH.reset()},result:function(){var r=rH/2;return rH.reset(),r}};function v_e(){gg.point=y_e}function y_e(n,r){gg.point=KJ,VJ=oH=n,YJ=aH=r}function KJ(n,r){iH.add(aH*n-oH*r),oH=n,aH=r}function b_e(){KJ(VJ,YJ)}var qJ=gg,_w=1/0,PZ=_w,Cx=-_w,RZ=Cx,C_e={point:function w_e(n,r){n<_w&&(_w=n),n>Cx&&(Cx=n),rRZ&&(RZ=r)},lineStart:ma,lineEnd:ma,polygonStart:ma,polygonEnd:ma,result:function(){var r=[[_w,PZ],[Cx,RZ]];return Cx=RZ=-(PZ=_w=1/0),r}};var JJ,QJ,pp,hp,LZ=C_e,sH=0,lH=0,wx=0,ZZ=0,NZ=0,gw=0,uH=0,cH=0,kx=0,$d={point:c0,lineStart:XJ,lineEnd:$J,polygonStart:function(){$d.lineStart=M_e,$d.lineEnd=S_e},polygonEnd:function(){$d.point=c0,$d.lineStart=XJ,$d.lineEnd=$J},result:function(){var r=kx?[uH/kx,cH/kx]:gw?[ZZ/gw,NZ/gw]:wx?[sH/wx,lH/wx]:[NaN,NaN];return sH=lH=wx=ZZ=NZ=gw=uH=cH=kx=0,r}};function c0(n,r){sH+=n,lH+=r,++wx}function XJ(){$d.point=k_e}function k_e(n,r){$d.point=T_e,c0(pp=n,hp=r)}function T_e(n,r){var e=n-pp,i=r-hp,o=Cs(e*e+i*i);ZZ+=o*(pp+n)/2,NZ+=o*(hp+r)/2,gw+=o,c0(pp=n,hp=r)}function $J(){$d.point=c0}function M_e(){$d.point=E_e}function S_e(){eQ(JJ,QJ)}function E_e(n,r){$d.point=eQ,c0(JJ=pp=n,QJ=hp=r)}function eQ(n,r){var e=n-pp,i=r-hp,o=Cs(e*e+i*i);ZZ+=o*(pp+n)/2,NZ+=o*(hp+r)/2,gw+=o,uH+=(o=hp*n-pp*r)*(pp+n),cH+=o*(hp+r),kx+=3*o,c0(pp=n,hp=r)}var tQ=$d;function nQ(n){this._context=n}nQ.prototype={_radius:4.5,pointRadius:function(r){return this._radius=r,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(r,e){switch(this._point){case 0:this._context.moveTo(r,e),this._point=1;break;case 1:this._context.lineTo(r,e);break;default:this._context.moveTo(r+this._radius,e),this._context.arc(r,e,this._radius,0,Ru)}},result:ma};var fH,rQ,iQ,Tx,Mx,dH=mg(),BZ={point:ma,lineStart:function(){BZ.point=x_e},lineEnd:function(){fH&&oQ(rQ,iQ),BZ.point=ma},polygonStart:function(){fH=!0},polygonEnd:function(){fH=null},result:function(){var r=+dH;return dH.reset(),r}};function x_e(n,r){BZ.point=oQ,rQ=Tx=n,iQ=Mx=r}function oQ(n,r){Tx-=n,Mx-=r,dH.add(Cs(Tx*Tx+Mx*Mx)),Tx=n,Mx=r}var aQ=BZ;function sQ(){this._string=[]}function lQ(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function D_e(n,r){var i,o,e=4.5;function a(s){return s&&("function"==typeof e&&o.pointRadius(+e.apply(this,arguments)),Qd(s,i(o))),o.result()}return a.area=function(s){return Qd(s,i(qJ)),qJ.result()},a.measure=function(s){return Qd(s,i(aQ)),aQ.result()},a.bounds=function(s){return Qd(s,i(LZ)),LZ.result()},a.centroid=function(s){return Qd(s,i(tQ)),tQ.result()},a.projection=function(s){return arguments.length?(i=null==s?(n=null,u0):(n=s).stream,a):n},a.context=function(s){return arguments.length?(o=null==s?(r=null,new sQ):new nQ(r=s),"function"!=typeof e&&o.pointRadius(e),a):r},a.pointRadius=function(s){return arguments.length?(e="function"==typeof s?s:(o.pointRadius(+s),+s),a):e},a.projection(n).context(r)}function A_e(n){return{stream:Sx(n)}}function Sx(n){return function(r){var e=new pH;for(var i in n)e[i]=n[i];return e.stream=r,e}}function pH(){}function hH(n,r,e){var i=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),null!=i&&n.clipExtent(null),Qd(e,n.stream(LZ)),r(LZ.result()),null!=i&&n.clipExtent(i),n}function FZ(n,r,e){return hH(n,function(i){var o=r[1][0]-r[0][0],a=r[1][1]-r[0][1],s=Math.min(o/(i[1][0]-i[0][0]),a/(i[1][1]-i[0][1])),l=+r[0][0]+(o-s*(i[1][0]+i[0][0]))/2,u=+r[0][1]+(a-s*(i[1][1]+i[0][1]))/2;n.scale(150*s).translate([l,u])},e)}function mH(n,r,e){return FZ(n,[[0,0],r],e)}function _H(n,r,e){return hH(n,function(i){var o=+r,a=o/(i[1][0]-i[0][0]),s=(o-a*(i[1][0]+i[0][0]))/2,l=-a*i[0][1];n.scale(150*a).translate([s,l])},e)}function gH(n,r,e){return hH(n,function(i){var o=+r,a=o/(i[1][1]-i[0][1]),s=-a*i[0][0],l=(o-a*(i[1][1]+i[0][1]))/2;n.scale(150*a).translate([s,l])},e)}sQ.prototype={_radius:4.5,_circle:lQ(4.5),pointRadius:function(r){return(r=+r)!==this._radius&&(this._radius=r,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(r,e){switch(this._point){case 0:this._string.push("M",r,",",e),this._point=1;break;case 1:this._string.push("L",r,",",e);break;default:null==this._circle&&(this._circle=lQ(this._radius)),this._string.push("M",r,",",e,this._circle)}},result:function(){if(this._string.length){var r=this._string.join("");return this._string=[],r}return null}},pH.prototype={constructor:pH,point:function(r,e){this.stream.point(r,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var O_e=xr(30*Rr);function cQ(n,r){return+r?function P_e(n,r){function e(i,o,a,s,l,u,d,h,g,C,Z,z,q,re){var ae=d-i,Se=h-o,Ce=ae*ae+Se*Se;if(Ce>4*r&&q--){var Ee=s+C,Ve=l+Z,ut=u+z,Ae=Cs(Ee*Ee+Ve*Ve+ut*ut),ot=_c(ut/=Ae),ht=no(no(ut)-1)r||no((ae*ft+Se*Nt)/Ce-.5)>.3||s*C+l*Z+u*z2?ft[2]%360*Rr:0,Xe()):[l*zo,u*zo,d*zo]},ht.angle=function(ft){return arguments.length?(g=ft%360*Rr,Xe()):g*zo},ht.precision=function(ft){return arguments.length?(Ee=cQ(Ve,Ce=ft*ft),Pe()):Cs(Ce)},ht.fitExtent=function(ft,Nt){return FZ(ht,ft,Nt)},ht.fitSize=function(ft,Nt){return mH(ht,ft,Nt)},ht.fitWidth=function(ft,Nt){return _H(ht,ft,Nt)},ht.fitHeight=function(ft,Nt){return gH(ht,ft,Nt)},function(){return r=n.apply(this,arguments),ht.invert=r.invert&&bt,Xe()}}function yH(n){var r=0,e=Pi/3,i=vH(n),o=i(r,e);return o.parallels=function(a){return arguments.length?i(r=a[0]*Rr,e=a[1]*Rr):[r*zo,e*zo]},o}function fQ(n,r){var e=mr(n),i=(e+mr(r))/2;if(no(i)=.12&&re<.234&&q>=-.425&&q<-.214?o:re>=.166&&re<.234&&q>=-.214&&q<-.115?s:e).invert(C)},h.stream=function(C){return n&&r===C?n:n=function B_e(n){var r=n.length;return{point:function(i,o){for(var a=-1;++a0?l<-xa+Er&&(l=-xa+Er):l>xa-Er&&(l=xa-Er);var u=o/N9(HZ(l),i);return[u*mr(i*s),o-u*xr(i*s)]}return a.invert=function(s,l){var u=o-l,d=mx(i)*Cs(s*s+u*u);return[ru(s,no(u))/i*mx(u),2*dw(N9(o/d,1/i))-xa]},a}function G_e(){return yH(_Q).scale(109.5).parallels([30,30])}function Dx(n,r){return[n,r]}function z_e(){return nm(Dx).scale(152.63)}function gQ(n,r){var e=xr(n),i=n===r?mr(n):(e-xr(r))/(r-n),o=e/i+n;if(no(i)2?i[2]+90:90]):[(i=e())[0],i[1],i[2]-90]},e([0,0,90]).scale(159.155)}function X_e(n,r){return n.parent===r.parent?1:2}function ege(n,r){return n+r.x}function nge(n,r){return Math.max(n,r.y)}function oge(){var n=X_e,r=1,e=1,i=!1;function o(a){var s,l=0;a.eachAfter(function(C){var Z=C.children;Z?(C.x=function $_e(n){return n.reduce(ege,0)/n.length}(Z),C.y=function tge(n){return 1+n.reduce(nge,0)}(Z)):(C.x=s?l+=n(C,s):0,C.y=0,s=C)});var u=function rge(n){for(var r;r=n.children;)n=r[0];return n}(a),d=function ige(n){for(var r;r=n.children;)n=r[r.length-1];return n}(a),h=u.x-n(u,d)/2,g=d.x+n(d,u)/2;return a.eachAfter(i?function(C){C.x=(C.x-a.x)*r,C.y=(a.y-C.y)*e}:function(C){C.x=(C.x-h)/(g-h)*r,C.y=(1-(a.y?C.y/a.y:1))*e})}return o.separation=function(a){return arguments.length?(n=a,o):n},o.size=function(a){return arguments.length?(i=!1,r=+a[0],e=+a[1],o):i?null:[r,e]},o.nodeSize=function(a){return arguments.length?(i=!0,r=+a[0],e=+a[1],o):i?[r,e]:null},o}function age(n){var r=0,e=n.children,i=e&&e.length;if(i)for(;--i>=0;)r+=e[i].value;else r=1;n.value=r}function EH(n,r){var o,s,l,u,d,e=new vw(n),i=+n.value&&(e.value=n.value),a=[e];for(null==r&&(r=bge);o=a.pop();)if(i&&(o.value=+o.data.value),(l=r(o.data))&&(d=l.length))for(o.children=new Array(d),u=d-1;u>=0;--u)a.push(s=o.children[u]=new vw(l[u])),s.parent=o,s.depth=o.depth+1;return e.eachBefore(vQ)}function bge(n){return n.children}function Cge(n){n.data=n.data.data}function vQ(n){var r=0;do{n.height=r}while((n=n.parent)&&n.height<++r)}function vw(n){this.data=n,this.depth=this.height=0,this.parent=null}CH.invert=Ex(function(n){return n}),xx.invert=function(n,r){return[n,2*dw(rJ(r))-xa]},Dx.invert=Dx,wH.invert=Ex(dw),kH.invert=function(n,r){var o,e=r,i=25;do{var a=e*e,s=a*a;e-=o=(e*(1.007226+a*(.015085+s*(.028874*a-.044475-.005916*s)))-r)/(1.007226+a*(.045255+s*(.259866*a-.311325-.005916*11*s)))}while(no(o)>Er&&--i>0);return[n/(.8707+(a=e*e)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),e]},TH.invert=Ex(_c),MH.invert=Ex(function(n){return 2*dw(n)}),SH.invert=function(n,r){return[-r,2*dw(rJ(n))-xa]},vw.prototype=EH.prototype={constructor:vw,count:function sge(){return this.eachAfter(age)},each:function lge(n){var e,o,a,s,r=this,i=[r];do{for(e=i.reverse(),i=[];r=e.pop();)if(n(r),o=r.children)for(a=0,s=o.length;a=0;--o)e.push(i[o]);return this},sum:function dge(n){return this.eachAfter(function(r){for(var e=+n(r.data)||0,i=r.children,o=i&&i.length;--o>=0;)e+=i[o].value;r.value=e})},sort:function fge(n){return this.eachBefore(function(r){r.children&&r.children.sort(n)})},path:function pge(n){for(var r=this,e=function hge(n,r){if(n===r)return n;var e=n.ancestors(),i=r.ancestors(),o=null;for(n=e.pop(),r=i.pop();n===r;)o=n,n=e.pop(),r=i.pop();return o}(r,n),i=[r];r!==e;)r=r.parent,i.push(r);for(var o=i.length;n!==e;)i.splice(o,0,n),n=n.parent;return i},ancestors:function mge(){for(var n=this,r=[n];n=n.parent;)r.push(n);return r},descendants:function _ge(){var n=[];return this.each(function(r){n.push(r)}),n},leaves:function gge(){var n=[];return this.eachBefore(function(r){r.children||n.push(r)}),n},links:function vge(){var n=this,r=[];return n.each(function(e){e!==n&&r.push({source:e.parent,target:e})}),r},copy:function yge(){return EH(this).eachBefore(Cge)}};var wge=Array.prototype.slice;function yQ(n){for(var o,a,r=0,e=(n=function kge(n){for(var e,i,r=n.length;r;)i=Math.random()*r--|0,e=n[r],n[r]=n[i],n[i]=e;return n}(wge.call(n))).length,i=[];r0&&e*e>i*i+o*o}function xH(n,r){for(var e=0;e(u*=u)?(o=(d+u-a)/(2*d),l=Math.sqrt(Math.max(0,u/d-o*o)),e.x=n.x-o*i-l*s,e.y=n.y-o*s+l*i):(o=(d+a-u)/(2*d),l=Math.sqrt(Math.max(0,a/d-o*o)),e.x=r.x+o*i-l*s,e.y=r.y+o*s+l*i)):(e.x=r.x+e.r,e.y=r.y)}function kQ(n,r){var e=n.r+r.r-1e-6,i=r.x-n.x,o=r.y-n.y;return e>0&&e*e>i*i+o*o}function TQ(n){var r=n._,e=n.next._,i=r.r+e.r,o=(r.x*e.r+e.x*r.r)/i,a=(r.y*e.r+e.y*r.r)/i;return o*o+a*a}function zZ(n){this._=n,this.next=null,this.previous=null}function MQ(n){if(!(o=n.length))return 0;var r,e,i,o,a,s,l,u,d,h,g;if((r=n[0]).x=0,r.y=0,!(o>1))return r.r;if(e=n[1],r.x=-e.r,e.x=r.r,e.y=0,!(o>2))return r.r+e.r;wQ(e,r,i=n[2]),r=new zZ(r),e=new zZ(e),i=new zZ(i),r.next=i.previous=e,e.next=r.previous=i,i.next=e.previous=r;e:for(l=3;l0)throw new Error("cycle");return l}return e.id=function(i){return arguments.length?(n=WZ(i),e):n},e.parentId=function(i){return arguments.length?(r=WZ(i),e):r},e}function Zge(n,r){return n.parent===r.parent?1:2}function AH(n){var r=n.children;return r?r[0]:n.t}function OH(n){var r=n.children;return r?r[r.length-1]:n.t}function Nge(n,r,e){var i=e/(r.i-n.i);r.c-=i,r.s+=e,n.c+=i,r.z+=e,r.m+=e}function Fge(n,r,e){return n.a.parent===r.parent?n.a:e}function VZ(n,r){this._=n,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=r}function Hge(){var n=Zge,r=1,e=1,i=null;function o(d){var h=function Uge(n){for(var e,o,a,s,l,r=new VZ(n,0),i=[r];e=i.pop();)if(a=e._.children)for(e.children=new Array(l=a.length),s=l-1;s>=0;--s)i.push(o=e.children[s]=new VZ(a[s],s)),o.parent=e;return(r.parent=new VZ(null,0)).children=[r],r}(d);if(h.eachAfter(a),h.parent.m=-h.z,h.eachBefore(s),i)d.eachBefore(u);else{var g=d,C=d,Z=d;d.eachBefore(function(Se){Se.xC.x&&(C=Se),Se.depth>Z.depth&&(Z=Se)});var z=g===C?1:n(g,C)/2,q=z-g.x,re=r/(C.x+z+q),ae=e/(Z.depth||1);d.eachBefore(function(Se){Se.x=(Se.x+q)*re,Se.y=Se.depth*ae})}return d}function a(d){var h=d.children,g=d.parent.children,C=d.i?g[d.i-1]:null;if(h){!function Bge(n){for(var a,r=0,e=0,i=n.children,o=i.length;--o>=0;)(a=i[o]).z+=r,a.m+=r,r+=a.s+(e+=a.c)}(d);var Z=(h[0].z+h[h.length-1].z)/2;C?(d.z=C.z+n(d._,C._),d.m=d.z-Z):d.z=Z}else C&&(d.z=C.z+n(d._,C._));d.parent.A=function l(d,h,g){if(h){for(var Ee,C=d,Z=d,z=h,q=C.parent.children[0],re=C.m,ae=Z.m,Se=z.m,Ce=q.m;z=OH(z),C=AH(C),z&&C;)q=AH(q),(Z=OH(Z)).a=d,(Ee=z.z+Se-C.z-re+n(z._,C._))>0&&(Nge(Fge(z,d,g),d,Ee),re+=Ee,ae+=Ee),Se+=z.m,re+=C.m,Ce+=q.m,ae+=Z.m;z&&!OH(Z)&&(Z.t=z,Z.m+=Se-ae),C&&!AH(q)&&(q.t=C,q.m+=re-Ce,g=d)}return g}(d,C,d.parent.A||g[0])}function s(d){d._.x=d.z+d.parent.m,d.m+=d.parent.m}function u(d){d.x*=r,d.y=d.depth*e}return o.separation=function(d){return arguments.length?(n=d,o):n},o.size=function(d){return arguments.length?(i=!1,r=+d[0],e=+d[1],o):i?null:[r,e]},o.nodeSize=function(d){return arguments.length?(i=!0,r=+d[0],e=+d[1],o):i?[r,e]:null},o}function YZ(n,r,e,i,o){for(var s,a=n.children,l=-1,u=a.length,d=n.value&&(o-e)/n.value;++lSe&&(Se=d),ut=re*re*Ve,(Ce=Math.max(Se/ut,ut/ae))>Ee){re-=d;break}Ee=Ce}s.push(u={value:re,dice:Z1?i:1)},e}(OQ);function jge(){var n=PQ,r=!1,e=1,i=1,o=[0],a=d0,s=d0,l=d0,u=d0,d=d0;function h(C){return C.x0=C.y0=0,C.x1=e,C.y1=i,C.eachBefore(g),o=[0],r&&C.eachBefore(xQ),C}function g(C){var Z=o[C.depth],z=C.x0+Z,q=C.y0+Z,re=C.x1-Z,ae=C.y1-Z;re=C-1){var Se=a[g];return Se.x0=z,Se.y0=q,Se.x1=re,void(Se.y1=ae)}for(var Ce=d[g],Ee=Z/2+Ce,Ve=g+1,ut=C-1;Ve>>1;d[Ae]ae-q){var bt=(z*ht+re*ot)/Z;h(g,Ve,ot,z,q,bt,ae),h(Ve,C,ht,bt,q,re,ae)}else{var Xe=(q*ht+ae*ot)/Z;h(g,Ve,ot,z,q,re,Xe),h(Ve,C,ht,z,Xe,re,ae)}}(0,l,n.value,r,e,i,o)}function zge(n,r,e,i,o){(1&n.depth?YZ:Ox)(n,r,e,i,o)}var Wge=function n(r){function e(i,o,a,s,l){if((u=i._squarify)&&u.ratio===r)for(var u,d,h,g,Z,C=-1,z=u.length,q=i.value;++C1?i:1)},e}(OQ);function bw(n,r,e){n.prototype=r.prototype=e,e.constructor=n}function Ix(n,r){var e=Object.create(n.prototype);for(var i in r)e[i]=r[i];return e}function vg(){}var Cw=1/.7,ww="\\s*([+-]?\\d+)\\s*",Px="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",mp="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vge=/^#([0-9a-f]{3,8})$/,Yge=new RegExp("^rgb\\("+[ww,ww,ww]+"\\)$"),Kge=new RegExp("^rgb\\("+[mp,mp,mp]+"\\)$"),qge=new RegExp("^rgba\\("+[ww,ww,ww,Px]+"\\)$"),Jge=new RegExp("^rgba\\("+[mp,mp,mp,Px]+"\\)$"),Qge=new RegExp("^hsl\\("+[Px,mp,mp]+"\\)$"),Xge=new RegExp("^hsla\\("+[Px,mp,mp,Px]+"\\)$"),RQ={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function LQ(){return this.rgb().formatHex()}function ZQ(){return this.rgb().formatRgb()}function Rx(n){var r,e;return n=(n+"").trim().toLowerCase(),(r=Vge.exec(n))?(e=r[1].length,r=parseInt(r[1],16),6===e?NQ(r):3===e?new rl(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?KZ(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?KZ(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=Yge.exec(n))?new rl(r[1],r[2],r[3],1):(r=Kge.exec(n))?new rl(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=qge.exec(n))?KZ(r[1],r[2],r[3],r[4]):(r=Jge.exec(n))?KZ(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Qge.exec(n))?UQ(r[1],r[2]/100,r[3]/100,1):(r=Xge.exec(n))?UQ(r[1],r[2]/100,r[3]/100,r[4]):RQ.hasOwnProperty(n)?NQ(RQ[n]):"transparent"===n?new rl(NaN,NaN,NaN,0):null}function NQ(n){return new rl(n>>16&255,n>>8&255,255&n,1)}function KZ(n,r,e,i){return i<=0&&(n=r=e=NaN),new rl(n,r,e,i)}function IH(n){return n instanceof vg||(n=Rx(n)),n?new rl((n=n.rgb()).r,n.g,n.b,n.opacity):new rl}function qZ(n,r,e,i){return 1===arguments.length?IH(n):new rl(n,r,e,null==i?1:i)}function rl(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function BQ(){return"#"+PH(this.r)+PH(this.g)+PH(this.b)}function FQ(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}function PH(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function UQ(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new _p(n,r,e,i)}function HQ(n){if(n instanceof _p)return new _p(n.h,n.s,n.l,n.opacity);if(n instanceof vg||(n=Rx(n)),!n)return new _p;if(n instanceof _p)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,o=Math.min(r,e,i),a=Math.max(r,e,i),s=NaN,l=a-o,u=(a+o)/2;return l?(s=r===a?(e-i)/l+6*(e0&&u<1?0:s,new _p(s,l,u,n.opacity)}function RH(n,r,e,i){return 1===arguments.length?HQ(n):new _p(n,r,e,null==i?1:i)}function _p(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function LH(n,r,e){return 255*(n<60?r+(e-r)*n/60:n<180?e:n<240?r+(e-r)*(240-n)/60:r)}function jQ(n,r,e,i,o){var a=n*n,s=a*n;return((1-3*n+3*a-s)*r+(4-6*a+3*s)*e+(1+3*n+3*a-3*s)*i+s*o)/6}function GQ(n){var r=n.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,r-1):Math.floor(e*r),o=n[i],a=n[i+1],s=i>0?n[i-1]:2*o-a,l=i180||e<-180?e-360*Math.round(e/360):e):JZ(isNaN(n)?r:n)}function tve(n){return 1==(n=+n)?Ns:function(r,e){return e-r?function eve(n,r,e){return n=Math.pow(n,e),r=Math.pow(r,e)-n,e=1/e,function(i){return Math.pow(n+i*r,e)}}(r,e,n):JZ(isNaN(r)?e:r)}}function Ns(n,r){var e=r-n;return e?WQ(n,e):JZ(isNaN(n)?r:n)}bw(vg,Rx,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:LQ,formatHex:LQ,formatHsl:function $ge(){return HQ(this).formatHsl()},formatRgb:ZQ,toString:ZQ}),bw(rl,qZ,Ix(vg,{brighter:function(r){return r=null==r?Cw:Math.pow(Cw,r),new rl(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new rl(this.r*r,this.g*r,this.b*r,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:BQ,formatHex:BQ,formatRgb:FQ,toString:FQ})),bw(_p,RH,Ix(vg,{brighter:function(r){return r=null==r?Cw:Math.pow(Cw,r),new _p(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new _p(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+360*(this.h<0),e=isNaN(r)||isNaN(this.s)?0:this.s,i=this.l,o=i+(i<.5?i:1-i)*e,a=2*i-o;return new rl(LH(r>=240?r-240:r+120,a,o),LH(r,a,o),LH(r<120?r+240:r-120,a,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var r=this.opacity;return(1===(r=isNaN(r)?1:Math.max(0,Math.min(1,r)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===r?")":", "+r+")")}}));var NH=function n(r){var e=tve(r);function i(o,a){var s=e((o=qZ(o)).r,(a=qZ(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),d=Ns(o.opacity,a.opacity);return function(h){return o.r=s(h),o.g=l(h),o.b=u(h),o.opacity=d(h),o+""}}return i.gamma=n,i}(1);function VQ(n){return function(r){var s,l,e=r.length,i=new Array(e),o=new Array(e),a=new Array(e);for(s=0;se&&(a=r.slice(e,a),l[s]?l[s]+=a:l[++s]=a),(i=i[0])===(o=o[0])?l[s]?l[s]+=o:l[++s]=o:(l[++s]=null,u.push({i:s,x:gp(i,o)})),e=FH.lastIndex;return e180?h+=360:h-d>180&&(d+=360),C.push({i:g.push(o(g)+"rotate(",null,i)-2,x:gp(d,h)})):h&&g.push(o(g)+"rotate("+h+i)}(d.rotate,h.rotate,g,C),function l(d,h,g,C){d!==h?C.push({i:g.push(o(g)+"skewX(",null,i)-2,x:gp(d,h)}):h&&g.push(o(g)+"skewX("+h+i)}(d.skewX,h.skewX,g,C),function u(d,h,g,C,Z,z){if(d!==g||h!==C){var q=Z.push(o(Z)+"scale(",null,",",null,")");z.push({i:q-4,x:gp(d,g)},{i:q-2,x:gp(h,C)})}else(1!==g||1!==C)&&Z.push(o(Z)+"scale("+g+","+C+")")}(d.scaleX,d.scaleY,h.scaleX,h.scaleY,g,C),d=h=null,function(Z){for(var re,z=-1,q=C.length;++z.008856451679035631?Math.pow(n,1/3):n/cX+uX}function VH(n){return n>kw?n*n*n:cX*(n-uX)}function YH(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function KH(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function fX(n){if(n instanceof vp)return new vp(n.h,n.c,n.l,n.opacity);if(n instanceof ef||(n=dX(n)),0===n.a&&0===n.b)return new vp(NaN,01&&Eve(n[e[i-2]],n[e[i-1]],n[o])<=0;)--i;e[i++]=o}return e.slice(0,i)}function Dve(n){if((e=n.length)<3)return null;var r,e,i=new Array(e),o=new Array(e);for(r=0;r=0;--r)d.push(n[i[a[r]][2]]);for(r=+l;ra!=l>a&&o<(s-u)*(a-d)/(l-d)+u&&(h=!h),s=u,l=d;return h}function Ove(n){for(var o,a,r=-1,e=n.length,i=n[e-1],s=i[0],l=i[1],u=0;++r1);return i+o*l*Math.sqrt(-2*Math.log(s)/s)}}return e.source=n,e}(Tw),Pve=function n(r){function e(){var i=CX.source(r).apply(this,arguments);return function(){return Math.exp(i())}}return e.source=n,e}(Tw),wX=function n(r){function e(i){return function(){for(var o=0,a=0;a2?Hve:Uve,l=u=null,h}function h(g){return(l||(l=s(e,i,a?function Bve(n){return function(r,e){var i=n(r=+r,e=+e);return function(o){return o<=r?0:o>=e?1:i(o)}}}(n):n,o)))(+g)}return h.invert=function(g){return(u||(u=s(i,e,ij,a?function Fve(n){return function(r,e){var i=n(r=+r,e=+e);return function(o){return o<=0?r:o>=1?e:i(o)}}}(r):r)))(+g)},h.domain=function(g){return arguments.length?(e=$H.call(g,MX),d()):e.slice()},h.range=function(g){return arguments.length?(i=yg.call(g),d()):i.slice()},h.rangeRound=function(g){return i=yg.call(g),o=Nve,d()},h.clamp=function(g){return arguments.length?(a=!!g,d()):a},h.interpolate=function(g){return arguments.length?(o=g,d()):o},d()}var EX,jve=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function nN(n){if(!(r=jve.exec(n)))throw new Error("invalid format: "+n);var r;return new oj({fill:r[1],align:r[2],sign:r[3],symbol:r[4],zero:r[5],width:r[6],comma:r[7],precision:r[8]&&r[8].slice(1),trim:r[9],type:r[10]})}function oj(n){this.fill=void 0===n.fill?" ":n.fill+"",this.align=void 0===n.align?">":n.align+"",this.sign=void 0===n.sign?"-":n.sign+"",this.symbol=void 0===n.symbol?"":n.symbol+"",this.zero=!!n.zero,this.width=void 0===n.width?void 0:+n.width,this.comma=!!n.comma,this.precision=void 0===n.precision?void 0:+n.precision,this.trim=!!n.trim,this.type=void 0===n.type?"":n.type+""}function rN(n,r){if((e=(n=r?n.toExponential(r-1):n.toExponential()).indexOf("e"))<0)return null;var e,i=n.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+n.slice(e+1)]}function Mw(n){return(n=rN(Math.abs(n)))?n[1]:NaN}function xX(n,r){var e=rN(n,r);if(!e)return n+"";var i=e[0],o=e[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}nN.prototype=oj.prototype,oj.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var DX={"%":function(r,e){return(100*r).toFixed(e)},b:function(r){return Math.round(r).toString(2)},c:function(r){return r+""},d:function Gve(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)},e:function(r,e){return r.toExponential(e)},f:function(r,e){return r.toFixed(e)},g:function(r,e){return r.toPrecision(e)},o:function(r){return Math.round(r).toString(8)},p:function(r,e){return xX(100*r,e)},r:xX,s:function Kve(n,r){var e=rN(n,r);if(!e)return n+"";var i=e[0],o=e[1],a=o-(EX=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+new Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+rN(n,Math.max(0,r+a-1))[0]},X:function(r){return Math.round(r).toString(16).toUpperCase()},x:function(r){return Math.round(r).toString(16)}};function AX(n){return n}var iN,aj,PX,OX=Array.prototype.map,IX=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function qve(n){var r=void 0===n.grouping||void 0===n.thousands?AX:function Wve(n,r){return function(e,i){for(var o=e.length,a=[],s=0,l=n[0],u=0;o>0&&l>0&&(u+l+1>i&&(l=Math.max(1,i-u)),a.push(e.substring(o-=l,o+l)),!((u+=l+1)>i));)l=n[s=(s+1)%n.length];return a.reverse().join(r)}}(OX.call(n.grouping,Number),n.thousands+""),e=void 0===n.currency?"":n.currency[0]+"",i=void 0===n.currency?"":n.currency[1]+"",o=void 0===n.decimal?".":n.decimal+"",a=void 0===n.numerals?AX:function Vve(n){return function(r){return r.replace(/[0-9]/g,function(e){return n[+e]})}}(OX.call(n.numerals,String)),s=void 0===n.percent?"%":n.percent+"",l=void 0===n.minus?"-":n.minus+"",u=void 0===n.nan?"NaN":n.nan+"";function d(g){var C=(g=nN(g)).fill,Z=g.align,z=g.sign,q=g.symbol,re=g.zero,ae=g.width,Se=g.comma,Ce=g.precision,Ee=g.trim,Ve=g.type;"n"===Ve?(Se=!0,Ve="g"):DX[Ve]||(void 0===Ce&&(Ce=12),Ee=!0,Ve="g"),(re||"0"===C&&"="===Z)&&(re=!0,C="0",Z="=");var ut="$"===q?e:"#"===q&&/[boxX]/.test(Ve)?"0"+Ve.toLowerCase():"",Ae="$"===q?i:/[%p]/.test(Ve)?s:"",ot=DX[Ve],ht=/[defgprs%]/.test(Ve);function bt(Xe){var Nt,Gt,It,Pe=ut,ft=Ae;if("c"===Ve)ft=ot(Xe)+ft,Xe="";else{var Tn=(Xe=+Xe)<0||1/Xe<0;if(Xe=isNaN(Xe)?u:ot(Math.abs(Xe),Ce),Ee&&(Xe=function Yve(n){e:for(var o,r=n.length,e=1,i=-1;e0&&(i=0)}return i>0?n.slice(0,i)+n.slice(o+1):n}(Xe)),Tn&&0==+Xe&&"+"!==z&&(Tn=!1),Pe=(Tn?"("===z?z:l:"-"===z||"("===z?"":z)+Pe,ft=("s"===Ve?IX[8+EX/3]:"")+ft+(Tn&&"("===z?")":""),ht)for(Nt=-1,Gt=Xe.length;++Nt(It=Xe.charCodeAt(Nt))||It>57){ft=(46===It?o+Xe.slice(Nt+1):Xe.slice(Nt))+ft,Xe=Xe.slice(0,Nt);break}}Se&&!re&&(Xe=r(Xe,1/0));var jn=Pe.length+Xe.length+ft.length,zn=jn>1)+Pe+Xe+ft+zn.slice(jn);break;default:Xe=zn+Pe+Xe+ft}return a(Xe)}return Ce=void 0===Ce?6:/[gprs]/.test(Ve)?Math.max(1,Math.min(21,Ce)):Math.max(0,Math.min(20,Ce)),bt.toString=function(){return g+""},bt}return{format:d,formatPrefix:function h(g,C){var Z=d(((g=nN(g)).type="f",g)),z=3*Math.max(-8,Math.min(8,Math.floor(Mw(C)/3))),q=Math.pow(10,-z),re=IX[8+z/3];return function(ae){return Z(q*ae)+re}}}}function $ve(n,r,e){var s,i=n[0],o=n[n.length-1],a=Qy(i,o,null==r?10:r);switch((e=nN(null==e?",f":e)).type){case"s":var l=Math.max(Math.abs(i),Math.abs(o));return null==e.precision&&!isNaN(s=function zve(n,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Mw(r)/3)))-Mw(Math.abs(n)))}(a,l))&&(e.precision=s),PX(e,l);case"":case"e":case"g":case"p":case"r":null==e.precision&&!isNaN(s=function Qve(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,Mw(r)-Mw(n))+1}(a,Math.max(Math.abs(i),Math.abs(o))))&&(e.precision=s-("e"===e.type));break;case"f":case"%":null==e.precision&&!isNaN(s=function Xve(n){return Math.max(0,-Mw(Math.abs(n)))}(a))&&(e.precision=s-2*("%"===e.type))}return aj(e)}function Bx(n){var r=n.domain;return n.ticks=function(e){var i=r();return Z7(i[0],i[i.length-1],null==e?10:e)},n.tickFormat=function(e,i){return $ve(r(),e,i)},n.nice=function(e){null==e&&(e=10);var u,i=r(),o=0,a=i.length-1,s=i[o],l=i[a];return l0?u=QE(s=Math.floor(s/u)*u,l=Math.ceil(l/u)*u,e):u<0&&(u=QE(s=Math.ceil(s*u)/u,l=Math.floor(l*u)/u,e)),u>0?(i[o]=Math.floor(s/u)*u,i[a]=Math.ceil(l/u)*u,r(i)):u<0&&(i[o]=Math.ceil(s*u)/u,i[a]=Math.floor(l*u)/u,r(i)),n},n}function RX(){var n=tN(ij,Yc);return n.copy=function(){return eN(n,RX())},Bx(n)}function LX(){var n=[0,1];function r(e){return+e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(n=$H.call(e,MX),r):n.slice()},r.copy=function(){return LX().domain(n)},Bx(r)}function ZX(n,r){var s,e=0,i=(n=n.slice()).length-1,o=n[e],a=n[i];return a0){for(;gd)break;ae.push(q)}}else for(;g=1;--z)if(!((q=Z*z)d)break;ae.push(q)}}else ae=Z7(g,C,Math.min(C-g,re)).map(o);return h?ae.reverse():ae},n.tickFormat=function(s,l){if(null==l&&(l=10===e?".0e":","),"function"!=typeof l&&(l=aj(l)),s===1/0)return l;null==s&&(s=10);var u=Math.max(1,e*s/n.ticks().length);return function(d){var h=d/o(Math.round(i(d)));return h*e0?e[s-1]:n[0],s=e?[i[e-1],r]:[i[u-1],i[u]]},a.copy=function(){return jX().domain([n,r]).range(o)},Bx(a)}function GX(){var n=[.5],r=[0,1],e=1;function i(o){if(o<=o)return r[Y1(n,o,0,e)]}return i.domain=function(o){return arguments.length?(n=yg.call(o),e=Math.min(n.length,r.length-1),i):n.slice()},i.range=function(o){return arguments.length?(r=yg.call(o),e=Math.min(n.length,r.length-1),i):r.slice()},i.invertExtent=function(o){var a=r.indexOf(o);return[n[a-1],n[a]]},i.copy=function(){return GX().domain(n).range(r)},i}!function Jve(n){return iN=qve(n),aj=iN.format,PX=iN.formatPrefix,iN}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var lj=new Date,uj=new Date;function Bs(n,r,e,i){function o(a){return n(a=0===arguments.length?new Date:new Date(+a)),a}return o.floor=function(a){return n(a=new Date(+a)),a},o.ceil=function(a){return n(a=new Date(a-1)),r(a,1),n(a),a},o.round=function(a){var s=o(a),l=o.ceil(a);return a-s0))return u;do{u.push(d=new Date(+a)),r(a,l),n(a)}while(d=s)for(;n(s),!a(s);)s.setTime(s-1)},function(s,l){if(s>=s)if(l<0)for(;++l<=0;)for(;r(s,-1),!a(s););else for(;--l>=0;)for(;r(s,1),!a(s););})},e&&(o.count=function(a,s){return lj.setTime(+a),uj.setTime(+s),n(lj),n(uj),Math.floor(e(lj,uj))},o.every=function(a){return a=Math.floor(a),isFinite(a)&&a>0?a>1?o.filter(i?function(s){return i(s)%a==0}:function(s){return o.count(0,s)%a==0}):o:null}),o}var cj=Bs(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,r){n.setFullYear(n.getFullYear()+r)},function(n,r){return r.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});cj.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Bs(function(r){r.setFullYear(Math.floor(r.getFullYear()/n)*n),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,e){r.setFullYear(r.getFullYear()+e*n)}):null};var tf=cj,zX=(cj.range,Bs(function(n){n.setDate(1),n.setHours(0,0,0,0)},function(n,r){n.setMonth(n.getMonth()+r)},function(n,r){return r.getMonth()-n.getMonth()+12*(r.getFullYear()-n.getFullYear())},function(n){return n.getMonth()})),iye=zX,h0=(zX.range,6e4),aN=36e5,VX=6048e5;function m0(n){return Bs(function(r){r.setDate(r.getDate()-(r.getDay()+7-n)%7),r.setHours(0,0,0,0)},function(r,e){r.setDate(r.getDate()+7*e)},function(r,e){return(e-r-(e.getTimezoneOffset()-r.getTimezoneOffset())*h0)/VX})}var sN=m0(0),_0=m0(1),oye=m0(2),aye=m0(3),rm=m0(4),sye=m0(5),lye=m0(6),YX=(sN.range,_0.range,oye.range,aye.range,rm.range,sye.range,lye.range,Bs(function(n){n.setHours(0,0,0,0)},function(n,r){n.setDate(n.getDate()+r)},function(n,r){return(r-n-(r.getTimezoneOffset()-n.getTimezoneOffset())*h0)/864e5},function(n){return n.getDate()-1})),Fx=YX,KX=(YX.range,Bs(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds()-n.getMinutes()*h0)},function(n,r){n.setTime(+n+r*aN)},function(n,r){return(r-n)/aN},function(n){return n.getHours()})),uye=KX,qX=(KX.range,Bs(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds())},function(n,r){n.setTime(+n+r*h0)},function(n,r){return(r-n)/h0},function(n){return n.getMinutes()})),cye=qX,JX=(qX.range,Bs(function(n){n.setTime(n-n.getMilliseconds())},function(n,r){n.setTime(+n+1e3*r)},function(n,r){return(r-n)/1e3},function(n){return n.getUTCSeconds()})),QX=JX,lN=(JX.range,Bs(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n}));lN.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?Bs(function(r){r.setTime(Math.floor(r/n)*n)},function(r,e){r.setTime(+r+e*n)},function(r,e){return(e-r)/n}):lN:null};var XX=lN;lN.range;function g0(n){return Bs(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-n)%7),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCDate(r.getUTCDate()+7*e)},function(r,e){return(e-r)/VX})}var uN=g0(0),v0=g0(1),dye=g0(2),fye=g0(3),im=g0(4),pye=g0(5),hye=g0(6),$X=(uN.range,v0.range,dye.range,fye.range,im.range,pye.range,hye.range,Bs(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/864e5},function(n){return n.getUTCDate()-1})),Ux=$X,dj=($X.range,Bs(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCFullYear(n.getUTCFullYear()+r)},function(n,r){return r.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()}));dj.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Bs(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/n)*n),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCFullYear(r.getUTCFullYear()+e*n)}):null};var nf=dj;dj.range;function fj(n){if(0<=n.y&&n.y<100){var r=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return r.setFullYear(n.y),r}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function pj(n){if(0<=n.y&&n.y<100){var r=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return r.setUTCFullYear(n.y),r}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function Hx(n,r,e){return{y:n,m:r,d:e,H:0,M:0,S:0,L:0}}var Ew,h$,m$,e$={"-":"",_:" ",0:"0"},Fs=/^\s*\d+/,_ye=/^%/,gye=/[\\^$*+?|[\]().{}]/g;function Ki(n,r,e){var i=n<0?"-":"",o=(i?-n:n)+"",a=o.length;return i+(a68?1900:2e3),e+i[0].length):-1}function Tye(n,r,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(e,e+6));return i?(n.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function Mye(n,r,e){var i=Fs.exec(r.slice(e,e+1));return i?(n.q=3*i[0]-3,e+i[0].length):-1}function Sye(n,r,e){var i=Fs.exec(r.slice(e,e+2));return i?(n.m=i[0]-1,e+i[0].length):-1}function r$(n,r,e){var i=Fs.exec(r.slice(e,e+2));return i?(n.d=+i[0],e+i[0].length):-1}function Eye(n,r,e){var i=Fs.exec(r.slice(e,e+3));return i?(n.m=0,n.d=+i[0],e+i[0].length):-1}function i$(n,r,e){var i=Fs.exec(r.slice(e,e+2));return i?(n.H=+i[0],e+i[0].length):-1}function xye(n,r,e){var i=Fs.exec(r.slice(e,e+2));return i?(n.M=+i[0],e+i[0].length):-1}function Dye(n,r,e){var i=Fs.exec(r.slice(e,e+2));return i?(n.S=+i[0],e+i[0].length):-1}function Aye(n,r,e){var i=Fs.exec(r.slice(e,e+3));return i?(n.L=+i[0],e+i[0].length):-1}function Oye(n,r,e){var i=Fs.exec(r.slice(e,e+6));return i?(n.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function Iye(n,r,e){var i=_ye.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function Pye(n,r,e){var i=Fs.exec(r.slice(e));return i?(n.Q=+i[0],e+i[0].length):-1}function Rye(n,r,e){var i=Fs.exec(r.slice(e));return i?(n.s=+i[0],e+i[0].length):-1}function o$(n,r){return Ki(n.getDate(),r,2)}function Lye(n,r){return Ki(n.getHours(),r,2)}function Zye(n,r){return Ki(n.getHours()%12||12,r,2)}function Nye(n,r){return Ki(1+Fx.count(tf(n),n),r,3)}function a$(n,r){return Ki(n.getMilliseconds(),r,3)}function Bye(n,r){return a$(n,r)+"000"}function Fye(n,r){return Ki(n.getMonth()+1,r,2)}function Uye(n,r){return Ki(n.getMinutes(),r,2)}function Hye(n,r){return Ki(n.getSeconds(),r,2)}function jye(n){var r=n.getDay();return 0===r?7:r}function Gye(n,r){return Ki(sN.count(tf(n)-1,n),r,2)}function s$(n){var r=n.getDay();return r>=4||0===r?rm(n):rm.ceil(n)}function zye(n,r){return n=s$(n),Ki(rm.count(tf(n),n)+(4===tf(n).getDay()),r,2)}function Wye(n){return n.getDay()}function Vye(n,r){return Ki(_0.count(tf(n)-1,n),r,2)}function Yye(n,r){return Ki(n.getFullYear()%100,r,2)}function Kye(n,r){return Ki((n=s$(n)).getFullYear()%100,r,2)}function qye(n,r){return Ki(n.getFullYear()%1e4,r,4)}function Jye(n,r){var e=n.getDay();return Ki((n=e>=4||0===e?rm(n):rm.ceil(n)).getFullYear()%1e4,r,4)}function Qye(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+Ki(r/60|0,"0",2)+Ki(r%60,"0",2)}function l$(n,r){return Ki(n.getUTCDate(),r,2)}function Xye(n,r){return Ki(n.getUTCHours(),r,2)}function $ye(n,r){return Ki(n.getUTCHours()%12||12,r,2)}function e0e(n,r){return Ki(1+Ux.count(nf(n),n),r,3)}function u$(n,r){return Ki(n.getUTCMilliseconds(),r,3)}function t0e(n,r){return u$(n,r)+"000"}function n0e(n,r){return Ki(n.getUTCMonth()+1,r,2)}function r0e(n,r){return Ki(n.getUTCMinutes(),r,2)}function i0e(n,r){return Ki(n.getUTCSeconds(),r,2)}function o0e(n){var r=n.getUTCDay();return 0===r?7:r}function a0e(n,r){return Ki(uN.count(nf(n)-1,n),r,2)}function c$(n){var r=n.getUTCDay();return r>=4||0===r?im(n):im.ceil(n)}function s0e(n,r){return n=c$(n),Ki(im.count(nf(n),n)+(4===nf(n).getUTCDay()),r,2)}function l0e(n){return n.getUTCDay()}function u0e(n,r){return Ki(v0.count(nf(n)-1,n),r,2)}function c0e(n,r){return Ki(n.getUTCFullYear()%100,r,2)}function d0e(n,r){return Ki((n=c$(n)).getUTCFullYear()%100,r,2)}function f0e(n,r){return Ki(n.getUTCFullYear()%1e4,r,4)}function p0e(n,r){var e=n.getUTCDay();return Ki((n=e>=4||0===e?im(n):im.ceil(n)).getUTCFullYear()%1e4,r,4)}function h0e(){return"+0000"}function d$(){return"%"}function f$(n){return+n}function p$(n){return Math.floor(+n/1e3)}!function g0e(n){return Ew=function mye(n){var r=n.dateTime,e=n.date,i=n.time,o=n.periods,a=n.days,s=n.shortDays,l=n.months,u=n.shortMonths,d=jx(o),h=Gx(o),g=jx(a),C=Gx(a),Z=jx(s),z=Gx(s),q=jx(l),re=Gx(l),ae=jx(u),Se=Gx(u),Ce={a:function Tn(Sn){return s[Sn.getDay()]},A:function jn(Sn){return a[Sn.getDay()]},b:function zn(Sn){return u[Sn.getMonth()]},B:function or(Sn){return l[Sn.getMonth()]},c:null,d:o$,e:o$,f:Bye,g:Kye,G:Jye,H:Lye,I:Zye,j:Nye,L:a$,m:Fye,M:Uye,p:function Mr(Sn){return o[+(Sn.getHours()>=12)]},q:function _r(Sn){return 1+~~(Sn.getMonth()/3)},Q:f$,s:p$,S:Hye,u:jye,U:Gye,V:zye,w:Wye,W:Vye,x:null,X:null,y:Yye,Y:qye,Z:Qye,"%":d$},Ee={a:function zr(Sn){return s[Sn.getUTCDay()]},A:function Ur(Sn){return a[Sn.getUTCDay()]},b:function Kr(Sn){return u[Sn.getUTCMonth()]},B:function Fo(Sn){return l[Sn.getUTCMonth()]},c:null,d:l$,e:l$,f:t0e,g:d0e,G:p0e,H:Xye,I:$ye,j:e0e,L:u$,m:n0e,M:r0e,p:function er(Sn){return o[+(Sn.getUTCHours()>=12)]},q:function wr(Sn){return 1+~~(Sn.getUTCMonth()/3)},Q:f$,s:p$,S:i0e,u:o0e,U:a0e,V:s0e,w:l0e,W:u0e,x:null,X:null,y:c0e,Y:f0e,Z:h0e,"%":d$},Ve={a:function bt(Sn,gn,tr){var un=Z.exec(gn.slice(tr));return un?(Sn.w=z[un[0].toLowerCase()],tr+un[0].length):-1},A:function Xe(Sn,gn,tr){var un=g.exec(gn.slice(tr));return un?(Sn.w=C[un[0].toLowerCase()],tr+un[0].length):-1},b:function Pe(Sn,gn,tr){var un=ae.exec(gn.slice(tr));return un?(Sn.m=Se[un[0].toLowerCase()],tr+un[0].length):-1},B:function ft(Sn,gn,tr){var un=q.exec(gn.slice(tr));return un?(Sn.m=re[un[0].toLowerCase()],tr+un[0].length):-1},c:function Nt(Sn,gn,tr){return ot(Sn,r,gn,tr)},d:r$,e:r$,f:Oye,g:n$,G:t$,H:i$,I:i$,j:Eye,L:Aye,m:Sye,M:xye,p:function ht(Sn,gn,tr){var un=d.exec(gn.slice(tr));return un?(Sn.p=h[un[0].toLowerCase()],tr+un[0].length):-1},q:Mye,Q:Pye,s:Rye,S:Dye,u:bye,U:Cye,V:wye,w:yye,W:kye,x:function Gt(Sn,gn,tr){return ot(Sn,e,gn,tr)},X:function It(Sn,gn,tr){return ot(Sn,i,gn,tr)},y:n$,Y:t$,Z:Tye,"%":Iye};function ut(Sn,gn){return function(tr){var vr,io,Yu,un=[],bn=-1,Bn=0,nr=Sn.length;for(tr instanceof Date||(tr=new Date(+tr));++bn53)return null;"w"in un||(un.w=1),"Z"in un?(nr=(Bn=pj(Hx(un.y,0,1))).getUTCDay(),Bn=nr>4||0===nr?v0.ceil(Bn):v0(Bn),Bn=Ux.offset(Bn,7*(un.V-1)),un.y=Bn.getUTCFullYear(),un.m=Bn.getUTCMonth(),un.d=Bn.getUTCDate()+(un.w+6)%7):(nr=(Bn=fj(Hx(un.y,0,1))).getDay(),Bn=nr>4||0===nr?_0.ceil(Bn):_0(Bn),Bn=Fx.offset(Bn,7*(un.V-1)),un.y=Bn.getFullYear(),un.m=Bn.getMonth(),un.d=Bn.getDate()+(un.w+6)%7)}else("W"in un||"U"in un)&&("w"in un||(un.w="u"in un?un.u%7:"W"in un?1:0),nr="Z"in un?pj(Hx(un.y,0,1)).getUTCDay():fj(Hx(un.y,0,1)).getDay(),un.m=0,un.d="W"in un?(un.w+6)%7+7*un.W-(nr+5)%7:un.w+7*un.U-(nr+6)%7);return"Z"in un?(un.H+=un.Z/100|0,un.M+=un.Z%100,pj(un)):fj(un)}}function ot(Sn,gn,tr,un){for(var vr,io,bn=0,Bn=gn.length,nr=tr.length;bn=nr)return-1;if(37===(vr=gn.charCodeAt(bn++))){if(vr=gn.charAt(bn++),!(io=Ve[vr in e$?gn.charAt(bn++):vr])||(un=io(Sn,tr,un))<0)return-1}else if(vr!=tr.charCodeAt(un++))return-1}return un}return Ce.x=ut(e,Ce),Ce.X=ut(i,Ce),Ce.c=ut(r,Ce),Ee.x=ut(e,Ee),Ee.X=ut(i,Ee),Ee.c=ut(r,Ee),{format:function(gn){var tr=ut(gn+="",Ce);return tr.toString=function(){return gn},tr},parse:function(gn){var tr=Ae(gn+="",!1);return tr.toString=function(){return gn},tr},utcFormat:function(gn){var tr=ut(gn+="",Ee);return tr.toString=function(){return gn},tr},utcParse:function(gn){var tr=Ae(gn+="",!0);return tr.toString=function(){return gn},tr}}}(n),h$=Ew.format,Ew.parse,m$=Ew.utcFormat,Ew.utcParse,Ew}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var zx=1e3,Wx=6e4,Vx=60*Wx,Yx=24*Vx,_$=30*Yx,hj=365*Yx;function y0e(n){return new Date(n)}function b0e(n){return n instanceof Date?+n:+new Date(+n)}function mj(n,r,e,i,o,a,s,l,u){var d=tN(ij,Yc),h=d.invert,g=d.domain,C=u(".%L"),Z=u(":%S"),z=u("%I:%M"),q=u("%I %p"),re=u("%a %d"),ae=u("%b %d"),Se=u("%B"),Ce=u("%Y"),Ee=[[s,1,zx],[s,5,5e3],[s,15,15e3],[s,30,3e4],[a,1,Wx],[a,5,5*Wx],[a,15,15*Wx],[a,30,30*Wx],[o,1,Vx],[o,3,3*Vx],[o,6,6*Vx],[o,12,12*Vx],[i,1,Yx],[i,2,2*Yx],[e,1,6048e5],[r,1,_$],[r,3,3*_$],[n,1,hj]];function Ve(Ae){return(s(Ae)180||e<-180?e-360*Math.round(e/360):e):PL(isNaN(n)?r:n)});var vj=X$($1),dbe=vj(yp(300,.5,0),yp(-240,.5,1)),fbe=vj(yp(-100,.75,.35),yp(80,1.5,.8)),pbe=vj(yp(260,.75,.35),yp(80,1.5,.8)),dN=yp();function hbe(n){(n<0||n>1)&&(n-=Math.floor(n));var r=Math.abs(n-.5);return dN.h=360*n-100,dN.s=1.5-1.5*r,dN.l=.8-.9*r,dN+""}function fN(n){var r=n.length;return function(e){return n[Math.max(0,Math.min(r-1,Math.floor(e*r)))]}}var mbe=fN(oi("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),_be=fN(oi("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),gbe=fN(oi("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),vbe=fN(oi("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),yj="http://www.w3.org/1999/xhtml",bj={svg:"http://www.w3.org/2000/svg",xhtml:yj,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Cj(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),bj.hasOwnProperty(r)?{space:bj[r],local:n}:n}function ybe(n){return function(){var r=this.ownerDocument,e=this.namespaceURI;return e===yj&&r.documentElement.namespaceURI===yj?r.createElement(n):r.createElementNS(e,n)}}function bbe(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function pN(n){var r=Cj(n);return(r.local?bbe:ybe)(r)}function Cbe(){}function wj(n){return null==n?Cbe:function(){return this.querySelector(n)}}function kbe(){return[]}function $$(n){return null==n?kbe:function(){return this.querySelectorAll(n)}}var eee=function(r){return function(){return this.matches(r)}};if("undefined"!=typeof document){var qx=document.documentElement;if(!qx.matches){var Mbe=qx.webkitMatchesSelector||qx.msMatchesSelector||qx.mozMatchesSelector||qx.oMatchesSelector;eee=function(r){return function(){return Mbe.call(this,r)}}}}var tee=eee;function nee(n){return new Array(n.length)}function hN(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}hN.prototype={constructor:hN,appendChild:function(r){return this._parent.insertBefore(r,this._next)},insertBefore:function(r,e){return this._parent.insertBefore(r,e)},querySelector:function(r){return this._parent.querySelector(r)},querySelectorAll:function(r){return this._parent.querySelectorAll(r)}};function Dbe(n,r,e,i,o,a){for(var l,s=0,u=r.length,d=a.length;sr?1:n>=r?0:NaN}function Gbe(n){return function(){this.removeAttribute(n)}}function zbe(n){return function(){this.removeAttributeNS(n.space,n.local)}}function Wbe(n,r){return function(){this.setAttribute(n,r)}}function Vbe(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function Ybe(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function Kbe(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}}function kj(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function Jbe(n){return function(){this.style.removeProperty(n)}}function Qbe(n,r,e){return function(){this.style.setProperty(n,r,e)}}function Xbe(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function iee(n,r){return n.style.getPropertyValue(r)||kj(n).getComputedStyle(n,null).getPropertyValue(r)}function eCe(n){return function(){delete this[n]}}function tCe(n,r){return function(){this[n]=r}}function nCe(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function oee(n){return n.trim().split(/^|\s+/)}function Tj(n){return n.classList||new aee(n)}function aee(n){this._node=n,this._names=oee(n.getAttribute("class")||"")}function see(n,r){for(var e=Tj(n),i=-1,o=r.length;++i=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};var uee={},om=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(uee={mouseenter:"mouseover",mouseleave:"mouseout"}));function ACe(n,r,e){return n=cee(n,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&n.call(this,i)}}function cee(n,r,e){return function(i){var o=om;om=i;try{n.call(this,this.__data__,r,e)}finally{om=o}}}function OCe(n){return n.trim().split(/^|\s+/).map(function(r){var e="",i=r.indexOf(".");return i>=0&&(e=r.slice(i+1),r=r.slice(0,i)),{type:r,name:e}})}function ICe(n){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e=Ce&&(Ce=Se+1);!(Ve=re[Ce])&&++Ce=0;)(s=i[o])&&(a&&a!==s.nextSibling&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function Lbe(n){function r(g,C){return g&&C?n(g.__data__,C.__data__):!g-!C}n||(n=Zbe);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a1?this.each((null==r?Jbe:"function"==typeof r?Xbe:Qbe)(n,r,null==e?"":e)):iee(this.node(),n)},property:function rCe(n,r){return arguments.length>1?this.each((null==r?eCe:"function"==typeof r?nCe:tCe)(n,r)):this.node()[n]},classed:function sCe(n,r){var e=oee(n+"");if(arguments.length<2){for(var i=Tj(this.node()),o=-1,a=e.length;++o1?0:n<-1?C0:Math.acos(n)}function _ee(n){return n>=1?_N:n<=-1?-_N:Math.asin(n)}function u1e(n){return n.innerRadius}function c1e(n){return n.outerRadius}function d1e(n){return n.startAngle}function f1e(n){return n.endAngle}function p1e(n){return n&&n.padAngle}function h1e(n,r,e,i,o,a,s,l){var u=e-n,d=i-r,h=s-o,g=l-a,C=g*u-h*d;if(!(C*CNt*Nt+Gt*Gt&&(ot=bt,ht=Xe),{cx:ot,cy:ht,x01:-h,y01:-g,x11:ot*(o/Ve-1),y11:ht*(o/Ve-1)}}function m1e(){var n=u1e,r=c1e,e=fi(0),i=null,o=d1e,a=f1e,s=p1e,l=null;function u(){var d,h,g=+n.apply(this,arguments),C=+r.apply(this,arguments),Z=o.apply(this,arguments)-_N,z=a.apply(this,arguments)-_N,q=mee(z-Z),re=z>Z;if(l||(l=d=Jd()),Cil)if(q>am-il)l.moveTo(C*b0(Z),C*bp(Z)),l.arc(0,0,C,Z,z,!re),g>il&&(l.moveTo(g*b0(z),g*bp(z)),l.arc(0,0,g,z,Z,re));else{var Pe,ft,ae=Z,Se=z,Ce=Z,Ee=z,Ve=q,ut=q,Ae=s.apply(this,arguments)/2,ot=Ae>il&&(i?+i.apply(this,arguments):xw(g*g+C*C)),ht=xj(mee(C-g)/2,+e.apply(this,arguments)),bt=ht,Xe=ht;if(ot>il){var Nt=_ee(ot/g*bp(Ae)),Gt=_ee(ot/C*bp(Ae));(Ve-=2*Nt)>il?(Ce+=Nt*=re?1:-1,Ee-=Nt):(Ve=0,Ce=Ee=(Z+z)/2),(ut-=2*Gt)>il?(ae+=Gt*=re?1:-1,Se-=Gt):(ut=0,ae=Se=(Z+z)/2)}var It=C*b0(ae),Tn=C*bp(ae),jn=g*b0(Ee),zn=g*bp(Ee);if(ht>il){var Ur,or=C*b0(Se),Mr=C*bp(Se),_r=g*b0(Ce),zr=g*bp(Ce);if(q<=am-il&&(Ur=h1e(It,Tn,_r,zr,or,Mr,jn,zn))){var Kr=It-Ur[0],Fo=Tn-Ur[1],er=or-Ur[0],wr=Mr-Ur[1],Sn=1/bp(l1e((Kr*er+Fo*wr)/(xw(Kr*Kr+Fo*Fo)*xw(er*er+wr*wr)))/2),gn=xw(Ur[0]*Ur[0]+Ur[1]*Ur[1]);bt=xj(ht,(g-gn)/(Sn-1)),Xe=xj(ht,(C-gn)/(Sn+1))}}ut>il?Xe>il?(Pe=gN(_r,zr,It,Tn,C,Xe,re),ft=gN(or,Mr,jn,zn,C,Xe,re),l.moveTo(Pe.cx+Pe.x01,Pe.cy+Pe.y01),Xeil&&Ve>il?bt>il?(Pe=gN(jn,zn,or,Mr,g,-bt,re),ft=gN(It,Tn,_r,zr,g,-bt,re),l.lineTo(Pe.cx+Pe.x01,Pe.cy+Pe.y01),bt=C;--Z)l.point(Se[Z],Ce[Z]);l.lineEnd(),l.areaEnd()}re&&(Se[g]=+n(q,g,h),Ce[g]=+e(q,g,h),l.point(r?+r(q,g,h):Se[g],i?+i(q,g,h):Ce[g]))}if(ae)return l=null,ae+""||null}function d(){return yN().defined(o).curve(s).context(a)}return u.x=function(h){return arguments.length?(n="function"==typeof h?h:fi(+h),r=null,u):n},u.x0=function(h){return arguments.length?(n="function"==typeof h?h:fi(+h),u):n},u.x1=function(h){return arguments.length?(r=null==h?null:"function"==typeof h?h:fi(+h),u):r},u.y=function(h){return arguments.length?(e="function"==typeof h?h:fi(+h),i=null,u):e},u.y0=function(h){return arguments.length?(e="function"==typeof h?h:fi(+h),u):e},u.y1=function(h){return arguments.length?(i=null==h?null:"function"==typeof h?h:fi(+h),u):i},u.lineX0=u.lineY0=function(){return d().x(n).y(e)},u.lineY1=function(){return d().x(n).y(i)},u.lineX1=function(){return d().x(r).y(e)},u.defined=function(h){return arguments.length?(o="function"==typeof h?h:fi(!!h),u):o},u.curve=function(h){return arguments.length?(s=h,null!=a&&(l=s(a)),u):s},u.context=function(h){return arguments.length?(null==h?a=l=null:l=s(a=h),u):a},u}function _1e(n,r){return rn?1:r>=n?0:NaN}function g1e(n){return n}function v1e(){var n=g1e,r=_1e,e=null,i=fi(0),o=fi(am),a=fi(0);function s(l){var u,h,g,ae,Ee,d=l.length,C=0,Z=new Array(d),z=new Array(d),q=+i.apply(this,arguments),re=Math.min(am,Math.max(-am,o.apply(this,arguments)-q)),Se=Math.min(Math.abs(re)/d,a.apply(this,arguments)),Ce=Se*(re<0?-1:1);for(u=0;u0&&(C+=Ee);for(null!=r?Z.sort(function(Ve,ut){return r(z[Ve],z[ut])}):null!=e&&Z.sort(function(Ve,ut){return e(l[Ve],l[ut])}),u=0,g=C?(re-d*Ce)/C:0;u0?Ee*g:0)+Ce,z[h]={data:l[h],index:u,value:Ee,startAngle:q,endAngle:ae,padAngle:Se};return z}return s.value=function(l){return arguments.length?(n="function"==typeof l?l:fi(+l),s):n},s.sortValues=function(l){return arguments.length?(r=l,e=null,s):r},s.sort=function(l){return arguments.length?(e=l,r=null,s):e},s.startAngle=function(l){return arguments.length?(i="function"==typeof l?l:fi(+l),s):i},s.endAngle=function(l){return arguments.length?(o="function"==typeof l?l:fi(+l),s):o},s.padAngle=function(l){return arguments.length?(a="function"==typeof l?l:fi(+l),s):a},s}gee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;default:this._context.lineTo(r,e)}}};var yee=Oj(vN);function bee(n){this._curve=n}function Oj(n){function r(e){return new bee(n(e))}return r._curve=n,r}function Jx(n){var r=n.curve;return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n.curve=function(e){return arguments.length?r(Oj(e)):r()._curve},n}function Cee(){return Jx(yN().curve(yee))}function wee(){var n=vee().curve(yee),r=n.curve,e=n.lineX0,i=n.lineX1,o=n.lineY0,a=n.lineY1;return n.angle=n.x,delete n.x,n.startAngle=n.x0,delete n.x0,n.endAngle=n.x1,delete n.x1,n.radius=n.y,delete n.y,n.innerRadius=n.y0,delete n.y0,n.outerRadius=n.y1,delete n.y1,n.lineStartAngle=function(){return Jx(e())},delete n.lineX0,n.lineEndAngle=function(){return Jx(i())},delete n.lineX1,n.lineInnerRadius=function(){return Jx(o())},delete n.lineY0,n.lineOuterRadius=function(){return Jx(a())},delete n.lineY1,n.curve=function(s){return arguments.length?r(Oj(s)):r()._curve},n}function Qx(n,r){return[(r=+r)*Math.cos(n-=Math.PI/2),r*Math.sin(n)]}bee.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(r,e){this._curve.point(e*Math.sin(r),e*-Math.cos(r))}};var Ij=Array.prototype.slice;function y1e(n){return n.source}function b1e(n){return n.target}function Pj(n){var r=y1e,e=b1e,i=Dj,o=Aj,a=null;function s(){var l,u=Ij.call(arguments),d=r.apply(this,u),h=e.apply(this,u);if(a||(a=l=Jd()),n(a,+i.apply(this,(u[0]=d,u)),+o.apply(this,u),+i.apply(this,(u[0]=h,u)),+o.apply(this,u)),l)return a=null,l+""||null}return s.source=function(l){return arguments.length?(r=l,s):r},s.target=function(l){return arguments.length?(e=l,s):e},s.x=function(l){return arguments.length?(i="function"==typeof l?l:fi(+l),s):i},s.y=function(l){return arguments.length?(o="function"==typeof l?l:fi(+l),s):o},s.context=function(l){return arguments.length?(a=null==l?null:l,s):a},s}function C1e(n,r,e,i,o){n.moveTo(r,e),n.bezierCurveTo(r=(r+i)/2,e,r,o,i,o)}function w1e(n,r,e,i,o){n.moveTo(r,e),n.bezierCurveTo(r,e=(e+o)/2,i,e,i,o)}function k1e(n,r,e,i,o){var a=Qx(r,e),s=Qx(r,e=(e+o)/2),l=Qx(i,e),u=Qx(i,o);n.moveTo(a[0],a[1]),n.bezierCurveTo(s[0],s[1],l[0],l[1],u[0],u[1])}function T1e(){return Pj(C1e)}function M1e(){return Pj(w1e)}function S1e(){var n=Pj(k1e);return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n}var Rj={draw:function(r,e){var i=Math.sqrt(e/C0);r.moveTo(i,0),r.arc(0,0,i,0,am)}},kee={draw:function(r,e){var i=Math.sqrt(e/5)/2;r.moveTo(-3*i,-i),r.lineTo(-i,-i),r.lineTo(-i,-3*i),r.lineTo(i,-3*i),r.lineTo(i,-i),r.lineTo(3*i,-i),r.lineTo(3*i,i),r.lineTo(i,i),r.lineTo(i,3*i),r.lineTo(-i,3*i),r.lineTo(-i,i),r.lineTo(-3*i,i),r.closePath()}},Tee=Math.sqrt(1/3),E1e=2*Tee,Mee={draw:function(r,e){var i=Math.sqrt(e/E1e),o=i*Tee;r.moveTo(0,-i),r.lineTo(o,0),r.lineTo(0,i),r.lineTo(-o,0),r.closePath()}},See=Math.sin(C0/10)/Math.sin(7*C0/10),D1e=Math.sin(am/10)*See,A1e=-Math.cos(am/10)*See,Eee={draw:function(r,e){var i=Math.sqrt(.8908130915292852*e),o=D1e*i,a=A1e*i;r.moveTo(0,-i),r.lineTo(o,a);for(var s=1;s<5;++s){var l=am*s/5,u=Math.cos(l),d=Math.sin(l);r.lineTo(d*i,-u*i),r.lineTo(u*o-d*a,d*o+u*a)}r.closePath()}},xee={draw:function(r,e){var i=Math.sqrt(e),o=-i/2;r.rect(o,o,i,i)}},Lj=Math.sqrt(3),Dee={draw:function(r,e){var i=-Math.sqrt(e/(3*Lj));r.moveTo(0,2*i),r.lineTo(-Lj*i,-i),r.lineTo(Lj*i,-i),r.closePath()}},Jc=-.5,Qc=Math.sqrt(3)/2,Zj=1/Math.sqrt(12),O1e=3*(Zj/2+1),Aee={draw:function(r,e){var i=Math.sqrt(e/O1e),o=i/2,a=i*Zj,s=o,l=i*Zj+i,u=-s,d=l;r.moveTo(o,a),r.lineTo(s,l),r.lineTo(u,d),r.lineTo(Jc*o-Qc*a,Qc*o+Jc*a),r.lineTo(Jc*s-Qc*l,Qc*s+Jc*l),r.lineTo(Jc*u-Qc*d,Qc*u+Jc*d),r.lineTo(Jc*o+Qc*a,Jc*a-Qc*o),r.lineTo(Jc*s+Qc*l,Jc*l-Qc*s),r.lineTo(Jc*u+Qc*d,Jc*d-Qc*u),r.closePath()}},I1e=[Rj,kee,Mee,xee,Eee,Dee,Aee];function P1e(){var n=fi(Rj),r=fi(64),e=null;function i(){var o;if(e||(e=o=Jd()),n.apply(this,arguments).draw(e,+r.apply(this,arguments)),o)return e=null,o+""||null}return i.type=function(o){return arguments.length?(n="function"==typeof o?o:fi(o),i):n},i.size=function(o){return arguments.length?(r="function"==typeof o?o:fi(+o),i):r},i.context=function(o){return arguments.length?(e=null==o?null:o,i):e},i}function bg(){}function bN(n,r,e){n._context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+r)/6,(n._y0+4*n._y1+e)/6)}function CN(n){this._context=n}function R1e(n){return new CN(n)}function Oee(n){this._context=n}function L1e(n){return new Oee(n)}function Iee(n){this._context=n}function Z1e(n){return new Iee(n)}function Pee(n,r){this._basis=new CN(n),this._beta=r}CN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:bN(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:bN(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},Oee.prototype={areaStart:bg,areaEnd:bg,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._x2=r,this._y2=e;break;case 1:this._point=2,this._x3=r,this._y3=e;break;case 2:this._point=3,this._x4=r,this._y4=e,this._context.moveTo((this._x0+4*this._x1+r)/6,(this._y0+4*this._y1+e)/6);break;default:bN(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},Iee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+r)/6,o=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,o):this._context.moveTo(i,o);break;case 3:this._point=4;default:bN(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},Pee.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var r=this._x,e=this._y,i=r.length-1;if(i>0)for(var d,o=r[0],a=e[0],s=r[i]-o,l=e[i]-a,u=-1;++u<=i;)d=u/i,this._basis.point(this._beta*r[u]+(1-this._beta)*(o+d*s),this._beta*e[u]+(1-this._beta)*(a+d*l));this._x=this._y=null,this._basis.lineEnd()},point:function(r,e){this._x.push(+r),this._y.push(+e)}};var N1e=function n(r){function e(i){return 1===r?new CN(i):new Pee(i,r)}return e.beta=function(i){return n(+i)},e}(.85);function wN(n,r,e){n._context.bezierCurveTo(n._x1+n._k*(n._x2-n._x0),n._y1+n._k*(n._y2-n._y0),n._x2+n._k*(n._x1-r),n._y2+n._k*(n._y1-e),n._x2,n._y2)}function Nj(n,r){this._context=n,this._k=(1-r)/6}Nj.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:wN(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2,this._x1=r,this._y1=e;break;case 2:this._point=3;default:wN(this,r,e)}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var B1e=function n(r){function e(i){return new Nj(i,r)}return e.tension=function(i){return n(+i)},e}(0);function Bj(n,r){this._context=n,this._k=(1-r)/6}Bj.prototype={areaStart:bg,areaEnd:bg,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._x3=r,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=e);break;case 2:this._point=3,this._x5=r,this._y5=e;break;default:wN(this,r,e)}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var F1e=function n(r){function e(i){return new Bj(i,r)}return e.tension=function(i){return n(+i)},e}(0);function Fj(n,r){this._context=n,this._k=(1-r)/6}Fj.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:wN(this,r,e)}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var U1e=function n(r){function e(i){return new Fj(i,r)}return e.tension=function(i){return n(+i)},e}(0);function Uj(n,r,e){var i=n._x1,o=n._y1,a=n._x2,s=n._y2;if(n._l01_a>il){var l=2*n._l01_2a+3*n._l01_a*n._l12_a+n._l12_2a,u=3*n._l01_a*(n._l01_a+n._l12_a);i=(i*l-n._x0*n._l12_2a+n._x2*n._l01_2a)/u,o=(o*l-n._y0*n._l12_2a+n._y2*n._l01_2a)/u}if(n._l23_a>il){var d=2*n._l23_2a+3*n._l23_a*n._l12_a+n._l12_2a,h=3*n._l23_a*(n._l23_a+n._l12_a);a=(a*d+n._x1*n._l23_2a-r*n._l12_2a)/h,s=(s*d+n._y1*n._l23_2a-e*n._l12_2a)/h}n._context.bezierCurveTo(i,o,a,s,n._x2,n._y2)}function Ree(n,r){this._context=n,this._alpha=r}Ree.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){if(r=+r,e=+e,this._point){var i=this._x2-r,o=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Uj(this,r,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var H1e=function n(r){function e(i){return r?new Ree(i,r):new Nj(i,0)}return e.alpha=function(i){return n(+i)},e}(.5);function Lee(n,r){this._context=n,this._alpha=r}Lee.prototype={areaStart:bg,areaEnd:bg,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(r,e){if(r=+r,e=+e,this._point){var i=this._x2-r,o=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=r,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=e);break;case 2:this._point=3,this._x5=r,this._y5=e;break;default:Uj(this,r,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var j1e=function n(r){function e(i){return r?new Lee(i,r):new Bj(i,0)}return e.alpha=function(i){return n(+i)},e}(.5);function Zee(n,r){this._context=n,this._alpha=r}Zee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){if(r=+r,e=+e,this._point){var i=this._x2-r,o=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+o*o,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Uj(this,r,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var G1e=function n(r){function e(i){return r?new Zee(i,r):new Fj(i,0)}return e.alpha=function(i){return n(+i)},e}(.5);function Nee(n){this._context=n}function z1e(n){return new Nee(n)}function Bee(n){return n<0?-1:1}function Fee(n,r,e){var i=n._x1-n._x0,o=r-n._x1,a=(n._y1-n._y0)/(i||o<0&&-0),s=(e-n._y1)/(o||i<0&&-0),l=(a*o+s*i)/(i+o);return(Bee(a)+Bee(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(l))||0}function Uee(n,r){var e=n._x1-n._x0;return e?(3*(n._y1-n._y0)/e-r)/2:r}function Hj(n,r,e){var i=n._x0,o=n._y0,a=n._x1,s=n._y1,l=(a-i)/3;n._context.bezierCurveTo(i+l,o+l*r,a-l,s-l*e,a,s)}function kN(n){this._context=n}function Hee(n){this._context=new jee(n)}function jee(n){this._context=n}function W1e(n){return new kN(n)}function V1e(n){return new Hee(n)}function Gee(n){this._context=n}function zee(n){var r,i,e=n.length-1,o=new Array(e),a=new Array(e),s=new Array(e);for(o[0]=0,a[0]=2,s[0]=n[0]+2*n[1],r=1;r=0;--r)o[r]=(s[r]-o[r+1])/a[r];for(a[e-1]=(n[e]+o[e-1])/2,r=0;r1)for(var i,o,s,e=1,a=n[r[0]],l=a.length;e=0;)e[r]=r;return e}function Q1e(n,r){return n[r]}function X1e(){var n=fi([]),r=Aw,e=Dw,i=Q1e;function o(a){var l,g,s=n.apply(this,arguments),u=a.length,d=s.length,h=new Array(d);for(l=0;l0){for(var e,i,s,o=0,a=n[0].length;o1)for(var e,o,a,s,l,u,i=0,d=n[r[0]].length;i=0?(o[0]=s,o[1]=s+=a):a<0?(o[1]=l,o[0]=l+=a):o[0]=s}function twe(n,r){if((o=n.length)>0){for(var o,e=0,i=n[r[0]],a=i.length;e0&&(a=(o=n[r[0]]).length)>0){for(var o,a,s,e=0,i=1;i=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(r,e);else{var i=this._x*(1-this._t)+r*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}}this._x=r,this._y=e}};var jj=new Date,Gj=new Date;function ws(n,r,e,i){function o(a){return n(a=new Date(+a)),a}return o.floor=o,o.ceil=function(a){return n(a=new Date(a-1)),r(a,1),n(a),a},o.round=function(a){var s=o(a),l=o.ceil(a);return a-s0))return u;do{u.push(d=new Date(+a)),r(a,l),n(a)}while(d=s)for(;n(s),!a(s);)s.setTime(s-1)},function(s,l){if(s>=s)if(l<0)for(;++l<=0;)for(;r(s,-1),!a(s););else for(;--l>=0;)for(;r(s,1),!a(s););})},e&&(o.count=function(a,s){return jj.setTime(+a),Gj.setTime(+s),n(jj),n(Gj),Math.floor(e(jj,Gj))},o.every=function(a){return a=Math.floor(a),isFinite(a)&&a>0?a>1?o.filter(i?function(s){return i(s)%a==0}:function(s){return o.count(0,s)%a==0}):o:null}),o}var MN=ws(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n});MN.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?ws(function(r){r.setTime(Math.floor(r/n)*n)},function(r,e){r.setTime(+r+e*n)},function(r,e){return(e-r)/n}):MN:null};var Yee=MN,Kee=MN.range,w0=6e4,EN=36e5,Qee=ws(function(n){n.setTime(n-n.getMilliseconds())},function(n,r){n.setTime(+n+1e3*r)},function(n,r){return(r-n)/1e3},function(n){return n.getUTCSeconds()}),Xee=Qee,$ee=Qee.range,ete=ws(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds())},function(n,r){n.setTime(+n+r*w0)},function(n,r){return(r-n)/w0},function(n){return n.getMinutes()}),awe=ete,swe=ete.range,tte=ws(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds()-n.getMinutes()*w0)},function(n,r){n.setTime(+n+r*EN)},function(n,r){return(r-n)/EN},function(n){return n.getHours()}),lwe=tte,uwe=tte.range,nte=ws(function(n){n.setHours(0,0,0,0)},function(n,r){n.setDate(n.getDate()+r)},function(n,r){return(r-n-(r.getTimezoneOffset()-n.getTimezoneOffset())*w0)/864e5},function(n){return n.getDate()-1}),cwe=nte,dwe=nte.range;function k0(n){return ws(function(r){r.setDate(r.getDate()-(r.getDay()+7-n)%7),r.setHours(0,0,0,0)},function(r,e){r.setDate(r.getDate()+7*e)},function(r,e){return(e-r-(e.getTimezoneOffset()-r.getTimezoneOffset())*w0)/6048e5})}var zj=k0(0),rte=k0(1),ite=k0(2),ote=k0(3),ate=k0(4),ste=k0(5),lte=k0(6),ute=zj.range,fwe=rte.range,pwe=ite.range,hwe=ote.range,mwe=ate.range,_we=ste.range,gwe=lte.range,cte=ws(function(n){n.setDate(1),n.setHours(0,0,0,0)},function(n,r){n.setMonth(n.getMonth()+r)},function(n,r){return r.getMonth()-n.getMonth()+12*(r.getFullYear()-n.getFullYear())},function(n){return n.getMonth()}),vwe=cte,ywe=cte.range,Wj=ws(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,r){n.setFullYear(n.getFullYear()+r)},function(n,r){return r.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});Wj.every=function(n){return isFinite(n=Math.floor(n))&&n>0?ws(function(r){r.setFullYear(Math.floor(r.getFullYear()/n)*n),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,e){r.setFullYear(r.getFullYear()+e*n)}):null};var bwe=Wj,Cwe=Wj.range,dte=ws(function(n){n.setUTCSeconds(0,0)},function(n,r){n.setTime(+n+r*w0)},function(n,r){return(r-n)/w0},function(n){return n.getUTCMinutes()}),wwe=dte,kwe=dte.range,fte=ws(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*EN)},function(n,r){return(r-n)/EN},function(n){return n.getUTCHours()}),Twe=fte,Mwe=fte.range,pte=ws(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/864e5},function(n){return n.getUTCDate()-1}),Swe=pte,Ewe=pte.range;function T0(n){return ws(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-n)%7),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCDate(r.getUTCDate()+7*e)},function(r,e){return(e-r)/6048e5})}var Vj=T0(0),hte=T0(1),mte=T0(2),_te=T0(3),gte=T0(4),vte=T0(5),yte=T0(6),bte=Vj.range,xwe=hte.range,Dwe=mte.range,Awe=_te.range,Owe=gte.range,Iwe=vte.range,Pwe=yte.range,Cte=ws(function(n){n.setUTCDate(1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCMonth(n.getUTCMonth()+r)},function(n,r){return r.getUTCMonth()-n.getUTCMonth()+12*(r.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()}),Rwe=Cte,Lwe=Cte.range,Yj=ws(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCFullYear(n.getUTCFullYear()+r)},function(n,r){return r.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});Yj.every=function(n){return isFinite(n=Math.floor(n))&&n>0?ws(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/n)*n),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCFullYear(r.getUTCFullYear()+e*n)}):null};var Zwe=Yj,Nwe=Yj.range;function Bwe(n){if(0<=n.y&&n.y<100){var r=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return r.setFullYear(n.y),r}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function xN(n){if(0<=n.y&&n.y<100){var r=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return r.setUTCFullYear(n.y),r}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function Xx(n){return{y:n,m:0,d:1,H:0,M:0,S:0,L:0}}function wte(n){var r=n.dateTime,e=n.date,i=n.time,o=n.periods,a=n.days,s=n.shortDays,l=n.months,u=n.shortMonths,d=$x(o),h=eD(o),g=$x(a),C=eD(a),Z=$x(s),z=eD(s),q=$x(l),re=eD(l),ae=$x(u),Se=eD(u),Ce={a:function Tn(er){return s[er.getDay()]},A:function jn(er){return a[er.getDay()]},b:function zn(er){return u[er.getMonth()]},B:function or(er){return l[er.getMonth()]},c:null,d:Ste,e:Ste,f:lke,H:oke,I:ake,j:ske,L:Ete,m:uke,M:cke,p:function Mr(er){return o[+(er.getHours()>=12)]},Q:Ote,s:Ite,S:dke,u:fke,U:pke,V:hke,w:mke,W:_ke,x:null,X:null,y:gke,Y:vke,Z:yke,"%":Ate},Ee={a:function _r(er){return s[er.getUTCDay()]},A:function zr(er){return a[er.getUTCDay()]},b:function Ur(er){return u[er.getUTCMonth()]},B:function Kr(er){return l[er.getUTCMonth()]},c:null,d:xte,e:xte,f:kke,H:bke,I:Cke,j:wke,L:Dte,m:Tke,M:Mke,p:function Fo(er){return o[+(er.getUTCHours()>=12)]},Q:Ote,s:Ite,S:Ske,u:Eke,U:xke,V:Dke,w:Ake,W:Oke,x:null,X:null,y:Ike,Y:Pke,Z:Rke,"%":Ate},Ve={a:function bt(er,wr,Sn){var gn=Z.exec(wr.slice(Sn));return gn?(er.w=z[gn[0].toLowerCase()],Sn+gn[0].length):-1},A:function Xe(er,wr,Sn){var gn=g.exec(wr.slice(Sn));return gn?(er.w=C[gn[0].toLowerCase()],Sn+gn[0].length):-1},b:function Pe(er,wr,Sn){var gn=ae.exec(wr.slice(Sn));return gn?(er.m=Se[gn[0].toLowerCase()],Sn+gn[0].length):-1},B:function ft(er,wr,Sn){var gn=q.exec(wr.slice(Sn));return gn?(er.m=re[gn[0].toLowerCase()],Sn+gn[0].length):-1},c:function Nt(er,wr,Sn){return ot(er,r,wr,Sn)},d:Tte,e:Tte,f:tke,H:Mte,I:Mte,j:Qwe,L:eke,m:Jwe,M:Xwe,p:function ht(er,wr,Sn){var gn=d.exec(wr.slice(Sn));return gn?(er.p=h[gn[0].toLowerCase()],Sn+gn[0].length):-1},Q:rke,s:ike,S:$we,u:Gwe,U:zwe,V:Wwe,w:jwe,W:Vwe,x:function Gt(er,wr,Sn){return ot(er,e,wr,Sn)},X:function It(er,wr,Sn){return ot(er,i,wr,Sn)},y:Kwe,Y:Ywe,Z:qwe,"%":nke};function ut(er,wr){return function(Sn){var Bn,nr,vr,gn=[],tr=-1,un=0,bn=er.length;for(Sn instanceof Date||(Sn=new Date(+Sn));++tr53)return null;"w"in gn||(gn.w=1),"Z"in gn?(bn=(un=xN(Xx(gn.y))).getUTCDay(),un=bn>4||0===bn?v0.ceil(un):v0(un),un=Ux.offset(un,7*(gn.V-1)),gn.y=un.getUTCFullYear(),gn.m=un.getUTCMonth(),gn.d=un.getUTCDate()+(gn.w+6)%7):(bn=(un=wr(Xx(gn.y))).getDay(),un=bn>4||0===bn?_0.ceil(un):_0(un),un=Fx.offset(un,7*(gn.V-1)),gn.y=un.getFullYear(),gn.m=un.getMonth(),gn.d=un.getDate()+(gn.w+6)%7)}else("W"in gn||"U"in gn)&&("w"in gn||(gn.w="u"in gn?gn.u%7:"W"in gn?1:0),bn="Z"in gn?xN(Xx(gn.y)).getUTCDay():wr(Xx(gn.y)).getDay(),gn.m=0,gn.d="W"in gn?(gn.w+6)%7+7*gn.W-(bn+5)%7:gn.w+7*gn.U-(bn+6)%7);return"Z"in gn?(gn.H+=gn.Z/100|0,gn.M+=gn.Z%100,xN(gn)):wr(gn)}}function ot(er,wr,Sn,gn){for(var Bn,nr,tr=0,un=wr.length,bn=Sn.length;tr=bn)return-1;if(37===(Bn=wr.charCodeAt(tr++))){if(Bn=wr.charAt(tr++),!(nr=Ve[Bn in kte?wr.charAt(tr++):Bn])||(gn=nr(er,Sn,gn))<0)return-1}else if(Bn!=Sn.charCodeAt(gn++))return-1}return gn}return Ce.x=ut(e,Ce),Ce.X=ut(i,Ce),Ce.c=ut(r,Ce),Ee.x=ut(e,Ee),Ee.X=ut(i,Ee),Ee.c=ut(r,Ee),{format:function(wr){var Sn=ut(wr+="",Ce);return Sn.toString=function(){return wr},Sn},parse:function(wr){var Sn=Ae(wr+="",Bwe);return Sn.toString=function(){return wr},Sn},utcFormat:function(wr){var Sn=ut(wr+="",Ee);return Sn.toString=function(){return wr},Sn},utcParse:function(wr){var Sn=Ae(wr,xN);return Sn.toString=function(){return wr},Sn}}}var Ow,Pte,Rte,Kj,qj,kte={"-":"",_:" ",0:"0"},ol=/^\s*\d+/,Fwe=/^%/,Uwe=/[\\^$*+?|[\]().{}]/g;function Co(n,r,e){var i=n<0?"-":"",o=(i?-n:n)+"",a=o.length;return i+(a68?1900:2e3),e+i[0].length):-1}function qwe(n,r,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(e,e+6));return i?(n.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function Jwe(n,r,e){var i=ol.exec(r.slice(e,e+2));return i?(n.m=i[0]-1,e+i[0].length):-1}function Tte(n,r,e){var i=ol.exec(r.slice(e,e+2));return i?(n.d=+i[0],e+i[0].length):-1}function Qwe(n,r,e){var i=ol.exec(r.slice(e,e+3));return i?(n.m=0,n.d=+i[0],e+i[0].length):-1}function Mte(n,r,e){var i=ol.exec(r.slice(e,e+2));return i?(n.H=+i[0],e+i[0].length):-1}function Xwe(n,r,e){var i=ol.exec(r.slice(e,e+2));return i?(n.M=+i[0],e+i[0].length):-1}function $we(n,r,e){var i=ol.exec(r.slice(e,e+2));return i?(n.S=+i[0],e+i[0].length):-1}function eke(n,r,e){var i=ol.exec(r.slice(e,e+3));return i?(n.L=+i[0],e+i[0].length):-1}function tke(n,r,e){var i=ol.exec(r.slice(e,e+6));return i?(n.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function nke(n,r,e){var i=Fwe.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function rke(n,r,e){var i=ol.exec(r.slice(e));return i?(n.Q=+i[0],e+i[0].length):-1}function ike(n,r,e){var i=ol.exec(r.slice(e));return i?(n.Q=1e3*+i[0],e+i[0].length):-1}function Ste(n,r){return Co(n.getDate(),r,2)}function oke(n,r){return Co(n.getHours(),r,2)}function ake(n,r){return Co(n.getHours()%12||12,r,2)}function ske(n,r){return Co(1+Fx.count(tf(n),n),r,3)}function Ete(n,r){return Co(n.getMilliseconds(),r,3)}function lke(n,r){return Ete(n,r)+"000"}function uke(n,r){return Co(n.getMonth()+1,r,2)}function cke(n,r){return Co(n.getMinutes(),r,2)}function dke(n,r){return Co(n.getSeconds(),r,2)}function fke(n){var r=n.getDay();return 0===r?7:r}function pke(n,r){return Co(sN.count(tf(n),n),r,2)}function hke(n,r){var e=n.getDay();return n=e>=4||0===e?rm(n):rm.ceil(n),Co(rm.count(tf(n),n)+(4===tf(n).getDay()),r,2)}function mke(n){return n.getDay()}function _ke(n,r){return Co(_0.count(tf(n),n),r,2)}function gke(n,r){return Co(n.getFullYear()%100,r,2)}function vke(n,r){return Co(n.getFullYear()%1e4,r,4)}function yke(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+Co(r/60|0,"0",2)+Co(r%60,"0",2)}function xte(n,r){return Co(n.getUTCDate(),r,2)}function bke(n,r){return Co(n.getUTCHours(),r,2)}function Cke(n,r){return Co(n.getUTCHours()%12||12,r,2)}function wke(n,r){return Co(1+Ux.count(nf(n),n),r,3)}function Dte(n,r){return Co(n.getUTCMilliseconds(),r,3)}function kke(n,r){return Dte(n,r)+"000"}function Tke(n,r){return Co(n.getUTCMonth()+1,r,2)}function Mke(n,r){return Co(n.getUTCMinutes(),r,2)}function Ske(n,r){return Co(n.getUTCSeconds(),r,2)}function Eke(n){var r=n.getUTCDay();return 0===r?7:r}function xke(n,r){return Co(uN.count(nf(n),n),r,2)}function Dke(n,r){var e=n.getUTCDay();return n=e>=4||0===e?im(n):im.ceil(n),Co(im.count(nf(n),n)+(4===nf(n).getUTCDay()),r,2)}function Ake(n){return n.getUTCDay()}function Oke(n,r){return Co(v0.count(nf(n),n),r,2)}function Ike(n,r){return Co(n.getUTCFullYear()%100,r,2)}function Pke(n,r){return Co(n.getUTCFullYear()%1e4,r,4)}function Rke(){return"+0000"}function Ate(){return"%"}function Ote(n){return+n}function Ite(n){return Math.floor(+n/1e3)}function Lte(n){return Ow=wte(n),Pte=Ow.format,Rte=Ow.parse,Kj=Ow.utcFormat,qj=Ow.utcParse,Ow}Lte({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Zte="%Y-%m-%dT%H:%M:%S.%LZ";var Zke=Date.prototype.toISOString?function Lke(n){return n.toISOString()}:Kj(Zte),Nke=Zke;var Fke=+new Date("2000-01-01T00:00:00.000Z")?function Bke(n){var r=new Date(n);return isNaN(r)?null:r}:qj(Zte),Uke=Fke;function Hke(n,r,e){var i=new ox,o=r;return null==r?(i.restart(n,r,e),i):(r=+r,e=null==e?ug():+e,i.restart(function a(s){s+=o,i.restart(a,o+=r,e),n(s)},r,e),i)}function jke(){}function Jj(n){return null==n?jke:function(){return this.querySelector(n)}}function zke(){return[]}function Nte(n){return null==n?zke:function(){return this.querySelectorAll(n)}}function Bte(n){return function(){return this.matches(n)}}function Fte(n){return new Array(n.length)}function DN(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}DN.prototype={constructor:DN,appendChild:function(r){return this._parent.insertBefore(r,this._next)},insertBefore:function(r,e){return this._parent.insertBefore(r,e)},querySelector:function(r){return this._parent.querySelector(r)},querySelectorAll:function(r){return this._parent.querySelectorAll(r)}};function qke(n,r,e,i,o,a){for(var l,s=0,u=r.length,d=a.length;sr?1:n>=r?0:NaN}var Qj="http://www.w3.org/1999/xhtml",Hte={svg:"http://www.w3.org/2000/svg",xhtml:Qj,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function AN(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),Hte.hasOwnProperty(r)?{space:Hte[r],local:n}:n}function cTe(n){return function(){this.removeAttribute(n)}}function dTe(n){return function(){this.removeAttributeNS(n.space,n.local)}}function fTe(n,r){return function(){this.setAttribute(n,r)}}function pTe(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function hTe(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function mTe(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}}function jte(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function gTe(n){return function(){this.style.removeProperty(n)}}function vTe(n,r,e){return function(){this.style.setProperty(n,r,e)}}function yTe(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function Iw(n,r){return n.style.getPropertyValue(r)||jte(n).getComputedStyle(n,null).getPropertyValue(r)}function CTe(n){return function(){delete this[n]}}function wTe(n,r){return function(){this[n]=r}}function kTe(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function Gte(n){return n.trim().split(/^|\s+/)}function Xj(n){return n.classList||new zte(n)}function zte(n){this._node=n,this._names=Gte(n.getAttribute("class")||"")}function Wte(n,r){for(var e=Xj(n),i=-1,o=r.length;++i=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};var Kte={},M0=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Kte={mouseenter:"mouseover",mouseleave:"mouseout"}));function $Te(n,r,e){return n=qte(n,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&n.call(this,i)}}function qte(n,r,e){return function(i){var o=M0;M0=i;try{n.call(this,this.__data__,r,e)}finally{M0=o}}}function eMe(n){return n.trim().split(/^|\s+/).map(function(r){var e="",i=r.indexOf(".");return i>=0&&(e=r.slice(i+1),r=r.slice(0,i)),{type:r,name:e}})}function tMe(n){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e=Ce&&(Ce=Se+1);!(Ve=re[Ce])&&++Ce=0;)(s=i[o])&&(a&&4^s.compareDocumentPosition(a)&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function nTe(n){function r(g,C){return g&&C?n(g.__data__,C.__data__):!g-!C}n||(n=rTe);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a1?this.each((null==r?gTe:"function"==typeof r?yTe:vTe)(n,r,null==e?"":e)):Iw(this.node(),n)},property:function TTe(n,r){return arguments.length>1?this.each((null==r?CTe:"function"==typeof r?kTe:wTe)(n,r)):this.node()[n]},classed:function xTe(n,r){var e=Gte(n+"");if(arguments.length<2){for(var i=Xj(this.node()),o=-1,a=e.length;++o0)throw new Error("too late; already scheduled");return e}function S0(n,r){var e=of(n,r);if(e.state>2)throw new Error("too late; already started");return e}function of(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}function ene(n,r){var i,o,s,e=n.__transition,a=!0;if(e){for(s in r=null==r?null:r+"",e)(i=e[s]).name===r?(o=i.state>2&&i.state<5,i.state=6,i.timer.stop(),o&&i.on.call("interrupt",n,n.__data__,i.index,i.group),delete e[s]):a=!1;a&&delete n.__transition}}function Cg(n,r){return n=+n,r=+r,function(e){return n*(1-e)+r*e}}var nD,iG,rne,RN,tne=180/Math.PI,rG={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function nne(n,r,e,i,o,a){var s,l,u;return(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s),(u=n*e+r*i)&&(e-=n*u,i-=r*u),(l=Math.sqrt(e*e+i*i))&&(e/=l,i/=l,u/=l),n*i180?h+=360:h-d>180&&(d+=360),C.push({i:g.push(o(g)+"rotate(",null,i)-2,x:Cg(d,h)})):h&&g.push(o(g)+"rotate("+h+i)}(d.rotate,h.rotate,g,C),function l(d,h,g,C){d!==h?C.push({i:g.push(o(g)+"skewX(",null,i)-2,x:Cg(d,h)}):h&&g.push(o(g)+"skewX("+h+i)}(d.skewX,h.skewX,g,C),function u(d,h,g,C,Z,z){if(d!==g||h!==C){var q=Z.push(o(Z)+"scale(",null,",",null,")");z.push({i:q-4,x:Cg(d,g)},{i:q-2,x:Cg(h,C)})}else(1!==g||1!==C)&&Z.push(o(Z)+"scale("+g+","+C+")")}(d.scaleX,d.scaleY,h.scaleX,h.scaleY,g,C),d=h=null,function(Z){for(var re,z=-1,q=C.length;++z>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?ZN(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?ZN(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=bMe.exec(n))?new yc(r[1],r[2],r[3],1):(r=CMe.exec(n))?new yc(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=wMe.exec(n))?ZN(r[1],r[2],r[3],r[4]):(r=kMe.exec(n))?ZN(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=TMe.exec(n))?fne(r[1],r[2]/100,r[3]/100,1):(r=MMe.exec(n))?fne(r[1],r[2]/100,r[3]/100,r[4]):ane.hasOwnProperty(n)?une(ane[n]):"transparent"===n?new yc(NaN,NaN,NaN,0):null}function une(n){return new yc(n>>16&255,n>>8&255,255&n,1)}function ZN(n,r,e,i){return i<=0&&(n=r=e=NaN),new yc(n,r,e,i)}function EMe(n){return n instanceof rD||(n=aD(n)),n?new yc((n=n.rgb()).r,n.g,n.b,n.opacity):new yc}function NN(n,r,e,i){return 1===arguments.length?EMe(n):new yc(n,r,e,null==i?1:i)}function yc(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function cne(){return"#"+sG(this.r)+sG(this.g)+sG(this.b)}function dne(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}function sG(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function fne(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new wp(n,r,e,i)}function pne(n){if(n instanceof wp)return new wp(n.h,n.s,n.l,n.opacity);if(n instanceof rD||(n=aD(n)),!n)return new wp;if(n instanceof wp)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,o=Math.min(r,e,i),a=Math.max(r,e,i),s=NaN,l=a-o,u=(a+o)/2;return l?(s=r===a?(e-i)/l+6*(e0&&u<1?0:s,new wp(s,l,u,n.opacity)}function wp(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function lG(n,r,e){return 255*(n<60?r+(e-r)*n/60:n<180?e:n<240?r+(e-r)*(240-n)/60:r)}function hne(n,r,e,i,o){var a=n*n,s=a*n;return((1-3*n+3*a-s)*r+(4-6*a+3*s)*e+(1+3*n+3*a-3*s)*i+s*o)/6}function mne(n){return function(){return n}}function _ne(n,r){return function(e){return n+e*r}}function IMe(n){return 1==(n=+n)?gne:function(r,e){return e-r?function OMe(n,r,e){return n=Math.pow(n,e),r=Math.pow(r,e)-n,e=1/e,function(i){return Math.pow(n+i*r,e)}}(r,e,n):mne(isNaN(r)?e:r)}}function gne(n,r){var e=r-n;return e?_ne(n,e):mne(isNaN(n)?r:n)}aG(rD,aD,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:sne,formatHex:sne,formatHsl:function SMe(){return pne(this).formatHsl()},formatRgb:lne,toString:lne}),aG(yc,NN,one(rD,{brighter:function(r){return r=null==r?LN:Math.pow(LN,r),new yc(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new yc(this.r*r,this.g*r,this.b*r,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:cne,formatHex:cne,formatRgb:dne,toString:dne})),aG(wp,function xMe(n,r,e,i){return 1===arguments.length?pne(n):new wp(n,r,e,null==i?1:i)},one(rD,{brighter:function(r){return r=null==r?LN:Math.pow(LN,r),new wp(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new wp(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+360*(this.h<0),e=isNaN(r)||isNaN(this.s)?0:this.s,i=this.l,o=i+(i<.5?i:1-i)*e,a=2*i-o;return new yc(lG(r>=240?r-240:r+120,a,o),lG(r,a,o),lG(r<120?r+240:r-120,a,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var r=this.opacity;return(1===(r=isNaN(r)?1:Math.max(0,Math.min(1,r)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===r?")":", "+r+")")}}));var vne=function n(r){var e=IMe(r);function i(o,a){var s=e((o=NN(o)).r,(a=NN(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),d=gne(o.opacity,a.opacity);return function(h){return o.r=s(h),o.g=l(h),o.b=u(h),o.opacity=d(h),o+""}}return i.gamma=n,i}(1);function yne(n){return function(r){var s,l,e=r.length,i=new Array(e),o=new Array(e),a=new Array(e);for(s=0;s=1?(e=1,r-1):Math.floor(e*r),o=n[i],a=n[i+1],s=i>0?n[i-1]:2*o-a,l=ie&&(a=r.slice(e,a),l[s]?l[s]+=a:l[++s]=a),(i=i[0])===(o=o[0])?l[s]?l[s]+=o:l[++s]=o:(l[++s]=null,u.push({i:s,x:Cg(i,o)})),e=cG.lastIndex;return e=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?nG:S0;return function(){var s=a(this,n),l=s.on;l!==i&&(o=(i=l).copy()).on(r,e),s.on=o}}var uSe=tD.prototype.constructor;function _Se(n,r,e){function i(){var o=this,a=r.apply(o,arguments);return a&&function(s){o.style.setProperty(n,a(s),e)}}return i._value=r,i}var wSe=0;function kp(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function Cne(n){return tD().transition(n)}function wne(){return++wSe}var Rw=tD.prototype;kp.prototype=Cne.prototype={constructor:kp,select:function sSe(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=Jj(n));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s1&&i.name===r)return new kp([[n]],MSe,r,+o);return null}function kne(n){return function(){return n}}function ESe(n){return n[0]}function xSe(n){return n[1]}function fG(){this._=null}function BN(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function sD(n,r){var e=r,i=r.R,o=e.U;o?o.L===e?o.L=i:o.R=i:n._=i,i.U=o,e.U=i,e.R=i.L,e.R&&(e.R.U=e),i.L=e}function lD(n,r){var e=r,i=r.L,o=e.U;o?o.L===e?o.L=i:o.R=i:n._=i,i.U=o,e.U=i,e.L=i.R,e.L&&(e.L.U=e),i.R=e}function Tne(n){for(;n.L;)n=n.L;return n}fG.prototype={constructor:fG,insert:function(r,e){var i,o,a;if(r){if(e.P=r,e.N=r.N,r.N&&(r.N.P=e),r.N=e,r.R){for(r=r.R;r.L;)r=r.L;r.L=e}else r.R=e;i=r}else this._?(r=Tne(this._),e.P=null,e.N=r,r.P=r.L=e,i=r):(e.P=e.N=null,this._=e,i=null);for(e.L=e.R=null,e.U=i,e.C=!0,r=e;i&&i.C;)i===(o=i.U).L?(a=o.R)&&a.C?(i.C=a.C=!1,o.C=!0,r=o):(r===i.R&&(sD(this,i),i=(r=i).U),i.C=!1,o.C=!0,lD(this,o)):(a=o.L)&&a.C?(i.C=a.C=!1,o.C=!0,r=o):(r===i.L&&(lD(this,i),i=(r=i).U),i.C=!1,o.C=!0,sD(this,o)),i=r.U;this._.C=!1},remove:function(r){r.N&&(r.N.P=r.P),r.P&&(r.P.N=r.N),r.N=r.P=null;var i,s,l,e=r.U,o=r.L,a=r.R;if(s=o?a?Tne(a):o:a,e?e.L===r?e.L=s:e.R=s:this._=s,o&&a?(l=s.C,s.C=r.C,s.L=o,o.U=s,s!==a?(e=s.U,s.U=r.U,r=s.R,e.L=r,s.R=a,a.U=s):(s.U=e,e=s,r=s.R)):(l=r.C,r=s),r&&(r.U=e),!l){if(r&&r.C)return void(r.C=!1);do{if(r===this._)break;if(r===e.L){if((i=e.R).C&&(i.C=!1,e.C=!0,sD(this,e),i=e.R),i.L&&i.L.C||i.R&&i.R.C){(!i.R||!i.R.C)&&(i.L.C=!1,i.C=!0,lD(this,i),i=e.R),i.C=e.C,e.C=i.R.C=!1,sD(this,e),r=this._;break}}else if((i=e.L).C&&(i.C=!1,e.C=!0,lD(this,e),i=e.L),i.L&&i.L.C||i.R&&i.R.C){(!i.L||!i.L.C)&&(i.R.C=!1,i.C=!0,sD(this,i),i=e.L),i.C=e.C,e.C=i.L.C=!1,lD(this,e),r=this._;break}i.C=!0,r=e,e=e.U}while(!r.C);r&&(r.C=!1)}}};var Mne=fG;function uD(n,r,e,i){var o=[null,null],a=Tl.push(o)-1;return o.left=n,o.right=r,e&&FN(o,n,r,e),i&&FN(o,r,n,i),bc[n.index].halfedges.push(a),bc[r.index].halfedges.push(a),o}function cD(n,r,e){var i=[r,e];return i.left=n,i}function FN(n,r,e,i){n[0]||n[1]?n.left===e?n[1]=i:n[0]=i:(n[0]=i,n.left=r,n.right=e)}function DSe(n,r,e,i,o){var q,a=n[0],s=n[1],l=a[0],u=a[1],g=0,C=1,Z=s[0]-l,z=s[1]-u;if(q=r-l,Z||!(q>0)){if(q/=Z,Z<0){if(q0){if(q>C)return;q>g&&(g=q)}if(q=i-l,Z||!(q<0)){if(q/=Z,Z<0){if(q>C)return;q>g&&(g=q)}else if(Z>0){if(q0)){if(q/=z,z<0){if(q0){if(q>C)return;q>g&&(g=q)}if(q=o-u,z||!(q<0)){if(q/=z,z<0){if(q>C)return;q>g&&(g=q)}else if(z>0){if(q0)&&!(C<1)||(g>0&&(n[0]=[l+g*Z,u+g*z]),C<1&&(n[1]=[l+C*Z,u+C*z])),!0}}}}}function ASe(n,r,e,i,o){var a=n[1];if(a)return!0;var q,re,s=n[0],l=n.left,u=n.right,d=l[0],h=l[1],g=u[0],C=u[1],Z=(d+g)/2,z=(h+C)/2;if(C===h){if(Z=i)return;if(d>g){if(s){if(s[1]>=o)return}else s=[Z,e];a=[Z,o]}else{if(s){if(s[1]1)if(d>g){if(s){if(s[1]>=o)return}else s=[(e-re)/q,e];a=[(o-re)/q,o]}else{if(s){if(s[1]=i)return}else s=[r,q*r+re];a=[i,q*i+re]}else{if(s){if(s[0]=-jSe)){var Z=u*u+d*d,z=h*h+g*g,q=(g*Z-d*z)/C,re=(u*z-h*Z)/C,ae=Ene.pop()||new NSe;ae.arc=n,ae.site=o,ae.x=q+s,ae.y=(ae.cy=re+l)+Math.sqrt(q*q+re*re),n.circle=ae;for(var Se=null,Ce=dD._;Ce;)if(ae.ywo)l=l.L;else{if(!((s=r-HSe(l,e))>wo)){a>-wo?(i=l.P,o=l):s>-wo?(i=l,o=l.N):i=o=l;break}if(!l.R){i=l;break}l=l.R}!function ISe(n){return bc[n.index]={site:n,halfedges:[]}}(n);var u=Dne(n);if(Nw.insert(i,u),i||o){if(i===o)return Zw(i),o=Dne(i.site),Nw.insert(u,o),u.edge=o.edge=uD(i.site,u.site),Lw(i),void Lw(o);if(!o)return void(u.edge=uD(i.site,u.site));Zw(i),Zw(o);var d=i.site,h=d[0],g=d[1],C=n[0]-h,Z=n[1]-g,z=o.site,q=z[0]-h,re=z[1]-g,ae=2*(C*re-Z*q),Se=C*C+Z*Z,Ce=q*q+re*re,Ee=[(re*Se-Z*Ce)/ae+h,(C*Ce-q*Se)/ae+g];FN(o.edge,d,z,Ee),u.edge=uD(d,n,null,Ee),o.edge=uD(n,z,null,Ee),Lw(i),Lw(o)}}function Ane(n,r){var e=n.site,i=e[0],o=e[1],a=o-r;if(!a)return i;var s=n.P;if(!s)return-1/0;var l=(e=s.site)[0],u=e[1],d=u-r;if(!d)return l;var h=l-i,g=1/a-1/d,C=h/d;return g?(-C+Math.sqrt(C*C-2*g*(h*h/(-2*d)-u+d/2+o-a/2)))/g+i:(i+l)/2}function HSe(n,r){var e=n.N;if(e)return Ane(e,r);var i=n.site;return i[1]===r?i[0]:1/0}var Nw,bc,dD,Tl,wo=1e-6,jSe=1e-12;function GSe(n,r,e){return(n[0]-e[0])*(r[1]-n[1])-(n[0]-r[0])*(e[1]-n[1])}function zSe(n,r){return r[1]-n[1]||r[0]-n[0]}function mG(n,r){var i,o,a,e=n.sort(zSe).pop();for(Tl=[],bc=new Array(n.length),Nw=new Mne,dD=new Mne;;)if(a=pG,e&&(!a||e[1]wo||Math.abs(a[0][1]-a[1][1])>wo)||delete Tl[o]})(s,l,u,d),function ZSe(n,r,e,i){var a,s,l,u,d,h,g,C,Z,z,q,re,o=bc.length,ae=!0;for(a=0;awo||Math.abs(re-Z)>wo)&&(d.splice(u,0,Tl.push(cD(l,z,Math.abs(q-n)wo?[n,Math.abs(C-n)wo?[Math.abs(Z-i)wo?[e,Math.abs(C-e)wo?[Math.abs(Z-r)=l)return null;var d=r-u.site[0],h=e-u.site[1],g=d*d+h*h;do{u=o.cells[a=s],s=null,u.halfedges.forEach(function(C){var Z=o.edges[C],z=Z.left;if(z!==u.site&&z||(z=Z.right)){var q=r-z[0],re=e-z[1],ae=q*q+re*re;aei?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>a?(a+s)/2:Math.min(0,a)||Math.max(0,s))}function Lne(){var h,g,n=QSe,r=XSe,e=tEe,i=$Se,o=eEe,a=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],l=250,u=qSe,d=Xy("start","zoom","end"),C=500,z=0;function q(Pe){Pe.property("__zoom",Rne).on("wheel.zoom",ut).on("mousedown.zoom",Ae).on("dblclick.zoom",ot).filter(o).on("touchstart.zoom",ht).on("touchmove.zoom",bt).on("touchend.zoom touchcancel.zoom",Xe).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function re(Pe,ft){return(ft=Math.max(a[0],Math.min(a[1],ft)))===Pe.k?Pe:new sm(ft,Pe.x,Pe.y)}function ae(Pe,ft,Nt){var Gt=ft[0]-Nt[0]*Pe.k,It=ft[1]-Nt[1]*Pe.k;return Gt===Pe.x&&It===Pe.y?Pe:new sm(Pe.k,Gt,It)}function Se(Pe){return[(+Pe[0][0]+ +Pe[1][0])/2,(+Pe[0][1]+ +Pe[1][1])/2]}function Ce(Pe,ft,Nt){Pe.on("start.zoom",function(){Ee(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){Ee(this,arguments).end()}).tween("zoom",function(){var Gt=this,It=arguments,Tn=Ee(Gt,It),jn=r.apply(Gt,It),zn=Nt||Se(jn),or=Math.max(jn[1][0]-jn[0][0],jn[1][1]-jn[0][1]),Mr=Gt.__zoom,_r="function"==typeof ft?ft.apply(Gt,It):ft,zr=u(Mr.invert(zn).concat(or/Mr.k),_r.invert(zn).concat(or/_r.k));return function(Ur){if(1===Ur)Ur=_r;else{var Kr=zr(Ur),Fo=or/Kr[2];Ur=new sm(Fo,zn[0]-Kr[0]*Fo,zn[1]-Kr[1]*Fo)}Tn.zoom(null,Ur)}})}function Ee(Pe,ft,Nt){return!Nt&&Pe.__zooming||new Ve(Pe,ft)}function Ve(Pe,ft){this.that=Pe,this.args=ft,this.active=0,this.extent=r.apply(Pe,ft),this.taps=0}function ut(){if(n.apply(this,arguments)){var Pe=Ee(this,arguments),ft=this.__zoom,Nt=Math.max(a[0],Math.min(a[1],ft.k*Math.pow(2,i.apply(this,arguments)))),Gt=Kd(this);ft.k!==Nt&&(Pe.wheel?((Pe.mouse[0][0]!==Gt[0]||Pe.mouse[0][1]!==Gt[1])&&(Pe.mouse[1]=ft.invert(Pe.mouse[0]=Gt)),clearTimeout(Pe.wheel)):(Pe.mouse=[Gt,ft.invert(Gt)],tw(this),Pe.start()),pD(),Pe.wheel=setTimeout(It,150),Pe.zoom("mouse",e(ae(re(ft,Nt),Pe.mouse[0],Pe.mouse[1]),Pe.extent,s)))}function It(){Pe.wheel=null,Pe.end()}}function Ae(){if(!g&&n.apply(this,arguments)){var Pe=Ee(this,arguments,!0),ft=vi(Zn.view).on("mousemove.zoom",Tn,!0).on("mouseup.zoom",jn,!0),Nt=Kd(this),Gt=Zn.clientX,It=Zn.clientY;xL(Zn.view),gG(),Pe.mouse=[Nt,this.__zoom.invert(Nt)],tw(this),Pe.start()}function Tn(){if(pD(),!Pe.moved){var zn=Zn.clientX-Gt,or=Zn.clientY-It;Pe.moved=zn*zn+or*or>z}Pe.zoom("mouse",e(ae(Pe.that.__zoom,Pe.mouse[0]=Kd(Pe.that),Pe.mouse[1]),Pe.extent,s))}function jn(){ft.on("mousemove.zoom mouseup.zoom",null),DL(Zn.view,Pe.moved),pD(),Pe.end()}}function ot(){if(n.apply(this,arguments)){var Pe=this.__zoom,ft=Kd(this),Nt=Pe.invert(ft),Gt=Pe.k*(Zn.shiftKey?.5:2),It=e(ae(re(Pe,Gt),ft,Nt),r.apply(this,arguments),s);pD(),l>0?vi(this).transition().duration(l).call(Ce,It,ft):vi(this).call(q.transform,It)}}function ht(){if(n.apply(this,arguments)){var Gt,It,Tn,jn,Pe=Zn.touches,ft=Pe.length,Nt=Ee(this,arguments,Zn.changedTouches.length===ft);for(gG(),It=0;It=0;l--)(s=n[l])&&(a=(o<3?s(a):o>3?s(r,e,a):s(r,e))||a);return o>3&&a&&Object.defineProperty(r,e,a),a}([(0,t.GSi)(),function(n,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,r)}("design:paramtypes",[])],vG);var Tp=m(8723);function iEe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"linearGradient"),t._UZ(1,"stop",5)(2,"stop",6),t.qZA()),2&n){var e=t.oxw(2);t.uIk("id",e.svg.outerLinearGradient.id),t.xp6(1),t.uIk("stop-color",e.svg.outerLinearGradient.colorStop1)("stop-opacity",1),t.xp6(1),t.uIk("stop-color",e.svg.outerLinearGradient.colorStop2)("stop-opacity",1)}}function oEe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"radialGradient"),t._UZ(1,"stop",5)(2,"stop",6),t.qZA()),2&n){var e=t.oxw(2);t.uIk("id",e.svg.radialGradient.id),t.xp6(1),t.uIk("stop-color",e.svg.radialGradient.colorStop1)("stop-opacity",1),t.xp6(1),t.uIk("stop-color",e.svg.radialGradient.colorStop2)("stop-opacity",1)}}function aEe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"circle")),2&n){var e=t.oxw(3);t.uIk("cx",e.svg.backgroundCircle.cx)("cy",e.svg.backgroundCircle.cy)("r",e.svg.backgroundCircle.r)("fill",e.svg.backgroundCircle.fill)("fill-opacity",e.svg.backgroundCircle.fillOpacity)("stroke",e.svg.backgroundCircle.stroke)("stroke-width",e.svg.backgroundCircle.strokeWidth)}}function sEe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"circle")),2&n){var e=t.oxw(3);t.zWS("fill","url(",e.window.location.href,"#",e.svg.radialGradient.id,")"),t.uIk("cx",e.svg.backgroundCircle.cx)("cy",e.svg.backgroundCircle.cy)("r",e.svg.backgroundCircle.r)("fill-opacity",e.svg.backgroundCircle.fillOpacity)("stroke",e.svg.backgroundCircle.stroke)("stroke-width",e.svg.backgroundCircle.strokeWidth)}}function lEe(n,r){if(1&n&&(t.O4$(),t.ynx(0),t.YNc(1,aEe,1,7,"circle",2),t.YNc(2,sEe,1,8,"circle",2),t.BQk()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",!e.options.backgroundGradient),t.xp6(1),t.Q6J("ngIf",e.options.backgroundGradient)}}function uEe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"circle")),2&n){var e=t.oxw(2);t.uIk("cx",e.svg.circle.cx)("cy",e.svg.circle.cy)("r",e.svg.circle.r)("fill",e.svg.circle.fill)("stroke",e.svg.circle.stroke)("stroke-width",e.svg.circle.strokeWidth)}}function cEe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"path")),2&n){var e=t.oxw(3);t.uIk("d",e.svg.path.d)("stroke",e.svg.path.stroke)("stroke-width",e.svg.path.strokeWidth)("stroke-linecap",e.svg.path.strokeLinecap)("fill",e.svg.path.fill)}}function dEe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"path")),2&n){var e=t.oxw(3);t.zWS("stroke","url(",e.window.location.href,"#",e.svg.outerLinearGradient.id,")"),t.uIk("d",e.svg.path.d)("stroke-width",e.svg.path.strokeWidth)("stroke-linecap",e.svg.path.strokeLinecap)("fill",e.svg.path.fill)}}function fEe(n,r){if(1&n&&(t.O4$(),t.ynx(0),t.YNc(1,cEe,1,5,"path",2),t.YNc(2,dEe,1,6,"path",2),t.BQk()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",!e.options.outerStrokeGradient),t.xp6(1),t.Q6J("ngIf",e.options.outerStrokeGradient)}}function pEe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"tspan"),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(4);t.uIk("x",i.svg.title.x)("y",i.svg.title.y)("dy",e.dy)("font-size",i.svg.title.fontSize)("font-weight",i.svg.title.fontWeight)("fill",i.svg.title.color),t.xp6(1),t.Oqu(e.span)}}function hEe(n,r){if(1&n&&(t.O4$(),t.ynx(0),t.YNc(1,pEe,2,7,"tspan",8),t.BQk()),2&n){var e=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",e.svg.title.tspans)}}function mEe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"tspan"),t._uU(1),t.qZA()),2&n){var e=t.oxw(3);t.uIk("font-size",e.svg.units.fontSize)("font-weight",e.svg.units.fontWeight)("fill",e.svg.units.color),t.xp6(1),t.Oqu(e.svg.units.text)}}function _Ee(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"tspan"),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(4);t.uIk("x",i.svg.subtitle.x)("y",i.svg.subtitle.y)("dy",e.dy)("font-size",i.svg.subtitle.fontSize)("font-weight",i.svg.subtitle.fontWeight)("fill",i.svg.subtitle.color),t.xp6(1),t.Oqu(e.span)}}function gEe(n,r){if(1&n&&(t.O4$(),t.ynx(0),t.YNc(1,_Ee,2,7,"tspan",8),t.BQk()),2&n){var e=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",e.svg.subtitle.tspans)}}function vEe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"text",7),t.YNc(1,hEe,2,1,"ng-container",2),t.YNc(2,mEe,2,4,"tspan",2),t.YNc(3,gEe,2,1,"ng-container",2),t.qZA()),2&n){var e=t.oxw(2);t.uIk("x",e.svg.circle.cx)("y",e.svg.circle.cy)("text-anchor",e.svg.title.textAnchor),t.xp6(1),t.Q6J("ngIf",e.options.showTitle),t.xp6(1),t.Q6J("ngIf",e.options.showUnits),t.xp6(1),t.Q6J("ngIf",e.options.showSubtitle)}}function yEe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"image",9)),2&n){var e=t.oxw(2);t.uIk("height",e.svg.image.height)("width",e.svg.image.width)("href",e.svg.image.src,null,"xlink")("x",e.svg.image.x)("y",e.svg.image.y)}}function bEe(n,r){if(1&n){var e=t.EpF();t.O4$(),t.TgZ(0,"svg",1),t.NdJ("click",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.emitClickEvent(a))}),t.TgZ(1,"defs"),t.YNc(2,iEe,3,5,"linearGradient",2),t.YNc(3,oEe,3,5,"radialGradient",2),t.qZA(),t.YNc(4,lEe,3,2,"ng-container",2),t.YNc(5,uEe,1,6,"circle",2),t.YNc(6,fEe,3,2,"ng-container",2),t.YNc(7,vEe,4,6,"text",3),t.YNc(8,yEe,1,5,"image",4),t.qZA()}if(2&n){var i=t.oxw();t.uIk("viewBox",i.svg.viewBox)("height",i.svg.height)("width",i.svg.width)("class",i.options.class),t.xp6(2),t.Q6J("ngIf",i.options.outerStrokeGradient),t.xp6(1),t.Q6J("ngIf",i.options.backgroundGradient),t.xp6(1),t.Q6J("ngIf",i.options.showBackground),t.xp6(1),t.Q6J("ngIf",i.options.showInnerStroke),t.xp6(1),t.Q6J("ngIf",0!=+i.options.percent||i.options.showZeroOuterStroke),t.xp6(1),t.Q6J("ngIf",!i.options.showImage&&(i.options.showTitle||i.options.showUnits||i.options.showSubtitle)),t.xp6(1),t.Q6J("ngIf",i.options.showImage)}}var jN=(0,B.Z)(function n(){(0,H.Z)(this,n),this.class="",this.backgroundGradient=!1,this.backgroundColor="transparent",this.backgroundGradientStopColor="transparent",this.backgroundOpacity=1,this.backgroundStroke="transparent",this.backgroundStrokeWidth=0,this.backgroundPadding=5,this.percent=0,this.radius=90,this.space=4,this.toFixed=0,this.maxPercent=1e3,this.renderOnClick=!0,this.units="%",this.unitsFontSize="10",this.unitsFontWeight="normal",this.unitsColor="#444444",this.outerStrokeGradient=!1,this.outerStrokeWidth=8,this.outerStrokeColor="#78C000",this.outerStrokeGradientStopColor="transparent",this.outerStrokeLinecap="round",this.innerStrokeColor="#C7E596",this.innerStrokeWidth=4,this.titleFormat=void 0,this.title="auto",this.titleColor="#444444",this.titleFontSize="20",this.titleFontWeight="normal",this.subtitleFormat=void 0,this.subtitle="progress",this.subtitleColor="#A9A9A9",this.subtitleFontSize="10",this.subtitleFontWeight="normal",this.imageSrc=void 0,this.imageHeight=0,this.imageWidth=0,this.animation=!0,this.animateTitle=!0,this.animateSubtitle=!1,this.animationDuration=500,this.showTitle=!0,this.showSubtitle=!0,this.showUnits=!0,this.showImage=!1,this.showBackground=!0,this.showInnerStroke=!0,this.clockwise=!0,this.responsive=!1,this.startFromZero=!0,this.showZeroOuterStroke=!0,this.lazy=!1}),hD=function(){function n(r,e,i,o){var a=this;(0,H.Z)(this,n),this.ngZone=e,this.elRef=i,this.onClick=new t.vpe,this.svgElement=null,this.isInViewport=!1,this.onViewportChanged=new t.vpe,this._viewportChangedSubscriber=null,this.options=new jN,this.defaultOptions=new jN,this._lastPercent=0,this._gradientUUID=null,this.render=function(){a.applyOptions(),a.options.lazy?(null===a.svgElement&&a.draw(a._lastPercent),a.isInViewport&&(a.options.animation&&a.options.animationDuration>0?a.animate(a._lastPercent,a.options.percent):a.draw(a.options.percent),a._lastPercent=a.options.percent)):(a.options.animation&&a.options.animationDuration>0?a.animate(a._lastPercent,a.options.percent):a.draw(a.options.percent),a._lastPercent=a.options.percent)},this.polarToCartesian=function(s,l,u,d){var h=d*Math.PI/180;return{x:s+Math.sin(h)*u,y:l-Math.cos(h)*u}},this.draw=function(s){var l=(s=void 0===s?a.options.percent:Math.abs(s))>100?100:s,u=2*a.options.radius+2*a.options.outerStrokeWidth;a.options.showBackground&&(u+=2*a.options.backgroundStrokeWidth+a.max(0,2*a.options.backgroundPadding));var C,Z,d={x:u/2,y:u/2},h={x:d.x,y:d.y-a.options.radius},g=a.polarToCartesian(d.x,d.y,a.options.radius,360*(a.options.clockwise?l:100-l)/100);if(100===l&&(g.x=g.x+(a.options.clockwise?-.01:.01)),l>50){var z=a.options.clockwise?[1,1]:[1,0],q=(0,Nn.Z)(z,2);C=q[0],Z=q[1]}else{var re=a.options.clockwise?[0,1]:[0,0],ae=(0,Nn.Z)(re,2);C=ae[0],Z=ae[1]}var Se=a.options.animateTitle?s:a.options.percent,Ce=Se>a.options.maxPercent?"".concat(a.options.maxPercent.toFixed(a.options.toFixed),"+"):Se.toFixed(a.options.toFixed),Ee=a.options.animateSubtitle?s:a.options.percent,Ve={x:d.x,y:d.y,textAnchor:"middle",color:a.options.titleColor,fontSize:a.options.titleFontSize,fontWeight:a.options.titleFontWeight,texts:[],tspans:[]};if(void 0!==a.options.titleFormat&&"Function"===a.options.titleFormat.constructor.name){var ut=a.options.titleFormat(Se);ut instanceof Array?Ve.texts=(0,pn.Z)(ut):Ve.texts.push(ut.toString())}else"auto"===a.options.title?Ve.texts.push(Ce):a.options.title instanceof Array?Ve.texts=(0,pn.Z)(a.options.title):Ve.texts.push(a.options.title.toString());var Ae={x:d.x,y:d.y,textAnchor:"middle",color:a.options.subtitleColor,fontSize:a.options.subtitleFontSize,fontWeight:a.options.subtitleFontWeight,texts:[],tspans:[]};if(void 0!==a.options.subtitleFormat&&"Function"===a.options.subtitleFormat.constructor.name){var ot=a.options.subtitleFormat(Ee);ot instanceof Array?Ae.texts=(0,pn.Z)(ot):Ae.texts.push(ot.toString())}else a.options.subtitle instanceof Array?Ae.texts=(0,pn.Z)(a.options.subtitle):Ae.texts.push(a.options.subtitle.toString());var ht={text:"".concat(a.options.units),fontSize:a.options.unitsFontSize,fontWeight:a.options.unitsFontWeight,color:a.options.unitsColor},bt=0,Xe=1;if(a.options.showTitle&&(bt+=Ve.texts.length),a.options.showSubtitle&&(bt+=Ae.texts.length),a.options.showTitle){var ft,Pe=(0,xn.Z)(Ve.texts);try{for(Pe.s();!(ft=Pe.n()).done;){var Nt=ft.value;Ve.tspans.push({span:Nt,dy:a.getRelativeY(Xe,bt)}),Xe++}}catch(jn){Pe.e(jn)}finally{Pe.f()}}if(a.options.showSubtitle){var It,Gt=(0,xn.Z)(Ae.texts);try{for(Gt.s();!(It=Gt.n()).done;){var Tn=It.value;Ae.tspans.push({span:Tn,dy:a.getRelativeY(Xe,bt)}),Xe++}}catch(jn){Gt.e(jn)}finally{Gt.f()}}null===a._gradientUUID&&(a._gradientUUID=a.uuid()),a.svg={viewBox:"0 0 ".concat(u," ").concat(u),width:a.options.responsive?"100%":u,height:a.options.responsive?"100%":u,backgroundCircle:{cx:d.x,cy:d.y,r:a.options.radius+a.options.outerStrokeWidth/2+a.options.backgroundPadding,fill:a.options.backgroundColor,fillOpacity:a.options.backgroundOpacity,stroke:a.options.backgroundStroke,strokeWidth:a.options.backgroundStrokeWidth},path:{d:"M ".concat(h.x," ").concat(h.y,"\n A ").concat(a.options.radius," ").concat(a.options.radius," 0 ").concat(C," ").concat(Z," ").concat(g.x," ").concat(g.y),stroke:a.options.outerStrokeColor,strokeWidth:a.options.outerStrokeWidth,strokeLinecap:a.options.outerStrokeLinecap,fill:"none"},circle:{cx:d.x,cy:d.y,r:a.options.radius-a.options.space-a.options.outerStrokeWidth/2-a.options.innerStrokeWidth/2,fill:"none",stroke:a.options.innerStrokeColor,strokeWidth:a.options.innerStrokeWidth},title:Ve,units:ht,subtitle:Ae,image:{x:d.x-a.options.imageWidth/2,y:d.y-a.options.imageHeight/2,src:a.options.imageSrc,width:a.options.imageWidth,height:a.options.imageHeight},outerLinearGradient:{id:"outer-linear-"+a._gradientUUID,colorStop1:a.options.outerStrokeColor,colorStop2:"transparent"===a.options.outerStrokeGradientStopColor?"#FFF":a.options.outerStrokeGradientStopColor},radialGradient:{id:"radial-"+a._gradientUUID,colorStop1:a.options.backgroundColor,colorStop2:"transparent"===a.options.backgroundGradientStopColor?"#FFF":a.options.backgroundGradientStopColor}}},this.getAnimationParameters=function(s,l){var d,h,g,C=a.options.startFromZero||s<0?0:s,Z=l<0?0:a.min(l,a.options.maxPercent),z=Math.abs(Math.round(Z-C));return z>=100?(d=100,h=a.options.animateTitle||a.options.animateSubtitle?Math.round(z/d):1):(d=z,h=1),(g=Math.round(a.options.animationDuration/d))<10&&(g=10,d=a.options.animationDuration/g,h=!a.options.animateTitle&&!a.options.animateSubtitle&&z>100?Math.round(100/d):Math.round(z/d)),h<1&&(h=1),{times:d,step:h,interval:g}},this.animate=function(s,l){a._timerSubscription&&!a._timerSubscription.closed&&a._timerSubscription.unsubscribe();var u=a.options.startFromZero?0:s,d=l,h=a.getAnimationParameters(u,d),g=h.step,C=h.interval,Z=u;a._timerSubscription=u=100?(a.draw(d),a._timerSubscription.unsubscribe()):a.draw(Z):(a.draw(d),a._timerSubscription.unsubscribe())}):(0,Tp.H)(0,C).subscribe(function(){(Z-=g)>=d?!a.options.animateTitle&&!a.options.animateSubtitle&&d>=100?(a.draw(d),a._timerSubscription.unsubscribe()):a.draw(Z):(a.draw(d),a._timerSubscription.unsubscribe())})},this.applyOptions=function(){for(var s=0,l=Object.keys(a.options);s0?+a.options.percent:0,a.options.maxPercent=Math.abs(+a.options.maxPercent),a.options.animationDuration=Math.abs(a.options.animationDuration),a.options.outerStrokeWidth=Math.abs(+a.options.outerStrokeWidth),a.options.innerStrokeWidth=Math.abs(+a.options.innerStrokeWidth),a.options.backgroundPadding=+a.options.backgroundPadding},this.getRelativeY=function(s,l){return(1*(s-l/2)-.18).toFixed(2)+"em"},this.min=function(s,l){return sl?s:l},this.uuid=function(){var s=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(u){var d=(s+16*Math.random())%16|0;return s=Math.floor(s/16),("x"==u?d:3&d|8).toString(16)})},this.checkViewport=function(){a.findSvgElement();var s=a.isInViewport;a.isInViewport=a.isElementInViewport(a.svgElement),s!==a.isInViewport&&a.onViewportChanged.observers.length>0&&a.ngZone.run(function(){a.onViewportChanged.emit({oldValue:s,newValue:a.isInViewport})})},this.onScroll=function(s){a.checkViewport()},this.loadEventsForLazyMode=function(){if(a.options.lazy){a.ngZone.runOutsideAngular(function(){a.document.addEventListener("scroll",a.onScroll,!0),a.window.addEventListener("resize",a.onScroll,!0)}),null===a._viewportChangedSubscriber&&(a._viewportChangedSubscriber=a.onViewportChanged.subscribe(function(l){l.oldValue;l.newValue&&a.render()}));var s=(0,Tp.H)(0,50).subscribe(function(){null===a.svgElement?a.checkViewport():s.unsubscribe()})}},this.unloadEventsForLazyMode=function(){a.document.removeEventListener("scroll",a.onScroll,!0),a.window.removeEventListener("resize",a.onScroll,!0),null!==a._viewportChangedSubscriber&&(a._viewportChangedSubscriber.unsubscribe(),a._viewportChangedSubscriber=null)},this.document=o.get(ge.K0),this.window=this.document.defaultView,Object.assign(this.options,r),Object.assign(this.defaultOptions,r)}return(0,B.Z)(n,[{key:"emitClickEvent",value:function(e){this.options.renderOnClick&&this.animate(0,this.options.percent),this.onClick.observers.length>0&&this.onClick.emit(e)}},{key:"isDrawing",value:function(){return this._timerSubscription&&!this._timerSubscription.closed}},{key:"findSvgElement",value:function(){if(null===this.svgElement){var e=this.elRef.nativeElement.getElementsByTagName("svg");e.length>0&&(this.svgElement=e[0])}}},{key:"isElementInViewport",value:function(e){if(null==e)return!1;var a,i=e.getBoundingClientRect(),o=e.parentNode;do{if(a=o.getBoundingClientRect(),i.top>=a.bottom||i.bottom<=a.top||i.left>=a.right||i.right<=a.left)return!1;o=o.parentNode}while(o!=this.document.body);return!(i.top>=(this.window.innerHeight||this.document.documentElement.clientHeight)||i.bottom<=0||i.left>=(this.window.innerWidth||this.document.documentElement.clientWidth)||i.right<=0)}},{key:"ngOnInit",value:function(){this.loadEventsForLazyMode()}},{key:"ngOnDestroy",value:function(){this.unloadEventsForLazyMode()}},{key:"ngOnChanges",value:function(e){this.render(),"lazy"in e&&(e.lazy.currentValue?this.loadEventsForLazyMode():this.unloadEventsForLazyMode())}}]),n}();hD.\u0275fac=function(r){return new(r||hD)(t.Y36(jN),t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.zs3))},hD.\u0275cmp=t.Xpm({type:hD,selectors:[["circle-progress"]],inputs:{name:"name",class:"class",backgroundGradient:"backgroundGradient",backgroundColor:"backgroundColor",backgroundGradientStopColor:"backgroundGradientStopColor",backgroundOpacity:"backgroundOpacity",backgroundStroke:"backgroundStroke",backgroundStrokeWidth:"backgroundStrokeWidth",backgroundPadding:"backgroundPadding",radius:"radius",space:"space",percent:"percent",toFixed:"toFixed",maxPercent:"maxPercent",renderOnClick:"renderOnClick",units:"units",unitsFontSize:"unitsFontSize",unitsFontWeight:"unitsFontWeight",unitsColor:"unitsColor",outerStrokeGradient:"outerStrokeGradient",outerStrokeWidth:"outerStrokeWidth",outerStrokeColor:"outerStrokeColor",outerStrokeGradientStopColor:"outerStrokeGradientStopColor",outerStrokeLinecap:"outerStrokeLinecap",innerStrokeColor:"innerStrokeColor",innerStrokeWidth:"innerStrokeWidth",titleFormat:"titleFormat",title:"title",titleColor:"titleColor",titleFontSize:"titleFontSize",titleFontWeight:"titleFontWeight",subtitleFormat:"subtitleFormat",subtitle:"subtitle",subtitleColor:"subtitleColor",subtitleFontSize:"subtitleFontSize",subtitleFontWeight:"subtitleFontWeight",imageSrc:"imageSrc",imageHeight:"imageHeight",imageWidth:"imageWidth",animation:"animation",animateTitle:"animateTitle",animateSubtitle:"animateSubtitle",animationDuration:"animationDuration",showTitle:"showTitle",showSubtitle:"showSubtitle",showUnits:"showUnits",showImage:"showImage",showBackground:"showBackground",showInnerStroke:"showInnerStroke",clockwise:"clockwise",responsive:"responsive",startFromZero:"startFromZero",showZeroOuterStroke:"showZeroOuterStroke",lazy:"lazy",templateOptions:["options","templateOptions"]},outputs:{onClick:"onClick"},features:[t.TTD],decls:1,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg","preserveAspectRatio","xMidYMid meet",3,"click",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","preserveAspectRatio","xMidYMid meet",3,"click"],[4,"ngIf"],["alignment-baseline","baseline",4,"ngIf"],["preserveAspectRatio","none",4,"ngIf"],["offset","5%"],["offset","95%"],["alignment-baseline","baseline"],[4,"ngFor","ngForOf"],["preserveAspectRatio","none"]],template:function(r,e){1&r&&t.YNc(0,bEe,9,11,"svg",0),2&r&&t.Q6J("ngIf",e.svg)},dependencies:[ge.sg,ge.O5],encapsulation:2});var Bw=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:n,providers:[{provide:jN,useValue:e}]}}}]),n}();Bw.\u0275fac=function(r){return new(r||Bw)},Bw.\u0275mod=t.oAB({type:Bw}),Bw.\u0275inj=t.cJS({imports:[ge.ez]});var GN=function(){function n(r){(0,H.Z)(this,n),this.fileOver=new t.vpe,this.onFileDrop=new t.vpe,this.element=r}return(0,B.Z)(n,[{key:"getOptions",value:function(){var e;return null===(e=this.uploader)||void 0===e?void 0:e.options}},{key:"getFilters",value:function(){return""}},{key:"onDrop",value:function(e){var i,o=this._getTransfer(e);if(o){var a=this.getOptions(),s=this.getFilters();this._preventAndStop(e),a&&(null===(i=this.uploader)||void 0===i||i.addToQueue(o.files,a,s)),this.fileOver.emit(!1),this.onFileDrop.emit(o.files)}}},{key:"onDragOver",value:function(e){var i=this._getTransfer(e);!this._haveFiles(i.types)||(i.dropEffect="copy",this._preventAndStop(e),this.fileOver.emit(!0))}},{key:"onDragLeave",value:function(e){this.element&&e.currentTarget===this.element[0]||(this._preventAndStop(e),this.fileOver.emit(!1))}},{key:"_getTransfer",value:function(e){return e.dataTransfer?e.dataTransfer:e.originalEvent.dataTransfer}},{key:"_preventAndStop",value:function(e){e.preventDefault(),e.stopPropagation()}},{key:"_haveFiles",value:function(e){return!!e&&(e.indexOf?-1!==e.indexOf("Files"):!!e.contains&&e.contains("Files"))}}]),n}();GN.\u0275fac=function(r){return new(r||GN)(t.Y36(t.SBq))},GN.\u0275dir=t.lG2({type:GN,selectors:[["","ng2FileDrop",""]],hostBindings:function(r,e){1&r&&t.NdJ("drop",function(o){return e.onDrop(o)})("dragover",function(o){return e.onDragOver(o)})("dragleave",function(o){return e.onDragLeave(o)})},inputs:{uploader:"uploader"},outputs:{fileOver:"fileOver",onFileDrop:"onFileDrop"}});var yG=function(){function n(r){(0,H.Z)(this,n),this.rawFile=r;var e=r instanceof HTMLInputElement?r.value:r,i="string"==typeof e?"FakePath":"Object";this["_createFrom".concat(i)](e)}return(0,B.Z)(n,[{key:"_createFromFakePath",value:function(e){this.lastModifiedDate=void 0,this.size=void 0,this.type="like/".concat(e.slice(e.lastIndexOf(".")+1).toLowerCase()),this.name=e.slice(e.lastIndexOf("/")+e.lastIndexOf("\\")+2)}},{key:"_createFromObject",value:function(e){this.size=e.size,this.type=e.type,this.name=e.name}}]),n}(),CEe=function(){function n(r,e,i){(0,H.Z)(this,n),this.url="/",this.headers=[],this.withCredentials=!0,this.formData=[],this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.uploader=r,this.some=e,this.options=i,this.file=new yG(e),this._file=e,r.options&&(this.method=r.options.method||"POST",this.alias=r.options.itemAlias||"file"),this.url=r.options.url}return(0,B.Z)(n,[{key:"upload",value:function(){try{this.uploader.uploadItem(this)}catch(e){this.uploader._onCompleteItem(this,"",0,{}),this.uploader._onErrorItem(this,"",0,{})}}},{key:"cancel",value:function(){this.uploader.cancelItem(this)}},{key:"remove",value:function(){this.uploader.removeFromQueue(this)}},{key:"onBeforeUpload",value:function(){}},{key:"onBuildForm",value:function(e){return{form:e}}},{key:"onProgress",value:function(e){return{progress:e}}},{key:"onSuccess",value:function(e,i,o){return{response:e,status:i,headers:o}}},{key:"onError",value:function(e,i,o){return{response:e,status:i,headers:o}}},{key:"onCancel",value:function(e,i,o){return{response:e,status:i,headers:o}}},{key:"onComplete",value:function(e,i,o){return{response:e,status:i,headers:o}}},{key:"_onBeforeUpload",value:function(){this.isReady=!0,this.isUploading=!0,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.onBeforeUpload()}},{key:"_onBuildForm",value:function(e){this.onBuildForm(e)}},{key:"_onProgress",value:function(e){this.progress=e,this.onProgress(e)}},{key:"_onSuccess",value:function(e,i,o){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!0,this.isCancel=!1,this.isError=!1,this.progress=100,this.index=void 0,this.onSuccess(e,i,o)}},{key:"_onError",value:function(e,i,o){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!1,this.isCancel=!1,this.isError=!0,this.progress=0,this.index=void 0,this.onError(e,i,o)}},{key:"_onCancel",value:function(e,i,o){this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!0,this.isError=!1,this.progress=0,this.index=void 0,this.onCancel(e,i,o)}},{key:"_onComplete",value:function(e,i,o){this.onComplete(e,i,o),this.uploader.options.removeAfterUpload&&this.remove()}},{key:"_prepareToUploading",value:function(){this.index=this.index||++this.uploader._nextIndex,this.isReady=!0}}]),n}(),Fw=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,null,[{key:"getMimeClass",value:function(e){var i,o,a,s="application";return(null==e?void 0:e.type)&&-1!==this.mime_psd.indexOf(e.type)||null!==(i=null==e?void 0:e.type)&&void 0!==i&&i.match("image.*")?s="image":null!==(o=null==e?void 0:e.type)&&void 0!==o&&o.match("video.*")?s="video":null!==(a=null==e?void 0:e.type)&&void 0!==a&&a.match("audio.*")?s="audio":"application/pdf"===(null==e?void 0:e.type)?s="pdf":(null==e?void 0:e.type)&&-1!==this.mime_compress.indexOf(e.type)?s="compress":(null==e?void 0:e.type)&&-1!==this.mime_doc.indexOf(e.type)?s="doc":(null==e?void 0:e.type)&&-1!==this.mime_xsl.indexOf(e.type)?s="xls":(null==e?void 0:e.type)&&-1!==this.mime_ppt.indexOf(e.type)&&(s="ppt"),"application"===s&&(null==e?void 0:e.name)&&(s=this.fileTypeDetection(e.name)),s}},{key:"fileTypeDetection",value:function(e){var i={jpg:"image",jpeg:"image",tif:"image",psd:"image",bmp:"image",png:"image",nef:"image",tiff:"image",cr2:"image",dwg:"image",cdr:"image",ai:"image",indd:"image",pin:"image",cdp:"image",skp:"image",stp:"image","3dm":"image",mp3:"audio",wav:"audio",wma:"audio",mod:"audio",m4a:"audio",compress:"compress",zip:"compress",rar:"compress","7z":"compress",lz:"compress",z01:"compress",bz2:"compress",gz:"compress",pdf:"pdf",xls:"xls",xlsx:"xls",ods:"xls",mp4:"video",avi:"video",wmv:"video",mpg:"video",mts:"video",flv:"video","3gp":"video",vob:"video",m4v:"video",mpeg:"video",m2ts:"video",mov:"video",doc:"doc",docx:"doc",eps:"doc",txt:"doc",odt:"doc",rtf:"doc",ppt:"ppt",pptx:"ppt",pps:"ppt",ppsx:"ppt",odp:"ppt"},o=e.split(".");if(o.length<2)return"application";var a=o[o.length-1].toLowerCase();return void 0===i[a]?"application":i[a]}}]),n}();Fw.mime_doc=["application/msword","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-word.document.macroEnabled.12","application/vnd.ms-word.template.macroEnabled.12"],Fw.mime_xsl=["application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.ms-excel.sheet.macroEnabled.12","application/vnd.ms-excel.template.macroEnabled.12","application/vnd.ms-excel.addin.macroEnabled.12","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],Fw.mime_ppt=["application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.ms-powerpoint.addin.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],Fw.mime_psd=["image/photoshop","image/x-photoshop","image/psd","application/photoshop","application/psd","zz-application/zz-winassoc-psd"],Fw.mime_compress=["application/x-gtar","application/x-gcompress","application/compress","application/x-tar","application/x-rar-compressed","application/octet-stream","application/x-zip-compressed","application/zip-compressed","application/x-7z-compressed","application/gzip","application/x-bzip2"];var wg=function(){function n(r){(0,H.Z)(this,n),this.isUploading=!1,this.queue=[],this.progress=0,this._nextIndex=0,this.options={autoUpload:!1,isHTML5:!0,filters:[],removeAfterUpload:!1,disableMultipart:!1,formatDataFunction:function(i){return i._file},formatDataFunctionIsAsync:!1,url:""},this.setOptions(r),this.response=new t.vpe}return(0,B.Z)(n,[{key:"setOptions",value:function(e){var i,o,a,s;this.options=Object.assign(this.options,e),this.authToken=this.options.authToken,this.authTokenHeader=this.options.authTokenHeader||"Authorization",this.autoUpload=this.options.autoUpload,null===(i=this.options.filters)||void 0===i||i.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.options.maxFileSize&&(null===(o=this.options.filters)||void 0===o||o.unshift({name:"fileSize",fn:this._fileSizeFilter})),this.options.allowedFileType&&(null===(a=this.options.filters)||void 0===a||a.unshift({name:"fileType",fn:this._fileTypeFilter})),this.options.allowedMimeType&&(null===(s=this.options.filters)||void 0===s||s.unshift({name:"mimeType",fn:this._mimeTypeFilter}));for(var l=0;lthis.options.maxFileSize)}},{key:"_fileTypeFilter",value:function(e){return!(this.options.allowedFileType&&-1===this.options.allowedFileType.indexOf(Fw.getMimeClass(e)))}},{key:"_onErrorItem",value:function(e,i,o,a){e._onError(i,o,a),this.onErrorItem(e,i,o,a)}},{key:"_onCompleteItem",value:function(e,i,o,a){e._onComplete(i,o,a),this.onCompleteItem(e,i,o,a);var s=this.getReadyItems()[0];this.isUploading=!1,s?s.upload():(this.onCompleteAll(),this.progress=this._getTotalProgress(),this._render())}},{key:"_headersGetter",value:function(e){return function(i){return i?e[i.toLowerCase()]||void 0:e}}},{key:"_xhrTransport",value:function(e){var s,i=this,o=this,a=e._xhr=new XMLHttpRequest;if(this._onBeforeUploadItem(e),"number"!=typeof e._file.size)throw new TypeError("The file specified is no longer valid");if(this.options.disableMultipart)this.options.formatDataFunction&&(s=this.options.formatDataFunction(e));else{s=new FormData,this._onBuildItemForm(e,s);var l=function(){return s.append(e.alias,e._file,e.file.name)};this.options.parametersBeforeFiles||l(),void 0!==this.options.additionalParameter&&Object.keys(this.options.additionalParameter).forEach(function(z){var q,re,ae=null===(q=i.options.additionalParameter)||void 0===q?void 0:q[z];"string"==typeof ae&&ae.indexOf("{{file_name}}")>=0&&(null===(re=e.file)||void 0===re?void 0:re.name)&&(ae=ae.replace("{{file_name}}",e.file.name)),s.append(z,ae)}),l&&this.options.parametersBeforeFiles&&l()}if(a.upload.onprogress=function(z){var q=Math.round(z.lengthComputable?100*z.loaded/z.total:0);i._onProgressItem(e,q)},a.onload=function(){var z=i._parseHeaders(a.getAllResponseHeaders()),q=i._transformResponse(a.response,z),re=i._isSuccessCode(a.status)?"Success":"Error",ae="_on".concat(re,"Item");i[ae](e,q,a.status,z),i._onCompleteItem(e,q,a.status,z)},a.onerror=function(){var z=i._parseHeaders(a.getAllResponseHeaders()),q=i._transformResponse(a.response,z);i._onErrorItem(e,q,a.status,z),i._onCompleteItem(e,q,a.status,z)},a.onabort=function(){var z=i._parseHeaders(a.getAllResponseHeaders()),q=i._transformResponse(a.response,z);i._onCancelItem(e,q,a.status,z),i._onCompleteItem(e,q,a.status,z)},e.method&&e.url&&a.open(e.method,e.url,!0),a.withCredentials=e.withCredentials,this.options.headers){var d,u=(0,xn.Z)(this.options.headers);try{for(u.s();!(d=u.n()).done;){var h=d.value;a.setRequestHeader(h.name,h.value)}}catch(z){u.e(z)}finally{u.f()}}if(e.headers.length){var C,g=(0,xn.Z)(e.headers);try{for(g.s();!(C=g.n()).done;){var Z=C.value;a.setRequestHeader(Z.name,Z.value)}}catch(z){g.e(z)}finally{g.f()}}this.authToken&&this.authTokenHeader&&a.setRequestHeader(this.authTokenHeader,this.authToken),a.onreadystatechange=function(){a.readyState==XMLHttpRequest.DONE&&o.response.emit(a.responseText)},this.options.formatDataFunctionIsAsync?s.then(function(z){return a.send(JSON.stringify(z))}):a.send(s),this._render()}},{key:"_getTotalProgress",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.options.removeAfterUpload)return e;var i=this.getNotUploadedItems().length,o=i?this.queue.length-i:this.queue.length,a=100/this.queue.length,s=e*a/100;return Math.round(o*a+s)}},{key:"_getFilters",value:function(e){var i,o,a;if(!e)return(null===(i=this.options)||void 0===i?void 0:i.filters)||[];if(Array.isArray(e))return e;if("string"==typeof e){var s=e.match(/[^\s,]+/g);return(null===(o=this.options)||void 0===o?void 0:o.filters)||[].filter(function(l){return-1!==(null==s?void 0:s.indexOf(l.name))})}return(null===(a=this.options)||void 0===a?void 0:a.filters)||[]}},{key:"_render",value:function(){}},{key:"_queueLimitFilter",value:function(){return void 0===this.options.queueLimit||this.queue.length=200&&e<300||304===e}},{key:"_transformResponse",value:function(e,i){return e}},{key:"_parseHeaders",value:function(e){var o,a,s,i={};return e&&e.split("\n").map(function(l){s=l.indexOf(":"),o=l.slice(0,s).trim().toLowerCase(),a=l.slice(s+1).trim(),o&&(i[o]=i[o]?i[o]+", "+a:a)}),i}},{key:"_onWhenAddingFileFailed",value:function(e,i,o){this.onWhenAddingFileFailed(e,i,o)}},{key:"_onAfterAddingFile",value:function(e){this.onAfterAddingFile(e)}},{key:"_onAfterAddingAll",value:function(e){this.onAfterAddingAll(e)}},{key:"_onBeforeUploadItem",value:function(e){e._onBeforeUpload(),this.onBeforeUploadItem(e)}},{key:"_onBuildItemForm",value:function(e,i){e._onBuildForm(i),this.onBuildItemForm(e,i)}},{key:"_onProgressItem",value:function(e,i){var o=this._getTotalProgress(i);this.progress=o,e._onProgress(i),this.onProgressItem(e,i),this.onProgressAll(o),this._render()}},{key:"_onSuccessItem",value:function(e,i,o,a){e._onSuccess(i,o,a),this.onSuccessItem(e,i,o,a)}},{key:"_onCancelItem",value:function(e,i,o,a){e._onCancel(i,o,a),this.onCancelItem(e,i,o,a)}}]),n}(),Mp=function(){function n(r){(0,H.Z)(this,n),this.onFileSelected=new t.vpe,this.element=r}return(0,B.Z)(n,[{key:"getOptions",value:function(){var e;return null===(e=this.uploader)||void 0===e?void 0:e.options}},{key:"getFilters",value:function(){return""}},{key:"isEmptyAfterSelection",value:function(){return!!this.element.nativeElement.attributes.multiple}},{key:"onChange",value:function(){var e,i=this.element.nativeElement.files,o=this.getOptions(),a=this.getFilters();null===(e=this.uploader)||void 0===e||e.addToQueue(i,o,a),this.onFileSelected.emit(i),this.isEmptyAfterSelection()&&(this.element.nativeElement.value="")}}]),n}();Mp.\u0275fac=function(r){return new(r||Mp)(t.Y36(t.SBq))},Mp.\u0275dir=t.lG2({type:Mp,selectors:[["","ng2FileSelect",""]],hostBindings:function(r,e){1&r&&t.NdJ("change",function(){return e.onChange()})},inputs:{uploader:"uploader"},outputs:{onFileSelected:"onFileSelected"}});var Uw=(0,B.Z)(function n(){(0,H.Z)(this,n)});Uw.\u0275fac=function(r){return new(r||Uw)},Uw.\u0275mod=t.oAB({type:Uw}),Uw.\u0275inj=t.cJS({imports:[ge.ez]});var bG=function(){function n(){}return Object.defineProperty(n.prototype,"child_process",{get:function(){return this._child_process||(this._child_process=window.require?window.require("child_process"):null),this._child_process},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isElectronApp",{get:function(){return!!window.navigator.userAgent.match(/Electron/)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"childProcess",{get:function(){return this.child_process?this.child_process:null},enumerable:!0,configurable:!0}),n}(),kEe=function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var i in e)e.hasOwnProperty(i)&&(r[i]=e[i])};return function(r,e){function i(){this.constructor=r}n(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Zne=function(n){function r(){return n.call(this)||this}return kEe(r,n),r.\u0275fac=function(i){return new(i||r)},r.\u0275prov=t.Yz7({token:r,factory:function(i){return r.\u0275fac(i)}}),r}(bG);Zne.ctorParameters=function(){return[]};var Nne=function(){function n(){}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[{provide:bG,useClass:Zne}]}),n}();Nne.ctorParameters=function(){return[]};var al=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"electron",get:function(){return this._electron?this._electron:window&&window.require?(this._electron=window.require("electron"),this._electron):null}},{key:"isElectronApp",get:function(){return!!window.navigator.userAgent.match(/Electron/)}},{key:"isMacOS",get:function(){return this.isElectronApp&&"darwin"===process.platform}},{key:"isWindows",get:function(){return this.isElectronApp&&"win32"===process.platform}},{key:"isLinux",get:function(){return this.isElectronApp&&"linux"===process.platform}},{key:"isX86",get:function(){return this.isElectronApp&&"ia32"===process.arch}},{key:"isX64",get:function(){return this.isElectronApp&&"x64"===process.arch}},{key:"isArm",get:function(){return this.isElectronApp&&"arm"===process.arch}},{key:"desktopCapturer",get:function(){return this.electron?this.electron.desktopCapturer:null}},{key:"ipcRenderer",get:function(){return this.electron?this.electron.ipcRenderer:null}},{key:"remote",get:function(){return this.electron?this.electron.remote:null}},{key:"webFrame",get:function(){return this.electron?this.electron.webFrame:null}},{key:"clipboard",get:function(){return this.electron?this.electron.clipboard:null}},{key:"crashReporter",get:function(){return this.electron?this.electron.crashReporter:null}},{key:"process",get:function(){return this.remote?this.remote.process:null}},{key:"nativeImage",get:function(){return this.electron?this.electron.nativeImage:null}},{key:"screen",get:function(){return this.electron?this.remote.screen:null}},{key:"shell",get:function(){return this.electron?this.electron.shell:null}}]),n}(),E0=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.call(this)}return(0,B.Z)(e)}(al);E0.\u0275fac=function(r){return new(r||E0)},E0.\u0275prov=t.Yz7({token:E0,factory:E0.\u0275fac}),E0.ctorParameters=function(){return[]};var Hw=(0,B.Z)(function n(){(0,H.Z)(this,n)});Hw.\u0275fac=function(r){return new(r||Hw)},Hw.\u0275mod=t.oAB({type:Hw}),Hw.\u0275inj=t.cJS({providers:[{provide:al,useClass:E0}]});var mD=m(7326),jw=m(4942),TEe=m(4450),MEe=m(1961),_D=m(8514),SEe=m(4843),x0=m(1737),D0=m(8896),Bne=m(1762),kg=m(7224),A0=m(1406),Xc=m(7221),Fne=m(2014),Une=m(8127),EEe=m(4290),Hne=m(7314),zN=m(537),jne=m(4327),WN=m(9146),li="primary",gD=Symbol("RouteTitle"),xEe=function(){function n(r){(0,H.Z)(this,n),this.params=r||{}}return(0,B.Z)(n,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var i=this.params[e];return Array.isArray(i)?i[0]:i}return null}},{key:"getAll",value:function(e){if(this.has(e)){var i=this.params[e];return Array.isArray(i)?i:[i]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),n}();function Gw(n){return new xEe(n)}function DEe(n,r,e){var i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(r.hasChildren()||i.length0?n[n.length-1]:null}function sl(n,r){for(var e in n)n.hasOwnProperty(e)&&r(n[e],e)}function Tg(n){return(0,t.CqO)(n)?n:(0,t.QGY)(n)?(0,Zs.D)(Promise.resolve(n)):(0,qn.of)(n)}var IEe={exact:function Kne(n,r,e){if(!I0(n.segments,r.segments)||!VN(n.segments,r.segments,e)||n.numberOfChildren!==r.numberOfChildren)return!1;for(var i in r.children)if(!n.children[i]||!Kne(n.children[i],r.children[i],e))return!1;return!0},subset:qne},Vne={exact:function PEe(n,r){return Sp(n,r)},subset:function REe(n,r){return Object.keys(r).length<=Object.keys(n).length&&Object.keys(r).every(function(e){return Gne(n[e],r[e])})},ignored:function(){return!0}};function Yne(n,r,e){return IEe[e.paths](n.root,r.root,e.matrixParams)&&Vne[e.queryParams](n.queryParams,r.queryParams)&&!("exact"===e.fragment&&n.fragment!==r.fragment)}function qne(n,r,e){return Jne(n,r,r.segments,e)}function Jne(n,r,e,i){if(n.segments.length>e.length){var o=n.segments.slice(0,e.length);return!(!I0(o,e)||r.hasChildren()||!VN(o,e,i))}if(n.segments.length===e.length){if(!I0(n.segments,e)||!VN(n.segments,e,i))return!1;for(var a in r.children)if(!n.children[a]||!qne(n.children[a],r.children[a],i))return!1;return!0}var s=e.slice(0,n.segments.length),l=e.slice(n.segments.length);return!!(I0(n.segments,s)&&VN(n.segments,s,i)&&n.children[li])&&Jne(n.children[li],r,l,i)}function VN(n,r,e){return r.every(function(i,o){return Vne[e](n[o].parameters,i.parameters)})}var O0=function(){function n(r,e,i){(0,H.Z)(this,n),this.root=r,this.queryParams=e,this.fragment=i}return(0,B.Z)(n,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Gw(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return NEe.serialize(this)}}]),n}(),pi=function(){function n(r,e){var i=this;(0,H.Z)(this,n),this.segments=r,this.children=e,this.parent=null,sl(e,function(o,a){return o.parent=i})}return(0,B.Z)(n,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return YN(this)}}]),n}(),vD=function(){function n(r,e){(0,H.Z)(this,n),this.path=r,this.parameters=e}return(0,B.Z)(n,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Gw(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return $ne(this)}}]),n}();function I0(n,r){return n.length===r.length&&n.every(function(e,i){return e.path===r[i].path})}var zw=(0,B.Z)(function n(){(0,H.Z)(this,n)});zw.\u0275fac=function(r){return new(r||zw)},zw.\u0275prov=t.Yz7({token:zw,factory:function(){return new wG},providedIn:"root"});var wG=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"parse",value:function(e){var i=new VEe(e);return new O0(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}},{key:"serialize",value:function(e){var i="/".concat(yD(e.root,!0)),o=function UEe(n){var r=Object.keys(n).map(function(e){var i=n[e];return Array.isArray(i)?i.map(function(o){return"".concat(KN(e),"=").concat(KN(o))}).join("&"):"".concat(KN(e),"=").concat(KN(i))}).filter(function(e){return!!e});return r.length?"?".concat(r.join("&")):""}(e.queryParams),a="string"==typeof e.fragment?"#".concat(function BEe(n){return encodeURI(n)}(e.fragment)):"";return"".concat(i).concat(o).concat(a)}}]),n}(),NEe=new wG;function YN(n){return n.segments.map(function(r){return $ne(r)}).join("/")}function yD(n,r){if(!n.hasChildren())return YN(n);if(r){var e=n.children[li]?yD(n.children[li],!1):"",i=[];return sl(n.children,function(a,s){s!==li&&i.push("".concat(s,":").concat(yD(a,!1)))}),i.length>0?"".concat(e,"(").concat(i.join("//"),")"):e}var o=function ZEe(n,r){var e=[];return sl(n.children,function(i,o){o===li&&(e=e.concat(r(i,o)))}),sl(n.children,function(i,o){o!==li&&(e=e.concat(r(i,o)))}),e}(n,function(a,s){return s===li?[yD(n.children[li],!1)]:["".concat(s,":").concat(yD(a,!1))]});return 1===Object.keys(n.children).length&&null!=n.children[li]?"".concat(YN(n),"/").concat(o[0]):"".concat(YN(n),"/(").concat(o.join("//"),")")}function Qne(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function KN(n){return Qne(n).replace(/%3B/gi,";")}function kG(n){return Qne(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function qN(n){return decodeURIComponent(n)}function Xne(n){return qN(n.replace(/\+/g,"%20"))}function $ne(n){return"".concat(kG(n.path)).concat(function FEe(n){return Object.keys(n).map(function(r){return";".concat(kG(r),"=").concat(kG(n[r]))}).join("")}(n.parameters))}var HEe=/^[^\/()?;=#]+/;function JN(n){var r=n.match(HEe);return r?r[0]:""}var jEe=/^[^=?&#]+/;var zEe=/^[^&#]+/;var VEe=function(){function n(r){(0,H.Z)(this,n),this.url=r,this.remaining=r}return(0,B.Z)(n,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new pi([],{}):new pi([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));var o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(o[li]=new pi(e,i)),o}},{key:"parseSegment",value:function(){var e=JN(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new t.vHH(4009,false);return this.capture(e),new vD(qN(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var i=JN(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=JN(this.remaining);a&&(o=a,this.capture(o))}e[qN(i)]=qN(o)}}},{key:"parseQueryParam",value:function(e){var i=function GEe(n){var r=n.match(jEe);return r?r[0]:""}(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=function WEe(n){var r=n.match(zEe);return r?r[0]:""}(this.remaining);a&&(o=a,this.capture(o))}var s=Xne(i),l=Xne(o);if(e.hasOwnProperty(s)){var u=e[s];Array.isArray(u)||(u=[u],e[s]=u),u.push(l)}else e[s]=l}}},{key:"parseParens",value:function(e){var i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var o=JN(this.remaining),a=this.remaining[o.length];if("/"!==a&&")"!==a&&";"!==a)throw new t.vHH(4010,false);var s=void 0;o.indexOf(":")>-1?(s=o.slice(0,o.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=li);var l=this.parseChildren();i[s]=1===Object.keys(l).length?l[li]:new pi([],l),this.consumeOptional("//")}return i}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new t.vHH(4011,false)}}]),n}();function TG(n){return n.segments.length>0?new pi([],(0,jw.Z)({},li,n)):n}function QN(n){for(var r={},e=0,i=Object.keys(n.children);e0||s.hasChildren())&&(r[o]=s)}return function YEe(n){if(1===n.numberOfChildren&&n.children[li]){var r=n.children[li];return new pi(n.segments.concat(r.segments),r.children)}return n}(new pi(n.segments,r))}function P0(n){return n instanceof O0}function JEe(n,r,e,i,o){var a;if(0===e.length)return Ww(r.root,r.root,r.root,i,o);var l=nre(e);if(l.toRoot())return Ww(r.root,r.root,new pi([],{}),i,o);var d=function u(g){var C,Z=function XEe(n,r,e,i){if(n.isAbsolute)return new Vw(r.root,!0,0);if(-1===i){var o=e===r.root;return new Vw(e,o,0)}var a=bD(n.commands[0])?0:1;return rre(e,i+a,n.numberOfDoubleDots)}(l,r,null===(C=n.snapshot)||void 0===C?void 0:C._urlSegment,g),z=Z.processChildren?wD(Z.segmentGroup,Z.index,l.commands):SG(Z.segmentGroup,Z.index,l.commands);return Ww(r.root,Z.segmentGroup,z,i,o)}(null===(a=n.snapshot)||void 0===a?void 0:a._lastPathIndex);return d}function bD(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function CD(n){return"object"==typeof n&&null!=n&&n.outlets}function Ww(n,r,e,i,o){var a={};i&&sl(i,function(u,d){a[d]=Array.isArray(u)?u.map(function(h){return"".concat(h)}):"".concat(u)});var l=TG(QN(n===r?e:ere(n,r,e)));return new O0(l,a,o)}function ere(n,r,e){var i={};return sl(n.children,function(o,a){i[a]=o===r?e:ere(o,r,e)}),new pi(n.segments,i)}var tre=function(){function n(r,e,i){if((0,H.Z)(this,n),this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=i,r&&i.length>0&&bD(i[0]))throw new t.vHH(4003,false);var o=i.find(CD);if(o&&o!==Wne(i))throw new t.vHH(4004,false)}return(0,B.Z)(n,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),n}();function nre(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new tre(!0,0,n);var r=0,e=!1,i=n.reduce(function(o,a,s){if("object"==typeof a&&null!=a){if(a.outlets){var l={};return sl(a.outlets,function(u,d){l[d]="string"==typeof u?u.split("/"):u}),[].concat((0,pn.Z)(o),[{outlets:l}])}if(a.segmentPath)return[].concat((0,pn.Z)(o),[a.segmentPath])}return"string"!=typeof a?[].concat((0,pn.Z)(o),[a]):0===s?(a.split("/").forEach(function(u,d){0==d&&"."===u||(0==d&&""===u?e=!0:".."===u?r++:""!=u&&o.push(u))}),o):[].concat((0,pn.Z)(o),[a])},[]);return new tre(e,r,i)}var Vw=(0,B.Z)(function n(r,e,i){(0,H.Z)(this,n),this.segmentGroup=r,this.processChildren=e,this.index=i});function rre(n,r,e){for(var i=n,o=r,a=e;a>o;){if(a-=o,!(i=i.parent))throw new t.vHH(4005,false);o=i.segments.length}return new Vw(i,!1,o-a)}function SG(n,r,e){if(n||(n=new pi([],{})),0===n.segments.length&&n.hasChildren())return wD(n,r,e);var i=function exe(n,r,e){for(var i=0,o=r,a={match:!1,pathIndex:0,commandIndex:0};o=e.length)return a;var s=n.segments[o],l=e[i];if(CD(l))break;var u="".concat(l),d=i0&&void 0===u)break;if(u&&d&&"object"==typeof d&&void 0===d.outlets){if(!ore(u,d,s))return a;i+=2}else{if(!ore(u,{},s))return a;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(n,r,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndex2&&void 0!==arguments[2]?arguments[2]:"imperative",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,H.Z)(this,e),(a=r.call(this,i,o)).type=0,a.navigationTrigger=s,a.restoredState=l,a}return(0,B.Z)(e,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),e}(lm),af=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,i,o)).urlAfterRedirects=a,s.type=1,s}return(0,B.Z)(e,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),e}(lm),kD=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,i,o)).reason=a,l.code=s,l.type=2,l}return(0,B.Z)(e,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),e}(lm),xG=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,i,o)).error=a,l.target=s,l.type=3,l}return(0,B.Z)(e,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),e}(lm),nxe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=4,l}return(0,B.Z)(e,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(lm),rxe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=7,l}return(0,B.Z)(e,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(lm),ixe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,i,o)).urlAfterRedirects=a,u.state=s,u.shouldActivate=l,u.type=8,u}return(0,B.Z)(e,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),e}(lm),oxe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=5,l}return(0,B.Z)(e,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(lm),axe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=6,l}return(0,B.Z)(e,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(lm),sxe=function(){function n(r){(0,H.Z)(this,n),this.route=r,this.type=9}return(0,B.Z)(n,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),n}(),lxe=function(){function n(r){(0,H.Z)(this,n),this.route=r,this.type=10}return(0,B.Z)(n,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),n}(),uxe=function(){function n(r){(0,H.Z)(this,n),this.snapshot=r,this.type=11}return(0,B.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationStart(path: '".concat(e,"')")}}]),n}(),cxe=function(){function n(r){(0,H.Z)(this,n),this.snapshot=r,this.type=12}return(0,B.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationEnd(path: '".concat(e,"')")}}]),n}(),dxe=function(){function n(r){(0,H.Z)(this,n),this.snapshot=r,this.type=13}return(0,B.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationStart(path: '".concat(e,"')")}}]),n}(),fxe=function(){function n(r){(0,H.Z)(this,n),this.snapshot=r,this.type=14}return(0,B.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationEnd(path: '".concat(e,"')")}}]),n}(),are=function(){function n(r,e,i){(0,H.Z)(this,n),this.routerEvent=r,this.position=e,this.anchor=i,this.type=15}return(0,B.Z)(n,[{key:"toString",value:function(){var e=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(e,"')")}}]),n}();var sre=function(){function n(r){(0,H.Z)(this,n),this._root=r}return(0,B.Z)(n,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}},{key:"children",value:function(e){var i=DG(e,this._root);return i?i.children.map(function(o){return o.value}):[]}},{key:"firstChild",value:function(e){var i=DG(e,this._root);return i&&i.children.length>0?i.children[0].value:null}},{key:"siblings",value:function(e){var i=AG(e,this._root);return i.length<2?[]:i[i.length-2].children.map(function(a){return a.value}).filter(function(a){return a!==e})}},{key:"pathFromRoot",value:function(e){return AG(e,this._root).map(function(i){return i.value})}}]),n}();function DG(n,r){if(n===r.value)return r;var i,e=(0,xn.Z)(r.children);try{for(e.s();!(i=e.n()).done;){var a=DG(n,i.value);if(a)return a}}catch(s){e.e(s)}finally{e.f()}return null}function AG(n,r){if(n===r.value)return[r];var i,e=(0,xn.Z)(r.children);try{for(e.s();!(i=e.n()).done;){var a=AG(n,i.value);if(a.length)return a.unshift(r),a}}catch(s){e.e(s)}finally{e.f()}return[]}var um=function(){function n(r,e){(0,H.Z)(this,n),this.value=r,this.children=e}return(0,B.Z)(n,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),n}();function Yw(n){var r={};return n&&n.children.forEach(function(e){return r[e.value.outlet]=e}),r}var lre=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a;return(0,H.Z)(this,e),(a=r.call(this,i)).snapshot=o,OG((0,mD.Z)(a),i),a}return(0,B.Z)(e,[{key:"toString",value:function(){return this.snapshot.toString()}}]),e}(sre);function ure(n,r){var e=function hxe(n,r){var s=new $N([],{},{},"",{},li,r,null,n.root,-1,{});return new dre("",new um(s,[]))}(n,r),i=new to.X([new vD("",{})]),o=new to.X({}),a=new to.X({}),s=new to.X({}),l=new to.X(""),u=new pr(i,o,s,l,a,li,r,e.root);return u.snapshot=e.root,new lre(new um(u,[]),e)}var pr=function(){function n(r,e,i,o,a,s,l,u){var d,h;(0,H.Z)(this,n),this.url=r,this.params=e,this.queryParams=i,this.fragment=o,this.data=a,this.outlet=s,this.component=l,this.title=null!==(h=null===(d=this.data)||void 0===d?void 0:d.pipe((0,$n.U)(function(g){return g[gD]})))&&void 0!==h?h:(0,qn.of)(void 0),this._futureSnapshot=u}return(0,B.Z)(n,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe((0,$n.U)(function(e){return Gw(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,$n.U)(function(e){return Gw(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),n}();function cre(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",e=n.pathFromRoot,i=0;if("always"!==r)for(i=e.length-1;i>=1;){var o=e[i],a=e[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(a.component)break;i--}}return mxe(e.slice(i))}function mxe(n){return n.reduce(function(r,e){var i;return{params:Object.assign(Object.assign({},r.params),e.params),data:Object.assign(Object.assign({},r.data),e.data),resolve:Object.assign(Object.assign(Object.assign(Object.assign({},e.data),r.resolve),null===(i=e.routeConfig)||void 0===i?void 0:i.data),e._resolvedData)}},{params:{},data:{},resolve:{}})}var $N=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C){var Z;(0,H.Z)(this,n),this.url=r,this.params=e,this.queryParams=i,this.fragment=o,this.data=a,this.outlet=s,this.component=l,this.title=null===(Z=this.data)||void 0===Z?void 0:Z[gD],this.routeConfig=u,this._urlSegment=d,this._lastPathIndex=h,this._correctedLastPathIndex=null!=C?C:h,this._resolve=g}return(0,B.Z)(n,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Gw(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Gw(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var e=this.url.map(function(o){return o.toString()}).join("/"),i=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(e,"', path:'").concat(i,"')")}}]),n}(),dre=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a;return(0,H.Z)(this,e),(a=r.call(this,o)).url=i,OG((0,mD.Z)(a),o),a}return(0,B.Z)(e,[{key:"toString",value:function(){return fre(this._root)}}]),e}(sre);function OG(n,r){r.value._routerState=n,r.children.forEach(function(e){return OG(n,e)})}function fre(n){var r=n.children.length>0?" { ".concat(n.children.map(fre).join(", ")," } "):"";return"".concat(n.value).concat(r)}function IG(n){if(n.snapshot){var r=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Sp(r.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),r.fragment!==e.fragment&&n.fragment.next(e.fragment),Sp(r.params,e.params)||n.params.next(e.params),function AEe(n,r){if(n.length!==r.length)return!1;for(var e=0;e4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=Yw(r);return n.children.forEach(function(s){Dxe(s,a[s.value.outlet],e,i.concat([s.value]),o),delete a[s.value.outlet]}),sl(a,function(s,l){return ED(s,e.getContext(l),o)}),o}function Dxe(n,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=n.value,s=r?r.value:null,l=e?e.getContext(n.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){var u=Axe(s,a,a.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new yre(i)):(a.data=s.data,a._resolvedData=s._resolvedData),a.component?SD(n,r,l?l.children:null,i,o):SD(n,r,e,i,o),u&&l&&l.outlet&&l.outlet.isActivated&&o.canDeactivateChecks.push(new tB(l.outlet.component,s))}else s&&ED(r,l,o),o.canActivateChecks.push(new yre(i)),a.component?SD(n,null,l?l.children:null,i,o):SD(n,null,e,i,o);return o}function Axe(n,r,e){if("function"==typeof e)return e(n,r);switch(e){case"pathParamsChange":return!I0(n.url,r.url);case"pathParamsOrQueryParamsChange":return!I0(n.url,r.url)||!Sp(n.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!PG(n,r)||!Sp(n.queryParams,r.queryParams);default:return!PG(n,r)}}function ED(n,r,e){var i=Yw(n),o=n.value;sl(i,function(a,s){o.component?ED(a,r?r.children.getContext(s):null,e):ED(a,r,e)}),o.component&&r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new tB(r.outlet.component,o)):e.canDeactivateChecks.push(new tB(null,o))}function xD(n){return"function"==typeof n}function NG(n){return n instanceof TEe.K||"EmptyError"===(null==n?void 0:n.name)}var nB=Symbol("INITIAL_VALUE");function qw(){return(0,bo.w)(function(n){return(0,j1.aj)(n.map(function(r){return r.pipe((0,Ei.q)(1),(0,eo.O)(nB))})).pipe((0,$n.U)(function(r){var i,e=(0,xn.Z)(r);try{for(e.s();!(i=e.n()).done;){var o=i.value;if(!0!==o){if(o===nB)return nB;if(!1===o||o instanceof O0)return o}}}catch(a){e.e(a)}finally{e.f()}return!0}),(0,ti.h)(function(r){return r!==nB}),(0,Ei.q)(1))})}function Bxe(n,r){return(0,ys.zg)(function(e){var i=e.targetSnapshot,o=e.currentSnapshot,a=e.guards,s=a.canActivateChecks,l=a.canDeactivateChecks;return 0===l.length&&0===s.length?(0,qn.of)(Object.assign(Object.assign({},e),{guardsResult:!0})):function Fxe(n,r,e,i){return(0,Zs.D)(n).pipe((0,ys.zg)(function(o){return function Wxe(n,r,e,i,o){var a=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!a||0===a.length)return(0,qn.of)(!0);var s=a.map(function(l){var u,d=null!==(u=MD(r))&&void 0!==u?u:o,h=Kw(l,d);return Tg(function Lxe(n){return n&&xD(n.canDeactivate)}(h)?h.canDeactivate(n,r,e,i):d.runInContext(function(){return h(n,r,e,i)})).pipe((0,kg.P)())});return(0,qn.of)(s).pipe(qw())}(o.component,o.route,e,r,i)}),(0,kg.P)(function(o){return!0!==o},!0))}(l,i,o,n).pipe((0,ys.zg)(function(u){return u&&function Oxe(n){return"boolean"==typeof n}(u)?function Uxe(n,r,e,i){return(0,Zs.D)(r).pipe((0,A0.b)(function(o){return(0,MEe.z)(function jxe(n,r){return null!==n&&r&&r(new uxe(n)),(0,qn.of)(!0)}(o.route.parent,i),function Hxe(n,r){return null!==n&&r&&r(new dxe(n)),(0,qn.of)(!0)}(o.route,i),function zxe(n,r,e){var i=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(function(s){return function xxe(n){var r=n.routeConfig?n.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:n,guards:r}:null}(s)}).filter(function(s){return null!==s}),a=o.map(function(s){return(0,_D.P)(function(){var l=s.guards.map(function(u){var d,h=null!==(d=MD(s.node))&&void 0!==d?d:e,g=Kw(u,h);return Tg(function Rxe(n){return n&&xD(n.canActivateChild)}(g)?g.canActivateChild(i,n):h.runInContext(function(){return g(i,n)})).pipe((0,kg.P)())});return(0,qn.of)(l).pipe(qw())})});return(0,qn.of)(a).pipe(qw())}(n,o.path,e),function Gxe(n,r,e){var i=r.routeConfig?r.routeConfig.canActivate:null;if(!i||0===i.length)return(0,qn.of)(!0);var o=i.map(function(a){return(0,_D.P)(function(){var s,l=null!==(s=MD(r))&&void 0!==s?s:e,u=Kw(a,l);return Tg(function Pxe(n){return n&&xD(n.canActivate)}(u)?u.canActivate(r,n):l.runInContext(function(){return u(r,n)})).pipe((0,kg.P)())})});return(0,qn.of)(o).pipe(qw())}(n,o.route,e))}),(0,kg.P)(function(o){return!0!==o},!0))}(i,s,n,r):(0,qn.of)(u)}),(0,$n.U)(function(u){return Object.assign(Object.assign({},e),{guardsResult:u})}))})}function Vxe(n,r,e,i){var o=r.canLoad;if(void 0===o||0===o.length)return(0,qn.of)(!0);var a=o.map(function(s){var l=Kw(s,n);return Tg(function Ixe(n){return n&&xD(n.canLoad)}(l)?l.canLoad(r,e):n.runInContext(function(){return l(r,e)}))});return(0,qn.of)(a).pipe(qw(),bre(i))}function bre(n){return(0,SEe.z)((0,pa.b)(function(r){if(P0(r))throw pre(0,r)}),(0,$n.U)(function(r){return!0===r}))}function Yxe(n,r,e,i){var o=r.canMatch;if(!o||0===o.length)return(0,qn.of)(!0);var a=o.map(function(s){var l=Kw(s,n);return Tg(function Zxe(n){return n&&xD(n.canMatch)}(l)?l.canMatch(r,e):n.runInContext(function(){return l(r,e)}))});return(0,qn.of)(a).pipe(qw(),bre())}var BG={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Cre(n,r,e,i,o){var a=FG(n,r,e);return a.matched?Yxe(i=gre(r,i),r,e).pipe((0,$n.U)(function(s){return!0===s?a:Object.assign({},BG)})):(0,qn.of)(a)}function FG(n,r,e){var i;if(""===r.path)return"full"===r.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},BG):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};var a=(r.matcher||DEe)(e,n,r);if(!a)return Object.assign({},BG);var s={};sl(a.posParams,function(u,d){s[d]=u.path});var l=a.consumed.length>0?Object.assign(Object.assign({},s),a.consumed[a.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:a.consumed,remainingSegments:e.slice(a.consumed.length),parameters:l,positionalParamSegments:null!==(i=a.posParams)&&void 0!==i?i:{}}}function rB(n,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(e.length>0&&Jxe(n,e,i)){var a=new pi(r,qxe(n,r,i,new pi(e,n.children)));return a._sourceSegment=n,a._segmentIndexShift=r.length,{segmentGroup:a,slicedSegments:[]}}if(0===e.length&&Qxe(n,e,i)){var s=new pi(n.segments,Kxe(n,r,e,i,n.children,o));return s._sourceSegment=n,s._segmentIndexShift=r.length,{segmentGroup:s,slicedSegments:e}}var l=new pi(n.segments,n.children);return l._sourceSegment=n,l._segmentIndexShift=r.length,{segmentGroup:l,slicedSegments:e}}function Kxe(n,r,e,i,o,a){var u,s={},l=(0,xn.Z)(i);try{for(l.s();!(u=l.n()).done;){var d=u.value;if(iB(n,e,d)&&!o[$c(d)]){var h=new pi([],{});h._sourceSegment=n,h._segmentIndexShift="legacy"===a?n.segments.length:r.length,s[$c(d)]=h}}}catch(g){l.e(g)}finally{l.f()}return Object.assign(Object.assign({},o),s)}function qxe(n,r,e,i){var o={};o[li]=i,i._sourceSegment=n,i._segmentIndexShift=r.length;var s,a=(0,xn.Z)(e);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(""===l.path&&$c(l)!==li){var u=new pi([],{});u._sourceSegment=n,u._segmentIndexShift=r.length,o[$c(l)]=u}}}catch(d){a.e(d)}finally{a.f()}return o}function Jxe(n,r,e){return e.some(function(i){return iB(n,r,i)&&$c(i)!==li})}function Qxe(n,r,e){return e.some(function(i){return iB(n,r,i)})}function iB(n,r,e){return(!(n.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function wre(n,r,e,i){return!!($c(n)===i||i!==li&&iB(r,e,n))&&("**"===n.path||FG(r,n,e).matched)}function kre(n,r,e){return 0===r.length&&!n.children[e]}var oB=!1,aB=(0,B.Z)(function n(r){(0,H.Z)(this,n),this.segmentGroup=r||null}),Tre=(0,B.Z)(function n(r){(0,H.Z)(this,n),this.urlTree=r});function DD(n){return(0,x0._)(new aB(n))}function Mre(n){return(0,x0._)(new Tre(n))}var tDe=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.injector=r,this.configLoader=e,this.urlSerializer=i,this.urlTree=o,this.config=a,this.allowRedirects=!0}return(0,B.Z)(n,[{key:"apply",value:function(){var e=this,i=rB(this.urlTree.root,[],[],this.config).segmentGroup,o=new pi(i.segments,i.children);return this.expandSegmentGroup(this.injector,this.config,o,li).pipe((0,$n.U)(function(l){return e.createUrlTree(QN(l),e.urlTree.queryParams,e.urlTree.fragment)})).pipe((0,Xc.K)(function(l){if(l instanceof Tre)return e.allowRedirects=!1,e.match(l.urlTree);throw l instanceof aB?e.noMatchError(l):l}))}},{key:"match",value:function(e){var i=this;return this.expandSegmentGroup(this.injector,this.config,e.root,li).pipe((0,$n.U)(function(s){return i.createUrlTree(QN(s),e.queryParams,e.fragment)})).pipe((0,Xc.K)(function(s){throw s instanceof aB?i.noMatchError(s):s}))}},{key:"noMatchError",value:function(e){return new t.vHH(4002,oB)}},{key:"createUrlTree",value:function(e,i,o){var a=TG(e);return new O0(a,i,o)}},{key:"expandSegmentGroup",value:function(e,i,o,a){return 0===o.segments.length&&o.hasChildren()?this.expandChildren(e,i,o).pipe((0,$n.U)(function(s){return new pi([],s)})):this.expandSegment(e,o,i,o.segments,a,!0)}},{key:"expandChildren",value:function(e,i,o){for(var a=this,s=[],l=0,u=Object.keys(o.children);l1||!a.children[li])return e.redirectTo,(0,x0._)(new t.vHH(4e3,oB));a=a.children[li]}}},{key:"applyRedirectCommands",value:function(e,i,o){return this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,o)}},{key:"applyRedirectCreateUrlTree",value:function(e,i,o,a){var s=this.createSegmentGroup(e,i.root,o,a);return new O0(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}},{key:"createQueryParams",value:function(e,i){var o={};return sl(e,function(a,s){if("string"==typeof a&&a.startsWith(":")){var u=a.substring(1);o[s]=i[u]}else o[s]=a}),o}},{key:"createSegmentGroup",value:function(e,i,o,a){var s=this,l=this.createSegments(e,i.segments,o,a),u={};return sl(i.children,function(d,h){u[h]=s.createSegmentGroup(e,d,o,a)}),new pi(l,u)}},{key:"createSegments",value:function(e,i,o,a){var s=this;return i.map(function(l){return l.path.startsWith(":")?s.findPosParam(e,l,a):s.findOrReturn(l,o)})}},{key:"findPosParam",value:function(e,i,o){var a=o[i.path.substring(1)];if(!a)throw new t.vHH(4001,oB);return a}},{key:"findOrReturn",value:function(e,i){var s,o=0,a=(0,xn.Z)(i);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(l.path===e.path)return i.splice(o),l;o++}}catch(u){a.e(u)}finally{a.f()}return e}}]),n}();function nDe(n,r,e,i){return(0,bo.w)(function(o){return function eDe(n,r,e,i,o){return new tDe(n,r,e,i,o).apply()}(n,r,e,o.extractedUrl,i).pipe((0,$n.U)(function(a){return Object.assign(Object.assign({},o),{urlAfterRedirects:a})}))})}var rDe=(0,B.Z)(function n(){(0,H.Z)(this,n)});function iDe(n){return new $i.y(function(r){return r.error(n)})}var aDe=function(){function n(r,e,i,o,a,s,l,u){(0,H.Z)(this,n),this.injector=r,this.rootComponentType=e,this.config=i,this.urlTree=o,this.url=a,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=l,this.urlSerializer=u}return(0,B.Z)(n,[{key:"recognize",value:function(){var e=this,i=rB(this.urlTree.root,[],[],this.config.filter(function(o){return void 0===o.redirectTo}),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,i,li).pipe((0,$n.U)(function(o){if(null===o)return null;var a=new $N([],Object.freeze({}),Object.freeze(Object.assign({},e.urlTree.queryParams)),e.urlTree.fragment,{},li,e.rootComponentType,null,e.urlTree.root,-1,{}),s=new um(a,o),l=new dre(e.url,s);return e.inheritParamsAndData(l._root),l}))}},{key:"inheritParamsAndData",value:function(e){var i=this,o=e.value,a=cre(o,this.paramsInheritanceStrategy);o.params=Object.freeze(a.params),o.data=Object.freeze(a.data),e.children.forEach(function(s){return i.inheritParamsAndData(s)})}},{key:"processSegmentGroup",value:function(e,i,o,a){return 0===o.segments.length&&o.hasChildren()?this.processChildren(e,i,o):this.processSegment(e,i,o,o.segments,a)}},{key:"processChildren",value:function(e,i,o){var a=this;return(0,Zs.D)(Object.keys(o.children)).pipe((0,A0.b)(function(s){var l=o.children[s],u=vre(i,s);return a.processSegmentGroup(e,u,l,s)}),(0,Fne.R)(function(s,l){return s&&l?(s.push.apply(s,(0,pn.Z)(l)),s):null}),(0,EEe.o)(function(s){return null!==s}),(0,Hne.d)(null),(0,Une.Z)(),(0,$n.U)(function(s){if(null===s)return null;var l=Sre(s);return function sDe(n){n.sort(function(r,e){return r.value.outlet===li?-1:e.value.outlet===li?1:r.value.outlet.localeCompare(e.value.outlet)})}(l),l}))}},{key:"processSegment",value:function(e,i,o,a,s){var l=this;return(0,Zs.D)(i).pipe((0,A0.b)(function(u){var d;return l.processSegmentAgainstRoute(null!==(d=u._injector)&&void 0!==d?d:e,u,o,a,s)}),(0,kg.P)(function(u){return!!u}),(0,Xc.K)(function(u){if(NG(u))return kre(o,a,s)?(0,qn.of)([]):(0,qn.of)(null);throw u}))}},{key:"processSegmentAgainstRoute",value:function(e,i,o,a,s){var u,d,h,l=this;if(i.redirectTo||!wre(i,o,a,s))return(0,qn.of)(null);if("**"===i.path){var g=a.length>0?Wne(a).parameters:{},C=xre(o)+a.length,Z=new $N(a,g,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Are(i),$c(i),null!==(d=null!==(u=i.component)&&void 0!==u?u:i._loadedComponent)&&void 0!==d?d:null,i,Ere(o),C,Ore(i),C);h=(0,qn.of)({snapshot:Z,consumedSegments:[],remainingSegments:[]})}else h=Cre(o,i,a,e,this.urlSerializer).pipe((0,$n.U)(function(z){var Ce,Ee,q=z.matched,re=z.consumedSegments,ae=z.remainingSegments,Se=z.parameters;if(!q)return null;var Ve=xre(o)+re.length;return{snapshot:new $N(re,Se,Object.freeze(Object.assign({},l.urlTree.queryParams)),l.urlTree.fragment,Are(i),$c(i),null!==(Ee=null!==(Ce=i.component)&&void 0!==Ce?Ce:i._loadedComponent)&&void 0!==Ee?Ee:null,i,Ere(o),Ve,Ore(i),Ve),consumedSegments:re,remainingSegments:ae}}));return h.pipe((0,bo.w)(function(z){var q,re;if(null===z)return(0,qn.of)(null);var ae=z.snapshot,Se=z.consumedSegments,Ce=z.remainingSegments;e=null!==(q=i._injector)&&void 0!==q?q:e;var Ee=null!==(re=i._loadedInjector)&&void 0!==re?re:e,Ve=function lDe(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(i),ut=rB(o,Se,Ce,Ve.filter(function(bt){return void 0===bt.redirectTo}),l.relativeLinkResolution),Ae=ut.segmentGroup,ot=ut.slicedSegments;if(0===ot.length&&Ae.hasChildren())return l.processChildren(Ee,Ve,Ae).pipe((0,$n.U)(function(bt){return null===bt?null:[new um(ae,bt)]}));if(0===Ve.length&&0===ot.length)return(0,qn.of)([new um(ae,[])]);var ht=$c(i)===s;return l.processSegment(Ee,Ve,Ae,ot,ht?li:s).pipe((0,$n.U)(function(bt){return null===bt?null:[new um(ae,bt)]}))}))}}]),n}();function Sre(n){var o,r=[],e=new Set,i=(0,xn.Z)(n);try{var a=function(){var g=o.value;if(!function uDe(n){var r=n.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}(g))return r.push(g),1;var Z,C=r.find(function(z){return g.value.routeConfig===z.value.routeConfig});void 0!==C?((Z=C.children).push.apply(Z,(0,pn.Z)(g.children)),e.add(C)):r.push(g)};for(i.s();!(o=i.n()).done;)a()}catch(h){i.e(h)}finally{i.f()}var l,s=(0,xn.Z)(e);try{for(s.s();!(l=s.n()).done;){var u=l.value,d=Sre(u.children);r.push(new um(u.value,d))}}catch(h){s.e(h)}finally{s.f()}return r.filter(function(h){return!e.has(h)})}function Ere(n){for(var r=n;r._sourceSegment;)r=r._sourceSegment;return r}function xre(n){for(var r,e,i=n,o=null!==(r=i._segmentIndexShift)&&void 0!==r?r:0;i._sourceSegment;)o+=null!==(e=(i=i._sourceSegment)._segmentIndexShift)&&void 0!==e?e:0;return o-1}function Are(n){return n.data||{}}function Ore(n){return n.resolve||{}}function dDe(n,r,e,i,o,a){return(0,ys.zg)(function(s){return function oDe(n,r,e,i,o,a){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"emptyOnly",l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"legacy";return new aDe(n,r,e,i,o,s,l,a).recognize().pipe((0,bo.w)(function(u){return null===u?iDe(new rDe):(0,qn.of)(u)}))}(n,r,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,o,a).pipe((0,$n.U)(function(l){return Object.assign(Object.assign({},s),{targetSnapshot:l})}))})}function fDe(n,r){return(0,ys.zg)(function(e){var i=e.targetSnapshot,o=e.guards.canActivateChecks;if(!o.length)return(0,qn.of)(e);var a=0;return(0,Zs.D)(o).pipe((0,A0.b)(function(s){return function pDe(n,r,e,i){var o=n.routeConfig,a=n._resolve;return void 0!==(null==o?void 0:o.title)&&!Ire(o)&&(a[gD]=o.title),function hDe(n,r,e,i){var o=function mDe(n){return[].concat((0,pn.Z)(Object.keys(n)),(0,pn.Z)(Object.getOwnPropertySymbols(n)))}(n);if(0===o.length)return(0,qn.of)({});var a={};return(0,Zs.D)(o).pipe((0,ys.zg)(function(s){return function _De(n,r,e,i){var o,a=null!==(o=MD(r))&&void 0!==o?o:i,s=Kw(n,a);return Tg(s.resolve?s.resolve(r,e):a.runInContext(function(){return s(r,e)}))}(n[s],r,e,i).pipe((0,kg.P)(),(0,pa.b)(function(l){a[s]=l}))}),(0,w7.h)(1),(0,x1.h)(a),(0,Xc.K)(function(s){return NG(s)?D0.E:(0,x0._)(s)}))}(a,n,r,i).pipe((0,$n.U)(function(s){return n._resolvedData=s,n.data=cre(n,e).resolve,o&&Ire(o)&&(n.data[gD]=o.title),null}))}(s.route,i,n,r)}),(0,pa.b)(function(){return a++}),(0,w7.h)(1),(0,ys.zg)(function(s){return a===o.length?(0,qn.of)(e):D0.E}))})}function Ire(n){return"string"==typeof n.title||null===n.title}function UG(n){return(0,bo.w)(function(r){var e=n(r);return e?(0,Zs.D)(e).pipe((0,$n.U)(function(){return r})):(0,qn.of)(r)})}var Jw=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"buildTitle",value:function(e){for(var i,o,a=e.root;void 0!==a;)o=null!==(i=this.getResolvedTitleForRoute(a))&&void 0!==i?i:o,a=a.children.find(function(s){return s.outlet===li});return o}},{key:"getResolvedTitleForRoute",value:function(e){return e.data[gD]}}]),n}();Jw.\u0275fac=function(r){return new(r||Jw)},Jw.\u0275prov=t.Yz7({token:Jw,factory:function(){return(0,t.f3M)(L0)},providedIn:"root"});var L0=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,H.Z)(this,e),(o=r.call(this)).title=i,o}return(0,B.Z)(e,[{key:"updateTitle",value:function(o){var a=this.buildTitle(o);void 0!==a&&this.title.setTitle(a)}}]),e}(Jw);L0.\u0275fac=function(r){return new(r||L0)(t.LFG(Hr))},L0.\u0275prov=t.Yz7({token:L0,factory:L0.\u0275fac,providedIn:"root"});var gDe=(0,B.Z)(function n(){(0,H.Z)(this,n)}),vDe=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,i){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,i){return e.routeConfig===i.routeConfig}}]),n}(),yDe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(vDe),lB=new t.OlP("",{providedIn:"root",factory:function(){return{}}}),HG=new t.OlP("ROUTES"),Mg=function(){function n(r,e){(0,H.Z)(this,n),this.injector=r,this.compiler=e,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}return(0,B.Z)(n,[{key:"loadComponent",value:function(e){var i=this;if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,qn.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);var o=Tg(e.loadComponent()).pipe((0,pa.b)(function(s){i.onLoadEndListener&&i.onLoadEndListener(e),e._loadedComponent=s}),(0,zN.x)(function(){i.componentLoaders.delete(e)})),a=new Bne.c(o,function(){return new In.xQ}).pipe((0,jne.x)());return this.componentLoaders.set(e,a),a}},{key:"loadChildren",value:function(e,i){var o=this;if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return(0,qn.of)({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);var s=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe((0,$n.U)(function(u){o.onLoadEndListener&&o.onLoadEndListener(i);var d,h;Array.isArray(u)?h=u:h=zne((d=u.create(e).injector).get(HG,[],t.XFs.Self|t.XFs.Optional));var C=h.map(ZG);return{routes:C,injector:d}}),(0,zN.x)(function(){o.childrenLoaders.delete(i)})),l=new Bne.c(s,function(){return new In.xQ}).pipe((0,jne.x)());return this.childrenLoaders.set(i,l),l}},{key:"loadModuleFactoryOrRoutes",value:function(e){var i=this;return Tg(e()).pipe((0,ys.zg)(function(o){return o instanceof t.YKP||Array.isArray(o)?(0,qn.of)(o):(0,Zs.D)(i.compiler.compileModuleAsync(o))}))}}]),n}();Mg.\u0275fac=function(r){return new(r||Mg)(t.LFG(t.zs3),t.LFG(t.Sil))},Mg.\u0275prov=t.Yz7({token:Mg,factory:Mg.\u0275fac,providedIn:"root"});var CDe=(0,B.Z)(function n(){(0,H.Z)(this,n)}),wDe=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,i){return e}}]),n}(),uB=!1;function kDe(n){throw n}function TDe(n,r,e){return r.parse("/")}var MDe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},SDe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Rre(){var n,r,e=(0,t.f3M)(zw),i=(0,t.f3M)(Ep),o=(0,t.f3M)(ge.Ye),a=(0,t.f3M)(t.zs3),s=(0,t.f3M)(t.Sil),l=null!==(n=(0,t.f3M)(HG,{optional:!0}))&&void 0!==n?n:[],u=null!==(r=(0,t.f3M)(lB,{optional:!0}))&&void 0!==r?r:{},d=(0,t.f3M)(L0),h=(0,t.f3M)(Jw,{optional:!0}),g=(0,t.f3M)(CDe,{optional:!0}),C=(0,t.f3M)(gDe,{optional:!0}),Z=new ur(null,e,i,o,a,s,zne(l));return g&&(Z.urlHandlingStrategy=g),C&&(Z.routeReuseStrategy=C),Z.titleStrategy=null!=h?h:d,function EDe(n,r){n.errorHandler&&(r.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(r.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(r.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(r.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(r.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(r.canceledNavigationResolution=n.canceledNavigationResolution)}(u,Z),Z}var ur=function(){function n(r,e,i,o,a,s,l){var u=this;(0,H.Z)(this,n),this.rootComponentType=r,this.urlSerializer=e,this.rootContexts=i,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new In.xQ,this.errorHandler=kDe,this.malformedUriErrorHandler=TDe,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=function(){return(0,qn.of)(void 0)},this.urlHandlingStrategy=new wDe,this.routeReuseStrategy=new yDe,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace";this.configLoader=a.get(Mg),this.configLoader.onLoadEndListener=function(Z){return u.triggerEvent(new lxe(Z))},this.configLoader.onLoadStartListener=function(Z){return u.triggerEvent(new sxe(Z))},this.ngModule=a.get(t.h0i),this.console=a.get(t.c2e);var g=a.get(t.R0b);this.isNgZoneEnabled=g instanceof t.R0b&&t.R0b.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function OEe(){return new O0(new pi([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ure(this.currentUrlTree,this.rootComponentType),this.transitions=new to.X({id:0,targetPageId: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()}return(0,B.Z)(n,[{key:"browserPageId",get:function(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}},{key:"setupNavigations",value:function(e){var i=this,o=this.events;return e.pipe((0,ti.h)(function(a){return 0!==a.id}),(0,$n.U)(function(a){return Object.assign(Object.assign({},a),{extractedUrl:i.urlHandlingStrategy.extract(a.rawUrl)})}),(0,bo.w)(function(a){var s=!1,l=!1;return(0,qn.of)(a).pipe((0,pa.b)(function(u){i.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:i.lastSuccessfulNavigation?Object.assign(Object.assign({},i.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,bo.w)(function(u){var d=i.browserUrlTree.toString(),h=!i.navigated||u.extractedUrl.toString()!==d||d!==i.currentUrlTree.toString();if(("reload"===i.onSameUrlNavigation||h)&&i.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return Lre(u.source)&&(i.browserUrlTree=u.extractedUrl),(0,qn.of)(u).pipe((0,bo.w)(function(Ee){var Ve=i.transitions.getValue();return o.next(new XN(Ee.id,i.serializeUrl(Ee.extractedUrl),Ee.source,Ee.restoredState)),Ve!==i.transitions.getValue()?D0.E:Promise.resolve(Ee)}),nDe(i.ngModule.injector,i.configLoader,i.urlSerializer,i.config),(0,pa.b)(function(Ee){i.currentNavigation=Object.assign(Object.assign({},i.currentNavigation),{finalUrl:Ee.urlAfterRedirects}),a.urlAfterRedirects=Ee.urlAfterRedirects}),dDe(i.ngModule.injector,i.rootComponentType,i.config,i.urlSerializer,i.paramsInheritanceStrategy,i.relativeLinkResolution),(0,pa.b)(function(Ee){if(a.targetSnapshot=Ee.targetSnapshot,"eager"===i.urlUpdateStrategy){if(!Ee.extras.skipLocationChange){var Ve=i.urlHandlingStrategy.merge(Ee.urlAfterRedirects,Ee.rawUrl);i.setBrowserUrl(Ve,Ee)}i.browserUrlTree=Ee.urlAfterRedirects}var ut=new nxe(Ee.id,i.serializeUrl(Ee.extractedUrl),i.serializeUrl(Ee.urlAfterRedirects),Ee.targetSnapshot);o.next(ut)}));if(h&&i.rawUrlTree&&i.urlHandlingStrategy.shouldProcessUrl(i.rawUrlTree)){var Z=u.id,z=u.extractedUrl,q=u.source,re=u.restoredState,ae=u.extras,Se=new XN(Z,i.serializeUrl(z),q,re);o.next(Se);var Ce=ure(z,i.rootComponentType).snapshot;return a=Object.assign(Object.assign({},u),{targetSnapshot:Ce,urlAfterRedirects:z,extras:Object.assign(Object.assign({},ae),{skipLocationChange:!1,replaceUrl:!1})}),(0,qn.of)(a)}return i.rawUrlTree=u.rawUrl,u.resolve(null),D0.E}),(0,pa.b)(function(u){var d=new rxe(u.id,i.serializeUrl(u.extractedUrl),i.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);i.triggerEvent(d)}),(0,$n.U)(function(u){return a=Object.assign(Object.assign({},u),{guards:Exe(u.targetSnapshot,u.currentSnapshot,i.rootContexts)})}),Bxe(i.ngModule.injector,function(u){return i.triggerEvent(u)}),(0,pa.b)(function(u){if(a.guardsResult=u.guardsResult,P0(u.guardsResult))throw pre(i.urlSerializer,u.guardsResult);var d=new ixe(u.id,i.serializeUrl(u.extractedUrl),i.serializeUrl(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);i.triggerEvent(d)}),(0,ti.h)(function(u){return!!u.guardsResult||(i.restoreHistory(u),i.cancelNavigationTransition(u,"",3),!1)}),UG(function(u){if(u.guards.canActivateChecks.length)return(0,qn.of)(u).pipe((0,pa.b)(function(d){var h=new oxe(d.id,i.serializeUrl(d.extractedUrl),i.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.triggerEvent(h)}),(0,bo.w)(function(d){var h=!1;return(0,qn.of)(d).pipe(fDe(i.paramsInheritanceStrategy,i.ngModule.injector),(0,pa.b)({next:function(){return h=!0},complete:function(){h||(i.restoreHistory(d),i.cancelNavigationTransition(d,"",2))}}))}),(0,pa.b)(function(d){var h=new axe(d.id,i.serializeUrl(d.extractedUrl),i.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.triggerEvent(h)}))}),UG(function(u){return(0,j1.aj)(function h(g){var C,Z=[];(null===(C=g.routeConfig)||void 0===C?void 0:C.loadComponent)&&!g.routeConfig._loadedComponent&&Z.push(i.configLoader.loadComponent(g.routeConfig).pipe((0,pa.b)(function(ae){g.component=ae}),(0,$n.U)(function(){})));var q,z=(0,xn.Z)(g.children);try{for(z.s();!(q=z.n()).done;){var re=q.value;Z.push.apply(Z,(0,pn.Z)(h(re)))}}catch(ae){z.e(ae)}finally{z.f()}return Z}(u.targetSnapshot.root)).pipe((0,Hne.d)(),(0,Ei.q)(1))}),UG(function(){return i.afterPreactivation()}),(0,$n.U)(function(u){var d=function _xe(n,r,e){var i=TD(n,r._root,e?e._root:void 0);return new lre(i,r)}(i.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return a=Object.assign(Object.assign({},u),{targetRouterState:d})}),(0,pa.b)(function(u){i.currentUrlTree=u.urlAfterRedirects,i.rawUrlTree=i.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl),i.routerState=u.targetRouterState,"deferred"===i.urlUpdateStrategy&&(u.extras.skipLocationChange||i.setBrowserUrl(i.rawUrlTree,u),i.browserUrlTree=u.urlAfterRedirects)}),function(r,e,i){return(0,$n.U)(function(o){return new Sxe(e,o.targetRouterState,o.currentRouterState,i).activate(r),o})}(i.rootContexts,i.routeReuseStrategy,function(u){return i.triggerEvent(u)}),(0,pa.b)({next:function(){s=!0},complete:function(){s=!0}}),(0,zN.x)(function(){var u;if(!s&&!l){i.cancelNavigationTransition(a,"",1)}(null===(u=i.currentNavigation)||void 0===u?void 0:u.id)===a.id&&(i.currentNavigation=null)}),(0,Xc.K)(function(u){var d;if(l=!0,_re(u)){mre(u)||(i.navigated=!0,i.restoreHistory(a,!0));var h=new kD(a.id,i.serializeUrl(a.extractedUrl),u.message,u.cancellationCode);if(o.next(h),mre(u)){var g=i.urlHandlingStrategy.merge(u.url,i.rawUrlTree),C={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===i.urlUpdateStrategy||Lre(a.source)};i.scheduleNavigation(g,"imperative",null,C,{resolve:a.resolve,reject:a.reject,promise:a.promise})}else a.resolve(!1)}else{i.restoreHistory(a,!0);var Z=new xG(a.id,i.serializeUrl(a.extractedUrl),u,null!==(d=a.targetSnapshot)&&void 0!==d?d:void 0);o.next(Z);try{a.resolve(i.errorHandler(u))}catch(z){a.reject(z)}}return D0.E}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(i){var o="popstate"===i.type?"popstate":"hashchange";"popstate"===o&&setTimeout(function(){var a,s={replaceUrl:!0},l=null!==(a=i.state)&&void 0!==a&&a.navigationId?i.state:null;if(l){var u=Object.assign({},l);delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(s.state=u)}var d=e.parseUrl(i.url);e.scheduleNavigation(d,o,l,s)},0)}))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){this.config=e.map(ZG),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.relativeTo,a=i.queryParams,s=i.fragment,l=i.queryParamsHandling,u=i.preserveFragment,d=o||this.routerState.root,h=u?this.currentUrlTree.fragment:s,g=null;switch(l){case"merge":g=Object.assign(Object.assign({},this.currentUrlTree.queryParams),a);break;case"preserve":g=this.currentUrlTree.queryParams;break;default:g=a||null}return null!==g&&(g=this.removeEmptyProps(g)),JEe(d,this.currentUrlTree,e,g,null!=h?h:null)}},{key:"navigateByUrl",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},o=P0(e)?e:this.parseUrl(e),a=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(a,"imperative",null,i)}},{key:"navigate",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return xDe(e),this.navigateByUrl(this.createUrlTree(e,i),i)}},{key:"serializeUrl",value:function(e){return this.urlSerializer.serialize(e)}},{key:"parseUrl",value:function(e){var i;try{i=this.urlSerializer.parse(e)}catch(o){i=this.malformedUriErrorHandler(o,this.urlSerializer,e)}return i}},{key:"isActive",value:function(e,i){var o;if(o=!0===i?Object.assign({},MDe):!1===i?Object.assign({},SDe):i,P0(e))return Yne(this.currentUrlTree,e,o);var a=this.parseUrl(e);return Yne(this.currentUrlTree,a,o)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce(function(i,o){var a=e[o];return null!=a&&(i[o]=a),i},{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe(function(i){var o;e.navigated=!0,e.lastSuccessfulId=i.id,e.currentPageId=i.targetPageId,e.events.next(new af(i.id,e.serializeUrl(i.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,null===(o=e.titleStrategy)||void 0===o||o.updateTitle(e.routerState.snapshot),i.resolve(!0)},function(i){e.console.warn("Unhandled Navigation Error: ".concat(i))})}},{key:"scheduleNavigation",value:function(e,i,o,a,s){var l,u,d,h,g;if(this.disposed)return Promise.resolve(!1);s?(d=s.resolve,h=s.reject,g=s.promise):g=new Promise(function(q,re){d=q,h=re});var Z,C=++this.navigationId;"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),Z=o&&o.\u0275routerPageId?o.\u0275routerPageId:a.replaceUrl||a.skipLocationChange?null!==(l=this.browserPageId)&&void 0!==l?l:0:(null!==(u=this.browserPageId)&&void 0!==u?u:0)+1):Z=0;return this.setTransition({id:C,targetPageId:Z,source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:a,resolve:d,reject:h,promise:g,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),g.catch(function(q){return Promise.reject(q)})}},{key:"setBrowserUrl",value:function(e,i){var o=this.urlSerializer.serialize(e),a=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl?this.location.replaceState(o,"",a):this.location.go(o,"",a)}},{key:"restoreHistory",value:function(e){var o,a,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var s=this.currentPageId-e.targetPageId,l="popstate"===e.source||"eager"===this.urlUpdateStrategy||this.currentUrlTree===(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl);l&&0!==s?this.location.historyGo(s):this.currentUrlTree===(null===(a=this.currentNavigation)||void 0===a?void 0:a.finalUrl)&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(e,i,o){var a=new kD(e.id,this.serializeUrl(e.extractedUrl),i,o);this.triggerEvent(a),e.resolve(!1)}},{key:"generateNgRouterState",value:function(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,"\u0275routerPageId":i}:{navigationId:e}}}]),n}();function xDe(n){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:{};(0,H.Z)(this,n),this.router=r,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return(0,B.Z)(n,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(i){i instanceof XN?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=i.navigationTrigger,e.restoredId=i.restoredState?i.restoredState.navigationId:0):i instanceof af&&(e.lastId=i.id,e.scheduleScrollEvent(i,e.router.parseUrl(i.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(i){i instanceof are&&(i.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(i.position):i.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(i.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,i){this.router.triggerEvent(new are(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),n}();$w.\u0275fac=function(r){t.$Z()},$w.\u0275prov=t.Yz7({token:$w,factory:$w.\u0275fac});function Nre(n){return n.routerState.root}function ek(n,r){return{"\u0275kind":n,"\u0275providers":r}}function GG(n){return[{provide:HG,multi:!0,useValue:n}]}function Bre(){var n=(0,t.f3M)(t.zs3);return function(r){var e,i,o=n.get(t.z2F);if(r===o.components[0]){var a=n.get(ur),s=n.get(Fre);1===n.get(zG)&&a.initialNavigation(),null===(e=n.get(Ure,null,t.XFs.Optional))||void 0===e||e.setUpPreloading(),null===(i=n.get(jG,null,t.XFs.Optional))||void 0===i||i.init(),a.resetRootComponentType(o.componentTypes[0]),s.closed||(s.next(),s.unsubscribe())}}}var Fre=new t.OlP("",{factory:function(){return new In.xQ}}),zG=new t.OlP("",{providedIn:"root",factory:function(){return 1}});function ADe(){return ek(2,[{provide:zG,useValue:0},{provide:t.ip1,multi:!0,deps:[t.zs3],useFactory:function(e){var i=e.get(ge.V_,Promise.resolve()),o=!1;return function(){return i.then(function(){return new Promise(function(s){var l=e.get(ur),u=e.get(Fre);(function a(s){e.get(ur).events.pipe((0,ti.h)(function(u){return u instanceof af||u instanceof kD||u instanceof xG}),(0,$n.U)(function(u){return u instanceof af||!(!(u instanceof kD)||0!==u.code&&1!==u.code)&&null}),(0,ti.h)(function(u){return null!==u}),(0,Ei.q)(1)).subscribe(function(){s()})})(function(){s(!0),o=!0}),l.afterPreactivation=function(){return s(!0),o||u.closed?(0,qn.of)(void 0):u},l.initialNavigation()})})}}}])}var Ure=new t.OlP("");function PDe(n){return ek(0,[{provide:Ure,useExisting:Xw},{provide:Zre,useExisting:n}])}var Hre=new t.OlP("ROUTER_FORROOT_GUARD"),RDe=[ge.Ye,{provide:zw,useClass:wG},{provide:ur,useFactory:Rre},Ep,{provide:pr,useFactory:Nre,deps:[ur]},Mg];function LDe(){return new t.PXZ("Router",ur)}var Z0=function(){function n(r){(0,H.Z)(this,n)}return(0,B.Z)(n,null,[{key:"forRoot",value:function(e,i){return{ngModule:n,providers:[RDe,[],GG(e),{provide:Hre,useFactory:FDe,deps:[[ur,new t.FiY,new t.tp0]]},{provide:lB,useValue:i||{}},null!=i&&i.useHash?{provide:ge.S$,useClass:ge.Do}:{provide:ge.S$,useClass:ge.b0},{provide:jG,useFactory:function(){var r=(0,t.f3M)(ur),e=(0,t.f3M)(ge.EM),i=(0,t.f3M)(lB);return i.scrollOffset&&e.setOffset(i.scrollOffset),new $w(r,e,i)}},null!=i&&i.preloadingStrategy?PDe(i.preloadingStrategy).\u0275providers:[],{provide:t.PXZ,multi:!0,useFactory:LDe},null!=i&&i.initialNavigation?UDe(i):[],[{provide:jre,useFactory:Bre},{provide:t.tb,multi:!0,useExisting:jre}]]}}},{key:"forChild",value:function(e){return{ngModule:n,providers:[GG(e)]}}}]),n}();function FDe(n){return"guarded"}function UDe(n){return["disabled"===n.initialNavigation?ek(3,[{provide:t.ip1,multi:!0,useFactory:function(){var e=(0,t.f3M)(ur);return function(){e.setUpLocationChangeListener()}}},{provide:zG,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?ADe().\u0275providers:[]]}Z0.\u0275fac=function(r){return new(r||Z0)(t.LFG(Hre,8))},Z0.\u0275mod=t.oAB({type:Z0}),Z0.\u0275inj=t.cJS({imports:[R0]});var jre=new t.OlP("");new t.GfV("14.3.0");var fB=(0,B.Z)(function n(){(0,H.Z)(this,n)}),mo=m(2437),rr=function(){function n(r){(0,H.Z)(this,n),this.httpController=r,this.controllerIds=[],this.serviceInitialized=new In.xQ,this.controllerIds=this.getcontrollerIds(),this.isServiceInitialized=!0,this.serviceInitialized.next(this.isServiceInitialized)}return(0,B.Z)(n,[{key:"getcontrollerIds",value:function(){var e=localStorage.getItem("controllerIds");return(null==e?void 0:e.length)>0?e.split(","):[]}},{key:"updatecontrollerIds",value:function(){localStorage.removeItem("controllerIds"),localStorage.setItem("controllerIds",this.controllerIds.toString())}},{key:"get",value:function(e){var i=JSON.parse(localStorage.getItem("controller-".concat(e)));return new Promise(function(a){a(i)})}},{key:"create",value:function(e){return e.id=this.controllerIds.length+1,localStorage.setItem("controller-".concat(e.id),JSON.stringify(e)),this.controllerIds.push("controller-".concat(e.id)),this.updatecontrollerIds(),new Promise(function(o){o(e)})}},{key:"update",value:function(e){return localStorage.removeItem("controller-".concat(e.id)),localStorage.setItem("controller-".concat(e.id),JSON.stringify(e)),new Promise(function(o){o(e)})}},{key:"findAll",value:function(){var e=this;return new Promise(function(o){var a=[];e.controllerIds.forEach(function(s){var l=JSON.parse(localStorage.getItem(s));a.push(l)}),o(a)})}},{key:"delete",value:function(e){return localStorage.removeItem("controller-".concat(e.id)),this.controllerIds=this.controllerIds.filter(function(o){return o!=="controller-".concat(e.id)}),this.updatecontrollerIds(),new Promise(function(o){o(e.id)})}},{key:"getControllerUrl",value:function(e){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/")}},{key:"checkControllerVersion",value:function(e){return this.httpController.get(e,"/version")}},{key:"getLocalController",value:function(e,i){var o=this;return new Promise(function(s,l){o.findAll().then(function(u){var d=u.find(function(g){return"bundled"===g.location});if(d)d.host=e,d.port=i,d.protocol=location.protocol,o.update(d).then(function(g){s(g)},l);else{var h=new fB;h.name="local",h.host=e,h.port=i,h.location="bundled",h.protocol=location.protocol,o.create(h).then(function(g){s(g)},l)}},l)})}}]),n}();rr.\u0275fac=function(r){return new(r||rr)(t.LFG(mo.zw))},rr.\u0275prov=t.Yz7({token:rr,factory:rr.\u0275fac});var ID=(0,B.Z)(function n(r,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,H.Z)(this,n),this.visible=r,this.error=e,this.clear=i}),Ml=function(){function n(){(0,H.Z)(this,n),this.state=new to.X(new ID(!1))}return(0,B.Z)(n,[{key:"setError",value:function(e){this.state.next(new ID(!1,e.error))}},{key:"clear",value:function(){this.state.next(new ID(!1,null,!0))}},{key:"activate",value:function(){this.state.next(new ID(!0))}},{key:"deactivate",value:function(){this.state.next(new ID(!1))}}]),n}();Ml.\u0275fac=function(r){return new(r||Ml)},Ml.\u0275prov=t.Yz7({token:Ml,factory:Ml.\u0275fac});var Gre=["mat-button",""],zre=["*"],zDe=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],WDe=(0,Vt.pj)((0,Vt.Id)((0,Vt.Kr)(function(){return(0,B.Z)(function n(r){(0,H.Z)(this,n),this._elementRef=r})}()))),cn=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;(0,H.Z)(this,e),(s=r.call(this,i))._focusMonitor=o,s._animationMode=a,s.isRoundButton=s._hasHostAttributes("mat-fab","mat-mini-fab"),s.isIconButton=s._hasHostAttributes("mat-icon-button");var u,l=(0,xn.Z)(zDe);try{for(l.s();!(u=l.n()).done;){var d=u.value;s._hasHostAttributes(d)&&s._getHostElement().classList.add(d)}}catch(h){l.e(h)}finally{l.f()}return i.nativeElement.classList.add("mat-button-base"),s.isRoundButton&&(s.color="accent"),s}return(0,B.Z)(e,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(o,a){o?this._focusMonitor.focusVia(this._getHostElement(),o,a):this._getHostElement().focus(a)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var o=this,a=arguments.length,s=new Array(a),l=0;l*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0});var N0=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,o,i,a))._ngZone=s,l._haltDisabledEvents=function(u){l.disabled&&(u.preventDefault(),u.stopImmediatePropagation())},l}return(0,B.Z)(e,[{key:"ngAfterViewInit",value:function(){var o=this;(0,dt.Z)((0,Ut.Z)(e.prototype),"ngAfterViewInit",this).call(this),this._ngZone?this._ngZone.runOutsideAngular(function(){o._elementRef.nativeElement.addEventListener("click",o._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}},{key:"ngOnDestroy",value:function(){(0,dt.Z)((0,Ut.Z)(e.prototype),"ngOnDestroy",this).call(this),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}]),e}(cn);N0.\u0275fac=function(r){return new(r||N0)(t.Y36(Yr.tE),t.Y36(t.SBq),t.Y36(t.QbO,8),t.Y36(t.R0b,8))},N0.\u0275cmp=t.Xpm({type:N0,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(r,e){2&r&&(t.uIk("tabindex",e.disabled?-1:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),t.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[t.qOj],attrs:Gre,ngContentSelectors:zre,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"span",0),t.Hsn(1),t.qZA(),t._UZ(2,"span",1)(3,"span",2)),2&r&&(t.xp6(2),t.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),t.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},dependencies:[Vt.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0});var dm=(0,B.Z)(function n(){(0,H.Z)(this,n)});dm.\u0275fac=function(r){return new(r||dm)},dm.\u0275mod=t.oAB({type:dm}),dm.\u0275inj=t.cJS({imports:[Vt.si,Vt.BQ,Vt.BQ]});var pB,B0=m(567);function PD(n){var r;return(null===(r=function YDe(){if(void 0===pB&&(pB=null,"undefined"!=typeof window)){var n=window;void 0!==n.trustedTypes&&(pB=n.trustedTypes.createPolicy("angular#components",{createHTML:function(e){return e}}))}return pB}())||void 0===r?void 0:r.createHTML(n))||n}function Wre(n){return Error('Unable to find icon with the name "'.concat(n,'"'))}function Vre(n){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+"via Angular's DomSanitizer. Attempted URL was \"".concat(n,'".'))}function Yre(n){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(n,'".'))}var F0=(0,B.Z)(function n(r,e,i){(0,H.Z)(this,n),this.url=r,this.svgText=e,this.options=i}),xp=function(){function n(r,e,i,o){(0,H.Z)(this,n),this._httpClient=r,this._sanitizer=e,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=i}return(0,B.Z)(n,[{key:"addSvgIcon",value:function(e,i,o){return this.addSvgIconInNamespace("",e,i,o)}},{key:"addSvgIconLiteral",value:function(e,i,o){return this.addSvgIconLiteralInNamespace("",e,i,o)}},{key:"addSvgIconInNamespace",value:function(e,i,o,a){return this._addSvgIconConfig(e,i,new F0(o,null,a))}},{key:"addSvgIconResolver",value:function(e){return this._resolvers.push(e),this}},{key:"addSvgIconLiteralInNamespace",value:function(e,i,o,a){var s=this._sanitizer.sanitize(t.q3G.HTML,o);if(!s)throw Yre(o);var l=PD(s);return this._addSvgIconConfig(e,i,new F0("",l,a))}},{key:"addSvgIconSet",value:function(e,i){return this.addSvgIconSetInNamespace("",e,i)}},{key:"addSvgIconSetLiteral",value:function(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}},{key:"addSvgIconSetInNamespace",value:function(e,i,o){return this._addSvgIconSetConfig(e,new F0(i,null,o))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,i,o){var a=this._sanitizer.sanitize(t.q3G.HTML,i);if(!a)throw Yre(i);var s=PD(a);return this._addSvgIconSetConfig(e,new F0("",s,o))}},{key:"registerFontClassAlias",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,i),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(){for(var e=arguments.length,i=new Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:"",o=Kre(i,e),a=this._svgIconConfigs.get(o);if(a)return this._getSvgFromConfig(a);if(a=this._getIconConfigFromResolvers(i,e))return this._svgIconConfigs.set(o,a),this._getSvgFromConfig(a);var s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):(0,x0._)(Wre(o))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?(0,qn.of)(hB(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,$n.U)(function(i){return hB(i)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,i){var o=this,a=this._extractIconWithNameFromAnySet(e,i);if(a)return(0,qn.of)(a);var s=i.filter(function(l){return!l.svgText}).map(function(l){return o._loadSvgIconSetFromConfig(l).pipe((0,Xc.K)(function(u){var d=o._sanitizer.sanitize(t.q3G.RESOURCE_URL,l.url),h="Loading icon set URL: ".concat(d," failed: ").concat(u.message);return o._errorHandler.handleError(new Error(h)),(0,qn.of)(null)}))});return(0,B0.D)(s).pipe((0,$n.U)(function(){var l=o._extractIconWithNameFromAnySet(e,i);if(!l)throw Wre(e);return l}))}},{key:"_extractIconWithNameFromAnySet",value:function(e,i){for(var o=i.length-1;o>=0;o--){var a=i[o];if(a.svgText&&a.svgText.toString().indexOf(e)>-1){var s=this._svgElementFromConfig(a),l=this._extractSvgIconFromSet(s,e,a.options);if(l)return l}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var i=this;return this._fetchIcon(e).pipe((0,pa.b)(function(o){return e.svgText=o}),(0,$n.U)(function(){return i._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?(0,qn.of)(null):this._fetchIcon(e).pipe((0,pa.b)(function(i){return e.svgText=i}))}},{key:"_extractSvgIconFromSet",value:function(e,i,o){var a=e.querySelector('[id="'.concat(i,'"]'));if(!a)return null;var s=a.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,o);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),o);var l=this._svgElementFromString(PD(""));return l.appendChild(s),this._setSvgAttributes(l,o)}},{key:"_svgElementFromString",value:function(e){var i=this._document.createElement("DIV");i.innerHTML=e;var o=i.querySelector("svg");if(!o)throw Error(" tag not found");return o}},{key:"_toSvgElement",value:function(e){for(var i=this._svgElementFromString(PD("")),o=e.attributes,a=0;a0});this._previousFontSetClass.forEach(function(s){return o.classList.remove(s)}),a.forEach(function(s){return o.classList.add(s)}),this._previousFontSetClass=a,this.fontIcon!==this._previousFontIconClass&&!a.includes("mat-ligature-font")&&(this._previousFontIconClass&&o.classList.remove(this._previousFontIconClass),this.fontIcon&&o.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}}},{key:"_cleanupFontValue",value:function(o){return"string"==typeof o?o.trim().split(" ")[0]:o}},{key:"_prependPathToReferences",value:function(o){var a=this._elementsWithExternalReferences;a&&a.forEach(function(s,l){s.forEach(function(u){l.setAttribute(u.name,"url('".concat(o,"#").concat(u.value,"')"))})})}},{key:"_cacheChildrenWithExternalReferences",value:function(o){for(var a=o.querySelectorAll(t2e),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,l=function(h){qre.forEach(function(g){var C=a[h],Z=C.getAttribute(g),z=Z?Z.match(n2e):null;if(z){var q=s.get(C);q||(q=[],s.set(C,q)),q.push({name:g,value:z[1]})}})},u=0;u0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(this.disabled||!this.message||this._isTooltipVisible())null===(o=this._tooltipInstance)||void 0===o||o._cancelPendingAnimations();else{var a=this._createOverlay();this._detach(),this._portal=this._portal||new uo.C5(this._tooltipComponent,this._viewContainerRef);var s=this._tooltipInstance=a.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe((0,Nr.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.show(i)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay,i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var i,e=this;if(this._overlayRef)return this._overlayRef;var o=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),a=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(o);return a.positionChanges.pipe((0,Nr.R)(this._destroyed)).subscribe(function(s){e._updateCurrentPositionClass(s.connectionPair),e._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:a,panelClass:"".concat(this._cssClassPrefix,"-").concat(Jre),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,Nr.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef.outsidePointerEvents().pipe((0,Nr.R)(this._destroyed)).subscribe(function(){var s;return null===(s=e._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,Nr.R)(this._destroyed)).subscribe(function(s){e._isTooltipVisible()&&s.keyCode===Sr.hY&&!(0,Sr.Vb)(s)&&(s.preventDefault(),s.stopPropagation(),e._ngZone.run(function(){return e.hide(0)}))}),!(null===(i=this._defaultOptions)||void 0===i)&&i.disableTooltipInteractivity&&this._overlayRef.addPanelClass("".concat(this._cssClassPrefix,"-tooltip-panel-non-interactive")),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(e){var i=e.getConfig().positionStrategy,o=this._getOrigin(),a=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},o.main),a.main)),this._addOffset(Object.assign(Object.assign({},o.fallback),a.fallback))])}},{key:"_addOffset",value:function(e){return e}},{key:"_getOrigin",value:function(){var o,e=!this._dir||"ltr"==this._dir.value,i=this.position;"above"==i||"below"==i?o={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={originX:"end",originY:"center"});var a=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:a.x,originY:a.y}}}},{key:"_getOverlayPosition",value:function(){var o,e=!this._dir||"ltr"==this._dir.value,i=this.position;"above"==i?o={overlayX:"center",overlayY:"bottom"}:"below"==i?o={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={overlayX:"start",overlayY:"center"});var a=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:a.x,overlayY:a.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Ei.q)(1),(0,Nr.R)(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}},{key:"_updateCurrentPositionClass",value:function(e){var s,i=e.overlayY,o=e.originX,a=e.originY;if((s="center"===i?this._dir&&"rtl"===this._dir.value?"end"===o?"left":"right":"start"===o?"left":"right":"bottom"===i&&"top"===a?"above":"below")!==this._currentPosition){var l=this._overlayRef;if(l){var u="".concat(this._cssClassPrefix,"-").concat(Jre,"-");l.removePanelClass(u+this._currentPosition),l.addPanelClass(u+s)}this._currentPosition=s}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var i,e=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var o=[];if(this._platformSupportsMouseEvents())o.push(["mouseleave",function(s){var l,u=s.relatedTarget;(!u||null===(l=e._overlayRef)||void 0===l||!l.overlayElement.contains(u))&&e.hide()}],["wheel",function(s){return e._wheelListener(s)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var a=function(){clearTimeout(e._touchstartTimeout),e.hide(e._defaultOptions.touchendHideDelay)};o.push(["touchend",a],["touchcancel",a])}this._addListeners(o),(i=this._passiveListeners).push.apply(i,o)}}},{key:"_addListeners",value:function(e){var i=this;e.forEach(function(o){var a=(0,Nn.Z)(o,2),s=a[0],l=a[1];i._elementRef.nativeElement.addEventListener(s,l,Qre)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var i=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;i!==o&&!o.contains(i)&&this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var i=this._elementRef.nativeElement,o=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),("on"===e||!i.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}}]),n}();mB.\u0275fac=function(r){t.$Z()},mB.\u0275dir=t.lG2({type:mB,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}});var ui=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d,h,g,C,Z,z){var q;return(0,H.Z)(this,e),(q=r.call(this,i,o,a,s,l,u,d,h,g,C,Z,z))._tooltipComponent=LD,q}return(0,B.Z)(e)}(mB);ui.\u0275fac=function(r){return new(r||ui)(t.Y36(xi.aV),t.Y36(t.SBq),t.Y36(ha.mF),t.Y36(t.s_b),t.Y36(t.R0b),t.Y36(Ii.t4),t.Y36(Yr.$s),t.Y36(Yr.tE),t.Y36(Xre),t.Y36(Ls.Is,8),t.Y36(m2e,8),t.Y36(ge.K0))},ui.\u0275dir=t.lG2({type:ui,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[t.qOj]});var RD=function(){function n(r,e){(0,H.Z)(this,n),this._changeDetectorRef=r,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new In.xQ,this._animationsDisabled="NoopAnimations"===e}return(0,B.Z)(n,[{key:"show",value:function(e){var i=this;clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(function(){i._toggleVisibility(!0),i._showTimeoutId=void 0},e)}},{key:"hide",value:function(e){var i=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){i._toggleVisibility(!1),i._hideTimeoutId=void 0},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return this._isVisible}},{key:"ngOnDestroy",value:function(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_handleMouseLeave",value:function(e){var i=e.relatedTarget;(!i||!this._triggerElement.contains(i))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}},{key:"_onShow",value:function(){}},{key:"_handleAnimationEnd",value:function(e){var i=e.animationName;(i===this._showAnimation||i===this._hideAnimation)&&this._finalizeAnimation(i===this._showAnimation)}},{key:"_cancelPendingAnimations",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}},{key:"_finalizeAnimation",value:function(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}},{key:"_toggleVisibility",value:function(e){var i=this._tooltip.nativeElement,o=this._showAnimation,a=this._hideAnimation;if(i.classList.remove(e?a:o),i.classList.add(e?o:a),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){var s=getComputedStyle(i);("0s"===s.getPropertyValue("animation-duration")||"none"===s.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}]),n}();RD.\u0275fac=function(r){return new(r||RD)(t.Y36(t.sBO),t.Y36(t.QbO,8))},RD.\u0275dir=t.lG2({type:RD});var LD=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,i,a))._breakpointObserver=o,s._isHandset=s._breakpointObserver.observe(ed.u3.Handset),s._showAnimation="mat-tooltip-show",s._hideAnimation="mat-tooltip-hide",s}return(0,B.Z)(e)}(RD);LD.\u0275fac=function(r){return new(r||LD)(t.Y36(t.sBO),t.Y36(ed.Yg),t.Y36(t.QbO,8))},LD.\u0275cmp=t.Xpm({type:LD,selectors:[["mat-tooltip-component"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(c2e,7),2&r)&&(t.iGM(i=t.CRH())&&(e._tooltip=i.first))},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(r,e){1&r&&t.NdJ("mouseleave",function(o){return e._handleMouseLeave(o)}),2&r&&t.Udp("zoom",e.isVisible()?1:null)},features:[t.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(r,e){var i;(1&r&&(t.TgZ(0,"div",0,1),t.NdJ("animationend",function(a){return e._handleAnimationEnd(a)}),t.ALo(2,"async"),t._uU(3),t.qZA()),2&r)&&(t.ekj("mat-tooltip-handset",null==(i=t.lcZ(2,4,e._isHandset))?null:i.matches),t.Q6J("ngClass",e.tooltipClass),t.xp6(3),t.Oqu(e.message))},dependencies:[ge.mk,ge.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0});var U0=(0,B.Z)(function n(){(0,H.Z)(this,n)});U0.\u0275fac=function(r){return new(r||U0)},U0.\u0275mod=t.oAB({type:U0}),U0.\u0275inj=t.cJS({providers:[h2e],imports:[Yr.rt,ge.ez,xi.U8,Vt.BQ,Vt.BQ,ha.ZD]});(0,Rt.X$)("state",[(0,Rt.SB)("initial, void, hidden",(0,Rt.oB)({opacity:0,transform:"scale(0)"})),(0,Rt.SB)("visible",(0,Rt.oB)({transform:"scale(1)"})),(0,Rt.eR)("* => visible",(0,Rt.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,Rt.F4)([(0,Rt.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,Rt.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,Rt.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,Rt.eR)("* => hidden",(0,Rt.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,Rt.oB)({opacity:0})))]);function g2e(n,r){1&n&&(t.TgZ(0,"div",4),t._UZ(1,"mat-spinner",5),t.qZA())}function v2e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",6)(1,"div",7)(2,"mat-icon"),t._uU(3,"error_outline"),t.qZA()(),t.TgZ(4,"div"),t._uU(5),t.qZA(),t.TgZ(6,"div")(7,"button",8),t.NdJ("click",function(){t.CHM(e);var a=t.oxw(2);return t.KtG(a.refresh())}),t.TgZ(8,"mat-icon"),t._uU(9,"refresh"),t.qZA()(),t.TgZ(10,"button",9)(11,"mat-icon"),t._uU(12,"home"),t.qZA()()()()}if(2&n){var i=t.oxw(2);t.xp6(5),t.hij("Error occurred: ",i.error.message,"")}}function y2e(n,r){if(1&n&&(t.TgZ(0,"div",1),t.YNc(1,g2e,2,0,"div",2),t.YNc(2,v2e,13,1,"div",3),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.visible&&!e.error),t.xp6(1),t.Q6J("ngIf",e.error)}}var H0=function(){function n(r,e){(0,H.Z)(this,n),this.progressService=r,this.router=e,this.visible=!1}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.progressService.state.subscribe(function(i){e.visible=i.visible,i.error&&!e.error&&(e.error=i.error),i.clear&&(e.error=null)}),this.routerSubscription=this.router.events.subscribe(function(){e.progressService.clear()})}},{key:"refresh",value:function(){this.router.navigateByUrl(this.router.url)}},{key:"ngOnDestroy",value:function(){this.routerSubscription.unsubscribe()}}]),n}();H0.\u0275fac=function(r){return new(r||H0)(t.Y36(Ml),t.Y36(ur))},H0.\u0275cmp=t.Xpm({type:H0,selectors:[["app-progress"]],decls:1,vars:1,consts:[["class","overlay",4,"ngIf"],[1,"overlay"],["class","loading-spinner",4,"ngIf"],["class","error-state",4,"ngIf"],[1,"loading-spinner"],["color","primary"],[1,"error-state"],[1,"error-icon"],["mat-button","","matTooltip","Refresh page","matTooltipClass","custom-tooltip",3,"click"],["mat-button","","routerLink","/","matTooltip","Go to home","matTooltipClass","custom-tooltip"]],template:function(r,e){1&r&&t.YNc(0,y2e,3,2,"div",0),2&r&&t.Q6J("ngIf",e.visible||e.error)},dependencies:[ge.O5,Wo,cn,Dn,lu,ui],styles:[".overlay[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;inset:0;background-color:#00000080;z-index:2000}.loading-spinner[_ngcontent-%COMP%], .error-state[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}.error-state[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{text-align:center}.error-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px}"]});var ZD=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.router=r,this.controllerService=e,this.progressService=i,this.document=o}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.progressService.activate(),setTimeout(function(){var i;i=parseInt(e.document.location.port,10)?parseInt(e.document.location.port,10):"https:"==e.document.location.protocol?443:80,e.controllerService.getLocalController(e.document.location.hostname,i).then(function(o){e.router.navigate(["/controller",o.id,"projects"]),e.progressService.deactivate()})},100)}}]),n}();ZD.\u0275fac=function(r){return new(r||ZD)(t.Y36(ur),t.Y36(rr),t.Y36(Ml),t.Y36(ge.K0))},ZD.\u0275cmp=t.Xpm({type:ZD,selectors:[["app-bundled-controller-finder"]],decls:1,vars:0,template:function(r,e){1&r&&t._UZ(0,"app-progress")},dependencies:[H0]});function yi(n,r,e,i){return new(e||(e=Promise))(function(a,s){function l(h){try{d(i.next(h))}catch(g){s(g)}}function u(h){try{d(i.throw(h))}catch(g){s(g)}}function d(h){h.done?a(h.value):function o(a){return a instanceof e?a:new e(function(s){s(a)})}(h.value).then(l,u)}d((i=i.apply(n,r||[])).next())})}Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var Dp=function(){function n(){(0,H.Z)(this,n),this.dataChange=new to.X([])}return(0,B.Z)(n,[{key:"data",get:function(){return this.dataChange.value}},{key:"addController",value:function(e){var i=this.data.slice();i.push(e),this.dataChange.next(i)}},{key:"addControllers",value:function(e){this.dataChange.next(e)}},{key:"remove",value:function(e){var i=this.data.indexOf(e);i>=0&&(this.data.splice(i,1),this.dataChange.next(this.data.slice()))}},{key:"find",value:function(e){return this.data.find(function(i){return i.name===e})}},{key:"findIndex",value:function(e){return this.data.findIndex(function(i){return i.name===e})}},{key:"update",value:function(e){var i=this.findIndex(e.name);i>=0&&(this.data[i]=e,this.dataChange.next(this.data.slice()))}}]),n}();function G2e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2)(1,"button",3),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.action())}),t._uU(2),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(2),t.Oqu(i.data.action)}}function z2e(n,r){}Dp.\u0275fac=function(r){return new(r||Dp)},Dp.\u0275prov=t.Yz7({token:Dp,factory:Dp.\u0275fac});var JG=new t.OlP("MatSnackBarData"),_B=(0,B.Z)(function n(){(0,H.Z)(this,n),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}),W2e=Math.pow(2,31)-1,gB=function(){function n(r,e){var i=this;(0,H.Z)(this,n),this._overlayRef=e,this._afterDismissed=new In.xQ,this._afterOpened=new In.xQ,this._onAction=new In.xQ,this._dismissedByAction=!1,this.containerInstance=r,r._onExit.subscribe(function(){return i._finishDismiss()})}return(0,B.Z)(n,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(e){var i=this;this._durationTimeoutId=setTimeout(function(){return i.dismiss()},Math.min(e,W2e))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction}}]),n}(),BD=function(){function n(r,e){(0,H.Z)(this,n),this.snackBarRef=r,this.data=e}return(0,B.Z)(n,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),n}();BD.\u0275fac=function(r){return new(r||BD)(t.Y36(gB),t.Y36(JG))},BD.\u0275cmp=t.Xpm({type:BD,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"span",0),t._uU(1),t.qZA(),t.YNc(2,G2e,3,1,"div",1)),2&r&&(t.xp6(1),t.Oqu(e.data.message),t.xp6(1),t.Q6J("ngIf",e.hasAction))},dependencies:[ge.O5,cn],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0});var V2e={snackBarState:(0,Rt.X$)("state",[(0,Rt.SB)("void, hidden",(0,Rt.oB)({transform:"scale(0.8)",opacity:0})),(0,Rt.SB)("visible",(0,Rt.oB)({transform:"scale(1)",opacity:1})),(0,Rt.eR)("* => visible",(0,Rt.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,Rt.eR)("* => void, * => hidden",(0,Rt.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,Rt.oB)({opacity:0})))])},FD=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this))._ngZone=i,u._elementRef=o,u._changeDetectorRef=a,u._platform=s,u.snackBarConfig=l,u._announceDelay=150,u._destroyed=!1,u._onAnnounce=new In.xQ,u._onExit=new In.xQ,u._onEnter=new In.xQ,u._animationState="void",u.attachDomPortal=function(d){u._assertNotAttached();var h=u._portalOutlet.attachDomPortal(d);return u._afterPortalAttached(),h},"assertive"!==l.politeness||l.announcementMessage?"off"===l.politeness?u._live="off":u._live="polite":u._live="assertive",u._platform.FIREFOX&&("polite"===u._live&&(u._role="status"),"assertive"===u._live&&(u._role="alert")),u}return(0,B.Z)(e,[{key:"attachComponentPortal",value:function(o){this._assertNotAttached();var a=this._portalOutlet.attachComponentPortal(o);return this._afterPortalAttached(),a}},{key:"attachTemplatePortal",value:function(o){this._assertNotAttached();var a=this._portalOutlet.attachTemplatePortal(o);return this._afterPortalAttached(),a}},{key:"onAnimationEnd",value:function(o){var a=o.fromState,s=o.toState;if(("void"===s&&"void"!==a||"hidden"===s)&&this._completeExit(),"visible"===s){var l=this._onEnter;this._ngZone.run(function(){l.next(),l.complete()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){var o=this;return this._ngZone.run(function(){o._animationState="hidden",o._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(o._announceTimeoutId)}),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var o=this;this._ngZone.onMicrotaskEmpty.pipe((0,Ei.q)(1)).subscribe(function(){o._ngZone.run(function(){o._onExit.next(),o._onExit.complete()})})}},{key:"_afterPortalAttached",value:function(){var o=this._elementRef.nativeElement,a=this.snackBarConfig.panelClass;a&&(Array.isArray(a)?a.forEach(function(s){return o.classList.add(s)}):o.classList.add(a))}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var o=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){o._announceTimeoutId=setTimeout(function(){var a=o._elementRef.nativeElement.querySelector("[aria-hidden]"),s=o._elementRef.nativeElement.querySelector("[aria-live]");if(a&&s){var l=null;o._platform.isBrowser&&document.activeElement instanceof HTMLElement&&a.contains(document.activeElement)&&(l=document.activeElement),a.removeAttribute("aria-hidden"),s.appendChild(a),null==l||l.focus(),o._onAnnounce.next(),o._onAnnounce.complete()}},o._announceDelay)})}}]),e}(uo.en);FD.\u0275fac=function(r){return new(r||FD)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Ii.t4),t.Y36(_B))},FD.\u0275dir=t.lG2({type:FD,viewQuery:function(r,e){var i;(1&r&&t.Gf(uo.Pl,7),2&r)&&(t.iGM(i=t.CRH())&&(e._portalOutlet=i.first))},features:[t.qOj]});var nk=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"_afterPortalAttached",value:function(){(0,dt.Z)((0,Ut.Z)(e.prototype),"_afterPortalAttached",this).call(this),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}]),e}(FD);nk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(nk)))(e||nk)}}(),nk.\u0275cmp=t.Xpm({type:nk,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(r,e){1&r&&t.WFA("@state.done",function(o){return e.onAnimationEnd(o)}),2&r&&t.d8E("@state",e._animationState)},features:[t.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(r,e){1&r&&(t.TgZ(0,"div",0),t.YNc(1,z2e,0,0,"ng-template",1),t.qZA(),t._UZ(2,"div")),2&r&&(t.xp6(2),t.uIk("aria-live",e._live)("role",e._role))},dependencies:[uo.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[V2e.snackBarState]}});var j0=(0,B.Z)(function n(){(0,H.Z)(this,n)});j0.\u0275fac=function(r){return new(r||j0)},j0.\u0275mod=t.oAB({type:j0}),j0.\u0275inj=t.cJS({imports:[xi.U8,uo.eL,ge.ez,dm,Vt.BQ,Vt.BQ]});var eie=new t.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function Y2e(){return new _B}});var G0=function(){function n(r,e,i,o,a,s){(0,H.Z)(this,n),this._overlay=r,this._live=e,this._injector=i,this._breakpointObserver=o,this._parentSnackBar=a,this._defaultConfig=s,this._snackBarRefAtThisLevel=null}return(0,B.Z)(n,[{key:"_openedSnackBarRef",get:function(){var e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}},{key:"openFromComponent",value:function(e,i){return this._attach(e,i)}},{key:"openFromTemplate",value:function(e,i){return this._attach(e,i)}},{key:"open",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,a=Object.assign(Object.assign({},this._defaultConfig),o);return a.data={message:e,action:i},a.announcementMessage===e&&(a.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,a)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(e,i){var o=i&&i.viewContainerRef&&i.viewContainerRef.injector,a=t.zs3.create({parent:o||this._injector,providers:[{provide:_B,useValue:i}]}),s=new uo.C5(this.snackBarContainerComponent,i.viewContainerRef,a),l=e.attach(s);return l.instance.snackBarConfig=i,l.instance}},{key:"_attach",value:function(e,i){var o=this,a=Object.assign(Object.assign(Object.assign({},new _B),this._defaultConfig),i),s=this._createOverlay(a),l=this._attachSnackBarContainer(s,a),u=new gB(l,s);if(e instanceof t.Rgc){var d=new uo.UE(e,null,{$implicit:a.data,snackBarRef:u});u.instance=l.attachTemplatePortal(d)}else{var h=this._createInjector(a,u),g=new uo.C5(e,void 0,h),C=l.attachComponentPortal(g);u.instance=C.instance}return this._breakpointObserver.observe(ed.u3.HandsetPortrait).pipe((0,Nr.R)(s.detachments())).subscribe(function(Z){s.overlayElement.classList.toggle(o.handsetCssClass,Z.matches)}),a.announcementMessage&&l._onAnnounce.subscribe(function(){o._live.announce(a.announcementMessage,a.politeness)}),this._animateSnackBar(u,a),this._openedSnackBarRef=u,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(e,i){var o=this;e.afterDismissed().subscribe(function(){o._openedSnackBarRef==e&&(o._openedSnackBarRef=null),i.announcementMessage&&o._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(function(){return e._dismissAfter(i.duration)})}},{key:"_createOverlay",value:function(e){var i=new xi.X_;i.direction=e.direction;var o=this._overlay.position().global(),a="rtl"===e.direction,s="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!a||"end"===e.horizontalPosition&&a,l=!s&&"center"!==e.horizontalPosition;return s?o.left("0"):l?o.right("0"):o.centerHorizontally(),"top"===e.verticalPosition?o.top("0"):o.bottom("0"),i.positionStrategy=o,this._overlay.create(i)}},{key:"_createInjector",value:function(e,i){var o=e&&e.viewContainerRef&&e.viewContainerRef.injector;return t.zs3.create({parent:o||this._injector,providers:[{provide:gB,useValue:i},{provide:JG,useValue:e.data}]})}}]),n}();G0.\u0275fac=function(r){return new(r||G0)(t.LFG(xi.aV),t.LFG(Yr.Kd),t.LFG(t.zs3),t.LFG(ed.Yg),t.LFG(G0,12),t.LFG(eie))},G0.\u0275prov=t.Yz7({token:G0,factory:G0.\u0275fac});var td=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u){var d;return(0,H.Z)(this,e),(d=r.call(this,i,o,a,s,l,u)).simpleSnackBarComponent=BD,d.snackBarContainerComponent=nk,d.handsetCssClass="mat-snack-bar-handset",d}return(0,B.Z)(e)}(G0);td.\u0275fac=function(r){return new(r||td)(t.LFG(xi.aV),t.LFG(Yr.Kd),t.LFG(t.zs3),t.LFG(ed.Yg),t.LFG(td,12),t.LFG(eie))},td.\u0275prov=t.Yz7({token:td,factory:td.\u0275fac,providedIn:j0});var Ln=function(){function n(r,e){(0,H.Z)(this,n),this.snackbar=r,this.zone=e,this.snackBarConfigForSuccess={duration:4e3,panelClass:["snackabar-success"],MatSnackBarHorizontalPosition:"center",MatSnackBarVerticalPosition:"bottom"},this.snackBarConfigForWarning={duration:4e3,panelClass:["snackabar-warning"],MatSnackBarHorizontalPosition:"center",MatSnackBarVerticalPosition:"bottom"},this.snackBarConfigForError={duration:1e4,panelClass:["snackabar-error"],MatSnackBarHorizontalPosition:"center",MatSnackBarVerticalPosition:"bottom"}}return(0,B.Z)(n,[{key:"error",value:function(e){var i=this;console.error(e),this.zone.run(function(){i.snackbar.open(e,"Close",i.snackBarConfigForError)})}},{key:"warning",value:function(e){var i=this;this.zone.run(function(){i.snackbar.open(e,"Close",i.snackBarConfigForWarning)})}},{key:"success",value:function(e){var i=this;this.zone.run(function(){i.snackbar.open(e,"Close",i.snackBarConfigForSuccess)})}}]),n}();Ln.\u0275fac=function(r){return new(r||Ln)(t.LFG(td),t.LFG(t.R0b))},Ln.\u0275prov=t.Yz7({token:Ln,factory:Ln.\u0275fac});var kn=m(7322),K2e=["*",[["mat-card-footer"]]],J2e=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],X2e=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],z0=(0,B.Z)(function n(){(0,H.Z)(this,n)});z0.\u0275fac=function(r){return new(r||z0)},z0.\u0275dir=t.lG2({type:z0,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]});var rk=(0,B.Z)(function n(){(0,H.Z)(this,n)});rk.\u0275fac=function(r){return new(r||rk)},rk.\u0275dir=t.lG2({type:rk,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]});var ik=(0,B.Z)(function n(){(0,H.Z)(this,n)});ik.\u0275fac=function(r){return new(r||ik)},ik.\u0275dir=t.lG2({type:ik,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]});var UD=(0,B.Z)(function n(){(0,H.Z)(this,n),this.align="start"});UD.\u0275fac=function(r){return new(r||UD)},UD.\u0275dir=t.lG2({type:UD,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("mat-card-actions-align-end","end"===e.align)},inputs:{align:"align"},exportAs:["matCardActions"]});var vB=(0,B.Z)(function n(){(0,H.Z)(this,n)});vB.\u0275fac=function(r){return new(r||vB)},vB.\u0275dir=t.lG2({type:vB,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]});var yB=(0,B.Z)(function n(){(0,H.Z)(this,n)});yB.\u0275fac=function(r){return new(r||yB)},yB.\u0275dir=t.lG2({type:yB,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]});var bB=(0,B.Z)(function n(){(0,H.Z)(this,n)});bB.\u0275fac=function(r){return new(r||bB)},bB.\u0275dir=t.lG2({type:bB,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]});var CB=(0,B.Z)(function n(){(0,H.Z)(this,n)});CB.\u0275fac=function(r){return new(r||CB)},CB.\u0275dir=t.lG2({type:CB,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]});var wB=(0,B.Z)(function n(){(0,H.Z)(this,n)});wB.\u0275fac=function(r){return new(r||wB)},wB.\u0275dir=t.lG2({type:wB,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]});var kB=(0,B.Z)(function n(){(0,H.Z)(this,n)});kB.\u0275fac=function(r){return new(r||kB)},kB.\u0275dir=t.lG2({type:kB,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]});var TB=(0,B.Z)(function n(){(0,H.Z)(this,n)});TB.\u0275fac=function(r){return new(r||TB)},TB.\u0275dir=t.lG2({type:TB,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]});var ai=(0,B.Z)(function n(r){(0,H.Z)(this,n),this._animationMode=r});ai.\u0275fac=function(r){return new(r||ai)(t.Y36(t.QbO,8))},ai.\u0275cmp=t.Xpm({type:ai,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:["*","mat-card-footer"],decls:2,vars:0,template:function(r,e){1&r&&(t.F$t(K2e),t.Hsn(0),t.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0});var MB=(0,B.Z)(function n(){(0,H.Z)(this,n)});MB.\u0275fac=function(r){return new(r||MB)},MB.\u0275cmp=t.Xpm({type:MB,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(r,e){1&r&&(t.F$t(J2e),t.Hsn(0),t.TgZ(1,"div",0),t.Hsn(2,1),t.qZA(),t.Hsn(3,2))},encapsulation:2,changeDetection:0});var SB=(0,B.Z)(function n(){(0,H.Z)(this,n)});SB.\u0275fac=function(r){return new(r||SB)},SB.\u0275cmp=t.Xpm({type:SB,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"],decls:4,vars:0,template:function(r,e){1&r&&(t.F$t(X2e),t.TgZ(0,"div"),t.Hsn(1),t.qZA(),t.Hsn(2,1),t.Hsn(3,2))},encapsulation:2,changeDetection:0});var ok=(0,B.Z)(function n(){(0,H.Z)(this,n)});ok.\u0275fac=function(r){return new(r||ok)},ok.\u0275mod=t.oAB({type:ok}),ok.\u0275inj=t.cJS({imports:[Vt.BQ,Vt.BQ]});var eAe=m(7568),tie=(0,Ii.i$)({passive:!0}),W0=function(){function n(r,e){(0,H.Z)(this,n),this._platform=r,this._ngZone=e,this._monitoredElements=new Map}return(0,B.Z)(n,[{key:"monitor",value:function(e){var i=this;if(!this._platform.isBrowser)return D0.E;var o=(0,Mn.fI)(e),a=this._monitoredElements.get(o);if(a)return a.subject;var s=new In.xQ,l="cdk-text-field-autofilled",u=function(h){"cdk-text-field-autofill-start"!==h.animationName||o.classList.contains(l)?"cdk-text-field-autofill-end"===h.animationName&&o.classList.contains(l)&&(o.classList.remove(l),i._ngZone.run(function(){return s.next({target:h.target,isAutofilled:!1})})):(o.classList.add(l),i._ngZone.run(function(){return s.next({target:h.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){o.addEventListener("animationstart",u,tie),o.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(o,{subject:s,unlisten:function(){o.removeEventListener("animationstart",u,tie)}}),s}},{key:"stopMonitoring",value:function(e){var i=(0,Mn.fI)(e),o=this._monitoredElements.get(i);o&&(o.unlisten(),o.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}},{key:"ngOnDestroy",value:function(){var e=this;this._monitoredElements.forEach(function(i,o){return e.stopMonitoring(o)})}}]),n}();W0.\u0275fac=function(r){return new(r||W0)(t.LFG(Ii.t4),t.LFG(t.R0b))},W0.\u0275prov=t.Yz7({token:W0,factory:W0.\u0275fac,providedIn:"root"});var EB=function(){function n(r,e){(0,H.Z)(this,n),this._elementRef=r,this._autofillMonitor=e,this.cdkAutofill=new t.vpe}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this._autofillMonitor.monitor(this._elementRef).subscribe(function(i){return e.cdkAutofill.emit(i)})}},{key:"ngOnDestroy",value:function(){this._autofillMonitor.stopMonitoring(this._elementRef)}}]),n}();EB.\u0275fac=function(r){return new(r||EB)(t.Y36(t.SBq),t.Y36(W0))},EB.\u0275dir=t.lG2({type:EB,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}});var xB=function(){function n(r,e,i,o){var a=this;(0,H.Z)(this,n),this._elementRef=r,this._platform=e,this._ngZone=i,this._destroyed=new In.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=function(s){a._hasFocus="focus"===s.type},this._document=o,this._textareaElement=this._elementRef.nativeElement}return(0,B.Z)(n,[{key:"minRows",get:function(){return this._minRows},set:function(e){this._minRows=(0,Mn.su)(e),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(e){this._maxRows=(0,Mn.su)(e),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(e){e=(0,Mn.Ig)(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}},{key:"placeholder",get:function(){return this._textareaElement.placeholder},set:function(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}},{key:"_setMinHeight",value:function(){var e=this.minRows&&this._cachedLineHeight?"".concat(this.minRows*this._cachedLineHeight,"px"):null;e&&(this._textareaElement.style.minHeight=e)}},{key:"_setMaxHeight",value:function(){var e=this.maxRows&&this._cachedLineHeight?"".concat(this.maxRows*this._cachedLineHeight,"px"):null;e&&(this._textareaElement.style.maxHeight=e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(function(){var i=e._getWindow();(0,jd.R)(i,"resize").pipe((0,eAe.e)(16),(0,Nr.R)(e._destroyed)).subscribe(function(){return e.resizeToFitContent(!0)}),e._textareaElement.addEventListener("focus",e._handleFocusEvent),e._textareaElement.addEventListener("blur",e._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}},{key:"ngOnDestroy",value:function(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}},{key:"_cacheTextareaLineHeight",value:function(){if(!this._cachedLineHeight){var e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}}},{key:"_measureScrollHeight",value:function(){var e=this._textareaElement,i=e.style.marginBottom||"",o=this._platform.FIREFOX,a=o&&this._hasFocus,s=o?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";a&&(e.style.marginBottom="".concat(e.clientHeight,"px")),e.classList.add(s);var l=e.scrollHeight-4;return e.classList.remove(s),a&&(e.style.marginBottom=i),l}},{key:"_cacheTextareaPlaceholderHeight",value:function(){if(this._isViewInited&&null==this._cachedPlaceholderHeight){if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);var e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}}},{key:"ngDoCheck",value:function(){this._platform.isBrowser&&this.resizeToFitContent()}},{key:"resizeToFitContent",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),this._cachedLineHeight)){var o=this._elementRef.nativeElement,a=o.value;if(i||this._minRows!==this._previousMinRows||a!==this._previousValue){var s=this._measureScrollHeight(),l=Math.max(s,this._cachedPlaceholderHeight||0);o.style.height="".concat(l,"px"),this._ngZone.runOutsideAngular(function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(function(){return e._scrollToCaretPosition(o)}):setTimeout(function(){return e._scrollToCaretPosition(o)})}),this._previousValue=a,this._previousMinRows=this._minRows}}}},{key:"reset",value:function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}},{key:"_noopInputHandler",value:function(){}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollToCaretPosition",value:function(e){var i=e.selectionStart,o=e.selectionEnd;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(i,o)}}]),n}();xB.\u0275fac=function(r){return new(r||xB)(t.Y36(t.SBq),t.Y36(Ii.t4),t.Y36(t.R0b),t.Y36(ge.K0,8))},xB.\u0275dir=t.lG2({type:xB,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(r,e){1&r&&t.NdJ("input",function(){return e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]});var V0=(0,B.Z)(function n(){(0,H.Z)(this,n)});V0.\u0275fac=function(r){return new(r||V0)},V0.\u0275mod=t.oAB({type:V0}),V0.\u0275inj=t.cJS({});var tAe=new t.OlP("MAT_INPUT_VALUE_ACCESSOR"),nAe=["button","checkbox","file","hidden","image","radio","range","reset","submit"],rAe=0,iAe=(0,Vt.FD)(function(){return(0,B.Z)(function n(r,e,i,o){(0,H.Z)(this,n),this._defaultErrorStateMatcher=r,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o,this.stateChanges=new In.xQ})}()),Kn=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d,h,g,C){var Z;(0,H.Z)(this,e),(Z=r.call(this,u,s,l,a))._elementRef=i,Z._platform=o,Z._autofillMonitor=h,Z._formField=C,Z._uid="mat-input-".concat(rAe++),Z.focused=!1,Z.stateChanges=new In.xQ,Z.controlType="mat-input",Z.autofilled=!1,Z._disabled=!1,Z._type="text",Z._readonly=!1,Z._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(re){return(0,Ii.qK)().has(re)}),Z._iOSKeyupListener=function(re){var ae=re.target;!ae.value&&0===ae.selectionStart&&0===ae.selectionEnd&&(ae.setSelectionRange(1,1),ae.setSelectionRange(0,0))};var z=Z._elementRef.nativeElement,q=z.nodeName.toLowerCase();return Z._inputValueAccessor=d||z,Z._previousNativeValue=Z.value,Z.id=Z.id,o.IOS&&g.runOutsideAngular(function(){i.nativeElement.addEventListener("keyup",Z._iOSKeyupListener)}),Z._isServer=!Z._platform.isBrowser,Z._isNativeSelect="select"===q,Z._isTextarea="textarea"===q,Z._isInFormField=!!C,Z._isNativeSelect&&(Z.controlType=z.multiple?"mat-native-select-multiple":"mat-native-select"),Z}return(0,B.Z)(e,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(o){this._disabled=(0,Mn.Ig)(o),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(o){this._id=o||this._uid}},{key:"required",get:function(){var o,a,s,l;return null!==(l=null!==(o=this._required)&&void 0!==o?o:null===(s=null===(a=this.ngControl)||void 0===a?void 0:a.control)||void 0===s?void 0:s.hasValidator(J.kI.required))&&void 0!==l&&l},set:function(o){this._required=(0,Mn.Ig)(o)}},{key:"type",get:function(){return this._type},set:function(o){this._type=o||"text",this._validateType(),!this._isTextarea&&(0,Ii.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(o){o!==this.value&&(this._inputValueAccessor.value=o,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(o){this._readonly=(0,Mn.Ig)(o)}},{key:"ngAfterViewInit",value:function(){var o=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(a){o.autofilled=a.isAutofilled,o.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(o){this._elementRef.nativeElement.focus(o)}},{key:"_focusChanged",value:function(o){o!==this.focused&&(this.focused=o,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var o,a=this._formField,s=!a||"legacy"!==a.appearance||null!==(o=a._hasLabel)&&void 0!==o&&o.call(a)?this.placeholder:null;if(s!==this._previousPlaceholder){var l=this._elementRef.nativeElement;this._previousPlaceholder=s,s?l.setAttribute("placeholder",s):l.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var o=this._elementRef.nativeElement.value;this._previousNativeValue!==o&&(this._previousNativeValue=o,this.stateChanges.next())}},{key:"_validateType",value:function(){nAe.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var o=this._elementRef.nativeElement.validity;return o&&o.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var o=this._elementRef.nativeElement,a=o.options[0];return this.focused||o.multiple||!this.empty||!!(o.selectedIndex>-1&&a&&a.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(o){o.length?this._elementRef.nativeElement.setAttribute("aria-describedby",o.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"_isInlineSelect",value:function(){var o=this._elementRef.nativeElement;return this._isNativeSelect&&(o.multiple||o.size>1)}}]),e}(iAe);Kn.\u0275fac=function(r){return new(r||Kn)(t.Y36(t.SBq),t.Y36(Ii.t4),t.Y36(J.a5,10),t.Y36(J.F,8),t.Y36(J.sg,8),t.Y36(Vt.rD),t.Y36(tAe,10),t.Y36(W0),t.Y36(t.R0b),t.Y36(kn.G_,8))},Kn.\u0275dir=t.lG2({type:Kn,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(r,e){1&r&&t.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&r&&(t.Ikx("disabled",e.disabled)("required",e.required),t.uIk("id",e.id)("data-placeholder",e.placeholder)("name",e.name||null)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),t.ekj("mat-input-server",e._isServer)("mat-native-select-inline",e._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[t._Bn([{provide:kn.Eo,useExisting:Kn}]),t.qOj,t.TTD]});var ak=(0,B.Z)(function n(){(0,H.Z)(this,n)});ak.\u0275fac=function(r){return new(r||ak)},ak.\u0275mod=t.oAB({type:ak}),ak.\u0275inj=t.cJS({providers:[Vt.rD],imports:[V0,kn.lN,Vt.BQ,V0,kn.lN]});var ni=m(4107);function oAe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"You must enter a value"),t.qZA())}function aAe(n,r){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.key),t.xp6(1),t.hij(" ",e.name," ")}}function sAe(n,r){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.key),t.xp6(1),t.hij(" ",e.name," ")}}var HD=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.controllerService=r,this.controllerDatabase=e,this.route=i,this.router=o,this.toasterService=a,this.controllerOptionsVisibility=!1,this.protocols=[{key:"http:",name:"HTTP"},{key:"https:",name:"HTTPS"}],this.locations=[{key:"local",name:"Local"},{key:"remote",name:"Remote"}],this.controllerForm=new J.nJ({name:new J.p4("",[J.kI.required]),location:new J.p4(""),protocol:new J.p4("http:")})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){return yi(this,void 0,void 0,Rn().mark(function e(){var i=this;return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:this.controllerService.isServiceInitialized&&this.getControllers(),this.controllerService.serviceInitialized.subscribe(function(s){return yi(i,void 0,void 0,Rn().mark(function l(){return Rn().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:s&&this.getControllers();case 1:case"end":return d.stop()}},l,this)}))});case 2:case"end":return a.stop()}},e,this)}))}},{key:"getControllers",value:function(){return yi(this,void 0,void 0,Rn().mark(function e(){var o,a,i=this;return Rn().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return this.controllerIp=this.route.snapshot.paramMap.get("controller_ip"),this.controllerPort=+this.route.snapshot.paramMap.get("controller_port"),this.projectId=this.route.snapshot.paramMap.get("project_id"),l.next=5,this.controllerService.findAll();case 5:o=l.sent,(a=o.filter(function(u){return u.host===i.controllerIp&&u.port===i.controllerPort})[0])?this.router.navigate(["/controller",a.id,"project",this.projectId]):this.controllerOptionsVisibility=!0;case 8:case"end":return l.stop()}},e,this)}))}},{key:"createController",value:function(){var e=this;if(this.controllerForm.get("name").hasError||this.controllerForm.get("location").hasError||this.controllerForm.get("protocol").hasError){var i=new fB;i.host=this.controllerIp,i.port=this.controllerPort,i.name=this.controllerForm.get("name").value,i.location=this.controllerForm.get("location").value,i.protocol=this.controllerForm.get("protocol").value,this.controllerService.create(i).then(function(o){e.router.navigate(["/controller",o.id,"project",e.projectId])})}else this.toasterService.error("Please use correct values")}}]),n}();HD.\u0275fac=function(r){return new(r||HD)(t.Y36(rr),t.Y36(Dp),t.Y36(pr),t.Y36(ur),t.Y36(Ln))},HD.\u0275cmp=t.Xpm({type:HD,selectors:[["app-direct-link"]],decls:20,vars:5,consts:[[1,"content",3,"hidden"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],["matInput","","tabindex","1","formControlName","name","placeholder","Name"],[4,"ngIf"],["placeholder","Location","formControlName","location"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Protocol","formControlName","protocol"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Add new controller"),t.qZA()()(),t.TgZ(5,"div",4)(6,"mat-card",5)(7,"form",6)(8,"mat-form-field"),t._UZ(9,"input",7),t.YNc(10,oAe,2,0,"mat-error",8),t.qZA(),t.TgZ(11,"mat-form-field")(12,"mat-select",9),t.YNc(13,aAe,2,2,"mat-option",10),t.qZA()(),t.TgZ(14,"mat-form-field")(15,"mat-select",11),t.YNc(16,sAe,2,2,"mat-option",10),t.qZA()()()(),t.TgZ(17,"div",12)(18,"button",13),t.NdJ("click",function(){return e.createController()}),t._uU(19,"Add controller"),t.qZA()()()()),2&r&&(t.Q6J("hidden",!e.controllerOptionsVisibility),t.xp6(7),t.Q6J("formGroup",e.controllerForm),t.xp6(3),t.Q6J("ngIf",e.controllerForm.get("name").hasError("required")),t.xp6(3),t.Q6J("ngForOf",e.locations),t.xp6(3),t.Q6J("ngForOf",e.protocols))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,cn,ai,Kn,ni.gD,Vt.ey],styles:["mat-form-field{width:100%}\n"],encapsulation:2});var fm=m(4834),QG=["*"],nie='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}',lAe=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],cAe=["text"];function dAe(n,r){if(1&n&&t._UZ(0,"mat-pseudo-checkbox",5),2&n){var e=t.oxw();t.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}var fAe=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],rie=(0,Vt.Id)((0,Vt.Kr)(function(){return(0,B.Z)(function n(){(0,H.Z)(this,n)})}())),hAe=(0,Vt.Kr)(function(){return(0,B.Z)(function n(){(0,H.Z)(this,n)})}()),iie=new t.OlP("MatList"),oie=new t.OlP("MatNavList"),Hs=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i;return(0,H.Z)(this,e),(i=r.apply(this,arguments))._stateChanges=new In.xQ,i}return(0,B.Z)(e,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),e}(rie);Hs.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Hs)))(e||Hs)}}(),Hs.\u0275cmp=t.Xpm({type:Hs,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[t._Bn([{provide:oie,useExisting:Hs}]),t.qOj,t.TTD],ngContentSelectors:QG,decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0});var pm=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,H.Z)(this,e),(o=r.call(this))._elementRef=i,o._stateChanges=new In.xQ,"action-list"===o._getListType()&&(i.nativeElement.classList.add("mat-action-list"),i.nativeElement.setAttribute("role","group")),o}return(0,B.Z)(e,[{key:"_getListType",value:function(){var o=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===o?"list":"mat-action-list"===o?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),e}(rie);pm.\u0275fac=function(r){return new(r||pm)(t.Y36(t.SBq))},pm.\u0275cmp=t.Xpm({type:pm,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[t._Bn([{provide:iie,useExisting:pm}]),t.qOj,t.TTD],ngContentSelectors:QG,decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},styles:[nie],encapsulation:2,changeDetection:0});var sk=(0,B.Z)(function n(){(0,H.Z)(this,n)});sk.\u0275fac=function(r){return new(r||sk)},sk.\u0275dir=t.lG2({type:sk,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]});var lk=(0,B.Z)(function n(){(0,H.Z)(this,n)});lk.\u0275fac=function(r){return new(r||lk)},lk.\u0275dir=t.lG2({type:lk,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]});var DB=(0,B.Z)(function n(){(0,H.Z)(this,n)});DB.\u0275fac=function(r){return new(r||DB)},DB.\u0275dir=t.lG2({type:DB,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]});var Aa=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;(0,H.Z)(this,e),(l=r.call(this))._element=i,l._isInteractiveList=!1,l._destroyed=new In.xQ,l._disabled=!1,l._isInteractiveList=!!(a||s&&"action-list"===s._getListType()),l._list=a||s;var u=l._getHostElement();return"button"===u.nodeName.toLowerCase()&&!u.hasAttribute("type")&&u.setAttribute("type","button"),l._list&&l._list._stateChanges.pipe((0,Nr.R)(l._destroyed)).subscribe(function(){o.markForCheck()}),l}return(0,B.Z)(e,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(o){this._disabled=(0,Mn.Ig)(o)}},{key:"ngAfterContentInit",value:function(){(0,Vt.E0)(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}}]),e}(hAe);Aa.\u0275fac=function(r){return new(r||Aa)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(oie,8),t.Y36(iie,8))},Aa.\u0275cmp=t.Xpm({type:Aa,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,sk,5),t.Suo(i,lk,5),t.Suo(i,Vt.X2,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._avatar=o.first),t.iGM(o=t.CRH())&&(e._icon=o.first),t.iGM(o=t.CRH())&&(e._lines=o))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(r,e){2&r&&t.ekj("mat-list-item-disabled",e.disabled)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[t.qOj],ngContentSelectors:["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(r,e){1&r&&(t.F$t(lAe),t.TgZ(0,"span",0),t._UZ(1,"span",1),t.Hsn(2),t.TgZ(3,"span",2),t.Hsn(4,1),t.qZA(),t.Hsn(5,2),t.qZA()),2&r&&(t.xp6(1),t.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},dependencies:[Vt.wG],encapsulation:2,changeDetection:0});var mAe=(0,Vt.Kr)(function(){return(0,B.Z)(function n(){(0,H.Z)(this,n)})}()),_Ae=(0,Vt.Kr)(function(){return(0,B.Z)(function n(){(0,H.Z)(this,n)})}()),gAe={provide:J.JU,useExisting:(0,t.Gpc)(function(){return uk}),multi:!0},vAe=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.source=r,this.options=e}),jD=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this))._element=i,s._changeDetector=o,s.selectionList=a,s._selected=!1,s._disabled=!1,s._hasFocus=!1,s.selectedChange=new t.vpe,s.checkboxPosition="after",s._inputsInitialized=!1,s}return(0,B.Z)(e,[{key:"color",get:function(){return this._color||this.selectionList.color},set:function(o){this._color=o}},{key:"value",get:function(){return this._value},set:function(o){this.selected&&!this.selectionList.compareWith(o,this.value)&&this._inputsInitialized&&(this.selected=!1),this._value=o}},{key:"disabled",get:function(){return this._disabled||this.selectionList&&this.selectionList.disabled},set:function(o){var a=(0,Mn.Ig)(o);a!==this._disabled&&(this._disabled=a,this._changeDetector.markForCheck())}},{key:"selected",get:function(){return this.selectionList.selectedOptions.isSelected(this)},set:function(o){var a=(0,Mn.Ig)(o);a!==this._selected&&(this._setSelected(a),(a||this.selectionList.multiple)&&this.selectionList._reportValueChange())}},{key:"ngOnInit",value:function(){var o=this,a=this.selectionList;a._value&&a._value.some(function(l){return a.compareWith(o._value,l)})&&this._setSelected(!0);var s=this._selected;Promise.resolve().then(function(){(o._selected||s)&&(o.selected=!0,o._changeDetector.markForCheck())}),this._inputsInitialized=!0}},{key:"ngAfterContentInit",value:function(){(0,Vt.E0)(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){var o=this;this.selected&&Promise.resolve().then(function(){o.selected=!1});var a=this._hasFocus,s=this.selectionList._removeOptionFromList(this);a&&s&&s.focus()}},{key:"toggle",value:function(){this.selected=!this.selected}},{key:"focus",value:function(){this._element.nativeElement.focus()}},{key:"getLabel",value:function(){return this._text&&this._text.nativeElement.textContent||""}},{key:"_isRippleDisabled",value:function(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}},{key:"_handleClick",value:function(){!this.disabled&&(this.selectionList.multiple||!this.selected)&&(this.toggle(),this.selectionList._emitChangeEvent([this]))}},{key:"_handleFocus",value:function(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}},{key:"_handleBlur",value:function(){this.selectionList._onTouched(),this._hasFocus=!1}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"_setSelected",value:function(o){return o!==this._selected&&(this._selected=o,o?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this.selectedChange.emit(o),this._changeDetector.markForCheck(),!0)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}}]),e}(_Ae);jD.\u0275fac=function(r){return new(r||jD)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36((0,t.Gpc)(function(){return uk})))},jD.\u0275cmp=t.Xpm({type:jD,selectors:[["mat-list-option"]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,sk,5),t.Suo(i,lk,5),t.Suo(i,Vt.X2,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._avatar=o.first),t.iGM(o=t.CRH())&&(e._icon=o.first),t.iGM(o=t.CRH())&&(e._lines=o))},viewQuery:function(r,e){var i;(1&r&&t.Gf(cAe,5),2&r)&&(t.iGM(i=t.CRH())&&(e._text=i.first))},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(r,e){1&r&&t.NdJ("focus",function(){return e._handleFocus()})("blur",function(){return e._handleBlur()})("click",function(){return e._handleClick()}),2&r&&(t.uIk("aria-selected",e.selected)("aria-disabled",e.disabled)("tabindex",-1),t.ekj("mat-list-item-disabled",e.disabled)("mat-list-item-with-avatar",e._avatar||e._icon)("mat-primary","primary"===e.color)("mat-accent","primary"!==e.color&&"warn"!==e.color)("mat-warn","warn"===e.color)("mat-list-single-selected-option",e.selected&&!e.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",disabled:"disabled",selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],features:[t.qOj],ngContentSelectors:["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(r,e){1&r&&(t.F$t(fAe),t.TgZ(0,"div",0),t._UZ(1,"div",1),t.YNc(2,dAe,1,2,"mat-pseudo-checkbox",2),t.TgZ(3,"div",3,4),t.Hsn(5),t.qZA(),t.Hsn(6,1),t.qZA()),2&r&&(t.ekj("mat-list-item-content-reverse","after"==e.checkboxPosition),t.xp6(1),t.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()),t.xp6(1),t.Q6J("ngIf",e.selectionList.multiple))},dependencies:[Vt.wG,Vt.nP,ge.O5],encapsulation:2,changeDetection:0});var uk=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this))._element=i,s._changeDetector=o,s._focusMonitor=a,s._multiple=!0,s._contentInitialized=!1,s.selectionChange=new t.vpe,s.color="accent",s.compareWith=function(l,u){return l===u},s._disabled=!1,s.selectedOptions=new Ci.Ov(s._multiple),s._tabIndex=-1,s._onChange=function(l){},s._destroyed=new In.xQ,s._onTouched=function(){},s}return(0,B.Z)(e,[{key:"disabled",get:function(){return this._disabled},set:function(o){this._disabled=(0,Mn.Ig)(o),this._markOptionsForCheck()}},{key:"multiple",get:function(){return this._multiple},set:function(o){var a=(0,Mn.Ig)(o);a!==this._multiple&&(this._contentInitialized,this._multiple=a,this.selectedOptions=new Ci.Ov(this._multiple,this.selectedOptions.selected))}},{key:"ngAfterContentInit",value:function(){var o=this;this._contentInitialized=!0,this._keyManager=new Yr.Em(this.options).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(function(){return!1}).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe((0,Nr.R)(this._destroyed)).subscribe(function(){o._allowFocusEscape()}),this.options.changes.pipe((0,eo.O)(null),(0,Nr.R)(this._destroyed)).subscribe(function(){o._updateTabIndex()}),this.selectedOptions.changed.pipe((0,Nr.R)(this._destroyed)).subscribe(function(a){if(a.added){var l,s=(0,xn.Z)(a.added);try{for(s.s();!(l=s.n()).done;){l.value.selected=!0}}catch(C){s.e(C)}finally{s.f()}}if(a.removed){var h,d=(0,xn.Z)(a.removed);try{for(d.s();!(h=d.n()).done;){h.value.selected=!1}}catch(C){d.e(C)}finally{d.f()}}}),this._focusMonitor.monitor(this._element).pipe((0,Nr.R)(this._destroyed)).subscribe(function(a){var s;if("keyboard"===a||"program"===a){for(var l=0,u=0;u-1&&this._keyManager.activeItemIndex===a&&(a>0?this._keyManager.updateActiveItem(a-1):0===a&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(a+1,this.options.length-1))),this._keyManager.activeItem}},{key:"_keydown",value:function(o){var a=o.keyCode,s=this._keyManager,l=s.activeItemIndex,u=(0,Sr.Vb)(o);switch(a){case Sr.L_:case Sr.K5:!u&&!s.isTyping()&&(this._toggleFocusedOption(),o.preventDefault());break;default:if(a===Sr.A&&this.multiple&&(0,Sr.Vb)(o,"ctrlKey")&&!s.isTyping()){var d=this.options.some(function(h){return!h.disabled&&!h.selected});this._setAllOptionsSelected(d,!0,!0),o.preventDefault()}else s.onKeydown(o)}this.multiple&&(a===Sr.LH||a===Sr.JH)&&o.shiftKey&&s.activeItemIndex!==l&&this._toggleFocusedOption()}},{key:"_reportValueChange",value:function(){if(this.options&&!this._isDestroyed){var o=this._getSelectedOptionValues();this._onChange(o),this._value=o}}},{key:"_emitChangeEvent",value:function(o){this.selectionChange.emit(new vAe(this,o))}},{key:"writeValue",value:function(o){this._value=o,this.options&&this._setOptionsFromValues(o||[])}},{key:"setDisabledState",value:function(o){this.disabled=o}},{key:"registerOnChange",value:function(o){this._onChange=o}},{key:"registerOnTouched",value:function(o){this._onTouched=o}},{key:"_setOptionsFromValues",value:function(o){var a=this;this.options.forEach(function(s){return s._setSelected(!1)}),o.forEach(function(s){var l=a.options.find(function(u){return!u.selected&&a.compareWith(u.value,s)});l&&l._setSelected(!0)})}},{key:"_getSelectedOptionValues",value:function(){return this.options.filter(function(o){return o.selected}).map(function(o){return o.value})}},{key:"_toggleFocusedOption",value:function(){var o=this._keyManager.activeItemIndex;if(null!=o&&this._isValidIndex(o)){var a=this.options.toArray()[o];a&&!a.disabled&&(this._multiple||!a.selected)&&(a.toggle(),this._emitChangeEvent([a]))}}},{key:"_setAllOptionsSelected",value:function(o,a,s){var l=[];return this.options.forEach(function(u){(!a||!u.disabled)&&u._setSelected(o)&&l.push(u)}),l.length&&(this._reportValueChange(),s&&this._emitChangeEvent(l)),l}},{key:"_isValidIndex",value:function(o){return o>=0&&o collapsed, void => collapsed",(0,Rt.jt)(aie))]),bodyExpansion:(0,Rt.X$)("bodyExpansion",[(0,Rt.SB)("collapsed, void",(0,Rt.oB)({height:"0px",visibility:"hidden"})),(0,Rt.SB)("expanded",(0,Rt.oB)({height:"*",visibility:"visible"})),(0,Rt.eR)("expanded <=> collapsed, void => collapsed",(0,Rt.jt)(aie))])},lie=new t.OlP("MAT_EXPANSION_PANEL"),zD=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this._template=r,this._expansionPanel=e});zD.\u0275fac=function(r){return new(r||zD)(t.Y36(t.Rgc),t.Y36(lie,8))},zD.\u0275dir=t.lG2({type:zD,selectors:[["ng-template","matExpansionPanelContent",""]]});var xAe=0,uie=new t.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),Sl=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,H.Z)(this,e),(h=r.call(this,i,o,a))._viewContainerRef=s,h._animationMode=u,h._hideToggle=!1,h.afterExpand=new t.vpe,h.afterCollapse=new t.vpe,h._inputChanges=new In.xQ,h._headerId="mat-expansion-panel-header-".concat(xAe++),h._bodyAnimationDone=new In.xQ,h.accordion=i,h._document=l,h._bodyAnimationDone.pipe((0,Ly.x)(function(g,C){return g.fromState===C.fromState&&g.toState===C.toState})).subscribe(function(g){"void"!==g.fromState&&("expanded"===g.toState?h.afterExpand.emit():"collapsed"===g.toState&&h.afterCollapse.emit())}),d&&(h.hideToggle=d.hideToggle),h}return(0,B.Z)(e,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(o){this._hideToggle=(0,Mn.Ig)(o)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(o){this._togglePosition=o}},{key:"_hasSpacing",value:function(){return!!this.accordion&&(this.expanded&&"default"===this.accordion.displayMode)}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var o=this;this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,eo.O)(null),(0,ti.h)(function(){return o.expanded&&!o._portal}),(0,Ei.q)(1)).subscribe(function(){o._portal=new uo.UE(o._lazyContent._template,o._viewContainerRef)})}},{key:"ngOnChanges",value:function(o){this._inputChanges.next(o)}},{key:"ngOnDestroy",value:function(){(0,dt.Z)((0,Ut.Z)(e.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var o=this._document.activeElement,a=this._body.nativeElement;return o===a||a.contains(o)}return!1}}]),e}(GD);Sl.\u0275fac=function(r){return new(r||Sl)(t.Y36($G,12),t.Y36(t.sBO),t.Y36(Ci.A8),t.Y36(t.s_b),t.Y36(ge.K0),t.Y36(t.QbO,8),t.Y36(uie,8))},Sl.\u0275cmp=t.Xpm({type:Sl,selectors:[["mat-expansion-panel"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,zD,5),2&r)&&(t.iGM(o=t.CRH())&&(e._lazyContent=o.first))},viewQuery:function(r,e){var i;(1&r&&t.Gf(CAe,5),2&r)&&(t.iGM(i=t.CRH())&&(e._body=i.first))},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(r,e){2&r&&t.ekj("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[t._Bn([{provide:$G,useValue:void 0},{provide:lie,useExisting:Sl}]),t.qOj,t.TTD],ngContentSelectors:["mat-expansion-panel-header","*","mat-action-row"],decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(r,e){1&r&&(t.F$t(kAe),t.Hsn(0),t.TgZ(1,"div",0,1),t.NdJ("@bodyExpansion.done",function(o){return e._bodyAnimationDone.next(o)}),t.TgZ(3,"div",2),t.Hsn(4,1),t.YNc(5,wAe,0,0,"ng-template",3),t.qZA(),t.Hsn(6,2),t.qZA()),2&r&&(t.xp6(1),t.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),t.uIk("aria-labelledby",e._headerId),t.xp6(4),t.Q6J("cdkPortalOutlet",e._portal))},dependencies:[uo.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[sie.bodyExpansion]},changeDetection:0});var AB=(0,B.Z)(function n(){(0,H.Z)(this,n)});AB.\u0275fac=function(r){return new(r||AB)},AB.\u0275dir=t.lG2({type:AB,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]});var DAe=(0,B.Z)(function n(){(0,H.Z)(this,n)}),uu=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d){var h;(0,H.Z)(this,e),(h=r.call(this)).panel=i,h._element=o,h._focusMonitor=a,h._changeDetectorRef=s,h._animationMode=u,h._parentChangeSubscription=Ea.w.EMPTY;var g=i.accordion?i.accordion._stateChanges.pipe((0,ti.h)(function(C){return!(!C.hideToggle&&!C.togglePosition)})):D0.E;return h.tabIndex=parseInt(d||"")||0,h._parentChangeSubscription=(0,ji.T)(i.opened,i.closed,g,i._inputChanges.pipe((0,ti.h)(function(C){return!!(C.hideToggle||C.disabled||C.togglePosition)}))).subscribe(function(){return h._changeDetectorRef.markForCheck()}),i.closed.pipe((0,ti.h)(function(){return i._containsFocus()})).subscribe(function(){return a.focusVia(o,"program")}),l&&(h.expandedHeight=l.expandedHeight,h.collapsedHeight=l.collapsedHeight),h}return(0,B.Z)(e,[{key:"disabled",get:function(){return this.panel.disabled}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var o=this._isExpanded();return o&&this.expandedHeight?this.expandedHeight:!o&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(o){switch(o.keyCode){case Sr.L_:case Sr.K5:(0,Sr.Vb)(o)||(o.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(o))}}},{key:"focus",value:function(o,a){o?this._focusMonitor.focusVia(this._element,o,a):this._element.nativeElement.focus(a)}},{key:"ngAfterViewInit",value:function(){var o=this;this._focusMonitor.monitor(this._element).subscribe(function(a){a&&o.panel.accordion&&o.panel.accordion._handleHeaderFocus(o)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}]),e}((0,Vt.sb)(DAe));uu.\u0275fac=function(r){return new(r||uu)(t.Y36(Sl,1),t.Y36(t.SBq),t.Y36(Yr.tE),t.Y36(t.sBO),t.Y36(uie,8),t.Y36(t.QbO,8),t.$8M("tabindex"))},uu.\u0275cmp=t.Xpm({type:uu,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(r,e){1&r&&t.NdJ("click",function(){return e._toggle()})("keydown",function(o){return e._keydown(o)}),2&r&&(t.uIk("id",e.panel._headerId)("tabindex",e.tabIndex)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),t.Udp("height",e._getHeaderHeight()),t.ekj("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[t.qOj],ngContentSelectors:["mat-panel-title","mat-panel-description","*"],decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(r,e){1&r&&(t.F$t(SAe),t.TgZ(0,"span",0),t.Hsn(1),t.Hsn(2,1),t.Hsn(3,2),t.qZA(),t.YNc(4,MAe,1,1,"span",1)),2&r&&(t.ekj("mat-content-hide-toggle",!e._showToggle()),t.xp6(4),t.Q6J("ngIf",e._showToggle()))},dependencies:[ge.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[sie.indicatorRotate]},changeDetection:0});var WD=(0,B.Z)(function n(){(0,H.Z)(this,n)});WD.\u0275fac=function(r){return new(r||WD)},WD.\u0275dir=t.lG2({type:WD,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]});var Lu=(0,B.Z)(function n(){(0,H.Z)(this,n)});Lu.\u0275fac=function(r){return new(r||Lu)},Lu.\u0275dir=t.lG2({type:Lu,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]});var El=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i;return(0,H.Z)(this,e),(i=r.apply(this,arguments))._ownHeaders=new t.n_E,i._hideToggle=!1,i.displayMode="default",i.togglePosition="after",i}return(0,B.Z)(e,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(o){this._hideToggle=(0,Mn.Ig)(o)}},{key:"ngAfterContentInit",value:function(){var o=this;this._headers.changes.pipe((0,eo.O)(this._headers)).subscribe(function(a){o._ownHeaders.reset(a.filter(function(s){return s.panel.accordion===o})),o._ownHeaders.notifyOnChanges()}),this._keyManager=new Yr.Em(this._ownHeaders).withWrap().withHomeAndEnd()}},{key:"_handleHeaderKeydown",value:function(o){this._keyManager.onKeydown(o)}},{key:"_handleHeaderFocus",value:function(o){this._keyManager.updateActiveItem(o)}},{key:"ngOnDestroy",value:function(){(0,dt.Z)((0,Ut.Z)(e.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),e}(dk);El.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(El)))(e||El)}}(),El.\u0275dir=t.lG2({type:El,selectors:[["mat-accordion"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,uu,5),2&r)&&(t.iGM(o=t.CRH())&&(e._headers=o))},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("mat-accordion-multi",e.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[t._Bn([{provide:$G,useExisting:El}]),t.qOj]});var fk=(0,B.Z)(function n(){(0,H.Z)(this,n)});fk.\u0275fac=function(r){return new(r||fk)},fk.\u0275mod=t.oAB({type:fk}),fk.\u0275inj=t.cJS({imports:[ge.ez,Vt.BQ,Y0,uo.eL]});var VD=function(){function n(r){(0,H.Z)(this,n),this.httpClient=r,this.thirdpartylicenses="",this.releasenotes=""}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.httpClient.get(window.location.href+"/3rdpartylicenses.txt",{responseType:"text"}).subscribe(function(i){e.thirdpartylicenses=i.replace(new RegExp("\n","g"),"
")},function(i){404===i.status&&(e.thirdpartylicenses="Download Solar-PuTTY")}),this.httpClient.get("ReleaseNotes.txt",{responseType:"text"}).subscribe(function(i){e.releasenotes=i.replace(new RegExp("\n","g"),"
")})}},{key:"goToDocumentation",value:function(){window.location.href="https://docs.gns3.com/docs/"}}]),n}();VD.\u0275fac=function(r){return new(r||VD)(t.Y36(sc.eN))},VD.\u0275cmp=t.Xpm({type:VD,selectors:[["app-help"]],decls:39,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"container","mat-elevation-z8"],["href","https://downloads.solarwinds.com/solarwinds/GNS3/Solar-PuTTY/Solar-PuTTY-Optional.exe"],[3,"innerHTML"],["mat-button","","color","primary",1,"full-width",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h1"),t._uU(3,"Help"),t.qZA()(),t.TgZ(4,"div",2)(5,"div",3)(6,"mat-accordion")(7,"mat-expansion-panel")(8,"mat-expansion-panel-header")(9,"mat-panel-title"),t._uU(10," Useful shortcuts "),t.qZA()(),t.TgZ(11,"mat-list")(12,"mat-list-item"),t._uU(13," ctrl + + to zoom in "),t.qZA(),t.TgZ(14,"mat-list-item"),t._uU(15," ctrl + - to zoom out "),t.qZA(),t.TgZ(16,"mat-list-item"),t._uU(17," ctrl + 0 to reset zoom "),t.qZA(),t.TgZ(18,"mat-list-item"),t._uU(19," ctrl + h to hide toolbar "),t.qZA(),t.TgZ(20,"mat-list-item"),t._uU(21," ctrl + a to select all items on map "),t.qZA(),t.TgZ(22,"mat-list-item"),t._uU(23," ctrl + shift + a to deselect all items on map "),t.qZA(),t.TgZ(24,"mat-list-item"),t._uU(25," ctrl + shift + s to go to preferences "),t.qZA()()(),t.TgZ(26,"mat-expansion-panel")(27,"mat-expansion-panel-header")(28,"mat-panel-title"),t._uU(29," Third party components "),t.qZA()(),t.TgZ(30,"a",4),t._UZ(31,"div",5),t.qZA()(),t.TgZ(32,"mat-expansion-panel")(33,"mat-expansion-panel-header")(34,"mat-panel-title"),t._uU(35," Release notes "),t.qZA()(),t._UZ(36,"div",5),t.qZA()()(),t.TgZ(37,"button",6),t.NdJ("click",function(){return e.goToDocumentation()}),t._uU(38,"Go to documentation"),t.qZA()()()),2&r&&(t.xp6(31),t.Q6J("innerHTML",e.thirdpartylicenses,t.oJD),t.xp6(5),t.Q6J("innerHTML",e.releasenotes,t.oJD))},dependencies:[cn,pm,Aa,El,Sl,uu,Lu],styles:[".full-width[_ngcontent-%COMP%]{width:100%;margin-top:20px}a[_ngcontent-%COMP%]{color:#f8f9fa;font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:400;text-decoration:none}"]});var Wa=m(4766),K0=function(){function n(r){(0,H.Z)(this,n),this.electronService=r}return(0,B.Z)(n,[{key:"isWindows",value:function(){return"win32"===this.electronService.process.platform}},{key:"isLinux",value:function(){return"linux"===this.electronService.process.platform}},{key:"isDarwin",value:function(){return"darwin"===this.electronService.process.platform}}]),n}();K0.\u0275fac=function(r){return new(r||K0)(t.LFG(al))},K0.\u0275prov=t.Yz7({token:K0,factory:K0.\u0275fac});var q0=function(){function n(r){(0,H.Z)(this,n),this.platformService=r}return(0,B.Z)(n,[{key:"get",value:function(){return this.platformService.isWindows()?this.getForWindows():this.platformService.isDarwin()?this.getForDarwin():this.getForLinux()}},{key:"getForWindows",value:function(){var e=[{name:"Wireshark",locations:["C:\\Program Files\\Wireshark\\Wireshark.exe"],type:"web",resource:"https://1.na.dl.wireshark.org/win64/all-versions/Wireshark-win64-2.6.3.exe",binary:"Wireshark.exe",sudo:!0,installation_arguments:[],installed:!1,installer:!0}],i={name:"SolarPuTTY",locations:["SolarPuTTY.exe","external\\SolarPuTTY.exe"],type:"web",resource:"",binary:"SolarPuTTY.exe",sudo:!1,installation_arguments:["--only-ask"],installed:!1,installer:!1};return Wa.N.solarputty_download_url&&(i.resource=Wa.N.solarputty_download_url,e.push(i)),e}},{key:"getForLinux",value:function(){return[]}},{key:"getForDarwin",value:function(){return[]}}]),n}();q0.\u0275fac=function(r){return new(r||q0)(t.LFG(K0))},q0.\u0275prov=t.Yz7({token:q0,factory:q0.\u0275fac});var J0=function(){function n(r,e){(0,H.Z)(this,n),this.electronService=r,this.externalSoftwareDefinition=e}return(0,B.Z)(n,[{key:"list",value:function(){var e=this.externalSoftwareDefinition.get(),i=this.electronService.remote.require("./installed-software.js").getInstalledSoftware(e);return e.map(function(o){return o.installed=i[o.name].length>0,o})}}]),n}();J0.\u0275fac=function(r){return new(r||J0)(t.LFG(al),t.LFG(q0))},J0.\u0275prov=t.Yz7({token:J0,factory:J0.\u0275fac});var OAe=[[["caption"]],[["colgroup"],["col"]]];function PAe(n,r){if(1&n&&(t.TgZ(0,"th",3),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.Udp("text-align",e.justify),t.xp6(1),t.hij(" ",e.headerText," ")}}function RAe(n,r){if(1&n&&(t.TgZ(0,"td",4),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.Udp("text-align",i.justify),t.xp6(1),t.hij(" ",i.dataAccessor(e,i.name)," ")}}var YD=(0,B.Z)(function n(){(0,H.Z)(this,n)});YD.\u0275fac=function(r){return new(r||YD)},YD.\u0275dir=t.lG2({type:YD,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],features:[t._Bn([{provide:Ci.k,useClass:Ci.eX}])]});var ko=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i;return(0,H.Z)(this,e),(i=r.apply(this,arguments)).stickyCssClass="mat-table-sticky",i.needsPositionStickyOnElement=!1,i}return(0,B.Z)(e)}(Hd);ko.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(ko)))(e||ko)}}(),ko.\u0275cmp=t.Xpm({type:ko,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[t._Bn([{provide:Ci.k,useClass:Ci.yy},{provide:Hd,useExisting:ko},{provide:z_,useExisting:ko},{provide:E1,useClass:Xf},{provide:SE,useValue:null}]),t.qOj],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(r,e){1&r&&(t.F$t(OAe),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[Ud,$f,ep,tp],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2});var To=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Hc);To.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(To)))(e||To)}}(),To.\u0275dir=t.lG2({type:To,selectors:[["","matCellDef",""]],features:[t._Bn([{provide:Hc,useExisting:To}]),t.qOj]});var Mo=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(jc);Mo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Mo)))(e||Mo)}}(),Mo.\u0275dir=t.lG2({type:Mo,selectors:[["","matHeaderCellDef",""]],features:[t._Bn([{provide:jc,useExisting:Mo}]),t.qOj]});var Q0=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Pu);Q0.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Q0)))(e||Q0)}}(),Q0.\u0275dir=t.lG2({type:Q0,selectors:[["","matFooterCellDef",""]],features:[t._Bn([{provide:Pu,useExisting:Q0}]),t.qOj]});var _o=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"name",get:function(){return this._name},set:function(o){this._setNameInput(o)}},{key:"_updateColumnCssClassName",value:function(){(0,dt.Z)((0,Ut.Z)(e.prototype),"_updateColumnCssClassName",this).call(this),this._columnCssClassName.push("mat-column-".concat(this.cssClassFriendlyName))}}]),e}(el);_o.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(_o)))(e||_o)}}(),_o.\u0275dir=t.lG2({type:_o,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[t._Bn([{provide:el,useExisting:_o},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:_o}]),t.qOj]});var Io=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Qf);Io.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Io)))(e||Io)}}(),Io.\u0275dir=t.lG2({type:Io,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[t.qOj]});var pk=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Nh);pk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(pk)))(e||pk)}}(),pk.\u0275dir=t.lG2({type:pk,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[t.qOj]});var Po=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Bh);Po.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Po)))(e||Po)}}(),Po.\u0275dir=t.lG2({type:Po,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[t.qOj]});var Ro=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Nd);Ro.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Ro)))(e||Ro)}}(),Ro.\u0275dir=t.lG2({type:Ro,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[t._Bn([{provide:Nd,useExisting:Ro}]),t.qOj]});var X0=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Bd);X0.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(X0)))(e||X0)}}(),X0.\u0275dir=t.lG2({type:X0,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[t._Bn([{provide:Bd,useExisting:X0}]),t.qOj]});var Lo=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Fd);Lo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Lo)))(e||Lo)}}(),Lo.\u0275dir=t.lG2({type:Lo,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[t._Bn([{provide:Fd,useExisting:Lo}]),t.qOj]});var Zo=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Uh);Zo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Zo)))(e||Zo)}}(),Zo.\u0275cmp=t.Xpm({type:Zo,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[t._Bn([{provide:Uh,useExisting:Zo}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[Ga],encapsulation:2});var $0=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Hh);$0.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z($0)))(e||$0)}}(),$0.\u0275cmp=t.Xpm({type:$0,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[t._Bn([{provide:Hh,useExisting:$0}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[Ga],encapsulation:2});var No=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(jh);No.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(No)))(e||No)}}(),No.\u0275cmp=t.Xpm({type:No,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[t._Bn([{provide:jh,useExisting:No}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[Ga],encapsulation:2});var eb=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i;return(0,H.Z)(this,e),(i=r.apply(this,arguments))._contentClassName="mat-no-data-row",i}return(0,B.Z)(e)}(ac);eb.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(eb)))(e||eb)}}(),eb.\u0275dir=t.lG2({type:eb,selectors:[["ng-template","matNoDataRow",""]],features:[t._Bn([{provide:ac,useExisting:eb}]),t.qOj]});var hk=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(np);hk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(hk)))(e||hk)}}(),hk.\u0275cmp=t.Xpm({type:hk,selectors:[["mat-text-column"]],features:[t.qOj],decls:3,vars:0,consts:[["matColumnDef",""],["mat-header-cell","",3,"text-align",4,"matHeaderCellDef"],["mat-cell","",3,"text-align",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""]],template:function(r,e){1&r&&(t.ynx(0,0),t.YNc(1,PAe,2,3,"th",1),t.YNc(2,RAe,2,3,"td",2),t.BQk())},dependencies:[Mo,_o,To,Io,Po],encapsulation:2});var mk=(0,B.Z)(function n(){(0,H.Z)(this,n)});mk.\u0275fac=function(r){return new(r||mk)},mk.\u0275mod=t.oAB({type:mk}),mk.\u0275inj=t.cJS({imports:[rp,Vt.BQ,Vt.BQ]});var LAe=9007199254740991,ZAe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,H.Z)(this,e),(i=r.call(this))._renderData=new to.X([]),i._filter=new to.X(""),i._internalPageChanges=new In.xQ,i._renderChangesSubscription=null,i.sortingDataAccessor=function(a,s){var l=a[s];if((0,Mn.t6)(l)){var u=Number(l);return uC?q=1:g0)){var l=Math.ceil(s.length/s.pageSize)-1||0,u=Math.min(s.pageIndex,l);u!==s.pageIndex&&(s.pageIndex=u,a._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var o;null===(o=this._renderChangesSubscription)||void 0===o||o.unsubscribe(),this._renderChangesSubscription=null}}]),e}(Ci.o2),Ap=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(ZAe);function NAe(n,r){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){var e=t.oxw();t.xp6(1),t.Oqu(e.buttonText)}}var KD=function(){function n(r){(0,H.Z)(this,n),this.electronService=r,this.installedChanged=new t.vpe,this.disabled=!1,this.readyToInstall=!0}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.electronService&&this.electronService.ipcRenderer&&this.electronService.ipcRenderer.on(this.responseChannel,function(i,o){e.updateButton(),e.installedChanged.emit(o)})}},{key:"ngOnDestroy",value:function(){this.electronService&&this.electronService.ipcRenderer&&this.electronService.ipcRenderer.removeAllListeners(this.responseChannel)}},{key:"ngOnChanges",value:function(){this.updateButton()}},{key:"install",value:function(){this.disabled=!0,this.buttonText="Installing",this.electronService.ipcRenderer.send("installed-software-install",this.software)}},{key:"responseChannel",get:function(){return"installed-software-installed-".concat(this.software.name)}},{key:"updateButton",value:function(){this.disabled=this.software.installed,this.software.installed?this.buttonText="Installed":this.buttonText="Install"}}]),n}();KD.\u0275fac=function(r){return new(r||KD)(t.Y36(al))},KD.\u0275cmp=t.Xpm({type:KD,selectors:[["app-install-software"]],inputs:{software:"software"},outputs:{installedChanged:"installedChanged"},features:[t.TTD],decls:2,vars:2,consts:[["mat-button","","color","primary",3,"disabled","click"],[4,"ngIf"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.install()}),t.YNc(1,NAe,2,1,"ng-container",1),t.qZA()),2&r&&(t.Q6J("disabled",e.disabled),t.xp6(1),t.Q6J("ngIf",e.readyToInstall))},dependencies:[ge.O5,cn]});var Cc=m(4068),BAe=function(r,e){return{hidden:r,lightTheme:e}},FAe=/(.*)<\/a>(.*)\s*